@templatical/editor 0.6.3 → 0.6.5
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/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
- package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
- package/dist/{CloudEditor-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
- package/dist/CommentsSidebar-BQROg36f.js +441 -0
- package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
- package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
- package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
- package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
- package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
- package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
- package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
- package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
- package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +122 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
- package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
- package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
- package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
- package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-CwJQsnSp.js +3173 -0
- package/dist/templatical-editor.js +99 -99
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
- package/dist/useEditorCore-DLd-5qMg.js +3784 -0
- package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
- package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
- package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
- package/package.json +8 -8
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/styles-DEXEkBvg.js +0 -3176
- package/dist/useEditorCore-C6ost42Q.js +0 -9342
- package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as y, T as b } from "./keys-
|
|
3
|
-
import { t as x } from "./useI18n-
|
|
4
|
-
import { t as S } from "./createLucideIcon-
|
|
5
|
-
import { t as C } from "./x-
|
|
1
|
+
import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { D as y, T as b } from "./keys-Bqs_0du9.js";
|
|
3
|
+
import { t as x } from "./useI18n-CgmQftNf.js";
|
|
4
|
+
import { t as S } from "./createLucideIcon-Di4mqmGn.js";
|
|
5
|
+
import { t as C } from "./x-Dlaenqta.js";
|
|
6
6
|
var w = S("bold", [["path", {
|
|
7
7
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
8
8
|
key: "mg9rjx"
|
|
@@ -40,9 +40,9 @@ var w = S("bold", [["path", {
|
|
|
40
40
|
}, A = ["aria-label"], j = { class: "tpl:p-5" }, M = { class: "tpl:mb-4 tpl:last:mb-0" }, N = {
|
|
41
41
|
for: "tpl-link-dialog-url",
|
|
42
42
|
class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
|
|
43
|
-
}, P = ["placeholder"], F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */
|
|
43
|
+
}, P = ["placeholder"], F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */ s({
|
|
44
44
|
__name: "RichTextLinkDialog",
|
|
45
|
-
props: /* @__PURE__ */
|
|
45
|
+
props: /* @__PURE__ */ i({
|
|
46
46
|
visible: { type: Boolean },
|
|
47
47
|
isEditingLink: { type: Boolean }
|
|
48
48
|
}, {
|
|
@@ -51,60 +51,60 @@ var w = S("bold", [["path", {
|
|
|
51
51
|
dialogRef: { required: !0 },
|
|
52
52
|
dialogRefModifiers: {}
|
|
53
53
|
}),
|
|
54
|
-
emits: /* @__PURE__ */
|
|
54
|
+
emits: /* @__PURE__ */ i([
|
|
55
55
|
"close",
|
|
56
56
|
"insert",
|
|
57
57
|
"remove",
|
|
58
58
|
"keydown"
|
|
59
59
|
], ["update:linkUrl", "update:dialogRef"]),
|
|
60
|
-
setup(
|
|
61
|
-
let
|
|
62
|
-
return (
|
|
60
|
+
setup(n, { emit: i }) {
|
|
61
|
+
let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, w = v(b, null), T = v(y, null), { t: E } = x();
|
|
62
|
+
return (r, i) => (e(), p(g, { to: "body" }, [n.visible ? (e(), u("div", {
|
|
63
63
|
key: 0,
|
|
64
64
|
"data-tpl-theme": m(T),
|
|
65
65
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
66
|
-
style:
|
|
67
|
-
onClick:
|
|
68
|
-
}, [
|
|
69
|
-
ref: (e) =>
|
|
66
|
+
style: f(m(w)),
|
|
67
|
+
onClick: i[6] ||= c((e) => S("close"), ["self"])
|
|
68
|
+
}, [l("div", {
|
|
69
|
+
ref: (e) => s.value = e,
|
|
70
70
|
role: "dialog",
|
|
71
71
|
"aria-modal": "true",
|
|
72
72
|
"aria-labelledby": "tpl-link-dialog-title",
|
|
73
73
|
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-lg"
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
l("div", O, [l("h4", k, h(n.isEditingLink ? m(E).linkDialog.editLink : m(E).linkDialog.insertLink), 1), l("button", {
|
|
76
76
|
type: "button",
|
|
77
77
|
"aria-label": m(E).linkDialog.cancel,
|
|
78
78
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
79
|
-
onClick:
|
|
80
|
-
}, [
|
|
79
|
+
onClick: i[0] ||= (e) => S("close")
|
|
80
|
+
}, [_(m(C), {
|
|
81
81
|
size: 16,
|
|
82
82
|
"stroke-width": 2
|
|
83
83
|
})], 8, A)]),
|
|
84
|
-
|
|
84
|
+
l("div", j, [l("div", M, [l("label", N, h(m(E).linkDialog.urlLabel), 1), t(l("input", {
|
|
85
85
|
id: "tpl-link-dialog-url",
|
|
86
|
-
"onUpdate:modelValue":
|
|
86
|
+
"onUpdate:modelValue": i[1] ||= (e) => a.value = e,
|
|
87
87
|
type: "url",
|
|
88
88
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
|
|
89
89
|
placeholder: m(E).linkDialog.urlPlaceholder,
|
|
90
90
|
autofocus: "",
|
|
91
|
-
onKeydown:
|
|
92
|
-
}, null, 40, P), [[
|
|
93
|
-
|
|
91
|
+
onKeydown: i[2] ||= (e) => S("keydown", e)
|
|
92
|
+
}, null, 40, P), [[o, a.value]])])]),
|
|
93
|
+
l("div", F, [n.isEditingLink ? (e(), u("button", {
|
|
94
94
|
key: 0,
|
|
95
95
|
type: "button",
|
|
96
96
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
97
|
-
onClick:
|
|
98
|
-
},
|
|
97
|
+
onClick: i[3] ||= (e) => S("remove")
|
|
98
|
+
}, h(m(E).linkDialog.removeLink), 1)) : d("", !0), l("div", I, [l("button", {
|
|
99
99
|
type: "button",
|
|
100
100
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
101
|
-
onClick:
|
|
102
|
-
},
|
|
101
|
+
onClick: i[4] ||= (e) => S("close")
|
|
102
|
+
}, h(m(E).linkDialog.cancel), 1), l("button", {
|
|
103
103
|
type: "button",
|
|
104
104
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-bg)]",
|
|
105
|
-
onClick:
|
|
106
|
-
},
|
|
107
|
-
], 512)], 12, D)) :
|
|
105
|
+
onClick: i[5] ||= (e) => S("insert")
|
|
106
|
+
}, h(n.isEditingLink ? m(E).linkDialog.updateLink : m(E).linkDialog.insertLink), 1)])])
|
|
107
|
+
], 512)], 12, D)) : d("", !0)]));
|
|
108
108
|
}
|
|
109
109
|
}), R = {
|
|
110
110
|
key: 0,
|
|
@@ -112,7 +112,7 @@ var w = S("bold", [["path", {
|
|
|
112
112
|
}, z = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, B = {
|
|
113
113
|
key: 1,
|
|
114
114
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
|
|
115
|
-
}, V = /* @__PURE__ */
|
|
115
|
+
}, V = /* @__PURE__ */ s({
|
|
116
116
|
__name: "RichTextEditorContent",
|
|
117
117
|
props: {
|
|
118
118
|
editor: {},
|
|
@@ -121,16 +121,16 @@ var w = S("bold", [["path", {
|
|
|
121
121
|
initError: {}
|
|
122
122
|
},
|
|
123
123
|
emits: ["retry"],
|
|
124
|
-
setup(
|
|
125
|
-
let
|
|
126
|
-
return (
|
|
124
|
+
setup(t, { emit: r }) {
|
|
125
|
+
let i = r, { t: o } = x();
|
|
126
|
+
return (r, s) => t.isLoading ? (e(), u("div", R, [l("div", z, h(m(o).errors.editorLoading), 1)])) : t.initError ? (e(), u("div", B, [a(h(m(o).errors.editorLoadFailed) + " ", 1), l("button", {
|
|
127
127
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
128
|
-
onClick: s[0] ||= (e) =>
|
|
129
|
-
},
|
|
128
|
+
onClick: s[0] ||= (e) => i("retry")
|
|
129
|
+
}, h(m(o).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), p(n(t.editorContent), {
|
|
130
130
|
key: 2,
|
|
131
|
-
editor:
|
|
131
|
+
editor: t.editor,
|
|
132
132
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
133
|
-
}, null, 8, ["editor"])) :
|
|
133
|
+
}, null, 8, ["editor"])) : d("", !0);
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { C as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as te } from "./loader-circle-
|
|
6
|
-
import { n as ne } from "./useCloudI18n-
|
|
7
|
-
import { t as C } from "./TplModal-
|
|
1
|
+
import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import "./useEditorCore-DLd-5qMg.js";
|
|
3
|
+
import { C as y, O as b, m as x } from "./keys-Bqs_0du9.js";
|
|
4
|
+
import { t as S } from "./useI18n-CgmQftNf.js";
|
|
5
|
+
import { t as te } from "./loader-circle-_9bP23op.js";
|
|
6
|
+
import { n as ne } from "./useCloudI18n-CL_AwWwi.js";
|
|
7
|
+
import { t as C } from "./TplModal-CINtyB6Y.js";
|
|
8
8
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var w = ["aria-busy"], T = {
|
|
10
10
|
id: "tpl-save-module-title",
|
|
@@ -20,27 +20,27 @@ var w = ["aria-busy"], T = {
|
|
|
20
20
|
}, P = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, F = ["disabled"], I = ["disabled"], L = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
23
|
-
}, re = { key: 1 }, R = /* @__PURE__ */
|
|
23
|
+
}, re = { key: 1 }, R = /* @__PURE__ */ c({
|
|
24
24
|
__name: "SaveModuleDialog",
|
|
25
25
|
props: {
|
|
26
26
|
visible: { type: Boolean },
|
|
27
27
|
preSelectedBlockId: {}
|
|
28
28
|
},
|
|
29
29
|
emits: ["close", "saved"],
|
|
30
|
-
setup(
|
|
31
|
-
let z =
|
|
30
|
+
setup(c, { emit: R }) {
|
|
31
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
|
|
32
32
|
function X(e, t) {
|
|
33
33
|
let n = e.type;
|
|
34
34
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
n(() => z.visible, (e) => {
|
|
37
37
|
e && (G.value = "", J.value = null, K.value = new Set(z.preSelectedBlockId ? [z.preSelectedBlockId] : []));
|
|
38
38
|
});
|
|
39
39
|
function ie(e) {
|
|
40
40
|
let t = new Set(K.value);
|
|
41
41
|
t.has(e) ? t.delete(e) : t.add(e), K.value = t;
|
|
42
42
|
}
|
|
43
|
-
let Z =
|
|
43
|
+
let Z = l(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
|
|
44
44
|
async function Q() {
|
|
45
45
|
if (Z.value) {
|
|
46
46
|
q.value = !0, J.value = null;
|
|
@@ -60,12 +60,12 @@ var w = ["aria-busy"], T = {
|
|
|
60
60
|
function ae(e) {
|
|
61
61
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
|
|
62
62
|
}
|
|
63
|
-
return (
|
|
64
|
-
visible:
|
|
63
|
+
return (n, i) => (e(), m(C, {
|
|
64
|
+
visible: c.visible,
|
|
65
65
|
onClose: $,
|
|
66
66
|
onKeydown: ae
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
68
|
+
default: v(() => [u("div", {
|
|
69
69
|
role: "dialog",
|
|
70
70
|
"aria-modal": "true",
|
|
71
71
|
"aria-busy": q.value,
|
|
@@ -76,44 +76,44 @@ var w = ["aria-busy"], T = {
|
|
|
76
76
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
77
77
|
}
|
|
78
78
|
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"onUpdate:modelValue":
|
|
79
|
+
u("h3", T, g(h(H).modules.saveAsModule), 1),
|
|
80
|
+
u("div", E, [u("label", D, g(h(H).modules.moduleName), 1), t(u("input", {
|
|
81
|
+
"onUpdate:modelValue": i[0] ||= (e) => G.value = e,
|
|
82
82
|
type: "text",
|
|
83
|
-
placeholder:
|
|
83
|
+
placeholder: h(H).modules.moduleNamePlaceholder,
|
|
84
84
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
85
85
|
disabled: q.value
|
|
86
|
-
}, null, 8, O), [[
|
|
87
|
-
|
|
88
|
-
key:
|
|
86
|
+
}, null, 8, O), [[o, G.value]])]),
|
|
87
|
+
u("div", k, [u("label", A, g(h(H).modules.selectBlocks), 1), u("div", j, [(e(!0), d(ee, null, r(Y.value, (t, n) => (e(), d("label", {
|
|
88
|
+
key: t.id,
|
|
89
89
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
|
|
90
|
-
style:
|
|
90
|
+
style: p({
|
|
91
91
|
color: "var(--tpl-text)",
|
|
92
|
-
backgroundColor: K.value.has(
|
|
92
|
+
backgroundColor: K.value.has(t.id) ? "var(--tpl-primary-light)" : "transparent"
|
|
93
93
|
})
|
|
94
|
-
}, [
|
|
94
|
+
}, [u("input", {
|
|
95
95
|
type: "checkbox",
|
|
96
|
-
checked: K.value.has(
|
|
96
|
+
checked: K.value.has(t.id),
|
|
97
97
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
98
98
|
disabled: q.value,
|
|
99
|
-
onChange: (
|
|
100
|
-
}, null, 40, M),
|
|
101
|
-
J.value ? (
|
|
102
|
-
|
|
99
|
+
onChange: (e) => ie(t.id)
|
|
100
|
+
}, null, 40, M), a(" " + g(X(t, n)), 1)], 4))), 128))])]),
|
|
101
|
+
J.value ? (e(), d("p", N, g(J.value), 1)) : f("", !0),
|
|
102
|
+
u("div", P, [u("button", {
|
|
103
103
|
type: "button",
|
|
104
|
-
class:
|
|
104
|
+
class: s(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": q.value }]),
|
|
105
105
|
disabled: q.value,
|
|
106
106
|
onClick: $
|
|
107
|
-
},
|
|
107
|
+
}, g(h(H).modules.cancel), 11, F), u("button", {
|
|
108
108
|
type: "button",
|
|
109
109
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
110
110
|
disabled: !Z.value,
|
|
111
111
|
onClick: Q
|
|
112
|
-
}, [q.value ? (
|
|
112
|
+
}, [q.value ? (e(), d("span", L, [_(h(te), {
|
|
113
113
|
class: "tpl:animate-spin",
|
|
114
114
|
size: 12,
|
|
115
115
|
"stroke-width": 2
|
|
116
|
-
}),
|
|
116
|
+
}), a(" " + g(h(H).modules.saving), 1)])) : (e(), d("span", re, g(h(H).modules.save), 1))], 8, I)])
|
|
117
117
|
], 8, w)]),
|
|
118
118
|
_: 1
|
|
119
119
|
}, 8, ["visible"]));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as _ } from "./dist-
|
|
4
|
-
import { t as v } from "./useI18n-
|
|
5
|
-
import { t as y } from "./createLucideIcon-
|
|
6
|
-
import { t as b } from "./chevron-down-
|
|
7
|
-
import { t as x } from "./clock-
|
|
8
|
-
import { t as S } from "./loader-circle-
|
|
9
|
-
import { n as C } from "./useCloudI18n-
|
|
1
|
+
import { A as e, L as t, M as n, X as r, at as i, b as a, c as o, d as s, f as c, h as l, l as u, m as d, rt as f, st as p, t as m, v as h, z as g } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import "./useEditorCore-DLd-5qMg.js";
|
|
3
|
+
import { t as _ } from "./dist-BzRLLpfq.js";
|
|
4
|
+
import { t as v } from "./useI18n-CgmQftNf.js";
|
|
5
|
+
import { t as y } from "./createLucideIcon-Di4mqmGn.js";
|
|
6
|
+
import { t as b } from "./chevron-down-tee-ghFi.js";
|
|
7
|
+
import { t as x } from "./clock-CDlEdqiP.js";
|
|
8
|
+
import { t as S } from "./loader-circle-_9bP23op.js";
|
|
9
|
+
import { n as C } from "./useCloudI18n-CL_AwWwi.js";
|
|
10
10
|
import { t as w } from "./formatRelativeTime-BOEf47hq.js";
|
|
11
11
|
var T = y("chevron-left", [["path", {
|
|
12
12
|
d: "m15 18-6-6 6-6",
|
|
@@ -42,11 +42,11 @@ var T = y("chevron-left", [["path", {
|
|
|
42
42
|
},
|
|
43
43
|
emits: ["load", "navigate"],
|
|
44
44
|
setup(a, { emit: y }) {
|
|
45
|
-
let z = a, B = y, { format: V } = v(), { t: H } = C(), U =
|
|
46
|
-
|
|
45
|
+
let z = a, B = y, { format: V } = v(), { t: H } = C(), U = r(!1), W = r(null), G = r(-1);
|
|
46
|
+
t(() => z.snapshots.length, () => {
|
|
47
47
|
G.value = -1;
|
|
48
48
|
});
|
|
49
|
-
let K =
|
|
49
|
+
let K = s(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = s(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
|
|
50
50
|
function J() {
|
|
51
51
|
K.value && (G.value--, B("navigate", z.snapshots[G.value]));
|
|
52
52
|
}
|
|
@@ -71,52 +71,52 @@ var T = y("chevron-left", [["path", {
|
|
|
71
71
|
}
|
|
72
72
|
return _(W, () => {
|
|
73
73
|
U.value = !1;
|
|
74
|
-
}), (
|
|
74
|
+
}), (t, r) => (e(), l("div", {
|
|
75
75
|
ref_key: "dropdownRef",
|
|
76
76
|
ref: W,
|
|
77
77
|
class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5"
|
|
78
78
|
}, [
|
|
79
|
-
|
|
79
|
+
c("button", {
|
|
80
80
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
81
81
|
disabled: !q.value,
|
|
82
|
-
title:
|
|
83
|
-
onClick:
|
|
84
|
-
}, [
|
|
82
|
+
title: f(H).snapshotHistory.olderSnapshot,
|
|
83
|
+
onClick: o(Y, ["stop"])
|
|
84
|
+
}, [h(f(T), {
|
|
85
85
|
size: 14,
|
|
86
86
|
"stroke-width": 2
|
|
87
87
|
})], 8, D),
|
|
88
|
-
|
|
88
|
+
c("button", {
|
|
89
89
|
class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
90
|
-
title:
|
|
91
|
-
onClick:
|
|
92
|
-
}, [
|
|
90
|
+
title: f(H).snapshotHistory.tooltip,
|
|
91
|
+
onClick: o(X, ["stop"])
|
|
92
|
+
}, [h(f(x), {
|
|
93
93
|
size: 16,
|
|
94
94
|
"stroke-width": 1.5
|
|
95
|
-
}),
|
|
96
|
-
class:
|
|
95
|
+
}), h(f(b), {
|
|
96
|
+
class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
|
|
97
97
|
size: 10,
|
|
98
98
|
"stroke-width": 2
|
|
99
99
|
}, null, 8, ["class"])], 8, O),
|
|
100
|
-
|
|
101
|
-
default:
|
|
100
|
+
h(m, { name: "tpl-dropdown" }, {
|
|
101
|
+
default: g(() => [U.value ? (e(), l("div", k, [c("div", A, p(f(H).snapshotHistory.dropdownTitle), 1), a.isLoading ? (e(), l("div", j, [h(f(S), {
|
|
102
102
|
class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
|
|
103
103
|
size: 20,
|
|
104
104
|
"stroke-width": 2
|
|
105
|
-
})])) : a.snapshots.length === 0 ? (
|
|
106
|
-
key:
|
|
105
|
+
})])) : a.snapshots.length === 0 ? (e(), l("div", M, p(f(H).snapshotHistory.noSnapshots), 1)) : (e(), l("div", N, [(e(!0), l(u, null, n(a.snapshots, (t) => (e(), l("button", {
|
|
106
|
+
key: t.id,
|
|
107
107
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
|
|
108
108
|
style: { "background-color": "transparent" },
|
|
109
109
|
disabled: a.isRestoring,
|
|
110
|
-
onClick: (
|
|
111
|
-
}, [
|
|
110
|
+
onClick: (e) => Z(t.id)
|
|
111
|
+
}, [c("div", F, [c("div", I, [c("span", null, p(Q(t.created_at)), 1), t.is_autosave ? (e(), l("span", L, p(f(H).snapshotHistory.auto), 1)) : d("", !0)])])], 8, P))), 128))]))])) : d("", !0)]),
|
|
112
112
|
_: 1
|
|
113
113
|
}),
|
|
114
|
-
|
|
114
|
+
c("button", {
|
|
115
115
|
class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
|
|
116
116
|
disabled: !K.value,
|
|
117
|
-
title:
|
|
118
|
-
onClick:
|
|
119
|
-
}, [
|
|
117
|
+
title: f(H).snapshotHistory.newerSnapshot,
|
|
118
|
+
onClick: o(J, ["stop"])
|
|
119
|
+
}, [h(f(E), {
|
|
120
120
|
size: 14,
|
|
121
121
|
"stroke-width": 2
|
|
122
122
|
})], 8, R)
|