@ynput/ayon-frontend-shared 0.7.4 → 0.7.6

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 (52) hide show
  1. package/dist/DetailsPanel.es.js +376 -380
  2. package/dist/ListTable.es.js +2 -2
  3. package/dist/NewEntity.es.js +26 -26
  4. package/dist/ProjectTreeTable.es.js +2521 -2510
  5. package/dist/ProjectsTable.es.js +3 -3
  6. package/dist/Slicer.es.js +32 -32
  7. package/dist/Views.es.js +1 -1
  8. package/dist/chunks/ColumnDropIndicator.es.js +2 -2
  9. package/dist/chunks/ColumnHeaderMenuUI.es.js +1 -1
  10. package/dist/chunks/EntityPath.es.js +1 -1
  11. package/dist/chunks/EntityPickerDialog.es.js +481 -460
  12. package/dist/chunks/EntityTooltip.es.js +1 -1
  13. package/dist/chunks/Feed.es.js +11 -10
  14. package/dist/chunks/FilterErrorActions.es.js +1 -1
  15. package/dist/chunks/GroupSettingsFallback.es.js +2 -2
  16. package/dist/chunks/Menu.es.js +250 -247
  17. package/dist/chunks/MetaWidget.es.js +2 -2
  18. package/dist/chunks/PlayableIcon.es.js +368 -368
  19. package/dist/chunks/ProjectFoldersContext.es.js +237 -0
  20. package/dist/chunks/ReviewablesSelector.es.js +1223 -1170
  21. package/dist/chunks/SimpleTable.es.js +301 -296
  22. package/dist/chunks/Slicer.es.js +418 -410
  23. package/dist/chunks/TableExportContextInstance.es.js +428 -382
  24. package/dist/chunks/ThumbnailUploaderContext.es.js +48 -0
  25. package/dist/chunks/Watchers.es.js +2 -2
  26. package/dist/chunks/{ColumnDropIndicator.styled.es.js → addonColumnTags.es.js} +60 -47
  27. package/dist/components.es.js +1404 -1274
  28. package/dist/context.es.js +559 -657
  29. package/dist/hooks.es.js +2 -2
  30. package/dist/index.es.js +2 -2
  31. package/dist/types/Actions.d.ts +16 -16
  32. package/dist/types/ContextMenu.d.ts +16 -16
  33. package/dist/types/DetailsPanel.d.ts +16 -16
  34. package/dist/types/EntityPickerDialog.d.ts +61 -18
  35. package/dist/types/Feed.d.ts +16 -16
  36. package/dist/types/ListTable.d.ts +16 -16
  37. package/dist/types/NewEntity.d.ts +16 -16
  38. package/dist/types/ProjectTreeTable.d.ts +135 -33
  39. package/dist/types/ProjectsTable.d.ts +16 -16
  40. package/dist/types/RepresentationsList.d.ts +16 -16
  41. package/dist/types/SimpleTable.d.ts +16 -16
  42. package/dist/types/Slicer.d.ts +16 -16
  43. package/dist/types/Views.d.ts +16 -16
  44. package/dist/types/api.d.ts +16 -16
  45. package/dist/types/components.d.ts +226 -39
  46. package/dist/types/context.d.ts +24 -16
  47. package/dist/types/hooks.d.ts +16 -16
  48. package/dist/types/index.d.ts +16 -16
  49. package/dist/types/util.d.ts +16 -16
  50. package/package.json +3 -3
  51. package/dist/chunks/ProjectContext.es.js +0 -158
  52. package/dist/chunks/useQueryArgumentChangeLoading.es.js +0 -11
package/dist/hooks.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { d as P, b as x } from "./chunks/TableExportContextInstance.es.js";
2
- import { r as ve, p as Ie, q as be, o as Ae, w as He, s as Pe } from "./chunks/TableExportContextInstance.es.js";
2
+ import { r as ve, q as Ie, s as be, p as Ae, w as He, v as Pe } from "./chunks/TableExportContextInstance.es.js";
3
3
  import { u as G } from "./chunks/useLoadModule.es.js";
4
4
  import { loadRemote as R } from "@module-federation/enhanced/runtime";
5
5
  import { useRef as T, useState as S, useEffect as v, useCallback as V } from "react";
@@ -22,7 +22,7 @@ import "react-dom";
22
22
  import "react-redux";
23
23
  import "react-router-dom";
24
24
  import { u as Ke } from "./chunks/EntityPickerDialog.es.js";
