@ynput/ayon-frontend-shared 0.9.0 → 0.10.0

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 (40) hide show
  1. package/dist/DetailsPanel.es.js +39 -39
  2. package/dist/ListTable.es.js +738 -651
  3. package/dist/NewEntity.es.js +2 -2
  4. package/dist/ProjectTreeTable.es.js +827 -827
  5. package/dist/Slicer.es.js +10 -10
  6. package/dist/Views.es.js +36 -34
  7. package/dist/chunks/ColumnDropIndicator.es.js +27 -21
  8. package/dist/chunks/EntityPickerDialog.es.js +19 -19
  9. package/dist/chunks/Feed.es.js +77 -77
  10. package/dist/chunks/FilmstripEntityCard.es.js +1 -1
  11. package/dist/chunks/MetaWidget.es.js +444 -439
  12. package/dist/chunks/ReviewablesSelector.es.js +1 -1
  13. package/dist/chunks/Slicer.es.js +32 -32
  14. package/dist/chunks/TableExportContextInstance.es.js +408 -469
  15. package/dist/chunks/Watchers.es.js +1 -1
  16. package/dist/chunks/getUris.es.js +1069 -1057
  17. package/dist/chunks/useLocalStorage.es.js +78 -0
  18. package/dist/components.es.js +50 -50
  19. package/dist/context.es.js +348 -337
  20. package/dist/hooks.es.js +218 -187
  21. package/dist/types/Actions.d.ts +17 -16
  22. package/dist/types/ContextMenu.d.ts +17 -16
  23. package/dist/types/DetailsPanel.d.ts +17 -16
  24. package/dist/types/EntityPickerDialog.d.ts +17 -16
  25. package/dist/types/Feed.d.ts +17 -16
  26. package/dist/types/ListTable.d.ts +27 -17
  27. package/dist/types/NewEntity.d.ts +17 -16
  28. package/dist/types/ProjectTreeTable.d.ts +18 -16
  29. package/dist/types/ProjectsTable.d.ts +17 -16
  30. package/dist/types/RepresentationsList.d.ts +17 -16
  31. package/dist/types/SimpleTable.d.ts +17 -16
  32. package/dist/types/Slicer.d.ts +17 -16
  33. package/dist/types/Views.d.ts +18 -17
  34. package/dist/types/api.d.ts +18 -17
  35. package/dist/types/components.d.ts +18 -17
  36. package/dist/types/context.d.ts +26 -17
  37. package/dist/types/hooks.d.ts +20 -17
  38. package/dist/types/index.d.ts +17 -16
  39. package/dist/types/util.d.ts +17 -16
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as c, jsxs as x, Fragment as Te } from "react/jsx-runtime";
2
- import nn, { useMemo as I, useState as L, useEffect as W, lazy as xo, Suspense as ko, useCallback as Ke, useRef as pe, forwardRef as ft, useId as Ao, Fragment as Fo } from "react";
2
+ import nn, { useMemo as I, useState as $, useEffect as W, lazy as xo, Suspense as ko, useCallback as Ke, useRef as pe, forwardRef as ft, useId as Ao, Fragment as Fo } from "react";
3
3
  import { v4 as xn } from "uuid";
4
4
  import ne, { clsx as kn } from "clsx";
5
5
  import An from "react-markdown";
@@ -10,8 +10,8 @@ import To from "remark-directive-rehype";
10
10
  import { toast as Ce } from "react-toastify";
11
11
  import { $createListItemNode as Do, $createListNode as No } from "@lexical/list";
12
12
  import { $getRoot as Io } from "lexical";
13
- import { Button as st, Dialog as So, getFileSizeString as Eo, Icon as se, theme as Tn, getTextColor as Lt, Dropdown as Mo, SaveButton as Po, UserImage as Dn, SEARCH_FILTER_ID as Nn, buildFilterId as on, getFilterFromId as _o, SearchFilter as Ro } from "@ynput/ayon-react-components";
14
- import { a8 as Lo, aa as In, ab as $o, P as Oo, ac as Vo, ad as an, ae as jo, af as Uo, ag as zo, J as Bo, ah as Go, ai as Ho, aj as qo, ak as Wo, al as Qo, am as Yo, an as Jo, ao as Ko, ap as Xo, aq as Zo, ar as ea, V as $t, a3 as Sn, a0 as ta, as as na, at as oa, au as aa, av as ra, aw as ia, ax as sa, ay as ca, az as rn, aA as la, b as da, c as ua, i as ma, aB as pa, _ as ga, e as ha, T as fa, S as ya, U as va } from "./FilmstripEntityCard.es.js";
13
+ import { Button as st, Dialog as So, getFileSizeString as Eo, Icon as se, theme as Tn, getTextColor as $t, Dropdown as Mo, SaveButton as Po, UserImage as Dn, SEARCH_FILTER_ID as Nn, buildFilterId as on, getFilterFromId as _o, SearchFilter as Ro } from "@ynput/ayon-react-components";
14
+ import { a8 as $o, aa as In, ab as Lo, P as Oo, ac as Vo, ad as an, ae as jo, af as Uo, ag as zo, J as Bo, ah as Go, ai as Ho, aj as qo, ak as Wo, al as Qo, am as Yo, an as Jo, ao as Ko, ap as Xo, aq as Zo, ar as ea, V as Lt, a3 as Sn, a0 as ta, as as na, at as oa, au as aa, av as ra, aw as ia, ax as sa, ay as ca, az as rn, aA as la, b as da, c as ua, i as ma, aB as pa, _ as ga, e as ha, T as fa, S as ya, U as va } from "./FilmstripEntityCard.es.js";
15
15
  import "@lexical/code";
