@ynput/ayon-frontend-shared 0.6.6 → 0.6.8

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 (53) hide show
  1. package/dist/DetailsPanel.es.js +4 -4
  2. package/dist/ListTable.es.js +2 -2
  3. package/dist/NewEntity.es.js +49 -49
  4. package/dist/ProjectTreeTable.es.js +501 -496
  5. package/dist/Slicer.es.js +27 -27
  6. package/dist/Views.es.js +213 -206
  7. package/dist/api.es.js +362 -360
  8. package/dist/chunks/Actions.es.js +21 -21
  9. package/dist/chunks/CodeEditor.es.js +30 -0
  10. package/dist/chunks/ColumnDropIndicator.es.js +5 -5
  11. package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  13. package/dist/chunks/DeleteEntitiesContextInstance.es.js +96 -96
  14. package/dist/chunks/EmptyPlaceholder.es.js +9 -9
  15. package/dist/chunks/EntityPath.es.js +3 -3
  16. package/dist/chunks/EntityTooltip.es.js +1 -1
  17. package/dist/chunks/EntityUpdatesContext.es.js +1 -1
  18. package/dist/chunks/Feed.es.js +1625 -1573
  19. package/dist/chunks/JsonViewer.es.js +1 -1
  20. package/dist/chunks/Menu.es.js +1 -1
  21. package/dist/chunks/MenuItem.es.js +25 -25
  22. package/dist/chunks/MetaWidget.es.js +1537 -1516
  23. package/dist/chunks/PlayableIcon.es.js +128 -128
  24. package/dist/chunks/ProjectContext.es.js +11 -11
  25. package/dist/chunks/ReviewablesSelector.es.js +553 -462
  26. package/dist/chunks/SimpleForm.es.js +7 -7
  27. package/dist/chunks/SimpleTable.es.js +110 -110
  28. package/dist/chunks/Slicer.es.js +80 -80
  29. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  30. package/dist/chunks/ThumbnailSimple.es.js +17 -17
  31. package/dist/chunks/VideoPlayer.es.js +1 -1
  32. package/dist/chunks/Watchers.es.js +50 -50
  33. package/dist/chunks/afterStartup.es.js +13 -0
  34. package/dist/chunks/getBundleMode.es.js +1 -1
  35. package/dist/chunks/getUris.es.js +797 -827
  36. package/dist/chunks/searchTerms.es.js +353 -336
  37. package/dist/chunks/useAttributeEnums.es.js +16 -16
  38. package/dist/chunks/useHierarchySelection.es.js +2 -2
  39. package/dist/chunks/useLoadModule.es.js +24 -23
  40. package/dist/chunks/viewUpdateHelper.es.js +8 -8
  41. package/dist/components.es.js +205 -202
  42. package/dist/context.es.js +525 -496
  43. package/dist/hooks.es.js +190 -166
  44. package/dist/types/ContextMenu.d.ts +1 -0
  45. package/dist/types/ProjectTreeTable.d.ts +1 -0
  46. package/dist/types/Views.d.ts +11 -0
  47. package/dist/types/api.d.ts +823 -1427
  48. package/dist/types/components.d.ts +9 -1
  49. package/dist/types/context.d.ts +1 -0
  50. package/dist/types/hooks.d.ts +25 -1
  51. package/dist/types/util.d.ts +10 -0
  52. package/dist/util.es.js +45 -42
  53. package/package.json +2 -2
@@ -1,18 +1,18 @@
1
1
  import { jsx as E, jsxs as G, Fragment as $e } from "react/jsx-runtime";
2
2
  import { useState as U, useCallback as A, useMemo as O, useContext as Ye, useEffect as se, forwardRef as Je, useRef as ye, useId as Xe, useImperativeHandle as Ze, useLayoutEffect as Te } from "react";
3
3
  import { Splitter as et, SplitterPanel as tt } from "primereact/splitter";
4
- import H from "styled-components";
4
+ import V from "styled-components";
5
5
  import { h as nt, P as st, d as Ie, U as ze } from "./MetaWidget.es.js";
6
6
  import "@module-federation/enhanced/runtime";
7
- import { bi as Re, br as ot, bj as Ue, bp as at, bu as it } from "./searchTerms.es.js";
8
- import { dn as He, cH as rt, bU as lt, bz as ct } from "./getUris.es.js";
7
+ import { toast as ke } from "react-toastify";
8
+ import { InputText as ot, Button as at, Icon as it } from "@ynput/ayon-react-components";
9
+ import { bj as Re, bs as rt, bk as Ue, bq as lt, bv as ct } from "./searchTerms.es.js";
10
+ import { dp as Ve, cI as dt, bU as ut, bz as pt } from "./getUris.es.js";
9
11
  import "primereact/confirmdialog";
10
- import { q as Ve, y as Ce, x as ue, d as dt, a as we, v as ut, a5 as pt, a4 as ft, u as mt, ac as ht } from "./DeleteEntitiesContextInstance.es.js";
12
+ import { p as He, y as Ce, x as ue, d as ft, a as we, o as mt, a5 as ht, a4 as gt, u as yt, ac as bt } from "./DeleteEntitiesContextInstance.es.js";
11
13
  import "lodash";
