@ynput/ayon-frontend-shared 0.7.3 → 0.7.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 (66) hide show
  1. package/LICENSE +105 -0
  2. package/dist/DetailsPanel.es.js +1088 -969
  3. package/dist/ListTable.es.js +70 -67
  4. package/dist/NewEntity.es.js +8 -5
  5. package/dist/ProjectTreeTable.es.js +4134 -3825
  6. package/dist/ProjectsTable.es.js +526 -0
  7. package/dist/Slicer.es.js +75 -73
  8. package/dist/Views.es.js +86 -84
  9. package/dist/chunks/Actions.es.js +4 -2
  10. package/dist/chunks/ColumnDropIndicator.es.js +21 -18
  11. package/dist/chunks/ColumnDropIndicator.styled.es.js +14 -13
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +9 -7
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +12 -11
  14. package/dist/chunks/EmptyPlaceholder.es.js +9 -8
  15. package/dist/chunks/EntityPath.es.js +15 -14
  16. package/dist/chunks/EntityPickerDialog.es.js +5 -3
  17. package/dist/chunks/EntityTooltip.es.js +10 -8
  18. package/dist/chunks/EntityUpdatesContext.es.js +13 -12
  19. package/dist/chunks/Feed.es.js +12 -11
  20. package/dist/chunks/FilterErrorActions.es.js +6 -4
  21. package/dist/chunks/GroupSettingsFallback.es.js +75 -0
  22. package/dist/chunks/JsonViewer.es.js +3 -2
  23. package/dist/chunks/Menu.es.js +105 -103
  24. package/dist/chunks/MetaWidget.es.js +278 -275
  25. package/dist/chunks/PlayableIcon.es.js +868 -862
  26. package/dist/chunks/ProjectContext.es.js +5 -4
  27. package/dist/chunks/RepresentationsList.es.js +3 -2
  28. package/dist/chunks/ReviewablesSelector.es.js +3471 -2067
  29. package/dist/chunks/SimpleTable.es.js +492 -402
  30. package/dist/chunks/Slicer.es.js +936 -896
  31. package/dist/chunks/TableExportContextInstance.es.js +437 -339
  32. package/dist/chunks/TableSettingsFallback.es.js +5 -3
  33. package/dist/chunks/ThumbnailSimple.es.js +15 -13
  34. package/dist/chunks/VideoPlayer.es.js +14 -12
  35. package/dist/chunks/Watchers.es.js +97 -95
  36. package/dist/chunks/getProjectDisplayName.es.js +4 -0
  37. package/dist/chunks/getUris.es.js +375 -374
  38. package/dist/chunks/useHierarchySelection.es.js +5 -3
  39. package/dist/chunks/useLoadModule.es.js +10 -8
  40. package/dist/chunks/viewUpdateHelper.es.js +12 -10
  41. package/dist/components.es.js +1488 -1186
  42. package/dist/context.es.js +589 -539
  43. package/dist/hooks.es.js +169 -212
  44. package/dist/index.es.js +17 -12
  45. package/dist/types/Actions.d.ts +3 -0
  46. package/dist/types/ContextMenu.d.ts +3 -0
  47. package/dist/types/DetailsPanel.d.ts +3 -0
  48. package/dist/types/EntityPickerDialog.d.ts +3 -0
  49. package/dist/types/Feed.d.ts +3 -0
  50. package/dist/types/ListTable.d.ts +3 -0
  51. package/dist/types/NewEntity.d.ts +3 -0
  52. package/dist/types/ProjectTreeTable.d.ts +735 -1
  53. package/dist/types/ProjectsTable.d.ts +228 -0
  54. package/dist/types/RepresentationsList.d.ts +3 -0
  55. package/dist/types/SimpleTable.d.ts +17 -0
  56. package/dist/types/Slicer.d.ts +4 -0
  57. package/dist/types/Views.d.ts +3 -0
  58. package/dist/types/api.d.ts +3 -0
  59. package/dist/types/components.d.ts +808 -11
  60. package/dist/types/context.d.ts +39 -1
  61. package/dist/types/hooks.d.ts +3 -0
  62. package/dist/types/index.d.ts +3 -0
  63. package/dist/types/util.d.ts +7 -0
  64. package/dist/util.es.js +152 -144
  65. package/package.json +16 -8
  66. /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
