@ynput/ayon-frontend-shared 0.8.1 → 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 (50) hide show
  1. package/dist/DetailsPanel.es.js +39 -39
  2. package/dist/ListTable.es.js +738 -651
  3. package/dist/NewEntity.es.js +4 -2
  4. package/dist/ProjectTreeTable.es.js +4208 -4185
  5. package/dist/ProjectsTable.es.js +5 -4
  6. package/dist/Slicer.es.js +327 -294
  7. package/dist/Views.es.js +725 -713
  8. package/dist/chunks/ColumnDropIndicator.es.js +33 -27
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +44 -38
  10. package/dist/chunks/EntityPickerDialog.es.js +19 -19
  11. package/dist/chunks/Feed.es.js +112 -110
  12. package/dist/chunks/FilmstripEntityCard.es.js +2 -2
  13. package/dist/chunks/GroupSettingsFallback.es.js +3 -2
  14. package/dist/chunks/MetaWidget.es.js +828 -809
  15. package/dist/chunks/NewEntityContextInstance.es.js +6 -5
  16. package/dist/chunks/ReviewablesSelector.es.js +76 -76
  17. package/dist/chunks/SimpleTable.es.js +151 -149
  18. package/dist/chunks/Slicer.es.js +637 -617
  19. package/dist/chunks/TableExportContextInstance.es.js +415 -471
  20. package/dist/chunks/ThumbnailSimple.es.js +11 -11
  21. package/dist/chunks/Watchers.es.js +46 -46
  22. package/dist/chunks/getUris.es.js +1069 -1057
  23. package/dist/chunks/searchTerms.es.js +617 -581
  24. package/dist/chunks/useCreateContextMenu.es.js +15 -13
  25. package/dist/chunks/useLocalStorage.es.js +78 -0
  26. package/dist/components.es.js +916 -884
  27. package/dist/context.es.js +348 -337
  28. package/dist/hooks.es.js +218 -187
  29. package/dist/index.es.js +11 -10
  30. package/dist/types/Actions.d.ts +17 -16
  31. package/dist/types/ContextMenu.d.ts +18 -17
  32. package/dist/types/DetailsPanel.d.ts +17 -16
  33. package/dist/types/EntityPickerDialog.d.ts +17 -16
  34. package/dist/types/Feed.d.ts +18 -17
  35. package/dist/types/ListTable.d.ts +28 -18
  36. package/dist/types/NewEntity.d.ts +19 -16
  37. package/dist/types/ProjectTreeTable.d.ts +62 -19
  38. package/dist/types/ProjectsTable.d.ts +18 -17
  39. package/dist/types/RepresentationsList.d.ts +17 -16
  40. package/dist/types/SimpleTable.d.ts +18 -17
  41. package/dist/types/Slicer.d.ts +24 -17
  42. package/dist/types/Views.d.ts +23 -17
  43. package/dist/types/api.d.ts +18 -17
  44. package/dist/types/components.d.ts +64 -18
  45. package/dist/types/context.d.ts +28 -18
  46. package/dist/types/hooks.d.ts +20 -17
  47. package/dist/types/index.d.ts +17 -16
  48. package/dist/types/util.d.ts +38 -16
  49. package/dist/util.es.js +116 -113
  50. package/package.json +2 -2
