@ynput/ayon-frontend-shared 0.7.6 → 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.
Files changed (70) hide show
  1. package/dist/DetailsPanel.es.js +361 -355
  2. package/dist/Feed.es.js +1 -1
  3. package/dist/ListTable.es.js +18 -18
  4. package/dist/NewEntity.es.js +30 -30
  5. package/dist/ProjectTreeTable.es.js +984 -974
  6. package/dist/ProjectsTable.es.js +3 -3
  7. package/dist/Slicer.es.js +53 -50
  8. package/dist/Views.es.js +150 -151
  9. package/dist/api.es.js +166 -165
  10. package/dist/chunks/Actions.es.js +9 -10
  11. package/dist/chunks/ColumnDropIndicator.es.js +2 -2
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +3 -4
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
  14. package/dist/chunks/DetailsDialog.es.js +3 -3
  15. package/dist/chunks/EmptyPlaceholder.es.js +7 -7
  16. package/dist/chunks/EntityPath.es.js +38 -39
  17. package/dist/chunks/EntityPickerDialog.es.js +65 -66
  18. package/dist/chunks/EntityTooltip.es.js +18 -19
  19. package/dist/chunks/Feed.es.js +1381 -1355
  20. package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
  21. package/dist/chunks/FilterErrorActions.es.js +2 -3
  22. package/dist/chunks/GroupSettingsFallback.es.js +2 -2
  23. package/dist/chunks/Menu.es.js +52 -53
  24. package/dist/chunks/MetaWidget.es.js +1948 -1875
  25. package/dist/chunks/ProjectFoldersContext.es.js +40 -40
  26. package/dist/chunks/RepresentationsList.es.js +1 -1
  27. package/dist/chunks/ReviewablesSelector.es.js +759 -742
  28. package/dist/chunks/SimpleTable.es.js +2 -1
  29. package/dist/chunks/Slicer.es.js +49 -50
  30. package/dist/chunks/TableExportContextInstance.es.js +600 -402
  31. package/dist/chunks/TableSettingsFallback.es.js +3 -4
  32. package/dist/chunks/ThumbnailSimple.es.js +114 -99
  33. package/dist/chunks/VideoPlayer.es.js +8 -9
  34. package/dist/chunks/Watchers.es.js +928 -871
  35. package/dist/chunks/expandRelativeDates.es.js +1 -1
  36. package/dist/chunks/getThumbnailUrl.es.js +33 -21
  37. package/dist/chunks/getUris.es.js +1580 -1610
  38. package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
  39. package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
  40. package/dist/chunks/searchTerms.es.js +773 -696
  41. package/dist/chunks/useAttributeEnums.es.js +22 -22
  42. package/dist/chunks/useDateRangeFilter.es.js +1 -1
  43. package/dist/chunks/useHierarchySelection.es.js +3 -4
  44. package/dist/chunks/useLoadModule.es.js +3 -4
  45. package/dist/components.es.js +475 -467
  46. package/dist/context.es.js +615 -540
  47. package/dist/hooks.es.js +193 -171
  48. package/dist/index.es.js +2 -2
  49. package/dist/types/Actions.d.ts +10 -8
  50. package/dist/types/DetailsPanel.d.ts +54 -76
  51. package/dist/types/EntityPickerDialog.d.ts +12 -6
  52. package/dist/types/Feed.d.ts +24 -24
  53. package/dist/types/ListTable.d.ts +33 -27
  54. package/dist/types/NewEntity.d.ts +26 -39
  55. package/dist/types/ProjectTreeTable.d.ts +199 -195
  56. package/dist/types/ProjectsTable.d.ts +6 -6
  57. package/dist/types/RepresentationsList.d.ts +4 -0
  58. package/dist/types/Slicer.d.ts +63 -246
  59. package/dist/types/Views.d.ts +71 -298
  60. package/dist/types/api.d.ts +3164 -2363
  61. package/dist/types/components.d.ts +327 -474
  62. package/dist/types/context.d.ts +285 -572
  63. package/dist/types/hooks.d.ts +76 -47
  64. package/dist/types/index.d.ts +6 -0
  65. package/dist/types/util.d.ts +141 -120
  66. package/dist/util.es.js +71 -68
  67. package/package.json +6 -6
  68. package/dist/chunks/EntityUpdatesContext.es.js +0 -61
  69. package/dist/chunks/PlayableIcon.es.js +0 -5020
  70. package/dist/chunks/viewUpdateHelper.es.js +0 -153
@@ -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?: object;
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?: object;
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 offered for selection, but resolves when already used */
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?: object;
250
- ownAttrib?: string[];
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?: object;
656
- clientSourceInfo?: (FilesystemSourceInfo | ServerSourceInfo | HttpSourceInfo)[];
657
- services?: object;
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;
@@ -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;