@templatical/editor 0.0.2 → 0.0.3
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-XBj5Rw2l.js → AiChatSidebar-busJk9hm.js} +1 -1
- package/dist/{AiFeatureMenu-my1mZ9DL.js → AiFeatureMenu-DLGv_-pj.js} +3 -3
- package/dist/{CloudEditor-BVjgKwq3.js → CloudEditor-BDnHd6Um.js} +176 -197
- package/dist/{CollaboratorBar-BZq_Gv38.js → CollaboratorBar-Dv3l52vC.js} +2 -2
- package/dist/{CommentsSidebar-D9oxqO6l.js → CommentsSidebar-4tjp0VU5.js} +2 -2
- package/dist/{DesignReferenceSidebar-CyHq4SWt.js → DesignReferenceSidebar-CmwXvltV.js} +55 -54
- package/dist/{ModuleBrowserModal-Cus2Hdwl.js → ModuleBrowserModal-lrk3Fr0H.js} +6 -6
- package/dist/{ModulePreviewCanvas-DaByXKY_.js → ModulePreviewCanvas-BcBJLnwL.js} +3 -3
- package/dist/ParagraphEditor-DH8cSC6m.js +625 -0
- package/dist/{RichTextEditorContent-BRpjJ6SV.js → RichTextEditorContent-CQqodi7p.js} +3 -3
- package/dist/{SaveModuleDialog-BIZBQrd8.js → SaveModuleDialog-Bmzi72td.js} +4 -4
- package/dist/{SnapshotHistory-Ds1-QNbx.js → SnapshotHistory-AEgi9Xsn.js} +2 -2
- package/dist/{TemplateScoringPanel-C8XSk_Ys.js → TemplateScoringPanel-CTgMtc0-.js} +2 -2
- package/dist/{TestEmailModal-CCVfaFgV.js → TestEmailModal-Dpq1is9S.js} +3 -3
- package/dist/{TitleEditor-V4qaEULF.js → TitleEditor-CLcDdcWI.js} +7 -7
- package/dist/{TplModal-LT3FXlgs.js → TplModal-CGzRjR96.js} +2 -2
- package/dist/{blockTypeIcons-BujoY5Dl.js → blockTypeIcons-BpPTqcok.js} +1 -1
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js +3 -0
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js.map +1 -0
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js +2 -0
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js.map +1 -0
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js +3 -0
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BfjbWqOx.js → extensions-ea_ewKUl.js} +2 -2
- package/dist/cdn/chunks/{extensions-BfjbWqOx.js.map → extensions-ea_ewKUl.js.map} +1 -1
- package/dist/cdn/chunks/styleConstants-CNejCb-L.js +2 -0
- package/dist/cdn/chunks/{styleConstants-UTJ94gco.js.map → styleConstants-CNejCb-L.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js +2 -0
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js.map +1 -0
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js +2 -0
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js.map +1 -0
- package/dist/cdn/editor.js +1 -1
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{dist-DNjZKe2Z.js → dist-DmpMJbmZ.js} +1 -1
- package/dist/{extensions-BA4NshZQ.js → extensions-CKM99njP.js} +3 -3
- package/dist/{i18n-ikyi28RU.js → i18n-CJsFtdbZ.js} +1 -1
- package/dist/keys-Dwa2PmdD.js +10 -0
- package/dist/{styleConstants-CgtFM9hQ.js → styleConstants-D4SOZGBV.js} +53 -2
- package/dist/{styles-hQgJKM4i.js → styles-DSw1VNU3.js} +592 -592
- package/dist/templatical-editor.css +1 -1
- package/dist/templatical-editor.js +5 -5
- package/dist/templatical-editor.umd.cjs +59 -59
- package/dist/{useEditorCore-DVp5qmtC.js → useEditorCore-Cc4RCwWq.js} +907 -903
- package/dist/{useI18n-DzH4KXDk.js → useI18n-DUirdXEX.js} +2 -2
- package/dist/{useMergeTag-D9zQVE-e.js → useMergeTag-DVnlvPYJ.js} +2 -2
- package/package.json +2 -2
- package/dist/ParagraphEditor-BSyk5B6S.js +0 -670
- package/dist/cdn/chunks/ParagraphEditor-BkJQO-ZW.js +0 -3
- package/dist/cdn/chunks/ParagraphEditor-BkJQO-ZW.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-UGQorJm_.js +0 -2
- package/dist/cdn/chunks/RichTextEditorContent-UGQorJm_.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CC3Adjai.js +0 -3
- package/dist/cdn/chunks/TitleEditor-CC3Adjai.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-UTJ94gco.js +0 -2
- package/dist/cdn/chunks/useEditorCore-DRhPKq_z.js +0 -2
- package/dist/cdn/chunks/useEditorCore-DRhPKq_z.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-CBSlcqnk.js +0 -2
- package/dist/cdn/chunks/useMergeTag-CBSlcqnk.js.map +0 -1
- package/dist/keys-8B5MFafK.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./useEditorCore-
|
|
2
|
-
import { t as e } from "./useI18n-
|
|
1
|
+
import "./useEditorCore-Cc4RCwWq.js";
|
|
2
|
+
import { t as e } from "./useI18n-DUirdXEX.js";
|
|
3
3
|
import { n as t } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
4
4
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeStyle as l, openBlock as u, renderList as d, toDisplayString as f, unref as p } from "vue";
|
|
5
5
|
var m = t("wifi-off", [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, f as t, r as n } from "./keys-
|
|
2
|
-
import { t as r } from "./useI18n-
|
|
1
|
+
import { c as e, f as t, r as n } from "./keys-Dwa2PmdD.js";
|
|
2
|
+
import { t as r } from "./useI18n-DUirdXEX.js";
|
|
3
3
|
import { n as i, t as ee } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
4
4
|
import { t as te } from "./check-B7kDuZmP.js";
|
|
5
5
|
import { t as ne } from "./chevron-down-DJLW2Q9Z.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./timeouts-CmBrLeZA.js";
|
|
2
|
-
import { f as e, r as t } from "./keys-
|
|
3
|
-
import { t as n } from "./useI18n-
|
|
2
|
+
import { f as e, r as t } from "./keys-Dwa2PmdD.js";
|
|
3
|
+
import { t as n } from "./useI18n-DUirdXEX.js";
|
|
4
4
|
import { n as r, t as i } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
5
5
|
import { t as ee } from "./circle-alert-E2vYPs5r.js";
|
|
6
6
|
import { t as a } from "./image-up-X4xIq4ea.js";
|
|
@@ -64,25 +64,25 @@ var ue = r("file-image", [
|
|
|
64
64
|
]), fe = {
|
|
65
65
|
key: 0,
|
|
66
66
|
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)]"
|
|
67
|
-
}, pe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, me = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" },
|
|
67
|
+
}, pe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, me = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, he = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, x = {
|
|
68
68
|
key: 0,
|
|
69
69
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
70
|
-
},
|
|
70
|
+
}, 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 = {
|
|
71
71
|
key: 1,
|
|
72
72
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
73
|
-
},
|
|
73
|
+
}, T = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, E = {
|
|
74
74
|
key: 0,
|
|
75
75
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
76
|
-
},
|
|
76
|
+
}, 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 = {
|
|
77
77
|
key: 1,
|
|
78
78
|
class: "tpl:flex tpl:h-32 tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2"
|
|
79
|
-
},
|
|
79
|
+
}, 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 = {
|
|
80
80
|
key: 0,
|
|
81
81
|
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)]"
|
|
82
|
-
},
|
|
82
|
+
}, R = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, ge = { class: "tpl:flex tpl:gap-2" }, _e = {
|
|
83
83
|
key: 1,
|
|
84
84
|
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)]"
|
|
85
|
-
},
|
|
85
|
+
}, ve = ["disabled"], ye = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /* @__PURE__ */ i(/* @__PURE__ */ f({
|
|
86
86
|
__name: "DesignReferenceSidebar",
|
|
87
87
|
props: {
|
|
88
88
|
visible: { type: Boolean },
|
|
@@ -90,21 +90,21 @@ var ue = r("file-image", [
|
|
|
90
90
|
},
|
|
91
91
|
emits: ["close", "apply"],
|
|
92
92
|
setup(r, { emit: i }) {
|
|
93
|
-
let f = r,
|
|
93
|
+
let f = r, z = i, { t: B } = n(), be = p(e), V = le({
|
|
94
94
|
authManager: p(t),
|
|
95
|
-
getTemplateId: () =>
|
|
96
|
-
onApply: (e) =>
|
|
97
|
-
}), U = g("image"), W = g(null), G = g(""), K = g(null), q = g(!1), J = g(!1), Y = re(() =>
|
|
95
|
+
getTemplateId: () => be.state.template?.id ?? null,
|
|
96
|
+
onApply: (e) => z("apply", e)
|
|
97
|
+
}), H = g(null), U = g("image"), W = g(null), G = g(""), K = g(null), q = g(!1), J = g(!1), Y = re(() => V.isGenerating.value ? !1 : W.value !== null);
|
|
98
98
|
function X(e) {
|
|
99
99
|
U.value = e, Q();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function xe(e) {
|
|
102
102
|
let t = e.target, n = t.files?.[0];
|
|
103
103
|
n && Z(n), t.value = "";
|
|
104
104
|
}
|
|
105
105
|
function Z(e) {
|
|
106
106
|
if (e.size > 10485760) {
|
|
107
|
-
|
|
107
|
+
V.error.value = B.designReference.fileTooLarge;
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (U.value === "image") {
|
|
@@ -114,25 +114,25 @@ var ue = r("file-image", [
|
|
|
114
114
|
"image/jpg",
|
|
115
115
|
"image/webp"
|
|
116
116
|
].includes(e.type)) {
|
|
117
|
-
|
|
117
|
+
V.error.value = B.designReference.invalidFileType;
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
} else if (U.value === "pdf" && e.type !== "application/pdf") {
|
|
121
|
-
|
|
121
|
+
V.error.value = B.designReference.invalidFileType;
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
W.value = e,
|
|
124
|
+
W.value = e, V.error.value = null, K.value && URL.revokeObjectURL(K.value), e.type.startsWith("image/") ? K.value = URL.createObjectURL(e) : K.value = null;
|
|
125
125
|
}
|
|
126
126
|
function Q() {
|
|
127
127
|
K.value &&= (URL.revokeObjectURL(K.value), null), W.value = null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Se(e) {
|
|
130
130
|
e.preventDefault(), J.value = !0;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ce() {
|
|
133
133
|
J.value = !1;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function we(e) {
|
|
136
136
|
e.preventDefault(), J.value = !1;
|
|
137
137
|
let t = e.dataTransfer?.files?.[0];
|
|
138
138
|
t && Z(t);
|
|
@@ -145,9 +145,9 @@ var ue = r("file-image", [
|
|
|
145
145
|
}
|
|
146
146
|
q.value = !1;
|
|
147
147
|
let e = {};
|
|
148
|
-
G.value.trim() && (e.prompt = G.value.trim()), U.value === "image" && W.value ? e.imageUpload = W.value : U.value === "pdf" && W.value && (e.pdfUpload = W.value),
|
|
148
|
+
G.value.trim() && (e.prompt = G.value.trim()), U.value === "image" && W.value ? e.imageUpload = W.value : U.value === "pdf" && W.value && (e.pdfUpload = W.value), V.generate(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Te() {
|
|
151
151
|
q.value = !1;
|
|
152
152
|
}
|
|
153
153
|
return oe(() => f.visible, (e) => {
|
|
@@ -163,14 +163,14 @@ var ue = r("file-image", [
|
|
|
163
163
|
default: se(() => [r.visible ? (h(), c("div", fe, [l("div", pe, [l("div", me, [d(v(a), {
|
|
164
164
|
size: 13,
|
|
165
165
|
"stroke-width": 2
|
|
166
|
-
}), l("span", null, _(v(
|
|
166
|
+
}), l("span", null, _(v(B).designReference.title), 1)]), l("button", {
|
|
167
167
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
168
|
-
onClick: t[0] ||= (e) =>
|
|
168
|
+
onClick: t[0] ||= (e) => z("close")
|
|
169
169
|
}, [d(v(o), {
|
|
170
170
|
size: 14,
|
|
171
171
|
"stroke-width": 2
|
|
172
|
-
})])]), l("div",
|
|
173
|
-
l("div",
|
|
172
|
+
})])]), l("div", he, [v(V).isGenerating.value ? (h(), c("div", x, [l("div", S, [d(te), l("p", C, _(v(B).designReference.generating), 1)])])) : (h(), c("div", w, [
|
|
173
|
+
l("div", T, [l("button", {
|
|
174
174
|
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",
|
|
175
175
|
style: m({
|
|
176
176
|
backgroundColor: U.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
@@ -181,7 +181,7 @@ var ue = r("file-image", [
|
|
|
181
181
|
}, [d(v(ue), {
|
|
182
182
|
size: 12,
|
|
183
183
|
"stroke-width": 2
|
|
184
|
-
}), u(" " + _(v(
|
|
184
|
+
}), u(" " + _(v(B).designReference.uploadImage), 1)], 4), l("button", {
|
|
185
185
|
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",
|
|
186
186
|
style: m({
|
|
187
187
|
backgroundColor: U.value === "pdf" ? "var(--tpl-bg)" : "transparent",
|
|
@@ -192,17 +192,17 @@ var ue = r("file-image", [
|
|
|
192
192
|
}, [d(v(b), {
|
|
193
193
|
size: 12,
|
|
194
194
|
"stroke-width": 2
|
|
195
|
-
}), u(" " + _(v(
|
|
196
|
-
l("div", null, [W.value ? (h(), c("div",
|
|
195
|
+
}), u(" " + _(v(B).designReference.uploadPdf), 1)], 4)]),
|
|
196
|
+
l("div", null, [W.value ? (h(), c("div", E, [l("div", D, [K.value ? (h(), c("img", {
|
|
197
197
|
key: 0,
|
|
198
198
|
src: K.value,
|
|
199
199
|
alt: W.value.name,
|
|
200
200
|
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
201
|
-
}, null, 8,
|
|
201
|
+
}, null, 8, O)) : (h(), c("div", k, [d(v(b), {
|
|
202
202
|
size: 32,
|
|
203
203
|
"stroke-width": 1.5,
|
|
204
204
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
205
|
-
}), l("span",
|
|
205
|
+
}), l("span", A, _(W.value.name), 1)])), l("button", {
|
|
206
206
|
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)]",
|
|
207
207
|
onClick: Q
|
|
208
208
|
}, [d(v(o), {
|
|
@@ -215,44 +215,45 @@ var ue = r("file-image", [
|
|
|
215
215
|
borderColor: J.value ? "var(--tpl-primary)" : "var(--tpl-border-light)",
|
|
216
216
|
backgroundColor: J.value ? "var(--tpl-primary-light)" : "var(--tpl-bg)"
|
|
217
217
|
}),
|
|
218
|
-
onClick: t[3] ||= (
|
|
219
|
-
onDragover:
|
|
220
|
-
onDragleave:
|
|
221
|
-
onDrop:
|
|
218
|
+
onClick: t[3] ||= (e) => H.value?.click(),
|
|
219
|
+
onDragover: Se,
|
|
220
|
+
onDragleave: Ce,
|
|
221
|
+
onDrop: we
|
|
222
222
|
}, [
|
|
223
223
|
d(v(de), {
|
|
224
224
|
size: 24,
|
|
225
225
|
"stroke-width": 1.5,
|
|
226
226
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
227
227
|
}),
|
|
228
|
-
l("span",
|
|
229
|
-
l("span",
|
|
228
|
+
l("span", j, _(v(B).designReference.dropHint), 1),
|
|
229
|
+
l("span", M, _(U.value === "image" ? v(B).designReference.acceptedImages : v(B).designReference.acceptedPdf), 1)
|
|
230
230
|
], 36)), l("input", {
|
|
231
|
-
|
|
231
|
+
ref_key: "fileInput",
|
|
232
|
+
ref: H,
|
|
232
233
|
type: "file",
|
|
233
234
|
class: "tpl:hidden",
|
|
234
235
|
accept: U.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
235
|
-
onChange:
|
|
236
|
-
}, null, 40,
|
|
237
|
-
l("div",
|
|
236
|
+
onChange: xe
|
|
237
|
+
}, null, 40, N)]),
|
|
238
|
+
l("div", P, [l("label", F, _(v(B).designReference.promptLabel), 1), ce(l("textarea", {
|
|
238
239
|
"onUpdate:modelValue": t[4] ||= (e) => G.value = e,
|
|
239
240
|
class: ae(["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"]]),
|
|
240
|
-
placeholder: v(
|
|
241
|
+
placeholder: v(B).designReference.promptPlaceholder,
|
|
241
242
|
rows: "3"
|
|
242
|
-
}, null, 8,
|
|
243
|
-
q.value ? (h(), c("div",
|
|
243
|
+
}, null, 8, I), [[y, G.value]])]),
|
|
244
|
+
q.value ? (h(), c("div", L, [l("p", R, _(v(B).designReference.replaceWarning), 1), l("div", ge, [l("button", {
|
|
244
245
|
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)]",
|
|
245
246
|
style: { "background-color": "transparent" },
|
|
246
|
-
onClick:
|
|
247
|
-
}, _(v(
|
|
247
|
+
onClick: Te
|
|
248
|
+
}, _(v(B).designReference.replaceCancel), 1), l("button", {
|
|
248
249
|
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)]",
|
|
249
250
|
onClick: $
|
|
250
|
-
}, _(v(
|
|
251
|
-
v(
|
|
251
|
+
}, _(v(B).designReference.replaceConfirm), 1)])])) : s("", !0),
|
|
252
|
+
v(V).error.value ? (h(), c("div", _e, [d(v(ee), {
|
|
252
253
|
size: 14,
|
|
253
254
|
"stroke-width": 2,
|
|
254
255
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
255
|
-
}), l("span", null, _(v(
|
|
256
|
+
}), l("span", null, _(v(B).designReference.error), 1)])) : s("", !0),
|
|
256
257
|
q.value ? s("", !0) : (h(), c("button", {
|
|
257
258
|
key: 2,
|
|
258
259
|
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)]",
|
|
@@ -261,12 +262,12 @@ var ue = r("file-image", [
|
|
|
261
262
|
}, [d(v(a), {
|
|
262
263
|
size: 16,
|
|
263
264
|
"stroke-width": 2
|
|
264
|
-
}), u(" " + _(v(
|
|
265
|
-
l("p",
|
|
265
|
+
}), u(" " + _(v(B).designReference.generate), 1)], 8, ve)),
|
|
266
|
+
l("p", ye, _(v(B).aiMenu.disclaimer), 1)
|
|
266
267
|
]))])])) : s("", !0)]),
|
|
267
268
|
_: 1
|
|
268
269
|
}));
|
|
269
270
|
}
|
|
270
|
-
}), [["__scopeId", "data-v-
|
|
271
|
+
}), [["__scopeId", "data-v-1c8d2ac8"]]);
|
|
271
272
|
//#endregion
|
|
272
|
-
export {
|
|
273
|
+
export { z as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./useEditorCore-
|
|
2
|
-
import { f as e, y as t } from "./keys-
|
|
3
|
-
import { t as n } from "./useI18n-
|
|
1
|
+
import "./useEditorCore-Cc4RCwWq.js";
|
|
2
|
+
import { f as e, y as t } from "./keys-Dwa2PmdD.js";
|
|
3
|
+
import { t as n } from "./useI18n-DUirdXEX.js";
|
|
4
4
|
import { n as r } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
5
|
-
import { n as i, t as a } from "./blockTypeIcons-
|
|
5
|
+
import { n as i, t as a } from "./blockTypeIcons-BpPTqcok.js";
|
|
6
6
|
import { t as ee } from "./trash-2-OwjZ-guZ.js";
|
|
7
7
|
import { t as te } from "./x-CGlq2XQe.js";
|
|
8
|
-
import { t as ne } from "./TplModal-
|
|
8
|
+
import { t as ne } from "./TplModal-CGzRjR96.js";
|
|
9
9
|
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as re, createElementBlock as l, createElementVNode as u, createVNode as d, defineAsyncComponent as ie, defineComponent as f, inject as p, normalizeStyle as ae, openBlock as m, ref as h, renderList as g, resolveDynamicComponent as oe, toDisplayString as _, unref as v, vModelSelect as se, vModelText as ce, watch as le, withCtx as ue, withDirectives as y, withModifiers as b } from "vue";
|
|
10
10
|
var de = r("search", [["path", {
|
|
11
11
|
d: "m21 21-4.34-4.34",
|
|
@@ -52,7 +52,7 @@ var de = r("search", [["path", {
|
|
|
52
52
|
props: { visible: { type: Boolean } },
|
|
53
53
|
emits: ["close", "insert"],
|
|
54
54
|
setup(r, { emit: f }) {
|
|
55
|
-
let B = r, V = f, Te = ie(() => import("./ModulePreviewCanvas-
|
|
55
|
+
let B = r, V = f, Te = ie(() => import("./ModulePreviewCanvas-BcBJLnwL.js")), { t: H } = n(), U = p(t), W = p(e), G = h(""), K = h(null), q = h(null), J = h("end"), Y = s(() => {
|
|
56
56
|
let e = U.modules.value;
|
|
57
57
|
if (!G.value) return e;
|
|
58
58
|
let t = G.value.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as e, _ as t, a as n, f as r, g as i, h as a, i as o, m as s, n as c, p as l, r as u, u as d, v as f, y as p } from "./useEditorCore-
|
|
2
|
-
import { o as m } from "./keys-
|
|
1
|
+
import { P as e, _ as t, a as n, f as r, g as i, h as a, i as o, m as s, n as c, p as l, r as u, u as d, v as f, y as p } from "./useEditorCore-Cc4RCwWq.js";
|
|
2
|
+
import { o as m } from "./keys-Dwa2PmdD.js";
|
|
3
3
|
import { Fragment as h, computed as g, createBlock as _, createElementBlock as v, createElementVNode as y, defineComponent as b, inject as x, normalizeStyle as S, openBlock as C, renderList as w, resolveComponent as T, resolveDynamicComponent as E, unref as D } from "vue";
|
|
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__ */ b({
|
|
@@ -23,7 +23,7 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
|
|
|
23
23
|
spacer: o,
|
|
24
24
|
html: t,
|
|
25
25
|
custom: p
|
|
26
|
-
}, j = b, M = x(m), N = g(() => {
|
|
26
|
+
}, j = b, M = x(m, null), N = g(() => {
|
|
27
27
|
switch (j.block.columns) {
|
|
28
28
|
case "2": return ["50%", "50%"];
|
|
29
29
|
case "3": return [
|