From d019a60d50322e0eb76ee43e53ae2ce3287c91f4 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 2 Apr 2024 16:39:52 +0200 Subject: [PATCH] handling deprecation --- blocks/section-titling/build/index.asset.php | 2 +- blocks/section-titling/build/index.js | 1 - blocks/section-titling/build/index.js.map | 2 +- blocks/section-titling/src/edit.js | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/blocks/section-titling/build/index.asset.php b/blocks/section-titling/build/index.asset.php index bf14cb6..b7f2b63 100644 --- a/blocks/section-titling/build/index.asset.php +++ b/blocks/section-titling/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '532929bbc982cc64e979'); + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6ca461874bc5f11cea56'); diff --git a/blocks/section-titling/build/index.js b/blocks/section-titling/build/index.js index 30134e2..10d09f0 100644 --- a/blocks/section-titling/build/index.js +++ b/blocks/section-titling/build/index.js @@ -138,7 +138,6 @@ function Edit({ let { textAlign } = attributes; - console.log("attributes", attributes); function onChangeTextAlignment(textAlign) { setAttributes({ textAlign diff --git a/blocks/section-titling/build/index.js.map b/blocks/section-titling/build/index.js.map index a244b5d..8ed39bd 100644 --- a/blocks/section-titling/build/index.js.map +++ b/blocks/section-titling/build/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAwD;AACL;AACH;AAEhD,MAAMG,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,YAAY,EAAE;MACbC,IAAI,EAAE;IACP,CAAC;IACDC,eAAe,EAAE;MAChBD,IAAI,EAAE;IACP,CAAC;IACDE,SAAS,EAAE;MACVF,IAAI,EAAE,QAAQ;MACdG,OAAO,EAAE;IACV;EACD,CAAC;EAEDC,IAAIA,CAAC;IAAEN;EAAW,CAAC,EAA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WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/deprecated.js","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss","webpack://multiblocks/./src/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/header.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-center.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-left.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-right.js","webpack://multiblocks/external window \"React\"","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { useBlockProps } from \"@wordpress/block-editor\";\r\nimport { RichText } from \"@wordpress/block-editor\";\r\nimport { createBlock } from \"@wordpress/blocks\";\r\n\r\nconst v2 = {\r\n\tattributes: {\r\n\t\tsectionTitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\tsectionSubtitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\ttextAlign: {\r\n\t\t\ttype: \"string\",\r\n\t\t\tdefault: \"left\",\r\n\t\t},\r\n\t},\r\n\r\n\tsave({ attributes }) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t},\r\n\r\n\tmigrate(attributes, innerBlocks) {\r\n\t\tconst textAlign = attributes.textAlign;\r\n\t\treturn [\r\n\t\t\t{\r\n\t\t\t\ttextAlign: textAlign,\r\n\t\t\t},\r\n\t\t\t[\r\n\t\t\t\tcreateBlock(\"core/heading\", {\r\n\t\t\t\t\tcontent: attributes.sectionTitle,\r\n\t\t\t\t\tlevel: 3,\r\n\t\t\t\t\tclassName: \"section_titling__title\",\r\n\t\t\t\t}),\r\n\t\t\t\tcreateBlock(\"core/paragraph\", {\r\n\t\t\t\t\tcontent: attributes.sectionSubtitle,\r\n\t\t\t\t\tclassName: \"section_titling__subtitle\",\r\n\t\t\t\t}),\r\n\t\t\t],\r\n\t\t];\r\n\t},\r\n};\r\n\r\nconst v1 = {\r\n\tattributes: {\r\n\t\tsectionTitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\tsectionSubtitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\ttextAlign: {\r\n\t\t\ttype: \"string\",\r\n\t\t\tdefault: \"left\",\r\n\t\t},\r\n\t},\r\n\r\n\tsave({ attributes }) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t},\r\n};\r\n\r\nexport default [v2, v1];\r\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport { BlockControls } from \"@wordpress/block-editor\";\nimport { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\nimport { Toolbar, ToolbarDropdownMenu } from \"@wordpress/components\";\nimport { positionLeft, positionCenter, positionRight } from \"@wordpress/icons\";\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tlet { textAlign } = attributes;\n\n\tconsole.log(\"attributes\", attributes);\n\n\tfunction onChangeTextAlignment(textAlign) {\n\t\tsetAttributes({ textAlign });\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t onChangeTextAlignment(\"left\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttitle: \"Centré\",\n\t\t\t\t\t\t\t\ticon: positionCenter,\n\t\t\t\t\t\t\t\tonClick: () => onChangeTextAlignment(\"center\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttitle: \"Droite\",\n\t\t\t\t\t\t\t\ticon: positionRight,\n\t\t\t\t\t\t\t\tonClick: () => onChangeTextAlignment(\"right\"),\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","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport deprecated from \"./deprecated\";\nimport metadata from \"./block.json\";\n\nimport { header } from \"@wordpress/icons\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: header,\n\t\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n\tdeprecated,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { sectionTitle, sectionSubtitle, textAlign } = attributes;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst header = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z\"\n}));\nexport default header;\n//# sourceMappingURL=header.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionCenter = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z\"\n}));\nexport default positionCenter;\n//# sourceMappingURL=position-center.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionLeft = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z\"\n}));\nexport default positionLeft;\n//# sourceMappingURL=position-left.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionRight = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z\"\n}));\nexport default positionRight;\n//# sourceMappingURL=position-right.js.map","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// 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","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};","// 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))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// 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\t\"index\": 0,\n\t\"./style-index\": 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[\"webpackChunkmultiblocks\"] = globalThis[\"webpackChunkmultiblocks\"] || [];\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, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["useBlockProps","RichText","createBlock","v2","attributes","sectionTitle","type","sectionSubtitle","textAlign","default","save","createElement","className","Content","value","tagName","migrate","innerBlocks","content","level","v1","__","BlockControls","InnerBlocks","Toolbar","ToolbarDropdownMenu","positionLeft","positionCenter","positionRight","Edit","setAttributes","clientId","console","log","onChangeTextAlignment","Fragment","label","icon","controls","title","onClick","allowedBlocks","templateLock","template","placeholder","registerBlockType","deprecated","metadata","header","name","src","foreground","edit"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAwD;AACL;AACH;AAEhD,MAAMG,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,YAAY,EAAE;MACbC,IAAI,EAAE;IACP,CAAC;IACDC,eAAe,EAAE;MAChBD,IAAI,EAAE;IACP,CAAC;IACDE,SAAS,EAAE;MACVF,IAAI,EAAE,QAAQ;MACdG,OAAO,EAAE;IACV;EACD,CAAC;EAEDC,IAAIA,CAAC;IAA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PA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/deprecated.js","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss?d446","webpack://multiblocks/./src/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/header.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-center.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-left.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/position-right.js","webpack://multiblocks/external window \"React\"","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { useBlockProps } from \"@wordpress/block-editor\";\r\nimport { RichText } from \"@wordpress/block-editor\";\r\nimport { createBlock } from \"@wordpress/blocks\";\r\n\r\nconst v2 = {\r\n\tattributes: {\r\n\t\tsectionTitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\tsectionSubtitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\ttextAlign: {\r\n\t\t\ttype: \"string\",\r\n\t\t\tdefault: \"left\",\r\n\t\t},\r\n\t},\r\n\r\n\tsave({ attributes }) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t},\r\n\r\n\tmigrate(attributes, innerBlocks) {\r\n\t\tconst textAlign = attributes.textAlign;\r\n\t\treturn [\r\n\t\t\t{\r\n\t\t\t\ttextAlign: textAlign,\r\n\t\t\t},\r\n\t\t\t[\r\n\t\t\t\tcreateBlock(\"core/heading\", {\r\n\t\t\t\t\tcontent: attributes.sectionTitle,\r\n\t\t\t\t\tlevel: 3,\r\n\t\t\t\t\tclassName: \"section_titling__title\",\r\n\t\t\t\t}),\r\n\t\t\t\tcreateBlock(\"core/paragraph\", {\r\n\t\t\t\t\tcontent: attributes.sectionSubtitle,\r\n\t\t\t\t\tclassName: \"section_titling__subtitle\",\r\n\t\t\t\t}),\r\n\t\t\t],\r\n\t\t];\r\n\t},\r\n};\r\n\r\nconst v1 = {\r\n\tattributes: {\r\n\t\tsectionTitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\tsectionSubtitle: {\r\n\t\t\ttype: \"string\",\r\n\t\t},\r\n\t\ttextAlign: {\r\n\t\t\ttype: \"string\",\r\n\t\t\tdefault: \"left\",\r\n\t\t},\r\n\t},\r\n\r\n\tsave({ attributes }) {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t},\r\n};\r\n\r\nexport default [v2, v1];\r\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport { BlockControls } from \"@wordpress/block-editor\";\nimport { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\nimport { Toolbar, ToolbarDropdownMenu } from \"@wordpress/components\";\nimport { positionLeft, positionCenter, positionRight } from \"@wordpress/icons\";\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tlet { textAlign } = attributes;\n\n\tfunction onChangeTextAlignment(textAlign) {\n\t\tsetAttributes({ textAlign });\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t onChangeTextAlignment(\"left\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttitle: \"Centré\",\n\t\t\t\t\t\t\t\ticon: positionCenter,\n\t\t\t\t\t\t\t\tonClick: () => onChangeTextAlignment(\"center\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttitle: \"Droite\",\n\t\t\t\t\t\t\t\ticon: positionRight,\n\t\t\t\t\t\t\t\tonClick: () => onChangeTextAlignment(\"right\"),\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","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport deprecated from \"./deprecated\";\nimport metadata from \"./block.json\";\n\nimport { header } from \"@wordpress/icons\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: header,\n\t\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n\tdeprecated,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { sectionTitle, sectionSubtitle, textAlign } = attributes;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst header = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z\"\n}));\nexport default header;\n//# sourceMappingURL=header.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionCenter = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z\"\n}));\nexport default positionCenter;\n//# sourceMappingURL=position-center.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionLeft = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z\"\n}));\nexport default positionLeft;\n//# sourceMappingURL=position-left.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst positionRight = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z\"\n}));\nexport default positionRight;\n//# sourceMappingURL=position-right.js.map","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// 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","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};","// 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))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// 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\t\"index\": 0,\n\t\"./style-index\": 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[\"webpackChunkmultiblocks\"] = globalThis[\"webpackChunkmultiblocks\"] || [];\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, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["useBlockProps","RichText","createBlock","v2","attributes","sectionTitle","type","sectionSubtitle","textAlign","default","save","createElement","className","Content","value","tagName","migrate","innerBlocks","content","level","v1","__","BlockControls","InnerBlocks","Toolbar","ToolbarDropdownMenu","positionLeft","positionCenter","positionRight","Edit","setAttributes","clientId","onChangeTextAlignment","Fragment","label","icon","controls","title","onClick","allowedBlocks","templateLock","template","placeholder","registerBlockType","deprecated","metadata","header","name","src","foreground","edit"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/section-titling/src/edit.js b/blocks/section-titling/src/edit.js index 2647716..8e5e453 100644 --- a/blocks/section-titling/src/edit.js +++ b/blocks/section-titling/src/edit.js @@ -8,8 +8,6 @@ import { positionLeft, positionCenter, positionRight } from "@wordpress/icons"; export default function Edit({ attributes, setAttributes, clientId }) { let { textAlign } = attributes; - console.log("attributes", attributes); - function onChangeTextAlignment(textAlign) { setAttributes({ textAlign }); }