@lbaz/tetr 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./template-replacer.cjs"),r=require("./extractors/patch/patch-block-data-strategy.provider.cjs");require("../../constants/themes.cjs");var t=require("./expression-processor.cjs"),c=require("./IDProcessor.cjs");class s extends e.TemplateReplacer{constructor(e){super(),this.block=e}createChunkMarkup(e){const{mockData:r,template:t,blockUniqId:c,chunkUniqId:s}=e;if(Array.isArray(r))return r.map((e,r)=>{const a=this.replaceProcessorsBattery({template:t,mockData:e,blockUniqId:c,chunkUniqId:s,indexId:r});return this.replace(a,e,["{{","}}"])}).join("");{const e=this.replaceProcessorsBattery({template:t,mockData:r,blockUniqId:c,chunkUniqId:s,indexId:0});return this.replace(e,r)}}replaceProcessorsBattery(e){const r={id:"work",uniqId:e.blockUniqId,isVisible:!0,data:e.mockData},s=(new t.ExpressionsProcessor).execute(e.template,r);return new c.IDProcessor(`${e.blockUniqId}__${e.chunkUniqId}__${e.indexId}`).execute(s,r)}generateChunkData(e,t){if(!e)return{chunks:[]};return Object.entries(e).reduce((e,[c,s])=>{const a=s?.data?.type,n=r.patchBlockDataStrategyProvider(t?.chunks?.[c],s)[a],o=s?.template?.markup||"",u=this.createChunkMarkup({template:o,blockUniqId:t.uniqId,chunkUniqId:s.uniqId,mockData:n});return e.chunks.push({name:c,markup:u}),e},{chunks:[]})}execute(e,r){const t=this.generateChunkData(this.block?.chunks,r).chunks.reduce((e,{name:r,markup:t})=>(e[r]=t,e),{});return this.replace(e,t,["[[","]]"])}}exports.ChunkProcessor=s;
1
+ "use strict";var e=require("./template-replacer.cjs"),r=require("./extractors/patch/patch-block-data-strategy.provider.cjs");require("../../constants/themes.cjs");var t=require("./expression-processor.cjs"),c=require("./IDProcessor.cjs");class s extends e.TemplateReplacer{constructor(e){super(),this.block=e}createChunkMarkup(e){const{mockData:r,template:t,blockUniqId:c,chunkUniqId:s}=e;if(Array.isArray(r))return r.map((e,r)=>{const a=this.replaceProcessorsBattery({template:t,mockData:e,blockUniqId:c,chunkUniqId:s,indexId:r});return this.replace(a,e,["{{","}}"])}).join("");{const e=this.replaceProcessorsBattery({template:t,mockData:r,blockUniqId:c,chunkUniqId:s,indexId:0});return this.replace(e,r)}}replaceProcessorsBattery(e){const r={blockId:"work",uniqId:e.blockUniqId,isVisible:!0,data:e.mockData},s=(new t.ExpressionsProcessor).execute(e.template,r);return new c.IDProcessor(`${e.blockUniqId}__${e.chunkUniqId}__${e.indexId}`).execute(s,r)}generateChunkData(e,t){if(!e)return{chunks:[]};return Object.entries(e).reduce((e,[c,s])=>{const a=s?.data?.type,n=r.patchBlockDataStrategyProvider(t?.chunks?.[c],s)[a],o=s?.template?.markup||"",u=this.createChunkMarkup({template:o,blockUniqId:t.uniqId,chunkUniqId:s.uniqId,mockData:n});return e.chunks.push({name:c,markup:u}),e},{chunks:[]})}execute(e,r){const t=this.generateChunkData(this.block?.chunks,r).chunks.reduce((e,{name:r,markup:t})=>(e[r]=t,e),{});return this.replace(e,t,["[[","]]"])}}exports.ChunkProcessor=s;
2
2
  //# sourceMappingURL=chunks-processor.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks-processor.cjs","sources":["../../../../src/cdk/transpiler/chunks-processor.ts"],"sourcesContent":[null],"names":["ChunkProcessor","TemplateReplacer","constructor","block","super","this","createChunkMarkup","payload","mockData","template","blockUniqId","chunkUniqId","Array","isArray","map","item","index","_template","replaceProcessorsBattery","indexId","replace","join","pageBodyPayloadMock","id","uniqId","isVisible","data","templateWithExpressions","ExpressionsProcessor","execute","IDProcessor","generateChunkData","chunks","model","Object","entries","reduce","acc","chunkName","dataType","type","modelChunkData","patchBlockDataStrategyProvider","markup","push","name","_processingChunks"],"mappings":"8OAOM,MAAOA,UAAuBC,EAAAA,iBAClC,WAAAC,CAAqBC,GACnBC,QADmBC,KAAAF,MAAAA,CAErB,CACQ,iBAAAG,CAAkBC,GAOxB,MAAMC,SAACA,EAAQC,SAAEA,EAAQC,YAAEA,EAAWC,YAAEA,GAAeJ,EAEvD,GAAGK,MAAMC,QAAQL,GACf,OAAOA,EAASM,IAAI,CAACC,EAAMC,KACzB,MAAMC,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,SAAUO,EACVL,cACAC,cACAQ,QAASH,IAEX,OAAOX,KAAKe,QAAQH,EAAWF,EAAM,CAAC,KAAM,SAC3CM,KAAK,IACL,CACH,MAAMJ,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,WACAE,cACAC,cACAQ,QAAS,IAGX,OAAOd,KAAKe,QAAQH,EAAWT,EACjC,CACF,CAEQ,wBAAAU,CAAyBX,GAQ/B,MAAMe,EAAsB,CAC1BC,GAAI,OACJC,OAAQjB,EAAQG,YAChBe,WAAW,EACXC,KAAMnB,EAAQC,UAGVmB,GAA0B,IAAIC,wBAAuBC,QACzDtB,EAAQE,SACRa,GAUF,OAP2B,IAAIQ,cAC7B,GAAGvB,EAAQG,gBAAgBH,EAAQI,gBAAgBJ,EAAQY,WAC3DU,QACAF,EACAL,EAIJ,CAEA,iBAAAS,CACEC,EACAC,GAGA,IAAID,EACF,MAAO,CAACA,OAAQ,IAKlB,OAFkBE,OAAOC,QAAQH,GAEhBI,OAAO,CAACC,GAAMC,EAAW/B,MAExC,MAAMgC,EAAWhC,GAASmB,MAAMc,KAO1BC,EALaC,EAAAA,+BACjBT,GAAOD,SAASM,GAChB/B,GAGgCgC,GAE5B9B,EAAWF,GAASE,UAAUkC,QAAU,GAExCA,EAAStC,KAAKC,kBAAkB,CACpCG,WACAC,YAAauB,EAAMT,OACnBb,YAAaJ,EAAQiB,OACrBhB,SAAUiC,IAIZ,OADAJ,EAAY,OAAEO,KAAK,CAACC,KAAMP,EAAWK,OAAQA,IACtCN,GACN,CAACL,OAAQ,IACd,CACA,OAAAH,CAAQpB,EAAkBiB,GAExB,MAEMoB,EAFUzC,KAAK0B,kBAAkB1B,KAAKF,OAAO6B,OAAQN,GAEzBM,OAAOI,OAAO,CAACC,GAAMQ,OAAMF,aAC3DN,EAAIQ,GAAQF,EACLN,GACN,CAAA,GAEH,OAAOhC,KAAKe,QAAQX,EAAUqC,EAAmB,CAAC,KAAM,MAC1D"}
