@templatical/editor 0.0.3 → 0.0.4
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-busJk9hm.js → AiChatSidebar-CjfhTZwo.js} +1 -1
- package/dist/{AiFeatureMenu-DLGv_-pj.js → AiFeatureMenu-K44aZa_P.js} +3 -3
- package/dist/CloudEditor-DFyuRxUV.js +926 -0
- package/dist/{CollaboratorBar-Dv3l52vC.js → CollaboratorBar-BuCEcdbB.js} +25 -21
- package/dist/{CommentsSidebar-4tjp0VU5.js → CommentsSidebar-2lcqMfIP.js} +2 -2
- package/dist/{DesignReferenceSidebar-CmwXvltV.js → DesignReferenceSidebar-CNMu4Zrx.js} +2 -2
- package/dist/{ModuleBrowserModal-lrk3Fr0H.js → ModuleBrowserModal-CvQ0xyQf.js} +6 -6
- package/dist/{ModulePreviewCanvas-BcBJLnwL.js → ModulePreviewCanvas-Be2B3Y07.js} +2 -2
- package/dist/ParagraphEditor-CcMPnbDr.js +652 -0
- package/dist/{RichTextEditorContent-CQqodi7p.js → RichTextEditorContent-CHJlh7HJ.js} +8 -4
- package/dist/{SaveModuleDialog-Bmzi72td.js → SaveModuleDialog-BaaeH5Xm.js} +5 -5
- package/dist/{SnapshotHistory-AEgi9Xsn.js → SnapshotHistory-BPfjiuu1.js} +2 -2
- package/dist/{TemplateScoringPanel-CTgMtc0-.js → TemplateScoringPanel-D58A23Vq.js} +3 -3
- package/dist/{TestEmailModal-Dpq1is9S.js → TestEmailModal-DIAlB3e_.js} +3 -3
- package/dist/{TitleEditor-CLcDdcWI.js → TitleEditor-D9DPjQkX.js} +7 -7
- package/dist/{TplModal-CGzRjR96.js → TplModal-CmTSvCY-.js} +2 -2
- package/dist/{blockTypeIcons-BpPTqcok.js → blockTypeIcons-D1RTWOkx.js} +1 -1
- package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +2 -0
- package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js +59 -0
- package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +1 -0
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +900 -0
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-D2PKtlOw.js +51 -0
- package/dist/cdn/chunks/CollaboratorBar-D2PKtlOw.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +2 -0
- package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +2 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js +195 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +1 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-DEfHampA.js +107 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-DEfHampA.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +503 -0
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +1 -0
- package/dist/cdn/chunks/RichTextEditorContent-DWUzizsC.js +106 -0
- package/dist/cdn/chunks/RichTextEditorContent-DWUzizsC.js.map +1 -0
- package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js +119 -0
- package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +1 -0
- package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +2 -0
- package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +2 -0
- package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +2 -0
- package/dist/cdn/chunks/TitleEditor-DDf_OcHS.js +166 -0
- package/dist/cdn/chunks/TitleEditor-DDf_OcHS.js.map +1 -0
- package/dist/cdn/chunks/_rolldown_dynamic_import_helper-DMEI4TQ3.js +9 -0
- package/dist/cdn/chunks/blockTypeIcons-BnobReQm.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-BnobReQm.js.map +1 -0
- package/dist/cdn/chunks/de-BB3dgVOc.js +700 -0
- package/dist/cdn/chunks/de-BB3dgVOc.js.map +1 -0
- package/dist/cdn/chunks/de-BvYD17KT.js +89 -0
- package/dist/cdn/chunks/de-BvYD17KT.js.map +1 -0
- package/dist/cdn/chunks/dist-B6AUkMyh.js +2 -0
- package/dist/cdn/chunks/dist-B878xb_62.js +457 -0
- package/dist/cdn/chunks/dist-B878xb_62.js.map +1 -0
- package/dist/cdn/chunks/dist-Bf1Op9A1.js +2 -0
- package/dist/cdn/chunks/dist-BkETaOfw.js +2 -0
- package/dist/cdn/chunks/dist-CJcMnY7o.js +2 -0
- package/dist/cdn/chunks/dist-CWsl6S1K.js +2 -0
- package/dist/cdn/chunks/dist-CllLxIMQ.js +2 -0
- package/dist/cdn/chunks/dist-Cs0wFwdw.js +2 -0
- package/dist/cdn/chunks/dist-DLWHlekl.js +2 -0
- package/dist/cdn/chunks/dist-DS3_HVpX.js +2 -0
- package/dist/cdn/chunks/dist-DTXopj1a.js +2 -0
- package/dist/cdn/chunks/dist-DnwLoNLm.js +2 -0
- package/dist/cdn/chunks/draggable-BQNU47zu.js +11544 -0
- package/dist/cdn/chunks/{draggable-ClUwYCFL.js.map → draggable-BQNU47zu.js.map} +1 -1
- package/dist/cdn/chunks/emojiData-BVEJHcNH.js +19 -0
- package/dist/cdn/chunks/{emojiData-6fVLNqeH.js.map → emojiData-BVEJHcNH.js.map} +1 -1
- package/dist/cdn/chunks/en-CpotcOPr.js +89 -0
- package/dist/cdn/chunks/en-CpotcOPr.js.map +1 -0
- package/dist/cdn/chunks/en-DeDcpnoS.js +700 -0
- package/dist/cdn/chunks/en-DeDcpnoS.js.map +1 -0
- package/dist/cdn/chunks/extensions-B_kcV0tK.js +419 -0
- package/dist/cdn/chunks/{extensions-ea_ewKUl.js.map → extensions-B_kcV0tK.js.map} +1 -1
- package/dist/cdn/chunks/features-ofOGnSC0.js +6700 -0
- package/dist/cdn/chunks/features-ofOGnSC0.js.map +1 -0
- package/dist/cdn/chunks/icons-bIb7PBOE.js +653 -0
- package/dist/cdn/chunks/icons-bIb7PBOE.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-C1VIYISn.js +3272 -0
- package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +1 -0
- package/dist/cdn/chunks/media-library-BIYzV2Y2.js +6005 -0
- package/dist/cdn/chunks/media-library-BIYzV2Y2.js.map +1 -0
- package/dist/cdn/chunks/pusher-DJPhQnE8.js +2505 -0
- package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js +32 -0
- package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -0
- package/dist/cdn/chunks/rolldown-runtime-DPITmOBR.js +20 -0
- package/dist/cdn/chunks/src-BuW9oYtm.js +494 -0
- package/dist/cdn/chunks/src-BuW9oYtm.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-1KwsBMxJ.js +57 -0
- package/dist/cdn/chunks/{styleConstants-CNejCb-L.js.map → styleConstants-1KwsBMxJ.js.map} +1 -1
- package/dist/cdn/chunks/styles-DQFExz-T.js +3222 -0
- package/dist/cdn/chunks/styles-DQFExz-T.js.map +1 -0
- package/dist/cdn/chunks/tiptap-DplY-S-k.js +14208 -0
- package/dist/cdn/chunks/{tiptap-Cya4P9CN.js.map → tiptap-DplY-S-k.js.map} +1 -1
- package/dist/cdn/editor.css +2 -1
- package/dist/cdn/editor.js +260 -1
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{de-B4Ob4vCo.js → de-D7TLGIPA.js} +20 -4
- package/dist/{dist-DmpMJbmZ.js → dist-BkIys9zn.js} +1 -1
- package/dist/{en-YXsspZJG.js → en-DvtiEMwP.js} +20 -4
- package/dist/{extensions-CKM99njP.js → extensions-DEjfEFhD.js} +3 -3
- package/dist/{keys-Dwa2PmdD.js → keys-C0MQRs8d.js} +3 -3
- package/dist/readableTextColor-LDlmVEUv.js +30 -0
- package/dist/{styles-DSw1VNU3.js → styles-CgLaxDfu.js} +1096 -1074
- package/dist/templatical-editor.css +1 -1
- package/dist/templatical-editor.js +113 -89
- package/dist/templatical-editor.umd.cjs +59 -59
- package/dist/{useEditorCore-Cc4RCwWq.js → useEditorCore-CjwRMl7K.js} +1152 -1014
- package/dist/{useI18n-DUirdXEX.js → useI18n-D6m7ZUgY.js} +1 -1
- package/dist/{useMergeTag-DVnlvPYJ.js → useMergeTag-BZ3X0bNr.js} +1 -1
- package/package.json +2 -2
- package/dist/CloudEditor-BDnHd6Um.js +0 -919
- package/dist/ParagraphEditor-DH8cSC6m.js +0 -625
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js +0 -3
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js +0 -2
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js +0 -3
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js.map +0 -1
- package/dist/cdn/chunks/dist-0UheN8rK.js +0 -1
- package/dist/cdn/chunks/dist-55mmbGQ9.js +0 -1
- package/dist/cdn/chunks/dist-B31mxKyP.js +0 -1
- package/dist/cdn/chunks/dist-B5JI9nIg.js +0 -1
- package/dist/cdn/chunks/dist-B93vLKhU.js +0 -1
- package/dist/cdn/chunks/dist-BDt3FJvj.js +0 -1
- package/dist/cdn/chunks/dist-BJRuFHmi.js +0 -1
- package/dist/cdn/chunks/dist-BKSzrf0L.js +0 -1
- package/dist/cdn/chunks/dist-BL8c5gYQ.js +0 -1
- package/dist/cdn/chunks/dist-CYThWMP5.js +0 -1
- package/dist/cdn/chunks/dist-DxZbPJYt.js +0 -1
- package/dist/cdn/chunks/draggable-ClUwYCFL.js +0 -17
- package/dist/cdn/chunks/emojiData-6fVLNqeH.js +0 -2
- package/dist/cdn/chunks/extensions-ea_ewKUl.js +0 -2
- package/dist/cdn/chunks/icons-vmLJTaJk.js +0 -2
- package/dist/cdn/chunks/icons-vmLJTaJk.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BakkzWXw.js +0 -1
- package/dist/cdn/chunks/styleConstants-CNejCb-L.js +0 -2
- package/dist/cdn/chunks/tiptap-Cya4P9CN.js +0 -145
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js +0 -2
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js +0 -2
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js.map +0 -1
- package/dist/i18n-CJsFtdbZ.js +0 -23
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./useEditorCore-
|
|
2
|
-
import { t as e } from "./useI18n-
|
|
1
|
+
import "./useEditorCore-CjwRMl7K.js";
|
|
2
|
+
import { t as e } from "./useI18n-D6m7ZUgY.js";
|
|
3
3
|
import { n as t } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { t as n } from "./readableTextColor-LDlmVEUv.js";
|
|
5
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeStyle as u, openBlock as d, renderList as f, toDisplayString as p, unref as m } from "vue";
|
|
6
|
+
var h = t("wifi-off", [
|
|
6
7
|
["path", {
|
|
7
8
|
d: "M12 20h.01",
|
|
8
9
|
key: "zekei9"
|
|
@@ -31,7 +32,7 @@ var m = t("wifi-off", [
|
|
|
31
32
|
d: "m2 2 20 20",
|
|
32
33
|
key: "1ooewy"
|
|
33
34
|
}]
|
|
34
|
-
]),
|
|
35
|
+
]), g = t("wifi", [
|
|
35
36
|
["path", {
|
|
36
37
|
d: "M12 20h.01",
|
|
37
38
|
key: "zekei9"
|
|
@@ -48,44 +49,47 @@ var m = t("wifi-off", [
|
|
|
48
49
|
d: "M8.5 16.429a5 5 0 0 1 7 0",
|
|
49
50
|
key: "1bycff"
|
|
50
51
|
}]
|
|
51
|
-
]),
|
|
52
|
+
]), _ = { class: "tpl-collaborator-bar tpl:flex tpl:items-center tpl:gap-2" }, v = ["title"], y = {
|
|
52
53
|
key: 0,
|
|
53
54
|
class: "tpl:flex tpl:items-center tpl:-space-x-1.5"
|
|
54
|
-
},
|
|
55
|
+
}, b = ["title"], x = ["title"], S = 3, C = /* @__PURE__ */ l({
|
|
55
56
|
__name: "CollaboratorBar",
|
|
56
57
|
props: {
|
|
57
58
|
collaborators: {},
|
|
58
59
|
isConnected: { type: Boolean }
|
|
59
60
|
},
|
|
60
61
|
setup(t) {
|
|
61
|
-
let
|
|
62
|
-
function
|
|
62
|
+
let l = t, { t: C } = e(), w = i(() => l.collaborators.slice(0, S)), T = i(() => l.collaborators.slice(S)), E = i(() => T.value.length), D = i(() => T.value.map((e) => e.name).join("\n"));
|
|
63
|
+
function O(e) {
|
|
63
64
|
let t = e.trim().split(/\s+/);
|
|
64
65
|
return t.length >= 2 ? (t[0].charAt(0) + t[t.length - 1].charAt(0)).toUpperCase() : e.charAt(0).toUpperCase();
|
|
65
66
|
}
|
|
66
|
-
return (e,
|
|
67
|
+
return (e, i) => (d(), s("div", _, [c("div", {
|
|
67
68
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-[11px]",
|
|
68
|
-
style:
|
|
69
|
-
title: t.isConnected ?
|
|
70
|
-
}, [t.isConnected ? (
|
|
69
|
+
style: u({ color: t.isConnected ? "var(--tpl-success)" : "var(--tpl-text-muted)" }),
|
|
70
|
+
title: t.isConnected ? m(C).collaboration.connected : m(C).collaboration.disconnected
|
|
71
|
+
}, [t.isConnected ? (d(), a(m(g), {
|
|
71
72
|
key: 0,
|
|
72
73
|
size: 12,
|
|
73
74
|
"stroke-width": 2
|
|
74
|
-
})) : (
|
|
75
|
+
})) : (d(), a(m(h), {
|
|
75
76
|
key: 1,
|
|
76
77
|
size: 12,
|
|
77
78
|
"stroke-width": 2
|
|
78
|
-
}))], 12,
|
|
79
|
+
}))], 12, v), t.collaborators.length > 0 ? (d(), s("div", y, [(d(!0), s(r, null, f(w.value, (e) => (d(), s("div", {
|
|
79
80
|
key: e.id,
|
|
80
|
-
class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:
|
|
81
|
-
style:
|
|
81
|
+
class: "tpl-collaborator-avatar tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[10px] tpl:font-bold tpl:transition-transform tpl:duration-150 tpl:hover:z-10 tpl:hover:scale-110 tpl:border-[var(--tpl-bg)]",
|
|
82
|
+
style: u({
|
|
83
|
+
backgroundColor: e.color,
|
|
84
|
+
color: m(n)(e.color)
|
|
85
|
+
}),
|
|
82
86
|
title: e.name
|
|
83
|
-
},
|
|
87
|
+
}, p(O(e.name)), 13, b))), 128)), E.value > 0 ? (d(), s("div", {
|
|
84
88
|
key: 0,
|
|
85
89
|
class: "tpl:relative tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-2 tpl:text-[9px] tpl:font-bold tpl:border-[var(--tpl-bg)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
86
|
-
title:
|
|
87
|
-
}, " +" +
|
|
90
|
+
title: D.value
|
|
91
|
+
}, " +" + p(E.value), 9, x)) : o("", !0)])) : o("", !0)]));
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
94
|
//#endregion
|
|
91
|
-
export {
|
|
95
|
+
export { C as default };
|
|
@@ -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-C0MQRs8d.js";
|
|
2
|
+
import { t as r } from "./useI18n-D6m7ZUgY.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-C0MQRs8d.js";
|
|
3
|
+
import { t as n } from "./useI18n-D6m7ZUgY.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";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./useEditorCore-
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./useI18n-
|
|
1
|
+
import "./useEditorCore-CjwRMl7K.js";
|
|
2
|
+
import { b as e, f as t } from "./keys-C0MQRs8d.js";
|
|
3
|
+
import { t as n } from "./useI18n-D6m7ZUgY.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-D1RTWOkx.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-CmTSvCY-.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-Be2B3Y07.js")), { t: H } = n(), U = p(e), W = p(t), 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-CjwRMl7K.js";
|
|
2
|
+
import { o as m } from "./keys-C0MQRs8d.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({
|