From 4bf7040ce4fe864e4adb537c425138237961695d Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 4 Feb 2026 11:13:13 +0100 Subject: [PATCH] REBUILDING --- .../carhop-blocks/build/blocks-manifest.php | 22 ++ .../build/front-header/index.asset.php | 2 +- .../carhop-blocks/build/front-header/index.js | 2 +- .../build/front-header/index.js.map | 2 +- .../build/press-ressources/block.json | 20 ++ .../build/press-ressources/index-rtl.css | 11 + .../build/press-ressources/index.asset.php | 1 + .../build/press-ressources/index.css | 13 + .../build/press-ressources/index.css.map | 1 + .../build/press-ressources/index.js | 327 ++++++++++++++++++ .../build/press-ressources/index.js.map | 1 + .../build/press-ressources/render.php | 147 ++++++++ .../press-ressources/style-index-rtl.css | 14 + .../build/press-ressources/style-index.css | 16 + .../press-ressources/style-index.css.map | 1 + .../build/press-ressources/view.asset.php | 1 + .../build/press-ressources/view.js | 28 ++ .../build/press-ressources/view.js.map | 1 + .../carhop-blocks/build/variations.asset.php | 2 +- plugins/carhop-blocks/build/variations.js | 62 ++-- plugins/carhop-blocks/build/variations.js.map | 2 +- 21 files changed, 651 insertions(+), 25 deletions(-) create mode 100644 plugins/carhop-blocks/build/press-ressources/block.json create mode 100644 plugins/carhop-blocks/build/press-ressources/index-rtl.css create mode 100644 plugins/carhop-blocks/build/press-ressources/index.asset.php create mode 100644 plugins/carhop-blocks/build/press-ressources/index.css create mode 100644 plugins/carhop-blocks/build/press-ressources/index.css.map create mode 100644 plugins/carhop-blocks/build/press-ressources/index.js create mode 100644 plugins/carhop-blocks/build/press-ressources/index.js.map create mode 100644 plugins/carhop-blocks/build/press-ressources/render.php create mode 100644 plugins/carhop-blocks/build/press-ressources/style-index-rtl.css create mode 100644 plugins/carhop-blocks/build/press-ressources/style-index.css create mode 100644 plugins/carhop-blocks/build/press-ressources/style-index.css.map create mode 100644 plugins/carhop-blocks/build/press-ressources/view.asset.php create mode 100644 plugins/carhop-blocks/build/press-ressources/view.js create mode 100644 plugins/carhop-blocks/build/press-ressources/view.js.map diff --git a/plugins/carhop-blocks/build/blocks-manifest.php b/plugins/carhop-blocks/build/blocks-manifest.php index e778dfc..5effdd9 100644 --- a/plugins/carhop-blocks/build/blocks-manifest.php +++ b/plugins/carhop-blocks/build/blocks-manifest.php @@ -921,6 +921,28 @@ return array( 'style' => 'file:./style-index.css', 'viewScript' => 'file:./view.js' ), + 'press-ressources' => array( + '$schema' => 'https://schemas.wp.org/trunk/block.json', + 'apiVersion' => 3, + 'name' => 'carhop-blocks/press-ressources', + 'version' => '0.1.0', + 'title' => 'Ressources pour la presse', + 'category' => 'carhop-blocks', + 'icon' => 'smiley', + 'description' => 'Ressources pour la presse', + 'example' => array( + + ), + 'supports' => array( + 'html' => false + ), + 'textdomain' => 'carhop-blocks', + 'editorScript' => 'file:./index.js', + 'editorStyle' => 'file:./index.css', + 'style' => 'file:./style-index.css', + 'render' => 'file:./render.php', + 'viewScript' => 'file:./view.js' + ), 'scroll-story-block' => array( '$schema' => 'https://schemas.wp.org/trunk/block.json', 'apiVersion' => 3, diff --git a/plugins/carhop-blocks/build/front-header/index.asset.php b/plugins/carhop-blocks/build/front-header/index.asset.php index 33bcc05..6bf1ba1 100644 --- a/plugins/carhop-blocks/build/front-header/index.asset.php +++ b/plugins/carhop-blocks/build/front-header/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '7248346e1270cebc7ce0'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '25bbbe07634f2070b956'); diff --git a/plugins/carhop-blocks/build/front-header/index.js b/plugins/carhop-blocks/build/front-header/index.js index e304f4c..325cd5c 100644 --- a/plugins/carhop-blocks/build/front-header/index.js +++ b/plugins/carhop-blocks/build/front-header/index.js @@ -44,7 +44,7 @@ function Edit() { template: [["core/paragraph", { placeholder: "Ajouter ici le texte" }]], - allowedBlocks: ["core/paragraph", "core/list", "core/button", "core/buttons", "core/heading", "carhop-blocks/cta", "carhop-blocks/heading"] + allowedBlocks: ["core/paragraph", "core/list", "core/button", "core/buttons", "core/heading", "carhop-blocks/cta", "carhop-blocks/heading", "carhop-blocks/press-contact-persons"] }) }) }); diff --git a/plugins/carhop-blocks/build/front-header/index.js.map b/plugins/carhop-blocks/build/front-header/index.js.map index 642f125..a3f6ceb 100644 --- a/plugins/carhop-blocks/build/front-header/index.js.map +++ b/plugins/carhop-blocks/build/front-header/index.js.map @@ -1 +1 @@ -{"version":3,"file":"front-header/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AAAA;AAER,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GACKH,sEAAa,CAAC;MACjBK,SAAS,EAAE;IACZ,CAAC,CAAC;IAAAC,QAAA,eAEFH,sDAAA;MAAKE,SAAS,EAAC,2BAA2B;MAAAC,QAAA,eACzCH,sDAAA,CAACF,gEAAW;QACXM,QAAQ,EAAE,CACT,CAAC,gBAAgB,EAAE;UAAEC,WAAW,EAAE;QAAuB,CAAC,CAAC,CAC1D;QACFC,aAAa,EAAE,CACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,uBAAuB;MACtB,CACF;IAAC,CACE;EAAC,CACE,CAAC;AAEZ,C;;;;;;;;;;;AC7BA;;;;;;;;;;;;;;;;;;;;ACAsD;AAChC;AAEI;AACA;AACU;AAAA;AAEpCC,oEAAiB,CAACE,6CAAa,EAAE;EAChCI,IAAI,EAAE;IACLC,UAAU,EAAE,SAAS;IACrBC,GAAG,eACFf,sDAAA;MAAKgB,KAAK,EAAC,KAAK;MAACC,MAAM,EAAC,KAAK;MAACC,OAAO,EAAC,aAAa;MAAAf,QAAA,eAClDH,sDAAA;QAAAG,QAAA,eACCQ,uDAAA;UAAAR,QAAA,gBACCH,sDAAA;YACCmB,MAAM,EAAC,MAAM;YACbC,EAAE,EAAC,OAAO;YACVC,CA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;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;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,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/front-header/edit.js","webpack://carhop-blocks/./src/front-header/editor.scss?2ff7","webpack://carhop-blocks/./src/front-header/index.js","webpack://carhop-blocks/./src/front-header/save.js","webpack://carhop-blocks/./src/front-header/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\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\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\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// 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\"front-header/index\": 0,\n\t\"front-header/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[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\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, [\"front-header/style-index\"], () => (__webpack_require__(\"./src/front-header/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","jsx","_jsx","Edit","className","children","template","placeholder","allowedBlocks","registerBlockType","save","metadata","jsxs","_jsxs","name","icon","foreground","src","width","height","viewBox","stroke","id","d","y","x","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"front-header/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACgC;AAC9C;AAAA;AAER,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GACKH,sEAAa,CAAC;MACjBK,SAAS,EAAE;IACZ,CAAC,CAAC;IAAAC,QAAA,eAEFH,sDAAA;MAAKE,SAAS,EAAC,2BAA2B;MAAAC,QAAA,eACzCH,sDAAA,CAACF,gEAAW;QACXM,QAAQ,EAAE,CACT,CAAC,gBAAgB,EAAE;UAAEC,WAAW,EAAE;QAAuB,CAAC,CAAC,CAC1D;QACFC,aAAa,EAAE,CACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,qCAAqC;MACpC,CACF;IAAC,CACE;EAAC,CACE,CAAC;AAEZ,C;;;;;;;;;;;AC9BA;;;;;;;;;;;;;;;;;;;;ACAsD;AAChC;AAEI;AACA;AACU;AAAA;AAEpCC,oEAAiB,CAACE,6CAAa,EAAE;EAChCI,IAAI,EAAE;IACLC,UAAU,EAAE,SAAS;IACrBC,GAAG,eACFf,sDAAA;MAAKgB,KAAK,EAAC,KAAK;MAACC,MA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,sDAAA;MAAKE,SAAS,EAAC,2BAA2B;MAAAC,QAAA,eACzCH,sDAAA,CAACF,gEAAW,CAAC2B,OAAO,IAAE;IAAC,CACnB;EAAC,CACE,CAAC;AAEZ,C;;;;;;;;;;;ACdA;;;;;;;;;;;ACAA,6C;;;;;;;;;;ACAA,wC;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,E;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;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,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/front-header/edit.js","webpack://carhop-blocks/./src/front-header/editor.scss?2ff7","webpack://carhop-blocks/./src/front-header/index.js","webpack://carhop-blocks/./src/front-header/save.js","webpack://carhop-blocks/./src/front-header/style.scss","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\n\nexport default function Edit() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tforeground: \"#136f63\",\n\t\tsrc: (\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\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\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// 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\"front-header/index\": 0,\n\t\"front-header/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[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\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, [\"front-header/style-index\"], () => (__webpack_require__(\"./src/front-header/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","jsx","_jsx","Edit","className","children","template","placeholder","allowedBlocks","registerBlockType","save","metadata","jsxs","_jsxs","name","icon","foreground","src","width","height","viewBox","stroke","id","d","y","x","edit","Content"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/block.json b/plugins/carhop-blocks/build/press-ressources/block.json new file mode 100644 index 0000000..d76e538 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/block.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "carhop-blocks/press-ressources", + "version": "0.1.0", + "title": "Ressources pour la presse", + "category": "carhop-blocks", + "icon": "smiley", + "description": "Ressources pour la presse", + "example": {}, + "supports": { + "html": false + }, + "textdomain": "carhop-blocks", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": "file:./style-index.css", + "render": "file:./render.php", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index-rtl.css b/plugins/carhop-blocks/build/press-ressources/index-rtl.css new file mode 100644 index 0000000..95ed4c2 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index-rtl.css @@ -0,0 +1,11 @@ +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/editor.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} diff --git a/plugins/carhop-blocks/build/press-ressources/index.asset.php b/plugins/carhop-blocks/build/press-ressources/index.asset.php new file mode 100644 index 0000000..542a3c2 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.asset.php @@ -0,0 +1 @@ + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n', 'wp-server-side-render'), 'version' => 'cbf665ebc2b4e5ba373c'); diff --git a/plugins/carhop-blocks/build/press-ressources/index.css b/plugins/carhop-blocks/build/press-ressources/index.css new file mode 100644 index 0000000..95b1c40 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.css @@ -0,0 +1,13 @@ +/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/editor.scss ***! + \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + border: 1px dotted #f00; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.css.map b/plugins/carhop-blocks/build/press-ressources/index.css.map new file mode 100644 index 0000000..8d68b8e --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/index.css","mappings":";;;AAAA;;;;EAAA;AAMA;EACC;AAAD,C","sources":["webpack://carhop-blocks/./src/press-ressources/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tborder: 1px dotted #f00;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.js b/plugins/carhop-blocks/build/press-ressources/index.js new file mode 100644 index 0000000..fbe31f2 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.js @@ -0,0 +1,327 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./src/press-ressources/block.json": +/*!*****************************************!*\ + !*** ./src/press-ressources/block.json ***! + \*****************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"carhop-blocks/press-ressources","version":"0.1.0","title":"Ressources pour la presse","category":"carhop-blocks","icon":"smiley","description":"Ressources pour la presse","example":{},"supports":{"html":false},"textdomain":"carhop-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","render":"file:./render.php","viewScript":"file:./view.js"}'); + +/***/ }), + +/***/ "./src/press-ressources/edit.js": +/*!**************************************!*\ + !*** ./src/press-ressources/edit.js ***! + \**************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/press-ressources/editor.scss"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/server-side-render */ "@wordpress/server-side-render"); +/* harmony import */ var _wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +function Edit() { + return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ + className: "alignwide" + }), + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_3___default()), { + block: "carhop-blocks/press-ressources" + }) + }); +} + +/***/ }), + +/***/ "./src/press-ressources/editor.scss": +/*!******************************************!*\ + !*** ./src/press-ressources/editor.scss ***! + \******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/press-ressources/index.js": +/*!***************************************!*\ + !*** ./src/press-ressources/index.js ***! + \***************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/press-ressources/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/press-ressources/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/press-ressources/block.json"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__); + + + + + +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { + icon: { + src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", { + width: "32", + height: "32", + viewBox: "0 0 32 32", + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", { + d: "M16 24L8 16L16 8L24 16L16 24Z" + }) + }) + }, + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"] +}); + +/***/ }), + +/***/ "./src/press-ressources/style.scss": +/*!*****************************************!*\ + !*** ./src/press-ressources/style.scss ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ ((module) => { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "react/jsx-runtime": +/*!**********************************!*\ + !*** external "ReactJSXRuntime" ***! + \**********************************/ +/***/ ((module) => { + +module.exports = window["ReactJSXRuntime"]; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "press-ressources/index": 0, +/******/ "press-ressources/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkcarhop_blocks"] = globalThis["webpackChunkcarhop_blocks"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["press-ressources/style-index"], () => (__webpack_require__("./src/press-ressources/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/index.js.map b/plugins/carhop-blocks/build/press-ressources/index.js.map new file mode 100644 index 0000000..a8275e4 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACjC;AACsC;AAAA;AAE9C,SAASK,IAAIA,CAAA,EAAG;EAC9B,oBACCD,sDAAA;IAAA,GAASH,sEAAa,CAAC;MAAEK,SAAS,EAAE;IAAY,CAAC,CAAC;IAAAC,QAAA,eAC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ACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://carhop-blocks/./src/press-ressources/edit.js","webpack://carhop-blocks/./src/press-ressources/editor.scss?b1ca","webpack://carhop-blocks/./src/press-ressources/index.js","webpack://carhop-blocks/./src/press-ressources/style.scss?96e7","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/chunk loaded","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/webpack/runtime/jsonp chunk loading","webpack://carhop-blocks/webpack/before-startup","webpack://carhop-blocks/webpack/startup","webpack://carhop-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nexport default function Edit() {\n\treturn (\n\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\tedit: Edit,\n});\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// 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\"press-ressources/index\": 0,\n\t\"press-ressources/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[\"webpackChunkcarhop_blocks\"] = globalThis[\"webpackChunkcarhop_blocks\"] || [];\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, [\"press-ressources/style-index\"], () => (__webpack_require__(\"./src/press-ressources/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","jsx","_jsx","Edit","className","children","block","registerBlockType","metadata","name","icon","src","width","height","viewBox","d","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/render.php b/plugins/carhop-blocks/build/press-ressources/render.php new file mode 100644 index 0000000..f3f20e3 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/render.php @@ -0,0 +1,147 @@ + 'press-ressources alignwide']); + + $contact_persons = get_field('contact_persons', 'option'); + $ressources_graphiques = get_field('ressources_graphiques', 'option'); + + ?> + +
> +
+
+ +
    + + $person->ID)); ?> + +
