From 6b429d907a57f0552328a208b3eef32f72b94766 Mon Sep 17 00:00:00 2001 From: prcdevgitbot Date: Fri, 15 Mar 2024 15:04:35 +0000 Subject: [PATCH] See https://github.com/pewresearch/pewresearch-org/commit/cdb97774ce18f77d71425f48dcd2e9240d22db88 from refs/heads/release/5.0 --- blocks/form-input-select/build/render.php | 1 - blocks/grid-column/build/block.json | 4 +- blocks/grid-column/build/index.asset.php | 2 +- blocks/grid-column/build/index.js | 2 +- blocks/grid-column/build/index.js.map | 2 +- blocks/grid-column/package-lock.json | 251 +++++++++++++++---- blocks/grid-column/src/block.json | 4 +- blocks/grid-controller/build/block.json | 6 +- blocks/grid-controller/build/index.asset.php | 2 +- blocks/grid-controller/build/index.js | 2 +- blocks/grid-controller/build/index.js.map | 2 +- blocks/grid-controller/package-lock.json | 251 +++++++++++++++---- blocks/grid-controller/src/block.json | 6 +- blocks/grid-controller/src/controls.jsx | 5 +- 14 files changed, 436 insertions(+), 104 deletions(-) diff --git a/blocks/form-input-select/build/render.php b/blocks/form-input-select/build/render.php index 48cdd17cb..64e88f139 100644 --- a/blocks/form-input-select/build/render.php +++ b/blocks/form-input-select/build/render.php @@ -94,7 +94,6 @@ 'data-wp-class--is-error' => 'context.isError', 'data-wp-class--is-success' => 'context.isSuccess', 'data-wp-class--is-processing' => 'context.isProcessing', - // 'data-wp-watch--on-value-change' => 'callbacks.onValueChange', 'style' => '--block-gap:' . \PRC\Platform\Block_Utils\get_block_gap_support_value($attributes, 'horizontal') . ';', ) ); diff --git a/blocks/grid-column/build/block.json b/blocks/grid-column/build/block.json index 989077764..839d6fccb 100644 --- a/blocks/grid-column/build/block.json +++ b/blocks/grid-column/build/block.json @@ -3,12 +3,12 @@ "apiVersion": 3, "name": "prc-block/grid-column", "version": "0.1.0", - "title": "Grid Column", + "title": "Column", "category": "design", "parent": [ "prc-block/grid-controller" ], - "description": "A single column within a grid block.", + "description": "A single column within a columns grid block.", "attributes": { "gridLayout": { "type": "object", diff --git a/blocks/grid-column/build/index.asset.php b/blocks/grid-column/build/index.asset.php index 24f24613a..df45b1780 100644 --- a/blocks/grid-column/build/index.asset.php +++ b/blocks/grid-column/build/index.asset.php @@ -1 +1 @@ - array('classnames', 'prc-components', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => '64c17e8235af95a9e748'); + array('classnames', 'prc-components', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-polyfill', 'wp-primitives'), 'version' => 'b8faea3a732315fe7647'); diff --git a/blocks/grid-column/build/index.js b/blocks/grid-column/build/index.js index befda9aff..0dca3e1a7 100644 --- a/blocks/grid-column/build/index.js +++ b/blocks/grid-column/build/index.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t={817:(e,t,l)=>{const r=window.React,n=window.wp.primitives,a=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})),o=window.wp.blocks,i=window.classnames;var s=l.n(i);const c=window.wp.element,d=window.wp.blockEditor,u=window.wp.data,p=window.prcComponents,m=window.wp.components,b=[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"}];function g({attributes:e,setAttributes:t,clientId:l}){const{gridLayout:n,verticalAlignment:a}=e,{index:o,desktopSpan:i,tabletSpan:s,mobileSpan:g,desktopStart:v,tabletStart:k,mobileStart:w}=n,h=(e,l="desktop")=>{const r={};r[`${l}Span`]=e,t({gridLayout:{...n,...r}})},{rootClientId:f,blockIndex:S}=(0,u.useSelect)((e=>{const{getBlockRootClientId:t,getBlockIndex:r}=e(d.store);return{rootClientId:t(l),blockIndex:r(l)+1}}),[l]),{updateBlockAttributes:x}=(0,u.useDispatch)(d.store);return(0,c.useEffect)((()=>{o!==S&&t({gridLayout:{...n,index:S}})}),[S]),(0,r.createElement)(c.Fragment,null,(0,r.createElement)(d.BlockControls,null,(0,r.createElement)(d.BlockVerticalAlignmentToolbar,{onChange:e=>{t({verticalAlignment:e}),x(f,{verticalAlignment:null})},value:a})),(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(m.PanelBody,{title:"Grid Span"},(0,r.createElement)("div",{className:"css-grid-column-controls"},(0,r.createElement)(p.MarkedRangeControl,{label:"Desktop Span",value:i,onChange:e=>{h(e,"desktop")},withInputField:!1,min:1,max:12,marks:b}),(0,r.createElement)(m.CardDivider,null),(0,r.createElement)(p.MarkedRangeControl,{label:"Tablet Span",value:s,onChange:e=>{h(e,"tablet")},withInputField:!1,min:1,max:12,marks:b}),(0,r.createElement)(m.CardDivider,null),(0,r.createElement)(p.MarkedRangeControl,{label:"Mobile Span",value:g,onChange:e=>{h(e,"mobile")},withInputField:!1,min:1,max:4,marks:b.filter((e=>4>=e.value))})))))}const v=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/grid-column","version":"0.1.0","title":"Grid Column","category":"design","parent":["prc-block/grid-controller"],"description":"A single column within a grid block.","attributes":{"gridLayout":{"type":"object","default":{"index":0,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4,"tabletStart":1,"mobileStart":1}},"verticalAlignment":{"type":"string"},"allowedBlocks":{"type":"array"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false],"default":false}},"supports":{"anchor":true,"reusable":false,"inserter":false,"html":false,"color":{"background":true,"text":true,"link":true},"spacing":{"blockGap":{"__experimentalDefault":"24px","sides":["vertical"]},"padding":true,"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true}},"__experimentalLayout":true},"providesContext":{"grid/column/desktop/span":"gridSpan","grid/column/desktop/start":"gridStart","grid/column/desktop/row":"gridRow","grid/column/tablet/span":"tabletGridSpan","grid/column/tablet/start":"tabletGridStart","grid/column/tablet/row":"tabletGridRow","grid/column/mobile/span":"mobileGridSpan","grid/column/mobile/start":"mobileGridStart","grid/column/mobile/row":"mobileGridRow"},"textdomain":"grid-column","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php"}'),{name:k}=v,w={icon:a,edit:function({attributes:e,setAttributes:t,context:l,clientId:n,isSelected:a}){const{gridLayout:o,allowedBlocks:i,templateLock:p,verticalAlignment:m}=e,{index:b,desktopSpan:v,tabletSpan:k,mobileSpan:w,desktopStart:h,tabletStart:f,mobileStart:S,desktopRow:x,tabletRow:y,mobileRow:_}=o,{hasChildBlocks:C}=(0,u.useSelect)((e=>{const{getBlockOrder:t}=e(d.store);return{hasChildBlocks:0{if(!l){var o=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](l[s])))?l.splice(s--,1):(i=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[l,n,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};r.O.j=t=>0===e[t];var t=(t,l)=>{var n,a,[o,i,s]=l,c=0;if(o.some((t=>0!==e[t]))){for(n in i)r.o(i,n)&&(r.m[n]=i[n]);if(s)var d=s(r)}for(t&&t(l);cr(817)));n=r.O(n)})(); +(()=>{"use strict";var e,t={817:(e,t,l)=>{const r=window.React,n=window.wp.primitives,a=(0,r.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(n.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})),o=window.wp.blocks,i=window.classnames;var s=l.n(i);const c=window.wp.element,d=window.wp.blockEditor,u=window.wp.data,p=window.prcComponents,m=window.wp.components,b=[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"},{value:12,label:"12"}];function g({attributes:e,setAttributes:t,clientId:l}){const{gridLayout:n,verticalAlignment:a}=e,{index:o,desktopSpan:i,tabletSpan:s,mobileSpan:g,desktopStart:v,tabletStart:k,mobileStart:w}=n,h=(e,l="desktop")=>{const r={};r[`${l}Span`]=e,t({gridLayout:{...n,...r}})},{rootClientId:f,blockIndex:S}=(0,u.useSelect)((e=>{const{getBlockRootClientId:t,getBlockIndex:r}=e(d.store);return{rootClientId:t(l),blockIndex:r(l)+1}}),[l]),{updateBlockAttributes:x}=(0,u.useDispatch)(d.store);return(0,c.useEffect)((()=>{o!==S&&t({gridLayout:{...n,index:S}})}),[S]),(0,r.createElement)(c.Fragment,null,(0,r.createElement)(d.BlockControls,null,(0,r.createElement)(d.BlockVerticalAlignmentToolbar,{onChange:e=>{t({verticalAlignment:e}),x(f,{verticalAlignment:null})},value:a})),(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(m.PanelBody,{title:"Grid Span"},(0,r.createElement)("div",{className:"css-grid-column-controls"},(0,r.createElement)(p.MarkedRangeControl,{label:"Desktop Span",value:i,onChange:e=>{h(e,"desktop")},withInputField:!1,min:1,max:12,marks:b}),(0,r.createElement)(m.CardDivider,null),(0,r.createElement)(p.MarkedRangeControl,{label:"Tablet Span",value:s,onChange:e=>{h(e,"tablet")},withInputField:!1,min:1,max:12,marks:b}),(0,r.createElement)(m.CardDivider,null),(0,r.createElement)(p.MarkedRangeControl,{label:"Mobile Span",value:g,onChange:e=>{h(e,"mobile")},withInputField:!1,min:1,max:4,marks:b.filter((e=>4>=e.value))})))))}const v=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/grid-column","version":"0.1.0","title":"Column","category":"design","parent":["prc-block/grid-controller"],"description":"A single column within a columns grid block.","attributes":{"gridLayout":{"type":"object","default":{"index":0,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4,"tabletStart":1,"mobileStart":1}},"verticalAlignment":{"type":"string"},"allowedBlocks":{"type":"array"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false],"default":false}},"supports":{"anchor":true,"reusable":false,"inserter":false,"html":false,"color":{"background":true,"text":true,"link":true},"spacing":{"blockGap":{"__experimentalDefault":"24px","sides":["vertical"]},"padding":true,"__experimentalDefaultControls":{"padding":true}},"__experimentalBorder":{"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true}},"__experimentalLayout":true},"providesContext":{"grid/column/desktop/span":"gridSpan","grid/column/desktop/start":"gridStart","grid/column/desktop/row":"gridRow","grid/column/tablet/span":"tabletGridSpan","grid/column/tablet/start":"tabletGridStart","grid/column/tablet/row":"tabletGridRow","grid/column/mobile/span":"mobileGridSpan","grid/column/mobile/start":"mobileGridStart","grid/column/mobile/row":"mobileGridRow"},"textdomain":"grid-column","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php"}'),{name:k}=v,w={icon:a,edit:function({attributes:e,setAttributes:t,context:l,clientId:n,isSelected:a}){const{gridLayout:o,allowedBlocks:i,templateLock:p,verticalAlignment:m}=e,{index:b,desktopSpan:v,tabletSpan:k,mobileSpan:w,desktopStart:h,tabletStart:f,mobileStart:S,desktopRow:x,tabletRow:y,mobileRow:_}=o,{hasChildBlocks:C}=(0,u.useSelect)((e=>{const{getBlockOrder:t}=e(d.store);return{hasChildBlocks:0{if(!l){var o=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](l[s])))?l.splice(s--,1):(i=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[l,n,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};r.O.j=t=>0===e[t];var t=(t,l)=>{var n,a,[o,i,s]=l,c=0;if(o.some((t=>0!==e[t]))){for(n in i)r.o(i,n)&&(r.m[n]=i[n]);if(s)var d=s(r)}for(t&&t(l);cr(817)));n=r.O(n)})(); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/blocks/grid-column/build/index.js.map b/blocks/grid-column/build/index.js.map index b02c48e05..591eee889 100644 --- a/blocks/grid-column/build/index.js.map +++ b/blocks/grid-column/build/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","mappings":"uBAAIA,E,iBCAJ,MAAM,EAA+BC,OAAc,MCA7C,EAA+BA,OAAW,GAAc,WCW9D,GANe,IAAAC,eAAc,EAAAC,IAAK,CAChCC,MAAO,6BACPC,QAAS,cACR,IAAAH,eAAc,EAAAI,KAAM,CACrBC,EAAG,oLCTC,EAA+BN,OAAW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,EAAKqB,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BC,KACvD,IAGIvC,EAAUoC,GAHT5B,EAAUgC,EAAaC,GAAWF,EAGhB1B,EAAI,EAC3B,GAAGL,EAASkC,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAI3C,KAAYwC,EACZzC,EAAoB4B,EAAEa,EAAaxC,KACrCD,EAAoBM,EAAEL,GAAYwC,EAAYxC,IAGhD,GAAGyC,EAAS,IAAIlC,EAASkC,EAAQ1C,EAClC,CAEA,IADGuC,GAA4BA,EAA2BC,GACrD1B,EAAIL,EAASxB,OAAQ6B,IACzBuB,EAAU5B,EAASK,GAChBd,EAAoB4B,EAAEQ,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOrC,EAAoBO,EAAEC,EAAO,EAGjCqC,EAAqBC,WAAoC,wBAAIA,WAAoC,yBAAK,GAC1GD,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBI,KAAOX,EAAqBU,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,KC9CvF,IAAIK,EAAsBlD,EAAoBO,OAAEd,EAAW,CAAC,MAAM,IAAOO,EAAoB,OAC7FkD,EAAsBlD,EAAoBO,EAAE2C,E","sources":["webpack://grid-column/webpack/runtime/chunk loaded","webpack://grid-column/external window \"React\"","webpack://grid-column/external window [\"wp\",\"primitives\"]","webpack://grid-column/./node_modules/@wordpress/icons/build-module/library/column.js","webpack://grid-column/external window [\"wp\",\"blocks\"]","webpack://grid-column/external window \"classnames\"","webpack://grid-column/external window [\"wp\",\"element\"]","webpack://grid-column/external window [\"wp\",\"blockEditor\"]","webpack://grid-column/external window [\"wp\",\"data\"]","webpack://grid-column/external window \"prcComponents\"","webpack://grid-column/external window [\"wp\",\"components\"]","webpack://grid-column/./src/controls.jsx","webpack://grid-column/./src/index.js","webpack://grid-column/./src/edit.jsx","webpack://grid-column/./src/save.jsx","webpack://grid-column/webpack/bootstrap","webpack://grid-column/webpack/runtime/compat get default export","webpack://grid-column/webpack/runtime/define property getters","webpack://grid-column/webpack/runtime/hasOwnProperty shorthand","webpack://grid-column/webpack/runtime/jsonp chunk loading","webpack://grid-column/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst column = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z\"\n}));\nexport default column;\n//# sourceMappingURL=column.js.map","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"classnames\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcComponents\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/**\n * External Dependencies\n */\nimport { MarkedRangeControl } from '@prc/components';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment, useEffect } from '@wordpress/element';\nimport {\n\tBlockControls,\n\tBlockVerticalAlignmentToolbar,\n\tInspectorControls,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport {\n\tCardDivider,\n\tPanelBody,\n} from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\n\nconst MARKS = [\n\t{\n\t\tvalue: 1,\n\t\tlabel: '1',\n\t},\n\t{\n\t\tvalue: 2,\n\t\tlabel: '2',\n\t},\n\t{\n\t\tvalue: 3,\n\t\tlabel: '3',\n\t},\n\t{\n\t\tvalue: 4,\n\t\tlabel: '4',\n\t},\n\t{\n\t\tvalue: 5,\n\t\tlabel: '5',\n\t},\n\t{\n\t\tvalue: 6,\n\t\tlabel: '6',\n\t},\n\t{\n\t\tvalue: 7,\n\t\tlabel: '7',\n\t},\n\t{\n\t\tvalue: 8,\n\t\tlabel: '8',\n\t},\n\t{\n\t\tvalue: 9,\n\t\tlabel: '9',\n\t},\n\t{\n\t\tvalue: 10,\n\t\tlabel: '10',\n\t},\n\t{\n\t\tvalue: 11,\n\t\tlabel: '11',\n\t},\n\t{\n\t\tvalue: 12,\n\t\tlabel: '12',\n\t},\n];\n\nexport default function Controls({ attributes, setAttributes, clientId }) {\n\tconst { gridLayout, verticalAlignment } = attributes;\n\tconst {\n\t\tindex,\n\t\tdesktopSpan,\n\t\ttabletSpan,\n\t\tmobileSpan,\n\t\tdesktopStart,\n\t\ttabletStart,\n\t\tmobileStart,\n\t} = gridLayout;\n\n\tconst handleGridSpanChange = (newGridSpan, device = 'desktop') => {\n\t\tconst obj = {};\n\t\tobj[`${device}Span`] = newGridSpan;\n\n\t\tsetAttributes({\n\t\t\tgridLayout: {\n\t\t\t\t...gridLayout,\n\t\t\t\t...obj,\n\t\t\t},\n\t\t});\n\t};\n\n\tconst handleGridStartChange = (newGridStart, device = 'desktop') => {\n\t\tconst obj = {};\n\t\tobj[`${device}Start`] = newGridStart;\n\n\t\tsetAttributes({\n\t\t\tgridLayout: {\n\t\t\t\t...gridLayout,\n\t\t\t\t...obj,\n\t\t\t},\n\t\t});\n\t};\n\n\tconst { rootClientId, blockIndex } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockRootClientId, getBlockIndex } = select(blockEditorStore);\n\t\t\tconst rootId = getBlockRootClientId(clientId);\n\t\t\treturn {\n\t\t\t\trootClientId: rootId,\n\t\t\t\tblockIndex: getBlockIndex(clientId) + 1,\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\n\tconst { updateBlockAttributes } = useDispatch(blockEditorStore);\n\n\tconst updateVerticalAlignment = (value) => {\n\t\t// Update own alignment.\n\t\tsetAttributes({ verticalAlignment: value });\n\t\t// Reset parent Columns block.\n\t\tupdateBlockAttributes(rootClientId, {\n\t\t\tverticalAlignment: null,\n\t\t});\n\t};\n\n\tuseEffect(() => {\n\t\tif (index !== blockIndex) {\n\t\t\tsetAttributes({\n\t\t\t\tgridLayout: {\n\t\t\t\t\t...gridLayout,\n\t\t\t\t\tindex: blockIndex,\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t}, [blockIndex]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\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\thandleGridSpanChange(newSpan, 'desktop');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={12}\n\t\t\t\t\t\t\tmarks={MARKS}\n\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\thandleGridSpanChange(newSpan, 'tablet');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={12}\n\t\t\t\t\t\t\tmarks={MARKS}\n\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\thandleGridSpanChange(newSpan, 'mobile');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={4}\n\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 4 >= item.value)}\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\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleGridStartChange(newStart, 'tablet');\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\t\tmax={8}\n\t\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 8 >= item.value)}\n\t\t\t\t\t\t\t\tinitialPosition={0}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleGridStartChange(newStart, 'mobile');\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\t\tmax={4}\n\t\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 4 >= item.value)}\n\t\t\t\t\t\t\t\tinitialPosition={0}\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
\n\t);\n}\n","/**\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 */\nimport { column as icon } from '@wordpress/icons';\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\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 './editor.scss';\nimport './style.scss';\nimport edit from './edit';\nimport save from './save';\n\nimport metadata from './block.json';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n\tsave,\n};\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","/* eslint-disable no-unused-vars */\n/**\n * External Dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport {\n\tInnerBlocks,\n\tuseInnerBlocksProps,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\n\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 */\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tcontext,\n\tclientId,\n\tisSelected,\n}) {\n\tconst { gridLayout, allowedBlocks, templateLock, verticalAlignment } =\n\t\tattributes;\n\n\tconst {\n\t\tindex,\n\t\tdesktopSpan,\n\t\ttabletSpan,\n\t\tmobileSpan,\n\t\tdesktopStart,\n\t\ttabletStart,\n\t\tmobileStart,\n\t\tdesktopRow,\n\t\ttabletRow,\n\t\tmobileRow,\n\t} = gridLayout;\n\n\tconst { hasChildBlocks } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockOrder } = select(blockEditorStore);\n\n\t\t\treturn {\n\t\t\t\thasChildBlocks: 0 < getBlockOrder(clientId).length,\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: classnames({\n\t\t\t[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,\n\t\t\t[`column${index}-desktop-grid__span-${desktopSpan}`]: desktopSpan,\n\t\t\t[`column${index}-tablet-grid__span-${tabletSpan}`]: tabletSpan,\n\t\t\t[`column${index}-mobile-grid__span-${mobileSpan}`]: mobileSpan,\n\t\t}),\n\t});\n\n\tconst innerBlocksProps = useInnerBlocksProps(blockProps, {\n\t\tallowedBlocks,\n\t\torientation: 'vertical',\n\t\ttemplateLock,\n\t\trenderAppender: hasChildBlocks\n\t\t\t? undefined\n\t\t\t: InnerBlocks.ButtonBlockAppender,\n\t});\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @return {WPElement} Element to render.\n */\nexport default function Save() {\n\treturn ;\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t57: 0,\n\t350: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkgrid_column\"] = globalThis[\"webpackChunkgrid_column\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [350], () => (__webpack_require__(817)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","createElement","SVG","xmlns","viewBox","Path","d","MARKS","value","label","Controls","attributes","setAttributes","clientId","gridLayout","verticalAlignment","index","desktopSpan","tabletSpan","mobileSpan","desktopStart","tabletStart","mobileStart","handleGridSpanChange","newGridSpan","device","obj","rootClientId","blockIndex","useSelect","select","getBlockRootClientId","getBlockIndex","blockEditorStore","updateBlockAttributes","useDispatch","useEffect","Fragment","BlockControls","BlockVerticalAlignmentToolbar","onChange","InspectorControls","PanelBody","title","className","MarkedRangeControl","newSpan","withInputField","min","max","marks","CardDivider","filter","item","name","metadata","settings","icon","edit","context","isSelected","allowedBlocks","templateLock","desktopRow","tabletRow","mobileRow","hasChildBlocks","getBlockOrder","length","blockProps","useBlockProps","classnames","innerBlocksProps","useInnerBlocksProps","orientation","renderAppender","undefined","InnerBlocks","ButtonBlockAppender","save","Content","registerBlockType","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","globalThis","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","mappings":"uBAAIA,E,iBCAJ,MAAM,EAA+BC,OAAc,MCA7C,EAA+BA,OAAW,GAAc,WCW9D,GANe,IAAAC,eAAc,EAAAC,IAAK,CAChCC,MAAO,6BACPC,QAAS,cACR,IAAAH,eAAc,EAAAI,KAAM,CACrBC,EAAG,oLCTC,EAA+BN,OAAW,GAAU,OCApD,EAA+BA,OAAmB,W,aCAxD,MAAM,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAe,YCAzD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAsB,cCArD,EAA+BA,OAAW,GAAc,WCqBxDO,EAAQ,CACb,CACCC,MAAO,EACPC,MAAO,KAER,CACCD,MAAO,EACPC,MAAO,KAER,CACCD,MAAO,EACPC,MAAO,KAER,CACCD,MAAO,EACPC,MAAO,KAER,CACCD,MAAO,EACPC,MAAO,KAER,CACCD,MAAO,EACPC,MAAO,K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GAA4BA,EAA2BC,GACrD1B,EAAIL,EAASxB,OAAQ6B,IACzBuB,EAAU5B,EAASK,GAChBd,EAAoB4B,EAAEQ,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOrC,EAAoBO,EAAEC,EAAO,EAGjCqC,EAAqBC,WAAoC,wBAAIA,WAAoC,yBAAK,GAC1GD,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBI,KAAOX,EAAqBU,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,KC9CvF,IAAIK,EAAsBlD,EAAoBO,OAAEd,EAAW,CAAC,MAAM,IAAOO,EAAoB,OAC7FkD,EAAsBlD,EAAoBO,EAAE2C,E","sources":["webpack://grid-column/webpack/runtime/chunk loaded","webpack://grid-column/external window \"React\"","webpack://grid-column/external window [\"wp\",\"primitives\"]","webpack://grid-column/./node_modules/@wordpress/icons/build-module/library/column.js","webpack://grid-column/external window [\"wp\",\"blocks\"]","webpack://grid-column/external window \"classnames\"","webpack://grid-column/external window [\"wp\",\"element\"]","webpack://grid-column/external window [\"wp\",\"blockEditor\"]","webpack://grid-column/external window [\"wp\",\"data\"]","webpack://grid-column/external window \"prcComponents\"","webpack://grid-column/external window [\"wp\",\"components\"]","webpack://grid-column/./src/controls.jsx","webpack://grid-column/./src/index.js","webpack://grid-column/./src/edit.jsx","webpack://grid-column/./src/save.jsx","webpack://grid-column/webpack/bootstrap","webpack://grid-column/webpack/runtime/compat get default export","webpack://grid-column/webpack/runtime/define property getters","webpack://grid-column/webpack/runtime/hasOwnProperty shorthand","webpack://grid-column/webpack/runtime/jsonp chunk loading","webpack://grid-column/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst column = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z\"\n}));\nexport default column;\n//# sourceMappingURL=column.js.map","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"classnames\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcComponents\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/**\n * External Dependencies\n */\nimport { MarkedRangeControl } from '@prc/components';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment, useEffect } from '@wordpress/element';\nimport {\n\tBlockControls,\n\tBlockVerticalAlignmentToolbar,\n\tInspectorControls,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport {\n\tCardDivider,\n\tPanelBody,\n} from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\n\nconst MARKS = [\n\t{\n\t\tvalue: 1,\n\t\tlabel: '1',\n\t},\n\t{\n\t\tvalue: 2,\n\t\tlabel: '2',\n\t},\n\t{\n\t\tvalue: 3,\n\t\tlabel: '3',\n\t},\n\t{\n\t\tvalue: 4,\n\t\tlabel: '4',\n\t},\n\t{\n\t\tvalue: 5,\n\t\tlabel: '5',\n\t},\n\t{\n\t\tvalue: 6,\n\t\tlabel: '6',\n\t},\n\t{\n\t\tvalue: 7,\n\t\tlabel: '7',\n\t},\n\t{\n\t\tvalue: 8,\n\t\tlabel: '8',\n\t},\n\t{\n\t\tvalue: 9,\n\t\tlabel: '9',\n\t},\n\t{\n\t\tvalue: 10,\n\t\tlabel: '10',\n\t},\n\t{\n\t\tvalue: 11,\n\t\tlabel: '11',\n\t},\n\t{\n\t\tvalue: 12,\n\t\tlabel: '12',\n\t},\n];\n\nexport default function Controls({ attributes, setAttributes, clientId }) {\n\tconst { gridLayout, verticalAlignment } = attributes;\n\tconst {\n\t\tindex,\n\t\tdesktopSpan,\n\t\ttabletSpan,\n\t\tmobileSpan,\n\t\tdesktopStart,\n\t\ttabletStart,\n\t\tmobileStart,\n\t} = gridLayout;\n\n\tconst handleGridSpanChange = (newGridSpan, device = 'desktop') => {\n\t\tconst obj = {};\n\t\tobj[`${device}Span`] = newGridSpan;\n\n\t\tsetAttributes({\n\t\t\tgridLayout: {\n\t\t\t\t...gridLayout,\n\t\t\t\t...obj,\n\t\t\t},\n\t\t});\n\t};\n\n\tconst handleGridStartChange = (newGridStart, device = 'desktop') => {\n\t\tconst obj = {};\n\t\tobj[`${device}Start`] = newGridStart;\n\n\t\tsetAttributes({\n\t\t\tgridLayout: {\n\t\t\t\t...gridLayout,\n\t\t\t\t...obj,\n\t\t\t},\n\t\t});\n\t};\n\n\tconst { rootClientId, blockIndex } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockRootClientId, getBlockIndex } = select(blockEditorStore);\n\t\t\tconst rootId = getBlockRootClientId(clientId);\n\t\t\treturn {\n\t\t\t\trootClientId: rootId,\n\t\t\t\tblockIndex: getBlockIndex(clientId) + 1,\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\n\tconst { updateBlockAttributes } = useDispatch(blockEditorStore);\n\n\tconst updateVerticalAlignment = (value) => {\n\t\t// Update own alignment.\n\t\tsetAttributes({ verticalAlignment: value });\n\t\t// Reset parent Columns block.\n\t\tupdateBlockAttributes(rootClientId, {\n\t\t\tverticalAlignment: null,\n\t\t});\n\t};\n\n\tuseEffect(() => {\n\t\tif (index !== blockIndex) {\n\t\t\tsetAttributes({\n\t\t\t\tgridLayout: {\n\t\t\t\t\t...gridLayout,\n\t\t\t\t\tindex: blockIndex,\n\t\t\t\t},\n\t\t\t});\n\t\t}\n\t}, [blockIndex]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\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\thandleGridSpanChange(newSpan, 'desktop');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={12}\n\t\t\t\t\t\t\tmarks={MARKS}\n\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\thandleGridSpanChange(newSpan, 'tablet');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={12}\n\t\t\t\t\t\t\tmarks={MARKS}\n\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\thandleGridSpanChange(newSpan, 'mobile');\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\tmax={4}\n\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 4 >= item.value)}\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\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleGridStartChange(newStart, 'tablet');\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\t\tmax={8}\n\t\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 8 >= item.value)}\n\t\t\t\t\t\t\t\tinitialPosition={0}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\thandleGridStartChange(newStart, 'mobile');\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\t\t\tmax={4}\n\t\t\t\t\t\t\t\tmarks={MARKS.filter((item) => 4 >= item.value)}\n\t\t\t\t\t\t\t\tinitialPosition={0}\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
\n\t);\n}\n","/**\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 */\nimport { column as icon } from '@wordpress/icons';\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\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 './editor.scss';\nimport './style.scss';\nimport edit from './edit';\nimport save from './save';\n\nimport metadata from './block.json';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n\tsave,\n};\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","/* eslint-disable no-unused-vars */\n/**\n * External Dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport {\n\tInnerBlocks,\n\tuseInnerBlocksProps,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\n\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 */\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tcontext,\n\tclientId,\n\tisSelected,\n}) {\n\tconst { gridLayout, allowedBlocks, templateLock, verticalAlignment } =\n\t\tattributes;\n\n\tconst {\n\t\tindex,\n\t\tdesktopSpan,\n\t\ttabletSpan,\n\t\tmobileSpan,\n\t\tdesktopStart,\n\t\ttabletStart,\n\t\tmobileStart,\n\t\tdesktopRow,\n\t\ttabletRow,\n\t\tmobileRow,\n\t} = gridLayout;\n\n\tconst { hasChildBlocks } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockOrder } = select(blockEditorStore);\n\n\t\t\treturn {\n\t\t\t\thasChildBlocks: 0 < getBlockOrder(clientId).length,\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: classnames({\n\t\t\t[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,\n\t\t\t[`column${index}-desktop-grid__span-${desktopSpan}`]: desktopSpan,\n\t\t\t[`column${index}-tablet-grid__span-${tabletSpan}`]: tabletSpan,\n\t\t\t[`column${index}-mobile-grid__span-${mobileSpan}`]: mobileSpan,\n\t\t}),\n\t});\n\n\tconst innerBlocksProps = useInnerBlocksProps(blockProps, {\n\t\tallowedBlocks,\n\t\torientation: 'vertical',\n\t\ttemplateLock,\n\t\trenderAppender: hasChildBlocks\n\t\t\t? undefined\n\t\t\t: InnerBlocks.ButtonBlockAppender,\n\t});\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","/**\n * External Dependencies\n */\n\n/**\n * WordPress Dependencies\n */\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @return {WPElement} Element to render.\n */\nexport default function Save() {\n\treturn ;\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t57: 0,\n\t350: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkgrid_column\"] = globalThis[\"webpackChunkgrid_column\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [350], () => (__webpack_require__(817)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","createElement","SVG","xmlns","viewBox","Path","d","MARKS","value","label","Controls","attributes","setAttributes","clientId","gridLayout","verticalAlignment","index","desktopSpan","tabletSpan","mobileSpan","desktopStart","tabletStart","mobileStart","handleGridSpanChange","newGridSpan","device","obj","rootClientId","blockIndex","useSelect","select","getBlockRootClientId","getBlockIndex","blockEditorStore","updateBlockAttributes","useDispatch","useEffect","Fragment","BlockControls","BlockVerticalAlignmentToolbar","onChange","InspectorControls","PanelBody","title","className","MarkedRangeControl","newSpan","withInputField","min","max","marks","CardDivider","filter","item","name","metadata","settings","icon","edit","context","isSelected","allowedBlocks","templateLock","desktopRow","tabletRow","mobileRow","hasChildBlocks","getBlockOrder","length","blockProps","useBlockProps","classnames","innerBlocksProps","useInnerBlocksProps","orientation","renderAppender","undefined","InnerBlocks","ButtonBlockAppender","save","Content","registerBlockType","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","globalThis","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/grid-column/package-lock.json b/blocks/grid-column/package-lock.json index f9ecace4a..9c6adb163 100644 --- a/blocks/grid-column/package-lock.json +++ b/blocks/grid-column/package-lock.json @@ -2832,6 +2832,22 @@ "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", @@ -14034,6 +14050,25 @@ "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", @@ -14046,6 +14081,34 @@ "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", @@ -17514,6 +17577,20 @@ "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", @@ -19143,7 +19220,8 @@ "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 + "dev": true, + "requires": {} }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", @@ -20085,7 +20163,8 @@ "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 + "dev": true, + "requires": {} }, "@discoveryjs/json-ext": { "version": "0.5.7", @@ -20679,6 +20758,16 @@ "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", @@ -20912,49 +21001,57 @@ "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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@svgr/babel-preset": { "version": "8.1.0", @@ -21883,19 +21980,22 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "dev": true + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@wordpress/api-fetch": { "version": "6.50.0", @@ -21912,7 +22012,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/babel-preset-default": { "version": "7.37.0", @@ -22117,7 +22218,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/postcss-plugins-preset": { "version": "4.37.0", @@ -22133,7 +22235,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/primitives": { "version": "3.51.0", @@ -22285,13 +22388,15 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "acorn-walk": { "version": "8.3.2", @@ -22330,7 +22435,8 @@ "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 + "dev": true, + "requires": {} }, "ajv-formats": { "version": "2.1.1", @@ -22365,7 +22471,8 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "ansi-colors": { "version": "4.1.3", @@ -23750,7 +23857,8 @@ "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 + "dev": true, + "requires": {} }, "css-functions-list": { "version": "3.2.1", @@ -23887,7 +23995,8 @@ "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 + "dev": true, + "requires": {} }, "csso": { "version": "5.0.5", @@ -24026,7 +24135,8 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", - "dev": true + "dev": true, + "requires": {} }, "deep-extend": { "version": "0.6.0", @@ -24711,7 +24821,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-import-resolver-node": { "version": "0.3.9", @@ -25009,7 +25120,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-plugin-prettier": { "version": "5.1.3", @@ -25092,7 +25204,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-scope": { "version": "5.1.1", @@ -26249,7 +26362,8 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true + "dev": true, + "requires": {} }, "ieee754": { "version": "1.2.1", @@ -27152,7 +27266,8 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "29.6.3", @@ -27697,7 +27812,8 @@ "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 + "dev": true, + "requires": {} } } }, @@ -27733,7 +27849,8 @@ "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -29079,6 +29196,34 @@ } } }, + "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", @@ -29147,25 +29292,29 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "postcss-loader": { "version": "6.2.1", @@ -29289,7 +29438,8 @@ "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 + "dev": true, + "requires": {} }, "postcss-modules-local-by-default": { "version": "4.0.4", @@ -29324,7 +29474,8 @@ "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 + "dev": true, + "requires": {} }, "postcss-normalize-display-values": { "version": "6.0.2", @@ -29438,13 +29589,15 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "postcss-selector-parser": { "version": "6.0.16", @@ -29712,7 +29865,8 @@ "version": "8.5.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -31090,7 +31244,8 @@ "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 + "dev": true, + "requires": {} }, "stylelint-config-recommended-scss": { "version": "5.0.2", @@ -31478,7 +31633,8 @@ "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 + "dev": true, + "requires": {} }, "tsconfig-paths": { "version": "3.15.0", @@ -31623,6 +31779,13 @@ "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", @@ -31959,7 +32122,8 @@ "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -32369,7 +32533,8 @@ "version": "8.16.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", - "dev": true + "dev": true, + "requires": {} }, "xdg-basedir": { "version": "4.0.0", diff --git a/blocks/grid-column/src/block.json b/blocks/grid-column/src/block.json index 606e9cc60..b8f49b857 100644 --- a/blocks/grid-column/src/block.json +++ b/blocks/grid-column/src/block.json @@ -3,10 +3,10 @@ "apiVersion": 3, "name": "prc-block/grid-column", "version": "0.1.0", - "title": "Grid Column", + "title": "Column", "category": "design", "parent": [ "prc-block/grid-controller" ], - "description": "A single column within a grid block.", + "description": "A single column within a columns grid block.", "attributes": { "gridLayout": { "type": "object", diff --git a/blocks/grid-controller/build/block.json b/blocks/grid-controller/build/block.json index 06a5e0b67..62540655e 100644 --- a/blocks/grid-controller/build/block.json +++ b/blocks/grid-controller/build/block.json @@ -3,9 +3,9 @@ "apiVersion": 3, "name": "prc-block/grid-controller", "version": "0.1.0", - "title": "Grid Controller", + "title": "Grid Columns", "category": "design", - "description": "Layout content in columns using custom PRC grid system.", + "description": "Display content in multiple columns using a customizable responsive css-grid layout. The grid consists of 12 columns on desktop and tablet, and 4 columns on mobile.", "keywords": [ "grid", "columns", @@ -161,7 +161,7 @@ ] } ], - "viewportWidth": 1200 + "viewportWidth": 1350 }, "textdomain": "grid-controller", "editorScript": "file:./index.js", diff --git a/blocks/grid-controller/build/index.asset.php b/blocks/grid-controller/build/index.asset.php index e18939ac2..a894c5cfc 100644 --- a/blocks/grid-controller/build/index.asset.php +++ b/blocks/grid-controller/build/index.asset.php @@ -1 +1 @@ - array('classnames', 'lodash', 'prc-block-utils', 'prc-components', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '92fb2a5f261cc832b338'); + array('classnames', 'lodash', 'prc-block-utils', 'prc-components', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '7a66850ac93e74ce9de6'); diff --git a/blocks/grid-controller/build/index.js b/blocks/grid-controller/build/index.js index 62ce1e286..98aa06bea 100644 --- a/blocks/grid-controller/build/index.js +++ b/blocks/grid-controller/build/index.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t={572:(e,t,o)=>{const n=window.React,l=window.wp.primitives,r=(0,n.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(l.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})),i=window.wp.blocks,a=window.classnames;var c=o.n(a);const s=window.prcBlockUtils,d=window.wp.element,u=window.wp.blockEditor,p=window.wp.data,m=window.prcComponents,g=window.wp.i18n,b=window.wp.components;function k({attributes:e,setAttributes:t,clientId:o,colors:l}){const{verticalAlignment:r}=e,{dividerColor:a,setDividerColor:c}=l,s=(0,u.__experimentalUseMultipleOriginColorsAndGradients)(),{updateBlockAttributes:k,replaceInnerBlocks:h}=(0,p.useDispatch)(u.store),{count:v,innerBlocks:w,innerBlockClientIds:S}=(0,p.useSelect)((e=>({count:e(u.store).getBlockCount(o),innerBlockClientIds:e(u.store).getBlockOrder(o),innerBlocks:e(u.store).getBlock(o).innerBlocks})),[o]);return(0,n.createElement)(d.Fragment,null,(0,n.createElement)(u.BlockControls,null,(0,n.createElement)(u.BlockVerticalAlignmentToolbar,{onChange:e=>{t({verticalAlignment:e}),S.forEach((t=>{k(t,{verticalAlignment:e})}))},value:r})),(0,n.createElement)(u.InspectorControls,{group:"dimensions"},(0,n.createElement)(b.__experimentalToolsPanelItem,{label:(0,g.__)("Columns"),hasValue:()=>void 0!==v,panelId:o},(0,n.createElement)(m.MarkedRangeControl,{label:(0,g.__)("Columns"),value:v,onChange:e=>((e,t)=>{let n=w;const l=t>e;console.log("updateColumns -> ",n,l,e,t);let r=n.reduce(((e,t)=>e-t.attributes.gridLayout.desktopSpan),12);0>r&&(r=0);let a=n.reduce(((e,t)=>e-t.attributes.gridLayout.tabletSpan),8);0>a&&(a=0);let c=n.reduce(((e,t)=>e-t.attributes.gridLayout.mobileSpan),4);if(0>c&&(c=0),console.log("Available Spans:",{availableDesktopSpan:r,availableTabletSpan:a,availableMobileSpan:c}),l){const e=(0,i.createBlock)("prc-block/grid-column",{gridLayout:{index:n.length+1,desktopSpan:4,tabletSpan:4,mobileSpan:4,tabletStart:1,mobileStart:1}});n=[...n,e]}else{const o=n[n.length-1].innerBlocks,l=[...n[n.length-2].innerBlocks,...o];n[n.length-2].innerBlocks=l,n=n.slice(0,-(e-t))}console.log('"updateColumns" replaceInnerBlocks...',l,e,t,n,w),h(o,n)})(v,e),min:1,max:Math.max(6,v),withInputField:!1,marks:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"}]}),6{const{getBlockVariations:t,getBlockType:n,getDefaultBlockVariation:l}=e(i.store);return{blockType:n(o),defaultVariation:l(o,"block"),variations:t(o,"block")}}),[e]),{replaceInnerBlocks:c}=(0,p.useDispatch)(u.store),s=(0,u.useBlockProps)({className:"is-placeholder"});return(0,n.createElement)("div",{...s},(0,n.createElement)(u.__experimentalBlockVariationPicker,{icon:(0,h.get)(l,["icon","src"]),label:(0,h.get)(l,["title"]),variations:a,onSelect:(o=r)=>{o.attributes&&t(o.attributes),o.innerBlocks&&c(e,(0,i.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),!0)}}))}const w=["prc-block/grid-column"],S=(0,u.withColors)({dividerColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,className:l,dividerColor:r,setDividerColor:i}){const{verticalAlignment:a}=e,m=(0,p.useSelect)((e=>e(u.store).getBlocks(o).length>0),[o]),g=(0,u.useBlockProps)({className:c()(l,{"has-divider":!!r.color||r.class,[(0,u.getColorClassName)("divider-color",r?.slug)]:!!r?.slug,[`is-vertically-aligned-${a}`]:a}),style:{"--grid-gutter":(0,s.getBlockGapSupportValue)(e,"horizontal")}}),b=(0,u.useInnerBlocksProps)(g,{allowedBlocks:w,orientation:"horizontal",renderAppender:!1,templateLock:!1});return m?(0,n.createElement)(d.Fragment,null,(0,n.createElement)(k,{attributes:e,setAttributes:t,clientId:o,colors:{dividerColor:r,setDividerColor:i}}),(0,n.createElement)("div",{...b})):(0,n.createElement)(v,{attributes:e,setAttributes:t,clientId:o})})),y=e=>{const t=e.length,o=e.map(((e,o)=>{const{innerBlocks:n}=e;return["prc-block/grid-column",{gridLayout:{index:o+1,desktopSpan:Math.floor(12/t),tabletSpan:Math.floor(8/t),mobileSpan:4}},[...n]]}));return(0,i.createBlock)("prc-block/grid-controller",{},(0,i.createBlocksFromInnerBlocksTemplate)(o))},C={from:[{type:"block",blocks:["core/columns"],transform:(e,t)=>!(!Array.isArray(t)||0===t.length)&&y(t)},{type:"block",blocks:["prc-block/grid"],transform:(e,t)=>!(!Array.isArray(t)||0===t.length)&&t.map((e=>y(e.innerBlocks)))}],to:[{type:"block",blocks:["core/columns"],transform:(e,t)=>{if(!Array.isArray(t)||0===t.length)return!1;const o=t.map(((e,t)=>{const{innerBlocks:o}=e;return["core/column",{},[...o]]}));return(0,i.createBlock)("core/columns",{},(0,i.createBlocksFromInnerBlocksTemplate)(o))}}]},B=[{name:"two-columns-equal",title:(0,g.__)("6 / 6"),description:(0,g.__)("Two columns; equal split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,g.__)("4 / 8"),description:(0,g.__)("Two columns; one-third, two-thirds split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:4,tabletSpan:4,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:8,tabletSpan:8,mobileSpan:4}}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,g.__)("8 / 4"),description:(0,g.__)("Two columns; two-thirds, one-third split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:8,tabletSpan:8,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:4,tabletSpan:4,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-equal",title:(0,g.__)("4 / 4 / 4"),description:(0,g.__)("Three columns; equal split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:3,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:3,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-wider-center",title:(0,g.__)("3 / 6 / 3"),description:(0,g.__)("Three columns; wide center column"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:3,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:3,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-wider-center-container-sensitive",title:(0,g.__)("Featured Lede Grid"),description:(0,g.__)("Three columns; wide center column (container sensitive)"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),attributes:{dividerColor:"gray",className:"is-pattern__featured-layout"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:12,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:6,mobileSpan:4}}]],isActive:({className:e})=>e?.includes("is-pattern__featured-layout"),scope:["inserter","block"]}],_=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/grid-controller","version":"0.1.0","title":"Grid Controller","category":"design","description":"Layout content in columns using custom PRC grid system.","keywords":["grid","columns","css grid","layout"],"attributes":{"verticalAlignment":{"type":"string"},"dividerColor":{"type":"string","default":"ui-gray-light"},"style":{"type":"object","default":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}}},"supports":{"anchor":true,"html":false,"align":["wide","full"],"color":{"background":true,"link":true,"text":true},"spacing":{"blockGap":{"sides":["horizontal"]},"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true}}},"example":{"attributes":{"dividerColor":"ui-gray-light"},"innerBlocks":[{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":1,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 1"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]},{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":2,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 2"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]},{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":3,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 3"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]}],"viewportWidth":1200},"textdomain":"grid-controller","editorScript":"file:./index.js","style":"file:./style-index.css","render":"file:./render.php"}'),{name:f}=_,x={icon:r,edit:S,save:function({attributes:e}){return(0,n.createElement)(u.InnerBlocks.Content,null)},transforms:C,variations:B};(0,i.registerBlockType)(f,{..._,...x})}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,o,l,r)=>{if(!o){var i=1/0;for(d=0;d=r)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[o,l,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var l,r,[i,a,c]=o,s=0;if(i.some((t=>0!==e[t]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(c)var d=c(n)}for(t&&t(o);sn(572)));l=n.O(l)})(); +(()=>{"use strict";var e,t={572:(e,t,o)=>{const n=window.React,l=window.wp.primitives,r=(0,n.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(l.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})),i=window.wp.blocks,a=window.classnames;var c=o.n(a);const s=window.prcBlockUtils,d=window.wp.element,u=window.wp.blockEditor,p=window.wp.data,m=window.prcComponents,g=window.wp.i18n,b=window.wp.components;function k({attributes:e,setAttributes:t,clientId:o,colors:l}){const{verticalAlignment:r}=e,{dividerColor:a,setDividerColor:c}=l,s=(0,u.__experimentalUseMultipleOriginColorsAndGradients)(),{updateBlockAttributes:k,replaceInnerBlocks:h}=(0,p.useDispatch)(u.store),{count:v,innerBlocks:w,innerBlockClientIds:S}=(0,p.useSelect)((e=>({count:e(u.store).getBlockCount(o),innerBlockClientIds:e(u.store).getBlockOrder(o),innerBlocks:e(u.store).getBlock(o).innerBlocks})),[o]);return(0,n.createElement)(d.Fragment,null,(0,n.createElement)(u.BlockControls,null,(0,n.createElement)(u.BlockVerticalAlignmentToolbar,{onChange:e=>{t({verticalAlignment:e}),S.forEach((t=>{k(t,{verticalAlignment:e})}))},value:r})),(0,n.createElement)(u.InspectorControls,{group:"dimensions"},(0,n.createElement)(b.__experimentalToolsPanelItem,{label:(0,g.__)("Columns"),hasValue:()=>void 0!==v,panelId:o},(0,n.createElement)(m.MarkedRangeControl,{label:(0,g.__)("Columns"),value:v,onChange:e=>((e,t)=>{let n=w;const l=t>e;console.log("updateColumns -> ",n,l,e,t);let r=n.reduce(((e,t)=>e-t.attributes.gridLayout.desktopSpan),12);0>r&&(r=0);let a=n.reduce(((e,t)=>e-t.attributes.gridLayout.tabletSpan),8);0>a&&(a=0);let c=n.reduce(((e,t)=>e-t.attributes.gridLayout.mobileSpan),4);if(0>c&&(c=0),console.log("Available Spans:",{availableDesktopSpan:r,availableTabletSpan:a,availableMobileSpan:c}),l){const e=(0,i.createBlock)("prc-block/grid-column",{gridLayout:{index:n.length+1,desktopSpan:4,tabletSpan:4,mobileSpan:4,tabletStart:1,mobileStart:1}});n=[...n,e]}else{const o=n[n.length-1].innerBlocks,l=[...n[n.length-2].innerBlocks,...o];n[n.length-2].innerBlocks=l,n=n.slice(0,-(e-t))}console.log('"updateColumns" replaceInnerBlocks...',l,e,t,n,w),h(o,n)})(v,e),min:1,max:Math.max(6,v),withInputField:!1,marks:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"}]}),6{const{getBlockVariations:t,getBlockType:n,getDefaultBlockVariation:l}=e(i.store);return{blockType:n(o),defaultVariation:l(o,"block"),variations:t(o,"block")}}),[e]),{replaceInnerBlocks:c}=(0,p.useDispatch)(u.store),s=(0,u.useBlockProps)({className:"is-placeholder"});return(0,n.createElement)("div",{...s},(0,n.createElement)(u.__experimentalBlockVariationPicker,{icon:(0,h.get)(l,["icon","src"]),label:(0,h.get)(l,["title"]),variations:a,onSelect:(o=r)=>{o.attributes&&t(o.attributes),o.innerBlocks&&c(e,(0,i.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),!0)}}))}const w=["prc-block/grid-column"],S=(0,u.withColors)({dividerColor:"color"})((function({attributes:e,setAttributes:t,clientId:o,className:l,dividerColor:r,setDividerColor:i}){const{verticalAlignment:a}=e,m=(0,p.useSelect)((e=>e(u.store).getBlocks(o).length>0),[o]),g=(0,u.useBlockProps)({className:c()(l,{"has-divider":!!r.color||r.class,[(0,u.getColorClassName)("divider-color",r?.slug)]:!!r?.slug,[`is-vertically-aligned-${a}`]:a}),style:{"--grid-gutter":(0,s.getBlockGapSupportValue)(e,"horizontal")}}),b=(0,u.useInnerBlocksProps)(g,{allowedBlocks:w,orientation:"horizontal",renderAppender:!1,templateLock:!1});return m?(0,n.createElement)(d.Fragment,null,(0,n.createElement)(k,{attributes:e,setAttributes:t,clientId:o,colors:{dividerColor:r,setDividerColor:i}}),(0,n.createElement)("div",{...b})):(0,n.createElement)(v,{attributes:e,setAttributes:t,clientId:o})})),y=e=>{const t=e.length,o=e.map(((e,o)=>{const{innerBlocks:n}=e;return["prc-block/grid-column",{gridLayout:{index:o+1,desktopSpan:Math.floor(12/t),tabletSpan:Math.floor(8/t),mobileSpan:4}},[...n]]}));return(0,i.createBlock)("prc-block/grid-controller",{},(0,i.createBlocksFromInnerBlocksTemplate)(o))},B={from:[{type:"block",blocks:["core/columns"],transform:(e,t)=>!(!Array.isArray(t)||0===t.length)&&y(t)},{type:"block",blocks:["prc-block/grid"],transform:(e,t)=>!(!Array.isArray(t)||0===t.length)&&t.map((e=>y(e.innerBlocks)))}],to:[{type:"block",blocks:["core/columns"],transform:(e,t)=>{if(!Array.isArray(t)||0===t.length)return!1;const o=t.map(((e,t)=>{const{innerBlocks:o}=e;return["core/column",{},[...o]]}));return(0,i.createBlock)("core/columns",{},(0,i.createBlocksFromInnerBlocksTemplate)(o))}}]},C=[{name:"two-columns-equal",title:(0,g.__)("6 / 6"),description:(0,g.__)("Two columns; equal split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,g.__)("4 / 8"),description:(0,g.__)("Two columns; one-third, two-thirds split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:4,tabletSpan:4,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:8,tabletSpan:8,mobileSpan:4}}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,g.__)("8 / 4"),description:(0,g.__)("Two columns; two-thirds, one-third split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:8,tabletSpan:8,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:4,tabletSpan:4,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-equal",title:(0,g.__)("4 / 4 / 4"),description:(0,g.__)("Three columns; equal split"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:3,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:3,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-wider-center",title:(0,g.__)("3 / 6 / 3"),description:(0,g.__)("Three columns; wide center column"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),attributes:{dividerColor:"gray"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:3,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:3,mobileSpan:4}}]],scope:["block"]},{name:"three-columns-wider-center-container-sensitive",title:(0,g.__)("Featured Lede Grid"),description:(0,g.__)("Three columns; wide center column (container sensitive)"),icon:(0,n.createElement)(b.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),attributes:{dividerColor:"gray",className:"is-pattern__featured-layout"},innerBlocks:[["prc-block/grid-column",{gridLayout:{index:1,desktopSpan:3,tabletSpan:6,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:2,desktopSpan:6,tabletSpan:12,mobileSpan:4}}],["prc-block/grid-column",{gridLayout:{index:3,desktopSpan:3,tabletSpan:6,mobileSpan:4}}]],isActive:({className:e})=>e?.includes("is-pattern__featured-layout"),scope:["inserter","block"]}],_=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"prc-block/grid-controller","version":"0.1.0","title":"Grid Columns","category":"design","description":"Display content in multiple columns using a customizable responsive css-grid layout. The grid consists of 12 columns on desktop and tablet, and 4 columns on mobile.","keywords":["grid","columns","css grid","layout"],"attributes":{"verticalAlignment":{"type":"string"},"dividerColor":{"type":"string","default":"ui-gray-light"},"style":{"type":"object","default":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}}},"supports":{"anchor":true,"html":false,"align":["wide","full"],"color":{"background":true,"link":true,"text":true},"spacing":{"blockGap":{"sides":["horizontal"]},"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":false}},"__experimentalBorder":{"color":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"style":true,"width":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalDefaultControls":{"fontSize":true,"__experimentalFontFamily":true}}},"example":{"attributes":{"dividerColor":"ui-gray-light"},"innerBlocks":[{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":1,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 1"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]},{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":2,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 2"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]},{"name":"prc-block/grid-column","attributes":{"gridLayout":{"index":3,"desktopSpan":4,"tabletSpan":4,"mobileSpan":4}},"innerBlocks":[{"name":"core/heading","attributes":{"content":"Column 3"}},{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam euismod, nisl eget aliquam ultricies, nunc nisl aliquet urn"}}]}],"viewportWidth":1350},"textdomain":"grid-controller","editorScript":"file:./index.js","style":"file:./style-index.css","render":"file:./render.php"}'),{name:f}=_,x={icon:r,edit:S,save:function({attributes:e}){return(0,n.createElement)(u.InnerBlocks.Content,null)},transforms:B,variations:C};(0,i.registerBlockType)(f,{..._,...x})}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,o,l,r)=>{if(!o){var i=1/0;for(d=0;d=r)&&Object.keys(n.O).every((e=>n.O[e](o[c])))?o.splice(c--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[o,l,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var l,r,[i,a,c]=o,s=0;if(i.some((t=>0!==e[t]))){for(l in a)n.o(a,l)&&(n.m[l]=a[l]);if(c)var d=c(n)}for(t&&t(o);sn(572)));l=n.O(l)})(); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/blocks/grid-controller/build/index.js.map b/blocks/grid-controller/build/index.js.map index 3c9b5de9a..5922a7c1f 100644 --- a/blocks/grid-controller/build/index.js.map +++ b/blocks/grid-controller/build/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","mappings":"uBAAIA,E,iBCAJ,MAAM,EAA+BC,OAAc,MCA7C,EAA+BA,OAAW,GAAc,WCa9D,GARgB,IAAAC,eAAc,EAAAC,IAAK,CACjCC,QAAS,YACTC,MAAO,+BACN,IAAAH,eAAc,EAAAI,KAAM,CACrBC,SAAU,UACVC,SAAU,UACVC,EAAG,0MCXC,EAA+BR,OAAW,GAAU,OCApD,EAA+BA,OAAmB,W,aCAxD,MAAM,EAA+BA,OAAsB,cCArD,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAe,YCAzD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAsB,cCArD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAW,GAAc,WC+B/C,SAASS,GAAS,WAChCC,EAAU,cACVC,EAAa,SACbC,EAAQ,OACRC,IAEA,MAAM,kBAAEC,GAAsBJ,GAExB,aACLK,EAAY,gBACZC,GACGH,EAEEI,GAAgBC,EAAAA,EAAAA,sDAEhB,sBAAEC,EAAqB,mBAAEC,IAC9BC,EAAAA,EAAAA,aAAYC,EAAAA,QAEP,MAAEC,EAAK,YAAEC,EAAW,oBAAEC,IAAwBC,EAAAA,EAAAA,YAClDC,IAAM,CACNJ,MAAOI,EAAOL,EAAAA,OAAkBM,cAAchB,GAC9Ca,oBACCE,EAAOL,EAAAA,OAAkBO,cAAcjB,GACxCY,YACCG,EAAOL,EAAAA,OAAkBQ,SAASlB,GAAUY,eAE9C,CAACZ,IAoHF,OACCX,EAAAA,EAAAA,e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,IAAIP,KAAOO,EACX3B,EAAoB4B,EAAED,EAAYP,KAASpB,EAAoB4B,EAAEzB,EAASiB,IAC5EH,OAAOY,eAAe1B,EAASiB,EAAK,CAAEU,YAAY,EAAMjF,IAAK8E,EAAWP,IAE1E,ECNDpB,EAAoB4B,EAAI,CAACG,EAAKC,IAAUf,OAAOgB,UAAUC,eAAeC,KAAKJ,EAAKC,G,MCKlF,IAAII,EAAkB,CACrB,GAAI,EACJ,IAAK,GAaNpC,EAAoBO,EAAES,EAAKqB,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BC,KACvD,IAGIvC,EAAUoC,GAHT5B,EAAUgC,EAAaC,GAAWF,EAGhB1B,EAAI,EAC3B,GAAGL,EAASkC,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAI3C,KAAYwC,EACZzC,EAAoB4B,EAAEa,EAAaxC,KACrCD,EAAoBM,EAAEL,GAAYwC,EAAYxC,IAGhD,GAAGyC,EAAS,IAAIlC,EAASkC,EAAQ1C,EAClC,CAEA,IADGuC,GAA4BA,EAA2BC,GACrD1B,EAAIL,EAAShG,OAAQqG,IACzBuB,EAAU5B,EAASK,GAChBd,EAAoB4B,EAAEQ,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOrC,EAAoBO,EAAEC,EAAO,EAGjCqC,EAAqBC,WAAwC,4BAAIA,WAAwC,6BAAK,GAClHD,EAAmBpK,QAAQ6J,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KC9CvF,IAAII,EAAsBjD,EAAoBO,OAAErH,EAAW,CAAC,MAAM,IAAO8G,EAAoB,OAC7FiD,EAAsBjD,EAAoBO,EAAE0C,E","sources":["webpack://grid-controller/webpack/runtime/chunk loaded","webpack://grid-controller/external window \"React\"","webpack://grid-controller/external window [\"wp\",\"primitives\"]","webpack://grid-controller/./node_modules/@wordpress/icons/build-module/library/columns.js","webpack://grid-controller/external window [\"wp\",\"blocks\"]","webpack://grid-controller/external window \"classnames\"","webpack://grid-controller/external window \"prcBlockUtils\"","webpack://grid-controller/external window [\"wp\",\"element\"]","webpack://grid-controller/external window [\"wp\",\"blockEditor\"]","webpack://grid-controller/external window [\"wp\",\"data\"]","webpack://grid-controller/external window \"prcComponents\"","webpack://grid-controller/external window [\"wp\",\"i18n\"]","webpack://grid-controller/external window [\"wp\",\"components\"]","webpack://grid-controller/./src/controls.jsx","webpack://grid-controller/external window \"lodash\"","webpack://grid-controller/./src/placeholder.jsx","webpack://grid-controller/./src/edit.jsx","webpack://grid-controller/./src/transforms.js","webpack://grid-controller/./src/variations.js","webpack://grid-controller/./src/index.js","webpack://grid-controller/./src/save.jsx","webpack://grid-controller/webpack/bootstrap","webpack://grid-controller/webpack/runtime/compat get default export","webpack://grid-controller/webpack/runtime/define property getters","webpack://grid-controller/webpack/runtime/hasOwnProperty shorthand","webpack://grid-controller/webpack/runtime/jsonp chunk loading","webpack://grid-controller/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst columns = createElement(SVG, {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, createElement(Path, {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z\"\n}));\nexport default columns;\n//# sourceMappingURL=columns.js.map","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"classnames\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcBlockUtils\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcComponents\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\nimport { MarkedRangeControl } from '@prc/components';\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { \n\tNotice,\n\tRangeControl,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n} from '@wordpress/components';\nimport {\n\tInspectorControls,\n\tBlockControls,\n\tBlockVerticalAlignmentToolbar,\n\t__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,\n\t__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { createBlock } from '@wordpress/blocks';\nimport { Fragment } from '@wordpress/element';\n\nconst DESKTOP_MAX = 12;\nconst TABLET_MAX = 8;\nconst MOBILE_MAX = 4;\n\nexport default function Controls({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tcolors,\n}) {\n\tconst { verticalAlignment } = attributes;\n\n\tconst {\n\t\tdividerColor,\n\t\tsetDividerColor,\n\t} = colors;\n\n\tconst colorSettings = useMultipleOriginColorsAndGradients();\n\n\tconst { updateBlockAttributes, replaceInnerBlocks } =\n\t\tuseDispatch(blockEditorStore);\n\n\tconst { count, innerBlocks, innerBlockClientIds } = useSelect(\n\t\t(select) => ({\n\t\t\tcount: select(blockEditorStore).getBlockCount(clientId),\n\t\t\tinnerBlockClientIds:\n\t\t\t\tselect(blockEditorStore).getBlockOrder(clientId),\n\t\t\tinnerBlocks:\n\t\t\t\tselect(blockEditorStore).getBlock(clientId).innerBlocks,\n\t\t}),\n\t\t[clientId]\n\t);\n\n\t/**\n\t * Update all child Column blocks with a new vertical alignment setting\n\t * based on whatever alignment is passed in. This allows change to parent\n\t * to overide anything set on a individual column basis.\n\t *\n\t * @param {string} verticalAlignment the vertical alignment setting\n\t * @param newAlignment\n\t */\n\tconst updateAlignment = (newAlignment) => {\n\t\t// Update own alignment.\n\t\tsetAttributes({ verticalAlignment: newAlignment });\n\n\t\t// Update all child Column Blocks to match.\n\t\tinnerBlockClientIds.forEach((innerBlockClientId) => {\n\t\t\tupdateBlockAttributes(innerBlockClientId, {\n\t\t\t\tverticalAlignment: newAlignment,\n\t\t\t});\n\t\t});\n\t};\n\n\t/**\n\t * Updates the column count, including necessary revisions to child Column\n\t * blocks to grant required or redistribute available space.\n\t *\n\t * @param {number} previousColumns Previous column count.\n\t * @param {number} newColumns New column count.\n\t */\n\tconst updateColumns = (previousColumns, newColumns) => {\n\t\tlet columns = innerBlocks;\n\t\tconst isAddingColumn = newColumns > previousColumns;\n\n\t\tconsole.log(\n\t\t\t'updateColumns -> ',\n\t\t\tcolumns,\n\t\t\tisAddingColumn,\n\t\t\tpreviousColumns,\n\t\t\tnewColumns\n\t\t);\n\t\t// See if there is available space, how much in terms of span count is available.\n\n\t\t// get all the attributes.gridLayout.desktopSpan from the innerBlocks\n\t\tlet availableDesktopSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.desktopSpan,\n\t\t\tDESKTOP_MAX\n\t\t);\n\t\tif (0 > availableDesktopSpan) {\n\t\t\tavailableDesktopSpan = 0;\n\t\t}\n\n\t\tlet availableTabletSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.tabletSpan,\n\t\t\tTABLET_MAX\n\t\t);\n\t\tif (0 > availableTabletSpan) {\n\t\t\tavailableTabletSpan = 0;\n\t\t}\n\n\t\t// Get available mobile spans but if its negative then just return 0\n\t\tlet availableMobileSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.mobileSpan,\n\t\t\tMOBILE_MAX\n\t\t);\n\t\tif (0 > availableMobileSpan) {\n\t\t\tavailableMobileSpan = 0;\n\t\t}\n\n\t\tconsole.log('Available Spans:', {\n\t\t\tavailableDesktopSpan,\n\t\t\tavailableTabletSpan,\n\t\t\tavailableMobileSpan,\n\t\t});\n\n\t\tif (isAddingColumn) {\n\t\t\tconst newBlock = createBlock('prc-block/grid-column', {\n\t\t\t\tgridLayout: {\n\t\t\t\t\tindex: columns.length + 1,\n\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\ttabletStart: 1,\n\t\t\t\t\tmobileStart: 1,\n\t\t\t\t},\n\t\t\t});\n\t\t\tcolumns = [...columns, newBlock];\n\t\t} else {\n\t\t\t// Get the last column's innerBlocks and merge them with the second to last column's innerBlocks.\n\t\t\tconst lastColumnInnerBlocks =\n\t\t\t\tcolumns[columns.length - 1].innerBlocks;\n\t\t\tconst secondToLastColumnInnerBlocks =\n\t\t\t\tcolumns[columns.length - 2].innerBlocks;\n\t\t\tconst mergedInnerBlocks = [\n\t\t\t\t...secondToLastColumnInnerBlocks,\n\t\t\t\t...lastColumnInnerBlocks,\n\t\t\t];\n\t\t\t// Replace the second to last column's innerBlocks with the merged innerBlocks.\n\t\t\tcolumns[columns.length - 2].innerBlocks = mergedInnerBlocks;\n\t\t\t// The removed column will be the last of the inner blocks.\n\t\t\tcolumns = columns.slice(0, -(previousColumns - newColumns));\n\t\t\t// We will need to redistribute the remaining space to the last column.\n\t\t}\n\n\t\tconsole.log(\n\t\t\t'\"updateColumns\" replaceInnerBlocks...',\n\t\t\tisAddingColumn,\n\t\t\tpreviousColumns,\n\t\t\tnewColumns,\n\t\t\tcolumns,\n\t\t\tinnerBlocks\n\t\t);\n\n\t\treplaceInnerBlocks(clientId, columns);\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t undefined !== count}\n\t\t\t\t\tpanelId={clientId}\n\t\t\t\t>\n\t\t\t\t\t updateColumns(count, value)}\n\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\tmax={Math.max(6, count)}\n\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\tmarks={[\n\t\t\t\t\t\t\t{ value: 1, label: '1' },\n\t\t\t\t\t\t\t{ value: 2, label: '2' },\n\t\t\t\t\t\t\t{ value: 3, label: '3' },\n\t\t\t\t\t\t\t{ value: 4, label: '4' },\n\t\t\t\t\t\t\t{ value: 5, label: '5' },\n\t\t\t\t\t\t\t{ value: 6, label: '6' },\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t\t{6 < count && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t'This column count exceeds the recommended amount and may cause visual breakage.'\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\t\t\n\t\t\t\n\t\t\n\t);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External Dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress Dependencies\n */\nimport {\n\t__experimentalBlockVariationPicker as BlockVariationPicker,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tcreateBlocksFromInnerBlocksTemplate,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\n\nexport default function Placeholder({ clientId, setAttributes }) {\n\tconst name = 'prc-block/grid-controller';\n\n\tconst { blockType, defaultVariation, variations } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockVariations, getBlockType, getDefaultBlockVariation } =\n\t\t\t\tselect(blocksStore);\n\n\t\t\treturn {\n\t\t\t\tblockType: getBlockType(name),\n\t\t\t\tdefaultVariation: getDefaultBlockVariation(name, 'block'),\n\t\t\t\tvariations: getBlockVariations(name, 'block'),\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\tconst { replaceInnerBlocks } = useDispatch(blockEditorStore);\n\tconst blockProps = useBlockProps({ className: 'is-placeholder' });\n\n\treturn (\n\t\t
\n\t\t\t {\n\t\t\t\t\tif (nextVariation.attributes) {\n\t\t\t\t\t\tsetAttributes(nextVariation.attributes);\n\t\t\t\t\t}\n\t\t\t\t\tif (nextVariation.innerBlocks) {\n\t\t\t\t\t\treplaceInnerBlocks(\n\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\tcreateBlocksFromInnerBlocksTemplate(nextVariation.innerBlocks),\n\t\t\t\t\t\t\ttrue,\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
\n\t);\n}\n","/**\n * External Dependencies\n */\nimport classnames from 'classnames';\nimport { getBlockGapSupportValue } from '@prc/block-utils';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport {\n\tuseInnerBlocksProps,\n\tuseBlockProps,\n\twithColors,\n\tgetColorClassName,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\nimport Placeholder from './placeholder';\n\nconst ALLOWED_BLOCKS = ['prc-block/grid-column'];\n\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tclassName,\n\tdividerColor,\n\tsetDividerColor,\n}) {\n\tconst { verticalAlignment } = attributes;\n\n\tconst hasInnerBlocks = useSelect(\n\t\t(select) => select(blockEditorStore).getBlocks(clientId).length > 0,\n\t\t[clientId]\n\t);\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: classnames(className, {\n\t\t\t'has-divider': !!dividerColor.color || dividerColor.class,\n\t\t\t[getColorClassName('divider-color', dividerColor?.slug)]:\n\t\t\t\t!!dividerColor?.slug,\n\t\t\t[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,\n\t\t}),\n\t\tstyle: {\n\t\t\t'--grid-gutter': getBlockGapSupportValue(attributes, 'horizontal'),\n\t\t},\n\t});\n\n\tconst innerBlocksProps = useInnerBlocksProps(blockProps, {\n\t\tallowedBlocks: ALLOWED_BLOCKS,\n\t\torientation: 'horizontal',\n\t\trenderAppender: false,\n\t\ttemplateLock: false,\n\t});\n\n\tif (!hasInnerBlocks) {\n\t\treturn ;\n\t}\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n\nexport default withColors(\n\t{ dividerColor: 'color' }\n)(Edit);\n","/**\n * WordPress Dependencies\n */\nimport {\n\tcreateBlock,\n\tcreateBlocksFromInnerBlocksTemplate,\n} from '@wordpress/blocks';\n\nconst constructGridController = (columns) => {\n\tconst numberOfColumns = columns.length;\n\n\tconst innerBlocksTemplate = columns.map((block, index) => {\n\t\tconst { innerBlocks } = block;\n\t\treturn [\n\t\t\t'prc-block/grid-column',\n\t\t\t{\n\t\t\t\tgridLayout: {\n\t\t\t\t\tindex: index + 1,\n\t\t\t\t\tdesktopSpan: Math.floor(12 / numberOfColumns),\n\t\t\t\t\ttabletSpan: Math.floor(8 / numberOfColumns),\n\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t},\n\t\t\t},\n\t\t\t[...innerBlocks],\n\t\t];\n\t});\n\treturn createBlock(\n\t\t'prc-block/grid-controller',\n\t\t{},\n\t\tcreateBlocksFromInnerBlocksTemplate(innerBlocksTemplate)\n\t);\n};\n\nconst transforms = {\n\tfrom: [\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['core/columns'],\n\t\t\ttransform: (attributes, columns) => {\n\t\t\t\tif (!Array.isArray(columns) || 0 === columns.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn constructGridController(columns);\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['prc-block/grid'],\n\t\t\ttransform: (attributes, rows) => {\n\t\t\t\tif (!Array.isArray(rows) || 0 === rows.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst toReturn = rows.map((row) => {\n\t\t\t\t\treturn constructGridController(row.innerBlocks);\n\t\t\t\t});\n\n\t\t\t\treturn toReturn;\n\t\t\t},\n\t\t},\n\t],\n\tto: [\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['core/columns'],\n\t\t\ttransform: (attributes, columns) => {\n\t\t\t\tif (!Array.isArray(columns) || 0 === columns.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst innerBlocksTemplate = columns.map((block, index) => {\n\t\t\t\t\tconst { innerBlocks } = block;\n\t\t\t\t\treturn ['core/column', {}, [...innerBlocks]];\n\t\t\t\t});\n\t\t\t\treturn createBlock(\n\t\t\t\t\t'core/columns',\n\t\t\t\t\t{},\n\t\t\t\t\tcreateBlocksFromInnerBlocksTemplate(innerBlocksTemplate)\n\t\t\t\t);\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport default transforms;\n","/* eslint-disable max-lines */\n/**\n * WordPress Dependencies\n */\nimport { Path, SVG } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Template option choices for predefined columns layouts.\n *\n */\nconst variations = [\n\t{\n\t\tname: 'two-columns-equal',\n\t\ttitle: __('6 / 6'),\n\t\tdescription: __('Two columns; equal split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tisDefault: true,\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'two-columns-one-third-two-thirds',\n\t\ttitle: __('4 / 8'),\n\t\tdescription: __('Two columns; one-third, two-thirds split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 8,\n\t\t\t\t\t\ttabletSpan: 8,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'two-columns-two-thirds-one-third',\n\t\ttitle: __('8 / 4'),\n\t\tdescription: __('Two columns; two-thirds, one-third split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 8,\n\t\t\t\t\t\ttabletSpan: 8,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-equal',\n\t\ttitle: __('4 / 4 / 4'),\n\t\tdescription: __('Three columns; equal split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-wider-center',\n\t\ttitle: __('3 / 6 / 3'),\n\t\tdescription: __('Three columns; wide center column'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-wider-center-container-sensitive',\n\t\ttitle: __('Featured Lede Grid'),\n\t\tdescription: __(\n\t\t\t'Three columns; wide center column (container sensitive)'\n\t\t),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t\tclassName: 'is-pattern__featured-layout',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 12,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tisActive: ({ className }) =>\n\t\t\tclassName?.includes('is-pattern__featured-layout'),\n\t\tscope: ['inserter', 'block'],\n\t},\n];\n\nexport default variations;\n","/**\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 */\nimport { columns as icon } from '@wordpress/icons';\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\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 './style.scss';\nimport edit from './edit';\nimport save from './save';\nimport transforms from './transforms';\nimport variations from './variations';\n\nimport metadata from './block.json';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n\tsave,\n\ttransforms,\n\tvariations,\n};\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 */\n\n/**\n * WordPress Dependencies\n */\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @return {WPElement} Element to render.\n */\nexport default function Save( { attributes } ) {\n\treturn ;\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t57: 0,\n\t350: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkgrid_controller\"] = globalThis[\"webpackChunkgrid_controller\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [350], () => (__webpack_require__(572)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","createElement","SVG","viewBox","xmlns","Path","fillRule","clipRule","d","Controls","attributes","setAttributes","clientId","colors","verticalAlignment","dividerColor","setDividerColor","colorSettings","useMultipleOriginColorsAndGradients","updateBlockAttributes","replaceInnerBlocks","useDispatch","blockEditorStore","count","innerBlocks","innerBlockClientIds","useSelect","select","getBlockCount","getBlockOrder","getBlock","Fragment","BlockControls","BlockVerticalAlignmentToolbar","onChange","newAlignment","forEach","innerBlockClientId","value","InspectorControls","group","ToolsPanelItem","label","__","hasValue","undefined","panelId","MarkedRangeControl","updateColumns","previousColumns","newColumns","columns","isAddingColumn","console","log","availableDesktopSpan","reduce","acc","column","gridLayout","desktopSpan","availableTabletSpan","tabletSpan","availableMobileSpan","mobileSpan","newBlock","createBlock","index","length","tabletStart","mobileStart","lastColumnInnerBlocks","mergedInnerBlocks","slice","min","max","Math","withInputField","marks","Notice","status","isDismissible","ColorGradientSettingsDropdown","settings","colorValue","color","onColorChange","hasColorsOrGradients","disableCustomColors","__experimentalIsRenderedInSidebar","Placeholder","name","blockType","defaultVariation","variations","getBlockVariations","getBlockType","getDefaultBlockVariation","blocksStore","blockProps","useBlockProps","className","BlockVariationPicker","icon","get","onSelect","nextVariation","createBlocksFromInnerBlocksTemplate","ALLOWED_BLOCKS","withColors","hasInnerBlocks","getBlocks","classnames","class","getColorClassName","slug","style","getBlockGapSupportValue","innerBlocksProps","useInnerBlocksProps","allowedBlocks","orientation","renderAppender","templateLock","constructGridController","numberOfColumns","innerBlocksTemplate","map","block","floor","from","type","blocks","transform","Array","isArray","rows","row","to","title","description","width","height","isDefault","scope","isActive","includes","metadata","edit","save","InnerBlocks","Content","transforms","registerBlockType","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","globalThis","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","mappings":"uBAAIA,E,iBCAJ,MAAM,EAA+BC,OAAc,MCA7C,EAA+BA,OAAW,G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AAuB,CAACC,EAA4BC,KACvD,IAGIvC,EAAUoC,GAHT5B,EAAUgC,EAAaC,GAAWF,EAGhB1B,EAAI,EAC3B,GAAGL,EAASkC,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAI3C,KAAYwC,EACZzC,EAAoB4B,EAAEa,EAAaxC,KACrCD,EAAoBM,EAAEL,GAAYwC,EAAYxC,IAGhD,GAAGyC,EAAS,IAAIlC,EAASkC,EAAQ1C,EAClC,CAEA,IADGuC,GAA4BA,EAA2BC,GACrD1B,EAAIL,EAAShG,OAAQqG,IACzBuB,EAAU5B,EAASK,GAChBd,EAAoB4B,EAAEQ,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOrC,EAAoBO,EAAEC,EAAO,EAGjCqC,EAAqBC,WAAwC,4BAAIA,WAAwC,6BAAK,GAClHD,EAAmBpK,QAAQ6J,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KC9CvF,IAAII,EAAsBjD,EAAoBO,OAAErH,EAAW,CAAC,MAAM,IAAO8G,EAAoB,OAC7FiD,EAAsBjD,EAAoBO,EAAE0C,E","sources":["webpack://grid-controller/webpack/runtime/chunk loaded","webpack://grid-controller/external window \"React\"","webpack://grid-controller/external window [\"wp\",\"primitives\"]","webpack://grid-controller/./node_modules/@wordpress/icons/build-module/library/columns.js","webpack://grid-controller/external window [\"wp\",\"blocks\"]","webpack://grid-controller/external window \"classnames\"","webpack://grid-controller/external window \"prcBlockUtils\"","webpack://grid-controller/external window [\"wp\",\"element\"]","webpack://grid-controller/external window [\"wp\",\"blockEditor\"]","webpack://grid-controller/external window [\"wp\",\"data\"]","webpack://grid-controller/external window \"prcComponents\"","webpack://grid-controller/external window [\"wp\",\"i18n\"]","webpack://grid-controller/external window [\"wp\",\"components\"]","webpack://grid-controller/./src/controls.jsx","webpack://grid-controller/external window \"lodash\"","webpack://grid-controller/./src/placeholder.jsx","webpack://grid-controller/./src/edit.jsx","webpack://grid-controller/./src/transforms.js","webpack://grid-controller/./src/variations.js","webpack://grid-controller/./src/index.js","webpack://grid-controller/./src/save.jsx","webpack://grid-controller/webpack/bootstrap","webpack://grid-controller/webpack/runtime/compat get default export","webpack://grid-controller/webpack/runtime/define property getters","webpack://grid-controller/webpack/runtime/hasOwnProperty shorthand","webpack://grid-controller/webpack/runtime/jsonp chunk loading","webpack://grid-controller/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"React\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst columns = createElement(SVG, {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, createElement(Path, {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z\"\n}));\nexport default columns;\n//# sourceMappingURL=columns.js.map","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"classnames\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcBlockUtils\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"prcComponents\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","/* eslint-disable max-lines-per-function */\n/**\n * External Dependencies\n */\nimport { MarkedRangeControl } from '@prc/components';\n\n/**\n * WordPress Dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tNotice,\n\tRangeControl,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n} from '@wordpress/components';\nimport {\n\tInspectorControls,\n\tBlockControls,\n\tBlockVerticalAlignmentToolbar,\n\t__experimentalColorGradientSettingsDropdown as ColorGradientSettingsDropdown,\n\t__experimentalUseMultipleOriginColorsAndGradients as useMultipleOriginColorsAndGradients,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { createBlock } from '@wordpress/blocks';\nimport { Fragment } from '@wordpress/element';\n\nconst DESKTOP_MIN = 2;\nconst TABLET_MIN = 2;\nconst MOBILE_MIN = 2;\nconst DESKTOP_MAX = 12;\nconst TABLET_MAX = 8;\nconst MOBILE_MAX = 4;\n\nexport default function Controls({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tcolors,\n}) {\n\tconst { verticalAlignment } = attributes;\n\n\tconst {\n\t\tdividerColor,\n\t\tsetDividerColor,\n\t} = colors;\n\n\tconst colorSettings = useMultipleOriginColorsAndGradients();\n\n\tconst { updateBlockAttributes, replaceInnerBlocks } =\n\t\tuseDispatch(blockEditorStore);\n\n\tconst { count, innerBlocks, innerBlockClientIds } = useSelect(\n\t\t(select) => ({\n\t\t\tcount: select(blockEditorStore).getBlockCount(clientId),\n\t\t\tinnerBlockClientIds:\n\t\t\t\tselect(blockEditorStore).getBlockOrder(clientId),\n\t\t\tinnerBlocks:\n\t\t\t\tselect(blockEditorStore).getBlock(clientId).innerBlocks,\n\t\t}),\n\t\t[clientId]\n\t);\n\n\t/**\n\t * Update all child Column blocks with a new vertical alignment setting\n\t * based on whatever alignment is passed in. This allows change to parent\n\t * to overide anything set on a individual column basis.\n\t *\n\t * @param {string} verticalAlignment the vertical alignment setting\n\t * @param newAlignment\n\t */\n\tconst updateAlignment = (newAlignment) => {\n\t\t// Update own alignment.\n\t\tsetAttributes({ verticalAlignment: newAlignment });\n\n\t\t// Update all child Column Blocks to match.\n\t\tinnerBlockClientIds.forEach((innerBlockClientId) => {\n\t\t\tupdateBlockAttributes(innerBlockClientId, {\n\t\t\t\tverticalAlignment: newAlignment,\n\t\t\t});\n\t\t});\n\t};\n\n\t/**\n\t * Updates the column count, including necessary revisions to child Column\n\t * blocks to grant required or redistribute available space.\n\t *\n\t * @param {number} previousColumns Previous column count.\n\t * @param {number} newColumns New column count.\n\t */\n\tconst updateColumns = (previousColumns, newColumns) => {\n\t\tlet columns = innerBlocks;\n\t\tconst isAddingColumn = newColumns > previousColumns;\n\n\t\tconsole.log(\n\t\t\t'updateColumns -> ',\n\t\t\tcolumns,\n\t\t\tisAddingColumn,\n\t\t\tpreviousColumns,\n\t\t\tnewColumns\n\t\t);\n\t\t// See if there is available space, how much in terms of span count is available.\n\n\t\t// get all the attributes.gridLayout.desktopSpan from the innerBlocks\n\t\tlet availableDesktopSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.desktopSpan,\n\t\t\tDESKTOP_MAX\n\t\t);\n\t\tif (0 > availableDesktopSpan) {\n\t\t\tavailableDesktopSpan = 0;\n\t\t}\n\n\t\tlet availableTabletSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.tabletSpan,\n\t\t\tTABLET_MAX\n\t\t);\n\t\tif (0 > availableTabletSpan) {\n\t\t\tavailableTabletSpan = 0;\n\t\t}\n\n\t\t// Get available mobile spans but if its negative then just return 0\n\t\tlet availableMobileSpan = columns.reduce(\n\t\t\t(acc, column) => acc - column.attributes.gridLayout.mobileSpan,\n\t\t\tMOBILE_MAX\n\t\t);\n\t\tif (0 > availableMobileSpan) {\n\t\t\tavailableMobileSpan = 0;\n\t\t}\n\n\t\tconsole.log('Available Spans:', {\n\t\t\tavailableDesktopSpan,\n\t\t\tavailableTabletSpan,\n\t\t\tavailableMobileSpan,\n\t\t});\n\n\t\tif (isAddingColumn) {\n\t\t\tconst newBlock = createBlock('prc-block/grid-column', {\n\t\t\t\tgridLayout: {\n\t\t\t\t\tindex: columns.length + 1,\n\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\ttabletStart: 1,\n\t\t\t\t\tmobileStart: 1,\n\t\t\t\t},\n\t\t\t});\n\t\t\tcolumns = [...columns, newBlock];\n\t\t} else {\n\t\t\t// Get the last column's innerBlocks and merge them with the second to last column's innerBlocks.\n\t\t\tconst lastColumnInnerBlocks =\n\t\t\t\tcolumns[columns.length - 1].innerBlocks;\n\t\t\tconst secondToLastColumnInnerBlocks =\n\t\t\t\tcolumns[columns.length - 2].innerBlocks;\n\t\t\tconst mergedInnerBlocks = [\n\t\t\t\t...secondToLastColumnInnerBlocks,\n\t\t\t\t...lastColumnInnerBlocks,\n\t\t\t];\n\t\t\t// Replace the second to last column's innerBlocks with the merged innerBlocks.\n\t\t\tcolumns[columns.length - 2].innerBlocks = mergedInnerBlocks;\n\t\t\t// The removed column will be the last of the inner blocks.\n\t\t\tcolumns = columns.slice(0, -(previousColumns - newColumns));\n\t\t\t// We will need to redistribute the remaining space to the last column.\n\t\t}\n\n\t\tconsole.log(\n\t\t\t'\"updateColumns\" replaceInnerBlocks...',\n\t\t\tisAddingColumn,\n\t\t\tpreviousColumns,\n\t\t\tnewColumns,\n\t\t\tcolumns,\n\t\t\tinnerBlocks\n\t\t);\n\n\t\treplaceInnerBlocks(clientId, columns);\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t undefined !== count}\n\t\t\t\t\tpanelId={clientId}\n\t\t\t\t>\n\t\t\t\t\t updateColumns(count, value)}\n\t\t\t\t\t\tmin={1}\n\t\t\t\t\t\tmax={Math.max(6, count)}\n\t\t\t\t\t\twithInputField={false}\n\t\t\t\t\t\tmarks={[\n\t\t\t\t\t\t\t{ value: 1, label: '1' },\n\t\t\t\t\t\t\t{ value: 2, label: '2' },\n\t\t\t\t\t\t\t{ value: 3, label: '3' },\n\t\t\t\t\t\t\t{ value: 4, label: '4' },\n\t\t\t\t\t\t\t{ value: 5, label: '5' },\n\t\t\t\t\t\t\t{ value: 6, label: '6' },\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t\t{6 < count && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{__(\n\t\t\t\t\t\t\t\t'This column count exceeds the recommended amount and may cause visual breakage.'\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\t\t\n\t\t\t\n\t\t\n\t);\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External Dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress Dependencies\n */\nimport {\n\t__experimentalBlockVariationPicker as BlockVariationPicker,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tcreateBlocksFromInnerBlocksTemplate,\n\tstore as blocksStore,\n} from '@wordpress/blocks';\n\nexport default function Placeholder({ clientId, setAttributes }) {\n\tconst name = 'prc-block/grid-controller';\n\n\tconst { blockType, defaultVariation, variations } = useSelect(\n\t\t(select) => {\n\t\t\tconst { getBlockVariations, getBlockType, getDefaultBlockVariation } =\n\t\t\t\tselect(blocksStore);\n\n\t\t\treturn {\n\t\t\t\tblockType: getBlockType(name),\n\t\t\t\tdefaultVariation: getDefaultBlockVariation(name, 'block'),\n\t\t\t\tvariations: getBlockVariations(name, 'block'),\n\t\t\t};\n\t\t},\n\t\t[clientId],\n\t);\n\tconst { replaceInnerBlocks } = useDispatch(blockEditorStore);\n\tconst blockProps = useBlockProps({ className: 'is-placeholder' });\n\n\treturn (\n\t\t
\n\t\t\t {\n\t\t\t\t\tif (nextVariation.attributes) {\n\t\t\t\t\t\tsetAttributes(nextVariation.attributes);\n\t\t\t\t\t}\n\t\t\t\t\tif (nextVariation.innerBlocks) {\n\t\t\t\t\t\treplaceInnerBlocks(\n\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\tcreateBlocksFromInnerBlocksTemplate(nextVariation.innerBlocks),\n\t\t\t\t\t\t\ttrue,\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
\n\t);\n}\n","/**\n * External Dependencies\n */\nimport classnames from 'classnames';\nimport { getBlockGapSupportValue } from '@prc/block-utils';\n\n/**\n * WordPress Dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport {\n\tuseInnerBlocksProps,\n\tuseBlockProps,\n\twithColors,\n\tgetColorClassName,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal Dependencies\n */\nimport Controls from './controls';\nimport Placeholder from './placeholder';\n\nconst ALLOWED_BLOCKS = ['prc-block/grid-column'];\n\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\tclassName,\n\tdividerColor,\n\tsetDividerColor,\n}) {\n\tconst { verticalAlignment } = attributes;\n\n\tconst hasInnerBlocks = useSelect(\n\t\t(select) => select(blockEditorStore).getBlocks(clientId).length > 0,\n\t\t[clientId]\n\t);\n\n\tconst blockProps = useBlockProps({\n\t\tclassName: classnames(className, {\n\t\t\t'has-divider': !!dividerColor.color || dividerColor.class,\n\t\t\t[getColorClassName('divider-color', dividerColor?.slug)]:\n\t\t\t\t!!dividerColor?.slug,\n\t\t\t[`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment,\n\t\t}),\n\t\tstyle: {\n\t\t\t'--grid-gutter': getBlockGapSupportValue(attributes, 'horizontal'),\n\t\t},\n\t});\n\n\tconst innerBlocksProps = useInnerBlocksProps(blockProps, {\n\t\tallowedBlocks: ALLOWED_BLOCKS,\n\t\torientation: 'horizontal',\n\t\trenderAppender: false,\n\t\ttemplateLock: false,\n\t});\n\n\tif (!hasInnerBlocks) {\n\t\treturn ;\n\t}\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n\nexport default withColors(\n\t{ dividerColor: 'color' }\n)(Edit);\n","/**\n * WordPress Dependencies\n */\nimport {\n\tcreateBlock,\n\tcreateBlocksFromInnerBlocksTemplate,\n} from '@wordpress/blocks';\n\nconst constructGridController = (columns) => {\n\tconst numberOfColumns = columns.length;\n\n\tconst innerBlocksTemplate = columns.map((block, index) => {\n\t\tconst { innerBlocks } = block;\n\t\treturn [\n\t\t\t'prc-block/grid-column',\n\t\t\t{\n\t\t\t\tgridLayout: {\n\t\t\t\t\tindex: index + 1,\n\t\t\t\t\tdesktopSpan: Math.floor(12 / numberOfColumns),\n\t\t\t\t\ttabletSpan: Math.floor(8 / numberOfColumns),\n\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t},\n\t\t\t},\n\t\t\t[...innerBlocks],\n\t\t];\n\t});\n\treturn createBlock(\n\t\t'prc-block/grid-controller',\n\t\t{},\n\t\tcreateBlocksFromInnerBlocksTemplate(innerBlocksTemplate)\n\t);\n};\n\nconst transforms = {\n\tfrom: [\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['core/columns'],\n\t\t\ttransform: (attributes, columns) => {\n\t\t\t\tif (!Array.isArray(columns) || 0 === columns.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn constructGridController(columns);\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['prc-block/grid'],\n\t\t\ttransform: (attributes, rows) => {\n\t\t\t\tif (!Array.isArray(rows) || 0 === rows.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst toReturn = rows.map((row) => {\n\t\t\t\t\treturn constructGridController(row.innerBlocks);\n\t\t\t\t});\n\n\t\t\t\treturn toReturn;\n\t\t\t},\n\t\t},\n\t],\n\tto: [\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: ['core/columns'],\n\t\t\ttransform: (attributes, columns) => {\n\t\t\t\tif (!Array.isArray(columns) || 0 === columns.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst innerBlocksTemplate = columns.map((block, index) => {\n\t\t\t\t\tconst { innerBlocks } = block;\n\t\t\t\t\treturn ['core/column', {}, [...innerBlocks]];\n\t\t\t\t});\n\t\t\t\treturn createBlock(\n\t\t\t\t\t'core/columns',\n\t\t\t\t\t{},\n\t\t\t\t\tcreateBlocksFromInnerBlocksTemplate(innerBlocksTemplate)\n\t\t\t\t);\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport default transforms;\n","/* eslint-disable max-lines */\n/**\n * WordPress Dependencies\n */\nimport { Path, SVG } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Template option choices for predefined columns layouts.\n *\n */\nconst variations = [\n\t{\n\t\tname: 'two-columns-equal',\n\t\ttitle: __('6 / 6'),\n\t\tdescription: __('Two columns; equal split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tisDefault: true,\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'two-columns-one-third-two-thirds',\n\t\ttitle: __('4 / 8'),\n\t\tdescription: __('Two columns; one-third, two-thirds split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 8,\n\t\t\t\t\t\ttabletSpan: 8,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'two-columns-two-thirds-one-third',\n\t\ttitle: __('8 / 4'),\n\t\tdescription: __('Two columns; two-thirds, one-third split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 8,\n\t\t\t\t\t\ttabletSpan: 8,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 4,\n\t\t\t\t\t\ttabletSpan: 4,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-equal',\n\t\ttitle: __('4 / 4 / 4'),\n\t\tdescription: __('Three columns; equal split'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-wider-center',\n\t\ttitle: __('3 / 6 / 3'),\n\t\tdescription: __('Three columns; wide center column'),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 3,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tscope: ['block'],\n\t},\n\t{\n\t\tname: 'three-columns-wider-center-container-sensitive',\n\t\ttitle: __('Featured Lede Grid'),\n\t\tdescription: __(\n\t\t\t'Three columns; wide center column (container sensitive)'\n\t\t),\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tattributes: {\n\t\t\tdividerColor: 'gray',\n\t\t\tclassName: 'is-pattern__featured-layout',\n\t\t},\n\t\tinnerBlocks: [\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 1,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 2,\n\t\t\t\t\t\tdesktopSpan: 6,\n\t\t\t\t\t\ttabletSpan: 12,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\t[\n\t\t\t\t'prc-block/grid-column',\n\t\t\t\t{\n\t\t\t\t\tgridLayout: {\n\t\t\t\t\t\tindex: 3,\n\t\t\t\t\t\tdesktopSpan: 3,\n\t\t\t\t\t\ttabletSpan: 6,\n\t\t\t\t\t\tmobileSpan: 4,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t],\n\t\tisActive: ({ className }) =>\n\t\t\tclassName?.includes('is-pattern__featured-layout'),\n\t\tscope: ['inserter', 'block'],\n\t},\n];\n\nexport default variations;\n","/**\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 */\nimport { columns as icon } from '@wordpress/icons';\n\n/**\n * WordPress Dependencies\n */\nimport { registerBlockType } from '@wordpress/blocks';\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 './style.scss';\nimport edit from './edit';\nimport save from './save';\nimport transforms from './transforms';\nimport variations from './variations';\n\nimport metadata from './block.json';\n\nconst { name } = metadata;\n\nconst settings = {\n\ticon,\n\tedit,\n\tsave,\n\ttransforms,\n\tvariations,\n};\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 */\n\n/**\n * WordPress Dependencies\n */\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @param {Object} props Properties passed to the function.\n * @param {Object} props.attributes Available block attributes.\n * @return {WPElement} Element to render.\n */\nexport default function Save( { attributes } ) {\n\treturn ;\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t57: 0,\n\t350: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkgrid_controller\"] = globalThis[\"webpackChunkgrid_controller\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [350], () => (__webpack_require__(572)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","createElement","SVG","viewBox","xmlns","Path","fillRule","clipRule","d","Controls","attributes","setAttributes","clientId","colors","verticalAlignment","dividerColor","setDividerColor","colorSettings","useMultipleOriginColorsAndGradients","updateBlockAttributes","replaceInnerBlocks","useDispatch","blockEditorStore","count","innerBlocks","innerBlockClientIds","useSelect","select","getBlockCount","getBlockOrder","getBlock","Fragment","BlockControls","BlockVerticalAlignmentToolbar","onChange","newAlignment","forEach","innerBlockClientId","value","InspectorControls","group","ToolsPanelItem","label","__","hasValue","undefined","panelId","MarkedRangeControl","updateColumns","previousColumns","newColumns","columns","isAddingColumn","console","log","availableDesktopSpan","reduce","acc","column","gridLayout","desktopSpan","availableTabletSpan","tabletSpan","availableMobileSpan","mobileSpan","newBlock","createBlock","index","length","tabletStart","mobileStart","lastColumnInnerBlocks","mergedInnerBlocks","slice","min","max","Math","withInputField","marks","Notice","status","isDismissible","ColorGradientSettingsDropdown","settings","colorValue","color","onColorChange","hasColorsOrGradients","disableCustomColors","__experimentalIsRenderedInSidebar","Placeholder","name","blockType","defaultVariation","variations","getBlockVariations","getBlockType","getDefaultBlockVariation","blocksStore","blockProps","useBlockProps","className","BlockVariationPicker","icon","get","onSelect","nextVariation","createBlocksFromInnerBlocksTemplate","ALLOWED_BLOCKS","withColors","hasInnerBlocks","getBlocks","classnames","class","getColorClassName","slug","style","getBlockGapSupportValue","innerBlocksProps","useInnerBlocksProps","allowedBlocks","orientation","renderAppender","templateLock","constructGridController","numberOfColumns","innerBlocksTemplate","map","block","floor","from","type","blocks","transform","Array","isArray","rows","row","to","title","description","width","height","isDefault","scope","isActive","includes","metadata","edit","save","InnerBlocks","Content","transforms","registerBlockType","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","globalThis","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/grid-controller/package-lock.json b/blocks/grid-controller/package-lock.json index 47f4058b6..aa6910566 100644 --- a/blocks/grid-controller/package-lock.json +++ b/blocks/grid-controller/package-lock.json @@ -2834,6 +2834,22 @@ "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", @@ -14036,6 +14052,25 @@ "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", @@ -14048,6 +14083,34 @@ "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", @@ -17516,6 +17579,20 @@ "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", @@ -19145,7 +19222,8 @@ "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 + "dev": true, + "requires": {} }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", @@ -20087,7 +20165,8 @@ "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 + "dev": true, + "requires": {} }, "@discoveryjs/json-ext": { "version": "0.5.7", @@ -20681,6 +20760,16 @@ "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", @@ -20914,49 +21003,57 @@ "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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@svgr/babel-preset": { "version": "8.1.0", @@ -21885,19 +21982,22 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "dev": true + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@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 + "dev": true, + "requires": {} }, "@wordpress/api-fetch": { "version": "6.50.0", @@ -21914,7 +22014,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/babel-preset-default": { "version": "7.37.0", @@ -22119,7 +22220,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/postcss-plugins-preset": { "version": "4.37.0", @@ -22135,7 +22237,8 @@ "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 + "dev": true, + "requires": {} }, "@wordpress/primitives": { "version": "3.51.0", @@ -22287,13 +22390,15 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "acorn-walk": { "version": "8.3.2", @@ -22332,7 +22437,8 @@ "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 + "dev": true, + "requires": {} }, "ajv-formats": { "version": "2.1.1", @@ -22367,7 +22473,8 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "ansi-colors": { "version": "4.1.3", @@ -23752,7 +23859,8 @@ "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 + "dev": true, + "requires": {} }, "css-functions-list": { "version": "3.2.1", @@ -23889,7 +23997,8 @@ "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 + "dev": true, + "requires": {} }, "csso": { "version": "5.0.5", @@ -24028,7 +24137,8 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", - "dev": true + "dev": true, + "requires": {} }, "deep-extend": { "version": "0.6.0", @@ -24713,7 +24823,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-import-resolver-node": { "version": "0.3.9", @@ -25011,7 +25122,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-plugin-prettier": { "version": "5.1.3", @@ -25094,7 +25206,8 @@ "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 + "dev": true, + "requires": {} }, "eslint-scope": { "version": "5.1.1", @@ -26251,7 +26364,8 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true + "dev": true, + "requires": {} }, "ieee754": { "version": "1.2.1", @@ -27154,7 +27268,8 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "29.6.3", @@ -27699,7 +27814,8 @@ "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 + "dev": true, + "requires": {} } } }, @@ -27735,7 +27851,8 @@ "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -29081,6 +29198,34 @@ } } }, + "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", @@ -29149,25 +29294,29 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "postcss-loader": { "version": "6.2.1", @@ -29291,7 +29440,8 @@ "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 + "dev": true, + "requires": {} }, "postcss-modules-local-by-default": { "version": "4.0.4", @@ -29326,7 +29476,8 @@ "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 + "dev": true, + "requires": {} }, "postcss-normalize-display-values": { "version": "6.0.2", @@ -29440,13 +29591,15 @@ "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 + "dev": true, + "requires": {} }, "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 + "dev": true, + "requires": {} }, "postcss-selector-parser": { "version": "6.0.16", @@ -29714,7 +29867,8 @@ "version": "8.5.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -31092,7 +31246,8 @@ "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 + "dev": true, + "requires": {} }, "stylelint-config-recommended-scss": { "version": "5.0.2", @@ -31480,7 +31635,8 @@ "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 + "dev": true, + "requires": {} }, "tsconfig-paths": { "version": "3.15.0", @@ -31625,6 +31781,13 @@ "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", @@ -31961,7 +32124,8 @@ "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -32371,7 +32535,8 @@ "version": "8.16.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", - "dev": true + "dev": true, + "requires": {} }, "xdg-basedir": { "version": "4.0.0", diff --git a/blocks/grid-controller/src/block.json b/blocks/grid-controller/src/block.json index d1e59d4ea..b30afd22a 100644 --- a/blocks/grid-controller/src/block.json +++ b/blocks/grid-controller/src/block.json @@ -3,9 +3,9 @@ "apiVersion": 3, "name": "prc-block/grid-controller", "version": "0.1.0", - "title": "Grid Controller", + "title": "Grid Columns", "category": "design", - "description": "Layout content in columns using custom PRC grid system.", + "description": "Display content in multiple columns using a customizable responsive css-grid layout. The grid consists of 12 columns on desktop and tablet, and 4 columns on mobile.", "keywords": [ "grid", "columns", @@ -153,7 +153,7 @@ ] } ], - "viewportWidth": 1200 + "viewportWidth": 1350 }, "textdomain": "grid-controller", "editorScript": "file:./index.js", diff --git a/blocks/grid-controller/src/controls.jsx b/blocks/grid-controller/src/controls.jsx index 2327866a9..cda60c64c 100644 --- a/blocks/grid-controller/src/controls.jsx +++ b/blocks/grid-controller/src/controls.jsx @@ -8,7 +8,7 @@ import { MarkedRangeControl } from '@prc/components'; * WordPress Dependencies */ import { __ } from '@wordpress/i18n'; -import { +import { Notice, RangeControl, __experimentalToolsPanelItem as ToolsPanelItem, @@ -25,6 +25,9 @@ import { useDispatch, useSelect } from '@wordpress/data'; import { createBlock } from '@wordpress/blocks'; import { Fragment } from '@wordpress/element'; +const DESKTOP_MIN = 2; +const TABLET_MIN = 2; +const MOBILE_MIN = 2; const DESKTOP_MAX = 12; const TABLET_MAX = 8; const MOBILE_MAX = 4;