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:
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-1174
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/pagebuilder.scss","file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/fields.scss","file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/style-manager.scss","file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/asset-manager.scss","file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/ckeditor.scss","file:///Users/paulspenke/Repositories/Plugi/plugi/plugi-core/src/Modules/GrapesJS/resources/assets/sass/mobile-mode.scss"],"names":[],"mappings":"AAMA,eACE,uBACA,SACA,gBAGF,EACE,mCACA,gCACA,2BAGF,kCACE,cAGF,gBACE,eAGF,YACE,gBAGF,OACE,qBACA,YACA,WACA,gBAEA,qBACE,mBAIJ,cACE,kBACA,YACA,WACA,sBACA,cACA,sCAEA,qBACE,kBACA,UAGF,sBACE,kBACA,QACA,SACA,gCACA,YACA,aAEA,4BACE,eACA,eACA,gBACA,kBACA,cAGJ,sBACE,uBACA,wBACA,yBACA,6BACA,kBACA,oCAEF,kBACE,+BAIJ,sBACE,gBAGF,eACE,YACA,MACA,yBAEF,aACE,uBAGF,cACE,UAEA,8BACE,uBAGJ,mDAGE,aAEF,eACE,UAEF,YACE,yBACA,mBACA,cAEF,eACE,cAEF,gBACE,cAEF,wBACE,cAEF,iBACE,WACA,wBACA,qBACA,gBAEF,oBACE,UACA,WAEF,0BACE,8BAEF,0BACE,oCACA,kBAEA,gCACE,oCAMJ,cACE,SAEA,0BACE,aACA,eACA,4BACA,wBACA,qBACA,gBACA,mBACA,cACA,gCACA,eAEA,wCACE,aACA,yBACA,gCACA,iCACA,wBACA,qBACA,gBACA,WACA,gCAIN,gBACE,QAEF,sCAEE,OACA,wBACA,qBACA,gBACA,MA1Lc,MA2Ld,iBACA,gBACA,cACA,eACA,eACA,gBAEF,wBACE,iBACA,mBACA,yBACA,gBAEA,0CACE,gBAGF,4BACE,YACA,gBAGF,gCACE,mBACA,YAGJ,iCAEE,KAxNc,MA2Nd,4BACE,2BAEF,6BACE,4BAEF,8BACE,4BAOJ,cACE,yBAGA,6DAEE,WAGJ,WACE,yBACA,gBACA,YAEA,uDAGE,YAGF,0BACE,6BAOJ,gBACE,kBACA,gBACA,MAxQc,MAyQd,iBACA,gBACA,cACA,eACA,eACA,gBACA,mBACA,YACA,YAEA,mCACE,YAEA,kHAEE,8BAEF,uDACE,UAEF,oDACE,eACA,sBACA,2BACA,YACA,gBACA,wBAEF,8CACE,wBACA,wBACA,4BACA,kBACA,qBACA,mBACA,YACA,gBAIN,gBACE,kBACA,OACA,MACA,YACA,cACA,mBACA,gBACA,0BAMF,cACE,eACA,mBACA,qBACA,gBACA,YACA,iBAEA,0BACE,kBACA,SACA,SACA,eACA,cAGF,oBACE,mBACA,4BACA,gBACA,YAEA,iCACE,cAKN,WACE,YACA,gBACA,mBACA,WACA,uBAEA,cACE,YAGF,iBACE,yBAGF,wBACE,YACA,gBACA,kBACA,WAEA,4BACE,WAIN,cACE,mBACA,YAEF,sBACE,mBACA,oBAEF,iBACE,gBACA,YACA,aAEA,mBACE,iBACA,gBAGJ,oBACE,mBAEF,6BACE,8BACA,mBAEF,eACE,8BAMF,4BACE,8BAEF,yCACE,oCAEF,wCACE,wDAEF,6HAKE,8BACA,2CACA,iBACA,eACA,mBAEF,sHAGE,8BAEF,gBACE,gBACA,oBAEF,iBACE,aAEF,eACE,iBAMF,2BACE,uCAMF,eACE,cAEF,gBACE,mBAEF,oDAEE,WAEF,oBACE,uBACA,sBAEF,kBACE,mBACA,eACA,mBAEF,yDAEE,kBAEF,+BACE,WAEF,8BACE,iBACA,oBAEF,kCACE,gBAEF,iCACE,mBAEF,eACE,oBAEF,gCACE,gBACA,UAEA,0DACE,kBAEA,gFACE,kBACA,QACA,MACA,gBACA,yBACA,qBACA,cACA,gBAGF,8DACE,eACA,iBAQN,wBACE,kBACA,OACA,SACA,OAzgB8B,KA0gB9B,MA3gBc,MA4gBd,SACA,UACA,wBACA,qBACA,gBACA,mBACA,gBAEA,yDAEE,YACA,YACA,aACA,8BACA,gBACA,cACA,eACA,cAEA,qEACE,mBACA,WAEF,+EACE,iBAIJ,uCACE,mBACA,sBAEA,4CACE,aAIJ,uCACE,mBAEF,yCACE,mBCrjBJ,WACE,yBAGA,yBACE,sBACA,WAGJ,gBACE,cAEF,kBACE,cAEF,oCACE,cAEA,2CACE,yBACA,WAGJ,mBACE,6BAEF,mBACE,gCAGF,iBACE,qBAEF,sCACE,iBACA,gBACA,oBACA,WAEF,oDACE,yBCxCF,+BACE,mBACA,cAGF,cACE,WACA,cACA,iBAEA,gEAEE,aAEF,2BACE,cAEF,+BACE,yBACA,YACA,gDACA,WAEA,qCACE,yBAMJ,gEAEE,cAGF,+CACE,uCACA,uCAGF,+BACE,yBAEA,2CACE,gBACA,WACA,iBAGF,0CACE,UACA,yBAEA,iDACE,WACA,mBAKN,0CACE,WAEA,gDACE,WChEN,sBACE,aAEF,oBACE,gBACA,cAEF,eACE,aAEF,cACE,2BACA,yBACA,sBACA,qBACA,iBAGF,cACE,qBACA,gBACA,uBACA,gBACA,kBACA,sBACA,yBACA,sBACA,qBACA,iBACA,eACA,gBACA,qBACA,8HACA,WACA,yBACA,yBAIA,yBACE,WACA,WAEF,oCACE,WAKF,2BACE,uCACA,0BAEF,oCACE,cACA,iBCtDF,2CACE,UAEF,0PAKE,mBAGF,6CACE,sBCZF,kCACE,uBAGF,kCACE,aAEF,uEACE,OAGF,mCACE,kBACA,eACA,qDACA,kDACA,2CACA"}
|
||||
Vendored
+2
-25562
File diff suppressed because one or more lines are too long
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-3006
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
+2
-1
@@ -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 */
|
||||
@@ -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
@@ -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
|
||||
@@ -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"}
|
||||
Reference in New Issue
Block a user