@milkdown/crepe 7.3.3 → 7.3.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 (42) hide show
  1. package/lib/feature/block-edit/handle/index.d.ts.map +1 -1
  2. package/lib/feature/block-edit/menu/index.d.ts.map +1 -1
  3. package/lib/feature/toolbar/index.d.ts.map +1 -1
  4. package/lib/{index-4afXjFMY.js → index-1KQHo-44.js} +4 -4
  5. package/lib/{index-SdFSDosa.js → index-4p4g7ekJ.js} +1 -1
  6. package/lib/{index-8Gg-jEP4.js → index-4uesIuIi.js} +4 -4
  7. package/lib/{index-Pwn25-kf.js → index-51ybuhXd.js} +1 -1
  8. package/lib/{index-0RbcZMbq.js → index-96I5UgEh.js} +1 -1
  9. package/lib/{index-vJbZIHYF.js → index-C17brGmy.js} +4 -4
  10. package/lib/{index-W5Th22-Z.js → index-EhPVaWMa.js} +7 -7
  11. package/lib/{index-jPA8J9Eo.js → index-IKzcztdD.js} +1 -1
  12. package/lib/{index-FIk_7oPb.js → index-KDuMRRPt.js} +4 -4
  13. package/lib/{use-css-light-dom-EKWZDmbJ.js → index-K_kBonEs.js} +24 -23
  14. package/lib/{index-7MeyepDG.js → index-Mwqn_gij.js} +7 -7
  15. package/lib/{index-oTRzPo3B.js → index-P2HixfB4.js} +4 -4
  16. package/lib/{index-rrf6_6DC.js → index-PwfWCMtB.js} +9 -9
  17. package/lib/{index-XiXSFLmI.js → index-S3dtETwZ.js} +46 -45
  18. package/lib/{index-yt2EpMtv.js → index-T6CCBIrO.js} +5 -5
  19. package/lib/{index-9A_GmGh4.js → index-UdINtlLB.js} +154 -152
  20. package/lib/{index-7pgP6qYs.js → index-WpINpUas.js} +7 -7
  21. package/lib/{index-LlbrXb_n.js → index-YjIgdsm-.js} +80 -84
  22. package/lib/{index-vPRh55CO.js → index-ZyvuYqIf.js} +21 -23
  23. package/lib/{index-8S8qcncB.js → index-brbFUWoa.js} +18 -18
  24. package/lib/{index-vxy63hib.js → index-cAviWcah.js} +7 -7
  25. package/lib/{index-lsG76a9s.js → index-f8O1bHwz.js} +4 -4
  26. package/lib/{index-N9GtIS4X.js → index-f_vMXWyc.js} +4 -4
  27. package/lib/{index-bknOViGv.js → index-gRh597MD.js} +5 -5
  28. package/lib/{index-wn1_LgCS.js → index-gaQ0Jeve.js} +4 -4
  29. package/lib/{index-MovKtgMG.js → index-hcG6NuOF.js} +2 -2
  30. package/lib/{index-8DvtgRVa.js → index-iECr6hjv.js} +24 -24
  31. package/lib/{index-bkuIUPFS.js → index-iHi9E5fI.js} +5 -5
  32. package/lib/{index-Eg39w5kL.js → index-sAnPFt21.js} +6 -6
  33. package/lib/{index-7QgQq3x3.js → index-wD9meLYq.js} +4 -4
  34. package/lib/{index-EJJfYLzA.js → index-zY_Ffd-9.js} +4 -4
  35. package/lib/index.es.js +1 -1
  36. package/lib/{schema-tKk3m1fu.js → schema-PTbL6iMu.js} +1 -1
  37. package/lib/{tippy.esm-MZ2vxByW.js → tippy.esm-lHdsQkl8.js} +33 -33
  38. package/lib/{tooltip-plugin-gcwyQdiT.js → tooltip-plugin-Pjm6nx6a.js} +32 -29
  39. package/package.json +14 -14
  40. package/src/feature/block-edit/handle/index.ts +2 -4
  41. package/src/feature/block-edit/menu/index.ts +2 -3
  42. package/src/feature/toolbar/index.ts +2 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAQtD,qBAAa,eAAgB,YAAW,UAAU;;gBAKpC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU;IAuBtC,MAAM,SAAU,UAAU,UAEzB;IAED,OAAO,aAGN;IAED,KAAK,aAsBJ;CACF;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAI5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGvD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAQtD,qBAAa,eAAgB,YAAW,UAAU;;gBAKpC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU;IAqBtC,MAAM,SAAU,UAAU,UAEzB;IAED,OAAO,aAGN;IAED,KAAK,aAsBJ;CACF;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAI5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAOxC,eAAO,MAAM,IAAI,iEAA6B,CAAA;AAE9C,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,OAAO,uDAGO,CAAA;AAG3B,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,QAIrC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/feature/block-edit/menu/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAQxC,eAAO,MAAM,IAAI,iEAA6B,CAAA;AAE9C,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,OAAO,uDAGO,CAAA;AAG3B,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,QAIrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/toolbar/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AA2E9C,eAAO,MAAM,aAAa,EAAE,aAS3B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feature/toolbar/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAyE9C,eAAO,MAAM,aAAa,EAAE,aAS3B,CAAA"}
