diff --git a/blocks/attachment-info/attachment-info.php b/blocks/attachment-info/attachment-info.php
index 514275604..809f2ef94 100644
--- a/blocks/attachment-info/attachment-info.php
+++ b/blocks/attachment-info/attachment-info.php
@@ -33,17 +33,24 @@ public function init($loader = null) {
}
}
- public function get_attachments($parent_post_id) {
+ public function get_attachments($parent_post_id, $post_id = null) {
$cached_data = false;
// $cached_data = wp_cache_get( $parent_post_id, 'attachment-info' );
if (false !== $cached_data) {
return $cached_data;
}
+ // check if this is an attachment page and if so get it's id...
+ $post__not_in = [];
+ if ( is_attachment($post_id) ) {
+ $post__not_in = [$post_id];
+ }
+
$attachments = new WP_Query( array(
'post_type' => 'attachment',
'post_parent' => $parent_post_id,
'post_status' => 'inherit',
+ 'post__not_in' => $post__not_in,
'posts_per_page' => 50,
'orderby' => 'date',
'order' => 'asc',
@@ -81,14 +88,15 @@ public function get_attachments($parent_post_id) {
public function render_block_callback( $attributes, $content, $block ) {
$post_id = $block->context['postId'];
+
$parent_post_id = wp_get_post_parent_id($post_id);
$heading_text = array_key_exists('heading', $attributes) ? $attributes['heading'] : false;
- $attachments = $this->get_attachments($parent_post_id);
+ $attachments = $this->get_attachments($parent_post_id, $post_id);
- $post_title = get_the_title($post_id);
- $post_url = get_the_permalink($post_id);
+ $parent_post_title = get_the_title($parent_post_id);
+ $parent_post_url = get_the_permalink($parent_post_id);
if (! $attachments ) {
return '';
@@ -110,15 +118,15 @@ public function render_block_callback( $attributes, $content, $block ) {
);
$content .= wp_sprintf(
- '
%3$s',
+ '%3$s',
$list_item_classnames,
- $post_url,
- $post_title,
+ $parent_post_url,
+ $parent_post_title,
);
foreach ($attachments as $attachment) {
$content .= wp_sprintf(
- '%3$s',
+ '%3$s',
$list_item_classnames,
$attachment['link'],
$attachment['title'],
diff --git a/blocks/progress-bar/build/block.json b/blocks/progress-bar/build/block.json
index 4c0c39106..da6355515 100644
--- a/blocks/progress-bar/build/block.json
+++ b/blocks/progress-bar/build/block.json
@@ -29,7 +29,7 @@
},
"backgroundColor": {
"type": "string",
- "default": "ui-beige-very-light"
+ "default": "beige"
},
"categoryLabelColor": {
"type": "string",
diff --git a/blocks/progress-bar/build/index.asset.php b/blocks/progress-bar/build/index.asset.php
index 2283dc136..bfa48827f 100644
--- a/blocks/progress-bar/build/index.asset.php
+++ b/blocks/progress-bar/build/index.asset.php
@@ -1 +1 @@
- array('prc-charting-library', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '741129c48c9b6b5dfbce');
+ array('prc-charting-library', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e54a5d567837b8e867ad');
diff --git a/blocks/progress-bar/build/index.js b/blocks/progress-bar/build/index.js
index 3db4a7277..a75801a9c 100644
--- a/blocks/progress-bar/build/index.js
+++ b/blocks/progress-bar/build/index.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";const e=window.wp.blocks,t=window.wp.data,a=window.React,l=window.wp.blockEditor,o=window.wp.i18n,r=window.wp.element,n=window.wp.components;function i({colors:e,clientId:t}){const n=(0,l.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,r.useMemo)((()=>{const{barColor:t,setBarColor:a,backgroundColor:l,setBackgroundColor:r,categoryLabelColor:n,setCategoryLabelColor:i}=e;return[{colorValue:t?.color,onColorChange:a,label:(0,o.__)("Bar Color")},{colorValue:l?.color,onColorChange:r,label:(0,o.__)("Bar Background")},{colorValue:n?.color,onColorChange:i,label:(0,o.__)("Category Label")}]}),[e]);return(0,a.createElement)(l.InspectorControls,{group:"color"},(0,a.createElement)(l.__experimentalColorGradientSettingsDropdown,{settings:i,panelId:t,hasColorsOrGradients:!1,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,...n}))}function s({attributes:e,setAttributes:t,colors:s,clientId:d}){const{maxWidth:c,maxValue:b,currentValue:u,showAxisLabel:g,axisLabel:m,barPadding:p,axisLabelMaxWidth:C,axisPadding:x,labelFormat:y,labelPositionDY:f,labelPositionDX:h}=e;return(0,a.createElement)(r.Fragment,null,(0,a.createElement)(l.InspectorControls,null,(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Layout")},(0,a.createElement)(n.RangeControl,{label:(0,o.__)("Width"),withInputField:!0,min:0,max:640,value:parseInt(c,10),onChange:e=>t({maxWidth:parseInt(e,10)})})),(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Data and Formatting")},(0,a.createElement)(n.ToggleControl,{label:(0,o.__)("Show Category"),checked:g,onChange:()=>t({showAxisLabel:!g})}),(0,a.createElement)(n.TextControl,{label:(0,o.__)("Category"),value:m,disabled:!g,onChange:e=>t({axisLabel:e})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Category Label Max Width"),value:C,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({axisLabelMaxWidth:parseInt(e,10)})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Category Padding"),value:x,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({axisPadding:parseInt(e,10)})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Bar Padding"),value:p,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({barPadding:parseInt(e,10)})}),(0,a.createElement)(n.Flex,null,(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Current value"),value:u,disableUnits:!0,disabledUnits:!0,onChange:e=>t({currentValue:parseFloat(e)})})),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Maximum value"),value:b,disableUnits:!0,disabledUnits:!0,onChange:e=>t({maxValue:parseFloat(e)})}),(0,a.createElement)(n.FlexItem,null))),(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Labels")},(0,a.createElement)(n.SelectControl,{label:(0,o.__)("Label format"),value:y,options:[{value:"fractional",label:"Fractional"},{value:"percentage",label:"Percentage"}],onChange:e=>{t({labelFormat:e})}}),(0,a.createElement)(n.Flex,null,(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Label Position DX"),value:h,onChange:e=>t({labelPositionDX:parseInt(e,10)})})),(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Label Position DY"),value:f,onChange:e=>t({labelPositionDY:parseInt(e,10)})}))))),(0,a.createElement)(i,{colors:s,clientId:d}))}const d=window.prcChartBuilder,c=function({axisLabel:e,axisPadding:t,axisLabelMaxWidth:l,barColor:o,barPadding:r,backgroundColor:n,categoryLabelColor:i,currentValue:s,labelFormat:c,labelPositionDX:b,labelPositionDY:u,maxWidth:g,maxValue:m,showAxisLabel:p}){const C={...d.baseConfig,layout:{...d.baseConfig.layout,name:"progress-chart",parentClass:"wp-block-prc-block-progress-bar",type:"stacked-bar",orientation:"horizontal",theme:"light",width:g,height:40,padding:{top:0,bottom:0,left:p?t:0,right:0},horizontalRules:!1},metadata:{...d.baseConfig.metadata,active:!1},colors:[o,n],independentAxis:{...d.baseConfig.independentAxis,active:p,scale:"linear",dateFormat:"yyyy",domain:[0,m],domainPadding:50,offsetY:null,padding:50,tickCount:5,tickValues:null,tickFormat:null,multiLineTickLabels:!1,multiLineTickLabelsBreak:1,abbreviateTicks:!1,abbreviateTicksDecimals:0,tickUnit:"",tickUnitPosition:"end",customTickFormat:null,tickLabels:{...d.baseConfig.independentAxis.tickLabels,fontSize:12,padding:0,angle:0,dx:-5,dy:0,textAnchor:"end",verticalAnchor:"middle",fill:i,maxWidth:l},axisLabel:{...d.baseConfig.independentAxis.axisLabel,fontSize:12,padding:30,fill:"rgba(35, 31, 32,0.7)"},axis:{...d.baseConfig.independentAxis.axis,stroke:"#756f6b00"},ticks:{...d.baseConfig.independentAxis.ticks,stroke:"gray",size:0,strokeWidth:0},grid:{...d.baseConfig.independentAxis.grid,stroke:""}},dependentAxis:{...d.baseConfig.dependentAxis,active:!1,scale:"linear",padding:20,domain:[0,m],domainPadding:20,offsetX:null,showZero:!1,tickCount:5,tickValues:null,tickFormat:null,multiLineTickLabels:!1,multiLineTickLabelsBreak:1,abbreviateTicks:!1,abbreviateTicksDecimals:0,tickUnit:"",tickUnitPosition:"end",customTickFormat:null,tickLabels:{...d.baseConfig.dependentAxis.tickLabels,fontSize:12,padding:15,angle:0,dx:0,dy:0,textAnchor:"middle",verticalAnchor:"start",fill:"rgba(35, 31, 32,0.7)"},axisLabel:{...d.baseConfig.dependentAxis.axisLabel,fontSize:12,padding:30,fill:"rgba(35, 31, 32,0.7)"},ticks:{...d.baseConfig.dependentAxis.ticks,stroke:"gray",size:5,strokeWidth:0},axis:{...d.baseConfig.dependentAxis.axis,stroke:"#756f6a"},grid:{...d.baseConfig.dependentAxis.grid,stroke:""}},dataRender:{...d.baseConfig.dataRender,x:"x",y:"y",x2:null,y2:null,sortKey:"x",sortOrder:"none",categories:["currentValue","restOfBar"],xScale:"linear",yScale:"linear",xFormat:"yyyy",yFormat:"yyyy"},animate:{active:!1,duration:500},tooltip:{...d.baseConfig.tooltip,active:!1},legend:{active:!1},bar:{...d.baseConfig.bar,barPadding:r/100},labels:{...d.baseConfig.labels,active:!0,showFirstLastPointsOnly:!1,color:"black",fontWeight:200,fontSize:12,labelBarPosition:"inside",labelCutoff:0,labelCutoffMobile:0,labelPositionDX:b,labelPositionDY:u,pieLabelRadius:60,abbreviateValue:!1,toFixedDecimal:0,labelUnit:"",labelUnitPosition:"end",labelFormat:null,customLabelFormat:(e,t)=>"currentValue"===t?"fractional"===c?`${s}/${m}`:`${(s/m*100).toFixed(0)}%\t`:""}},x=[{x:e,currentValue:s,restOfBar:m-s}];return(0,a.createElement)(d.ChartBuilderWrapper,{config:C,data:x})},b=(0,t.createReduxStore)("prc-block/progress-bar",{reducer:(e={isCopied:!1,copiedStyles:{}},t)=>"COPY_LAYOUT_STYLES"===t.type?{...e,isCopied:!0,copiedStyles:t.payload}:e,actions:{copyLayoutStyles:e=>({type:"COPY_LAYOUT_STYLES",payload:e})},selectors:{getCopiedStylesStatus:e=>e.isCopied,getCopiedStyles:e=>e.copiedStyles}}),u=(0,o.__)("Copy layout"),g=(0,o.__)("Paste layout"),m=({children:e,attributes:o,setAttributes:i})=>{const{maxWidth:s,barColor:d,backgroundColor:c,categoryLabelColor:m,showAxisLabel:p,axisPadding:C,axisLabelMaxWidth:x,labelFormat:y,labelPositionDX:f,labelPositionDY:h}=o,k={maxWidth:s,barColor:d,backgroundColor:c,categoryLabelColor:m,showAxisLabel:p,axisPadding:C,axisLabelMaxWidth:x,labelFormat:y,labelPositionDX:f,labelPositionDY:h},{copyLayoutStyles:_}=(0,t.useDispatch)(b),L=(0,t.select)(b).getCopiedStylesStatus();return(0,a.createElement)(r.Fragment,null,(0,a.createElement)(l.BlockControls,null,(0,a.createElement)(n.ToolbarGroup,null,(0,a.createElement)(n.ToolbarButton,{name:"copy-styles",label:u,title:u,onClick:()=>{_(k)}},u)),L&&(0,a.createElement)(n.ToolbarGroup,null,(0,a.createElement)(n.ToolbarButton,{name:"paste-styles",label:g,title:g,onClick:()=>(()=>{const{getCopiedStyles:e}=(0,t.select)(b),a=e();console.log({styles:a}),i({...o,...a})})()},g))),e)},p=(0,l.withColors)({barColor:"color"},{backgroundColor:"color"},{categoryLabelColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,barColor:r,setBarColor:n,backgroundColor:i,setBackgroundColor:d,categoryLabelColor:b,setCategoryLabelColor:u}){const g=(0,l.useBlockProps)();return(0,a.createElement)(m,{attributes:e,setAttributes:t},(0,a.createElement)("div",{...g},(0,a.createElement)(s,{attributes:e,setAttributes:t,colors:{barColor:r,setBarColor:n,backgroundColor:i,setBackgroundColor:d,categoryLabelColor:b,setCategoryLabelColor:u},clientId:o}),(0,a.createElement)(c,{...e,barColor:r.color,backgroundColor:i.color,categoryLabelColor:b.color})))})),C=window.prcIcons,x=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/progress-bar","version":"0.1.0","title":"Progress Bar","category":"media","icon":"chart-bar","keywords":["progress","bar","quiz","result","horizontal","chart"],"attributes":{"maxWidth":{"type":"number","default":"640"},"barColor":{"type":"string","default":"social-trends-teal"},"barPadding":{"type":"number","default":15},"backgroundColor":{"type":"string","default":"ui-beige-very-light"},"categoryLabelColor":{"type":"string","default":"text-color"},"maxValue":{"type":"number","default":100},"currentValue":{"type":"number","default":50},"showAxisLabel":{"type":"boolean","default":true},"axisLabel":{"type":"string","default":"Total"},"axisPadding":{"type":"number","default":60},"axisLabelMaxWidth":{"type":"number","default":60},"labelFormat":{"enum":["fractional","percentage"],"default":"fractional"},"labelPositionDX":{"type":"integer","default":-5},"labelPositionDY":{"type":"integer","default":4}},"supports":{"anchor":true,"html":false,"spacing":{"blockGap":true,"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true}},"typography":{"fontSize":true}},"example":{"attributes":{}},"textdomain":"progress-bar","editorScript":"file:./index.js","render":"file:./render.php","viewScript":"file:./view.js"}'),{name:y}=x,f={icon:function(){return(0,a.createElement)(C.Icon,{icon:"bars-progress"})},edit:p};(0,t.register)(b),(0,e.registerBlockType)(y,{...x,...f})})();
+(()=>{"use strict";const e=window.wp.blocks,t=window.wp.data,a=window.React,l=window.wp.blockEditor,o=window.wp.i18n,r=window.wp.element,n=window.wp.components;function i({colors:e,clientId:t}){const n=(0,l.__experimentalUseMultipleOriginColorsAndGradients)(),i=(0,r.useMemo)((()=>{const{barColor:t,setBarColor:a,backgroundColor:l,setBackgroundColor:r,categoryLabelColor:n,setCategoryLabelColor:i}=e;return[{colorValue:t?.color,onColorChange:a,label:(0,o.__)("Bar Color")},{colorValue:l?.color,onColorChange:r,label:(0,o.__)("Bar Background")},{colorValue:n?.color,onColorChange:i,label:(0,o.__)("Category Label")}]}),[e]);return(0,a.createElement)(r.Fragment,null,(0,a.createElement)(l.InspectorControls,{group:"color"},(0,a.createElement)(l.__experimentalColorGradientSettingsDropdown,{settings:i,panelId:t,hasColorsOrGradients:!1,disableCustomColors:!0,__experimentalIsRenderedInSidebar:!0,...n})))}function s({attributes:e,setAttributes:t,colors:s,clientId:d}){const{maxWidth:c,maxValue:b,currentValue:u,showAxisLabel:g,axisLabel:m,barPadding:p,axisLabelMaxWidth:C,axisPadding:x,labelFormat:y,labelPositionDY:f,labelPositionDX:h}=e;return(0,a.createElement)(r.Fragment,null,(0,a.createElement)(l.InspectorControls,null,(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Layout")},(0,a.createElement)(n.RangeControl,{label:(0,o.__)("Width"),withInputField:!0,min:0,max:640,value:parseInt(c,10),onChange:e=>t({maxWidth:parseInt(e,10)})})),(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Data and Formatting")},(0,a.createElement)(n.ToggleControl,{label:(0,o.__)("Show Category"),checked:g,onChange:()=>t({showAxisLabel:!g})}),(0,a.createElement)(n.TextControl,{label:(0,o.__)("Category"),value:m,disabled:!g,onChange:e=>t({axisLabel:e})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Category Label Max Width"),value:C,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({axisLabelMaxWidth:parseInt(e,10)})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Category Padding"),value:x,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({axisPadding:parseInt(e,10)})}),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Bar Padding"),value:p,disabled:!g,disableUnits:!0,disabledUnits:!0,onChange:e=>t({barPadding:parseInt(e,10)})}),(0,a.createElement)(n.Flex,null,(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Current value"),value:u,disableUnits:!0,disabledUnits:!0,onChange:e=>t({currentValue:parseFloat(e)})})),(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Maximum value"),value:b,disableUnits:!0,disabledUnits:!0,onChange:e=>t({maxValue:parseFloat(e)})}),(0,a.createElement)(n.FlexItem,null))),(0,a.createElement)(n.PanelBody,{title:(0,o.__)("Labels")},(0,a.createElement)(n.SelectControl,{label:(0,o.__)("Label format"),value:y,options:[{value:"fractional",label:"Fractional"},{value:"percentage",label:"Percentage"}],onChange:e=>{t({labelFormat:e})}}),(0,a.createElement)(n.Flex,null,(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Label Position DX"),value:h,onChange:e=>t({labelPositionDX:parseInt(e,10)})})),(0,a.createElement)(n.FlexItem,null,(0,a.createElement)(n.__experimentalNumberControl,{label:(0,o.__)("Label Position DY"),value:f,onChange:e=>t({labelPositionDY:parseInt(e,10)})}))))),(0,a.createElement)(i,{colors:s,clientId:d}))}const d=window.prcChartBuilder,c=function({axisLabel:e,axisPadding:t,axisLabelMaxWidth:l,barColor:o,barPadding:r,backgroundColor:n,categoryLabelColor:i,currentValue:s,labelFormat:c,labelPositionDX:b,labelPositionDY:u,maxWidth:g,maxValue:m,showAxisLabel:p}){const C={...d.baseConfig,layout:{...d.baseConfig.layout,name:"progress-chart",parentClass:"wp-block-prc-block-progress-bar",type:"stacked-bar",orientation:"horizontal",theme:"light",width:g,height:40,padding:{top:0,bottom:0,left:p?t:0,right:0},horizontalRules:!1},metadata:{...d.baseConfig.metadata,active:!1},colors:[o,n],independentAxis:{...d.baseConfig.independentAxis,active:p,scale:"linear",dateFormat:"yyyy",domain:[0,m],domainPadding:50,offsetY:null,padding:50,tickCount:5,tickValues:null,tickFormat:null,multiLineTickLabels:!1,multiLineTickLabelsBreak:1,abbreviateTicks:!1,abbreviateTicksDecimals:0,tickUnit:"",tickUnitPosition:"end",customTickFormat:null,tickLabels:{...d.baseConfig.independentAxis.tickLabels,fontSize:12,padding:0,angle:0,dx:-5,dy:0,textAnchor:"end",verticalAnchor:"middle",fill:i,maxWidth:l},axisLabel:{...d.baseConfig.independentAxis.axisLabel,fontSize:12,padding:30,fill:"rgba(35, 31, 32,0.7)"},axis:{...d.baseConfig.independentAxis.axis,stroke:"#756f6b00"},ticks:{...d.baseConfig.independentAxis.ticks,stroke:"gray",size:0,strokeWidth:0},grid:{...d.baseConfig.independentAxis.grid,stroke:""}},dependentAxis:{...d.baseConfig.dependentAxis,active:!1,scale:"linear",padding:20,domain:[0,m],domainPadding:20,offsetX:null,showZero:!1,tickCount:5,tickValues:null,tickFormat:null,multiLineTickLabels:!1,multiLineTickLabelsBreak:1,abbreviateTicks:!1,abbreviateTicksDecimals:0,tickUnit:"",tickUnitPosition:"end",customTickFormat:null,tickLabels:{...d.baseConfig.dependentAxis.tickLabels,fontSize:12,padding:15,angle:0,dx:0,dy:0,textAnchor:"middle",verticalAnchor:"start",fill:"rgba(35, 31, 32,0.7)"},axisLabel:{...d.baseConfig.dependentAxis.axisLabel,fontSize:12,padding:30,fill:"rgba(35, 31, 32,0.7)"},ticks:{...d.baseConfig.dependentAxis.ticks,stroke:"gray",size:5,strokeWidth:0},axis:{...d.baseConfig.dependentAxis.axis,stroke:"#756f6a"},grid:{...d.baseConfig.dependentAxis.grid,stroke:""}},dataRender:{...d.baseConfig.dataRender,x:"x",y:"y",x2:null,y2:null,sortKey:"x",sortOrder:"none",categories:["currentValue","restOfBar"],xScale:"linear",yScale:"linear",xFormat:"yyyy",yFormat:"yyyy"},animate:{active:!1,duration:500},tooltip:{...d.baseConfig.tooltip,active:!1},legend:{active:!1},bar:{...d.baseConfig.bar,barPadding:r/100},labels:{...d.baseConfig.labels,active:!0,showFirstLastPointsOnly:!1,color:"black",fontWeight:200,fontSize:12,labelBarPosition:"inside",labelCutoff:0,labelCutoffMobile:0,labelPositionDX:b,labelPositionDY:u,pieLabelRadius:60,abbreviateValue:!1,toFixedDecimal:0,labelUnit:"",labelUnitPosition:"end",labelFormat:null,customLabelFormat:(e,t)=>"currentValue"===t?"fractional"===c?`${s}/${m}`:`${(s/m*100).toFixed(0)}%\t`:""}},x=[{x:e,currentValue:s,restOfBar:m-s}];return(0,a.createElement)(d.ChartBuilderWrapper,{config:C,data:x})},b=(0,t.createReduxStore)("prc-block/progress-bar",{reducer:(e={isCopied:!1,copiedStyles:{}},t)=>"COPY_LAYOUT_STYLES"===t.type?{...e,isCopied:!0,copiedStyles:t.payload}:e,actions:{copyLayoutStyles:e=>({type:"COPY_LAYOUT_STYLES",payload:e})},selectors:{getCopiedStylesStatus:e=>e.isCopied,getCopiedStyles:e=>e.copiedStyles}}),u=(0,o.__)("Copy layout"),g=(0,o.__)("Paste layout"),m=({children:e,attributes:o,setAttributes:i})=>{const{maxWidth:s,barColor:d,backgroundColor:c,categoryLabelColor:m,showAxisLabel:p,axisPadding:C,axisLabelMaxWidth:x,labelFormat:y,labelPositionDX:f,labelPositionDY:h}=o,k={maxWidth:s,barColor:d,backgroundColor:c,categoryLabelColor:m,showAxisLabel:p,axisPadding:C,axisLabelMaxWidth:x,labelFormat:y,labelPositionDX:f,labelPositionDY:h},{copyLayoutStyles:_}=(0,t.useDispatch)(b),L=(0,t.select)(b).getCopiedStylesStatus();return(0,a.createElement)(r.Fragment,null,(0,a.createElement)(l.BlockControls,null,(0,a.createElement)(n.ToolbarGroup,null,(0,a.createElement)(n.ToolbarButton,{name:"copy-styles",label:u,title:u,onClick:()=>{_(k)}},u)),L&&(0,a.createElement)(n.ToolbarGroup,null,(0,a.createElement)(n.ToolbarButton,{name:"paste-styles",label:g,title:g,onClick:()=>(()=>{const{getCopiedStyles:e}=(0,t.select)(b),a=e();console.log({styles:a}),i({...o,...a})})()},g))),e)},p=(0,l.withColors)({barColor:"color"},{backgroundColor:"color"},{categoryLabelColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,barColor:r,setBarColor:n,backgroundColor:i,setBackgroundColor:d,categoryLabelColor:b,setCategoryLabelColor:u}){const g=(0,l.useBlockProps)();return(0,a.createElement)(m,{attributes:e,setAttributes:t},(0,a.createElement)("div",{...g},(0,a.createElement)(s,{attributes:e,setAttributes:t,colors:{barColor:r,setBarColor:n,backgroundColor:i,setBackgroundColor:d,categoryLabelColor:b,setCategoryLabelColor:u},clientId:o}),(0,a.createElement)(c,{...e,barColor:r.color,backgroundColor:i.color,categoryLabelColor:b.color})))})),C=window.prcIcons,x=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/progress-bar","version":"0.1.0","title":"Progress Bar","category":"media","icon":"chart-bar","keywords":["progress","bar","quiz","result","horizontal","chart"],"attributes":{"maxWidth":{"type":"number","default":"640"},"barColor":{"type":"string","default":"social-trends-teal"},"barPadding":{"type":"number","default":15},"backgroundColor":{"type":"string","default":"beige"},"categoryLabelColor":{"type":"string","default":"text-color"},"maxValue":{"type":"number","default":100},"currentValue":{"type":"number","default":50},"showAxisLabel":{"type":"boolean","default":true},"axisLabel":{"type":"string","default":"Total"},"axisPadding":{"type":"number","default":60},"axisLabelMaxWidth":{"type":"number","default":60},"labelFormat":{"enum":["fractional","percentage"],"default":"fractional"},"labelPositionDX":{"type":"integer","default":-5},"labelPositionDY":{"type":"integer","default":4}},"supports":{"anchor":true,"html":false,"spacing":{"blockGap":true,"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"padding":true}},"typography":{"fontSize":true}},"example":{"attributes":{}},"textdomain":"progress-bar","editorScript":"file:./index.js","render":"file:./render.php","viewScript":"file:./view.js"}'),{name:y}=x,f={icon:function(){return(0,a.createElement)(C.Icon,{icon:"bars-progress"})},edit:p};(0,t.register)(b),(0,e.registerBlockType)(y,{...x,...f})})();
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/blocks/progress-bar/build/index.js.map b/blocks/progress-bar/build/index.js.map
index 07524a90e..06d3748fb 100644
--- a/blocks/progress-bar/build/index.js.map
+++ b/blocks/progress-bar/build/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","mappings":"mBAAA,MAAM,EAA+BA,OAAW,GAAU,OCApD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAc,MCA7C,EAA+BA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eAACuK,EAAAA,KAAI,CAACD,KAAK,iBACnB,ED+BCE,KAAIA,IAGLC,EAAAA,EAAAA,UAASjB,IAOTkB,EAAAA,EAAAA,mBAAkBvH,EAAM,IAAKa,KAAa5D,G","sources":["webpack://progress-bar/external window [\"wp\",\"blocks\"]","webpack://progress-bar/external window [\"wp\",\"data\"]","webpack://progress-bar/external window \"React\"","webpack://progress-bar/external window [\"wp\",\"blockEditor\"]","webpack://progress-bar/external window [\"wp\",\"i18n\"]","webpack://progress-bar/external window [\"wp\",\"element\"]","webpack://progress-bar/external window [\"wp\",\"components\"]","webpack://progress-bar/./src/color-controls.jsx","webpack://progress-bar/./src/controls.jsx","webpack://progress-bar/external window \"prcChartBuilder\"","webpack://progress-bar/./src/progress-bar.jsx","webpack://progress-bar/./src/store.js","webpack://progress-bar/./src/copy-past-styles-handler.jsx","webpack://progress-bar/./src/edit.jsx","webpack://progress-bar/external window \"prcIcons\"","webpack://progress-bar/./src/index.js","webpack://progress-bar/./src/icon.jsx"],"sourcesContent":["const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Fragment, useMemo } from '@wordpress/element';\nimport {\n\tInspectorControls,\n\t__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,\n\t__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,\n} from '@wordpress/block-editor';\n\nexport default function ColorControls({ colors, clientId }) {\n\tconst colorProps = useMultipleOriginColorsAndGradients();\n\n\tconst colorSettings = useMemo(() => {\n\t\tconst {\n\t\t\tbarColor,\n\t\t\tsetBarColor,\n\t\t\tbackgroundColor,\n\t\t\tsetBackgroundColor,\n\t\t\tcategoryLabelColor,\n\t\t\tsetCategoryLabelColor,\n\t\t} = colors;\n\n\t\treturn [\n\t\t\t{\n\t\t\t\tcolorValue: barColor?.color,\n\t\t\t\tonColorChange: setBarColor,\n\t\t\t\tlabel: __('Bar Color'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tcolorValue: backgroundColor?.color,\n\t\t\t\tonColorChange: setBackgroundColor,\n\t\t\t\tlabel: __('Bar Background'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tcolorValue: categoryLabelColor?.color,\n\t\t\t\tonColorChange: setCategoryLabelColor,\n\t\t\t\tlabel: __('Category Label'),\n\t\t\t},\n\t\t];\n\t}, [colors]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\n\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls, PanelColorSettings } from '@wordpress/block-editor';\nimport { Fragment } from '@wordpress/element';\nimport {\n\tPanelBody,\n\tSelectControl,\n\tFlex,\n\tFlexItem,\n\t__experimentalNumberControl as NumberControl,\n\tRangeControl,\n\tTextControl,\n\tToggleControl,\n} from '@wordpress/components';\n\n/**\n * Internal Dependencies\n */\nimport ColorControls from './color-controls';\n\nexport default function Controls({ attributes, setAttributes, colors, clientId }) {\n\tconst {\n\t\tmaxWidth,\n\t\tmaxValue,\n\t\tcurrentValue,\n\t\tshowAxisLabel,\n\t\taxisLabel,\n\t\tbarPadding,\n\t\taxisLabelMaxWidth,\n\t\taxisPadding,\n\t\tlabelFormat,\n\t\tlabelPositionDY,\n\t\tlabelPositionDX,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tmaxWidth: parseInt(num, 10),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tshowAxisLabel: !showAxisLabel,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t setAttributes({ axisLabel: val })}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\taxisLabelMaxWidth: parseInt(val, 10),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({ axisPadding: parseInt(val, 10) })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({ barPadding: parseInt(val, 10) })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tcurrentValue: parseFloat(val),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsetAttributes({ maxValue: parseFloat(val) })\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tlabelFormat: format,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tlabelPositionDX: parseInt(value, 10),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tlabelPositionDY: parseInt(value, 10),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcChartBuilder\"];","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\n// eslint-disable-next-line import/no-unresolved\nimport { ChartBuilderWrapper, baseConfig } from '@prc/chart-builder';\n\nfunction ProgressBar({\n\taxisLabel,\n\taxisPadding,\n\taxisLabelMaxWidth,\n\tbarColor,\n\tbarPadding,\n\tbackgroundColor,\n\tcategoryLabelColor,\n\tcurrentValue,\n\tlabelFormat,\n\tlabelPositionDX,\n\tlabelPositionDY,\n\tmaxWidth,\n\tmaxValue,\n\tshowAxisLabel,\n}) {\n\tconst config = {\n\t\t...baseConfig,\n\t\tlayout: {\n\t\t\t...baseConfig.layout,\n\t\t\tname: 'progress-chart',\n\t\t\tparentClass: 'wp-block-prc-block-progress-bar',\n\t\t\ttype: 'stacked-bar',\n\t\t\torientation: 'horizontal',\n\t\t\ttheme: 'light',\n\t\t\twidth: maxWidth,\n\t\t\theight: 40,\n\t\t\tpadding: {\n\t\t\t\ttop: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\tleft: showAxisLabel ? axisPadding : 0,\n\t\t\t\tright: 0,\n\t\t\t},\n\t\t\thorizontalRules: false,\n\t\t},\n\t\tmetadata: {\n\t\t\t...baseConfig.metadata,\n\t\t\tactive: false,\n\t\t},\n\t\tcolors: [barColor, backgroundColor],\n\n\t\tindependentAxis: {\n\t\t\t...baseConfig.independentAxis,\n\t\t\tactive: showAxisLabel,\n\t\t\tscale: 'linear',\n\t\t\tdateFormat: 'yyyy',\n\t\t\tdomain: [0, maxValue],\n\t\t\tdomainPadding: 50,\n\t\t\toffsetY: null,\n\t\t\tpadding: 50,\n\t\t\ttickCount: 5,\n\t\t\ttickValues: null,\n\t\t\ttickFormat: null,\n\t\t\tmultiLineTickLabels: false,\n\t\t\tmultiLineTickLabelsBreak: 1,\n\t\t\tabbreviateTicks: false,\n\t\t\tabbreviateTicksDecimals: 0,\n\t\t\ttickUnit: '',\n\t\t\ttickUnitPosition: 'end',\n\t\t\tcustomTickFormat: null,\n\t\t\ttickLabels: {\n\t\t\t\t...baseConfig.independentAxis.tickLabels,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 0,\n\t\t\t\tangle: 0,\n\t\t\t\tdx: -5,\n\t\t\t\tdy: 0,\n\t\t\t\ttextAnchor: 'end',\n\t\t\t\tverticalAnchor: 'middle',\n\t\t\t\tfill: categoryLabelColor,\n\t\t\t\tmaxWidth: axisLabelMaxWidth,\n\t\t\t},\n\t\t\taxisLabel: {\n\t\t\t\t...baseConfig.independentAxis.axisLabel,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 30,\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\taxis: {\n\t\t\t\t...baseConfig.independentAxis.axis,\n\t\t\t\tstroke: '#756f6b00',\n\t\t\t},\n\t\t\tticks: {\n\t\t\t\t...baseConfig.independentAxis.ticks,\n\t\t\t\tstroke: 'gray',\n\t\t\t\tsize: 0,\n\t\t\t\tstrokeWidth: 0,\n\t\t\t},\n\t\t\tgrid: {\n\t\t\t\t...baseConfig.independentAxis.grid,\n\t\t\t\tstroke: '',\n\t\t\t},\n\t\t},\n\t\tdependentAxis: {\n\t\t\t...baseConfig.dependentAxis,\n\t\t\tactive: false,\n\t\t\tscale: 'linear',\n\t\t\tpadding: 20,\n\t\t\tdomain: [0, maxValue],\n\t\t\tdomainPadding: 20,\n\t\t\toffsetX: null,\n\t\t\tshowZero: false,\n\t\t\ttickCount: 5,\n\t\t\ttickValues: null,\n\t\t\ttickFormat: null,\n\t\t\tmultiLineTickLabels: false,\n\t\t\tmultiLineTickLabelsBreak: 1,\n\t\t\tabbreviateTicks: false,\n\t\t\tabbreviateTicksDecimals: 0,\n\t\t\ttickUnit: '',\n\t\t\ttickUnitPosition: 'end',\n\t\t\tcustomTickFormat: null,\n\t\t\ttickLabels: {\n\t\t\t\t...baseConfig.dependentAxis.tickLabels,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 15,\n\t\t\t\tangle: 0,\n\t\t\t\tdx: 0,\n\t\t\t\tdy: 0,\n\t\t\t\ttextAnchor: 'middle',\n\t\t\t\tverticalAnchor: 'start',\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\taxisLabel: {\n\t\t\t\t...baseConfig.dependentAxis.axisLabel,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 30,\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\tticks: {\n\t\t\t\t...baseConfig.dependentAxis.ticks,\n\t\t\t\tstroke: 'gray',\n\t\t\t\tsize: 5,\n\t\t\t\tstrokeWidth: 0,\n\t\t\t},\n\t\t\taxis: {\n\t\t\t\t...baseConfig.dependentAxis.axis,\n\t\t\t\tstroke: '#756f6a',\n\t\t\t},\n\t\t\tgrid: {\n\t\t\t\t...baseConfig.dependentAxis.grid,\n\t\t\t\tstroke: '',\n\t\t\t},\n\t\t},\n\t\tdataRender: {\n\t\t\t...baseConfig.dataRender,\n\t\t\tx: 'x',\n\t\t\ty: 'y',\n\t\t\tx2: null,\n\t\t\ty2: null,\n\t\t\tsortKey: 'x',\n\t\t\tsortOrder: 'none',\n\t\t\tcategories: ['currentValue', 'restOfBar'],\n\t\t\txScale: 'linear',\n\t\t\tyScale: 'linear',\n\t\t\txFormat: 'yyyy',\n\t\t\tyFormat: 'yyyy',\n\t\t},\n\t\tanimate: {\n\t\t\tactive: false,\n\t\t\tduration: 500,\n\t\t},\n\t\ttooltip: {\n\t\t\t...baseConfig.tooltip,\n\t\t\tactive: false,\n\t\t},\n\t\tlegend: {\n\t\t\tactive: false,\n\t\t},\n\t\tbar: {\n\t\t\t...baseConfig.bar,\n\t\t\tbarPadding: barPadding / 100,\n\t\t},\n\t\tlabels: {\n\t\t\t...baseConfig.labels,\n\t\t\tactive: true,\n\t\t\tshowFirstLastPointsOnly: false,\n\t\t\tcolor: 'black',\n\t\t\tfontWeight: 200,\n\t\t\tfontSize: 12,\n\t\t\tlabelBarPosition: 'inside',\n\t\t\tlabelCutoff: 0,\n\t\t\tlabelCutoffMobile: 0,\n\t\t\tlabelPositionDX,\n\t\t\tlabelPositionDY,\n\t\t\tpieLabelRadius: 60,\n\t\t\tabbreviateValue: false,\n\t\t\ttoFixedDecimal: 0,\n\t\t\tlabelUnit: '',\n\t\t\tlabelUnitPosition: 'end',\n\t\t\tlabelFormat: null,\n\t\t\tcustomLabelFormat: (value, category) => {\n\t\t\t\tif ('currentValue' === category) {\n\t\t\t\t\treturn 'fractional' === labelFormat\n\t\t\t\t\t\t? `${currentValue}/${maxValue}`\n\t\t\t\t\t\t: `${((currentValue / maxValue) * 100).toFixed(0)}%\t`;\n\t\t\t\t}\n\t\t\t\treturn '';\n\t\t\t},\n\t\t},\n\t};\n\n\tconst data = [\n\t\t{\n\t\t\tx: axisLabel,\n\t\t\tcurrentValue,\n\t\t\trestOfBar: maxValue - currentValue,\n\t\t},\n\t];\n\n\treturn ;\n}\n\nexport default ProgressBar;\n","/* eslint-disable no-param-reassign */\n/**\n * WordPress Dependencies\n */\nimport { createReduxStore } from '@wordpress/data';\n\nconst store = createReduxStore('prc-block/progress-bar', {\n\t// a redux store that has two variables: isCopied which is a boolean\n\t// and copiedStyles which is an object that holds the styles\n\treducer: (\n\t\tstate = {\n\t\t\tisCopied: false,\n\t\t\tcopiedStyles: {},\n\t\t},\n\t\taction\n\t) => {\n\t\tswitch (action.type) {\n\t\t\tcase 'COPY_LAYOUT_STYLES':\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tisCopied: true,\n\t\t\t\t\tcopiedStyles: action.payload,\n\t\t\t\t};\n\t\t\tdefault:\n\t\t\t\treturn state;\n\t\t}\n\t},\n\tactions: {\n\t\tcopyLayoutStyles(styles) {\n\t\t\treturn {\n\t\t\t\ttype: 'COPY_LAYOUT_STYLES',\n\t\t\t\tpayload: styles,\n\t\t\t};\n\t\t},\n\t},\n\tselectors: {\n\t\tgetCopiedStylesStatus(state) {\n\t\t\treturn state.isCopied;\n\t\t},\n\t\tgetCopiedStyles(state) {\n\t\t\treturn state.copiedStyles;\n\t\t},\n\t},\n});\n\nexport default store;\n","/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Fragment } from '@wordpress/element';\nimport { useDispatch, select } from '@wordpress/data';\nimport { BlockControls } from '@wordpress/block-editor';\nimport { ToolbarButton, ToolbarGroup } from '@wordpress/components';\n/**\n * Internal Dependencies\n */\nimport store from './store';\n\nconst COPY_STYLES_LABEL = __('Copy layout');\nconst PASTE_STYLES_LABEL = __('Paste layout');\n\nconst CopyPasteStylesHandler = ({ children, attributes, setAttributes }) => {\n\tconst {\n\t\tmaxWidth,\n\t\tbarColor,\n\t\tbackgroundColor,\n\t\tcategoryLabelColor,\n\t\tshowAxisLabel,\n\t\taxisPadding,\n\t\taxisLabelMaxWidth,\n\t\tlabelFormat,\n\t\tlabelPositionDX,\n\t\tlabelPositionDY,\n\t} = attributes;\n\tconst layoutAttributes = {\n\t\tmaxWidth,\n\t\tbarColor,\n\t\tbackgroundColor,\n\t\tcategoryLabelColor,\n\t\tshowAxisLabel,\n\t\taxisPadding,\n\t\taxisLabelMaxWidth,\n\t\tlabelFormat,\n\t\tlabelPositionDX,\n\t\tlabelPositionDY,\n\t};\n\n\tconst { copyLayoutStyles } = useDispatch(store);\n\n\tconst hasCopiedLayoutStyles = select(store).getCopiedStylesStatus();\n\tconst copyStyles = () => {\n\t\tcopyLayoutStyles(layoutAttributes);\n\t};\n\tconst pasteStyles = () => {\n\t\tconst { getCopiedStyles } = select(store);\n\t\tconst styles = getCopiedStyles();\n\t\tconsole.log({ styles });\n\t\tsetAttributes({\n\t\t\t...attributes,\n\t\t\t...styles,\n\t\t});\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t copyStyles()}\n\t\t\t\t\t>\n\t\t\t\t\t\t{COPY_STYLES_LABEL}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{hasCopiedLayoutStyles && (\n\t\t\t\t\t\n\t\t\t\t\t\t pasteStyles()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{PASTE_STYLES_LABEL}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n\nexport default CopyPasteStylesHandler;\n","/**\n * WordPress Dependencies\n */\nimport { useBlockProps, withColors } from '@wordpress/block-editor';\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\nimport ProgressBar from './progress-bar';\nimport CopyPasteStylesHandler from './copy-past-styles-handler';\n/**\n * The edit function describes the structure of your block in the context of the\n * editor. This represents what the editor will render when the block is used.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @param {Function} props.setAttributes Function that updates individual attributes.\n *\n * @return {WPElement} Element to render.\n */\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tbarColor,\n\tsetBarColor,\n\tbackgroundColor,\n\tsetBackgroundColor,\n\tcategoryLabelColor,\n\tsetCategoryLabelColor,\n}) {\n\tconst blockProps = useBlockProps();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n\nexport default withColors(\n\t{ barColor: 'color' },\n\t{ backgroundColor: 'color' },\n\t{ categoryLabelColor: 'color' }\n)(Edit);\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcIcons\"];","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\n\n/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\nimport { register } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor. All other files\n * get applied to the editor only.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport edit from './edit';\nimport icon from './icon';\n\nimport metadata from './block.json';\nimport store from './store';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n};\n\nregister(store);\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\nregisterBlockType(name, { ...metadata, ...settings });\n","/**\n * External Dependencies\n */\nimport { Icon } from '@prc/icons';\n\nexport default function () {\n\treturn ;\n}\n"],"names":["window","ColorControls","colors","clientId","colorProps","useMultipleOriginColorsAndGradients","colorSettings","useMemo","barColor","setBarColor","backgroundColor","setBackgroundColor","categoryLabelColor","setCategoryLabelColor","colorValue","color","onColorChange","label","__","createElement","InspectorControls","group","ColorGradientSettingsDropdown","settings","panelId","hasColorsOrGradients","disableCustomColors","__experimentalIsRenderedInSidebar","Controls","attributes","setAttributes","maxWidth","maxValue","currentValue","showAxisLabel","axisLabel","barPadding","axisLabelMaxWidth","axisPadding","labelFormat","labelPositionDY","labelPositionDX","Fragment","PanelBody","title","RangeControl","withInputField","min","max","value","parseInt","onChange","num","ToggleControl","checked","TextControl","disabled","val","NumberControl","disableUnits","disabledUnits","Flex","FlexItem","parseFloat","SelectControl","options","format","config","baseConfig","layout","name","parentClass","type","orientation","theme","width","height","padding","top","bottom","left","right","horizontalRules","metadata","active","independentAxis","scale","dateFormat","domain","domainPadding","offsetY","tickCount","tickValues","tickFormat","multiLineTickLabels","multiLineTickLabelsBreak","abbreviateTicks","abbreviateTicksDecimals","tickUnit","tickUnitPosition","customTickFormat","tickLabels","fontSize","angle","dx","dy","textAnchor","verticalAnchor","fill","axis","stroke","ticks","size","strokeWidth","grid","dependentAxis","offsetX","showZero","dataRender","x","y","x2","y2","sortKey","sortOrder","categories","xScale","yScale","xFormat","yFormat","animate","duration","tooltip","legend","bar","labels","showFirstLastPointsOnly","fontWeight","labelBarPosition","labelCutoff","labelCutoffMobile","pieLabelRadius","abbreviateValue","toFixedDecimal","labelUnit","labelUnitPosition","customLabelFormat","category","toFixed","data","restOfBar","ChartBuilderWrapper","createReduxStore","reducer","state","isCopied","copiedStyles","action","payload","actions","copyLayoutStyles","styles","selectors","getCopiedStylesStatus","getCopiedStyles","COPY_STYLES_LABEL","PASTE_STYLES_LABEL","CopyPasteStylesHandler","children","layoutAttributes","useDispatch","store","hasCopiedLayoutStyles","select","BlockControls","ToolbarGroup","ToolbarButton","onClick","pasteStyles","console","log","withColors","blockProps","useBlockProps","ProgressBar","icon","Icon","edit","register","registerBlockType"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"index.js","mappings":"mBAAA,MAAM,EAA+BA,OAAW,GAAU,OCApD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAc,MCA7C,EAA+BA,OAAW,GAAe,YCAzD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAc,WCe/C,SAASC,GAAc,OACrCC,EAAM,SACNC,IAEA,MAAMC,GAAaC,EAAAA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,IAAKa,KAAa3D,G","sources":["webpack://progress-bar/external window [\"wp\",\"blocks\"]","webpack://progress-bar/external window [\"wp\",\"data\"]","webpack://progress-bar/external window \"React\"","webpack://progress-bar/external window [\"wp\",\"blockEditor\"]","webpack://progress-bar/external window [\"wp\",\"i18n\"]","webpack://progress-bar/external window [\"wp\",\"element\"]","webpack://progress-bar/external window [\"wp\",\"components\"]","webpack://progress-bar/./src/color-controls.jsx","webpack://progress-bar/./src/controls.jsx","webpack://progress-bar/external window \"prcChartBuilder\"","webpack://progress-bar/./src/progress-bar.jsx","webpack://progress-bar/./src/store.js","webpack://progress-bar/./src/copy-past-styles-handler.jsx","webpack://progress-bar/./src/edit.jsx","webpack://progress-bar/external window \"prcIcons\"","webpack://progress-bar/./src/index.js","webpack://progress-bar/./src/icon.jsx"],"sourcesContent":["const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Fragment, useMemo } from '@wordpress/element';\nimport {\n\tInspectorControls,\n\t__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,\n\t__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,\n} from '@wordpress/block-editor';\n\nexport default function ColorControls({\n\tcolors,\n\tclientId,\n}) {\n\tconst colorProps = useMultipleOriginColorsAndGradients();\n\n\tconst colorSettings = useMemo(() => {\n\t\tconst {\n\t\t\tbarColor,\n\t\t\tsetBarColor,\n\t\t\tbackgroundColor,\n\t\t\tsetBackgroundColor,\n\t\t\tcategoryLabelColor,\n\t\t\tsetCategoryLabelColor,\n\t\t} = colors;\n\n\t\treturn [\n\t\t\t{\n\t\t\t\tcolorValue: barColor?.color,\n\t\t\t\tonColorChange: setBarColor,\n\t\t\t\tlabel: __('Bar Color'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tcolorValue: backgroundColor?.color,\n\t\t\t\tonColorChange: setBackgroundColor,\n\t\t\t\tlabel: __('Bar Background'),\n\t\t\t},\n\t\t\t{\n\t\t\t\tcolorValue: categoryLabelColor?.color,\n\t\t\t\tonColorChange: setCategoryLabelColor,\n\t\t\t\tlabel: __('Category Label'),\n\t\t\t},\n\t\t];\n\t}, [colors]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\n\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls, PanelColorSettings } from '@wordpress/block-editor';\nimport { Fragment } from '@wordpress/element';\nimport {\n\tPanelBody,\n\tSelectControl,\n\tFlex,\n\tFlexItem,\n\t__experimentalNumberControl as NumberControl,\n\tRangeControl,\n\tTextControl,\n\tToggleControl,\n} from '@wordpress/components';\n\n/**\n * Internal Dependencies\n */\nimport ColorControls from './color-controls';\n\nexport default function Controls({ attributes, setAttributes, colors, clientId }) {\n\tconst {\n\t\tmaxWidth,\n\t\tmaxValue,\n\t\tcurrentValue,\n\t\tshowAxisLabel,\n\t\taxisLabel,\n\t\tbarPadding,\n\t\taxisLabelMaxWidth,\n\t\taxisPadding,\n\t\tlabelFormat,\n\t\tlabelPositionDY,\n\t\tlabelPositionDX,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tmaxWidth: parseInt(num, 10),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tshowAxisLabel: !showAxisLabel,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t setAttributes({ axisLabel: val })}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\taxisLabelMaxWidth: parseInt(val, 10),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({ axisPadding: parseInt(val, 10) })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\tsetAttributes({ barPadding: parseInt(val, 10) })\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tcurrentValue: parseFloat(val),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsetAttributes({ maxValue: parseFloat(val) })\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\tlabelFormat: format,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tlabelPositionDX: parseInt(value, 10),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsetAttributes({\n\t\t\t\t\t\t\t\t\t\tlabelPositionDY: parseInt(value, 10),\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcChartBuilder\"];","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\n// eslint-disable-next-line import/no-unresolved\nimport { ChartBuilderWrapper, baseConfig } from '@prc/chart-builder';\n\nfunction ProgressBar({\n\taxisLabel,\n\taxisPadding,\n\taxisLabelMaxWidth,\n\tbarColor,\n\tbarPadding,\n\tbackgroundColor,\n\tcategoryLabelColor,\n\tcurrentValue,\n\tlabelFormat,\n\tlabelPositionDX,\n\tlabelPositionDY,\n\tmaxWidth,\n\tmaxValue,\n\tshowAxisLabel,\n}) {\n\tconst config = {\n\t\t...baseConfig,\n\t\tlayout: {\n\t\t\t...baseConfig.layout,\n\t\t\tname: 'progress-chart',\n\t\t\tparentClass: 'wp-block-prc-block-progress-bar',\n\t\t\ttype: 'stacked-bar',\n\t\t\torientation: 'horizontal',\n\t\t\ttheme: 'light',\n\t\t\twidth: maxWidth,\n\t\t\theight: 40,\n\t\t\tpadding: {\n\t\t\t\ttop: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\tleft: showAxisLabel ? axisPadding : 0,\n\t\t\t\tright: 0,\n\t\t\t},\n\t\t\thorizontalRules: false,\n\t\t},\n\t\tmetadata: {\n\t\t\t...baseConfig.metadata,\n\t\t\tactive: false,\n\t\t},\n\t\tcolors: [barColor, backgroundColor],\n\n\t\tindependentAxis: {\n\t\t\t...baseConfig.independentAxis,\n\t\t\tactive: showAxisLabel,\n\t\t\tscale: 'linear',\n\t\t\tdateFormat: 'yyyy',\n\t\t\tdomain: [0, maxValue],\n\t\t\tdomainPadding: 50,\n\t\t\toffsetY: null,\n\t\t\tpadding: 50,\n\t\t\ttickCount: 5,\n\t\t\ttickValues: null,\n\t\t\ttickFormat: null,\n\t\t\tmultiLineTickLabels: false,\n\t\t\tmultiLineTickLabelsBreak: 1,\n\t\t\tabbreviateTicks: false,\n\t\t\tabbreviateTicksDecimals: 0,\n\t\t\ttickUnit: '',\n\t\t\ttickUnitPosition: 'end',\n\t\t\tcustomTickFormat: null,\n\t\t\ttickLabels: {\n\t\t\t\t...baseConfig.independentAxis.tickLabels,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 0,\n\t\t\t\tangle: 0,\n\t\t\t\tdx: -5,\n\t\t\t\tdy: 0,\n\t\t\t\ttextAnchor: 'end',\n\t\t\t\tverticalAnchor: 'middle',\n\t\t\t\tfill: categoryLabelColor,\n\t\t\t\tmaxWidth: axisLabelMaxWidth,\n\t\t\t},\n\t\t\taxisLabel: {\n\t\t\t\t...baseConfig.independentAxis.axisLabel,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 30,\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\taxis: {\n\t\t\t\t...baseConfig.independentAxis.axis,\n\t\t\t\tstroke: '#756f6b00',\n\t\t\t},\n\t\t\tticks: {\n\t\t\t\t...baseConfig.independentAxis.ticks,\n\t\t\t\tstroke: 'gray',\n\t\t\t\tsize: 0,\n\t\t\t\tstrokeWidth: 0,\n\t\t\t},\n\t\t\tgrid: {\n\t\t\t\t...baseConfig.independentAxis.grid,\n\t\t\t\tstroke: '',\n\t\t\t},\n\t\t},\n\t\tdependentAxis: {\n\t\t\t...baseConfig.dependentAxis,\n\t\t\tactive: false,\n\t\t\tscale: 'linear',\n\t\t\tpadding: 20,\n\t\t\tdomain: [0, maxValue],\n\t\t\tdomainPadding: 20,\n\t\t\toffsetX: null,\n\t\t\tshowZero: false,\n\t\t\ttickCount: 5,\n\t\t\ttickValues: null,\n\t\t\ttickFormat: null,\n\t\t\tmultiLineTickLabels: false,\n\t\t\tmultiLineTickLabelsBreak: 1,\n\t\t\tabbreviateTicks: false,\n\t\t\tabbreviateTicksDecimals: 0,\n\t\t\ttickUnit: '',\n\t\t\ttickUnitPosition: 'end',\n\t\t\tcustomTickFormat: null,\n\t\t\ttickLabels: {\n\t\t\t\t...baseConfig.dependentAxis.tickLabels,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 15,\n\t\t\t\tangle: 0,\n\t\t\t\tdx: 0,\n\t\t\t\tdy: 0,\n\t\t\t\ttextAnchor: 'middle',\n\t\t\t\tverticalAnchor: 'start',\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\taxisLabel: {\n\t\t\t\t...baseConfig.dependentAxis.axisLabel,\n\t\t\t\tfontSize: 12,\n\t\t\t\tpadding: 30,\n\t\t\t\tfill: 'rgba(35, 31, 32,0.7)',\n\t\t\t},\n\t\t\tticks: {\n\t\t\t\t...baseConfig.dependentAxis.ticks,\n\t\t\t\tstroke: 'gray',\n\t\t\t\tsize: 5,\n\t\t\t\tstrokeWidth: 0,\n\t\t\t},\n\t\t\taxis: {\n\t\t\t\t...baseConfig.dependentAxis.axis,\n\t\t\t\tstroke: '#756f6a',\n\t\t\t},\n\t\t\tgrid: {\n\t\t\t\t...baseConfig.dependentAxis.grid,\n\t\t\t\tstroke: '',\n\t\t\t},\n\t\t},\n\t\tdataRender: {\n\t\t\t...baseConfig.dataRender,\n\t\t\tx: 'x',\n\t\t\ty: 'y',\n\t\t\tx2: null,\n\t\t\ty2: null,\n\t\t\tsortKey: 'x',\n\t\t\tsortOrder: 'none',\n\t\t\tcategories: ['currentValue', 'restOfBar'],\n\t\t\txScale: 'linear',\n\t\t\tyScale: 'linear',\n\t\t\txFormat: 'yyyy',\n\t\t\tyFormat: 'yyyy',\n\t\t},\n\t\tanimate: {\n\t\t\tactive: false,\n\t\t\tduration: 500,\n\t\t},\n\t\ttooltip: {\n\t\t\t...baseConfig.tooltip,\n\t\t\tactive: false,\n\t\t},\n\t\tlegend: {\n\t\t\tactive: false,\n\t\t},\n\t\tbar: {\n\t\t\t...baseConfig.bar,\n\t\t\tbarPadding: barPadding / 100,\n\t\t},\n\t\tlabels: {\n\t\t\t...baseConfig.labels,\n\t\t\tactive: true,\n\t\t\tshowFirstLastPointsOnly: false,\n\t\t\tcolor: 'black',\n\t\t\tfontWeight: 200,\n\t\t\tfontSize: 12,\n\t\t\tlabelBarPosition: 'inside',\n\t\t\tlabelCutoff: 0,\n\t\t\tlabelCutoffMobile: 0,\n\t\t\tlabelPositionDX,\n\t\t\tlabelPositionDY,\n\t\t\tpieLabelRadius: 60,\n\t\t\tabbreviateValue: false,\n\t\t\ttoFixedDecimal: 0,\n\t\t\tlabelUnit: '',\n\t\t\tlabelUnitPosition: 'end',\n\t\t\tlabelFormat: null,\n\t\t\tcustomLabelFormat: (value, category) => {\n\t\t\t\tif ('currentValue' === category) {\n\t\t\t\t\treturn 'fractional' === labelFormat\n\t\t\t\t\t\t? `${currentValue}/${maxValue}`\n\t\t\t\t\t\t: `${((currentValue / maxValue) * 100).toFixed(0)}%\t`;\n\t\t\t\t}\n\t\t\t\treturn '';\n\t\t\t},\n\t\t},\n\t};\n\n\tconst data = [\n\t\t{\n\t\t\tx: axisLabel,\n\t\t\tcurrentValue,\n\t\t\trestOfBar: maxValue - currentValue,\n\t\t},\n\t];\n\n\treturn ;\n}\n\nexport default ProgressBar;\n","/* eslint-disable no-param-reassign */\n/**\n * WordPress Dependencies\n */\nimport { createReduxStore } from '@wordpress/data';\n\nconst store = createReduxStore('prc-block/progress-bar', {\n\t// a redux store that has two variables: isCopied which is a boolean\n\t// and copiedStyles which is an object that holds the styles\n\treducer: (\n\t\tstate = {\n\t\t\tisCopied: false,\n\t\t\tcopiedStyles: {},\n\t\t},\n\t\taction\n\t) => {\n\t\tswitch (action.type) {\n\t\t\tcase 'COPY_LAYOUT_STYLES':\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tisCopied: true,\n\t\t\t\t\tcopiedStyles: action.payload,\n\t\t\t\t};\n\t\t\tdefault:\n\t\t\t\treturn state;\n\t\t}\n\t},\n\tactions: {\n\t\tcopyLayoutStyles(styles) {\n\t\t\treturn {\n\t\t\t\ttype: 'COPY_LAYOUT_STYLES',\n\t\t\t\tpayload: styles,\n\t\t\t};\n\t\t},\n\t},\n\tselectors: {\n\t\tgetCopiedStylesStatus(state) {\n\t\t\treturn state.isCopied;\n\t\t},\n\t\tgetCopiedStyles(state) {\n\t\t\treturn state.copiedStyles;\n\t\t},\n\t},\n});\n\nexport default store;\n","/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Fragment } from '@wordpress/element';\nimport { useDispatch, select } from '@wordpress/data';\nimport { BlockControls } from '@wordpress/block-editor';\nimport { ToolbarButton, ToolbarGroup } from '@wordpress/components';\n/**\n * Internal Dependencies\n */\nimport store from './store';\n\nconst COPY_STYLES_LABEL = __('Copy layout');\nconst PASTE_STYLES_LABEL = __('Paste layout');\n\nconst CopyPasteStylesHandler = ({ children, attributes, setAttributes }) => {\n\tconst {\n\t\tmaxWidth,\n\t\tbarColor,\n\t\tbackgroundColor,\n\t\tcategoryLabelColor,\n\t\tshowAxisLabel,\n\t\taxisPadding,\n\t\taxisLabelMaxWidth,\n\t\tlabelFormat,\n\t\tlabelPositionDX,\n\t\tlabelPositionDY,\n\t} = attributes;\n\tconst layoutAttributes = {\n\t\tmaxWidth,\n\t\tbarColor,\n\t\tbackgroundColor,\n\t\tcategoryLabelColor,\n\t\tshowAxisLabel,\n\t\taxisPadding,\n\t\taxisLabelMaxWidth,\n\t\tlabelFormat,\n\t\tlabelPositionDX,\n\t\tlabelPositionDY,\n\t};\n\n\tconst { copyLayoutStyles } = useDispatch(store);\n\n\tconst hasCopiedLayoutStyles = select(store).getCopiedStylesStatus();\n\tconst copyStyles = () => {\n\t\tcopyLayoutStyles(layoutAttributes);\n\t};\n\tconst pasteStyles = () => {\n\t\tconst { getCopiedStyles } = select(store);\n\t\tconst styles = getCopiedStyles();\n\t\tconsole.log({ styles });\n\t\tsetAttributes({\n\t\t\t...attributes,\n\t\t\t...styles,\n\t\t});\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t copyStyles()}\n\t\t\t\t\t>\n\t\t\t\t\t\t{COPY_STYLES_LABEL}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{hasCopiedLayoutStyles && (\n\t\t\t\t\t\n\t\t\t\t\t\t pasteStyles()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{PASTE_STYLES_LABEL}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\n\t\t\t{children}\n\t\t\n\t);\n};\n\nexport default CopyPasteStylesHandler;\n","/**\n * WordPress Dependencies\n */\nimport { useBlockProps, withColors } from '@wordpress/block-editor';\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\nimport ProgressBar from './progress-bar';\nimport CopyPasteStylesHandler from './copy-past-styles-handler';\n/**\n * The edit function describes the structure of your block in the context of the\n * editor. This represents what the editor will render when the block is used.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @param {Function} props.setAttributes Function that updates individual attributes.\n *\n * @return {WPElement} Element to render.\n */\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tbarColor,\n\tsetBarColor,\n\tbackgroundColor,\n\tsetBackgroundColor,\n\tcategoryLabelColor,\n\tsetCategoryLabelColor,\n}) {\n\tconst blockProps = useBlockProps();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n\nexport default withColors(\n\t{ barColor: 'color' },\n\t{ backgroundColor: 'color' },\n\t{ categoryLabelColor: 'color' }\n)(Edit);\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcIcons\"];","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\n\n/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\nimport { register } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor. All other files\n * get applied to the editor only.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport edit from './edit';\nimport icon from './icon';\n\nimport metadata from './block.json';\nimport store from './store';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n};\n\nregister(store);\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\nregisterBlockType(name, { ...metadata, ...settings });\n","/**\n * External Dependencies\n */\nimport { Icon } from '@prc/icons';\n\nexport default function () {\n\treturn ;\n}\n"],"names":["window","ColorControls","colors","clientId","colorProps","useMultipleOriginColorsAndGradients","colorSettings","useMemo","barColor","setBarColor","backgroundColor","setBackgroundColor","categoryLabelColor","setCategoryLabelColor","colorValue","color","onColorChange","label","__","createElement","Fragment","InspectorControls","group","ColorGradientSettingsDropdown","settings","panelId","hasColorsOrGradients","disableCustomColors","__experimentalIsRenderedInSidebar","Controls","attributes","setAttributes","maxWidth","maxValue","currentValue","showAxisLabel","axisLabel","barPadding","axisLabelMaxWidth","axisPadding","labelFormat","labelPositionDY","labelPositionDX","PanelBody","title","RangeControl","withInputField","min","max","value","parseInt","onChange","num","ToggleControl","checked","TextControl","disabled","val","NumberControl","disableUnits","disabledUnits","Flex","FlexItem","parseFloat","SelectControl","options","format","config","baseConfig","layout","name","parentClass","type","orientation","theme","width","height","padding","top","bottom","left","right","horizontalRules","metadata","active","independentAxis","scale","dateFormat","domain","domainPadding","offsetY","tickCount","tickValues","tickFormat","multiLineTickLabels","multiLineTickLabelsBreak","abbreviateTicks","abbreviateTicksDecimals","tickUnit","tickUnitPosition","customTickFormat","tickLabels","fontSize","angle","dx","dy","textAnchor","verticalAnchor","fill","axis","stroke","ticks","size","strokeWidth","grid","dependentAxis","offsetX","showZero","dataRender","x","y","x2","y2","sortKey","sortOrder","categories","xScale","yScale","xFormat","yFormat","animate","duration","tooltip","legend","bar","labels","showFirstLastPointsOnly","fontWeight","labelBarPosition","labelCutoff","labelCutoffMobile","pieLabelRadius","abbreviateValue","toFixedDecimal","labelUnit","labelUnitPosition","customLabelFormat","category","toFixed","data","restOfBar","ChartBuilderWrapper","createReduxStore","reducer","state","isCopied","copiedStyles","action","payload","actions","copyLayoutStyles","styles","selectors","getCopiedStylesStatus","getCopiedStyles","COPY_STYLES_LABEL","PASTE_STYLES_LABEL","CopyPasteStylesHandler","children","layoutAttributes","useDispatch","store","hasCopiedLayoutStyles","select","BlockControls","ToolbarGroup","ToolbarButton","onClick","pasteStyles","console","log","withColors","blockProps","useBlockProps","ProgressBar","icon","Icon","edit","register","registerBlockType"],"sourceRoot":""}
\ No newline at end of file
diff --git a/blocks/progress-bar/package-lock.json b/blocks/progress-bar/package-lock.json
index e15788391..2989cc638 100644
--- a/blocks/progress-bar/package-lock.json
+++ b/blocks/progress-bar/package-lock.json
@@ -2830,22 +2830,6 @@
"url": "https://opencollective.com/unts"
}
},
- "node_modules/@playwright/test": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.42.1.tgz",
- "integrity": "sha512-Gq9rmS54mjBL/7/MvBaNOBwbfnh7beHvS6oS4srqXFcQHpQCV1+c8JXWE8VLPyRDhgS3H8x8A7hztqI9VnwrAQ==",
- "dev": true,
- "peer": true,
- "dependencies": {
- "playwright": "1.42.1"
- },
- "bin": {
- "playwright": "cli.js"
- },
- "engines": {
- "node": ">=16"
- }
- },
"node_modules/@pmmmwh/react-refresh-webpack-plugin": {
"version": "0.5.11",
"resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.11.tgz",
@@ -13960,25 +13944,6 @@
"node": ">=8"
}
},
- "node_modules/playwright": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.1.tgz",
- "integrity": "sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==",
- "dev": true,
- "peer": true,
- "dependencies": {
- "playwright-core": "1.42.1"
- },
- "bin": {
- "playwright": "cli.js"
- },
- "engines": {
- "node": ">=16"
- },
- "optionalDependencies": {
- "fsevents": "2.3.2"
- }
- },
"node_modules/playwright-core": {
"version": "1.39.0",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz",
@@ -13991,34 +13956,6 @@
"node": ">=16"
}
},
- "node_modules/playwright/node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "dev": true,
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/playwright/node_modules/playwright-core": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.1.tgz",
- "integrity": "sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==",
- "dev": true,
- "peer": true,
- "bin": {
- "playwright-core": "cli.js"
- },
- "engines": {
- "node": ">=16"
- }
- },
"node_modules/plur": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz",
@@ -15129,20 +15066,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/react-dom": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
- "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
- "dev": true,
- "peer": true,
- "dependencies": {
- "loose-envify": "^1.1.0",
- "scheduler": "^0.23.0"
- },
- "peerDependencies": {
- "react": "^18.2.0"
- }
- },
"node_modules/react-is": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
@@ -15780,16 +15703,6 @@
"node": ">=v12.22.7"
}
},
- "node_modules/scheduler": {
- "version": "0.23.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
- "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
- "dev": true,
- "peer": true,
- "dependencies": {
- "loose-envify": "^1.1.0"
- }
- },
"node_modules/schema-utils": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
@@ -17505,20 +17418,6 @@
"is-typedarray": "^1.0.0"
}
},
- "node_modules/typescript": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
- "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
- "dev": true,
- "peer": true,
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=14.17"
- }
- },
"node_modules/uc.micro": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
@@ -19147,8 +19046,7 @@
"version": "7.21.0-placeholder-for-preset-env.2",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
"integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@babel/plugin-syntax-async-generators": {
"version": "7.8.4",
@@ -20091,8 +19989,7 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz",
"integrity": "sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@discoveryjs/json-ext": {
"version": "0.5.7",
@@ -20686,16 +20583,6 @@
"integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==",
"dev": true
},
- "@playwright/test": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.42.1.tgz",
- "integrity": "sha512-Gq9rmS54mjBL/7/MvBaNOBwbfnh7beHvS6oS4srqXFcQHpQCV1+c8JXWE8VLPyRDhgS3H8x8A7hztqI9VnwrAQ==",
- "dev": true,
- "peer": true,
- "requires": {
- "playwright": "1.42.1"
- }
- },
"@pmmmwh/react-refresh-webpack-plugin": {
"version": "0.5.11",
"resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.11.tgz",
@@ -20929,57 +20816,49 @@
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz",
"integrity": "sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-remove-jsx-attribute": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz",
"integrity": "sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-remove-jsx-empty-expression": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz",
"integrity": "sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-replace-jsx-attribute-value": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz",
"integrity": "sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-svg-dynamic-title": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz",
"integrity": "sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-svg-em-dimensions": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz",
"integrity": "sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-transform-react-native-svg": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz",
"integrity": "sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-plugin-transform-svg-component": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz",
"integrity": "sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@svgr/babel-preset": {
"version": "8.1.0",
@@ -21880,22 +21759,19 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz",
"integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@webpack-cli/info": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz",
"integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@webpack-cli/serve": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz",
"integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@wordpress/api-fetch": {
"version": "6.50.0",
@@ -21912,8 +21788,7 @@
"version": "4.36.0",
"resolved": "https://registry.npmjs.org/@wordpress/babel-plugin-import-jsx-pragma/-/babel-plugin-import-jsx-pragma-4.36.0.tgz",
"integrity": "sha512-xgBy9HnA0xL5e0Ipku7Ga3QimrfwTQ3njnN79mT8wNcim2APIlyiWSG3GndTdPoSGdrxGPv2ZrpqBdKsiGzoWQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@wordpress/babel-preset-default": {
"version": "7.37.0",
@@ -22085,8 +21960,7 @@
"version": "4.38.0",
"resolved": "https://registry.npmjs.org/@wordpress/npm-package-json-lint-config/-/npm-package-json-lint-config-4.38.0.tgz",
"integrity": "sha512-RT5dDPaHiPNzVTcLV6HTHArRBPzAhQPMKZi2BX16rrlYLwcr9TNMVJQ787RXxLmkr83BvudZqsHF4va06FwVLQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@wordpress/postcss-plugins-preset": {
"version": "4.37.0",
@@ -22102,8 +21976,7 @@
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-3.10.0.tgz",
"integrity": "sha512-0zA3K1zDyRjUhTY+zKfBvQMKqEbYK/hC3NOabEWZ++pvT5JYJrD7ZVXE+l5TDVd/d2rqxM0eLssh/yIyWyaeSQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"@wordpress/scripts": {
"version": "27.4.0",
@@ -22245,15 +22118,13 @@
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
"integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"acorn-jsx": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"acorn-walk": {
"version": "8.3.2",
@@ -22292,8 +22163,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz",
"integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"ajv-formats": {
"version": "2.1.1",
@@ -22328,8 +22198,7 @@
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"ansi-colors": {
"version": "4.1.3",
@@ -23702,8 +23571,7 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-7.1.1.tgz",
"integrity": "sha512-dZ3bVTEEc1vxr3Bek9vGwfB5Z6ESPULhcRvO472mfjVnj8jRcTnKO8/JTczlvxM10Myb+wBM++1MtdO76eWcaQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"css-functions-list": {
"version": "3.2.1",
@@ -23840,8 +23708,7 @@
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-4.0.2.tgz",
"integrity": "sha512-ZR1jHg+wZ8o4c3zqf1SIUSTIvm/9mU343FMR6Obe/unskbvpGhZOo1J6d/r8D1pzkRQYuwbcH3hToOuoA2G7oQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"csso": {
"version": "5.0.5",
@@ -23975,8 +23842,7 @@
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz",
"integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"deep-extend": {
"version": "0.6.0",
@@ -24662,8 +24528,7 @@
"version": "8.10.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz",
"integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"eslint-import-resolver-node": {
"version": "0.3.9",
@@ -24961,8 +24826,7 @@
"version": "0.15.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-playwright/-/eslint-plugin-playwright-0.15.3.tgz",
"integrity": "sha512-LQMW5y0DLK5Fnpya7JR1oAYL2/7Y9wDiYw6VZqlKqcRGSgjbVKNqxraphk7ra1U3Bb5EK444xMgUlQPbMg2M1g==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"eslint-plugin-prettier": {
"version": "5.1.3",
@@ -25045,8 +24909,7 @@
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz",
"integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"eslint-scope": {
"version": "5.1.1",
@@ -26204,8 +26067,7 @@
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
"integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"ieee754": {
"version": "1.2.1",
@@ -27112,8 +26974,7 @@
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",
"integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"jest-regex-util": {
"version": "29.6.3",
@@ -27659,8 +27520,7 @@
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
- "dev": true,
- "requires": {}
+ "dev": true
}
}
},
@@ -27696,8 +27556,7 @@
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
- "dev": true,
- "requires": {}
+ "dev": true
}
}
},
@@ -29049,34 +28908,6 @@
}
}
},
- "playwright": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.1.tgz",
- "integrity": "sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==",
- "dev": true,
- "peer": true,
- "requires": {
- "fsevents": "2.3.2",
- "playwright-core": "1.42.1"
- },
- "dependencies": {
- "fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "dev": true,
- "optional": true,
- "peer": true
- },
- "playwright-core": {
- "version": "1.42.1",
- "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.1.tgz",
- "integrity": "sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==",
- "dev": true,
- "peer": true
- }
- }
- },
"playwright-core": {
"version": "1.39.0",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.39.0.tgz",
@@ -29145,29 +28976,25 @@
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-6.0.2.tgz",
"integrity": "sha512-65w/uIqhSBBfQmYnG92FO1mWZjJ4GL5b8atm5Yw2UgrwD7HiNiSSNwJor1eCFGzUgYnN/iIknhNRVqjrrpuglw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-duplicates": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-6.0.3.tgz",
"integrity": "sha512-+JA0DCvc5XvFAxwx6f/e68gQu/7Z9ud584VLmcgto28eB8FqSFZwtrLwB5Kcp70eIoWP/HXqz4wpo8rD8gpsTw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-empty": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-6.0.3.tgz",
"integrity": "sha512-znyno9cHKQsK6PtxL5D19Fj9uwSzC2mB74cpT66fhgOadEUPyXFkbgwm5tvc3bt3NAy8ltE5MrghxovZRVnOjQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-overridden": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-6.0.2.tgz",
"integrity": "sha512-j87xzI4LUggC5zND7KdjsI25APtyMuynXZSujByMaav2roV6OZX+8AaCUcZSWqckZpjAjRyFDdpqybgjFO0HJQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-loader": {
"version": "6.2.1",
@@ -29291,8 +29118,7 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",
"integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-modules-local-by-default": {
"version": "4.0.4",
@@ -29327,8 +29153,7 @@
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-6.0.2.tgz",
"integrity": "sha512-a8N9czmdnrjPHa3DeFlwqst5eaL5W8jYu3EBbTTkI5FHkfMhFZh1EGbku6jhHhIzTA6tquI2P42NtZ59M/H/kQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-normalize-display-values": {
"version": "6.0.2",
@@ -29442,15 +29267,13 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz",
"integrity": "sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-scss": {
"version": "4.0.9",
"resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz",
"integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-selector-parser": {
"version": "6.0.16",
@@ -29718,8 +29541,7 @@
"version": "8.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
"integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
- "dev": true,
- "requires": {}
+ "dev": true
}
}
},
@@ -29815,17 +29637,6 @@
"loose-envify": "^1.1.0"
}
},
- "react-dom": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
- "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
- "dev": true,
- "peer": true,
- "requires": {
- "loose-envify": "^1.1.0",
- "scheduler": "^0.23.0"
- }
- },
"react-is": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
@@ -30276,16 +30087,6 @@
"xmlchars": "^2.2.0"
}
},
- "scheduler": {
- "version": "0.23.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
- "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
- "dev": true,
- "peer": true,
- "requires": {
- "loose-envify": "^1.1.0"
- }
- },
"schema-utils": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz",
@@ -31111,8 +30912,7 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-6.0.0.tgz",
"integrity": "sha512-ZorSSdyMcxWpROYUvLEMm0vSZud2uB7tX1hzBZwvVY9SV/uly4AvvJPPhCcymZL3fcQhEQG5AELmrxWqtmzacw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"stylelint-config-recommended-scss": {
"version": "5.0.2",
@@ -31500,8 +31300,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz",
"integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"tsconfig-paths": {
"version": "3.15.0",
@@ -31647,13 +31446,6 @@
"is-typedarray": "^1.0.0"
}
},
- "typescript": {
- "version": "5.4.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
- "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
- "dev": true,
- "peer": true
- },
"uc.micro": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
@@ -31998,8 +31790,7 @@
"version": "7.5.9",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
- "dev": true,
- "requires": {}
+ "dev": true
}
}
},
@@ -32400,8 +32191,7 @@
"version": "8.16.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
"integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"xdg-basedir": {
"version": "4.0.0",
diff --git a/blocks/progress-bar/src/block.json b/blocks/progress-bar/src/block.json
index 0463d0006..02c2647d4 100644
--- a/blocks/progress-bar/src/block.json
+++ b/blocks/progress-bar/src/block.json
@@ -22,7 +22,7 @@
},
"backgroundColor": {
"type": "string",
- "default": "ui-beige-very-light"
+ "default": "beige"
},
"categoryLabelColor": {
"type": "string",
diff --git a/blocks/progress-bar/src/color-controls.jsx b/blocks/progress-bar/src/color-controls.jsx
index 052d5315e..b0f030438 100644
--- a/blocks/progress-bar/src/color-controls.jsx
+++ b/blocks/progress-bar/src/color-controls.jsx
@@ -13,7 +13,10 @@ import {
__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,
} from '@wordpress/block-editor';
-export default function ColorControls({ colors, clientId }) {
+export default function ColorControls({
+ colors,
+ clientId,
+}) {
const colorProps = useMultipleOriginColorsAndGradients();
const colorSettings = useMemo(() => {
@@ -46,15 +49,17 @@ export default function ColorControls({ colors, clientId }) {
}, [colors]);
return (
-
-
-
+
+
+
+
+
);
}