@aswin.dev/editor 0.6.3 → 0.7.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/README.md +3 -3
- package/dist/AccessibilityPanel-COL6Wm7p.js +108 -0
- package/dist/AiChatSidebar-DWGPVtvC.js +229 -0
- package/dist/AiFeatureMenu-duUFSfDf.js +63 -0
- package/dist/BlockA11yBadge-Qs6HtXid.js +34 -0
- package/dist/CloudEditor-CFldoCOb.js +1207 -0
- package/dist/CollaboratorBar-Bw-lbt61.js +95 -0
- package/dist/CommentsSidebar-BaD5F53-.js +436 -0
- package/dist/CountdownBlock-DaYGxKqo.js +92 -0
- package/dist/CountdownToolbar-Dg4F8MTk.js +210 -0
- package/dist/DesignReferenceSidebar-BSH7uNP_.js +276 -0
- package/dist/LoadingTrack-Ba2pfF57.js +10 -0
- package/dist/ModuleBrowserModal-6phxZSKI.js +206 -0
- package/dist/ModulePreviewCanvas-BW8L3eQX.js +108 -0
- package/dist/NumberWithSuffix-BpUzQOJt.js +422 -0
- package/dist/ParagraphEditor-DNSzAB-I.js +695 -0
- package/dist/RichTextEditorContent-CrqPQdnk.js +137 -0
- package/dist/SaveModuleDialog-zMQTpez7.js +123 -0
- package/dist/SnapshotHistory-Do-A5rYU.js +122 -0
- package/dist/TemplateScoringPanel-CS7o62zS.js +256 -0
- package/dist/TestEmailModal-DGj_9V1u.js +94 -0
- package/dist/TitleEditor-C7IDnAoS.js +172 -0
- package/dist/TplModal-BAsVzcTb.js +44 -0
- package/dist/_plugin-vue_export-helper-BVAJ4lgT.js +8 -0
- package/dist/accessibility-BU09xZrQ.js +27 -0
- package/dist/blockTypeIcons-C6LDKvmd.js +140 -0
- package/dist/bundle-stats.json +10 -0
- package/dist/check-DJrpDKO_.js +7 -0
- package/dist/chevron-down-C5oBUhT8.js +7 -0
- package/dist/chevron-right-BqCptpdp.js +10 -0
- package/dist/circle-alert-ZQQc98HC.js +25 -0
- package/dist/clock-ik2pRJKG.js +12 -0
- package/dist/cloud-6ZmAvF0j.js +1791 -0
- package/dist/createLucideIcon-ClREiSx3.js +43 -0
- package/dist/de-DWcgp-7T.js +729 -0
- package/dist/de-GOtR9DwW.js +207 -0
- package/dist/dist-BUzw1buG.js +35 -0
- package/dist/dist-BZyY-SS4.js +74 -0
- package/dist/dist-BadNx4qo.js +5 -0
- package/dist/dist-BesOh2mk.js +35 -0
- package/dist/dist-Bz3M4RXG.js +2082 -0
- package/dist/dist-C04s_fLA.js +563 -0
- package/dist/dist-C3T2AKtB.js +776 -0
- package/dist/dist-C9ckKEZL.js +519 -0
- package/dist/dist-CBItRG-Z.js +47 -0
- package/dist/dist-COSzWQUs.js +5 -0
- package/dist/dist-CivF9P8b.js +382 -0
- package/dist/dist-DXa1uAMh.js +10658 -0
- package/dist/dist-DtiDUrX-.js +189 -0
- package/dist/dist-Dzt5foyL.js +61 -0
- package/dist/emojiData-DrBuvEoP.js +17 -0
- package/dist/en-Cxd4fhNm.js +729 -0
- package/dist/en-dFFQVzNn.js +207 -0
- package/dist/extensions-D__hOlV1.js +799 -0
- package/dist/formatRelativeTime-BhhO8yCl.js +12 -0
- package/dist/image-up-DT7gcJLN.js +23 -0
- package/dist/index.d.ts +352 -0
- package/dist/info-BSPGcsSM.js +19 -0
- package/dist/keys-CvX8D-8C.js +10 -0
- package/dist/liquid.browser-BvCyLQII.js +3277 -0
- package/dist/loader-circle-Balo8p3d.js +7 -0
- package/dist/message-circle-B39qAHxs.js +7 -0
- package/dist/pencil-BZJPNYWR.js +10 -0
- package/dist/readableTextColor-DVuzNX1y.js +30 -0
- package/dist/refresh-cw-DwDqGUM0.js +29 -0
- package/dist/rolldown-runtime-BZGGJVDF.js +20 -0
- package/dist/scan-line-CzfFJO1o.js +25 -0
- package/dist/send-D2eSo4GH.js +10 -0
- package/dist/shield-check-jkpgcC0-.js +10 -0
- package/dist/sparkles-Chm5CZfb.js +23 -0
- package/dist/style.css +2 -0
- package/dist/styleConstants-34eUKPOZ.js +55 -0
- package/dist/styles-B4tjX5SP.js +5224 -0
- package/dist/templatical-editor.js +312 -0
- package/dist/text-align-start-CzBnJsW8.js +43 -0
- package/dist/timeouts-BSGxjuUF.js +4 -0
- package/dist/trash-2-CtK2apEH.js +25 -0
- package/dist/triangle-alert-KpDVNbpn.js +17 -0
- package/dist/useCloudI18n-DOKSZql1.js +23 -0
- package/dist/useEditorCore-wslttMH-.js +9517 -0
- package/dist/useI18n-C2xQZ6K9.js +17 -0
- package/dist/useMergeTag-DX0XG5V9.js +34 -0
- package/dist/vue.runtime.esm-bundler-CjauPXjj.js +5775 -0
- package/dist/x-BkaOMosX.js +10 -0
- package/package.json +10 -10
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, et as u, f as d, g as f, h as p, s as m, st as h, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { t as v } from "./loader-circle-Balo8p3d.js";
|
|
4
|
+
import { n as y } from "./useCloudI18n-DOKSZql1.js";
|
|
5
|
+
import { t as b } from "./TplModal-BAsVzcTb.js";
|
|
6
|
+
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var x = ["aria-busy"], S = {
|
|
8
|
+
id: "tpl-test-email-title",
|
|
9
|
+
class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
10
|
+
}, C = { class: "tpl:mb-3" }, w = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, T = ["value"], E = ["disabled"], D = ["value"], O = {
|
|
11
|
+
key: 0,
|
|
12
|
+
role: "alert",
|
|
13
|
+
class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
14
|
+
}, k = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
17
|
+
}, N = { key: 1 }, P = /* @__PURE__ */ t({
|
|
18
|
+
__name: "TestEmailModal",
|
|
19
|
+
props: {
|
|
20
|
+
visible: { type: Boolean },
|
|
21
|
+
allowedEmails: {},
|
|
22
|
+
isSending: { type: Boolean },
|
|
23
|
+
error: {}
|
|
24
|
+
},
|
|
25
|
+
emits: ["send", "close"],
|
|
26
|
+
setup(t, { emit: P }) {
|
|
27
|
+
let F = t, I = P, { t: L } = y(), R = u("");
|
|
28
|
+
o(() => F.visible, (e) => {
|
|
29
|
+
e && (R.value = F.allowedEmails[0] ?? "");
|
|
30
|
+
});
|
|
31
|
+
function z() {
|
|
32
|
+
!R.value || F.isSending || I("send", R.value);
|
|
33
|
+
}
|
|
34
|
+
function B() {
|
|
35
|
+
F.isSending || I("close");
|
|
36
|
+
}
|
|
37
|
+
function V(e) {
|
|
38
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
|
|
39
|
+
}
|
|
40
|
+
return (o, u) => (i(), f(b, {
|
|
41
|
+
visible: t.visible,
|
|
42
|
+
onClose: B,
|
|
43
|
+
onKeydown: V
|
|
44
|
+
}, {
|
|
45
|
+
default: a(() => [p("div", {
|
|
46
|
+
role: "dialog",
|
|
47
|
+
"aria-modal": "true",
|
|
48
|
+
"aria-busy": t.isSending,
|
|
49
|
+
"aria-labelledby": "tpl-test-email-title",
|
|
50
|
+
class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
|
|
51
|
+
style: {
|
|
52
|
+
"background-color": "var(--tpl-bg-elevated)",
|
|
53
|
+
"box-shadow": "var(--tpl-shadow-xl)"
|
|
54
|
+
}
|
|
55
|
+
}, [
|
|
56
|
+
p("h3", S, r(h(L).testEmail.title), 1),
|
|
57
|
+
p("div", C, [p("label", w, r(h(L).testEmail.recipientLabel), 1), t.allowedEmails.length === 1 ? (i(), g("input", {
|
|
58
|
+
key: 0,
|
|
59
|
+
type: "text",
|
|
60
|
+
value: R.value,
|
|
61
|
+
disabled: "",
|
|
62
|
+
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
63
|
+
}, null, 8, T)) : s((i(), g("select", {
|
|
64
|
+
key: 1,
|
|
65
|
+
"onUpdate:modelValue": u[0] ||= (e) => R.value = e,
|
|
66
|
+
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)]",
|
|
67
|
+
disabled: t.isSending
|
|
68
|
+
}, [(i(!0), g(d, null, n(t.allowedEmails, (e) => (i(), g("option", {
|
|
69
|
+
key: e,
|
|
70
|
+
value: e
|
|
71
|
+
}, r(e), 9, D))), 128))], 8, E)), [[m, R.value]])]),
|
|
72
|
+
t.error ? (i(), g("p", O, r(t.error), 1)) : c("", !0),
|
|
73
|
+
p("div", k, [p("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
class: e(["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": t.isSending }]),
|
|
76
|
+
disabled: t.isSending,
|
|
77
|
+
onClick: B
|
|
78
|
+
}, r(h(L).testEmail.cancel), 11, A), p("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
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)]",
|
|
81
|
+
disabled: !R.value || t.isSending,
|
|
82
|
+
onClick: z
|
|
83
|
+
}, [t.isSending ? (i(), g("span", M, [_(h(v), {
|
|
84
|
+
class: "tpl:animate-spin",
|
|
85
|
+
size: 12,
|
|
86
|
+
"stroke-width": 2
|
|
87
|
+
}), l(" " + r(h(L).testEmail.sending), 1)])) : (i(), g("span", N, r(h(L).testEmail.send), 1))], 8, j)])
|
|
88
|
+
], 8, x)]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["visible"]));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
export { P as default };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { At as e, C as t, D as n, Ft as r, N as i, Y as a, _ as o, b as s, f as c, g as l, h as u, jt as d, p as f, st as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { x as g } from "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { D as _, k as v } from "./keys-CvX8D-8C.js";
|
|
4
|
+
import { t as y } from "./useI18n-C2xQZ6K9.js";
|
|
5
|
+
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CrqPQdnk.js";
|
|
6
|
+
import { t as T } from "./loader-circle-Balo8p3d.js";
|
|
7
|
+
import { t as E } from "./scan-line-CzfFJO1o.js";
|
|
8
|
+
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
|
|
12
|
+
}, M = ["aria-label", "title"], N = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
15
|
+
}, P = /* @__PURE__ */ t({
|
|
16
|
+
__name: "TitleEditor",
|
|
17
|
+
props: {
|
|
18
|
+
block: {},
|
|
19
|
+
toolbarPosition: {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["done"],
|
|
22
|
+
setup(t, { emit: P }) {
|
|
23
|
+
let F = t, I = P, L = n(_, null), R = n(v, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
|
|
24
|
+
blockId: () => F.block.id,
|
|
25
|
+
blockContent: () => F.block.content,
|
|
26
|
+
onDone: () => I("done"),
|
|
27
|
+
editorName: "TitleEditor",
|
|
28
|
+
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
29
|
+
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
30
|
+
import("./dist-C9ckKEZL.js").then((e) => e.r),
|
|
31
|
+
import("./dist-Bz3M4RXG.js"),
|
|
32
|
+
import("./dist-C3T2AKtB.js"),
|
|
33
|
+
import("./extensions-D__hOlV1.js")
|
|
34
|
+
]);
|
|
35
|
+
return {
|
|
36
|
+
TiptapEditor: a,
|
|
37
|
+
EC: o,
|
|
38
|
+
extensions: [
|
|
39
|
+
s.configure({
|
|
40
|
+
heading: !1,
|
|
41
|
+
codeBlock: !1,
|
|
42
|
+
blockquote: !1,
|
|
43
|
+
horizontalRule: !1,
|
|
44
|
+
bulletList: !1,
|
|
45
|
+
orderedList: !1,
|
|
46
|
+
listItem: !1,
|
|
47
|
+
strike: !1
|
|
48
|
+
}),
|
|
49
|
+
c.configure({
|
|
50
|
+
openOnClick: !1,
|
|
51
|
+
HTMLAttributes: {
|
|
52
|
+
target: "_blank",
|
|
53
|
+
rel: "noopener noreferrer"
|
|
54
|
+
}
|
|
55
|
+
}),
|
|
56
|
+
l.configure({
|
|
57
|
+
mergeTags: e,
|
|
58
|
+
syntax: t
|
|
59
|
+
}),
|
|
60
|
+
d.configure({ syntax: t }),
|
|
61
|
+
...r && n && e.length > 0 ? [u.configure({
|
|
62
|
+
mergeTags: e,
|
|
63
|
+
char: n,
|
|
64
|
+
emptyText: i
|
|
65
|
+
})] : []
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return (n, g) => (i(), m("div", ee, [
|
|
71
|
+
(i(), l(f, { to: "body" }, [u("div", {
|
|
72
|
+
"data-tpl-theme": p(R),
|
|
73
|
+
role: "toolbar",
|
|
74
|
+
"aria-label": p(z).titleEditor.toolbar,
|
|
75
|
+
class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
76
|
+
style: d({
|
|
77
|
+
...p(L),
|
|
78
|
+
top: `${t.toolbarPosition.top}px`,
|
|
79
|
+
left: `${t.toolbarPosition.left}px`,
|
|
80
|
+
transform: "translateY(-100%)"
|
|
81
|
+
})
|
|
82
|
+
}, [!p(H) && p(B) ? (i(), m(c, { key: 0 }, [
|
|
83
|
+
u("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("bold") }]),
|
|
86
|
+
"aria-label": p(z).titleEditor.bold,
|
|
87
|
+
title: p(z).titleEditor.bold,
|
|
88
|
+
onClick: g[0] ||= (e) => p(B)?.chain().focus().toggleBold().run()
|
|
89
|
+
}, [h(p(b), {
|
|
90
|
+
size: 16,
|
|
91
|
+
"stroke-width": 2.5
|
|
92
|
+
})], 10, O),
|
|
93
|
+
u("button", {
|
|
94
|
+
type: "button",
|
|
95
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("italic") }]),
|
|
96
|
+
"aria-label": p(z).titleEditor.italic,
|
|
97
|
+
title: p(z).titleEditor.italic,
|
|
98
|
+
onClick: g[1] ||= (e) => p(B)?.chain().focus().toggleItalic().run()
|
|
99
|
+
}, [h(p(x), {
|
|
100
|
+
size: 16,
|
|
101
|
+
"stroke-width": 2
|
|
102
|
+
})], 10, k),
|
|
103
|
+
g[6] ||= u("span", {
|
|
104
|
+
class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
}, null, -1),
|
|
107
|
+
u("button", {
|
|
108
|
+
type: "button",
|
|
109
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("link") }]),
|
|
110
|
+
"aria-label": p(z).titleEditor.addLink,
|
|
111
|
+
title: p(z).titleEditor.addLink,
|
|
112
|
+
onClick: g[2] ||= (...e) => p(Y) && p(Y)(...e)
|
|
113
|
+
}, [h(p(C), {
|
|
114
|
+
size: 16,
|
|
115
|
+
"stroke-width": 2
|
|
116
|
+
})], 10, A),
|
|
117
|
+
p(J) ? (i(), m("span", j)) : o("", !0),
|
|
118
|
+
p(J) ? (i(), m("button", {
|
|
119
|
+
key: 1,
|
|
120
|
+
type: "button",
|
|
121
|
+
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
122
|
+
"aria-label": p(z).mergeTag.add,
|
|
123
|
+
title: p(z).mergeTag.add,
|
|
124
|
+
onClick: g[3] ||= (...e) => p($) && p($)(...e)
|
|
125
|
+
}, [h(p(E), {
|
|
126
|
+
size: 16,
|
|
127
|
+
"stroke-width": 2
|
|
128
|
+
}), s(" " + r(p(z).mergeTag.add), 1)], 8, M)) : o("", !0)
|
|
129
|
+
], 64)) : (i(), m("div", N, [h(p(T), {
|
|
130
|
+
class: "tpl-spinner",
|
|
131
|
+
size: 14,
|
|
132
|
+
"stroke-width": 2
|
|
133
|
+
}), s(" " + r(p(z).errors.editorLoading), 1)]))], 12, D)])),
|
|
134
|
+
h(w, {
|
|
135
|
+
editor: p(B),
|
|
136
|
+
"editor-content": p(V),
|
|
137
|
+
"is-loading": p(H),
|
|
138
|
+
"init-error": p(U),
|
|
139
|
+
onRetry: p(W)
|
|
140
|
+
}, null, 8, [
|
|
141
|
+
"editor",
|
|
142
|
+
"editor-content",
|
|
143
|
+
"is-loading",
|
|
144
|
+
"init-error",
|
|
145
|
+
"onRetry"
|
|
146
|
+
]),
|
|
147
|
+
h(S, {
|
|
148
|
+
visible: p(G),
|
|
149
|
+
"is-editing-link": p(B)?.isActive("link") ?? !1,
|
|
150
|
+
"dialog-ref": p(q),
|
|
151
|
+
"onUpdate:dialogRef": g[4] ||= (e) => a(q) ? q.value = e : null,
|
|
152
|
+
"link-url": p(K),
|
|
153
|
+
"onUpdate:linkUrl": g[5] ||= (e) => a(K) ? K.value = e : null,
|
|
154
|
+
onClose: p(Q),
|
|
155
|
+
onInsert: p(X),
|
|
156
|
+
onRemove: p(Z),
|
|
157
|
+
onKeydown: p(te)
|
|
158
|
+
}, null, 8, [
|
|
159
|
+
"visible",
|
|
160
|
+
"is-editing-link",
|
|
161
|
+
"dialog-ref",
|
|
162
|
+
"link-url",
|
|
163
|
+
"onClose",
|
|
164
|
+
"onInsert",
|
|
165
|
+
"onRemove",
|
|
166
|
+
"onKeydown"
|
|
167
|
+
])
|
|
168
|
+
]));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
//#endregion
|
|
172
|
+
export { P as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { C as e, D as t, I as n, N as r, U as i, _ as a, d as o, et as s, g as c, h as l, m as u, p as d, st as f, t as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { T as g } from "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { k as _ } from "./keys-CvX8D-8C.js";
|
|
4
|
+
//#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var v = ["data-tpl-theme"], y = /* @__PURE__ */ e({
|
|
6
|
+
__name: "TplModal",
|
|
7
|
+
props: { visible: { type: Boolean } },
|
|
8
|
+
emits: ["close", "keydown"],
|
|
9
|
+
setup(e, { emit: y }) {
|
|
10
|
+
let b = e, x = y, S = s(null);
|
|
11
|
+
g(S, u(() => b.visible));
|
|
12
|
+
let C = t(_);
|
|
13
|
+
function w(e) {
|
|
14
|
+
e.key === "Escape" && x("close"), x("keydown", e);
|
|
15
|
+
}
|
|
16
|
+
return (t, s) => (r(), c(d, { to: "body" }, [h(p, {
|
|
17
|
+
"enter-active-class": "tpl:transition tpl:duration-150",
|
|
18
|
+
"enter-from-class": "tpl:opacity-0",
|
|
19
|
+
"enter-to-class": "tpl:opacity-100",
|
|
20
|
+
"leave-active-class": "tpl:transition tpl:duration-100",
|
|
21
|
+
"leave-from-class": "tpl:opacity-100",
|
|
22
|
+
"leave-to-class": "tpl:opacity-0"
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [e.visible ? (r(), m("div", {
|
|
25
|
+
key: 0,
|
|
26
|
+
"data-tpl-theme": f(C),
|
|
27
|
+
class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
28
|
+
style: {
|
|
29
|
+
"background-color": "var(--tpl-overlay)",
|
|
30
|
+
"backdrop-filter": "blur(8px)",
|
|
31
|
+
"-webkit-backdrop-filter": "blur(8px)"
|
|
32
|
+
},
|
|
33
|
+
onClick: s[0] ||= o((e) => x("close"), ["self"]),
|
|
34
|
+
onKeydown: w
|
|
35
|
+
}, [l("div", {
|
|
36
|
+
ref_key: "dialogRef",
|
|
37
|
+
ref: S
|
|
38
|
+
}, [n(t.$slots, "default")], 512)], 40, v)) : a("", !0)]),
|
|
39
|
+
_: 3
|
|
40
|
+
})]));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { y as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-ClREiSx3.js";
|
|
2
|
+
var t = e("accessibility", [
|
|
3
|
+
["circle", {
|
|
4
|
+
cx: "16",
|
|
5
|
+
cy: "4",
|
|
6
|
+
r: "1",
|
|
7
|
+
key: "1grugj"
|
|
8
|
+
}],
|
|
9
|
+
["path", {
|
|
10
|
+
d: "m18 19 1-7-6 1",
|
|
11
|
+
key: "r0i19z"
|
|
12
|
+
}],
|
|
13
|
+
["path", {
|
|
14
|
+
d: "m5 8 3-3 5.5 3-2.36 3.5",
|
|
15
|
+
key: "9ptxx2"
|
|
16
|
+
}],
|
|
17
|
+
["path", {
|
|
18
|
+
d: "M4.24 14.5a5 5 0 0 0 6.88 6",
|
|
19
|
+
key: "10kmtu"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M13.76 17.5a5 5 0 0 0-6.88-6",
|
|
23
|
+
key: "2qq6rc"
|
|
24
|
+
}]
|
|
25
|
+
]);
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { A as e, D as t, N as n, O as r, k as i } from "./useEditorCore-wslttMH-.js";
|
|
2
|
+
import { t as a } from "./createLucideIcon-ClREiSx3.js";
|
|
3
|
+
var o = a("columns-3", [
|
|
4
|
+
["rect", {
|
|
5
|
+
width: "18",
|
|
6
|
+
height: "18",
|
|
7
|
+
x: "3",
|
|
8
|
+
y: "3",
|
|
9
|
+
rx: "2",
|
|
10
|
+
key: "afitv7"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M9 3v18",
|
|
14
|
+
key: "fh3hqa"
|
|
15
|
+
}],
|
|
16
|
+
["path", {
|
|
17
|
+
d: "M15 3v18",
|
|
18
|
+
key: "14nvp0"
|
|
19
|
+
}]
|
|
20
|
+
]), s = a("heading", [
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M6 12h12",
|
|
23
|
+
key: "8npq4p"
|
|
24
|
+
}],
|
|
25
|
+
["path", {
|
|
26
|
+
d: "M6 20V4",
|
|
27
|
+
key: "1w1bmo"
|
|
28
|
+
}],
|
|
29
|
+
["path", {
|
|
30
|
+
d: "M18 20V4",
|
|
31
|
+
key: "o2hl4u"
|
|
32
|
+
}]
|
|
33
|
+
]), c = a("minus", [["path", {
|
|
34
|
+
d: "M5 12h14",
|
|
35
|
+
key: "1ays0h"
|
|
36
|
+
}]]), l = a("move-vertical", [
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M12 2v20",
|
|
39
|
+
key: "t6zp3m"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "m8 18 4 4 4-4",
|
|
43
|
+
key: "bh5tu3"
|
|
44
|
+
}],
|
|
45
|
+
["path", {
|
|
46
|
+
d: "m8 6 4-4 4 4",
|
|
47
|
+
key: "ybng9g"
|
|
48
|
+
}]
|
|
49
|
+
]), u = a("package", [
|
|
50
|
+
["path", {
|
|
51
|
+
d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
|
|
52
|
+
key: "1a0edw"
|
|
53
|
+
}],
|
|
54
|
+
["path", {
|
|
55
|
+
d: "M12 22V12",
|
|
56
|
+
key: "d0xqtd"
|
|
57
|
+
}],
|
|
58
|
+
["polyline", {
|
|
59
|
+
points: "3.29 7 12 12 20.71 7",
|
|
60
|
+
key: "ousv84"
|
|
61
|
+
}],
|
|
62
|
+
["path", {
|
|
63
|
+
d: "m7.5 4.27 9 5.15",
|
|
64
|
+
key: "1c824w"
|
|
65
|
+
}]
|
|
66
|
+
]), d = a("pilcrow", [
|
|
67
|
+
["path", {
|
|
68
|
+
d: "M13 4v16",
|
|
69
|
+
key: "8vvj80"
|
|
70
|
+
}],
|
|
71
|
+
["path", {
|
|
72
|
+
d: "M17 4v16",
|
|
73
|
+
key: "7dpous"
|
|
74
|
+
}],
|
|
75
|
+
["path", {
|
|
76
|
+
d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13",
|
|
77
|
+
key: "sh4n9v"
|
|
78
|
+
}]
|
|
79
|
+
]), f = a("play", [["path", {
|
|
80
|
+
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
81
|
+
key: "10ikf1"
|
|
82
|
+
}]]), p = {
|
|
83
|
+
section: o,
|
|
84
|
+
title: s,
|
|
85
|
+
paragraph: d,
|
|
86
|
+
image: e,
|
|
87
|
+
button: a("rectangle-horizontal", [["rect", {
|
|
88
|
+
width: "20",
|
|
89
|
+
height: "12",
|
|
90
|
+
x: "2",
|
|
91
|
+
y: "6",
|
|
92
|
+
rx: "2",
|
|
93
|
+
key: "9lu3g6"
|
|
94
|
+
}]]),
|
|
95
|
+
input: a("text-cursor", [
|
|
96
|
+
["path", {
|
|
97
|
+
d: "M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",
|
|
98
|
+
key: "uvaxm9"
|
|
99
|
+
}],
|
|
100
|
+
["path", {
|
|
101
|
+
d: "M7 22h1a4 4 0 0 0 4-4v-1",
|
|
102
|
+
key: "11xy8d"
|
|
103
|
+
}],
|
|
104
|
+
["path", {
|
|
105
|
+
d: "M7 2h1a4 4 0 0 1 4 4v1",
|
|
106
|
+
key: "1uw06m"
|
|
107
|
+
}]
|
|
108
|
+
]),
|
|
109
|
+
divider: c,
|
|
110
|
+
video: f,
|
|
111
|
+
social: r,
|
|
112
|
+
menu: i,
|
|
113
|
+
table: t,
|
|
114
|
+
spacer: l,
|
|
115
|
+
countdown: a("timer", [
|
|
116
|
+
["line", {
|
|
117
|
+
x1: "10",
|
|
118
|
+
x2: "14",
|
|
119
|
+
y1: "2",
|
|
120
|
+
y2: "2",
|
|
121
|
+
key: "14vaq8"
|
|
122
|
+
}],
|
|
123
|
+
["line", {
|
|
124
|
+
x1: "12",
|
|
125
|
+
x2: "15",
|
|
126
|
+
y1: "14",
|
|
127
|
+
y2: "11",
|
|
128
|
+
key: "17fdiu"
|
|
129
|
+
}],
|
|
130
|
+
["circle", {
|
|
131
|
+
cx: "12",
|
|
132
|
+
cy: "14",
|
|
133
|
+
r: "8",
|
|
134
|
+
key: "1e1u0o"
|
|
135
|
+
}]
|
|
136
|
+
]),
|
|
137
|
+
html: n
|
|
138
|
+
};
|
|
139
|
+
//#endregion
|
|
140
|
+
export { u as n, c as r, p as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-ClREiSx3.js";
|
|
2
|
+
var t = e("chevron-left", [["path", {
|
|
3
|
+
d: "m15 18-6-6 6-6",
|
|
4
|
+
key: "1wnfg3"
|
|
5
|
+
}]]), n = e("chevron-right", [["path", {
|
|
6
|
+
d: "m9 18 6-6-6-6",
|
|
7
|
+
key: "mthhwq"
|
|
8
|
+
}]]);
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-ClREiSx3.js";
|
|
2
|
+
var t = e("circle-alert", [
|
|
3
|
+
["circle", {
|
|
4
|
+
cx: "12",
|
|
5
|
+
cy: "12",
|
|
6
|
+
r: "10",
|
|
7
|
+
key: "1mglay"
|
|
8
|
+
}],
|
|
9
|
+
["line", {
|
|
10
|
+
x1: "12",
|
|
11
|
+
x2: "12",
|
|
12
|
+
y1: "8",
|
|
13
|
+
y2: "12",
|
|
14
|
+
key: "1pkeuh"
|
|
15
|
+
}],
|
|
16
|
+
["line", {
|
|
17
|
+
x1: "12",
|
|
18
|
+
x2: "12.01",
|
|
19
|
+
y1: "16",
|
|
20
|
+
y2: "16",
|
|
21
|
+
key: "4dfq90"
|
|
22
|
+
}]
|
|
23
|
+
]);
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t };
|