@aswin.dev/editor 0.8.5 → 0.8.9
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-COL6Wm7p.js → AccessibilityPanel-B39ct5ON.js} +2 -2
- package/dist/{AiChatSidebar-DAJOuHPG.js → AiChatSidebar-CYh7SPHW.js} +2 -2
- package/dist/{AiFeatureMenu-CKnEDzme.js → AiFeatureMenu-D9UhqJAa.js} +3 -3
- package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-Dr854uEe.js} +2 -2
- package/dist/{CloudEditor-BUlmUuhO.js → CloudEditor-BNEIze18.js} +281 -274
- package/dist/{CollaboratorBar-C6TfqpyV.js → CollaboratorBar-DZXuPSfU.js} +2 -2
- package/dist/{CommentsSidebar-DE6ZsM4D.js → CommentsSidebar-BVKFtxml.js} +4 -4
- package/dist/{CountdownBlock-Ba3T-i2X.js → CountdownBlock-CrpaDWze.js} +1 -1
- package/dist/{CountdownToolbar-B9IAZzeV.js → CountdownToolbar-D1tb2T_b.js} +2 -2
- package/dist/{DesignReferenceSidebar-C6yDJlD8.js → DesignReferenceSidebar-_QsmFpE_.js} +44 -44
- package/dist/{ModuleBrowserModal-DUKuDjS-.js → ModuleBrowserModal-Bth1crh_.js} +7 -7
- package/dist/{ModulePreviewCanvas-C9HTjfkN.js → ModulePreviewCanvas-96pndrb9.js} +3 -3
- package/dist/{ParagraphEditor-CFuaZKGk.js → ParagraphEditor-C2d9O2P4.js} +123 -123
- package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-Cn0ZU41b.js} +3 -3
- package/dist/{SaveModuleDialog-QjgPFEDg.js → SaveModuleDialog-B1EJtMGq.js} +17 -17
- package/dist/{SlidingPillSelect-DfcBdJqN.js → SlidingPillSelect-Dt34f5VF.js} +1 -1
- package/dist/{SnapshotHistory-Dblt21_W.js → SnapshotHistory-Cd-a_xGv.js} +3 -3
- package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-C8WixDsv.js} +77 -77
- package/dist/{TestEmailModal-D_y3ZksG.js → TestEmailModal-CEj_81cQ.js} +3 -3
- package/dist/TitleEditor-C8Qyr_U3.js +172 -0
- package/dist/{TplModal-DinL7DhQ.js → TplModal-B_HcUS4S.js} +2 -2
- package/dist/{blockTypeIcons-JjmIZ_Vx.js → blockTypeIcons-CeaSm2Xd.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js → AccessibilityPanel-C8vY7QIF.js} +3 -3
- package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js.map → AccessibilityPanel-C8vY7QIF.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js → AiFeatureMenu-BaUpnF6T.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js.map → AiFeatureMenu-BaUpnF6T.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js → BlockA11yBadge-BHkh4Otq.js} +2 -2
- package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js.map → BlockA11yBadge-BHkh4Otq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BBBkTBfW.js → CloudEditor-DUIjZDAS.js} +264 -257
- package/dist/cdn/chunks/{CloudEditor-BBBkTBfW.js.map → CloudEditor-DUIjZDAS.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js → CollaboratorBar-pyuEO5Bm.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js.map → CollaboratorBar-pyuEO5Bm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js → CountdownToolbar-CCGHm6Gg.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js.map → CountdownToolbar-CCGHm6Gg.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js → ModuleBrowserModal-DKsMddYS.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js.map → ModuleBrowserModal-DKsMddYS.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js → ModulePreviewCanvas-E0mfCUJi.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js.map → ModulePreviewCanvas-E0mfCUJi.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BX2L35YF.js → ParagraphEditor-DwmzHg6F.js} +116 -116
- package/dist/cdn/chunks/ParagraphEditor-DwmzHg6F.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js → RichTextEditorContent-4-cNqB4H.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js.map → RichTextEditorContent-4-cNqB4H.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js → SaveModuleDialog-COm3ptOF.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js.map → SaveModuleDialog-COm3ptOF.js.map} +1 -1
- package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js → SlidingPillSelect-DlgRynQN.js} +2 -2
- package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js.map → SlidingPillSelect-DlgRynQN.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-CE8r8txX.js +171 -0
- package/dist/cdn/chunks/TitleEditor-CE8r8txX.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js → blockTypeIcons-BOf7hTFU.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js.map → blockTypeIcons-BOf7hTFU.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CdYSoz4B.js → extensions-B5e8Ov02.js} +17 -17
- package/dist/cdn/chunks/{extensions-CdYSoz4B.js.map → extensions-B5e8Ov02.js.map} +1 -1
- package/dist/cdn/chunks/{features-BZeMkHMs.js → features-BHTP4oRU.js} +734 -734
- package/dist/cdn/chunks/features-BHTP4oRU.js.map +1 -0
- package/dist/cdn/chunks/{icons-nP0Wj6Eq.js → icons-DS4IYWzG.js} +2 -2
- package/dist/cdn/chunks/{icons-nP0Wj6Eq.js.map → icons-DS4IYWzG.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-54Ezt5wL.js → media-library-BLLJsLwk.js} +508 -508
- package/dist/cdn/chunks/{media-library-54Ezt5wL.js.map → media-library-BLLJsLwk.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Di1pUcCW.js → quality-DfKLOn8j.js} +290 -290
- package/dist/cdn/chunks/{quality-Di1pUcCW.js.map → quality-DfKLOn8j.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-C4OuJhDG.js → renderer-fG9yLafB.js} +14 -14
- package/dist/cdn/chunks/{renderer-C4OuJhDG.js.map → renderer-fG9yLafB.js.map} +1 -1
- package/dist/cdn/chunks/{src-DF5NNH7S.js → src-DsfVhQaK.js} +4 -4
- package/dist/cdn/chunks/{src-DF5NNH7S.js.map → src-DsfVhQaK.js.map} +1 -1
- package/dist/cdn/chunks/{styles-C9P3yzMF.js → styles-CPUuKOlD.js} +210 -210
- package/dist/cdn/chunks/{styles-C9P3yzMF.js.map → styles-CPUuKOlD.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js → tiptap-q69oUYhb.js} +2 -2
- package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js.map → tiptap-q69oUYhb.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +130 -123
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-CNPdJw_8.js → extensions-mwqd2u9M.js} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/keys-CqdzeWhT.js +10 -0
- package/dist/style.css +1 -1
- package/dist/{styles-ZIYLQwFf.js → styles-BRNubGRJ.js} +287 -287
- package/dist/templatical-editor.js +134 -127
- package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-CDhjmAgB.js} +1 -1
- package/dist/{useEditorCore-BHSyoxSK.js → useEditorCore-DB4A_cje.js} +22 -22
- package/dist/{useI18n-C2xQZ6K9.js → useI18n-DLZJ6wNn.js} +1 -1
- package/dist/{useMergeTag-BfVcyNSv.js → useMergeTag-D-kqWENN.js} +2 -2
- package/package.json +7 -7
- package/dist/TitleEditor-CHmL3FFR.js +0 -172
- package/dist/cdn/chunks/ParagraphEditor-BX2L35YF.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BTtgZzci.js +0 -171
- package/dist/cdn/chunks/TitleEditor-BTtgZzci.js.map +0 -1
- package/dist/cdn/chunks/features-BZeMkHMs.js.map +0 -1
- package/dist/keys-CvX8D-8C.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as e, F as t, Ft as n, N as r, _ as i, f as a, g as o, h as s, jt as c, m as l, st as u, v as d } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DB4A_cje.js";
|
|
3
3
|
import { t as f } from "./createLucideIcon-ClREiSx3.js";
|
|
4
|
-
import { n as p } from "./useCloudI18n-
|
|
4
|
+
import { n as p } from "./useCloudI18n-CDhjmAgB.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-C_9OpzBw.js";
|
|
6
6
|
var h = f("wifi-off", [
|
|
7
7
|
["path", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 ee, c as l, et as u, f as d, g as f, h as p, jt as te, k as ne, m, st as h, t as g, v as _, x as v } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as oe } from "./useI18n-
|
|
2
|
+
import { h as re, i as ie, j as y, u as ae } from "./keys-CqdzeWhT.js";
|
|
3
|
+
import { t as oe } from "./useI18n-DLZJ6wNn.js";
|
|
4
4
|
import { t as b } from "./createLucideIcon-ClREiSx3.js";
|
|
5
5
|
import { n as se, t as x } from "./pencil-Bpimrzzw.js";
|
|
6
6
|
import { t as ce } from "./chevron-down-C5oBUhT8.js";
|
|
@@ -10,7 +10,7 @@ import { t as w } from "./send-D2eSo4GH.js";
|
|
|
10
10
|
import { t as T } from "./trash-2-CtK2apEH.js";
|
|
11
11
|
import { t as E } from "./x-BkaOMosX.js";
|
|
12
12
|
import { t as le } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
13
|
-
import { n as ue } from "./useCloudI18n-
|
|
13
|
+
import { n as ue } from "./useCloudI18n-CDhjmAgB.js";
|
|
14
14
|
import { t as de } from "./formatRelativeTime-BhhO8yCl.js";
|
|
15
15
|
var fe = b("chevron-up", [["path", {
|
|
16
16
|
d: "m18 15-6-6-6 6",
|
|
@@ -94,7 +94,7 @@ var fe = b("chevron-up", [["path", {
|
|
|
94
94
|
props: { visible: { type: Boolean } },
|
|
95
95
|
emits: ["close", "filterBlock"],
|
|
96
96
|
setup(t, { expose: b, emit: le }) {
|
|
97
|
-
let D = t, O = le, { format: k } = oe(), { t: A } = ue(), j = y(
|
|
97
|
+
let D = t, O = le, { format: k } = oe(), { t: A } = ue(), j = y(re, "CommentsSidebar"), St = y(ie, "CommentsSidebar"), M = y(ae, "CommentsSidebar"), N = u("unresolved"), P = u(null), F = u(""), I = u(null), L = u(""), R = u(null), z = u(""), B = u(/* @__PURE__ */ new Set()), V = u(null), H = u(null), Ct = m(() => St.userConfig?.id ?? null), wt = m(() => {
|
|
98
98
|
let e = /* @__PURE__ */ new Set();
|
|
99
99
|
for (let t of j.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
|
|
100
100
|
return e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BZGGJVDF.js";
|
|
2
2
|
import { C as t, F as n, Ft as r, N as i, R as a, V as o, _ as s, et as c, f as l, g as u, h as d, it as f, jt as p, m, st as h, v as g, y as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
3
3
|
import { l as v } from "./dist-Djgi0A6k.js";
|
|
4
|
-
import { t as y } from "./useI18n-
|
|
4
|
+
import { t as y } from "./useI18n-DLZJ6wNn.js";
|
|
5
5
|
import { t as b } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
6
6
|
//#region src/composables/useCountdownTimer.ts
|
|
7
7
|
var x = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, f as o, g as s, h as c, m as l, st as u, v as d, x as f } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import { t as p } from "./useI18n-
|
|
2
|
+
import { t as p } from "./useI18n-DLZJ6wNn.js";
|
|
3
3
|
import { f as m } from "./styleConstants-34eUKPOZ.js";
|
|
4
|
-
import { a as h, i as g, n as _, r as v, t as y } from "./SlidingPillSelect-
|
|
4
|
+
import { a as h, i as g, n as _, r as v, t as y } from "./SlidingPillSelect-Dt34f5VF.js";
|
|
5
5
|
//#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
|
|
7
7
|
"value",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { A as e, At as t, C as n, Ft as r, N as i, U as ee, V as a, W as te, _ as o, b as s, c as ne, et as c, g as re, h as l, jt as u, m as ie, st as d, t as ae, v as f, x as p } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
2
|
import "./timeouts-BSGxjuUF.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { u as
|
|
12
|
-
var
|
|
3
|
+
import { h as oe, i as se, j as m } from "./keys-CqdzeWhT.js";
|
|
4
|
+
import { t as h } from "./createLucideIcon-ClREiSx3.js";
|
|
5
|
+
import { t as ce } from "./circle-alert-ZQQc98HC.js";
|
|
6
|
+
import { t as g } from "./image-up-DT7gcJLN.js";
|
|
7
|
+
import { t as _ } from "./x-BkaOMosX.js";
|
|
8
|
+
import { t as le } from "./LoadingTrack-Ba2pfF57.js";
|
|
9
|
+
import { t as v } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
10
|
+
import { n as ue } from "./useCloudI18n-CDhjmAgB.js";
|
|
11
|
+
import { u as de } from "./cloud-9i5Nj7rp.js";
|
|
12
|
+
var fe = h("file-image", [
|
|
13
13
|
["path", {
|
|
14
14
|
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
15
|
key: "1oefj6"
|
|
@@ -28,7 +28,7 @@ var de = g("file-image", [
|
|
|
28
28
|
d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
|
|
29
29
|
key: "wt3hpn"
|
|
30
30
|
}]
|
|
31
|
-
]),
|
|
31
|
+
]), y = h("file-text", [
|
|
32
32
|
["path", {
|
|
33
33
|
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
34
|
key: "1oefj6"
|
|
@@ -49,7 +49,7 @@ var de = g("file-image", [
|
|
|
49
49
|
d: "M16 17H8",
|
|
50
50
|
key: "z1uh3a"
|
|
51
51
|
}]
|
|
52
|
-
]),
|
|
52
|
+
]), pe = h("upload", [
|
|
53
53
|
["path", {
|
|
54
54
|
d: "M12 3v12",
|
|
55
55
|
key: "1x0j5s"
|
|
@@ -62,37 +62,37 @@ var de = g("file-image", [
|
|
|
62
62
|
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
63
63
|
key: "ih7n3h"
|
|
64
64
|
}]
|
|
65
|
-
]),
|
|
65
|
+
]), me = {
|
|
66
66
|
key: 0,
|
|
67
67
|
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)]"
|
|
68
|
-
},
|
|
68
|
+
}, he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, ge = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, b = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, x = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
71
|
-
},
|
|
71
|
+
}, S = { class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3" }, C = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, w = {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
74
|
-
},
|
|
74
|
+
}, T = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, E = {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
77
|
-
},
|
|
77
|
+
}, D = { class: "tpl:relative tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, O = ["src", "alt"], k = {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "tpl:flex tpl:h-32 tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2"
|
|
80
|
-
},
|
|
80
|
+
}, A = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, j = { class: "tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, M = { class: "tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, N = ["accept"], P = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, F = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, I = ["placeholder"], L = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:px-3 tpl:py-3 tpl:bg-[var(--tpl-warning-light)] tpl:border tpl:border-[var(--tpl-warning)]"
|
|
83
|
-
},
|
|
83
|
+
}, R = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, _e = { class: "tpl:flex tpl:gap-2" }, ve = {
|
|
84
84
|
key: 1,
|
|
85
85
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
86
|
-
}, ye = ["disabled"], be = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /* @__PURE__ */
|
|
86
|
+
}, ye = ["disabled"], be = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /* @__PURE__ */ v(/* @__PURE__ */ n({
|
|
87
87
|
__name: "DesignReferenceSidebar",
|
|
88
88
|
props: {
|
|
89
89
|
visible: { type: Boolean },
|
|
90
90
|
hasExistingBlocks: { type: Boolean }
|
|
91
91
|
},
|
|
92
92
|
emits: ["close", "apply"],
|
|
93
|
-
setup(n, { emit:
|
|
94
|
-
let
|
|
95
|
-
authManager: m(
|
|
93
|
+
setup(n, { emit: h }) {
|
|
94
|
+
let v = n, z = h, { t: B } = ue(), xe = m(oe, "DesignReferenceSidebar"), V = de({
|
|
95
|
+
authManager: m(se, "DesignReferenceSidebar"),
|
|
96
96
|
getTemplateId: () => xe.state.template?.id ?? null,
|
|
97
97
|
onApply: (e) => z("apply", e)
|
|
98
98
|
}), H = c(null), U = c("image"), W = c(null), G = c(""), K = c(null), q = c(!1), J = c(!1), Y = ie(() => V.isGenerating.value ? !1 : W.value !== null);
|
|
@@ -140,7 +140,7 @@ var de = g("file-image", [
|
|
|
140
140
|
}
|
|
141
141
|
function $() {
|
|
142
142
|
if (!Y.value) return;
|
|
143
|
-
if (
|
|
143
|
+
if (v.hasExistingBlocks && !q.value) {
|
|
144
144
|
q.value = !0;
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
@@ -151,7 +151,7 @@ var de = g("file-image", [
|
|
|
151
151
|
function Ee() {
|
|
152
152
|
q.value = !1;
|
|
153
153
|
}
|
|
154
|
-
return a(() =>
|
|
154
|
+
return a(() => v.visible, (e) => {
|
|
155
155
|
e || (q.value = !1);
|
|
156
156
|
}), e(() => {
|
|
157
157
|
K.value &&= (URL.revokeObjectURL(K.value), null);
|
|
@@ -163,17 +163,17 @@ var de = g("file-image", [
|
|
|
163
163
|
"leave-from-class": "tpl:translate-x-0",
|
|
164
164
|
"leave-to-class": "tpl:translate-x-full"
|
|
165
165
|
}, {
|
|
166
|
-
default: ee(() => [n.visible ? (i(), f("div",
|
|
166
|
+
default: ee(() => [n.visible ? (i(), f("div", me, [l("div", he, [l("div", ge, [p(d(g), {
|
|
167
167
|
size: 13,
|
|
168
168
|
"stroke-width": 2
|
|
169
169
|
}), l("span", null, r(d(B).designReference.title), 1)]), l("button", {
|
|
170
170
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
171
171
|
onClick: a[0] ||= (e) => z("close")
|
|
172
|
-
}, [p(d(
|
|
172
|
+
}, [p(d(_), {
|
|
173
173
|
size: 14,
|
|
174
174
|
"stroke-width": 2
|
|
175
|
-
})])]), l("div",
|
|
176
|
-
l("div",
|
|
175
|
+
})])]), l("div", b, [d(V).isGenerating.value ? (i(), f("div", x, [l("div", S, [p(le), l("p", C, r(d(B).designReference.generating), 1)])])) : (i(), f("div", w, [
|
|
176
|
+
l("div", T, [l("button", {
|
|
177
177
|
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
178
|
style: u({
|
|
179
179
|
backgroundColor: U.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
@@ -181,7 +181,7 @@ var de = g("file-image", [
|
|
|
181
181
|
boxShadow: U.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
182
182
|
}),
|
|
183
183
|
onClick: a[1] ||= (e) => X("image")
|
|
184
|
-
}, [p(d(
|
|
184
|
+
}, [p(d(fe), {
|
|
185
185
|
size: 12,
|
|
186
186
|
"stroke-width": 2
|
|
187
187
|
}), s(" " + r(d(B).designReference.uploadImage), 1)], 4), l("button", {
|
|
@@ -192,23 +192,23 @@ var de = g("file-image", [
|
|
|
192
192
|
boxShadow: U.value === "pdf" ? "var(--tpl-shadow)" : "none"
|
|
193
193
|
}),
|
|
194
194
|
onClick: a[2] ||= (e) => X("pdf")
|
|
195
|
-
}, [p(d(
|
|
195
|
+
}, [p(d(y), {
|
|
196
196
|
size: 12,
|
|
197
197
|
"stroke-width": 2
|
|
198
198
|
}), s(" " + r(d(B).designReference.uploadPdf), 1)], 4)]),
|
|
199
|
-
l("div", null, [W.value ? (i(), f("div",
|
|
199
|
+
l("div", null, [W.value ? (i(), f("div", E, [l("div", D, [K.value ? (i(), f("img", {
|
|
200
200
|
key: 0,
|
|
201
201
|
src: K.value,
|
|
202
202
|
alt: W.value.name,
|
|
203
203
|
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
204
|
-
}, null, 8,
|
|
204
|
+
}, null, 8, O)) : (i(), f("div", k, [p(d(y), {
|
|
205
205
|
size: 32,
|
|
206
206
|
"stroke-width": 1.5,
|
|
207
207
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
208
|
-
}), l("span",
|
|
208
|
+
}), l("span", A, r(W.value.name), 1)])), l("button", {
|
|
209
209
|
class: "tpl:absolute tpl:top-2 tpl:right-2 tpl:rounded-full tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow)]",
|
|
210
210
|
onClick: Q
|
|
211
|
-
}, [p(d(
|
|
211
|
+
}, [p(d(_), {
|
|
212
212
|
size: 12,
|
|
213
213
|
"stroke-width": 2
|
|
214
214
|
})])])])) : (i(), f("div", {
|
|
@@ -223,13 +223,13 @@ var de = g("file-image", [
|
|
|
223
223
|
onDragleave: we,
|
|
224
224
|
onDrop: Te
|
|
225
225
|
}, [
|
|
226
|
-
p(d(
|
|
226
|
+
p(d(pe), {
|
|
227
227
|
size: 24,
|
|
228
228
|
"stroke-width": 1.5,
|
|
229
229
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
230
230
|
}),
|
|
231
|
-
l("span",
|
|
232
|
-
l("span",
|
|
231
|
+
l("span", j, r(d(B).designReference.dropHint), 1),
|
|
232
|
+
l("span", M, r(U.value === "image" ? d(B).designReference.acceptedImages : d(B).designReference.acceptedPdf), 1)
|
|
233
233
|
], 36)), l("input", {
|
|
234
234
|
ref_key: "fileInput",
|
|
235
235
|
ref: H,
|
|
@@ -237,14 +237,14 @@ var de = g("file-image", [
|
|
|
237
237
|
class: "tpl:hidden",
|
|
238
238
|
accept: U.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
239
239
|
onChange: Se
|
|
240
|
-
}, null, 40,
|
|
241
|
-
l("div",
|
|
240
|
+
}, null, 40, N)]),
|
|
241
|
+
l("div", P, [l("label", F, r(d(B).designReference.promptLabel), 1), te(l("textarea", {
|
|
242
242
|
"onUpdate:modelValue": a[4] ||= (e) => G.value = e,
|
|
243
243
|
class: t(["tpl:min-h-[72px] tpl:w-full tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:font-sans tpl:text-sm tpl:outline-none tpl:transition-colors tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", ["tpl-design-prompt-input"]]),
|
|
244
244
|
placeholder: d(B).designReference.promptPlaceholder,
|
|
245
245
|
rows: "3"
|
|
246
|
-
}, null, 8,
|
|
247
|
-
q.value ? (i(), f("div",
|
|
246
|
+
}, null, 8, I), [[ne, G.value]])]),
|
|
247
|
+
q.value ? (i(), f("div", L, [l("p", R, r(d(B).designReference.replaceWarning), 1), l("div", _e, [l("button", {
|
|
248
248
|
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:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
249
249
|
style: { "background-color": "transparent" },
|
|
250
250
|
onClick: Ee
|
|
@@ -252,7 +252,7 @@ var de = g("file-image", [
|
|
|
252
252
|
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
253
|
onClick: $
|
|
254
254
|
}, r(d(B).designReference.replaceConfirm), 1)])])) : o("", !0),
|
|
255
|
-
d(V).error.value ? (i(), f("div", ve, [p(d(
|
|
255
|
+
d(V).error.value ? (i(), f("div", ve, [p(d(ce), {
|
|
256
256
|
size: 14,
|
|
257
257
|
"stroke-width": 2,
|
|
258
258
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -262,7 +262,7 @@ var de = g("file-image", [
|
|
|
262
262
|
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
263
|
disabled: !Y.value,
|
|
264
264
|
onClick: $
|
|
265
|
-
}, [p(d(
|
|
265
|
+
}, [p(d(g), {
|
|
266
266
|
size: 16,
|
|
267
267
|
"stroke-width": 2
|
|
268
268
|
}), s(" " + r(d(B).designReference.generate), 1)], 8, ye)),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { C as e, F as t, Ft as n, N as r, R as i, S as a, U as ee, V as o, W as s, _ as te, c as ne, d as c, et as l, f as u, g as d, h as f, jt as re, m as p, s as ie, st as m, v as h, x as g } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import {
|
|
4
|
-
import { t as se } from "./useI18n-
|
|
2
|
+
import "./useEditorCore-DB4A_cje.js";
|
|
3
|
+
import { E as ae, h as oe, j as _ } from "./keys-CqdzeWhT.js";
|
|
4
|
+
import { t as se } from "./useI18n-DLZJ6wNn.js";
|
|
5
5
|
import { t as v } from "./createLucideIcon-ClREiSx3.js";
|
|
6
|
-
import { n as y, t as b } from "./blockTypeIcons-
|
|
6
|
+
import { n as y, t as b } from "./blockTypeIcons-CeaSm2Xd.js";
|
|
7
7
|
import { t as ce } from "./trash-2-CtK2apEH.js";
|
|
8
8
|
import { t as le } from "./x-BkaOMosX.js";
|
|
9
|
-
import { n as ue } from "./useCloudI18n-
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
9
|
+
import { n as ue } from "./useCloudI18n-CDhjmAgB.js";
|
|
10
|
+
import { t as de } from "./TplModal-B_HcUS4S.js";
|
|
11
11
|
var fe = v("search", [["path", {
|
|
12
12
|
d: "m21 21-4.34-4.34",
|
|
13
13
|
key: "14j7rj"
|
|
@@ -53,7 +53,7 @@ var fe = v("search", [["path", {
|
|
|
53
53
|
props: { visible: { type: Boolean } },
|
|
54
54
|
emits: ["close", "insert"],
|
|
55
55
|
setup(e, { emit: v }) {
|
|
56
|
-
let z = e, B = v, De = a(() => import("./ModulePreviewCanvas-
|
|
56
|
+
let z = e, B = v, De = a(() => import("./ModulePreviewCanvas-96pndrb9.js")), { t: Oe } = se(), { t: V } = ue(), H = _(ae, "ModuleBrowserModal"), U = _(oe, "ModuleBrowserModal"), W = l(""), G = l(null), K = l(null), q = l("end"), J = p(() => {
|
|
57
57
|
let e = H.modules.value;
|
|
58
58
|
if (!W.value) return e;
|
|
59
59
|
let t = W.value.toLowerCase();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as e, D as t, F as n, L as r, N as i, R as a, f as o, g as s, h as c, jt as l, m as u, st as d, v as f } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import { I as p, S as m, _ as h, a as g, b as _, c as v, d as y, g as b, h as x, i as S, m as C, o as w, p as T, s as E, v as D, y as O } from "./useEditorCore-
|
|
3
|
-
import { s as k } from "./keys-
|
|
4
|
-
import { t as A } from "./CountdownBlock-
|
|
2
|
+
import { I as p, S as m, _ as h, a as g, b as _, c as v, d as y, g as b, h as x, i as S, m as C, o as w, p as T, s as E, v as D, y as O } from "./useEditorCore-DB4A_cje.js";
|
|
3
|
+
import { s as k } from "./keys-CqdzeWhT.js";
|
|
4
|
+
import { t as A } from "./CountdownBlock-CrpaDWze.js";
|
|
5
5
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__PURE__ */ e({
|
|
7
7
|
name: "PreviewSectionBlock",
|