@vc-shell/framework 1.1.91-alpha.0 → 1.1.91-alpha.1

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 (87) hide show
  1. package/CHANGELOG.md +1401 -2770
  2. package/core/api/platform.ts +9883 -9883
  3. package/core/composables/useNotifications/index.ts +32 -1
  4. package/core/composables/useSettings/index.ts +8 -3
  5. package/core/plugins/signalR/index.ts +3 -3
  6. package/core/providers/auth-provider-utils.ts +26 -0
  7. package/core/providers/example-custom-auth-provider.ts +3 -2
  8. package/core/providers/platform-auth-provider.ts +5 -3
  9. package/core/types/auth-provider.ts +2 -6
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  13. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  14. package/dist/core/providers/auth-provider-utils.d.ts +17 -0
  15. package/dist/core/providers/auth-provider-utils.d.ts.map +1 -0
  16. package/dist/core/providers/example-custom-auth-provider.d.ts +2 -2
  17. package/dist/core/providers/example-custom-auth-provider.d.ts.map +1 -1
  18. package/dist/core/providers/platform-auth-provider.d.ts +3 -3
  19. package/dist/core/providers/platform-auth-provider.d.ts.map +1 -1
  20. package/dist/core/types/auth-provider.d.ts +2 -2
  21. package/dist/core/types/auth-provider.d.ts.map +1 -1
  22. package/dist/framework.js +10440 -10407
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  26. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  27. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/dist/{vendor-core-js-azBmvlGv.js → vendor-core-js-DDuR6YMQ.js} +49 -49
  30. package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +1207 -0
  31. package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-Dp8OU6ZE.js → vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js} +20 -20
  32. package/dist/{vendor-microsoft-applicationinsights-channel-js-Bc73N-5y.js → vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js} +767 -754
  33. package/dist/{vendor-microsoft-applicationinsights-common-DcnOqpgL.js → vendor-microsoft-applicationinsights-common-OjU3Zs6r.js} +191 -191
  34. package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +4276 -0
  35. package/dist/{vendor-microsoft-applicationinsights-dependencies-js-C_DhEOae.js → vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js} +422 -414
  36. package/dist/{vendor-microsoft-applicationinsights-properties-js-COczDd7b.js → vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js} +117 -117
  37. package/dist/{vendor-microsoft-applicationinsights-web-DtOQojwf.js → vendor-microsoft-applicationinsights-web-9yeJ0EZv.js} +59 -59
  38. package/dist/{vendor-nevware21-ts-async-DFUnZ_sN.js → vendor-nevware21-ts-async-CdMc_sGt.js} +4 -3
  39. package/dist/{vendor-prosemirror-gapcursor-3PaVPyUV.js → vendor-prosemirror-gapcursor-K-Pj0iVP.js} +1 -1
  40. package/dist/{vendor-prosemirror-tables-CezTPhzU.js → vendor-prosemirror-tables-MDKm8BUy.js} +1 -1
  41. package/dist/{vendor-prosemirror-view-CzsD5m3e.js → vendor-prosemirror-view-CesDChJC.js} +512 -511
  42. package/dist/{vendor-semver-B87_S22g.js → vendor-semver-Dar8oU3V.js} +38 -36
  43. package/dist/{vendor-tiptap-core-rgc3Sj5Y.js → vendor-tiptap-core-B000Ay3n.js} +4 -2
  44. package/dist/{vendor-tiptap-extension-blockquote-DgzMeNpc.js → vendor-tiptap-extension-blockquote-CHW3QVCH.js} +1 -1
  45. package/dist/{vendor-tiptap-extension-bold-DZbX5Qiw.js → vendor-tiptap-extension-bold-DsNXR7l5.js} +1 -1
  46. package/dist/{vendor-tiptap-extension-code-BcakHaXe.js → vendor-tiptap-extension-code-BXPfZcyf.js} +1 -1
  47. package/dist/vendor-tiptap-extension-code-block-DYMOFxJc.js +197 -0
  48. package/dist/{vendor-tiptap-extension-document-BBhadLNS.js → vendor-tiptap-extension-document-Y-jQl_8Q.js} +1 -1
  49. package/dist/{vendor-tiptap-extension-hard-break-eyl10A9U.js → vendor-tiptap-extension-hard-break-DfxtqTYW.js} +1 -1
  50. package/dist/{vendor-tiptap-extension-heading-BmX_Abvh.js → vendor-tiptap-extension-heading-BqN9fEEm.js} +1 -1
  51. package/dist/{vendor-tiptap-extension-horizontal-rule-DyYIWV6W.js → vendor-tiptap-extension-horizontal-rule-Dl1wmLAo.js} +16 -16
  52. package/dist/{vendor-tiptap-extension-image-C06iDyEi.js → vendor-tiptap-extension-image-Cv28QlbA.js} +1 -1
  53. package/dist/{vendor-tiptap-extension-italic-B2YDHBEe.js → vendor-tiptap-extension-italic-B3WETSCz.js} +1 -1
  54. package/dist/{vendor-tiptap-extension-link-Bw8_3Rr4.js → vendor-tiptap-extension-link-CTWD6W1U.js} +1 -1
  55. package/dist/{vendor-tiptap-extension-list-qHzpj6eq.js → vendor-tiptap-extension-list-Da9Xfgwa.js} +1 -1
  56. package/dist/{vendor-tiptap-extension-paragraph-BnCRfXCL.js → vendor-tiptap-extension-paragraph-CSda9k3a.js} +1 -1
  57. package/dist/vendor-tiptap-extension-placeholder-MI_ltlp7.js +1 -0
  58. package/dist/{vendor-tiptap-extension-strike-Naksm43m.js → vendor-tiptap-extension-strike-Di5VtsLj.js} +1 -1
  59. package/dist/{vendor-tiptap-extension-table-Cguez3tu.js → vendor-tiptap-extension-table-DYCEjlpp.js} +94 -85
  60. package/dist/vendor-tiptap-extension-table-cell-D5DL87Xa.js +1 -0
  61. package/dist/vendor-tiptap-extension-table-header-D5DL87Xa.js +1 -0
  62. package/dist/vendor-tiptap-extension-table-row-D5DL87Xa.js +1 -0
  63. package/dist/{vendor-tiptap-extension-text-CixjyWfN.js → vendor-tiptap-extension-text-8vtzSN60.js} +1 -1
  64. package/dist/{vendor-tiptap-extension-text-style-CVsjuWJ4.js → vendor-tiptap-extension-text-style-BiLsi9B8.js} +35 -30
  65. package/dist/{vendor-tiptap-extension-underline-Rwkvga0F.js → vendor-tiptap-extension-underline-Bz_pv2E0.js} +1 -1
  66. package/dist/{vendor-tiptap-extensions-F9A02hii.js → vendor-tiptap-extensions-Crh_nh74.js} +3 -3
  67. package/dist/{vendor-tiptap-markdown-BSUpswXr.js → vendor-tiptap-markdown-bGlioql8.js} +1 -1
  68. package/dist/vendor-tiptap-pm-Ug0Z93EG.js +1 -0
  69. package/dist/{vendor-tiptap-starter-kit-BUgq7S1_.js → vendor-tiptap-starter-kit-B3fY431M.js} +17 -17
  70. package/dist/{vendor-tiptap-vue-3-UHrHfZLG.js → vendor-tiptap-vue-3-CqWn44-V.js} +22 -22
  71. package/dist/{vendor-vue3-application-insights-CE6eo4vj.js → vendor-vue3-application-insights-BKiiWnf2.js} +2 -2
  72. package/dist/{vendor-vueuse-components-B0zqjNRW.js → vendor-vueuse-components-sgKpNzof.js} +1 -1
  73. package/dist/{vendor-vueuse-core-CYgwn-B2.js → vendor-vueuse-core-D0cN7FqY.js} +10 -10
  74. package/dist/{vendor-vueuse-shared-B_uDJJ6V.js → vendor-vueuse-shared-Pt0UEStA.js} +19 -19
  75. package/package.json +4 -4
  76. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +2 -2
  77. package/shared/components/sign-in/useExternalProvider.ts +11 -1
  78. package/shared/modules/dynamic/helpers/nodeBuilder.ts +11 -3
  79. package/ui/components/organisms/vc-app/vc-app.vue +2 -2
  80. package/dist/vendor-microsoft-applicationinsights-analytics-js-BNSkz9ia.js +0 -1105
  81. package/dist/vendor-microsoft-applicationinsights-core-js-CX4NA2hM.js +0 -4127
  82. package/dist/vendor-tiptap-extension-code-block-B0U7g1XA.js +0 -192
  83. package/dist/vendor-tiptap-extension-placeholder-BVZ1jBA2.js +0 -1
  84. package/dist/vendor-tiptap-extension-table-cell-lniviH1T.js +0 -1
  85. package/dist/vendor-tiptap-extension-table-header-lniviH1T.js +0 -1
  86. package/dist/vendor-tiptap-extension-table-row-lniviH1T.js +0 -1
  87. package/dist/vendor-tiptap-pm-BUxx7nt1.js +0 -1