+
+
+ +
+
+ + + + + + + +
+
+
+
+ 'communique-presse', + 'posts_per_page' => 10, + )); + ?> +

Nos Communiqués de presse

+ + +
+ + +
+

ID); ?>

+

ID); ?>

+ Voir le communiqué +
+ + +
+
+ +
+

Ressources

+ +
    +
  • +

    contact direct

    + info@carhop.be + +32 67 48 58 61 +
  • + +
  • +

    Adresse postale

    +

    Avenue de la Houssière, 80 +
    7090 Braine-le-Comte +

    +
  • + +
  • +

    Réseaux sociaux

    + +
  • +
+

Ressources graphiques

+ + + + + + +
+ Liste des fichiers disponibles au téléchargement, avec leur format et leur poids. +
+ +
+ +
+

+ post_content); + + wp_reset_postdata(); + $post = $original_post; + } + ?> +
+
+
\ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/style-index-rtl.css b/plugins/carhop-blocks/build/press-ressources/style-index-rtl.css new file mode 100644 index 0000000..7e5007a --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/style-index-rtl.css @@ -0,0 +1,14 @@ +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/style.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + background-color: #21759b; + color: #fff; + padding: 2px; +} diff --git a/plugins/carhop-blocks/build/press-ressources/style-index.css b/plugins/carhop-blocks/build/press-ressources/style-index.css new file mode 100644 index 0000000..32bf8b7 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/style-index.css @@ -0,0 +1,16 @@ +/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/.pnpm/css-loader@6.11.0_webpack@5.103.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.5.6_webpack@5.103.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@16.0.6_sass@1.94.1_webpack@5.103.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/press-ressources/style.scss ***! + \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-chapo { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/style-index.css.map b/plugins/carhop-blocks/build/press-ressources/style-index.css.map new file mode 100644 index 0000000..ab4e137 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/style-index.css","mappings":";;;AAAA;;;;;EAAA;AAOA;EACC;EACA;EACA;AAAD,C","sources":["webpack://carhop-blocks/./src/press-ressources/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-chapo {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n"],"names":[],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/view.asset.php b/plugins/carhop-blocks/build/press-ressources/view.asset.php new file mode 100644 index 0000000..3399720 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => '519a0e2709812a903d67'); diff --git a/plugins/carhop-blocks/build/press-ressources/view.js b/plugins/carhop-blocks/build/press-ressources/view.js new file mode 100644 index 0000000..db063f6 --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/view.js @@ -0,0 +1,28 @@ +/******/ (() => { // webpackBootstrap +/*!**************************************!*\ + !*** ./src/press-ressources/view.js ***! + \**************************************/ +document.addEventListener("DOMContentLoaded", function () { + const toolbar = document.querySelector("#press-toolbar"); + if (!toolbar) return; + const toolbarButtons = toolbar.querySelectorAll("button"); + const ressourcesGridContentWrapper = document.querySelector(".ressources-grid-content-wrapper"); + function setActiveTab(currentButton) { + toolbarButtons.forEach(button => { + button.setAttribute("aria-selected", "false"); + }); + currentButton.setAttribute("aria-selected", "true"); + ressourcesGridContentWrapper.setAttribute("data-active-tab", currentButton.getAttribute("data-tab")); + } + function initToolbar() { + toolbarButtons.forEach(button => { + button.addEventListener("click", function () { + setActiveTab(button); + }); + }); + } + initToolbar(); +}); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/plugins/carhop-blocks/build/press-ressources/view.js.map b/plugins/carhop-blocks/build/press-ressources/view.js.map new file mode 100644 index 0000000..1dcb26e --- /dev/null +++ b/plugins/carhop-blocks/build/press-ressources/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"press-ressources/view.js","mappings":";;;;AAAAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;EACzD,MAAMC,OAAO,GAAGF,QAAQ,CAACG,aAAa,CAAC,gBAAgB,CAAC;EACxD,IAAI,CAACD,OAAO,EAAE;EACd,MAAME,cAAc,GAAGF,OAAO,CAACG,gBAAgB,CAAC,QAAQ,CAAC;EACzD,MAAMC,4BAA4B,GAAGN,QAAQ,CAACG,aAAa,CAC1D,kCACD,CAAC;EAED,SAASI,YAAYA,CAACC,aAAa,EAAE;IACpCJ,cAAc,CAACK,OAAO,CAAEC,MAAM,IAAK;MAClCA,MAAM,CAACC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC;IAC9C,CAAC,CAAC;IAEFH,aAAa,CAACG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC;IACnDL,4BAA4B,CAACK,YAAY,CACxC,iBAAiB,EACjBH,aAAa,CAACI,YAAY,CAAC,UAAU,CACtC,CAAC;EACF;EAEA,SAASC,WAAWA,CAAA,EAAG;IACtBT,cAAc,CAACK,OAAO,CAAEC,MAAM,IAAK;MAClCA,MAAM,CAACT,gBAAgB,CAAC,OAAO,EAAE,YAAY;QAC5CM,YAAY,CAACG,MAAM,CAAC;MACrB,CAAC,CAAC;IACH,CAAC,CAAC;EACH;EACAG,WAAW,CAAC,CAAC;AACd,CAAC,CAAC,C","sources":["webpack://carhop-blocks/./src/press-ressources/view.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function () {\r\n\tconst toolbar = document.querySelector(\"#press-toolbar\");\r\n\tif (!toolbar) return;\r\n\tconst toolbarButtons = toolbar.querySelectorAll(\"button\");\r\n\tconst ressourcesGridContentWrapper = document.querySelector(\r\n\t\t\".ressources-grid-content-wrapper\"\r\n\t);\r\n\r\n\tfunction setActiveTab(currentButton) {\r\n\t\ttoolbarButtons.forEach((button) => {\r\n\t\t\tbutton.setAttribute(\"aria-selected\", \"false\");\r\n\t\t});\r\n\r\n\t\tcurrentButton.setAttribute(\"aria-selected\", \"true\");\r\n\t\tressourcesGridContentWrapper.setAttribute(\r\n\t\t\t\"data-active-tab\",\r\n\t\t\tcurrentButton.getAttribute(\"data-tab\")\r\n\t\t);\r\n\t}\r\n\r\n\tfunction initToolbar() {\r\n\t\ttoolbarButtons.forEach((button) => {\r\n\t\t\tbutton.addEventListener(\"click\", function () {\r\n\t\t\t\tsetActiveTab(button);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\tinitToolbar();\r\n});\r\n"],"names":["document","addEventListener","toolbar","querySelector","toolbarButtons","querySelectorAll","ressourcesGridContentWrapper","setActiveTab","currentButton","forEach","button","setAttribute","getAttribute","initToolbar"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/carhop-blocks/build/variations.asset.php b/plugins/carhop-blocks/build/variations.asset.php index 22f8a44..cd9e261 100644 --- a/plugins/carhop-blocks/build/variations.asset.php +++ b/plugins/carhop-blocks/build/variations.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '1f52d271b768de8e56d3'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '025809f38879d8aa4d9f'); diff --git a/plugins/carhop-blocks/build/variations.js b/plugins/carhop-blocks/build/variations.js index e2d4cc9..3545f67 100644 --- a/plugins/carhop-blocks/build/variations.js +++ b/plugins/carhop-blocks/build/variations.js @@ -39,15 +39,15 @@ __webpack_require__.r(__webpack_exports__); // Enregistrement du style de bloc -(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockStyle)("core/column", { - name: "sticky-column", - label: "Colonne sticky" +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockStyle)("core/columns", { + name: "sticky-columns", + label: "Colonnes sticky" }); // Fonction pour vérifier si le style sticky-columns est appliqué -const hasStickyColumnStyle = attributes => { +const hasStickyColumnsStyle = attributes => { const className = attributes?.className || ""; - return className.includes("is-style-sticky-column"); + return className.includes("is-style-sticky-columns"); }; // ----------------------------- @@ -55,7 +55,7 @@ const hasStickyColumnStyle = attributes => { // ----------------------------- (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)("blocks.getSaveElement", "carhop/sticky-columns-wrapper", (element, blockType, attributes) => { // Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué - if (blockType.name !== "core/column" || !hasStickyColumnStyle(attributes)) { + if (blockType.name !== "core/columns" || !hasStickyColumnsStyle(attributes)) { return element; } @@ -64,37 +64,59 @@ const hasStickyColumnStyle = attributes => { return element; } - // Envelopper les enfants dans une div avec la classe "sticky-column-wrapper" - const wrappedChildren = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { - className: "sticky-column-wrapper" - }, element.props.children); + // Envelopper chaque colonne individuellement dans une div avec la classe "test" + const children = _wordpress_element__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(element.props.children); + const wrappedChildren = children.map((child, index) => { + // Si c'est un élément React (une colonne), l'envelopper dans une div + if (child && typeof child === "object" && child.type) { + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { + key: `sticky-column-wrapper-${index}`, + className: "test" + }, child); + } + // Sinon, retourner tel quel + return child; + }); // Retourner l'élément avec les enfants enveloppés - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)(element.type, { + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(element, { ...element.props, children: wrappedChildren - }, wrappedChildren); + }); }); // ----------------------------- // 2. Modifier l'affichage dans l'éditeur pour envelopper les colonnes dans une div avec la classe "test" +// Note: Le rendu côté serveur est géré par render.php +// Pour l'éditeur, on utilise un filtre sur BlockEdit pour modifier le rendu // ----------------------------- (0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__.addFilter)("editor.BlockEdit", "carhop/sticky-columns-editor-wrapper", (0,_wordpress_compose__WEBPACK_IMPORTED_MODULE_3__.createHigherOrderComponent)(BlockEdit => { return props => { - // Vérifier si c'est le bloc core/column et si le style sticky-column est appliqué - if (props.name !== "core/column" || !hasStickyColumnStyle(props.attributes)) { + // Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué + if (props.name !== "core/columns" || !hasStickyColumnsStyle(props.attributes)) { return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(BlockEdit, { ...props }); } - console.log(props); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { - className: "sticky-column-wrapper" - }, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(BlockEdit, { + + // Récupérer le rendu du bloc + const blockEditElement = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(BlockEdit, { ...props - })); + }); + + // Si l'élément a des enfants (les inner blocks), on les enveloppe dans une div avec la classe "test" + if (blockEditElement && blockEditElement.props && blockEditElement.props.children) { + // Cloner l'élément et envelopper les enfants dans une div avec la classe "test" + return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(blockEditElement, { + ...blockEditElement.props, + children: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_2__.createElement)("div", { + className: "test" + }, blockEditElement.props.children) + }); + } + return blockEditElement; }; -}, "withStickyColumnWrapper")); +}, "withStickyColumnsWrapper")); /***/ }), diff --git a/plugins/carhop-blocks/build/variations.js.map b/plugins/carhop-blocks/build/variations.js.map index dadd860..c2cd2db 100644 --- a/plugins/carhop-blocks/build/variations.js.map +++ b/plugins/carhop-blocks/build/variations.js.map @@ -1 +1 @@ -{"version":3,"file":"variations.js","mappings":";;;;;;;;;AAAAA,EAAE,CAACC,MAAM,CAACC,kBAAkB,CAAC,cAAc,EAAE;EAC5CC,IAAI,EAAE,aAAa;EACnBC,KAAK,EAAE;AACR,CAAC,CAAC,C;;;;;;;;;;;;;;;;;;;;;;ACHqD;AACV;AAMjB;AACoC;;AAEhE;AAAA;AACAF,qEAAkB,CAAC,aAAa,EAAE;EACjCC,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAE;AACR,CAAC,CAAC;;AAEF;AACA,MAAMS,oBAAoB,GAAIC,UAAU,IAAK;EAC5C,MAAMC,SAAS,GAAGD,UAAU,EAAEC,SAAS,IAAI,EAAE;EAC7C,OAAOA,SAAS,CAACC,QAAQ,CAAC,wBAAwB,CAAC;AACpD,CAAC;;AAED;AACA;AACA;AACAX,2DAAS,CACR,uBAAuB,EACvB,+BAA+B,EAC/B,CAACY,OAAO,EAAEC,SAAS,EAAEJ,UAAU,KAAK;EACnC;EACA,IAAII,SAAS,CAACf,IAAI,KAAK,aAAa,IAAI,CAACU,oBAAoB,CAACC,UAAU,CAAC,EAAE;IAC1E,OAAOG,OAAO;EACf;;EAEA;EACA,IAAI,CAACA,OAAO,IAAI,CAACA,OAAO,CAACE,KAAK,IAAI,CAACF,OA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IACzC,MAAMhC,SAAS,GAAG,CACjBI,KAAK,CAACJ,SAAS,IAAI,EAAE,EACrB4C,IAAI,GAAG,iBAAiB,GAAG,EAAE,EAC7BA,IAAI,GAAG,oBAAoBA,IAAI,EAAE,GAAG,EAAE,CACtC,CACCC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;IAEX,oBAAOlD,sDAAA,CAAC8C,cAAc;MAAA,GAAKvC,KAAK;MAAEJ,SAAS,EAAEA;IAAU,CAAE,CAAC;EAC3D,CAAC;AACF,CAAC,EAAE,iCAAiC,CACrC,CAAC,C;;;;;;;;;;;;ACvKD;;;;;;;;;;;;ACAA,6C;;;;;;;;;;;ACAA,wC;;;;;;;;;;;ACAA,4C;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,yC;;;;;;;;;;;ACAA,uC;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,2C;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA,E;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;;;;;ACN0C;AACF;AACA;AACD;AACL;AACA","sources":["webpack://carhop-blocks/./src/core-variants/core-buttons/editor.js","webpack://carhop-blocks/./src/core-variants/core-columns/editor.js","webpack://carhop-blocks/./src/core-variants/core-embed-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-heading-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-image-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-list-variant/editor.js","webpack://carhop-blocks/./src/core-variants/variants.scss?f090","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"compose\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"hooks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/./src/core-variants/variants.js"],"sourcesContent":["wp.blocks.registerBlockStyle(\"core/buttons\", {\r\n\tname: \"big-buttons\",\r\n\tlabel: \"Grands boutons \",\r\n});\r\n","import { registerBlockStyle } from \"@wordpress/blocks\";\r\nimport { addFilter } from \"@wordpress/hooks\";\r\nimport {\r\n\tcreateElement,\r\n\tFragment,\r\n\tcloneElement,\r\n\tChildren,\r\n} from \"@wordpress/element\";\r\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\r\n\r\n// Enregistrement du style de bloc\r\nregisterBlockStyle(\"core/column\", {\r\n\tname: \"sticky-column\",\r\n\tlabel: \"Colonne sticky\",\r\n});\r\n\r\n// Fonction pour vérifier si le style sticky-columns est appliqué\r\nconst hasStickyColumnStyle = (attributes) => {\r\n\tconst className = attributes?.className || \"\";\r\n\treturn className.includes(\"is-style-sticky-column\");\r\n};\r\n\r\n// -----------------------------\r\n// 1. Modifier le HTML sauvegardé pour envelopper les colonnes dans une div avec la classe \"test\"\r\n// -----------------------------\r\naddFilter(\r\n\t\"blocks.getSaveElement\",\r\n\t\"carhop/sticky-columns-wrapper\",\r\n\t(element, blockType, attributes) => {\r\n\t\t// Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué\r\n\t\tif (blockType.name !== \"core/column\" || !hasStickyColumnStyle(attributes)) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\r\n\t\t// Si l'élément est null ou n'a pas d'enfants, retourner tel quel\r\n\t\tif (!element || !element.props || !element.props.children) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\r\n\t\t// Envelopper les enfants dans une div avec la classe \"sticky-column-wrapper\"\r\n\t\tconst wrappedChildren = createElement(\r\n\t\t\t\"div\",\r\n\t\t\t{ className: \"sticky-column-wrapper\" },\r\n\t\t\telement.props.children,\r\n\t\t);\r\n\r\n\t\t// Retourner l'élément avec les enfants enveloppés\r\n\t\treturn createElement(\r\n\t\t\telement.type,\r\n\t\t\t{\r\n\t\t\t\t...element.props,\r\n\t\t\t\tchildren: wrappedChildren,\r\n\t\t\t},\r\n\t\t\twrappedChildren,\r\n\t\t);\r\n\t},\r\n);\r\n\r\n// -----------------------------\r\n// 2. Modifier l'affichage dans l'éditeur pour envelopper les colonnes dans une div avec la classe \"test\"\r\n// -----------------------------\r\naddFilter(\r\n\t\"editor.BlockEdit\",\r\n\t\"carhop/sticky-columns-editor-wrapper\",\r\n\tcreateHigherOrderComponent((BlockEdit) => {\r\n\t\treturn (props) => {\r\n\t\t\t// Vérifier si c'est le bloc core/column et si le style sticky-column est appliqué\r\n\t\t\tif (\r\n\t\t\t\tprops.name !== \"core/column\" ||\r\n\t\t\t\t!hasStickyColumnStyle(props.attributes)\r\n\t\t\t) {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\tconsole.log(props);\r\n\r\n\t\t\treturn createElement(\r\n\t\t\t\t\"div\",\r\n\t\t\t\t{ className: \"sticky-column-wrapper\" },\r\n\t\t\t\t,\r\n\t\t\t);\r\n\t\t};\r\n\t}, \"withStickyColumnWrapper\"),\r\n);\r\n","wp.blocks.registerBlockStyle(\"core/embed\", {\r\n\tname: \"stacked-background\",\r\n\tlabel: \"Fond empilé\",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/heading\", {\r\n\tname: \"stroked-after\",\r\n\tlabel: \"Titre + trait \",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"framed\",\r\n\tlabel: \"Encadré\",\r\n\tisDefault: true,\r\n});\r\nwp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"stacked\",\r\n\tlabel: \"Empilé\",\r\n\tisDefault: false,\r\n});\r\n","import { registerBlockVariation } from \"@wordpress/blocks\";\r\nimport { __ } from \"@wordpress/i18n\";\r\nimport {\r\n\tInspectorControls,\r\n\tBlockControls,\r\n\tAlignmentToolbar,\r\n} from \"@wordpress/block-editor\";\r\nimport { ToolbarGroup, ToolbarDropdownMenu } from \"@wordpress/components\";\r\nimport { Fragment } from \"@wordpress/element\";\r\nimport { addFilter } from \"@wordpress/hooks\";\r\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\r\n\r\nimport { check, arrowRight, starFilled } from \"@wordpress/icons\";\r\n\r\n// Variation du bloc \"Liste\" pour ajouter une classe spéciale\r\nregisterBlockVariation(\"core/list\", {\r\n\tname: \"iconed-list\",\r\n\ttitle: \"Liste avec icônes\",\r\n\tdescription: \"Liste dont chaque élément peut avoir une icône personnalisée.\",\r\n\tattributes: {\r\n\t\tclassName: \"is-iconed-list\",\r\n\t},\r\n\tscope: [\"inserter\", \"transform\"],\r\n\tisActive: (blockAttributes) => {\r\n\t\tconst cls = (blockAttributes && blockAttributes.className) || \"\";\r\n\t\treturn cls.split(\" \").includes(\"is-iconed-list\");\r\n\t},\r\n});\r\n\r\n// -----------------------------\r\n// 1. On étend les attributs de core/list-item\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"blocks.registerBlockType\",\r\n\t\"am/iconed-list-item-attributes\",\r\n\t(settings, name) => {\r\n\t\tif (name !== \"core/list-item\") {\r\n\t\t\treturn settings;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\t...settings,\r\n\t\t\tattributes: {\r\n\t\t\t\t...settings.attributes,\r\n\t\t\t\ticon: {\r\n\t\t\t\t\ttype: \"string\",\r\n\t\t\t\t\tdefault: \"\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 2. On ajoute un panneau de réglages pour choisir l'icône\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"editor.BlockEdit\",\r\n\t\"am/iconed-list-item-controls\",\r\n\t(BlockEdit) => (props) => {\r\n\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tconst { attributes, setAttributes } = props;\r\n\t\tconst { icon } = attributes;\r\n\r\n\t\tconst ICONS = [\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Loupe\"),\r\n\t\t\t\tvalue: \"loupe\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Sablier\"),\r\n\t\t\t\tvalue: \"sablier\",\r\n\t\t\t},\r\n\t\t\t{ title: __(\"Cadenas\"), value: \"cadenas\" },\r\n\t\t\t{ title: __(\"Check\"), value: \"check\" },\r\n\t\t\t{ title: __(\"Loupe Alt\"), value: \"loupe-alt\" },\r\n\t\t\t{ title: __(\"Pendule\"), value: \"pendule\" },\r\n\t\t];\r\n\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\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcontrols={ICONS.map(({ title, value }) => ({\r\n\t\t\t\t\t\t\t\ttitle,\r\n\t\t\t\t\t\t\t\ticon: (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\tisActive: icon === value,\r\n\t\t\t\t\t\t\t\tonClick: () => setAttributes({ icon: value }),\r\n\t\t\t\t\t\t\t}))}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t setAttributes({ align: value })}\r\n\t\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\n// -----------------------------\r\n// 3. On ajoute des props au HTML sauvegardé pour chaque
  • \r\n// -----------------------------\r\naddFilter(\r\n\t\"blocks.getSaveContent.extraProps\",\r\n\t\"carhop/iconed-list-item-save-props\",\r\n\t(extraProps, blockType, attributes) => {\r\n\t\tif (blockType.name !== \"core/list-item\" || !attributes.icon) {\r\n\t\t\treturn extraProps;\r\n\t\t}\r\n\r\n\t\tif (attributes.icon) {\r\n\t\t\textraProps = {\r\n\t\t\t\t...extraProps,\r\n\t\t\t\tclassName:\r\n\t\t\t\t\t(extraProps.className || \"\") +\r\n\t\t\t\t\t\" has-custom-icon has-custom-icon--\" +\r\n\t\t\t\t\tattributes.icon,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn extraProps;\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 4. Applique les mêmes classes en mode éditeur (BlockListBlock)\r\n// -----------------------------\r\naddFilter(\r\n\t\"editor.BlockListBlock\",\r\n\t\"carhop/iconed-list-item-editor-classes\",\r\n\tcreateHigherOrderComponent((BlockListBlock) => {\r\n\t\treturn (props) => {\r\n\t\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\tconst slug = props.attributes?.icon || \"\";\r\n\t\t\tconst className = [\r\n\t\t\t\tprops.className || \"\",\r\n\t\t\t\tslug ? \"has-custom-icon\" : \"\",\r\n\t\t\t\tslug ? `has-custom-icon--${slug}` : \"\",\r\n\t\t\t]\r\n\t\t\t\t.filter(Boolean)\r\n\t\t\t\t.join(\" \");\r\n\r\n\t\t\treturn ;\r\n\t\t};\r\n\t}, \"withIconedListItemEditorClasses\")\r\n);\r\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// 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","// 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};","import \"./core-heading-variant/editor.js\";\r\nimport \"./core-image-variant/editor.js\";\r\nimport \"./core-embed-variant/editor.js\";\r\nimport \"./core-list-variant/editor.js\";\r\nimport \"./core-buttons/editor.js\";\r\nimport \"./core-columns/editor.js\";\r\n\r\nimport \"./variants.scss\";\r\n"],"names":["wp","blocks","registerBlockStyle","name","label","addFilter","createElement","Fragment","cloneElement","Children","createHigherOrderComponent","jsx","_jsx","hasStickyColumnStyle","attributes","className","includes","element","blockType","props","children","wrappedChildren","type","BlockEdit","console","log","isDefault","registerBlockVariation","__","InspectorControls","BlockControls","AlignmentToolbar","ToolbarGroup","ToolbarDropdownMenu","check","arrowRight","starFilled","jsxs","_jsxs","title","description","scope","isActive","blockAttributes","cls","split","settings","icon","default","setAttributes","ICONS","value","controls","map","onClick","align","onChange","extraProps","BlockListBlock","slug","filter","Boolean","join"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"variations.js","mappings":";;;;;;;;;AAAAA,EAAE,CAACC,MAAM,CAACC,kBAAkB,CAAC,cAAc,EAAE;EAC5CC,IAAI,EAAE,aAAa;EACnBC,KAAK,EAAE;AACR,CAAC,CAAC,C;;;;;;;;;;;;;;;;;;;;;;ACHqD;AACV;AAC8B;AACX;;AAEhE;AAAA;AACAF,qEAAkB,CAAC,cAAc,EAAE;EAClCC,IAAI,EAAE,gBAAgB;EACtBC,KAAK,EAAE;AACR,CAAC,CAAC;;AAEF;AACA,MAAMQ,qBAAqB,GAAIC,UAAU,IAAK;EAC7C,MAAMC,SAAS,GAAGD,UAAU,EAAEC,SAAS,IAAI,EAAE;EAC7C,OAAOA,SAAS,CAACC,QAAQ,CAAC,yBAAyB,CAAC;AACrD,CAAC;;AAED;AACA;AACA;AACAV,2DAAS,CACR,uBAAuB,EACvB,+BAA+B,EAC/B,CAACW,OAAO,EAAEC,SAAS,EAAEJ,UAAU,KAAK;EACnC;EACA,IACCI,SAAS,CAACd,IAAI,KAAK,cAAc,IACjC,CAACS,qBAAqB,CAACC,UAAU,CAAC,EACjC;IACD,OAAOG,OAAO;EACf;;EAEA;EACA,IAAI,CAACA,OAAO,IAAI,CAACA,OAAO,CAACE,KAAK,IAAI,CAACF,OAAO,CAACE,KAAK,CAACC,QAAQ,EAAE;IAC1D,OAAOH,OAAO;EACf;;EAEA;EACA,MAAMG,QAAQ,GAAGX,wDAAQ,CAACY,OAAO,CAACJ,OAA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,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;;;;;;;;;;;;;;;;;;;ACN0C;AACF;AACA;AACD;AACL;AACA","sources":["webpack://carhop-blocks/./src/core-variants/core-buttons/editor.js","webpack://carhop-blocks/./src/core-variants/core-columns/editor.js","webpack://carhop-blocks/./src/core-variants/core-embed-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-heading-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-image-variant/editor.js","webpack://carhop-blocks/./src/core-variants/core-list-variant/editor.js","webpack://carhop-blocks/./src/core-variants/variants.scss?f090","webpack://carhop-blocks/external window [\"wp\",\"blockEditor\"]","webpack://carhop-blocks/external window [\"wp\",\"blocks\"]","webpack://carhop-blocks/external window [\"wp\",\"components\"]","webpack://carhop-blocks/external window [\"wp\",\"compose\"]","webpack://carhop-blocks/external window [\"wp\",\"element\"]","webpack://carhop-blocks/external window [\"wp\",\"hooks\"]","webpack://carhop-blocks/external window [\"wp\",\"i18n\"]","webpack://carhop-blocks/external window \"ReactJSXRuntime\"","webpack://carhop-blocks/webpack/bootstrap","webpack://carhop-blocks/webpack/runtime/compat get default export","webpack://carhop-blocks/webpack/runtime/define property getters","webpack://carhop-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://carhop-blocks/webpack/runtime/make namespace object","webpack://carhop-blocks/./src/core-variants/variants.js"],"sourcesContent":["wp.blocks.registerBlockStyle(\"core/buttons\", {\r\n\tname: \"big-buttons\",\r\n\tlabel: \"Grands boutons \",\r\n});\r\n","import { registerBlockStyle } from \"@wordpress/blocks\";\nimport { addFilter } from \"@wordpress/hooks\";\nimport { createElement, cloneElement, Children } from \"@wordpress/element\";\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\n\n// Enregistrement du style de bloc\nregisterBlockStyle(\"core/columns\", {\n\tname: \"sticky-columns\",\n\tlabel: \"Colonnes sticky\",\n});\n\n// Fonction pour vérifier si le style sticky-columns est appliqué\nconst hasStickyColumnsStyle = (attributes) => {\n\tconst className = attributes?.className || \"\";\n\treturn className.includes(\"is-style-sticky-columns\");\n};\n\n// -----------------------------\n// 1. Modifier le HTML sauvegardé pour envelopper les colonnes dans une div avec la classe \"test\"\n// -----------------------------\naddFilter(\n\t\"blocks.getSaveElement\",\n\t\"carhop/sticky-columns-wrapper\",\n\t(element, blockType, attributes) => {\n\t\t// Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué\n\t\tif (\n\t\t\tblockType.name !== \"core/columns\" ||\n\t\t\t!hasStickyColumnsStyle(attributes)\n\t\t) {\n\t\t\treturn element;\n\t\t}\n\n\t\t// Si l'élément est null ou n'a pas d'enfants, retourner tel quel\n\t\tif (!element || !element.props || !element.props.children) {\n\t\t\treturn element;\n\t\t}\n\n\t\t// Envelopper chaque colonne individuellement dans une div avec la classe \"test\"\n\t\tconst children = Children.toArray(element.props.children);\n\t\tconst wrappedChildren = children.map((child, index) => {\n\t\t\t// Si c'est un élément React (une colonne), l'envelopper dans une div\n\t\t\tif (child && typeof child === \"object\" && child.type) {\n\t\t\t\treturn createElement(\n\t\t\t\t\t\"div\",\n\t\t\t\t\t{ key: `sticky-column-wrapper-${index}`, className: \"test\" },\n\t\t\t\t\tchild,\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Sinon, retourner tel quel\n\t\t\treturn child;\n\t\t});\n\n\t\t// Retourner l'élément avec les enfants enveloppés\n\t\treturn cloneElement(element, {\n\t\t\t...element.props,\n\t\t\tchildren: wrappedChildren,\n\t\t});\n\t},\n);\n\n// -----------------------------\n// 2. Modifier l'affichage dans l'éditeur pour envelopper les colonnes dans une div avec la classe \"test\"\n// Note: Le rendu côté serveur est géré par render.php\n// Pour l'éditeur, on utilise un filtre sur BlockEdit pour modifier le rendu\n// -----------------------------\naddFilter(\n\t\"editor.BlockEdit\",\n\t\"carhop/sticky-columns-editor-wrapper\",\n\tcreateHigherOrderComponent((BlockEdit) => {\n\t\treturn (props) => {\n\t\t\t// Vérifier si c'est le bloc core/columns et si le style sticky-columns est appliqué\n\t\t\tif (\n\t\t\t\tprops.name !== \"core/columns\" ||\n\t\t\t\t!hasStickyColumnsStyle(props.attributes)\n\t\t\t) {\n\t\t\t\treturn ;\n\t\t\t}\n\n\t\t\t// Récupérer le rendu du bloc\n\t\t\tconst blockEditElement = ;\n\n\t\t\t// Si l'élément a des enfants (les inner blocks), on les enveloppe dans une div avec la classe \"test\"\n\t\t\tif (\n\t\t\t\tblockEditElement &&\n\t\t\t\tblockEditElement.props &&\n\t\t\t\tblockEditElement.props.children\n\t\t\t) {\n\t\t\t\t// Cloner l'élément et envelopper les enfants dans une div avec la classe \"test\"\n\t\t\t\treturn cloneElement(blockEditElement, {\n\t\t\t\t\t...blockEditElement.props,\n\t\t\t\t\tchildren: createElement(\n\t\t\t\t\t\t\"div\",\n\t\t\t\t\t\t{ className: \"test\" },\n\t\t\t\t\t\tblockEditElement.props.children,\n\t\t\t\t\t),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn blockEditElement;\n\t\t};\n\t}, \"withStickyColumnsWrapper\"),\n);\n","wp.blocks.registerBlockStyle(\"core/embed\", {\r\n\tname: \"stacked-background\",\r\n\tlabel: \"Fond empilé\",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/heading\", {\r\n\tname: \"stroked-after\",\r\n\tlabel: \"Titre + trait \",\r\n});\r\n","wp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"framed\",\r\n\tlabel: \"Encadré\",\r\n\tisDefault: true,\r\n});\r\nwp.blocks.registerBlockStyle(\"core/image\", {\r\n\tname: \"stacked\",\r\n\tlabel: \"Empilé\",\r\n\tisDefault: false,\r\n});\r\n","import { registerBlockVariation } from \"@wordpress/blocks\";\r\nimport { __ } from \"@wordpress/i18n\";\r\nimport {\r\n\tInspectorControls,\r\n\tBlockControls,\r\n\tAlignmentToolbar,\r\n} from \"@wordpress/block-editor\";\r\nimport { ToolbarGroup, ToolbarDropdownMenu } from \"@wordpress/components\";\r\nimport { Fragment } from \"@wordpress/element\";\r\nimport { addFilter } from \"@wordpress/hooks\";\r\nimport { createHigherOrderComponent } from \"@wordpress/compose\";\r\n\r\nimport { check, arrowRight, starFilled } from \"@wordpress/icons\";\r\n\r\n// Variation du bloc \"Liste\" pour ajouter une classe spéciale\r\nregisterBlockVariation(\"core/list\", {\r\n\tname: \"iconed-list\",\r\n\ttitle: \"Liste avec icônes\",\r\n\tdescription: \"Liste dont chaque élément peut avoir une icône personnalisée.\",\r\n\tattributes: {\r\n\t\tclassName: \"is-iconed-list\",\r\n\t},\r\n\tscope: [\"inserter\", \"transform\"],\r\n\tisActive: (blockAttributes) => {\r\n\t\tconst cls = (blockAttributes && blockAttributes.className) || \"\";\r\n\t\treturn cls.split(\" \").includes(\"is-iconed-list\");\r\n\t},\r\n});\r\n\r\n// -----------------------------\r\n// 1. On étend les attributs de core/list-item\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"blocks.registerBlockType\",\r\n\t\"am/iconed-list-item-attributes\",\r\n\t(settings, name) => {\r\n\t\tif (name !== \"core/list-item\") {\r\n\t\t\treturn settings;\r\n\t\t}\r\n\r\n\t\treturn {\r\n\t\t\t...settings,\r\n\t\t\tattributes: {\r\n\t\t\t\t...settings.attributes,\r\n\t\t\t\ticon: {\r\n\t\t\t\t\ttype: \"string\",\r\n\t\t\t\t\tdefault: \"\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t};\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 2. On ajoute un panneau de réglages pour choisir l'icône\r\n// -----------------------------\r\n\r\naddFilter(\r\n\t\"editor.BlockEdit\",\r\n\t\"am/iconed-list-item-controls\",\r\n\t(BlockEdit) => (props) => {\r\n\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tconst { attributes, setAttributes } = props;\r\n\t\tconst { icon } = attributes;\r\n\r\n\t\tconst ICONS = [\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Loupe\"),\r\n\t\t\t\tvalue: \"loupe\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttitle: __(\"Sablier\"),\r\n\t\t\t\tvalue: \"sablier\",\r\n\t\t\t},\r\n\t\t\t{ title: __(\"Cadenas\"), value: \"cadenas\" },\r\n\t\t\t{ title: __(\"Check\"), value: \"check\" },\r\n\t\t\t{ title: __(\"Loupe Alt\"), value: \"loupe-alt\" },\r\n\t\t\t{ title: __(\"Pendule\"), value: \"pendule\" },\r\n\t\t];\r\n\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\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcontrols={ICONS.map(({ title, value }) => ({\r\n\t\t\t\t\t\t\t\ttitle,\r\n\t\t\t\t\t\t\t\ticon: (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t),\r\n\r\n\t\t\t\t\t\t\t\tisActive: icon === value,\r\n\t\t\t\t\t\t\t\tonClick: () => setAttributes({ icon: value }),\r\n\t\t\t\t\t\t\t}))}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t setAttributes({ align: value })}\r\n\t\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\n// -----------------------------\r\n// 3. On ajoute des props au HTML sauvegardé pour chaque
  • \r\n// -----------------------------\r\naddFilter(\r\n\t\"blocks.getSaveContent.extraProps\",\r\n\t\"carhop/iconed-list-item-save-props\",\r\n\t(extraProps, blockType, attributes) => {\r\n\t\tif (blockType.name !== \"core/list-item\" || !attributes.icon) {\r\n\t\t\treturn extraProps;\r\n\t\t}\r\n\r\n\t\tif (attributes.icon) {\r\n\t\t\textraProps = {\r\n\t\t\t\t...extraProps,\r\n\t\t\t\tclassName:\r\n\t\t\t\t\t(extraProps.className || \"\") +\r\n\t\t\t\t\t\" has-custom-icon has-custom-icon--\" +\r\n\t\t\t\t\tattributes.icon,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\treturn extraProps;\r\n\t}\r\n);\r\n\r\n// -----------------------------\r\n// 4. Applique les mêmes classes en mode éditeur (BlockListBlock)\r\n// -----------------------------\r\naddFilter(\r\n\t\"editor.BlockListBlock\",\r\n\t\"carhop/iconed-list-item-editor-classes\",\r\n\tcreateHigherOrderComponent((BlockListBlock) => {\r\n\t\treturn (props) => {\r\n\t\t\tif (props.name !== \"core/list-item\") {\r\n\t\t\t\treturn ;\r\n\t\t\t}\r\n\t\t\tconst slug = props.attributes?.icon || \"\";\r\n\t\t\tconst className = [\r\n\t\t\t\tprops.className || \"\",\r\n\t\t\t\tslug ? \"has-custom-icon\" : \"\",\r\n\t\t\t\tslug ? `has-custom-icon--${slug}` : \"\",\r\n\t\t\t]\r\n\t\t\t\t.filter(Boolean)\r\n\t\t\t\t.join(\" \");\r\n\r\n\t\t\treturn ;\r\n\t\t};\r\n\t}, \"withIconedListItemEditorClasses\")\r\n);\r\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"ReactJSXRuntime\"];","// 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","// 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};","import \"./core-heading-variant/editor.js\";\r\nimport \"./core-image-variant/editor.js\";\r\nimport \"./core-embed-variant/editor.js\";\r\nimport \"./core-list-variant/editor.js\";\r\nimport \"./core-buttons/editor.js\";\r\nimport \"./core-columns/editor.js\";\r\n\r\nimport \"./variants.scss\";\r\n"],"names":["wp","blocks","registerBlockStyle","name","label","addFilter","createElement","cloneElement","Children","createHigherOrderComponent","jsx","_jsx","hasStickyColumnsStyle","attributes","className","includes","element","blockType","props","children","toArray","wrappedChildren","map","child","index","type","key","BlockEdit","blockEditElement","isDefault","registerBlockVariation","__","InspectorControls","BlockControls","AlignmentToolbar","ToolbarGroup","ToolbarDropdownMenu","Fragment","check","arrowRight","starFilled","jsxs","_jsxs","title","description","scope","isActive","blockAttributes","cls","split","settings","icon","default","setAttributes","ICONS","value","controls","onClick","align","onChange","extraProps","BlockListBlock","slug","filter","Boolean","join"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file