@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/types/hooks.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ declare type AddonListItem = {
|
|
|
39
39
|
/** Addon description */
|
|
40
40
|
description: string;
|
|
41
41
|
/** Production version of the addon */
|
|
42
|
-
productionVersion?: string;
|
|
42
|
+
productionVersion?: string | null;
|
|
43
43
|
/** Staging version of the addon */
|
|
44
|
-
stagingVersion?: string;
|
|
44
|
+
stagingVersion?: string | null;
|
|
45
45
|
/** Type of the addon */
|
|
46
46
|
addonType: 'server' | 'pipeline';
|
|
47
47
|
/** Is the addon a system addon? */
|
|
@@ -54,36 +54,40 @@ declare type AttributeData = {
|
|
|
54
54
|
/** Type of attribute value */
|
|
55
55
|
type?: 'string' | 'integer' | 'float' | 'boolean' | 'datetime' | 'list_of_strings' | 'list_of_integers' | 'list_of_any' | 'list_of_submodels' | 'dict';
|
|
56
56
|
/** Nice, human readable title of the attribute */
|
|
57
|
-
title?: string;
|
|
58
|
-
description?: string;
|
|
57
|
+
title?: string | null;
|
|
58
|
+
description?: string | null;
|
|
59
59
|
/** Example value of the field. */
|
|
60
60
|
example?: any;
|
|
61
61
|
/** Default value for the attribute. Do not set for list types. */
|
|
62
62
|
default?: any;
|
|
63
|
-
gt?: number | number;
|
|
64
|
-
ge?: number | number;
|
|
65
|
-
lt?: number | number;
|
|
66
|
-
le?: number | number;
|
|
67
|
-
minLength?: number;
|
|
68
|
-
maxLength?: number;
|
|
63
|
+
gt?: number | number | null;
|
|
64
|
+
ge?: number | number | null;
|
|
65
|
+
lt?: number | number | null;
|
|
66
|
+
le?: number | number | null;
|
|
67
|
+
minLength?: number | null;
|
|
68
|
+
maxLength?: number | null;
|
|
69
69
|
/** Minimum number of items in list type. */
|
|
70
|
-
minItems?: number;
|
|
70
|
+
minItems?: number | null;
|
|
71
71
|
/** Only for list types. Maximum number of items in the list. */
|
|
72
|
-
maxItems?: number;
|
|
72
|
+
maxItems?: number | null;
|
|
73
73
|
/** Only for string types. The value must match this regex. */
|
|
74
|
-
regex?: string;
|
|
74
|
+
regex?: string | null;
|
|
75
75
|
/** List of enum items used for displaying select widgets */
|
|
76
|
-
enum?: EnumItem[];
|
|
76
|
+
enum?: EnumItem[] | null;
|
|
77
77
|
/** Name of the function that provides enum values dynamically. */
|
|
78
|
-
enumResolver?: string;
|
|
78
|
+
enumResolver?: string | null;
|
|
79
79
|
/** Settings passed to the enum resolver function. */
|
|
80
|
-
enumResolverSettings?:
|
|
80
|
+
enumResolverSettings?: {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
} | null;
|
|
81
83
|
/** Inherit the attribute value from the parent entity. */
|
|
82
84
|
inherit?: boolean;
|
|
83
85
|
/** Specific widget style this field should use. */
|
|
84
|
-
widget?: string;
|
|
86
|
+
widget?: string | null;
|
|
85
87
|
/** Any additional config specific for the widget style.(Date formats, precision etc.) */
|
|
86
|
-
widgetSettings?:
|
|
88
|
+
widgetSettings?: {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
} | null;
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
export declare type AttributeEnumsRequest = string[] | 'all';
|
|
@@ -97,6 +101,8 @@ export declare interface AttributeEnumState {
|
|
|
97
101
|
|
|
98
102
|
declare type BooleanCalc = 'checked' | 'notChecked';
|
|
99
103
|
|
|
104
|
+
declare type BundleMode = 'production' | 'staging' | 'developer';
|
|
105
|
+
|
|
100
106
|
declare type ColumnsConfig = {
|
|
101
107
|
columnVisibility: VisibilityState;
|
|
102
108
|
columnOrder: ColumnOrderState;
|
|
@@ -189,19 +195,21 @@ declare type EnumCalc = 'values' | 'fill';
|
|
|
189
195
|
declare type EnumItem = {
|
|
190
196
|
value: string | number | number | boolean;
|
|
191
197
|
label: string;
|
|
192
|
-
description?: string;
|
|
193
|
-
fulltext?: string[];
|
|
194
|
-
group?: string;
|
|
198
|
+
description?: string | null;
|
|
199
|
+
fulltext?: string[] | null;
|
|
200
|
+
group?: string | null;
|
|
195
201
|
/** Icon name (material symbol) or IconModel object */
|
|
196
|
-
icon?: string | IconModel;
|
|
197
|
-
color?: string;
|
|
198
|
-
shortName?: string;
|
|
202
|
+
icon?: string | IconModel | null;
|
|
203
|
+
color?: string | null;
|
|
204
|
+
shortName?: string | null;
|
|
199
205
|
/** Enum item is visible, but not selectable */
|
|
200
206
|
disabled?: boolean;
|
|
201
207
|
/** Message to show when the option is disabled */
|
|
202
|
-
disabledMessage?: string;
|
|
203
|
-
/** Enum item is not
|
|
208
|
+
disabledMessage?: string | null;
|
|
209
|
+
/** Enum item is not visible in the dropdown */
|
|
204
210
|
hidden?: boolean;
|
|
211
|
+
/** Extra badge labels to display next to the item */
|
|
212
|
+
badges?: string[] | null;
|
|
205
213
|
};
|
|
206
214
|
|
|
207
215
|
declare interface EnumItemDialogProps {
|
|
@@ -234,27 +242,33 @@ export declare const filterProjectStatuses: (statuses: EntityStatus[], entityTyp
|
|
|
234
242
|
declare type FolderListItem = {
|
|
235
243
|
id: string;
|
|
236
244
|
path: string;
|
|
237
|
-
parentId?: string;
|
|
245
|
+
parentId?: string | null;
|
|
238
246
|
parents: string[];
|
|
239
247
|
name: string;
|
|
240
|
-
label?: string;
|
|
248
|
+
label?: string | null;
|
|
241
249
|
folderType: string;
|
|
242
250
|
hasTasks?: boolean;
|
|
243
251
|
hasChildren?: boolean;
|
|
244
252
|
hasReviewables?: boolean;
|
|
245
253
|
thumbnailHash: string;
|
|
246
|
-
taskNames?: string[];
|
|
247
|
-
tags?: string[];
|
|
254
|
+
taskNames?: string[] | null;
|
|
255
|
+
tags?: string[] | null;
|
|
248
256
|
status: string;
|
|
249
|
-
attrib?:
|
|
250
|
-
|
|
257
|
+
attrib?: {
|
|
258
|
+
[key: string]: any;
|
|
259
|
+
} | null;
|
|
260
|
+
active?: boolean;
|
|
261
|
+
visible?: boolean;
|
|
262
|
+
ownAttrib?: string[] | null;
|
|
251
263
|
createdAt: string;
|
|
252
264
|
updatedAt: string;
|
|
265
|
+
createdBy?: string | null;
|
|
266
|
+
updatedBy?: string | null;
|
|
253
267
|
};
|
|
254
268
|
|
|
255
269
|
declare type FolderType = {
|
|
256
270
|
name: string;
|
|
257
|
-
original_name?: string;
|
|
271
|
+
original_name?: string | null;
|
|
258
272
|
shortName?: string;
|
|
259
273
|
color?: string;
|
|
260
274
|
icon?: string;
|
|
@@ -303,20 +317,20 @@ declare interface GroupSettingsProps {
|
|
|
303
317
|
declare type HttpSourceInfo = {
|
|
304
318
|
type?: 'http';
|
|
305
319
|
url: string;
|
|
306
|
-
filename?: string;
|
|
320
|
+
filename?: string | null;
|
|
307
321
|
headers?: {
|
|
308
322
|
[key: string]: string;
|
|
309
|
-
};
|
|
323
|
+
} | null;
|
|
310
324
|
};
|
|
311
325
|
|
|
312
326
|
declare type IconModel = {
|
|
313
327
|
type?: 'material-symbols' | 'url';
|
|
314
328
|
/** The name of the icon (for type material-symbols) */
|
|
315
|
-
name?: string;
|
|
329
|
+
name?: string | null;
|
|
316
330
|
/** The color of the icon (for type material-symbols) */
|
|
317
|
-
color?: string;
|
|
331
|
+
color?: string | null;
|
|
318
332
|
/** The URL of the icon (for type url) */
|
|
319
|
-
url?: string;
|
|
333
|
+
url?: string | null;
|
|
320
334
|
};
|
|
321
335
|
|
|
322
336
|
declare type MainCalc = 'count' | 'breakdown';
|
|
@@ -436,8 +450,8 @@ declare type RowScope = 'all' | 'primary' | 'secondary' | 'none';
|
|
|
436
450
|
|
|
437
451
|
declare type ServerSourceInfo = {
|
|
438
452
|
type?: 'server';
|
|
439
|
-
filename?: string;
|
|
440
|
-
path?: string;
|
|
453
|
+
filename?: string | null;
|
|
454
|
+
path?: string | null;
|
|
441
455
|
};
|
|
442
456
|
|
|
443
457
|
declare type SettingsPanelItem = {
|
|
@@ -470,13 +484,13 @@ declare type SimpleTableRow = {
|
|
|
470
484
|
|
|
471
485
|
declare type Status = {
|
|
472
486
|
name: string;
|
|
473
|
-
original_name?: string;
|
|
487
|
+
original_name?: string | null;
|
|
474
488
|
shortName?: string;
|
|
475
489
|
state?: 'not_started' | 'in_progress' | 'done' | 'blocked';
|
|
476
490
|
icon?: string;
|
|
477
491
|
color?: string;
|
|
478
492
|
/** Limit the status to specific entity types. */
|
|
479
|
-
scope?: string[];
|
|
493
|
+
scope?: string[] | null;
|
|
480
494
|
};
|
|
481
495
|
|
|
482
496
|
declare type SummaryCalc = NumberCalc | BooleanCalc | TextCalc | EnumCalc | MainCalc;
|
|
@@ -490,7 +504,7 @@ declare interface TableGroupBy {
|
|
|
490
504
|
|
|
491
505
|
declare type TaskType = {
|
|
492
506
|
name: string;
|
|
493
|
-
original_name?: string;
|
|
507
|
+
original_name?: string | null;
|
|
494
508
|
shortName?: string;
|
|
495
509
|
color?: string;
|
|
496
510
|
icon?: string;
|
|
@@ -554,6 +568,12 @@ export declare interface UseEntityUpdateParams {
|
|
|
554
568
|
|
|
555
569
|
export declare const useFetchAttributeEnumOptions: () => FetchAttributeEnumOptions;
|
|
556
570
|
|
|
571
|
+
export declare const useGetBundleAddon: () => {
|
|
572
|
+
getBundleAddonVersion: (addonName: string, options?: VersionOptions) => string | undefined;
|
|
573
|
+
bundleVariant: BundleMode;
|
|
574
|
+
isLoading: boolean;
|
|
575
|
+
};
|
|
576
|
+
|
|
557
577
|
export declare const useGetEntityGroups: ({ groupBy, projectName, entityType }: GetEntityGroupsProps) => {
|
|
558
578
|
groups: EntityGroup[];
|
|
559
579
|
error: FetchBaseQueryError | SerializedError | undefined;
|
|
@@ -652,16 +672,25 @@ declare type VersionInfo = {
|
|
|
652
672
|
frontendScopes?: {
|
|
653
673
|
[key: string]: FrontendScopeSettings;
|
|
654
674
|
};
|
|
655
|
-
clientPyproject?:
|
|
656
|
-
|
|
657
|
-
|
|
675
|
+
clientPyproject?: {
|
|
676
|
+
[key: string]: any;
|
|
677
|
+
} | null;
|
|
678
|
+
clientSourceInfo?: (FilesystemSourceInfo | ServerSourceInfo | HttpSourceInfo)[] | null;
|
|
679
|
+
services?: {
|
|
680
|
+
[key: string]: any;
|
|
681
|
+
} | null;
|
|
658
682
|
isBroken?: boolean;
|
|
659
683
|
reason?: {
|
|
660
684
|
[key: string]: string;
|
|
661
|
-
};
|
|
685
|
+
} | null;
|
|
662
686
|
projectCanOverrideAddonVersion?: boolean;
|
|
663
687
|
};
|
|
664
688
|
|
|
689
|
+
declare type VersionOptions = {
|
|
690
|
+
version?: string;
|
|
691
|
+
minVersion?: string;
|
|
692
|
+
};
|
|
693
|
+
|
|
665
694
|
export declare const writeLocalStorage: <T>(key: string, value: T) => void;
|
|
666
695
|
|
|
667
696
|
export declare const writeSessionStorage: <T>(key: string, value: T) => void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,6 +44,12 @@ declare interface ThumbnailSimpleProps extends default_2.HTMLAttributes<HTMLDivE
|
|
|
44
44
|
onLoad?: default_2.ReactEventHandler<HTMLImageElement>;
|
|
45
45
|
onError?: default_2.ReactEventHandler<HTMLImageElement>;
|
|
46
46
|
iconOnly?: boolean;
|
|
47
|
+
/** show a hover-scrub filmstrip (the entity should have reviewables) */
|
|
48
|
+
filmstrip?: boolean;
|
|
49
|
+
/** filmstrip url override, when the entity props are not available */
|
|
50
|
+
filmstripUrl?: string | null;
|
|
51
|
+
/** should match object-fit of the image */
|
|
52
|
+
filmstripFit?: 'cover' | 'contain';
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
export declare const useMenuContext: () => MenuContextType;
|