16
16
  import "@lexical/rich-text";
17
17
  import "@lexical/selection";
@@ -25,12 +25,12 @@ import "./EmptyPlaceholderFlex.styled.es.js";
25
25
  import { a_ as wa, bs as sn } from "./searchTerms.es.js";
26
26
  import { bl as xa, bo as ka, aJ as Aa, dp as Fa, aW as Ca, aQ as Ta, b3 as Da, Q as Na, bG as Ia, bn as Sa, by as Ea, bs as Ma, bm as Pa, cF as _a, c2 as Ra } from "./getUris.es.js";
27
27
  import "primereact/confirmdialog";
28
- import { union as La, isEqual as $a } from "lodash";
29
- import { b as Oa, F as Va, u as $e, a as En, T as ja, C as Ua } from "./ThumbnailSimple.es.js";
28
+ import { union as $a, isEqual as La } from "lodash";
29
+ import { b as Oa, F as Va, u as Le, a as En, T as ja, C as Ua } from "./ThumbnailSimple.es.js";
30
30
  import "@module-federation/enhanced/runtime";
31
31
  import "@ynput/ayon-addon/host";
32
32
  import Vt from "axios";
33
- import { m as Be, s as za, a2 as yt, u as Ba } from "./TableExportContextInstance.es.js";
33
+ import { m as Be, o as za, $ as yt, u as Ba } from "./TableExportContextInstance.es.js";
34
34
  import "semver";
35
35
  import "./ContextMenuContextInstance.es.js";
36
36
  import "react-dom";
