@vc-shell/framework 1.1.99-alpha.1 → 1.1.99-alpha.10

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 (59) hide show
  1. package/dist/framework.js +3814 -3806
  2. package/dist/index.css +1 -1
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue.d.ts.map +1 -1
  5. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts.map +1 -1
  6. package/dist/ui/components/organisms/vc-table/composables/useTableModifications.d.ts +14 -0
  7. package/dist/ui/components/organisms/vc-table/composables/useTableModifications.d.ts.map +1 -0
  8. package/dist/{vendor-core-js-DDuR6YMQ.js → vendor-core-js-BFxlwwN5.js} +2 -2
  9. package/dist/{vendor-intlify-core-base-Da62SG4M.js → vendor-intlify-core-base-BPrkwvwk.js} +4 -4
  10. package/dist/{vendor-intlify-message-compiler-CHvGSH2u.js → vendor-intlify-message-compiler-Dguf6mhj.js} +2 -2
  11. package/dist/{vendor-intlify-shared-jWBPd9WB.js → vendor-intlify-shared-Di50oJUK.js} +1 -1
  12. package/dist/{vendor-prosemirror-commands-Cu1q5ZDk.js → vendor-prosemirror-commands-quHSf-06.js} +2 -2
  13. package/dist/{vendor-prosemirror-dropcursor-BuGmFgFS.js → vendor-prosemirror-dropcursor-B02qFqyv.js} +2 -2
  14. package/dist/{vendor-prosemirror-gapcursor-CyYcCWVK.js → vendor-prosemirror-gapcursor-csIPOlxW.js} +3 -3
  15. package/dist/{vendor-prosemirror-history-DzRcbrCw.js → vendor-prosemirror-history-1c9GGwnq.js} +3 -3
  16. package/dist/{vendor-prosemirror-keymap-KfbdOEJw.js → vendor-prosemirror-keymap-qY1NCp1b.js} +1 -1
  17. package/dist/{vendor-prosemirror-schema-list-CwCUArvx.js → vendor-prosemirror-schema-list-D8uyGoVp.js} +1 -1
  18. package/dist/{vendor-prosemirror-state-DHaVEu5h.js → vendor-prosemirror-state-Du7AF5Ax.js} +1 -1
  19. package/dist/{vendor-prosemirror-tables-mYok4vGT.js → vendor-prosemirror-tables-CtOx19Gr.js} +4 -4
  20. package/dist/{vendor-prosemirror-transform-CAHmg-qG.js → vendor-prosemirror-transform-dNz_YAu0.js} +6 -5
  21. package/dist/{vendor-prosemirror-view-CspJa44O.js → vendor-prosemirror-view-DpmNEJam.js} +2 -2
  22. package/dist/{vendor-tiptap-core-ClsTgaMv.js → vendor-tiptap-core-CEgpCf7B.js} +560 -493
  23. package/dist/{vendor-tiptap-extension-blockquote-r1MBx4hD.js → vendor-tiptap-extension-blockquote-wzBz8o9Q.js} +14 -13
  24. package/dist/{vendor-tiptap-extension-bold-BjLI4i8b.js → vendor-tiptap-extension-bold-CRRLMaAK.js} +1 -1
  25. package/dist/{vendor-tiptap-extension-code-D5-kDnMW.js → vendor-tiptap-extension-code-BIFA2Gxl.js} +1 -1
  26. package/dist/{vendor-tiptap-extension-code-block-RjEb0zPA.js → vendor-tiptap-extension-code-block-BSjY11bc.js} +2 -2
  27. package/dist/{vendor-tiptap-extension-document--PLOxIdq.js → vendor-tiptap-extension-document-DwvKx2hp.js} +1 -1
  28. package/dist/{vendor-tiptap-extension-hard-break-9cxC2YOS.js → vendor-tiptap-extension-hard-break-CZuhkJI2.js} +10 -10
  29. package/dist/{vendor-tiptap-extension-heading-2w0TutHn.js → vendor-tiptap-extension-heading-D35S-y-k.js} +1 -1
  30. package/dist/{vendor-tiptap-extension-horizontal-rule-CFowa_lc.js → vendor-tiptap-extension-horizontal-rule-4Qo7zefW.js} +2 -2
  31. package/dist/{vendor-tiptap-extension-image-aWn-na6j.js → vendor-tiptap-extension-image-Bbpsr_TM.js} +1 -1
  32. package/dist/{vendor-tiptap-extension-italic-Bn-6saY0.js → vendor-tiptap-extension-italic-CiQh9zGx.js} +1 -1
  33. package/dist/{vendor-tiptap-extension-link-BmcG1_k-.js → vendor-tiptap-extension-link-CrsWLfRc.js} +2 -2
  34. package/dist/{vendor-tiptap-extension-list-BrNBJ45n.js → vendor-tiptap-extension-list-pQaMlGjQ.js} +1 -1
  35. package/dist/{vendor-tiptap-extension-paragraph-DAiYhwUB.js → vendor-tiptap-extension-paragraph-BrThgWMs.js} +1 -1
  36. package/dist/vendor-tiptap-extension-placeholder-CrwIFpUp.js +1 -0
  37. package/dist/{vendor-tiptap-extension-strike-DqbXPfos.js → vendor-tiptap-extension-strike-CyPVcK5D.js} +1 -1
  38. package/dist/{vendor-tiptap-extension-table-DQwPaR7v.js → vendor-tiptap-extension-table-B7FEy-Bb.js} +3 -3
  39. package/dist/vendor-tiptap-extension-table-cell-Bbz2gi81.js +1 -0
  40. package/dist/vendor-tiptap-extension-table-header-Bbz2gi81.js +1 -0
  41. package/dist/vendor-tiptap-extension-table-row-Bbz2gi81.js +1 -0
  42. package/dist/{vendor-tiptap-extension-text-BFnfj70b.js → vendor-tiptap-extension-text-DqBjoYBM.js} +1 -1
  43. package/dist/{vendor-tiptap-extension-text-style-Darua3qr.js → vendor-tiptap-extension-text-style-DnaDmb_a.js} +1 -1
  44. package/dist/{vendor-tiptap-extension-underline-QyVnBqQZ.js → vendor-tiptap-extension-underline-fXgsxVmp.js} +1 -1
  45. package/dist/{vendor-tiptap-extensions-CU-D7bfm.js → vendor-tiptap-extensions-BFy2DVsW.js} +38 -38
  46. package/dist/{vendor-tiptap-markdown-BwATYN5A.js → vendor-tiptap-markdown-Ctlbws1-.js} +2 -2
  47. package/dist/vendor-tiptap-pm-6BAzdajG.js +1 -0
  48. package/dist/{vendor-tiptap-starter-kit-5luf7zzS.js → vendor-tiptap-starter-kit-BmGksOsA.js} +17 -17
  49. package/dist/{vendor-tiptap-vue-3-CFBErZGb.js → vendor-tiptap-vue-3-DKq4aaS7.js} +1 -1
  50. package/dist/{vendor-vue-i18n-CO5LWKE0.js → vendor-vue-i18n-DPqZrTrP.js} +315 -308
  51. package/package.json +5 -5
  52. package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-columns-header/vc-table-columns-header.vue +4 -5
  53. package/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue +4 -5
  54. package/ui/components/organisms/vc-table/composables/useTableModifications.ts +25 -0
  55. package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
  56. package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
  57. package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
  58. package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
  59. package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
