@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/Feed.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import N from "clsx";
|
|
|
5
5
|
import { Icon as z } from "@ynput/ayon-react-components";
|
|
6
6
|
import { e as J, D as Q, S as Y } from "./chunks/Feed.es.js";
|
|
7
7
|
import { A as gt, C as vt, a as mt, b as yt, F as pt, c as ht, d as xt, f as It, i as bt, g as At, r as wt } from "./chunks/Feed.es.js";
|
|
8
|
-
import { b as Et, c as Dt, i as Tt } from "./chunks/
|
|
8
|
+
import { b as Et, c as Dt, i as Tt } from "./chunks/FilmstripEntityCard.es.js";
|
|
9
9
|
const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
|
|
10
10
|
const n = c, o = t, u = s, l = () => n[0].id != u, a = () => n[n.length - 1].id != u, r = () => o > 0 || l(), I = () => o < n.find((i) => i.id == u).files.length - 1 || a(), v = () => n[n.findIndex((i) => i.id == u) - 1], y = () => n[n.findIndex((i) => i.id == u) + 1], f = () => v().id, d = () => y().id;
|
|
11
11
|
return {
|
package/dist/ListTable.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import Gt, { useState as L, useEffect as Mt, useRef as At, useCallback as O, use
|
|
|
3
3
|
import A from "clsx";
|
|
4
4
|
import { flexRender as nt, useReactTable as Ee, getSortedRowModel as Re, getExpandedRowModel as Se, getCoreRowModel as we } from "@tanstack/react-table";
|
|
5
5
|
import { Button as ze, Icon as Ie } from "@ynput/ayon-react-components";
|
|
6
|
-
import "./chunks/
|
|
6
|
+
import "./chunks/FilmstripEntityCard.es.js";
|
|
7
7
|
import "date-fns";
|
|
8
8
|
import { D as Te, B as Ve, T as _e, E as ke, j as Le } from "./chunks/MetaWidget.es.js";
|
|
9
9
|
import "react-toastify";
|
|
@@ -22,29 +22,29 @@ import "@lexical/selection";
|
|
|
22
22
|
import "@lexical/utils";
|
|
23
23
|
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
24
24
|
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
25
|
-
import {
|
|
25
|
+
import { dK as vt, dL as Me } from "./chunks/getUris.es.js";
|
|
26
26
|
import { u as Ae } from "./chunks/TableExportContextInstance.es.js";
|
|
27
|
+
import "@ynput/ayon-addon";
|
|
27
28
|
import "@module-federation/enhanced/runtime";
|
|
28
29
|
import "@ynput/ayon-addon/host";
|
|
29
30
|
import "semver";
|
|
30
31
|
import { u as He } from "./chunks/useCreateContextMenu.es.js";
|
|
31
32
|
import "react-dom";
|
|
32
|
-
import "react-redux";
|
|
33
33
|
import "react-router-dom";
|
|
34
|
-
import "
|
|
34
|
+
import "react-redux";
|
|
35
35
|
import { useVirtualizer as Oe } from "@tanstack/react-virtual";
|
|
36
36
|
import { useSensors as $e, useSensor as Ct, PointerSensor as Ne, KeyboardSensor as je, DndContext as xt, closestCenter as Dt, DragOverlay as Et, defaultDropAnimationSideEffects as Rt } from "@dnd-kit/core";
|
|
37
37
|
import { restrictToHorizontalAxis as Ke, restrictToVerticalAxis as We } from "@dnd-kit/modifiers";
|
|
38
38
|
import { useSortable as Ht, sortableKeyboardCoordinates as Pe, arrayMove as Fe, SortableContext as St, horizontalListSortingStrategy as Be, verticalListSortingStrategy as Ye } from "@dnd-kit/sortable";
|
|
39
39
|
import { CSS as Ot } from "@dnd-kit/utilities";
|
|
40
40
|
import v from "styled-components";
|
|
41
|
-
import { H as Ue } from "./chunks/
|
|
41
|
+
import { H as Ue } from "./chunks/addonColumnTags.es.js";
|
|
42
42
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
43
43
|
import "./chunks/Menu.es.js";
|
|
44
44
|
import "./chunks/EmptyPlaceholder.es.js";
|
|
45
45
|
import "./chunks/EmptyPlaceholderFlex.styled.es.js";
|
|
46
46
|
import "./chunks/InfoMessage.es.js";
|
|
47
|
-
import { C as
|
|
47
|
+
import { C as Xe } from "./chunks/ColumnHeaderMenuUI.es.js";
|
|
48
48
|
import "primereact-context/contextmenu";
|
|
49
49
|
const $t = v.tr`
|
|
50
50
|
display: flex;
|
|
@@ -168,7 +168,7 @@ const $t = v.tr`
|
|
|
168
168
|
cursor: pointer;
|
|
169
169
|
box-sizing: border-box;
|
|
170
170
|
min-width: 0;
|
|
171
|
-
`,
|
|
171
|
+
`, Je = v.div`
|
|
172
172
|
display: flex;
|
|
173
173
|
align-items: center;
|
|
174
174
|
width: 100%;
|
|
@@ -580,7 +580,7 @@ const It = v.tbody`
|
|
|
580
580
|
zt,
|
|
581
581
|
{
|
|
582
582
|
style: { left: 0, paddingLeft: `calc(var(--padding-m) + ${t.depth * 16}px)` },
|
|
583
|
-
children: /* @__PURE__ */ a(
|
|
583
|
+
children: /* @__PURE__ */ a(Je, { children: l })
|
|
584
584
|
}
|
|
585
585
|
) }, `${t.id}-placeholder`);
|
|
586
586
|
}
|
|
@@ -835,7 +835,7 @@ function In({
|
|
|
835
835
|
children: [
|
|
836
836
|
/* @__PURE__ */ a(pn, { children: t.isPlaceholder ? null : nt(t.column.columnDef.header, t.getContext()) }),
|
|
837
837
|
(y.length > 0 || C) && /* @__PURE__ */ M(mn, { ...B, children: [
|
|
838
|
-
y.length > 0 && /* @__PURE__ */ a(
|
|
838
|
+
y.length > 0 && /* @__PURE__ */ a(Xe, { menuItems: y, menuId: f, className: "header-menu" }),
|
|
839
839
|
C && /* @__PURE__ */ a(
|
|
840
840
|
Ue,
|
|
841
841
|
{
|
|
@@ -1038,16 +1038,16 @@ function Lo({
|
|
|
1038
1038
|
sorting: Bt,
|
|
1039
1039
|
onSortingChange: Yt,
|
|
1040
1040
|
enableExpanding: Ut = !0,
|
|
1041
|
-
expanded:
|
|
1042
|
-
onExpandedChange:
|
|
1041
|
+
expanded: Xt,
|
|
1042
|
+
onExpandedChange: Jt,
|
|
1043
1043
|
getIsRowInactive: ot
|
|
1044
1044
|
}) {
|
|
1045
1045
|
const [qt, Qt] = L([]), [Zt, te] = L({}), [ee, ne] = L({}), [oe, ie] = L({}), Y = At(null), [it] = He(), rt = Bt ?? qt, re = (o) => {
|
|
1046
1046
|
const p = typeof o == "function" ? o(rt) : o;
|
|
1047
1047
|
Qt(p), Yt?.(p);
|
|
1048
|
-
}, st =
|
|
1048
|
+
}, st = Xt ?? oe, se = (o) => {
|
|
1049
1049
|
const p = typeof o == "function" ? o(st) : o;
|
|
1050
|
-
ie(p),
|
|
1050
|
+
ie(p), Jt?.(p);
|
|
1051
1051
|
}, U = S ?? Zt, ae = (o) => {
|
|
1052
1052
|
const p = typeof o == "function" ? o(at) : o, D = {};
|
|
1053
1053
|
Object.keys(p).forEach((I) => {
|
|
@@ -1099,17 +1099,17 @@ function Lo({
|
|
|
1099
1099
|
updateData: s,
|
|
1100
1100
|
openViewerDialog: m
|
|
1101
1101
|
}
|
|
1102
|
-
}), { rows: _ } = N.getRowModel(),
|
|
1102
|
+
}), { rows: _ } = N.getRowModel(), X = Oe({
|
|
1103
1103
|
count: i ? _.length + 1 : _.length,
|
|
1104
1104
|
getScrollElement: () => Y.current,
|
|
1105
1105
|
estimateSize: () => 44,
|
|
1106
1106
|
overscan: 10
|
|
1107
|
-
}),
|
|
1107
|
+
}), J = X.getVirtualItems(), { handleRowClick: de, handleKeyDown: ce } = Vn({
|
|
1108
1108
|
rows: _,
|
|
1109
1109
|
selectedRows: d,
|
|
1110
1110
|
onSelectedRowsChange: C,
|
|
1111
1111
|
multiSelection: g,
|
|
1112
|
-
rowVirtualizer:
|
|
1112
|
+
rowVirtualizer: X,
|
|
1113
1113
|
tableContainerRef: Y
|
|
1114
1114
|
}), ue = O(
|
|
1115
1115
|
(o, p, D) => {
|
|
@@ -1165,9 +1165,9 @@ function Lo({
|
|
|
1165
1165
|
handleRowDragCancel: ye
|
|
1166
1166
|
} = kn({ rows: _, columnOrder: dt, onReorderRows: E, setColumnOrder: ct, onColumnOrderChange: z }), ft = tt(() => ({ onUpdateRow: s, onOpenViewer: m }), [s, m]), ve = Ln(N), Ce = !!N.getState().columnSizingInfo.isResizingColumn;
|
|
1167
1167
|
Mt(() => {
|
|
1168
|
-
const [o] =
|
|
1168
|
+
const [o] = J.slice(-1);
|
|
1169
1169
|
o && o.index >= _.length - 1 && i && !u && r?.();
|
|
1170
|
-
}, [i, r, _.length, u,
|
|
1170
|
+
}, [i, r, _.length, u, J]);
|
|
1171
1171
|
const q = pt ? _.find((o) => o.id === pt) : null, j = mt ? N.getHeaderGroups()[0]?.headers.find((o) => o.id === mt) : null;
|
|
1172
1172
|
return /* @__PURE__ */ a(
|
|
1173
1173
|
Ze,
|
|
@@ -1233,12 +1233,12 @@ function Lo({
|
|
|
1233
1233
|
onDragCancel: ye,
|
|
1234
1234
|
modifiers: [We],
|
|
1235
1235
|
children: [
|
|
1236
|
-
/* @__PURE__ */ a(It, { style: { height: `${
|
|
1236
|
+
/* @__PURE__ */ a(It, { style: { height: `${X.getTotalSize()}px` }, children: /* @__PURE__ */ a(
|
|
1237
1237
|
St,
|
|
1238
1238
|
{
|
|
1239
1239
|
items: _.map((o) => o.id),
|
|
1240
1240
|
strategy: Ye,
|
|
1241
|
-
children:
|
|
1241
|
+
children: J.map((o) => {
|
|
1242
1242
|
if (o.index > _.length - 1)
|
|
1243
1243
|
return /* @__PURE__ */ a(
|
|
1244
1244
|
on,
|
package/dist/NewEntity.es.js
CHANGED
|
@@ -5,26 +5,26 @@ import "primereact/confirmdialog";
|
|
|
5
5
|
import { toast as me } from "react-toastify";
|
|
6
6
|
import { g as Xe, R as Me } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
7
7
|
import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bs as Qe } from "./chunks/searchTerms.es.js";
|
|
9
9
|
import "axios";
|
|
10
|
-
import {
|
|
10
|
+
import { dx as Ye } from "./chunks/getUris.es.js";
|
|
11
11
|
import "@module-federation/enhanced/runtime";
|
|
12
12
|
import "@ynput/ayon-addon/host";
|
|
13
13
|
import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as je, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
|
|
14
|
-
import {
|
|
14
|
+
import { q as Ne, s as ze, M as rt } from "./chunks/TableExportContextInstance.es.js";
|
|
15
15
|
import "semver";
|
|
16
16
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
17
17
|
import Ae from "clsx";
|
|
18
18
|
import "uuid";
|
|
19
19
|
import "react-dom";
|
|
20
|
-
import "react-redux";
|
|
21
20
|
import "react-router-dom";
|
|
22
|
-
import { g as ot,
|
|
21
|
+
import { g as ot, d as st, C as lt, h as it, i as ct, p as dt } from "./chunks/MetaWidget.es.js";
|
|
23
22
|
import { N as pt, u as ft } from "./chunks/NewEntityContextInstance.es.js";
|
|
24
23
|
import E from "styled-components";
|
|
25
24
|
import { a as ut, K as mt } from "./chunks/platform.es.js";
|
|
26
|
-
import "./chunks/
|
|
25
|
+
import "./chunks/FilmstripEntityCard.es.js";
|
|
27
26
|
import "date-fns";
|
|
27
|
+
import "@ynput/ayon-addon";
|
|
28
28
|
import "lexical";
|
|
29
29
|
import "@lexical/markdown";
|
|
30
30
|
import "match-sorter";
|
|
@@ -38,7 +38,7 @@ import "@lexical/react/LexicalDecoratorBlockNode";
|
|
|
38
38
|
import { u as ht } from "./chunks/useHierarchySelection.es.js";
|
|
39
39
|
import { n as te } from "./chunks/entityDefinitions.es.js";
|
|
40
40
|
import "@tanstack/react-table";
|
|
41
|
-
import "
|
|
41
|
+
import "react-redux";
|
|
42
42
|
const Ee = (i, m, u) => {
|
|
43
43
|
const c = i.match(/\d+$/), w = m.match(/\d+$/), h = c ? parseInt(c[0], 10) : NaN, D = (w ? parseInt(w[0], 10) : NaN) - h;
|
|
44
44
|
if (isNaN(D)) return [];
|