@@ -1,10 +1,10 @@
1
- import { L as J, a as ee, i as te, c as ae, b as re, d as ne, f as ie, s as se, t as i, e as oe } from "./index-8DvtgRVa.js";
2
- import { E as le, L as ce } from "./index-SdFSDosa.js";
1
+ import { L as J, a as ee, i as te, c as ae, b as re, d as ne, f as ie, s as se, t as i, e as oe } from "./index-iECr6hjv.js";
2
+ import { E as le, L as ce } from "./index-4p4g7ekJ.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const de = 36, B = 1, me = 2, k = 3, C = 4, ue = 5, fe = 6, pe = 7, ge = 8, he = 9, _e = 10, be = 11, ve = 12, ye = 13, ke = 14, xe = 15, Oe = 16, we = 17, X = 18, Qe = 19, V = 20, $ = 21, R = 22, Se = 23, Ce = 24;
10
10
  function P(t) {
@@ -1,4 +1,4 @@
1
- import { P as L, l as M, N as $, G as E, k as y, m as S, I as j } from "./index-8DvtgRVa.js";
1
+ import { P as L, l as M, N as $, G as E, k as y, m as S, I as j } from "./index-iECr6hjv.js";
2
2
  class v {
3
3
  /**
4
4
  @internal
@@ -1,10 +1,10 @@
1
- import { C as Z, E as k, L as N } from "./index-SdFSDosa.js";
2
- import { s as Y, t as $, L as A, b as I, f as j, F as U, a as z, e as q } from "./index-8DvtgRVa.js";
1
+ import { C as Z, E as k, L as N } from "./index-4p4g7ekJ.js";
2
+ import { s as Y, t as $, L as A, b as I, f as j, F as U, a as z, e as q } from "./index-iECr6hjv.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const v = 1, D = 2, F = 3, M = 4, B = 5, J = 35, L = 36, H = 37, K = 11, ee = 13;
10
10
  function te(e) {
@@ -1,5 +1,5 @@
1
1
  import { p as e } from "./prosemirror-noTDkx-k.js";
2
- import { i as r } from "./index-XiXSFLmI.js";
2
+ import { i as r } from "./index-S3dtETwZ.js";
3
3
  const i = '.milkdown{--crepe-color-background: #FFFDFB;--crepe-color-on-background: #1F1B16;--crepe-color-surface: #FFF8F4;--crepe-color-surface-low: #FFF1E5;--crepe-color-on-surface: #201B13;--crepe-color-on-surface-variant: #4F4539;--crepe-color-outline: #817567;--crepe-color-primary: #805610;--crepe-color-secondary: #FBDEBC;--crepe-color-on-secondary: #271904;--crepe-color-inverse: #362F27;--crepe-color-on-inverse: #FCEFE2;--crepe-color-inline-code: #BA1A1A;--crepe-color-error: #BA1A1A;--crepe-color-hover: #F9ECDF;--crepe-color-selected: #EDE0D4;--crepe-color-inline-area: #E4D8CC;--crepe-font-title: Georgia, Cambria, "Times New Roman", Times, serif;--crepe-font-default: "Open Sans", Arial, Helvetica, sans-serif;--crepe-font-code: Fira Code, Menlo, Monaco, "Courier New", Courier, monospace;--crepe-shadow-1: 0px 1px 3px 1px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3);--crepe-shadow-2: 0px 2px 6px 2px rgba(0, 0, 0, .15), 0px 1px 2px 0px rgba(0, 0, 0, .3);font-family:var(--crepe-font-default);color:var(--crepe-color-on-background);background:var(--crepe-color-background)}.milkdown *{margin:0;padding:0;box-sizing:border-box}.milkdown button,.milkdown input{border:none;background:none;box-shadow:none}.milkdown button:focus,.milkdown input:focus{outline:none}.milkdown :focus-visible{outline:none}.milkdown .ProseMirror-focused{outline:none}.milkdown .ProseMirror{padding:60px 120px}.milkdown .ProseMirror>*{margin:20px 0 40px}.milkdown .ProseMirror *::selection{background:var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode{outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode:after{all:unset}.milkdown .ProseMirror .ProseMirror-selectednode{background:var(--crepe-color-selected);outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror img{vertical-align:bottom;max-width:100%}.milkdown .ProseMirror img.ProseMirror-selectednode{background:none;outline:2px solid var(--crepe-color-primary)}.milkdown .ProseMirror h1,.milkdown .ProseMirror h2,.milkdown .ProseMirror h3,.milkdown .ProseMirror h4,.milkdown .ProseMirror h5,.milkdown .ProseMirror h6{font-family:var(--crepe-font-title);font-weight:400}.milkdown .ProseMirror h1{font-size:42px;line-height:50px}.milkdown .ProseMirror h2{font-size:36px;line-height:44px}.milkdown .ProseMirror h3{font-size:32px;line-height:40px}.milkdown .ProseMirror h4{font-size:28px;line-height:36px}.milkdown .ProseMirror h5{font-size:24px;line-height:32px}.milkdown .ProseMirror h6{font-size:18px;font-weight:700;line-height:28px}.milkdown .ProseMirror p{font-size:16px;line-height:24px}.milkdown .ProseMirror code{color:var(--crepe-color-inline-code);background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:0 10px;border-radius:4px}.milkdown .ProseMirror a{color:var(--crepe-color-primary)}.milkdown .ProseMirror pre{background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:10px;border-radius:4px}.milkdown .ProseMirror pre code{padding:0;background:transparent}.milkdown .ProseMirror blockquote{position:relative;padding-left:40px}.milkdown .ProseMirror blockquote:before{content:"";width:4px;height:100%;left:0;position:absolute;background:var(--crepe-color-selected);border-radius:100px}.milkdown .ProseMirror blockquote hr{margin-bottom:16px}.milkdown .ProseMirror hr{border:none;border-bottom:1px solid color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:16px;position:relative}.milkdown .ProseMirror hr.ProseMirror-selectednode{outline:none;background:none;border-bottom:1px solid var(--crepe-color-outline)}.milkdown .ProseMirror .ProseMirror-gapcursor:after{box-sizing:border-box;border-top:1px solid var(--crepe-color-on-background);top:-40px}', c = (o) => {
4
4
  o.config(r(e)).config(r(i));
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { p as o } from "./prosemirror-noTDkx-k.js";
2
- import { i as r } from "./index-XiXSFLmI.js";
2
+ import { i as r } from "./index-S3dtETwZ.js";
3
3
  const t = (e) => {
4
4
  e.config(r(o));
5
5
  };
@@ -1,10 +1,10 @@
1
- import { L as o } from "./index-SdFSDosa.js";
2
- import { s, t as r, L as n, b as P, d as a, f as i, j as Q, a as c } from "./index-8DvtgRVa.js";
1
+ import { L as o } from "./index-4p4g7ekJ.js";
2
+ import { s, t as r, L as n, b as P, d as a, f as i, j as Q, a as c } from "./index-iECr6hjv.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const p = s({
10
10
  String: r.string,
@@ -1,14 +1,14 @@
1
- import { N as $, k as M, s as xe, l as Ae, t as c, P as tt, T as rt, m as B, p as nt, e as j, E as I, n as R, a as ae, o as st, q as it, C as ot, r as at, u as lt, v as ht, w as ft, f as Ee, b as ut, x as dt, y as pt, z as le, A as ct } from "./index-8DvtgRVa.js";
2
- import { htmlCompletionSource as mt, html as gt } from "./index-Eg39w5kL.js";
1
+ import { N as $, k as M, s as xe, l as Ae, t as c, P as tt, T as rt, m as B, p as nt, e as j, E as I, n as R, a as ae, o as st, q as it, C as ot, r as at, u as lt, v as ht, w as ft, f as Ee, b as ut, x as dt, y as pt, z as le, A as ct } from "./index-iECr6hjv.js";
2
+ import { htmlCompletionSource as mt, html as gt } from "./index-sAnPFt21.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
- import "./index-SdFSDosa.js";
10
- import "./index-EJJfYLzA.js";
11
- import "./index-lsG76a9s.js";
9
+ import "./index-4p4g7ekJ.js";
10
+ import "./index-zY_Ffd-9.js";
11
+ import "./index-f8O1bHwz.js";
12
12
  class X {
13
13
  static create(e, r, n, s, i) {
14
14
  let o = s + (s << 8) + e + (r << 4) | 0;
@@ -1,5 +1,5 @@
1
1
  import { p as e } from "./prosemirror-noTDkx-k.js";
2
- import { i as r } from "./index-XiXSFLmI.js";
2
+ import { i as r } from "./index-S3dtETwZ.js";
3
3
  const i = '.milkdown{--crepe-color-background: #1F1B16;--crepe-color-on-background: #EAE1D9;--crepe-color-surface: #18120B;--crepe-color-surface-low: #201B13;--crepe-color-on-surface: #EDE0D4;--crepe-color-on-surface-variant: #D3C4B4;--crepe-color-outline: #9C8F80;--crepe-color-primary: #F4BD6F;--crepe-color-secondary: #56442A;--crepe-color-on-secondary: #FBDEBC;--crepe-color-inverse: #EDE0D4;--crepe-color-on-inverse: #362F27;--crepe-color-inline-code: #FFB4AB;--crepe-color-error: #FFB4AB;--crepe-color-hover: #251F17;--crepe-color-selected: #3B342B;--crepe-color-inline-area: #3F3830;--crepe-font-title: Georgia, Cambria, "Times New Roman", Times, serif;--crepe-font-default: "Open Sans", Arial, Helvetica, sans-serif;--crepe-font-code: Fira Code, Menlo, Monaco, "Courier New", Courier, monospace;--crepe-shadow-1: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15);--crepe-shadow-2: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15);font-family:var(--crepe-font-default);color:var(--crepe-color-on-background);background:var(--crepe-color-background)}.milkdown *{margin:0;padding:0;box-sizing:border-box}.milkdown button,.milkdown input{border:none;background:none;box-shadow:none}.milkdown button:focus,.milkdown input:focus{outline:none}.milkdown :focus-visible{outline:none}.milkdown input{font-family:var(--crepe-font-default);color:var(--crepe-color-on-background)}.milkdown .ProseMirror-focused{outline:none}.milkdown .ProseMirror{padding:60px 120px}.milkdown .ProseMirror>*{margin:20px 0 40px}.milkdown .ProseMirror *::selection{background:var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode{outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror li.ProseMirror-selectednode:after{all:unset}.milkdown .ProseMirror .ProseMirror-selectednode{background:var(--crepe-color-selected);outline:10px solid var(--crepe-color-selected)}.milkdown .ProseMirror img{vertical-align:bottom;max-width:100%}.milkdown .ProseMirror img.ProseMirror-selectednode{background:none;outline:2px solid var(--crepe-color-primary)}.milkdown .ProseMirror h1,.milkdown .ProseMirror h2,.milkdown .ProseMirror h3,.milkdown .ProseMirror h4,.milkdown .ProseMirror h5,.milkdown .ProseMirror h6{font-family:var(--crepe-font-title);font-weight:400}.milkdown .ProseMirror h1{font-size:42px;line-height:50px}.milkdown .ProseMirror h2{font-size:36px;line-height:44px}.milkdown .ProseMirror h3{font-size:32px;line-height:40px}.milkdown .ProseMirror h4{font-size:28px;line-height:36px}.milkdown .ProseMirror h5{font-size:24px;line-height:32px}.milkdown .ProseMirror h6{font-size:18px;font-weight:700;line-height:28px}.milkdown .ProseMirror p{font-size:16px;line-height:24px}.milkdown .ProseMirror code{color:var(--crepe-color-inline-code);background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:0 10px;border-radius:4px}.milkdown .ProseMirror a{color:var(--crepe-color-primary)}.milkdown .ProseMirror pre{background:color-mix(in srgb,var(--crepe-color-inline-area),transparent 40%);padding:10px;border-radius:4px}.milkdown .ProseMirror pre code{padding:0;background:transparent}.milkdown .ProseMirror blockquote{position:relative;padding-left:40px}.milkdown .ProseMirror blockquote:before{content:"";width:4px;height:100%;left:0;position:absolute;background:var(--crepe-color-selected);border-radius:100px}.milkdown .ProseMirror blockquote hr{margin-bottom:16px}.milkdown .ProseMirror hr{border:none;border-bottom:1px solid color-mix(in srgb,var(--crepe-color-outline),transparent 80%);height:16px;position:relative}.milkdown .ProseMirror hr.ProseMirror-selectednode{outline:none;background:none;border-bottom:1px solid var(--crepe-color-outline)}.milkdown .ProseMirror .ProseMirror-gapcursor:after{box-sizing:border-box;border-top:1px solid var(--crepe-color-on-background);top:-40px}', c = (o) => {
4
4
  o.config(r(e)).config(r(i));
5
5
  };
@@ -1,10 +1,10 @@
1
- import { E as a, L as o } from "./index-SdFSDosa.js";
2
- import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-8DvtgRVa.js";
1
+ import { E as a, L as o } from "./index-4p4g7ekJ.js";
2
+ import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-iECr6hjv.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const R = 1, g = 2, b = 3, y = 4, T = 5, s = 98, c = 101, p = 102, t = 114, v = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
10
10
  function n(O) {
@@ -1,8 +1,8 @@
1
- import { S as m, N as u, n as l, m as f } from "./index-XiXSFLmI.js";
2
- import { o as S, $, e as C, b as R } from "./meta-tAGyVRPE.js";
3
- function T(e, a) {
1
+ import { S, N as u, n as l, m as f } from "./index-S3dtETwZ.js";
2
+ import { o as $, $ as C, e as R, b as g } from "./meta-tAGyVRPE.js";
3
+ function N(e, a) {
4
4
  const s = (t) => async () => {
5
- await t.wait(m);
5
+ await t.wait(S);
6
6
  const o = a(t);
7
7
  return e.type(t) instanceof u ? t.update(l, (n) => [...n, [e.id, o]]) : t.update(f, (n) => [...n, [e.id, o]]), s.view = o, s.type = e, () => {
8
8
  e.type(t) instanceof u ? t.update(l, (n) => n.filter((i) => i[0] !== e.id)) : t.update(f, (n) => n.filter((i) => i[0] !== e.id));
@@ -11,42 +11,42 @@ function T(e, a) {
11
11
  return s;
12
12
  }
13
13
  const d = {};
14
- function b(e, ...a) {
14
+ function v(e, ...a) {
15
15
  const s = (e.raw || e).reduce(
16
16
  (t, o, n) => t + o + (a[n] || ""),
17
17
  ""
18
18
  );
19
- return d[s] = d[s] || g(s);
19
+ return d[s] = d[s] || w(s);
20
20
  }
21
- function g(e) {
22
- if (S.sheet) {
21
+ function w(e) {
22
+ if ($.sheet) {
23
23
  const a = new CSSStyleSheet();
24
24
  return a.replaceSync(e), a;
25
25
  } else {
26
- const a = $.createElement("style");
26
+ const a = C.createElement("style");
27
27
  return a.textContent = e, a;
28
28
  }
29
29
  }
30
- const h = (e) => e.replace(/([^\w\_\-])/g, "\\$1"), w = ({ cssText: e, selectorText: a }, s) => `${a.split(/\s*,\s*/).map((t) => (t.startsWith(":") ? t : ":host " + t).replace(/(:host)\((.+)\)/, "$1$2").replace(/::slotted\((.+)\)/, ":host > $1").replace(/:host/g, s))}${e.replace(a, "").replace(/(animation(?:-name){0,1}\s*:\s*)([^;}]+)/g, "$1$2-" + h(s))}`;
31
- function p(e, a) {
30
+ const p = (e) => e.replace(/([^\w\_\-])/g, "\\$1"), E = ({ cssText: e, selectorText: a }, s) => `${a.split(/\s*,\s*/).map((t) => (t.startsWith(":") ? t : ":host " + t).replace(/(:host)\((.+)\)/, "$1$2").replace(/::slotted\((.+)\)/, ":host > $1").replace(/:host/g, s))}${e.replace(a, "").replace(/(animation(?:-name){0,1}\s*:\s*)([^;}]+)/g, "$1$2-" + p(s))}`;
31
+ function m(e, a) {
32
32
  const { cssRules: s } = e;
33
33
  let t = [];
34
34
  for (let o = 0; o < s.length; o++) {
35
35
  const n = s[o];
36
36
  if (n instanceof CSSStyleRule)
37
- t.push(w(n, a));
37
+ t.push(E(n, a));
38
38
  else if (n instanceof CSSKeyframesRule) {
39
39
  const { cssText: i } = n;
40
- t.push(i.replace(/\s+([^\s{]+)/, " $1-" + h(a)));
40
+ t.push(i.replace(/\s+([^\s{]+)/, " $1-" + p(a)));
41
41
  } else if (n instanceof CSSMediaRule) {
42
42
  const { conditionText: i } = n;
43
- t.push(`@media ${i}{${p(n, a)}}`);
43
+ t.push(`@media ${i}{${m(n, a)}}`);
44
44
  }
45
45
  }
46
46
  return t;
47
47
  }
48
48
  let r;
49
- function E(e) {
49
+ function y(e) {
50
50
  if (e instanceof CSSStyleSheet)
51
51
  return e;
52
52
  if (e.sheet)
@@ -62,21 +62,22 @@ function E(e) {
62
62
  return n;
63
63
  }, s;
64
64
  }
65
- let y = 0;
65
+ const h = "data-sheet";
66
+ let T = 0;
66
67
  function D(e) {
67
- const a = C();
68
- R(() => {
68
+ const a = R();
69
+ g(() => {
69
70
  const s = document.createElement("style"), { current: t } = a;
70
- return t.dataset.sheet || (t.dataset.sheet = y++), t.appendChild(s), s.sheet && (Array.isArray(e) ? e.flat(100) : [e]).forEach((o) => {
71
+ return t.hasAttribute(h) || t.setAttribute(h, `${T++}`), t.appendChild(s), s.sheet && (Array.isArray(e) ? e.flat(100) : [e]).forEach((o) => {
71
72
  if (!o)
72
73
  return;
73
- const n = E(o);
74
- p(n, t.localName + `[data-sheet="${t.dataset.sheet}"]`).forEach((i) => s.sheet.insertRule(i, s.sheet.cssRules.length));
74
+ const n = y(o);
75
+ m(n, t.localName + `[data-sheet="${t.dataset.sheet}"]`).forEach((i) => s.sheet.insertRule(i, s.sheet.cssRules.length));
75
76
  }), () => s.remove();
76
77
  }, [e]);
77
78
  }
78
79
  export {
79
- T as $,
80
- b as c,
80
+ N as $,
81
+ v as c,
81
82
  D as u
82
83
  };
@@ -1,14 +1,14 @@
1
- import { L as p, a as u, s as m, t as e, p as n } from "./index-8DvtgRVa.js";
2
- import { html as l } from "./index-Eg39w5kL.js";
3
- import { javascriptLanguage as b } from "./index-lsG76a9s.js";
4
- import { L as S, a as r } from "./index-SdFSDosa.js";
1
+ import { L as p, a as u, s as m, t as e, p as n } from "./index-iECr6hjv.js";
2
+ import { html as l } from "./index-sAnPFt21.js";
3
+ import { javascriptLanguage as b } from "./index-f8O1bHwz.js";
4
+ import { L as S, a as r } from "./index-4p4g7ekJ.js";
5
5
  import "./meta-tAGyVRPE.js";
6
6
  import "./icons-HYkfuR-O.js";
7
- import "./index-XiXSFLmI.js";
7
+ import "./index-S3dtETwZ.js";
8
8
  import "./hooks-82sqkbtE.js";
9
- import "./use-css-light-dom-EKWZDmbJ.js";
9
+ import "./index-K_kBonEs.js";
10
10
  import "./clsx-7d8NmkQq.js";
11
- import "./index-EJJfYLzA.js";
11
+ import "./index-zY_Ffd-9.js";
12
12
  const c = /* @__PURE__ */ S.deserialize({
13
13
  version: 14,
14
14
  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
@@ -1,10 +1,10 @@
1
- import { E as Y, L as S } from "./index-SdFSDosa.js";
2
- import { s as l, t as Q, L as o, b as n, d as i, g as s, h as W, f as c, j as f, a as x } from "./index-8DvtgRVa.js";
1
+ import { E as Y, L as S } from "./index-4p4g7ekJ.js";
2
+ import { s as l, t as Q, L as o, b as n, d as i, g as s, h as W, f as c, j as f, a as x } from "./index-iECr6hjv.js";
3
3
  import "./meta-tAGyVRPE.js";
4
4
  import "./icons-HYkfuR-O.js";
5
- import "./index-XiXSFLmI.js";
5
+ import "./index-S3dtETwZ.js";
6
6
  import "./hooks-82sqkbtE.js";
7
- import "./use-css-light-dom-EKWZDmbJ.js";
7
+ import "./index-K_kBonEs.js";
8
8
  import "./clsx-7d8NmkQq.js";
9
9
  const r = 1, Z = 2, V = 3, u = 82, p = 76, w = 117, q = 85, T = 97, y = 122, z = 65, b = 90, j = 95, a = 48, P = 34, v = 40, U = 41, d = 32, t = 62, _ = new Y((O) => {
10
10
  if (O.next == p || O.next == q ? O.advance() : O.next == w && (O.advance(), O.next == a + 8 && O.advance()), O.next != u || (O.advance(), O.next != P))
@@ -1,4 +1,4 @@
1
- import { P as b, j as T, o as p, p as V, T as v, q as x, F as w, t as k, D, w as M, $ as O, x as P, i as F, a as N, C as y } from "./index-XiXSFLmI.js";
1
+ import { P as b, o as T, p, q as V, T as v, t as x, F as w, w as k, D, x as M, $ as O, y as P, i as F, a as N, C as y } from "./index-S3dtETwZ.js";
2
2
  function R(i = {}) {
3
3
  return new b({
4
4
  view(e) {
@@ -216,17 +216,17 @@ function L(i) {
216
216
  function z() {
217
217
  return new b({
218
218
  props: {
219
- decorations: Y,
219
+ decorations: j,
220
220
  createSelectionBetween(i, e, t) {
221
221
  return e.pos == t.pos && a.valid(t) ? new a(t) : null;
222
222
  },
223
- handleClick: J,
224
- handleKeyDown: j,
225
- handleDOMEvents: { beforeinput: X }
223
+ handleClick: X,
224
+ handleKeyDown: J,
225
+ handleDOMEvents: { beforeinput: Y }
226
226
  }
227
227
  });
228
228
  }
229
- const j = V({
229
+ const J = V({
230
230
  ArrowLeft: h("horiz", -1),
231
231
  ArrowRight: h("horiz", 1),
232
232
  ArrowUp: h("vert", -1),
@@ -245,7 +245,7 @@ function h(i, e) {
245
245
  return c ? (r && r(o.tr.setSelection(new a(c))), !0) : !1;
246
246
  };
247
247
  }
248
- function J(i, e, t) {
248
+ function X(i, e, t) {
249
249
  if (!i || !i.editable)
250
250
  return !1;
251
251
  let o = i.state.doc.resolve(e);
@@ -254,7 +254,7 @@ function J(i, e, t) {
254
254
  let r = i.posAtCoords({ left: t.clientX, top: t.clientY });
255
255
  return r && r.inside > -1 && x.isSelectable(i.state.doc.nodeAt(r.inside)) ? !1 : (i.dispatch(i.state.tr.setSelection(new a(o))), !0);
256
256
  }
257
- function X(i, e) {
257
+ function Y(i, e) {
258
258
  if (e.inputType != "insertCompositionText" || !(i.state.selection instanceof a))
259
259
  return !1;
260
260
  let { $from: t } = i.state.selection, o = t.parent.contentMatchAt(t.index()).findWrapping(i.state.schema.nodes.text);
@@ -266,7 +266,7 @@ function X(i, e) {
266
266
  let l = i.state.tr.replace(t.pos, t.pos, new k(r, 0, 0));
267
267
  return l.setSelection(v.near(l.doc.resolve(t.pos + 1))), i.dispatch(l), !1;
268
268
  }
269
- function Y(i) {
269
+ function j(i) {
270
270
  if (!(i.selection instanceof a))
271
271
  return null;
272
272
  let e = document.createElement("div");
@@ -11,15 +11,15 @@ var ul = /* @__PURE__ */ ((n) => (n.Headless = "headless", n.Classic = "classic"
11
11
  async function Hd(n, e) {
12
12
  switch (n) {
13
13
  case "headless": {
14
- const { defineTheme: t } = await import("./index-0RbcZMbq.js");
14
+ const { defineTheme: t } = await import("./index-96I5UgEh.js");
15
15
  return t(e);
16
16
  }
17
17
  case "classic": {
18
- const { defineTheme: t } = await import("./index-Pwn25-kf.js");
18
+ const { defineTheme: t } = await import("./index-51ybuhXd.js");
19
19
  return t(e);
20
20
  }
21
21
  case "classic-dark": {
22
- const { defineTheme: t } = await import("./index-jPA8J9Eo.js");
22
+ const { defineTheme: t } = await import("./index-IKzcztdD.js");
23
23
  return t(e);
24
24
  }
25
25
  }
@@ -38,35 +38,35 @@ const Kd = {
38
38
  async function Wd(n, e, t) {
39
39
  switch (n) {
40
40
  case "code-mirror": {
41
- const { defineFeature: r } = await import("./index-8DvtgRVa.js").then((i) => i.K);
41
+ const { defineFeature: r } = await import("./index-iECr6hjv.js").then((i) => i.K);
42
42
  return r(e, t);
43
43
  }
44
44
  case "list-item": {
45
- const { defineFeature: r } = await import("./index-MovKtgMG.js");
45
+ const { defineFeature: r } = await import("./index-hcG6NuOF.js");
46
46
  return r(e, t);
47
47
  }
48
48
  case "link-tooltip": {
49
- const { defineFeature: r } = await import("./index-LlbrXb_n.js");
49
+ const { defineFeature: r } = await import("./index-YjIgdsm-.js");
50
50
  return r(e, t);
51
51
  }
52
52
  case "image-block": {
53
- const { defineFeature: r } = await import("./index-8S8qcncB.js");
53
+ const { defineFeature: r } = await import("./index-brbFUWoa.js");
54
54
  return r(e, t);
55
55
  }
56
56
  case "gap-cursor": {
57
- const { defineFeature: r } = await import("./index-rrf6_6DC.js");
57
+ const { defineFeature: r } = await import("./index-PwfWCMtB.js");
58
58
  return r(e, t);
59
59
  }
60
60
  case "block-edit": {
61
- const { defineFeature: r } = await import("./index-9A_GmGh4.js");
61
+ const { defineFeature: r } = await import("./index-UdINtlLB.js");
62
62
  return r(e, t);
63
63
  }
64
64
  case "placeholder": {
65
- const { defineFeature: r } = await import("./index-bknOViGv.js");
65
+ const { defineFeature: r } = await import("./index-gRh597MD.js");
66
66
  return r(e, t);
67
67
  }
68
68
  case "toolbar": {
69
- const { defineFeature: r } = await import("./index-vPRh55CO.js");
69
+ const { defineFeature: r } = await import("./index-ZyvuYqIf.js");
70
70
  return r(e, t);
71
71
  }
72
72
  }
@@ -20917,59 +20917,60 @@ class Xb {
20917
20917
  ct = new WeakMap(), kr = new WeakMap(), xr = new WeakMap(), Ti = new WeakMap();
20918
20918
  export {
20919
20919
  bt as $,
20920
- Qb as A,
20921
- Pn as B,
20920
+ tt as A,
20921
+ Qb as B,
20922
20922
  ul as C,
20923
20923
  re as D,
20924
- zn as E,
20924
+ Pn as E,
20925
20925
  M as F,
20926
- Bi as G,
20927
- Fi as H,
20928
- Dr as I,
20929
- vr as J,
20930
- bh as K,
20931
- it as L,
20932
- vn as M,
20926
+ zn as G,
20927
+ Bi as H,
20928
+ Fi as I,
20929
+ Dr as J,
20930
+ vr as K,
20931
+ bh as L,
20932
+ it as M,
20933
20933
  ac as N,
20934
- zi as O,
20934
+ vn as O,
20935
20935
  et as P,
20936
- Tr as Q,
20937
- Zt as R,
20936
+ zi as Q,
20937
+ Tr as R,
20938
20938
  gt as S,
20939
20939
  W as T,
20940
- Q as U,
20941
- Zl as V,
20942
- Yl as W,
20943
- ta as X,
20944
- E0 as Y,
20945
- Zb as Z,
20946
- qd as _,
20940
+ Zt as U,
20941
+ Q as V,
20942
+ Zl as W,
20943
+ Yl as X,
20944
+ ta as Y,
20945
+ E0 as Z,
20946
+ Zb as _,
20947
20947
  cm as a,
20948
- Gu as a0,
20949
- Xb as a1,
20948
+ qd as a0,
20949
+ Gu as a1,
20950
+ Xb as a2,
20950
20951
  rn as b,
20951
20952
  Li as c,
20952
20953
  Zn as d,
20953
20954
  ek as e,
20954
- Qn as f,
20955
- Pi as g,
20956
- Ar as h,
20955
+ ol as f,
20956
+ Qn as g,
20957
+ Pi as h,
20957
20958
  Gb as i,
20958
- Xm as j,
20959
+ Ar as j,
20959
20960
  pk as k,
20960
20961
  Ft as l,
20961
20962
  rl as m,
20962
20963
  nl as n,
20963
- K as o,
20964
- kk as p,
20965
- F as q,
20964
+ Xm as o,
20965
+ K as p,
20966
+ kk as q,
20966
20967
  od as r,
20967
20968
  gs as s,
20968
- T as t,
20969
+ F as t,
20969
20970
  sd as u,
20970
20971
  Ir as v,
20971
- Pe as w,
20972
- Rn as x,
20973
- dt as y,
20974
- tt as z
20972
+ T as w,
20973
+ Pe as x,
20974
+ Rn as y,
20975
+ dt as z
20975
20976
  };
@@ -1,11 +1,11 @@
1
- import { L as t, b as i, d as n, f as $, j as y, a as m, s as P, t as O } from "./index-8DvtgRVa.js";
2
- import { defineCSSCompletionSource as X } from "./index-EJJfYLzA.js";
3
- import { L as c, E as S } from "./index-SdFSDosa.js";
1
+ import { L as t, b as i, d as n, f as $, j as y, a as m, s as P, t as O } from "./index-iECr6hjv.js";
2
+ import { defineCSSCompletionSource as X } from "./index-zY_Ffd-9.js";
3
+ import { L as c, E as S } from "./index-4p4g7ekJ.js";
4
4
  import "./meta-tAGyVRPE.js";
5
5
  import "./icons-HYkfuR-O.js";
6
- import "./index-XiXSFLmI.js";
6
+ import "./index-S3dtETwZ.js";
7
7
  import "./hooks-82sqkbtE.js";
8
- import "./use-css-light-dom-EKWZDmbJ.js";
8
+ import "./index-K_kBonEs.js";
9
9
  import "./clsx-7d8NmkQq.js";
10
10
  const f = 110, l = 1, s = 2, r = [
11
11
  9,