1
+ {"version":3,"file":"chunks-processor.cjs","sources":["../../../../src/cdk/transpiler/chunks-processor.ts"],"sourcesContent":[null],"names":["ChunkProcessor","TemplateReplacer","constructor","block","super","this","createChunkMarkup","payload","mockData","template","blockUniqId","chunkUniqId","Array","isArray","map","item","index","_template","replaceProcessorsBattery","indexId","replace","join","pageBodyPayloadMock","blockId","uniqId","isVisible","data","templateWithExpressions","ExpressionsProcessor","execute","IDProcessor","generateChunkData","chunks","model","Object","entries","reduce","acc","chunkName","dataType","type","modelChunkData","patchBlockDataStrategyProvider","markup","push","name","_processingChunks"],"mappings":"8OAOM,MAAOA,UAAuBC,EAAAA,iBAClC,WAAAC,CAAqBC,GACnBC,QADmBC,KAAAF,MAAAA,CAErB,CACQ,iBAAAG,CAAkBC,GAOxB,MAAMC,SAACA,EAAQC,SAAEA,EAAQC,YAAEA,EAAWC,YAAEA,GAAeJ,EAEvD,GAAGK,MAAMC,QAAQL,GACf,OAAOA,EAASM,IAAI,CAACC,EAAMC,KACzB,MAAMC,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,SAAUO,EACVL,cACAC,cACAQ,QAASH,IAEX,OAAOX,KAAKe,QAAQH,EAAWF,EAAM,CAAC,KAAM,SAC3CM,KAAK,IACL,CACH,MAAMJ,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,WACAE,cACAC,cACAQ,QAAS,IAGX,OAAOd,KAAKe,QAAQH,EAAWT,EACjC,CACF,CAEQ,wBAAAU,CAAyBX,GAQ/B,MAAMe,EAAsB,CAC1BC,QAAS,OACTC,OAAQjB,EAAQG,YAChBe,WAAW,EACXC,KAAMnB,EAAQC,UAGVmB,GAA0B,IAAIC,wBAAuBC,QACzDtB,EAAQE,SACRa,GAUF,OAP2B,IAAIQ,cAC7B,GAAGvB,EAAQG,gBAAgBH,EAAQI,gBAAgBJ,EAAQY,WAC3DU,QACAF,EACAL,EAIJ,CAEA,iBAAAS,CACEC,EACAC,GAGA,IAAID,EACF,MAAO,CAACA,OAAQ,IAKlB,OAFkBE,OAAOC,QAAQH,GAEhBI,OAAO,CAACC,GAAMC,EAAW/B,MAExC,MAAMgC,EAAWhC,GAASmB,MAAMc,KAO1BC,EALaC,EAAAA,+BACjBT,GAAOD,SAASM,GAChB/B,GAGgCgC,GAE5B9B,EAAWF,GAASE,UAAUkC,QAAU,GAExCA,EAAStC,KAAKC,kBAAkB,CACpCG,WACAC,YAAauB,EAAMT,OACnBb,YAAaJ,EAAQiB,OACrBhB,SAAUiC,IAIZ,OADAJ,EAAY,OAAEO,KAAK,CAACC,KAAMP,EAAWK,OAAQA,IACtCN,GACN,CAACL,OAAQ,IACd,CACA,OAAAH,CAAQpB,EAAkBiB,GAExB,MAEMoB,EAFUzC,KAAK0B,kBAAkB1B,KAAKF,OAAO6B,OAAQN,GAEzBM,OAAOI,OAAO,CAACC,GAAMQ,OAAMF,aAC3DN,EAAIQ,GAAQF,EACLN,GACN,CAAA,GAEH,OAAOhC,KAAKe,QAAQX,EAAUqC,EAAmB,CAAC,KAAM,MAC1D"}
@@ -1,2 +1,2 @@
1
- "use strict";exports.COMMON_EDITABLE_WRAP_STYLES={padding:"",color:"",backgroundColor:"",backgroundImage:"",backgroundSize:"",backgroundPosition:"",backgroundRepeat:"",backgroundAttachment:"",textAlign:""},exports.DEFAULT_PAGE_RESET_STYLES="body,html{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%}*,:after,:before{box-sizing:inherit}",exports.MAIN_THEME_STYLES_SET="body{color:var(--p-text-color;background-color:var(--p-background-color));font-family:var(--p-content-font-family);font-size:var(--p-root-font-size);}h1,h2,h3,h4,h5,h6{font-family:var(--p-heading-font-family)}",exports.commonStylesTemplateAlias="c_s_t_a";
1
+ "use strict";exports.COMMON_EDITABLE_WRAP_STYLES={padding:"",color:"",backgroundColor:"",backgroundImage:"",backgroundSize:"",backgroundPosition:"",backgroundRepeat:"",backgroundAttachment:"",textAlign:""},exports.DEFAULT_PAGE_RESET_STYLES="body,html{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%}*,:after,:before{box-sizing:inherit}",exports.MAIN_THEME_STYLES_SET="body{color:var(--p-text-color);background-color:var(--p-background-color);font-family:var(--p-content-font-family);font-size:var(--p-root-font-size);}h1,h2,h3,h4,h5,h6{font-family:var(--p-heading-font-family)}",exports.commonStylesTemplateAlias="c_s_t_a";
2
2
  //# sourceMappingURL=styles.cjs.map
