@ynput/ayon-frontend-shared 0.7.5 → 0.8.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 (74) hide show
  1. package/dist/DetailsPanel.es.js +471 -469
  2. package/dist/Feed.es.js +1 -1
  3. package/dist/ListTable.es.js +20 -20
  4. package/dist/NewEntity.es.js +7 -7
  5. package/dist/ProjectTreeTable.es.js +2523 -2502
  6. package/dist/ProjectsTable.es.js +5 -5
  7. package/dist/Slicer.es.js +28 -25
  8. package/dist/Views.es.js +150 -151
  9. package/dist/api.es.js +166 -165
  10. package/dist/chunks/Actions.es.js +9 -10
  11. package/dist/chunks/ColumnDropIndicator.es.js +4 -4
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +4 -5
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
  14. package/dist/chunks/DetailsDialog.es.js +3 -3
  15. package/dist/chunks/EmptyPlaceholder.es.js +7 -7
  16. package/dist/chunks/EntityPath.es.js +38 -39
  17. package/dist/chunks/EntityPickerDialog.es.js +482 -462
  18. package/dist/chunks/EntityTooltip.es.js +18 -19
  19. package/dist/chunks/Feed.es.js +1382 -1355
  20. package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
  21. package/dist/chunks/FilterErrorActions.es.js +3 -4
  22. package/dist/chunks/GroupSettingsFallback.es.js +4 -4
  23. package/dist/chunks/Menu.es.js +242 -240
  24. package/dist/chunks/MetaWidget.es.js +1948 -1875
  25. package/dist/chunks/ProjectFoldersContext.es.js +237 -0
  26. package/dist/chunks/RepresentationsList.es.js +1 -1
  27. package/dist/chunks/ReviewablesSelector.es.js +1260 -1190
  28. package/dist/chunks/SimpleTable.es.js +303 -297
  29. package/dist/chunks/Slicer.es.js +420 -413
  30. package/dist/chunks/TableExportContextInstance.es.js +622 -378
  31. package/dist/chunks/TableSettingsFallback.es.js +3 -4
  32. package/dist/chunks/ThumbnailSimple.es.js +114 -99
  33. package/dist/chunks/ThumbnailUploaderContext.es.js +48 -0
  34. package/dist/chunks/VideoPlayer.es.js +8 -9
  35. package/dist/chunks/Watchers.es.js +929 -872
  36. package/dist/chunks/{ColumnDropIndicator.styled.es.js → addonColumnTags.es.js} +60 -47
  37. package/dist/chunks/expandRelativeDates.es.js +1 -1
  38. package/dist/chunks/getThumbnailUrl.es.js +33 -21
  39. package/dist/chunks/getUris.es.js +1580 -1610
  40. package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
  41. package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
  42. package/dist/chunks/searchTerms.es.js +773 -696
  43. package/dist/chunks/useAttributeEnums.es.js +22 -22
  44. package/dist/chunks/useDateRangeFilter.es.js +1 -1
  45. package/dist/chunks/useHierarchySelection.es.js +3 -4
  46. package/dist/chunks/useLoadModule.es.js +3 -4
  47. package/dist/components.es.js +1391 -1253
  48. package/dist/context.es.js +645 -668
  49. package/dist/hooks.es.js +193 -171
  50. package/dist/index.es.js +4 -4
  51. package/dist/types/Actions.d.ts +10 -8
  52. package/dist/types/DetailsPanel.d.ts +54 -76
  53. package/dist/types/EntityPickerDialog.d.ts +51 -2
  54. package/dist/types/Feed.d.ts +24 -24
  55. package/dist/types/ListTable.d.ts +33 -27
  56. package/dist/types/NewEntity.d.ts +26 -39
  57. package/dist/types/ProjectTreeTable.d.ts +318 -212
  58. package/dist/types/ProjectsTable.d.ts +6 -6
  59. package/dist/types/RepresentationsList.d.ts +4 -0
  60. package/dist/types/Slicer.d.ts +63 -246
  61. package/dist/types/Views.d.ts +71 -298
  62. package/dist/types/api.d.ts +3164 -2363
  63. package/dist/types/components.d.ts +537 -497
  64. package/dist/types/context.d.ts +293 -572
  65. package/dist/types/hooks.d.ts +76 -47
  66. package/dist/types/index.d.ts +6 -0
  67. package/dist/types/util.d.ts +141 -120
  68. package/dist/util.es.js +71 -68
  69. package/package.json +6 -6
  70. package/dist/chunks/EntityUpdatesContext.es.js +0 -61
  71. package/dist/chunks/PlayableIcon.es.js +0 -5020
  72. package/dist/chunks/ProjectContext.es.js +0 -158
  73. package/dist/chunks/useQueryArgumentChangeLoading.es.js +0 -11
  74. package/dist/chunks/viewUpdateHelper.es.js +0 -153
