@ynput/ayon-frontend-shared 0.7.6 → 0.8.1
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.
- package/dist/DetailsPanel.es.js +361 -355
- package/dist/Feed.es.js +1 -1
- package/dist/ListTable.es.js +18 -18
- package/dist/NewEntity.es.js +30 -30
- package/dist/ProjectTreeTable.es.js +984 -974
- package/dist/ProjectsTable.es.js +3 -3
- package/dist/Slicer.es.js +53 -50
- package/dist/Views.es.js +150 -151
- package/dist/api.es.js +166 -165
- package/dist/chunks/Actions.es.js +9 -10
- package/dist/chunks/ColumnDropIndicator.es.js +2 -2
- package/dist/chunks/ColumnHeaderMenuUI.es.js +3 -4
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +7 -7
- package/dist/chunks/EntityPath.es.js +38 -39
- package/dist/chunks/EntityPickerDialog.es.js +65 -66
- package/dist/chunks/EntityTooltip.es.js +18 -19
- package/dist/chunks/Feed.es.js +1381 -1355
- package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
- package/dist/chunks/FilterErrorActions.es.js +2 -3
- package/dist/chunks/GroupSettingsFallback.es.js +2 -2
- package/dist/chunks/Menu.es.js +52 -53
- package/dist/chunks/MetaWidget.es.js +1948 -1875
- package/dist/chunks/ProjectFoldersContext.es.js +40 -40
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +759 -742
- package/dist/chunks/SimpleTable.es.js +2 -1
- package/dist/chunks/Slicer.es.js +49 -50
- package/dist/chunks/TableExportContextInstance.es.js +600 -402
- package/dist/chunks/TableSettingsFallback.es.js +3 -4
- package/dist/chunks/ThumbnailSimple.es.js +114 -99
- package/dist/chunks/VideoPlayer.es.js +8 -9
- package/dist/chunks/Watchers.es.js +928 -871
- package/dist/chunks/expandRelativeDates.es.js +1 -1
- package/dist/chunks/getThumbnailUrl.es.js +33 -21
- package/dist/chunks/getUris.es.js +1580 -1610
- package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
- package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
- package/dist/chunks/searchTerms.es.js +774 -696
- package/dist/chunks/useAttributeEnums.es.js +22 -22
- package/dist/chunks/useDateRangeFilter.es.js +1 -1
- package/dist/chunks/useHierarchySelection.es.js +3 -4
- package/dist/chunks/useLoadModule.es.js +3 -4
- package/dist/components.es.js +1261 -1206
- package/dist/context.es.js +615 -540
- package/dist/hooks.es.js +193 -171
- package/dist/index.es.js +2 -2
- package/dist/types/Actions.d.ts +10 -8
- package/dist/types/DetailsPanel.d.ts +54 -76
- package/dist/types/EntityPickerDialog.d.ts +12 -6
- package/dist/types/Feed.d.ts +24 -24
- package/dist/types/ListTable.d.ts +33 -27
- package/dist/types/NewEntity.d.ts +26 -39
- package/dist/types/ProjectTreeTable.d.ts +275 -194
- package/dist/types/ProjectsTable.d.ts +6 -6
- package/dist/types/RepresentationsList.d.ts +4 -0
- package/dist/types/Slicer.d.ts +63 -246
- package/dist/types/Views.d.ts +71 -298
- package/dist/types/api.d.ts +3165 -2363
- package/dist/types/components.d.ts +444 -473
- package/dist/types/context.d.ts +285 -572
- package/dist/types/hooks.d.ts +76 -47
- package/dist/types/index.d.ts +6 -0
- package/dist/types/util.d.ts +141 -120
- package/dist/util.es.js +71 -68
- package/package.json +6 -6
- package/dist/chunks/EntityUpdatesContext.es.js +0 -61
- package/dist/chunks/PlayableIcon.es.js +0 -5020
- package/dist/chunks/viewUpdateHelper.es.js +0 -153
package/dist/ProjectsTable.es.js
CHANGED
|
@@ -9,8 +9,8 @@ import "./chunks/SimpleForm.es.js";
|
|
|
9
9
|
import "./chunks/MetaWidget.es.js";
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "date-fns";
|
|
12
|
-
import "./chunks/
|
|
13
|
-
import { u as gt,
|
|
12
|
+
import "./chunks/FilmstripEntityCard.es.js";
|
|
13
|
+
import { u as gt, l as bt } from "./chunks/TableExportContextInstance.es.js";
|
|
14
14
|
import "lodash";
|
|
15
15
|
import "primereact/confirmdialog";
|
|
16
16
|
import "react-toastify";
|
|
@@ -33,7 +33,6 @@ import "@module-federation/enhanced/runtime";
|
|
|
33
33
|
import "@ynput/ayon-addon/host";
|
|
34
34
|
import "semver";
|
|
35
35
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
36
|
-
import "react-redux";
|
|
37
36
|
import { useNavigate as vt } from "react-router-dom";
|
|
38
37
|
import "./chunks/EmptyPlaceholder.es.js";
|
|
39
38
|
import "./chunks/EmptyPlaceholderFlex.styled.es.js";
|
|
@@ -46,6 +45,7 @@ import "./chunks/EntityTooltip.es.js";
|
|
|
46
45
|
import "./chunks/addonColumnTags.es.js";
|
|
47
46
|
import "@ynput/ayon-addon";
|
|
48
47
|
import "@tanstack/react-table";
|
|
48
|
+
import "react-redux";
|
|
49
49
|
import { T as Ct } from "./chunks/EntityPickerDialog.es.js";
|
|
50
50
|
import "remark-gfm";
|
|
51
51
|
import "react-markdown";
|
package/dist/Slicer.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as pe } from "./chunks/Slicer.es.js";
|
|
2
2
|
import { S as rt, a as it, b as ct, c as lt, d as dt, e as at, f as ut, g as ft, h as St, i as yt, j as ht, k as pt, s as Et, u as It, l as mt, m as gt, n as wt, o as Pt } from "./chunks/Slicer.es.js";
|
|
3
3
|
import { jsx as Ee } from "react/jsx-runtime";
|
|
4
|
-
import { useState as O, useEffect as A, useRef as q, useCallback as I, useMemo as
|
|
5
|
-
import { b as X,
|
|
6
|
-
import { S as me,
|
|
7
|
-
import {
|
|
4
|
+
import { useState as O, useEffect as A, useRef as q, useCallback as I, useMemo as R } from "react";
|
|
5
|
+
import { b as X, r as z, w as ae, l as Ie } from "./chunks/TableExportContextInstance.es.js";
|
|
6
|
+
import { S as me, c as ge, d as we } from "./chunks/MetaWidget.es.js";
|
|
7
|
+
import { e as vt, u as kt } from "./chunks/MetaWidget.es.js";
|
|
8
8
|
import "@module-federation/enhanced/runtime";
|
|
9
9
|
import "@ynput/ayon-addon/host";
|
|
10
10
|
import "react-toastify";
|
|
@@ -19,11 +19,11 @@ import { u as ue } from "./chunks/useLoadModule.es.js";
|
|
|
19
19
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
20
20
|
import "clsx";
|
|
21
21
|
import "react-dom";
|
|
22
|
-
import { useDispatch as ve } from "react-redux";
|
|
23
22
|
import "react-router-dom";
|
|
24
23
|
import "semver";
|
|
25
|
-
import {
|
|
26
|
-
|
|
24
|
+
import { useDispatch as xe } from "react-redux";
|
|
25
|
+
import { u as Lt } from "./chunks/useHierarchySelection.es.js";
|
|
26
|
+
const ve = () => {
|
|
27
27
|
const o = () => ({
|
|
28
28
|
formatStatuses: () => [],
|
|
29
29
|
formatTaskTypes: () => [],
|
|
@@ -103,7 +103,7 @@ const xe = () => {
|
|
|
103
103
|
), P = y(r), m = I(
|
|
104
104
|
(t, u = r) => p(u, t),
|
|
105
105
|
[p, r]
|
|
106
|
-
), T = w(r),
|
|
106
|
+
), T = w(r), x = I(
|
|
107
107
|
(t, u = r) => i(u, t),
|
|
108
108
|
[i, r]
|
|
109
109
|
);
|
|
@@ -111,7 +111,7 @@ const xe = () => {
|
|
|
111
111
|
rowSelection: P,
|
|
112
112
|
setRowSelection: m,
|
|
113
113
|
expanded: T,
|
|
114
|
-
setExpanded:
|
|
114
|
+
setExpanded: x,
|
|
115
115
|
getPanelSelection: y,
|
|
116
116
|
setPanelSelection: p,
|
|
117
117
|
getPanelExpanded: w,
|
|
@@ -131,14 +131,14 @@ const xe = () => {
|
|
|
131
131
|
const [y, p] = Ie(
|
|
132
132
|
`slicer-pinned-slice-${e}`,
|
|
133
133
|
null
|
|
134
|
-
), { powerLicense: w } = X(), i = c, P = i?.sliceTypes, m = i?.sliceType, T = P?.length ? m && m !== P[0] ? [m, ...P.slice(1)] : P : [m ?? "hierarchy"],
|
|
134
|
+
), { powerLicense: w } = X(), i = c, P = i?.sliceTypes, m = i?.sliceType, T = P?.length ? m && m !== P[0] ? [m, ...P.slice(1)] : P : [m ?? "hierarchy"], x = ye.includes(e) && !r.sliceType && !P?.length && T[0] !== "hierarchy" && y?.sliceType === "hierarchy" && Object.values(y.rowSelection || {}).some(Boolean), t = R(
|
|
135
135
|
() => [
|
|
136
136
|
...new Set(
|
|
137
|
-
r.sliceType ? [r.sliceType] :
|
|
137
|
+
r.sliceType ? [r.sliceType] : x ? [...T, "hierarchy"] : T
|
|
138
138
|
)
|
|
139
139
|
],
|
|
140
|
-
[r.sliceType, T.join("|"),
|
|
141
|
-
), u = i?.collapsedSliceTypes, f =
|
|
140
|
+
[r.sliceType, T.join("|"), x]
|
|
141
|
+
), u = i?.collapsedSliceTypes, f = R(() => u ?? [], [u?.join("|")]), g = R(
|
|
142
142
|
() => t.map((n) => ({ id: n, sliceType: n })),
|
|
143
143
|
[t]
|
|
144
144
|
), _ = g[0].sliceType, {
|
|
@@ -160,7 +160,7 @@ const xe = () => {
|
|
|
160
160
|
M(n);
|
|
161
161
|
},
|
|
162
162
|
[M]
|
|
163
|
-
),
|
|
163
|
+
), v = I(
|
|
164
164
|
(n, E) => {
|
|
165
165
|
const h = () => {
|
|
166
166
|
};
|
|
@@ -168,7 +168,7 @@ const xe = () => {
|
|
|
168
168
|
{
|
|
169
169
|
sliceTypes: n,
|
|
170
170
|
sliceType: n[0],
|
|
171
|
-
collapsedSliceTypes: (E ?? f).filter((
|
|
171
|
+
collapsedSliceTypes: (E ?? f).filter((L) => n.includes(L))
|
|
172
172
|
},
|
|
173
173
|
h,
|
|
174
174
|
h,
|
|
@@ -189,13 +189,13 @@ const xe = () => {
|
|
|
189
189
|
), V = I(
|
|
190
190
|
(n) => {
|
|
191
191
|
const E = f.includes(n) ? f.filter((h) => h !== n) : [...f, n];
|
|
192
|
-
|
|
192
|
+
v(t, E);
|
|
193
193
|
},
|
|
194
|
-
[f,
|
|
194
|
+
[f, v, t]
|
|
195
195
|
), F = `${s}-${e}`, N = q(/* @__PURE__ */ new Set());
|
|
196
196
|
A(() => {
|
|
197
|
-
!
|
|
198
|
-
}, [
|
|
197
|
+
!x || l || N.current.has(F) || (N.current.add(F), Object.keys(B("hierarchy")).length || (C("hierarchy", y.rowSelection), b("hierarchy", y.expanded)), v(t));
|
|
198
|
+
}, [x, l, F]);
|
|
199
199
|
const ee = q(/* @__PURE__ */ new Set());
|
|
200
200
|
A(() => {
|
|
201
201
|
if (ee.current.has(F) || l || r.sliceType || r.rowSelection || r.setRowSelection || P?.length)
|
|
@@ -203,11 +203,11 @@ const xe = () => {
|
|
|
203
203
|
ee.current.add(F);
|
|
204
204
|
const n = `slicer-selection-${s}-${e}`, E = `slicer-expanded-${s}-${e}`, h = T[0];
|
|
205
205
|
if (h !== "hierarchy") {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
206
|
+
const L = z(n, null);
|
|
207
|
+
if (L && Object.keys(L).length) {
|
|
208
208
|
C(
|
|
209
209
|
h,
|
|
210
|
-
(de) => Object.keys(de).length ? de :
|
|
210
|
+
(de) => Object.keys(de).length ? de : L
|
|
211
211
|
);
|
|
212
212
|
const k = z(E, null);
|
|
213
213
|
k && b(h, k);
|
|
@@ -215,21 +215,21 @@ const xe = () => {
|
|
|
215
215
|
}
|
|
216
216
|
sessionStorage.removeItem(n), sessionStorage.removeItem(E);
|
|
217
217
|
}, [l, P, F]), A(() => {
|
|
218
|
-
ye.includes(e) && !r.sliceType && !l && y && !
|
|
219
|
-
}, [e, r.sliceType, l, y,
|
|
218
|
+
ye.includes(e) && !r.sliceType && !l && y && !x && p(null);
|
|
219
|
+
}, [e, r.sliceType, l, y, x, p]);
|
|
220
220
|
const te = I(
|
|
221
221
|
(n, E) => {
|
|
222
222
|
if (w && t.slice(1).includes(n)) return;
|
|
223
|
-
r.onSliceTypeChange ? r.onSliceTypeChange(n, E) :
|
|
224
|
-
const h = (k) => r.setRowSelection ? r.setRowSelection(k) : M(k, n),
|
|
225
|
-
y && n === y.sliceType ? (h(y.rowSelection),
|
|
223
|
+
r.onSliceTypeChange ? r.onSliceTypeChange(n, E) : v([n, ...t.slice(1).filter((k) => k !== n)]);
|
|
224
|
+
const h = (k) => r.setRowSelection ? r.setRowSelection(k) : M(k, n), L = (k) => r.setExpanded ? r.setExpanded(k) : H(k, n);
|
|
225
|
+
y && n === y.sliceType ? (h(y.rowSelection), L(y.expanded), p(null)) : n !== "hierarchy" && (h({}), L({})), E && p({
|
|
226
226
|
sliceType: _,
|
|
227
227
|
rowSelection: D,
|
|
228
228
|
expanded: G
|
|
229
229
|
});
|
|
230
230
|
},
|
|
231
231
|
[
|
|
232
|
-
|
|
232
|
+
v,
|
|
233
233
|
t,
|
|
234
234
|
D,
|
|
235
235
|
M,
|
|
@@ -248,30 +248,30 @@ const xe = () => {
|
|
|
248
248
|
[C, b]
|
|
249
249
|
), se = I(
|
|
250
250
|
(n) => {
|
|
251
|
-
!n || t.includes(n) || (
|
|
251
|
+
!n || t.includes(n) || (v([...t, n]), W(n));
|
|
252
252
|
},
|
|
253
|
-
[t,
|
|
253
|
+
[t, v, W]
|
|
254
254
|
), ne = I(
|
|
255
255
|
(n) => {
|
|
256
256
|
if (t.length <= 1 || !t.includes(n)) return;
|
|
257
257
|
const E = t.filter((h) => h !== n);
|
|
258
|
-
|
|
258
|
+
v(E, E.length > 1 ? void 0 : []);
|
|
259
259
|
},
|
|
260
|
-
[t,
|
|
260
|
+
[t, v]
|
|
261
261
|
), oe = I(
|
|
262
262
|
(n, E) => {
|
|
263
|
-
!t.includes(n) || t.includes(E) || (
|
|
263
|
+
!t.includes(n) || t.includes(E) || (v(
|
|
264
264
|
t.map((h) => h === n ? E : h),
|
|
265
265
|
f.map((h) => h === n ? E : h)
|
|
266
266
|
), W(E));
|
|
267
267
|
},
|
|
268
|
-
[t,
|
|
268
|
+
[t, v, W, f]
|
|
269
269
|
), re = I(
|
|
270
270
|
(n) => {
|
|
271
271
|
H(n);
|
|
272
272
|
},
|
|
273
273
|
[H]
|
|
274
|
-
), { useExtraSlices: ie, isLoadingExtraSlices: ce, SlicerDropdown: le } =
|
|
274
|
+
), { useExtraSlices: ie, isLoadingExtraSlices: ce, SlicerDropdown: le } = ve(), he = R(
|
|
275
275
|
() => ({
|
|
276
276
|
projectName: s,
|
|
277
277
|
page: e,
|
|
@@ -343,7 +343,7 @@ const xe = () => {
|
|
|
343
343
|
persistedHierarchySelection: e,
|
|
344
344
|
filters: s,
|
|
345
345
|
merge: c = !0
|
|
346
|
-
}) =>
|
|
346
|
+
}) => R(() => {
|
|
347
347
|
const d = (S) => ({
|
|
348
348
|
id: "hierarchy",
|
|
349
349
|
label: "Folder",
|
|
@@ -356,7 +356,7 @@ const xe = () => {
|
|
|
356
356
|
isReadonly: !0
|
|
357
357
|
});
|
|
358
358
|
return o && e ? c ? [d(e), ...s] : [d(e)] : s;
|
|
359
|
-
}, [o, e, s]),
|
|
359
|
+
}, [o, e, s]), Le = async (o, e, s) => {
|
|
360
360
|
const c = new Set(o.folderIds), l = new Set(o.taskIds), d = new Set(o.versionIds), S = new Set(o.productIds), a = {}, r = {}, y = {}, p = [];
|
|
361
361
|
return o.taskIds.length && p.push(
|
|
362
362
|
s(
|
|
@@ -407,7 +407,7 @@ const xe = () => {
|
|
|
407
407
|
taskFolderIds: {},
|
|
408
408
|
versionFolderIds: {},
|
|
409
409
|
productFolderIds: {}
|
|
410
|
-
},
|
|
410
|
+
}, Re = (o) => {
|
|
411
411
|
const e = {
|
|
412
412
|
folder: /* @__PURE__ */ new Set(),
|
|
413
413
|
task: /* @__PURE__ */ new Set(),
|
|
@@ -430,7 +430,7 @@ const xe = () => {
|
|
|
430
430
|
slices: o,
|
|
431
431
|
projectName: e
|
|
432
432
|
}) => {
|
|
433
|
-
const s =
|
|
433
|
+
const s = xe(), [c, l] = O($), [d, S] = O($), [a, r] = O(Y), [y, p] = O(""), w = o.find((m) => m.sliceType === "entityList")?.rowSelection, i = R(
|
|
434
434
|
() => Object.keys(w ?? {}).filter((m) => w?.[m] && !m.startsWith("folder-")).sort(),
|
|
435
435
|
[w]
|
|
436
436
|
), P = i.length && e ? `${e}|${i}` : "";
|
|
@@ -442,22 +442,25 @@ const xe = () => {
|
|
|
442
442
|
let m = !1;
|
|
443
443
|
return (async () => {
|
|
444
444
|
try {
|
|
445
|
-
const
|
|
445
|
+
const x = await Promise.all(
|
|
446
446
|
i.map(
|
|
447
447
|
(g) => s(
|
|
448
|
-
Pe.endpoints.getListEntities.initiate({
|
|
448
|
+
Pe.endpoints.getListEntities.initiate({
|
|
449
|
+
projectName: e,
|
|
450
|
+
entityListId: g
|
|
451
|
+
})
|
|
449
452
|
).unwrap()
|
|
450
453
|
)
|
|
451
|
-
), t =
|
|
454
|
+
), t = Re(x);
|
|
452
455
|
m || S(t);
|
|
453
|
-
const { parentMaps: u, ...f } = await
|
|
456
|
+
const { parentMaps: u, ...f } = await Le(
|
|
454
457
|
t,
|
|
455
458
|
e,
|
|
456
459
|
s
|
|
457
460
|
);
|
|
458
461
|
m || (l(f), r(u));
|
|
459
|
-
} catch (
|
|
460
|
-
console.error("Error fetching entity list IDs:",
|
|
462
|
+
} catch (x) {
|
|
463
|
+
console.error("Error fetching entity list IDs:", x), m || (l($), S($), r(Y));
|
|
461
464
|
} finally {
|
|
462
465
|
m || p(P);
|
|
463
466
|
}
|
|
@@ -495,13 +498,13 @@ const xe = () => {
|
|
|
495
498
|
slices: o,
|
|
496
499
|
attribFields: e
|
|
497
500
|
}) => o.filter((s) => s.sliceType !== "hierarchy" && s.sliceType !== "entityList").map((s) => _e({ slice: s, attribFields: e })).filter((s) => !!s), st = (o) => {
|
|
498
|
-
const { slices: e, getPanelSelection: s } = we(), { powerLicense: c, isLoading: l } = X(), d =
|
|
501
|
+
const { slices: e, getPanelSelection: s } = we(), { powerLicense: c, isLoading: l } = X(), d = R(() => {
|
|
499
502
|
const a = e.map((r) => ({
|
|
500
503
|
sliceType: r.sliceType,
|
|
501
504
|
rowSelection: s(r.id)
|
|
502
505
|
}));
|
|
503
506
|
return c ? a : a.slice(0, 1);
|
|
504
|
-
}, [e, s, c]), S =
|
|
507
|
+
}, [e, s, c]), S = R(
|
|
505
508
|
() => Ce({ slices: d, attribFields: o }),
|
|
506
509
|
[d, o]
|
|
507
510
|
);
|
|
@@ -514,7 +517,7 @@ const xe = () => {
|
|
|
514
517
|
export {
|
|
515
518
|
rt as SLICER_DEFAULT_PANEL_HEIGHT,
|
|
516
519
|
it as SLICER_MIN_PANEL_HEIGHT,
|
|
517
|
-
|
|
520
|
+
vt as SLICER_PAGES_CONFIG,
|
|
518
521
|
ct as SLICER_SPLITTER_PANEL_CONFIG,
|
|
519
522
|
lt as SLICER_SPLITTER_STATE_KEY,
|
|
520
523
|
dt as SLICE_DEFAULT_ORDER,
|
|
@@ -534,14 +537,14 @@ export {
|
|
|
534
537
|
It as useEntityListsSlice,
|
|
535
538
|
et as useFiltersWithHierarchy,
|
|
536
539
|
mt as useHierarchyContextMenuItems,
|
|
537
|
-
|
|
540
|
+
Lt as useHierarchySelection,
|
|
538
541
|
kt as useOptionalSlicerContext,
|
|
539
542
|
tt as useSelectedEntityIds,
|
|
540
543
|
we as useSlicerContext,
|
|
541
544
|
gt as useSlicerCounts,
|
|
542
545
|
wt as useSlicerPanelHeights,
|
|
543
546
|
st as useSlicerPanelSelections,
|
|
544
|
-
|
|
547
|
+
ve as useSlicerRemotes,
|
|
545
548
|
Te as useSlicerRowSelection,
|
|
546
549
|
Pt as useSlicerSplitter
|
|
547
550
|
};
|