@creaditor/newsletter-starterkit 1.0.45 → 1.0.46
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.
- package/dist/112.creaditor.bundle.js +3 -3
- package/dist/112.creaditor.bundle.js.gz +0 -0
- package/dist/1260.creaditor.bundle.js +11 -11
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +6 -6
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1334.creaditor.bundle.js +3 -3
- package/dist/1334.creaditor.bundle.js.gz +0 -0
- package/dist/1452.creaditor.bundle.js +3 -3
- package/dist/1452.creaditor.bundle.js.gz +0 -0
- package/dist/1456.creaditor.bundle.js +3 -3
- package/dist/1456.creaditor.bundle.js.gz +0 -0
- package/dist/1529.creaditor.bundle.js +2 -2
- package/dist/1529.creaditor.bundle.js.gz +0 -0
- package/dist/1565.creaditor.bundle.js +100 -100
- package/dist/1565.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +8 -8
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/175.creaditor.bundle.js +5 -5
- package/dist/175.creaditor.bundle.js.gz +0 -0
- package/dist/1972.creaditor.bundle.js +2 -2
- package/dist/1972.creaditor.bundle.js.gz +0 -0
- package/dist/211.creaditor.bundle.js +1 -1
- package/dist/211.creaditor.bundle.js.gz +0 -0
- package/dist/2112.creaditor.bundle.js +3 -3
- package/dist/2112.creaditor.bundle.js.gz +0 -0
- package/dist/2350.creaditor.bundle.js +3 -3
- package/dist/2350.creaditor.bundle.js.gz +0 -0
- package/dist/2377.creaditor.bundle.js +7 -7
- package/dist/2377.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js +6 -6
- package/dist/2384.creaditor.bundle.js.gz +0 -0
- package/dist/2397.creaditor.bundle.js +4 -4
- package/dist/2397.creaditor.bundle.js.gz +0 -0
- package/dist/2409.creaditor.bundle.js +4 -4
- package/dist/2409.creaditor.bundle.js.gz +0 -0
- package/dist/2438.creaditor.bundle.js +5 -5
- package/dist/2438.creaditor.bundle.js.gz +0 -0
- package/dist/2547.creaditor.bundle.js +2 -2
- package/dist/2547.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js +2 -2
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js +7 -7
- package/dist/271.creaditor.bundle.js.gz +0 -0
- package/dist/2773.creaditor.bundle.js +3 -3
- package/dist/2773.creaditor.bundle.js.gz +0 -0
- package/dist/2833.creaditor.bundle.js +3 -3
- package/dist/2833.creaditor.bundle.js.gz +0 -0
- package/dist/2834.creaditor.bundle.js +2 -2
- package/dist/2834.creaditor.bundle.js.gz +0 -0
- package/dist/2956.creaditor.bundle.js +3 -3
- package/dist/2956.creaditor.bundle.js.gz +0 -0
- package/dist/2963.creaditor.bundle.js +3 -3
- package/dist/2963.creaditor.bundle.js.gz +0 -0
- package/dist/307.creaditor.bundle.js +3 -3
- package/dist/307.creaditor.bundle.js.gz +0 -0
- package/dist/3095.creaditor.bundle.js +13 -13
- package/dist/3095.creaditor.bundle.js.gz +0 -0
- package/dist/3233.creaditor.bundle.js +2 -2
- package/dist/3233.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js +3 -3
- package/dist/3521.creaditor.bundle.js.gz +0 -0
- package/dist/353.creaditor.bundle.js +3 -3
- package/dist/353.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js +5 -5
- package/dist/3553.creaditor.bundle.js.gz +0 -0
- package/dist/3606.creaditor.bundle.js +5 -5
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/365.creaditor.bundle.js +3 -3
- package/dist/365.creaditor.bundle.js.gz +0 -0
- package/dist/3827.creaditor.bundle.js +3 -3
- package/dist/3827.creaditor.bundle.js.gz +0 -0
- package/dist/3875.creaditor.bundle.js +3 -3
- package/dist/3875.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +3 -3
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/3971.creaditor.bundle.js +3 -3
- package/dist/3971.creaditor.bundle.js.gz +0 -0
- package/dist/407.creaditor.bundle.js +3 -3
- package/dist/407.creaditor.bundle.js.gz +0 -0
- package/dist/4074.creaditor.bundle.js +3 -3
- package/dist/4074.creaditor.bundle.js.gz +0 -0
- package/dist/4100.creaditor.bundle.js +2 -2
- package/dist/4100.creaditor.bundle.js.gz +0 -0
- package/dist/4114.creaditor.bundle.js +3 -3
- package/dist/4114.creaditor.bundle.js.gz +0 -0
- package/dist/4161.creaditor.bundle.js +3 -3
- package/dist/4161.creaditor.bundle.js.gz +0 -0
- package/dist/4217.creaditor.bundle.js +7 -7
- package/dist/4217.creaditor.bundle.js.gz +0 -0
- package/dist/4288.creaditor.bundle.js +4 -4
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/4413.creaditor.bundle.js +3 -3
- package/dist/4413.creaditor.bundle.js.gz +0 -0
- package/dist/4475.creaditor.bundle.js +3 -3
- package/dist/4475.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +12 -12
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +72 -72
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4615.creaditor.bundle.js +2 -2
- package/dist/4615.creaditor.bundle.js.gz +0 -0
- package/dist/467.creaditor.bundle.js +3 -3
- package/dist/467.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js +3 -3
- package/dist/4762.creaditor.bundle.js.gz +0 -0
- package/dist/4770.creaditor.bundle.js +3 -3
- package/dist/4770.creaditor.bundle.js.gz +0 -0
- package/dist/4947.creaditor.bundle.js +3 -3
- package/dist/4947.creaditor.bundle.js.gz +0 -0
- package/dist/4988.creaditor.bundle.js +2 -2
- package/dist/4988.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js +5 -5
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5156.creaditor.bundle.js +7 -7
- package/dist/5156.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +5 -5
- package/dist/5340.creaditor.bundle.js.gz +0 -0
- package/dist/5391.creaditor.bundle.js +3 -3
- package/dist/5391.creaditor.bundle.js.gz +0 -0
- package/dist/5411.creaditor.bundle.js +3 -3
- package/dist/5411.creaditor.bundle.js.gz +0 -0
- package/dist/5428.creaditor.bundle.js +3 -3
- package/dist/5428.creaditor.bundle.js.gz +0 -0
- package/dist/5501.creaditor.bundle.js +13 -13
- package/dist/5501.creaditor.bundle.js.gz +0 -0
- package/dist/5530.creaditor.bundle.js +4 -4
- package/dist/5530.creaditor.bundle.js.gz +0 -0
- package/dist/5666.creaditor.bundle.js +3 -3
- package/dist/5666.creaditor.bundle.js.gz +0 -0
- package/dist/567.creaditor.bundle.js +6 -6
- package/dist/567.creaditor.bundle.js.gz +0 -0
- package/dist/578.creaditor.bundle.js +4 -4
- package/dist/578.creaditor.bundle.js.gz +0 -0
- package/dist/5839.creaditor.bundle.js +2 -2
- package/dist/5839.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js +3 -3
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/5850.creaditor.bundle.js +3 -3
- package/dist/5850.creaditor.bundle.js.gz +0 -0
- package/dist/589.creaditor.bundle.js +5 -5
- package/dist/589.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +6 -6
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/6036.creaditor.bundle.js +2 -2
- package/dist/6036.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +3 -3
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6442.creaditor.bundle.js +3 -3
- package/dist/6442.creaditor.bundle.js.gz +0 -0
- package/dist/6459.creaditor.bundle.js +3 -3
- package/dist/6459.creaditor.bundle.js.gz +0 -0
- package/dist/6496.creaditor.bundle.js +3 -3
- package/dist/6496.creaditor.bundle.js.gz +0 -0
- package/dist/653.creaditor.bundle.js +3 -3
- package/dist/653.creaditor.bundle.js.gz +0 -0
- package/dist/7155.creaditor.bundle.js +3 -3
- package/dist/7155.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +26 -26
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/7238.creaditor.bundle.js +6 -6
- package/dist/7238.creaditor.bundle.js.gz +0 -0
- package/dist/7255.creaditor.bundle.js +2 -2
- package/dist/7255.creaditor.bundle.js.gz +0 -0
- package/dist/7307.creaditor.bundle.js +11 -11
- package/dist/7307.creaditor.bundle.js.gz +0 -0
- package/dist/738.creaditor.bundle.js +2 -2
- package/dist/738.creaditor.bundle.js.gz +0 -0
- package/dist/7380.creaditor.bundle.js +2 -2
- package/dist/7380.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +3 -3
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/7523.creaditor.bundle.js +3 -3
- package/dist/7523.creaditor.bundle.js.gz +0 -0
- package/dist/767.creaditor.bundle.js +7 -7
- package/dist/767.creaditor.bundle.js.gz +0 -0
- package/dist/7759.creaditor.bundle.js +3 -3
- package/dist/7759.creaditor.bundle.js.gz +0 -0
- package/dist/7838.creaditor.bundle.js +3 -3
- package/dist/7838.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js +12 -12
- package/dist/7937.creaditor.bundle.js.gz +0 -0
- package/dist/7997.creaditor.bundle.js +3 -3
- package/dist/7997.creaditor.bundle.js.gz +0 -0
- package/dist/8042.creaditor.bundle.js +5 -5
- package/dist/8042.creaditor.bundle.js.gz +0 -0
- package/dist/8064.creaditor.bundle.js +3 -3
- package/dist/8064.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js +2 -2
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8251.creaditor.bundle.js +3 -3
- package/dist/8251.creaditor.bundle.js.gz +0 -0
- package/dist/8305.creaditor.bundle.js +3 -3
- package/dist/8305.creaditor.bundle.js.gz +0 -0
- package/dist/8315.creaditor.bundle.js +2 -2
- package/dist/8315.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js +3 -3
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8516.creaditor.bundle.js +2 -2
- package/dist/8516.creaditor.bundle.js.gz +0 -0
- package/dist/8570.creaditor.bundle.js +3 -3
- package/dist/8570.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +5 -5
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js +5 -5
- package/dist/8654.creaditor.bundle.js.gz +0 -0
- package/dist/8676.creaditor.bundle.js +3 -3
- package/dist/8676.creaditor.bundle.js.gz +0 -0
- package/dist/8854.creaditor.bundle.js +3 -3
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +2 -2
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/8921.creaditor.bundle.js +3 -3
- package/dist/8921.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js +8 -8
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9089.creaditor.bundle.js +3 -3
- package/dist/9089.creaditor.bundle.js.gz +0 -0
- package/dist/9162.creaditor.bundle.js +3 -3
- package/dist/9162.creaditor.bundle.js.gz +0 -0
- package/dist/9184.creaditor.bundle.js +3 -3
- package/dist/9184.creaditor.bundle.js.gz +0 -0
- package/dist/9250.creaditor.bundle.js +3 -3
- package/dist/9250.creaditor.bundle.js.gz +0 -0
- package/dist/9386.creaditor.bundle.js +3 -3
- package/dist/9386.creaditor.bundle.js.gz +0 -0
- package/dist/9453.creaditor.bundle.js +3 -3
- package/dist/9453.creaditor.bundle.js.gz +0 -0
- package/dist/9570.creaditor.bundle.js +3 -3
- package/dist/9570.creaditor.bundle.js.gz +0 -0
- package/dist/975.creaditor.bundle.js +3 -3
- package/dist/975.creaditor.bundle.js.gz +0 -0
- package/dist/976.creaditor.bundle.js +3 -3
- package/dist/976.creaditor.bundle.js.gz +0 -0
- package/dist/9986.creaditor.bundle.js +3 -3
- package/dist/9986.creaditor.bundle.js.gz +0 -0
- package/dist/9990.creaditor.bundle.js +3 -3
- package/dist/9990.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +269 -268
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[112],{50112(t,e,i){i.r(e),i.d(e,{SwatchIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[112],{50112(t,e,i){i.r(e),i.d(e,{SwatchIcon:()=>r});var h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`
|
|
2
2
|
<svg
|
|
3
3
|
style="${this.iconStyle}"
|
|
4
4
|
width="${this.width}"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
stroke-width="9"
|
|
81
81
|
/>
|
|
82
82
|
</svg>
|
|
83
|
-
`}}
|
|
83
|
+
`}}r.styles=h.AH`
|
|
84
84
|
:host {
|
|
85
85
|
display: inherit;
|
|
86
86
|
--cdtr-icon-width: 20px;
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
height: var(--cdtr-icon-height);
|
|
92
92
|
color: var(--cdtr-icon-color);
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
`,r.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-swatch-icon",r)}}]);
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1260],{91260(t,e,r){r.r(e),r.d(e,{BlockEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1260],{91260(t,e,r){r.r(e),r.d(e,{BlockEditor:()=>g});var o=r(59929),i=r(86319),d=r(9507),n=r(49937),a=r(83235);const s=JSON.parse('["3g2","3gp","aaf","asf","avchd","avi","drc","flv","m2v","m3u8","m4p","m4v","mkv","mng","mov","mp2","mp4","mpe","mpeg","mpg","mpv","mxf","nsv","ogg","ogv","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]');var c=r(9334),p=r(96374);const l=[{id:"video-background",name:"video",thumb:"https://i.ytimg.com/vi/RhlQvbvMg-0/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLCKBaHlpHj3ghOXWjB2br9kHjPg7w",group:["section-component"],type:"video",preset:{installed:!1,component:"cdtr-background-video",properties:{type:"video",url:"https://www.youtube.com/watch?v=RhlQvbvMg-0",loop:!0,volume:0,controls:0,muted:!0,playing:!0,config:{playerVars:{showinfo:0,controls:0,playsinline:0}},style:{zIndex:0,width:window.innerWidth+500,height:window.innerWidth-560,pointerEvents:"none",transform:"translate(-10%,-0%)"}}}},{id:"images-background",name:"some-images",thumb:"http://demos.creative-tim.com/paper-kit-2/assets/img/antoine-barres.jpg",group:["section-component"],type:"images",preset:{tags:[],installed:!1,type:"images",component:"cdtr-images-preset",properties:{src:"http://demos.creative-tim.com/paper-kit-2/assets/img/antoine-barres.jpg,https://images.pexels.com/photos/1408221/pexels-photo-1408221.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1",style:{backgroundAttachment:"local",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}}}];r.e(4217).then(r.bind(r,94217));class g extends o.WF{constructor(t){super(),this.onChangeBakgroundExpanding=t=>{const e=t.target.checked;d.Ay.store().execCommand("expand_image_for_outlook",!e)},this.getInnerBlocks=()=>{const t=[],e=this.component.parent("section");return e&&e.children.forEach(e=>{const r=i.M.get("components",e);r&&"block"===r.type&&t.push(r)}),t},this.onChangeWidth=this.onChangeWidth.bind(this),this.getInnerBlocks=this.getInnerBlocks.bind(this),this.isBackgroundImage=!1,this.backgroundVideo="",this.galleryOpened=!1,this.onChangeBakgroundExpanding=this.onChangeBakgroundExpanding.bind(this),this.tabs=[{text:"background"},{text:"design",selected:!0},{text:"settings"}],this.tabName="design",this.maxWidth=0,this.background="",this.padding={topValue:0,bottomValue:0,leftValue:0,rightValue:0},this.margin={topValue:0,bottomValue:0},this.borderStyle="solid",this.borderWidth=0,this.borderColor="#000",this.theme=i.M.get("theme"),this.connectWith=this.connectWith.bind(this),this.cmds={onchangeRadius:t=>{d.Ay.store().execCommand("style",{...t.target.json})},toggleResponsive:t=>{this.noResponsive=!t.target.checked,d.Ay.store().execCommand("noResponsive",this.noResponsive)},onChangeBorderStyle:t=>{this.borderStyle=t.target.borderStyle||"",this.borderWidth=t.target.borderWidth||1,this.borderColor=t.target.borderColor||"#000",this.borderRadius=t.target.borderRadius||0;t.target.json;d.Ay.store().execCommand("style",{borderStyle:this.borderStyle,borderColor:this.borderColor,borderTopWidth:t.target.borderTopWidth||"0px",borderBottomWidth:t.target.borderBottomWidth||"0px",borderLeftWidth:t.target.borderLeftWidth||"0px",borderRightWidth:t.target.borderRightWidth||"0px",borderTopRightRadius:parseInt(t.target.borderTopRightRadius||0)+"px",borderTopLeftRadius:parseInt(t.target.borderTopLeftRadius||0)+"px",borderBottomRightRadius:parseInt(t.target.borderBottomRightRadius||0)+"px",borderBottomLeftRadius:parseInt(t.target.borderBottomLeftRadius||0)+"px",borderRadius:null})},onRemoveBackgroundVideo:()=>{this.backgroundVideo="",this.backgroundInstance={},d.Ay.store().execCommand("background","transparent")},onChangeBackgroundVideo:t=>{const e=t.target.value;let r;if((0,a.A)(e)){const t=l.find(t=>"images"===t.type);t.preset.properties.src=e,r=t.preset}else if(function(t){const e=(/(?:\.([^.]+))?$/.exec(t.toLowerCase())??[])[1]??"";return-1!==s.findIndex(t=>t===e)}(e));else if(function(t){if(t&&t.match(/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/))return!0;return!1}(e)){const t=l.find(t=>"video"===t.type);t.preset.properties.url=e,delete t.preset.properties.videoPath,r=t.preset}r&&(d.Ay.store().execCommand("background",JSON.parse(JSON.stringify(r))),d.Ay.store().execCommand("style",{background:null})),this.backgroundVideo=e},onChangeImage:t=>{const e=t.detail,r=[];Array.isArray(e)?e.forEach(t=>r.push(t.src)):r.push(e.src),this.cmds.onChangeBackgroundVideo({target:{value:r.join(",")}}),this.galleryOpened=!1},onChangeHeight:t=>{const e=t.target.value;d.Ay.store().execCommand("style",{height:e+"%"}),this.height=e},onChangeMargin:t=>{const e=t.target.value,r=t.target.direction;"all"===r?(d.Ay.store().execCommand("style",{marginTop:e+"px",marginBottom:e+"px"}),this.margin={topValue:e,bottomValue:e}):d.Ay.store().execCommand("style",{[(0,c.A)(`margin-${r.toLowerCase()}`)]:e+"px"})},onChangePadding:t=>{const e=t.target.value,r=t.target.direction,o=(0,c.A)(`padding-${r.toLowerCase()}`);"all"===r?(d.Ay.store().execCommand("style",{padding:null,"padding-top":null,"padding-bottom":null,"padding-left":null,"padding-right":null,paddingTop:e+"px",paddingBottom:e+"px",paddingLeft:e+"px",paddingRight:e+"px","padding-right":null,"padding-left":null,"padding-top":null,"padding-bottom":null}),this.padding={topValue:e,bottomValue:e,leftValue:e,rightValue:e}):(d.Ay.store().execCommand("style",{[o]:e+"px",[`padding-${r.toLowerCase()}`]:null}),this.props.style={[o]:e+"px"},this[`padding${r.toLowerCase()}`]=e)},onChangebackground(t){const e=t.target.value;this.background=e;d.Ay.components.forEach(t=>{const r=t.find("text");if(r&&!r.closest("card")){let t=r.tiptap.getAttributes("textStyle").color;if(!t){const e=r.element.querySelector("p,h1,h2,h3,h4,h5,h6");e&&(t=window.getComputedStyle(e).color)}if(t){if("transparent"===t)return;if(!t.includes("var(--")&&!e.includes("var(--")&&"transparent"!==e&&"rgba(0, 0, 0, 0)"!==e&&"rgb(0, 0, 0)"!==e){const o=(0,p.w)(t,e);r.tiptap.chain().selectAll().setColor(o).run()}}}}),d.Ay.store().execCommand("style",{background:e,backgroundColor:null});"web"!==i.M.get("config","channel")&&d.Ay.store().execCommand("background",null)}}}onChangeImageBackgroundProp(t){const e=t.detail,{key:r,value:o}=e;if(this.props.background){const t=JSON.parse(JSON.stringify(this.props.background)),e=t.properties;if(!e.style[r])throw new Error(`${r} is not a valid property`);e.style[r]=o,d.Ay.store().execCommand("background",t)}}connectedCallback(){super.connectedCallback(),this.connectWith(),d.Ay.on("update",this.connectWith)}disconnectedCallback(){super.disconnectedCallback(),d.Ay.off("update",this.connectWith)}onChangeWidth(t){let e=t.target.value;e<500&&(e=500),e>1e3&&(e=1e3);const r=this.getInnerBlocks();d.Ay.store().execCommand2({transactions:[{key:"style",value:{width:e+"px",maxWidth:"100%"}}],update:[...r]}),this.maxWidth=e}connectWith(){const t=d.Ay.components[d.Ay.components.length-1];if(this.component=t,t&&"block"===t.type){this.props=t.props;let{style:e}=this.props;e||(e={}),t.props||(t.props={}),t.props.style||(t.props.style={}),this.expand_image_for_outlook=!!t.props.expand_image_for_outlook,this.boxShadow=t.props.style.boxShadow,this.borderStyle=t.props.style.borderStyle,this.borderWidth=t.props.style.borderWidth,this.borderTopRightRadius=parseInt(t.props.style.borderTopRightRadius),this.borderTopLeftRadius=parseInt(t.props.style.borderTopLeftRadius),this.borderBottomRightRadius=parseInt(t.props.style.borderBottomRightRadius),this.borderBottomLeftRadius=parseInt(t.props.style.borderBottomLeftRadius),this.borderTopWidth=parseInt(t.props.style.borderTopWidth),this.borderBottomWidth=parseInt(t.props.style.borderBottomWidth),this.borderLeftWidth=parseInt(t.props.style.borderLeftWidth),this.borderRightWidth=parseInt(t.props.style.borderRightWidth),this.borderColor=t.props.style.borderColor;const r=t.props.background;if(this.isBackgroundImage="images"===r?.type,this.noResponsive=!!t.props.noResponsive,this.isBackgroundImage){const t=r.properties;this.backgroundAttachment=t.style.backgroundAttachment,this.backgroundPosition=t.style.backgroundPosition,this.backgroundRepeat=t.style.backgroundRepeat,this.backgroundSize=t.style.backgroundSize}this.backgroundInstance=r,this.backgroundVideo=r?.properties?.src||r?.properties?.url||"";const o=t.element,i=window.getComputedStyle(o);this.maxWidth=parseInt(i.width),this.width=parseInt(e.width,10)||this.maxWidth,this.background=e.background||e.backgroundImage||i.backgroundColor,e.backgroundImage&&(this.background=`url(${e.backgroundImage})`),this.padding={topValue:parseInt(i.paddingTop),bottomValue:parseInt(i.paddingBottom),leftValue:parseInt(i.paddingLeft),rightValue:parseInt(i.paddingRight)},this.margin={topValue:parseInt(i.marginTop),bottomValue:parseInt(i.marginBottom)}}}changeTab(t){this.tabName=t.target.value}render(){const t=i.M.get("config","channel");return o.qy`
|
|
2
2
|
<cdtr-editor-tabs .tabs=${this.tabs} @tabChanged=${this.changeTab}>
|
|
3
3
|
<div slot="content">
|
|
4
|
-
${"background"===this.tabName?
|
|
4
|
+
${"background"===this.tabName?o.qy` <cdtr-editor-container>
|
|
5
5
|
<cdtr-row justify="space-between">
|
|
6
6
|
<cdtr-col sm="5"
|
|
7
7
|
><paper-button
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
<paper-button
|
|
17
17
|
class="backgrounds"
|
|
18
18
|
raised
|
|
19
|
-
@click=${()=>
|
|
19
|
+
@click=${()=>n.A.dispatch("open_add_menu",{type:"backgrounds",disabledOptions:!0,target:d.Ay.components[0]})}
|
|
20
20
|
><lang-text
|
|
21
21
|
text="backgrounds"
|
|
22
22
|
></lang-text></paper-button
|
|
23
23
|
></cdtr-col>
|
|
24
24
|
</cdtr-row>
|
|
25
25
|
</cdtr-editor-container>
|
|
26
|
-
${this.isBackgroundImage&&"web"===t?
|
|
26
|
+
${this.isBackgroundImage&&"web"===t?o.qy`<cdtr-editor-container>
|
|
27
27
|
<background-editor-plugin
|
|
28
28
|
backgroundAttachment=${this.backgroundAttachment}
|
|
29
29
|
backgroundPosition=${this.backgroundPosition}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
style="width:100%;direction:ltr;text-align:left;"
|
|
48
48
|
placeholder="https://"
|
|
49
49
|
></cdtr-input>
|
|
50
|
-
${"object"==typeof this.backgroundInstance&&this.backgroundInstance?.component?
|
|
50
|
+
${"object"==typeof this.backgroundInstance&&this.backgroundInstance?.component?o.qy`<paper-button
|
|
51
51
|
style=" font-size: 13px;
|
|
52
52
|
padding: 0;
|
|
53
53
|
text-align: var(--text-align-locale);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</h6>
|
|
88
88
|
</cdtr-editor-container>
|
|
89
89
|
<cdtr-divider></cdtr-divider>`:null}
|
|
90
|
-
${"design"===this.tabName?
|
|
90
|
+
${"design"===this.tabName?o.qy`
|
|
91
91
|
<cdtr-editor-container>
|
|
92
92
|
<cdtr-colorpicker-editor
|
|
93
93
|
.hasAlpha=${!1}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
min="500"
|
|
105
105
|
.value="${this.width}"
|
|
106
106
|
@input=${this.onChangeWidth}
|
|
107
|
-
.sizes=${[{name:
|
|
107
|
+
.sizes=${[{name:i.M.get("lang","recommended")||"recommended",value:600,default:!0},{name:i.M.get("lang","large")||"large",value:1e3}]}
|
|
108
108
|
></cdtr-width-editor>
|
|
109
109
|
<p style="font-size:12px">
|
|
110
110
|
<lang-text whiteSpace="" text="email_600"></lang-text>
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
</cdtr-editor-container>
|
|
174
174
|
`:null}
|
|
175
175
|
|
|
176
|
-
<!-- ${"typography"===this.tabName?
|
|
177
|
-
<!-- ${"spacing"===this.tabName?
|
|
176
|
+
<!-- ${"typography"===this.tabName?o.qy` <cdtr-text-editor-plugin></cdtr-text-editor-plugin> `:null} -->
|
|
177
|
+
<!-- ${"spacing"===this.tabName?o.qy`
|
|
178
178
|
<cdtr-editor-container>
|
|
179
179
|
<cdtr-row justify="center">
|
|
180
180
|
<cdtr-col sm="12"
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
.opened=${this.galleryOpened}
|
|
223
223
|
@file=${this.cmds.onChangeImage}
|
|
224
224
|
></cdtr-gallery>
|
|
225
|
-
`}}
|
|
225
|
+
`}}g.styles=o.AH`
|
|
226
226
|
paper-button.gallery {
|
|
227
227
|
background: var(--primary);
|
|
228
228
|
color: var(--primary-text);
|
|
@@ -231,4 +231,4 @@
|
|
|
231
231
|
background: BLACK;
|
|
232
232
|
color: #fff;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
`,g.properties={maxWidth:{type:Number},backgroundInstance:{type:Object},padding:{type:Object},margin:{type:Object},tabs:{type:Array},tabName:{type:String},galleryOpened:{type:Boolean},backgroundVideo:{type:String,reflect:!0},isBackgroundImage:{type:Boolean},backgroundAttachment:{type:String},backgroundPosition:{type:String},backgroundRepeat:{type:String},backgroundSize:{type:String},noResponsive:{type:Boolean},borderStyle:{type:String},borderWidth:{type:Number},borderColor:{type:String},borderTopRightRadius:{type:Number},borderTopLeftRadius:{type:Number},borderBottomRightRadius:{type:Number},borderBottomLeftRadius:{type:Number},borderTopWidth:{type:Number},borderBottomWidth:{type:Number},borderLeftWidth:{type:Number},borderRightWidth:{type:Number}},customElements.define("block-editor",g)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567,1271],{70567(e,t,n){n.r(t),n.d(t,{TextPromptEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[567,1271],{70567(e,t,n){n.r(t),n.d(t,{TextPromptEditor:()=>s});var r,o,a=n(86959),i=n(59929);let s=(0,n(49410).EM)("cdtr-text-prompt-editor")(((o=class extends i.WF{constructor(){super(),this.prompt=localStorage.getItem("textPromptEditor_prompt")||"",this.generatedText="",this.isLoading=!1,this.context="",this.businessType=localStorage.getItem("textPromptEditor_businessType")||"",this.businessName=localStorage.getItem("textPromptEditor_businessName")||"",this.includeContext="true"===localStorage.getItem("textPromptEditor_includeContext")||!1,this.url=localStorage.getItem("textPromptEditor_url")||"",this.detectCurrentElementType()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.detectCurrentElementType()},100)}detectCurrentElementType(){try{const e=window.getSelection();if(e&&e.rangeCount>0){const t=e.getRangeAt(0).commonAncestorContainer;let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t;for(;n&&n!==document.body;){if(n.tagName&&/^h[1-6]$/i.test(n.tagName)){const e=n.parentElement,t=Array.from(e?.children||[]),r=t.some(e=>e!==n&&/^h[1-6]$/i.test(e.tagName)),o=t.some(e=>e!==n&&/^p$|^div$/i.test(e.tagName));return!o||r&&!o?(this.contentType="title",void console.log("TextPromptEditor: Detected standalone heading from DOM")):(this.contentType="paragraph",void console.log("TextPromptEditor: Detected heading within paragraph structure"))}this.contentType="paragraph",n=n.parentElement}}this.contentType||(this.contentType="paragraph",console.log("TextPromptEditor: Defaulting to paragraph"))}catch(e){console.warn("Error detecting current element type:",e),this.contentType||(this.contentType="paragraph")}}handleIncludeContextChange(e){this.includeContext=!e.target.checked,localStorage.setItem("textPromptEditor_includeContext",this.includeContext)}handleContentTypeChange(e){this.contentType=e,this.dispatchEvent(new CustomEvent("content-type-changed",{detail:{contentType:this.contentType},bubbles:!0,composed:!0}))}handlePromptChange(e){this.prompt=e.target.value,localStorage.setItem("textPromptEditor_prompt",this.prompt);["כתוב כותרת","כתוב תמונה","כתבי כותרת","write heading"].some(e=>this.prompt.startsWith(e))&&this.handleContentTypeChange("title")}handleBusinessTypeChange(e){this.businessType=e.target.value,localStorage.setItem("textPromptEditor_businessType",this.businessType)}handleBusinessNameChange(e){this.businessName=e.target.value,localStorage.setItem("textPromptEditor_businessName",this.businessName)}handleUrlChange(e){this.url=e.target.value,localStorage.setItem("textPromptEditor_url",this.url)}async handleGenerate(){this.isLoading=!0,this.generatedText="";try{if("title"===this.contentType){Array.from(document.querySelectorAll(".text-component")).map(e=>e.textContent).join("\n")}this.context.length>1500&&(this.context=this.context.slice(0,1500));const e=a.XW.agent_url,t=await fetch(e+"prompt/text",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:this.prompt,context:this.includeContext?this.context:"",businessType:this.businessType,businessName:this.businessName,contentType:this.contentType,url:this.url,options:{maxTokens:1e3,temperature:0,model:"gpt-3.5-turbo"}})});if(!t.ok)throw new Error("Failed to generate text");const n=t.body.getReader(),r=new TextDecoder;let o="";for(;;){const{done:e,value:t}=await n.read();if(e){this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0}));break}o+=r.decode(t,{stream:!0});const a=o.split("\n\n");for(let e=0;e<a.length-1;e++){const t=a[e];if(t.startsWith("data: "))try{const e=t.slice(6),n=JSON.parse(e);if("start"===n.metadata?.type){this.generatedText="",this.dispatchEvent(new CustomEvent("text-generation-start",{detail:{model:n.metadata.model},bubbles:!0,composed:!0}));continue}n.text&&(this.generatedText+=n.text,this.dispatchEvent(new CustomEvent("text-generation-chunk",{detail:{chunk:n.text,fullText:this.generatedText},bubbles:!0,composed:!0}))),"complete"===n.status&&(this.generatedText=this.generatedText.replace(/^"|"$/g,""),this.dispatchEvent(new CustomEvent("text-generation-complete",{detail:{text:this.generatedText},bubbles:!0,composed:!0})))}catch(e){console.error("Error parsing JSON:",e)}}o=a[a.length-1]}}catch(e){console.error("Error generating text:",e),this.dispatchEvent(new CustomEvent("text-generation-error",{detail:{error:e.message},bubbles:!0,composed:!0}))}finally{this.isLoading=!1}}render(){const e=this.contentType;return i.qy`
|
|
2
2
|
<cdtr-editor-container>
|
|
3
3
|
<div class="editor-container">
|
|
4
4
|
<div class="prompt-section">
|
|
@@ -78,21 +78,21 @@
|
|
|
78
78
|
?disabled=${this.isLoading||!this.prompt}
|
|
79
79
|
@click=${this.handleGenerate}
|
|
80
80
|
>
|
|
81
|
-
${this.isLoading?
|
|
81
|
+
${this.isLoading?i.qy`
|
|
82
82
|
<div class="loading-spinner"></div>
|
|
83
83
|
<lang-text text="creating_magic"></lang-text>
|
|
84
|
-
`:
|
|
84
|
+
`:i.qy` <lang-text text="generate_content"></lang-text> `}
|
|
85
85
|
</paper-button>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
|
-
${this.generatedText?
|
|
88
|
+
${this.generatedText?i.qy`
|
|
89
89
|
<div class="result-section">
|
|
90
90
|
<div class="result-content">${this.generatedText}</div>
|
|
91
91
|
</div>
|
|
92
92
|
`:""}
|
|
93
93
|
</div>
|
|
94
94
|
</cdtr-editor-container>
|
|
95
|
-
`}}
|
|
95
|
+
`}}).properties={prompt:{type:String},generatedText:{type:String},isLoading:{type:Boolean},context:{type:String},includeContext:{type:Boolean},businessType:{type:String},businessName:{type:String},contentType:{type:String},url:{type:String}},o.styles=i.AH`
|
|
96
96
|
:host {
|
|
97
97
|
--primary: #7c3aed;
|
|
98
98
|
--primary-light: #a78bfa;
|
|
@@ -436,4 +436,4 @@
|
|
|
436
436
|
opacity: 0.3;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
|
|
439
|
+
`,r=o))||r},71271(e,t,n){n.d(t,{default:()=>m});var r=n(53577),o=n(74265);const a=e=>{{const{component:t,commands:n,helpers:a}=e,i=t.tiptap,s=i.state.selection.$anchor.node().attrs,l=i.isActive("heading",{level:1})?"h1":i.isActive("heading",{level:2})?"h2":i.isActive("heading",{level:3})?"h3":i.isActive("heading",{level:4})?"h4":i.isActive("heading",{level:5})?"h5":i.isActive("heading",{level:6})?"h6":"paragraph";let c=e.languageJson;const p=e.language||"he";return c||(c="he"===p?r:o),{select:e=>{let{changeTab:t,tab:n}=e},tabs:e=>{const t=i.isActive("customBulletItem"),n=[{text:"design",selected:!t},...t?[{text:"icons",selected:!0}]:[],{text:"settings"}];return n.forEach(t=>t.selected=t.text===e),n},layout:e=>{let{tab:r,changeTab:o,tabs:a}=e;const p=[{type:"info",text:"text_micro_copy",active:()=>"design"===r.text},{type:"dropdown",active:()=>"design"===r.text,title:"type",value:l,items:[{value:"H1"},{value:"H2"},{value:"H3"},{value:"H4"},{value:"H5"},{value:"H6"},{value:"paragraph"}],onChange:e=>{const t=e.target.value;switch(t){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":i.chain().setHeading({level:parseInt(t.slice(1))}).run();break;case"paragraph":i.chain().setParagraph().run()}}},{type:"slider",title:"fontSize",min:8,step:2,max:74,value:parseInt(i.getAttributes("textStyle").fontSize||"16px"),active:()=>"design"===r.text,onInput:e=>{const n=e.target.value,r=t.tiptap,o=r.view.state.selection;o.from===o.to?r.chain().selectAll().setFontSize(n).run():r.chain().setFontSize(n).run()}},{type:"divider"},{type:"slider",title:"lineHeight",min:1,max:3,step:.1,value:parseFloat(s.lineHeight||1),active:()=>"design"===r.text,onInput:e=>{const n=e.target.value,r=t.tiptap,o=r.view.state.selection;o.from===o.to?r.chain().selectAll().setLineHeight(n).run():r.chain().setLineHeight(n).run()}},{type:"divider",active:()=>"design"===r.text},{type:"slider",title:"letterSpacing",min:1,max:10,step:1,value:parseFloat(s.letterSpacing)||1,active:()=>"design"===r.text,onInput:e=>{const n=e.target.value,r=t.tiptap,o=r.view.state.selection;n<=1?o.from===o.to?r.chain().selectAll().setLetterSpacing("normal").run():r.chain().setLetterSpacing("normal").run():o.from===o.to?r.chain().selectAll().setLetterSpacing(n+"px").run():r.chain().setLetterSpacing(n+"px").run()}},{type:"divider",active:()=>"design"===r.text},{type:"colorpicker",active:()=>"design"===r.text,title:"font_color",alpha:!1,value:i.getAttributes("textStyle").color||"#0000",onChange:e=>{const n=e.target.value,r=t.tiptap,o=r.view.state.selection;if(o.from===o.to){const{state:e,view:t}=r,a=e.tr,{from:i,to:s}=o.from===o.to?{from:0,to:e.doc.content.size}:{from:o.from,to:o.to};e.doc.nodesBetween(i,s,(t,r)=>{if(t.isText){e.doc.resolve(r);if(!t.marks.some(e=>"link"===e.type.name)){const o=r,i=r+t.nodeSize;a.addMark(o,i,e.schema.marks.textStyle.create({color:n}))}}}),t.dispatch(a)}else r.chain().setColor(n).focus().run()}},{type:"divider",active:()=>"design"===r.text},{type:"colorpicker",active:()=>"design"===r.text,title:"backgroundColor",value:t.props.style.background||t.props.style.backgroundColor||"#fff",onChange:e=>{const t=e.target.value;n.execCommand("style",{background:t,backgroundColor:null})}},{type:"divider",active:()=>"design"===r.text},{type:"slider",active:()=>"design"===r.text,title:"maxWidth",value:parseFloat(t.props.style.width),min:20,max:1e3,onInput:e=>{const t=e.target.value;n.execCommand("style",{width:t+"px"})}},{type:"divider"},{type:"colorpicker",active:()=>"icons"===r.text,title:c.iconColor||"Icon color",alpha:!1,value:i.getAttributes(" textStyle").color||"#0000",onChange:e=>{const t=e.target.value;i.chain().setCustomBulletStyles({fill:t}).run()}},{type:"divider",active:()=>"icons"===r.text},{type:"slider",active:()=>"icons"===r.text,title:c.iconSize||"Icon size",value:parseInt(i.getAttributes("customBulletItem").width)||24,min:10,max:40,onInput:e=>{const t=e.target.value;i.chain().setCustomBulletStyles({width:t+"px",height:t+"px"}).run()}},{type:"icons",active:()=>"icons"===r.text,selectedIcon:t.props.src,useIconsApi:!0,iconColor:t.props.iconColor||"000000",iconSize:parseInt(t.props.style?.width,10)||24,onChange:e=>{const n=e.detail;t.tiptap.chain().focus().setCustomBulletIcon({svgIcon:n.urlPng}).run()}}];return p}}}};var i=n(52144);const s=e=>{let{helpers:t,tiptap:n,composeId:r,template:o}=e;return{set:(e,a,s)=>{switch(a){case"style":return"object"==typeof s&&(e[a]=(0,i.A)(e[a],s),t.mergeDiff(o,{style:e[a]})),!0;case"text":e[a]=s;const l=n.getJSON();return s&&"object"==typeof s&&JSON.stringify(l)!==JSON.stringify(s.childNodes)&&(s&&s.focusedElement&&s.focusedElement===r?(n.chain().focus().setContent(s.childNodes).run(),s.to&&s.from&&n.commands.setTextSelection({from:s.from,to:s.to})):n.chain().setContent(s.childNodes).run()),delete e?.text?.markdown,!0}}}};var l=n(84488),c=n.n(l),p=n(86319);n(70567);const d=[];let g=!1,u=null;const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="text";return{name:t,create:n=>{const{createElement:r,compose:o,helpers:i}=n,{mergeDiff:l}=i,m=document.createElement("div");l(m,{style:o.props.style});const h=p.M.get("config","editor","configure","editorProps","fonts");let x=p.M.get("config","target");"string"==typeof x&&(x=document.querySelector(x)),x||(x=document.body);const y=c()({element:m,container:x||document.body,editable:!0,offsetTop:40,onClickMagic:e=>{let{insertContent:t,getJSON:n,getHTML:r,getText:o,selectAll:a,insertContentHtml:i}=e;const s=p.M.get("injectEditor"),l=document.createElement("cdtr-text-prompt-editor");s(l),l.context=o(),l.addEventListener("text-generation-start",e=>{a()}),l.addEventListener("text-generation-chunk",e=>{t(e.detail.chunk)}),l.addEventListener("text-generation-complete",e=>{a(),i(e.detail.text)}),l.addEventListener("text-generation-error",e=>{console.error("Text generation error:",e.detail.error)})},content:"string"==typeof o.props.text.markdown?o.props.text.markdown:o.props.text.childNodes,defaultDirection:"rtl",onBlur:()=>{u===y&&(u=null),setTimeout(()=>{u!==y&&(g=!1)},150)},onFocus:()=>{if(!g||u===y||null===u){if(g=!0,u=y,d.length>0)for(d.forEach(e=>{e!==y&&e.hideEditor()});d.length>0;)d.pop();d.push(y),setTimeout(()=>{u===y&&g&&y.showEditor()},100)}},onUpdate:e=>{let{editor:t,transaction:n}=e;if(0===n.steps.length)return;const r=n.curSelection.from,a=n.curSelection.to,i={childNodes:t.getJSON(),from:r,to:a,focusedElement:o.id};f.commands.execCommand("text",i)},ignoresBlurByQuerySelectors:[".ignore-events"],builder:[{type:"fontFamily",fonts:h||[],useCloud:!0},{type:"fontSize",sizes:e.fontSize||[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74]},{type:"horizonRule"},{type:"clearFormat"},{type:"bold"},{type:"strike"},{type:"italic"},{type:"underline"},{type:"table"},{type:"emoji"},{type:"unLink"},{type:"link"},{type:"customList"},{type:"numbered"},{type:"bullet"},{type:"backcolor"},{type:"fontColor"},{type:"direction"},{type:"justify"},{type:"right"},{type:"center"},{type:"left"},{type:"image"},{type:"mergeTags"},{type:"magic"}]}),f=r({name:t,id:o.id,template:m,defaultProps:{text:{},style:{}},draggable:{group:"element"},droppable:{group:"element"},resizeable:()=>m,handleBar:!0,validator:s({template:m,helpers:i,tiptap:y,composeId:o.id}),schema:o.schema,onSelect:e=>{m.classList.add(e)},onDeselect:e=>{m.classList.remove(e)},elementProps:o,remove:()=>{m.remove()},createEditor:a});return o.props.text.markdown&&y.chain().insertContent(" ").run(),f.addProp("tiptap",y),f}}}}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1334],{91334(t,e,r){r.r(e),r.d(e,{Page504:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1334],{91334(t,e,r){r.r(e),r.d(e,{Page504:()=>a});var o=r(59929);class a extends o.WF{constructor(){super()}render(){return o.qy`<div class="root">
|
|
2
2
|
<div class="container">
|
|
3
3
|
<cdtr-row spacing="1rem">
|
|
4
4
|
<h1><lang-text text="connection_error"></lang-text></h1>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
></paper-button>
|
|
18
18
|
</cdtr-row>
|
|
19
19
|
</div>
|
|
20
|
-
</div>`}}
|
|
20
|
+
</div>`}}a.properties={},a.styles=o.AH`
|
|
21
21
|
:host {
|
|
22
22
|
position: fixed;
|
|
23
23
|
width: 100vw;
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
font-family: Arial;
|
|
49
49
|
color: var(--primary);
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
`,customElements.define("cdtr-504",a)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1452],{61452(t,i,e){e.r(i),e.d(i,{BackgroundIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1452],{61452(t,i,e){e.r(i),e.d(i,{BackgroundIcon:()=>r});var h=e(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
viewBox="0 0 24 24"
|
|
4
4
|
style="${this.iconStyle}"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<path
|
|
10
10
|
d="M20 3c.552 0 1 .448 1 1v1.757l-2 2V5H5v8.1l4-4 4.328 4.329-1.327 1.327-.006 4.239 4.246.006 1.33-1.33L18.899 19H19v-2.758l2-2V20c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zm1.778 4.808l1.414 1.414L15.414 17l-1.416-.002.002-1.412 7.778-7.778zM15.5 7c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5S14 9.328 14 8.5 14.672 7 15.5 7z"
|
|
11
11
|
/>
|
|
12
|
-
</svg> `}}
|
|
12
|
+
</svg> `}}r.styles=h.AH`
|
|
13
13
|
:host {
|
|
14
14
|
display: inherit;
|
|
15
15
|
--cdtr-icon-width: 20px;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
height: var(--cdtr-icon-height);
|
|
21
21
|
color: var(--cdtr-icon-color);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
`,r.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-background-icon",r)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1456],{11456(e,t,i){i.r(t),i.d(t,{BoxShadowIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1456],{11456(e,t,i){i.r(t),i.d(t,{BoxShadowIcon:()=>o});var r=i(59929);class o extends r.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return r.qy`<svg
|
|
2
2
|
width="30"
|
|
3
3
|
height="30"
|
|
4
4
|
viewBox="0 0 30 30"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
/>
|
|
60
60
|
</filter>
|
|
61
61
|
</defs>
|
|
62
|
-
</svg> `}}
|
|
62
|
+
</svg> `}}o.styles=r.AH`
|
|
63
63
|
:host {
|
|
64
64
|
display: inherit;
|
|
65
65
|
--cdtr-icon-width: 20px;
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
height: var(--cdtr-icon-height);
|
|
71
71
|
color: var(--cdtr-icon-color);
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
`,o.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-box-shadow-icon",o)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1529],{81529(e,t,s){s.r(t),s.d(t,{EditorBar:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1529],{81529(e,t,s){s.r(t),s.d(t,{EditorBar:()=>l});var i=s(59929),n=s(49937),o=s(9507),r=s(69600);const d=o.Ay;class l extends i.WF{constructor(){super(),this.opened=!1,this.offsetY=50,this.offsetX=0,this.reRender=this.reRender.bind(this)}reRender(){if(this.opened&&this.componentId){const e=d.getComponent(this.componentId);if(e&&e.element){const t=e.element.getBoundingClientRect();let s=t.top-this.offsetY;-1!==this.direction.indexOf("left")?this.left=t.left+this.offsetX+"px":this.left=t.left+t.width+"px",this.top=s+"px",-1!==this.direction.indexOf("bottom")&&(this.top=t.top-this.offsetY+t.height+20+"px")}}}render(){return this.opened?(this.style.display="",this.style.left=this.left,this.style.top=this.top,this.style.zIndex=(0,r.A)(),this.style.transform=`translate(${-1!==this.direction.indexOf("left")?"0":"100%"},${-1!==this.direction.indexOf("bottom")?"100%":"0"})`,i.qy` <slot></slot>`):(this.style.display="none",null)}disconnectedCallback(){super.disconnectedCallback(),n.A.unSubscribe("onScroll",this.reRender),d.off("update",this.reRender)}connectedCallback(){super.connectedCallback(),n.A.subscribe("onScroll",this.reRender),d.on("update",this.reRender),setTimeout(()=>{this.reRender()},0)}}l.styles=i.AH`
|
|
2
2
|
:host {
|
|
3
3
|
position: fixed;
|
|
4
4
|
border-radius: 2px;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
transition: top 10ms ease-in-out, left 0.2s ease-in-out;
|
|
14
14
|
z-index: 2;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
`,l.properties={componentId:{type:String},opened:{type:Boolean},left:{type:String},top:{type:String},offsetY:{type:Number},offsetX:{type:Number},direction:{type:String}},customElements.define("cdtr-editor-bar",l)}}]);
|
|
Binary file
|