package/dist/hooks.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { d as P, b as x } from "./chunks/TableExportContextInstance.es.js";
2
- import { r as ve, p as Ie, q as be, o as Ae, w as He, s as Pe } from "./chunks/TableExportContextInstance.es.js";
3
- import { u as G } from "./chunks/useLoadModule.es.js";
4
- import { loadRemote as R } from "@module-federation/enhanced/runtime";
5
- import { useRef as T, useState as S, useEffect as v, useCallback as V } from "react";
6
- import A from "semver";
7
- import { f as Ge, u as Re, a as Te, b as Ve, c as ke, d as Me } from "./chunks/Watchers.es.js";
8
- import { u as Ne } from "./chunks/useActionTriggers.es.js";
9
- import { bc as k } from "./chunks/searchTerms.es.js";
10
- import { bA as M, cX as C } from "./chunks/getUris.es.js";
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";
11
11
  import "primereact/confirmdialog";
12
12
  import "react/jsx-runtime";
13
13
  import "@ynput/ayon-addon/host";
14
- import { toast as N } from "react-toastify";
14
+ import { toast as O } from "react-toastify";
15
15
  import "@ynput/ayon-react-components";
16
16
  import "lodash";
17
17
  import "uuid";
@@ -19,96 +19,95 @@ import "axios";
19
19
  import "./chunks/ContextMenuContextInstance.es.js";
20
20
  import "clsx";
21
21
  import "react-dom";
22
- import "react-redux";
23
22
  import "react-router-dom";
