@creaditor/web-starterkit 1.0.39 → 1.0.41

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 (107) hide show
  1. package/dist/3847.creaditor.bundle.js +173 -116
  2. package/dist/3847.creaditor.bundle.js.gz +0 -0
  3. package/dist/5156.creaditor.bundle.js +1 -1
  4. package/dist/5156.creaditor.bundle.js.gz +0 -0
  5. package/dist/5909.creaditor.bundle.js +19 -19
  6. package/dist/5909.creaditor.bundle.js.gz +0 -0
  7. package/dist/7209.creaditor.bundle.js +32 -30
  8. package/dist/7209.creaditor.bundle.js.gz +0 -0
  9. package/dist/767.creaditor.bundle.js +26 -70
  10. package/dist/767.creaditor.bundle.js.gz +0 -0
  11. package/dist/8547.creaditor.bundle.js +1 -1
  12. package/dist/8547.creaditor.bundle.js.gz +0 -0
  13. package/dist/8646.creaditor.bundle.js +36 -37
  14. package/dist/8646.creaditor.bundle.js.gz +0 -0
  15. package/dist/creaditor.bundle.js +554 -224
  16. package/dist/creaditor.bundle.js.gz +0 -0
  17. package/dist/service-worker.js +1 -1
  18. package/dist/service-worker.js.gz +0 -0
  19. package/package.json +2 -2
  20. package/dist/1260.creaditor.bundle.js +0 -459
  21. package/dist/1260.creaditor.bundle.js.gz +0 -0
  22. package/dist/1393.creaditor.bundle.js +0 -1
  23. package/dist/1393.creaditor.bundle.js.gz +0 -0
  24. package/dist/1452.creaditor.bundle.js +0 -23
  25. package/dist/1452.creaditor.bundle.js.gz +0 -0
  26. package/dist/1565.creaditor.bundle.js +0 -1216
  27. package/dist/1565.creaditor.bundle.js.gz +0 -0
  28. package/dist/1756.creaditor.bundle.js +0 -1
  29. package/dist/1756.creaditor.bundle.js.gz +0 -0
  30. package/dist/1936.creaditor.bundle.js +0 -177
  31. package/dist/1936.creaditor.bundle.js.LICENSE.txt +0 -29
  32. package/dist/1936.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  33. package/dist/1936.creaditor.bundle.js.gz +0 -0
  34. package/dist/2438.creaditor.bundle.js +0 -67
  35. package/dist/2438.creaditor.bundle.js.gz +0 -0
  36. package/dist/2834.creaditor.bundle.js +0 -14
  37. package/dist/2834.creaditor.bundle.js.LICENSE.txt +0 -5
  38. package/dist/2834.creaditor.bundle.js.gz +0 -0
  39. package/dist/307.creaditor.bundle.js +0 -23
  40. package/dist/307.creaditor.bundle.js.gz +0 -0
  41. package/dist/3095.creaditor.bundle.js +0 -194
  42. package/dist/3095.creaditor.bundle.js.gz +0 -0
  43. package/dist/365.creaditor.bundle.js +0 -26
  44. package/dist/365.creaditor.bundle.js.gz +0 -0
  45. package/dist/3778.creaditor.bundle.js +0 -1
  46. package/dist/3778.creaditor.bundle.js.gz +0 -0
  47. package/dist/3932.creaditor.bundle.js +0 -30
  48. package/dist/3932.creaditor.bundle.js.gz +0 -0
  49. package/dist/4217.creaditor.bundle.js +0 -105
  50. package/dist/4217.creaditor.bundle.js.gz +0 -0
  51. package/dist/453.creaditor.bundle.js.LICENSE.txt +0 -5
  52. package/dist/4569.creaditor.bundle.js +0 -887
  53. package/dist/4569.creaditor.bundle.js.gz +0 -0
  54. package/dist/4739.creaditor.bundle.js +0 -1
  55. package/dist/4739.creaditor.bundle.js.gz +0 -0
  56. package/dist/4970.creaditor.bundle.js +0 -1316
  57. package/dist/4970.creaditor.bundle.js.gz +0 -0
  58. package/dist/5340.creaditor.bundle.js +0 -157
  59. package/dist/5340.creaditor.bundle.js.gz +0 -0
  60. package/dist/5428.creaditor.bundle.js +0 -23
  61. package/dist/5428.creaditor.bundle.js.gz +0 -0
  62. package/dist/5813.creaditor.bundle.js +0 -613
  63. package/dist/5813.creaditor.bundle.js.LICENSE.txt +0 -10
  64. package/dist/5813.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  65. package/dist/5813.creaditor.bundle.js.gz +0 -0
  66. package/dist/6151.creaditor.bundle.js +0 -1
  67. package/dist/6151.creaditor.bundle.js.gz +0 -0
  68. package/dist/6459.creaditor.bundle.js +0 -23
  69. package/dist/6459.creaditor.bundle.js.gz +0 -0
  70. package/dist/6713.creaditor.bundle.js +0 -151
  71. package/dist/6713.creaditor.bundle.js.gz +0 -0
  72. package/dist/763.creaditor.bundle.js +0 -1
  73. package/dist/763.creaditor.bundle.js.gz +0 -0
  74. package/dist/7759.creaditor.bundle.js +0 -25
  75. package/dist/7759.creaditor.bundle.js.gz +0 -0
  76. package/dist/8141.creaditor.bundle.js.LICENSE.txt +0 -5
  77. package/dist/8303.creaditor.bundle.js +0 -57
  78. package/dist/8303.creaditor.bundle.js.LICENSE.txt +0 -10
  79. package/dist/8303.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  80. package/dist/8303.creaditor.bundle.js.gz +0 -0
  81. package/dist/8305.creaditor.bundle.js +0 -32
  82. package/dist/8305.creaditor.bundle.js.gz +0 -0
  83. package/dist/8386.creaditor.bundle.js +0 -1420
  84. package/dist/8386.creaditor.bundle.js.gz +0 -0
  85. package/dist/84702e107adede1a967468c78921d455.mp4 +0 -0
  86. package/dist/8478.creaditor.bundle.js +0 -1
  87. package/dist/8478.creaditor.bundle.js.gz +0 -0
  88. package/dist/8676.creaditor.bundle.js +0 -24
  89. package/dist/8676.creaditor.bundle.js.gz +0 -0
  90. package/dist/88.creaditor.bundle.js +0 -1
  91. package/dist/88.creaditor.bundle.js.gz +0 -0
  92. package/dist/8876.creaditor.bundle.js +0 -25
  93. package/dist/8876.creaditor.bundle.js.LICENSE.txt +0 -32
  94. package/dist/8876.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  95. package/dist/8876.creaditor.bundle.js.gz +0 -0
  96. package/dist/9089.creaditor.bundle.js +0 -21
  97. package/dist/9089.creaditor.bundle.js.gz +0 -0
  98. package/dist/9162.creaditor.bundle.js +0 -24
  99. package/dist/9162.creaditor.bundle.js.gz +0 -0
  100. package/dist/9184.creaditor.bundle.js +0 -23
  101. package/dist/9184.creaditor.bundle.js.gz +0 -0
  102. package/dist/9193.creaditor.bundle.js +0 -1
  103. package/dist/9193.creaditor.bundle.js.gz +0 -0
  104. package/dist/9338.creaditor.bundle.js +0 -1
  105. package/dist/9338.creaditor.bundle.js.gz +0 -0
  106. package/dist/951.creaditor.bundle.js +0 -1
  107. package/dist/951.creaditor.bundle.js.gz +0 -0