package/dist/hooks.es.js CHANGED
@@ -1,136 +1,107 @@
1
- import { d as T, a as k } from "./chunks/TableExportContextInstance.es.js";
2
- import { q as se, r as ie, s as ae, p as ue, v as de, w as ce } from "./chunks/TableExportContextInstance.es.js";
3
- import { u as R } from "./chunks/useLoadModule.es.js";
4
- import { loadRemote as V } from "@module-federation/enhanced/runtime";
5
- import { useRef as G, useState as S, useEffect as v, useCallback as M } from "react";
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
6
  import A from "semver";
7
- import { k as me, l as fe, m as pe, n as ge, o as he, p as ye } from "./chunks/Watchers.es.js";
8
- import { u as Ee } from "./chunks/useActionTriggers.es.js";
9
- import { bc as C } from "./chunks/searchTerms.es.js";
10
- import { bA as N, cX as O } from "./chunks/getUris.es.js";
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";
11
11
  import "primereact/confirmdialog";
12
- import { jsx as x, jsxs as K } from "react/jsx-runtime";
13
- import { toast as U } from "react-toastify";
14
- import { Button as _, Icon as j } from "@ynput/ayon-react-components";
12
+ import "react/jsx-runtime";
13
+ import "@ynput/ayon-addon/host";
14
+ import { toast as N } from "react-toastify";
15
+ import "@ynput/ayon-react-components";
15
16
  import "lodash";
16
17
  import "uuid";
18
+ import "axios";
17
19
  import "./chunks/ContextMenuContextInstance.es.js";
18
20
  import "clsx";
19
21
  import "react-dom";
20
22
  import "react-redux";
21
23
  import "react-router-dom";
