@templatical/editor 0.10.0 → 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-D30WPhbv.js → AiChatSidebar-BMwpZx-6.js} +14 -14
- package/dist/{AiFeatureMenu-B5CJX5zr.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
- package/dist/{BlockIssueBadge-CkB4Yyz2.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
- package/dist/{CloudEditor-nT-R769W.js → CloudEditor-Dm9hiaui.js} +159 -156
- package/dist/{CollaboratorBar-CwhlXODK.js → CollaboratorBar-Cz_evoU4.js} +4 -4
- package/dist/{CommentsSidebar-gpZMMI5w.js → CommentsSidebar-jFZj_CTo.js} +13 -13
- package/dist/{CountdownBlock-BNvuXucv.js → CountdownBlock-S-SCyVye.js} +4 -4
- package/dist/{CountdownToolbar-Dl82DAmI.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
- package/dist/{DesignReferenceSidebar-Bs5AMxVd.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
- package/dist/{IssuesPanel-CqQa2BtU.js → IssuesPanel-_E_fbSM8.js} +8 -8
- package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
- package/dist/{ModuleBrowserModal-BWWgF0LC.js → ModuleBrowserModal-BB22urqi.js} +10 -10
- package/dist/{ModulePreviewCanvas-D7Tk5HOt.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
- package/dist/{NumberWithSuffix-DVy5HxMi.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
- package/dist/{ParagraphEditor-DVSGdMOo.js → ParagraphEditor-BmY7LLgN.js} +26 -26
- package/dist/{RichTextEditorContent-DN-fRjMa.js → RichTextEditorContent-COijbaWp.js} +8 -8
- package/dist/{SaveModuleDialog-CkEYkyVD.js → SaveModuleDialog-D5WN-je_.js} +7 -7
- package/dist/{SnapshotHistory-Nx9wrlbF.js → SnapshotHistory-BQ55Rhri.js} +9 -9
- package/dist/{TemplateScoringPanel-BG9M-29t.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
- package/dist/{TestEmailModal-CRjtEs6S.js → TestEmailModal-DH_Viz_m.js} +5 -5
- package/dist/{TitleEditor-CvtV4pCA.js → TitleEditor-Dn613K8o.js} +12 -12
- package/dist/{TplModal-BudEYVcJ.js → TplModal-Dxa3rhHI.js} +4 -4
- package/dist/{blockTypeIcons-Dd-UvfnC.js → blockTypeIcons-CrcSCTD6.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-xc_uOEgn.js → CloudEditor-KkwvBhyt.js} +131 -128
- package/dist/cdn/chunks/CloudEditor-KkwvBhyt.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js → CollaboratorBar-BGIGiFSm.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js → CountdownBlock-gqnpxKp_.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js → CountdownToolbar-xHpaWQE2.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js → IssuesPanel-DHTTHu65.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js → ParagraphEditor-CwY8GeWa.js} +20 -20
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js → RichTextEditorContent-C_bMURGF.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js → TitleEditor-Betpo8AZ.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-BTGr7_-X.js} +1271 -1270
- package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +1 -0
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js → extensions-D_j4UWxi.js} +108 -105
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js.map → extensions-D_j4UWxi.js.map} +1 -1
- package/dist/cdn/chunks/{features-CwZTdcbt.js → features-A28DQtjE.js} +831 -820
- package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
- package/dist/cdn/chunks/{icons-CbNEr1kc.js → icons-C9D3N0-J.js} +12 -12
- package/dist/cdn/chunks/{icons-CbNEr1kc.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-BRpHZOl7.js → media-library-CH1Wx5wP.js} +13 -9
- package/dist/cdn/chunks/media-library-CH1Wx5wP.js.map +1 -0
- package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
- package/dist/cdn/chunks/{quality-BqJqIPRU.js → quality-D4NeyFej.js} +530 -530
- package/dist/cdn/chunks/{quality-BqJqIPRU.js.map → quality-D4NeyFej.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CGVYkdUi.js → renderer-BQnGfLhL.js} +62 -61
- package/dist/cdn/chunks/renderer-BQnGfLhL.js.map +1 -0
- package/dist/cdn/chunks/{src-CvzfrFlT.js → src-BkKEyLw1.js} +6 -6
- package/dist/cdn/chunks/{src-CvzfrFlT.js.map → src-BkKEyLw1.js.map} +1 -1
- package/dist/cdn/chunks/{styles-2P5yvfsS.js → styles-BDVaiw3K.js} +150 -150
- package/dist/cdn/chunks/{styles-2P5yvfsS.js.map → styles-BDVaiw3K.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-P5abGB13.js} +4437 -2580
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +100 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ChQyfxJ3.js → check-KooI2jyS.js} +1 -1
- package/dist/{chevron-down-DJjo0jSV.js → chevron-down-mnlFgueW.js} +1 -1
- package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-D89_hB8j.js} +1 -1
- package/dist/{clock-DHl_BIkU.js → clock-BaadyUrg.js} +1 -1
- package/dist/{cloud-BBC7bv8q.js → cloud-D-FScaHx.js} +80 -74
- package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-D-6fpD2L.js} +3 -3
- package/dist/{dist-DXaxGLsw.js → dist-BttO3Zdx.js} +44 -44
- package/dist/{dist-C8wMh_gi.js → dist-C1WcikEF.js} +5 -5
- package/dist/dist-CjULgTep.js +4072 -0
- package/dist/{dist-GAmhYvUK.js → dist-D6L_WdRL.js} +96 -86
- package/dist/{dist-DYO-w_Jf.js → dist-DaajG7Fo.js} +5 -5
- package/dist/dist-Df4eV6Zi.js +5 -0
- package/dist/{dist-D8C6jIXM.js → dist-Dnqx5UF3.js} +171 -158
- package/dist/{dist-CUpJmrjt.js → dist-Drp5bNAu.js} +5 -5
- package/dist/dist-WJ1fVd5b.js +5 -0
- package/dist/{dist-BxP6TB0l.js → dist-XA2i70J5.js} +8 -8
- package/dist/{dist-UK-lbEBc.js → dist-b52vYHb5.js} +2 -2
- package/dist/{dist-CNLAS2v2.js → dist-cl33Ip6W.js} +3 -3
- package/dist/{dist-C0jo8wtG.js → dist-sqf7pq5q.js} +16 -16
- package/dist/{dist-BzuC8o3y.js → dist-zInT3Lf6.js} +78 -60
- package/dist/{extensions-C87ZSllQ.js → extensions-DA-w1gVg.js} +128 -125
- package/dist/{image-up-CPBCOMit.js → image-up-DjwfAom6.js} +1 -1
- package/dist/{info-DIY9mguM.js → info-Db3HlTr8.js} +1 -1
- package/dist/{keys-Vt3XipJl.js → keys-BjmL5YCT.js} +1 -1
- package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
- package/dist/{list-checks-CSCyu3fH.js → list-checks-BlAB0X8a.js} +1 -1
- package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-EVqyIxjU.js} +1 -1
- package/dist/{message-circle-D-umK_MU.js → message-circle-BuI5pBVG.js} +1 -1
- package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-C2vM_6zQ.js} +1 -1
- package/dist/{scan-line-wanvAFDr.js → scan-line-AUIh_SHI.js} +1 -1
- package/dist/{send-BhbhbIFT.js → send-nrbwF7xg.js} +1 -1
- package/dist/{shield-check-CXPPMWth.js → shield-check-B55Ozmva.js} +1 -1
- package/dist/{sparkles-CrUN0KWY.js → sparkles-oh1NUSFq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DOjWbqA9.js → styles-Byhh107n.js} +41 -41
- package/dist/templatical-editor.js +81 -80
- package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-B2MqzZwU.js} +11 -11
- package/dist/{trash-2-BpY5BCLT.js → trash-2-DH8RBwAx.js} +1 -1
- package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-BQHjCt3B.js} +1 -1
- package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-B_b9ubwD.js} +1 -1
- package/dist/{useCloudI18n-sRfoQCZY.js → useCloudI18n-BHCrmQgj.js} +2 -2
- package/dist/{useEditorCore-DxApq2hZ.js → useEditorCore-BEgc3KFu.js} +370 -377
- package/dist/{useI18n-lF6hYgZu.js → useI18n-Bb9-ha9X.js} +2 -2
- package/dist/{useMergeTag-CZVI7Xe5.js → useMergeTag-HykzEtBn.js} +3 -3
- package/dist/usePopoverRoot-BZDkRRry.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-MzYCkFSH.js} +1306 -1305
- package/dist/{x-rcnxRG8Y.js → x-DgCCENgP.js} +1 -1
- package/package.json +27 -27
- package/dist/cdn/chunks/CloudEditor-xc_uOEgn.js.map +0 -1
- package/dist/cdn/chunks/draggable-BwWMFq33.js.map +0 -1
- package/dist/cdn/chunks/features-CwZTdcbt.js.map +0 -1
- package/dist/cdn/chunks/media-library-BRpHZOl7.js.map +0 -1
- package/dist/cdn/chunks/renderer-CGVYkdUi.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +0 -1
- package/dist/dist-BDgf2G-V.js +0 -2243
- package/dist/dist-D5lmdi1F.js +0 -5
- package/dist/dist-DILjuzSv.js +0 -5
- package/dist/usePopoverRoot-p2BanBI7.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,11 +384,11 @@ function $(e, t, n) {
|
|
|
374
384
|
}
|
|
375
385
|
return i;
|
|
376
386
|
}
|
|
377
|
-
var
|
|
387
|
+
var te = class extends Error {
|
|
388
|
+
statusCode;
|
|
378
389
|
constructor(e, t) {
|
|
379
390
|
super(e), this.statusCode = t, this.name = "SdkError";
|
|
380
391
|
}
|
|
381
|
-
statusCode;
|
|
382
392
|
get isNotFound() {
|
|
383
393
|
return this.statusCode === 404;
|
|
384
394
|
}
|
|
@@ -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 };
|