@@ -1,5 +1,5 @@
1
- import { N as a, w as u, h as o, m as l } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- var c = /^\s*>\s$/, k = a.create({
1
+ import { N as a, w as c, h as s, m as d } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ var l = /^\s*>\s$/, m = a.create({
3
3
  name: "blockquote",
4
4
  addOptions() {
5
5
  return {
@@ -13,19 +13,20 @@ var c = /^\s*>\s$/, k = a.create({
13
13
  return [{ tag: "blockquote" }];
14
14
  },
15
15
  renderHTML({ HTMLAttributes: t }) {
16
- return /* @__PURE__ */ o("blockquote", { ...l(this.options.HTMLAttributes, t), children: /* @__PURE__ */ o("slot", {}) });
16
+ return /* @__PURE__ */ s("blockquote", { ...d(this.options.HTMLAttributes, t), children: /* @__PURE__ */ s("slot", {}) });
17
17
  },
18
18
  parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
19
19
  renderMarkdown: (t, e) => {
20
20
  if (!t.content)
21
21
  return "";
22
- const n = [];
23
- return t.content.forEach((r) => {
24
- const s = e.renderChildren(r).split(`
25
- `).map((i) => `> ${i}`).join(`
26
- `);
27
- n.push(s);
28
- }), n.flatMap((r) => [r, "> "]).slice(0, -1).join(`
22
+ const r = ">", n = [];
23
+ return t.content.forEach((i) => {
24
+ const u = e.renderChildren([i]).split(`
25
+ `).map((o) => o.trim() === "" ? r : `${r} ${o}`);
26
+ n.push(u.join(`
27
+ `));
28
+ }), n.join(`
29
+ ${r}
29
30
  `);
30
31
  },
31
32
  addCommands() {
@@ -42,13 +43,13 @@ var c = /^\s*>\s$/, k = a.create({
42
43
  },
43
44
  addInputRules() {
44
45
  return [
45
- u({
46
- find: c,
46
+ c({
47
+ find: l,
47
48
  type: this.type
48
49
  })
49
50
  ];
50
51
  }
51
52
  });
52
53
  export {
53
- k as B
54
+ m as B
54
55
  };
@@ -1,4 +1,4 @@
1
- import { M as a, a as r, b as s, h as n, m as o } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as a, a as r, b as s, h as n, m as o } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, l = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, i = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, m = a.create({
3
3
  name: "bold",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as r, a, b as n, m as d } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as r, a, b as n, m as d } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var s = /(^|[^`])`([^`]+)`(?!`)$/, o = /(^|[^`])`([^`]+)`(?!`)/g, i = r.create({
3
3
  name: "code",
4
4
  addOptions() {
@@ -1,5 +1,5 @@
1
- import { N as C, t as S, m as k } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- import { P as w, a as B, T, S as L } from "./vendor-prosemirror-state-DHaVEu5h.js";
1
+ import { N as C, t as S, m as k } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ import { P as w, a as B, T, S as L } from "./vendor-prosemirror-state-Du7AF5Ax.js";
3
3
  var y = 4, M = /^```([a-z]+)?[\s\n]$/, N = /^~~~([a-z]+)?[\s\n]$/, $ = C.create({
4
4
  name: "codeBlock",
5
5
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { N as n } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as n } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var o = n.create({
3
3
  name: "doc",
4
4
  topNode: !0,
@@ -1,4 +1,4 @@
1
- import { N as l, m as c } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as l, m as c } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var f = l.create({
3
3
  name: "hardBreak",
4
4
  markdownTokenName: "br",
@@ -22,23 +22,23 @@ var f = l.create({
22
22
  return `
23
23
  `;
24
24
  },
25
- renderMarkdown: (e, r) => r.indent(`
26
- `),
25
+ renderMarkdown: () => `
26
+ `,
27
27
  parseMarkdown: () => ({
28
28
  type: "hardBreak"
29
29
  }),
30
30
  addCommands() {
31
31
  return {
32
- setHardBreak: () => ({ commands: e, chain: r, state: a, editor: s }) => e.first([
32
+ setHardBreak: () => ({ commands: e, chain: n, state: a, editor: s }) => e.first([
33
33
  () => e.exitCode(),
34
34
  () => e.command(() => {
35
- const { selection: t, storedMarks: o } = a;
36
- if (t.$from.parent.type.spec.isolating)
35
+ const { selection: r, storedMarks: o } = a;
36
+ if (r.$from.parent.type.spec.isolating)
37
37
  return !1;
38
- const { keepMarks: i } = this.options, { splittableMarks: d } = s.extensionManager, n = o || t.$to.parentOffset && t.$from.marks();
39
- return r().insertContent({ type: this.name }).command(({ tr: u, dispatch: k }) => {
40
- if (k && n && i) {
41
- const m = n.filter((p) => d.includes(p.type.name));
38
+ const { keepMarks: i } = this.options, { splittableMarks: d } = s.extensionManager, t = o || r.$to.parentOffset && r.$from.marks();
39
+ return n().insertContent({ type: this.name }).command(({ tr: u, dispatch: k }) => {
40
+ if (k && t && i) {
41
+ const m = t.filter((p) => d.includes(p.type.name));
42
42
  u.ensureMarks(m);
43
43
  }
44
44
  return !0;
@@ -1,4 +1,4 @@
1
- import { N as l, t as a, m as i } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as l, t as a, m as i } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var d = l.create({
3
3
  name: "heading",
4
4
  addOptions() {
@@ -1,5 +1,5 @@
1
- import { N as m, n as f, c as h, i as T, m as N } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- import { T as s, N as y } from "./vendor-prosemirror-state-DHaVEu5h.js";
1
+ import { N as m, n as f, c as h, i as T, m as N } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ import { T as s, N as y } from "./vendor-prosemirror-state-Du7AF5Ax.js";
3
3
  var H = m.create({
4
4
  name: "horizontalRule",
5
5
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { N as h, n as m, R as f, m as g } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as h, n as m, R as f, m as g } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var b = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, y = h.create({
3
3
  name: "image",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as s, a as r, b as a, m as n } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as s, a as r, b as a, m as n } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, d = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, o = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = s.create({
3
3
  name: "italic",
4
4
  addOptions() {
@@ -1,6 +1,6 @@
1
- import { M as x, a as b, m as v, d as T, g as w, f as _, e as H, j as O } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as x, a as b, m as v, d as T, g as w, f as _, e as H, j as O } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  import { r as M, t as R, f as C, a as I } from "./vendor-linkifyjs-dCH9UYes.js";
3
- import { P as m, a as A } from "./vendor-prosemirror-state-DHaVEu5h.js";
3
+ import { P as m, a as A } from "./vendor-prosemirror-state-Du7AF5Ax.js";
4
4
  var P = "[\0-   ᠎ -\u2029  ]", B = new RegExp(P), U = new RegExp(`${P}$`), N = new RegExp(P, "g");
5
5
  function V(t) {
6
6
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
@@ -1,4 +1,4 @@
1
- import { N as L, E, w as k, m, r as H, k as g, l as B, o as j, p as $, q as K, s as M } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as L, E, w as k, m, r as H, k as g, l as B, o as j, p as $, q as K, s as M } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var V = Object.defineProperty, X = (t, e) => {
3
3
  for (var s in e)
4
4
  V(t, s, { get: e[s], enumerable: !0 });
@@ -1,4 +1,4 @@
1
- import { N as a, m as n } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as a, m as n } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var s = a.create({
3
3
  name: "paragraph",
4
4
  priority: 1e3,
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extensions-BFy2DVsW.js";
@@ -1,4 +1,4 @@
1
- import { M as r, a as s, b as a, m as n } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as r, a as s, b as a, m as n } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, d = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, o = r.create({
3
3
  name: "strike",
4
4
  addOptions() {
@@ -1,6 +1,6 @@
1
- import { N as x, u as $, v as _, m as M, x as k, E as O } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- import { T as I } from "./vendor-prosemirror-state-DHaVEu5h.js";
3
- import { c as P, t as j, C as N, f as z, g as H, s as D, m as W, a as v, b as V, d as S, e as B, h as K, i as F, j as U, k as q, l as G, n as J } from "./vendor-prosemirror-tables-mYok4vGT.js";
1
+ import { N as x, u as $, v as _, m as M, x as k, E as O } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ import { T as I } from "./vendor-prosemirror-state-Du7AF5Ax.js";
3
+ import { c as P, t as j, C as N, f as z, g as H, s as D, m as W, a as v, b as V, d as S, e as B, h as K, i as F, j as U, k as q, l as G, n as J } from "./vendor-prosemirror-tables-CtOx19Gr.js";
4
4
  var Q = x.create({
5
5
  name: "tableCell",
6
6
  addOptions() {
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-B7FEy-Bb.js";
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-B7FEy-Bb.js";
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extension-table-B7FEy-Bb.js";
@@ -1,4 +1,4 @@
1
- import { N as t } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { N as t } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var a = t.create({
3
3
  name: "text",
4
4
  group: "inline",
@@ -1,4 +1,4 @@
1
- import { M as y, m as p, E as l } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as y, m as p, E as l } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var d = 20, u = (t, e = 0) => {
3
3
  const r = [];
4
4
  return !t.children.length || e > d || Array.from(t.children).forEach((o) => {
@@ -1,4 +1,4 @@
1
- import { M as s, m as a } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { M as s, m as a } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  var u = s.create({
3
3
  name: "underline",
4
4
  addOptions() {
@@ -1,9 +1,9 @@
1
- import { E as u, y as w, u as v, v as P, i as S } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- import { P as p, a as m } from "./vendor-prosemirror-state-DHaVEu5h.js";
3
- import { d as z } from "./vendor-prosemirror-dropcursor-BuGmFgFS.js";
4
- import { a as g, D as f } from "./vendor-prosemirror-view-CspJa44O.js";
5
- import { g as E } from "./vendor-prosemirror-gapcursor-CyYcCWVK.js";
6
- import { h as N, r as M, u as O } from "./vendor-prosemirror-history-DzRcbrCw.js";
1
+ import { E as u, y as w, u as v, v as P, i as S } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ import { P as p, a as m } from "./vendor-prosemirror-state-Du7AF5Ax.js";
3
+ import { d as z } from "./vendor-prosemirror-dropcursor-B02qFqyv.js";
4
+ import { a as g, D as f } from "./vendor-prosemirror-view-DpmNEJam.js";
5
+ import { g as E } from "./vendor-prosemirror-gapcursor-csIPOlxW.js";
6
+ import { h as N, r as M, u as O } from "./vendor-prosemirror-history-1c9GGwnq.js";
7
7
  u.create({
8
8
  name: "characterCount",
9
9
  addOptions() {
@@ -29,8 +29,8 @@ u.create({
29
29
  }
30
30
  return t.nodeSize;
31
31
  }, this.storage.words = (e) => {
32
- const t = e?.node || this.editor.state.doc, s = t.textBetween(0, t.content.size, " ", " ");
33
- return this.options.wordCounter(s);
32
+ const t = e?.node || this.editor.state.doc, n = t.textBetween(0, t.content.size, " ", " ");
33
+ return this.options.wordCounter(n);
34
34
  };
35
35
  },
36
36
  addProseMirrorPlugins() {
@@ -38,7 +38,7 @@ u.create({
38
38
  return [
39
39
  new p({
40
40
  key: new m("characterCount"),
41
- appendTransaction: (t, s, r) => {
41
+ appendTransaction: (t, n, r) => {
42
42
  if (e)
43
43
  return;
44
44
  const o = this.options.limit;
@@ -46,9 +46,9 @@ u.create({
46
46
  e = !0;
47
47
  return;
48
48
  }
49
- const n = this.storage.characters({ node: r.doc });
50
- if (n > o) {
51
- const i = n - o, a = 0, d = i;
49
+ const s = this.storage.characters({ node: r.doc });
50
+ if (s > o) {
51
+ const i = s - o, a = 0, d = i;
52
52
  console.warn(
53
53
  `[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`
54
54
  );
@@ -57,16 +57,16 @@ u.create({
57
57
  }
58
58
  e = !0;
59
59
  },
60
- filterTransaction: (t, s) => {
60
+ filterTransaction: (t, n) => {
61
61
  const r = this.options.limit;
62
62
  if (!t.docChanged || r === 0 || r === null || r === void 0)
63
63
  return !0;
64
- const o = this.storage.characters({ node: s.doc }), n = this.storage.characters({ node: t.doc });
65
- if (n <= r || o > r && n > r && n <= o)
64
+ const o = this.storage.characters({ node: n.doc }), s = this.storage.characters({ node: t.doc });
65
+ if (s <= r || o > r && s > r && s <= o)
66
66
  return !0;
67
- if (o > r && n > r && n > o || !t.getMeta("paste"))
67
+ if (o > r && s > r && s > o || !t.getMeta("paste"))
68
68
  return !1;
69
- const a = t.selection.$head.pos, d = n - r, c = a - d, l = a;
69
+ const a = t.selection.$head.pos, d = s - r, c = a - d, l = a;
70
70
  return t.deleteRange(c, l), !(this.storage.characters({ node: t.doc }) > r);
71
71
  }
72
72
  })
@@ -100,8 +100,8 @@ u.create({
100
100
  key: new m("focus"),
101
101
  props: {
102
102
  decorations: ({ doc: e, selection: t }) => {
103
- const { isEditable: s, isFocused: r } = this.editor, { anchor: o } = t, n = [];
104
- if (!s || !r)
103
+ const { isEditable: n, isFocused: r } = this.editor, { anchor: o } = t, s = [];
104
+ if (!n || !r)
105
105
  return f.create(e, []);
106
106
  let i = 0;
107
107
  this.options.mode === "deepest" && e.descendants((d, c) => {
@@ -117,12 +117,12 @@ u.create({
117
117
  return !1;
118
118
  if (a += 1, this.options.mode === "deepest" && i - a > 0 || this.options.mode === "shallowest" && a > 1)
119
119
  return this.options.mode === "deepest";
120
- n.push(
120
+ s.push(
121
121
  g.node(c, c + d.nodeSize, {
122
122
  class: this.options.className
123
123
  })
124
124
  );
125
- }), f.create(e, n);
125
+ }), f.create(e, s);
126
126
  }
127
127
  }
128
128
  })
@@ -136,13 +136,13 @@ var F = u.create({
136
136
  },
137
137
  extendNodeSchema(e) {
138
138
  var t;
139
- const s = {
139
+ const n = {
140
140
  name: e.name,
141
141
  options: e.options,
142
142
  storage: e.storage
143
143
  };
144
144
  return {
145
- allowGapCursor: (t = v(P(e, "allowGapCursor", s))) != null ? t : null
145
+ allowGapCursor: (t = v(P(e, "allowGapCursor", n))) != null ? t : null
146
146
  };
147
147
  }
148
148
  }), G = u.create({
@@ -163,15 +163,15 @@ var F = u.create({
163
163
  key: new m("placeholder"),
164
164
  props: {
165
165
  decorations: ({ doc: e, selection: t }) => {
166
- const s = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
167
- if (!s)
166
+ const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = t, o = [];
167
+ if (!n)
168
168
  return null;
169
- const n = this.editor.isEmpty;
169
+ const s = this.editor.isEmpty;
170
170
  return e.descendants((i, a) => {
171
171
  const d = r >= a && r <= a + i.nodeSize, c = !i.isLeaf && w(i);
172
172
  if ((d || !this.options.showOnlyCurrent) && c) {
173
173
  const l = [this.options.emptyNodeClass];
174
- n && l.push(this.options.emptyEditorClass);
174
+ s && l.push(this.options.emptyEditorClass);
175
175
  const h = g.node(a, a + i.nodeSize, {
176
176
  class: l.join(" "),
177
177
  "data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
@@ -204,9 +204,9 @@ u.create({
204
204
  new p({
205
205
  key: new m("selection"),
206
206
  props: {
207
- decorations(s) {
208
- return s.selection.empty || e.isFocused || !e.isEditable || S(s.selection) || e.view.dragging ? null : f.create(s.doc, [
209
- g.inline(s.selection.from, s.selection.to, {
207
+ decorations(n) {
208
+ return n.selection.empty || e.isFocused || !e.isEditable || S(n.selection) || e.view.dragging ? null : f.create(n.doc, [
209
+ g.inline(n.selection.from, n.selection.to, {
210
210
  class: t.className
211
211
  })
212
212
  ]);
@@ -229,23 +229,23 @@ var R = u.create({
229
229
  },
230
230
  addProseMirrorPlugins() {
231
231
  var e;
232
- const t = new m(this.name), s = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(s).includes(o.name));
232
+ const t = new m(this.name), n = ((e = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : e.name) || this.options.node || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, o]) => o).filter((o) => (this.options.notAfter || []).concat(n).includes(o.name));
233
233
  return [
234
234
  new p({
235
235
  key: t,
236
- appendTransaction: (o, n, i) => {
237
- const { doc: a, tr: d, schema: c } = i, l = t.getState(i), h = a.content.size, C = c.nodes[s];
236
+ appendTransaction: (o, s, i) => {
237
+ const { doc: a, tr: d, schema: c } = i, l = t.getState(i), h = a.content.size, C = c.nodes[n];
238
238
  if (l)
239
239
  return d.insert(h, C.create());
240
240
  },
241
241
  state: {
242
- init: (o, n) => {
243
- const i = n.tr.doc.lastChild;
242
+ init: (o, s) => {
243
+ const i = s.tr.doc.lastChild;
244
244
  return !y({ node: i, types: r });
245
245
  },
246
- apply: (o, n) => {
247
- if (!o.docChanged)
248
- return n;
246
+ apply: (o, s) => {
247
+ if (!o.docChanged || o.getMeta("__uniqueIDTransaction"))
248
+ return s;
249
249
  const i = o.doc.lastChild;
250
250
  return !y({ node: i, types: r });
251
251
  }
@@ -1,9 +1,9 @@
1
- import { E as b, z as B, N as a, M as m, A as z } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { E as b, z as B, N as a, M as m, A as z } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  import { M as O, d } from "./vendor-prosemirror-markdown-OyxRuawK.js";
3
3
  import { M as C } from "./vendor-markdown-it-Czg9qJTh.js";
4
4
  import { d as P, F as w } from "./vendor-prosemirror-model-DFp4ML7B.js";
5
5
  import { t as _ } from "./vendor-markdown-it-task-lists-BxLwscWK.js";
6
- import { P as N, a as I } from "./vendor-prosemirror-state-DHaVEu5h.js";
6
+ import { P as N, a as I } from "./vendor-prosemirror-state-Du7AF5Ax.js";
7
7
  var A = Object.defineProperty, D = (r, e, t) => e in r ? A(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, h = (r, e, t) => (D(r, typeof e != "symbol" ? e + "" : e, t), t);
8
8
  const j = b.create({
9
9
  name: "markdownTightLists",
@@ -0,0 +1 @@
1
+ import "./vendor-prosemirror-tables-CtOx19Gr.js";
@@ -1,20 +1,20 @@
1
- import { E as e } from "./vendor-tiptap-core-ClsTgaMv.js";
2
- import { B as n } from "./vendor-tiptap-extension-blockquote-r1MBx4hD.js";
3
- import { B as p } from "./vendor-tiptap-extension-bold-BjLI4i8b.js";
4
- import { C as a } from "./vendor-tiptap-extension-code-D5-kDnMW.js";
5
- import { C as f } from "./vendor-tiptap-extension-code-block-RjEb0zPA.js";
6
- import { D as h } from "./vendor-tiptap-extension-document--PLOxIdq.js";
7
- import { H as u } from "./vendor-tiptap-extension-hard-break-9cxC2YOS.js";
8
- import { H as l } from "./vendor-tiptap-extension-heading-2w0TutHn.js";
9
- import { H as c } from "./vendor-tiptap-extension-horizontal-rule-CFowa_lc.js";
10
- import { I as d } from "./vendor-tiptap-extension-italic-Bn-6saY0.js";
11
- import { L as m } from "./vendor-tiptap-extension-link-BmcG1_k-.js";
12
- import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-BrNBJ45n.js";
13
- import { P as b } from "./vendor-tiptap-extension-paragraph-DAiYhwUB.js";
14
- import { S as x } from "./vendor-tiptap-extension-strike-DqbXPfos.js";
15
- import { T as v } from "./vendor-tiptap-extension-text-BFnfj70b.js";
16
- import { U as H } from "./vendor-tiptap-extension-underline-QyVnBqQZ.js";
17
- import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-CU-D7bfm.js";
1
+ import { E as e } from "./vendor-tiptap-core-CEgpCf7B.js";
2
+ import { B as n } from "./vendor-tiptap-extension-blockquote-wzBz8o9Q.js";
3
+ import { B as p } from "./vendor-tiptap-extension-bold-CRRLMaAK.js";
4
+ import { C as a } from "./vendor-tiptap-extension-code-BIFA2Gxl.js";
5
+ import { C as f } from "./vendor-tiptap-extension-code-block-BSjY11bc.js";
6
+ import { D as h } from "./vendor-tiptap-extension-document-DwvKx2hp.js";
7
+ import { H as u } from "./vendor-tiptap-extension-hard-break-CZuhkJI2.js";
8
+ import { H as l } from "./vendor-tiptap-extension-heading-D35S-y-k.js";
9
+ import { H as c } from "./vendor-tiptap-extension-horizontal-rule-4Qo7zefW.js";
10
+ import { I as d } from "./vendor-tiptap-extension-italic-CiQh9zGx.js";
11
+ import { L as m } from "./vendor-tiptap-extension-link-CrsWLfRc.js";
12
+ import { B as g, L as k, a as B, O as L } from "./vendor-tiptap-extension-list-pQaMlGjQ.js";
13
+ import { P as b } from "./vendor-tiptap-extension-paragraph-BrThgWMs.js";
14
+ import { S as x } from "./vendor-tiptap-extension-strike-CyPVcK5D.js";
15
+ import { T as v } from "./vendor-tiptap-extension-text-DqBjoYBM.js";
16
+ import { U as H } from "./vendor-tiptap-extension-underline-fXgsxVmp.js";
17
+ import { D as R, G as I, U as K, T as C } from "./vendor-tiptap-extensions-BFy2DVsW.js";
18
18
  var J = e.create({
19
19
  name: "starterKit",
20
20
  addExtensions() {
@@ -1,4 +1,4 @@
1
- import { B as c } from "./vendor-tiptap-core-ClsTgaMv.js";
1
+ import { B as c } from "./vendor-tiptap-core-CEgpCf7B.js";
2
2
  import { defineComponent as o, shallowRef as v, onMounted as p, onBeforeUnmount as l, h as s, ref as h, getCurrentInstance as f, watchEffect as g, nextTick as m, unref as S, markRaw as w, customRef as C } from "vue";
3
3
  function u(t) {
4
4
  return C((e, r) => ({