@ynput/ayon-frontend-shared 0.6.6 → 0.6.7

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/dist/DetailsPanel.es.js +3 -3
  2. package/dist/NewEntity.es.js +15 -15
  3. package/dist/ProjectTreeTable.es.js +500 -495
  4. package/dist/Slicer.es.js +11 -11
  5. package/dist/Views.es.js +213 -206
  6. package/dist/chunks/CodeEditor.es.js +30 -0
  7. package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
  8. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  9. package/dist/chunks/DeleteEntitiesContextInstance.es.js +103 -103
  10. package/dist/chunks/EntityPath.es.js +2 -2
  11. package/dist/chunks/EntityTooltip.es.js +1 -1
  12. package/dist/chunks/Feed.es.js +1875 -1857
  13. package/dist/chunks/JsonViewer.es.js +1 -1
  14. package/dist/chunks/Menu.es.js +1 -1
  15. package/dist/chunks/MenuItem.es.js +25 -25
  16. package/dist/chunks/MetaWidget.es.js +1537 -1516
  17. package/dist/chunks/PlayableIcon.es.js +127 -127
  18. package/dist/chunks/ReviewablesSelector.es.js +199 -196
  19. package/dist/chunks/SimpleTable.es.js +110 -110
  20. package/dist/chunks/Slicer.es.js +22 -22
  21. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  22. package/dist/chunks/ThumbnailSimple.es.js +2 -2
  23. package/dist/chunks/VideoPlayer.es.js +1 -1
  24. package/dist/chunks/Watchers.es.js +19 -19
  25. package/dist/chunks/afterStartup.es.js +13 -0
  26. package/dist/chunks/getUris.es.js +790 -827
  27. package/dist/chunks/searchTerms.es.js +1 -3
  28. package/dist/chunks/useHierarchySelection.es.js +2 -2
  29. package/dist/chunks/useLoadModule.es.js +24 -23
  30. package/dist/components.es.js +202 -200
  31. package/dist/context.es.js +521 -492
  32. package/dist/hooks.es.js +190 -166
  33. package/dist/types/ContextMenu.d.ts +1 -0
  34. package/dist/types/ProjectTreeTable.d.ts +1 -0
  35. package/dist/types/Views.d.ts +11 -0
  36. package/dist/types/api.d.ts +198 -1174
  37. package/dist/types/components.d.ts +5 -1
  38. package/dist/types/context.d.ts +1 -0
  39. package/dist/types/hooks.d.ts +25 -1
  40. package/dist/types/util.d.ts +10 -0
  41. package/dist/util.es.js +44 -41
  42. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { format as Bn, isValid as Ae, isSameMinute as Yt, isBefore as zn, formatDistanceToNow as Fn, subYears as Kn, endOfYear as kt, startOfYear as wt, subMonths as Un, endOfMonth as Ue, startOfMonth as He, addMonths as Hn, subWeeks as Gn, endOfWeek as Ge, startOfWeek as je, addWeeks as jn, setHours as _t, subDays as Wn, endOfDay as Et, startOfDay as Ct, parseISO as B, isSameDay as K } from "date-fns";
1
+ import { format as Bn, isValid as Ie, isSameMinute as Yt, isBefore as zn, formatDistanceToNow as Fn, subYears as Kn, endOfYear as kt, startOfYear as wt, subMonths as Un, endOfMonth as Ue, startOfMonth as He, addMonths as Hn, subWeeks as jn, endOfWeek as je, startOfWeek as Ge, addWeeks as Gn, setHours as _t, subDays as Wn, endOfDay as Et, startOfDay as Ct, parseISO as B, isSameDay as K } from "date-fns";
2
2
  import { matchSorter as Yn } from "match-sorter";
3
3
  import { isArray as qn } from "lodash";
4
4
  import "primereact/confirmdialog";
@@ -13,7 +13,7 @@ import x, { css as Ee } from "styled-components";
13
13
  import { UserImage as Tt, Icon as J, Button as te, Dropdown as Zn, InputText as eo, getTextColor as to, theme as Oe } from "@ynput/ayon-react-components";
14
14
  import { TextNode as st, $applyNodeReplacement as at, createCommand as ge, LineBreakNode as no, $isLineBreakNode as Qt, $createTextNode as Ce, $getEditor as oo, $getRoot as ie, $createParagraphNode as he, $getSelection as M, $isParagraphNode as Y, $isTextNode as X, $isRangeSelection as $, COMMAND_PRIORITY_EDITOR as Jt, COMMAND_PRIORITY_NORMAL as Z, $isRootOrShadowRoot as ro, SELECTION_CHANGE_COMMAND as lt, COMMAND_PRIORITY_CRITICAL as Ve, BLUR_COMMAND as ct, COMMAND_PRIORITY_LOW as D, FORMAT_TEXT_COMMAND as dt, KEY_DOWN_COMMAND as Xt, KEY_ARROW_RIGHT_COMMAND as Zt, KEY_ARROW_LEFT_COMMAND as io, KEY_ARROW_DOWN_COMMAND as so, KEY_ENTER_COMMAND as Qe, COMMAND_PRIORITY_HIGH as ao, INSERT_PARAGRAPH_COMMAND as en, KEY_ESCAPE_COMMAND as tn, COMMAND_PRIORITY_BEFORE_EDITOR as lo, $isRootNode as ut, $getNearestNodeFromDOMNode as nn, PASTE_COMMAND as mt, $setSelection as We, $getNodeByKey as se, KEY_TAB_COMMAND as co, COPY_COMMAND as uo, CUT_COMMAND as mo, CLEAR_HISTORY_COMMAND as po, defineExtension as go } from "lexical";
15
15
  import { LexicalExtensionComposer as ho } from "@lexical/react/LexicalExtensionComposer";
16
- import { useLexicalComposerContext as I } from "@lexical/react/LexicalComposerContext";
16
+ import { useLexicalComposerContext as A } from "@lexical/react/LexicalComposerContext";
17
17
  import { ContentEditable as fo } from "@lexical/react/LexicalContentEditable";
18
18
  import { HistoryPlugin as bo } from "@lexical/react/LexicalHistoryPlugin";
19
19
  import { ListPlugin as yo } from "@lexical/react/LexicalListPlugin";
@@ -24,7 +24,7 @@ import { MarkdownShortcutPlugin as wo } from "@lexical/react/LexicalMarkdownShor
24
24
  import { TabIndentationPlugin as _o } from "@lexical/react/LexicalTabIndentationPlugin";
25
25
  import { AutoFocusPlugin as Eo } from "@lexical/react/LexicalAutoFocusPlugin";
26
26
  import { $isHeadingNode as Co, $isQuoteNode as on, $createHeadingNode as To, $createQuoteNode as Lo, DRAG_DROP_PASTE as rn, RichTextExtension as Mo, HeadingNode as $o, QuoteNode as No } from "@lexical/rich-text";