Binary file
@@ -1,157 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5340],{12258(e,t,o){o.d(t,{A:()=>i});var n=o(59929),s=o(40648);class r extends n.WF{constructor(){super(),this.label="",this.open=!0,this.persistKey=""}toggle(){this.open=!this.open,(0,s.Q)(this.persistKey,this.open)}render(){return n.qy`
2
- <div class="section">
3
- <div class="header" @click=${this.toggle}>
4
- <span class="title"><lang-text text="${this.label}"></lang-text></span>
5
- <svg class="chevron ${this.open?"open":""}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
6
- <polyline points="6 9 12 15 18 9"></polyline>
7
- </svg>
8
- </div>
9
- <div class="content ${this.open?"open":""}">
10
- <div class="content-inner">
11
- <slot></slot>
12
- </div>
13
- </div>
14
- </div>
15
- `}}r.styles=n.AH`
16
- :host {
17
- display: block;
18
- direction: var(--direction-locale, ltr);
19
- --editor-container-inline-padding: 0;
20
- }
21
- .section {
22
- border-bottom: 1px solid var(--color-border);
23
- }
24
- .header {
25
- display: flex;
26
- align-items: center;
27
- justify-content: space-between;
28
- padding: var(--space-3) var(--space-4);
29
- cursor: pointer;
30
- user-select: none;
31
- }
32
- .title {
33
- font-size: var(--text-md);
34
- font-weight: 600;
35
- color: var(--color-text);
36
- letter-spacing: 0.01em;
37
- }
38
- .chevron {
39
- width: 16px;
40
- height: 16px;
41
- transition: transform var(--duration-normal) var(--ease-default), color var(--duration-fast) var(--ease-default);
42
- color: var(--color-text-faint);
43
- }
44
- .header:hover .chevron {
45
- color: var(--color-text-muted);
46
- }
47
- .chevron.open {
48
- transform: rotate(180deg);
49
- }
50
- .content {
51
- overflow: hidden;
52
- transition: max-height var(--duration-normal) var(--ease-default), opacity var(--duration-fast) var(--ease-default);
53
- max-height: 0;
54
- opacity: 0;
55
- }
56
- .content.open {
57
- max-height: 1200px;
58
- opacity: 1;
59
- }
60
- .content-inner {
61
- padding: var(--space-3) var(--space-4) var(--space-3) var(--space-4);
62
- }
63
- `,r.properties={label:{type:String},open:{type:Boolean},persistKey:{type:String}},customElements.define("cdtr-editor-section",r);const i=(e,t)=>n.qy`
64
- <cdtr-editor-section
65
- .label=${e.label}
66
- .open=${!1!==e.open}
67
- .persistKey=${e.persistKey||""}
68
- >
69
- ${t}
70
- </cdtr-editor-section>
71
- `},40648(e,t,o){o.d(t,{Q:()=>i,i:()=>r});const n="cdtr:section-open";function s(){try{const e=localStorage.getItem(n);return e?JSON.parse(e):{}}catch(e){return{}}}function r(e){if(!e)return;const t=s();return Object.prototype.hasOwnProperty.call(t,e)?!!t[e]:void 0}function i(e,t){if(!e)return;const o=s();o[e]=!!t,function(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(e){}}(o)}},45340(e,t,o){o.r(t),o.d(t,{SettingEditor:()=>a});var n=o(59929),s=o(86319),r=o(36565),i=(o(12258),o(79307));class a extends n.WF{constructor(){super(),this.onInspect=this.onInspect.bind(this),this.name="",this.element_ID=" ",this.cmds={onToggleDisplayMode:(e,t)=>{r.Ay.store().execCommand(`show_on_${e}`,t),this[`show_on_${e}`]=t},onChangeElementID(e){r.Ay.store().execCommand("element_ID",e.target.value)},onChangeName(e){r.Ay.store().execCommand("name",e.target.value)}}}onInspect(){if(r.Ay.components.length>0){const e=r.Ay.components[0].props;this.show_on_desktop=!!e.show_on_desktop,this.show_on_tablet=!!e.show_on_tablet,this.show_on_mobile=!!e.show_on_mobile,this.name=e.name||"",this.element_ID=e.element_ID||""}}connectedCallback(){super.connectedCallback(),r.Ay.on("select",this.onInspect),r.Ay.on("update",this.onInspect),this.onInspect()}disconnectedCallback(){super.disconnectedCallback(),r.Ay.off("select",this.onInspect),r.Ay.off("update",this.onInspect)}render(){const e="block"===r.Ay.getSelectedComponent()[0].type,t="web"===s.M.get("config","channel");return n.qy`
72
- ${e&&t?n.qy`<cdtr-editor-section label="display_mode" .open=${!0}>
73
- <div class="device-toggle-row">
74
- <div
75
- class="device-toggle-btn ${this.show_on_desktop?"active":""}"
76
- @click=${()=>this.cmds.onToggleDisplayMode("desktop",!this.show_on_desktop)}
77
- >
78
- <svg width="14" height="14" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${i.oe}</svg>
79
- <lang-text text="desktop"></lang-text>
80
- </div>
81
- <div
82
- class="device-toggle-btn ${this.show_on_tablet?"active":""}"
83
- @click=${()=>this.cmds.onToggleDisplayMode("tablet",!this.show_on_tablet)}
84
- >
85
- <svg width="14" height="14" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${i.kN}</svg>
86
- <lang-text text="tablet"></lang-text>
87
- </div>
88
- <div
89
- class="device-toggle-btn ${this.show_on_mobile?"active":""}"
90
- @click=${()=>this.cmds.onToggleDisplayMode("mobile",!this.show_on_mobile)}
91
- >
92
- <svg width="14" height="14" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">${i.S9}</svg>
93
- <lang-text text="mobile"></lang-text>
94
- </div>
95
- </div>
96
- </cdtr-editor-section>`:n.qy``}
97
- <cdtr-editor-section label="properties" .open=${!0}>
98
- <cdtr-row mt="1">
99
- <cdtr-title><lang-text text="name"></lang-text></cdtr-title>
100
- </cdtr-row>
101
- <cdtr-row>
102
- <cdtr-input
103
- max="30"
104
- @change=${this.cmds.onChangeName}
105
- .value=${this.name}
106
- style="width:100%"
107
- ></cdtr-input>
108
- </cdtr-row>
109
- <cdtr-row mt="1">
110
- <cdtr-title
111
- ><lang-text text="ID_with_description"></lang-text
112
- ></cdtr-title>
113
- </cdtr-row>
114
- <cdtr-row>
115
- <cdtr-input
116
- max="50"
117
- @change=${this.cmds.onChangeElementID}
118
- .value=${this.element_ID}
119
- style="width:100%"
120
- ></cdtr-input>
121
- </cdtr-row>
122
- </cdtr-editor-section>
123
- `}}a.properties={name:{},element_ID:{},show_on_desktop:{},show_on_tablet:{},show_on_mobile:{}},a.styles=n.AH`
124
- :host {
125
- direction: var(--direction-locale);
126
- }
127
- .device-toggle-row {
128
- display: flex;
129
- gap: var(--space-2, 8px);
130
- }
131
- .device-toggle-btn {
132
- display: flex;
133
- align-items: center;
134
- gap: var(--space-1, 4px);
135
- padding: var(--space-2, 8px) var(--space-3, 12px);
136
- border: none;
137
- border-radius: var(--radius-sm, 6px);
138
- cursor: pointer;
139
- color: var(--color-text-faint, #bbb);
140
- background: var(--color-bg-muted, #f4f4f6);
141
- transition: background var(--duration-fast, 120ms) var(--ease-default, ease),
142
- color var(--duration-fast, 120ms) var(--ease-default, ease);
143
- font-size: var(--text-xs, 12px);
144
- }
145
- .device-toggle-btn:hover {
146
- background: #eaeaed;
147
- color: var(--color-text-muted, #888);
148
- }
149
- .device-toggle-btn svg {
150
- fill: currentColor;
151
- flex-shrink: 0;
152
- }
153
- .device-toggle-btn.active {
154
- background: var(--color-primary-soft, rgba(99, 102, 241, 0.08));
155
- color: var(--color-primary, #6366f1);
156
- }
157
- `,customElements.define("cdtr-setting-editor",a)}}]);
Binary file
@@ -1,23 +0,0 @@
1
- "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5428],{85428(t,i,e){e.r(i),e.d(i,{LinkIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
2
- xmlns="http://www.w3.org/2000/svg"
3
- viewBox="0 0 24 24"
4
- style="${this.iconStyle}"
5
- width="${this.width}"
6
- height="${this.height}"
7
- >
8
- <path fill="none" d="M0 0h24v24H0z" />
9
- <path
10
- d="M17.657 14.828l-1.414-1.414L17.657 12A4 4 0 1 0 12 6.343l-1.414 1.414-1.414-1.414 1.414-1.414a6 6 0 0 1 8.485 8.485l-1.414 1.414zm-2.829 2.829l-1.414 1.414a6 6 0 1 1-8.485-8.485l1.414-1.414 1.414 1.414L6.343 12A4 4 0 1 0 12 17.657l1.414-1.414 1.414 1.414zm0-9.9l1.415 1.415-7.071 7.07-1.415-1.414 7.071-7.07z"
11
- />
12
- </svg>`}}s.styles=h.AH`
13
- :host {
14
- display: inherit;
15
- --cdtr-icon-width: 20px;
16
- --cdtr-icon-height: 20px;
17
- }
18
- svg {
19
- width: var(--cdtr-icon-width);
20
- height: var(--cdtr-icon-height);
21
- color: var(--cdtr-icon-color);
22
- }
23
- `,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-link-icon",s)}}]);
Binary file