@@ -1,2 +1,2 @@
1
- import{TemplateReplacer as e}from"./template-replacer.js";import{patchBlockDataStrategyProvider as t}from"./extractors/patch/patch-block-data-strategy.provider.js";import"../../constants/themes.js";import{ExpressionsProcessor as r}from"./expression-processor.js";import{IDProcessor as n}from"./IDProcessor.js";class c extends e{constructor(e){super(),this.block=e}createChunkMarkup(e){const{mockData:t,template:r,blockUniqId:n,chunkUniqId:c}=e;if(Array.isArray(t))return t.map((e,t)=>{const a=this.replaceProcessorsBattery({template:r,mockData:e,blockUniqId:n,chunkUniqId:c,indexId:t});return this.replace(a,e,["{{","}}"])}).join("");{const e=this.replaceProcessorsBattery({template:r,mockData:t,blockUniqId:n,chunkUniqId:c,indexId:0});return this.replace(e,t)}}replaceProcessorsBattery(e){const t={id:"work",uniqId:e.blockUniqId,isVisible:!0,data:e.mockData},c=(new r).execute(e.template,t);return new n(`${e.blockUniqId}__${e.chunkUniqId}__${e.indexId}`).execute(c,t)}generateChunkData(e,r){if(!e)return{chunks:[]};return Object.entries(e).reduce((e,[n,c])=>{const a=c?.data?.type,s=t(r?.chunks?.[n],c)[a],o=c?.template?.markup||"",i=this.createChunkMarkup({template:o,blockUniqId:r.uniqId,chunkUniqId:c.uniqId,mockData:s});return e.chunks.push({name:n,markup:i}),e},{chunks:[]})}execute(e,t){const r=this.generateChunkData(this.block?.chunks,t).chunks.reduce((e,{name:t,markup:r})=>(e[t]=r,e),{});return this.replace(e,r,["[[","]]"])}}export{c as ChunkProcessor};
1
+ import{TemplateReplacer as e}from"./template-replacer.js";import{patchBlockDataStrategyProvider as t}from"./extractors/patch/patch-block-data-strategy.provider.js";import"../../constants/themes.js";import{ExpressionsProcessor as r}from"./expression-processor.js";import{IDProcessor as c}from"./IDProcessor.js";class n extends e{constructor(e){super(),this.block=e}createChunkMarkup(e){const{mockData:t,template:r,blockUniqId:c,chunkUniqId:n}=e;if(Array.isArray(t))return t.map((e,t)=>{const a=this.replaceProcessorsBattery({template:r,mockData:e,blockUniqId:c,chunkUniqId:n,indexId:t});return this.replace(a,e,["{{","}}"])}).join("");{const e=this.replaceProcessorsBattery({template:r,mockData:t,blockUniqId:c,chunkUniqId:n,indexId:0});return this.replace(e,t)}}replaceProcessorsBattery(e){const t={blockId:"work",uniqId:e.blockUniqId,isVisible:!0,data:e.mockData},n=(new r).execute(e.template,t);return new c(`${e.blockUniqId}__${e.chunkUniqId}__${e.indexId}`).execute(n,t)}generateChunkData(e,r){if(!e)return{chunks:[]};return Object.entries(e).reduce((e,[c,n])=>{const a=n?.data?.type,s=t(r?.chunks?.[c],n)[a],o=n?.template?.markup||"",i=this.createChunkMarkup({template:o,blockUniqId:r.uniqId,chunkUniqId:n.uniqId,mockData:s});return e.chunks.push({name:c,markup:i}),e},{chunks:[]})}execute(e,t){const r=this.generateChunkData(this.block?.chunks,t).chunks.reduce((e,{name:t,markup:r})=>(e[t]=r,e),{});return this.replace(e,r,["[[","]]"])}}export{n as ChunkProcessor};
2
2
  //# sourceMappingURL=chunks-processor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks-processor.js","sources":["../../../../src/cdk/transpiler/chunks-processor.ts"],"sourcesContent":[null],"names":["ChunkProcessor","TemplateReplacer","constructor","block","super","this","createChunkMarkup","payload","mockData","template","blockUniqId","chunkUniqId","Array","isArray","map","item","index","_template","replaceProcessorsBattery","indexId","replace","join","pageBodyPayloadMock","id","uniqId","isVisible","data","templateWithExpressions","ExpressionsProcessor","execute","IDProcessor","generateChunkData","chunks","model","Object","entries","reduce","acc","chunkName","dataType","type","modelChunkData","patchBlockDataStrategyProvider","markup","push","name","_processingChunks"],"mappings":"sTAOM,MAAOA,UAAuBC,EAClC,WAAAC,CAAqBC,GACnBC,QADmBC,KAAAF,MAAAA,CAErB,CACQ,iBAAAG,CAAkBC,GAOxB,MAAMC,SAACA,EAAQC,SAAEA,EAAQC,YAAEA,EAAWC,YAAEA,GAAeJ,EAEvD,GAAGK,MAAMC,QAAQL,GACf,OAAOA,EAASM,IAAI,CAACC,EAAMC,KACzB,MAAMC,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,SAAUO,EACVL,cACAC,cACAQ,QAASH,IAEX,OAAOX,KAAKe,QAAQH,EAAWF,EAAM,CAAC,KAAM,SAC3CM,KAAK,IACL,CACH,MAAMJ,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,WACAE,cACAC,cACAQ,QAAS,IAGX,OAAOd,KAAKe,QAAQH,EAAWT,EACjC,CACF,CAEQ,wBAAAU,CAAyBX,GAQ/B,MAAMe,EAAsB,CAC1BC,GAAI,OACJC,OAAQjB,EAAQG,YAChBe,WAAW,EACXC,KAAMnB,EAAQC,UAGVmB,GAA0B,IAAIC,GAAuBC,QACzDtB,EAAQE,SACRa,GAUF,OAP2B,IAAIQ,EAC7B,GAAGvB,EAAQG,gBAAgBH,EAAQI,gBAAgBJ,EAAQY,WAC3DU,QACAF,EACAL,EAIJ,CAEA,iBAAAS,CACEC,EACAC,GAGA,IAAID,EACF,MAAO,CAACA,OAAQ,IAKlB,OAFkBE,OAAOC,QAAQH,GAEhBI,OAAO,CAACC,GAAMC,EAAW/B,MAExC,MAAMgC,EAAWhC,GAASmB,MAAMc,KAO1BC,EALaC,EACjBT,GAAOD,SAASM,GAChB/B,GAGgCgC,GAE5B9B,EAAWF,GAASE,UAAUkC,QAAU,GAExCA,EAAStC,KAAKC,kBAAkB,CACpCG,WACAC,YAAauB,EAAMT,OACnBb,YAAaJ,EAAQiB,OACrBhB,SAAUiC,IAIZ,OADAJ,EAAY,OAAEO,KAAK,CAACC,KAAMP,EAAWK,OAAQA,IACtCN,GACN,CAACL,OAAQ,IACd,CACA,OAAAH,CAAQpB,EAAkBiB,GAExB,MAEMoB,EAFUzC,KAAK0B,kBAAkB1B,KAAKF,OAAO6B,OAAQN,GAEzBM,OAAOI,OAAO,CAACC,GAAMQ,OAAMF,aAC3DN,EAAIQ,GAAQF,EACLN,GACN,CAAA,GAEH,OAAOhC,KAAKe,QAAQX,EAAUqC,EAAmB,CAAC,KAAM,MAC1D"}