22
- import { u as Se } from "./chunks/EntityPickerDialog.es.js";
23
- import { u as be } from "./chunks/useQueryArgumentChangeLoading.es.js";
24
- import { u as Ae } from "./chunks/useGroupedPagination.es.js";
25
- import "./chunks/ReviewablesSelector.es.js";
26
- import "match-sorter";
27
- import "./chunks/SimpleForm.es.js";
28
- import { f as He } from "./chunks/MetaWidget.es.js";
29
- import "date-fns";
30
- import "./chunks/PlayableIcon.es.js";
31
- import "./chunks/JsonViewer.es.js";
32
- import "lexical";
33
- import "@lexical/markdown";
34
- import "@lexical/code";
35
- import "@lexical/list";
36
- import "@lexical/rich-text";
37
- import "@lexical/selection";
38
- import "@lexical/utils";
39
- import "@lexical/react/LexicalBlockWithAlignableContents";
40
- import "@lexical/react/LexicalDecoratorBlockNode";
41
- import "./chunks/EmptyPlaceholder.es.js";
42
- import "./chunks/EmptyPlaceholderFlex.styled.es.js";
43
- import "./chunks/InfoMessage.es.js";
44
- import "@dnd-kit/core";
45
- import "@dnd-kit/sortable";
46
- import "@dnd-kit/utilities";
47
- import "axios";
48
- import "./chunks/VersionUploadContextInstance.es.js";
49
- import "./chunks/EntityTooltip.es.js";
50
- import "./chunks/ColumnDropIndicator.styled.es.js";
51
- import "@tanstack/react-table";
52
- import { T as F } from "./chunks/TableSettingsFallback.es.js";
53
- import "./chunks/Slicer.es.js";
54
- import "primereact/splitter";
55
- import "./chunks/ThumbnailSimple.es.js";
56
- import "./chunks/Menu.es.js";
57
- import H from "styled-components";
58
- import { i as W } from "./chunks/isHTMLElement.es.js";
59
- import { u as Te } from "./chunks/useAttributeEnums.es.js";
60
- import { a as $ } from "./chunks/afterStartup.es.js";
61
- const Xt = (t, n, e) => {
62
- const o = G(/* @__PURE__ */ new Set()), [m, r] = S(
63
- () => p(t)
64
- ), [s, f] = S(n.length > 0 && !e);
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(
34
+ () => g(e)
35
+ ), [n, m] = S(s.length > 0 && !r);
65
36
  v(() => {
66
- e || (console.log("resetting processedModules"), o.current = /* @__PURE__ */ new Set(), r(p(t)));
67
- }, [JSON.stringify(t), e]);
37
+ r || (console.log("resetting processedModules"), o.current = /* @__PURE__ */ new Set(), t(g(e)));
38
+ }, [JSON.stringify(e), r]);
68
39
  const i = async (u, c, d, h, l) => {
69
40
  try {
70
- const a = await V(`${u}/${c}`, {
41
+ const a = await R(`${u}/${c}`, {
71
42
  from: "runtime"
72
43
  });
73
- g(d, u, c, a?.default || h, l);
44
+ p(d, u, c, a?.default || h, l);
74
45
  } catch (a) {
75
46
  throw console.error("Error loading remote module", u, c, a), a;
76
47
  }
77
48
  };
78
49
  v(() => {
79
- if (e) {
80
- f(!1);
50
+ if (r) {
51
+ m(!1);
81
52
  return;
82
53
  }
83
- m.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");
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");
84
55
  const c = [];
85
- if (t.forEach((d, h) => {
86
- const { addon: l, remote: a, module: y, fallback: L, minVersion: w } = d;
56
+ if (e.forEach((d, h) => {
57
+ const { addon: l, remote: a, module: y, fallback: L, minVersion: E } = d;
87
58
  if (!l || !a || !y) {
88
59
  console.log("Invalid module spec", d);
89
60
  return;
90
61
  }
91
- const b = `${l}/${a}/${y}`;
92
- if (o.current.has(b)) {
93
- console.log("skipping already processed module", b);
62
+ const I = `${l}/${a}/${y}`;
63
+ if (o.current.has(I)) {
64
+ console.log("skipping already processed module", I);
94
65
  return;
95
66
  }
96
- if (m[h]?.[1]?.isLoaded) {
97
- o.current.add(b);
67
+ if (f[h]?.[1]?.isLoaded) {
68
+ o.current.add(I);
98
69
  return;
99
70
  }
100
- o.current.add(b);
101
- const I = n.find((P) => P.addonName === l);
102
- if (!I) {
71
+ o.current.add(I);
72
+ const b = s.find((H) => H.addonName === l);
73
+ if (!b) {
103
74
  console.log("Addon not found", { addon: l, remote: a, module: y });
104
75
  return;
105
76
  }
106
- if (w && !A.gte(I.addonVersion, w)) {
107
- E(
77
+ if (E && !A.gte(b.addonVersion, E)) {
78
+ w(
108
79
  h,
109
80
  l,
110
81
  a,
111
82
  y,
112
83
  L,
113
- w,
114
- I.addonVersion
84
+ E,
85
+ b.addonVersion
115
86
  );
116
87
  return;
117
88
  }
118
- if (!I.modules[a]) {
89
+ if (!b.modules[a]) {
119
90
  console.log("Module not found", { addon: l, remote: a, module: y });
120
91
  return;
121
92
  }
122
- c.push(i(a, y, l, L, w));
93
+ c.push(i(a, y, l, L, E));
123
94
  }), !c.length) {
124
- f(!1);
95
+ m(!1);
125
96
  return;
126
97
  }
127
- f(!0), Promise.all(c).then(() => {
128
- f(!1);
98
+ m(!0), Promise.all(c).then(() => {
99
+ m(!1);
129
100
  }).catch((d) => {
130
- console.error("Error loading modules", d), f(!1);
101
+ console.error("Error loading modules", d), m(!1);
131
102
  });
132
- }, [e, n, JSON.stringify(t), m]);
133
- function p(u) {
103
+ }, [r, s, JSON.stringify(e), f]);
104
+ function g(u) {
134
105
  return u.map(
135
106
  ({ addon: c = "", remote: d = "", module: h = "", fallback: l, minVersion: a }) => [
136
107
  l,
@@ -145,10 +116,10 @@ const Xt = (t, n, e) => {
145
116
  ]
146
117
  );
147
118
  }
148
- function E(u, c, d, h, l, a, y) {
149
- r((L) => {
150
- const w = [...L];
151
- return u >= 0 && u < w.length && (w[u] = [
119
+ function w(u, c, d, h, l, a, y) {
120
+ t((L) => {
121
+ const E = [...L];
122
+ return u >= 0 && u < E.length && (E[u] = [
152
123
  l,
153
124
  {
154
125
  isLoaded: !1,
@@ -161,13 +132,13 @@ const Xt = (t, n, e) => {
161
132
  required: a
162
133
  }
163
134
  }
164
- ]), w;
135
+ ]), E;
165
136
  });
166
137
  }
167
- function g(u, c, d, h, l) {
168
- r((a) => {
169
- const y = [...a], L = t.findIndex(
170
- (w) => w.addon === u && w.remote === c && w.module === d
138
+ function p(u, c, d, h, l) {
139
+ t((a) => {
140
+ const y = [...a], L = e.findIndex(
141
+ (E) => E.addon === u && E.remote === c && E.module === d
171
142
  );
172
143
  return L >= 0 && L < y.length && (y[L] = [
173
144
  h,
@@ -182,165 +153,151 @@ const Xt = (t, n, e) => {
182
153
  ]), y;
183
154
  });
184
155
  }
185
- return { modules: m, isLoading: s };
186
- }, Dt = ({ selectors: t = [], init: n }) => {
187
- const { user: e } = T(), { data: { frontendPreferences: o = {} } = {} } = e || {}, m = t.filter((i) => i != null).map((i) => i.replace(/\s/g, ""));
188
- let r = o;
189
- for (const i of m)
190
- r = r?.[i];
191
- r = r || n || {};
192
- const [s] = C();
193
- return [r, async (i) => {
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) => {
194
165
  try {
195
- if (!e?.name) throw { data: { detail: "User not found" } };
196
- let p = { ...o };
197
- const E = (g, u, c) => {
198
- if (u.length === 0) return { ...g, ...c };
199
- const [d, ...h] = u, l = g?.[d] || {};
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] || {};
200
171
  return {
201
- ...g,
202
- [d]: E(l, h, c)
172
+ ...p,
173
+ [d]: w(l, h, c)
203
174
  };
204
175
  };
205
- p = E(p, m, i), await s({
206
- userName: e.name,
207
- patchData: p,
176
+ g = w(g, f, i), await n({
177
+ userName: r.name,
178
+ patchData: g,
208
179
  // @ts-expect-error - disableInvalidations is not in the api
209
180
  disableInvalidations: !0
210
181
  }).unwrap();
211
- } catch (p) {
212
- console.error(p), U.error(p.data?.detail);
182
+ } catch (g) {
183
+ console.error(g), N.error(g.data?.detail);
213
184
  }
214
185
  }, { isSuccess: !0 }];
215
- }, Jt = ({ groupBy: t, projectName: n, entityType: e }) => {
216
- t?.id === "taskType" && (e = "task");
217
- const o = t?.id || "", { data: { groups: m = [] } = {}, error: r } = N(
218
- { projectName: n, entityType: e, groupingKey: o, empty: !0 },
219
- { skip: !t?.id }
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 },
190
+ { skip: !e?.id }
220
191
  );
221
192
  return {
222
- groups: m,
223
- error: r
193
+ groups: f,
194
+ error: t
224
195
  };
225
- }, q = H.li`
226
- display: flex;
227
- align-items: center;
228
- padding: 0;
229
- margin: 0;
230
- `, z = H(_)`
231
- width: 100%;
232
- justify-content: start;
233
- `, B = ({
234
- requiredVersion: t,
235
- fields: n
236
- }) => /* @__PURE__ */ x(F, { feature: "groupAttributes", requiredVersion: t, children: n.map((e) => /* @__PURE__ */ x(q, { children: /* @__PURE__ */ K(z, { variant: "text", icon: e.icon, children: [
237
- e.label,
238
- /* @__PURE__ */ x(j, { icon: "bolt", style: { marginLeft: "auto" } })
239
- ] }) }, e.value)) }), Yt = () => {
240
- const { powerLicense: t } = k(), [n, { outdated: e, isLoading: o }] = R({
196
+ }, pe = () => {
197
+ const { powerLicense: e } = x(), [s, { outdated: r, isLoading: o }] = G({
241
198
  addon: "powerpack",
242
199
  remote: "slicer",
243
200
  module: "GroupSettings",
244
- fallback: B,
201
+ fallback: O,
245
202
  minVersion: "1.1.1-dev",
246
- skip: !t
203
+ skip: !e
247
204
  // skip loading if powerpack license is not available
248
205
  });
249
206
  return {
250
- GroupSettings: n,
251
- requiredVersion: e?.required,
207
+ GroupSettings: s,
208
+ requiredVersion: r?.required,
252
209
  isLoading: o
253
210
  };
254
- }, Q = ["w", "s"];
255
- function Zt({
256
- reviewables: t,
257
- selected: n,
258
- onChange: e,
211
+ }, _ = ["w", "s"];
212
+ function he({
213
+ reviewables: e,
214
+ selected: s,
215
+ onChange: r,
259
216
  onNavigate: o,
260
- enabled: m = !0
217
+ enabled: f = !0
261
218
  }) {
262
219
  v(() => {
263
- if (!m || t.length <= 1) return;
264
- const r = (s) => {
265
- const f = s.key.length === 1 ? s.key.toLowerCase() : s.key;
266
- if (!Q.includes(f) || s.metaKey || s.ctrlKey || s.altKey || W(s.target) && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable))
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))
267
224
  return;
268
- const E = t.findIndex(({ fileId: u }) => n.includes(u)) + (f === "w" ? -1 : 1), g = t[E < 0 ? t.length - 1 : E % t.length];
269
- g && (e?.(g.fileId), o?.(g));
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));
270
227
  };
271
- return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
272
- }, [m, t, n, e, o]);
228
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
229
+ }, [f, e, s, r, o]);
273
230
  }
274
- const X = 4, D = 0.3;
275
- function te({
276
- containerRef: t,
277
- toolsRef: n,
278
- reviewablesCount: e
231
+ const W = 4, $ = 0.3;
232
+ function ye({
233
+ containerRef: e,
234
+ toolsRef: s,
235
+ reviewablesCount: r
279
236
  }) {
280
- const [o, m] = S(0), [r, s] = S(0);
281
- return console.log("containerHeight:", o, "toolsHeight:", r), v(() => {
282
- const i = t.current, p = n.current;
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;
283
240
  if (!i) return;
284
- const E = () => {
285
- m(i.clientHeight), s(p?.offsetHeight ?? 0);
241
+ const w = () => {
242
+ f(i.clientHeight), n(g?.offsetHeight ?? 0);
286
243
  };
287
- E();
288
- const g = new ResizeObserver(E);
289
- return g.observe(i), p && g.observe(p), () => g.disconnect();
290
- }, [t, n]), e <= X || !o || !r ? "column" : o - r < o * D ? "row" : "column";
244
+ w();
245
+ const p = new ResizeObserver(w);
246
+ return p.observe(i), g && p.observe(g), () => p.disconnect();
247
+ }, [e, s]), r <= W || !o || !t ? "column" : o - t < o * $ ? "row" : "column";
291
248
  }
292
- const ee = () => {
293
- const { data: t, isLoading: n, isError: e } = O({});
249
+ const Ee = () => {
250
+ const { data: e, isLoading: s, isError: r } = C({});
294
251
  return {
295
- getProductionAddon: M(
296
- (m, r) => {
297
- if (!t?.addons) return;
298
- const s = t.addons.find((i) => i.name === m), f = s?.productionVersion;
299
- if (!(!s || !f) && !(r?.version && f !== r.version)) {
300
- if (r?.minVersion)
252
+ getProductionAddon: V(
253
+ (f, t) => {
254
+ 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)
301
258
  try {
302
- if (!(A.gte(f, r.minVersion) || A.gte(A.coerce(f) || "0.0.0", r.minVersion))) return;
259
+ if (!(A.gte(m, t.minVersion) || A.gte(A.coerce(m) || "0.0.0", t.minVersion))) return;
303
260
  } catch {
304
261
  return;
305
262
  }
306
- return s;
263
+ return n;
307
264
  }
308
265
  },
309
- [t]
266
+ [e]
310
267
  ),
311
- isLoading: n,
312
- isError: e
268
+ isLoading: s,
269
+ isError: r
313
270
  };
314
- }, re = (t) => {
315
- const [n, e] = S(!1);
316
- return v(() => $(() => e(!0), t), [t]), n;
271
+ }, we = (e) => {
272
+ const [s, r] = S(!1);
273
+ return v(() => U(() => r(!0), e), [e]), s;
317
274
  };
318
275
  export {
319
- me as filterProjectStatuses,
320
- se as readLocalStorage,
321
- ie as readSessionStorage,
322
- Ee as useActionTriggers,
323
- re as useAfterStartup,
324
- fe as useAttributeEnumOptions,
325
- Te as useAttributeEnums,
326
- He as useEditProjectTags,
327
- pe as useEntityUpdate,
328
- ge as useFetchAttributeEnumOptions,
329
- Jt as useGetEntityGroups,
330
- ee as useGetProductionAddon,
331
- Yt as useGroupByRemoteModules,
332
- Ae as useGroupedPagination,
333
- Se as useHierarchyTable,
334
- R as useLoadModule,
335
- Xt as useLoadModules,
336
- ae as useLocalStorage,
337
- be as useQueryArgumentChangeLoading,
338
- Zt as useReviewablesKeyboardNavigation,
339
- te as useReviewablesLayout,
340
- he as useScopedStatuses,
341
- ye as useScopedTypes,
342
- ue as useSessionStorage,
343
- Dt as useUserProjectConfig,
344
- de as writeLocalStorage,
345
- ce as writeSessionStorage
276
+ Ge as filterProjectStatuses,
277
+ ve as readLocalStorage,
278
+ 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
346
303
  };
package/dist/index.es.js CHANGED
@@ -8,13 +8,14 @@ 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 W } from "./chunks/PlayableIcon.es.js";
12
- import { u as Y } from "./chunks/TableExportContextInstance.es.js";
11
+ import { U as $ } from "./chunks/PlayableIcon.es.js";
12
+ import { u as or } from "./chunks/TableExportContextInstance.es.js";
13
13
  import "lodash";
14
14
  import "primereact/confirmdialog";
15
15
  import "react-toastify";
16
16
  import "uuid";
17
17
  import "./chunks/searchTerms.es.js";
18
+ import "axios";
18
19
  import "./chunks/getUris.es.js";
19
20
  import "./chunks/JsonViewer.es.js";
20
21
  import "./chunks/Watchers.es.js";
@@ -28,31 +29,35 @@ import "@lexical/utils";
28
29
  import "@lexical/react/LexicalBlockWithAlignableContents";
29
30
  import "@lexical/react/LexicalDecoratorBlockNode";
30
31
  import "@module-federation/enhanced/runtime";
32
+ import "@ynput/ayon-addon/host";
31
33
  import "semver";
32
34
  import "./chunks/ContextMenuContextInstance.es.js";
33
- import { M as _ } from "./chunks/MenuContext.es.js";
35
+ import { M as tr } from "./chunks/MenuContext.es.js";
34
36
  import "react-redux";
35
37
  import "react-router-dom";
36
- import { E as rr } from "./chunks/EmptyPlaceholder.es.js";
38
+ import { E as ir } from "./chunks/EmptyPlaceholder.es.js";
37
39
  import "./chunks/EmptyPlaceholderFlex.styled.es.js";
38
40
  import "./chunks/InfoMessage.es.js";
39
41
  import "@dnd-kit/core";
40
42
  import "@dnd-kit/sortable";
41
43
  import "@dnd-kit/utilities";
42
- import "axios";
43
44
  import "./chunks/VersionUploadContextInstance.es.js";
44
45
  import "./chunks/EntityTooltip.es.js";
45
46
  import "./chunks/ColumnDropIndicator.styled.es.js";
46
47
  import "@tanstack/react-table";
48
+ import "@ynput/ayon-addon";
47
49
  import "./chunks/EntityPickerDialog.es.js";
48
- import "./chunks/Slicer.es.js";
50
+ import "remark-gfm";
51
+ import "react-markdown";
49
52
  import "primereact/splitter";
50
- import { T as mr } from "./chunks/ThumbnailSimple.es.js";
53
+ import "./chunks/Slicer.es.js";
54
+ import "./chunks/NewEntityContextInstance.es.js";
51
55
  import "./chunks/Menu.es.js";
56
+ import { T as ar } from "./chunks/ThumbnailSimple.es.js";
52
57
  export {
53
- rr as EmptyPlaceholder,
54
- _ as MenuProvider,
55
- mr as ThumbnailSimple,
56
- W as UserImage,
57
- Y as useMenuContext
58
+ ir as EmptyPlaceholder,
59
+ tr as MenuProvider,
60
+ ar as ThumbnailSimple,
61
+ $ as UserImage,
62
+ or as useMenuContext
58
63
  };
@@ -77,6 +77,9 @@ export { }
77
77
 
78
78
 
79
79
  declare module '@tanstack/react-table' {
80
+ interface ColumnMeta<TData extends RowData, TValue> {
81
+ addonColumn?: AddonColumnMeta;
82
+ }
80
83
  interface TableMeta<TData extends RowData> {
81
84
  options?: BuiltInFieldOptions;
82
85
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -133,6 +133,9 @@ export { }
133
133
 
134
134
 
135
135
  declare module '@tanstack/react-table' {
136
+ interface ColumnMeta<TData extends RowData, TValue> {
137
+ addonColumn?: AddonColumnMeta;
138
+ }
136
139
  interface TableMeta<TData extends RowData> {
137
140
  options?: BuiltInFieldOptions;
138
141
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -514,6 +514,9 @@ export { }
514
514
 
515
515
 
516
516
  declare module '@tanstack/react-table' {
517
+ interface ColumnMeta<TData extends RowData, TValue> {
518
+ addonColumn?: AddonColumnMeta;
519
+ }
517
520
  interface TableMeta<TData extends RowData> {
518
521
  options?: BuiltInFieldOptions;
519
522
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -32,6 +32,9 @@ export { }
32
32
 
33
33
 
34
34
  declare module '@tanstack/react-table' {
35
+ interface ColumnMeta<TData extends RowData, TValue> {
36
+ addonColumn?: AddonColumnMeta;
37
+ }
35
38
  interface TableMeta<TData extends RowData> {
36
39
  options?: BuiltInFieldOptions;
37
40
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -375,6 +375,9 @@ export { }
375
375
 
376
376
 
377
377
  declare module '@tanstack/react-table' {
378
+ interface ColumnMeta<TData extends RowData, TValue> {
379
+ addonColumn?: AddonColumnMeta;
380
+ }
378
381
  interface TableMeta<TData extends RowData> {
379
382
  options?: BuiltInFieldOptions;
380
383
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -267,6 +267,9 @@ export { }
267
267
 
268
268
 
269
269
  declare module '@tanstack/react-table' {
270
+ interface ColumnMeta<TData extends RowData, TValue> {
271
+ addonColumn?: AddonColumnMeta;
272
+ }
270
273
  interface TableMeta<TData extends RowData> {
271
274
  options?: BuiltInFieldOptions;
272
275
  readOnly?: ProjectTreeTableProps['readOnly'];
@@ -204,6 +204,9 @@ export { }
204
204
 
205
205
 
206
206
  declare module '@tanstack/react-table' {
207
+ interface ColumnMeta<TData extends RowData, TValue> {
208
+ addonColumn?: AddonColumnMeta;
209
+ }
207
210
  interface TableMeta<TData extends RowData> {
208
211
  options?: BuiltInFieldOptions;
209
212
  readOnly?: ProjectTreeTableProps['readOnly'];