@ynput/ayon-frontend-shared 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/DetailsPanel.es.js +480 -477
  2. package/dist/ListTable.es.js +24 -25
  3. package/dist/NewEntity.es.js +6 -7
  4. package/dist/ProjectTreeTable.es.js +2016 -1996
  5. package/dist/Views.es.js +28 -28
  6. package/dist/api.es.js +291 -289
  7. package/dist/chunks/Actions.es.js +12 -12
  8. package/dist/chunks/ColumnDropIndicator.es.js +8 -9
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
  10. package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
  11. package/dist/chunks/DetailsDialog.es.js +1 -1
  12. package/dist/chunks/EmptyPlaceholder.es.js +13 -12
  13. package/dist/chunks/EntityPath.es.js +67 -67
  14. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  15. package/dist/chunks/EntityTooltip.es.js +8 -8
  16. package/dist/chunks/Feed.es.js +692 -689
  17. package/dist/chunks/MetaWidget.es.js +1283 -1279
  18. package/dist/chunks/PlayableIcon.es.js +458 -451
  19. package/dist/chunks/ProjectContext.es.js +20 -20
  20. package/dist/chunks/RepresentationsList.es.js +9 -9
  21. package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
  22. package/dist/chunks/Slicer.es.js +68 -69
  23. package/dist/chunks/ThumbnailSimple.es.js +4 -4
  24. package/dist/chunks/Watchers.es.js +104 -105
  25. package/dist/chunks/activeEntities.es.js +58 -0
  26. package/dist/chunks/columnConfigConverter.es.js +57 -63
  27. package/dist/chunks/getUris.es.js +886 -831
  28. package/dist/chunks/iconUtils.es.js +151 -0
  29. package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
  30. package/dist/chunks/searchTerms.es.js +329 -247
  31. package/dist/chunks/useAttributeEnums.es.js +34 -34
  32. package/dist/chunks/viewUpdateHelper.es.js +11 -11
  33. package/dist/components.es.js +340 -337
  34. package/dist/context.es.js +48 -48
  35. package/dist/hooks.es.js +34 -34
  36. package/dist/index.es.js +1 -1
  37. package/dist/types/ContextMenu.d.ts +1 -1
  38. package/dist/types/Feed.d.ts +1 -1
  39. package/dist/types/ListTable.d.ts +1 -1
  40. package/dist/types/ProjectTreeTable.d.ts +4 -1
  41. package/dist/types/SimpleTable.d.ts +1 -1
  42. package/dist/types/Slicer.d.ts +5 -5
  43. package/dist/types/Views.d.ts +4 -4
  44. package/dist/types/api.d.ts +545 -171
  45. package/dist/types/components.d.ts +64 -9
  46. package/dist/types/context.d.ts +5 -5
  47. package/dist/types/util.d.ts +237 -2
  48. package/dist/util.es.js +127 -114
  49. package/package.json +1 -1
  50. package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
  51. package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
@@ -2,21 +2,21 @@ import { jsx as j, jsxs as pe } from "react/jsx-runtime";
2
2
  import { useState as b, useEffect as B, useCallback as E, useRef as fe, useMemo as T } from "react";
3
3
  import { registerRemotes as ge } from "@module-federation/enhanced/runtime";
4
4
  import { ay as me, bi as he } from "./chunks/searchTerms.es.js";
5
- import { cQ as ye, c2 as Pe, cg as ve, bp as be, cS as we, cB as Ce, bJ as Se, cY as Ie, dl as ke, cI as Le } from "./chunks/getUris.es.js";
5
+ import { cS as ye, c4 as Pe, ci as ve, bq as be, cU as we, cD as Ce, bK as Se, c_ as Ie, dn as ke, cK as Le } from "./chunks/getUris.es.js";
6
6
  import "primereact/confirmdialog";
