@aswin.dev/editor 0.7.3 → 0.7.6

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 +10 -10
  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
@@ -1,7 +1,7 @@
1
1
  import { At as e, C as t, F as n, Ft as r, N as i, T as a, U as o, W as s, _ as c, c as l, d as u, et as d, f, g as p, h as m, jt as h, k as g, m as _, n as v, st as y, u as b, v as x } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { A as S, N as C, i as w, k as T } from "./dist-C2grMquk.js";
2
+ import { A as S, P as C, i as w, j as T } from "./dist-DP82Y0rs.js";
3
3
  import { t as E } from "./useI18n-C2xQZ6K9.js";
4
- import { t as D } from "./useMergeTag-2vTcVpNo.js";
4
+ import { t as D } from "./useMergeTag-BVL3A4OO.js";
5
5
  import { F as O, Gt as k, _n as A, bn as j, i as M, o as N, p as P, u as F, vn as ee, xn as I } from "./dist-DXa1uAMh.js";
6
6
  import { n as L, t as R } from "./dist-C9ckKEZL.js";
7
7
  //#region src/extensions/FontSize.ts
@@ -85,9 +85,9 @@ var te = M.create({
85
85
  updateAttributes: { type: Function }
86
86
  },
87
87
  setup(t) {
88
- let n = t, { syntax: a } = D(), { t: f } = E(), v = _(() => C(n.node.attrs.value, a)), S = _(() => T(n.node.attrs.value, a)), w = d(!1), O = d(""), k = d(null), A = !1;
88
+ let n = t, { syntax: a } = D(), { t: f } = E(), v = _(() => C(n.node.attrs.value, a)), w = _(() => S(n.node.attrs.value, a)), T = d(!1), O = d(""), k = d(null), A = !1;
89
89
  function j() {
90
- O.value = n.node.attrs.value, A = !1, w.value = !0, g(() => {
90
+ O.value = n.node.attrs.value, A = !1, T.value = !0, g(() => {
91
91
  k.value?.focus(), k.value?.select();
92
92
  });
93
93
  }
@@ -96,16 +96,16 @@ var te = M.create({
96
96
  A = !0;
97
97
  let e = O.value.trim();
98
98
  if (!e) {
99
- w.value = !1;
99
+ T.value = !1;
100
100
  return;
101
101
  }
102
102
  e !== n.node.attrs.value && n.updateAttributes({
103
103
  value: e,
104
- keyword: C(e, a) ? T(e, a) : ""
105
- }), w.value = !1;
104
+ keyword: C(e, a) ? S(e, a) : ""
105
+ }), T.value = !1;
106
106
  }
107
107
  function N(e) {
108
- e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (w.value = !1);
108
+ e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
109
109
  }
110
110
  return (n, a) => (i(), p(y(R), {
111
111
  as: "span",
@@ -113,7 +113,7 @@ var te = M.create({
113
113
  style: h(v.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
114
114
  contenteditable: "false"
115
115
  }, {
116
- default: o(() => [w.value ? s((i(), x("input", {
116
+ default: o(() => [T.value ? s((i(), x("input", {
117
117
  key: 0,
118
118
  ref_key: "inputRef",
119
119
  ref: k,
@@ -131,7 +131,7 @@ var te = M.create({
131
131
  "data-tooltip": t.node.attrs.value,
132
132
  onClick: u(j, ["stop"]),
133
133
  onKeydown: [b(u(j, ["stop"]), ["enter"]), b(u(j, ["prevent", "stop"]), ["space"])]
134
- }, r(S.value), 41, z)) : (i(), x("span", {
134
+ }, r(w.value), 41, z)) : (i(), x("span", {
135
135
  key: 2,
136
136
  role: "button",
137
137
  tabindex: "0",
@@ -212,7 +212,7 @@ var G = F.create({
212
212
  {},
213
213
  e.attrs.value
214
214
  ];
215
- let n = T(e.attrs.value, this.options.syntax);
215
+ let n = S(e.attrs.value, this.options.syntax);
216
216
  return [
217
217
  "span",
218
218
  k(t, {
@@ -237,7 +237,7 @@ var G = F.create({
237
237
  handler: ({ state: e, range: t, match: n }) => {
238
238
  let r = n[0];
239
239
  if (!C(r, this.options.syntax)) return;
240
- let i = T(r, this.options.syntax), a = this.type.create({
240
+ let i = S(r, this.options.syntax), a = this.type.create({
241
241
  value: r,
242
242
  keyword: i
243
243
  });
@@ -251,7 +251,7 @@ var G = F.create({
251
251
  handler: ({ state: e, range: t, match: n }) => {
252
252
  let r = n[0];
253
253
  if (!C(r, this.options.syntax)) return;
254
- let i = T(r, this.options.syntax), a = this.type.create({
254
+ let i = S(r, this.options.syntax), a = this.type.create({
255
255
  value: r,
256
256
  keyword: i
257
257
  });
@@ -366,7 +366,7 @@ var G = F.create({
366
366
  return [{ tag: "span[data-merge-tag]" }];
367
367
  },
368
368
  renderHTML({ node: e, HTMLAttributes: t }) {
369
- let n = S(e.attrs.value, this.options.mergeTags);
369
+ let n = T(e.attrs.value, this.options.mergeTags);
370
370
  return [
371
371
  "span",
372
372
  k(t, {
@@ -395,7 +395,7 @@ var G = F.create({
395
395
  return [new N({
396
396
  find: RegExp(this.options.syntax.value.source + "$", ""),
397
397
  handler: ({ state: e, range: t, match: n }) => {
398
- let r = n[0], i = S(r, this.options.mergeTags), a = this.type.create({
398
+ let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
399
399
  label: i,
400
400
  value: r
401
401
  });
@@ -407,7 +407,7 @@ var G = F.create({
407
407
  return [new P({
408
408
  find: new RegExp(this.options.syntax.value.source, "g"),
409
409
  handler: ({ state: e, range: t, match: n }) => {
410
- let r = n[0], i = S(r, this.options.mergeTags), a = this.type.create({
410
+ let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
411
411
  label: i,
412
412
  value: r
413
413
  });
package/dist/index.d.ts CHANGED
@@ -324,16 +324,6 @@ export { ViewportSize }
324
324
  export { }
325
325
 
326
326
 
327
- declare module "@tiptap/core" {
328
- interface Commands<ReturnType> {
329
- lineHeight: {
330
- setLineHeight: (lineHeight: string) => ReturnType;
331
- unsetLineHeight: () => ReturnType;
332
- };
333
- }
334
- }
335
-
336
-
337
327
  declare module "@tiptap/core" {
338
328
  interface Commands<ReturnType> {
339
329
  letterSpacing: {
@@ -361,3 +351,13 @@ declare module "@tiptap/core" {
361
351
  };
362
352
  }
363
353
  }
354
+
355
+
356
+ declare module "@tiptap/core" {
357
+ interface Commands<ReturnType> {
358
+ lineHeight: {
359
+ setLineHeight: (lineHeight: string) => ReturnType;
360
+ unsetLineHeight: () => ReturnType;
361
+ };
362
+ }
363
+ }