@ebl-vue/editor-render 2.31.25 → 2.31.29

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.
Files changed (50) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.mjs +120 -101
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/styles/list.css +184 -164
  6. package/dist/styles/quote.css +1 -1
  7. package/package.json +1 -1
  8. package/src/EditorRender.vue +0 -43
  9. package/src/components/List.vue +0 -40
  10. package/src/components/alert.vue +0 -21
  11. package/src/components/code.vue +0 -114
  12. package/src/components/delimiter.vue +0 -19
  13. package/src/components/h1.vue +0 -19
  14. package/src/components/h2.vue +0 -19
  15. package/src/components/h3.vue +0 -19
  16. package/src/components/h4.vue +0 -19
  17. package/src/components/h5.vue +0 -19
  18. package/src/components/h6.vue +0 -19
  19. package/src/components/image.vue +0 -31
  20. package/src/components/index.ts +0 -54
  21. package/src/components/paragraph.vue +0 -19
  22. package/src/components/quote.vue +0 -21
  23. package/src/components/table.vue +0 -46
  24. package/src/constants/index.ts +0 -1
  25. package/src/i18n/zh-cn.ts +0 -158
  26. package/src/icons/index.ts +0 -93
  27. package/src/index.ts +0 -12
  28. package/src/installer.ts +0 -21
  29. package/src/styles/alert.css +0 -151
  30. package/src/styles/block-alignment.css +0 -9
  31. package/src/styles/code.css +0 -214
  32. package/src/styles/color.css +0 -27
  33. package/src/styles/delimiter.css +0 -14
  34. package/src/styles/header.css +0 -20
  35. package/src/styles/image.css +0 -156
  36. package/src/styles/indent.css +0 -86
  37. package/src/styles/index.css +0 -68
  38. package/src/styles/inline-code.css +0 -11
  39. package/src/styles/list.css +0 -202
  40. package/src/styles/marker.css +0 -4
  41. package/src/styles/outline.css +0 -52
  42. package/src/styles/paragraph.css +0 -23
  43. package/src/styles/quote.css +0 -26
  44. package/src/styles/table.css +0 -388
  45. package/src/styles/underline.css +0 -3
  46. package/src/types.ts +0 -5
  47. package/src/utils/index.ts +0 -15
  48. package/src/utils/install.ts +0 -19
  49. package/tsconfig.json +0 -37
  50. package/vite.config.ts +0 -80
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare interface IBlock {
4
4
  id: string;
5
5
  type: string;
6
6
  data: any;
7
+ tunes?: any;
7
8
  }
8
9
 
9
10
  export declare const install: (app: App) => void;
