brome-builder 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/brome-builder.es.js +228 -225
- package/dist/brome-builder.umd.js +1 -1
- package/package.json +1 -1
@@ -1267,7 +1267,7 @@ React keys must be passed directly to JSX without using spread:
|
|
1267
1267
|
adipiscing elit, sed do eiusmod tempor incididunt ut
|
1268
1268
|
labore et dolore magna aliquased do eiusmod tempor incididunt
|
1269
1269
|
ut labore et dolore magna aliquased do eiusmod tempor
|
1270
|
-
incididunt ut labore et dolore magna aliqua</p>`,attributes:{class:"fa fa-regular fa-file-lines"}},Link:{label:"Lien",category:"Basic",content:"<a>Link here</a>",media:Qt},"Hero Over Content Image":{label:"Hero",category:"Composants",content:bt,media:'<img width="100%" src="'+wt+'"/>'},"Blue Card":{label:"Blue Card",category:"Composants",content:ht,media:'<img width="100%" src="'+xt+'"/>'},"ordered-card":{label:"Ordered Card",category:"Composants",content:()=>At(Ft++),media:'<img width="100%" src="'+It+'"/>'},"Réduction Card":{label:"Réduction Card",category:"Composants",content:kt,media:'<img width="100%" src="'+Ye+'"/>'},"Attention Card":{label:"Attention Card",category:"Composants",content:yt,media:'<img width="100%" src="'+Ne+'"/>'},"Bon à savoir Card":{label:"Bon à savoir Card",category:"Composants",content:Ct,media:'<img width="100%" src="'+Ue+'"/>'},"Définition Card":{label:"Définition Card",category:"Composants",content:Et,media:'<img width="100%" src="'+_e+'"/>'}};function Gt({editor:Q,setEditor:X,editorData:G,isEditorShouldLoad:V,setIsEditorShouldLoad:v,token:S}){const[n,o]=de.useState(!1);de.useEffect(()=>{if(S!=="brome-editor-2025-admin")return;const s=ft.init({i18n:{locale:"fr",detectLocale:!1,localeFallback:"en",messages:{fr:We}},container:"#editor",height:"100vh",plugins:[et,nt,Rt,Mt,Zt,Ot,gt],pluginsOpts:{[et]:{blocks:["text-basic"]},[nt]:{blocks:["column1","column2","column3","column3-7","image","video"],labelColumn1:"1 Colonne",labelColumn2:"2 Colonnes",labelColumn3:"3 Colonnes",labelColumn3_7:"3/7 Colonnes",labelColumn4:"4 Colonnes",labelImage:"Image",labelVideo:"Vidéo"},gjsTabs:{},gtsIcons:{}},canvas:{styles:["/src/styles/tabs.css","/src/styles/tailwind.css","/src/styles/tailwind-build.css"]},storageManager:!1});return Vt(s),X(s),s.getWrapper().addClass("gjs-wrapper"),()=>{s.destroy()}},[S]),de.useEffect(()=>{Q&&G&&V&&(Q.setComponents(G.html),Q.setStyle(G.css),v(!1))},[Q,G,V]),de.useEffect(()=>{if(Q){const s=document.querySelector(".gjs-frame");if(s&&s.contentWindow&&s.contentWindow.document){const p=s.contentWindow.document.body;p.classList.toggle("rtl",n),p.classList.toggle("ltr",!n),p.setAttribute("dir",`${n?"rtl":"ltr"}`)}}},[Q,n]);const a=()=>{o(s=>!s)};return de.useEffect(()=>{if(Q){Object.entries(Kt).forEach(([g,R])=>{Q.BlockManager.add(g,R)});const s=Q.BlockManager.get("image");s&&s.set("category","Media");const p=Q.BlockManager.get("video");p&&p.set("category","Media");const x=Q.BlockManager.get("materialIcon");x&&x.set("category","Media");const I=Q.BlockManager.get("column1");I&&I.set("category","Architecture");const z=Q.BlockManager.get("column2");z&&z.set("category","Architecture");const f=Q.BlockManager.get("column3");f&&f.set("category","Architecture");const J=Q.BlockManager.get("column3-7");J&&J.set("category","Architecture");const E=Q.BlockManager.get("tabs");E&&(E.set("category","Composants"),E.set("media",'<img width="100%" src="'+St+'"/>')),window.editorInstance=Q;const A=document.querySelector(".gjs-pn-panel");if(A){A.innerHTML=`
|
1270
|
+
incididunt ut labore et dolore magna aliqua</p>`,attributes:{class:"fa fa-regular fa-file-lines"}},Link:{label:"Lien",category:"Basic",content:"<a>Link here</a>",media:Qt},"Hero Over Content Image":{label:"Hero",category:"Composants",content:bt,media:'<img width="100%" src="'+wt+'"/>'},"Blue Card":{label:"Blue Card",category:"Composants",content:ht,media:'<img width="100%" src="'+xt+'"/>'},"ordered-card":{label:"Ordered Card",category:"Composants",content:()=>At(Ft++),media:'<img width="100%" src="'+It+'"/>'},"Réduction Card":{label:"Réduction Card",category:"Composants",content:kt,media:'<img width="100%" src="'+Ye+'"/>'},"Attention Card":{label:"Attention Card",category:"Composants",content:yt,media:'<img width="100%" src="'+Ne+'"/>'},"Bon à savoir Card":{label:"Bon à savoir Card",category:"Composants",content:Ct,media:'<img width="100%" src="'+Ue+'"/>'},"Définition Card":{label:"Définition Card",category:"Composants",content:Et,media:'<img width="100%" src="'+_e+'"/>'}};function Gt({editor:Q,setEditor:X,editorData:G,isEditorShouldLoad:V,setIsEditorShouldLoad:v,token:S}){const[n,o]=de.useState(!1);de.useEffect(()=>{if(S!=="brome-editor-2025-admin")return;const s=ft.init({i18n:{locale:"fr",detectLocale:!1,localeFallback:"en",messages:{fr:We}},container:"#editor",height:"100vh",plugins:[et,nt,Rt,Mt,Zt,Ot,gt],pluginsOpts:{[et]:{blocks:["text-basic"]},[nt]:{blocks:["column1","column2","column3","column3-7","image","video"],labelColumn1:"1 Colonne",labelColumn2:"2 Colonnes",labelColumn3:"3 Colonnes",labelColumn3_7:"3/7 Colonnes",labelColumn4:"4 Colonnes",labelImage:"Image",labelVideo:"Vidéo"},gjsTabs:{},gtsIcons:{}},canvas:{styles:["/src/styles/tabs.css","/src/styles/tailwind.css","/src/styles/tailwind-build.css"],scripts:["https://cdn.tailwindcss.com"]},storageManager:!1});return Vt(s),X(s),s.getWrapper().addClass("gjs-wrapper"),()=>{s.destroy()}},[S]),de.useEffect(()=>{Q&&G&&V&&(Q.setComponents(G.html),Q.setStyle(G.css),v(!1))},[Q,G,V]),de.useEffect(()=>{if(Q){const s=document.querySelector(".gjs-frame");if(s&&s.contentWindow&&s.contentWindow.document){const p=s.contentWindow.document.body;p.classList.toggle("rtl",n),p.classList.toggle("ltr",!n),p.setAttribute("dir",`${n?"rtl":"ltr"}`)}}},[Q,n]);const a=()=>{o(s=>!s)};return de.useEffect(()=>{if(Q){Object.entries(Kt).forEach(([g,R])=>{Q.BlockManager.add(g,R)});const s=Q.BlockManager.get("image");s&&s.set("category","Media");const p=Q.BlockManager.get("video");p&&p.set("category","Media");const x=Q.BlockManager.get("materialIcon");x&&x.set("category","Media");const I=Q.BlockManager.get("column1");I&&I.set("category","Architecture");const z=Q.BlockManager.get("column2");z&&z.set("category","Architecture");const f=Q.BlockManager.get("column3");f&&f.set("category","Architecture");const J=Q.BlockManager.get("column3-7");J&&J.set("category","Architecture");const E=Q.BlockManager.get("tabs");E&&(E.set("category","Composants"),E.set("media",'<img width="100%" src="'+St+'"/>')),window.editorInstance=Q;const A=document.querySelector(".gjs-pn-panel");if(A){A.innerHTML=`
|
1271
1271
|
<div class="logo_toggle_rtl">
|
1272
1272
|
<img class="gjs-logo" src="/logo.png" alt="Logo" style="height: 25px;">
|
1273
1273
|
<!-- <button id="toggle-direction" class="rounded-lg p-1 text-[currentColor] bg-transparent border-0" >-->
|