7
- import { d as re, z as xe, a as ie, q as Ee, A as De, B as Fe, G as je, H as Te, I as Me, J as Oe, K as Re, L as Ae, N as Ue, O as Ne, Q as Be, U as Ge, V as _e, W as $e } from "./chunks/DeleteEntitiesContextInstance.es.js";
8
- import { E as Ft, M as jt, X as Tt, P as Mt, Y as Ot, Z as Rt, T as At, _ as Ut, $ as Nt, g as Bt, a0 as Gt, m as _t, c as $t, a1 as Qt, t as Wt, a2 as qt, a3 as zt, a4 as Vt, a5 as Ht, a6 as Yt, v as Jt, u as Kt, n as Xt, a7 as Zt, x as en, y as tn, b as nn, a8 as on, a9 as sn, aa as rn, ab as an, ac as ln, ad as cn } from "./chunks/DeleteEntitiesContextInstance.es.js";
7
+ import { d as re, z as xe, a as ie, q as Ee, A as De, B as Fe, G as je, H as Te, I as Me, J as Oe, K as Re, L as Ue, N as Ae, O as Ne, Q as Be, U as Ge, V as _e, W as $e } from "./chunks/DeleteEntitiesContextInstance.es.js";
8
+ import { E as Ft, M as jt, X as Tt, P as Mt, Y as Ot, Z as Rt, T as Ut, _ as At, $ as Nt, g as Bt, a0 as Gt, m as _t, c as $t, a1 as Wt, t as qt, a2 as Qt, a3 as zt, a4 as Vt, a5 as Ht, a6 as Yt, v as Kt, u as Jt, n as Xt, a7 as Zt, x as en, y as tn, b as nn, a8 as on, a9 as sn, aa as rn, ab as an, ac as ln, ad as cn } from "./chunks/DeleteEntitiesContextInstance.es.js";
9
9
  import "lodash";
10
10
  import { toast as G } from "react-toastify";
11
- import { v4 as K } from "uuid";
12
- import { g as Qe, p as We, b as qe } from "./chunks/getBundleMode.es.js";
11
+ import { v4 as J } from "uuid";
12
+ import { g as We, p as qe, b as Qe } from "./chunks/getBundleMode.es.js";
13
13
  import { u as ae } from "./chunks/useLoadModule.es.js";
14
14
  import { P as un, T as pn } from "./chunks/ProjectContext.es.js";
15
15
  import "react-dom";