@@ -44,12 +44,12 @@ function M() {
44
44
  ["\\d", n],
45
45
  [l, r]
46
46
  ], A = (S) => {
47
- for (const [g, G] of m)
48
- S = S.split(`${g}*`).join(`${g}{0,${G}}`).split(`${g}+`).join(`${g}{1,${G}}`);
47
+ for (const [g, y] of m)
48
+ S = S.split(`${g}*`).join(`${g}{0,${y}}`).split(`${g}+`).join(`${g}{1,${y}}`);
49
49
  return S;
50
- }, E = (S, g, G) => {
51
- const w = A(g), y = o++;
52
- p(S, y, g), e[S] = y, s[y] = g, t[y] = w, c[y] = new RegExp(g, G ? "g" : void 0), f[y] = new RegExp(w, G ? "g" : void 0);
50
+ }, E = (S, g, y) => {
51
+ const w = A(g), G = o++;
52
+ p(S, G, g), e[S] = G, s[G] = g, t[G] = w, c[G] = new RegExp(g, y ? "g" : void 0), f[G] = new RegExp(w, y ? "g" : void 0);
53
53
  };
54
54
  E("NUMERICIDENTIFIER", "0|[1-9]\\d*"), E("NUMERICIDENTIFIERLOOSE", "\\d+"), E("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${l}*`), E("MAINVERSION", `(${s[e.NUMERICIDENTIFIER]})\\.(${s[e.NUMERICIDENTIFIER]})\\.(${s[e.NUMERICIDENTIFIER]})`), E("MAINVERSIONLOOSE", `(${s[e.NUMERICIDENTIFIERLOOSE]})\\.(${s[e.NUMERICIDENTIFIERLOOSE]})\\.(${s[e.NUMERICIDENTIFIERLOOSE]})`), E("PRERELEASEIDENTIFIER", `(?:${s[e.NONNUMERICIDENTIFIER]}|${s[e.NUMERICIDENTIFIER]})`), E("PRERELEASEIDENTIFIERLOOSE", `(?:${s[e.NONNUMERICIDENTIFIER]}|${s[e.NUMERICIDENTIFIERLOOSE]})`), E("PRERELEASE", `(?:-(${s[e.PRERELEASEIDENTIFIER]}(?:\\.${s[e.PRERELEASEIDENTIFIER]})*))`), E("PRERELEASELOOSE", `(?:-?(${s[e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[e.PRERELEASEIDENTIFIERLOOSE]})*))`), E("BUILDIDENTIFIER", `${l}+`), E("BUILD", `(?:\\+(${s[e.BUILDIDENTIFIER]}(?:\\.${s[e.BUILDIDENTIFIER]})*))`), E("FULLPLAIN", `v?${s[e.MAINVERSION]}${s[e.PRERELEASE]}?${s[e.BUILD]}?`), E("FULL", `^${s[e.FULLPLAIN]}$`), E("LOOSEPLAIN", `[v=\\s]*${s[e.MAINVERSIONLOOSE]}${s[e.PRERELEASELOOSE]}?${s[e.BUILD]}?`), E("LOOSE", `^${s[e.LOOSEPLAIN]}$`), E("GTLT", "((?:<|>)?=?)"), E("XRANGEIDENTIFIERLOOSE", `${s[e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), E("XRANGEIDENTIFIER", `${s[e.NUMERICIDENTIFIER]}|x|X|\\*`), E("XRANGEPLAIN", `[v=\\s]*(${s[e.XRANGEIDENTIFIER]})(?:\\.(${s[e.XRANGEIDENTIFIER]})(?:\\.(${s[e.XRANGEIDENTIFIER]})(?:${s[e.PRERELEASE]})?${s[e.BUILD]}?)?)?`), E("XRANGEPLAINLOOSE", `[v=\\s]*(${s[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[e.XRANGEIDENTIFIERLOOSE]})(?:${s[e.PRERELEASELOOSE]})?${s[e.BUILD]}?)?)?`), E("XRANGE", `^${s[e.GTLT]}\\s*${s[e.XRANGEPLAIN]}$`), E("XRANGELOOSE", `^${s[e.GTLT]}\\s*${s[e.XRANGEPLAINLOOSE]}$`), E("COERCEPLAIN", `(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`), E("COERCE", `${s[e.COERCEPLAIN]}(?:$|[^\\d])`), E("COERCEFULL", s[e.COERCEPLAIN] + `(?:${s[e.PRERELEASE]})?(?:${s[e.BUILD]})?(?:$|[^\\d])`), E("COERCERTL", s[e.COERCE], !0), E("COERCERTLFULL", s[e.COERCEFULL], !0), E("LONETILDE", "(?:~>?)"), E("TILDETRIM", `(\\s*)${s[e.LONETILDE]}\\s+`, !0), u.tildeTrimReplace = "$1~", E("TILDE", `^${s[e.LONETILDE]}${s[e.XRANGEPLAIN]}$`), E("TILDELOOSE", `^${s[e.LONETILDE]}${s[e.XRANGEPLAINLOOSE]}$`), E("LONECARET", "(?:\\^)"), E("CARETTRIM", `(\\s*)${s[e.LONECARET]}\\s+`, !0), u.caretTrimReplace = "$1^", E("CARET", `^${s[e.LONECARET]}${s[e.XRANGEPLAIN]}$`), E("CARETLOOSE", `^${s[e.LONECARET]}${s[e.XRANGEPLAINLOOSE]}$`), E("COMPARATORLOOSE", `^${s[e.GTLT]}\\s*(${s[e.LOOSEPLAIN]})$|^$`), E("COMPARATOR", `^${s[e.GTLT]}\\s*(${s[e.FULLPLAIN]})$|^$`), E("COMPARATORTRIM", `(\\s*)${s[e.GTLT]}\\s*(${s[e.LOOSEPLAIN]}|${s[e.XRANGEPLAIN]})`, !0), u.comparatorTrimReplace = "$1$2$3", E("HYPHENRANGE", `^\\s*(${s[e.XRANGEPLAIN]})\\s+-\\s+(${s[e.XRANGEPLAIN]})\\s*$`), E("HYPHENRANGELOOSE", `^\\s*(${s[e.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[e.XRANGEPLAINLOOSE]})\\s*$`), E("STAR", "(<|>)?=?\\s*\\*"), E("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), E("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
55
55
  })(H, H.exports)), H.exports;
