@templatical/editor 0.10.1 → 0.10.2
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/{AiChatSidebar-Dz5bH1z3.js → AiChatSidebar-BMwpZx-6.js} +14 -14
- package/dist/{AiFeatureMenu-D2Xn0jFx.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
- package/dist/{BlockIssueBadge-CnqD1cGo.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
- package/dist/{CloudEditor-BizZwsfD.js → CloudEditor-Dm9hiaui.js} +21 -21
- package/dist/{CollaboratorBar-Bn2JDu6l.js → CollaboratorBar-Cz_evoU4.js} +4 -4
- package/dist/{CommentsSidebar-BAG6rdVC.js → CommentsSidebar-jFZj_CTo.js} +13 -13
- package/dist/{CountdownBlock-B_Hr9Bm9.js → CountdownBlock-S-SCyVye.js} +4 -4
- package/dist/{CountdownToolbar-DaqDLKLk.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
- package/dist/{DesignReferenceSidebar-I9LWjvrj.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
- package/dist/{IssuesPanel-B32Ifp4x.js → IssuesPanel-_E_fbSM8.js} +8 -8
- package/dist/{LoadingTrack-UTqOUN4O.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
- package/dist/{ModuleBrowserModal-DodRped1.js → ModuleBrowserModal-BB22urqi.js} +10 -10
- package/dist/{ModulePreviewCanvas-DhcnddJF.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
- package/dist/{NumberWithSuffix-DB7GyyCI.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
- package/dist/{ParagraphEditor-pJA9BHAL.js → ParagraphEditor-BmY7LLgN.js} +24 -24
- package/dist/{RichTextEditorContent-dTGSUff_.js → RichTextEditorContent-COijbaWp.js} +8 -8
- package/dist/{SaveModuleDialog-D634e99d.js → SaveModuleDialog-D5WN-je_.js} +7 -7
- package/dist/{SnapshotHistory-m_nGAHlb.js → SnapshotHistory-BQ55Rhri.js} +9 -9
- package/dist/{TemplateScoringPanel-BOQh9neV.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
- package/dist/{TestEmailModal-DOcwoKkc.js → TestEmailModal-DH_Viz_m.js} +5 -5
- package/dist/{TitleEditor-t6JMWamY.js → TitleEditor-Dn613K8o.js} +12 -12
- package/dist/{TplModal-BAtbfDB0.js → TplModal-Dxa3rhHI.js} +4 -4
- package/dist/{blockTypeIcons-C4lXx3Au.js → blockTypeIcons-CrcSCTD6.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js → CloudEditor-KkwvBhyt.js} +123 -123
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js.map → CloudEditor-KkwvBhyt.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js → CollaboratorBar-BGIGiFSm.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js → CountdownBlock-gqnpxKp_.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js → CountdownToolbar-xHpaWQE2.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js → IssuesPanel-DHTTHu65.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js → ParagraphEditor-CwY8GeWa.js} +18 -18
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js → RichTextEditorContent-C_bMURGF.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js → TitleEditor-Betpo8AZ.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js → draggable-BTGr7_-X.js} +19 -19
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js.map → draggable-BTGr7_-X.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CNmpC18A.js → extensions-D_j4UWxi.js} +4 -4
- package/dist/cdn/chunks/{extensions-CNmpC18A.js.map → extensions-D_j4UWxi.js.map} +1 -1
- package/dist/cdn/chunks/{features-_ar9QbVv.js → features-A28DQtjE.js} +815 -810
- package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
- package/dist/cdn/chunks/{icons-CnwCLJX-.js → icons-C9D3N0-J.js} +2 -2
- package/dist/cdn/chunks/{icons-CnwCLJX-.js.map → icons-C9D3N0-J.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js → media-library-CH1Wx5wP.js} +7 -7
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js.map → media-library-CH1Wx5wP.js.map} +1 -1
- package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
- package/dist/cdn/chunks/{quality-CO9mj_RH.js → quality-D4NeyFej.js} +530 -530
- package/dist/cdn/chunks/{quality-CO9mj_RH.js.map → quality-D4NeyFej.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js → renderer-BQnGfLhL.js} +16 -16
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js.map → renderer-BQnGfLhL.js.map} +1 -1
- package/dist/cdn/chunks/{src-DfMSYqvE.js → src-BkKEyLw1.js} +6 -6
- package/dist/cdn/chunks/{src-DfMSYqvE.js.map → src-BkKEyLw1.js.map} +1 -1
- package/dist/cdn/chunks/{styles-1uFWdD5T.js → styles-BDVaiw3K.js} +142 -142
- package/dist/cdn/chunks/{styles-1uFWdD5T.js.map → styles-BDVaiw3K.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CJbIm_hE.js → tiptap-P5abGB13.js} +4434 -2577
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
- package/dist/cdn/editor.js +100 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bs6_uQpm.js → check-KooI2jyS.js} +1 -1
- package/dist/{chevron-down-so1rnGwF.js → chevron-down-mnlFgueW.js} +1 -1
- package/dist/{circle-alert-CrKv0AuW.js → circle-alert-D89_hB8j.js} +1 -1
- package/dist/{clock-Cpx6GYpa.js → clock-BaadyUrg.js} +1 -1
- package/dist/{cloud-bHhCNRZa.js → cloud-D-FScaHx.js} +2 -2
- package/dist/{createLucideIcon-DFBxEm5K.js → createLucideIcon-D-6fpD2L.js} +1 -1
- package/dist/{dist-DwEpKyry.js → dist-BttO3Zdx.js} +44 -44
- package/dist/{dist-CMkZaqX1.js → dist-C1WcikEF.js} +5 -5
- package/dist/dist-CjULgTep.js +4072 -0
- package/dist/{dist-BufRk8ZY.js → dist-D6L_WdRL.js} +95 -85
- package/dist/{dist-DJ5YJLXn.js → dist-DaajG7Fo.js} +5 -5
- package/dist/dist-Df4eV6Zi.js +5 -0
- package/dist/{dist-BejBMbBX.js → dist-Dnqx5UF3.js} +171 -158
- package/dist/{dist-CIK3BYgh.js → dist-Drp5bNAu.js} +5 -5
- package/dist/dist-WJ1fVd5b.js +5 -0
- package/dist/{dist-CoaWXQ7N.js → dist-XA2i70J5.js} +8 -8
- package/dist/{dist-74n2Mqc6.js → dist-b52vYHb5.js} +2 -2
- package/dist/{dist-2-A7SaKm.js → dist-cl33Ip6W.js} +1 -1
- package/dist/{dist-0RguD1vS.js → dist-sqf7pq5q.js} +16 -16
- package/dist/{dist-B3CcePtK.js → dist-zInT3Lf6.js} +75 -57
- package/dist/{extensions-C810eSzv.js → extensions-DA-w1gVg.js} +29 -29
- package/dist/{image-up-kMLE5GsI.js → image-up-DjwfAom6.js} +1 -1
- package/dist/{info-xqRxLfNz.js → info-Db3HlTr8.js} +1 -1
- package/dist/{keys-BoYBr3PU.js → keys-BjmL5YCT.js} +1 -1
- package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
- package/dist/{list-checks-C81htkBJ.js → list-checks-BlAB0X8a.js} +1 -1
- package/dist/{loader-circle-C6cZPIum.js → loader-circle-EVqyIxjU.js} +1 -1
- package/dist/{message-circle-dqOBRe07.js → message-circle-BuI5pBVG.js} +1 -1
- package/dist/{refresh-cw-DCjNd6o0.js → refresh-cw-C2vM_6zQ.js} +1 -1
- package/dist/{scan-line-DXz0nZVJ.js → scan-line-AUIh_SHI.js} +1 -1
- package/dist/{send-C4uH_WaI.js → send-nrbwF7xg.js} +1 -1
- package/dist/{shield-check-B3U68ssA.js → shield-check-B55Ozmva.js} +1 -1
- package/dist/{sparkles-CsDweGUy.js → sparkles-oh1NUSFq.js} +1 -1
- package/dist/{styles-CBlNpqL9.js → styles-Byhh107n.js} +33 -33
- package/dist/templatical-editor.js +81 -80
- package/dist/{text-align-start-BkKQePFp.js → text-align-start-B2MqzZwU.js} +1 -1
- package/dist/{trash-2-BIOkaEz1.js → trash-2-DH8RBwAx.js} +1 -1
- package/dist/{triangle-alert-Bbgu6uUG.js → triangle-alert-BQHjCt3B.js} +1 -1
- package/dist/{useAliveFlag-Bc99FWyR.js → useAliveFlag-B_b9ubwD.js} +1 -1
- package/dist/{useCloudI18n-DiwsLi6z.js → useCloudI18n-BHCrmQgj.js} +2 -2
- package/dist/{useEditorCore-7c1QpPlw.js → useEditorCore-BEgc3KFu.js} +368 -375
- package/dist/{useI18n-DskZMfRJ.js → useI18n-Bb9-ha9X.js} +2 -2
- package/dist/{useMergeTag-Co4xYwG6.js → useMergeTag-HykzEtBn.js} +3 -3
- package/dist/usePopoverRoot-BZDkRRry.js +8 -0
- package/dist/{vue.runtime.esm-bundler-D0Hg03Ub.js → vue.runtime.esm-bundler-MzYCkFSH.js} +18 -18
- package/dist/{x-DWU6NCuE.js → x-DgCCENgP.js} +1 -1
- package/package.json +25 -25
- package/dist/cdn/chunks/features-_ar9QbVv.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CJbIm_hE.js.map +0 -1
- package/dist/dist-Bvje_Tqb.js +0 -5
- package/dist/dist-BxHa6kIT.js +0 -2243
- package/dist/dist-D1YvgM6p.js +0 -5
- package/dist/usePopoverRoot-DYH_gX8o.js +0 -8
|
@@ -99,7 +99,7 @@ function _(e, t) {
|
|
|
99
99
|
}
|
|
100
100
|
return n;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ee(e = "Arial", t) {
|
|
103
103
|
return {
|
|
104
104
|
blocks: [],
|
|
105
105
|
settings: {
|
|
@@ -109,13 +109,13 @@ function v(e = "Arial", t) {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function v(e, t) {
|
|
113
113
|
return !t || Object.keys(t).length === 0 ? e : _(e, t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function y() {
|
|
116
116
|
return crypto.randomUUID();
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function b(e = 0) {
|
|
119
119
|
return {
|
|
120
120
|
top: e,
|
|
121
121
|
right: e,
|
|
@@ -123,135 +123,135 @@ function x(e = 0) {
|
|
|
123
123
|
left: e
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return { padding:
|
|
126
|
+
function x(e = 10) {
|
|
127
|
+
return { padding: b(e) };
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
131
|
-
id:
|
|
129
|
+
function S(e = {}) {
|
|
130
|
+
return v({
|
|
131
|
+
id: y(),
|
|
132
132
|
type: "title",
|
|
133
133
|
...n,
|
|
134
|
-
styles:
|
|
134
|
+
styles: x()
|
|
135
135
|
}, e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
139
|
-
id:
|
|
137
|
+
function C(e = {}) {
|
|
138
|
+
return v({
|
|
139
|
+
id: y(),
|
|
140
140
|
type: "paragraph",
|
|
141
141
|
...r,
|
|
142
|
-
styles:
|
|
142
|
+
styles: x()
|
|
143
143
|
}, e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
147
|
-
id:
|
|
145
|
+
function w(e = {}) {
|
|
146
|
+
return v({
|
|
147
|
+
id: y(),
|
|
148
148
|
type: "image",
|
|
149
149
|
...i,
|
|
150
|
-
styles:
|
|
150
|
+
styles: x()
|
|
151
151
|
}, e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
155
|
-
id:
|
|
153
|
+
function T(e = {}) {
|
|
154
|
+
return v({
|
|
155
|
+
id: y(),
|
|
156
156
|
type: "button",
|
|
157
157
|
...a,
|
|
158
|
-
styles:
|
|
158
|
+
styles: x()
|
|
159
159
|
}, e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
163
|
-
id:
|
|
161
|
+
function E(e = {}) {
|
|
162
|
+
return v({
|
|
163
|
+
id: y(),
|
|
164
164
|
type: "divider",
|
|
165
165
|
...o,
|
|
166
|
-
styles:
|
|
166
|
+
styles: x(20)
|
|
167
167
|
}, e);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return
|
|
171
|
-
id:
|
|
169
|
+
function D(e = {}) {
|
|
170
|
+
return v({
|
|
171
|
+
id: y(),
|
|
172
172
|
type: "section",
|
|
173
173
|
...s,
|
|
174
174
|
children: [[]],
|
|
175
|
-
styles:
|
|
175
|
+
styles: x(20)
|
|
176
176
|
}, e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
id:
|
|
178
|
+
function O(e = {}) {
|
|
179
|
+
return v({
|
|
180
|
+
id: y(),
|
|
181
181
|
type: "video",
|
|
182
182
|
...c,
|
|
183
|
-
styles:
|
|
183
|
+
styles: x()
|
|
184
184
|
}, e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
return
|
|
188
|
-
id:
|
|
186
|
+
function k(e = {}) {
|
|
187
|
+
return v({
|
|
188
|
+
id: y(),
|
|
189
189
|
type: "social",
|
|
190
190
|
icons: [],
|
|
191
191
|
...l,
|
|
192
|
-
styles:
|
|
192
|
+
styles: x()
|
|
193
193
|
}, e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
197
|
-
id:
|
|
195
|
+
function A(e = {}) {
|
|
196
|
+
return v({
|
|
197
|
+
id: y(),
|
|
198
198
|
type: "spacer",
|
|
199
199
|
...u,
|
|
200
|
-
styles:
|
|
200
|
+
styles: x(0)
|
|
201
201
|
}, e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
205
|
-
id:
|
|
203
|
+
function j(e = {}) {
|
|
204
|
+
return v({
|
|
205
|
+
id: y(),
|
|
206
206
|
type: "html",
|
|
207
207
|
...d,
|
|
208
|
-
styles:
|
|
208
|
+
styles: x()
|
|
209
209
|
}, e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
213
|
-
id:
|
|
211
|
+
function M(e = {}) {
|
|
212
|
+
return v({
|
|
213
|
+
id: y(),
|
|
214
214
|
type: "menu",
|
|
215
215
|
items: [],
|
|
216
216
|
...f,
|
|
217
|
-
styles:
|
|
217
|
+
styles: x()
|
|
218
218
|
}, e);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function N(e, t) {
|
|
221
221
|
return Array.from({ length: t }, () => ({
|
|
222
|
-
id:
|
|
222
|
+
id: y(),
|
|
223
223
|
cells: Array.from({ length: e }, () => ({
|
|
224
|
-
id:
|
|
224
|
+
id: y(),
|
|
225
225
|
content: ""
|
|
226
226
|
}))
|
|
227
227
|
}));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
231
|
-
id:
|
|
229
|
+
function P(e = {}) {
|
|
230
|
+
return v({
|
|
231
|
+
id: y(),
|
|
232
232
|
type: "table",
|
|
233
|
-
rows:
|
|
233
|
+
rows: N(3, 3),
|
|
234
234
|
...p,
|
|
235
|
-
styles:
|
|
235
|
+
styles: x()
|
|
236
236
|
}, e);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
240
|
-
id:
|
|
238
|
+
function F(e = {}) {
|
|
239
|
+
return v({
|
|
240
|
+
id: y(),
|
|
241
241
|
type: "countdown",
|
|
242
242
|
...m,
|
|
243
|
-
styles:
|
|
243
|
+
styles: x()
|
|
244
244
|
}, e);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function I(e) {
|
|
247
247
|
return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function L(e) {
|
|
250
250
|
let t = {};
|
|
251
|
-
for (let n of e.fields) t[n.key] =
|
|
252
|
-
let n =
|
|
251
|
+
for (let n of e.fields) t[n.key] = I(n);
|
|
252
|
+
let n = v(x(), e.defaultStyles);
|
|
253
253
|
return {
|
|
254
|
-
id:
|
|
254
|
+
id: y(),
|
|
255
255
|
type: "custom",
|
|
256
256
|
customType: e.type,
|
|
257
257
|
fieldValues: t,
|
|
@@ -259,27 +259,37 @@ function R(e) {
|
|
|
259
259
|
...e.dataSource ? { dataSourceFetched: !1 } : {}
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function R(e, t) {
|
|
263
263
|
switch (e) {
|
|
264
|
-
case "section": return
|
|
265
|
-
case "title": return
|
|
266
|
-
case "paragraph": return
|
|
267
|
-
case "image": return
|
|
268
|
-
case "button": return
|
|
269
|
-
case "divider": return
|
|
270
|
-
case "video": return
|
|
271
|
-
case "social": return
|
|
272
|
-
case "spacer": return
|
|
273
|
-
case "html": return
|
|
274
|
-
case "menu": return
|
|
275
|
-
case "table": return
|
|
276
|
-
case "countdown": return
|
|
264
|
+
case "section": return D(t?.section);
|
|
265
|
+
case "title": return S(t?.title);
|
|
266
|
+
case "paragraph": return C(t?.paragraph);
|
|
267
|
+
case "image": return w(t?.image);
|
|
268
|
+
case "button": return T(t?.button);
|
|
269
|
+
case "divider": return E(t?.divider);
|
|
270
|
+
case "video": return O(t?.video);
|
|
271
|
+
case "social": return k(t?.social);
|
|
272
|
+
case "spacer": return A(t?.spacer);
|
|
273
|
+
case "html": return j(t?.html);
|
|
274
|
+
case "menu": return M(t?.menu);
|
|
275
|
+
case "table": return P(t?.table);
|
|
276
|
+
case "countdown": return F(t?.countdown);
|
|
277
277
|
default: throw Error(`Unknown block type: ${e}`);
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function z(e) {
|
|
281
281
|
let t = JSON.parse(JSON.stringify(e));
|
|
282
|
-
return t.id =
|
|
282
|
+
return t.id = y(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => z(e)))), t;
|
|
283
|
+
}
|
|
284
|
+
function B(e) {
|
|
285
|
+
let t = /* @__PURE__ */ new WeakSet();
|
|
286
|
+
return JSON.parse(JSON.stringify(e, (e, n) => {
|
|
287
|
+
if (typeof n == "object" && n) {
|
|
288
|
+
if (t.has(n)) return;
|
|
289
|
+
t.add(n);
|
|
290
|
+
}
|
|
291
|
+
return n;
|
|
292
|
+
}));
|
|
283
293
|
}
|
|
284
294
|
var V = {
|
|
285
295
|
liquid: {
|
|
@@ -374,7 +384,7 @@ function $(e, t, n) {
|
|
|
374
384
|
}
|
|
375
385
|
return i;
|
|
376
386
|
}
|
|
377
|
-
var
|
|
387
|
+
var te = class extends Error {
|
|
378
388
|
statusCode;
|
|
379
389
|
constructor(e, t) {
|
|
380
390
|
super(e), this.statusCode = t, this.name = "SdkError";
|
|
@@ -390,4 +400,4 @@ var ee = class extends Error {
|
|
|
390
400
|
}
|
|
391
401
|
};
|
|
392
402
|
//#endregion
|
|
393
|
-
export { J as A, Z as C, X as D, t as E, K as O,
|
|
403
|
+
export { J as A, Z as C, X as D, t as E, B as M, K as O, y as S, U as T, k as _, Y as a, S as b, F as c, E as d, j as f, D as g, C as h, z as i, W as j, Q as k, L as l, M as m, V as n, R as o, w as p, te as r, T as s, e as t, ee as u, A as v, q as w, O as x, P as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-underline@3.
|
|
3
|
-
var n =
|
|
1
|
+
import { c as e, qt as t } from "./dist-zInT3Lf6.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-underline@3.26.0_@tiptap+core@3.26.0_@tiptap+pm@3.26.0_/node_modules/@tiptap/extension-underline/dist/index.js
|
|
3
|
+
var n = e.create({
|
|
4
4
|
name: "underline",
|
|
5
5
|
addOptions() {
|
|
6
6
|
return { HTMLAttributes: {} };
|
|
@@ -12,10 +12,10 @@ var n = t.create({
|
|
|
12
12
|
getAttrs: (e) => e.includes("underline") ? {} : !1
|
|
13
13
|
}];
|
|
14
14
|
},
|
|
15
|
-
renderHTML({ HTMLAttributes:
|
|
15
|
+
renderHTML({ HTMLAttributes: e }) {
|
|
16
16
|
return [
|
|
17
17
|
"u",
|
|
18
|
-
|
|
18
|
+
t(this.options.HTMLAttributes, e),
|
|
19
19
|
0
|
|
20
20
|
];
|
|
21
21
|
},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Color as e } from "./dist-sqf7pq5q.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-color@3.26.0_@tiptap+extension-text-style@3.26.0_@tiptap+core@3.26.0_@tiptap+pm@3.26.0__/node_modules/@tiptap/extension-color/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as Color, t as default };
|