@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.
- package/dist/DetailsPanel.es.js +471 -469
- package/dist/Feed.es.js +1 -1
- package/dist/ListTable.es.js +20 -20
- package/dist/NewEntity.es.js +7 -7
- package/dist/ProjectTreeTable.es.js +2523 -2502
- package/dist/ProjectsTable.es.js +5 -5
- package/dist/Slicer.es.js +28 -25
- 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 +4 -4
- package/dist/chunks/ColumnHeaderMenuUI.es.js +4 -5
- 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 +482 -462
- package/dist/chunks/EntityTooltip.es.js +18 -19
- package/dist/chunks/Feed.es.js +1382 -1355
- package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
- package/dist/chunks/FilterErrorActions.es.js +3 -4
- package/dist/chunks/GroupSettingsFallback.es.js +4 -4
- package/dist/chunks/Menu.es.js +242 -240
- package/dist/chunks/MetaWidget.es.js +1948 -1875
- package/dist/chunks/ProjectFoldersContext.es.js +237 -0
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +1260 -1190
- package/dist/chunks/SimpleTable.es.js +303 -297
- package/dist/chunks/Slicer.es.js +420 -413
- package/dist/chunks/TableExportContextInstance.es.js +622 -378
- package/dist/chunks/TableSettingsFallback.es.js +3 -4
- package/dist/chunks/ThumbnailSimple.es.js +114 -99
- package/dist/chunks/ThumbnailUploaderContext.es.js +48 -0
- package/dist/chunks/VideoPlayer.es.js +8 -9
- package/dist/chunks/Watchers.es.js +929 -872
- package/dist/chunks/{ColumnDropIndicator.styled.es.js → addonColumnTags.es.js} +60 -47
- 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 +773 -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 +1391 -1253
- package/dist/context.es.js +645 -668
- package/dist/hooks.es.js +193 -171
- package/dist/index.es.js +4 -4
- package/dist/types/Actions.d.ts +10 -8
- package/dist/types/DetailsPanel.d.ts +54 -76
- package/dist/types/EntityPickerDialog.d.ts +51 -2
- 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 +318 -212
- 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 +3164 -2363
- package/dist/types/components.d.ts +537 -497
- package/dist/types/context.d.ts +293 -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/ProjectContext.es.js +0 -158
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +0 -11
- 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";
|
|
@@ -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/
|
|
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 { 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,10 +19,10 @@ 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 xe } from "react-redux";
|
|
23
22
|
import "react-router-dom";
|
|
24
23
|
import "semver";
|
|
25
|
-
import {
|
|
24
|
+
import { useDispatch as xe } from "react-redux";
|
|
25
|
+
import { u as Lt } from "./chunks/useHierarchySelection.es.js";
|
|
26
26
|
const ve = () => {
|
|
27
27
|
const o = () => ({
|
|
28
28
|
formatStatuses: () => [],
|
|
@@ -131,14 +131,14 @@ const ve = () => {
|
|
|
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"], x = ye.includes(e) && !r.sliceType && !P?.length && T[0] !== "hierarchy" && y?.sliceType === "hierarchy" && Object.values(y.rowSelection || {}).some(Boolean), t =
|
|
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
137
|
r.sliceType ? [r.sliceType] : x ? [...T, "hierarchy"] : T
|
|
138
138
|
)
|
|
139
139
|
],
|
|
140
140
|
[r.sliceType, T.join("|"), x]
|
|
141
|
-
), u = i?.collapsedSliceTypes, f =
|
|
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, {
|
|
@@ -168,7 +168,7 @@ const ve = () => {
|
|
|
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,
|
|
@@ -203,11 +203,11 @@ const ve = () => {
|
|
|
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);
|
|
@@ -221,8 +221,8 @@ const ve = () => {
|
|
|
221
221
|
(n, E) => {
|
|
222
222
|
if (w && t.slice(1).includes(n)) return;
|
|
223
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),
|
|
225
|
-
y && n === y.sliceType ? (h(y.rowSelection),
|
|
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
|
|
@@ -271,7 +271,7 @@ const ve = () => {
|
|
|
271
271
|
H(n);
|
|
272
272
|
},
|
|
273
273
|
[H]
|
|
274
|
-
), { useExtraSlices: ie, isLoadingExtraSlices: ce, SlicerDropdown: le } = ve(), he =
|
|
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 ve = () => {
|
|
|
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 ve = () => {
|
|
|
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 ve = () => {
|
|
|
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 ve = () => {
|
|
|
430
430
|
slices: o,
|
|
431
431
|
projectName: e
|
|
432
432
|
}) => {
|
|
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 =
|
|
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}` : "";
|
|
@@ -445,12 +445,15 @@ const ve = () => {
|
|
|
445
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
|
|
@@ -495,13 +498,13 @@ const ve = () => {
|
|
|
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
|
);
|
|
@@ -534,7 +537,7 @@ 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,
|