@ynput/ayon-frontend-shared 0.7.2 → 0.7.4
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/LICENSE +105 -0
- package/dist/DetailsPanel.es.js +1088 -969
- package/dist/ListTable.es.js +70 -67
- package/dist/NewEntity.es.js +8 -5
- package/dist/ProjectTreeTable.es.js +4134 -3825
- package/dist/ProjectsTable.es.js +526 -0
- package/dist/Slicer.es.js +75 -73
- package/dist/Views.es.js +86 -84
- package/dist/chunks/Actions.es.js +4 -2
- package/dist/chunks/ColumnDropIndicator.es.js +21 -18
- package/dist/chunks/ColumnDropIndicator.styled.es.js +14 -13
- package/dist/chunks/ColumnHeaderMenuUI.es.js +9 -7
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +12 -11
- package/dist/chunks/EmptyPlaceholder.es.js +9 -8
- package/dist/chunks/EntityPath.es.js +15 -14
- package/dist/chunks/EntityPickerDialog.es.js +5 -3
- package/dist/chunks/EntityTooltip.es.js +10 -8
- package/dist/chunks/EntityUpdatesContext.es.js +13 -12
- package/dist/chunks/Feed.es.js +12 -11
- package/dist/chunks/FilterErrorActions.es.js +6 -4
- package/dist/chunks/GroupSettingsFallback.es.js +75 -0
- package/dist/chunks/JsonViewer.es.js +3 -2
- package/dist/chunks/Menu.es.js +105 -103
- package/dist/chunks/MetaWidget.es.js +278 -275
- package/dist/chunks/PlayableIcon.es.js +868 -862
- package/dist/chunks/ProjectContext.es.js +5 -4
- package/dist/chunks/RepresentationsList.es.js +3 -2
- package/dist/chunks/ReviewablesSelector.es.js +3471 -2067
- package/dist/chunks/SimpleTable.es.js +492 -402
- package/dist/chunks/Slicer.es.js +936 -896
- package/dist/chunks/TableExportContextInstance.es.js +437 -339
- package/dist/chunks/TableSettingsFallback.es.js +5 -3
- package/dist/chunks/ThumbnailSimple.es.js +15 -13
- package/dist/chunks/VideoPlayer.es.js +14 -12
- package/dist/chunks/Watchers.es.js +97 -95
- package/dist/chunks/getProjectDisplayName.es.js +4 -0
- package/dist/chunks/getUris.es.js +375 -374
- package/dist/chunks/useHierarchySelection.es.js +5 -3
- package/dist/chunks/useLoadModule.es.js +10 -8
- package/dist/chunks/viewUpdateHelper.es.js +12 -10
- package/dist/components.es.js +1488 -1186
- package/dist/context.es.js +589 -539
- package/dist/hooks.es.js +169 -212
- package/dist/index.es.js +17 -12
- package/dist/types/Actions.d.ts +17 -14
- package/dist/types/ContextMenu.d.ts +17 -14
- package/dist/types/DetailsPanel.d.ts +17 -14
- package/dist/types/EntityPickerDialog.d.ts +17 -14
- package/dist/types/Feed.d.ts +17 -14
- package/dist/types/ListTable.d.ts +17 -14
- package/dist/types/NewEntity.d.ts +17 -14
- package/dist/types/ProjectTreeTable.d.ts +749 -15
- package/dist/types/ProjectsTable.d.ts +228 -0
- package/dist/types/RepresentationsList.d.ts +17 -14
- package/dist/types/SimpleTable.d.ts +31 -14
- package/dist/types/Slicer.d.ts +18 -14
- package/dist/types/Views.d.ts +17 -14
- package/dist/types/api.d.ts +17 -14
- package/dist/types/components.d.ts +822 -25
- package/dist/types/context.d.ts +53 -15
- package/dist/types/hooks.d.ts +17 -14
- package/dist/types/index.d.ts +17 -14
- package/dist/types/util.d.ts +21 -14
- package/dist/util.es.js +152 -144
- package/package.json +16 -9
- /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
package/dist/types/context.d.ts
CHANGED
|
@@ -58,6 +58,38 @@ export declare interface AddonContextProps extends RemoteAddonProps {
|
|
|
58
58
|
export declare interface AddonContextType extends RemoteAddonProps {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export declare type AddonDetailsPanelTab = `${string}.${string}`;
|
|
62
|
+
|
|
63
|
+
/** What `ayon-addon dev --ayon` serves as /ayon-addon.json next to the build. */
|
|
64
|
+
declare interface AddonDevInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
version: string;
|
|
67
|
+
remote: string;
|
|
68
|
+
modules: string[];
|
|
69
|
+
/** changes on every rebuild */
|
|
70
|
+
buildId: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare interface AddonDevOverride {
|
|
74
|
+
addon: string;
|
|
75
|
+
url: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare type AddonDevState = {
|
|
79
|
+
status: 'off';
|
|
80
|
+
} | {
|
|
81
|
+
status: 'loading';
|
|
82
|
+
override: AddonDevOverride;
|
|
83
|
+
} | {
|
|
84
|
+
status: 'active';
|
|
85
|
+
override: AddonDevOverride;
|
|
86
|
+
info: AddonDevInfo;
|
|
87
|
+
} | {
|
|
88
|
+
status: 'error';
|
|
89
|
+
override: AddonDevOverride;
|
|
90
|
+
error: string;
|
|
91
|
+
};
|
|
92
|
+
|
|
61
93
|
/** Selection for an addon-specific dialog */
|
|
62
94
|
export declare type AddonDialogSelection = {
|
|
63
95
|
addon: string;
|
|
@@ -372,7 +404,7 @@ export declare interface DetailsPanelProviderProps extends DetailsPanelContextPr
|
|
|
372
404
|
defaultTab?: DetailsPanelTab;
|
|
373
405
|
}
|
|
374
406
|
|
|
375
|
-
export declare type DetailsPanelTab = 'feed' | 'subtasks' | 'details' | 'files';
|
|
407
|
+
export declare type DetailsPanelTab = 'feed' | 'subtasks' | 'details' | 'files' | AddonDetailsPanelTab;
|
|
376
408
|
|
|
377
409
|
declare type EditingViewState = string | true | null;
|
|
378
410
|
|
|
@@ -738,6 +770,8 @@ declare type InfoResponseModel = {
|
|
|
738
770
|
offlineMode?: boolean;
|
|
739
771
|
};
|
|
740
772
|
|
|
773
|
+
export declare const isAddonDetailsPanelTab: (tab: unknown) => tab is AddonDetailsPanelTab;
|
|
774
|
+
|
|
741
775
|
export declare const isDeletableEntityType: (type?: string) => type is DeletableEntityType;
|
|
742
776
|
|
|
743
777
|
export declare const isDetailsPanelTab: (tab: unknown) => tab is DetailsPanelTab;
|
|
@@ -1303,6 +1337,7 @@ export declare type RemoteModulesContextType = {
|
|
|
1303
1337
|
isLoading: boolean;
|
|
1304
1338
|
modules: FrontendModuleListItem[];
|
|
1305
1339
|
remotesInitialized: boolean;
|
|
1340
|
+
addonDev: AddonDevState;
|
|
1306
1341
|
};
|
|
1307
1342
|
|
|
1308
1343
|
export declare const RemoteModulesProvider: ({ children, skip }: Props) => JSX_2.Element;
|
|
@@ -2574,20 +2609,6 @@ declare type YnputCloudSubscriptionModel = {
|
|
|
2574
2609
|
export { }
|
|
2575
2610
|
|
|
2576
2611
|
|
|
2577
|
-
declare module '@tanstack/react-table' {
|
|
2578
|
-
interface TableMeta<TData extends RowData> {
|
|
2579
|
-
options?: BuiltInFieldOptions;
|
|
2580
|
-
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
2581
|
-
projectName?: string;
|
|
2582
|
-
updateEntities?: CellUpdate;
|
|
2583
|
-
toggleExpandAll?: ToggleExpandAll;
|
|
2584
|
-
selection?: string[];
|
|
2585
|
-
columnsConfig?: ColumnsConfig;
|
|
2586
|
-
loadingLinksEntityIds?: Set<string>;
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
2612
|
declare module '@tanstack/react-table' {
|
|
2592
2613
|
interface FilterFns {
|
|
2593
2614
|
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
@@ -2604,6 +2625,23 @@ declare module '@tanstack/react-table' {
|
|
|
2604
2625
|
}
|
|
2605
2626
|
|
|
2606
2627
|
|
|
2628
|
+
declare module '@tanstack/react-table' {
|
|
2629
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
2630
|
+
addonColumn?: AddonColumnMeta;
|
|
2631
|
+
}
|
|
2632
|
+
interface TableMeta<TData extends RowData> {
|
|
2633
|
+
options?: BuiltInFieldOptions;
|
|
2634
|
+
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
2635
|
+
projectName?: string;
|
|
2636
|
+
updateEntities?: CellUpdate;
|
|
2637
|
+
toggleExpandAll?: ToggleExpandAll;
|
|
2638
|
+
selection?: string[];
|
|
2639
|
+
columnsConfig?: ColumnsConfig;
|
|
2640
|
+
loadingLinksEntityIds?: Set<string>;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
|
|
2607
2645
|
declare global {
|
|
2608
2646
|
interface Window {
|
|
2609
2647
|
senderId: string;
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -669,20 +669,6 @@ export declare const writeSessionStorage: <T>(key: string, value: T) => void;
|
|
|
669
669
|
export { }
|
|
670
670
|
|
|
671
671
|
|
|
672
|
-
declare module '@tanstack/react-table' {
|
|
673
|
-
interface TableMeta<TData extends RowData> {
|
|
674
|
-
options?: BuiltInFieldOptions;
|
|
675
|
-
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
676
|
-
projectName?: string;
|
|
677
|
-
updateEntities?: CellUpdate;
|
|
678
|
-
toggleExpandAll?: ToggleExpandAll;
|
|
679
|
-
selection?: string[];
|
|
680
|
-
columnsConfig?: ColumnsConfig;
|
|
681
|
-
loadingLinksEntityIds?: Set<string>;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
|
|
686
672
|
declare module '@tanstack/react-table' {
|
|
687
673
|
interface FilterFns {
|
|
688
674
|
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
@@ -699,6 +685,23 @@ declare module '@tanstack/react-table' {
|
|
|
699
685
|
}
|
|
700
686
|
|
|
701
687
|
|
|
688
|
+
declare module '@tanstack/react-table' {
|
|
689
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
690
|
+
addonColumn?: AddonColumnMeta;
|
|
691
|
+
}
|
|
692
|
+
interface TableMeta<TData extends RowData> {
|
|
693
|
+
options?: BuiltInFieldOptions;
|
|
694
|
+
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
695
|
+
projectName?: string;
|
|
696
|
+
updateEntities?: CellUpdate;
|
|
697
|
+
toggleExpandAll?: ToggleExpandAll;
|
|
698
|
+
selection?: string[];
|
|
699
|
+
columnsConfig?: ColumnsConfig;
|
|
700
|
+
loadingLinksEntityIds?: Set<string>;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
702
705
|
declare global {
|
|
703
706
|
interface Window {
|
|
704
707
|
senderId: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -62,20 +62,6 @@ declare interface UserImageProps {
|
|
|
62
62
|
export { }
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
declare module '@tanstack/react-table' {
|
|
66
|
-
interface TableMeta<TData extends RowData> {
|
|
67
|
-
options?: BuiltInFieldOptions;
|
|
68
|
-
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
69
|
-
projectName?: string;
|
|
70
|
-
updateEntities?: CellUpdate;
|
|
71
|
-
toggleExpandAll?: ToggleExpandAll;
|
|
72
|
-
selection?: string[];
|
|
73
|
-
columnsConfig?: ColumnsConfig;
|
|
74
|
-
loadingLinksEntityIds?: Set<string>;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
65
|
declare module '@tanstack/react-table' {
|
|
80
66
|
interface FilterFns {
|
|
81
67
|
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
@@ -92,6 +78,23 @@ declare module '@tanstack/react-table' {
|
|
|
92
78
|
}
|
|
93
79
|
|
|
94
80
|
|
|
81
|
+
declare module '@tanstack/react-table' {
|
|
82
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
83
|
+
addonColumn?: AddonColumnMeta;
|
|
84
|
+
}
|
|
85
|
+
interface TableMeta<TData extends RowData> {
|
|
86
|
+
options?: BuiltInFieldOptions;
|
|
87
|
+
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
88
|
+
projectName?: string;
|
|
89
|
+
updateEntities?: CellUpdate;
|
|
90
|
+
toggleExpandAll?: ToggleExpandAll;
|
|
91
|
+
selection?: string[];
|
|
92
|
+
columnsConfig?: ColumnsConfig;
|
|
93
|
+
loadingLinksEntityIds?: Set<string>;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
95
98
|
declare global {
|
|
96
99
|
interface Window {
|
|
97
100
|
senderId: string;
|
package/dist/types/util.d.ts
CHANGED
|
@@ -258,6 +258,8 @@ export declare interface CheckNameResult {
|
|
|
258
258
|
error?: string;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
export declare const clearAccessToken: () => void;
|
|
262
|
+
|
|
261
263
|
export declare const clearActiveEntities: (key: string) => void;
|
|
262
264
|
|
|
263
265
|
declare type ColumnItemModel = {
|
|
@@ -1110,6 +1112,8 @@ declare type Status = {
|
|
|
1110
1112
|
scope?: string[];
|
|
1111
1113
|
};
|
|
1112
1114
|
|
|
1115
|
+
export declare const storeAccessToken: (accessToken: string) => void;
|
|
1116
|
+
|
|
1113
1117
|
/**
|
|
1114
1118
|
* Subscribes a callback to listen for thumbnail updates.
|
|
1115
1119
|
*
|
|
@@ -1252,20 +1256,6 @@ declare type WorkTemplate = {
|
|
|
1252
1256
|
export { }
|
|
1253
1257
|
|
|
1254
1258
|
|
|
1255
|
-
declare module '@tanstack/react-table' {
|
|
1256
|
-
interface TableMeta<TData extends RowData> {
|
|
1257
|
-
options?: BuiltInFieldOptions;
|
|
1258
|
-
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
1259
|
-
projectName?: string;
|
|
1260
|
-
updateEntities?: CellUpdate;
|
|
1261
|
-
toggleExpandAll?: ToggleExpandAll;
|
|
1262
|
-
selection?: string[];
|
|
1263
|
-
columnsConfig?: ColumnsConfig;
|
|
1264
|
-
loadingLinksEntityIds?: Set<string>;
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
1259
|
declare module '@tanstack/react-table' {
|
|
1270
1260
|
interface FilterFns {
|
|
1271
1261
|
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
@@ -1282,6 +1272,23 @@ declare module '@tanstack/react-table' {
|
|
|
1282
1272
|
}
|
|
1283
1273
|
|
|
1284
1274
|
|
|
1275
|
+
declare module '@tanstack/react-table' {
|
|
1276
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
1277
|
+
addonColumn?: AddonColumnMeta;
|
|
1278
|
+
}
|
|
1279
|
+
interface TableMeta<TData extends RowData> {
|
|
1280
|
+
options?: BuiltInFieldOptions;
|
|
1281
|
+
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
1282
|
+
projectName?: string;
|
|
1283
|
+
updateEntities?: CellUpdate;
|
|
1284
|
+
toggleExpandAll?: ToggleExpandAll;
|
|
1285
|
+
selection?: string[];
|
|
1286
|
+
columnsConfig?: ColumnsConfig;
|
|
1287
|
+
loadingLinksEntityIds?: Set<string>;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
|
|
1285
1292
|
declare global {
|
|
1286
1293
|
interface Window {
|
|
1287
1294
|
senderId: string;
|
package/dist/util.es.js
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { c as
|
|
3
|
-
import { a as
|
|
4
|
-
import { e as
|
|
5
|
-
import { g as
|
|
6
|
-
import { A as
|
|
7
|
-
import { c as
|
|
8
|
-
import { g as
|
|
9
|
-
import { c as
|
|
10
|
-
import { bu as
|
|
11
|
-
import { bv as
|
|
12
|
-
import { M as
|
|
13
|
-
import { e as
|
|
14
|
-
import { c as
|
|
15
|
-
import { c as
|
|
16
|
-
import { D as
|
|
17
|
-
import { p as
|
|
18
|
-
import { b as
|
|
19
|
-
import { g as
|
|
20
|
-
import { U as
|
|
21
|
-
import { b as
|
|
22
|
-
import { g as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
1
|
+
import { K as R, g as P, a as _ } from "./chunks/platform.es.js";
|
|
2
|
+
import { c as g } from "./chunks/confirmDelete.es.js";
|
|
3
|
+
import { a as F } from "./chunks/confirmDelete.es.js";
|
|
4
|
+
import { e as D, g as M, a as U } from "./chunks/getEntityTypeIcon.es.js";
|
|
5
|
+
import { g as k, r as w } from "./chunks/replaceRoot.es.js";
|
|
6
|
+
import { A as O, c as B, e as H, g as V, a as z, s as K, u as Q, b as $ } from "./chunks/activeEntities.es.js";
|
|
7
|
+
import { c as J } from "./chunks/copyToClipboard.es.js";
|
|
8
|
+
import { g as q, h as G } from "./chunks/humanizeFieldName.es.js";
|
|
9
|
+
import { c as X, a as Z, g as ee, b as ae, d as te, p as re, e as se } from "./chunks/iconUtils.es.js";
|
|
10
|
+
import { bu as u } from "./chunks/searchTerms.es.js";
|
|
11
|
+
import { bv as ie, bp as ne, bw as le, bx as ce, br as me, by as pe, bt as de, bz as ge, bA as ue, bB as fe, bq as Ee, bC as be, bD as Te, bE as he, bs as Se, bF as xe, bG as ye, bH as Ae, bI as Ie, bJ as Re } from "./chunks/searchTerms.es.js";
|
|
12
|
+
import { M as _e, a as Le, b as Fe, d as Ce, e as De, f as Me, c as Ue, g as ve, h as ke, i as we, j as Ne, p as Oe, s as Be, k as He, v as Ve, w as ze } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
13
|
+
import { e as Qe } from "./chunks/extractVersionFromFilename.es.js";
|
|
14
|
+
import { c as je, a as Je, b as Ye, g as qe, h as Ge, s as We, v as Xe, d as Ze, e as ea } from "./chunks/versionUploadHelpers.es.js";
|
|
15
|
+
import { c as ta, a as ra } from "./chunks/columnConfigConverter.es.js";
|
|
16
|
+
import { D as oa, L as ia, l as na, r as la, s as ca } from "./chunks/sortLists.es.js";
|
|
17
|
+
import { p as pa } from "./chunks/pluralize.es.js";
|
|
18
|
+
import { b as ga, a as ua, h as fa, p as Ea, r as ba } from "./chunks/colorUtils.es.js";
|
|
19
|
+
import { g as ha } from "./chunks/getGroupByDataType.es.js";
|
|
20
|
+
import { U as xa, b as ya, c as Aa, g as Ia, a as Ra, d as Pa, p as _a, u as La } from "./chunks/getBundleMode.es.js";
|
|
21
|
+
import { b as Ca, s as Da } from "./chunks/buildHierarchicalTableRows.es.js";
|
|
22
|
+
import { g as Ua } from "./chunks/getProjectDisplayName.es.js";
|
|
23
|
+
import { g as ka, a as wa } from "./chunks/getThumbnailUrl.es.js";
|
|
24
|
+
import { p as Oa } from "./chunks/parseFilename.es.js";
|
|
25
|
+
import { i as Ha } from "./chunks/isHTMLElement.es.js";
|
|
26
|
+
import { S as za, a as Ka } from "./chunks/afterStartup.es.js";
|
|
27
|
+
import l from "axios";
|
|
28
|
+
import { ConfirmDialog as $a } from "primereact/confirmdialog";
|
|
29
|
+
const T = (e) => {
|
|
28
30
|
const t = /* @__PURE__ */ new Map(), s = [];
|
|
29
31
|
for (const a of e)
|
|
30
32
|
t.set(a.id, { ...a, children: [] });
|
|
@@ -33,27 +35,27 @@ const E = (e) => {
|
|
|
33
35
|
a.parentId && t.has(a.parentId) ? t.get(a.parentId).children.push(o) : s.push(o);
|
|
34
36
|
}
|
|
35
37
|
return { folderMap: t, rootFolders: s };
|
|
36
|
-
},
|
|
38
|
+
}, h = async ({
|
|
37
39
|
folderIds: e,
|
|
38
40
|
folders: t,
|
|
39
41
|
deleteMutation: s,
|
|
40
42
|
onSelect: a,
|
|
41
43
|
itemTypeName: o,
|
|
42
|
-
messageDetail:
|
|
44
|
+
messageDetail: c
|
|
43
45
|
}) => {
|
|
44
|
-
const n = Array.isArray(e) ? e : [e], i = n.map((r) => t?.find((
|
|
45
|
-
|
|
46
|
+
const n = Array.isArray(e) ? e : [e], i = n.map((r) => t?.find((d) => d.id === r)).filter(Boolean), m = i.length === 1 ? i[0]?.label || "Folder" : i.length > 1 ? `${i.length} folders` : "Folder", p = `Only the folder(s) will be deleted. ${o} inside the folder will remain.`;
|
|
47
|
+
g({
|
|
46
48
|
accept: async () => {
|
|
47
49
|
try {
|
|
48
50
|
await Promise.all(n.map((r) => s(r))), a([]);
|
|
49
51
|
} catch (r) {
|
|
50
|
-
throw
|
|
52
|
+
throw u(r, "Failed to delete folder(s)");
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
|
-
label:
|
|
54
|
-
message:
|
|
55
|
+
label: m,
|
|
56
|
+
message: c || p
|
|
55
57
|
});
|
|
56
|
-
},
|
|
58
|
+
}, S = {
|
|
57
59
|
"@@@": {
|
|
58
60
|
id: "task"
|
|
59
61
|
},
|
|
@@ -64,116 +66,122 @@ const E = (e) => {
|
|
|
64
66
|
id: "user",
|
|
65
67
|
isCircle: !0
|
|
66
68
|
}
|
|
69
|
+
}, x = (e) => {
|
|
70
|
+
localStorage.setItem("accessToken", e), l.defaults.headers.common.Authorization = `Bearer ${e}`, document.cookie = `accessToken=${e}; path=/; max-age=86400`;
|
|
71
|
+
}, y = () => {
|
|
72
|
+
localStorage.removeItem("accessToken"), delete l.defaults.headers.common.Authorization, document.cookie = "accessToken=; path=/; max-age=0";
|
|
67
73
|
};
|
|
68
74
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
be as
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
75
|
+
O as ACTIVE_ENTITIES_PRIORITY,
|
|
76
|
+
$a as ConfirmDialog,
|
|
77
|
+
oa as DEFAULT_LISTS_SORT,
|
|
78
|
+
ie as ENUM_CONTEXT_PARAMS,
|
|
79
|
+
R as KeyMode,
|
|
80
|
+
ia as LISTS_SORT_OPTIONS,
|
|
81
|
+
_e as MAX_SORT_KEYS,
|
|
82
|
+
ne as PubSub,
|
|
83
|
+
Le as REALTIME_REST_CALL_LIMIT,
|
|
84
|
+
Fe as REALTIME_REST_JITTER,
|
|
85
|
+
Ce as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
|
|
86
|
+
De as REALTIME_UPDATE_DEBOUNCE,
|
|
87
|
+
za as STARTUP_DELAY,
|
|
88
|
+
xa as URL_PARAM_ID,
|
|
89
|
+
Ka as afterStartup,
|
|
90
|
+
ga as blendCategoryColor,
|
|
91
|
+
ua as blendColors,
|
|
92
|
+
ya as buildEntityUri,
|
|
93
|
+
T as buildFolderHierarchy,
|
|
94
|
+
Ca as buildHierarchicalTableRows,
|
|
95
|
+
Me as buildSortArgs,
|
|
96
|
+
X as checkLabel,
|
|
97
|
+
Z as checkName,
|
|
98
|
+
y as clearAccessToken,
|
|
99
|
+
B as clearActiveEntities,
|
|
100
|
+
g as confirmDelete,
|
|
101
|
+
F as confirmDeleteDialog,
|
|
102
|
+
Aa as consumeUriHandoff,
|
|
103
|
+
ta as convertColumnConfigToTanstackStates,
|
|
104
|
+
ra as convertTanstackStatesToColumnConfig,
|
|
105
|
+
J as copyToClipboard,
|
|
106
|
+
je as createProductAndVersion,
|
|
107
|
+
Je as createProductHelper,
|
|
108
|
+
Ue as createRealtimeBatcher,
|
|
109
|
+
Ye as createVersionHelper,
|
|
110
|
+
D as entityTypesWithIcons,
|
|
111
|
+
H as extractEntityHierarchyFromParents,
|
|
112
|
+
Qe as extractVersionFromFilename,
|
|
113
|
+
le as filterBySearchQuery,
|
|
114
|
+
V as getActiveEntities,
|
|
115
|
+
ee as getAttributeIcon,
|
|
116
|
+
Ia as getBundleModeFromUser,
|
|
117
|
+
P as getCurrentPlatform,
|
|
118
|
+
ae as getEntityColor,
|
|
119
|
+
te as getEntityIcon,
|
|
120
|
+
ve as getEntityId,
|
|
121
|
+
Ra as getEntityStateFromUri,
|
|
122
|
+
ka as getEntityThumbnailUrl,
|
|
123
|
+
M as getEntityTypeIcon,
|
|
124
|
+
ce as getEnumContextParams,
|
|
125
|
+
me as getEnumErrorText,
|
|
126
|
+
pe as getEnumItemIcon,
|
|
127
|
+
u as getErrorMessage,
|
|
128
|
+
ke as getForwardSortBy,
|
|
129
|
+
ha as getGroupByDataType,
|
|
130
|
+
U as getListIcon,
|
|
131
|
+
q as getMixedState,
|
|
132
|
+
qe as getNextVersionNumber,
|
|
133
|
+
_ as getPlatformShortcutKey,
|
|
134
|
+
we as getPrimarySortKey,
|
|
135
|
+
z as getPriorityOptions,
|
|
136
|
+
Ua as getProjectDisplayName,
|
|
137
|
+
wa as getProjectThumbnailUrl,
|
|
138
|
+
de as getRequestErrorString,
|
|
139
|
+
ge as getSelectableAssignees,
|
|
140
|
+
ue as getSelectableEnumItems,
|
|
141
|
+
Pa as getSettingsStateFromUri,
|
|
142
|
+
Ne as getSupportedEntityPatch,
|
|
143
|
+
k as groupResult,
|
|
144
|
+
h as handleDeleteFolders,
|
|
145
|
+
Ge as handleUploadError,
|
|
146
|
+
fe as hasEnumOptions,
|
|
147
|
+
Ee as hasEnumResolver,
|
|
148
|
+
fa as hexToRgb,
|
|
149
|
+
G as humanizeField,
|
|
150
|
+
be as isEnumContextParam,
|
|
151
|
+
Te as isEnumIconImage,
|
|
152
|
+
Ha as isHTMLElement,
|
|
153
|
+
na as labelCollator,
|
|
154
|
+
he as matchSearchQuery,
|
|
148
155
|
S as mentionTypeOptions,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Xe as
|
|
177
|
-
|
|
178
|
-
|
|
156
|
+
Se as normalizeEnumItems,
|
|
157
|
+
re as parseAndFormatName,
|
|
158
|
+
Ea as parseColor,
|
|
159
|
+
Oa as parseFilename,
|
|
160
|
+
se as parseHtmlToPlainTextWithLinks,
|
|
161
|
+
xe as parseSearchQuery,
|
|
162
|
+
_a as parseUri,
|
|
163
|
+
Oe as parseViewSorting,
|
|
164
|
+
ye as pastedListToSearch,
|
|
165
|
+
pa as pluralize,
|
|
166
|
+
w as replaceRoot,
|
|
167
|
+
la as resolveListsSort,
|
|
168
|
+
ba as rgbToHex,
|
|
169
|
+
We as sanitizeProductName,
|
|
170
|
+
Ae as searchQueryToFilter,
|
|
171
|
+
Be as serializeViewSorting,
|
|
172
|
+
K as setActiveEntities,
|
|
173
|
+
Da as shouldBlockShortcuts,
|
|
174
|
+
Ie as sortKeysDeep,
|
|
175
|
+
ca as sortLists,
|
|
176
|
+
x as storeAccessToken,
|
|
177
|
+
He as subscribeToThumbnailUpdates,
|
|
178
|
+
Re as toDropdownErrorText,
|
|
179
|
+
Q as useActiveEntities,
|
|
180
|
+
$ as useRegisterActiveEntities,
|
|
181
|
+
La as useStagingModeState,
|
|
182
|
+
Ve as validateEntityId,
|
|
183
|
+
Xe as validateFormData,
|
|
184
|
+
Ze as validateProductName,
|
|
185
|
+
ea as validateVersion,
|
|
186
|
+
ze as waitForRealtimeJitter
|
|
179
187
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ynput/ayon-frontend-shared",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Shared React components for AYON frontend",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/ynput/ayon-frontend.git",
|
|
8
|
+
"directory": "shared"
|
|
9
|
+
},
|
|
10
|
+
"license": "FSL-1.1-ALv2",
|
|
5
11
|
"module": "dist/index.es.js",
|
|
6
12
|
"exports": {
|
|
7
13
|
".": {
|
|
@@ -24,10 +30,6 @@
|
|
|
24
30
|
"types": "./dist/types/context.d.ts",
|
|
25
31
|
"import": "./dist/context.es.js"
|
|
26
32
|
},
|
|
27
|
-
"./shared": {
|
|
28
|
-
"types": "./dist/types/shared.d.ts",
|
|
29
|
-
"import": "./dist/shared.es.js"
|
|
30
|
-
},
|
|
31
33
|
"./util": {
|
|
32
34
|
"types": "./dist/types/util.d.ts",
|
|
33
35
|
"import": "./dist/util.es.js"
|
|
@@ -68,6 +70,10 @@
|
|
|
68
70
|
"types": "./dist/types/SimpleTable.d.ts",
|
|
69
71
|
"import": "./dist/SimpleTable.es.js"
|
|
70
72
|
},
|
|
73
|
+
"./ProjectsTable": {
|
|
74
|
+
"types": "./dist/types/ProjectsTable.d.ts",
|
|
75
|
+
"import": "./dist/ProjectsTable.es.js"
|
|
76
|
+
},
|
|
71
77
|
"./EntityPickerDialog": {
|
|
72
78
|
"types": "./dist/types/EntityPickerDialog.d.ts",
|
|
73
79
|
"import": "./dist/EntityPickerDialog.es.js"
|
|
@@ -79,7 +85,8 @@
|
|
|
79
85
|
"./NewEntity": {
|
|
80
86
|
"types": "./dist/types/NewEntity.d.ts",
|
|
81
87
|
"import": "./dist/NewEntity.es.js"
|
|
82
|
-
}
|
|
88
|
+
},
|
|
89
|
+
"./style.css": "./dist/style.css"
|
|
83
90
|
},
|
|
84
91
|
"files": [
|
|
85
92
|
"dist"
|
|
@@ -97,7 +104,8 @@
|
|
|
97
104
|
"@reduxjs/toolkit": "2.11.2",
|
|
98
105
|
"@rtk-query/graphql-request-base-query": "2.3.2",
|
|
99
106
|
"@tanstack/react-table": "8.21.3",
|
|
100
|
-
"@ynput/ayon-
|
|
107
|
+
"@ynput/ayon-addon": "^0.1.0",
|
|
108
|
+
"@ynput/ayon-react-components": "^1.23.0",
|
|
101
109
|
"graphql-request": "7.4.0",
|
|
102
110
|
"react": "18.3.1",
|
|
103
111
|
"react-dom": "18.3.1",
|
|
@@ -116,7 +124,7 @@
|
|
|
116
124
|
"@vitejs/plugin-react": "4.7.0",
|
|
117
125
|
"typescript": "5.9.3",
|
|
118
126
|
"unplugin-dts": "^1.1.1",
|
|
119
|
-
"vite": "7.3.
|
|
127
|
+
"vite": "7.3.7",
|
|
120
128
|
"vite-plugin-linter": "4.0.0"
|
|
121
129
|
},
|
|
122
130
|
"dependencies": {
|
|
@@ -137,7 +145,6 @@
|
|
|
137
145
|
"@tanstack/react-virtual": "3.13.23",
|
|
138
146
|
"@uiw/react-textarea-code-editor": "2.1.9",
|
|
139
147
|
"@ynput/ayon-player": "1.0.2",
|
|
140
|
-
"@ynput/ayon-react-components": "^1.22.1",
|
|
141
148
|
"axios": "1.20.0",
|
|
142
149
|
"clsx": "2.1.1",
|
|
143
150
|
"custom-protocol-check": "1.4.0",
|
|
File without changes
|