12
- import { toast as ke } from "react-toastify";
13
14
  import "uuid";
14
15
  import "semver";
15
- import { InputText as gt, Button as yt, Icon as bt } from "@ynput/ayon-react-components";
16
16
  import "./ContextMenuContextInstance.es.js";
17
17
  import W from "clsx";
18
18
  import "react-dom";
@@ -35,9 +35,9 @@ import { b as he, H as vt, a as xt, e as It, S as Ct } from "./SimpleTable.es.js
35
35
  import { g as ge } from "./getEntityTypeIcon.es.js";
36
36
  import { g as wt } from "./iconUtils.es.js";
37
37
  import { u as Lt, a as Et } from "./useAttributeEnums.es.js";
38
- import { b as Dt, s as Rt } from "./buildHierarchicalTableRows.es.js";
38
+ import { b as Dt, s as kt } from "./buildHierarchicalTableRows.es.js";
39
39
  import { n as me } from "./entityDefinitions.es.js";
40
- import { a as kt, K as Pt } from "./platform.es.js";
40
+ import { a as Rt, K as Pt } from "./platform.es.js";
41
41
  import { u as Mt } from "./NewEntityContextInstance.es.js";
42
42
  import { u as _t } from "./VersionUploadContextInstance.es.js";
43
43
  import { F as Pe } from "./EntityUpdatesContext.es.js";
@@ -85,7 +85,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
85
85
  minSize: 2,
86
86
  size: 12
