@aswin.dev/editor 0.7.3 → 0.7.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.
Files changed (93) hide show
  1. package/dist/{AiChatSidebar-Dt5pvG5t.js → AiChatSidebar-DM2ri7KX.js} +1 -1
  2. package/dist/{AiFeatureMenu-BipxcGap.js → AiFeatureMenu-BrZBJ0R5.js} +1 -1
  3. package/dist/{CloudEditor-CnUX0IOW.js → CloudEditor-BRpzzfQn.js} +8 -8
  4. package/dist/{CollaboratorBar-NaaZTjbs.js → CollaboratorBar-DsRXj3Kn.js} +1 -1
  5. package/dist/CountdownToolbar-B9IAZzeV.js +194 -0
  6. package/dist/{DesignReferenceSidebar-CZg97bbj.js → DesignReferenceSidebar-B1iw3Bb7.js} +1 -1
  7. package/dist/{ModuleBrowserModal-D2EVdexc.js → ModuleBrowserModal-DVnd1dqR.js} +4 -4
  8. package/dist/{ModulePreviewCanvas-P3N-nxkU.js → ModulePreviewCanvas-D9jBAoBQ.js} +29 -29
  9. package/dist/{ParagraphEditor-BbRuKhWv.js → ParagraphEditor-CO3V0H_V.js} +7 -7
  10. package/dist/{SaveModuleDialog-DLZa3m3O.js → SaveModuleDialog-CboNFwIA.js} +2 -2
  11. package/dist/{NumberWithSuffix-CihczoAd.js → SlidingPillSelect-DfcBdJqN.js} +122 -106
  12. package/dist/{SnapshotHistory-Csg1_jXi.js → SnapshotHistory-C26pvPre.js} +1 -1
  13. package/dist/{TestEmailModal-m3okLbJz.js → TestEmailModal-B4OoUWb_.js} +2 -2
  14. package/dist/{TitleEditor-CtJIS5ER.js → TitleEditor-DU_QWG_m.js} +2 -2
  15. package/dist/{TplModal-CQCrKeKP.js → TplModal-Dr6Do8oU.js} +1 -1
  16. package/dist/{blockTypeIcons-Dah0pgt-.js → blockTypeIcons-cRDr36gk.js} +48 -30
  17. package/dist/bundle-stats.json +6 -6
  18. package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js → AccessibilityPanel-Csd47zqI.js} +9 -9
  19. package/dist/cdn/chunks/{AccessibilityPanel-Bt_fD7QT.js.map → AccessibilityPanel-Csd47zqI.js.map} +1 -1
  20. package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js → AiFeatureMenu-BlnZF5pf.js} +7 -7
  21. package/dist/cdn/chunks/{AiFeatureMenu-Bn-0rgfr.js.map → AiFeatureMenu-BlnZF5pf.js.map} +1 -1
  22. package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js → BlockA11yBadge-VY8NqI9n.js} +4 -4
  23. package/dist/cdn/chunks/{BlockA11yBadge-Cj18Iw0p.js.map → BlockA11yBadge-VY8NqI9n.js.map} +1 -1
  24. package/dist/cdn/chunks/{CloudEditor-56lVcdot.js → CloudEditor-D0TrKlva.js} +178 -178
  25. package/dist/cdn/chunks/{CloudEditor-56lVcdot.js.map → CloudEditor-D0TrKlva.js.map} +1 -1
  26. package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js → CollaboratorBar-BhMNTI_h.js} +3 -3
  27. package/dist/cdn/chunks/{CollaboratorBar-B7DCV3xp.js.map → CollaboratorBar-BhMNTI_h.js.map} +1 -1
  28. package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js +196 -0
  29. package/dist/cdn/chunks/CountdownToolbar-DsP6O1fl.js.map +1 -0
  30. package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js → ModuleBrowserModal-CpYPeiKv.js} +8 -8
  31. package/dist/cdn/chunks/{ModuleBrowserModal-CiIY7ZGv.js.map → ModuleBrowserModal-CpYPeiKv.js.map} +1 -1
  32. package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js → ModulePreviewCanvas-BIYYnqUq.js} +24 -24
  33. package/dist/cdn/chunks/{ModulePreviewCanvas-M7_OGV2m.js.map → ModulePreviewCanvas-BIYYnqUq.js.map} +1 -1
  34. package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js → ParagraphEditor-ZV5SYYw8.js} +53 -53
  35. package/dist/cdn/chunks/{ParagraphEditor-1XJOpiLX.js.map → ParagraphEditor-ZV5SYYw8.js.map} +1 -1
  36. package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js → RichTextEditorContent-Dx05ETtt.js} +4 -4
  37. package/dist/cdn/chunks/{RichTextEditorContent-C2q8sbp2.js.map → RichTextEditorContent-Dx05ETtt.js.map} +1 -1
  38. package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js → SaveModuleDialog-DJEEK7Wb.js} +23 -23
  39. package/dist/cdn/chunks/{SaveModuleDialog-BNxh1jPT.js.map → SaveModuleDialog-DJEEK7Wb.js.map} +1 -1
  40. package/dist/cdn/chunks/{NumberWithSuffix-DfVBnsgc.js → SlidingPillSelect-BhPCkqVu.js} +132 -116
  41. package/dist/cdn/chunks/SlidingPillSelect-BhPCkqVu.js.map +1 -0
  42. package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js → TitleEditor-fu1A87Ld.js} +21 -21
  43. package/dist/cdn/chunks/{TitleEditor-IF7VzLTk.js.map → TitleEditor-fu1A87Ld.js.map} +1 -1
  44. package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js +25 -0
  45. package/dist/cdn/chunks/blockTypeIcons-CJirTS-q.js.map +1 -0
  46. package/dist/cdn/chunks/{de-B05yW8Gi.js → de-BsYijc0r.js} +49 -2
  47. package/dist/cdn/chunks/de-BsYijc0r.js.map +1 -0
  48. package/dist/cdn/chunks/{en-BII7695P.js → en-DMu9hPIC.js} +49 -2
  49. package/dist/cdn/chunks/en-DMu9hPIC.js.map +1 -0
  50. package/dist/cdn/chunks/{extensions-B0eT-yjf.js → extensions-BbFKsjyT.js} +26 -26
  51. package/dist/cdn/chunks/{extensions-B0eT-yjf.js.map → extensions-BbFKsjyT.js.map} +1 -1
  52. package/dist/cdn/chunks/{features-BrvE2Fzv.js → features-uApxwJMz.js} +1953 -1836
  53. package/dist/cdn/chunks/features-uApxwJMz.js.map +1 -0
  54. package/dist/cdn/chunks/{icons-C7wtAD8p.js → icons-DZb4EX9m.js} +26 -9
  55. package/dist/cdn/chunks/icons-DZb4EX9m.js.map +1 -0
  56. package/dist/cdn/chunks/{media-library-Cl5XuaKy.js → media-library-B3g52j8R.js} +529 -529
  57. package/dist/cdn/chunks/{media-library-Cl5XuaKy.js.map → media-library-B3g52j8R.js.map} +1 -1
  58. package/dist/cdn/chunks/{quality-Va91a3N8.js → quality-Ug5lFGHP.js} +288 -288
  59. package/dist/cdn/chunks/{quality-Va91a3N8.js.map → quality-Ug5lFGHP.js.map} +1 -1
  60. package/dist/cdn/chunks/{renderer-si0Zgxeb.js → renderer-jXCdXjV-.js} +19 -19
  61. package/dist/cdn/chunks/{renderer-si0Zgxeb.js.map → renderer-jXCdXjV-.js.map} +1 -1
  62. package/dist/cdn/chunks/{src-BLyYIbdZ.js → src-FMtH5ZvJ.js} +9 -9
  63. package/dist/cdn/chunks/{src-BLyYIbdZ.js.map → src-FMtH5ZvJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{styles-C6BQLT9F.js → styles-Co9vw4ag.js} +1332 -1101
  65. package/dist/cdn/chunks/styles-Co9vw4ag.js.map +1 -0
  66. package/dist/cdn/chunks/{tiptap-D8whBv5F.js → tiptap-qXOh0vzV.js} +2 -2
  67. package/dist/cdn/chunks/{tiptap-D8whBv5F.js.map → tiptap-qXOh0vzV.js.map} +1 -1
  68. package/dist/cdn/editor.css +1 -1
  69. package/dist/cdn/editor.js +85 -85
  70. package/dist/cdn/editor.js.map +1 -1
  71. package/dist/{cloud-BoS0J0vs.js → cloud-COUuu_KE.js} +1 -1
  72. package/dist/{de-C74F9xK3.js → de-CR1qAkAm.js} +48 -1
  73. package/dist/{dist-C2grMquk.js → dist-DP82Y0rs.js} +155 -131
  74. package/dist/{en-B24jVTeO.js → en-jbnp1n6M.js} +48 -1
  75. package/dist/{extensions-DsmjHqBF.js → extensions-Bg22D6c8.js} +16 -16
  76. package/dist/index.d.ts +6 -6
  77. package/dist/style.css +1 -1
  78. package/dist/{styles-BMFMtR9R.js → styles-DgL0UYj0.js} +1456 -1225
  79. package/dist/templatical-editor.js +6 -6
  80. package/dist/{useEditorCore-CtNAo0uy.js → useEditorCore-CSlYQZWx.js} +1756 -1661
  81. package/dist/{useMergeTag-2vTcVpNo.js → useMergeTag-BVL3A4OO.js} +4 -4
  82. package/package.json +7 -7
  83. package/dist/CountdownToolbar-CbhSp_uq.js +0 -210
  84. package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js +0 -212
  85. package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js.map +0 -1
  86. package/dist/cdn/chunks/NumberWithSuffix-DfVBnsgc.js.map +0 -1
  87. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +0 -24
  88. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +0 -1
  89. package/dist/cdn/chunks/de-B05yW8Gi.js.map +0 -1
  90. package/dist/cdn/chunks/en-BII7695P.js.map +0 -1
  91. package/dist/cdn/chunks/features-BrvE2Fzv.js.map +0 -1
  92. package/dist/cdn/chunks/icons-C7wtAD8p.js.map +0 -1
  93. package/dist/cdn/chunks/styles-C6BQLT9F.js.map +0 -1
@@ -10,7 +10,7 @@ import { t as me } from "./trash-2-CtK2apEH.js";
10
10
  import { t as x } from "./x-BkaOMosX.js";
11
11
  import { t as S } from "./LoadingTrack-Ba2pfF57.js";
12
12
  import { t as C } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
13
- import { i as w } from "./cloud-BoS0J0vs.js";
13
+ import { i as w } from "./cloud-COUuu_KE.js";
14
14
  //#region src/composables/useAliveFlag.ts
15
15
  function T() {
16
16
  let t = { alive: !0 };
@@ -1,5 +1,5 @@
1
1
  import { C as e, F as t, Ft as n, N as r, R as i, f as a, g as o, h as s, jt as c, m as l, v as u } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import "./useEditorCore-CtNAo0uy.js";
2
+ import "./useEditorCore-CSlYQZWx.js";
3
3
  import { A as d, n as f } from "./keys-CvX8D-8C.js";
4
4
  import { t as p } from "./image-up-DT7gcJLN.js";
5
5
  import { t as m } from "./shield-check-jkpgcC0-.js";
@@ -1,12 +1,12 @@
1
1
  import { At as e, C as t, F as n, Ft as r, M as i, N as a, P as o, S as s, U as c, V as l, W as u, Z as d, _ as f, b as p, d as m, et as h, f as g, g as _, h as v, j as y, jt as b, l as x, m as S, nt as C, st as w, t as T, v as E, x as D, y as O } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
2
  import { t as k } from "./timeouts-BSGxjuUF.js";
3
- import { M as A, f as ee, o as te, r as j } from "./dist-C2grMquk.js";
4
- import { I as M, R as N, t as ne, w as re } from "./useEditorCore-CtNAo0uy.js";
3
+ import { N as A, f as ee, o as te, r as j } from "./dist-DP82Y0rs.js";
4
+ import { L as M, T as ne, t as re, z as N } from "./useEditorCore-CSlYQZWx.js";
5
5
  import { t as P, u as F } from "./dist-Djgi0A6k.js";
6
6
  import { E as I, S as ie, T as L, c as R, i as z, l as ae, n as oe, u as se, w as ce } from "./keys-CvX8D-8C.js";
7
7
  import { t as B } from "./useI18n-C2xQZ6K9.js";
8
8
  import { t as V } from "./createLucideIcon-ClREiSx3.js";
9
- import { _ as le, a as ue, c as H, d as U, f as de, g as W, h as fe, i as pe, l as G, m as me, n as he, p as ge, r as _e, s as ve, t as ye, u as be } from "./styles-BMFMtR9R.js";
9
+ import { _ as le, a as ue, c as H, d as U, f as de, g as W, h as fe, i as pe, l as G, m as me, n as he, p as ge, r as _e, s as ve, t as ye, u as be } from "./styles-DgL0UYj0.js";
10
10
  import { n as K } from "./pencil-Bpimrzzw.js";
11
11
  import { t as q } from "./circle-alert-ZQQc98HC.js";
12
12
  import { t as xe } from "./clock-Ba4p3rJM.js";
@@ -18,7 +18,7 @@ import { t as we } from "./triangle-alert-KpDVNbpn.js";
18
18
  import { t as Te } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
19
19
  import { n as X } from "./useCloudI18n-DOKSZql1.js";
20
20
  import { d as Z } from "./styleConstants-34eUKPOZ.js";
21
- import { _ as Ee, a as De, c as Q, d as Oe, f as $, g as ke, h as Ae, l as je, m as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, v as ze, y as Be } from "./cloud-BoS0J0vs.js";
21
+ import { _ as Ee, a as De, c as Q, d as Oe, f as $, g as ke, h as Ae, l as je, m as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, v as ze, y as Be } from "./cloud-COUuu_KE.js";
22
22
  var Ve = V("save", [
23
23
  ["path", {
24
24
  d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
@@ -245,7 +245,7 @@ function qe(e) {
245
245
  }), l(() => x.lockedBlocks.value, (e) => {
246
246
  v.value = e;
247
247
  }, { immediate: !0 }), Le(y, x));
248
- let C = S(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), w = ne({
248
+ let C = S(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), w = re({
249
249
  editor: y,
250
250
  config: {
251
251
  uiTheme: t.uiTheme,
@@ -299,7 +299,7 @@ function qe(e) {
299
299
  mediaLibraryOpen: D.mediaLibraryOpen,
300
300
  mediaLibraryAccept: D.mediaLibraryAccept
301
301
  });
302
- re({
302
+ ne({
303
303
  onBlockMove: y.moveBlock,
304
304
  onBlockAdd: y.addBlock
305
305
  });
@@ -596,7 +596,7 @@ var Ze = ["aria-label"], Qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
596
596
  },
597
597
  emits: ["save"],
598
598
  setup(t) {
599
- let n = s(() => import("./CollaboratorBar-NaaZTjbs.js")), i = s(() => import("./SnapshotHistory-Csg1_jXi.js")), o = s(() => import("./AiFeatureMenu-BipxcGap.js")), { t: l, format: u } = X();
599
+ let n = s(() => import("./CollaboratorBar-DsRXj3Kn.js")), i = s(() => import("./SnapshotHistory-C26pvPre.js")), o = s(() => import("./AiFeatureMenu-BrZBJ0R5.js")), { t: l, format: u } = X();
600
600
  return (s, d) => (a(), E("header", st, [
601
601
  v("div", ct, [t.featureFlags.templateLimit.value === null ? f("", !0) : (a(), E("span", lt, r(w(u)(w(l).header.templatesUsed, {
602
602
  used: t.featureFlags.templateCount.value,
@@ -759,7 +759,7 @@ var Ze = ["aria-label"], Qe = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
759
759
  "module-insert"
760
760
  ],
761
761
  setup(e, { expose: t, emit: n }) {
762
- let r = s(() => import("./AiChatSidebar-Dt5pvG5t.js")), i = s(() => import("./CommentsSidebar-DE6ZsM4D.js")), o = s(() => import("./DesignReferenceSidebar-CZg97bbj.js")), c = s(() => import("./TemplateScoringPanel-CS7o62zS.js")), l = s(() => import("./TestEmailModal-m3okLbJz.js")), u = s(() => import("./SaveModuleDialog-DLZa3m3O.js")), d = s(() => import("./ModuleBrowserModal-D2EVdexc.js")), p = s(async () => (await import("@aswin.dev/media-library")).MediaLibraryModal), m = e;
762
+ let r = s(() => import("./AiChatSidebar-DM2ri7KX.js")), i = s(() => import("./CommentsSidebar-DE6ZsM4D.js")), o = s(() => import("./DesignReferenceSidebar-B1iw3Bb7.js")), c = s(() => import("./TemplateScoringPanel-CS7o62zS.js")), l = s(() => import("./TestEmailModal-B4OoUWb_.js")), u = s(() => import("./SaveModuleDialog-CboNFwIA.js")), d = s(() => import("./ModuleBrowserModal-DVnd1dqR.js")), p = s(async () => (await import("@aswin.dev/media-library")).MediaLibraryModal), m = e;
763
763
  function v(e) {
764
764
  e === void 0 || !m.editor.content.value.settings.popup || m.editor.updateSettings({ width: e });
765
765
  }
@@ -1,5 +1,5 @@
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-CtNAo0uy.js";
2
+ import "./useEditorCore-CSlYQZWx.js";
3
3
  import { t as f } from "./createLucideIcon-ClREiSx3.js";
4
4
  import { n as p } from "./useCloudI18n-DOKSZql1.js";
5
5
  import { t as m } from "./readableTextColor-C_9OpzBw.js";
@@ -0,0 +1,194 @@
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-C2xQZ6K9.js";
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-DfcBdJqN.js";
5
+ //#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
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
+ "value",
8
+ "placeholder",
9
+ "onInput"
10
+ ], j = ["value", "placeholder"], M = ["value"], N = /* @__PURE__ */ t({
11
+ __name: "CountdownToolbar",
12
+ props: {
13
+ block: {},
14
+ fontFamilies: {}
15
+ },
16
+ emits: ["update"],
17
+ setup(t, { emit: N }) {
18
+ let P = N, { t: F } = p(), I = [
19
+ "UTC",
20
+ "America/New_York",
21
+ "America/Chicago",
22
+ "America/Denver",
23
+ "America/Los_Angeles",
24
+ "Europe/London",
25
+ "Europe/Berlin",
26
+ "Europe/Paris",
27
+ "Europe/Moscow",
28
+ "Asia/Dubai",
29
+ "Asia/Kolkata",
30
+ "Asia/Shanghai",
31
+ "Asia/Tokyo",
32
+ "Australia/Sydney",
33
+ "Pacific/Auckland"
34
+ ], L = [
35
+ {
36
+ value: ":",
37
+ label: ":"
38
+ },
39
+ {
40
+ value: "-",
41
+ label: "-"
42
+ },
43
+ {
44
+ value: " ",
45
+ label: "␣"
46
+ }
47
+ ], R = [
48
+ "Days",
49
+ "Hours",
50
+ "Minutes",
51
+ "Seconds"
52
+ ], z = l(() => R.map((e) => ({
53
+ unit: e,
54
+ showKey: `show${e}`,
55
+ labelKey: `label${e}`,
56
+ translationKey: e.toLowerCase()
57
+ })));
58
+ function B(e, t) {
59
+ P("update", { [e]: t });
60
+ }
61
+ return (l, p) => (i(), d(o, null, [
62
+ f(v, { label: u(F).countdown.targetDate }, {
63
+ default: a(() => [c("input", {
64
+ type: "datetime-local",
65
+ class: e(u(m)),
66
+ value: t.block.targetDate,
67
+ onInput: p[0] ||= (e) => B("targetDate", e.target.value)
68
+ }, null, 42, b)]),
69
+ _: 1
70
+ }, 8, ["label"]),
71
+ f(v, { label: u(F).countdown.timezone }, {
72
+ default: a(() => [c("select", {
73
+ class: e(u(m)),
74
+ value: t.block.timezone,
75
+ onChange: p[1] ||= (e) => B("timezone", e.target.value)
76
+ }, [(i(), d(o, null, n(I, (e) => c("option", {
77
+ key: e,
78
+ value: e
79
+ }, r(e), 9, S)), 64))], 42, x)]),
80
+ _: 1
81
+ }, 8, ["label"]),
82
+ f(v, { label: u(F).countdown.display }, {
83
+ default: a(() => [c("div", C, [(i(!0), d(o, null, n(z.value, (e) => (i(), s(g, {
84
+ key: e.unit,
85
+ "model-value": t.block[e.showKey],
86
+ label: u(F).countdown[e.translationKey],
87
+ "onUpdate:modelValue": (t) => B(e.showKey, t)
88
+ }, null, 8, [
89
+ "model-value",
90
+ "label",
91
+ "onUpdate:modelValue"
92
+ ]))), 128))])]),
93
+ _: 1
94
+ }, 8, ["label"]),
95
+ f(v, { label: u(F).countdown.separator }, {
96
+ default: a(() => [f(y, {
97
+ options: L,
98
+ "model-value": t.block.separator,
99
+ "onUpdate:modelValue": p[2] ||= (e) => B("separator", e)
100
+ }, null, 8, ["model-value"])]),
101
+ _: 1
102
+ }, 8, ["label"]),
103
+ f(v, { label: u(F).countdown.fontFamily }, {
104
+ default: a(() => [c("select", {
105
+ class: e(u(m)),
106
+ value: t.block.fontFamily || "",
107
+ onChange: p[3] ||= (e) => B("fontFamily", e.target.value || void 0)
108
+ }, [c("option", T, r(u(F).countdown.inheritFont), 1), (i(!0), d(o, null, n(t.fontFamilies, (e) => (i(), d("option", {
109
+ key: e.value,
110
+ value: e.value
111
+ }, r(e.label), 9, E))), 128))], 42, w)]),
112
+ _: 1
113
+ }, 8, ["label"]),
114
+ c("div", D, [f(v, { label: u(F).countdown.digitFontSize }, {
115
+ default: a(() => [f(_, {
116
+ "model-value": t.block.digitFontSize,
117
+ min: 12,
118
+ max: 72,
119
+ suffix: "px",
120
+ "onUpdate:modelValue": p[4] ||= (e) => B("digitFontSize", e)
121
+ }, null, 8, ["model-value"])]),
122
+ _: 1
123
+ }, 8, ["label"]), f(v, { label: u(F).countdown.labelFontSize }, {
124
+ default: a(() => [f(_, {
125
+ "model-value": t.block.labelFontSize,
126
+ min: 8,
127
+ max: 24,
128
+ suffix: "px",
129
+ "onUpdate:modelValue": p[5] ||= (e) => B("labelFontSize", e)
130
+ }, null, 8, ["model-value"])]),
131
+ _: 1
132
+ }, 8, ["label"])]),
133
+ c("div", O, [f(v, { label: u(F).countdown.digitColor }, {
134
+ default: a(() => [f(h, {
135
+ "model-value": t.block.digitColor,
136
+ "onUpdate:modelValue": p[6] ||= (e) => B("digitColor", e)
137
+ }, null, 8, ["model-value"])]),
138
+ _: 1
139
+ }, 8, ["label"]), f(v, { label: u(F).countdown.labelColor }, {
140
+ default: a(() => [f(h, {
141
+ "model-value": t.block.labelColor,
142
+ "onUpdate:modelValue": p[7] ||= (e) => B("labelColor", e)
143
+ }, null, 8, ["model-value"])]),
144
+ _: 1
145
+ }, 8, ["label"])]),
146
+ f(v, { label: u(F).countdown.background }, {
147
+ default: a(() => [f(h, {
148
+ "model-value": t.block.backgroundColor,
149
+ "onUpdate:modelValue": p[8] ||= (e) => B("backgroundColor", e)
150
+ }, null, 8, ["model-value"])]),
151
+ _: 1
152
+ }, 8, ["label"]),
153
+ f(v, { label: u(F).countdown.labels }, {
154
+ default: a(() => [c("div", k, [(i(!0), d(o, null, n(z.value, (n) => (i(), d("input", {
155
+ key: n.unit,
156
+ type: "text",
157
+ class: e(u(m)),
158
+ value: t.block[n.labelKey],
159
+ placeholder: u(F).countdown[n.translationKey],
160
+ onInput: (e) => B(n.labelKey, e.target.value)
161
+ }, null, 42, A))), 128))])]),
162
+ _: 1
163
+ }, 8, ["label"]),
164
+ f(v, { label: u(F).countdown.expiry }, {
165
+ default: a(() => [c("input", {
166
+ type: "text",
167
+ class: e(u(m)),
168
+ value: t.block.expiredMessage,
169
+ placeholder: u(F).countdown.expiredMessagePlaceholder,
170
+ onInput: p[9] ||= (e) => B("expiredMessage", e.target.value)
171
+ }, null, 42, j)]),
172
+ _: 1
173
+ }, 8, ["label"]),
174
+ f(v, { label: u(F).countdown.expiredImageUrl }, {
175
+ default: a(() => [c("input", {
176
+ type: "url",
177
+ class: e(u(m)),
178
+ value: t.block.expiredImageUrl,
179
+ placeholder: "https://...",
180
+ onInput: p[10] ||= (e) => B("expiredImageUrl", e.target.value)
181
+ }, null, 42, M)]),
182
+ _: 1
183
+ }, 8, ["label"]),
184
+ f(g, {
185
+ "model-value": t.block.hideOnExpiry,
186
+ label: u(F).countdown.hideOnExpiry,
187
+ class: "tpl:mb-3.5",
188
+ "onUpdate:modelValue": p[11] ||= (e) => B("hideOnExpiry", e)
189
+ }, null, 8, ["model-value", "label"])
190
+ ], 64));
191
+ }
192
+ });
193
+ //#endregion
194
+ export { N as default };
@@ -8,7 +8,7 @@ import { t as v } from "./x-BkaOMosX.js";
8
8
  import { t as ce } from "./LoadingTrack-Ba2pfF57.js";
9
9
  import { t as y } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
10
10
  import { n as le } from "./useCloudI18n-DOKSZql1.js";
11
- import { u as ue } from "./cloud-BoS0J0vs.js";
11
+ import { u as ue } from "./cloud-COUuu_KE.js";
12
12
  var de = g("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",
@@ -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-CtNAo0uy.js";
2
+ import "./useEditorCore-CSlYQZWx.js";
3
3
  import { A as _, T as ae, m as oe } from "./keys-CvX8D-8C.js";
4
4
  import { t as se } from "./useI18n-C2xQZ6K9.js";
5
5
  import { t as v } from "./createLucideIcon-ClREiSx3.js";
6
- import { n as y, t as b } from "./blockTypeIcons-Dah0pgt-.js";
6
+ import { n as y, t as b } from "./blockTypeIcons-cRDr36gk.js";
7
7
  import { t as ce } from "./trash-2-CtK2apEH.js";
8
8
  import { t as le } from "./x-BkaOMosX.js";
9
9
  import { n as ue } from "./useCloudI18n-DOKSZql1.js";
10
- import { t as de } from "./TplModal-CQCrKeKP.js";
10
+ import { t as de } from "./TplModal-Dr6Do8oU.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-P3N-nxkU.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(() => {
56
+ let z = e, B = v, De = a(() => import("./ModulePreviewCanvas-D9jBAoBQ.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,5 +1,5 @@
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 { F as p, _ as m, a as h, b as g, c as _, d as v, g as y, h as b, i as x, m as S, o as C, p as w, s as T, v as E, x as D, y as O } from "./useEditorCore-CtNAo0uy.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-CSlYQZWx.js";
3
3
  import { s as k } from "./keys-CvX8D-8C.js";
4
4
  import { t as A } from "./CountdownBlock-Ba3T-i2X.js";
5
5
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
@@ -12,21 +12,21 @@ var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__
12
12
  },
13
13
  setup(e) {
14
14
  let N = {
15
- title: h,
16
- paragraph: b,
17
- image: E,
18
- video: x,
15
+ title: g,
16
+ paragraph: x,
17
+ image: D,
18
+ video: S,
19
19
  button: p,
20
- input: m,
21
- divider: g,
22
- social: _,
23
- menu: y,
24
- table: C,
25
- spacer: T,
20
+ input: h,
21
+ divider: _,
22
+ social: v,
23
+ menu: b,
24
+ table: w,
25
+ spacer: E,
26
26
  html: O,
27
27
  countdown: A,
28
- form: v,
29
- custom: D
28
+ form: y,
29
+ custom: m
30
30
  }, P = e, F = t(k, null), I = u(() => {
31
31
  switch (P.block.columns) {
32
32
  case "2": return ["50%", "50%"];
@@ -48,7 +48,7 @@ var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__
48
48
  return L.value[e] || [];
49
49
  }
50
50
  function z(e) {
51
- return S(e, F, N);
51
+ return C(e, F, N);
52
52
  }
53
53
  return (e, t) => {
54
54
  let u = r("PreviewSectionBlock", !0);
@@ -57,7 +57,7 @@ var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__
57
57
  style: l({ width: I.value[t] })
58
58
  }, [(i(!0), f(o, null, n(R(t), (e) => (i(), f("div", {
59
59
  key: e.id,
60
- style: l(d(w)(e))
60
+ style: l(d(T)(e))
61
61
  }, [e.type === "section" ? (i(), s(u, {
62
62
  key: 0,
63
63
  block: e,
@@ -81,28 +81,28 @@ var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__
81
81
  setup(e) {
82
82
  let r = t(k), c = {
83
83
  section: N,
84
- title: h,
85
- paragraph: b,
86
- image: E,
87
- video: x,
84
+ title: g,
85
+ paragraph: x,
86
+ image: D,
87
+ video: S,
88
88
  button: p,
89
- input: m,
90
- divider: g,
91
- social: _,
92
- menu: y,
93
- table: C,
94
- spacer: T,
89
+ input: h,
90
+ divider: _,
91
+ social: v,
92
+ menu: b,
93
+ table: w,
94
+ spacer: E,
95
95
  html: O,
96
96
  countdown: A,
97
- form: v,
98
- custom: D
97
+ form: y,
98
+ custom: m
99
99
  };
100
100
  function u(e) {
101
- return S(e, r, c);
101
+ return C(e, r, c);
102
102
  }
103
103
  return (t, r) => (i(), f("div", P, [(i(!0), f(o, null, n(e.blocks, (e) => (i(), f("div", {
104
104
  key: e.id,
105
- style: l(d(w)(e))
105
+ style: l(d(T)(e))
106
106
  }, [(i(), s(a(u(e)), {
107
107
  block: e,
108
108
  viewport: "desktop"
@@ -1,5 +1,5 @@
1
1
  import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, Y as s, _ as c, b as l, d as u, et as d, f, g as p, h as m, jt as h, m as g, p as _, st as v, u as y, v as b, x } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { E as S, S as C, T as w } from "./useEditorCore-CtNAo0uy.js";
2
+ import { C as S, D as C, E as w } from "./useEditorCore-CSlYQZWx.js";
3
3
  import { t as T } from "./dist-Djgi0A6k.js";
4
4
  import { A as E, D, g as O, k } from "./keys-CvX8D-8C.js";
5
5
  import { t as A } from "./useI18n-C2xQZ6K9.js";
@@ -165,8 +165,8 @@ var V = j("list-ordered", [
165
165
  __name: "EmojiPickerDropdown",
166
166
  emits: ["insert"],
167
167
  setup(t, { emit: n }) {
168
- let o = n, { categories: s, isOpen: l, toggle: p, close: h } = w(), { t: _, format: C } = A(), E = d(null), D = d(null);
169
- S(E, g(() => l.value)), T(D, () => {
168
+ let o = n, { categories: s, isOpen: l, toggle: p, close: h } = w(), { t: _, format: S } = A(), E = d(null), D = d(null);
169
+ C(E, g(() => l.value)), T(D, () => {
170
170
  l.value && h();
171
171
  });
172
172
  function O(e) {
@@ -205,7 +205,7 @@ var V = j("list-ordered", [
205
205
  }, [m("div", oe, i(v(_).emoji[e.key]), 1), m("div", se, [(a(!0), b(f, null, r(e.emojis, (e) => (a(), b("button", {
206
206
  key: e,
207
207
  type: "button",
208
- "aria-label": v(C)(v(_).paragraphEditor.emojiItemLabel, { emoji: e }),
208
+ "aria-label": v(S)(v(_).paragraphEditor.emojiItemLabel, { emoji: e }),
209
209
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
210
210
  onClick: (t) => O(e)
211
211
  }, i(e), 9, ce))), 128))])]))), 128))], 40, ae)) : c("", !0)], 512));
@@ -576,7 +576,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
576
576
  },
577
577
  emits: ["done"],
578
578
  setup(e, { emit: t }) {
579
- let n = e, r = t, { editor: i, EditorContent: o, isLoading: c, initError: l, retry: u, showLinkDialog: d, linkUrl: f, linkDialogRef: p, canRequestMergeTag: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: y, handleLinkKeydown: S, handleAddMergeTag: w } = C({
579
+ let n = e, r = t, { editor: i, EditorContent: o, isLoading: c, initError: l, retry: u, showLinkDialog: d, linkUrl: f, linkDialogRef: p, canRequestMergeTag: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: y, handleLinkKeydown: C, handleAddMergeTag: w } = S({
580
580
  blockId: () => n.block.id,
581
581
  blockContent: () => n.block.content,
582
582
  onDone: () => r("done"),
@@ -594,7 +594,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
594
594
  import("./dist-BadNx4qo.js"),
595
595
  import("./dist-COSzWQUs.js"),
596
596
  import("./dist-BZyY-SS4.js"),
597
- import("./extensions-DsmjHqBF.js")
597
+ import("./extensions-Bg22D6c8.js")
598
598
  ]);
599
599
  return {
600
600
  TiptapEditor: a,
@@ -677,7 +677,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
677
677
  onClose: v(y),
678
678
  onInsert: v(g),
679
679
  onRemove: v(_),
680
- onKeydown: v(S)
680
+ onKeydown: v(C)
681
681
  }, null, 8, [
682
682
  "visible",
683
683
  "is-editing-link",
@@ -1,10 +1,10 @@
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 l, c as u, et as d, f, g as p, h as m, jt as h, m as g, st as _, v, x as y } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import "./useEditorCore-CtNAo0uy.js";
2
+ import "./useEditorCore-CSlYQZWx.js";
3
3
  import { A as b, T as x, m as ee } from "./keys-CvX8D-8C.js";
4
4
  import { t as te } from "./useI18n-C2xQZ6K9.js";
5
5
  import { t as ne } from "./loader-circle-Balo8p3d.js";
6
6
  import { n as S } from "./useCloudI18n-DOKSZql1.js";
7
- import { t as C } from "./TplModal-CQCrKeKP.js";
7
+ import { t as C } from "./TplModal-Dr6Do8oU.js";
8
8
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
9
9
  var w = ["aria-busy"], T = {
10
10
  id: "tpl-save-module-title",