package/dist/index.mjs CHANGED
@@ -1,129 +1,148 @@
1
- import { defineComponent as d, openBlock as s, createElementBlock as i, Fragment as k, renderList as b, createElementVNode as n, normalizeClass as f, normalizeStyle as _, createBlock as N, resolveDynamicComponent as D, useModel as u, isRef as O, shallowRef as E, ref as S, watchEffect as Y, computed as R, unref as $, toDisplayString as G, createStaticVNode as F, createCommentVNode as w } from "vue";
2
- import { codeToHtml as K } from "shiki";
3
- const V = Symbol("INSTALLED_KEY"), P = (t, e) => {
4
- if (t.install = (l) => {
5
- for (const a of [t, ...Object.values(e != null ? e : {})])
6
- l.component(a.name, a);
7
- }, e)
8
- for (const [l, a] of Object.entries(e))
9
- t[l] = a;
10
- return t;
11
- }, Z = { class: "ebl-editor-render" }, J = ["data-id"], Q = d({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) }, locale: { default: {} } }, setup: (t) => (e, l) => (s(), i("div", Z, [(s(!0), i(k, null, b(e.data.blocks, (a) => (s(), i("div", { class: "ce-block", "data-id": a.id }, [n("div", { class: f(`ce-tune-alignment--${a.tunes.blockAlignment.alignment}`) }, [n("div", { style: _(`padding-left: ${48 * a.tunes.indent.indentLevel}px;`) }, [(s(), N(D("ebl" + a.type), { block: a }, null, 8, ["block"]))], 4)], 2)], 8, J))), 256)), l[0] || (l[0] = n("div", { class: "ebl-outline" }, [n("div", { style: { height: "5000px" } }, " dd ")], -1))])) }), U = ["innerHTML"], X = d({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
1
+ import { defineComponent as c, createElementBlock as s, openBlock as l, createElementVNode as o, Fragment as k, renderList as _, normalizeClass as y, normalizeStyle as f, createBlock as F, resolveDynamicComponent as K, useModel as u, isRef as P, shallowRef as q, ref as L, watchEffect as Z, computed as B, unref as I, toDisplayString as J, createStaticVNode as Q, createCommentVNode as H } from "vue";
2
+ import { codeToHtml as U } from "shiki";
3
+ const W = Symbol("INSTALLED_KEY"), X = (t, e) => (t.install = (a) => {
4
+ for (const i of [t, ...Object.values({})]) a.component(i.name, i);
5
+ }, t), ee = { class: "ebl-editor-render" }, te = ["data-id"], ae = c({ name: "EblEditorRender", inheritAttrs: !1, __name: "EditorRender", props: { data: { default: () => ({ blocks: [] }) } }, setup: (t) => (e, a) => (l(), s("div", ee, [(l(!0), s(k, null, _(e.data.blocks, (i) => (l(), s("div", { class: "ce-block", "data-id": i.id }, [o("div", { class: y(`ce-tune-alignment--${i.tunes.blockAlignment.alignment}`) }, [o("div", { style: f(`padding-left: ${48 * i.tunes.indent.indentLevel}px;`) }, [(l(), F(K("ebl" + i.type), { block: i }, null, 8, ["block"]))], 4)], 2)], 8, te))), 256)), a[0] || (a[0] = o("div", { class: "ebl-outline" }, [o("div", { style: { height: "5000px" } }, " dd ")], -1))])) }), le = ["innerHTML"], se = c({ name: "eblparagraph", inheritAttrs: !1, __name: "paragraph", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
12
6
  const e = u(t, "block");
13
- return (l, a) => (s(), i("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, U));
14
- } }), ee = ["innerHTML"], te = d({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
7
+ return (a, i) => (l(), s("div", { class: "ce-paragraph cdx-block", innerHTML: e.value.data.text }, null, 8, le));
8
+ } }), ie = ["innerHTML"], ne = c({ name: "eblh1", inheritAttrs: !1, __name: "h1", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
15
9
  const e = u(t, "block");
16
- return (l, a) => (s(), i("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ee));
17
- } }), ae = ["innerHTML"], le = d({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
10
+ return (a, i) => (l(), s("h1", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ie));
11
+ } }), oe = ["innerHTML"], re = c({ name: "eblh2", inheritAttrs: !1, __name: "h2", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
18
12
  const e = u(t, "block");
19
- return (l, a) => (s(), i("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ae));
20
- } }), se = ["innerHTML"], ie = d({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
13
+ return (a, i) => (l(), s("h2", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, oe));
14
+ } }), de = ["innerHTML"], ce = c({ name: "eblh3", inheritAttrs: !1, __name: "h3", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
21
15
  const e = u(t, "block");
22
- return (l, a) => (s(), i("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, se));
23
- } }), ne = ["innerHTML"], oe = d({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
16
+ return (a, i) => (l(), s("h3", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, de));
17
+ } }), ue = ["innerHTML"], pe = c({ name: "eblh4", inheritAttrs: !1, __name: "h4", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
24
18
  const e = u(t, "block");
25
- return (l, a) => (s(), i("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ne));
26
- } }), ce = ["innerHTML"], re = d({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
19
+ return (a, i) => (l(), s("h4", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ue));
20
+ } }), he = ["innerHTML"], me = c({ name: "eblh5", inheritAttrs: !1, __name: "h5", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
27
21
  const e = u(t, "block");
28
- return (l, a) => (s(), i("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ce));
29
- } }), de = ["innerHTML"], ue = d({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
22
+ return (a, i) => (l(), s("h5", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, he));
23
+ } }), ve = ["innerHTML"], ke = c({ name: "eblh6", inheritAttrs: !1, __name: "h6", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
30
24
  const e = u(t, "block");
31
- return (l, a) => (s(), i("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, de));
32
- } }), pe = ["innerHTML"], me = d({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
25
+ return (a, i) => (l(), s("h6", { class: "ce-header", innerHTML: e.value.data.text }, null, 8, ve));
26
+ } }), be = ["innerHTML"], _e = c({ name: "eblalert", inheritAttrs: !1, __name: "alert", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
33
27
  const e = u(t, "block");
34
- return (l, a) => (s(), i("div", { class: f(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [n("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, pe)], 2));
28
+ return (a, i) => (l(), s("div", { class: y(`cdx-alert cdx-alert-${e.value.data.type} cdx-alert-align-${e.value.data.align}`) }, [o("div", { class: "cdx-alert__message", innerHTML: e.value.data.message }, null, 8, be)], 2));
35
29
  } });
36
- const he = () => {
37
- }, ke = { class: "ce-editorjs-x-shiki__selector" }, ve = { class: "ce-editorjs-x-shiki__lang" }, be = { class: "ce-editorjs-x-shiki__copy", ref: "copyRef" }, _e = ["innerHTML"], fe = d({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
38
- const e = S(null), l = u(t, "block"), a = function(r, m, o) {
39
- let p;
40
- p = O(o) ? { evaluating: o } : o || {};
41
- const { lazy: x = !1, flush: y = "pre", evaluating: h, shallow: M = !0, onError: L = he } = p, v = E(!x), H = M ? E(m) : S(m);
42
- let g = 0;
43
- return Y(async (B) => {
44
- if (!v.value)
45
- return;
46
- g++;
47
- const A = g;
48
- let j = !1;
49
- h && Promise.resolve().then(() => {
50
- h.value = !0;
30
+ const fe = () => {
31
+ }, xe = { class: "ce-editorjs-x-shiki__selector" }, ye = { class: "ce-editorjs-x-shiki__lang" }, ge = { key: 0, class: "ce-editorjs-x-shiki__copy_tip" }, Me = { key: 0, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, we = { key: 1, width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Le = ["innerHTML"], He = c({ name: "eblcode", inheritAttrs: !1, __name: "code", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
32
+ const e = L(null), a = u(t, "block"), i = B(() => a.value.data.resizeSize ? { height: a.value.data.resizeSize + "px" } : {}), d = function(p, n, r) {
33
+ let h;
34
+ h = P(r) ? { evaluating: r } : {};
35
+ const { lazy: g = !1, flush: M = "pre", evaluating: v, shallow: A = !0, onError: E = fe } = h, b = q(!g), S = A ? q(n) : L(n);
36
+ let w = 0;
37
+ return Z(async (G) => {
38
+ if (!b.value) return;
39
+ w++;
40
+ const V = w;
41
+ let $ = !1;
42
+ v && Promise.resolve().then(() => {
43
+ v.value = !0;
51
44
  });
52
45
  try {
53
- const T = await r((I) => {
54
- B(() => {
55
- h && (h.value = !1), j || I();
46
+ const j = await p((O) => {
47
+ G(() => {
48
+ v && (v.value = !1), $ || O();
56
49
  });
57
50
  });
58
- A === g && (H.value = T);
59
- } catch (T) {
60
- L(T);
51
+ V === w && (S.value = j);
52
+ } catch (j) {
53
+ E(j);
61
54
  } finally {
62
- h && A === g && (h.value = !1), j = !0;
55
+ v && V === w && (v.value = !1), $ = !0;
63
56
  }
64
- }, { flush: y }), x ? R(() => (v.value = !0, H.value)) : H;
57
+ }, { flush: M }), g ? B(() => (b.value = !0, S.value)) : S;
65
58
  }(async () => {
66
- let r = "";
67
- return { html: await K(l.value.data.code, { lang: l.value.data.lang, theme: l.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (o) => `${o}
68
- `, pre(o) {
69
- var p;
70
- this.addClassToHast(o, "ce-editorjs-x-shiki__span"), r = ((p = o.properties) == null ? void 0 : p.style) || "";
71
- }, line(o, p) {
72
- o.properties = o.properties || {}, o.properties["data-line"] = p;
73
- } }] }), preStyle: r };
59
+ let p = "";
60
+ return { html: await U(a.value.data.code, { lang: a.value.data.lang, theme: a.value.data.theme || "github-dark-dimmed", transformers: [{ preprocess: (r) => `${r}
61
+ `, pre(r) {
62
+ var h;
63
+ this.addClassToHast(r, "ce-editorjs-x-shiki__span"), p = ((h = r.properties) == null ? void 0 : h.style) || "";
64
+ }, line(r, h) {
65
+ r.properties = r.properties || {}, r.properties["data-line"] = h;
66
+ } }] }), preStyle: p };
74
67
  });
75
- function c(r) {
76
- e.value && function(m, o) {
77
- let p = o.clientY, x = parseInt(window.getComputedStyle(m).height, 10);
78
- const y = (M) => {
79
- const L = M.clientY - p;
80
- let v = x + L;
81
- v < 100 && (v = 100), m.style.height = v + "px";
82
- }, h = () => {
83
- document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", h);
68
+ function m(p) {
69
+ e.value && function(n, r) {
70
+ let h = r.clientY, g = parseInt(window.getComputedStyle(n).height, 10);
71
+ const M = (A) => {
72
+ const E = A.clientY - h;
73
+ let b = g + E;
74
+ b < 100 && (b = 100), n.style.height = b + "px";
75
+ }, v = () => {
76
+ document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", v);
84
77
  };
85
- document.addEventListener("mousemove", y), document.addEventListener("mouseup", h);
86
- }(e.value, r);
78
+ document.addEventListener("mousemove", M), document.addEventListener("mouseup", v);
79
+ }(e.value, p);
87
80
  }
88
- return (r, m) => {
89
- var o, p;
90
- return s(), i("div", { class: f("cdx-block ce-editorjs-x-shiki"), style: _(`${(o = $(a)) == null ? void 0 : o.preStyle}`) }, [n("div", ke, [n("div", ve, G(l.value.data.lang), 1), n("div", be, [...m[0] || (m[0] = [F('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-c4c07368><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-c4c07368></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-c4c07368></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-c4c07368></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-c4c07368></path></svg><div class="ce-editorjs-x-shiki__copy_tip" data-v-c4c07368>已复制</div>', 2)])], 512)]), n("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: _(`height:${l.value.data.resizeSize}px`) }, [n("span", { innerHTML: (p = $(a)) == null ? void 0 : p.html }, null, 8, _e)], 4), n("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: c }, null, 32)], 4);
81
+ function T() {
82
+ if (a.value.data.code) {
83
+ const p = a.value.data.code;
84
+ if (navigator.clipboard && window.isSecureContext) try {
85
+ navigator.clipboard.writeText(p).then(() => {
86
+ x(!0);
87
+ }).catch((n) => {
88
+ x(!1);
89
+ });
90
+ } catch (n) {
91
+ x(!1);
92
+ }
93
+ else {
94
+ const n = document.createElement("textarea");
95
+ n.value = p, n.style.top = "0", n.style.left = "0", n.style.position = "fixed", n.style.opacity = "0", n.style.pointerEvents = "none", n.style.zIndex = "-1000", document.body.appendChild(n), n.focus(), n.select();
96
+ try {
97
+ document.execCommand("copy"), document.body.removeChild(n), x(!0);
98
+ } catch (r) {
99
+ x(!1), document.body.removeChild(n);
100
+ }
101
+ }
102
+ }
103
+ }
104
+ const C = L(!1), R = L(!1);
105
+ function x(p) {
106
+ C.value = !0, R.value = p, setTimeout(() => {
107
+ C.value = !1;
108
+ }, 2e3);
109
+ }
110
+ return (p, n) => {
111
+ var r, h;
112
+ return l(), s("div", { class: y("cdx-block ce-editorjs-x-shiki"), style: f(`${(r = I(d)) == null ? void 0 : r.preStyle}`) }, [o("div", xe, [o("div", ye, J(a.value.data.lang), 1), o("div", { class: "ce-editorjs-x-shiki__copy", ref: "copyRef", onClick: T }, [n[2] || (n[2] = Q('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" data-v-f867b955><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12" data-v-f867b955></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5" data-v-f867b955></path></svg>', 1)), C.value ? (l(), s("div", ge, [R.value ? (l(), s("svg", Me, [...n[0] || (n[0] = [o("path", { d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])])) : (l(), s("svg", we, [...n[1] || (n[1] = [o("path", { d: "M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round" }, null, -1)])]))])) : H("", !0)], 512)]), o("div", { ref_key: "codeRef", ref: e, class: "ce-editorjs-x-shiki__code", style: f(i.value) }, [o("span", { innerHTML: (h = I(d)) == null ? void 0 : h.html }, null, 8, Le)], 4), o("div", { class: "ce-editorjs-x-shiki__code__dragHandler", onMousedown: m }, null, 32)], 4);
91
113
  };
92
- } }), C = (t, e) => {
93
- const l = t.__vccOpts || t;
94
- for (const [a, c] of e)
95
- l[a] = c;
96
- return l;
97
- }, xe = C(fe, [["__scopeId", "data-v-c4c07368"]]), ye = { class: "ce-delimiter cdx-block" }, ge = d({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (t) => (e, l) => (s(), i("div", ye, [...l[0] || (l[0] = [n("div", { class: "ce-delimiter__line__wrapper" }, [n("div", { class: "ce-delimiter__line" })], -1)])])) }), Me = { key: 0, class: "cdx-list cdx-list-unordered" }, Le = ["innerHTML"], He = ["innerHTML"], Te = { key: 2, class: "cdx-list cdx-list-checklist" }, we = ["innerHTML"], Ce = d({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
114
+ } }), z = (t, e) => {
115
+ const a = t.__vccOpts || t;
116
+ for (const [i, d] of e) a[i] = d;
117
+ return a;
118
+ }, Te = { class: "ce-delimiter cdx-block" }, Ce = { key: 0, class: "cdx-list cdx-list-unordered" }, Ae = ["innerHTML"], Ee = ["innerHTML"], Se = { key: 2, class: "cdx-list cdx-list-checklist" }, je = ["innerHTML"], ze = { class: "cdx-block cdx-quote" }, Be = ["innerHTML"], Re = { class: "tc-row" }, Ve = ["innerHTML"], $e = { class: "image-tool__image" }, qe = ["src"], N = [ae, se, ne, re, ce, pe, me, ke, _e, z(He, [["__scopeId", "data-v-f867b955"]]), c({ name: "ebldelimiter", inheritAttrs: !1, __name: "delimiter", setup: (t) => (e, a) => (l(), s("div", Te, [...a[0] || (a[0] = [o("div", { class: "ce-delimiter__line__wrapper" }, [o("div", { class: "ce-delimiter__line" })], -1)])])) }), c({ name: "eblList", inheritAttrs: !1, __name: "List", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
98
119
  const e = u(t, "block");
99
- return (l, a) => (s(), i(k, null, [e.value.data.style === "unordered" ? (s(), i("ul", Me, [(s(!0), i(k, null, b(e.value.data.items, (c, r) => (s(), i("li", { class: "cdx-list__item", key: r }, [n("div", { class: "cdx-list__item-content", innerHTML: c.content }, null, 8, Le)]))), 128))])) : w("", !0), e.value.data.style === "ordered" ? (s(), i("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: _(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(s(!0), i(k, null, b(e.value.data.items, (c, r) => (s(), i("li", { class: "cdx-list__item", key: r }, [n("div", { class: "cdx-list__item-content", innerHTML: c.content }, null, 8, He)]))), 128))], 4)) : w("", !0), e.value.data.style === "checklist" ? (s(), i("ul", Te, [(s(!0), i(k, null, b(e.value.data.items, (c, r) => (s(), i("li", { class: "cdx-list__item", key: r }, [n("div", { class: f(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": c.meta.checked }]) }, [...a[0] || (a[0] = [n("span", { class: "cdx-list__checkbox-check" }, [n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [n("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), n("div", { class: "cdx-list__item-content", innerHTML: c.content }, null, 8, we)]))), 128))])) : w("", !0)], 64));
100
- } }), Ae = { class: "cdx-block cdx-quote" }, je = ["innerHTML"], Ee = { class: "tc-row" }, Se = ["innerHTML"], $e = { class: "cdx-block image-tool image-tool--filled" }, Ve = { class: "image-tool__image" }, qe = ["src"], q = [Q, X, te, le, ie, oe, re, ue, me, xe, ge, Ce, d({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
120
+ return (a, i) => (l(), s(k, null, [e.value.data.style === "unordered" ? (l(), s("ul", Ce, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, Ae)]))), 128))])) : H("", !0), e.value.data.style === "ordered" ? (l(), s("ol", { key: 1, class: "cdx-list cdx-list-ordered", style: f(`--list-counter-type: ${e.value.data.meta.counterType};`) }, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, Ee)]))), 128))], 4)) : H("", !0), e.value.data.style === "checklist" ? (l(), s("ul", Se, [(l(!0), s(k, null, _(e.value.data.items, (d, m) => (l(), s("li", { class: "cdx-list__item", key: m }, [o("div", { class: y(["cdx-list__checkbox cdx-list__checkbox-check--disabled", { "cdx-list__checkbox--checked": d.meta.checked }]) }, [...i[0] || (i[0] = [o("span", { class: "cdx-list__checkbox-check" }, [o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24" }, [o("path", { stroke: "currentColor", "stroke-linecap": "round", "stroke-width": "2", d: "M7 12L10.4884 15.8372C10.5677 15.9245 10.705 15.9245 10.7844 15.8372L17 9" })])], -1)])], 2), o("div", { class: "cdx-list__item-content", innerHTML: d.content }, null, 8, je)]))), 128))])) : H("", !0)], 64));
121
+ } }), c({ name: "eblquote", inheritAttrs: !1, __name: "quote", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
101
122
  const e = u(t, "block");
102
- return (l, a) => (s(), i("div", Ae, [n("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, je)]));
103
- } }), C(d({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
104
- const e = u(t, "block"), l = R(() => {
105
- let a = "";
106
- if (e.value.data.colWidth && e.value.data.colWidth.length > 0)
107
- for (let c = 0; c < e.value.data.colWidth.length; c++)
108
- a += " " + e.value.data.colWidth[c] + "px";
109
- return a ? { "--col-width": a } : {};
123
+ return (a, i) => (l(), s("div", ze, [o("blockquote", { class: "cdx-input cdx-quote__text cdx-block-quote", innerHTML: e.value.data.text }, null, 8, Be)]));
124
+ } }), z(c({ name: "ebltable", inheritAttrs: !1, __name: "table", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
125
+ const e = u(t, "block"), a = B(() => {
126
+ let i = "";
127
+ if (e.value.data.colWidth && e.value.data.colWidth.length > 0) for (let d = 0; d < e.value.data.colWidth.length; d++) i += " " + e.value.data.colWidth[d] + "px";
128
+ return i ? { "--col-width": i } : {};
110
129
  });
111
- return (a, c) => (s(), i("div", { class: "tc-wrap tc-wrap--readonly", style: _(l.value) }, [n("div", { class: f(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(s(!0), i(k, null, b(e.value.data.content, (r) => (s(), i("div", Ee, [(s(!0), i(k, null, b(r, (m) => (s(), i("div", { class: "tc-cell", innerHTML: m }, null, 8, Se))), 256))]))), 256))], 2)], 4));
112
- } }), [["__scopeId", "data-v-0627102b"]]), C(d({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
130
+ return (i, d) => (l(), s("div", { class: "tc-wrap tc-wrap--readonly", style: f(a.value) }, [o("div", { class: y(["tc-table", { "tc-table--heading": e.value.data.withHeadings }]) }, [(l(!0), s(k, null, _(e.value.data.content, (m) => (l(), s("div", Re, [(l(!0), s(k, null, _(m, (T) => (l(), s("div", { class: "tc-cell", innerHTML: T }, null, 8, Ve))), 256))]))), 256))], 2)], 4));
131
+ } }), [["__scopeId", "data-v-0627102b"]]), z(c({ name: "eblimage", inheritAttrs: !1, __name: "image", props: { block: { default: { id: "", type: "", data: {} } }, blockModifiers: {} }, emits: ["update:block"], setup(t) {
113
132
  const e = u(t, "block");
114
- return (l, a) => (s(), i("div", $e, [n("div", Ve, [n("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, qe)]), a[0] || (a[0] = n("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))]));
115
- } }), [["__scopeId", "data-v-f7e9c352"]])];
116
- let W = [];
117
- for (let t in q) {
118
- const e = P(q[t]);
119
- W.push(e);
133
+ return (a, i) => (l(), s("div", { class: "cdx-block image-tool image-tool--filled", style: f({ width: e.value.tunes.imageResize.resizeSize + "px" }) }, [o("div", $e, [o("img", { class: "image-tool__image-picture", src: e.value.data.file.url }, null, 8, qe)]), i[0] || (i[0] = o("div", { class: "cdx-input image-tool__caption", contenteditable: "true", "data-placeholder": "Caption", "data-empty": "true" }, null, -1))], 4));
134
+ } }), [["__scopeId", "data-v-7b6db628"]])];
135
+ let D = [];
136
+ for (let t in N) {
137
+ const e = X(N[t]);
138
+ D.push(e);
120
139
  }
121
- const z = ((t = []) => ({ version: "2.31.25", install: (e) => {
122
- e[V] || (e[V] = !0, t.forEach((l) => e.use(l)));
123
- } }))(W), ze = z.install, Be = z.version;
140
+ const Y = /* @__PURE__ */ ((t = []) => ({ version: "2.31.29", install: (e) => {
141
+ e[W] || (e[W] = !0, t.forEach((a) => e.use(a)));
142
+ } }))(D), Ne = Y.install, De = Y.version;
124
143
  export {
125
- z as default,
126
- ze as install,
127
- Be as version
144
+ Y as default,
145
+ Ne as install,
146
+ De as version
128
147
  };
129
148
  //# sourceMappingURL=index.mjs.map