27
- import { $isListNode as sn, ListNode as an, REMOVE_LIST_COMMAND as So, INSERT_CHECK_LIST_COMMAND as Oo, INSERT_ORDERED_LIST_COMMAND as Ro, INSERT_UNORDERED_LIST_COMMAND as Ao, $isListItemNode as ln, $createListNode as Io, ListItemNode as Do } from "@lexical/list";
27
+ import { $isListNode as sn, ListNode as an, REMOVE_LIST_COMMAND as So, INSERT_CHECK_LIST_COMMAND as Oo, INSERT_ORDERED_LIST_COMMAND as Ro, INSERT_UNORDERED_LIST_COMMAND as Io, $isListItemNode as ln, $createListNode as Ao, ListItemNode as Do } from "@lexical/list";
28
28
  import { $isLinkNode as ne, $isAutoLinkNode as Je, $createLinkNode as cn, TOGGLE_LINK_COMMAND as Po, LinkNode as dn, AutoLinkNode as un } from "@lexical/link";
29
29
  import { $isCodeNode as ee, $createCodeNode as Mt, CodeNode as Bo, CodeHighlightNode as zo } from "@lexical/code";
30
30
  import mn from "prismjs";
@@ -54,7 +54,7 @@ import "prismjs/components/prism-markdown";
54
54
  import "prismjs/components/prism-powershell";
55
55
  import { BlockWithAlignableContents as pn } from "@lexical/react/LexicalBlockWithAlignableContents";
56
56
  import { DecoratorBlockNode as gn } from "@lexical/react/LexicalDecoratorBlockNode";
57
- import { HEADING as Fo, QUOTE as Ko, CHECK_LIST as Uo, UNORDERED_LIST as Ho, ORDERED_LIST as Go, CODE as jo, INLINE_CODE as Wo, BOLD_ITALIC_STAR as Yo, BOLD_ITALIC_UNDERSCORE as qo, BOLD_STAR as Vo, BOLD_UNDERSCORE as Qo, ITALIC_STAR as Jo, ITALIC_UNDERSCORE as Xo, STRIKETHROUGH as Zo, LINK as er, $generateNodesFromMarkdownString as tr, $convertToMarkdownString as nr, $convertSelectionToMarkdownString as or } from "@lexical/markdown";
57
+ import { HEADING as Fo, QUOTE as Ko, CHECK_LIST as Uo, UNORDERED_LIST as Ho, ORDERED_LIST as jo, CODE as Go, INLINE_CODE as Wo, BOLD_ITALIC_STAR as Yo, BOLD_ITALIC_UNDERSCORE as qo, BOLD_STAR as Vo, BOLD_UNDERSCORE as Qo, ITALIC_STAR as Jo, ITALIC_UNDERSCORE as Xo, STRIKETHROUGH as Zo, LINK as er, $generateNodesFromMarkdownString as tr, $convertToMarkdownString as nr, $convertSelectionToMarkdownString as or } from "@lexical/markdown";
58
58
  import rr from "emojilib/emojis.json";
59
59
  import $t from "emojilib/ordered.json";
60
60
  import { LexicalTypeaheadMenuPlugin as pt, MenuOption as gt } from "@lexical/react/LexicalTypeaheadMenuPlugin";
@@ -77,7 +77,7 @@ const gr = ({ name: t, fullName: e, imageKey: n, ...o }) => t ? /* @__PURE__ */
77
77
  src: `/api/users/${t}/avatar?key=${n || ""}`,
78
78
  ...o
79
79
  }
80
- ) : /* @__PURE__ */ l(Tt, { name: "", className: P(o.className, "loading"), ...o }), Il = (t, e) => {
80
+ ) : /* @__PURE__ */ l(Tt, { name: "", className: P(o.className, "loading"), ...o }), Al = (t, e) => {
81
81
  const n = new Date(t.getTime() + t.getTimezoneOffset() * 6e4);
82
82
  return Bn(n, e);
83
83
  }, ae = "block-dialog-close", hr = x.div`
@@ -104,19 +104,19 @@ const gr = ({ name: t, fullName: e, imageKey: n, ...o }) => t ? /* @__PURE__ */
104
104
  }), k(void 0), g(void 0);
105
105
  return;
106
106
  }
107
- const w = b.getBoundingClientRect(), T = y.getBoundingClientRect(), E = T.right, p = window.innerWidth - T.right, f = 24, v = 250, C = 400, h = 600, L = window.innerWidth, A = window.innerHeight, F = E - w.left;
108
- let N = {}, j = C;
109
- i ? (N.left = w.left, j = Math.max(C, w.width)) : F < C ? w.right - f >= C ? N.right = Math.max(
107
+ const w = b.getBoundingClientRect(), T = y.getBoundingClientRect(), E = T.right, p = window.innerWidth - T.right, f = 24, v = 250, C = 400, h = 600, L = window.innerWidth, I = window.innerHeight, F = E - w.left;
108
+ let N = {}, G = C;
109
+ i ? (N.left = w.left, G = Math.max(C, w.width)) : F < C ? w.right - f >= C ? N.right = Math.max(
110
110
  L - w.right,
111
111
  f + p
112
- ) : (N.left = f, j = L - 2 * f) : (N.left = w.left, j = Math.max(C, F));
112
+ ) : (N.left = f, G = L - 2 * f) : (N.left = w.left, G = Math.max(C, F));
113
113
  const ce = T.left, xe = T.right;
114
- if (N.left !== void 0 && (N.left + j > xe && (N.left = Math.max(ce, xe - j)), N.left = Math.max(ce, N.left)), N.right !== void 0) {
114
+ if (N.left !== void 0 && (N.left + G > xe && (N.left = Math.max(ce, xe - G)), N.left = Math.max(ce, N.left)), N.right !== void 0) {
115
115
  const Ke = L - xe;
116
- N.right + j > L - ce && (N.right = Math.max(Ke, L - ce - j)), N.right = Math.max(Ke, N.right);
116
+ N.right + G > L - ce && (N.right = Math.max(Ke, L - ce - G)), N.right = Math.max(Ke, N.right);
117
117
  }
118
- k(j);
119
- const ke = A - w.bottom - f, Te = w.top - f;
118
+ k(G);
119
+ const ke = I - w.bottom - f, Te = w.top - f;
120
120
  let we, Le = !1, Fe;
121
121
  ke < v && Te > ke ? (Le = !0, we = w.top - 4, Fe = Te - 4) : (we = w.bottom + 4, Fe = ke - 4), g(Math.min(Math.max(200, Fe), h)), m({
122
122
  top: we,
@@ -507,7 +507,7 @@ class ye extends gn {
507
507
  );
508
508
  }
509
509
  }
510
- const pe = (t) => at(new ye(t.trim())), Sr = (t) => t instanceof ye, bn = ["mp4", "mov", "webm", "mkv", "m4v", "ogv", "avi"], Or = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif", "bmp"], yn = (t) => t?.split(/[?#]/)[0].split(".").pop()?.toLowerCase() || "", vn = (t, ...e) => t?.startsWith("video/") ? "video" : t?.startsWith("image/") ? "image" : e.some((n) => bn.includes(yn(n))) ? "video" : "image", Rr = (t) => t.type.startsWith("image/") || t.type.startsWith("video/") || [...Or, ...bn].includes(yn(t.name)), Ar = /\/api\/projects\/[^/]+\/files\/([\w-]+)/, bt = (t) => t?.match(Ar)?.[1] ?? null, Ir = /^\s*!\[[^\]]*\]\(<?([^\s)>]+)>?(?:\s+"[^"]*")?\)\s*$/, Dr = /^\s*(```|~~~)/, Pl = (t) => {
510
+ const pe = (t) => at(new ye(t.trim())), Sr = (t) => t instanceof ye, bn = ["mp4", "mov", "webm", "mkv", "m4v", "ogv", "avi"], Or = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif", "bmp"], yn = (t) => t?.split(/[?#]/)[0].split(".").pop()?.toLowerCase() || "", vn = (t, ...e) => t?.startsWith("video/") ? "video" : t?.startsWith("image/") ? "image" : e.some((n) => bn.includes(yn(n))) ? "video" : "image", Rr = (t) => t.type.startsWith("image/") || t.type.startsWith("video/") || [...Or, ...bn].includes(yn(t.name)), Ir = /\/api\/projects\/[^/]+\/files\/([\w-]+)/, bt = (t) => t?.match(Ir)?.[1] ?? null, Ar = /^\s*!\[[^\]]*\]\(<?([^\s)>]+)>?(?:\s+"[^"]*")?\)\s*$/, Dr = /^\s*(```|~~~)/, Pl = (t) => {
511
511
  const e = /* @__PURE__ */ new Set();
512
512
  let n = !1;
513
513
  for (const o of String(t || "").split(`
@@ -517,7 +517,7 @@ const pe = (t) => at(new ye(t.trim())), Sr = (t) => t instanceof ye, bn = ["mp4"
517
517
  continue;
518
518
  }
519
519
  if (n) continue;
520
- const r = bt(o.match(Ir)?.[1]);
520
+ const r = bt(o.match(Ar)?.[1]);
521
521
  r && e.add(r);
522
522
  }
