@creaditor/newsletter-starterkit 1.0.56 → 1.0.57

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.
Files changed (119) hide show
  1. package/dist/1142.creaditor.bundle.js +1 -1
  2. package/dist/1142.creaditor.bundle.js.gz +0 -0
  3. package/dist/1260.creaditor.bundle.js +112 -63
  4. package/dist/1260.creaditor.bundle.js.gz +0 -0
  5. package/dist/1271.creaditor.bundle.js +544 -1
  6. package/dist/1271.creaditor.bundle.js.gz +0 -0
  7. package/dist/1334.creaditor.bundle.js +3 -3
  8. package/dist/1334.creaditor.bundle.js.gz +0 -0
  9. package/dist/170.creaditor.bundle.js +149 -22
  10. package/dist/170.creaditor.bundle.js.gz +0 -0
  11. package/dist/211.creaditor.bundle.js +1 -1
  12. package/dist/211.creaditor.bundle.js.gz +0 -0
  13. package/dist/2234.creaditor.bundle.js +121 -1
  14. package/dist/2234.creaditor.bundle.js.gz +0 -0
  15. package/dist/2590.creaditor.bundle.js +1 -1
  16. package/dist/2590.creaditor.bundle.js.gz +0 -0
  17. package/dist/271.creaditor.bundle.js +6 -6
  18. package/dist/271.creaditor.bundle.js.gz +0 -0
  19. package/dist/2765.creaditor.bundle.js +1 -1
  20. package/dist/2765.creaditor.bundle.js.gz +0 -0
  21. package/dist/2956.creaditor.bundle.js +1 -1
  22. package/dist/2956.creaditor.bundle.js.gz +0 -0
  23. package/dist/3521.creaditor.bundle.js +2 -2
  24. package/dist/3521.creaditor.bundle.js.gz +0 -0
  25. package/dist/353.creaditor.bundle.js +3 -3
  26. package/dist/353.creaditor.bundle.js.gz +0 -0
  27. package/dist/3553.creaditor.bundle.js +1 -1
  28. package/dist/3553.creaditor.bundle.js.gz +0 -0
  29. package/dist/3606.creaditor.bundle.js +12 -4
  30. package/dist/3606.creaditor.bundle.js.gz +0 -0
  31. package/dist/3932.creaditor.bundle.js +4 -4
  32. package/dist/3932.creaditor.bundle.js.gz +0 -0
  33. package/dist/4061.creaditor.bundle.js +177 -0
  34. package/dist/4061.creaditor.bundle.js.LICENSE.txt +23 -0
  35. package/dist/4061.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  36. package/dist/4061.creaditor.bundle.js.gz +0 -0
  37. package/dist/4186.creaditor.bundle.js +5 -1
  38. package/dist/4186.creaditor.bundle.js.gz +0 -0
  39. package/dist/4288.creaditor.bundle.js +10 -10
  40. package/dist/4288.creaditor.bundle.js.gz +0 -0
  41. package/dist/4475.creaditor.bundle.js +1 -1
  42. package/dist/4475.creaditor.bundle.js.gz +0 -0
  43. package/dist/453.creaditor.bundle.js +8 -7
  44. package/dist/453.creaditor.bundle.js.gz +0 -0
  45. package/dist/4639.creaditor.bundle.js +1 -1
  46. package/dist/4639.creaditor.bundle.js.gz +0 -0
  47. package/dist/4762.creaditor.bundle.js +4 -4
  48. package/dist/4762.creaditor.bundle.js.gz +0 -0
  49. package/dist/4770.creaditor.bundle.js +3 -3
  50. package/dist/4770.creaditor.bundle.js.gz +0 -0
  51. package/dist/5133.creaditor.bundle.js +3 -3
  52. package/dist/5133.creaditor.bundle.js.gz +0 -0
  53. package/dist/5379.creaditor.bundle.js +70 -0
  54. package/dist/5379.creaditor.bundle.js.gz +0 -0
  55. package/dist/5391.creaditor.bundle.js +1 -1
  56. package/dist/5391.creaditor.bundle.js.gz +0 -0
  57. package/dist/567.creaditor.bundle.js +469 -364
  58. package/dist/567.creaditor.bundle.js.gz +0 -0
  59. package/dist/5849.creaditor.bundle.js +2 -2
  60. package/dist/5849.creaditor.bundle.js.gz +0 -0
  61. package/dist/589.creaditor.bundle.js +25 -8
  62. package/dist/589.creaditor.bundle.js.gz +0 -0
  63. package/dist/5909.creaditor.bundle.js +651 -0
  64. package/dist/5909.creaditor.bundle.js.gz +0 -0
  65. package/dist/5926.creaditor.bundle.js +216 -34
  66. package/dist/5926.creaditor.bundle.js.gz +0 -0
  67. package/dist/638.creaditor.bundle.js +49 -20
  68. package/dist/638.creaditor.bundle.js.gz +0 -0
  69. package/dist/6814.creaditor.bundle.js +1 -1
  70. package/dist/6814.creaditor.bundle.js.gz +0 -0
  71. package/dist/7209.creaditor.bundle.js +98 -56
  72. package/dist/7209.creaditor.bundle.js.gz +0 -0
  73. package/dist/752.creaditor.bundle.js +6 -4
  74. package/dist/752.creaditor.bundle.js.gz +0 -0
  75. package/dist/7564.creaditor.bundle.js +1 -1
  76. package/dist/7564.creaditor.bundle.js.gz +0 -0
  77. package/dist/763.creaditor.bundle.js +9 -9
  78. package/dist/763.creaditor.bundle.js.gz +0 -0
  79. package/dist/7654.creaditor.bundle.js +221 -0
  80. package/dist/7654.creaditor.bundle.js.gz +0 -0
  81. package/dist/7918.creaditor.bundle.js +1 -0
  82. package/dist/7918.creaditor.bundle.js.gz +0 -0
  83. package/dist/7937.creaditor.bundle.js +21 -48
  84. package/dist/7937.creaditor.bundle.js.gz +0 -0
  85. package/dist/7997.creaditor.bundle.js +1 -1
  86. package/dist/7997.creaditor.bundle.js.gz +0 -0
  87. package/dist/8141.creaditor.bundle.js +2 -3
  88. package/dist/8141.creaditor.bundle.js.gz +0 -0
  89. package/dist/8250.creaditor.bundle.js +1 -1
  90. package/dist/8250.creaditor.bundle.js.gz +0 -0
  91. package/dist/8443.creaditor.bundle.js +1 -1
  92. package/dist/8443.creaditor.bundle.js.gz +0 -0
  93. package/dist/8547.creaditor.bundle.js +1270 -0
  94. package/dist/8547.creaditor.bundle.js.gz +0 -0
  95. package/dist/8570.creaditor.bundle.js +3 -3
  96. package/dist/8570.creaditor.bundle.js.gz +0 -0
  97. package/dist/8646.creaditor.bundle.js +20 -24
  98. package/dist/8646.creaditor.bundle.js.gz +0 -0
  99. package/dist/8654.creaditor.bundle.js +7 -7
  100. package/dist/8654.creaditor.bundle.js.gz +0 -0
  101. package/dist/8854.creaditor.bundle.js +4 -4
  102. package/dist/8854.creaditor.bundle.js.gz +0 -0
  103. package/dist/8916.creaditor.bundle.js +3 -1
  104. package/dist/8916.creaditor.bundle.js.gz +0 -0
  105. package/dist/9041.creaditor.bundle.js +14 -16
  106. package/dist/9041.creaditor.bundle.js.gz +0 -0
  107. package/dist/9250.creaditor.bundle.js +1 -1
  108. package/dist/9250.creaditor.bundle.js.gz +0 -0
  109. package/dist/9431.creaditor.bundle.js +1 -1
  110. package/dist/9431.creaditor.bundle.js.gz +0 -0
  111. package/dist/9694.creaditor.bundle.js +1 -1
  112. package/dist/9694.creaditor.bundle.js.gz +0 -0
  113. package/dist/creaditor.bundle.js +2848 -1978
  114. package/dist/creaditor.bundle.js.LICENSE.txt +6 -0
  115. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  116. package/dist/creaditor.bundle.js.gz +0 -0
  117. package/dist/service-worker.js +1 -1
  118. package/dist/service-worker.js.gz +0 -0
  119. package/package.json +1 -1
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8570],{28570(t,e,i){i.r(e),i.d(e,{AlignGroup:()=>p});var l,r,n,s,o,a,c=i(59088),h=i(36936),d=i(59929),u=i(49410);let p=(l=(0,u.MZ)({type:Number}),r=(0,u.MZ)({type:String}),(a=class extends d.WF{constructor(){super(),(0,c.A)(this,"value",s,this),(0,c.A)(this,"justify",o,this),this.onClick=this.onClick.bind(this),this.justify="center"}onClick(t){const e=t.target.closest("[data-align]");if(e){const t={detail:e.getAttribute("data-align"),bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("change",t))}}render(){return d.qy` <cdtr-row justify="${this.justify}">
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8570],{28570(t,e,i){i.r(e),i.d(e,{AlignGroup:()=>f});var l,r,n,o,s,a,c=i(59088),h=i(36936),d=i(59929),u=i(49410);let f=(l=(0,u.MZ)({type:Number}),r=(0,u.MZ)({type:String}),(a=class extends d.WF{constructor(){super(),(0,c.A)(this,"value",o,this),(0,c.A)(this,"justify",s,this),this.onClick=this.onClick.bind(this),this.justify="center"}onClick(t){const e=t.target.closest("[data-align]");if(e){const t={detail:e.getAttribute("data-align"),bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("change",t))}}render(){return d.qy` <cdtr-row justify="${this.justify}">
2
2
  <paper-button
3
3
  class="${"flex-start"===this.value?"selected":null}"
4
4
  @click=${this.onClick}
@@ -94,9 +94,9 @@
94
94
  min-width: auto;
95
95
  }
96
96
  rect[fill="black"] {
97
- fill: var(--primary);
97
+ fill: var(--color-primary, #6366f1);
98
98
  }
99
99
  .selected {
100
100
  background: #f1f3f5;
101
101
  }
102
- `,n=a,s=(0,h.A)(n.prototype,"value",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,h.A)(n.prototype,"justify",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n);customElements.define("cdtr-align-items-group",p)}}]);
102
+ `,n=a,o=(0,h.A)(n.prototype,"value",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(n.prototype,"justify",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n);customElements.define("cdtr-align-items-group",f)}}]);
Binary file
@@ -12,7 +12,7 @@
12
12
  <div class="header">
13
13
  <paper-button
14
14
  @click=${this.onClose}
15
- style="padding:6px;z-index:3;position:absolute;left:0;min-width:20px;"
15
+ style="padding:0;z-index:3;min-width:32px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;margin-inline-start:8px;"
16
16
  >
17
17
  <cdtr-close-icon class="close-icon" icon="close">
18
18
  </cdtr-close-icon>
@@ -38,25 +38,30 @@
38
38
  display: none !important;
39
39
  }
40
40
  .header-text {
41
- margin: 12px;
42
- font-size: 18px;
43
- font-family: Arial;
41
+ margin: 0;
42
+ font-size: var(--text-lg, 16px);
43
+ font-weight: 600;
44
+ font-family: var(--font-sans, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif);
44
45
  text-align: right;
45
46
  display: block;
46
47
  width: 95%;
47
48
  position: absolute;
48
- top: 0;
49
+ top: 50%;
49
50
  left: 0;
51
+ transform: translateY(-50%);
52
+ padding: 0 var(--space-4, 16px);
50
53
  direction: var(--direction-locale);
54
+ box-sizing: border-box;
55
+ color: var(--color-text, #1a1a1f);
51
56
  }
52
57
  .drawer {
53
58
  width: ${500}px;
54
59
  height: 100vh;
55
- background: #fff;
60
+ background: var(--color-bg, #fff);
56
61
  position: absolute;
57
62
  right: 0;
58
- transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
59
- box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
63
+ transition: width 0.28s var(--ease-default, cubic-bezier(0.4, 0, 0.2, 1));
64
+ box-shadow: var(--shadow-lg, rgba(0, 0, 0, 0.24) 0px 3px 8px);
60
65
  -webkit-animation: slide-in 0.5s forwards;
61
66
  -webkit-animation-delay: 2s;
62
67
  animation: slide-in 0.5s forwards;
@@ -67,31 +72,22 @@
67
72
  animation: slide-out 0.5s forwards;
68
73
  }
69
74
  .header {
70
- min-height: 40px;
71
- margin: 1px;
75
+ height: 48px;
72
76
  width: 100%;
73
- padding: 4.4px 0;
74
- box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
75
- rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
77
+ border-bottom: 1px solid var(--color-border, #e8e8ec);
78
+ display: flex;
79
+ align-items: center;
80
+ position: relative;
81
+ box-sizing: border-box;
76
82
  }
77
83
  .body {
78
84
  width: 100%;
79
- height: 100vh;
85
+ height: calc(100vh - 48px);
80
86
  overflow: hidden;
81
87
  }
82
88
  .close-button {
83
89
  cursor: pointer;
84
90
  }
85
- .close-button:hover {
86
- -webkit-animation: rotate 0.5s forwards;
87
- -webkit-animation-delay: 2s;
88
- animation: rotate 0.5s forwards;
89
- }
90
- @keyframes rotate {
91
- 100% {
92
- transform: rotate(180deg);
93
- }
94
- }
95
91
  @-webkit-keyframes slide-in {
96
92
  100% {
97
93
  transform: rotate(180deg);
Binary file
@@ -82,7 +82,7 @@
82
82
  right: 0;
83
83
  height: fit-content;
84
84
  background: transparent;
85
- z-index: 110;
85
+ z-index: var(--z-dropdown, 100);
86
86
  display: flex;
87
87
  align-items: center;
88
88
  width: 24px;
@@ -91,17 +91,17 @@
91
91
  .wrapper {
92
92
  top: 0;
93
93
  right: 0;
94
- padding: 5px;
94
+ padding: var(--space-1, 4px);
95
95
  height: 100%;
96
- width: 25px;
97
- box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
96
+ width: 32px;
97
+ box-shadow: var(--shadow-sm);
98
98
  transform: translate(70%, 0);
99
- background: #fff;
100
- border-radius: 0.2rem;
99
+ background: var(--color-bg, #fff);
100
+ border-radius: var(--radius-sm, 6px);
101
101
  min-height: 90px;
102
102
  }
103
103
  paper-button {
104
- padding: 0.2rem;
104
+ padding: var(--space-1, 4px);
105
105
  min-width: auto;
106
106
  display: block;
107
107
  margin: auto;
Binary file
@@ -22,13 +22,13 @@
22
22
  <path
23
23
  d="M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z"
24
24
  transform="translate(-276.18187 -133.91309)"
25
- fill="var(--primary)"
25
+ fill="var(--color-primary, #6366f1)"
26
26
  ></path>
27
27
  <circle
28
28
  cx="190.15351"
29
29
  cy="24.95465"
30
30
  r="20"
31
- fill="var(--primary)"
31
+ fill="var(--color-primary, #6366f1)"
32
32
  ></circle>
33
33
  <circle cx="190.15351" cy="24.95465" r="12.66462" fill="#fff"></circle>
34
34
  <path
@@ -44,13 +44,13 @@
44
44
  <path
45
45
  d="M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z"
46
46
  transform="translate(-276.18187 -133.91309)"
47
- fill="var(--primary)"
47
+ fill="var(--color-primary, #6366f1)"
48
48
  ></path>
49
49
  <circle
50
50
  cx="433.63626"
51
51
  cy="105.17383"
52
52
  r="20"
53
- fill="var(--primary)"
53
+ fill="var(--color-primary, #6366f1)"
54
54
  ></circle>
55
55
  <circle cx="433.63626" cy="105.17383" r="12.18187" fill="#fff"></circle>
56
56
  </svg>
Binary file
@@ -11,7 +11,9 @@
11
11
  hr:after {
12
12
  content: "";
13
13
  height: 1px;
14
- background: #e8e8eb;
14
+ /* Matches the rule under an open section, so the panel has one divider
15
+ weight rather than three competing ones. */
16
+ background: var(--color-border-subtle, rgba(0, 0, 0, 0.06));
15
17
  display: block;
16
18
  width: 100%;
17
19
  }
Binary file
@@ -1,4 +1,4 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9041],{19041(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(86319),a=n(21421),s=n(36565),r=n(89531),l=n(83965),c=n(67549);const d=s.Ay;r.A,l.i,c.s;class p extends o.WF{constructor(){super(),this.animations=[],this.elementRef=(0,a._)(),this.canDisplayBar=!0;const t=i.M.get("config","editor","configure","editorProps");this.canDisplayBar=!t||!1!==t?.actionBar,this.selected=!1,this.connectWith=this.connectWith.bind(this),this.onRemove=this.onRemove.bind(this)}cloneElement(){let t,e=d.getComponent(this.for);const n=e?.closest("col");let o=0;n&&(o=n.children.length);const i="card"===e?.type||o<2?e.closest("col"):null;if(i&&(e=i),e&&(t=e.parent(),t)){let n=t.children.findIndex(t=>t===e.id);"col"===e.type&&(n+=1),"number"==typeof n&&d.cloneComponent({componentId:e.id,index:n,parentId:t.id})}}onRemove(){const t=i.M.get("components",this.for),e=t?.commands?.remove??t?.remove;"function"==typeof e&&e()}connectWith(){if(this.selected=!1,this.for){const t=d.components.find(t=>t.id===this.for);if(t){const e=t,n=e.closest("col");n&&(n.element.getBoundingClientRect(),e.element.getBoundingClientRect());const o=e.closest("card");if(o&&this.elementRef.value){const t=o.element.getBoundingClientRect(),n=e.element.getBoundingClientRect();if(parseInt(String(t.top))>=parseInt(String(n.top))-40){let e=0;t.right>n.right?e=t.right-n.right-100+"px":t.left<n.left&&(e=t.left-n.left+20+"px"),n.left+parseInt(String(e))<t.left&&(e=0),this.elementRef.value.style.transform=`translate(${e},${n.height+10}px)`}else this.elementRef.value.style.transform=""}else this.elementRef.value&&(this.elementRef.value.style.transform="");this.selected=!!e.element?.closest("[draggable-element]");const a=e.props;this.animations=a.interactions?.filter(t=>"animation"===t.type)??[],this.hasAnimations=this.animations.length>0,this.name=a.name||i.M.get("lang",e.type)}}}justifyContent(t){d.store().execCommand("justify",t,{find:"col"})}connectedCallback(){super.connectedCallback(),d.on("select",this.connectWith),d.on("update",this.connectWith),this.classList.add("ignore-cdtr-blur")}disconnectedCallback(){super.disconnectedCallback(),d.off("select",this.connectWith),d.off("update",this.connectWith)}render(){return this.style.display=this.selected?"":"none",o.qy`<cdtr-row
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9041],{19041(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(86319),a=n(21421),r=n(36565),s=n(89531),c=n(83965),l=n(67549);const d=r.Ay;s.A,c.i,l.s;class p extends o.WF{constructor(){super(),this.animations=[],this.elementRef=(0,a._)(),this.canDisplayBar=!0;const t=i.M.get("config","editor","configure","editorProps");this.canDisplayBar=!t||!1!==t?.actionBar,this.selected=!1,this.connectWith=this.connectWith.bind(this),this.onRemove=this.onRemove.bind(this)}cloneElement(){let t,e=d.getComponent(this.for);const n=e?.closest("col");let o=0;n&&(o=n.children.length);const i="card"===e?.type||o<2?e.closest("col"):null;if(i&&(e=i),e&&(t=e.parent(),t)){let n=t.children.findIndex(t=>t===e.id);"col"===e.type&&(n+=1),"number"==typeof n&&d.cloneComponent({componentId:e.id,index:n,parentId:t.id})}}onRemove(){const t=i.M.get("components",this.for),e=t?.commands?.remove??t?.remove;"function"==typeof e&&e()}connectWith(){if(this.selected=!1,this.for){const t=d.components.find(t=>t.id===this.for);if(t){const e=t;if("function"!=typeof e.closest)return;const n=e.closest("col");n&&(n.element.getBoundingClientRect(),e.element.getBoundingClientRect());const o=e.closest("card");if(o&&this.elementRef.value){const t=o.element.getBoundingClientRect(),n=e.element.getBoundingClientRect();if(parseInt(String(t.top))>=parseInt(String(n.top))-40){let e=0;t.right>n.right?e=t.right-n.right-100+"px":t.left<n.left&&(e=t.left-n.left+20+"px"),n.left+parseInt(String(e))<t.left&&(e=0),this.elementRef.value.style.transform=`translate(${e},${n.height+10}px)`}else this.elementRef.value.style.transform=""}else this.elementRef.value&&(this.elementRef.value.style.transform="");this.selected=!!e.element?.closest("[draggable-element]");const a=e.props;this.animations=a.interactions?.filter(t=>"animation"===t.type)??[],this.hasAnimations=this.animations.length>0,this.name=a.name||i.M.get("lang",e.type)}}}justifyContent(t){d.store().execCommand("justify",t,{find:"col"})}connectedCallback(){super.connectedCallback(),d.on("select",this.connectWith),d.on("update",this.connectWith),this.classList.add("ignore-cdtr-blur")}disconnectedCallback(){super.disconnectedCallback(),d.off("select",this.connectWith),d.off("update",this.connectWith)}render(){return this.style.display=this.selected?"":"none",o.qy`<cdtr-row
2
2
  ${(0,a.K)(this.elementRef)}
3
3
  class="bar"
4
4
  alignItems="center"
@@ -102,25 +102,24 @@
102
102
  }
103
103
  .bar {
104
104
  position: absolute;
105
- height: 30px;
105
+ height: 32px;
106
106
  background: transparent;
107
107
  min-width: 106px;
108
- z-index: 101;
108
+ z-index: var(--z-dropdown, 100);
109
109
  display: flex;
110
110
  align-items: center;
111
- font-family: var(--font-family);
111
+ font-family: var(--font-sans);
112
112
  left: 0;
113
113
  top: -5px;
114
114
  transform: translate(0, -100%);
115
- padding: 0 0.4rem;
116
- background: #fff;
117
- font-size: 13px;
118
- border-radius: 3px;
119
- animation: fade_in 0.2s;
120
- color: black;
115
+ padding: 0 var(--space-1, 4px);
116
+ background: var(--color-bg, #fff);
117
+ font-size: var(--text-sm, 13px);
118
+ border-radius: var(--radius-sm, 6px);
119
+ animation: fade_in var(--duration-normal, 0.2s);
120
+ color: var(--color-text, #1a1a1f);
121
121
  width: auto;
122
- box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
123
- rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
122
+ box-shadow: var(--shadow-sm);
124
123
  }
125
124
  .bottom-bar {
126
125
  top: 100%;
@@ -133,13 +132,12 @@
133
132
  left: 101%;
134
133
  top: 0;
135
134
  background: var(--primary);
136
-
137
- padding: 5px 5px;
135
+ padding: var(--space-1, 4px);
138
136
  display: flex;
139
137
  align-items: center;
140
- border-radius: 3px;
138
+ border-radius: var(--radius-sm, 6px);
141
139
  overflow: hidden;
142
- z-index: 99;
140
+ z-index: var(--z-dropdown, 100);
143
141
  }
144
142
  @keyframes fade_up {
145
143
  from {
Binary file
@@ -269,6 +269,6 @@
269
269
  }
270
270
  h1 {
271
271
  font-family: Arial;
272
- color: var(--primary);
272
+ color: var(--color-primary, #6366f1);
273
273
  }
274
274
  `,customElements.define("cdtr-401",a)}}]);
Binary file
@@ -1 +1 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9431],{49431(e,t,a){a.d(t,{default:()=>s});const r=e=>{const{component:t,commands:a,helpers:r}=e,l=t.parent("col");return{select:e=>{let{changeTab:t,tab:a}=e;a.text||t("giphy")},tabs:e=>{const t=[{text:"giphy",selected:!0},{text:"design"},{text:"link"},{text:"settings"}];return e?(t.forEach(t=>t.selected=t.text===e),t):t},layout:e=>{let{tab:r}=e;return[{type:"giphy",active:()=>"giphy"===r.text,selectedSrc:t.props.src||"",onChange:e=>{const{src:t,alt:r}=e.detail||{};t&&a.execCommand("src",t),null!=r&&a.execCommand("alt",r)}},{type:"input",title:"altText",active:()=>"giphy"===r.text,value:t.props.alt||"",onChange:e=>{a.execCommand("alt",e.target.value)}},{type:"slider",title:"size",min:50,max:l?.element?.offsetWidth||600,active:()=>"design"===r.text,value:parseInt(t.props.style?.width,10)||200,onInput:e=>{const t=e.target.value;a.execCommand("style",{width:t+"px",height:"auto"})}},{type:"linkpicker",href:t.props.onClick?.link,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,autofocus:!0,active:()=>"link"===r.text,onChange:e=>{const t=e.target.value;a.execCommand("onClick",{link:t})}}]}}},l=e=>{let{helpers:t}=e;return{set:(e,a,r)=>{switch(a){case"src":case"alt":case"onClick":return e[a]=r,!0;case"style":if("object"==typeof r)return e[a]=t.deepMerge(e[a],r),!0}return!1}}},s=()=>{const e="giphy";return{name:e,create:t=>{const{createElement:a,compose:s,helpers:n}=t,{mergeDiff:o}=n,c=document.createElement("div"),i=document.createElement("img");c.appendChild(i);return a({name:e,id:s.id,template:c,defaultProps:{style:{height:"auto",width:"200px",maxWidth:"100%"},src:"",alt:""},draggable:{group:"element"},droppable:{group:"element"},render:()=>{o(i,{style:s.props.style}),o(i,{src:s.props.src||"",alt:s.props.alt||"GIF"})},resizeable:()=>c,handleBar:!0,validator:l({helpers:n}),schema:s.schema,onSelect:e=>c.classList.add(e),onDeselect:e=>c.classList.remove(e),elementProps:s,remove:()=>c.remove(),createEditor:r})}}}}}]);
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9431],{49431(e,t,s){s.d(t,{default:()=>l});const a=e=>{const{component:t,commands:s,helpers:a}=e,r=t.parent("col");return{select:e=>{let{changeTab:t,tab:s}=e;s.text||t("style")},tabs:e=>{const t=[{text:"style",selected:!0},{text:"interactions"},{text:"settings"}];return e?(t.forEach(t=>t.selected=t.text===e),t):t},layout:e=>{let{tab:a}=e;return[{type:"giphy",active:()=>"style"===a.text,selectedSrc:t.props.src||"",onChange:e=>{const{src:t,alt:a}=e.detail||{};t&&s.execCommand("src",t),null!=a&&s.execCommand("alt",a)}},{type:"input",title:"altText",active:()=>"style"===a.text,value:t.props.alt||"",onChange:e=>{s.execCommand("alt",e.target.value)}},{type:"slider",title:"size",min:50,max:r?.element?.offsetWidth||600,active:()=>"style"===a.text,value:parseInt(t.props.style?.width,10)||200,onInput:e=>{const t=e.target.value;s.execCommand("style",{width:t+"px",height:"auto"})}},{type:"linkpicker",href:t.props.onClick?.link,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===a.text,onChange:e=>{const t=e.target.value;s.execCommand("onClick",{link:t})}}]}}},r=e=>{let{helpers:t}=e;return{set:(e,s,a)=>{switch(s){case"src":case"alt":case"onClick":return e[s]=a,!0;case"style":if("object"==typeof a)return e[s]=t.deepMerge(e[s],a),!0}return!1}}},l=()=>{const e="giphy";return{name:e,create:t=>{const{createElement:s,compose:l,helpers:n}=t,{mergeDiff:o}=n,c=document.createElement("div"),i=document.createElement("img");c.appendChild(i);return s({name:e,id:l.id,template:c,defaultProps:{style:{height:"auto",width:"200px",maxWidth:"100%"},src:"",alt:""},draggable:{group:"element"},droppable:{group:"element"},render:()=>{o(i,{style:l.props.style}),o(i,{src:l.props.src||"",alt:l.props.alt||"GIF"})},resizeable:()=>c,handleBar:!0,validator:r({helpers:n}),schema:l.schema,onSelect:e=>c.classList.add(e),onDeselect:e=>c.classList.remove(e),elementProps:l,remove:()=>c.remove(),createEditor:a})}}}}}]);
Binary file
@@ -1 +1 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9694],{69694(e,n,t){t.d(n,{default:()=>b});const o=e=>{{const{component:n,commands:t}=e;return{select:e=>{let{changeTab:n,tab:t}=e;"design"!==t.text&&n("design")},tabs:e=>{const n=[{text:"design"}];return n.forEach(n=>n.selected=n.selected=n.text===e),n},layout:e=>{let{tab:o,changeTab:r,tabs:s}=e;return[{type:"slider",title:"height",unit:"px",value:parseFloat(n.props.size),min:10,max:900,onInput:e=>{const n=e.target.value;t.execCommand("size",n+"px")}}]}}}},r=()=>({set:(e,n,t)=>"size"===n&&(e[n]=t,!0)});var s=t(72591),a=t.n(s),i=t(88639),d=t.n(i),A=t(88128),c=t.n(A),l=t(30855),u=t.n(l),g=t(93051),C=t.n(g),p=t(30772),m={};m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=d(),m.insertStyleElement=C();a()(p.A,m);const h=p.A&&p.A.locals?p.A.locals:void 0,b=()=>{const e="spacer";return{name:e,create:n=>{let{createElement:t,compose:s,helpers:a}=n;const i=document.createElement("div");i.classList.add(h.root);const d=t({name:e,id:s.id,template:i,defaultProps:{size:"200px"},draggable:{group:"element"},droppable:{group:"element"},handleBar:!0,render:e=>{i.style.height=s.props.size||"200px"},validator:r(),getRenderedHTML:()=>`<div style="height:${s.props.size}"></div>`,schema:s.schema,onSelect:e=>{i.classList.add(e)},onDeselect:e=>{i.classList.remove(e)},elementProps:s,remove:()=>{i.remove()},createEditor:o});return((e,n)=>{const t=document.createElement("div");t.classList.add(h.resizeBar),t.setAttribute("draggable","false"),e.appendChild(t);let o=!1,r=0,s=0;const a=t=>{if(!o)return;const a=t.clientY-r,i=Math.max(10,s+a)+"px";e.style.height=i,n.commands.execCommand("size",i)},i=()=>{o&&(o=!1,t.classList.remove(h.dragging),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i))};t.addEventListener("mousedown",n=>{n.preventDefault(),n.stopPropagation(),o=!0,r=n.clientY,s=e.getBoundingClientRect().height,document.addEventListener("mousemove",a),document.addEventListener("mouseup",i),t.classList.add(h.dragging)})})(i,d),d}}}},30772(e,n,t){t.d(n,{A:()=>i});var o=t(82001),r=t.n(o),s=t(40935),a=t.n(s)()(r());a.push([e.id,'.aLJn5aW2t4h6fq41PEdv{\n width: 100%;\n position: relative;\n}\n.aLJn5aW2t4h6fq41PEdv::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.pxoFCz5GGvHmLd86XtRD{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.pxoFCz5GGvHmLd86XtRD:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.pxoFCz5GGvHmLd86XtRD._0A7M5j1AiL_VBIzQGDK{\n background-color: rgba(57, 170, 193, 0.8);\n}',"",{version:3,sources:["webpack://./../web-editors/spacer-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,WAAW;IACX,kBAAkB;AACtB;AACA;IACI,WAAW;IACX,6CAA6C;IAC7C,cAAc;IACd,WAAW;IACX,YAAY;IACZ,2CAA2C;AAC/C;AACA;IACI,kBAAkB;IAClB,SAAS;IACT,OAAO;IACP,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,WAAW;IACX,yCAAyC;IACzC,iCAAiC;AACrC;;AAEA;IACI,yCAAyC;AAC7C;AACA;IACI,yCAAyC;AAC7C",sourcesContent:['.root{\n width: 100%;\n position: relative;\n}\n.root::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.resizeBar{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.resizeBar:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.resizeBar.dragging{\n background-color: rgba(57, 170, 193, 0.8);\n}'],sourceRoot:""}]),a.locals={root:"aLJn5aW2t4h6fq41PEdv",resizeBar:"pxoFCz5GGvHmLd86XtRD",dragging:"_0A7M5j1AiL_VBIzQGDK"};const i=a}}]);
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9694],{69694(e,n,t){t.d(n,{default:()=>b});const o=e=>{{const{component:n,commands:t}=e;return{select:e=>{let{changeTab:n,tab:t}=e;"style"!==t.text&&n("style")},tabs:e=>{const n=[{text:"style"}];return n.forEach(n=>n.selected=n.selected=n.text===e),n},layout:e=>{let{tab:o,changeTab:r,tabs:s}=e;return[{type:"slider",title:"height",unit:"px",value:parseFloat(n.props.size),min:10,max:900,onInput:e=>{const n=e.target.value;t.execCommand("size",n+"px")}}]}}}},r=()=>({set:(e,n,t)=>"size"===n&&(e[n]=t,!0)});var s=t(72591),a=t.n(s),i=t(88639),d=t.n(i),A=t(88128),c=t.n(A),l=t(30855),u=t.n(l),C=t(93051),p=t.n(C),g=t(30772),m={};m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=d(),m.insertStyleElement=p();a()(g.A,m);const h=g.A&&g.A.locals?g.A.locals:void 0,b=()=>{const e="spacer";return{name:e,create:n=>{let{createElement:t,compose:s,helpers:a}=n;const i=document.createElement("div");i.classList.add(h.root);const d=t({name:e,id:s.id,template:i,defaultProps:{size:"200px"},draggable:{group:"element"},droppable:{group:"element"},handleBar:!0,render:e=>{i.style.height=s.props.size||"200px"},validator:r(),getRenderedHTML:()=>`<div style="height:${s.props.size}"></div>`,schema:s.schema,onSelect:e=>{i.classList.add(e)},onDeselect:e=>{i.classList.remove(e)},elementProps:s,remove:()=>{i.remove()},createEditor:o});return((e,n)=>{const t=document.createElement("div");t.classList.add(h.resizeBar),t.setAttribute("draggable","false"),e.appendChild(t);let o=!1,r=0,s=0;const a=t=>{if(!o)return;const a=t.clientY-r,i=Math.max(10,s+a)+"px";e.style.height=i,n.commands.execCommand("size",i)},i=()=>{o&&(o=!1,t.classList.remove(h.dragging),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i))};t.addEventListener("mousedown",n=>{n.preventDefault(),n.stopPropagation(),o=!0,r=n.clientY,s=e.getBoundingClientRect().height,document.addEventListener("mousemove",a),document.addEventListener("mouseup",i),t.classList.add(h.dragging)})})(i,d),d}}}},30772(e,n,t){t.d(n,{A:()=>i});var o=t(82001),r=t.n(o),s=t(40935),a=t.n(s)()(r());a.push([e.id,'.aLJn5aW2t4h6fq41PEdv{\n width: 100%;\n position: relative;\n}\n.aLJn5aW2t4h6fq41PEdv::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.pxoFCz5GGvHmLd86XtRD{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.pxoFCz5GGvHmLd86XtRD:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.pxoFCz5GGvHmLd86XtRD._0A7M5j1AiL_VBIzQGDK{\n background-color: rgba(57, 170, 193, 0.8);\n}',"",{version:3,sources:["webpack://./../web-editors/spacer-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,WAAW;IACX,kBAAkB;AACtB;AACA;IACI,WAAW;IACX,6CAA6C;IAC7C,cAAc;IACd,WAAW;IACX,YAAY;IACZ,2CAA2C;AAC/C;AACA;IACI,kBAAkB;IAClB,SAAS;IACT,OAAO;IACP,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,WAAW;IACX,yCAAyC;IACzC,iCAAiC;AACrC;;AAEA;IACI,yCAAyC;AAC7C;AACA;IACI,yCAAyC;AAC7C",sourcesContent:['.root{\n width: 100%;\n position: relative;\n}\n.root::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.resizeBar{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.resizeBar:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.resizeBar.dragging{\n background-color: rgba(57, 170, 193, 0.8);\n}'],sourceRoot:""}]),a.locals={root:"aLJn5aW2t4h6fq41PEdv",resizeBar:"pxoFCz5GGvHmLd86XtRD",dragging:"_0A7M5j1AiL_VBIzQGDK"};const i=a}}]);
Binary file