@templatical/editor 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-CXH7l1Ar.js → AiChatSidebar-B0-U5-sb.js} +3 -3
- package/dist/{AiFeatureMenu-BKbUUc1D.js → AiFeatureMenu-DxDwLS8B.js} +1 -1
- package/dist/{CloudEditor-F5YV5hE3.js → CloudEditor-DaEfipBn.js} +190 -158
- package/dist/{CollaboratorBar-ACUA7lBJ.js → CollaboratorBar-DgwjisX2.js} +1 -1
- package/dist/{CountdownBlock-C-6o19qS.js → CountdownBlock-DO9fziwf.js} +1 -1
- package/dist/{CountdownToolbar-CDy9_2Yj.js → CountdownToolbar-BeII06yJ.js} +1 -1
- package/dist/{DesignReferenceSidebar-0dTsBW08.js → DesignReferenceSidebar-BgPDbOsl.js} +19 -31
- package/dist/{ModuleBrowserModal-Bz9hSjMS.js → ModuleBrowserModal-DsZRr87F.js} +4 -4
- package/dist/{ModulePreviewCanvas-CpaumPMS.js → ModulePreviewCanvas-Dni9kK4j.js} +19 -19
- package/dist/{NumberWithSuffix-Cd7bz1Wk.js → NumberWithSuffix-D3fdj0iO.js} +101 -79
- package/dist/{ParagraphEditor-BqRFV_Y-.js → ParagraphEditor-CZ-cmhX3.js} +7 -7
- package/dist/{SaveModuleDialog-DmfvH5D0.js → SaveModuleDialog-C38VqN2T.js} +2 -2
- package/dist/{SnapshotHistory-C052o-8U.js → SnapshotHistory-ByloTpwh.js} +2 -2
- package/dist/{TemplateScoringPanel-CUs8XmIi.js → TemplateScoringPanel-CUxiPtEf.js} +1 -1
- package/dist/{TestEmailModal-BIIxRWUt.js → TestEmailModal-BvZBMBad.js} +2 -2
- package/dist/{TitleEditor-FMh54Cx5.js → TitleEditor-DbNOcvhR.js} +1 -1
- package/dist/{TplModal-utMtXzSO.js → TplModal-BYb-X5Bj.js} +1 -1
- package/dist/{blockTypeIcons-C6UGDmrC.js → blockTypeIcons-CyAom3iI.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js → AiFeatureMenu-BSoy-SoF.js} +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js.map → AiFeatureMenu-BSoy-SoF.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js → BlockIssueBadge-BQDUuJxy.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js.map → BlockIssueBadge-BQDUuJxy.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-OO8hWAVp.js → CloudEditor-BZuzsQOZ.js} +231 -199
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js → CollaboratorBar-DUpSrtDr.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js.map → CollaboratorBar-DUpSrtDr.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js → CountdownBlock-DChGTAsH.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js.map → CountdownBlock-DChGTAsH.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BXjDFRHI.js → CountdownToolbar-C6gX2SJr.js} +3 -3
- package/dist/cdn/chunks/CountdownToolbar-C6gX2SJr.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js → IssuesPanel-Bo1uhdSe.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js.map → IssuesPanel-Bo1uhdSe.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js → ModuleBrowserModal-a-tZRCcD.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js.map → ModuleBrowserModal-a-tZRCcD.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js → ModulePreviewCanvas-Bm6k0Op0.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js.map → ModulePreviewCanvas-Bm6k0Op0.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-ZuJ2ePB0.js → NumberWithSuffix-HTbuD3VJ.js} +139 -118
- package/dist/cdn/chunks/NumberWithSuffix-HTbuD3VJ.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js → ParagraphEditor-pGrfSccu.js} +13 -13
- package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js.map → ParagraphEditor-pGrfSccu.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js → RichTextEditorContent-D7XZix_1.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js.map → RichTextEditorContent-D7XZix_1.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js → SaveModuleDialog-C9PQ9x6j.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js.map → SaveModuleDialog-C9PQ9x6j.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CQqklX0D.js → TitleEditor-BvFbL16O.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-CQqklX0D.js.map → TitleEditor-BvFbL16O.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CpGPHppB.js → blockTypeIcons-Kd1MT0u8.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-CpGPHppB.js.map → blockTypeIcons-Kd1MT0u8.js.map} +1 -1
- package/dist/cdn/chunks/{de-DpBN9H7-.js → de-C2wOXoxs.js} +6 -2
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +1 -0
- package/dist/cdn/chunks/{en-BhHtdIiU.js → en-dR7zfNC3.js} +6 -2
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js → extensions-CuUjSmuA.js} +23 -23
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js.map → extensions-CuUjSmuA.js.map} +1 -1
- package/dist/cdn/chunks/{features-DxWz_Enw.js → features-DU6lA8l1.js} +471 -420
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +1 -0
- package/dist/cdn/chunks/{icons-BflGUmFY.js → icons-BjHUZZyJ.js} +2 -2
- package/dist/cdn/chunks/{icons-BflGUmFY.js.map → icons-BjHUZZyJ.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-C479-QcE.js → media-library-Byelliig.js} +575 -575
- package/dist/cdn/chunks/media-library-Byelliig.js.map +1 -0
- package/dist/{pt-BR-Bth5a93y.js → cdn/chunks/pt-BR-BZ86xqK6.js} +7 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +1 -0
- package/dist/cdn/chunks/{quality-BL_pEvFP.js → quality-DNnYAntR.js} +83 -83
- package/dist/cdn/chunks/{quality-BL_pEvFP.js.map → quality-DNnYAntR.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DwPomkBw.js → renderer-CZKO-Tav.js} +19 -19
- package/dist/cdn/chunks/{renderer-DwPomkBw.js.map → renderer-CZKO-Tav.js.map} +1 -1
- package/dist/cdn/chunks/{src-DzvOWQ9S.js → src-DsqSXXjk.js} +53 -53
- package/dist/cdn/chunks/{src-DzvOWQ9S.js.map → src-DsqSXXjk.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D45rgVq8.js → styles-DiAdtiz9.js} +865 -785
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +124 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{de-DpBN9H7-.js → de-C2wOXoxs.js} +5 -1
- package/dist/{dist-DJ9aD8yA.js → dist-Cgry6fNv.js} +53 -4
- package/dist/{en-BhHtdIiU.js → en-dR7zfNC3.js} +5 -1
- package/dist/{cdn/chunks/pt-BR-Bth5a93y.js → pt-BR-BZ86xqK6.js} +5 -3
- package/dist/style.css +1 -1
- package/dist/{styles-Dp4mJuCM.js → styles-D0RCAWhB.js} +866 -784
- package/dist/templatical-editor.js +94 -92
- package/dist/upload-BF7sxd1_.js +17 -0
- package/dist/{useEditorCore-D7dQFRkw.js → useEditorCore-DKYZ7aKk.js} +788 -735
- package/package.json +7 -7
- package/dist/cdn/chunks/CloudEditor-OO8hWAVp.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-BXjDFRHI.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-ZuJ2ePB0.js.map +0 -1
- package/dist/cdn/chunks/de-DpBN9H7-.js.map +0 -1
- package/dist/cdn/chunks/en-BhHtdIiU.js.map +0 -1
- package/dist/cdn/chunks/features-DxWz_Enw.js.map +0 -1
- package/dist/cdn/chunks/media-library-C479-QcE.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bth5a93y.js.map +0 -1
- package/dist/cdn/chunks/styles-D45rgVq8.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DKYZ7aKk.js";
|
|
3
3
|
import { t as f } from "./createLucideIcon-CmPAC-gt.js";
|
|
4
4
|
import { n as p } from "./useCloudI18n-L3H2XvdW.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-f8Kykfnh.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { A as t, M as n, X as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, rt as d, st as f } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as p } from "./dist-Cgry6fNv.js";
|
|
4
4
|
import { t as m } from "./useI18n-CTs_bP9d.js";
|
|
5
5
|
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var h = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
2
|
import { t as m } from "./useI18n-CTs_bP9d.js";
|
|
3
3
|
import { f as h } from "./styleConstants-lGobwiLH.js";
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-D3fdj0iO.js";
|
|
5
5
|
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ i({
|
|
7
7
|
__name: "CheckboxItem",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { A as e, B as t, D as n, L as r, X as i, _ as a, a as ee, at as te, b as o, d as ne, f as s, h as c, m as l, ot as u, p as re, rt as d, st as f, t as ie, v as p, z as ae } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
2
|
import "./timeouts-Bmi_yePw.js";
|
|
3
|
-
import { N as m, m as oe, r as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
3
|
+
import { N as m, m as oe, r as se } from "./keys-mFiJ5N0_.js";
|
|
4
|
+
import { t as h } from "./createLucideIcon-CmPAC-gt.js";
|
|
5
|
+
import { t as ce } from "./circle-alert-BStvZr3O.js";
|
|
6
|
+
import { t as g } from "./image-up-BFPbw_Zq.js";
|
|
7
|
+
import { t as _ } from "./upload-BF7sxd1_.js";
|
|
7
8
|
import { t as v } from "./x-CGjkjdKK.js";
|
|
8
|
-
import { t as
|
|
9
|
+
import { t as le } from "./LoadingTrack-C7mGWPHS.js";
|
|
9
10
|
import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
-
import { n as
|
|
11
|
-
import { u as
|
|
12
|
-
var
|
|
11
|
+
import { n as ue } from "./useCloudI18n-L3H2XvdW.js";
|
|
12
|
+
import { u as de } from "./cloud-_olro76D.js";
|
|
13
|
+
var fe = h("file-image", [
|
|
13
14
|
["path", {
|
|
14
15
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
15
16
|
key: "1oefj6"
|
|
@@ -28,7 +29,7 @@ var de = g("file-image", [
|
|
|
28
29
|
d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
|
|
29
30
|
key: "wt3hpn"
|
|
30
31
|
}]
|
|
31
|
-
]), b =
|
|
32
|
+
]), b = h("file-text", [
|
|
32
33
|
["path", {
|
|
33
34
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
34
35
|
key: "1oefj6"
|
|
@@ -49,19 +50,6 @@ var de = g("file-image", [
|
|
|
49
50
|
d: "M16 17H8",
|
|
50
51
|
key: "z1uh3a"
|
|
51
52
|
}]
|
|
52
|
-
]), fe = g("upload", [
|
|
53
|
-
["path", {
|
|
54
|
-
d: "M12 3v12",
|
|
55
|
-
key: "1x0j5s"
|
|
56
|
-
}],
|
|
57
|
-
["path", {
|
|
58
|
-
d: "m17 8-5-5-5 5",
|
|
59
|
-
key: "7q97r8"
|
|
60
|
-
}],
|
|
61
|
-
["path", {
|
|
62
|
-
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
63
|
-
key: "ih7n3h"
|
|
64
|
-
}]
|
|
65
53
|
]), pe = {
|
|
66
54
|
key: 0,
|
|
67
55
|
class: "tpl-design-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
@@ -90,9 +78,9 @@ var de = g("file-image", [
|
|
|
90
78
|
hasExistingBlocks: { type: Boolean }
|
|
91
79
|
},
|
|
92
80
|
emits: ["close", "apply"],
|
|
93
|
-
setup(o, { emit:
|
|
94
|
-
let y = o, z =
|
|
95
|
-
authManager: m(
|
|
81
|
+
setup(o, { emit: h }) {
|
|
82
|
+
let y = o, z = h, { t: B } = ue(), xe = m(oe, "DesignReferenceSidebar"), V = de({
|
|
83
|
+
authManager: m(se, "DesignReferenceSidebar"),
|
|
96
84
|
getTemplateId: () => xe.state.template?.id ?? null,
|
|
97
85
|
onApply: (e) => z("apply", e)
|
|
98
86
|
}), H = i(null), U = i("image"), W = i(null), G = i(""), K = i(null), q = i(!1), J = i(!1), Y = ne(() => V.isGenerating.value ? !1 : W.value !== null);
|
|
@@ -163,7 +151,7 @@ var de = g("file-image", [
|
|
|
163
151
|
"leave-from-class": "tpl:translate-x-0",
|
|
164
152
|
"leave-to-class": "tpl:translate-x-full"
|
|
165
153
|
}, {
|
|
166
|
-
default: ae(() => [o.visible ? (e(), c("div", pe, [s("div", me, [s("div", he, [p(d(
|
|
154
|
+
default: ae(() => [o.visible ? (e(), c("div", pe, [s("div", me, [s("div", he, [p(d(g), {
|
|
167
155
|
size: 13,
|
|
168
156
|
"stroke-width": 2
|
|
169
157
|
}), s("span", null, f(d(B).designReference.title), 1)]), s("button", {
|
|
@@ -172,7 +160,7 @@ var de = g("file-image", [
|
|
|
172
160
|
}, [p(d(v), {
|
|
173
161
|
size: 14,
|
|
174
162
|
"stroke-width": 2
|
|
175
|
-
})])]), s("div", x, [d(V).isGenerating.value ? (e(), c("div", S, [s("div", C, [p(
|
|
163
|
+
})])]), s("div", x, [d(V).isGenerating.value ? (e(), c("div", S, [s("div", C, [p(le), s("p", w, f(d(B).designReference.generating), 1)])])) : (e(), c("div", T, [
|
|
176
164
|
s("div", E, [s("button", {
|
|
177
165
|
class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
178
166
|
style: u({
|
|
@@ -181,7 +169,7 @@ var de = g("file-image", [
|
|
|
181
169
|
boxShadow: U.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
182
170
|
}),
|
|
183
171
|
onClick: r[1] ||= (e) => X("image")
|
|
184
|
-
}, [p(d(
|
|
172
|
+
}, [p(d(fe), {
|
|
185
173
|
size: 12,
|
|
186
174
|
"stroke-width": 2
|
|
187
175
|
}), a(" " + f(d(B).designReference.uploadImage), 1)], 4), s("button", {
|
|
@@ -223,7 +211,7 @@ var de = g("file-image", [
|
|
|
223
211
|
onDragleave: we,
|
|
224
212
|
onDrop: Te
|
|
225
213
|
}, [
|
|
226
|
-
p(d(
|
|
214
|
+
p(d(_), {
|
|
227
215
|
size: 24,
|
|
228
216
|
"stroke-width": 1.5,
|
|
229
217
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -252,7 +240,7 @@ var de = g("file-image", [
|
|
|
252
240
|
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
253
241
|
onClick: $
|
|
254
242
|
}, f(d(B).designReference.replaceConfirm), 1)])])) : l("", !0),
|
|
255
|
-
d(V).error.value ? (e(), c("div", ve, [p(d(
|
|
243
|
+
d(V).error.value ? (e(), c("div", ve, [p(d(ce), {
|
|
256
244
|
size: 14,
|
|
257
245
|
"stroke-width": 2,
|
|
258
246
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -262,7 +250,7 @@ var de = g("file-image", [
|
|
|
262
250
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium 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)]",
|
|
263
251
|
disabled: !Y.value,
|
|
264
252
|
onClick: $
|
|
265
|
-
}, [p(d(
|
|
253
|
+
}, [p(d(g), {
|
|
266
254
|
size: 16,
|
|
267
255
|
"stroke-width": 2
|
|
268
256
|
}), a(" " + f(d(B).designReference.generate), 1)], 8, ye)),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, L as r, M as i, X as a, a as ee, b as o, c as s, d as c, f as l, h as u, i as te, l as d, m as ne, ot as re, p as f, rt as p, st as m, v as h, y as ie, z as ae } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DKYZ7aKk.js";
|
|
3
3
|
import { D as oe, N as g, m as se } from "./keys-mFiJ5N0_.js";
|
|
4
4
|
import { t as ce } from "./useI18n-CTs_bP9d.js";
|
|
5
|
-
import { n as le, r as _, t as v } from "./blockTypeIcons-
|
|
5
|
+
import { n as le, r as _, t as v } from "./blockTypeIcons-CyAom3iI.js";
|
|
6
6
|
import { t as ue } from "./trash-2-DpGb7fIt.js";
|
|
7
7
|
import { t as de } from "./x-CGjkjdKK.js";
|
|
8
8
|
import { n as fe } from "./useCloudI18n-L3H2XvdW.js";
|
|
9
|
-
import { t as pe } from "./TplModal-
|
|
9
|
+
import { t as pe } from "./TplModal-BYb-X5Bj.js";
|
|
10
10
|
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var me = {
|
|
12
12
|
role: "dialog",
|
|
@@ -45,7 +45,7 @@ var me = {
|
|
|
45
45
|
props: { visible: { type: Boolean } },
|
|
46
46
|
emits: ["close", "insert"],
|
|
47
47
|
setup(o, { emit: z }) {
|
|
48
|
-
let Ee = o, B = z, De = ie(() => import("./ModulePreviewCanvas-
|
|
48
|
+
let Ee = o, B = z, De = ie(() => import("./ModulePreviewCanvas-Dni9kK4j.js")), { t: Oe } = ce(), { t: V } = fe(), H = g(oe, "ModuleBrowserModal"), U = g(se, "ModuleBrowserModal"), W = a(""), G = a(null), K = a(null), q = a("end"), J = c(() => {
|
|
49
49
|
let e = H.modules.value;
|
|
50
50
|
if (!W.value) return e;
|
|
51
51
|
let t = W.value.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
|
-
import {
|
|
2
|
+
import { P as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-DKYZ7aKk.js";
|
|
3
3
|
import { o as D } from "./keys-mFiJ5N0_.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
|
|
@@ -11,17 +11,17 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
|
|
|
11
11
|
},
|
|
12
12
|
setup(i) {
|
|
13
13
|
let A = {
|
|
14
|
-
title:
|
|
15
|
-
paragraph:
|
|
16
|
-
image:
|
|
17
|
-
video:
|
|
14
|
+
title: b,
|
|
15
|
+
paragraph: C,
|
|
16
|
+
image: v,
|
|
17
|
+
video: S,
|
|
18
18
|
button: p,
|
|
19
|
-
divider:
|
|
19
|
+
divider: T,
|
|
20
20
|
social: h,
|
|
21
|
-
menu:
|
|
22
|
-
table:
|
|
23
|
-
spacer:
|
|
24
|
-
html:
|
|
21
|
+
menu: x,
|
|
22
|
+
table: w,
|
|
23
|
+
spacer: y,
|
|
24
|
+
html: m,
|
|
25
25
|
custom: E
|
|
26
26
|
}, j = i, M = f(D, null), N = a(() => {
|
|
27
27
|
switch (j.block.columns) {
|
|
@@ -77,17 +77,17 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
|
|
|
77
77
|
setup(r) {
|
|
78
78
|
let i = f(D), a = {
|
|
79
79
|
section: A,
|
|
80
|
-
title:
|
|
81
|
-
paragraph:
|
|
82
|
-
image:
|
|
83
|
-
video:
|
|
80
|
+
title: b,
|
|
81
|
+
paragraph: C,
|
|
82
|
+
image: v,
|
|
83
|
+
video: S,
|
|
84
84
|
button: p,
|
|
85
|
-
divider:
|
|
85
|
+
divider: T,
|
|
86
86
|
social: h,
|
|
87
|
-
menu:
|
|
88
|
-
table:
|
|
89
|
-
spacer:
|
|
90
|
-
html:
|
|
87
|
+
menu: x,
|
|
88
|
+
table: w,
|
|
89
|
+
spacer: y,
|
|
90
|
+
html: m,
|
|
91
91
|
custom: E
|
|
92
92
|
};
|
|
93
93
|
function o(e) {
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
1
|
+
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as ee, st as h, t as te, v as g, z as ne } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
|
+
import { t as _ } from "./dist-Cgry6fNv.js";
|
|
3
|
+
import { t as re } from "./useI18n-CTs_bP9d.js";
|
|
4
|
+
import { t as ie } from "./x-CGjkjdKK.js";
|
|
5
|
+
import { h as v, m as y, p as b, u as ae } from "./styleConstants-lGobwiLH.js";
|
|
5
6
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
6
|
-
var
|
|
7
|
+
var x = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, S = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
7
8
|
360 / (Math.PI * 2);
|
|
8
|
-
var
|
|
9
|
+
var C = (e) => j(w(e)), w = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
9
10
|
r: parseInt(e[0] + e[0], 16),
|
|
10
11
|
g: parseInt(e[1] + e[1], 16),
|
|
11
12
|
b: parseInt(e[2] + e[2], 16),
|
|
12
|
-
a: e.length === 4 ?
|
|
13
|
+
a: e.length === 4 ? S(parseInt(e[3] + e[3], 16) / 255, 2) : 1
|
|
13
14
|
} : {
|
|
14
15
|
r: parseInt(e.substring(0, 2), 16),
|
|
15
16
|
g: parseInt(e.substring(2, 4), 16),
|
|
16
17
|
b: parseInt(e.substring(4, 6), 16),
|
|
17
|
-
a: e.length === 8 ?
|
|
18
|
-
}),
|
|
18
|
+
a: e.length === 8 ? S(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
19
|
+
}), T = (e) => A(O(e)), E = ({ h: e, s: t, v: n, a: r }) => {
|
|
19
20
|
let i = (200 - t) * n / 100;
|
|
20
21
|
return {
|
|
21
|
-
h:
|
|
22
|
-
s:
|
|
23
|
-
l:
|
|
24
|
-
a:
|
|
22
|
+
h: S(e),
|
|
23
|
+
s: S(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
|
|
24
|
+
l: S(i / 2),
|
|
25
|
+
a: S(r, 2)
|
|
25
26
|
};
|
|
26
27
|
}, D = (e) => {
|
|
27
|
-
let { h: t, s: n, l: r } =
|
|
28
|
+
let { h: t, s: n, l: r } = E(e);
|
|
28
29
|
return `hsl(${t}, ${n}%, ${r}%)`;
|
|
29
30
|
}, O = ({ h: e, s: t, v: n, a: r }) => {
|
|
30
31
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
31
32
|
let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
|
|
32
33
|
return {
|
|
33
|
-
r:
|
|
34
|
+
r: S([
|
|
34
35
|
n,
|
|
35
36
|
o,
|
|
36
37
|
a,
|
|
@@ -38,7 +39,7 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
38
39
|
s,
|
|
39
40
|
n
|
|
40
41
|
][c] * 255),
|
|
41
|
-
g:
|
|
42
|
+
g: S([
|
|
42
43
|
s,
|
|
43
44
|
n,
|
|
44
45
|
n,
|
|
@@ -46,7 +47,7 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
46
47
|
a,
|
|
47
48
|
a
|
|
48
49
|
][c] * 255),
|
|
49
|
-
b:
|
|
50
|
+
b: S([
|
|
50
51
|
a,
|
|
51
52
|
a,
|
|
52
53
|
s,
|
|
@@ -54,27 +55,27 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
54
55
|
n,
|
|
55
56
|
o
|
|
56
57
|
][c] * 255),
|
|
57
|
-
a:
|
|
58
|
+
a: S(r, 2)
|
|
58
59
|
};
|
|
59
60
|
}, k = (e) => {
|
|
60
61
|
let t = e.toString(16);
|
|
61
62
|
return t.length < 2 ? "0" + t : t;
|
|
62
63
|
}, A = ({ r: e, g: t, b: n, a: r }) => {
|
|
63
|
-
let i = r < 1 ? k(
|
|
64
|
+
let i = r < 1 ? k(S(r * 255)) : "";
|
|
64
65
|
return "#" + k(e) + k(t) + k(n) + i;
|
|
65
66
|
}, j = ({ r: e, g: t, b: n, a: r }) => {
|
|
66
67
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
67
68
|
return {
|
|
68
|
-
h:
|
|
69
|
-
s:
|
|
70
|
-
v:
|
|
69
|
+
h: S(60 * (o < 0 ? o + 6 : o)),
|
|
70
|
+
s: S(i ? a / i * 100 : 0),
|
|
71
|
+
v: S(i / 255 * 100),
|
|
71
72
|
a: r
|
|
72
73
|
};
|
|
73
74
|
}, M = (e, t) => {
|
|
74
75
|
if (e === t) return !0;
|
|
75
76
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
76
77
|
return !0;
|
|
77
|
-
}, oe = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(
|
|
78
|
+
}, oe = (e, t) => e.toLowerCase() === t.toLowerCase() ? !0 : M(w(e), w(t)), N = {}, P = (e) => {
|
|
78
79
|
let t = N[e];
|
|
79
80
|
return t || (t = document.createElement("template"), t.innerHTML = e, N[e] = t), t;
|
|
80
81
|
}, F = (e, t, n) => {
|
|
@@ -85,8 +86,8 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
85
86
|
}, I = !1, L = (e) => "touches" in e, R = (e) => I && !L(e) ? !1 : (I ||= L(e), !0), z = (e, t) => {
|
|
86
87
|
let n = L(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
87
88
|
F(e.el, "move", e.getMove({
|
|
88
|
-
x:
|
|
89
|
-
y:
|
|
89
|
+
x: x((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
90
|
+
y: x((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
90
91
|
}));
|
|
91
92
|
}, B = (e, t) => {
|
|
92
93
|
let n = t.keyCode;
|
|
@@ -143,10 +144,10 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
143
144
|
v: 100,
|
|
144
145
|
a: 1
|
|
145
146
|
})
|
|
146
|
-
}]), this.el.setAttribute("aria-valuenow", `${
|
|
147
|
+
}]), this.el.setAttribute("aria-valuenow", `${S(e)}`);
|
|
147
148
|
}
|
|
148
149
|
getMove(e, t) {
|
|
149
|
-
return { h: t ?
|
|
150
|
+
return { h: t ? x(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
150
151
|
}
|
|
151
152
|
}, U = class extends V {
|
|
152
153
|
constructor(e) {
|
|
@@ -162,12 +163,12 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
162
163
|
s: 100,
|
|
163
164
|
v: 100,
|
|
164
165
|
a: 1
|
|
165
|
-
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${
|
|
166
|
+
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${S(e.s)}%, Brightness ${S(e.v)}%`);
|
|
166
167
|
}
|
|
167
168
|
getMove(e, t) {
|
|
168
169
|
return {
|
|
169
|
-
s: t ?
|
|
170
|
-
v: t ?
|
|
170
|
+
s: t ? x(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
|
|
171
|
+
v: t ? x(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
171
172
|
};
|
|
172
173
|
}
|
|
173
174
|
}, W = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", G = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", K = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", q = Symbol("same"), J = Symbol("color"), Y = Symbol("hsva"), X = Symbol("update"), Z = Symbol("parts"), Q = Symbol("css"), $ = Symbol("sliders"), se = class extends HTMLElement {
|
|
@@ -225,8 +226,8 @@ var re = (e) => j(E(e)), E = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
225
226
|
}
|
|
226
227
|
}, ce = {
|
|
227
228
|
defaultColor: "#000",
|
|
228
|
-
toHsva:
|
|
229
|
-
fromHsva: ({ h: e, s: t, v: n }) =>
|
|
229
|
+
toHsva: C,
|
|
230
|
+
fromHsva: ({ h: e, s: t, v: n }) => T({
|
|
230
231
|
h: e,
|
|
231
232
|
s: t,
|
|
232
233
|
v: n,
|
|
@@ -246,17 +247,20 @@ var de = [
|
|
|
246
247
|
"disabled",
|
|
247
248
|
"aria-label",
|
|
248
249
|
"aria-expanded"
|
|
249
|
-
], fe =
|
|
250
|
+
], fe = {
|
|
251
|
+
key: 0,
|
|
252
|
+
class: "tpl:relative tpl:flex-1"
|
|
253
|
+
}, pe = [
|
|
250
254
|
"value",
|
|
251
255
|
"placeholder",
|
|
252
256
|
"disabled",
|
|
253
257
|
"aria-label"
|
|
254
|
-
],
|
|
258
|
+
], me = ["aria-label", "title"], he = ["color", "aria-label"], ge = /* @__PURE__ */ o({
|
|
255
259
|
__name: "ColorPicker",
|
|
256
260
|
props: {
|
|
257
261
|
modelValue: {},
|
|
258
|
-
placeholder: { default:
|
|
259
|
-
|
|
262
|
+
placeholder: { default: "" },
|
|
263
|
+
seedColor: { default: "#ffffff" },
|
|
260
264
|
swatchOnly: {
|
|
261
265
|
type: Boolean,
|
|
262
266
|
default: !1
|
|
@@ -268,24 +272,30 @@ var de = [
|
|
|
268
272
|
},
|
|
269
273
|
emits: ["update:modelValue"],
|
|
270
274
|
setup(t, { emit: n }) {
|
|
271
|
-
let r = t, o = n, { t: u } =
|
|
272
|
-
|
|
275
|
+
let r = t, o = n, { t: u } = re(), p = i(!1), h = i(), v = i(), y = i(!1);
|
|
276
|
+
_(h, () => {
|
|
273
277
|
p.value = !1;
|
|
274
|
-
}, { ignore: [
|
|
275
|
-
let b = s(
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
function
|
|
280
|
-
|
|
278
|
+
}, { ignore: [v] });
|
|
279
|
+
let b = s(() => !r.modelValue), x = s(() => r.modelValue || r.seedColor), S = s(() => !r.swatchOnly && !r.disabled && !b.value);
|
|
280
|
+
function C(e) {
|
|
281
|
+
y.value = !0, o("update:modelValue", e.detail.value);
|
|
282
|
+
}
|
|
283
|
+
function w() {
|
|
284
|
+
y.value = !1;
|
|
285
|
+
}
|
|
286
|
+
function T() {
|
|
287
|
+
!y.value && b.value && o("update:modelValue", x.value);
|
|
288
|
+
}
|
|
289
|
+
function E(e) {
|
|
290
|
+
o("update:modelValue", e.target.value);
|
|
281
291
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
292
|
+
function D() {
|
|
293
|
+
o("update:modelValue", "");
|
|
284
294
|
}
|
|
285
|
-
return (n, r) => (e(), l("div", { class: a(["tpl:flex tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
295
|
+
return (n, r) => (e(), l("div", { class: a(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", t.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
286
296
|
c("button", {
|
|
287
297
|
ref_key: "swatchRef",
|
|
288
|
-
ref:
|
|
298
|
+
ref: v,
|
|
289
299
|
type: "button",
|
|
290
300
|
disabled: t.disabled,
|
|
291
301
|
"aria-label": m(u).colorPicker.pickColor,
|
|
@@ -294,24 +304,34 @@ var de = [
|
|
|
294
304
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
295
305
|
t.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
296
306
|
p.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !t.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
|
|
297
|
-
|
|
307
|
+
"tpl:size-10"
|
|
298
308
|
]),
|
|
299
309
|
onClick: r[0] ||= (e) => !t.disabled && (p.value = !p.value)
|
|
300
310
|
}, [c("span", {
|
|
301
|
-
class: "tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]",
|
|
302
|
-
style: f({ backgroundColor:
|
|
303
|
-
}, null,
|
|
304
|
-
t.swatchOnly ? d("", !0) : (e(), l("input", {
|
|
305
|
-
key: 0,
|
|
311
|
+
class: a(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": b.value }]),
|
|
312
|
+
style: f(b.value ? void 0 : { backgroundColor: t.modelValue })
|
|
313
|
+
}, null, 6)], 10, de),
|
|
314
|
+
t.swatchOnly ? d("", !0) : (e(), l("div", fe, [c("input", {
|
|
306
315
|
type: "text",
|
|
307
|
-
class: a(m(
|
|
316
|
+
class: a([m(ae), "tpl:w-full"]),
|
|
317
|
+
style: f(S.value ? { paddingRight: "2.25rem" } : void 0),
|
|
308
318
|
value: t.modelValue,
|
|
309
|
-
placeholder: t.placeholder,
|
|
319
|
+
placeholder: t.placeholder || m(u).colorPicker.notSet,
|
|
310
320
|
disabled: t.disabled,
|
|
311
321
|
"aria-label": m(u).colorPicker.hexValue,
|
|
312
|
-
onInput:
|
|
313
|
-
}, null,
|
|
314
|
-
|
|
322
|
+
onInput: E
|
|
323
|
+
}, null, 46, pe), S.value ? (e(), l("button", {
|
|
324
|
+
key: 0,
|
|
325
|
+
type: "button",
|
|
326
|
+
"aria-label": m(u).colorPicker.clear,
|
|
327
|
+
title: m(u).colorPicker.clear,
|
|
328
|
+
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
|
|
329
|
+
onClick: D
|
|
330
|
+
}, [g(m(ie), {
|
|
331
|
+
size: 14,
|
|
332
|
+
"stroke-width": 1.5
|
|
333
|
+
})], 8, me)) : d("", !0)])),
|
|
334
|
+
g(te, {
|
|
315
335
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
316
336
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
317
337
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -319,27 +339,29 @@ var de = [
|
|
|
319
339
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
320
340
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
321
341
|
}, {
|
|
322
|
-
default:
|
|
342
|
+
default: ne(() => [p.value ? (e(), l("div", {
|
|
323
343
|
key: 0,
|
|
324
344
|
ref_key: "popoverRef",
|
|
325
|
-
ref:
|
|
345
|
+
ref: h,
|
|
326
346
|
class: "tpl:absolute tpl:left-0 tpl:top-full tpl:z-50 tpl:mt-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg"
|
|
327
347
|
}, [c("hex-color-picker", {
|
|
328
|
-
color:
|
|
348
|
+
color: x.value,
|
|
329
349
|
"aria-label": m(u).colorPicker.pickColor,
|
|
330
|
-
onColorChanged:
|
|
331
|
-
|
|
332
|
-
|
|
350
|
+
onColorChanged: C,
|
|
351
|
+
onPointerdown: w,
|
|
352
|
+
onPointerup: T,
|
|
353
|
+
onKeydown: r[1] ||= ee((e) => p.value = !1, ["escape"])
|
|
354
|
+
}, null, 40, he)], 512)) : d("", !0)]),
|
|
333
355
|
_: 1
|
|
334
356
|
})
|
|
335
357
|
], 2));
|
|
336
358
|
}
|
|
337
|
-
}),
|
|
359
|
+
}), _e = [
|
|
338
360
|
"aria-checked",
|
|
339
361
|
"aria-label",
|
|
340
362
|
"title",
|
|
341
363
|
"onClick"
|
|
342
|
-
],
|
|
364
|
+
], ve = { key: 1 }, ye = /* @__PURE__ */ o({
|
|
343
365
|
__name: "SlidingPillSelect",
|
|
344
366
|
props: {
|
|
345
367
|
options: {},
|
|
@@ -382,22 +404,22 @@ var de = [
|
|
|
382
404
|
key: 0,
|
|
383
405
|
size: 14,
|
|
384
406
|
"stroke-width": 2
|
|
385
|
-
})) : (e(), l("span",
|
|
407
|
+
})) : (e(), l("span", ve, h(n.label), 1))], 12, _e))), 128))], 4));
|
|
386
408
|
}
|
|
387
|
-
}),
|
|
409
|
+
}), be = { class: "tpl:mb-3.5" }, xe = /* @__PURE__ */ o({
|
|
388
410
|
__name: "FieldRow",
|
|
389
411
|
props: { label: {} },
|
|
390
412
|
setup(t) {
|
|
391
|
-
return (n, i) => (e(), l("div",
|
|
413
|
+
return (n, i) => (e(), l("div", be, [t.label ? (e(), l("label", {
|
|
392
414
|
key: 0,
|
|
393
|
-
class: a(m(
|
|
394
|
-
},
|
|
415
|
+
class: a(m(v))
|
|
416
|
+
}, h(t.label), 3)) : d("", !0), r(n.$slots, "default")]));
|
|
395
417
|
}
|
|
396
|
-
}),
|
|
418
|
+
}), Se = { class: "tpl:flex tpl:items-stretch" }, Ce = [
|
|
397
419
|
"value",
|
|
398
420
|
"min",
|
|
399
421
|
"max"
|
|
400
|
-
],
|
|
422
|
+
], we = /* @__PURE__ */ o({
|
|
401
423
|
__name: "NumberWithSuffix",
|
|
402
424
|
props: {
|
|
403
425
|
modelValue: {},
|
|
@@ -408,15 +430,15 @@ var de = [
|
|
|
408
430
|
emits: ["update:modelValue"],
|
|
409
431
|
setup(t, { emit: n }) {
|
|
410
432
|
let r = n;
|
|
411
|
-
return (n, i) => (e(), l("div",
|
|
433
|
+
return (n, i) => (e(), l("div", Se, [c("input", {
|
|
412
434
|
type: "number",
|
|
413
|
-
class: a(m(
|
|
435
|
+
class: a(m(b)),
|
|
414
436
|
value: t.modelValue,
|
|
415
437
|
min: t.min,
|
|
416
438
|
max: t.max,
|
|
417
439
|
onInput: i[0] ||= (e) => r("update:modelValue", Number(e.target.value))
|
|
418
|
-
}, null, 42,
|
|
440
|
+
}, null, 42, Ce), c("span", { class: a(m(y)) }, h(t.suffix), 3)]));
|
|
419
441
|
}
|
|
420
442
|
});
|
|
421
443
|
//#endregion
|
|
422
|
-
export {
|
|
444
|
+
export { ge as i, xe as n, ye as r, we as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-B2k01iQh.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as T } from "./dist-
|
|
2
|
+
import { T as S, w as C, x as w } from "./useEditorCore-DKYZ7aKk.js";
|
|
3
|
+
import { t as T } from "./dist-Cgry6fNv.js";
|
|
4
4
|
import { A as E, M as D, N as O, g as ee, x as te } from "./keys-mFiJ5N0_.js";
|
|
5
5
|
import { t as k } from "./useI18n-CTs_bP9d.js";
|
|
6
6
|
import { t as A } from "./createLucideIcon-CmPAC-gt.js";
|
|
@@ -166,8 +166,8 @@ var R = A("list-ordered", [
|
|
|
166
166
|
__name: "EmojiPickerDropdown",
|
|
167
167
|
emits: ["insert"],
|
|
168
168
|
setup(t, { emit: n }) {
|
|
169
|
-
let a = n, { categories: s, isOpen: m, toggle: h, close: y } =
|
|
170
|
-
|
|
169
|
+
let a = n, { categories: s, isOpen: m, toggle: h, close: y } = C(), { t: x, format: w } = k(), E = i(null), D = i(null);
|
|
170
|
+
S(E, l(() => m.value)), T(D, () => {
|
|
171
171
|
m.value && y();
|
|
172
172
|
});
|
|
173
173
|
function O(e) {
|
|
@@ -206,7 +206,7 @@ var R = A("list-ordered", [
|
|
|
206
206
|
}, [u("div", q, v(g(x).emoji[t.key]), 1), u("div", J, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
|
|
207
207
|
key: t,
|
|
208
208
|
type: "button",
|
|
209
|
-
"aria-label": g(
|
|
209
|
+
"aria-label": g(w)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
210
210
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
211
211
|
onClick: (e) => O(t)
|
|
212
212
|
}, v(t), 9, Y))), 128))])]))), 128))], 40, K)) : p("", !0)], 512));
|
|
@@ -580,7 +580,7 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
580
580
|
},
|
|
581
581
|
emits: ["done"],
|
|
582
582
|
setup(t, { emit: r }) {
|
|
583
|
-
let i = t, a = r, o = L(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown:
|
|
583
|
+
let i = t, a = r, o = L(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: C, handleAddMergeTag: T } = w({
|
|
584
584
|
blockId: () => i.block.id,
|
|
585
585
|
blockContent: () => i.block.content,
|
|
586
586
|
onDone: () => a("done"),
|
|
@@ -682,7 +682,7 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
682
682
|
onClose: g(S),
|
|
683
683
|
onInsert: g(y),
|
|
684
684
|
onRemove: g(x),
|
|
685
|
-
onKeydown: g(
|
|
685
|
+
onKeydown: g(C)
|
|
686
686
|
}, null, 8, [
|
|
687
687
|
"visible",
|
|
688
688
|
"is-editing-link",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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-B2k01iQh.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DKYZ7aKk.js";
|
|
3
3
|
import { D as y, N as b, m as x } from "./keys-mFiJ5N0_.js";
|
|
4
4
|
import { t as S } from "./useI18n-CTs_bP9d.js";
|
|
5
5
|
import { t as te } from "./loader-circle-CDF8eR_Q.js";
|
|
6
6
|
import { n as ne } from "./useCloudI18n-L3H2XvdW.js";
|
|
7
|
-
import { t as C } from "./TplModal-
|
|
7
|
+
import { t as C } from "./TplModal-BYb-X5Bj.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",
|