package/dist/hooks.es.js CHANGED
@@ -1,17 +1,18 @@
1
- import { c as G, b as R, a as V } from "./chunks/TableExportContextInstance.es.js";
2
- import { n as Ae, r as Ie, o as He, l as Pe, p as Ge, w as Re } from "./chunks/TableExportContextInstance.es.js";
3
- import { u as k } from "./chunks/useLoadModule.es.js";
4
- import { loadRemote as x } from "@module-federation/enhanced/runtime";
5
- import { useRef as M, useState as v, useEffect as b, useCallback as H } from "react";
6
- import S from "semver";
7
- import { k as ke, l as xe, m as Me, n as Te, o as Ce, p as Ne } from "./chunks/Watchers.es.js";
8
- import { u as Ke } from "./chunks/useActionTriggers.es.js";
9
- import { bc as T } from "./chunks/searchTerms.es.js";
10
- import { bB as C, cY as N } from "./chunks/getUris.es.js";
1
+ import { r as Ve, u as be, w as ke } from "./chunks/useLocalStorage.es.js";
2
+ import { c as V, n as b, o as k, b as M, a as R } from "./chunks/TableExportContextInstance.es.js";
3
+ import { r as Re, l as Te, w as Ce } from "./chunks/TableExportContextInstance.es.js";
4
+ import { u as T } from "./chunks/useLoadModule.es.js";
5
+ import { loadRemote as C } from "@module-federation/enhanced/runtime";
6
+ import { useRef as N, useState as S, useEffect as A, useMemo as G, useCallback as x } from "react";
7
+ import v from "semver";
8
+ import { k as Oe, l as Ke, m as Ue, n as _e, o as Fe, p as je } from "./chunks/Watchers.es.js";
9
+ import { u as $e } from "./chunks/useActionTriggers.es.js";
10
+ import { bc as O } from "./chunks/searchTerms.es.js";
11
+ import { bB as K, cY as U } from "./chunks/getUris.es.js";
11
12
  import "primereact/confirmdialog";
12
13
  import "react/jsx-runtime";
13
14
  import "@ynput/ayon-addon/host";
14
- import { toast as O } from "react-toastify";
15
+ import { toast as _ } from "react-toastify";
15
16
  import "@ynput/ayon-react-components";
16
17
  import "lodash";
17
18
  import "uuid";
@@ -20,184 +21,214 @@ import "./chunks/ContextMenuContextInstance.es.js";
20
21
  import "clsx";
21
22
  import "react-dom";
22
23
  import "react-router-dom";