87
87
  }, rs = () => {
88
- const [e, t] = Ve($t, [
88
+ const [e, t] = He($t, [
89
89
  Me.size,
90
90
  100 - Me.size
91
91
  ]);
@@ -93,7 +93,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
93
93
  t(r.sizes);
94
94
  }];
95
95
  }, zt = (e, t, a = [], r = 0) => {
96
- const [u, l] = Ve(
96
+ const [u, l] = He(
97
97
  `slicer-panel-heights-${e}`,
98
98
  {}
99
99
  ), [m, b] = U(0), f = Array.isArray(u) ? {} : u, {
@@ -127,7 +127,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
127
127
  onClose: a,
128
128
  onMoveComplete: r
129
129
  }) => {
130
- const [u] = He(), l = nt(), { folders: m } = Ce(), b = l?.tableData || [], f = A(
130
+ const [u] = Ve(), l = nt(), { folders: m } = Ce(), b = l?.tableData || [], f = A(
131
131
  (g) => l?.getEntityById(g) || m.find((i) => i.id === g),
132
132
  [m, l]
133
133
  ), p = A(
@@ -247,7 +247,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
247
247
  getDisabledMessage: d,
248
248
  canMoveToRoot: S
249
249
  };
250
- }, Ht = ({
250
+ }, Vt = ({
251
251
  projectName: e,
252
252
  movingEntities: t,
253
253
  onClose: a,
@@ -274,8 +274,8 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
274
274
  getDisabledMessage: b
275
275
  }
276
276
  ) : null;
277
- }, Vt = ({ projectName: e, useExtraSlices: t }) => {
278
- const [a, { isLoading: r, isFetching: u }] = rt(), { formatAssignees: l } = t();
277
+ }, Ht = ({ projectName: e, useExtraSlices: t }) => {
278
+ const [a, { isLoading: r, isFetching: u }] = dt(), { formatAssignees: l } = t();
279
279
  return {
280
280
  getData: async () => {
281
281
  const b = await a({ projectName: e || "" }, !0).unwrap();
@@ -286,15 +286,15 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
286
286
  }, Bt = ({ scopes: e, useExtraSlices: t }) => {
287
287
  const { isLoading: a, productTypes: r, ...u } = ue(), { formatStatuses: l, formatTaskTypes: m, formatProductTypes: b, formatTypes: f, formatAttribute: p } = t();
288
288
  return { project: u, getStatuses: async () => l(u, e), getTypes: async () => f(u), getTaskTypes: async () => m(u), getProductTypes: async () => b(r), getAttribute: async (i) => p ? p(i).map(
289
- (c) => ot(c.icon ?? void 0) ? { ...c, icon: void 0, img: c.icon, imgShape: "circle" } : c
289
+ (c) => rt(c.icon ?? void 0) ? { ...c, icon: void 0, img: c.icon, imgShape: "circle" } : c
290
290
  ) : void 0, isLoading: a };
291
291
  }, Gt = ({ entityTypes: e, request: t }) => {
292
292
  const {
293
293
  attributes: a,
294
294
  isLoading: { siteInfo: r }
295
- } = dt(), u = Ye(st), l = u?.attribFields?.length ? u.attribFields : a, { projectName: m } = ue();
295
+ } = ft(), u = Ye(st), l = u?.attribFields?.length ? u.attribFields : a, { projectName: m } = ue();
296
296
  return { attributes: Lt(l, { projectName: m, request: t ?? [] }).filter((p) => Ue(p.data)).filter((p) => e.some((h) => p.scope?.includes(h))).map(
297
- (p) => p.data.enum?.some((h) => h.hidden) ? { ...p, data: { ...p.data, enum: at(p.data.enum) } } : p
297
+ (p) => p.data.enum?.some((h) => h.hidden) ? { ...p, data: { ...p.data, enum: lt(p.data.enum) } } : p
298
298
  ), isLoading: r };
299
299
  }, Kt = "snippet_folder", de = "folder", Wt = (e) => `${de}-${e}`, _e = (e) => e.entityListType === "review-session" ? "subscriptions" : ge(e.entityType), ve = (e) => [...e].sort((t, a) => {
300
300
  if (t.active && !a.active) return -1;
@@ -306,13 +306,13 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
306
306
  data: r,
307
307
  isLoading: u,
308
308
  isFetching: l
309
- } = lt(
309
+ } = ut(
310
310
  { projectName: t || "" },
311
311
  {
312
312
  initialPageParam: { cursor: "" },
313
313
  skip: !t || !e
314
314
  }
315
- ), { data: m = [], isLoading: b } = ct(
315
+ ), { data: m = [], isLoading: b } = pt(
316
316
  { projectName: t || "" },
317
317
  { skip: !t || !a || !e }
318
318
  ), f = O(() => {
@@ -368,7 +368,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
368
368
  listId: n.id
369
369
  }
370
370
  }), c = (n) => n.sort((x, T) => {
371
- const v = m.findIndex((V) => V.id === x.id), D = m.findIndex((V) => V.id === T.id);
371
+ const v = m.findIndex((H) => H.id === x.id), D = m.findIndex((H) => H.id === T.id);
372
372
  return v === -1 && D === -1 ? x.folder.label.localeCompare(T.folder.label) : v === -1 ? 1 : D === -1 ? -1 : v - D;
373
373
  }), s = (n) => {
374
374
  const x = n.items.map((T) => T.id);
@@ -507,7 +507,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
507
507
  onSliceTypeChange: p,
508
508
  useExtraSlices: h,
509
509
  isLoadingExtraSlices: w
510
- } = Ie(), d = m ?? f, S = b ?? p, { projectName: g } = ue(), { formatAttribute: i } = h(), c = e.filter((C) => Ae.some((k) => k.value === C.value)).map((C) => ({
510
+ } = Ie(), d = m ?? f, S = b ?? p, { projectName: g } = ue(), { formatAttribute: i } = h(), c = e.filter((C) => Ae.some((R) => R.value === C.value)).map((C) => ({
511
511
  ...Ae.find((_) => _.value === C.value),
512
512
  ...C
513
513
  })), s = e.some((C) => C.value === "attributes"), o = d?.startsWith("attrib.") ? d.slice(7) : void 0, y = O(
@@ -524,7 +524,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
524
524
  icon: wt(C.name, C.data.type, Ue(C.data))
525
525
  })
526
526
  );
527
- const [T, v] = U(!1), V = !!n.find((C) => C.name === o)?.enumIsLoading, {
527
+ const [T, v] = U(!1), H = !!n.find((C) => C.name === o)?.enumIsLoading, {
528
528
  project: oe,
529
529
  getStatuses: ae,
530
530
  getTypes: q,
@@ -540,14 +540,14 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
540
540
  projectName: g || "",
541
541
  folderTypes: oe?.folderTypes || [],
542
542
  includeColors: !0
543
- }), { getData: I, isLoading: R } = Vt({
543
+ }), { getData: I, isLoading: k } = Ht({
544
544
  projectName: g,
545
545
  useExtraSlices: h
546
546
  }), {
547
547
  getData: P,
548
548
  isLoading: K,
549
549
  isExpandable: re
550
- } = qt(d === "entityList"), F = Y || B || R || w && d !== "hierarchy" || K && d === "entityList" || x || V, N = {
550
+ } = qt(d === "entityList"), F = Y || B || k || w && d !== "hierarchy" || K && d === "entityList" || x || H, N = {
551
551
  hierarchy: {
552
552
  getData: Q,
553
553
  isLoading: Y,
@@ -555,14 +555,14 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
555
555
  },
556
556
  assignees: {
557
557
  getData: I,
558
- isLoading: R,
558
+ isLoading: k,
559
559
  isExpandable: !1,
560
560
  noValue: !0,
561
561
  hasValue: !0
562
562
  },
563
563
  author: {
564
564
  getData: I,
565
- isLoading: R,
565
+ isLoading: k,
566
566
  isExpandable: !1
567
567
  },
568
568
  status: {
@@ -604,13 +604,13 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
604
604
  se(() => {
605
605
  F || $ || !ne || S(ne, !1);
606
606
  }, [F, $, ne]);
607
- const z = (C, k) => {
607
+ const z = (C, R) => {
608
608
  const _ = N[C];
609
609
  if (!_) {
610
610
  console.warn(`Slice type ${C} not found`);
611
611
  return;
612
612
  }
613
- (_.isAttribute && s || e.some((ce) => ce.value === C)) && S(C, k);
613
+ (_.isAttribute && s || e.some((ce) => ce.value === C)) && S(C, R);
614
614
  };
615
615
  se(() => {
616
616
  if (F) return;
@@ -618,17 +618,17 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
618
618
  try {
619
619
  if (!$) return;
620
620
  v(!0);
621
- const k = await $.getData();
622
- if (k === void 0)
621
+ const R = await $.getData();
622
+ if (R === void 0)
623
623
  throw window.alert(
624
624
  "Slice options failed to load. This likely means the PowerFeatures addon is out of date. Please update to the latest version."
625
625
  ), S(ne ?? "hierarchy", !1), new Error("Slice data is undefined");
626
- $.hasValue && k.unshift(Jt(d)), $.noValue && k.unshift(Yt(d)), fe({
627
- data: k,
626
+ $.hasValue && R.unshift(Jt(d)), $.noValue && R.unshift(Yt(d)), fe({
627
+ data: R,
628
628
  isExpandable: $.isExpandable
629
629
  });
630
- } catch (k) {
631
- console.error("Error fetching slice data:", k), fe(pe);
630
+ } catch (R) {
631
+ console.error("Error fetching slice data:", R), fe(pe);
632
632
  } finally {
633
633
  v(!1);
634
634
  }
@@ -638,12 +638,12 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
638
638
  () => Ke(le.data, r, u, l),
639
639
  [le.data, r, u, l]
640
640
  ), Le = O(() => {
641
- const C = /* @__PURE__ */ new Map(), k = [...j];
642
- for (; k.length > 0; ) {
643
- const _ = k.shift();
641
+ const C = /* @__PURE__ */ new Map(), R = [...j];
642
+ for (; R.length > 0; ) {
643
+ const _ = R.shift();
644
644
  if (_ && (C.set(_.id, _), _.subRows && _.subRows.length > 0))
645
645
  for (const ce of _.subRows)
646
- k.push(ce);
646
+ R.push(ce);
647
647
  }
648
648
  return C;
649
649
  }, [j]);
@@ -672,7 +672,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
672
672
  filled: d,
673
673
  complete: !m && h
674
674
  };
675
- }, tn = H.div`
675
+ }, tn = V.div`
676
676
  display: flex;
677
677
  align-items: center;
678
678
 
@@ -680,7 +680,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
680
680
  flex: 1;
681
681
  min-width: 0;
682
682
  }
683
- `, nn = H(gt)`
683
+ `, nn = V(ot)`
684
684
  flex: 1;
685
685
  min-width: 0;
686
686
  height: 28px;
@@ -689,7 +689,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
689
689
  const u = () => r(e ? void 0 : ""), l = (b) => {
690
690
  b.key === "Escape" && r(void 0);
691
691
  }, m = (b) => {
692
- const f = it(b.clipboardData.getData("text"));
692
+ const f = ct(b.clipboardData.getData("text"));
693
693
  if (f === null) return;
694
694
  b.preventDefault();
695
695
  const p = b.currentTarget, h = p.selectionStart ?? t.length, w = p.selectionEnd ?? t.length, d = h + f.length;
@@ -720,7 +720,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
720
720
  }, xe = (e, t) => {
721
721
  e.toggleExpanded(t), e.subRows?.forEach((a) => xe(a, t));
722
722
  }, Oe = (e) => e.map((t) => t.id).filter(Boolean), on = (e, t, a, r) => {
723
- const { onOpenNew: u } = Mt(), { projectName: l } = ue(), { setEntities: m } = ut(), b = _t(), [f] = He(), { deleteEntities: p } = pt(), [h, w] = U(null), d = A(
723
+ const { onOpenNew: u } = Mt(), { projectName: l } = ue(), { setEntities: m } = mt(), b = _t(), [f] = Ve(), { deleteEntities: p } = ht(), [h, w] = U(null), d = A(
724
724
  (c, s) => s.map((o) => t?.get(o) || (o === c.id ? c : void 0)).filter((o) => !!o),
725
725
  [t]
726
726
  ), S = O(
@@ -799,7 +799,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
799
799
  (c, { row: s, selectedRows: o }) => ({
800
800
  label: "Show details",
801
801
  icon: "dock_to_left",
802
- shortcut: kt("click", [Pt.Alt]),
802
+ shortcut: Rt("click", [Pt.Alt]),
803
803
  command: () => S.onShowDetails(s.original, o)
804
804
  }),
805
805
  (c, { row: s }) => ({
@@ -879,7 +879,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
879
879
  onSubmitRename: g,
880
880
  onCancelRename: () => w(null)
881
881
  };
882
- }, an = H(yt)`
882
+ }, an = V(at)`
883
883
  /* put above the menu so it's still clickable */
884
884
  /* NOTE: this will need fixing as this also puts it above dialogs */
885
885
  /* z-index: 1001; */
@@ -910,7 +910,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
910
910
  }
911
911
  }
912
912
  `;
913
- H.div`
913
+ V.div`
914
914
  display: flex;
915
915
  flex-direction: column;
916
916
  gap: var(--base-gap-large);
@@ -951,7 +951,7 @@ const rn = (e, t, a) => {
951
951
  ).join(", ")} since last sync`;
952
952
  }, cn = Je(
953
953
  ({ projectNames: e, topics: t, onSync: a, shouldSyncOnUpdate: r, hideWhenNoUpdates: u = !1, ...l }, m) => {
954
- const [b, f] = U(!1), [p, h] = ft(), { setMenuOpen: w } = mt(), d = ye(null), S = ye(), g = Xe();
954
+ const [b, f] = U(!1), [p, h] = gt(), { setMenuOpen: w } = yt(), d = ye(null), S = ye(), g = Xe();
955
955
  se(() => () => {
956
956
  const v = S.current;
957
957
  S.current = void 0, v !== void 0 && clearTimeout(v);
@@ -963,7 +963,7 @@ const rn = (e, t, a) => {
963
963
  } finally {
964
964
  f(!1);
965
965
  }
966
- }, { updates: c, hasUpdates: s } = ht({
966
+ }, { updates: c, hasUpdates: s } = bt({
967
967
  projectNames: e,
968
968
  topics: t,
969
969
  isSyncing: b,
@@ -971,7 +971,7 @@ const rn = (e, t, a) => {
971
971
  });
972
972
  if (se(() => {
973
973
  const v = (D) => {
974
- D.repeat || !D.shiftKey || D.ctrlKey || D.metaKey || D.key.toLowerCase() !== "r" || Rt(D) || (D.preventDefault(), D.stopPropagation(), i());
974
+ D.repeat || !D.shiftKey || D.ctrlKey || D.metaKey || D.key.toLowerCase() !== "r" || kt(D) || (D.preventDefault(), D.stopPropagation(), i());
975
975
  };
976
976
  return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
977
977
  }, [i]), u && !s) return null;
@@ -1007,7 +1007,7 @@ const rn = (e, t, a) => {
1007
1007
  !Pe
1008
1008
  ] });
1009
1009
  }
1010
- ), Ne = H.div`
1010
+ ), Ne = V.div`
1011
1011
  display: flex;
1012
1012
  align-items: center;
1013
1013
  gap: var(--base-gap-small);
@@ -1015,7 +1015,7 @@ const rn = (e, t, a) => {
1015
1015
  flex: 1;
1016
1016
  min-width: 0;
1017
1017
  color: var(--md-sys-color-outline);
1018
- `, dn = H.span`
1018
+ `, dn = V.span`
1019
1019
  display: flex;
1020
1020
  align-items: center;
1021
1021
  gap: 2px;
@@ -1061,7 +1061,7 @@ const rn = (e, t, a) => {
1061
1061
  title: i.label || i.name,
1062
1062
  "aria-label": i.label || i.name,
1063
1063
  children: [
1064
- i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(bt, { icon: i.icon, style: { color: i.iconColor } })),
1064
+ i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(it, { icon: i.icon, style: { color: i.iconColor } })),
1065
1065
  !(p && m(i)) && /* @__PURE__ */ E("span", { children: i.label || i.name })
1066
1066
  ]
1067
1067
  },
@@ -1072,12 +1072,12 @@ const rn = (e, t, a) => {
1072
1072
  g
1073
1073
  ] })
1074
1074
  ] });
1075
- }, pn = H.div`
1075
+ }, pn = V.div`
1076
1076
  height: 28px;
1077
1077
  border-radius: 4px;
1078
1078
  background: var(--md-sys-color-surface-container);
1079
1079
  width: 100px;
1080
- `, fn = H.div`
1080
+ `, fn = V.div`
1081
1081
  display: flex;
1082
1082
  align-items: center;
1083
1083
  gap: var(--base-gap-small);
@@ -1089,7 +1089,7 @@ const rn = (e, t, a) => {
1089
1089
  flex: 1;
1090
1090
  min-width: 0;
1091
1091
  }
1092
- `, mn = H(vt)`
1092
+ `, mn = V(vt)`
1093
1093
  .slicer-dropdown {
1094
1094
  flex: 0 1 auto;
1095
1095
  min-width: 48px;
@@ -1110,7 +1110,7 @@ const rn = (e, t, a) => {
1110
1110
  .power-feature .icon {
1111
1111
  color: var(--md-sys-color-tertiary);
1112
1112
  }
1113
- `, hn = H.div`
1113
+ `, hn = V.div`
1114
1114
  display: flex;
1115
1115
  align-items: center;
1116
1116
  gap: var(--base-gap-small);
@@ -1151,7 +1151,7 @@ const rn = (e, t, a) => {
1151
1151
  setPanelExpanded: T,
1152
1152
  onSliceTypeChange: v,
1153
1153
  isViewSyncPending: D,
1154
- onOpenViewer: V,
1154
+ onOpenViewer: H,
1155
1155
  onAddToList: oe
1156
1156
  } = Ie(), { refetch: ae } = Ce(), { powerLicense: q, setPowerpackDialog: ie } = we(), Z = y(e.id), ee = x(e.id), B = (L) => {
1157
1157
  n(e.id, L);
@@ -1166,7 +1166,7 @@ const rn = (e, t, a) => {
1166
1166
  if (typeof l != "function") return L;
1167
1167
  const M = (X) => JSON.stringify([X?.entity, X?.args]), Qe = M(Q);
1168
1168
  return L.filter((X) => X === e.sliceType || M(l(X)) === Qe);
1169
- }, [l, Q, t, e.sliceType]), { counts: I, filled: R, complete: P } = en(
1169
+ }, [l, Q, t, e.sliceType]), { counts: I, filled: k, complete: P } = en(
1170
1170
  Q,
1171
1171
  e.sliceType,
1172
1172
  Y
@@ -1190,14 +1190,14 @@ const rn = (e, t, a) => {
1190
1190
  usedSliceTypes: re,
1191
1191
  entityTypes: r,
1192
1192
  counts: I,
1193
- filled: R,
1193
+ filled: k,
1194
1194
  countsComplete: P,
1195
1195
  sliceType: e.sliceType,
1196
1196
  onSliceTypeChange: K
1197
- }), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((L) => L.value === N)?.label || N, k = w !== void 0, _ = w ?? "", ce = z ? "Folders" : C, J = on(
1197
+ }), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((L) => L.value === N)?.label || N, R = w !== void 0, _ = w ?? "", ce = z ? "Folders" : C, J = on(
1198
1198
  m || oe,
1199
1199
  $,
1200
- V,
1200
+ H,
1201
1201
  b
1202
1202
  ), We = z ? J.rowContextMenuBuilders : [], Ee = O(
1203
1203
  () => F.map((L) => L.value).filter((L) => !t.some((M) => M.sliceType === L)),
@@ -1239,7 +1239,7 @@ const rn = (e, t, a) => {
1239
1239
  // the dropdown cannot be used from a collapsed panel, but the dimension it
1240
1240
  // shows has to read the same as the dropdown does when open
1241
1241
  /* @__PURE__ */ E(hn, { children: /* @__PURE__ */ E("span", { children: C }) })
1242
- ) : D ? /* @__PURE__ */ E(pn, {}) : !k && /* @__PURE__ */ E(
1242
+ ) : D ? /* @__PURE__ */ E(pn, {}) : !R && /* @__PURE__ */ E(
1243
1243
  S,
1244
1244
  {
1245
1245
  options: Se,
@@ -1254,13 +1254,13 @@ const rn = (e, t, a) => {
1254
1254
  /* @__PURE__ */ G(
1255
1255
  fn,
1256
1256
  {
1257
- className: W({ searching: k }),
1257
+ className: W({ searching: R }),
1258
1258
  onClick: (L) => L.stopPropagation(),
1259
1259
  children: [
1260
1260
  !j && /* @__PURE__ */ E(
1261
1261
  sn,
1262
1262
  {
1263
- open: k,
1263
+ open: R,
1264
1264
  value: _,
1265
1265
  subject: ce,
1266
1266
  onChange: d
@@ -1276,7 +1276,7 @@ const rn = (e, t, a) => {
1276
1276
  hideWhenNoUpdates: !0
1277
1277
  }
1278
1278
  ),
1279
- be && h && !k && /* @__PURE__ */ E(
1279
+ be && h && !R && /* @__PURE__ */ E(
1280
1280
  he,
1281
1281
  {
1282
1282
  icon: "splitscreen_add",
@@ -1286,7 +1286,7 @@ const rn = (e, t, a) => {
1286
1286
  onClick: De
1287
1287
  }
1288
1288
  ),
1289
- !h && !k && /* @__PURE__ */ E(
1289
+ !h && !R && /* @__PURE__ */ E(
1290
1290
  he,
1291
1291
  {
1292
1292
  icon: "close",
@@ -1330,7 +1330,7 @@ const rn = (e, t, a) => {
1330
1330
  }
1331
1331
  )
1332
1332
  ] });
1333
- }, gn = H.div`
1333
+ }, gn = V.div`
1334
1334
  height: 100%;
1335
1335
  width: 100%;
1336
1336
  overflow-y: auto;
@@ -1358,12 +1358,12 @@ const rn = (e, t, a) => {
1358
1358
  i(null);
1359
1359
  }, []), { getParentFolderIds: o } = Ce(), y = A(
1360
1360
  (I) => {
1361
- const R = [I, ...o(I)];
1361
+ const k = [I, ...o(I)];
1362
1362
  f(
1363
1363
  "hierarchy",
1364
- (P) => typeof P == "boolean" ? P || Object.fromEntries(R.map((K) => [K, !0])) : {
1364
+ (P) => typeof P == "boolean" ? P || Object.fromEntries(k.map((K) => [K, !0])) : {
1365
1365
  ...P,
1366
- ...Object.fromEntries(R.map((K) => [K, !0]))
1366
+ ...Object.fromEntries(k.map((K) => [K, !0]))
1367
1367
  }
1368
1368
  );
1369
1369
  },
@@ -1372,25 +1372,25 @@ const rn = (e, t, a) => {
1372
1372
  se(() => {
1373
1373
  const I = n.current;
1374
1374
  if (!I) return;
1375
- const R = new ResizeObserver(([P]) => T(P.contentRect.height));
1376
- return R.observe(I), () => R.disconnect();
1375
+ const k = new ResizeObserver(([P]) => T(P.contentRect.height));
1376
+ return k.observe(I), () => k.disconnect();
1377
1377
  }, [S.length]);
1378
1378
  const v = S.map((I) => I.id), D = S.length > 1, {
1379
- sizes: V,
1379
+ sizes: H,
1380
1380
  minSize: oe,
1381
1381
  height: ae,
1382
1382
  layoutKey: q,
1383
1383
  handleResizeEnd: ie
1384
1384
  } = zt(b, v, D ? h : [], x), Z = v.slice(0, -1).map(
1385
- (I, R) => D && (h.includes(I) || h.includes(v[R + 1])) ? R : -1
1385
+ (I, k) => D && (h.includes(I) || h.includes(v[k + 1])) ? k : -1
1386
1386
  ).filter((I) => I >= 0), [ee, B] = U({}), te = A(
1387
- (I, R) => B((P) => ({ ...P, [I]: R })),
1387
+ (I, k) => B((P) => ({ ...P, [I]: k })),
1388
1388
  []
1389
1389
  ), Q = v.join("|");
1390
1390
  se(() => {
1391
1391
  B((I) => {
1392
- const R = Object.keys(I).filter((P) => v.includes(P));
1393
- return R.length === Object.keys(I).length ? I : Object.fromEntries(R.map((P) => [P, I[P]]));
1392
+ const k = Object.keys(I).filter((P) => v.includes(P));
1393
+ return k.length === Object.keys(I).length ? I : Object.fromEntries(k.map((P) => [P, I[P]]));
1394
1394
  });
1395
1395
  }, [Q]);
1396
1396
  const Y = {
@@ -1424,17 +1424,17 @@ const rn = (e, t, a) => {
1424
1424
  height: ae,
1425
1425
  overflow: "hidden"
1426
1426
  },
1427
- children: S.map((I, R) => /* @__PURE__ */ E(
1427
+ children: S.map((I, k) => /* @__PURE__ */ E(
1428
1428
  tt,
1429
1429
  {
1430
- size: V[R],
1430
+ size: H[k],
1431
1431
  minSize: oe,
1432
1432
  style: { overflow: "hidden" },
1433
1433
  children: /* @__PURE__ */ E(
1434
1434
  Fe,
1435
1435
  {
1436
1436
  panel: I,
1437
- isPrimary: R === 0,
1437
+ isPrimary: k === 0,
1438
1438
  search: ee[I.id],
1439
1439
  onSearchChange: (P) => te(I.id, P),
1440
1440
  ...Y
@@ -1447,7 +1447,7 @@ const rn = (e, t, a) => {
1447
1447
  q
1448
1448
  ) }),
1449
1449
  /* @__PURE__ */ E(
1450
- Ht,
1450
+ Vt,
1451
1451
  {
1452
1452
  projectName: p,
1453
1453
  movingEntities: g,
@@ -3,12 +3,12 @@ import { R as e, P as n } from "./ReviewablesSelector.es.js";
3
3
  import "react";
4
4
  import "@ynput/ayon-react-components";
5
5
  import "@module-federation/enhanced/runtime";
6
+ import "react-toastify";
6
7
  import "./searchTerms.es.js";
7
8
  import "./getUris.es.js";
8
9
  import "primereact/confirmdialog";
9
10
  import { a as c } from "./DeleteEntitiesContextInstance.es.js";
10
11
  import "lodash";
11
- import "react-toastify";
12
12
  import "uuid";
13
13
  import "semver";
14
14
  import "./ContextMenuContextInstance.es.js";
@@ -1,17 +1,17 @@
1
1
  import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
- import { createPortal as R } from "react-dom";
2
+ import { createPortal as I } from "react-dom";
3
3
  import { createContext as z, useContext as L, useEffect as $ } from "react";
4
- import { aQ as j } from "./searchTerms.es.js";
4
+ import { aR as j } from "./searchTerms.es.js";
5
5
  import { D as A } from "./getUris.es.js";
6
6
  import "primereact/confirmdialog";
7
7
  import "lodash";
8
8
  import { e as F } from "./expandRelativeDates.es.js";
9
9
  import "@module-federation/enhanced/runtime";
10
- import "./DeleteEntitiesContextInstance.es.js";
11
10
  import "react-toastify";
11
+ import { Icon as w, Dialog as N, FormRow as v, InputDate as x, SaveButton as B } from "@ynput/ayon-react-components";
12
+ import "./DeleteEntitiesContextInstance.es.js";
12
13
  import "uuid";
13
14
  import "semver";
14
- import { Icon as w, Dialog as N, FormRow as v, InputDate as x, SaveButton as B } from "@ynput/ayon-react-components";
15
15
  import "./ContextMenuContextInstance.es.js";
16
16
  import "clsx";
17
17
  import "react-redux";
@@ -56,25 +56,25 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
56
56
  return D.has(e.key) ? null : H(e);
57
57
  const t = (e.conditions || []).map((o) => C(o)).filter((o) => o !== null);
58
58
  return t.length === 0 ? null : { operator: e.operator || "and", conditions: t };
59
- }, Q = (e) => {
59
+ }, W = (e) => {
60
60
  if (!e || !e.conditions?.length) return null;
61
61
  const t = F(e), o = C(t);
62
62
  return o || null;
63
63
  }, $e = (e) => {
64
- const t = Q(e);
64
+ const t = W(e);
65
65
  if (t)
66
66
  return JSON.stringify(t);
67
- }, W = z(void 0), g = () => {
68
- const e = L(W);
67
+ }, G = z(void 0), g = () => {
68
+ const e = L(G);
69
69
  if (!e)
70
70
  throw new Error("useFeedContext must be used within a FeedProvider");
71
71
  return e;
72
- }, G = () => {
72
+ }, J = () => {
73
73
  const { refTooltip: e, setRefTooltip: t } = g();
74
74
  return [e, (n) => {
75
75
  n && n.id !== e?.id && t(n), n || t(null);
76
76
  }];
77
- }, J = p.span`
77
+ }, Q = p.span`
78
78
  display: flex;
79
79
  align-items: center;
80
80
  gap: var(--base-gap-large);
@@ -99,7 +99,7 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
99
99
  color: var(--md-sys-color-outline);
100
100
  font-size: 0.85em;
101
101
  }
102
- `, E = ({ name: e, fullName: t, showSubtitle: o, size: n = 24 }) => /* @__PURE__ */ m(J, { $size: n, children: [
102
+ `, E = ({ name: e, fullName: t, showSubtitle: o, size: n = 24 }) => /* @__PURE__ */ m(Q, { $size: n, children: [
103
103
  /* @__PURE__ */ i(U, { name: e, size: n }),
104
104
  o ? /* @__PURE__ */ m(V, { children: [
105
105
  /* @__PURE__ */ i("span", { children: t || e }),
@@ -226,7 +226,7 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
226
226
  }
227
227
  );
228
228
  }, je = () => {
229
- const [e, t] = G(), { type: o, label: n, name: s, pos: l, id: c } = e || {}, a = document.querySelector(".feed ul");
229
+ const [e, t] = J(), { type: o, label: n, name: s, pos: l, id: c } = e || {}, a = document.querySelector(".feed ul");
230
230
  return $(() => {
231
231
  if (c) {
232
232
  const r = (u) => {
@@ -237,7 +237,7 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
237
237
  document.removeEventListener("mouseover", r), a && a.removeEventListener("scroll", r);
238
238
  };
239
239
  }
240
- }, [c, t, a]), c ? R(
240
+ }, [c, t, a]), c ? I(
241
241
  o === "user" && l ? /* @__PURE__ */ i(Z, { name: s, label: n, pos: l }) : o === "team" && l ? /* @__PURE__ */ i(ae, { name: s, pos: l }) : /* @__PURE__ */ i(se, { type: o, label: n, name: s, pos: l, id: c }),
242
242
  document.body
243
243
  ) : null;
@@ -341,10 +341,10 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
341
341
  entityType: t,
342
342
  entityId: o,
343
343
  thumbnailHash: s ? String(s) : void 0
344
- }), T = t === "project", S = ["product"].includes(t), I = T ? !!e : !!o;
344
+ }), T = t === "project", S = ["product"].includes(t), R = T ? !!e : !!o;
345
345
  return /* @__PURE__ */ m(ce, { className: c + " thumbnail", ...y, children: [
346
346
  !l && !a && /* @__PURE__ */ i(w, { icon: n || "image" }),
347
- (t && !S && I || r) && !d && /* @__PURE__ */ i(
347
+ (t && !S && R || r) && !d && /* @__PURE__ */ i(
348
348
  de,
349
349
  {
350
350
  alt: `Entity thumbnail ${o || e}`,
@@ -358,9 +358,9 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
358
358
  export {
359
359
  je as A,
360
360
  Ae as C,
361
- W as F,
361
+ G as F,
362
362
  Fe as T,
363
- G as a,
363
+ J as a,
364
364
  $e as b,
365
365
  g as u
366
366
  };
@@ -5,6 +5,7 @@ import { toast as A } from "react-toastify";
5
5
  import { clearMemoizedPlayables as c, Player as h, compactPlayerControls as E } from "@ynput/ayon-player";
6
6
  import { ClipType as F } from "@ynput/ayon-player/model";
7
7
  import "@module-federation/enhanced/runtime";
8
+ import "@ynput/ayon-react-components";
8
9
  import "./searchTerms.es.js";
9
10
  import "./getUris.es.js";
10
11
  import "primereact/confirmdialog";
@@ -12,7 +13,6 @@ import { d as D } from "./DeleteEntitiesContextInstance.es.js";
12
13
  import "lodash";
13
14
  import "uuid";
14
15
  import "semver";
15
- import "@ynput/ayon-react-components";
16
16
  import "./ContextMenuContextInstance.es.js";
17
17
  import "clsx";
18
18
  import "react-dom";