1
+ {"version":3,"file":"chunks-processor.js","sources":["../../../../src/cdk/transpiler/chunks-processor.ts"],"sourcesContent":[null],"names":["ChunkProcessor","TemplateReplacer","constructor","block","super","this","createChunkMarkup","payload","mockData","template","blockUniqId","chunkUniqId","Array","isArray","map","item","index","_template","replaceProcessorsBattery","indexId","replace","join","pageBodyPayloadMock","blockId","uniqId","isVisible","data","templateWithExpressions","ExpressionsProcessor","execute","IDProcessor","generateChunkData","chunks","model","Object","entries","reduce","acc","chunkName","dataType","type","modelChunkData","patchBlockDataStrategyProvider","markup","push","name","_processingChunks"],"mappings":"sTAOM,MAAOA,UAAuBC,EAClC,WAAAC,CAAqBC,GACnBC,QADmBC,KAAAF,MAAAA,CAErB,CACQ,iBAAAG,CAAkBC,GAOxB,MAAMC,SAACA,EAAQC,SAAEA,EAAQC,YAAEA,EAAWC,YAAEA,GAAeJ,EAEvD,GAAGK,MAAMC,QAAQL,GACf,OAAOA,EAASM,IAAI,CAACC,EAAMC,KACzB,MAAMC,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,SAAUO,EACVL,cACAC,cACAQ,QAASH,IAEX,OAAOX,KAAKe,QAAQH,EAAWF,EAAM,CAAC,KAAM,SAC3CM,KAAK,IACL,CACH,MAAMJ,EAAYZ,KAAKa,yBAAyB,CAC9CT,WACAD,WACAE,cACAC,cACAQ,QAAS,IAGX,OAAOd,KAAKe,QAAQH,EAAWT,EACjC,CACF,CAEQ,wBAAAU,CAAyBX,GAQ/B,MAAMe,EAAsB,CAC1BC,QAAS,OACTC,OAAQjB,EAAQG,YAChBe,WAAW,EACXC,KAAMnB,EAAQC,UAGVmB,GAA0B,IAAIC,GAAuBC,QACzDtB,EAAQE,SACRa,GAUF,OAP2B,IAAIQ,EAC7B,GAAGvB,EAAQG,gBAAgBH,EAAQI,gBAAgBJ,EAAQY,WAC3DU,QACAF,EACAL,EAIJ,CAEA,iBAAAS,CACEC,EACAC,GAGA,IAAID,EACF,MAAO,CAACA,OAAQ,IAKlB,OAFkBE,OAAOC,QAAQH,GAEhBI,OAAO,CAACC,GAAMC,EAAW/B,MAExC,MAAMgC,EAAWhC,GAASmB,MAAMc,KAO1BC,EALaC,EACjBT,GAAOD,SAASM,GAChB/B,GAGgCgC,GAE5B9B,EAAWF,GAASE,UAAUkC,QAAU,GAExCA,EAAStC,KAAKC,kBAAkB,CACpCG,WACAC,YAAauB,EAAMT,OACnBb,YAAaJ,EAAQiB,OACrBhB,SAAUiC,IAIZ,OADAJ,EAAY,OAAEO,KAAK,CAACC,KAAMP,EAAWK,OAAQA,IACtCN,GACN,CAACL,OAAQ,IACd,CACA,OAAAH,CAAQpB,EAAkBiB,GAExB,MAEMoB,EAFUzC,KAAK0B,kBAAkB1B,KAAKF,OAAO6B,OAAQN,GAEzBM,OAAOI,OAAO,CAACC,GAAMQ,OAAMF,aAC3DN,EAAIQ,GAAQF,EACLN,GACN,CAAA,GAEH,OAAOhC,KAAKe,QAAQX,EAAUqC,EAAmB,CAAC,KAAM,MAC1D"}
@@ -1,2 +1,2 @@
1
- const o={padding:"",color:"",backgroundColor:"",backgroundImage:"",backgroundSize:"",backgroundPosition:"",backgroundRepeat:"",backgroundAttachment:"",textAlign:""},n="c_s_t_a",r="body,html{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%}*,:after,:before{box-sizing:inherit}",a="body{color:var(--p-text-color;background-color:var(--p-background-color));font-family:var(--p-content-font-family);font-size:var(--p-root-font-size);}h1,h2,h3,h4,h5,h6{font-family:var(--p-heading-font-family)}";export{o as COMMON_EDITABLE_WRAP_STYLES,r as DEFAULT_PAGE_RESET_STYLES,a as MAIN_THEME_STYLES_SET,n as commonStylesTemplateAlias};
1
+ const o={padding:"",color:"",backgroundColor:"",backgroundImage:"",backgroundSize:"",backgroundPosition:"",backgroundRepeat:"",backgroundAttachment:"",textAlign:""},n="c_s_t_a",r="body,html{margin:0;padding:0;box-sizing:border-box;width:100%;height:100%}*,:after,:before{box-sizing:inherit}",a="body{color:var(--p-text-color);background-color:var(--p-background-color);font-family:var(--p-content-font-family);font-size:var(--p-root-font-size);}h1,h2,h3,h4,h5,h6{font-family:var(--p-heading-font-family)}";export{o as COMMON_EDITABLE_WRAP_STYLES,r as DEFAULT_PAGE_RESET_STYLES,a as MAIN_THEME_STYLES_SET,n as commonStylesTemplateAlias};
2
2
  //# sourceMappingURL=styles.js.map
@@ -5,9 +5,9 @@ export type BlockId = string;
5
5
  export type BlockPreview = string;
6
6
  export type BlockVersionId = string;
7
7
  export interface BaseBlock<T, D> {
8
- id: BlockId;
9
- version: BlockVersionId;
10
- previewName: BlockPreview;
8
+ id?: BlockId;
9
+ version?: BlockVersionId;
10
+ previewName?: BlockPreview;
11
11
  chunks?: {
12
12
  [key: string]: T;
13
13
  };
@@ -4,8 +4,8 @@ export type PageId = string;
4
4
  export type PageName = string;
5
5
  export type PagePath = string;
6
6
  export interface PageBody {
7
- id: PageId;
8
- uniqId: string;
7
+ blockId: string;
8
+ uniqId: PageId;
9
9
  isVisible: any;
10
10
  commonEditableBlockWrapStyles?: CommonEditableBlockWrapStyles;
11
11
  data?: Data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lbaz/tetr",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "Template transpiler",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.js",