23
- import { u as _e } from "./chunks/EntityPickerDialog.es.js";
24
- import { u as $e } from "./chunks/ProjectFoldersContext.es.js";
25
- import { u as Be } from "./chunks/useGroupedPagination.es.js";
26
- import { G as K } from "./chunks/GroupSettingsFallback.es.js";
27
- import { i as U } from "./chunks/isHTMLElement.es.js";
28
- import { f as Fe } from "./chunks/MetaWidget.es.js";
29
- import { u as qe } from "./chunks/useAttributeEnums.es.js";
30
- import { a as _ } from "./chunks/afterStartup.es.js";
31
- const me = (e, o, t) => {
32
- const n = M(/* @__PURE__ */ new Set()), [u, r] = v(
33
- () => g(e)
34
- ), [s, m] = v(o.length > 0 && !t);
35
- b(() => {
36
- t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(g(e)));
24
+ import { u as Be } from "./chunks/EntityPickerDialog.es.js";
25
+ import { u as Qe } from "./chunks/ProjectFoldersContext.es.js";
26
+ import { u as Je } from "./chunks/useGroupedPagination.es.js";
27
+ import { G as F } from "./chunks/GroupSettingsFallback.es.js";
28
+ import { i as j } from "./chunks/isHTMLElement.es.js";
29
+ import { f as Ye } from "./chunks/MetaWidget.es.js";
30
+ import { u as et } from "./chunks/useAttributeEnums.es.js";
31
+ import { a as W } from "./chunks/afterStartup.es.js";
32
+ const Le = (e, o, t) => {
33
+ const n = N(/* @__PURE__ */ new Set()), [i, r] = S(
34
+ () => c(e)
35
+ ), [s, u] = S(o.length > 0 && !t);
36
+ A(() => {
37
+ t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(c(e)));
37
38
  }, [JSON.stringify(e), t]);
38
- const i = async (d, l, c, h, f) => {
39
+ const a = async (f, m, g, y, p) => {
39
40
  try {
40
- const a = await x(`${d}/${l}`, {
41
+ const l = await C(`${f}/${m}`, {
41
42
  from: "runtime"
42
43
  });
43
- p(c, d, l, a?.default || h, f);
44
- } catch (a) {
45
- throw console.error("Error loading remote module", d, l, a), a;
44
+ h(g, f, m, l?.default || y, p);
45
+ } catch (l) {
46
+ throw console.error("Error loading remote module", f, m, l), l;
46
47
  }
47
48
  };
48
- b(() => {
49
+ A(() => {
49
50
  if (t) {
50
- m(!1);
51
+ u(!1);
51
52
  return;
52
53
  }
53
- u.every((c) => !c[1].isLoaded) && n.current.size > 0 && (console.log("resetting processedModules - results were reset"), n.current = /* @__PURE__ */ new Set()), console.log("loading modules");
54
- const l = [];
55
- if (e.forEach((c, h) => {
56
- const { addon: f, remote: a, module: y, fallback: L, minVersion: E } = c;
57
- if (!f || !a || !y) {
58
- console.log("Invalid module spec", c);
54
+ i.every((g) => !g[1].isLoaded) && n.current.size > 0 && (console.log("resetting processedModules - results were reset"), n.current = /* @__PURE__ */ new Set()), console.log("loading modules");
55
+ const m = [];
56
+ if (e.forEach((g, y) => {
57
+ const { addon: p, remote: l, module: L, fallback: E, minVersion: w } = g;
58
+ if (!p || !l || !L) {
59
+ console.log("Invalid module spec", g);
59
60
  return;
60
61
  }
61
- const A = `${f}/${a}/${y}`;
62
- if (n.current.has(A)) {
63
- console.log("skipping already processed module", A);
62
+ const I = `${p}/${l}/${L}`;
63
+ if (n.current.has(I)) {
64
+ console.log("skipping already processed module", I);
64
65
  return;
65
66
  }
66
- if (u[h]?.[1]?.isLoaded) {
67
- n.current.add(A);
67
+ if (i[y]?.[1]?.isLoaded) {
68
+ n.current.add(I);
68
69
  return;
69
70
  }
70
- n.current.add(A);
71
- const I = o.find((P) => P.addonName === f);
72
- if (!I) {
73
- console.log("Addon not found", { addon: f, remote: a, module: y });
71
+ n.current.add(I);
72
+ const P = o.find((H) => H.addonName === p);
73
+ if (!P) {
74
+ console.log("Addon not found", { addon: p, remote: l, module: L });
74
75
  return;
75
76
  }
76
- if (E && !S.gte(I.addonVersion, E)) {
77
- w(
78
- h,
79
- f,
80
- a,
77
+ if (w && !v.gte(P.addonVersion, w)) {
78
+ d(
81
79
  y,
80
+ p,
81
+ l,
82
82
  L,
83
83
  E,
84
- I.addonVersion
84
+ w,
85
+ P.addonVersion
85
86
  );
86
87
  return;
87
88
  }
88
- if (!I.modules[a]) {
89
- console.log("Module not found", { addon: f, remote: a, module: y });
89
+ if (!P.modules[l]) {
90
+ console.log("Module not found", { addon: p, remote: l, module: L });
90
91
  return;
91
92
  }
92
- l.push(i(a, y, f, L, E));
93
- }), !l.length) {
94
- m(!1);
93
+ m.push(a(l, L, p, E, w));
94
+ }), !m.length) {
95
+ u(!1);
95
96
  return;
96
97
  }
97
- m(!0), Promise.all(l).then(() => {
98
- m(!1);
99
- }).catch((c) => {
100
- console.error("Error loading modules", c), m(!1);
98
+ u(!0), Promise.all(m).then(() => {
99
+ u(!1);
100
+ }).catch((g) => {
101
+ console.error("Error loading modules", g), u(!1);
101
102
  });
102
- }, [t, o, JSON.stringify(e), u]);
103
- function g(d) {
104
- return d.map(
105
- ({ addon: l = "", remote: c = "", module: h = "", fallback: f, minVersion: a }) => [
106
- f,
103
+ }, [t, o, JSON.stringify(e), i]);
104
+ function c(f) {
105
+ return f.map(
106
+ ({ addon: m = "", remote: g = "", module: y = "", fallback: p, minVersion: l }) => [
107
+ p,
107
108
  {
108
109
  isLoaded: !1,
109
- addon: l,
110
- remote: c,
111
- module: h,
112
- minVersion: a,
110
+ addon: m,
111
+ remote: g,
112
+ module: y,
113
+ minVersion: l,
113
114
  outdated: void 0
114
115
  }
115
116
  ]
116
117
  );
117
118
  }
118
- function w(d, l, c, h, f, a, y) {
119
- r((L) => {
120
- const E = [...L];
121
- return d >= 0 && d < E.length && (E[d] = [
122
- f,
119
+ function d(f, m, g, y, p, l, L) {
120
+ r((E) => {
121
+ const w = [...E];
122
+ return f >= 0 && f < w.length && (w[f] = [
123
+ p,
123
124
  {
124
125
  isLoaded: !1,
125
- addon: l,
126
- remote: c,
127
- module: h,
128
- minVersion: a,
126
+ addon: m,
127
+ remote: g,
128
+ module: y,
129
+ minVersion: l,
129
130
  outdated: {
130
- current: y,
131
- required: a
131
+ current: L,
132
+ required: l
132
133
  }
133
134
  }
134
- ]), E;
135
+ ]), w;
135
136
  });
136
137
  }
137
- function p(d, l, c, h, f) {
138
- r((a) => {
139
- const y = [...a], L = e.findIndex(
140
- (E) => E.addon === d && E.remote === l && E.module === c
138
+ function h(f, m, g, y, p) {
139
+ r((l) => {
140
+ const L = [...l], E = e.findIndex(
141
+ (w) => w.addon === f && w.remote === m && w.module === g
141
142
  );
142
- return L >= 0 && L < y.length && (y[L] = [
143
- h,
143
+ return E >= 0 && E < L.length && (L[E] = [
144
+ y,
144
145
  {
145
146
  isLoaded: !0,
146
- addon: d,
147
- remote: l,
148
- module: c,
149
- minVersion: f,
147
+ addon: f,
148
+ remote: m,
149
+ module: g,
150
+ minVersion: p,
150
151
  outdated: void 0
151
152
  }
152
- ]), y;
153
+ ]), L;
153
154
  });
154
155
  }
155
- return { modules: u, isLoading: s };
156
- }, ge = ({ selectors: e = [], init: o }) => {
157
- const { user: t } = G(), { data: { frontendPreferences: n = {} } = {} } = t || {}, u = e.filter((i) => i != null).map((i) => i.replace(/\s/g, ""));
156
+ return { modules: i, isLoading: s };
157
+ }, we = ({ selectors: e = [], init: o }) => {
158
+ const { user: t } = V(), { data: { frontendPreferences: n = {} } = {} } = t || {}, i = e.filter((a) => a != null).map((a) => a.replace(/\s/g, ""));
158
159
  let r = n;
159
- for (const i of u)
160
- r = r?.[i];
160
+ for (const a of i)
161
+ r = r?.[a];
161
162
  r = r || o || {};
162
- const [s] = T();
163
- return [r, async (i) => {
163
+ const [s] = O();
164
+ return [r, async (a) => {
164
165
  try {
165
166
  if (!t?.name) throw { data: { detail: "User not found" } };
166
- let g = { ...n };
167
- const w = (p, d, l) => {
168
- if (d.length === 0) return { ...p, ...l };
169
- const [c, ...h] = d, f = p?.[c] || {};
167
+ let c = { ...n };
168
+ const d = (h, f, m) => {
169
+ if (f.length === 0) return { ...h, ...m };
170
+ const [g, ...y] = f, p = h?.[g] || {};
170
171
  return {
171
- ...p,
172
- [c]: w(f, h, l)
172
+ ...h,
173
+ [g]: d(p, y, m)
173
174
  };
174
175
  };
175
- g = w(g, u, i), await s({
176
+ c = d(c, i, a), await s({
176
177
  userName: t.name,
177
- patchData: g,
178
+ patchData: c,
178
179
  // @ts-expect-error - disableInvalidations is not in the api
179
180
  disableInvalidations: !0
180
181
  }).unwrap();
181
- } catch (g) {
182
- console.error(g), O.error(g.data?.detail);
182
+ } catch (c) {
183
+ console.error(c), _.error(c.data?.detail);
183
184
  }
184
185
  }, { isSuccess: !0 }];
185
- }, pe = ({ groupBy: e, projectName: o, entityType: t }) => {
186
+ }, $ = {
187
+ task: (e) => !!e.hasTasks,
188
+ // hasVersions is true for the whole subtree, so parents show up as groups too
189
+ version: (e) => !!e.hasVersions,
190
+ product: (e) => e.hasProducts ?? !!e.hasVersions
191
+ }, z = (e, o, t) => {
192
+ const { folders: n, isLoading: i, getChildFolderIds: r } = b(), { getFolderType: s } = k(), u = G(
193
+ () => o && t?.length ? new Set(r(t, !0)) : null,
194
+ [o, t, r]
195
+ );
196
+ return { groups: G(() => {
197
+ const c = $[e];
198
+ return !o || !c ? [] : n.filter((d) => c(d) && (!u || u.has(d.id))).sort((d, h) => d.path < h.path ? -1 : d.path > h.path ? 1 : 0).map((d) => ({
199
+ value: d.id,
200
+ label: d.path,
201
+ icon: s(d.folderType)?.icon
202
+ }));
203
+ }, [o, e, n, s, u]), isLoading: o && i };
204
+ }, Ee = ({
205
+ groupBy: e,
206
+ projectName: o,
207
+ entityType: t,
208
+ folderIds: n
209
+ }) => {
186
210
  e?.id === "taskType" && (t = "task");
187
- const n = e?.id || "", { data: { groups: u = [] } = {}, error: r } = C(
188
- { projectName: o, entityType: t, groupingKey: n, empty: !0 },
189
- { skip: !e?.id }
211
+ const i = e?.id === "folderId", r = z(t, i, n), {
212
+ data: { groups: s = [] } = {},
213
+ currentData: u,
214
+ isFetching: a,
215
+ error: c
216
+ } = K(
217
+ { projectName: o, entityType: t, groupingKey: e?.id || "", empty: !0 },
218
+ { skip: !e?.id || i }
190
219
  );
191
- return {
192
- groups: u,
193
- error: r
220
+ return i ? { ...r, error: void 0 } : {
221
+ groups: s,
222
+ error: c,
223
+ // data still holds the previous key's groups while the new ones load
224
+ isLoading: a && !u
194
225
  };
195
- }, he = () => {
196
- const { powerLicense: e } = R(), [o, { outdated: t, isLoading: n }] = k({
226
+ }, ve = () => {
227
+ const { powerLicense: e } = M(), [o, { outdated: t, isLoading: n }] = T({
197
228
  addon: "powerpack",
198
229
  remote: "slicer",
199
230
  module: "GroupSettings",
200
- fallback: K,
231
+ fallback: F,
201
232
  minVersion: "1.1.1-dev",
202
233
  skip: !e
203
234
  // skip loading if powerpack license is not available
@@ -207,55 +238,55 @@ const me = (e, o, t) => {
207
238
  requiredVersion: t?.required,
208
239
  isLoading: n
209
240
  };
210
- }, W = ["w", "s"];
211
- function ye({
241
+ }, B = ["w", "s"];
242
+ function Se({
212
243
  reviewables: e,
213
244
  selected: o,
214
245
  onChange: t,
215
246
  onNavigate: n,
216
- enabled: u = !0
247
+ enabled: i = !0
217
248
  }) {
218
- b(() => {
219
- if (!u || e.length <= 1) return;
249
+ A(() => {
250
+ if (!i || e.length <= 1) return;
220
251
  const r = (s) => {
221
- const m = s.key.length === 1 ? s.key.toLowerCase() : s.key;
222
- if (!W.includes(m) || s.metaKey || s.ctrlKey || s.altKey || U(s.target) && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable))
252
+ const u = s.key.length === 1 ? s.key.toLowerCase() : s.key;
253
+ if (!B.includes(u) || s.metaKey || s.ctrlKey || s.altKey || j(s.target) && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable))
223
254
  return;
224
- const w = e.findIndex(({ fileId: d }) => o.includes(d)) + (m === "w" ? -1 : 1), p = e[w < 0 ? e.length - 1 : w % e.length];
225
- p && (t?.(p.fileId), n?.(p));
255
+ const d = e.findIndex(({ fileId: f }) => o.includes(f)) + (u === "w" ? -1 : 1), h = e[d < 0 ? e.length - 1 : d % e.length];
256
+ h && (t?.(h.fileId), n?.(h));
226
257
  };
227
258
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
228
- }, [u, e, o, t, n]);
259
+ }, [i, e, o, t, n]);
229
260
  }
230
- const $ = 4, j = 0.3;
231
- function Ee({
261
+ const D = 4, Q = 0.3;
262
+ function Ae({
232
263
  containerRef: e,
233
264
  toolsRef: o,
234
265
  reviewablesCount: t
235
266
  }) {
236
- const [n, u] = v(0), [r, s] = v(0);
237
- return console.log("containerHeight:", n, "toolsHeight:", r), b(() => {
238
- const i = e.current, g = o.current;
239
- if (!i) return;
240
- const w = () => {
241
- u(i.clientHeight), s(g?.offsetHeight ?? 0);
267
+ const [n, i] = S(0), [r, s] = S(0);
268
+ return console.log("containerHeight:", n, "toolsHeight:", r), A(() => {
269
+ const a = e.current, c = o.current;
270
+ if (!a) return;
271
+ const d = () => {
272
+ i(a.clientHeight), s(c?.offsetHeight ?? 0);
242
273
  };
243
- w();
244
- const p = new ResizeObserver(w);
245
- return p.observe(i), g && p.observe(g), () => p.disconnect();
246
- }, [e, o]), t <= $ || !n || !r ? "column" : n - r < n * j ? "row" : "column";
274
+ d();
275
+ const h = new ResizeObserver(d);
276
+ return h.observe(a), c && h.observe(c), () => h.disconnect();
277
+ }, [e, o]), t <= D || !n || !r ? "column" : n - r < n * Q ? "row" : "column";
247
278
  }
248
- const we = () => {
249
- const { data: e, isLoading: o, isError: t } = N({});
279
+ const Ie = () => {
280
+ const { data: e, isLoading: o, isError: t } = U({});
250
281
  return {
251
- getProductionAddon: H(
252
- (u, r) => {
282
+ getProductionAddon: x(
283
+ (i, r) => {
253
284
  if (!e?.addons) return;
254
- const s = e.addons.find((i) => i.name === u), m = s?.productionVersion;
255
- if (!(!s || !m) && !(r?.version && m !== r.version)) {
285
+ const s = e.addons.find((a) => a.name === i), u = s?.productionVersion;
286
+ if (!(!s || !u) && !(r?.version && u !== r.version)) {
256
287
  if (r?.minVersion)
257
288
  try {
258
- if (!(S.gte(m, r.minVersion) || S.gte(S.coerce(m) || "0.0.0", r.minVersion))) return;
289
+ if (!(v.gte(u, r.minVersion) || v.gte(v.coerce(u) || "0.0.0", r.minVersion))) return;
259
290
  } catch {
260
291
  return;
261
292
  }
@@ -267,19 +298,19 @@ const we = () => {
267
298
  isLoading: o,
268
299
  isError: t
269
300
  };
270
- }, B = (e, { version: o, minVersion: t } = {}) => {
301
+ }, q = (e, { version: o, minVersion: t } = {}) => {
271
302
  if (o && e !== o) return !1;
272
303
  if (!t) return !0;
273
304
  try {
274
- return S.gte(e, t) || S.gte(S.coerce(e) || "0.0.0", t);
305
+ return v.gte(e, t) || v.gte(v.coerce(e) || "0.0.0", t);
275
306
  } catch {
276
307
  return !1;
277
308
  }
278
- }, Le = () => {
279
- const { bundle: e } = V(), o = H(
280
- (n, u) => {
309
+ }, Pe = () => {
310
+ const { bundle: e } = R(), o = x(
311
+ (n, i) => {
281
312
  const r = e?.versions[n];
282
- if (!(!r || !B(r, u)))
313
+ if (!(!r || !q(r, i)))
283
314
  return r;
284
315
  },
285
316
  [e]
@@ -289,37 +320,37 @@ const we = () => {
289
320
  bundleVariant: t,
290
321
  isLoading: !e
291
322
  };
292
- }, Se = (e) => {
293
- const [o, t] = v(!1);
294
- return b(() => _(() => t(!0), e), [e]), o;
323
+ }, Ge = (e) => {
324
+ const [o, t] = S(!1);
325
+ return A(() => W(() => t(!0), e), [e]), o;
295
326
  };
296
327
  export {
297
- ke as filterProjectStatuses,
298
- Ae as readLocalStorage,
299
- Ie as readSessionStorage,
300
- Ke as useActionTriggers,
301
- Se as useAfterStartup,
302
- xe as useAttributeEnumOptions,
303
- qe as useAttributeEnums,
304
- Fe as useEditProjectTags,
305
- Me as useEntityUpdate,
306
- Te as useFetchAttributeEnumOptions,
307
- Le as useGetBundleAddon,
308
- pe as useGetEntityGroups,
309
- we as useGetProductionAddon,
310
- he as useGroupByRemoteModules,
311
- Be as useGroupedPagination,
312
- _e as useHierarchyTable,
313
- k as useLoadModule,
314
- me as useLoadModules,
315
- He as useLocalStorage,
316
- $e as useQueryArgumentChangeLoading,
317
- ye as useReviewablesKeyboardNavigation,
318
- Ee as useReviewablesLayout,
319
- Ce as useScopedStatuses,
320
- Ne as useScopedTypes,
321
- Pe as useSessionStorage,
322
- ge as useUserProjectConfig,
323
- Ge as writeLocalStorage,
324
- Re as writeSessionStorage
328
+ Oe as filterProjectStatuses,
329
+ Ve as readLocalStorage,
330
+ Re as readSessionStorage,
331
+ $e as useActionTriggers,
332
+ Ge as useAfterStartup,
333
+ Ke as useAttributeEnumOptions,
334
+ et as useAttributeEnums,
335
+ Ye as useEditProjectTags,
336
+ Ue as useEntityUpdate,
337
+ _e as useFetchAttributeEnumOptions,
338
+ Pe as useGetBundleAddon,
339
+ Ee as useGetEntityGroups,
340
+ Ie as useGetProductionAddon,
341
+ ve as useGroupByRemoteModules,
342
+ Je as useGroupedPagination,
343
+ Be as useHierarchyTable,
344
+ T as useLoadModule,
345
+ Le as useLoadModules,
346
+ be as useLocalStorage,
347
+ Qe as useQueryArgumentChangeLoading,
348
+ Se as useReviewablesKeyboardNavigation,
349
+ Ae as useReviewablesLayout,
350
+ Fe as useScopedStatuses,
351
+ je as useScopedTypes,
352
+ Te as useSessionStorage,
353
+ we as useUserProjectConfig,
354
+ ke as writeLocalStorage,
355
+ Ce as writeSessionStorage
325
356
  };
package/dist/index.es.js CHANGED
@@ -8,8 +8,8 @@ import "./chunks/SimpleForm.es.js";
8
8
  import "./chunks/MetaWidget.es.js";
9
9
  import "react-dom";
10
10
  import "date-fns";
11
- import { U as $ } from "./chunks/FilmstripEntityCard.es.js";
12
- import { u as or } from "./chunks/TableExportContextInstance.es.js";
11
+ import { U as rr } from "./chunks/FilmstripEntityCard.es.js";
12
+ import { u as mr } from "./chunks/TableExportContextInstance.es.js";
13
13
  import "lodash";
14
14
  import "primereact/confirmdialog";
15
15
  import "react-toastify";
@@ -32,9 +32,9 @@ import "@module-federation/enhanced/runtime";
32
32
  import "@ynput/ayon-addon/host";
33
33
  import "semver";
34
34
  import "./chunks/ContextMenuContextInstance.es.js";
35
- import { M as tr } from "./chunks/MenuContext.es.js";
35
+ import { M as pr } from "./chunks/MenuContext.es.js";
36
36
  import "react-router-dom";
37
- import { E as ir } from "./chunks/EmptyPlaceholder.es.js";
37
+ import { E as er } from "./chunks/EmptyPlaceholder.es.js";
38
38
  import "./chunks/EmptyPlaceholderFlex.styled.es.js";
39
39
  import "./chunks/InfoMessage.es.js";
40
40
  import "@dnd-kit/core";
@@ -53,11 +53,12 @@ import "primereact/splitter";
53
53
  import "./chunks/Slicer.es.js";
54
54
  import "./chunks/NewEntityContextInstance.es.js";
55
55
  import "./chunks/Menu.es.js";
56
- import { T as ar } from "./chunks/ThumbnailSimple.es.js";
56
+ import "primereact-context/contextmenu";
57
+ import { T as sr } from "./chunks/ThumbnailSimple.es.js";
57
58
  export {
58
- ir as EmptyPlaceholder,
59
- tr as MenuProvider,
60
- ar as ThumbnailSimple,
61
- $ as UserImage,
62
- or as useMenuContext
59
+ er as EmptyPlaceholder,
60
+ pr as MenuProvider,
61
+ sr as ThumbnailSimple,
62
+ rr as UserImage,
63
+ mr as useMenuContext
63
64
  };
@@ -78,6 +78,22 @@ declare type IconModel = {
78
78
  export { }
79
79
 
80
80
 
81
+ declare module '@tanstack/react-table' {
82
+ interface FilterFns {
83
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
84
+ }
85
+ interface FilterMeta {
86
+ itemRank: RankingInfo;
87
+ }
88
+ interface TableMeta<TData extends RowData> {
89
+ isExpandable?: boolean;
90
+ isLoading?: boolean;
91
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
92
+ [key: string]: any;
93
+ }
94
+ }
95
+
96
+
81
97
  declare module '@tanstack/react-table' {
82
98
  interface ColumnMeta<TData extends RowData, TValue> {
83
99
  addonColumn?: AddonColumnMeta;
@@ -95,22 +111,6 @@ declare module '@tanstack/react-table' {
95
111
  }
96
112
 
97
113
 
98
- declare module '@tanstack/react-table' {
99
- interface FilterFns {
100
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
101
- }
102
- interface FilterMeta {
103
- itemRank: RankingInfo;
104
- }
105
- interface TableMeta<TData extends RowData> {
106
- isExpandable?: boolean;
107
- isLoading?: boolean;
108
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
109
- [key: string]: any;
110
- }
111
- }
112
-
113
-
114
114
  declare global {
115
115
  interface Window {
116
116
  senderId: string;
@@ -121,6 +121,7 @@ declare global {
121
121
  declare module '@tanstack/react-table' {
122
122
  interface ColumnMeta<TData extends RowData, TValue> {
123
123
  listTableCustomCell?: boolean;
124
+ listTableGrow?: boolean;
124
125
  editable?: boolean;
125
126
  }
126
127
  interface TableMeta<TData extends RowData> {