523
523
  return e;
@@ -647,7 +647,7 @@ class ve extends gn {
647
647
  );
648
648
  }
649
649
  static importJSON(e) {
650
- return Ie({
650
+ return Ae({
651
651
  src: e.src,
652
652
  alt: e.alt,
653
653
  mime: e.mime
@@ -668,7 +668,7 @@ class ve extends gn {
668
668
  const o = n.getAttribute("src");
669
669
  if (!o || !bt(o)) return null;
670
670
  const r = n.getAttribute("alt") || n.getAttribute("title") || "", i = n.getAttribute("data-mime");
671
- return { node: Ie({ src: o, alt: r, mime: i }) };
671
+ return { node: Ae({ src: o, alt: r, mime: i }) };
672
672
  };
673
673
  return {
674
674
  img: () => ({ conversion: e, priority: 1 }),
@@ -719,7 +719,7 @@ class ve extends gn {
719
719
  );
720
720
  }
721
721
  }
722
- const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USED_COMMAND"), xn = rr, zr = [
722
+ const Ae = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USED_COMMAND"), xn = rr, zr = [
723
723
  ...$t,
724
724
  ...Object.keys(xn).filter((t) => !$t.includes(t))
725
725
  ], kn = zr.flatMap((t) => {
@@ -763,9 +763,9 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
763
763
  "sweat_smile",
764
764
  "100",
765
765
  "x"
766
- ], Gr = (t) => (e, n) => (t[n] ?? 0) - (t[e] ?? 0), jr = (t, e = {}, n = 8) => {
766
+ ], jr = (t) => (e, n) => (t[n] ?? 0) - (t[e] ?? 0), Gr = (t, e = {}, n = 8) => {
767
767
  if (!t) {
768
- const o = Object.keys(e).filter((i) => e[i] > 0).sort(Gr(e));
768
+ const o = Object.keys(e).filter((i) => e[i] > 0).sort(jr(e));
769
769
  return [.../* @__PURE__ */ new Set([...o, ...Hr])].flatMap((i) => wn(i) ?? []).slice(0, n);
770
770
  }
771
771
  return Ur(t, n, e);
@@ -831,7 +831,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
831
831
  replace: (t, e, n, o) => {
832
832
  if (!o) return !1;
833
833
  const [, r, i, s] = n;
834
- t.replace(Ie({ src: i, alt: r, mime: s || null }));
834
+ t.replace(Ae({ src: i, alt: r, mime: s || null }));
835
835
  },
836
836
  type: "element"
837
837
  }, Pe = [
@@ -841,8 +841,8 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
841
841
  Ko,
842
842
  Uo,
843
843
  Ho,
844
- Go,
845
844
  jo,
845
+ Go,
846
846
  Wo,
847
847
  Yo,
848
848
  qo,
@@ -1546,7 +1546,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1546
1546
  background-color: var(--md-sys-color-primary-container);
1547
1547
  color: var(--md-sys-color-on-primary-container);
1548
1548
  }
1549
- `, At = x.li`
1549
+ `, It = x.li`
1550
1550
  list-style: none;
1551
1551
  margin: 0;
1552
1552
  padding: 6px 8px;
@@ -1594,7 +1594,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1594
1594
  font-family: monospace;
1595
1595
  font-size: 11px;
1596
1596
  }
1597
- `, Ri = 4, Ai = 26, yt = ({
1597
+ `, Ri = 4, Ii = 26, yt = ({
1598
1598
  editor: t,
1599
1599
  anchor: e,
1600
1600
  placement: n,
@@ -1621,8 +1621,8 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1621
1621
  return oe(() => {
1622
1622
  const v = c.current;
1623
1623
  if (T || !v) return;
1624
- const C = e.getBoundingClientRect(), h = v.offsetHeight, L = window.innerHeight - C.top - Ri, A = C.top - Ai;
1625
- w(h > L && A > L);
1624
+ const C = e.getBoundingClientRect(), h = v.offsetHeight, L = window.innerHeight - C.top - Ri, I = C.top - Ii;
1625
+ w(h > L && I > L);
1626
1626
  }, [T, e, i.length, o, _]), fe(
1627
1627
  /* @__PURE__ */ S(
1628
1628
  Mi,
@@ -1642,7 +1642,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1642
1642
  i.map((v, C) => [
1643
1643
  C > 0 && b && b(v) !== b(i[C - 1]) && /* @__PURE__ */ l($i, { role: "separator" }, `divider-${v.key}`),
1644
1644
  /* @__PURE__ */ l(
1645
- At,
1645
+ It,
1646
1646
  {
1647
1647
  ref: (h) => v.setRefElement(h),
1648
1648
  role: "option",
@@ -1657,7 +1657,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1657
1657
  v.key
1658
1658
  )
1659
1659
  ]),
1660
- !i.length && _ && /* @__PURE__ */ l(At, { className: "empty", children: _ })
1660
+ !i.length && _ && /* @__PURE__ */ l(It, { className: "empty", children: _ })
1661
1661
  ] })
1662
1662
  ]
1663
1663
  }
@@ -1672,7 +1672,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1672
1672
  return X(e) && e.hasFormat("code") ? !0 : !!W(e, ee);
1673
1673
  }, vt = ge(
1674
1674
  "INSERT_MENTION_TRIGGER_COMMAND"
1675
- ), Ii = ["@", "@@", "@@@"], Di = {
1675
+ ), Ai = ["@", "@@", "@@@"], Di = {
1676
1676
  "@": {
1677
1677
  title: "@ Users & Teams",
1678
1678
  noun: "user",
@@ -1684,7 +1684,7 @@ const Ie = (t) => at(new ve(t)), Xe = (t) => t instanceof ve, Ze = ge("EMOJI_USE
1684
1684
  },
1685
1685
  "@@": { title: "@@ Versions", noun: "version" },
1686
1686
  "@@@": { title: "@@@ Tasks", noun: "task" }
1687
- }, It = /(^|[\s([{"'])(@{1,3})([^\s@]{0,75})$/;
1687
+ }, At = /(^|[\s([{"'])(@{1,3})([^\s@]{0,75})$/;
1688
1688
  class Pi extends gt {
1689
1689
  item;
1690
1690
  constructor(e, n) {
@@ -1692,10 +1692,10 @@ class Pi extends gt {
1692
1692
  }
1693
1693
  }
1694
1694
  const Bi = ({ source: t, menuParent: e, placement: n = "inline" }) => {
1695
- const [o] = I(), [r, i] = U(null), [s, a] = U(null), m = O("@"), [d, k] = U("@"), _ = t.triggers ?? Ii, g = t.limit ?? (n === "top" ? 8 : 5), b = H(
1695
+ const [o] = A(), [r, i] = U(null), [s, a] = U(null), m = O("@"), [d, k] = U("@"), _ = t.triggers ?? Ai, g = t.limit ?? (n === "top" ? 8 : 5), b = H(
1696
1696
  (E) => {
1697
1697
  if (Be()) return null;
1698
- const p = It.exec(E);
1698
+ const p = At.exec(E);
1699
1699
  if (!p) return null;
1700
1700
  const f = p[2];
1701
1701
  return _.includes(f) ? (m.current = f, {
@@ -1721,9 +1721,9 @@ const Bi = ({ source: t, menuParent: e, placement: n = "inline" }) => {
1721
1721
  const F = M();
1722
1722
  $(F) && F.insertNodes([L]);
1723
1723
  }
1724
- const A = L.getNextSibling();
1725
- if (X(A) && A.getTextContent().startsWith(" "))
1726
- A.select(1, 1);
1724
+ const I = L.getNextSibling();
1725
+ if (X(I) && I.getTextContent().startsWith(" "))
1726
+ I.select(1, 1);
1727
1727
  else {
1728
1728
  const F = Ce(" ");
1729
1729
  L.insertAfter(F), F.select(1, 1);
@@ -1741,12 +1741,12 @@ const Bi = ({ source: t, menuParent: e, placement: n = "inline" }) => {
1741
1741
  const p = M();
1742
1742
  if (!$(p)) return !1;
1743
1743
  if (r !== null && p.isCollapsed()) {
1744
- const L = p.anchor, A = L.getNode();
1745
- if (X(A)) {
1746
- const F = A.getTextContent().slice(0, L.offset), N = It.exec(F);
1744
+ const L = p.anchor, I = L.getNode();
1745
+ if (X(I)) {
1746
+ const F = I.getTextContent().slice(0, L.offset), N = At.exec(F);
1747
1747
  if (N) {
1748
- const j = N.index + N[1].length;
1749
- A.spliceText(j, L.offset - j, "", !0);
1748
+ const G = N.index + N[1].length;
1749
+ I.spliceText(G, L.offset - G, "", !0);
1750
1750
  }
1751
1751
  }
1752
1752
  }
@@ -1838,8 +1838,8 @@ class Ui extends gt {
1838
1838
  }
1839
1839
  }
1840
1840
  const Hi = ({ placement: t = "inline", menuParent: e }) => {
1841
- const [n] = I(), [o, r] = U(null), i = t === "top" ? 8 : 5, { usage: s, recordUse: a } = Fi(), m = _e(
1842
- () => o === null ? [] : jr(o, s, i).map((_) => new Ui(_)),
1841
+ const [n] = A(), [o, r] = U(null), i = t === "top" ? 8 : 5, { usage: s, recordUse: a } = Fi(), m = _e(
1842
+ () => o === null ? [] : Gr(o, s, i).map((_) => new Ui(_)),
1843
1843
  [o, i, s]
1844
1844
  );
1845
1845
  R(
@@ -1921,8 +1921,8 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
1921
1921
  if (!e) return null;
1922
1922
  const n = ft(e.getAttribute("data-mention-value"));
1923
1923
  return n ? { target: e, mention: { ...n, label: e.getAttribute("data-mention-label") || "" } } : null;
1924
- }, Gi = ({ onMentionClick: t, onMentionHover: e }) => {
1925
- const [n] = I(), o = O({ onMentionClick: t, onMentionHover: e });
1924
+ }, ji = ({ onMentionClick: t, onMentionHover: e }) => {
1925
+ const [n] = A(), o = O({ onMentionClick: t, onMentionHover: e });
1926
1926
  return o.current = { onMentionClick: t, onMentionHover: e }, R(() => {
1927
1927
  const r = (m) => {
1928
1928
  const d = Pt(m);
@@ -1951,18 +1951,18 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
1951
1951
  return n === "h1" || n === "h2" || n === "h3" ? n : "heading";
1952
1952
  }
1953
1953
  return on(e) ? "quote" : ee(e) ? "code" : "paragraph";
1954
- }, ji = {
1955
- bullet: Ao,
1954
+ }, Gi = {
1955
+ bullet: Io,
1956
1956
  number: Ro,
1957
1957
  check: Oo
1958
- }, G = (t, e, n = "toggle") => {
1958
+ }, j = (t, e, n = "toggle") => {
1959
1959
  const o = t.getEditorState().read(() => {
1960
1960
  const r = M();
1961
1961
  return $(r) ? tt(r.anchor.getNode()) : null;
1962
1962
  });
1963
1963
  if (o !== null && !(n === "set" && o === e)) {
1964
1964
  if (e === "bullet" || e === "number" || e === "check") {
1965
- o === e ? t.dispatchCommand(So, void 0) : t.dispatchCommand(ji[e], void 0);
1965
+ o === e ? t.dispatchCommand(So, void 0) : t.dispatchCommand(Gi[e], void 0);
1966
1966
  return;
1967
1967
  }
1968
1968
  t.update(() => {
@@ -2011,7 +2011,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2011
2011
  bulletList: { icon: "format_list_bulleted", tooltip: "Bullet list", shortcut: "-" },
2012
2012
  checkList: { icon: "check_circle", tooltip: "Checklist", shortcut: "[]" }
2013
2013
  }, zt = ({ layout: t = Er, start: e, end: n, floating: o }) => {
2014
- const [r] = I(), [i, s] = U(Wi), [a, m] = U(null), d = H(() => {
2014
+ const [r] = A(), [i, s] = U(Wi), [a, m] = U(null), d = H(() => {
2015
2015
  const c = r.getRootElement(), u = window.getSelection();
2016
2016
  if (!c || !u || u.isCollapsed || !u.rangeCount) {
2017
2017
  m(null);
@@ -2066,25 +2066,25 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2066
2066
  case "h1":
2067
2067
  case "h2":
2068
2068
  case "h3":
2069
- G(r, c);
2069
+ j(r, c);
2070
2070
  break;
2071
2071
  case "quote":
2072
- G(r, "quote");
2072
+ j(r, "quote");
2073
2073
  break;
2074
2074
  case "codeBlock":
2075
- G(r, "code");
2075
+ j(r, "code");
2076
2076
  break;
2077
2077
  case "link":
2078
2078
  m(null), r.dispatchCommand(Ln, void 0);
2079
2079
  break;
2080
2080
  case "bulletList":
2081
- G(r, "bullet");
2081
+ j(r, "bullet");
2082
2082
  break;
2083
2083
  case "numberList":
2084
- G(r, "number");
2084
+ j(r, "number");
2085
2085
  break;
2086
2086
  case "checkList":
2087
- G(r, "check");
2087
+ j(r, "check");
2088
2088
  break;
2089
2089
  }
2090
2090
  }, g = (c) => {
@@ -2146,7 +2146,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2146
2146
  n
2147
2147
  ] });
2148
2148
  }, qi = (t) => t.metaKey || t.ctrlKey, Vi = () => {
2149
- const [t] = I();
2149
+ const [t] = A();
2150
2150
  return R(
2151
2151
  () => q(
2152
2152
  t.registerCommand(
@@ -2191,7 +2191,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2191
2191
  [t]
2192
2192
  ), null;
2193
2193
  }, Qi = () => {
2194
- const [t] = I();
2194
+ const [t] = A();
2195
2195
  return R(() => {
2196
2196
  const e = (n) => {
2197
2197
  if (n?.shiftKey) return !1;
@@ -2213,7 +2213,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2213
2213
  );
2214
2214
  }, [t]), null;
2215
2215
  }, Ji = /^\[([ xX]?)\]\s/, Xi = () => {
2216
- const [t] = I();
2216
+ const [t] = A();
2217
2217
  return R(
2218
2218
  () => t.registerNodeTransform(st, (e) => {
2219
2219
  if (!e.isSimpleText()) return;
@@ -2226,7 +2226,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2226
2226
  if (r.getChildrenSize() === 1)
2227
2227
  r.setListType("check");
2228
2228
  else if (o.is(r.getLastChild())) {
2229
- const s = Io("check");
2229
+ const s = Ao("check");
2230
2230
  r.insertAfter(s), s.append(o);
2231
2231
  } else
2232
2232
  return;
@@ -2236,7 +2236,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2236
2236
  [t]
2237
2237
  ), null;
2238
2238
  }, Zi = ({ onSubmit: t, onEscape: e, submitOnEnter: n }) => {
2239
- const [o] = I(), r = O({ onSubmit: t, onEscape: e, submitOnEnter: n });
2239
+ const [o] = A(), r = O({ onSubmit: t, onEscape: e, submitOnEnter: n });
2240
2240
  return r.current = { onSubmit: t, onEscape: e, submitOnEnter: n }, R(() => {
2241
2241
  const i = () => {
2242
2242
  const s = M();
@@ -2281,7 +2281,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2281
2281
  );
2282
2282
  }, [o]), null;
2283
2283
  }, qe = (t) => Y(t) && t.getChildrenSize() === 0, es = () => {
2284
- const [t] = I();
2284
+ const [t] = A();
2285
2285
  return R(
2286
2286
  () => t.registerCommand(
2287
2287
  en,
@@ -2330,7 +2330,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2330
2330
  return { projectName: o, ...i };
2331
2331
  }
2332
2332
  }, $n = "Comment", ts = () => {
2333
- const [t] = I();
2333
+ const [t] = A();
2334
2334
  return R(() => {
2335
2335
  const e = (r) => {
2336
2336
  const i = r.target?.closest?.(
@@ -2376,7 +2376,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2376
2376
  const n = M(), o = $(n) ? n.anchor.getNode().getTopLevelElement() : ie().getLastChild();
2377
2377
  o ? o.insertAfter(t) : ie().append(t), Nn(t);
2378
2378
  }, ns = (t) => Sn(pe(t)), os = () => {
2379
- const [t] = I();
2379
+ const [t] = A();
2380
2380
  return R(
2381
2381
  () => q(
2382
2382
  t.registerCommand(
@@ -2418,7 +2418,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2418
2418
  const n = W(t.focus.getNode(), ne);
2419
2419
  return n && n.is(e) ? e : null;
2420
2420
  }, rs = () => {
2421
- const [t] = I(), [e, n] = U(null), [o, r] = U(""), [i, s] = U(!1), a = O(null), m = O(null), d = O(null), k = O(e);
2421
+ const [t] = A(), [e, n] = U(null), [o, r] = U(""), [i, s] = U(!1), a = O(null), m = O(null), d = O(null), k = O(e);
2422
2422
  k.current = e;
2423
2423
  const _ = () => !!m.current && document.activeElement === m.current, g = H(
2424
2424
  (p = !1) => {
@@ -2464,8 +2464,8 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2464
2464
  if (!$(C)) return;
2465
2465
  d.current = C.clone();
2466
2466
  const h = window.getSelection();
2467
- let A = (h?.rangeCount ? h.getRangeAt(0) : null)?.getBoundingClientRect();
2468
- (!A || !A.width && !A.height) && (A = t.getElementByKey(C.anchor.key)?.getBoundingClientRect()), A && (n({ mode: p === "video" ? "video" : "create", url: "", rect: Ne(A) }), r(""), f = !0);
2467
+ let I = (h?.rangeCount ? h.getRangeAt(0) : null)?.getBoundingClientRect();
2468
+ (!I || !I.width && !I.height) && (I = t.getElementByKey(C.anchor.key)?.getBoundingClientRect()), I && (n({ mode: p === "video" ? "video" : "create", url: "", rect: Ne(I) }), r(""), f = !0);
2469
2469
  }), f && y(), f;
2470
2470
  },
2471
2471
  [t]
@@ -2660,7 +2660,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2660
2660
  document.body
2661
2661
  );
2662
2662
  }, is = () => {
2663
- const [t] = I(), [e, n] = U(null), o = O(null), r = O(null), i = O(!1), s = H(() => {
2663
+ const [t] = A(), [e, n] = U(null), o = O(null), r = O(null), i = O(!1), s = H(() => {
2664
2664
  i.current || t.getEditorState().read(() => {
2665
2665
  let d = null;
2666
2666
  if (o.current) {
@@ -2762,7 +2762,7 @@ const Hi = ({ placement: t = "inline", menuParent: e }) => {
2762
2762
  document.body
2763
2763
  );
2764
2764
  }, ss = { ...dr, defaultLanguage: null }, as = () => {
2765
- const [t] = I();
2765
+ const [t] = A();
2766
2766
  return R(() => ur(t, ss), [t]), null;
2767
2767
  }, Ht = ge(
2768
2768
  "INSERT_MEDIA_FILES_COMMAND"
@@ -2783,7 +2783,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2783
2783
  canInsertMedia: r,
2784
2784
  customCommands: i = []
2785
2785
  }) => {
2786
- const [s] = I(), [a, m] = U(null), d = O(null), k = _e(() => {
2786
+ const [s] = A(), [a, m] = U(null), d = O(null), k = _e(() => {
2787
2787
  const y = [
2788
2788
  ...i.map(({ icon: u, keywords: w = [], run: T, ...E }) => ({
2789
2789
  ...E,
@@ -2799,7 +2799,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2799
2799
  group: "headings",
2800
2800
  keywords: ["h1", "title", "heading"],
2801
2801
  hint: "#",
2802
- run: (u) => G(u, "h1", "set")
2802
+ run: (u) => j(u, "h1", "set")
2803
2803
  },
2804
2804
  {
2805
2805
  id: "h2",
@@ -2808,7 +2808,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2808
2808
  group: "headings",
2809
2809
  keywords: ["h2", "heading", "subtitle"],
2810
2810
  hint: "##",
2811
- run: (u) => G(u, "h2", "set")
2811
+ run: (u) => j(u, "h2", "set")
2812
2812
  },
2813
2813
  {
2814
2814
  id: "h3",
@@ -2817,7 +2817,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2817
2817
  group: "headings",
2818
2818
  keywords: ["h3", "heading"],
2819
2819
  hint: "###",
2820
- run: (u) => G(u, "h3", "set")
2820
+ run: (u) => j(u, "h3", "set")
2821
2821
  },
2822
2822
  {
2823
2823
  id: "bullet",
@@ -2826,7 +2826,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2826
2826
  group: "lists",
2827
2827
  keywords: ["list", "bullet", "unordered", "ul"],
2828
2828
  hint: "-",
2829
- run: (u) => G(u, "bullet", "set")
2829
+ run: (u) => j(u, "bullet", "set")
2830
2830
  },
2831
2831
  {
2832
2832
  id: "number",
@@ -2835,7 +2835,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2835
2835
  group: "lists",
2836
2836
  keywords: ["list", "numbered", "ordered", "ol"],
2837
2837
  hint: "1.",
2838
- run: (u) => G(u, "number", "set")
2838
+ run: (u) => j(u, "number", "set")
2839
2839
  },
2840
2840
  {
2841
2841
  id: "check",
@@ -2844,7 +2844,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2844
2844
  group: "lists",
2845
2845
  keywords: ["list", "check", "task", "todo"],
2846
2846
  hint: "[]",
2847
- run: (u) => G(u, "check", "set")
2847
+ run: (u) => j(u, "check", "set")
2848
2848
  },
2849
2849
  {
2850
2850
  id: "quote",
@@ -2853,7 +2853,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2853
2853
  group: "blocks",
2854
2854
  keywords: ["quote", "blockquote"],
2855
2855
  hint: ">",
2856
- run: (u) => G(u, "quote", "set")
2856
+ run: (u) => j(u, "quote", "set")
2857
2857
  },
2858
2858
  {
2859
2859
  id: "codeBlock",
@@ -2862,7 +2862,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2862
2862
  group: "blocks",
2863
2863
  keywords: ["code", "block", "snippet", "pre"],
2864
2864
  hint: "```",
2865
- run: (u) => G(u, "code", "set")
2865
+ run: (u) => j(u, "code", "set")
2866
2866
  },
2867
2867
  {
2868
2868
  id: "code",
@@ -2999,7 +2999,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
2999
2999
  }, xt = (t) => t.slice(0, 7), Rn = (t) => {
3000
3000
  const e = t.match(/^#L(\d+)(?:C\d+)?(?:-L(\d+))?/);
3001
3001
  return e ? e[2] ? `:${e[1]}-${e[2]}` : `:${e[1]}` : "";
3002
- }, An = (t) => Q(t[t.length - 1] || ""), ps = /* @__PURE__ */ new Set([
3002
+ }, In = (t) => Q(t[t.length - 1] || ""), ps = /* @__PURE__ */ new Set([
3003
3003
  "about",
3004
3004
  "apps",
3005
3005
  "collections",
@@ -3040,7 +3040,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3040
3040
  case "tree":
3041
3041
  case "blob": {
3042
3042
  const s = i.slice(1);
3043
- return s.length ? `${o}/${An(s)}${Rn(t.hash)}` : i[0] ? `${o}@${Q(i[0])}` : null;
3043
+ return s.length ? `${o}/${In(s)}${Rn(t.hash)}` : i[0] ? `${o}@${Q(i[0])}` : null;
3044
3044
  }
3045
3045
  case "actions":
3046
3046
  return i[0] === "runs" && i[1] ? `${o} run ${i[1]}` : `${o} actions`;
@@ -3065,7 +3065,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3065
3065
  return i ? `${o} ${Q(i)}` : null;
3066
3066
  case "blob":
3067
3067
  case "tree":
3068
- return s.length ? `${o}/${An(s)}${Rn(t.hash)}` : null;
3068
+ return s.length ? `${o}/${In(s)}${Rn(t.hash)}` : null;
3069
3069
  case "pipelines":
3070
3070
  return i ? `${o} pipeline ${i}` : null;
3071
3071
  default:
@@ -3074,9 +3074,9 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3074
3074
  }, fs = (t, e) => {
3075
3075
  const [, n, o, r] = e;
3076
3076
  return n ? o === "pull-requests" && r ? `${n} #${r}` : o === "issues" && r ? `${n} #${r}` : o === "commits" && r ? `${n}@${xt(r)}` : o ? null : n : null;
3077
- }, Gt = /^[A-Z][A-Z0-9_]+-\d+$/, bs = (t, e) => {
3078
- const n = e.find((o) => Gt.test(o)) || t.searchParams.get("selectedIssue");
3079
- if (n && Gt.test(n)) return n;
3077
+ }, jt = /^[A-Z][A-Z0-9_]+-\d+$/, bs = (t, e) => {
3078
+ const n = e.find((o) => jt.test(o)) || t.searchParams.get("selectedIssue");
3079
+ if (n && jt.test(n)) return n;
3080
3080
  if (e[0] === "wiki") {
3081
3081
  const o = e.indexOf("pages"), r = o >= 0 ? e[o + 2] : void 0;
3082
3082
  if (r) return Q(r);
@@ -3138,7 +3138,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3138
3138
  const r = e.pathname.split("/").filter(Boolean);
3139
3139
  return o(e, r)?.replace(/[[\]]/g, "").trim() || null;
3140
3140
  }, Ns = () => {
3141
- const [t] = I();
3141
+ const [t] = A();
3142
3142
  return R(
3143
3143
  () => t.registerCommand(
3144
3144
  mt,
@@ -3157,7 +3157,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3157
3157
  [t]
3158
3158
  ), null;
3159
3159
  }, Ss = () => {
3160
- const [t] = I();
3160
+ const [t] = A();
3161
3161
  return R(() => {
3162
3162
  const e = (n) => {
3163
3163
  t.getEditorState().read(() => {
@@ -3184,7 +3184,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3184
3184
  }
3185
3185
  return o ? { top: o.bottom + 6, left: o.left } : null;
3186
3186
  }, Rs = ({ onUploadMedia: t, onFiles: e }) => {
3187
- const [n] = I(), o = O(null), r = O({ onUploadMedia: t, onFiles: e });
3187
+ const [n] = A(), o = O(null), r = O({ onUploadMedia: t, onFiles: e });
3188
3188
  r.current = { onUploadMedia: t, onFiles: e };
3189
3189
  const [i, s] = U(null), a = O(i);
3190
3190
  a.current = i;
@@ -3194,7 +3194,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3194
3194
  const y = URL.createObjectURL(b);
3195
3195
  let c = null;
3196
3196
  n.update(() => {
3197
- const u = Ie({
3197
+ const u = Ae({
3198
3198
  src: y,
3199
3199
  alt: b.name,
3200
3200
  mime: b.type || null,
@@ -3299,10 +3299,10 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3299
3299
  }
3300
3300
  )
3301
3301
  ] });
3302
- }, As = new RegExp(
3302
+ }, Is = new RegExp(
3303
3303
  `\\[[^\\]\\n]+\\]\\(@?(${ht.join("|")}):[^)\\s]+\\)`
3304
- ), Is = ({ onFiles: t }) => {
3305
- const [e] = I(), n = O(t);
3304
+ ), As = ({ onFiles: t }) => {
3305
+ const [e] = A(), n = O(t);
3306
3306
  return n.current = t, R(() => {
3307
3307
  const o = (r) => {
3308
3308
  if (!(r instanceof ClipboardEvent)) return !1;
@@ -3329,7 +3329,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3329
3329
  const { clipboardData: i } = r;
3330
3330
  if (i.types.includes("application/x-lexical-editor") || i.types.includes("text/html")) return !1;
3331
3331
  const s = i.getData("text/plain");
3332
- if (!s || !As.test(s)) return !1;
3332
+ if (!s || !Is.test(s)) return !1;
3333
3333
  const a = M();
3334
3334
  if (!$(a)) return !1;
3335
3335
  r.preventDefault();
@@ -3346,7 +3346,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3346
3346
  );
3347
3347
  }, [e]), null;
3348
3348
  }, Ds = ({ value: t, onChange: e, handleRef: n }) => {
3349
- const [o] = I(), r = O(t), i = O(e);
3349
+ const [o] = A(), r = O(t), i = O(e);
3350
3350
  return i.current = e, R(
3351
3351
  () => o.registerUpdateListener(({ editorState: s, dirtyElements: a, dirtyLeaves: m, tags: d }) => {
3352
3352
  if (d.has("markdown-value") || a.size === 0 && m.size === 0) return;
@@ -3395,7 +3395,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3395
3395
  ye,
3396
3396
  ve
3397
3397
  ], Us = ({ editable: t }) => {
3398
- const [e] = I();
3398
+ const [e] = A();
3399
3399
  return R(() => e.setEditable(t), [e, t]), null;
3400
3400
  }, de = {
3401
3401
  // descriptions, articles: toolbar at the top, enter adds a line
@@ -3445,10 +3445,10 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3445
3445
  autoFocus: C,
3446
3446
  readOnly: h,
3447
3447
  bordered: L = !0,
3448
- minHeight: A = de[t].minHeight,
3448
+ minHeight: I = de[t].minHeight,
3449
3449
  maxHeight: F = de[t].maxHeight,
3450
3450
  namespace: N = "ayon-markdown-editor",
3451
- className: j,
3451
+ className: G,
3452
3452
  style: ce,
3453
3453
  contentClassName: xe,
3454
3454
  children: ke
@@ -3476,7 +3476,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3476
3476
  /* @__PURE__ */ S(
3477
3477
  hi,
3478
3478
  {
3479
- className: P("md-editor", "block-shortcuts", `md-editor-${t}`, j, {
3479
+ className: P("md-editor", "block-shortcuts", `md-editor-${t}`, G, {
3480
3480
  bordered: L,
3481
3481
  readOnly: h
3482
3482
  }),
@@ -3491,11 +3491,11 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3491
3491
  }
3492
3492
  ),
3493
3493
  /* @__PURE__ */ S(_i, { children: [
3494
- /* @__PURE__ */ l(Ci, { style: { minHeight: A, maxHeight: F }, children: /* @__PURE__ */ l(Li, { children: /* @__PURE__ */ l(
3494
+ /* @__PURE__ */ l(Ci, { style: { minHeight: I, maxHeight: F }, children: /* @__PURE__ */ l(Li, { children: /* @__PURE__ */ l(
3495
3495
  fo,
3496
3496
  {
3497
3497
  className: P("md-content", xe),
3498
- style: { minHeight: A },
3498
+ style: { minHeight: I },
3499
3499
  "aria-placeholder": o,
3500
3500
  placeholder: /* @__PURE__ */ l(Ti, { className: "md-placeholder", children: o })
3501
3501
  }
@@ -3534,7 +3534,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3534
3534
  layout: Array.isArray(T) ? T : Cr
3535
3535
  }
3536
3536
  ),
3537
- /* @__PURE__ */ l(Is, { onFiles: a }),
3537
+ /* @__PURE__ */ l(As, { onFiles: a }),
3538
3538
  /* @__PURE__ */ l(Ds, { value: e, onChange: n, handleRef: Te }),
3539
3539
  b && !h && /* @__PURE__ */ l(
3540
3540
  ms,
@@ -3556,7 +3556,7 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3556
3556
  placement: _
3557
3557
  }
3558
3558
  ),
3559
- (c || u) && /* @__PURE__ */ l(Gi, { onMentionClick: c, onMentionHover: u }),
3559
+ (c || u) && /* @__PURE__ */ l(ji, { onMentionClick: c, onMentionHover: u }),
3560
3560
  C && /* @__PURE__ */ l(Eo, { defaultSelection: "rootEnd" }),
3561
3561
  ke
3562
3562
  ] })
@@ -3564,10 +3564,10 @@ const ds = typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform),
3564
3564
  }
3565
3565
  );
3566
3566
  Hs.displayName = "MarkdownEditor";
3567
- const Gs = (t, e) => {
3568
- const n = t.item || t, o = e.item || e, r = new Date(n.createdAt), i = new Date(o.createdAt), s = Ae(r) && Ae(i), a = s && Yt(r, i);
3567
+ const js = (t, e) => {
3568
+ const n = t.item || t, o = e.item || e, r = new Date(n.createdAt), i = new Date(o.createdAt), s = Ie(r) && Ie(i), a = s && Yt(r, i);
3569
3569
  return !s || a ? n.relevance > o.relevance ? -1 : n.relevance < o.relevance ? 1 : String(o.label).localeCompare(String(n.label)) : zn(i, r) ? -1 : 1;
3570
- }, js = (t, e) => t.relevance > e.relevance ? -1 : t.relevance < e.relevance ? 1 : t.label?.localeCompare(e.label), Ws = ["team:", "user:"], Ys = (t) => {
3570
+ }, Gs = (t, e) => t.relevance > e.relevance ? -1 : t.relevance < e.relevance ? 1 : t.label?.localeCompare(e.label), Ws = ["team:", "user:"], Ys = (t) => {
3571
3571
  if (!t) return { typeFilter: null, search: void 0 };
3572
3572
  for (const e of Ws)
3573
3573
  if (t.startsWith(e))
@@ -3580,8 +3580,8 @@ const Gs = (t, e) => {
3580
3580
  }, qs = (t, e = {}, n) => {
3581
3581
  if (!(t in e)) return [];
3582
3582
  const o = e[t]() || [];
3583
- let r = js;
3584
- t === "@@" && (r = Gs);
3583
+ let r = Gs;
3584
+ t === "@@" && (r = js);
3585
3585
  const { typeFilter: i, search: s } = Ys(n), a = i ? o.filter((d) => d.type === i) : o;
3586
3586
  return s ? Yn(a, s, {
3587
3587
  keys: ["label", "context", "keywords"],
@@ -3753,7 +3753,7 @@ const Gs = (t, e) => {
3753
3753
  &.checked {
3754
3754
  color: var(--md-sys-color-tertiary);
3755
3755
  /* fill icon */
3756
- font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 200, 'opsz' 20;
3756
+ font-variation-settings: 'FILL' 1;
3757
3757
  }
3758
3758
 
3759
3759
  &:not(.readOnly):hover {
@@ -3798,26 +3798,26 @@ const Gs = (t, e) => {
3798
3798
  "this-week": () => {
3799
3799
  const t = /* @__PURE__ */ new Date();
3800
3800
  return V(
3801
- je(t, { weekStartsOn: 0 }),
3802
3801
  Ge(t, { weekStartsOn: 0 }),
3802
+ je(t, { weekStartsOn: 0 }),
3803
3803
  "Start of week",
3804
3804
  "End of week"
3805
3805
  );
3806
3806
  },
3807
3807
  "next-week": () => {
3808
- const t = jn(/* @__PURE__ */ new Date(), 1);
3808
+ const t = Gn(/* @__PURE__ */ new Date(), 1);
3809
3809
  return V(
3810
- je(t, { weekStartsOn: 0 }),
3811
3810
  Ge(t, { weekStartsOn: 0 }),
3811
+ je(t, { weekStartsOn: 0 }),
3812
3812
  "Start of next week",
3813
3813
  "End of next week"
3814
3814
  );
3815
3815
  },
3816
3816
  "last-week": () => {
3817
- const t = Gn(/* @__PURE__ */ new Date(), 1);
3817
+ const t = jn(/* @__PURE__ */ new Date(), 1);
3818
3818
  return V(
3819
- je(t, { weekStartsOn: 0 }),
3820
3819
  Ge(t, { weekStartsOn: 0 }),
3820
+ je(t, { weekStartsOn: 0 }),
3821
3821
  "Start of last week",
3822
3822
  "End of last week"
3823
3823
  );
@@ -3862,7 +3862,7 @@ const Gs = (t, e) => {
3862
3862
  label: "Custom range...",
3863
3863
  values: [],
3864
3864
  icon: oa
3865
- }, In = () => [
3865
+ }, An = () => [
3866
3866
  {
3867
3867
  id: "today",
3868
3868
  label: "Today",
@@ -3923,14 +3923,14 @@ const Gs = (t, e) => {
3923
3923
  values: z["last-year"](),
3924
3924
  icon: "calendar_month"
3925
3925
  }
3926
- ], Fl = In(), ia = () => [
3926
+ ], Fl = An(), ia = () => [
3927
3927
  ra,
3928
- ...In()
3928
+ ...An()
3929
3929
  ], Kl = ia(), Ul = (t, e) => {
3930
3930
  if (!t || !e) return null;
3931
3931
  try {
3932
3932
  const n = B(t), o = B(e);
3933
- if (!Ae(n) || !Ae(o)) return null;
3933
+ if (!Ie(n) || !Ie(o)) return null;
3934
3934
  const r = [
3935
3935
  {
3936
3936
  id: "today",
@@ -4028,7 +4028,7 @@ const Gs = (t, e) => {
4028
4028
  .icon {
4029
4029
  color: var(--md-sys-color-tertiary);
4030
4030
  /* fill icon */
4031
- font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 200, 'opsz' 20;
4031
+ font-variation-settings: 'FILL' 1;
4032
4032
  }
4033
4033
  }
4034
4034
  `, aa = ({ checked: t, onChange: e }) => /* @__PURE__ */ S(sa, { className: P({ checked: t }), children: [
@@ -4103,7 +4103,7 @@ const Gs = (t, e) => {
4103
4103
  --button-color-secondary: ${e};
4104
4104
  --button-text-color: ${to(t)};
4105
4105
  --border-color: ${t};
4106
- `, Gl = x.div`
4106
+ `, jl = x.div`
4107
4107
  /* VARS */
4108
4108
  --background-color: var(--md-sys-color-surface-container);
4109
4109
  --button-color: var(--md-sys-color-primary);
@@ -4201,7 +4201,7 @@ const Gs = (t, e) => {
4201
4201
  /* remove outline */
4202
4202
  outline: none;
4203
4203
  }
4204
- `, jl = x.div`
4204
+ `, Gl = x.div`
4205
4205
  padding: 4px 4px 0;
4206
4206
  `, Wl = x.span`
4207
4207
  width: 1px;
@@ -4573,7 +4573,7 @@ const ic = x.li`
4573
4573
  padding: 0;
4574
4574
  border-radius: var(--border-radius-l);
4575
4575
  }
4576
- `, jt = x.p`
4576
+ `, Gt = x.p`
4577
4577
  margin: 0;
4578
4578
 
4579
4579
  &:first-child {
@@ -4865,7 +4865,7 @@ const Wt = x.pre`
4865
4865
  if (typeof e == "string")
4866
4866
  e.split(`
4867
4867
  `).forEach((r, i) => {
4868
- n.push(/* @__PURE__ */ l(jt, { children: r }, i));
4868
+ n.push(/* @__PURE__ */ l(Gt, { children: r }, i));
4869
4869
  });
4870
4870
  else if (qn(e)) {
4871
4871
  const o = [];
@@ -4876,7 +4876,7 @@ const Wt = x.pre`
4876
4876
  ` ? (r++, o[r] = []) : o[r].push(a);
4877
4877
  }) : o[r].push(i);
4878
4878
  }), o.forEach((i, s) => {
4879
- n.push(/* @__PURE__ */ l(jt, { children: i }, s));
4879
+ n.push(/* @__PURE__ */ l(Gt, { children: i }, s));
4880
4880
  });
4881
4881
  }
4882
4882
  return /* @__PURE__ */ l("blockquote", { children: n });
@@ -4893,7 +4893,7 @@ const Wt = x.pre`
4893
4893
  transition: opacity 200ms;
4894
4894
 
4895
4895
  .icon {
4896
- font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 200, 'opsz' 24;
4896
+ font-variation-settings: 'FILL' 1;
4897
4897
  font-size: var(--icon-size);
4898
4898
  z-index: 20;
4899
4899
  position: relative;
@@ -4917,7 +4917,7 @@ export {
4917
4917
  ae as B,
4918
4918
  oa as C,
4919
4919
  ta as D,
4920
- jl as E,
4920
+ Gl as E,
4921
4921
  Yl as F,
4922
4922
  Ql as G,
4923
4923
  Zl as H,
@@ -4946,12 +4946,12 @@ export {
4946
4946
  pc as a2,
4947
4947
  mc as a3,
4948
4948
  bt as a4,
4949
- Il as b,
4949
+ Al as b,
4950
4950
  ra as c,
4951
4951
  Ul as d,
4952
4952
  Dl as e,
4953
4953
  z as f,
4954
- In as g,
4954
+ An as g,
4955
4955
  Kl as h,
4956
4956
  Fl as i,
4957
4957
  ia as j,
@@ -4964,8 +4964,8 @@ export {
4964
4964
  Br as q,
4965
4965
  oc as r,
4966
4966
  Hl as s,
4967
- G as t,
4968
- Gl as u,
4967
+ j as t,
4968
+ jl as u,
4969
4969
  ec as v,
4970
4970
  ma as w,
4971
4971
  ql as x,