25
- import { u as _e } from "./chunks/useQueryArgumentChangeLoading.es.js";
25
+ import { u as _e } from "./chunks/ProjectFoldersContext.es.js";
26
26
  import { u as $e } from "./chunks/useGroupedPagination.es.js";
27
27
  import { G as O } from "./chunks/GroupSettingsFallback.es.js";
28
28
  import { i as K } from "./chunks/isHTMLElement.es.js";
package/dist/index.es.js CHANGED
@@ -43,9 +43,9 @@ import "@dnd-kit/sortable";
43
43
  import "@dnd-kit/utilities";
44
44
  import "./chunks/VersionUploadContextInstance.es.js";
45
45
  import "./chunks/EntityTooltip.es.js";
46
- import "./chunks/ColumnDropIndicator.styled.es.js";
47
- import "@tanstack/react-table";
46
+ import "./chunks/addonColumnTags.es.js";
48
47
  import "@ynput/ayon-addon";
48
+ import "@tanstack/react-table";
49
49
  import "./chunks/EntityPickerDialog.es.js";
50
50
  import "remark-gfm";
51
51
  import "react-markdown";
@@ -76,22 +76,6 @@ declare type IconModel = {
76
76
  export { }
77
77
 
78
78
 
79
- declare module '@tanstack/react-table' {
80
- interface FilterFns {
81
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
82
- }
83
- interface FilterMeta {
84
- itemRank: RankingInfo;
85
- }
86
- interface TableMeta<TData extends RowData> {
87
- isExpandable?: boolean;
88
- isLoading?: boolean;
89
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
90
- [key: string]: any;
91
- }
92
- }
93
-
94
-
95
79
  declare module '@tanstack/react-table' {
96
80
  interface ColumnMeta<TData extends RowData, TValue> {
97
81
  addonColumn?: AddonColumnMeta;
@@ -109,6 +93,22 @@ declare module '@tanstack/react-table' {
109
93
  }
110
94
 
111
95
 
96
+ declare module '@tanstack/react-table' {
97
+ interface FilterFns {
98
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
99
+ }
100
+ interface FilterMeta {
101
+ itemRank: RankingInfo;
102
+ }
103
+ interface TableMeta<TData extends RowData> {
104
+ isExpandable?: boolean;
105
+ isLoading?: boolean;
106
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
107
+ [key: string]: any;
108
+ }
109
+ }
110
+
111
+
112
112
  declare global {
113
113
  interface Window {
114
114
  senderId: string;
@@ -132,22 +132,6 @@ RefObject<{
132
132
  export { }
133
133
 
134
134
 
135
- declare module '@tanstack/react-table' {
136
- interface FilterFns {
137
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
138
- }
139
- interface FilterMeta {
140
- itemRank: RankingInfo;
141
- }
142
- interface TableMeta<TData extends RowData> {
143
- isExpandable?: boolean;
144
- isLoading?: boolean;
145
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
146
- [key: string]: any;
147
- }
148
- }
149
-
150
-
151
135
  declare module '@tanstack/react-table' {
152
136
  interface ColumnMeta<TData extends RowData, TValue> {
153
137
  addonColumn?: AddonColumnMeta;
@@ -165,6 +149,22 @@ declare module '@tanstack/react-table' {
165
149
  }
166
150
 
167
151
 
152
+ declare module '@tanstack/react-table' {
153
+ interface FilterFns {
154
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
155
+ }
156
+ interface FilterMeta {
157
+ itemRank: RankingInfo;
158
+ }
159
+ interface TableMeta<TData extends RowData> {
160
+ isExpandable?: boolean;
161
+ isLoading?: boolean;
162
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
163
+ [key: string]: any;
164
+ }
165
+ }
166
+
167
+
168
168
  declare global {
169
169
  interface Window {
170
170
  senderId: string;
@@ -513,22 +513,6 @@ declare type User = {
513
513
  export { }
514
514
 
515
515
 
516
- declare module '@tanstack/react-table' {
517
- interface FilterFns {
518
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
519
- }
520
- interface FilterMeta {
521
- itemRank: RankingInfo;
522
- }
523
- interface TableMeta<TData extends RowData> {
524
- isExpandable?: boolean;
525
- isLoading?: boolean;
526
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
527
- [key: string]: any;
528
- }
529
- }
530
-
531
-
532
516
  declare module '@tanstack/react-table' {
533
517
  interface ColumnMeta<TData extends RowData, TValue> {
534
518
  addonColumn?: AddonColumnMeta;
@@ -546,6 +530,22 @@ declare module '@tanstack/react-table' {
546
530
  }
547
531
 
548
532
 
533
+ declare module '@tanstack/react-table' {
534
+ interface FilterFns {
535
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
536
+ }
537
+ interface FilterMeta {
538
+ itemRank: RankingInfo;
539
+ }
540
+ interface TableMeta<TData extends RowData> {
541
+ isExpandable?: boolean;
542
+ isLoading?: boolean;
543
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
544
+ [key: string]: any;
545
+ }
546
+ }
547
+
548
+
549
549
  declare global {
550
550
  interface Window {
551
551
  senderId: string;
@@ -2,14 +2,20 @@ import { DialogProps } from '@ynput/ayon-react-components';
2
2
  import { FC } from 'react';
3
3
  import { RowSelectionState } from '@tanstack/react-table';
4
4
 
5
+ declare type EntityLinkThumbnail = {
6
+ entityType: string;
7
+ entityId: string;
8
+ thumbnailHash?: string;
9
+ };
10
+
5
11
  export declare const EntityPickerDialog: FC<EntityPickerDialogProps>;
6
12
 
7
- declare interface EntityPickerDialogProps extends Pick<DialogProps, 'onClose'> {
13
+ export declare interface EntityPickerDialogProps extends Pick<DialogProps, 'onClose'> {
8
14
  projectName: string;
9
15
  entityType: PickerEntityType;
10
16
  initialSelection?: Partial<PickerSelection>;
11
17
  isMultiSelect?: boolean;
12
- onSubmit: (selection: string[]) => void;
18
+ onSubmit: (selection: string[], entities: PickedEntity[]) => void;
13
19
  showMoveToRoot?: boolean;
14
20
  onMoveToRoot?: () => void;
15
21
  disabledIds?: string[];
@@ -22,31 +28,52 @@ declare interface EntityPickerDialogProps extends Pick<DialogProps, 'onClose'> {
22
28
  isLoading?: boolean;
23
29
  }
24
30
 
31
+ declare type FolderListItem = {
32
+ id: string;
33
+ path: string;
34
+ parentId?: string;
35
+ parents: string[];
36
+ name: string;
37
+ label?: string;
38
+ folderType: string;
39
+ hasTasks?: boolean;
40
+ hasChildren?: boolean;
41
+ hasReviewables?: boolean;
42
+ thumbnailHash: string;
43
+ taskNames?: string[];
44
+ tags?: string[];
45
+ status: string;
46
+ attrib?: object;
47
+ ownAttrib?: string[];
48
+ createdAt: string;
49
+ updatedAt: string;
50
+ };
51
+
52
+ /** a picked entity as the picker loaded it, `undefined` when it isn't loaded (a later page) */
53
+ export declare type PickedEntity = SearchEntityLink | FolderListItem | undefined;
54
+
25
55
  export declare type PickerEntityType = 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile';
26
56
 
27
57
  export declare type PickerSearch = Record<PickerEntityType, string | undefined>;
28
58
 
29
59
  export declare type PickerSelection = Record<PickerEntityType, RowSelectionState>;
30
60
 
61
+ declare type SearchEntityLink = {
62
+ id: string;
63
+ name: string;
64
+ entityType: string;
65
+ parents: string[];
66
+ label: string;
67
+ icon: string | undefined;
68
+ subType: string | undefined;
69
+ hasReviewables?: boolean;
70
+ taskName?: string;
71
+ thumbnail?: EntityLinkThumbnail;
72
+ };
73
+
31
74
  export { }
32
75
 
33
76
 
34
- declare module '@tanstack/react-table' {
35
- interface FilterFns {
36
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
37
- }
38
- interface FilterMeta {
39
- itemRank: RankingInfo;
40
- }
41
- interface TableMeta<TData extends RowData> {
42
- isExpandable?: boolean;
43
- isLoading?: boolean;
44
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
45
- [key: string]: any;
46
- }
47
- }
48
-
49
-
50
77
  declare module '@tanstack/react-table' {
51
78
  interface ColumnMeta<TData extends RowData, TValue> {
52
79
  addonColumn?: AddonColumnMeta;
@@ -64,6 +91,22 @@ declare module '@tanstack/react-table' {
64
91
  }
65
92
 
66
93
 
94
+ declare module '@tanstack/react-table' {
95
+ interface FilterFns {
96
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
97
+ }
98
+ interface FilterMeta {
99
+ itemRank: RankingInfo;
100
+ }
101
+ interface TableMeta<TData extends RowData> {
102
+ isExpandable?: boolean;
103
+ isLoading?: boolean;
104
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
105
+ [key: string]: any;
106
+ }
107
+ }
108
+
109
+
67
110
  declare global {
68
111
  interface Window {
69
112
  senderId: string;
@@ -374,22 +374,6 @@ declare type VersionSuggestionItem = {
374
374
  export { }
375
375
 
376
376
 
377
- declare module '@tanstack/react-table' {
378
- interface FilterFns {
379
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
380
- }
381
- interface FilterMeta {
382
- itemRank: RankingInfo;
383
- }
384
- interface TableMeta<TData extends RowData> {
385
- isExpandable?: boolean;
386
- isLoading?: boolean;
387
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
388
- [key: string]: any;
389
- }
390
- }
391
-
392
-
393
377
  declare module '@tanstack/react-table' {
394
378
  interface ColumnMeta<TData extends RowData, TValue> {
395
379
  addonColumn?: AddonColumnMeta;
@@ -407,6 +391,22 @@ declare module '@tanstack/react-table' {
407
391
  }
408
392
 
409
393
 
394
+ declare module '@tanstack/react-table' {
395
+ interface FilterFns {
396
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
397
+ }
398
+ interface FilterMeta {
399
+ itemRank: RankingInfo;
400
+ }
401
+ interface TableMeta<TData extends RowData> {
402
+ isExpandable?: boolean;
403
+ isLoading?: boolean;
404
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
405
+ [key: string]: any;
406
+ }
407
+ }
408
+
409
+
410
410
  declare global {
411
411
  interface Window {
412
412
  senderId: string;
@@ -266,22 +266,6 @@ export declare const renderListTableFallbackValue: (value: unknown) => string;
266
266
  export { }
267
267
 
268
268
 
269
- declare module '@tanstack/react-table' {
270
- interface FilterFns {
271
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
272
- }
273
- interface FilterMeta {
274
- itemRank: RankingInfo;
275
- }
276
- interface TableMeta<TData extends RowData> {
277
- isExpandable?: boolean;
278
- isLoading?: boolean;
279
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
280
- [key: string]: any;
281
- }
282
- }
283
-
284
-
285
269
  declare module '@tanstack/react-table' {
286
270
  interface ColumnMeta<TData extends RowData, TValue> {
287
271
  addonColumn?: AddonColumnMeta;
@@ -299,6 +283,22 @@ declare module '@tanstack/react-table' {
299
283
  }
300
284
 
301
285
 
286
+ declare module '@tanstack/react-table' {
287
+ interface FilterFns {
288
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
289
+ }
290
+ interface FilterMeta {
291
+ itemRank: RankingInfo;
292
+ }
293
+ interface TableMeta<TData extends RowData> {
294
+ isExpandable?: boolean;
295
+ isLoading?: boolean;
296
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
297
+ [key: string]: any;
298
+ }
299
+ }
300
+
301
+
302
302
  declare global {
303
303
  interface Window {
304
304
  senderId: string;
@@ -203,22 +203,6 @@ export declare const useNewEntityContext: () => NewEntityContextType;
203
203
  export { }
204
204
 
205
205
 
206
- declare module '@tanstack/react-table' {
207
- interface FilterFns {
208
- fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
209
- }
210
- interface FilterMeta {
211
- itemRank: RankingInfo;
212
- }
213
- interface TableMeta<TData extends RowData> {
214
- isExpandable?: boolean;
215
- isLoading?: boolean;
216
- children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
217
- [key: string]: any;
218
- }
219
- }
220
-
221
-
222
206
  declare module '@tanstack/react-table' {
223
207
  interface ColumnMeta<TData extends RowData, TValue> {
224
208
  addonColumn?: AddonColumnMeta;
@@ -236,6 +220,22 @@ declare module '@tanstack/react-table' {
236
220
  }
237
221
 
238
222
 
223
+ declare module '@tanstack/react-table' {
224
+ interface FilterFns {
225
+ fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
226
+ }
227
+ interface FilterMeta {
228
+ itemRank: RankingInfo;
229
+ }
230
+ interface TableMeta<TData extends RowData> {
231
+ isExpandable?: boolean;
232
+ isLoading?: boolean;
233
+ children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
234
+ [key: string]: any;
235
+ }
236
+ }
237
+
238
+
239
239
  declare global {
240
240
  interface Window {
241
241
  senderId: string;