16
16
  import { p as ze, c as Ve, d as He, e as Ye, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
17
17
  import { a as gn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
18
18
  import { M as hn } from "./chunks/MenuContext.es.js";
19
- import { u as Je } from "./chunks/useQueryArgumentChangeLoading.es.js";
19
+ import { u as Ke } from "./chunks/useQueryArgumentChangeLoading.es.js";
20
20
  import { E as Pn, F as vn } from "./chunks/EntityUpdatesContext.es.js";
21
21
  const mt = ({ children: f, skip: i }) => {
22
22
  const { data: s = [], isLoading: e } = ye(void 0, {
@@ -61,7 +61,7 @@ const mt = ({ children: f, skip: i }) => {
61
61
  children: f
62
62
  }
63
63
  );
64
- }, Ke = {
64
+ }, Je = {
65
65
  planner: {
66
66
  label: "Planner",
67
67
  icon: "calendar_month",
@@ -113,7 +113,7 @@ const mt = ({ children: f, skip: i }) => {
113
113
  debug: e = {},
114
114
  ...r
115
115
  }) => {
116
- const c = r.user, d = Qe(c), h = "isGuest" in e ? e.isGuest : c?.data?.isGuest, { powerLicense: y, setPowerpackDialog: g } = ie(), p = "hasLicense" in e ? e.hasLicense : !!y || s, [l, n] = b({}), [u, m] = b([]), [S, v] = b([]), x = E(
116
+ const c = r.user, d = We(c), h = "isGuest" in e ? e.isGuest : c?.data?.isGuest, { powerLicense: y, setPowerpackDialog: g } = ie(), p = "hasLicense" in e ? e.hasLicense : !!y || s, [l, n] = b({}), [u, m] = b([]), [S, v] = b([]), x = E(
117
117
  (C) => l[C] ? l[C] : !1,
118
118
  [l]
119
119
  ), D = E(
@@ -131,7 +131,7 @@ const mt = ({ children: f, skip: i }) => {
131
131
  ), [P, I] = b(null), M = E((C) => {
132
132
  I(C);
133
133
  }, []), F = E(() => {
134
- I(null), P && U([]);
134
+ I(null), P && A([]);
135
135
  }, []);
136
136
  B(() => {
137
137
  F();
@@ -140,9 +140,9 @@ const mt = ({ children: f, skip: i }) => {
140
140
  k(C);
141
141
  }, []), O = E(() => {
142
142
  k(null);
143
- }, []), [A, _] = b(null), [H, U] = b([]), { uriType: Y, uri: le, entity: $, getUriEntities: ce } = Fe(), [Q] = r.useSearchParams(), W = Q.get("project"), q = Q.get("type"), z = Q.get("id"), X = Q.get("activity");
143
+ }, []), [U, _] = b(null), [H, A] = b([]), { uriType: Y, uri: le, entity: $, getUriEntities: ce } = Fe(), [W] = r.useSearchParams(), q = W.get("project"), Q = W.get("type"), z = W.get("id"), X = W.get("activity");
144
144
  B(() => {
145
- if (!(!W && !q && !z)) {
145
+ if (!(!q && !Q && !z)) {
146
146
  if (Y === "entity" && $ && $.entityType !== "product") {
147
147
  ce().then((C) => {
148
148
  if (C.length === 0) return;
@@ -166,21 +166,21 @@ const mt = ({ children: f, skip: i }) => {
166
166
  });
167
167
  return;
168
168
  }
169
- W && q && z && (_({
170
- entityType: q,
169
+ q && Q && z && (_({
170
+ entityType: Q,
171
171
  entities: [
172
172
  {
173
173
  id: z,
174
- projectName: W
174
+ projectName: q
175
175
  }
176
176
  ],
177
177
  source: "url"
178
- }), X && (U([X]), a({
178
+ }), X && (A([X]), a({
179
179
  ...o,
180
180
  overview: "feed"
181
181
  })));
182
182
  }
183
- }, [W, q, z]);
183
+ }, [q, Q, z]);
184
184
  const V = {
185
185
  // open state for the panel by scope
186
186
  panelOpenByScope: l,
@@ -196,13 +196,13 @@ const mt = ({ children: f, skip: i }) => {
196
196
  closeSlideOut: F,
197
197
  // highlighted activities
198
198
  highlightedActivities: H,
199
- setHighlightedActivities: U,
199
+ setHighlightedActivities: A,
200
200
  // PiP state
201
201
  pip: t,
202
202
  openPip: L,
203
203
  closePip: O,
204
204
  // entities state
205
- entities: A,
205
+ entities: U,
206
206
  setEntities: _,
207
207
  feedAnnotations: u,
208
208
  setFeedAnnotations: m,
@@ -213,8 +213,8 @@ const mt = ({ children: f, skip: i }) => {
213
213
  hasLicense: p,
214
214
  onPowerFeature: g,
215
215
  ...r
216
- }, J = fe(V), Z = J.current, ee = Object.keys(V);
217
- return (ee.length !== Object.keys(Z).length || ee.some((C) => Z[C] !== V[C])) && (J.current = V), /* @__PURE__ */ j(je.Provider, { value: J.current, children: f });
216
+ }, K = fe(V), Z = K.current, ee = Object.keys(V);
217
+ return (ee.length !== Object.keys(Z).length || ee.some((C) => Z[C] !== V[C])) && (K.current = V), /* @__PURE__ */ j(je.Provider, { value: K.current, children: f });
218
218
  }, Xe = (f) => {
219
219
  const { setPowerpackDialog: i } = ie();
220
220
  return B(() => {
@@ -270,11 +270,11 @@ function vt({ children: f }) {
270
270
  }, [e, c]), y = E(
271
271
  async (p, l) => {
272
272
  if (!s) {
273
- d(K());
273
+ d(J());
274
274
  return;
275
275
  }
276
276
  if (e != null) {
277
- console.log("pipWindow is already open"), d(K());
277
+ console.log("pipWindow is already open"), d(J());
278
278
  return;
279
279
  }
280
280
  const n = await window.documentPictureInPicture.requestWindow({
@@ -283,7 +283,7 @@ function vt({ children: f }) {
283
283
  });
284
284
  n.addEventListener("pagehide", () => {
285
285
  r(null), d(null);
286
- }), r(n), d(K());
286
+ }), r(n), d(J());
287
287
  },
288
288
  [e, c]
289
289
  );
@@ -329,7 +329,7 @@ const bt = ({
329
329
  { skip: !i }
330
330
  ), { user: c } = re();
331
331
  return /* @__PURE__ */ j(
332
- Ae.Provider,
332
+ Ue.Provider,
333
333
  {
334
334
  value: {
335
335
  ...e,
@@ -341,7 +341,7 @@ const bt = ({
341
341
  children: f
342
342
  }
343
343
  );
344
- }, wt = ({ children: f, ...i }) => /* @__PURE__ */ j(Ue.Provider, { value: { ...i }, children: f }), Ct = ({
344
+ }, wt = ({ children: f, ...i }) => /* @__PURE__ */ j(Ae.Provider, { value: { ...i }, children: f }), Ct = ({
345
345
  children: f,
346
346
  debug: i
347
347
  }) => {
@@ -349,7 +349,7 @@ const bt = ({
349
349
  o === null ? (e(null), c(null)) : d(o) ? (e(null), c(o)) : (c(null), e(o));
350
350
  }, []), y = (o) => o ? ze[o] : null, g = (o) => {
351
351
  if (!o) return null;
352
- const a = Ke[o.addon];
352
+ const a = Je[o.addon];
353
353
  return a ? { ...a, selectedFeature: o.feature } : null;
354
354
  }, [p, l] = b(!1), [n, u] = b(!0), m = async () => !1, [S, { isLoaded: v, isLoading: x }] = ae({
355
355
  addon: "powerpack",
@@ -441,7 +441,7 @@ const bt = ({
441
441
  isUninitialized: d,
442
442
  error: h,
443
443
  refetch: y
444
- } = Se({ projectName: f, attrib: !0 }), g = Je({ projectName: f }, r || e), p = T(() => {
444
+ } = Se({ projectName: f, attrib: !0 }), g = Ke({ projectName: f }, r || e), p = T(() => {
445
445
  const o = /* @__PURE__ */ new Map();
446
446
  for (const a of s)
447
447
  o.set(a.id, a);
@@ -545,9 +545,9 @@ const bt = ({
545
545
  B(() => {
546
546
  r.some((u) => i.startsWith(`/${u}`)) || e("");
547
547
  }, [i, e]);
548
- const { type: c, entity: d, settings: h } = We(s), y = E(
548
+ const { type: c, entity: d, settings: h } = qe(s), y = E(
549
549
  ({ projectName: n, folderPath: u, taskName: m, productName: S, versionName: v }) => {
550
- const x = qe({ projectName: n, folderPath: u, taskName: m, productName: S, versionName: v });
550
+ const x = Qe({ projectName: n, folderPath: u, taskName: m, productName: S, versionName: v });
551
551
  e(x);
552
552
  },
553
553
  [e]
@@ -595,17 +595,17 @@ const bt = ({
595
595
  if (t.length === 0) return;
596
596
  const L = /* @__PURE__ */ new Map();
597
597
  for (const O of t) {
598
- const A = L.get(O.projectName) || [];
599
- A.push(O), L.set(O.projectName, A);
598
+ const U = L.get(O.projectName) || [];
599
+ U.push(O), L.set(O.projectName, U);
600
600
  }
601
601
  await Promise.all(
602
- Array.from(L.entries()).map(([O, A]) => {
603
- const H = [...A].sort(
604
- (U, Y) => se.indexOf(U.entityType) - se.indexOf(Y.entityType)
605
- ).map((U) => ({
602
+ Array.from(L.entries()).map(([O, U]) => {
603
+ const H = [...U].sort(
604
+ (A, Y) => se.indexOf(A.entityType) - se.indexOf(Y.entityType)
605
+ ).map((A) => ({
606
606
  type: "delete",
607
- entityType: U.entityType,
608
- entityId: U.id,
607
+ entityType: A.entityType,
608
+ entityId: A.id,
609
609
  force: k
610
610
  }));
611
611
  return i({
@@ -636,7 +636,7 @@ const bt = ({
636
636
  Array.from(t.entries()).map(
637
637
  ([L, O]) => s({
638
638
  projectName: L,
639
- folderIds: O.map((A) => A.id)
639
+ folderIds: O.map((U) => U.id)
640
640
  }).unwrap()
641
641
  )
642
642
  )).flat();
@@ -728,8 +728,8 @@ const bt = ({
728
728
  ] });
729
729
  };
730
730
  export {
731
- Ue as AddonContext,
732
- Ae as AddonProjectContext,
731
+ Ae as AddonContext,
732
+ Ue as AddonProjectContext,
733
733
  bt as AddonProjectProvider,
734
734
  wt as AddonProvider,
735
735
  $e as DeleteEntitiesContext,
@@ -761,13 +761,13 @@ export {
761
761
  Me as SubtasksModulesContext,
762
762
  yt as SubtasksModulesProvider,
763
763
  Te as TABS_BY_SCOPE_KEY,
764
- At as ThumbnailUploadContext,
764
+ Ut as ThumbnailUploadContext,
765
765
  pn as ThumbnailUploadProvider,
766
766
  _e as URIContext,
767
767
  Lt as URIProvider,
768
768
  kt as URL_PARAM_ID,
769
- Ke as addonConfigs,
770
- Ut as getActivityFrameLink,
769
+ Je as addonConfigs,
770
+ At as getActivityFrameLink,
771
771
  Nt as getAutoSyncForTopic,
772
772
  Bt as getUpdateType,
773
773
  Gt as isDeletableEntityType,
@@ -776,16 +776,16 @@ export {
776
776
  $t as matchesTopic,
777
777
  gn as powerpackFeatureOrder,
778
778
  ze as powerpackFeatures,
779
- Qt as setDetailsPanelTabForScope,
780
- Wt as toggleSyncAll,
781
- qt as useAddonContext,
779
+ Wt as setDetailsPanelTabForScope,
780
+ qt as toggleSyncAll,
781
+ Qt as useAddonContext,
782
782
  zt as useAddonProjectContext,
783
783
  Vt as useAutoSyncSettings,
784
784
  Ht as useDeleteEntitiesContext,
785
785
  Yt as useDeleteEntitiesContextOptional,
786
- Jt as useDetailsPanelContext,
786
+ Kt as useDetailsPanelContext,
787
787
  re as useGlobalContext,
788
- Kt as useMenuContext,
788
+ Jt as useMenuContext,
789
789
  Xt as useOptionalProjectContext,
790
790
  Zt as usePiPWindow,
791
791
  ie as usePowerpack,
package/dist/hooks.es.js CHANGED
@@ -2,24 +2,24 @@ import { d as V, a as G } from "./chunks/DeleteEntitiesContextInstance.es.js";
2
2
  import { r as te, o as ee, p as re, q as oe, w as ne, s as se } from "./chunks/DeleteEntitiesContextInstance.es.js";
3
3
  import { u as C } from "./chunks/useLoadModule.es.js";
4
4
  import { loadRemote as M } from "@module-federation/enhanced/runtime";
5
- import { useRef as N, useState as k, useEffect as P, useCallback as R } from "react";
5
+ import { useRef as N, useState as k, useEffect as v, useCallback as R } from "react";
6
6
  import b from "semver";
7
7
  import { f as ae, u as de, a as ue, b as ce, c as le, d as me } from "./chunks/Watchers.es.js";
8
8
  import { u as pe } from "./chunks/useActionTriggers.es.js";
9
9
  import { b2 as T } from "./chunks/searchTerms.es.js";
10
- import { bv as K, cO as O } from "./chunks/getUris.es.js";
10
+ import { bw as K, cQ as U } from "./chunks/getUris.es.js";
11
11
  import "primereact/confirmdialog";
12
- import { jsx as v, jsxs as U } from "react/jsx-runtime";
12
+ import { jsx as P, jsxs as j } from "react/jsx-runtime";
13
13
  import "lodash";
14
- import { toast as j } from "react-toastify";
14
+ import { toast as F } from "react-toastify";
15
15
  import "uuid";
16
- import { Button as F, Icon as $ } from "@ynput/ayon-react-components";
16
+ import { Button as O, Icon as $ } from "@ynput/ayon-react-components";
17
17
  import "./chunks/ContextMenuContextInstance.es.js";
18
18
  import "clsx";
19
19
  import "react-dom";
20
20
  import "react-redux";
21
21
  import { u as ye } from "./chunks/EntityPickerDialog.es.js";
22
- import { u as Le } from "./chunks/useQueryArgumentChangeLoading.es.js";
22
+ import { u as we } from "./chunks/useQueryArgumentChangeLoading.es.js";
23
23
  import { u as Se } from "./chunks/useGroupedPagination.es.js";
24
24
  import "./chunks/ReviewablesSelector.es.js";
25
25
  import "match-sorter";
@@ -47,21 +47,21 @@ import "axios";
47
47
  import "./chunks/VersionUploadContextInstance.es.js";
48
48
  import "./chunks/EntityTooltip.es.js";
49
49
  import "./chunks/ColumnDropIndicator.styled.es.js";
50
- import "react-router-dom";
51
50
  import "@tanstack/react-table";
52
- import { T as q } from "./chunks/TableSettingsFallback.es.js";
51
+ import { T as Q } from "./chunks/TableSettingsFallback.es.js";
52
+ import "react-router-dom";
53
53
  import "./chunks/Slicer.es.js";
54
54
  import "primereact/splitter";
55
55
  import "./chunks/ThumbnailSimple.es.js";
56
56
  import "./chunks/MenuItem.es.js";
57
57
  import A from "styled-components";
58
- import { i as Q } from "./chunks/isHTMLElement.es.js";
58
+ import { i as q } from "./chunks/isHTMLElement.es.js";
59
59
  import { u as Ee } from "./chunks/useAttributeEnums.es.js";
60
60
  const Ht = (t, c, e) => {
61
61
  const a = N(/* @__PURE__ */ new Set()), [m, r] = k(
62
62
  () => h(t)
63
63
  ), [n, f] = k(c.length > 0 && !e);
64
- P(() => {
64
+ v(() => {
65
65
  e || (console.log("resetting processedModules"), a.current = /* @__PURE__ */ new Set(), r(h(t)));
66
66
  }, [JSON.stringify(t), e]);
67
67
  const l = async (s, d, i, p, u) => {
@@ -69,12 +69,12 @@ const Ht = (t, c, e) => {
69
69
  const o = await M(`${s}/${d}`, {
70
70
  from: "runtime"
71
71
  });
72
- L(i, s, d, o?.default || p, u);
72
+ w(i, s, d, o?.default || p, u);
73
73
  } catch (o) {
74
74
  throw console.error("Error loading remote module", s, d, o), o;
75
75
  }
76
76
  };
77
- P(() => {
77
+ v(() => {
78
78
  if (e) {
79
79
  f(!1);
80
80
  return;
@@ -82,7 +82,7 @@ const Ht = (t, c, e) => {
82
82
  m.every((i) => !i[1].isLoaded) && a.current.size > 0 && (console.log("resetting processedModules - results were reset"), a.current = /* @__PURE__ */ new Set()), console.log("loading modules");
83
83
  const d = [];
84
84
  if (t.forEach((i, p) => {
85
- const { addon: u, remote: o, module: g, fallback: w, minVersion: y } = i;
85
+ const { addon: u, remote: o, module: g, fallback: L, minVersion: y } = i;
86
86
  if (!u || !o || !g) {
87
87
  console.log("Invalid module spec", i);
88
88
  return;
@@ -108,7 +108,7 @@ const Ht = (t, c, e) => {
108
108
  u,
109
109
  o,
110
110
  g,
111
- w,
111
+ L,
112
112
  y,
113
113
  E.addonVersion
114
114
  );
@@ -118,7 +118,7 @@ const Ht = (t, c, e) => {
118
118
  console.log("Module not found", { addon: u, remote: o, module: g });
119
119
  return;
120
120
  }
121
- d.push(l(o, g, u, w, y));
121
+ d.push(l(o, g, u, L, y));
122
122
  }), !d.length) {
123
123
  f(!1);
124
124
  return;
@@ -145,8 +145,8 @@ const Ht = (t, c, e) => {
145
145
  );
146
146
  }
147
147
  function S(s, d, i, p, u, o, g) {
148
- r((w) => {
149
- const y = [...w];
148
+ r((L) => {
149
+ const y = [...L];
150
150
  return s >= 0 && s < y.length && (y[s] = [
151
151
  u,
152
152
  {
@@ -163,12 +163,12 @@ const Ht = (t, c, e) => {
163
163
  ]), y;
164
164
  });
165
165
  }
166
- function L(s, d, i, p, u) {
166
+ function w(s, d, i, p, u) {
167
167
  r((o) => {
168
- const g = [...o], w = t.findIndex(
168
+ const g = [...o], L = t.findIndex(
169
169
  (y) => y.addon === s && y.remote === d && y.module === i
170
170
  );
171
- return w >= 0 && w < g.length && (g[w] = [
171
+ return L >= 0 && L < g.length && (g[L] = [
172
172
  p,
173
173
  {
174
174
  isLoaded: !0,
@@ -193,11 +193,11 @@ const Ht = (t, c, e) => {
193
193
  try {
194
194
  if (!e?.name) throw { data: { detail: "User not found" } };
195
195
  let h = { ...a };
196
- const S = (L, s, d) => {
197
- if (s.length === 0) return { ...L, ...d };
198
- const [i, ...p] = s, u = L?.[i] || {};
196
+ const S = (w, s, d) => {
197
+ if (s.length === 0) return { ...w, ...d };
198
+ const [i, ...p] = s, u = w?.[i] || {};
199
199
  return {
200
- ...L,
200
+ ...w,
201
201
  [i]: S(u, p, d)
202
202
  };
203
203
  };
@@ -208,7 +208,7 @@ const Ht = (t, c, e) => {
208
208
  disableInvalidations: !0
209
209
  }).unwrap();
210
210
  } catch (h) {
211
- console.error(h), j.error(h.data?.detail);
211
+ console.error(h), F.error(h.data?.detail);
212
212
  }
213
213
  }, { isSuccess: !0 }];
214
214
  }, Wt = ({ groupBy: t, projectName: c, entityType: e }) => {
@@ -226,15 +226,15 @@ const Ht = (t, c, e) => {
226
226
  align-items: center;
227
227
  padding: 0;
228
228
  margin: 0;
229
- `, D = A(F)`
229
+ `, D = A(O)`
230
230
  width: 100%;
231
231
  justify-content: start;
232
232
  `, H = ({
233
233
  requiredVersion: t,
234
234
  fields: c
235
- }) => /* @__PURE__ */ v(q, { feature: "groupAttributes", requiredVersion: t, children: c.map((e) => /* @__PURE__ */ v(z, { children: /* @__PURE__ */ U(D, { variant: "text", icon: e.icon, children: [
235
+ }) => /* @__PURE__ */ P(Q, { feature: "groupAttributes", requiredVersion: t, children: c.map((e) => /* @__PURE__ */ P(z, { children: /* @__PURE__ */ j(D, { variant: "text", icon: e.icon, children: [
236
236
  e.label,
237
- /* @__PURE__ */ v($, { icon: "bolt", style: { marginLeft: "auto" } })
237
+ /* @__PURE__ */ P($, { icon: "bolt", style: { marginLeft: "auto" } })
238
238
  ] }) }, e.value)) }), Bt = () => {
239
239
  const { powerLicense: t } = G(), [c, { outdated: e, isLoading: a }] = C({
240
240
  addon: "powerpack",
@@ -258,20 +258,20 @@ function Xt({
258
258
  onNavigate: a,
259
259
  enabled: m = !0
260
260
  }) {
261
- P(() => {
261
+ v(() => {
262
262
  if (!m || t.length <= 1) return;
263
263
  const r = (n) => {
264
264
  const f = n.key.length === 1 ? n.key.toLowerCase() : n.key;
265
- if (!J.includes(f) || n.metaKey || n.ctrlKey || n.altKey || Q(n.target) && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable))
265
+ if (!J.includes(f) || n.metaKey || n.ctrlKey || n.altKey || q(n.target) && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable))
266
266
  return;
267
- const S = t.findIndex(({ fileId: s }) => c.includes(s)) + (f === "w" ? -1 : 1), L = t[S < 0 ? t.length - 1 : S % t.length];
268
- L && (e?.(L.fileId), a?.(L));
267
+ const S = t.findIndex(({ fileId: s }) => c.includes(s)) + (f === "w" ? -1 : 1), w = t[S < 0 ? t.length - 1 : S % t.length];
268
+ w && (e?.(w.fileId), a?.(w));
269
269
  };
270
270
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
271
271
  }, [m, t, c, e, a]);
272
272
  }
273
273
  const Yt = () => {
274
- const { data: t, isLoading: c, isError: e } = O({});
274
+ const { data: t, isLoading: c, isError: e } = U({});
275
275
  return {
276
276
  getProductionAddon: R(
277
277
  (m, r) => {
@@ -310,7 +310,7 @@ export {
310
310
  C as useLoadModule,
311
311
  Ht as useLoadModules,
312
312
  re as useLocalStorage,
313
- Le as useQueryArgumentChangeLoading,
313
+ we as useQueryArgumentChangeLoading,
314
314
  Xt as useReviewablesKeyboardNavigation,
315
315
  le as useScopedStatuses,
316
316
  me as useScopedTypes,
package/dist/index.es.js CHANGED
@@ -42,9 +42,9 @@ import "axios";
42
42
  import "./chunks/VersionUploadContextInstance.es.js";
43
43
  import "./chunks/EntityTooltip.es.js";
44
44
  import "./chunks/ColumnDropIndicator.styled.es.js";
45
- import "react-router-dom";
46
45
  import "@tanstack/react-table";
47
46
  import "./chunks/EntityPickerDialog.es.js";
47
+ import "react-router-dom";
48
48
  import "./chunks/Slicer.es.js";
49
49
  import "primereact/splitter";
50
50
  import { T as mr } from "./chunks/ThumbnailSimple.es.js";
@@ -110,7 +110,7 @@ declare type PowerpackDialogType = {
110
110
  icon?: string;
111
111
  };
112
112
 
113
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
113
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
114
114
 
115
115
  export declare function useContextMenu(): ContextMenuContextType;
116
116
 
@@ -191,7 +191,7 @@ export declare type MimeTypeDefinition = {
191
191
  callback?: (file: any) => void;
192
192
  };
193
193
 
194
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
194
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
195
195
 
196
196
  declare type ProductSuggestionItem = {
197
197
  /** The date and time when the suggested entity was created */
@@ -259,7 +259,7 @@ export declare interface ListTableWidgetRenderContext<TData extends RowData> {
259
259
 
260
260
  export declare type ListTableWidgetRenderer<TData extends RowData> = (context: ListTableWidgetRenderContext<TData>) => React.ReactNode;
261
261
 
262
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
262
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
263
263
 
264
264
  export declare const renderListTableFallbackValue: (value: unknown) => string;
265
265
 
@@ -2334,7 +2334,7 @@ declare type PowerpackDialogType = {
2334
2334
  icon?: string;
2335
2335
  };
2336
2336
 
2337
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
2337
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
2338
2338
 
2339
2339
  export declare const processFieldValue: (value: string, fieldValueType: "string" | "number" | "boolean" | "array") => any;
2340
2340
 
@@ -3694,6 +3694,9 @@ declare interface UseHistoryReturn {
3694
3694
  removeHistoryEntries: (count: number) => void;
3695
3695
  }
3696
3696
 
3697
+ /** Like useCellEditing, but returns undefined outside of a CellEditingProvider. */
3698
+ export declare const useOptionalCellEditing: () => CellEditingContextType | undefined;
3699
+
3697
3700
  export declare const useOptionalProjectTableContext: () => ProjectTableContextType | undefined;
3698
3701
 
3699
3702
  export declare const useOptionalSelectedRowsContext: () => SelectedRowsContextType | undefined;
@@ -78,7 +78,7 @@ export declare const HeaderButton: IStyledComponentBase<"web", FastOmit<Omit< Bu
78
78
  ref?: ((instance: HTMLButtonElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
79
79
  }, never>>> & string & Omit< ForwardRefExoticComponent< ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
80
80
 
81
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
81
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
82
82
 
83
83
  export declare const RowExpander: ({ isRowExpandable, isRowExpanded, enableNonFolderIndent, isTableExpandable, onExpandClick, }: RowExpanderProps) => false | JSX_2.Element | undefined;
84
84
 
@@ -261,7 +261,7 @@ declare type LinkTypeModel_2 = {
261
261
 
262
262
  declare type ListsSettings = {
263
263
  rowHeight?: number;
264
- sortBy?: string;
264
+ sortBy?: string | string[];
265
265
  sortDesc?: boolean;
266
266
  filter?: QueryFilter_5;
267
267
  columns?: ColumnItemModel[];
@@ -309,7 +309,7 @@ declare type OverviewSettings = {
309
309
  groupBy?: string;
310
310
  groupSortByDesc?: boolean;
311
311
  showEmptyGroups?: boolean;
312
- sortBy?: string;
312
+ sortBy?: string | string[];
313
313
  sortDesc?: boolean;
314
314
  filter?: QueryFilter_5;
315
315
  folderFilter?: QueryFilter_5;
@@ -343,7 +343,7 @@ export declare interface PinnedSlice {
343
343
  expanded: ExpandedState;
344
344
  }
345
345
 
346
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
346
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
347
347
 
348
348
  declare type ProductType = {
349
349
  __typename?: 'ProductType';
@@ -425,7 +425,7 @@ export declare const resolvePanelLayout: (stored: SlicerPanelHeights, panelIds:
425
425
 
426
426
  declare type ReviewsSettings = {
427
427
  rowHeight?: number;
428
- sortBy?: string;
428
+ sortBy?: string | string[];
429
429
  sortDesc?: boolean;
430
430
  filter?: QueryFilter_5;
431
431
  columns?: ColumnItemModel[];
@@ -886,7 +886,7 @@ declare type VersionsSettings = {
886
886
  groupSortByDesc?: boolean;
887
887
  showEmptyGroups?: boolean;
888
888
  latestPerFolder?: boolean;
889
- sortBy?: string;
889
+ sortBy?: string | string[];
890
890
  sortDesc?: boolean;
891
891
  filter?: QueryFilter_5;
892
892
  columns?: ColumnItemModel[];
@@ -194,7 +194,7 @@ export declare interface LatestSettingsResult {
194
194
 
195
195
  declare type ListsSettings = {
196
196
  rowHeight?: number;
197
- sortBy?: string;
197
+ sortBy?: string | string[];
198
198
  sortDesc?: boolean;
199
199
  filter?: QueryFilter_5;
200
200
  columns?: ColumnItemModel[];
@@ -262,7 +262,7 @@ declare type OverviewSettings = {
262
262
  groupBy?: string;
263
263
  groupSortByDesc?: boolean;
264
264
  showEmptyGroups?: boolean;
265
- sortBy?: string;
265
+ sortBy?: string | string[];
266
266
  sortDesc?: boolean;
267
267
  filter?: QueryFilter_5;
268
268
  folderFilter?: QueryFilter_5;
@@ -434,7 +434,7 @@ declare type Return_3 = {
434
434
 
435
435
  declare type ReviewsSettings = {
436
436
  rowHeight?: number;
437
- sortBy?: string;
437
+ sortBy?: string | string[];
438
438
  sortDesc?: boolean;
439
439
  filter?: QueryFilter_5;
440
440
  columns?: ColumnItemModel[];
@@ -671,7 +671,7 @@ declare type VersionsSettings = {
671
671
  groupSortByDesc?: boolean;
672
672
  showEmptyGroups?: boolean;
673
673
  latestPerFolder?: boolean;
674
- sortBy?: string;
674
+ sortBy?: string | string[];
675
675
  sortDesc?: boolean;
676
676
  filter?: QueryFilter_5;
677
677
  columns?: ColumnItemModel[];