24
- import { u as Ke } from "./chunks/EntityPickerDialog.es.js";
25
- import { u as _e } from "./chunks/useQueryArgumentChangeLoading.es.js";
26
- import { u as $e } from "./chunks/useGroupedPagination.es.js";
27
- import { G as O } from "./chunks/GroupSettingsFallback.es.js";
28
- import { i as K } from "./chunks/isHTMLElement.es.js";
29
- import { c as qe } from "./chunks/MetaWidget.es.js";
30
- import { u as Fe } from "./chunks/useAttributeEnums.es.js";
31
- import { a as U } from "./chunks/afterStartup.es.js";
32
- const fe = (e, s, r) => {
33
- const o = T(/* @__PURE__ */ new Set()), [f, t] = S(
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(
34
33
  () => g(e)
35
- ), [n, m] = S(s.length > 0 && !r);
36
- v(() => {
37
- r || (console.log("resetting processedModules"), o.current = /* @__PURE__ */ new Set(), t(g(e)));
38
- }, [JSON.stringify(e), r]);
39
- const i = async (u, c, d, h, l) => {
34
+ ), [s, m] = v(o.length > 0 && !t);
35
+ b(() => {
36
+ t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(g(e)));
37
+ }, [JSON.stringify(e), t]);
38
+ const i = async (d, l, c, h, f) => {
40
39
  try {
41
- const a = await R(`${u}/${c}`, {
40
+ const a = await x(`${d}/${l}`, {
42
41
  from: "runtime"
43
42
  });
44
- p(d, u, c, a?.default || h, l);
43
+ p(c, d, l, a?.default || h, f);
45
44
  } catch (a) {
46
- throw console.error("Error loading remote module", u, c, a), a;
45
+ throw console.error("Error loading remote module", d, l, a), a;
47
46
  }
48
47
  };
49
- v(() => {
50
- if (r) {
48
+ b(() => {
49
+ if (t) {
51
50
  m(!1);
52
51
  return;
53
52
  }
54
- f.every((d) => !d[1].isLoaded) && o.current.size > 0 && (console.log("resetting processedModules - results were reset"), o.current = /* @__PURE__ */ new Set()), console.log("loading modules");
55
- const c = [];
56
- if (e.forEach((d, h) => {
57
- const { addon: l, remote: a, module: y, fallback: L, minVersion: E } = d;
58
- if (!l || !a || !y) {
59
- console.log("Invalid module spec", d);
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);
60
59
  return;
61
60
  }
62
- const I = `${l}/${a}/${y}`;
63
- if (o.current.has(I)) {
64
- console.log("skipping already processed module", I);
61
+ const A = `${f}/${a}/${y}`;
62
+ if (n.current.has(A)) {
63
+ console.log("skipping already processed module", A);
65
64
  return;
66
65
  }
67
- if (f[h]?.[1]?.isLoaded) {
68
- o.current.add(I);
66
+ if (u[h]?.[1]?.isLoaded) {
67
+ n.current.add(A);
69
68
  return;
70
69
  }
71
- o.current.add(I);
72
- const b = s.find((H) => H.addonName === l);
73
- if (!b) {
74
- console.log("Addon not found", { addon: l, remote: a, module: y });
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 });
75
74
  return;
76
75
  }
77
- if (E && !A.gte(b.addonVersion, E)) {
76
+ if (E && !S.gte(I.addonVersion, E)) {
78
77
  w(
79
78
  h,
80
- l,
79
+ f,
81
80
  a,
82
81
  y,
83
82
  L,
84
83
  E,
85
- b.addonVersion
84
+ I.addonVersion
86
85
  );
87
86
  return;
88
87
  }
89
- if (!b.modules[a]) {
90
- console.log("Module not found", { addon: l, remote: a, module: y });
88
+ if (!I.modules[a]) {
89
+ console.log("Module not found", { addon: f, remote: a, module: y });
91
90
  return;
92
91
  }
93
- c.push(i(a, y, l, L, E));
94
- }), !c.length) {
92
+ l.push(i(a, y, f, L, E));
93
+ }), !l.length) {
95
94
  m(!1);
96
95
  return;
97
96
  }
98
- m(!0), Promise.all(c).then(() => {
97
+ m(!0), Promise.all(l).then(() => {
99
98
  m(!1);
100
- }).catch((d) => {
101
- console.error("Error loading modules", d), m(!1);
99
+ }).catch((c) => {
100
+ console.error("Error loading modules", c), m(!1);
102
101
  });
103
- }, [r, s, JSON.stringify(e), f]);
104
- function g(u) {
105
- return u.map(
106
- ({ addon: c = "", remote: d = "", module: h = "", fallback: l, minVersion: a }) => [
107
- l,
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,
108
107
  {
109
108
  isLoaded: !1,
110
- addon: c,
111
- remote: d,
109
+ addon: l,
110
+ remote: c,
112
111
  module: h,
113
112
  minVersion: a,
114
113
  outdated: void 0
@@ -116,15 +115,15 @@ const fe = (e, s, r) => {
116
115
  ]
117
116
  );
118
117
  }
119
- function w(u, c, d, h, l, a, y) {
120
- t((L) => {
118
+ function w(d, l, c, h, f, a, y) {
119
+ r((L) => {
121
120
  const E = [...L];
122
- return u >= 0 && u < E.length && (E[u] = [
123
- l,
121
+ return d >= 0 && d < E.length && (E[d] = [
122
+ f,
124
123
  {
125
124
  isLoaded: !1,
126
- addon: c,
127
- remote: d,
125
+ addon: l,
126
+ remote: c,
128
127
  module: h,
129
128
  minVersion: a,
130
129
  outdated: {
@@ -135,169 +134,192 @@ const fe = (e, s, r) => {
135
134
  ]), E;
136
135
  });
137
136
  }
138
- function p(u, c, d, h, l) {
139
- t((a) => {
137
+ function p(d, l, c, h, f) {
138
+ r((a) => {
140
139
  const y = [...a], L = e.findIndex(
141
- (E) => E.addon === u && E.remote === c && E.module === d
140
+ (E) => E.addon === d && E.remote === l && E.module === c
142
141
  );
143
142
  return L >= 0 && L < y.length && (y[L] = [
144
143
  h,
145
144
  {
146
145
  isLoaded: !0,
147
- addon: u,
148
- remote: c,
149
- module: d,
150
- minVersion: l,
146
+ addon: d,
147
+ remote: l,
148
+ module: c,
149
+ minVersion: f,
151
150
  outdated: void 0
152
151
  }
153
152
  ]), y;
154
153
  });
155
154
  }
156
- return { modules: f, isLoading: n };
157
- }, me = ({ selectors: e = [], init: s }) => {
158
- const { user: r } = P(), { data: { frontendPreferences: o = {} } = {} } = r || {}, f = e.filter((i) => i != null).map((i) => i.replace(/\s/g, ""));
159
- let t = o;
160
- for (const i of f)
161
- t = t?.[i];
162
- t = t || s || {};
163
- const [n] = k();
164
- return [t, async (i) => {
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, ""));
158
+ let r = n;
159
+ for (const i of u)
160
+ r = r?.[i];
161
+ r = r || o || {};
162
+ const [s] = T();
163
+ return [r, async (i) => {
165
164
  try {
166
- if (!r?.name) throw { data: { detail: "User not found" } };
167
- let g = { ...o };
168
- const w = (p, u, c) => {
169
- if (u.length === 0) return { ...p, ...c };
170
- const [d, ...h] = u, l = p?.[d] || {};
165
+ 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] || {};
171
170
  return {
172
171
  ...p,
173
- [d]: w(l, h, c)
172
+ [c]: w(f, h, l)
174
173
  };
175
174
  };
176
- g = w(g, f, i), await n({
177
- userName: r.name,
175
+ g = w(g, u, i), await s({
176
+ userName: t.name,
178
177
  patchData: g,
179
178
  // @ts-expect-error - disableInvalidations is not in the api
180
179
  disableInvalidations: !0
181
180
  }).unwrap();
182
181
  } catch (g) {
183
- console.error(g), N.error(g.data?.detail);
182
+ console.error(g), O.error(g.data?.detail);
184
183
  }
185
184
  }, { isSuccess: !0 }];
186
- }, ge = ({ groupBy: e, projectName: s, entityType: r }) => {
187
- e?.id === "taskType" && (r = "task");
188
- const o = e?.id || "", { data: { groups: f = [] } = {}, error: t } = M(
189
- { projectName: s, entityType: r, groupingKey: o, empty: !0 },
185
+ }, pe = ({ groupBy: e, projectName: o, entityType: t }) => {
186
+ 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 },
190
189
  { skip: !e?.id }
191
190
  );
192
191
  return {
193
- groups: f,
194
- error: t
192
+ groups: u,
193
+ error: r
195
194
  };
196
- }, pe = () => {
197
- const { powerLicense: e } = x(), [s, { outdated: r, isLoading: o }] = G({
195
+ }, he = () => {
196
+ const { powerLicense: e } = R(), [o, { outdated: t, isLoading: n }] = k({
198
197
  addon: "powerpack",
199
198
  remote: "slicer",
200
199
  module: "GroupSettings",
201
- fallback: O,
200
+ fallback: K,
202
201
  minVersion: "1.1.1-dev",
203
202
  skip: !e
204
203
  // skip loading if powerpack license is not available
205
204
  });
206
205
  return {
207
- GroupSettings: s,
208
- requiredVersion: r?.required,
209
- isLoading: o
206
+ GroupSettings: o,
207
+ requiredVersion: t?.required,
208
+ isLoading: n
210
209
  };
211
- }, _ = ["w", "s"];
212
- function he({
210
+ }, W = ["w", "s"];
211
+ function ye({
213
212
  reviewables: e,
214
- selected: s,
215
- onChange: r,
216
- onNavigate: o,
217
- enabled: f = !0
213
+ selected: o,
214
+ onChange: t,
215
+ onNavigate: n,
216
+ enabled: u = !0
218
217
  }) {
219
- v(() => {
220
- if (!f || e.length <= 1) return;
221
- const t = (n) => {
222
- const m = n.key.length === 1 ? n.key.toLowerCase() : n.key;
223
- if (!_.includes(m) || n.metaKey || n.ctrlKey || n.altKey || K(n.target) && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable))
218
+ b(() => {
219
+ if (!u || e.length <= 1) return;
220
+ 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))
224
223
  return;
225
- const w = e.findIndex(({ fileId: u }) => s.includes(u)) + (m === "w" ? -1 : 1), p = e[w < 0 ? e.length - 1 : w % e.length];
226
- p && (r?.(p.fileId), o?.(p));
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));
227
226
  };
228
- return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
229
- }, [f, e, s, r, o]);
227
+ return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
228
+ }, [u, e, o, t, n]);
230
229
  }
231
- const W = 4, $ = 0.3;
232
- function ye({
230
+ const $ = 4, j = 0.3;
231
+ function Ee({
233
232
  containerRef: e,
234
- toolsRef: s,
235
- reviewablesCount: r
233
+ toolsRef: o,
234
+ reviewablesCount: t
236
235
  }) {
237
- const [o, f] = S(0), [t, n] = S(0);
238
- return console.log("containerHeight:", o, "toolsHeight:", t), v(() => {
239
- const i = e.current, g = s.current;
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;
240
239
  if (!i) return;
241
240
  const w = () => {
242
- f(i.clientHeight), n(g?.offsetHeight ?? 0);
241
+ u(i.clientHeight), s(g?.offsetHeight ?? 0);
243
242
  };
244
243
  w();
245
244
  const p = new ResizeObserver(w);
246
245
  return p.observe(i), g && p.observe(g), () => p.disconnect();
247
- }, [e, s]), r <= W || !o || !t ? "column" : o - t < o * $ ? "row" : "column";
246
+ }, [e, o]), t <= $ || !n || !r ? "column" : n - r < n * j ? "row" : "column";
248
247
  }
249
- const Ee = () => {
250
- const { data: e, isLoading: s, isError: r } = C({});
248
+ const we = () => {
249
+ const { data: e, isLoading: o, isError: t } = N({});
251
250
  return {
252
- getProductionAddon: V(
253
- (f, t) => {
251
+ getProductionAddon: H(
252
+ (u, r) => {
254
253
  if (!e?.addons) return;
255
- const n = e.addons.find((i) => i.name === f), m = n?.productionVersion;
256
- if (!(!n || !m) && !(t?.version && m !== t.version)) {
257
- if (t?.minVersion)
254
+ const s = e.addons.find((i) => i.name === u), m = s?.productionVersion;
255
+ if (!(!s || !m) && !(r?.version && m !== r.version)) {
256
+ if (r?.minVersion)
258
257
  try {
259
- if (!(A.gte(m, t.minVersion) || A.gte(A.coerce(m) || "0.0.0", t.minVersion))) return;
258
+ if (!(S.gte(m, r.minVersion) || S.gte(S.coerce(m) || "0.0.0", r.minVersion))) return;
260
259
  } catch {
261
260
  return;
262
261
  }
263
- return n;
262
+ return s;
264
263
  }
265
264
  },
266
265
  [e]
267
266
  ),
268
- isLoading: s,
269
- isError: r
267
+ isLoading: o,
268
+ isError: t
269
+ };
270
+ }, B = (e, { version: o, minVersion: t } = {}) => {
271
+ if (o && e !== o) return !1;
272
+ if (!t) return !0;
273
+ try {
274
+ return S.gte(e, t) || S.gte(S.coerce(e) || "0.0.0", t);
275
+ } catch {
276
+ return !1;
277
+ }
278
+ }, Le = () => {
279
+ const { bundle: e } = V(), o = H(
280
+ (n, u) => {
281
+ const r = e?.versions[n];
282
+ if (!(!r || !B(r, u)))
283
+ return r;
284
+ },
285
+ [e]
286
+ ), t = e?.variant ?? "production";
287
+ return {
288
+ getBundleAddonVersion: o,
289
+ bundleVariant: t,
290
+ isLoading: !e
270
291
  };
271
- }, we = (e) => {
272
- const [s, r] = S(!1);
273
- return v(() => U(() => r(!0), e), [e]), s;
292
+ }, Se = (e) => {
293
+ const [o, t] = v(!1);
294
+ return b(() => _(() => t(!0), e), [e]), o;
274
295
  };
275
296
  export {
276
- Ge as filterProjectStatuses,
277
- ve as readLocalStorage,
297
+ ke as filterProjectStatuses,
298
+ Ae as readLocalStorage,
278
299
  Ie as readSessionStorage,
279
- Ne as useActionTriggers,
280
- we as useAfterStartup,
281
- Re as useAttributeEnumOptions,
282
- Fe as useAttributeEnums,
283
- qe as useEditProjectTags,
284
- Te as useEntityUpdate,
285
- Ve as useFetchAttributeEnumOptions,
286
- ge as useGetEntityGroups,
287
- Ee as useGetProductionAddon,
288
- pe as useGroupByRemoteModules,
289
- $e as useGroupedPagination,
290
- Ke as useHierarchyTable,
291
- G as useLoadModule,
292
- fe as useLoadModules,
293
- be as useLocalStorage,
294
- _e as useQueryArgumentChangeLoading,
295
- he as useReviewablesKeyboardNavigation,
296
- ye as useReviewablesLayout,
297
- ke as useScopedStatuses,
298
- Me as useScopedTypes,
299
- Ae as useSessionStorage,
300
- me as useUserProjectConfig,
301
- He as writeLocalStorage,
302
- Pe as writeSessionStorage
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
303
325
  };
package/dist/index.es.js CHANGED
@@ -8,7 +8,7 @@ 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/PlayableIcon.es.js";
11
+ import { U as $ } from "./chunks/FilmstripEntityCard.es.js";
12
12
  import { u as or } from "./chunks/TableExportContextInstance.es.js";
13
13
  import "lodash";
14
14
  import "primereact/confirmdialog";
@@ -33,7 +33,6 @@ import "@ynput/ayon-addon/host";
33
33
  import "semver";
34
34
  import "./chunks/ContextMenuContextInstance.es.js";
35
35
  import { M as tr } from "./chunks/MenuContext.es.js";
36
- import "react-redux";
37
36
  import "react-router-dom";
38
37
  import { E as ir } from "./chunks/EmptyPlaceholder.es.js";
39
38
  import "./chunks/EmptyPlaceholderFlex.styled.es.js";
@@ -43,9 +42,10 @@ import "@dnd-kit/sortable";
43
42
  import "@dnd-kit/utilities";
44
43
  import "./chunks/VersionUploadContextInstance.es.js";
45
44
  import "./chunks/EntityTooltip.es.js";
46
- import "./chunks/ColumnDropIndicator.styled.es.js";
47
- import "@tanstack/react-table";
45
+ import "./chunks/addonColumnTags.es.js";
48
46
  import "@ynput/ayon-addon";
47
+ import "@tanstack/react-table";
48
+ import "react-redux";
49
49
  import "./chunks/EntityPickerDialog.es.js";
50
50
  import "remark-gfm";
51
51
  import "react-markdown";
@@ -3,15 +3,17 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
3
3
 
4
4
  declare type ActionContext = {
5
5
  /** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */
6
- projectName?: string;
6
+ projectName?: string | null;
7
7
  /** The type of the entity. Either a project level entity, 'list' or 'project' for project-wide actions. or None for global actions. */
8
- entityType?: 'project' | 'list' | 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile';
8
+ entityType?: ('project' | 'list' | 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile') | null;
9
9
  /** List of subtypes present in the entity list */
10
- entitySubtypes?: string[];
10
+ entitySubtypes?: string[] | null;
11
11
  /** The IDs of the entities */
12
- entityIds?: string[];
12
+ entityIds?: string[] | null;
13
13
  /** The data from the form */
14
- formData?: object;
14
+ formData?: {
15
+ [key: string]: any;
16
+ } | null;
15
17
  };
16
18
 
17
19
  export declare const Actions: ({ entities, entityType, entitySubTypes, isLoadingEntity, projectActionsProjectName, searchParams, featuredCount, bundleMode, onNavigate, onSetSearchParams, align, pt, }: ActionsProps) => JSX_2.Element;
@@ -66,11 +68,11 @@ declare type BundleMode_2 = 'production' | 'staging' | 'developer';
66
68
  declare type IconModel = {
67
69
  type?: 'material-symbols' | 'url';
68
70
  /** The name of the icon (for type material-symbols) */
69
- name?: string;
71
+ name?: string | null;
70
72
  /** The color of the icon (for type material-symbols) */
71
- color?: string;
73
+ color?: string | null;
72
74
  /** The URL of the icon (for type url) */
73
- url?: string;
75
+ url?: string | null;
74
76
  };
75
77
 
76
78
  export { }