@@ -83,10 +83,10 @@ const lr = ({
83
83
  return console.log("loading next page..."), await b();
84
84
  }, f = I(() => {
85
85
  if (!g) return !1;
86
- const w = La(
86
+ const w = $a(
87
87
  M?.flatMap((A) => A.entityId ? A.entityId : [])
88
88
  );
89
- return !$a(w, i);
89
+ return !La(w, i);
90
90
  }, [M, i, g]);
91
91
  return l && (g = !0), {
92
92
  activitiesData: D,
@@ -103,10 +103,10 @@ const lr = ({
103
103
  ), r = I(
104
104
  () => a.filter((j) => j.members?.some((de) => de.name === t.userName)).map((j) => j.name),
105
105
  [a, t.userName]
106
- ), [s, i] = L({
106
+ ), [s, i] = $({
107
107
  operator: "and",
108
108
  conditions: []
109
- }), [l, m] = L(""), p = t.feedFilter ?? s, g = t.setFeedFilter ?? i, [u, h] = L(null), [b, y] = L(null), [D, { isLoading: M }] = Aa(), [C, { isLoading: f }] = Fa(), [w, { isLoading: A }] = Ca(), S = M || f || A, P = async (j) => await D(j).unwrap(), _ = async (j) => await C(j).unwrap(), E = async (j) => await w(j).unwrap(), [N] = Ta(), [G] = Da(), X = async (j) => await N(j).unwrap(), Q = async (j) => await G(j).unwrap(), Z = Na(p), Y = I(() => Oa(p), [p]), $ = lr({
109
+ }), [l, m] = $(""), p = t.feedFilter ?? s, g = t.setFeedFilter ?? i, [u, h] = $(null), [b, y] = $(null), [D, { isLoading: M }] = Aa(), [C, { isLoading: f }] = Fa(), [w, { isLoading: A }] = Ca(), S = M || f || A, P = async (j) => await D(j).unwrap(), _ = async (j) => await C(j).unwrap(), E = async (j) => await w(j).unwrap(), [N] = Ta(), [G] = Da(), X = async (j) => await N(j).unwrap(), Q = async (j) => await G(j).unwrap(), Z = Na(p), Y = I(() => Oa(p), [p]), L = lr({
110
110
  entities: t.entities,
111
111
  filter: p,
112
112
  backendFilter: Y,
@@ -136,7 +136,7 @@ const lr = ({
136
136
  {
137
137
  value: {
138
138
  ...t,
139
- ...$,
139
+ ...L,
140
140
  mentionSuggestionsData: oe,
141
141
  categories: ae,
142
142
  checklistCount: J,
@@ -422,7 +422,7 @@ const lr = ({
422
422
  background: none;
423
423
  opacity: 1;
424
424
  }
425
- `, hr = F(Lo)`
425
+ `, hr = F($o)`
426
426
  --icon-size: 32px;
427
427
  top: calc(50% - 10px);
428
428
  left: 50%;
@@ -571,7 +571,7 @@ const lr = ({
571
571
  overflow: auto !important;
572
572
  `, br = ({ file: e }) => {
573
573
  let t = ct(e.id, e.projectName);
574
- const [o, n] = L(""), [a, r] = L(null);
574
+ const [o, n] = $(""), [a, r] = $(null);
575
575
  return W(() => {
576
576
  (async () => {
577
577
  try {
@@ -589,7 +589,7 @@ const lr = ({
589
589
  a
590
590
  ] }) : e.mime?.includes("markdown") ? /* @__PURE__ */ c(An, { remarkPlugins: [Cn, Fn], children: o }) : /* @__PURE__ */ c(vr, { value: o, language: e.extension, readOnly: !0 });
591
591
  }, Pn = () => import("./VideoPlayer.es.js"), wr = xo(Pn), xr = ({ duration: e, width: t, height: o }) => Number.isFinite(e) && e > 0 && t > 0 && o > 0, kr = 1e4, Ar = (e) => e ? `code ${e.code}${e.message ? `: ${e.message}` : ""}` : "no MediaError", Fr = (e, t) => {
592
- const [o, n] = L({ status: "loading" });
592
+ const [o, n] = $({ status: "loading" });
593
593
  return W(() => {
594
594
  n({ status: "loading" });
595
595
  let a = !1, r = null, s;
@@ -752,18 +752,18 @@ const lr = ({
752
752
  className: b,
753
753
  ...y
754
754
  }) => {
755
- const D = i && i < 100, [M, C] = L(!1), [f, w] = L(!1), { feedAnnotationsEnabled: A } = Be(), { entities: S } = $e(), P = e.split("."), _ = P.pop() || "", E = P.join("."), N = vt(t || "." + _), G = t?.includes("image/") || !!n, Q = !!t?.includes("video/") && !n && o ? `${o}/thumbnail` : void 0, Z = /* @__PURE__ */ x(Te, { children: [
755
+ const D = i && i < 100, [M, C] = $(!1), [f, w] = $(!1), { feedAnnotationsEnabled: A } = Be(), { entities: S } = Le(), P = e.split("."), _ = P.pop() || "", E = P.join("."), N = vt(t || "." + _), G = t?.includes("image/") || !!n, Q = !!t?.includes("video/") && !n && o ? `${o}/thumbnail` : void 0, Z = /* @__PURE__ */ x(Te, { children: [
756
756
  /* @__PURE__ */ c("span", { className: "size", children: Eo(s) }),
757
757
  /* @__PURE__ */ c(se, { icon: "download", className: "download-icon" })
758
758
  ] }), Y = I(
759
759
  () => n ?? a,
760
760
  [n, a]
761
- ), $ = I(() => S.at(0), [S]), oe = I(() => {
761
+ ), L = I(() => S.at(0), [S]), oe = I(() => {
762
762
  if (!Y?.range)
763
763
  return [1, 1];
764
- const ae = r === void 0 ? $?.attrib?.frameStart : r;
764
+ const ae = r === void 0 ? L?.attrib?.frameStart : r;
765
765
  return Number.isFinite(ae) ? [ae - 1 + Y.range[0], ae - 1 + Y.range[1]] : Y.range;
766
- }, [Y, r, $]);
766
+ }, [Y, r, L]);
767
767
  return /* @__PURE__ */ x(
768
768
  ur,
769
769
  {
@@ -955,8 +955,8 @@ const lr = ({
955
955
  ).map((n) => ({
956
956
  ...n,
957
957
  unsavedAnnotation: n
958
- }))), Lr = ({ entityId: e, filesUploading: t }) => {
959
- const { editingId: o, setEditingId: n, annotations: a, removeAnnotation: r } = $e(), { onGoToFrame: s } = Be(), i = Rr(a || [], e, t);
958
+ }))), $r = ({ entityId: e, filesUploading: t }) => {
959
+ const { editingId: o, setEditingId: n, annotations: a, removeAnnotation: r } = Le(), { onGoToFrame: s } = Be(), i = Rr(a || [], e, t);
960
960
  return W(() => {
961
961
  i.length > 0 && !o && n(rt);
962
962
  }, [i]), {
@@ -975,8 +975,8 @@ const lr = ({
975
975
  primary: s,
976
976
  secondary: i
977
977
  };
978
- }, [e]), $r = ({ projectName: e, onSuccess: t, onProgress: o, onStart: n, onError: a }) => {
979
- const { exportAnnotationComposite: r } = $e(), s = async (l) => {
978
+ }, [e]), Lr = ({ projectName: e, onSuccess: t, onProgress: o, onStart: n, onError: a }) => {
979
+ const { exportAnnotationComposite: r } = Le(), s = async (l) => {
980
980
  const m = await r?.(l.id);
981
981
  if (!m)
982
982
  throw new Error(`Exporting composite image for annotation ${l.id} failed`);
@@ -1017,7 +1017,7 @@ const lr = ({
1017
1017
  return Ce.error("Upload failed: " + m.message), { files: [], metadata: [] };
1018
1018
  }
1019
1019
  };
1020
- }, Ln = "ayon-comment-draft/", $n = 720 * 60 * 60 * 1e3, Or = (e) => !e.text.trim() && !e.files.length && !e.uploadedAnnotations.length, On = (e) => {
1020
+ }, $n = "ayon-comment-draft/", Ln = 720 * 60 * 60 * 1e3, Or = (e) => !e.text.trim() && !e.files.length && !e.uploadedAnnotations.length, On = (e) => {
1021
1021
  try {
1022
1022
  const t = localStorage.getItem(e);
1023
1023
  return t ? JSON.parse(t) : null;
@@ -1034,13 +1034,13 @@ const lr = ({
1034
1034
  try {
1035
1035
  const e = Date.now();
1036
1036
  for (const t of Object.keys(localStorage)) {
1037
- if (!t.startsWith(Ln)) continue;
1037
+ if (!t.startsWith($n)) continue;
1038
1038
  const o = On(t);
1039
- (!o || e - o.savedAt > $n) && localStorage.removeItem(t);
1039
+ (!o || e - o.savedAt > Ln) && localStorage.removeItem(t);
1040
1040
  }
1041
1041
  } catch {
1042
1042
  }
1043
- }, Ur = (e, t, o) => e && t && o.length ? `${Ln}${e}/${t}/${[...o].sort().join(",")}` : null, zr = ({ draftKey: e, draft: t, paused: o, restore: n }) => {
1043
+ }, Ur = (e, t, o) => e && t && o.length ? `${$n}${e}/${t}/${[...o].sort().join(",")}` : null, zr = ({ draftKey: e, draft: t, paused: o, restore: n }) => {
1044
1044
  const a = pe(null), r = pe(!1);
1045
1045
  W(() => {
1046
1046
  if (!e || o) return;
@@ -1048,7 +1048,7 @@ const lr = ({
1048
1048
  if (a.current = e, s === e) return;
1049
1049
  s || jr();
1050
1050
  const i = On(e);
1051
- i && Date.now() - i.savedAt <= $n ? (r.current = !0, n({
1051
+ i && Date.now() - i.savedAt <= Ln ? (r.current = !0, n({
1052
1052
  text: i.text ?? "",
1053
1053
  files: i.files ?? [],
1054
1054
  uploadedAnnotations: i.uploadedAnnotations ?? [],
@@ -1128,7 +1128,7 @@ const lr = ({
1128
1128
  ...t && {
1129
1129
  backgroundColor: t,
1130
1130
  borderColor: t,
1131
- color: Lt(t)
1131
+ color: $t(t)
1132
1132
  }
1133
1133
  },
1134
1134
  children: e || Br
@@ -1170,7 +1170,7 @@ const lr = ({
1170
1170
  {
1171
1171
  ...m,
1172
1172
  className: ne(l, { selected: n }),
1173
- style: { backgroundColor: n && t ? t : "", color: Lt(n && t ? t : ""), ...i },
1173
+ style: { backgroundColor: n && t ? t : "", color: $t(n && t ? t : ""), ...i },
1174
1174
  ref: p,
1175
1175
  children: [
1176
1176
  a,
@@ -1302,7 +1302,7 @@ const lr = ({
1302
1302
 
1303
1303
  ${Tn.bodySmall}
1304
1304
  `, lt = ({ date: e, isExact: t, exactTooltip: o = !1, ...n }) => {
1305
- const [a, r] = L(!0), [s, i] = L(/* @__PURE__ */ new Date());
1305
+ const [a, r] = $(!0), [s, i] = $(/* @__PURE__ */ new Date());
1306
1306
  if (!e) return null;
1307
1307
  const l = new Date(e);
1308
1308
  if (!Xe(l)) return null;
@@ -1359,13 +1359,13 @@ const zn = (e) => {
1359
1359
  return "task_alt";
1360
1360
  }
1361
1361
  }, ai = ({ lastOwnVersionReview: e }) => {
1362
- const [t, o] = L(/* @__PURE__ */ new Date());
1362
+ const [t, o] = $(/* @__PURE__ */ new Date());
1363
1363
  W(() => {
1364
1364
  const r = setInterval(() => o(/* @__PURE__ */ new Date()), Un);
1365
1365
  return () => clearInterval(r);
1366
1366
  }, []);
1367
1367
  const n = I(() => e?.activityData?.feedback, [e]), a = I(() => e?.createdAt ? In(new Date(e?.createdAt)).toLowerCase() : "", [e?.createdAt, t]);
1368
- return /* @__PURE__ */ x($o, { className: kn(n), children: [
1368
+ return /* @__PURE__ */ x(Lo, { className: kn(n), children: [
1369
1369
  /* @__PURE__ */ c(se, { icon: Bn(n) }),
1370
1370
  "You last ",
1371
1371
  zn(n),
@@ -1388,7 +1388,7 @@ const zn = (e) => {
1388
1388
  responseType: "blob"
1389
1389
  }), s = new File([r], o, { type: n || r.type });
1390
1390
  return Ze(s, e, a);
1391
- }, hn = (e, t) => `/api/projects/${e}/files/${t}`, fn = (e, t) => !!e && $t(t).has(e), ii = [
1391
+ }, hn = (e, t) => `/api/projects/${e}/files/${t}`, fn = (e, t) => !!e && Lt(t).has(e), ii = [
1392
1392
  { trigger: "@", icon: "person", tooltip: "Mention user" },
1393
1393
  { trigger: "@@", icon: "layers", tooltip: "Mention version" },
1394
1394
  { trigger: "@@@", icon: "check_circle", tooltip: "Mention task" }
@@ -1423,55 +1423,55 @@ const zn = (e) => {
1423
1423
  isGuest: E,
1424
1424
  userName: N,
1425
1425
  editingId: G
1426
- } = $e(), { hasLicense: X, onPowerFeature: Q, user: Z, openSlideOut: Y, commentFrameLink: $ } = Be(), oe = Z?.data?.isAdmin, ae = za(), [, J] = En(), [j, de] = L(e || ""), [H, ee] = L(
1426
+ } = Le(), { hasLicense: X, onPowerFeature: Q, user: Z, openSlideOut: Y, commentFrameLink: L } = Be(), oe = Z?.data?.isAdmin, ae = za(), [, J] = En(), [j, de] = $(e || ""), [H, ee] = $(
1427
1427
  () => t.map(
1428
1428
  (d) => fn(d.id, e || "") ? { ...d, isInline: !0 } : d
1429
1429
  )
1430
- ), [Oe, De] = L(0), Ve = pe(/* @__PURE__ */ new Map()), [be, ge] = L([]), [Ge, ue] = L(!1), [xe, he] = L(!1), [Ne, Ie] = L([]), [et, Re] = L([]), { annotations: fe, removeAnnotation: He, goToAnnotation: qe } = Lr({
1430
+ ), [Oe, De] = $(0), Ve = pe(/* @__PURE__ */ new Map()), [be, ge] = $([]), [Ge, ue] = $(!1), [xe, he] = $(!1), [Ne, Ie] = $([]), [et, Re] = $([]), { annotations: fe, removeAnnotation: He, goToAnnotation: qe } = $r({
1431
1431
  entityId: w[0]?.id,
1432
1432
  filesUploading: be
1433
- }), re = w.length === 1 && w[0].entityType === "version" ? w[0] : void 0, tt = $?.draft && $.draft.entityId === re?.id ? $.draft : null, [je, We] = L(
1433
+ }), re = w.length === 1 && w[0].entityType === "version" ? w[0] : void 0, tt = L?.draft && L.draft.entityId === re?.id ? L.draft : null, [je, We] = $(
1434
1434
  () => u && Number.isSafeInteger(a?.startFrame) && a.startFrame > 0 ? {
1435
1435
  startFrame: a.startFrame,
1436
1436
  endFrame: Number.isSafeInteger(a.endFrame) && a.endFrame >= a.startFrame ? a.endFrame : a.startFrame
1437
1437
  } : null
1438
- ), Ee = (d) => We(d && { ...d, entityId: re?.id }), Ue = u || je?.entityId === re?.id ? je : null, [ke, Me] = L(!1), q = u ? Ue : Ue ?? tt, Pe = u ? !!re || !!Ue : !!$ && !!re, T = $?.formatFrame, R = T ?? ((d) => Gn(d, o)), U = (d) => T ? pn(d) : ri(pn(d), o), v = q ? q.endFrame > q.startFrame ? `${R(q.startFrame)}-${R(q.endFrame)}` : R(q.startFrame) : void 0, [K, we] = L(v ?? ""), Ae = pe(!1), Fe = pe(null), Le = (d) => {
1438
+ ), Ee = (d) => We(d && { ...d, entityId: re?.id }), Ue = u || je?.entityId === re?.id ? je : null, [ke, Me] = $(!1), q = u ? Ue : Ue ?? tt, Pe = u ? !!re || !!Ue : !!L && !!re, T = L?.formatFrame, R = T ?? ((d) => Gn(d, o)), U = (d) => T ? pn(d) : ri(pn(d), o), v = q ? q.endFrame > q.startFrame ? `${R(q.startFrame)}-${R(q.endFrame)}` : R(q.startFrame) : void 0, [K, we] = $(v ?? ""), Ae = pe(!1), Fe = pe(null), $e = (d) => {
1439
1439
  if (!re) return;
1440
1440
  const k = d ? { ...d, entityId: re.id } : null;
1441
1441
  if (!u) {
1442
- $?.setDraft(k);
1442
+ L?.setDraft(k);
1443
1443
  return;
1444
1444
  }
1445
- r && $?.setEditPreview({
1445
+ r && L?.setEditPreview({
1446
1446
  activityId: r,
1447
1447
  link: k
1448
1448
  });
1449
1449
  }, jt = (d) => {
1450
1450
  we(d);
1451
1451
  const k = U(d);
1452
- k && Le(k);
1452
+ k && $e(k);
1453
1453
  };
1454
1454
  W(() => {
1455
1455
  ke || we(v ?? "");
1456
1456
  }, [v, ke]), W(
1457
1457
  () => () => {
1458
- u && $?.setEditPreview(null);
1458
+ u && L?.setEditPreview(null);
1459
1459
  },
1460
- [u, $?.setEditPreview]
1460
+ [u, L?.setEditPreview]
1461
1461
  );
1462
1462
  const dt = () => {
1463
1463
  if (Ae.current) {
1464
- Ae.current = !1, we(v ?? ""), Le(Fe.current), Me(!1);
1464
+ Ae.current = !1, we(v ?? ""), $e(Fe.current), Me(!1);
1465
1465
  return;
1466
1466
  }
1467
1467
  const d = U(K);
1468
- d ? (Ee(d), Le(d)) : (we(v ?? ""), Le(Fe.current)), Me(!1);
1468
+ d ? (Ee(d), $e(d)) : (we(v ?? ""), $e(Fe.current)), Me(!1);
1469
1469
  }, Qe = () => {
1470
- Ee(null), u ? Le(null) : $?.unlink();
1470
+ Ee(null), u ? $e(null) : L?.unlink();
1471
1471
  }, Ye = () => {
1472
- !u && $ && re ? $.link(re.id) : (we(""), Me(!0));
1472
+ !u && L && re ? L.link(re.id) : (we(""), Me(!0));
1473
1473
  }, bt = () => q ? Qe() : Ye(), ut = I(() => {
1474
- if (!Pe || !u && !$ || !re) return;
1474
+ if (!Pe || !u && !L || !re) return;
1475
1475
  const d = ["frame", "time", "timecode", "link", "range"];
1476
1476
  return [
1477
1477
  q ? {
@@ -1489,7 +1489,7 @@ const zn = (e) => {
1489
1489
  run: Ye
1490
1490
  }
1491
1491
  ];
1492
- }, [Pe, u, $, re?.id, !!q, v]), [_e, mt] = L(n);
1492
+ }, [Pe, u, L, re?.id, !!q, v]), [_e, mt] = $(n);
1493
1493
  zr({
1494
1494
  draftKey: C && !u ? Ur(
1495
1495
  f,
@@ -1530,14 +1530,14 @@ const zn = (e) => {
1530
1530
  }, ro = ({ type: d, id: k, label: O }, V) => {
1531
1531
  const { x: z, y: ce, width: le } = V.getBoundingClientRect();
1532
1532
  J({ id: k, name: k, type: d, label: O, pos: { left: z + le / 2, top: ce } });
1533
- }, [io, wt] = L(!1);
1533
+ }, [io, wt] = $(!1);
1534
1534
  W(() => {
1535
1535
  y || wt(!1);
1536
1536
  }, [y]);
1537
1537
  const so = () => {
1538
1538
  y || h || (wt(!0), D && D());
1539
1539
  }, Yt = () => {
1540
- u && $?.setEditPreview(null), (!pt || u) && de(""), M && M(), Ht.current?.closest("#viewer-dialog")?.focus();
1540
+ u && L?.setEditPreview(null), (!pt || u) && de(""), M && M(), Ht.current?.closest("#viewer-dialog")?.focus();
1541
1541
  }, nt = ({ file: d, data: k }, O = !1) => {
1542
1542
  const V = ve(d.name), z = {
1543
1543
  id: k.id,
@@ -1612,8 +1612,8 @@ const zn = (e) => {
1612
1612
  d.preventDefault(), d.stopPropagation(), ue(!0);
1613
1613
  }, Kt = pe(null), po = async ({ activity: d }) => {
1614
1614
  const k = yt(d);
1615
- k && k.entityId === re?.id && (Ee({ startFrame: k.startFrame, endFrame: k.endFrame }), $?.setDraft(k));
1616
- const O = Sn(d.body || ""), V = d.files || [], z = $t(O), ce = w.length === 1 && w[0].id === (d.origin?.id ?? d.entityId), le = (B) => {
1615
+ k && k.entityId === re?.id && (Ee({ startFrame: k.startFrame, endFrame: k.endFrame }), L?.setDraft(k));
1616
+ const O = Sn(d.body || ""), V = d.files || [], z = Lt(O), ce = w.length === 1 && w[0].id === (d.origin?.id ?? d.entityId), le = (B) => {
1617
1617
  const me = d.origin ?? (d.entityId && d.entityType ? { id: d.entityId, type: d.entityType } : void 0), ie = `[Source](${ta(d.activityId, me)})`, te = [B.trim(), ie].filter(Boolean).join(`
1618
1618
 
1619
1619
  `);
@@ -1684,7 +1684,7 @@ ${te}` : te), Je.current?.focus();
1684
1684
  W(() => {
1685
1685
  !p || Kt.current === p.key || (Kt.current = p.key, wt(!0), g?.(), po(p));
1686
1686
  }, [p?.key]);
1687
- const go = $r({
1687
+ const go = Lr({
1688
1688
  projectName: f,
1689
1689
  onSuccess: nt,
1690
1690
  onProgress: ot,
@@ -1715,7 +1715,7 @@ ${te}` : te), Je.current?.focus();
1715
1715
  const me = j;
1716
1716
  de(""), ee([]);
1717
1717
  try {
1718
- await l(ce, ze, B), O.forEach((ie) => He?.(ie)), u && $?.setEditPreview(null), Ie([]), !u && q && $?.unlink(), u || Ee(null);
1718
+ await l(ce, ze, B), O.forEach((ie) => He?.(ie)), u && L?.setEditPreview(null), Ie([]), !u && q && L?.unlink(), u || Ee(null);
1719
1719
  } catch {
1720
1720
  de(me), ee(le), Ie(Ne);
1721
1721
  return;
@@ -2176,7 +2176,7 @@ ${te}` : te), Je.current?.focus();
2176
2176
  categorySecondary: n,
2177
2177
  categoryTertiary: a
2178
2178
  }) => {
2179
- const [r, s] = L(!1), i = e.filter((l) => l.isActive).map((l) => l.type);
2179
+ const [r, s] = $(!1), i = e.filter((l) => l.isActive).map((l) => l.type);
2180
2180
  return /* @__PURE__ */ x(
2181
2181
  mi,
2182
2182
  {
@@ -2345,7 +2345,7 @@ ${te}` : te), Je.current?.focus();
2345
2345
  const n = Si(e, t);
2346
2346
  return /* @__PURE__ */ x(Di, { children: [
2347
2347
  o,
2348
- /* @__PURE__ */ x(Ni, { $color: Lt(n.color), style: { backgroundColor: n.color }, children: [
2348
+ /* @__PURE__ */ x(Ni, { $color: $t(n.color), style: { backgroundColor: n.color }, children: [
2349
2349
  n.icon && /* @__PURE__ */ c(se, { icon: n.icon }),
2350
2350
  e
2351
2351
  ] })
@@ -2451,16 +2451,16 @@ const Tt = F.span`
2451
2451
  font-size: 12px;
2452
2452
  font-weight: 800;
2453
2453
  }
2454
- `, Li = "#c5c5c5";
2454
+ `, $i = "#c5c5c5";
2455
2455
  function Wn(e) {
2456
- const { categories: t } = $e(), { categoryData: o, categoryNotFound: n } = I(() => {
2456
+ const { categories: t } = Le(), { categoryData: o, categoryNotFound: n } = I(() => {
2457
2457
  let a = !1;
2458
2458
  if (e) {
2459
2459
  const r = t.find((s) => s.name === e);
2460
2460
  return r || (a = !0), {
2461
2461
  categoryData: r || {
2462
2462
  name: e,
2463
- color: Li
2463
+ color: $i
2464
2464
  },
2465
2465
  categoryNotFound: a
2466
2466
  };
@@ -2472,7 +2472,7 @@ function Wn(e) {
2472
2472
  }, [e, t]);
2473
2473
  return { categoryData: o, categoryNotFound: n };
2474
2474
  }
2475
- const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (e) => !e || !e.name ? Vi : e.name === $i && !e.label ? Oi : e.label ? e.label : e.name, Pt = "anonymous.guest", ji = ({ isGuest: e, activity: t }) => {
2475
+ const Li = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (e) => !e || !e.name ? Vi : e.name === Li && !e.label ? Oi : e.label ? e.label : e.name, Pt = "anonymous.guest", ji = ({ isGuest: e, activity: t }) => {
2476
2476
  const { authorName: o, authorFullName: n, createdAt: a, activityData: r } = t || {}, s = I(
2477
2477
  () => [
2478
2478
  Qn({ name: o, label: n }),
@@ -2669,12 +2669,12 @@ const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2669
2669
  setEditingId: w,
2670
2670
  isGuest: A,
2671
2671
  userTeamNames: S
2672
- } = $e(), P = pe(null), { toggleMenuOpen: _, menuOpen: E } = Ba(), { categoryData: N, categoryNotFound: G } = Wn(e?.activityData?.category), X = Rn(N?.color);
2672
+ } = Le(), P = pe(null), { toggleMenuOpen: _, menuOpen: E } = Ba(), { categoryData: N, categoryNotFound: G } = Wn(e?.activityData?.category), X = Rn(N?.color);
2673
2673
  let {
2674
2674
  body: Q,
2675
2675
  authorName: Z,
2676
2676
  authorFullName: Y,
2677
- createdAt: $,
2677
+ createdAt: L,
2678
2678
  referenceType: oe,
2679
2679
  entityId: ae,
2680
2680
  activityId: J,
@@ -2727,7 +2727,7 @@ const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2727
2727
  v.annotation && (be?.(v.annotation.range[0]), ge([J]));
2728
2728
  },
2729
2729
  [be]
2730
- ), ke = I(() => $t(Q), [Q]), Me = I(
2730
+ ), ke = I(() => Lt(Q), [Q]), Me = I(
2731
2731
  () => (H || []).filter((v) => !ke.has(v.id)),
2732
2732
  [H, ke]
2733
2733
  ), q = (v) => {
@@ -2757,7 +2757,7 @@ const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
2757
2757
  {
2758
2758
  name: Z,
2759
2759
  fullName: Y,
2760
- date: $,
2760
+ date: L,
2761
2761
  isRef: qe,
2762
2762
  activity: e,
2763
2763
  projectName: l,
@@ -3209,7 +3209,7 @@ const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3209
3209
  }) => {
3210
3210
  const { onOpenViewer: s } = Be();
3211
3211
  let { authorName: i, authorFullName: l, createdAt: m, versions: p = [] } = e;
3212
- const g = a === "versions" || a && typeof a == "object" && a.conditions?.some((C) => C.key === "versions" && C.value === !0), [u, h] = L(g), b = 2, [y, D] = L(!1), M = (C, f, w) => {
3212
+ const g = a === "versions" || a && typeof a == "object" && a.conditions?.some((C) => C.key === "versions" && C.value === !0), [u, h] = $(g), b = 2, [y, D] = $(!1), M = (C, f, w) => {
3213
3213
  const A = fa(C);
3214
3214
  s?.({
3215
3215
  versionIds: [f],
@@ -3278,7 +3278,7 @@ const $i = "anonymous.guest", Oi = "Anonymous User", Vi = "unknown.user", Qn = (
3278
3278
  ] })
3279
3279
  ] });
3280
3280
  }, ls = ({ activities: e, editProps: t, ...o }) => {
3281
- const [n, a] = L(!1);
3281
+ const [n, a] = $(!1);
3282
3282
  return /* @__PURE__ */ x(Te, { children: [
3283
3283
  /* @__PURE__ */ c(ss, { children: /* @__PURE__ */ x(Xn, { onClick: () => a(!n), children: [
3284
3284
  /* @__PURE__ */ c(se, { icon: n ? "expand_less" : "chevron_right" }),
@@ -3452,7 +3452,7 @@ const us = F.ul`
3452
3452
  userName: m,
3453
3453
  userFullName: p,
3454
3454
  activityTypes: g
3455
- } = $e(), u = o.map((C) => C.id), h = ({
3455
+ } = Le(), u = o.map((C) => C.id), h = ({
3456
3456
  entityId: C,
3457
3457
  newId: f,
3458
3458
  subTitle: w,
@@ -3975,7 +3975,7 @@ const us = F.ul`
3975
3975
  ), g = I(
3976
3976
  () => Is(e, l),
3977
3977
  [e, l]
3978
- ), [u, h] = L(g), b = sr(), y = pe(null);
3978
+ ), [u, h] = $(g), b = sr(), y = pe(null);
3979
3979
  W(() => {
3980
3980
  h(g);
3981
3981
  }, [JSON.stringify(g)]), W(() => {
@@ -4082,7 +4082,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4082
4082
  { skip: !e || !r.length }
4083
4083
  );
4084
4084
  return I(() => ({ ...s, ...a }), [s, a]);
4085
- }, Rc = 30, Lc = ({
4085
+ }, Rc = 30, $c = ({
4086
4086
  disabled: e,
4087
4087
  readOnly: t,
4088
4088
  statuses: o = [],
@@ -4112,13 +4112,13 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4112
4112
  isGuest: _,
4113
4113
  searchText: E,
4114
4114
  setSearchText: N
4115
- } = $e(), {
4115
+ } = Le(), {
4116
4116
  openSlideOut: G,
4117
4117
  highlightedActivities: X,
4118
4118
  setHighlightedActivities: Q,
4119
4119
  onOpenImage: Z,
4120
4120
  setFeedAnnotations: Y,
4121
- setFeedFrameLinks: $,
4121
+ setFeedFrameLinks: L,
4122
4122
  user: oe
4123
4123
  } = Be(), ae = S.conditions?.some(
4124
4124
  (T) => "key" in T && T.key === "versions" && T.value === !0
@@ -4144,7 +4144,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4144
4144
  const U = yt(R);
4145
4145
  return U && { ...U, activityId: R.activityId };
4146
4146
  }).filter((R) => !!R);
4147
- $(T);
4147
+ L(T);
4148
4148
  }, [b]);
4149
4149
  const Ge = _s({
4150
4150
  projectName: i,
@@ -4208,15 +4208,15 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4208
4208
  const v = U.checked, K = v ? "[ ]" : "[x]", we = v ? "[x]" : "[ ]", { body: Ae } = R, Fe = Array.from(
4209
4209
  U.closest(".comment-body")?.querySelectorAll(".task-list-item") || []
4210
4210
  ).findIndex((_e) => _e === U.closest("li"));
4211
- let Le = Fe;
4211
+ let $e = Fe;
4212
4212
  (Ae.match(/\[.\]/g) || []).forEach((_e, mt) => {
4213
- _e !== K && mt < Fe && Le--;
4213
+ _e !== K && mt < Fe && $e--;
4214
4214
  });
4215
4215
  const dt = [];
4216
4216
  let Qe = -1;
4217
4217
  for (; (Qe = Ae.indexOf(K, Qe + 1)) > -1; )
4218
4218
  dt.push(Qe);
4219
- const Ye = dt[Le];
4219
+ const Ye = dt[$e];
4220
4220
  if (Ye === void 0) return;
4221
4221
  const bt = Ye + K.length, ut = Ae.slice(0, Ye) + we + Ae.slice(bt);
4222
4222
  ut && Ie(R, ut, R.files);
@@ -4232,7 +4232,7 @@ const Ps = (e) => !!e.activityData?.annotations?.length || !!yt(e), _s = ({ proj
4232
4232
  files: v.files.filter((K) => vt(K.mime, K.ext))
4233
4233
  })).filter((v) => v.files.length > 0);
4234
4234
  Z?.({ files: U, activityId: R, index: T, projectName: i });
4235
- }, [We, Ee] = L(null), Ue = !be && !t && !e, ke = Ke(
4235
+ }, [We, Ee] = $(null), Ue = !be && !t && !e, ke = Ke(
4236
4236
  (T) => {
4237
4237
  Ee({ key: xn(), activity: T }), u(rt);
4238
4238
  },
@@ -4347,7 +4347,7 @@ export {
4347
4347
  _c as S,
4348
4348
  qr as a,
4349
4349
  it as b,
4350
- Lc as c,
4350
+ $c as c,
4351
4351
  Mc as d,
4352
4352
  Tr as e,
4353
4353
  Rc as f,
@@ -64,7 +64,7 @@ import { createPortal as ue } from "react-dom";
64
64
  import { bk as vr } from "./getUris.es.js";
65
65
  import "@module-federation/enhanced/runtime";
66
66
  import "@ynput/ayon-addon/host";
67
- import { c as yr, H as xr } from "./TableExportContextInstance.es.js";
67
+ import { c as yr, B as xr } from "./TableExportContextInstance.es.js";
68
68
  import "semver";
69
69
  import "./ContextMenuContextInstance.es.js";
70
70
  import "react-router-dom";