refactor pagebuilder asset bundling

Migrate pagebuilder and core dist assets from legacy bundled format to modern Vite/Rolldown output.

- Delete legacy pagebuilder app.css and app.js bundles in favor of per-module dist files.
- Update page-injection.js to use template literals and add source map reference.
- Refresh core dist files (PageBuilderBody, PageBuilderHead, WebsiteManager) with updated CSS/JS and remove UMD bundles.
This commit is contained in:
2026-11-23 16:18:35 +01:00
parent 54c3a245bd
commit 84545fc4a3
25 changed files with 2355 additions and 32028 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -1 +1,2 @@
body,html{overflow-x:initial!important}form{-webkit-margin-after:0;margin-block-end:0}[data-cursor=default]{cursor:default}[data-cursor=text]{cursor:text}span[draggable=true]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}[phpb-hide-if-not-editable]{background:#fde3c17d;border:1px dashed #b98e577d;padding:7px;font-size:1.1rem;font-style:italic;font-weight:400;text-align:center;color:#5e5e5e}[phpb-hide-if-not-editable]:not(.editable){display:none}[data-gjs-type].gjs-comp-selected{outline:1px solid #0091d1!important;outline-offset:0!important}div[data-gjs-type].gjs-comp-selected{outline:1px solid #0091d1!important;outline-offset:-1px!important}[phpb-blocks-container],[phpb-content-container]{min-height:50px;width:100%}[phpb-blocks-container]{border:1px dashed #0091d1}body ::-webkit-scrollbar,html ::-webkit-scrollbar{width:11px;height:11px}body ::-webkit-scrollbar-track,html ::-webkit-scrollbar-track{background:#f5f5f5}body ::-webkit-scrollbar-thumb,html ::-webkit-scrollbar-thumb{background-color:#ccc}body ::-webkit-scrollbar-thumb:hover,html ::-webkit-scrollbar-thumb:hover{background-color:#bbb}.gjs-waiting{opacity:.5;pointer-events:none}
html,body{overflow-x:initial !important}form{margin-block-end:0}[data-cursor=default]{cursor:default}[data-cursor=text]{cursor:text}span[draggable=true]{display:inline-flex}[phpb-hide-if-not-editable]{background:rgba(253,227,193,.4901960784);border:1px dashed rgba(185,142,87,.4901960784);padding:7px;font-size:1.1rem;font-style:italic;font-weight:normal;text-align:center;color:#5e5e5e}[phpb-hide-if-not-editable]:not(.editable){display:none}[data-gjs-type].gjs-comp-selected{outline:1px solid #0091d1 !important;outline-offset:0 !important}div[data-gjs-type].gjs-comp-selected{outline:1px solid #0091d1 !important;outline-offset:-1px !important}[phpb-content-container],[phpb-blocks-container]{min-height:50px;width:100%}[phpb-blocks-container]{border:1px dashed #0091d1}html ::-webkit-scrollbar,body ::-webkit-scrollbar{width:11px;height:11px}html ::-webkit-scrollbar-track,body ::-webkit-scrollbar-track{background:#f5f5f5}html ::-webkit-scrollbar-thumb,body ::-webkit-scrollbar-thumb{background-color:#ccc}html ::-webkit-scrollbar-thumb:hover,body ::-webkit-scrollbar-thumb:hover{background-color:#bbb}.gjs-waiting{opacity:.5;pointer-events:none}
/*# sourceMappingURL=page-injection.css.map */
+1
View File
@@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/page-injection.scss"],"names":[],"mappings":"AAAA,UACE,8BAEF,KACE,mBAGF,sBACE,eAEF,mBACE,YAEF,qBACE,oBAEF,4BACE,yCACA,+CACA,YACA,iBACA,kBACA,mBACA,kBACA,cAEA,2CACE,aAIJ,kCACE,qCACA,4BAEF,qCACE,qCACA,+BAEF,iDAEE,gBACA,WAEF,wBACE,0BAKA,kDACE,WACA,YAEF,8DACE,mBAEF,8DACE,sBAEA,0EACE,sBAKN,aACE,WACA"}
+2 -1
View File
@@ -1 +1,2 @@
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}({15:function(t,e,n){t.exports=n(16)},16:function(t,e){window.addEventListener("keydown",function(t){if(t.ctrlKey&&"s"===t.key)return t.preventDefault(),!1}),window.parent.postMessage("page-loaded","*"),document.addEventListener("touchstart",function(t){window.parent.postMessage("touch-start","*")})}});
(function(){window.addEventListener(`keydown`,function(e){if(e.ctrlKey&&e.key===`s`)return e.preventDefault(),!1}),window.parent.postMessage(`page-loaded`,`*`),document.addEventListener(`touchstart`,e=>{window.parent.postMessage(`touch-start`,`*`)})})();
//# sourceMappingURL=page-injection.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"page-injection.js","names":[],"sources":["../../src/Modules/GrapesJS/resources/assets/js/page-injection.js"],"sourcesContent":["/* disable ctrl + s, since this is handled in iframe parent */\nwindow.addEventListener('keydown', function(e) {\n if (e.ctrlKey && e.key === 's') {\n e.preventDefault();\n return false;\n }\n});\n\n/* post message to iframe parent that page has been loaded */\nwindow.parent.postMessage(\"page-loaded\", '*');\n\ndocument.addEventListener('touchstart', e => {\n window.parent.postMessage(\"touch-start\", '*');\n});\n"],"mappings":"C,WACA,OAAO,iBAAiB,UAAW,SAAS,EAAG,CAC3C,GAAI,EAAE,SAAW,EAAE,MAAQ,IAEvB,OADA,EAAE,eAAe,EACV,EAEf,CAAC,EAGD,OAAO,OAAO,YAAY,cAAe,GAAG,EAE5C,SAAS,iBAAiB,aAAc,GAAK,CACzC,OAAO,OAAO,YAAY,cAAe,GAAG,CAChD,CAAC,C"}