@templatical/editor 0.6.3 → 0.6.5

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 (128) hide show
  1. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
  2. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
  3. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
  4. package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
  5. package/dist/{CloudEditor-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
  6. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
  7. package/dist/CommentsSidebar-BQROg36f.js +441 -0
  8. package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
  9. package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
  10. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
  11. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
  12. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
  13. package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
  14. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
  15. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
  16. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
  17. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
  18. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
  19. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
  20. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
  21. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
  22. package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
  23. package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
  24. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
  27. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
  29. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
  30. package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
  31. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
  33. package/dist/cdn/chunks/{CloudEditor-D2GsEC_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
  35. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
  36. package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
  37. package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
  39. package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
  40. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
  41. package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
  43. package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
  44. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
  45. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
  46. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
  47. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
  48. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
  49. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
  50. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
  51. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
  52. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
  53. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
  54. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
  55. package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
  56. package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
  57. package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
  58. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
  59. package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
  60. package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
  61. package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
  63. package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
  65. package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
  66. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
  67. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
  69. package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
  71. package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
  72. package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
  73. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
  74. package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
  75. package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
  76. package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
  77. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
  78. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
  79. package/dist/cdn/editor.css +1 -1
  80. package/dist/cdn/editor.js +122 -122
  81. package/dist/cdn/editor.js.map +1 -1
  82. package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
  83. package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
  84. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
  85. package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
  86. package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
  87. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
  88. package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
  89. package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
  90. package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
  91. package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
  92. package/dist/index.d.ts +11 -11
  93. package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
  94. package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
  95. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
  96. package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
  97. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
  98. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  99. package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
  100. package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
  101. package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
  102. package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/styles-CwJQsnSp.js +3173 -0
  105. package/dist/templatical-editor.js +99 -99
  106. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
  107. package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
  108. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
  109. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
  110. package/dist/useEditorCore-DLd-5qMg.js +3784 -0
  111. package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
  112. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
  113. package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
  114. package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
  115. package/package.json +8 -8
  116. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  117. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  118. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  119. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  120. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  121. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  122. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  123. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  124. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  125. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  126. package/dist/styles-DEXEkBvg.js +0 -3176
  127. package/dist/useEditorCore-C6ost42Q.js +0 -9342
  128. package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
@@ -1,8 +1,8 @@
1
- import { D as e, E as t, H as n, L as r, M as i, Mt as a, Ot as o, R as s, S as c, _ as l, b as u, f as d, g as f, h as p, it as m, m as h, s as g, u as _, y as v } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { D as y, T as b } from "./keys-ciNfSSGj.js";
3
- import { t as x } from "./useI18n-lb2DHDiu.js";
4
- import { t as S } from "./createLucideIcon-C3pa2siy.js";
5
- import { t as C } from "./x-u2oVmjN_.js";
1
+ import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { D as y, T as b } from "./keys-Bqs_0du9.js";
3
+ import { t as x } from "./useI18n-CgmQftNf.js";
4
+ import { t as S } from "./createLucideIcon-Di4mqmGn.js";
5
+ import { t as C } from "./x-Dlaenqta.js";
6
6
  var w = S("bold", [["path", {
7
7
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
8
8
  key: "mg9rjx"
@@ -40,9 +40,9 @@ var w = S("bold", [["path", {
40
40
  }, A = ["aria-label"], j = { class: "tpl:p-5" }, M = { class: "tpl:mb-4 tpl:last:mb-0" }, N = {
41
41
  for: "tpl-link-dialog-url",
42
42
  class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
43
- }, P = ["placeholder"], F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */ c({
43
+ }, P = ["placeholder"], F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, I = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, L = /* @__PURE__ */ s({
44
44
  __name: "RichTextLinkDialog",
45
- props: /* @__PURE__ */ e({
45
+ props: /* @__PURE__ */ i({
46
46
  visible: { type: Boolean },
47
47
  isEditingLink: { type: Boolean }
48
48
  }, {
@@ -51,60 +51,60 @@ var w = S("bold", [["path", {
51
51
  dialogRef: { required: !0 },
52
52
  dialogRefModifiers: {}
53
53
  }),
54
- emits: /* @__PURE__ */ e([
54
+ emits: /* @__PURE__ */ i([
55
55
  "close",
56
56
  "insert",
57
57
  "remove",
58
58
  "keydown"
59
59
  ], ["update:linkUrl", "update:dialogRef"]),
60
- setup(e, { emit: r }) {
61
- let c = s(e, "linkUrl"), v = s(e, "dialogRef"), S = r, w = t(b, null), T = t(y, null), { t: E } = x();
62
- return (t, r) => (i(), p(d, { to: "body" }, [e.visible ? (i(), l("div", {
60
+ setup(n, { emit: i }) {
61
+ let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, w = v(b, null), T = v(y, null), { t: E } = x();
62
+ return (r, i) => (e(), p(g, { to: "body" }, [n.visible ? (e(), u("div", {
63
63
  key: 0,
64
64
  "data-tpl-theme": m(T),
65
65
  class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
66
- style: o(m(w)),
67
- onClick: r[6] ||= _((e) => S("close"), ["self"])
68
- }, [h("div", {
69
- ref: (e) => v.value = e,
66
+ style: f(m(w)),
67
+ onClick: i[6] ||= c((e) => S("close"), ["self"])
68
+ }, [l("div", {
69
+ ref: (e) => s.value = e,
70
70
  role: "dialog",
71
71
  "aria-modal": "true",
72
72
  "aria-labelledby": "tpl-link-dialog-title",
73
73
  class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-lg"
74
74
  }, [
75
- h("div", O, [h("h4", k, a(e.isEditingLink ? m(E).linkDialog.editLink : m(E).linkDialog.insertLink), 1), h("button", {
75
+ l("div", O, [l("h4", k, h(n.isEditingLink ? m(E).linkDialog.editLink : m(E).linkDialog.insertLink), 1), l("button", {
76
76
  type: "button",
77
77
  "aria-label": m(E).linkDialog.cancel,
78
78
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
79
- onClick: r[0] ||= (e) => S("close")
80
- }, [u(m(C), {
79
+ onClick: i[0] ||= (e) => S("close")
80
+ }, [_(m(C), {
81
81
  size: 16,
82
82
  "stroke-width": 2
83
83
  })], 8, A)]),
84
- h("div", j, [h("div", M, [h("label", N, a(m(E).linkDialog.urlLabel), 1), n(h("input", {
84
+ l("div", j, [l("div", M, [l("label", N, h(m(E).linkDialog.urlLabel), 1), t(l("input", {
85
85
  id: "tpl-link-dialog-url",
86
- "onUpdate:modelValue": r[1] ||= (e) => c.value = e,
86
+ "onUpdate:modelValue": i[1] ||= (e) => a.value = e,
87
87
  type: "url",
88
88
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
89
89
  placeholder: m(E).linkDialog.urlPlaceholder,
90
90
  autofocus: "",
91
- onKeydown: r[2] ||= (e) => S("keydown", e)
92
- }, null, 40, P), [[g, c.value]])])]),
93
- h("div", F, [e.isEditingLink ? (i(), l("button", {
91
+ onKeydown: i[2] ||= (e) => S("keydown", e)
92
+ }, null, 40, P), [[o, a.value]])])]),
93
+ l("div", F, [n.isEditingLink ? (e(), u("button", {
94
94
  key: 0,
95
95
  type: "button",
96
96
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-danger-light)]",
97
- onClick: r[3] ||= (e) => S("remove")
98
- }, a(m(E).linkDialog.removeLink), 1)) : f("", !0), h("div", I, [h("button", {
97
+ onClick: i[3] ||= (e) => S("remove")
98
+ }, h(m(E).linkDialog.removeLink), 1)) : d("", !0), l("div", I, [l("button", {
99
99
  type: "button",
100
100
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
101
- onClick: r[4] ||= (e) => S("close")
102
- }, a(m(E).linkDialog.cancel), 1), h("button", {
101
+ onClick: i[4] ||= (e) => S("close")
102
+ }, h(m(E).linkDialog.cancel), 1), l("button", {
103
103
  type: "button",
104
104
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-bg)]",
105
- onClick: r[5] ||= (e) => S("insert")
106
- }, a(e.isEditingLink ? m(E).linkDialog.updateLink : m(E).linkDialog.insertLink), 1)])])
107
- ], 512)], 12, D)) : f("", !0)]));
105
+ onClick: i[5] ||= (e) => S("insert")
106
+ }, h(n.isEditingLink ? m(E).linkDialog.updateLink : m(E).linkDialog.insertLink), 1)])])
107
+ ], 512)], 12, D)) : d("", !0)]));
108
108
  }
109
109
  }), R = {
110
110
  key: 0,
@@ -112,7 +112,7 @@ var w = S("bold", [["path", {
112
112
  }, z = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, B = {
113
113
  key: 1,
114
114
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
115
- }, V = /* @__PURE__ */ c({
115
+ }, V = /* @__PURE__ */ s({
116
116
  __name: "RichTextEditorContent",
117
117
  props: {
118
118
  editor: {},
@@ -121,16 +121,16 @@ var w = S("bold", [["path", {
121
121
  initError: {}
122
122
  },
123
123
  emits: ["retry"],
124
- setup(e, { emit: t }) {
125
- let n = t, { t: o } = x();
126
- return (t, s) => e.isLoading ? (i(), l("div", R, [h("div", z, a(m(o).errors.editorLoading), 1)])) : e.initError ? (i(), l("div", B, [v(a(m(o).errors.editorLoadFailed) + " ", 1), h("button", {
124
+ setup(t, { emit: r }) {
125
+ let i = r, { t: o } = x();
126
+ return (r, s) => t.isLoading ? (e(), u("div", R, [l("div", z, h(m(o).errors.editorLoading), 1)])) : t.initError ? (e(), u("div", B, [a(h(m(o).errors.editorLoadFailed) + " ", 1), l("button", {
127
127
  class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
128
- onClick: s[0] ||= (e) => n("retry")
129
- }, a(m(o).errors.retry), 1)])) : e.editorContent && e.editor ? (i(), p(r(e.editorContent), {
128
+ onClick: s[0] ||= (e) => i("retry")
129
+ }, h(m(o).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), p(n(t.editorContent), {
130
130
  key: 2,
131
- editor: e.editor,
131
+ editor: t.editor,
132
132
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
133
- }, null, 8, ["editor"])) : f("", !0);
133
+ }, null, 8, ["editor"])) : d("", !0);
134
134
  }
135
135
  });
136
136
  //#endregion
@@ -1,10 +1,10 @@
1
- import { Dt as e, H as t, M as n, Mt as r, Ot as i, P as a, Q as o, S as s, V as c, _ as l, b as u, d, g as f, h as p, it as m, m as h, p as g, s as _, y as v, z as y } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-C6ost42Q.js";
3
- import { C as b, O as x, m as S } from "./keys-ciNfSSGj.js";
4
- import { t as ee } from "./useI18n-lb2DHDiu.js";
5
- import { t as te } from "./loader-circle-DsY5Yg33.js";
6
- import { n as ne } from "./useCloudI18n-BuIwR6OE.js";
7
- import { t as C } from "./TplModal-BwSfxIHf.js";
1
+ import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import "./useEditorCore-DLd-5qMg.js";
3
+ import { C as y, O as b, m as x } from "./keys-Bqs_0du9.js";
4
+ import { t as S } from "./useI18n-CgmQftNf.js";
5
+ import { t as te } from "./loader-circle-_9bP23op.js";
6
+ import { n as ne } from "./useCloudI18n-CL_AwWwi.js";
7
+ import { t as C } from "./TplModal-CINtyB6Y.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",
@@ -20,27 +20,27 @@ var w = ["aria-busy"], T = {
20
20
  }, P = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, F = ["disabled"], I = ["disabled"], L = {
21
21
  key: 0,
22
22
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
23
- }, re = { key: 1 }, R = /* @__PURE__ */ s({
23
+ }, re = { key: 1 }, R = /* @__PURE__ */ c({
24
24
  __name: "SaveModuleDialog",
25
25
  props: {
26
26
  visible: { type: Boolean },
27
27
  preSelectedBlockId: {}
28
28
  },
29
29
  emits: ["close", "saved"],
30
- setup(s, { emit: R }) {
31
- let z = s, B = R, { t: V } = ee(), { t: H } = ne(), U = x(S, "SaveModuleDialog"), W = x(b, "SaveModuleDialog"), G = o(""), K = o(/* @__PURE__ */ new Set()), q = o(!1), J = o(null), Y = g(() => U.content.value.blocks);
30
+ setup(c, { emit: R }) {
31
+ let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
32
32
  function X(e, t) {
33
33
  let n = e.type;
34
34
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
35
35
  }
36
- y(() => z.visible, (e) => {
36
+ n(() => z.visible, (e) => {
37
37
  e && (G.value = "", J.value = null, K.value = new Set(z.preSelectedBlockId ? [z.preSelectedBlockId] : []));
38
38
  });
39
39
  function ie(e) {
40
40
  let t = new Set(K.value);
41
41
  t.has(e) ? t.delete(e) : t.add(e), K.value = t;
42
42
  }
43
- let Z = g(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
43
+ let Z = l(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
44
44
  async function Q() {
45
45
  if (Z.value) {
46
46
  q.value = !0, J.value = null;
@@ -60,12 +60,12 @@ var w = ["aria-busy"], T = {
60
60
  function ae(e) {
61
61
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
62
62
  }
63
- return (o, g) => (n(), p(C, {
64
- visible: s.visible,
63
+ return (n, i) => (e(), m(C, {
64
+ visible: c.visible,
65
65
  onClose: $,
66
66
  onKeydown: ae
67
67
  }, {
68
- default: c(() => [h("div", {
68
+ default: v(() => [u("div", {
69
69
  role: "dialog",
70
70
  "aria-modal": "true",
71
71
  "aria-busy": q.value,
@@ -76,44 +76,44 @@ var w = ["aria-busy"], T = {
76
76
  "box-shadow": "var(--tpl-shadow-xl)"
77
77
  }
78
78
  }, [
79
- h("h3", T, r(m(H).modules.saveAsModule), 1),
80
- h("div", E, [h("label", D, r(m(H).modules.moduleName), 1), t(h("input", {
81
- "onUpdate:modelValue": g[0] ||= (e) => G.value = e,
79
+ u("h3", T, g(h(H).modules.saveAsModule), 1),
80
+ u("div", E, [u("label", D, g(h(H).modules.moduleName), 1), t(u("input", {
81
+ "onUpdate:modelValue": i[0] ||= (e) => G.value = e,
82
82
  type: "text",
83
- placeholder: m(H).modules.moduleNamePlaceholder,
83
+ placeholder: h(H).modules.moduleNamePlaceholder,
84
84
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
85
85
  disabled: q.value
86
- }, null, 8, O), [[_, G.value]])]),
87
- h("div", k, [h("label", A, r(m(H).modules.selectBlocks), 1), h("div", j, [(n(!0), l(d, null, a(Y.value, (e, t) => (n(), l("label", {
88
- key: e.id,
86
+ }, null, 8, O), [[o, G.value]])]),
87
+ u("div", k, [u("label", A, g(h(H).modules.selectBlocks), 1), u("div", j, [(e(!0), d(ee, null, r(Y.value, (t, n) => (e(), d("label", {
88
+ key: t.id,
89
89
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
90
- style: i({
90
+ style: p({
91
91
  color: "var(--tpl-text)",
92
- backgroundColor: K.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
92
+ backgroundColor: K.value.has(t.id) ? "var(--tpl-primary-light)" : "transparent"
93
93
  })
94
- }, [h("input", {
94
+ }, [u("input", {
95
95
  type: "checkbox",
96
- checked: K.value.has(e.id),
96
+ checked: K.value.has(t.id),
97
97
  class: "tpl:accent-[var(--tpl-primary)]",
98
98
  disabled: q.value,
99
- onChange: (t) => ie(e.id)
100
- }, null, 40, M), v(" " + r(X(e, t)), 1)], 4))), 128))])]),
101
- J.value ? (n(), l("p", N, r(J.value), 1)) : f("", !0),
102
- h("div", P, [h("button", {
99
+ onChange: (e) => ie(t.id)
100
+ }, null, 40, M), a(" " + g(X(t, n)), 1)], 4))), 128))])]),
101
+ J.value ? (e(), d("p", N, g(J.value), 1)) : f("", !0),
102
+ u("div", P, [u("button", {
103
103
  type: "button",
104
- class: e(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": q.value }]),
104
+ class: s(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": q.value }]),
105
105
  disabled: q.value,
106
106
  onClick: $
107
- }, r(m(H).modules.cancel), 11, F), h("button", {
107
+ }, g(h(H).modules.cancel), 11, F), u("button", {
108
108
  type: "button",
109
109
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs 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)]",
110
110
  disabled: !Z.value,
111
111
  onClick: Q
112
- }, [q.value ? (n(), l("span", L, [u(m(te), {
112
+ }, [q.value ? (e(), d("span", L, [_(h(te), {
113
113
  class: "tpl:animate-spin",
114
114
  size: 12,
115
115
  "stroke-width": 2
116
- }), v(" " + r(m(H).modules.saving), 1)])) : (n(), l("span", re, r(m(H).modules.save), 1))], 8, I)])
116
+ }), a(" " + g(h(H).modules.saving), 1)])) : (e(), d("span", re, g(h(H).modules.save), 1))], 8, I)])
117
117
  ], 8, w)]),
118
118
  _: 1
119
119
  }, 8, ["visible"]));
@@ -1,12 +1,12 @@
1
- import { Dt as e, M as t, Mt as n, P as r, Q as i, S as a, V as o, _ as s, b as c, d as l, g as u, it as d, m as f, p, t as m, u as h, z as g } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-C6ost42Q.js";
3
- import { t as _ } from "./dist-B1IR0bpH.js";
4
- import { t as v } from "./useI18n-lb2DHDiu.js";
5
- import { t as y } from "./createLucideIcon-C3pa2siy.js";
6
- import { t as b } from "./chevron-down-R2uY34iD.js";
7
- import { t as x } from "./clock-CRp2sIub.js";
8
- import { t as S } from "./loader-circle-DsY5Yg33.js";
9
- import { n as C } from "./useCloudI18n-BuIwR6OE.js";
1
+ import { A as e, L as t, M as n, X as r, at as i, b as a, c as o, d as s, f as c, h as l, l as u, m as d, rt as f, st as p, t as m, v as h, z as g } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import "./useEditorCore-DLd-5qMg.js";
3
+ import { t as _ } from "./dist-BzRLLpfq.js";
4
+ import { t as v } from "./useI18n-CgmQftNf.js";
5
+ import { t as y } from "./createLucideIcon-Di4mqmGn.js";
6
+ import { t as b } from "./chevron-down-tee-ghFi.js";
7
+ import { t as x } from "./clock-CDlEdqiP.js";
8
+ import { t as S } from "./loader-circle-_9bP23op.js";
9
+ import { n as C } from "./useCloudI18n-CL_AwWwi.js";
10
10
  import { t as w } from "./formatRelativeTime-BOEf47hq.js";
11
11
  var T = y("chevron-left", [["path", {
12
12
  d: "m15 18-6-6 6-6",
@@ -42,11 +42,11 @@ var T = y("chevron-left", [["path", {
42
42
  },
43
43
  emits: ["load", "navigate"],
44
44
  setup(a, { emit: y }) {
45
- let z = a, B = y, { format: V } = v(), { t: H } = C(), U = i(!1), W = i(null), G = i(-1);
46
- g(() => z.snapshots.length, () => {
45
+ let z = a, B = y, { format: V } = v(), { t: H } = C(), U = r(!1), W = r(null), G = r(-1);
46
+ t(() => z.snapshots.length, () => {
47
47
  G.value = -1;
48
48
  });
49
- let K = p(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = p(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
49
+ let K = s(() => G.value > 0 && z.snapshots.length > 0 && !z.isRestoring), q = s(() => G.value < z.snapshots.length - 1 && z.snapshots.length > 0 && !z.isRestoring);
50
50
  function J() {
51
51
  K.value && (G.value--, B("navigate", z.snapshots[G.value]));
52
52
  }
@@ -71,52 +71,52 @@ var T = y("chevron-left", [["path", {
71
71
  }
72
72
  return _(W, () => {
73
73
  U.value = !1;
74
- }), (i, p) => (t(), s("div", {
74
+ }), (t, r) => (e(), l("div", {
75
75
  ref_key: "dropdownRef",
76
76
  ref: W,
77
77
  class: "tpl:relative tpl:flex tpl:items-center tpl:gap-0.5"
78
78
  }, [
79
- f("button", {
79
+ c("button", {
80
80
  class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
81
81
  disabled: !q.value,
82
- title: d(H).snapshotHistory.olderSnapshot,
83
- onClick: h(Y, ["stop"])
84
- }, [c(d(T), {
82
+ title: f(H).snapshotHistory.olderSnapshot,
83
+ onClick: o(Y, ["stop"])
84
+ }, [h(f(T), {
85
85
  size: 14,
86
86
  "stroke-width": 2
87
87
  })], 8, D),
88
- f("button", {
88
+ c("button", {
89
89
  class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
90
- title: d(H).snapshotHistory.tooltip,
91
- onClick: h(X, ["stop"])
92
- }, [c(d(x), {
90
+ title: f(H).snapshotHistory.tooltip,
91
+ onClick: o(X, ["stop"])
92
+ }, [h(f(x), {
93
93
  size: 16,
94
94
  "stroke-width": 1.5
95
- }), c(d(b), {
96
- class: e(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
95
+ }), h(f(b), {
96
+ class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": U.value }]),
97
97
  size: 10,
98
98
  "stroke-width": 2
99
99
  }, null, 8, ["class"])], 8, O),
100
- c(m, { name: "tpl-dropdown" }, {
101
- default: o(() => [U.value ? (t(), s("div", k, [f("div", A, n(d(H).snapshotHistory.dropdownTitle), 1), a.isLoading ? (t(), s("div", j, [c(d(S), {
100
+ h(m, { name: "tpl-dropdown" }, {
101
+ default: g(() => [U.value ? (e(), l("div", k, [c("div", A, p(f(H).snapshotHistory.dropdownTitle), 1), a.isLoading ? (e(), l("div", j, [h(f(S), {
102
102
  class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
103
103
  size: 20,
104
104
  "stroke-width": 2
105
- })])) : a.snapshots.length === 0 ? (t(), s("div", M, n(d(H).snapshotHistory.noSnapshots), 1)) : (t(), s("div", N, [(t(!0), s(l, null, r(a.snapshots, (e) => (t(), s("button", {
106
- key: e.id,
105
+ })])) : a.snapshots.length === 0 ? (e(), l("div", M, p(f(H).snapshotHistory.noSnapshots), 1)) : (e(), l("div", N, [(e(!0), l(u, null, n(a.snapshots, (t) => (e(), l("button", {
106
+ key: t.id,
107
107
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
108
108
  style: { "background-color": "transparent" },
109
109
  disabled: a.isRestoring,
110
- onClick: (t) => Z(e.id)
111
- }, [f("div", F, [f("div", I, [f("span", null, n(Q(e.created_at)), 1), e.is_autosave ? (t(), s("span", L, n(d(H).snapshotHistory.auto), 1)) : u("", !0)])])], 8, P))), 128))]))])) : u("", !0)]),
110
+ onClick: (e) => Z(t.id)
111
+ }, [c("div", F, [c("div", I, [c("span", null, p(Q(t.created_at)), 1), t.is_autosave ? (e(), l("span", L, p(f(H).snapshotHistory.auto), 1)) : d("", !0)])])], 8, P))), 128))]))])) : d("", !0)]),
112
112
  _: 1
113
113
  }),
114
- f("button", {
114
+ c("button", {
115
115
  class: "tpl:flex tpl:size-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] disabled:tpl:cursor-not-allowed disabled:tpl:opacity-30 disabled:hover:tpl:bg-transparent tpl:text-[var(--tpl-text-muted)]",
116
116
  disabled: !K.value,
117
- title: d(H).snapshotHistory.newerSnapshot,
118
- onClick: h(J, ["stop"])
119
- }, [c(d(E), {
117
+ title: f(H).snapshotHistory.newerSnapshot,
118
+ onClick: o(J, ["stop"])
119
+ }, [h(f(E), {
120
120
  size: 14,
121
121
  "stroke-width": 2
122
122
  })], 8, R)