@templatical/editor 0.28.0 → 0.29.0
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-mZyf81xG.js → AiChatSidebar-KeS30iRG.js} +7 -7
- package/dist/{AiFeatureMenu-wpL2vbbd.js → AiFeatureMenu-CCdTgCy7.js} +4 -4
- package/dist/{BlockIssueBadge-CavnyR3o.js → BlockIssueBadge-DQ6jBV1T.js} +2 -2
- package/dist/{BlockPreviewCanvas-CeNJqtJ6.js → BlockPreviewCanvas-MgXVXOG_.js} +21 -14
- package/dist/{CloudHeaderExtras-fH0cB-Ru.js → CloudHeaderExtras-L_b51XVJ.js} +2 -2
- package/dist/{CloudPanels-Davlnzfd.js → CloudPanels-XUtScYFl.js} +3 -3
- package/dist/{CollaboratorBar-BvQZriPA.js → CollaboratorBar-Cx5klY7H.js} +2 -2
- package/dist/{ColorPicker-OLSFZBBZ.js → ColorPicker-DjfecH79.js} +1 -1
- package/dist/{CommentsPanel-B4_63eIS.js → CommentsPanel-5QxgkKF-.js} +1 -1
- package/dist/{CommentsSidebar-BkBHMXez.js → CommentsSidebar-CScszOsC.js} +10 -10
- package/dist/{CountdownToolbar-D8FsDIfa.js → CountdownToolbar-CiBrLbq0.js} +1 -1
- package/dist/{DesignReferenceSidebar-Dp44REBY.js → DesignReferenceSidebar-B1__DJJI.js} +5 -5
- package/dist/{IssuesPanel-C1v3dmoB.js → IssuesPanel-CkuV9Fjp.js} +5 -5
- package/dist/{MergeTagModeToggle-CZN0Pr1o.js → MergeTagModeToggle-oX-n91fH.js} +2 -2
- package/dist/{MergeTagSuggestion-a7Tk8tBB.js → MergeTagSuggestion-BUozNVtA.js} +55 -39
- package/dist/{ParagraphEditor-CGxsm0Mx.js → ParagraphEditor-BVlMj-YW.js} +19 -19
- package/dist/{RestoreVersionDialog-BLW8wC1J.js → RestoreVersionDialog-CZRLWoqP.js} +3 -3
- package/dist/{RichTextEditorContent-COBy_Q9j.js → RichTextEditorContent-BN6RBSZG.js} +3 -3
- package/dist/{SaveBlockDialog-DPDQTGTB.js → SaveBlockDialog-KNQVLcUG.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-D8a-wIRe.js → SavedBlocksBrowserModal-D7qatvfw.js} +7 -7
- package/dist/{SavedBlocksPanels-CmnGyJHO.js → SavedBlocksPanels-bizAFdNK.js} +1 -1
- package/dist/{SavedBlocksPickBar-Z-YRd488.js → SavedBlocksPickBar-BXUSoa38.js} +2 -2
- package/dist/{TemplateScoringPanel-5zp1qOSl.js → TemplateScoringPanel-Dm83xt9R.js} +10 -10
- package/dist/{TestEmailModal-C69UbsNy.js → TestEmailModal-DAdO9Gmo.js} +7 -7
- package/dist/{TestEmailPanel-CH2dG-8A.js → TestEmailPanel-DORs6xk0.js} +1 -1
- package/dist/{TitleEditor-BfWPus_C.js → TitleEditor-B_aWxZER.js} +8 -8
- package/dist/{TplModal-DBlMd7h9.js → TplModal-7623HR5x.js} +1 -1
- package/dist/{VersionHistoryMenu-Cg4UKxKc.js → VersionHistoryMenu-D7lgozpw.js} +4 -4
- package/dist/{VersionHistoryPanels-BKjbNEOM.js → VersionHistoryPanels-Dor0p1Ur.js} +1 -1
- package/dist/{VersionPreviewBanner-B0thyJ8F.js → VersionPreviewBanner-CQt2il1L.js} +1 -1
- package/dist/{blockTypeIcons-CQMkcHo9.js → blockTypeIcons-Di4AsjQx.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-BQATQ3Tr.js → AiChatSidebar-Cwr9eqTh.js} +2 -2
- package/dist/cdn/chunks/{AiChatSidebar-BQATQ3Tr.js.map → AiChatSidebar-Cwr9eqTh.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-cNoZ0xl_.js → AiFeatureMenu-CT2QiHmi.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-cNoZ0xl_.js.map → AiFeatureMenu-CT2QiHmi.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CH_3vFw4.js → BlockIssueBadge-CXlXn9Sm.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-CH_3vFw4.js.map → BlockIssueBadge-CXlXn9Sm.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-9tFXPVgi.js → BlockPreviewCanvas-BisO3JEy.js} +22 -15
- package/dist/cdn/chunks/BlockPreviewCanvas-BisO3JEy.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-CUAM2ADe.js → CloudHeaderExtras-MRCYqip8.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-CUAM2ADe.js.map → CloudHeaderExtras-MRCYqip8.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DMnnSIkX.js → CloudPanels-Bb9qSwKJ.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-DMnnSIkX.js.map → CloudPanels-Bb9qSwKJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C6sorNRi.js → CollaboratorBar-CG13kDHu.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-C6sorNRi.js.map → CollaboratorBar-CG13kDHu.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-q1V7ggWI.js → ColorPicker-UpN24AsB.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-q1V7ggWI.js.map → ColorPicker-UpN24AsB.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-ExfxJZM3.js → CommentsPanel-CIcIXzOB.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-ExfxJZM3.js.map → CommentsPanel-CIcIXzOB.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CzALURMJ.js → CommentsSidebar-CB5Z8xNz.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-CzALURMJ.js.map → CommentsSidebar-CB5Z8xNz.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CkbWSrAH.js → CountdownToolbar-B1L0IK1T.js} +2 -2
- package/dist/cdn/chunks/{CountdownToolbar-CkbWSrAH.js.map → CountdownToolbar-B1L0IK1T.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-COh0Rx_A.js → DesignReferenceSidebar-BwsfOFsc.js} +2 -2
- package/dist/cdn/chunks/{DesignReferenceSidebar-COh0Rx_A.js.map → DesignReferenceSidebar-BwsfOFsc.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C1NG0xRI.js → IssuesPanel-3nTCyKgK.js} +2 -2
- package/dist/cdn/chunks/{IssuesPanel-C1NG0xRI.js.map → IssuesPanel-3nTCyKgK.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-B1yXCp3D.js → MergeTagModeToggle-BUNsRKs6.js} +2 -2
- package/dist/cdn/chunks/{MergeTagModeToggle-B1yXCp3D.js.map → MergeTagModeToggle-BUNsRKs6.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-DqYR3jPA.js → MergeTagSuggestion-Dt6I8bZi.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-DqYR3jPA.js.map → MergeTagSuggestion-Dt6I8bZi.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DPM1hUKo.js → ParagraphEditor-BtzkHfv2.js} +17 -17
- package/dist/cdn/chunks/{ParagraphEditor-DPM1hUKo.js.map → ParagraphEditor-BtzkHfv2.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-Dz0bX5ZZ.js → RestoreVersionDialog-DNoo-EBT.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-Dz0bX5ZZ.js.map → RestoreVersionDialog-DNoo-EBT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-nkyIRAyN.js → RichTextEditorContent-BQATmyd9.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-nkyIRAyN.js.map → RichTextEditorContent-BQATmyd9.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DVMxZbmf.js → SaveBlockDialog-DB37Vmqt.js} +5 -5
- package/dist/cdn/chunks/{SaveBlockDialog-DVMxZbmf.js.map → SaveBlockDialog-DB37Vmqt.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C3nfKRQg.js → SavedBlocksBrowserModal-CTU2rGWQ.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C3nfKRQg.js.map → SavedBlocksBrowserModal-CTU2rGWQ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DVat5S7j.js → SavedBlocksPanels-B9h9wI6d.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DVat5S7j.js.map → SavedBlocksPanels-B9h9wI6d.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Brg8US_n.js → SavedBlocksPickBar-CTY5WZum.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-Brg8US_n.js.map → SavedBlocksPickBar-CTY5WZum.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DO86BvdQ.js → TemplateScoringPanel-DZ0cpe_D.js} +7 -7
- package/dist/cdn/chunks/{TemplateScoringPanel-DO86BvdQ.js.map → TemplateScoringPanel-DZ0cpe_D.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-CDx1Pqtx.js → TestEmailModal-Dqx1RyDE.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-Dqx1RyDE.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel--PpajGV7.js → TestEmailPanel-DrcQhnON.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel--PpajGV7.js.map → TestEmailPanel-DrcQhnON.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CLkXt5RZ.js → TitleEditor-CSeDvWVn.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-CLkXt5RZ.js.map → TitleEditor-CSeDvWVn.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BhfPoZ_W.js → TplModal-BNBLwBxJ.js} +2 -2
- package/dist/cdn/chunks/{TplModal-BhfPoZ_W.js.map → TplModal-BNBLwBxJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-_DyRYBRP.js → VersionHistoryMenu-cZlb0sMi.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-_DyRYBRP.js.map → VersionHistoryMenu-cZlb0sMi.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DGfOOcKV.js → VersionHistoryPanels-DgrjTK3z.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-DGfOOcKV.js.map → VersionHistoryPanels-DgrjTK3z.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-FbBmgknN.js → VersionPreviewBanner-BNq7PRun.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-FbBmgknN.js.map → VersionPreviewBanner-BNq7PRun.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-o4ammRlm.js → blockTypeIcons-BNGmmzB_.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-o4ammRlm.js.map → blockTypeIcons-BNGmmzB_.js.map} +1 -1
- package/dist/cdn/chunks/createCloudRuntime-B_HRgFxU.js +443 -0
- package/dist/cdn/chunks/createCloudRuntime-B_HRgFxU.js.map +1 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +1 -1
- package/dist/cdn/chunks/en-BZlZVGwM.js +2 -0
- package/dist/cdn/chunks/{extensions-qSqWdFko.js → extensions-Deqilwp8.js} +3 -3
- package/dist/cdn/chunks/{extensions-qSqWdFko.js.map → extensions-Deqilwp8.js.map} +1 -1
- package/dist/cdn/chunks/{icons-MeYdeH4P.js → icons-C2kP4vOJ.js} +17 -17
- package/dist/cdn/chunks/{icons-MeYdeH4P.js.map → icons-C2kP4vOJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-2QDLdUyx.js → src-CgIXdQlX.js} +3 -3
- package/dist/cdn/chunks/{src-2QDLdUyx.js.map → src-CgIXdQlX.js.map} +1 -1
- package/dist/cdn/chunks/{src-DgxiymKd.js → src-CnQgwcsc.js} +2 -2
- package/dist/cdn/chunks/{src-DgxiymKd.js.map → src-CnQgwcsc.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DgH_wKK_.js → tiptap-DOw5Yb4H.js} +3276 -3229
- package/dist/cdn/chunks/tiptap-DOw5Yb4H.js.map +1 -0
- package/dist/cdn/chunks/{useEditorCore-2ZVOY0Rh.js → useEditorCore-Dq5gdn5i.js} +435 -411
- package/dist/cdn/chunks/useEditorCore-Dq5gdn5i.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1362 -1352
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CLfibuQc.js → check-Cv96tY88.js} +1 -1
- package/dist/{chevron-down-DamTR8ta.js → chevron-down-BwEyjSjd.js} +1 -1
- package/dist/{chevron-up-CrV_Ksg-.js → chevron-up-C6Ye-Nzc.js} +1 -1
- package/dist/{circle-alert-BLy-e34e.js → circle-alert-BLt_gkcU.js} +1 -1
- package/dist/{clock-DQI6aaFT.js → clock-D-2BI0Co.js} +1 -1
- package/dist/createCloudRuntime-CWPQ7puE.js +441 -0
- package/dist/{createLucideIcon-Cbl3Ma_H.js → createLucideIcon-DGRWivCX.js} +2 -2
- package/dist/{dist-CgXIMxZc.js → dist-BG2cHdqw.js} +2 -2
- package/dist/{dist-CclsUQ7r.js → dist-BIFUEhwQ.js} +2 -2
- package/dist/{dist-DUn6jY0n.js → dist-BUh4MT4D.js} +2111 -2086
- package/dist/{dist-7Lr_A7Va.js → dist-BpHkLruF.js} +5 -4
- package/dist/{dist-C145btxT.js → dist-BtPhkQ2u.js} +154 -162
- package/dist/{dist-CQQNoHxz.js → dist-Btz6cFCI.js} +4 -4
- package/dist/dist-CCfNhI54.js +5 -0
- package/dist/{dist-D4Jb08yv.js → dist-CHp21juN.js} +2 -2
- package/dist/dist-CMcNDUcw.js +5 -0
- package/dist/{dist-CLc1cpN2.js → dist-DAR13YWM.js} +6 -5
- package/dist/{dist-Dx-KOuOj.js → dist-DQ_4a0hb.js} +2 -2
- package/dist/{dist-Dz7KUOSg.js → dist-q3Puexqv.js} +2 -2
- package/dist/{extensions-PJK0gLCL.js → extensions-BlYe3NFn.js} +3 -3
- package/dist/{image-up-BVOMy_Fs.js → image-up-KRq0lcdU.js} +1 -1
- package/dist/index.d.ts +146 -117
- package/dist/{info-BKMKasyT.js → info-DbmE2JAo.js} +1 -1
- package/dist/{loader-circle-CSGh8n8A.js → loader-circle-dSap9DfQ.js} +1 -1
- package/dist/{message-circle-C6q2Fm_W.js → message-circle-qSKKLbac.js} +1 -1
- package/dist/{pencil-DaTN0HKw.js → pencil-DMP8vL2F.js} +1 -1
- package/dist/{refresh-cw-Cu4wRQwT.js → refresh-cw-WXtBeMva.js} +1 -1
- package/dist/{scan-line-O_o657Gv.js → scan-line-BTrngVuN.js} +1 -1
- package/dist/{send-GS3soauT.js → send-CLa8Cxmh.js} +1 -1
- package/dist/{shield-check-B2TzT3Wp.js → shield-check-42WZrKQu.js} +1 -1
- package/dist/{sparkles-CNENcXZl.js → sparkles-DcOb0umz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +725 -715
- package/dist/{text-align-start-D0-k8RUf.js → text-align-start-zoZhXJ2T.js} +1 -1
- package/dist/{trash-2-BE-qGIpG.js → trash-2-Capv4cSE.js} +1 -1
- package/dist/{triangle-alert-DNM2_dyh.js → triangle-alert-CnJUGX-6.js} +1 -1
- package/dist/{upload-Cv2Jx-yM.js → upload-Bc0ZTywl.js} +1 -1
- package/dist/{useEditorCore-DM8vzMZQ.js → useEditorCore-CIjO_NM9.js} +1094 -1072
- package/dist/{useScrollToBlock-C2LYXENK.js → useScrollToBlock-C2-9xCr7.js} +1 -1
- package/dist/{x-DUPrT6Aa.js → x-CvPZ3OAd.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/BlockPreviewCanvas-9tFXPVgi.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDx1Pqtx.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-C-u7oIGa.js +0 -344
- package/dist/cdn/chunks/createCloudRuntime-C-u7oIGa.js.map +0 -1
- package/dist/cdn/chunks/en-C6FKrw69.js +0 -2
- package/dist/cdn/chunks/tiptap-DgH_wKK_.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-2ZVOY0Rh.js.map +0 -1
- package/dist/createCloudRuntime-BrgMP9gS.js +0 -342
- package/dist/dist-D-ulkdvF.js +0 -5
- package/dist/dist-Kf9u4ULN.js +0 -5
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import { A as e, L as t, X as n, q as r, s as i } from "./vue.runtime.esm-bundler-CdH_W9qX.js";
|
|
2
|
+
import { m as a } from "./dist-WE11SQGe.js";
|
|
3
|
+
import { t as o } from "./dist-CkSgS-K9.js";
|
|
4
|
+
import { R as s, i as c, l, t as u } from "./keys-CAor2T5q.js";
|
|
5
|
+
import { t as d } from "./timeouts-DHPZQ0G3.js";
|
|
6
|
+
import { t as f } from "./logger-BBlvSn6q.js";
|
|
7
|
+
import { t as p } from "./preRenderCustomBlocks-BebjKtmw.js";
|
|
8
|
+
import { S as m, _ as h, a as g, b as ee, c as te, d as ne, h as _, i as v, l as y, m as b, n as x, o as S, p as C, r as re, s as ie, t as ae, u as oe, v as se, x as ce, y as le } from "./cloud-DXFUA8H_.js";
|
|
9
|
+
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
10
|
+
function ue(e) {
|
|
11
|
+
let { planConfigInstance: t, aiConfig: n, getTemplateId: r } = e;
|
|
12
|
+
return {
|
|
13
|
+
canUseAiGeneration: i(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value),
|
|
14
|
+
canSendTestEmail: i(() => t.hasFeature("test_email")),
|
|
15
|
+
hasTemplateSaved: i(() => r() !== null),
|
|
16
|
+
templateLimit: i(() => t.config.value?.limits.max_templates ?? null),
|
|
17
|
+
templateCount: i(() => t.config.value?.template_count ?? 0)
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/cloud/composables/useCloudMediaLibrary.ts
|
|
22
|
+
function de(e) {
|
|
23
|
+
let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: i, authManager: a, getMediaConfig: o, onError: s } = e, c = null;
|
|
24
|
+
function l(e) {
|
|
25
|
+
return {
|
|
26
|
+
url: e.url,
|
|
27
|
+
alt: e.alt_text || void 0
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
async function u(e) {
|
|
31
|
+
let r = e?.accept ?? ["images"];
|
|
32
|
+
if (e?.files?.length) {
|
|
33
|
+
if (t) {
|
|
34
|
+
let n = await t({
|
|
35
|
+
accept: r,
|
|
36
|
+
files: e.files
|
|
37
|
+
});
|
|
38
|
+
return n ? l(n) : null;
|
|
39
|
+
}
|
|
40
|
+
return d(e.files[0]);
|
|
41
|
+
}
|
|
42
|
+
if (t) {
|
|
43
|
+
let e = await t({ accept: r });
|
|
44
|
+
return e ? l(e) : null;
|
|
45
|
+
}
|
|
46
|
+
return c &&= (c(null), null), i.value = r, n.value = !0, new Promise((e) => {
|
|
47
|
+
c = (t) => {
|
|
48
|
+
e(t);
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
async function d(e) {
|
|
53
|
+
let t = f(e);
|
|
54
|
+
if (t) return s?.(t), null;
|
|
55
|
+
try {
|
|
56
|
+
let { MediaApiClient: t } = await import("@templatical/media-library");
|
|
57
|
+
return l(await new t(a).uploadMedia(e));
|
|
58
|
+
} catch (e) {
|
|
59
|
+
return s?.(e), null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function f(e) {
|
|
63
|
+
let t = o?.() ?? null;
|
|
64
|
+
if (!t) return null;
|
|
65
|
+
let n = t.categories?.images?.mime_types ?? [];
|
|
66
|
+
return n.length > 0 && !n.includes(e.type) ? /* @__PURE__ */ Error(`Unsupported image type: ${e.type || "unknown"}. Accepted: ${n.join(", ")}.`) : t.max_file_size > 0 && e.size > t.max_file_size ? /* @__PURE__ */ Error(`Image is too large (${e.size} bytes). Maximum allowed is ${t.max_file_size} bytes.`) : null;
|
|
67
|
+
}
|
|
68
|
+
function p(e) {
|
|
69
|
+
n.value = !1, c?.(l(e)), c = null;
|
|
70
|
+
}
|
|
71
|
+
function m() {
|
|
72
|
+
n.value = !1, c?.(null), c = null;
|
|
73
|
+
}
|
|
74
|
+
return r(() => {
|
|
75
|
+
c &&= (c(null), null);
|
|
76
|
+
}), {
|
|
77
|
+
handleRequestMedia: u,
|
|
78
|
+
handleMediaSelect: p,
|
|
79
|
+
handleMediaLibraryClose: m
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/cloud/composables/useCloudPanelState.ts
|
|
84
|
+
function fe() {
|
|
85
|
+
let e = n(null), t = i({
|
|
86
|
+
get: () => e.value === "ai-chat",
|
|
87
|
+
set: (t) => e.value = t ? "ai-chat" : null
|
|
88
|
+
}), r = i({
|
|
89
|
+
get: () => e.value === "scoring",
|
|
90
|
+
set: (t) => e.value = t ? "scoring" : null
|
|
91
|
+
}), a = i({
|
|
92
|
+
get: () => e.value === "design-reference",
|
|
93
|
+
set: (t) => e.value = t ? "design-reference" : null
|
|
94
|
+
}), s = i({
|
|
95
|
+
get: () => e.value === "comments",
|
|
96
|
+
set: (t) => e.value = t ? "comments" : null
|
|
97
|
+
}), c = n(!1), l = n(void 0), u = n(!1), d = n(null), f = i(() => e.value !== null), p = i(() => {
|
|
98
|
+
let t = e.value;
|
|
99
|
+
return t === "ai-chat" || t === "design-reference" || t === "scoring" ? t : null;
|
|
100
|
+
}), m = i(() => u.value || e.value === "ai-chat" || e.value === "design-reference" || e.value === "scoring");
|
|
101
|
+
function h() {
|
|
102
|
+
u.value = !u.value;
|
|
103
|
+
}
|
|
104
|
+
function g(t) {
|
|
105
|
+
u.value = !1, e.value = e.value === t ? null : t;
|
|
106
|
+
}
|
|
107
|
+
return o(d, () => {
|
|
108
|
+
u.value = !1;
|
|
109
|
+
}), {
|
|
110
|
+
activePanel: e,
|
|
111
|
+
aiChatOpen: t,
|
|
112
|
+
scoringPanelOpen: r,
|
|
113
|
+
designReferenceOpen: a,
|
|
114
|
+
commentsOpen: s,
|
|
115
|
+
mediaLibraryOpen: c,
|
|
116
|
+
mediaLibraryAccept: l,
|
|
117
|
+
aiMenuOpen: u,
|
|
118
|
+
aiMenuRef: d,
|
|
119
|
+
rightPanelOpen: f,
|
|
120
|
+
activeAiFeature: p,
|
|
121
|
+
aiButtonActive: m,
|
|
122
|
+
toggleAiMenu: h,
|
|
123
|
+
handleAiFeatureSelect: g
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/cloud/composables/useCloudSaveGate.ts
|
|
128
|
+
function pe(e) {
|
|
129
|
+
let t = n(!1), r = null, a = i(() => e.planConfig.value?.accessibility?.blockOnError === !0), o = i(() => a.value ? e.issues.value.filter((e) => e.severity === "error") : []), s = i(() => o.value.length > 0);
|
|
130
|
+
async function c(e) {
|
|
131
|
+
return s.value ? (r = e, t.value = !0, !1) : (await e(), !0);
|
|
132
|
+
}
|
|
133
|
+
async function l(e) {
|
|
134
|
+
return !s.value && (await e(), !0);
|
|
135
|
+
}
|
|
136
|
+
async function u() {
|
|
137
|
+
let e = r;
|
|
138
|
+
r = null, t.value = !1, e && await e();
|
|
139
|
+
}
|
|
140
|
+
function d() {
|
|
141
|
+
r = null, t.value = !1;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
shouldBlock: s,
|
|
145
|
+
blockingIssues: o,
|
|
146
|
+
modalOpen: t,
|
|
147
|
+
tryRunSave: c,
|
|
148
|
+
runUnlessBlocked: l,
|
|
149
|
+
confirmAndSave: u,
|
|
150
|
+
cancel: d
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
155
|
+
function me(e) {
|
|
156
|
+
let { isCollaborationEnabled: t, getCollaboratorCount: r, canUndo: i } = e, o = n(!1), s = n(!1), { start: c } = a(() => {
|
|
157
|
+
s.value = !1;
|
|
158
|
+
}, d, { immediate: !1 });
|
|
159
|
+
function l() {
|
|
160
|
+
o.value || !t.value || r() === 0 || !i.value || (o.value = !0, s.value = !0, c());
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
collabUndoWarningVisible: s,
|
|
164
|
+
showCollabUndoWarning: l
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/cloud/collectSavedBlockIds.ts
|
|
169
|
+
function he(e) {
|
|
170
|
+
let t = /* @__PURE__ */ new Set(), n = e?.content?.blocks;
|
|
171
|
+
if (!n) return t;
|
|
172
|
+
for (let e of n) if (t.add(e.id), e.type === "section" && e.children) for (let n of e.children) for (let e of n) t.add(e.id);
|
|
173
|
+
return t;
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/cloud/createCloudRuntime.ts
|
|
177
|
+
function ge(e) {
|
|
178
|
+
if (!e) return {};
|
|
179
|
+
let { onSaved: t, onCreated: n, onLoaded: r } = e;
|
|
180
|
+
return {
|
|
181
|
+
...typeof t == "function" ? { onSaved: t } : {},
|
|
182
|
+
...typeof n == "function" ? { onCreated: n } : {},
|
|
183
|
+
...typeof r == "function" ? { onLoaded: r } : {}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function _e(e) {
|
|
187
|
+
if (!e) return {};
|
|
188
|
+
let { onCreated: t, onUpdated: n, onDeleted: r, onResolved: i, onUnresolved: a } = e;
|
|
189
|
+
return {
|
|
190
|
+
...typeof t == "function" ? { onCreated: t } : {},
|
|
191
|
+
...typeof n == "function" ? { onUpdated: n } : {},
|
|
192
|
+
...typeof r == "function" ? { onDeleted: r } : {},
|
|
193
|
+
...typeof i == "function" ? { onResolved: i } : {},
|
|
194
|
+
...typeof a == "function" ? { onUnresolved: a } : {}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function ve(e) {
|
|
198
|
+
if (typeof e != "object" || !e) return {};
|
|
199
|
+
let { onCreated: t, onUpdated: n, onDeleted: r } = e;
|
|
200
|
+
return {
|
|
201
|
+
...typeof t == "function" ? { onCreated: t } : {},
|
|
202
|
+
...typeof n == "function" ? { onUpdated: n } : {},
|
|
203
|
+
...typeof r == "function" ? { onDeleted: r } : {}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function ye(e) {
|
|
207
|
+
if (typeof e != "object" || !e) return {};
|
|
208
|
+
let { onSent: t, defaultRecipient: n } = e;
|
|
209
|
+
return {
|
|
210
|
+
...typeof t == "function" ? { onSent: t } : {},
|
|
211
|
+
...typeof n == "string" ? { defaultRecipient: n } : {}
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function be(e) {
|
|
215
|
+
if (!e) return {};
|
|
216
|
+
let { onCreated: t, onRestored: n } = e;
|
|
217
|
+
return {
|
|
218
|
+
...typeof t == "function" ? { onCreated: t } : {},
|
|
219
|
+
...typeof n == "function" ? { onRestored: n } : {}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
function w(e) {
|
|
223
|
+
return e.length < 2 ? e.join("") : e.length === 2 ? e.join(" and ") : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
|
|
224
|
+
}
|
|
225
|
+
async function T(r) {
|
|
226
|
+
let { config: a, cloudTranslations: o } = r, d = null, T = null, E = null, D = null, O = null, k = null, A = null, j = n(null), M = n(/* @__PURE__ */ new Map()), N = n(null);
|
|
227
|
+
function P() {
|
|
228
|
+
if (!d) throw Error("[Templatical] The Cloud editor is not mounted yet.");
|
|
229
|
+
return d;
|
|
230
|
+
}
|
|
231
|
+
function F() {
|
|
232
|
+
return d?.state.template?.id ?? null;
|
|
233
|
+
}
|
|
234
|
+
let I = new ae({
|
|
235
|
+
...a.auth,
|
|
236
|
+
onError: (e) => {
|
|
237
|
+
te(e) && (j.value = e), a.onError?.(e);
|
|
238
|
+
}
|
|
239
|
+
}), L = le({
|
|
240
|
+
authManager: I,
|
|
241
|
+
onError: a.onError
|
|
242
|
+
});
|
|
243
|
+
await I.initialize();
|
|
244
|
+
let R = await y({ authManager: I });
|
|
245
|
+
if (!R.api.ok) throw Error("Health check failed: API is not reachable");
|
|
246
|
+
if (!R.auth.ok) throw Error(`Health check failed: authentication error${R.auth.error ? ` - ${R.auth.error}` : ""}`);
|
|
247
|
+
R.websocket.ok || f.warn("WebSocket health check failed:", R.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await L.fetchConfig(), j.value = null;
|
|
248
|
+
let xe = a.templates, z = [
|
|
249
|
+
"load",
|
|
250
|
+
"create",
|
|
251
|
+
"save"
|
|
252
|
+
].filter((e) => xe?.[e] !== void 0);
|
|
253
|
+
z.length > 0 && f.warn(`initCloud ignores ${w(z.map((e) => `templates.${e}`))} — the template id is the join key for collaboration, version history, comments, AI rewrite, scoring and the server-side export, so an id Cloud never issued would degrade all six. Your event handlers were kept. Use init() to bring your own storage.`);
|
|
254
|
+
let Se = a.versionHistory, B = [
|
|
255
|
+
"list",
|
|
256
|
+
"get",
|
|
257
|
+
"create",
|
|
258
|
+
"restore"
|
|
259
|
+
].filter((e) => Se?.[e] !== void 0);
|
|
260
|
+
B.length > 0 && f.warn(`initCloud ignores ${w(B.map((e) => `versionHistory.${e}`))} — a version is keyed to a template id Cloud issued, so Cloud owns its history. Your event handlers were kept. Use init() to bring your own storage.`);
|
|
261
|
+
let Ce = a.comments, V = [
|
|
262
|
+
"list",
|
|
263
|
+
"create",
|
|
264
|
+
"update",
|
|
265
|
+
"delete",
|
|
266
|
+
"setResolved",
|
|
267
|
+
"subscribe"
|
|
268
|
+
].filter((e) => Ce?.[e] !== void 0);
|
|
269
|
+
V.length > 0 && f.warn(`initCloud ignores ${w(V.map((e) => `comments.${e}`))} — a comment is keyed to a template id Cloud issued, and its author is signed by the auth token, so Cloud owns the conversation. Your event handlers were kept. Use init() to bring your own storage.`), a.render && f.warn("initCloud does not accept a `render` provider — Cloud renders server-side for test email, sends and exports, so a supplied renderer would change only what you preview and export, never what Cloud delivers. The supplied provider is ignored. For your own MJML, call renderToMjml(editor.getContent()) from @templatical/renderer.");
|
|
270
|
+
function H(e) {
|
|
271
|
+
let t = L.config.value?.websocket;
|
|
272
|
+
!E || !t || E.connect(e.id, ne(t));
|
|
273
|
+
}
|
|
274
|
+
let U = g(I), W = U.create, G = U.save, we = {
|
|
275
|
+
...ge(a.templates),
|
|
276
|
+
load: async (e) => {
|
|
277
|
+
let t = await U.load(e);
|
|
278
|
+
return H(t), t;
|
|
279
|
+
},
|
|
280
|
+
create: typeof W == "function" ? async (e) => {
|
|
281
|
+
let t = await W(e);
|
|
282
|
+
return H(t), t;
|
|
283
|
+
} : !1,
|
|
284
|
+
save: typeof G == "function" ? async (e, t) => (T && d && await p(d.content.value, T.registry), G(e, t)) : !1
|
|
285
|
+
}, Te = re({
|
|
286
|
+
authManager: I,
|
|
287
|
+
getTemplateId: F,
|
|
288
|
+
save: () => P().save()
|
|
289
|
+
}), Ee = {
|
|
290
|
+
...be(a.versionHistory),
|
|
291
|
+
...ie(I)
|
|
292
|
+
}, De = {
|
|
293
|
+
..._e(a.comments),
|
|
294
|
+
...x({
|
|
295
|
+
authManager: I,
|
|
296
|
+
channel: N,
|
|
297
|
+
getSocketId: () => E?.getSocketId() ?? null
|
|
298
|
+
})
|
|
299
|
+
}, K = I.userConfig ? {
|
|
300
|
+
id: I.userConfig.id,
|
|
301
|
+
name: I.userConfig.name
|
|
302
|
+
} : void 0, q = typeof a.savedBlocks?.list == "function" ? a.savedBlocks : null;
|
|
303
|
+
if (q === null && typeof a.savedBlocks == "object" && a.savedBlocks !== null) {
|
|
304
|
+
let e = a.savedBlocks, t = [
|
|
305
|
+
"list",
|
|
306
|
+
"create",
|
|
307
|
+
"update",
|
|
308
|
+
"delete"
|
|
309
|
+
].filter((t) => e[t] !== void 0);
|
|
310
|
+
t.length > 0 && f.warn(`initCloud ignores ${w(t.map((e) => `savedBlocks.${e}`))} — a provider needs a working list to replace Cloud's store, and this value has none, so it configures Cloud's own store instead. Your event handlers were kept. Use init() to bring your own storage.`);
|
|
311
|
+
}
|
|
312
|
+
let J = a.savedBlocks === !1 ? void 0 : q ?? {
|
|
313
|
+
...ve(a.savedBlocks),
|
|
314
|
+
...v(I)
|
|
315
|
+
}, Y = ce({
|
|
316
|
+
authManager: I,
|
|
317
|
+
isAuthReady: n(!0)
|
|
318
|
+
}), Oe = h({ authManager: I }), X = typeof a.testEmail?.send == "function" ? a.testEmail : null;
|
|
319
|
+
if (X === null && typeof a.testEmail == "object" && a.testEmail !== null) {
|
|
320
|
+
let e = a.testEmail, t = [
|
|
321
|
+
"send",
|
|
322
|
+
"includeMjml",
|
|
323
|
+
"allowedRecipients"
|
|
324
|
+
].filter((t) => e[t] !== void 0);
|
|
325
|
+
t.length > 0 && f.warn(`initCloud ignores ${w(t.map((e) => `testEmail.${e}`))} — a provider needs a working send to replace Cloud's sender outright, and Cloud renders server-side with the signed allowlist from your project's JWT either way, so none of these apply here. Your event handlers were kept.`);
|
|
326
|
+
}
|
|
327
|
+
let ke = X ?? Object.assign(S({
|
|
328
|
+
authManager: I,
|
|
329
|
+
getTemplateId: F,
|
|
330
|
+
save: () => P().save(),
|
|
331
|
+
exportHtml: (e) => Oe.exportHtml(e, oe(a.fonts)),
|
|
332
|
+
allowedEmails: Y.allowedEmails,
|
|
333
|
+
getSignature: Y.getSignature,
|
|
334
|
+
onBeforeTestEmail: a.onBeforeTestEmail
|
|
335
|
+
}), ye(a.testEmail)), Z = C(a.ai), Ae = ee({
|
|
336
|
+
authManager: I,
|
|
337
|
+
getTemplateId: F
|
|
338
|
+
}), Q = ue({
|
|
339
|
+
planConfigInstance: L,
|
|
340
|
+
aiConfig: Z,
|
|
341
|
+
getTemplateId: F
|
|
342
|
+
}), $ = i(() => !!a.collaboration?.enabled && L.hasFeature("collaboration"));
|
|
343
|
+
function je(n) {
|
|
344
|
+
let r = n.editor;
|
|
345
|
+
d = r, e(l, o), e(c, I), e(u, Z), e(s, Ae);
|
|
346
|
+
let i = m({
|
|
347
|
+
authManager: I,
|
|
348
|
+
onError: a.onError
|
|
349
|
+
});
|
|
350
|
+
E = i, t(i.channel, (e) => {
|
|
351
|
+
N.value = e;
|
|
352
|
+
}, { immediate: !0 }), a.mcp?.enabled && se({
|
|
353
|
+
editor: r,
|
|
354
|
+
channel: i.channel,
|
|
355
|
+
onOperation: a.mcp.onOperation
|
|
356
|
+
}), a.collaboration?.enabled && (O = b({
|
|
357
|
+
authManager: I,
|
|
358
|
+
editor: r,
|
|
359
|
+
channel: i.channel,
|
|
360
|
+
onError: a.onError,
|
|
361
|
+
onCollaboratorJoined: a.collaboration.onCollaboratorJoined,
|
|
362
|
+
onCollaboratorLeft: a.collaboration.onCollaboratorLeft,
|
|
363
|
+
onBlockLocked: a.collaboration.onBlockLocked,
|
|
364
|
+
onBlockUnlocked: a.collaboration.onBlockUnlocked
|
|
365
|
+
}), t(() => O.lockedBlocks.value, (e) => {
|
|
366
|
+
M.value = e;
|
|
367
|
+
}, { immediate: !0 }), _(r, O));
|
|
368
|
+
let f = fe(), p = de({
|
|
369
|
+
onRequestMedia: a.onRequestMedia,
|
|
370
|
+
mediaLibraryOpen: f.mediaLibraryOpen,
|
|
371
|
+
mediaLibraryAccept: f.mediaLibraryAccept,
|
|
372
|
+
authManager: I,
|
|
373
|
+
getMediaConfig: () => L.config.value?.media ?? null,
|
|
374
|
+
onError: a.onError
|
|
375
|
+
});
|
|
376
|
+
return D = p, {
|
|
377
|
+
websocket: i,
|
|
378
|
+
panelState: f,
|
|
379
|
+
mediaLib: p,
|
|
380
|
+
mediaBrowser: {
|
|
381
|
+
authManager: I,
|
|
382
|
+
projectId: I.projectId,
|
|
383
|
+
planConfig: L
|
|
384
|
+
},
|
|
385
|
+
featureFlags: Q,
|
|
386
|
+
collaboration: O,
|
|
387
|
+
isCollaborationEnabled: $
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function Me(e) {
|
|
391
|
+
let { core: t, capabilities: r } = e;
|
|
392
|
+
return T = t, A = pe({
|
|
393
|
+
issues: t.templateLint ? t.templateLint.issues : n([]),
|
|
394
|
+
planConfig: L.config
|
|
395
|
+
}), k = me({
|
|
396
|
+
isCollaborationEnabled: $,
|
|
397
|
+
getCollaboratorCount: () => O?.collaborators.value.length ?? 0,
|
|
398
|
+
canUndo: t.history.canUndo
|
|
399
|
+
}), r.plan = L, r.ai = Z, a.customBlocks?.length && t.registerCustomBlocks(a.customBlocks), a.theme && (t.themeOverrides.value = a.theme), {
|
|
400
|
+
saveGate: A,
|
|
401
|
+
collabWarning: k,
|
|
402
|
+
sessionError: j,
|
|
403
|
+
retry: async () => {
|
|
404
|
+
try {
|
|
405
|
+
await I.initialize(), j.value = null;
|
|
406
|
+
} catch (e) {
|
|
407
|
+
j.value = e instanceof Error ? e : /* @__PURE__ */ Error("Authentication failed");
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
return {
|
|
413
|
+
runtime: {
|
|
414
|
+
lockedBlocks: M,
|
|
415
|
+
onRequestMedia: (e) => D ? D.handleRequestMedia(e) : Promise.resolve(null),
|
|
416
|
+
isSavedBlocksAvailable: q ? () => !0 : () => a.savedBlocks !== !1 && L.hasFeature("saved_modules"),
|
|
417
|
+
isTestEmailAvailable: X ? () => !0 : () => Y.isEnabled.value && Q.canSendTestEmail.value && Q.hasTemplateSaved.value,
|
|
418
|
+
isCommentsAvailable: () => a.comments !== !1 && L.hasFeature("commenting") && Q.hasTemplateSaved.value,
|
|
419
|
+
isBlockSaved: (e) => he(d?.state.template ?? null).has(e),
|
|
420
|
+
getSaveGate: () => A,
|
|
421
|
+
isRemoteOperation: () => O?._isProcessingRemoteOperation() ?? !1,
|
|
422
|
+
onBeforeUndo: () => k?.showCollabUndoWarning(),
|
|
423
|
+
attach: je,
|
|
424
|
+
ready: Me,
|
|
425
|
+
destroy() {
|
|
426
|
+
E?.disconnect(), a.onUnmount?.();
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
providers: {
|
|
430
|
+
templates: we,
|
|
431
|
+
render: Te,
|
|
432
|
+
versionHistory: Ee,
|
|
433
|
+
...J ? { savedBlocks: J } : {},
|
|
434
|
+
testEmail: ke,
|
|
435
|
+
comments: De
|
|
436
|
+
},
|
|
437
|
+
user: K
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
export { T as bootstrapCloud };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as e, b as t, s as n } from "./vue.runtime.esm-bundler-CdH_W9qX.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.34.0_vue@3.5.41_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
|
|
3
3
|
var r = (e) => e === "", i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
|
|
4
4
|
let t = o(e);
|
|
5
5
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -18,7 +18,7 @@ function u() {
|
|
|
18
18
|
return e(l, {});
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
21
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.34.0_vue@3.5.41_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
22
22
|
var d = ({ name: e, iconNode: o, "icon-node": l, absoluteStrokeWidth: d, "absolute-stroke-width": f, strokeWidth: p, "stroke-width": m, size: h, color: g, ..._ }, { slots: v }) => {
|
|
23
23
|
let { size: y, color: b, strokeWidth: x = 2, absoluteStrokeWidth: S = !1, class: C = "" } = u(), w = n(() => {
|
|
24
24
|
let e = r(d) || r(f) || d === !0 || f === !0 || S === !0, t = p || m || x || c["stroke-width"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, gn as t } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.30.
|
|
1
|
+
import { f as e, gn as t } from "./dist-BUh4MT4D.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.30.3_@tiptap+core@3.30.3_@tiptap+pm@3.30.3__@tiptap+pm@3.30.3/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = e.create({
|
|
4
4
|
name: "superscript",
|
|
5
5
|
addOptions() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.30.
|
|
1
|
+
import { s as e } from "./dist-BUh4MT4D.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.30.3_@tiptap+core@3.30.3_@tiptap+pm@3.30.3_/node_modules/@tiptap/extension-text-align/dist/index.js
|
|
3
3
|
var t = e.create({
|
|
4
4
|
name: "textAlign",
|
|
5
5
|
addOptions() {
|