@@ -66,6 +66,8 @@ function xr() {
66
66
  if (er) return se;
67
67
  er = 1;
68
68
  const a = /^[0-9]+$/, u = (r, n) => {
69
+ if (typeof r == "number" && typeof n == "number")
70
+ return r === n ? 0 : r < n ? -1 : 1;
69
71
  const p = a.test(r), c = a.test(n);
70
72
  return p && c && (r = +r, n = +n), r === n ? 0 : p && !c ? -1 : c && !p ? 1 : r < n ? -1 : 1;
71
73
  };
@@ -125,7 +127,7 @@ function j() {
125
127
  return t.version === this.version ? 0 : this.compareMain(t) || this.comparePre(t);
126
128
  }
127
129
  compareMain(t) {
128
- return t instanceof f || (t = new f(t, this.options)), c(this.major, t.major) || c(this.minor, t.minor) || c(this.patch, t.patch);
130
+ return t instanceof f || (t = new f(t, this.options)), this.major < t.major ? -1 : this.major > t.major ? 1 : this.minor < t.minor ? -1 : this.minor > t.minor ? 1 : this.patch < t.patch ? -1 : this.patch > t.patch ? 1 : 0;
129
131
  }
130
132
  comparePre(t) {
131
133
  if (t instanceof f || (t = new f(t, this.options)), this.prerelease.length && !t.prerelease.length)
@@ -564,7 +566,7 @@ function X() {
564
566
  return v;
565
567
  const d = this.options.loose, L = d ? s[t.HYPHENRANGELOOSE] : s[t.HYPHENRANGE];
566
568
  h = h.replace(L, J(this.options.includePrerelease)), c("hyphen replace", h), h = h.replace(s[t.COMPARATORTRIM], e), c("comparator trim", h), h = h.replace(s[t.TILDETRIM], o), c("tilde trim", h), h = h.replace(s[t.CARETTRIM], l), c("caret trim", h);
567
- let T = h.split(" ").map((P) => G(P, this.options)).join(" ").split(/\s+/).map((P) => Z(P, this.options));
569
+ let T = h.split(" ").map((P) => y(P, this.options)).join(" ").split(/\s+/).map((P) => Z(P, this.options));
568
570
  d && (T = T.filter((P) => (c("loose invalid filter", P, this.options), !!P.match(s[t.COMPARATORLOOSE])))), c("range list", T);
569
571
  const O = /* @__PURE__ */ new Map(), q = T.map((P) => new p(P, this.options));
570
572
  for (const P of q) {
@@ -611,7 +613,7 @@ function X() {
611
613
  for (; I && $.length; )
612
614
  I = $.every((d) => v.intersects(d, h)), v = $.pop();
613
615
  return I;
614
- }, G = (R, h) => (c("comp", R, h), R = C(R, h), c("caret", R), R = y(R, h), c("tildes", R), R = N(R, h), c("xrange", R), R = K(R, h), c("stars", R), R), w = (R) => !R || R.toLowerCase() === "x" || R === "*", y = (R, h) => R.trim().split(/\s+/).map((I) => F(I, h)).join(" "), F = (R, h) => {
616
+ }, y = (R, h) => (R = R.replace(s[t.BUILD], ""), c("comp", R, h), R = C(R, h), c("caret", R), R = G(R, h), c("tildes", R), R = N(R, h), c("xrange", R), R = K(R, h), c("stars", R), R), w = (R) => !R || R.toLowerCase() === "x" || R === "*", G = (R, h) => R.trim().split(/\s+/).map((I) => F(I, h)).join(" "), F = (R, h) => {
615
617
  const I = h.loose ? s[t.TILDELOOSE] : s[t.TILDE];
616
618
  return R.replace(I, ($, v, d, L, T) => {
617
619
  c("tilde", R, $, v, d, L, T);
@@ -719,12 +721,12 @@ function it() {
719
721
  const a = X();
720
722
  return De = (i, r) => new a(i, r).set.map((n) => n.map((p) => p.value).join(" ").trim().split(" ")), De;
721
723
  }
722
- var Ge, Cr;
724
+ var ye, Cr;
723
725
  function at() {
724
- if (Cr) return Ge;
726
+ if (Cr) return ye;
725
727
  Cr = 1;
726
728
  const a = j(), u = X();
727
- return Ge = (r, n, p) => {
729
+ return ye = (r, n, p) => {
728
730
  let c = null, f = null, s = null;
729
731
  try {
730
732
  s = new u(n, p);
@@ -734,14 +736,14 @@ function at() {
734
736
  return r.forEach((t) => {
735
737
  s.test(t) && (!c || f.compare(t) === -1) && (c = t, f = new a(c, p));
736
738
  }), c;
737
- }, Ge;
739
+ }, ye;
738
740
  }
739
- var ye, Pr;
741
+ var Ge, Pr;
740
742
  function ot() {
741
- if (Pr) return ye;
743
+ if (Pr) return Ge;
742
744
  Pr = 1;
743
745
  const a = j(), u = X();
744
- return ye = (r, n, p) => {
746
+ return Ge = (r, n, p) => {
745
747
  let c = null, f = null, s = null;
746
748
  try {
747
749
  s = new u(n, p);
@@ -751,7 +753,7 @@ function ot() {
751
753
  return r.forEach((t) => {
752
754
  s.test(t) && (!c || f.compare(t) === 1) && (c = t, f = new a(c, p));
753
755
  }), c;
754
- }, ye;
756
+ }, Ge;
755
757
  }
756
758
  var _e, Dr;
757
759
  function ct() {
@@ -789,10 +791,10 @@ function ct() {
789
791
  return c && n.test(c) ? c : null;
790
792
  }, _e;
791
793
  }
792
- var je, Gr;
794
+ var je, yr;
793
795
  function ut() {
794
- if (Gr) return je;
795
- Gr = 1;
796
+ if (yr) return je;
797
+ yr = 1;
796
798
  const a = X();
797
799
  return je = (i, r) => {
798
800
  try {
@@ -802,20 +804,20 @@ function ut() {
802
804
  }
803
805
  }, je;
804
806
  }
805
- var Fe, yr;
807
+ var Fe, Gr;
806
808
  function ze() {
807
- if (yr) return Fe;
808
- yr = 1;
809
+ if (Gr) return Fe;
810
+ Gr = 1;
809
811
  const a = j(), u = W(), { ANY: i } = u, r = X(), n = z(), p = Y(), c = Be(), f = We(), s = Ye();
810
812
  return Fe = (e, o, l, m) => {
811
813
  e = new a(e, m), o = new r(o, m);
812
- let A, E, S, g, G;
814
+ let A, E, S, g, y;
813
815
  switch (l) {
814
816
  case ">":
815
- A = p, E = f, S = c, g = ">", G = ">=";
817
+ A = p, E = f, S = c, g = ">", y = ">=";
816
818
  break;
817
819
  case "<":
818
- A = c, E = s, S = p, g = "<", G = "<=";
820
+ A = c, E = s, S = p, g = "<", y = "<=";
819
821
  break;
820
822
  default:
821
823
  throw new TypeError('Must provide a hilo val of "<" or ">"');
@@ -823,13 +825,13 @@ function ze() {
823
825
  if (n(e, o, m))
824
826
  return !1;
825
827
  for (let w = 0; w < o.set.length; ++w) {
826
- const y = o.set[w];
828
+ const G = o.set[w];
827
829
  let F = null, C = null;
828
- if (y.forEach((D) => {
830
+ if (G.forEach((D) => {
829
831
  D.semver === i && (D = new u(">=0.0.0")), F = F || D, C = C || D, A(D.semver, F.semver, m) ? F = D : S(D.semver, C.semver, m) && (C = D);
830
- }), F.operator === g || F.operator === G || (!C.operator || C.operator === g) && E(e, C.semver))
832
+ }), F.operator === g || F.operator === y || (!C.operator || C.operator === g) && E(e, C.semver))
831
833
  return !1;
832
- if (C.operator === G && S(e, C.semver))
834
+ if (C.operator === y && S(e, C.semver))
833
835
  return !1;
834
836
  }
835
837
  return !0;
@@ -928,12 +930,12 @@ function pt() {
928
930
  return !1;
929
931
  return !0;
930
932
  }
931
- let G, w, y, F, C = S && !m.includePrerelease && S.semver.prerelease.length ? S.semver : !1, D = E && !m.includePrerelease && E.semver.prerelease.length ? E.semver : !1;
933
+ let y, w, G, F, C = S && !m.includePrerelease && S.semver.prerelease.length ? S.semver : !1, D = E && !m.includePrerelease && E.semver.prerelease.length ? E.semver : !1;
932
934
  C && C.prerelease.length === 1 && S.operator === "<" && C.prerelease[0] === 0 && (C = !1);
933
935
  for (const N of l) {
934
- if (F = F || N.operator === ">" || N.operator === ">=", y = y || N.operator === "<" || N.operator === "<=", E) {
936
+ if (F = F || N.operator === ">" || N.operator === ">=", G = G || N.operator === "<" || N.operator === "<=", E) {
935
937
  if (D && N.semver.prerelease && N.semver.prerelease.length && N.semver.major === D.major && N.semver.minor === D.minor && N.semver.patch === D.patch && (D = !1), N.operator === ">" || N.operator === ">=") {
936
- if (G = t(E, N, m), G === N && G !== E)
938
+ if (y = t(E, N, m), y === N && y !== E)
937
939
  return !1;
938
940
  } else if (E.operator === ">=" && !r(E.semver, String(N), m))
939
941
  return !1;
@@ -948,7 +950,7 @@ function pt() {
948
950
  if (!N.operator && (S || E) && g !== 0)
949
951
  return !1;
950
952
  }
951
- return !(E && y && !S && g !== 0 || S && F && !E && g !== 0 || D || C);
953
+ return !(E && G && !S && g !== 0 || S && F && !E && g !== 0 || D || C);
952
954
  }, t = (o, l, m) => {
953
955
  if (!o)
954
956
  return l;
@@ -966,7 +968,7 @@ var Me, Vr;
966
968
  function Rt() {
967
969
  if (Vr) return Me;
968
970
  Vr = 1;
969
- const a = M(), u = k(), i = j(), r = xr(), n = V(), p = kr(), c = Br(), f = Yr(), s = Wr(), t = zr(), e = Kr(), o = Zr(), l = Jr(), m = U(), A = Qr(), E = et(), S = ke(), g = rt(), G = tt(), w = Y(), y = Be(), F = br(), C = Mr(), D = Ye(), N = We(), x = Hr(), K = st(), Z = W(), J = X(), Q = z(), R = it(), h = at(), I = ot(), $ = ct(), v = ut(), d = ze(), L = lt(), T = ft(), O = ht(), q = Et(), _ = pt();
971
+ const a = M(), u = k(), i = j(), r = xr(), n = V(), p = kr(), c = Br(), f = Yr(), s = Wr(), t = zr(), e = Kr(), o = Zr(), l = Jr(), m = U(), A = Qr(), E = et(), S = ke(), g = rt(), y = tt(), w = Y(), G = Be(), F = br(), C = Mr(), D = Ye(), N = We(), x = Hr(), K = st(), Z = W(), J = X(), Q = z(), R = it(), h = at(), I = ot(), $ = ct(), v = ut(), d = ze(), L = lt(), T = ft(), O = ht(), q = Et(), _ = pt();
970
972
  return Me = {
971
973
  parse: n,
972
974
  valid: p,
@@ -982,9 +984,9 @@ function Rt() {
982
984
  compareLoose: E,
983
985
  compareBuild: S,
984
986
  sort: g,
985
- rsort: G,
987
+ rsort: y,
986
988
  gt: w,
987
- lt: y,
989
+ lt: G,
988
990
  eq: F,
989
991
  neq: C,
990
992
  gte: D,
@@ -1,5 +1,5 @@
1
1
  import { N as G, E as se, S as D, T as A, P, a as B, A as ie } from "./vendor-prosemirror-state-DUZYoLys.js";
2
- import { E as ae } from "./vendor-prosemirror-view-CzsD5m3e.js";
2
+ import { E as ae } from "./vendor-prosemirror-view-CesDChJC.js";
3
3
  import { a as ce } from "./vendor-prosemirror-keymap-CN6Hkrq2.js";
4
4
  import { f as le, c as ct, T as de, e as ue, l as fe, j as Tt, a as U, b as pe, R as me } from "./vendor-prosemirror-transform-BOkRqJ32.js";
5
5
  import { D as he, a as Ct, F as N, b as ge, d as nt, S as ve } from "./vendor-prosemirror-model-CiCy9gkA.js";
@@ -2623,7 +2623,7 @@ var Lr = class extends Le {
2623
2623
  this.editorState = t;
2624
2624
  },
2625
2625
  dispatch: (t) => {
2626
- this.editorState = this.state.apply(t);
2626
+ this.dispatchTransaction(t);
2627
2627
  },
2628
2628
  // Stub some commonly accessed properties to prevent errors
2629
2629
  composing: !1,
@@ -2633,6 +2633,8 @@ var Lr = class extends Le {
2633
2633
  },
2634
2634
  {
2635
2635
  get: (t, n) => {
2636
+ if (this.editorView)
2637
+ return this.editorView[n];
2636
2638
  if (n === "state")
2637
2639
  return this.editorState;
2638
2640
  if (n in t)
@@ -1,4 +1,4 @@
1
- import { N as r, w as o, h as e, m as n } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as r, w as o, h as e, m as n } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var u = /^\s*>\s$/, a = r.create({
3
3
  name: "blockquote",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as a, a as e, b as r, h as s, m as n } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as a, a as e, b as r, h as s, m as n } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var o = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, d = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, u = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, i = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, g = a.create({
3
3
  name: "bold",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as t, a as r, b as a, m as s } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as t, a as r, b as a, m as s } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var d = /(^|[^`])`([^`]+)`(?!`)$/, n = /(^|[^`])`([^`]+)`(?!`)/g, o = t.create({
3
3
  name: "code",
4
4
  addOptions() {
@@ -0,0 +1,197 @@
1
+ import { N as C, t as v, m as k } from "./vendor-tiptap-core-B000Ay3n.js";
2
+ import { P as L, a as B, T, S as P } from "./vendor-prosemirror-state-DUZYoLys.js";
3
+ var S = 4, I = /^```([a-z]+)?[\s\n]$/, w = /^~~~([a-z]+)?[\s\n]$/, z = C.create({
4
+ name: "codeBlock",
5
+ addOptions() {
6
+ return {
7
+ languageClassPrefix: "language-",
8
+ exitOnTripleEnter: !0,
9
+ exitOnArrowDown: !0,
10
+ defaultLanguage: null,
11
+ enableTabIndentation: !1,
12
+ tabSize: S,
13
+ HTMLAttributes: {}
14
+ };
15
+ },
16
+ content: "text*",
17
+ marks: "",
18
+ group: "block",
19
+ code: !0,
20
+ defining: !0,
21
+ addAttributes() {
22
+ return {
23
+ language: {
24
+ default: this.options.defaultLanguage,
25
+ parseHTML: (e) => {
26
+ var t;
27
+ const { languageClassPrefix: r } = this.options;
28
+ if (!r)
29
+ return null;
30
+ const o = [...((t = e.firstElementChild) == null ? void 0 : t.classList) || []].filter((s) => s.startsWith(r)).map((s) => s.replace(r, ""))[0];
31
+ return o || null;
32
+ },
33
+ rendered: !1
34
+ }
35
+ };
36
+ },
37
+ parseHTML() {
38
+ return [
39
+ {
40
+ tag: "pre",
41
+ preserveWhitespace: "full"
42
+ }
43
+ ];
44
+ },
45
+ renderHTML({ node: e, HTMLAttributes: t }) {
46
+ return [
47
+ "pre",
48
+ k(this.options.HTMLAttributes, t),
49
+ [
50
+ "code",
51
+ {
52
+ class: e.attrs.language ? this.options.languageClassPrefix + e.attrs.language : null
53
+ },
54
+ 0
55
+ ]
56
+ ];
57
+ },
58
+ addCommands() {
59
+ return {
60
+ setCodeBlock: (e) => ({ commands: t }) => t.setNode(this.name, e),
61
+ toggleCodeBlock: (e) => ({ commands: t }) => t.toggleNode(this.name, "paragraph", e)
62
+ };
63
+ },
64
+ addKeyboardShortcuts() {
65
+ return {
66
+ "Mod-Alt-c": () => this.editor.commands.toggleCodeBlock(),
67
+ // remove code block when at start of document or code block is empty
68
+ Backspace: () => {
69
+ const { empty: e, $anchor: t } = this.editor.state.selection, r = t.pos === 1;
70
+ return !e || t.parent.type.name !== this.name ? !1 : r || !t.parent.textContent.length ? this.editor.commands.clearNodes() : !1;
71
+ },
72
+ // handle tab indentation
73
+ Tab: ({ editor: e }) => {
74
+ var t;
75
+ if (!this.options.enableTabIndentation)
76
+ return !1;
77
+ const r = (t = this.options.tabSize) != null ? t : S, { state: n } = e, { selection: a } = n, { $from: o, empty: s } = a;
78
+ if (o.parent.type !== this.type)
79
+ return !1;
80
+ const i = " ".repeat(r);
81
+ return s ? e.commands.insertContent(i) : e.commands.command(({ tr: l }) => {
82
+ const { from: c, to: f } = a, u = n.doc.textBetween(c, f, `
83
+ `, `
84
+ `).split(`
85
+ `).map((p) => i + p).join(`
86
+ `);
87
+ return l.replaceWith(c, f, n.schema.text(u)), !0;
88
+ });
89
+ },
90
+ // handle shift+tab reverse indentation
91
+ "Shift-Tab": ({ editor: e }) => {
92
+ var t;
93
+ if (!this.options.enableTabIndentation)
94
+ return !1;
95
+ const r = (t = this.options.tabSize) != null ? t : S, { state: n } = e, { selection: a } = n, { $from: o, empty: s } = a;
96
+ return o.parent.type !== this.type ? !1 : s ? e.commands.command(({ tr: i }) => {
97
+ var l;
98
+ const { pos: c } = o, f = o.start(), h = o.end(), u = n.doc.textBetween(f, h, `
99
+ `, `
100
+ `).split(`
101
+ `);
102
+ let p = 0, g = 0;
103
+ const b = c - f;
104
+ for (let d = 0; d < u.length; d += 1) {
105
+ if (g + u[d].length >= b) {
106
+ p = d;
107
+ break;
108
+ }
109
+ g += u[d].length + 1;
110
+ }
111
+ const A = ((l = u[p].match(/^ */)) == null ? void 0 : l[0]) || "", y = Math.min(A.length, r);
112
+ if (y === 0)
113
+ return !0;
114
+ let m = f;
115
+ for (let d = 0; d < p; d += 1)
116
+ m += u[d].length + 1;
117
+ return i.delete(m, m + y), c - m <= y && i.setSelection(T.create(i.doc, m)), !0;
118
+ }) : e.commands.command(({ tr: i }) => {
119
+ const { from: l, to: c } = a, x = n.doc.textBetween(l, c, `
120
+ `, `
121
+ `).split(`
122
+ `).map((u) => {
123
+ var p;
124
+ const g = ((p = u.match(/^ */)) == null ? void 0 : p[0]) || "", b = Math.min(g.length, r);
125
+ return u.slice(b);
126
+ }).join(`
127
+ `);
128
+ return i.replaceWith(l, c, n.schema.text(x)), !0;
129
+ });
130
+ },
131
+ // exit node on triple enter
132
+ Enter: ({ editor: e }) => {
133
+ if (!this.options.exitOnTripleEnter)
134
+ return !1;
135
+ const { state: t } = e, { selection: r } = t, { $from: n, empty: a } = r;
136
+ if (!a || n.parent.type !== this.type)
137
+ return !1;
138
+ const o = n.parentOffset === n.parent.nodeSize - 2, s = n.parent.textContent.endsWith(`
139
+
140
+ `);
141
+ return !o || !s ? !1 : e.chain().command(({ tr: i }) => (i.delete(n.pos - 2, n.pos), !0)).exitCode().run();
142
+ },
143
+ // exit node on arrow down
144
+ ArrowDown: ({ editor: e }) => {
145
+ if (!this.options.exitOnArrowDown)
146
+ return !1;
147
+ const { state: t } = e, { selection: r, doc: n } = t, { $from: a, empty: o } = r;
148
+ if (!o || a.parent.type !== this.type || !(a.parentOffset === a.parent.nodeSize - 2))
149
+ return !1;
150
+ const i = a.after();
151
+ return i === void 0 ? !1 : n.nodeAt(i) ? e.commands.command(({ tr: c }) => (c.setSelection(P.near(n.resolve(i))), !0)) : e.commands.exitCode();
152
+ }
153
+ };
154
+ },
155
+ addInputRules() {
156
+ return [
157
+ v({
158
+ find: I,
159
+ type: this.type,
160
+ getAttributes: (e) => ({
161
+ language: e[1]
162
+ })
163
+ }),
164
+ v({
165
+ find: w,
166
+ type: this.type,
167
+ getAttributes: (e) => ({
168
+ language: e[1]
169
+ })
170
+ })
171
+ ];
172
+ },
173
+ addProseMirrorPlugins() {
174
+ return [
175
+ // this plugin creates a code block for pasted content from VS Code
176
+ // we can also detect the copied code language
177
+ new L({
178
+ key: new B("codeBlockVSCodeHandler"),
179
+ props: {
180
+ handlePaste: (e, t) => {
181
+ if (!t.clipboardData || this.editor.isActive(this.type.name))
182
+ return !1;
183
+ const r = t.clipboardData.getData("text/plain"), n = t.clipboardData.getData("vscode-editor-data"), a = n ? JSON.parse(n) : void 0, o = a?.mode;
184
+ if (!r || !o)
185
+ return !1;
186
+ const { tr: s, schema: i } = e.state, l = i.text(r.replace(/\r\n?/g, `
187
+ `));
188
+ return s.replaceSelectionWith(this.type.create({ language: o }, l)), s.selection.$from.parent.type !== this.type && s.setSelection(T.near(s.doc.resolve(Math.max(0, s.selection.from - 2)))), s.setMeta("paste", !0), e.dispatch(s), !0;
189
+ }
190
+ }
191
+ })
192
+ ];
193
+ }
194
+ });
195
+ export {
196
+ z as C
197
+ };
@@ -1,4 +1,4 @@
1
- import { N as o } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as o } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var t = o.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-rgc3Sj5Y.js";
1
+ import { N as l, m as c } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var M = l.create({
3
3
  name: "hardBreak",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { N as s, t as n, m as r } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as s, t as n, m as r } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var a = s.create({
3
3
  name: "heading",
4
4
  addOptions() {
@@ -1,36 +1,36 @@
1
- import { N as p, n as f, c as m, i as h, m as T } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as f, n as m, c as h, i as T, m as y } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  import { T as r, N as A } from "./vendor-prosemirror-state-DUZYoLys.js";
3
- var y = p.create({
3
+ var S = f.create({
4
4
  name: "horizontalRule",
5
5
  addOptions() {
6
6
  return {
7
- HTMLAttributes: {}
7
+ HTMLAttributes: {},
8
+ nextNodeType: "paragraph"
8
9
  };
9
10
  },
10
11
  group: "block",
11
12
  parseHTML() {
12
13
  return [{ tag: "hr" }];
13
14
  },
14
- renderHTML({ HTMLAttributes: n }) {
15
- return ["hr", T(this.options.HTMLAttributes, n)];
15
+ renderHTML({ HTMLAttributes: o }) {
16
+ return ["hr", y(this.options.HTMLAttributes, o)];
16
17
  },
17
18
  addCommands() {
18
19
  return {
19
- setHorizontalRule: () => ({ chain: n, state: o }) => {
20
- if (!m(o, o.schema.nodes[this.name]))
20
+ setHorizontalRule: () => ({ chain: o, state: n }) => {
21
+ if (!h(n, n.schema.nodes[this.name]))
21
22
  return !1;
22
- const { selection: i } = o, { $to: d } = i, s = n();
23
- return h(i) ? s.insertContentAt(d.pos, {
23
+ const { selection: i } = n, { $to: l } = i, s = o();
24
+ return T(i) ? s.insertContentAt(l.pos, {
24
25
  type: this.name
25
- }) : s.insertContent({ type: this.name }), s.command(({ tr: e, dispatch: u }) => {
26
- var a;
26
+ }) : s.insertContent({ type: this.name }), s.command(({ state: p, tr: e, dispatch: u }) => {
27
27
  if (u) {
28
- const { $to: t } = e.selection, c = t.end();
28
+ const { $to: t } = e.selection, a = t.end();
29
29
  if (t.nodeAfter)
30
30
  t.nodeAfter.isTextblock ? e.setSelection(r.create(e.doc, t.pos + 1)) : t.nodeAfter.isBlock ? e.setSelection(A.create(e.doc, t.pos)) : e.setSelection(r.create(e.doc, t.pos));
31
31
  else {
32
- const l = (a = t.parent.type.contentMatch.defaultType) == null ? void 0 : a.create();
33
- l && (e.insert(c, l), e.setSelection(r.create(e.doc, c + 1)));
32
+ const c = p.schema.nodes[this.options.nextNodeType] || t.parent.type.contentMatch.defaultType, d = c?.create();
33
+ d && (e.insert(a, d), e.setSelection(r.create(e.doc, a + 1)));
34
34
  }
35
35
  e.scrollIntoView();
36
36
  }
@@ -41,7 +41,7 @@ var y = p.create({
41
41
  },
42
42
  addInputRules() {
43
43
  return [
44
- f({
44
+ m({
45
45
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
46
46
  type: this.type
47
47
  })
@@ -49,5 +49,5 @@ var y = p.create({
49
49
  }
50
50
  });
51
51
  export {
52
- y as H
52
+ S as H
53
53
  };
@@ -1,4 +1,4 @@
1
- import { N as i, n as s, m as a } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as i, n as s, m as a } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var l = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, o = i.create({
3
3
  name: "image",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as r, a as e, b as s, m as a } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as r, a as e, b as s, m as a } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var n = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, i = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, l = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, u = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, d = r.create({
3
3
  name: "italic",
4
4
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { M as x, a as b, m as v, d as T, g as w, f as H, e as O, j as R } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as x, a as b, m as v, d as T, g as w, f as H, e as O, j as R } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  import { r as C, t as _, f as y, a as B } from "./vendor-linkifyjs-dCH9UYes.js";
3
3
  import { P as m, a as A } from "./vendor-prosemirror-state-DUZYoLys.js";
4
4
  var P = "[\0-   ᠎ -\u2029  ]", I = new RegExp(P), U = new RegExp(`${P}$`), N = new RegExp(P, "g");
@@ -1,4 +1,4 @@
1
- import { N as k, E as H, w as m, m as d, k as b, l as B, o as D, p as N, q as w } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as k, E as H, w as m, m as d, k as b, l as B, o as D, p as N, q as w } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var R = Object.defineProperty, j = (t, e) => {
3
3
  for (var s in e)
4
4
  R(t, s, { get: e[s], enumerable: !0 });
@@ -1,4 +1,4 @@
1
- import { N as t, m as e } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { N as t, m as e } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var o = t.create({
3
3
  name: "paragraph",
4
4
  priority: 1e3,
@@ -0,0 +1 @@
1
+ import "./vendor-tiptap-extensions-Crh_nh74.js";
@@ -1,4 +1,4 @@
1
- import { M as e, a as r, b as s, m as a } from "./vendor-tiptap-core-rgc3Sj5Y.js";
1
+ import { M as e, a as r, b as s, m as a } from "./vendor-tiptap-core-B000Ay3n.js";
2
2
  var n = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, i = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, d = e.create({
3
3
  name: "strike",
4
4
  addOptions() {