@templatical/editor 0.9.1 → 0.10.1
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-BUKj9n02.js → AiChatSidebar-Dz5bH1z3.js} +13 -13
- package/dist/{AiFeatureMenu-Co14YVJt.js → AiFeatureMenu-D2Xn0jFx.js} +7 -7
- package/dist/{BlockIssueBadge-DThKKeub.js → BlockIssueBadge-CnqD1cGo.js} +5 -5
- package/dist/{CloudEditor-DHB1FoQD.js → CloudEditor-BizZwsfD.js} +237 -233
- package/dist/{CollaboratorBar-Bc6q0gB9.js → CollaboratorBar-Bn2JDu6l.js} +4 -4
- package/dist/{CommentsSidebar-DiH4R4F0.js → CommentsSidebar-BAG6rdVC.js} +12 -12
- package/dist/{CountdownBlock-BTPefclD.js → CountdownBlock-B_Hr9Bm9.js} +3 -3
- package/dist/{CountdownToolbar-Dvr2icg-.js → CountdownToolbar-DaqDLKLk.js} +3 -3
- package/dist/{DesignReferenceSidebar-BP32MgpS.js → DesignReferenceSidebar-I9LWjvrj.js} +9 -9
- package/dist/{IssuesPanel-B1LT91IX.js → IssuesPanel-B32Ifp4x.js} +8 -8
- package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-UTqOUN4O.js} +1 -1
- package/dist/{ModuleBrowserModal-CWegFoOA.js → ModuleBrowserModal-DodRped1.js} +10 -10
- package/dist/{ModulePreviewCanvas-D9WUSSRT.js → ModulePreviewCanvas-DhcnddJF.js} +3 -3
- package/dist/{NumberWithSuffix-CxUBW_V2.js → NumberWithSuffix-DB7GyyCI.js} +3 -3
- package/dist/{ParagraphEditor-DrAz2yot.js → ParagraphEditor-pJA9BHAL.js} +26 -26
- package/dist/{RichTextEditorContent-gR169m1-.js → RichTextEditorContent-dTGSUff_.js} +6 -6
- package/dist/{SaveModuleDialog-DWidA0c9.js → SaveModuleDialog-D634e99d.js} +7 -7
- package/dist/{SnapshotHistory-CIo2Jaw-.js → SnapshotHistory-m_nGAHlb.js} +9 -9
- package/dist/{TemplateScoringPanel-seBvvn8O.js → TemplateScoringPanel-BOQh9neV.js} +14 -14
- package/dist/{TestEmailModal-BuCuWp3N.js → TestEmailModal-DOcwoKkc.js} +5 -5
- package/dist/{TitleEditor-BmW0uMl7.js → TitleEditor-t6JMWamY.js} +12 -12
- package/dist/{TplModal-YFpBaiLj.js → TplModal-BAtbfDB0.js} +4 -4
- package/dist/{blockTypeIcons-DCkHXPhx.js → blockTypeIcons-C4lXx3Au.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-Dayzk2H7.js → AiFeatureMenu-BeOyHAoZ.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-Dayzk2H7.js.map → AiFeatureMenu-BeOyHAoZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D_US2wqo.js → BlockIssueBadge-C6YilQdl.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-D_US2wqo.js.map → BlockIssueBadge-C6YilQdl.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CrZk-OwQ.js → CloudEditor-DEA37rdW.js} +178 -174
- package/dist/cdn/chunks/CloudEditor-DEA37rdW.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-C4CFs5EJ.js → CollaboratorBar-CKW7jOW4.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-C4CFs5EJ.js.map → CollaboratorBar-CKW7jOW4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D6lCXhZA.js → CountdownBlock-DU9ga9Ki.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-D6lCXhZA.js.map → CountdownBlock-DU9ga9Ki.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BsGUxoRv.js → CountdownToolbar-BHWsxth7.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BsGUxoRv.js.map → CountdownToolbar-BHWsxth7.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DeHTmRDz.js → IssuesPanel-BkYhij39.js} +9 -9
- package/dist/cdn/chunks/{IssuesPanel-DeHTmRDz.js.map → IssuesPanel-BkYhij39.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Cgjz4xAz.js → ModuleBrowserModal-D51w942J.js} +9 -9
- package/dist/cdn/chunks/{ModuleBrowserModal-Cgjz4xAz.js.map → ModuleBrowserModal-D51w942J.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CeS9PsAA.js → ModulePreviewCanvas-BqTqcKHS.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-CeS9PsAA.js.map → ModulePreviewCanvas-BqTqcKHS.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-Bp-idLCc.js → NumberWithSuffix-DuUcF2zG.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-Bp-idLCc.js.map → NumberWithSuffix-DuUcF2zG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-fM9aFu8T.js → ParagraphEditor-Bqjn3ZNm.js} +45 -45
- package/dist/cdn/chunks/{ParagraphEditor-fM9aFu8T.js.map → ParagraphEditor-Bqjn3ZNm.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DwNPE5H5.js → RichTextEditorContent-mIkkb5EK.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DwNPE5H5.js.map → RichTextEditorContent-mIkkb5EK.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BrtDXzIz.js → SaveModuleDialog-Felfmkcj.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-BrtDXzIz.js.map → SaveModuleDialog-Felfmkcj.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D0rSnye0.js → TitleEditor-Dcldr8D6.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-D0rSnye0.js.map → TitleEditor-Dcldr8D6.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D05Wqf5u.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-YOEe5mDE.js.map → blockTypeIcons-D05Wqf5u.js.map} +1 -1
- package/dist/{de-CATfXDKV.js → cdn/chunks/de-DIAGP7yH.js} +2 -6
- package/dist/cdn/chunks/de-DIAGP7yH.js.map +1 -0
- package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-J_1CPXYc.js} +1254 -1253
- package/dist/cdn/chunks/draggable-J_1CPXYc.js.map +1 -0
- package/dist/{en-CwCAgYL5.js → cdn/chunks/en-nqIW8Q9W.js} +2 -6
- package/dist/cdn/chunks/en-nqIW8Q9W.js.map +1 -0
- package/dist/cdn/chunks/{extensions-GYsbQFPr.js → extensions-CNmpC18A.js} +127 -124
- package/dist/cdn/chunks/{extensions-GYsbQFPr.js.map → extensions-CNmpC18A.js.map} +1 -1
- package/dist/cdn/chunks/{features-D-2kVhHY.js → features-_ar9QbVv.js} +1006 -979
- package/dist/cdn/chunks/features-_ar9QbVv.js.map +1 -0
- package/dist/cdn/chunks/{icons-fZoyKV_s.js → icons-CnwCLJX-.js} +19 -33
- package/dist/cdn/chunks/icons-CnwCLJX-.js.map +1 -0
- package/dist/cdn/chunks/{media-library-CO2WOETY.js → media-library-9jyt7Bf9.js} +83 -79
- package/dist/cdn/chunks/media-library-9jyt7Bf9.js.map +1 -0
- package/dist/{pt-BR-D3Mg7AKe.js → cdn/chunks/pt-BR-DCNnLLx9.js} +2 -6
- package/dist/cdn/chunks/pt-BR-DCNnLLx9.js.map +1 -0
- package/dist/cdn/chunks/{quality-BxPiS-wv.js → quality-CO9mj_RH.js} +494 -484
- package/dist/cdn/chunks/quality-CO9mj_RH.js.map +1 -0
- package/dist/cdn/chunks/{renderer-CfHPFI5v.js → renderer-m6XTCWCL.js} +135 -117
- package/dist/cdn/chunks/renderer-m6XTCWCL.js.map +1 -0
- package/dist/cdn/chunks/{src-ftxPuuQh.js → src-DfMSYqvE.js} +9 -9
- package/dist/cdn/chunks/{src-ftxPuuQh.js.map → src-DfMSYqvE.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CVUvPdKD.js → styles-1uFWdD5T.js} +1045 -1074
- package/dist/cdn/chunks/styles-1uFWdD5T.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-CJbIm_hE.js} +5 -5
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js.map → tiptap-CJbIm_hE.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +109 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ChQyfxJ3.js → check-Bs6_uQpm.js} +1 -1
- package/dist/{chevron-down-DJjo0jSV.js → chevron-down-so1rnGwF.js} +1 -1
- package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-CrKv0AuW.js} +1 -1
- package/dist/{clock-DHl_BIkU.js → clock-Cpx6GYpa.js} +1 -1
- package/dist/{cloud-VxYMtfXC.js → cloud-bHhCNRZa.js} +80 -74
- package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-DFBxEm5K.js} +3 -3
- package/dist/{cdn/chunks/de-CATfXDKV.js → de-DIAGP7yH.js} +0 -8
- package/dist/{dist-C0jo8wtG.js → dist-0RguD1vS.js} +1 -1
- package/dist/{dist-CNLAS2v2.js → dist-2-A7SaKm.js} +3 -3
- package/dist/{dist-UK-lbEBc.js → dist-74n2Mqc6.js} +1 -1
- package/dist/{dist-BzuC8o3y.js → dist-B3CcePtK.js} +3 -3
- package/dist/{dist-D8C6jIXM.js → dist-BejBMbBX.js} +3 -3
- package/dist/{dist-CIV3Brg-.js → dist-BufRk8ZY.js} +4 -6
- package/dist/{dist-DILjuzSv.js → dist-Bvje_Tqb.js} +1 -1
- package/dist/{dist-BDgf2G-V.js → dist-BxHa6kIT.js} +3 -3
- package/dist/{dist-CUpJmrjt.js → dist-CIK3BYgh.js} +1 -1
- package/dist/{dist-C8wMh_gi.js → dist-CMkZaqX1.js} +1 -1
- package/dist/{dist-BxP6TB0l.js → dist-CoaWXQ7N.js} +1 -1
- package/dist/{dist-D5lmdi1F.js → dist-D1YvgM6p.js} +1 -1
- package/dist/{dist-DYO-w_Jf.js → dist-DJ5YJLXn.js} +1 -1
- package/dist/{dist-DXaxGLsw.js → dist-DwEpKyry.js} +1 -1
- package/dist/{cdn/chunks/en-CwCAgYL5.js → en-nqIW8Q9W.js} +0 -8
- package/dist/{extensions-Mj2-D8uK.js → extensions-C810eSzv.js} +107 -104
- package/dist/{image-up-CPBCOMit.js → image-up-kMLE5GsI.js} +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/{info-DIY9mguM.js → info-xqRxLfNz.js} +1 -1
- package/dist/keys-BoYBr3PU.js +10 -0
- package/dist/{list-checks-CSCyu3fH.js → list-checks-C81htkBJ.js} +1 -1
- package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-C6cZPIum.js} +1 -1
- package/dist/{message-circle-D-umK_MU.js → message-circle-dqOBRe07.js} +1 -1
- package/dist/{cdn/chunks/pt-BR-D3Mg7AKe.js → pt-BR-DCNnLLx9.js} +0 -8
- package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-DCjNd6o0.js} +1 -1
- package/dist/{scan-line-wanvAFDr.js → scan-line-DXz0nZVJ.js} +1 -1
- package/dist/{send-BhbhbIFT.js → send-C4uH_WaI.js} +1 -1
- package/dist/{shield-check-CXPPMWth.js → shield-check-B3U68ssA.js} +1 -1
- package/dist/{sparkles-CrUN0KWY.js → sparkles-CsDweGUy.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CxwIlb7Y.js → styles-CBlNpqL9.js} +1031 -1074
- package/dist/templatical-editor.js +116 -107
- package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-BkKQePFp.js} +11 -11
- package/dist/{trash-2-BpY5BCLT.js → trash-2-BIOkaEz1.js} +1 -1
- package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-Bbgu6uUG.js} +1 -1
- package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-Bc99FWyR.js} +1 -1
- package/dist/{useCloudI18n-DKWJg6rJ.js → useCloudI18n-DiwsLi6z.js} +2 -2
- package/dist/{useEditorCore-CEkf_VWX.js → useEditorCore-7c1QpPlw.js} +717 -694
- package/dist/{useI18n-Besvmtxy.js → useI18n-DskZMfRJ.js} +2 -2
- package/dist/{useMergeTag-WNzaCpXR.js → useMergeTag-Co4xYwG6.js} +4 -4
- package/dist/usePopoverRoot-DYH_gX8o.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-D0Hg03Ub.js} +1289 -1288
- package/dist/{x-rcnxRG8Y.js → x-DWU6NCuE.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/CloudEditor-CrZk-OwQ.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-YOEe5mDE.js +0 -22
- package/dist/cdn/chunks/de-CATfXDKV.js.map +0 -1
- package/dist/cdn/chunks/draggable-BwWMFq33.js.map +0 -1
- package/dist/cdn/chunks/en-CwCAgYL5.js.map +0 -1
- package/dist/cdn/chunks/features-D-2kVhHY.js.map +0 -1
- package/dist/cdn/chunks/icons-fZoyKV_s.js.map +0 -1
- package/dist/cdn/chunks/media-library-CO2WOETY.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-D3Mg7AKe.js.map +0 -1
- package/dist/cdn/chunks/quality-BxPiS-wv.js.map +0 -1
- package/dist/cdn/chunks/renderer-CfHPFI5v.js.map +0 -1
- package/dist/cdn/chunks/styles-CVUvPdKD.js.map +0 -1
- package/dist/keys-BiQlvx51.js +0 -10
- package/dist/usePopoverRoot-CKt956u-.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as e, L as t, X as n, Y as r, d as i, q as a } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { r as o, u as s } from "./dist-
|
|
1
|
+
import { J as e, L as t, X as n, Y as r, d as i, q as a } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
|
|
2
|
+
import { r as o, u as s } from "./dist-BufRk8ZY.js";
|
|
3
3
|
//#region ../core/dist/cloud/index.js
|
|
4
4
|
var c = class e {
|
|
5
5
|
static DEFAULT_BASE_URL = "https://templatical.com";
|
|
@@ -150,10 +150,10 @@ var u = "/api/v1/projects/{project}/tenants/{tenant}", d = `${u}/templates/{temp
|
|
|
150
150
|
"savedModules.update": `${h}/{savedModule}`,
|
|
151
151
|
"savedModules.destroy": `${h}/{savedModule}`
|
|
152
152
|
}, _ = class {
|
|
153
|
+
authManager;
|
|
153
154
|
constructor(e) {
|
|
154
155
|
this.authManager = e;
|
|
155
156
|
}
|
|
156
|
-
authManager;
|
|
157
157
|
get projectId() {
|
|
158
158
|
return this.authManager.projectId;
|
|
159
159
|
}
|
|
@@ -431,7 +431,10 @@ function b(e, t) {
|
|
|
431
431
|
break;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function x(
|
|
434
|
+
function x(e) {
|
|
435
|
+
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
436
|
+
}
|
|
437
|
+
function S(t) {
|
|
435
438
|
let n = new _(t.authManager), a = e({
|
|
436
439
|
template: null,
|
|
437
440
|
content: s(t.defaultFontFamily, t.templateDefaults),
|
|
@@ -500,18 +503,18 @@ function x(t) {
|
|
|
500
503
|
function b(e) {
|
|
501
504
|
a.previewMode = e, e && (a.selectedBlockId = null);
|
|
502
505
|
}
|
|
503
|
-
function
|
|
506
|
+
function S(e, t) {
|
|
504
507
|
if (p(e)) return;
|
|
505
508
|
let n = d(a.content.blocks, e);
|
|
506
509
|
n && (Object.assign(n, t), a.isDirty = !0);
|
|
507
510
|
}
|
|
508
|
-
function
|
|
511
|
+
function C(e) {
|
|
509
512
|
a.content.settings = {
|
|
510
513
|
...a.content.settings,
|
|
511
514
|
...e
|
|
512
515
|
}, a.isDirty = !0;
|
|
513
516
|
}
|
|
514
|
-
function
|
|
517
|
+
function w(e, t, n = 0, r) {
|
|
515
518
|
if (t) {
|
|
516
519
|
let i = d(a.content.blocks, t);
|
|
517
520
|
if (i && i.type === "section") {
|
|
@@ -522,7 +525,7 @@ function x(t) {
|
|
|
522
525
|
} else r !== void 0 && r < a.content.blocks.length ? a.content.blocks.splice(r, 0, e) : a.content.blocks.push(e);
|
|
523
526
|
a.isDirty = !0;
|
|
524
527
|
}
|
|
525
|
-
function
|
|
528
|
+
function T(e) {
|
|
526
529
|
if (p(e)) return;
|
|
527
530
|
let t = f(a.content.blocks, e);
|
|
528
531
|
if (t) {
|
|
@@ -530,19 +533,21 @@ function x(t) {
|
|
|
530
533
|
n !== -1 && (t.blocks.splice(n, 1), a.selectedBlockId === e && (a.selectedBlockId = null), a.isDirty = !0);
|
|
531
534
|
}
|
|
532
535
|
}
|
|
533
|
-
function
|
|
536
|
+
function E(e, t, n, r = 0) {
|
|
534
537
|
let i = f(a.content.blocks, e);
|
|
535
538
|
if (!i) return;
|
|
536
539
|
let o = i.blocks.findIndex((t) => t.id === e);
|
|
537
540
|
if (o === -1) return;
|
|
538
|
-
let
|
|
541
|
+
let s;
|
|
539
542
|
if (n) {
|
|
540
543
|
let e = d(a.content.blocks, n);
|
|
541
|
-
e
|
|
542
|
-
|
|
543
|
-
|
|
544
|
+
if (!e || e.type !== "section" || r < 0 || r >= x(e.columns)) return;
|
|
545
|
+
e.children[r] = e.children[r] || [], s = e.children[r];
|
|
546
|
+
} else s = a.content.blocks;
|
|
547
|
+
let [c] = i.blocks.splice(o, 1);
|
|
548
|
+
s.splice(t, 0, c), a.isDirty = !0;
|
|
544
549
|
}
|
|
545
|
-
async function
|
|
550
|
+
async function D(e) {
|
|
546
551
|
a.isLoading = !0;
|
|
547
552
|
try {
|
|
548
553
|
e && (a.content = e);
|
|
@@ -554,7 +559,7 @@ function x(t) {
|
|
|
554
559
|
a.isLoading = !1;
|
|
555
560
|
}
|
|
556
561
|
}
|
|
557
|
-
async function
|
|
562
|
+
async function O(e) {
|
|
558
563
|
a.isLoading = !0;
|
|
559
564
|
try {
|
|
560
565
|
let t = await n.getTemplate(e);
|
|
@@ -565,7 +570,7 @@ function x(t) {
|
|
|
565
570
|
a.isLoading = !1;
|
|
566
571
|
}
|
|
567
572
|
}
|
|
568
|
-
async function
|
|
573
|
+
async function k() {
|
|
569
574
|
if (!a.template?.id) throw new o("No template loaded. Call create() or load() before saving.");
|
|
570
575
|
a.isSaving = !0;
|
|
571
576
|
try {
|
|
@@ -577,20 +582,20 @@ function x(t) {
|
|
|
577
582
|
a.isSaving = !1;
|
|
578
583
|
}
|
|
579
584
|
}
|
|
580
|
-
async function
|
|
585
|
+
async function A() {
|
|
581
586
|
if (a.template?.id) try {
|
|
582
587
|
await n.createSnapshot(a.template.id, a.content);
|
|
583
588
|
} catch (e) {
|
|
584
589
|
throw t.onError?.(e), e;
|
|
585
590
|
}
|
|
586
591
|
}
|
|
587
|
-
function
|
|
592
|
+
function j() {
|
|
588
593
|
return a.template?.id !== void 0;
|
|
589
594
|
}
|
|
590
|
-
function
|
|
595
|
+
function M() {
|
|
591
596
|
a.isDirty = !0;
|
|
592
597
|
}
|
|
593
|
-
function
|
|
598
|
+
function N(e) {
|
|
594
599
|
let t = f(a.content.blocks, e);
|
|
595
600
|
if (!t) return null;
|
|
596
601
|
let n = t.blocks.findIndex((t) => t.id === e);
|
|
@@ -606,31 +611,31 @@ function x(t) {
|
|
|
606
611
|
selectedBlock: l,
|
|
607
612
|
savedBlockIds: u,
|
|
608
613
|
isBlockLocked: p,
|
|
609
|
-
findBlockLocation:
|
|
614
|
+
findBlockLocation: N,
|
|
610
615
|
setContent: m,
|
|
611
616
|
selectBlock: h,
|
|
612
617
|
setViewport: g,
|
|
613
618
|
setDarkMode: v,
|
|
614
619
|
setUiTheme: y,
|
|
615
620
|
setPreviewMode: b,
|
|
616
|
-
updateBlock:
|
|
617
|
-
updateSettings:
|
|
618
|
-
addBlock:
|
|
619
|
-
removeBlock:
|
|
620
|
-
moveBlock:
|
|
621
|
-
create:
|
|
622
|
-
load:
|
|
623
|
-
save:
|
|
624
|
-
createSnapshot:
|
|
625
|
-
hasTemplate:
|
|
626
|
-
markDirty:
|
|
621
|
+
updateBlock: S,
|
|
622
|
+
updateSettings: C,
|
|
623
|
+
addBlock: w,
|
|
624
|
+
removeBlock: T,
|
|
625
|
+
moveBlock: E,
|
|
626
|
+
create: D,
|
|
627
|
+
load: O,
|
|
628
|
+
save: k,
|
|
629
|
+
createSnapshot: A,
|
|
630
|
+
hasTemplate: j,
|
|
631
|
+
markDirty: M
|
|
627
632
|
};
|
|
628
633
|
}
|
|
629
|
-
var
|
|
630
|
-
function
|
|
631
|
-
return `msg_${Date.now()}_${++
|
|
634
|
+
var C = 0;
|
|
635
|
+
function w() {
|
|
636
|
+
return `msg_${Date.now()}_${++C}`;
|
|
632
637
|
}
|
|
633
|
-
function
|
|
638
|
+
function T(e) {
|
|
634
639
|
let { authManager: t, getTemplateId: r, onApply: i, onError: a } = e, o = n([]), s = n(!1), c = n(!1), u = n(null), d = n(null), f = n(null), p = n(null), m = n(null), h = n(null), _ = n(!1), v = n([]), y = n(!1);
|
|
635
640
|
function b(e, t) {
|
|
636
641
|
let n = o.value.findIndex((t) => t.id === e);
|
|
@@ -720,18 +725,18 @@ function w(e) {
|
|
|
720
725
|
}
|
|
721
726
|
}
|
|
722
727
|
}
|
|
723
|
-
async function
|
|
728
|
+
async function C(e, n, c) {
|
|
724
729
|
let y = r();
|
|
725
730
|
if (!y) throw Error("Template must be saved before using AI generation");
|
|
726
731
|
s.value = !0, u.value = null, d.value = null, v.value = [];
|
|
727
|
-
let x =
|
|
732
|
+
let x = w();
|
|
728
733
|
o.value = [...o.value, {
|
|
729
734
|
id: x,
|
|
730
735
|
role: "user",
|
|
731
736
|
content: e,
|
|
732
737
|
timestamp: Date.now()
|
|
733
738
|
}];
|
|
734
|
-
let S =
|
|
739
|
+
let S = w();
|
|
735
740
|
o.value = [...o.value, {
|
|
736
741
|
id: S,
|
|
737
742
|
role: "assistant",
|
|
@@ -813,14 +818,14 @@ function w(e) {
|
|
|
813
818
|
failedPrompt: d,
|
|
814
819
|
suggestions: v,
|
|
815
820
|
isLoadingSuggestions: y,
|
|
816
|
-
sendPrompt:
|
|
821
|
+
sendPrompt: C,
|
|
817
822
|
toggleLastRevert: T,
|
|
818
823
|
loadConversation: x,
|
|
819
824
|
loadSuggestions: S,
|
|
820
825
|
clearChat: E
|
|
821
826
|
};
|
|
822
827
|
}
|
|
823
|
-
function
|
|
828
|
+
function E(e) {
|
|
824
829
|
function t(t) {
|
|
825
830
|
return e === !1 ? !1 : e?.[t] !== !1;
|
|
826
831
|
}
|
|
@@ -829,7 +834,7 @@ function T(e) {
|
|
|
829
834
|
hasAnyMenuFeature: i(() => t("chat") || t("scoring") || t("designToTemplate"))
|
|
830
835
|
};
|
|
831
836
|
}
|
|
832
|
-
function
|
|
837
|
+
function D(e) {
|
|
833
838
|
let { authManager: t, getTemplateId: r } = e, i = n(!1), a = n(null), o = n(null), s = n(null), c = n(""), u = n(null);
|
|
834
839
|
async function d(e, n) {
|
|
835
840
|
let s = r();
|
|
@@ -972,7 +977,7 @@ function E(e) {
|
|
|
972
977
|
reset: m
|
|
973
978
|
};
|
|
974
979
|
}
|
|
975
|
-
function
|
|
980
|
+
function O(e) {
|
|
976
981
|
let { authManager: t, getTemplateId: r, onApply: i, onError: a } = e, o = n(!1), s = n(null);
|
|
977
982
|
async function c(e) {
|
|
978
983
|
let n = r();
|
|
@@ -1033,7 +1038,7 @@ function D(e) {
|
|
|
1033
1038
|
reset: u
|
|
1034
1039
|
};
|
|
1035
1040
|
}
|
|
1036
|
-
function
|
|
1041
|
+
function k(e) {
|
|
1037
1042
|
let { authManager: t, getTemplateId: r, getSocketId: a, onComment: o, onError: s, hasCommentingFeature: c } = e, l = new _(t), u = n([]), d = n(!1), f = n(!1), p = i(() => (c?.() ?? !1) && t.userConfig !== null), m = i(() => {
|
|
1038
1043
|
let e = 0;
|
|
1039
1044
|
for (let t of u.value) e += 1 + (t.replies?.length ?? 0);
|
|
@@ -1231,17 +1236,17 @@ function O(e) {
|
|
|
1231
1236
|
applyRemoteDelete: k
|
|
1232
1237
|
};
|
|
1233
1238
|
}
|
|
1234
|
-
function
|
|
1239
|
+
function A(e) {
|
|
1235
1240
|
let { comments: n, channel: r } = e;
|
|
1236
1241
|
t(r, (e, t) => {
|
|
1237
1242
|
t && t.unbind("comment-broadcast"), e && e.bind("comment-broadcast", (e) => {
|
|
1238
|
-
|
|
1243
|
+
j(n, e);
|
|
1239
1244
|
});
|
|
1240
1245
|
}), a(() => {
|
|
1241
1246
|
r.value?.unbind("comment-broadcast");
|
|
1242
1247
|
});
|
|
1243
1248
|
}
|
|
1244
|
-
function
|
|
1249
|
+
function j(e, t) {
|
|
1245
1250
|
switch (t.action) {
|
|
1246
1251
|
case "comment_created":
|
|
1247
1252
|
e.applyRemoteCreate(t.comment);
|
|
@@ -1258,7 +1263,7 @@ function A(e, t) {
|
|
|
1258
1263
|
break;
|
|
1259
1264
|
}
|
|
1260
1265
|
}
|
|
1261
|
-
var
|
|
1266
|
+
var M = [
|
|
1262
1267
|
"pusher:member_added",
|
|
1263
1268
|
"pusher:member_removed",
|
|
1264
1269
|
"client-block_locked",
|
|
@@ -1266,10 +1271,10 @@ var j = [
|
|
|
1266
1271
|
"client-operation",
|
|
1267
1272
|
"mcp-operation"
|
|
1268
1273
|
];
|
|
1269
|
-
function
|
|
1270
|
-
for (let t of
|
|
1274
|
+
function N(e) {
|
|
1275
|
+
for (let t of M) e.unbind(t);
|
|
1271
1276
|
}
|
|
1272
|
-
var
|
|
1277
|
+
var P = [
|
|
1273
1278
|
"#3b82f6",
|
|
1274
1279
|
"#ef4444",
|
|
1275
1280
|
"#10b981",
|
|
@@ -1281,10 +1286,10 @@ var N = [
|
|
|
1281
1286
|
"#6366f1",
|
|
1282
1287
|
"#14b8a6"
|
|
1283
1288
|
];
|
|
1284
|
-
function
|
|
1289
|
+
function F(e) {
|
|
1285
1290
|
let { authManager: r, editor: o, channel: s } = e, c = n([]), l = n(/* @__PURE__ */ new Map()), u = 0, d = !1, f = i(() => r.userConfig?.id ?? "");
|
|
1286
1291
|
function p() {
|
|
1287
|
-
let e =
|
|
1292
|
+
let e = P[u % P.length];
|
|
1288
1293
|
return u++, e;
|
|
1289
1294
|
}
|
|
1290
1295
|
function m(e) {
|
|
@@ -1346,7 +1351,7 @@ function P(e) {
|
|
|
1346
1351
|
return t(() => o.state.selectedBlockId, (e, t) => {
|
|
1347
1352
|
d || (t && S(t), e && x(e));
|
|
1348
1353
|
}), t(s, (t, n) => {
|
|
1349
|
-
if (n &&
|
|
1354
|
+
if (n && N(n), !t) {
|
|
1350
1355
|
c.value = [], l.value = /* @__PURE__ */ new Map(), u = 0;
|
|
1351
1356
|
return;
|
|
1352
1357
|
}
|
|
@@ -1378,7 +1383,7 @@ function P(e) {
|
|
|
1378
1383
|
v(e);
|
|
1379
1384
|
});
|
|
1380
1385
|
}), a(() => {
|
|
1381
|
-
s.value &&
|
|
1386
|
+
s.value && N(s.value);
|
|
1382
1387
|
}), {
|
|
1383
1388
|
collaborators: c,
|
|
1384
1389
|
lockedBlocks: l,
|
|
@@ -1386,15 +1391,16 @@ function P(e) {
|
|
|
1386
1391
|
_isProcessingRemoteOperation: () => d
|
|
1387
1392
|
};
|
|
1388
1393
|
}
|
|
1389
|
-
function
|
|
1394
|
+
function I(e, t) {
|
|
1390
1395
|
let n = e.addBlock, r = e.updateBlock, i = e.removeBlock, a = e.moveBlock, o = e.updateSettings, s = e.setContent;
|
|
1391
|
-
e.addBlock = (e, r, i) => {
|
|
1392
|
-
n(e, r, i), t._broadcastOperation({
|
|
1396
|
+
e.addBlock = (e, r, i, a) => {
|
|
1397
|
+
n(e, r, i, a), t._broadcastOperation({
|
|
1393
1398
|
operation: "add_block",
|
|
1394
1399
|
data: {
|
|
1395
1400
|
block: e,
|
|
1396
1401
|
section_id: r,
|
|
1397
|
-
column_index: i
|
|
1402
|
+
column_index: i,
|
|
1403
|
+
index: a
|
|
1398
1404
|
},
|
|
1399
1405
|
timestamp: Date.now()
|
|
1400
1406
|
});
|
|
@@ -1438,7 +1444,7 @@ function F(e, t) {
|
|
|
1438
1444
|
});
|
|
1439
1445
|
};
|
|
1440
1446
|
}
|
|
1441
|
-
function
|
|
1447
|
+
function L(e) {
|
|
1442
1448
|
let { authManager: t, onError: r } = e, i = n(null), a = n(!1), o = null, s = null;
|
|
1443
1449
|
async function c(e, n) {
|
|
1444
1450
|
if (o) return;
|
|
@@ -1468,7 +1474,7 @@ function I(e) {
|
|
|
1468
1474
|
getSocketId: u
|
|
1469
1475
|
};
|
|
1470
1476
|
}
|
|
1471
|
-
function
|
|
1477
|
+
function R(e) {
|
|
1472
1478
|
let t = new _(e.authManager), r = n([]), i = n(!1);
|
|
1473
1479
|
async function a(n) {
|
|
1474
1480
|
i.value = !0;
|
|
@@ -1515,7 +1521,7 @@ function L(e) {
|
|
|
1515
1521
|
deleteModule: c
|
|
1516
1522
|
};
|
|
1517
1523
|
}
|
|
1518
|
-
function
|
|
1524
|
+
function z(e) {
|
|
1519
1525
|
let t = new _(e.authManager), r = n([]), i = n(!1), a = n(!1);
|
|
1520
1526
|
async function o() {
|
|
1521
1527
|
i.value = !0;
|
|
@@ -1546,7 +1552,7 @@ function R(e) {
|
|
|
1546
1552
|
restoreSnapshot: s
|
|
1547
1553
|
};
|
|
1548
1554
|
}
|
|
1549
|
-
function
|
|
1555
|
+
function B(e) {
|
|
1550
1556
|
let { authManager: r, getTemplateId: a, save: o, exportHtml: s, onError: c, isAuthReady: l, onBeforeTestEmail: u } = e, d = new _(r), f = n(!1), p = n(null), m = n(null);
|
|
1551
1557
|
l && t(l, (e) => {
|
|
1552
1558
|
e && (m.value = r.testEmailConfig);
|
|
@@ -1581,7 +1587,7 @@ function z(e) {
|
|
|
1581
1587
|
sendTestEmail: v
|
|
1582
1588
|
};
|
|
1583
1589
|
}
|
|
1584
|
-
function
|
|
1590
|
+
function V(e) {
|
|
1585
1591
|
let { authManager: t, getFontsConfig: n, canUseCustomFonts: r } = e, i = new _(t);
|
|
1586
1592
|
function a() {
|
|
1587
1593
|
let e = n?.();
|
|
@@ -1606,7 +1612,7 @@ function B(e) {
|
|
|
1606
1612
|
getMjmlSource: s
|
|
1607
1613
|
};
|
|
1608
1614
|
}
|
|
1609
|
-
function
|
|
1615
|
+
function H(e) {
|
|
1610
1616
|
let { authManager: t, onError: r } = e, a = n(null), o = n(!1), s = new _(t), c = i(() => a.value?.features ?? null);
|
|
1611
1617
|
function l(e) {
|
|
1612
1618
|
return a.value?.features[e] ?? !1;
|
|
@@ -1631,11 +1637,11 @@ function V(e) {
|
|
|
1631
1637
|
fetchConfig: u
|
|
1632
1638
|
};
|
|
1633
1639
|
}
|
|
1634
|
-
var
|
|
1635
|
-
function
|
|
1640
|
+
var U = 5e3;
|
|
1641
|
+
function W(e) {
|
|
1636
1642
|
return e.authManager ? e.authManager.resolveUrl(g.health) : `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}${g.health}`;
|
|
1637
1643
|
}
|
|
1638
|
-
async function
|
|
1644
|
+
async function G(e, t) {
|
|
1639
1645
|
let n = performance.now();
|
|
1640
1646
|
try {
|
|
1641
1647
|
let r = t ? await t.authenticatedFetch(g.health, {
|
|
@@ -1687,7 +1693,7 @@ async function W(e, t) {
|
|
|
1687
1693
|
};
|
|
1688
1694
|
}
|
|
1689
1695
|
}
|
|
1690
|
-
async function
|
|
1696
|
+
async function K(e) {
|
|
1691
1697
|
if (!e?.host || !e?.app_key) return {
|
|
1692
1698
|
ok: !1,
|
|
1693
1699
|
error: "WebSocket configuration not available"
|
|
@@ -1703,7 +1709,7 @@ async function G(e) {
|
|
|
1703
1709
|
ok: !1,
|
|
1704
1710
|
error: "WebSocket connection timed out"
|
|
1705
1711
|
});
|
|
1706
|
-
},
|
|
1712
|
+
}, U);
|
|
1707
1713
|
try {
|
|
1708
1714
|
n = new WebSocket(t);
|
|
1709
1715
|
} catch (t) {
|
|
@@ -1723,8 +1729,8 @@ async function G(e) {
|
|
|
1723
1729
|
};
|
|
1724
1730
|
});
|
|
1725
1731
|
}
|
|
1726
|
-
async function
|
|
1727
|
-
let t = await W(
|
|
1732
|
+
async function q(e = {}) {
|
|
1733
|
+
let t = await G(W(e), e.authManager), n = await K(t.wsConfig);
|
|
1728
1734
|
return {
|
|
1729
1735
|
api: t.api,
|
|
1730
1736
|
websocket: n,
|
|
@@ -1732,7 +1738,7 @@ async function K(e = {}) {
|
|
|
1732
1738
|
overall: t.api.ok && t.auth.ok
|
|
1733
1739
|
};
|
|
1734
1740
|
}
|
|
1735
|
-
function
|
|
1741
|
+
function J(e) {
|
|
1736
1742
|
let { editor: n, channel: r, onOperation: i } = e;
|
|
1737
1743
|
t(r, (e, t) => {
|
|
1738
1744
|
t && t.unbind("mcp-operation"), e && e.bind("mcp-operation", (e) => {
|
|
@@ -1741,4 +1747,4 @@ function q(e) {
|
|
|
1741
1747
|
});
|
|
1742
1748
|
}
|
|
1743
1749
|
//#endregion
|
|
1744
|
-
export {
|
|
1750
|
+
export { D as _, E as a, A as c, S as d, V as f, z as g, R as h, T as i, k as l, H as m, q as n, F as o, J as p, v as r, I as s, c as t, O as u, B as v, L as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as e, d as t, w as n } from "./vue.runtime.esm-bundler-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
1
|
+
import { S as e, d as t, w as n } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.17.0_vue@3.5.35_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 n(l, {});
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.
|
|
21
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.17.0_vue@3.5.35_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
22
22
|
var d = ({ name: n, iconNode: o, absoluteStrokeWidth: l, "absolute-stroke-width": d, strokeWidth: f, "stroke-width": p, size: m, color: h, ...g }, { slots: _ }) => {
|
|
23
23
|
let { size: v, color: y, strokeWidth: b = 2, absoluteStrokeWidth: x = !1, class: S = "" } = u(), C = t(() => {
|
|
24
24
|
let e = r(l) || r(d) || l === !0 || d === !0 || x === !0, t = f || p || b || c["stroke-width"];
|
|
@@ -12,7 +12,6 @@ var e = {
|
|
|
12
12
|
viewport: {
|
|
13
13
|
label: "Ansichtsgröße",
|
|
14
14
|
desktop: "Desktop",
|
|
15
|
-
tablet: "Tablet",
|
|
16
15
|
mobile: "Mobil"
|
|
17
16
|
},
|
|
18
17
|
darkMode: {
|
|
@@ -321,17 +320,12 @@ var e = {
|
|
|
321
320
|
blockSettings: {
|
|
322
321
|
spacing: "Abstände",
|
|
323
322
|
padding: "Innenabstand",
|
|
324
|
-
margin: "Außenabstand",
|
|
325
323
|
background: "Hintergrund",
|
|
326
324
|
color: "Farbe",
|
|
327
325
|
display: "Anzeige",
|
|
328
326
|
showOnDesktop: "Auf Desktop anzeigen",
|
|
329
|
-
showOnTablet: "Auf Tablet anzeigen",
|
|
330
327
|
showOnMobile: "Auf Mobilgerät anzeigen",
|
|
331
328
|
hiddenOnDevice: "Ausgeblendet auf {device}",
|
|
332
|
-
customCss: "Benutzerdefiniertes CSS",
|
|
333
|
-
css: "CSS",
|
|
334
|
-
cssPlaceholder: "/* Benutzerdefinierte Stile */",
|
|
335
329
|
displayCondition: "Anzeigebedingung",
|
|
336
330
|
selectCondition: "Bedingung auswählen",
|
|
337
331
|
removeCondition: "Bedingung entfernen",
|
|
@@ -529,5 +523,3 @@ var e = {
|
|
|
529
523
|
};
|
|
530
524
|
//#endregion
|
|
531
525
|
export { e as default };
|
|
532
|
-
|
|
533
|
-
//# sourceMappingURL=de-CATfXDKV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as e, c as t, dt as n, i as r } from "./dist-
|
|
1
|
+
import { Gt as e, c as t, dt as n, i as r } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-text-style/dist/index.js
|
|
3
3
|
var i = 20, a = (e, t = 0) => {
|
|
4
4
|
let n = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.
|
|
1
|
+
import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
3
|
function g(e, t) {
|
|
4
4
|
return s() ? (d(e, t), !0) : !1;
|
|
5
5
|
}
|
|
@@ -131,7 +131,7 @@ function B(e, t, n) {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.
|
|
134
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
135
135
|
var V = y ? window : void 0;
|
|
136
136
|
y && window.document, y && window.navigator, y && window.location;
|
|
137
137
|
function H(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./dist-
|
|
1
|
+
import { i as e } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-text-align/dist/index.js
|
|
3
3
|
var t = e.create({
|
|
4
4
|
name: "textAlign",
|
|
@@ -64,7 +64,7 @@ e.prototype = {
|
|
|
64
64
|
return new e(n);
|
|
65
65
|
};
|
|
66
66
|
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/prosemirror-model@1.25.
|
|
67
|
+
//#region ../../node_modules/.pnpm/prosemirror-model@1.25.7/node_modules/prosemirror-model/dist/index.js
|
|
68
68
|
function t(e, n, r) {
|
|
69
69
|
for (let i = 0;; i++) {
|
|
70
70
|
if (i == e.childCount || i == n.childCount) return e.childCount == n.childCount ? null : r;
|
|
@@ -1793,8 +1793,8 @@ function $e(e) {
|
|
|
1793
1793
|
return n(e), t;
|
|
1794
1794
|
}
|
|
1795
1795
|
function et(e, t, n, r) {
|
|
1796
|
-
if (t.nodeType ==
|
|
1797
|
-
if (t.dom && t.dom.nodeType ==
|
|
1796
|
+
if (t.nodeType == 1) return { dom: t };
|
|
1797
|
+
if (t.dom && t.dom.nodeType == 1) return t;
|
|
1798
1798
|
let i = t[0], a;
|
|
1799
1799
|
if (typeof i != "string") throw RangeError("Invalid array passed to renderSpec");
|
|
1800
1800
|
if (r && (a = Qe(r)) && a.indexOf(t) > -1) throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, E as r, H as i, J as a, K as o, O as ee, Q as te, R as s, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as W, a as Oe, an as ke, at as Ae, b as je, bt as Me, c as Ne, cn as Pe, ct as Fe, d as Ie, dn as Le, dt as Re, en as ze, et as Be, f as G, fn as Ve, ft as He, g as Ue, gt as We, h as Ge, ht as Ke, i as qe, in as Je, it as Ye, j as Xe, jt as Ze, k as Qe, kt as $e, l as K, ln as et, lt as tt, m as nt, mn as rt, mt as it, n as at, nn as ot, nt as st, o as ct, on as lt, ot as ut, p as dt, pn as ft, pt, q as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vt as kt, w as At, wt as jt, x as Mt, xt as Nt, y as Pt, yt as Ft, z as It, zt as Lt } from "./dist-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.6_@floating-ui+dom@1.7.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@
|
|
2
|
+
import { $ as t, D as n, E as r, H as i, J as a, K as o, O as ee, Q as te, R as s, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
|
|
3
|
+
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as p, D as m, Dt as h, E as g, Et as _, F as v, Ft as y, G as b, Gt as x, H as S, Ht as C, I as w, It as T, J as E, Jt as D, K as O, Kt as k, L as A, Lt as j, M, Mt as N, N as P, Nt as F, O as I, Ot as L, P as R, Pt as z, Q as B, Qt as V, R as H, Rt as U, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, V as _e, Vt as ve, W as ye, Wt as be, X as xe, Xt as Se, Y as Ce, Yt as we, Z as Te, Zt as Ee, _ as De, _t as W, a as Oe, an as ke, at as Ae, b as je, bt as Me, c as Ne, cn as Pe, ct as Fe, d as Ie, dn as Le, dt as Re, en as ze, et as Be, f as G, fn as Ve, ft as He, g as Ue, gt as We, h as Ge, ht as Ke, i as qe, in as Je, it as Ye, j as Xe, jt as Ze, k as Qe, kt as $e, l as K, ln as et, lt as tt, m as nt, mn as rt, mt as it, n as at, nn as ot, nt as st, o as ct, on as lt, ot as ut, p as dt, pn as ft, pt, q as mt, qt as ht, r as gt, rn as _t, rt as vt, s as yt, sn as bt, st as xt, t as St, tn as Ct, tt as wt, u as Tt, un as Et, ut as Dt, v as Ot, vt as kt, w as At, wt as jt, x as Mt, xt as Nt, y as Pt, yt as Ft, z as It, zt as Lt } from "./dist-B3CcePtK.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.23.6_@floating-ui+dom@1.7.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tip_fe3bebbdbeb5c59dbf1eecc92b0aac8a/node_modules/@tiptap/vue-3/dist/index.js
|
|
5
5
|
var Rt = /* @__PURE__ */ e({
|
|
6
6
|
CommandManager: () => St,
|
|
7
7
|
Editor: () => J,
|
|
@@ -124,10 +124,7 @@ function x(e = 0) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function S(e = 10) {
|
|
127
|
-
return {
|
|
128
|
-
padding: x(e),
|
|
129
|
-
margin: x(0)
|
|
130
|
-
};
|
|
127
|
+
return { padding: x(e) };
|
|
131
128
|
}
|
|
132
129
|
function C(e = {}) {
|
|
133
130
|
return y({
|
|
@@ -252,12 +249,13 @@ function L(e) {
|
|
|
252
249
|
function R(e) {
|
|
253
250
|
let t = {};
|
|
254
251
|
for (let n of e.fields) t[n.key] = L(n);
|
|
252
|
+
let n = y(S(), e.defaultStyles);
|
|
255
253
|
return {
|
|
256
254
|
id: b(),
|
|
257
255
|
type: "custom",
|
|
258
256
|
customType: e.type,
|
|
259
257
|
fieldValues: t,
|
|
260
|
-
styles:
|
|
258
|
+
styles: n,
|
|
261
259
|
...e.dataSource ? { dataSourceFetched: !1 } : {}
|
|
262
260
|
};
|
|
263
261
|
}
|
|
@@ -377,10 +375,10 @@ function $(e, t, n) {
|
|
|
377
375
|
return i;
|
|
378
376
|
}
|
|
379
377
|
var ee = class extends Error {
|
|
378
|
+
statusCode;
|
|
380
379
|
constructor(e, t) {
|
|
381
380
|
super(e), this.statusCode = t, this.name = "SdkError";
|
|
382
381
|
}
|
|
383
|
-
statusCode;
|
|
384
382
|
get isNotFound() {
|
|
385
383
|
return this.statusCode === 404;
|
|
386
384
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color as e } from "./dist-
|
|
1
|
+
import { Color as e } from "./dist-0RguD1vS.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-color@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-color/dist/index.js
|
|
3
3
|
var t = e;
|
|
4
4
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Cn as e, Ct as t, En as n, Gt as r, Ht as i, Jt as a, Mt as o, Nt as s, Qt as c, Sn as l, St as u, Tn as d, Ut as f, X as p, _ as m, _n as h, at as ee, bn as g, c as _, fn as v, gn as y, hn as te, i as b, it as ne, jt as x, mn as S, nn as re, nt as ie, u as C, v as ae, vn as w, wn as oe, xn as T, yn as E } from "./dist-
|
|
2
|
-
import { Link as se } from "./dist-
|
|
3
|
-
import { Underline as ce } from "./dist-
|
|
1
|
+
import { Cn as e, Ct as t, En as n, Gt as r, Ht as i, Jt as a, Mt as o, Nt as s, Qt as c, Sn as l, St as u, Tn as d, Ut as f, X as p, _ as m, _n as h, at as ee, bn as g, c as _, fn as v, gn as y, hn as te, i as b, it as ne, jt as x, mn as S, nn as re, nt as ie, u as C, v as ae, vn as w, wn as oe, xn as T, yn as E } from "./dist-B3CcePtK.js";
|
|
2
|
+
import { Link as se } from "./dist-DwEpKyry.js";
|
|
3
|
+
import { Underline as ce } from "./dist-DJ5YJLXn.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tiptap+core@3.23.6_@tiptap+pm@3.23.6/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
|
|
5
5
|
var D = (e, t) => {
|
|
6
6
|
if (e === "slot") return 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as e, c as t } from "./dist-
|
|
1
|
+
import { Gt as e, c as t } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "superscript",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as e, c as t } from "./dist-
|
|
1
|
+
import { Gt as e, c as t } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-subscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "subscript",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as e, Ht as t, Ut as n, c as r, dt as i } from "./dist-
|
|
1
|
+
import { Gt as e, Ht as t, Ut as n, c as r, dt as i } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-highlight/dist/index.js
|
|
3
3
|
var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, s = r.create({
|
|
4
4
|
name: "highlight",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FontFamily as e } from "./dist-
|
|
1
|
+
import { FontFamily as e } from "./dist-0RguD1vS.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-font-family/dist/index.js
|
|
3
3
|
var t = e;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gt as e, c as t } from "./dist-
|
|
1
|
+
import { Gt as e, c as t } from "./dist-B3CcePtK.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tiptap+extension-underline@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-underline/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "underline",
|