@ynput/ayon-frontend-shared 0.6.9 → 0.7.1

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 (66) hide show
  1. package/dist/ContextMenu.es.js +44 -27
  2. package/dist/DetailsPanel.es.js +767 -740
  3. package/dist/ListTable.es.js +430 -430
  4. package/dist/NewEntity.es.js +43 -42
  5. package/dist/ProjectTreeTable.es.js +3496 -3342
  6. package/dist/Slicer.es.js +301 -276
  7. package/dist/Views.es.js +537 -521
  8. package/dist/api.es.js +429 -412
  9. package/dist/chunks/Actions.es.js +19 -18
  10. package/dist/chunks/ColumnDropIndicator.es.js +19 -18
  11. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  12. package/dist/chunks/ContextMenuContextInstance.es.js +4 -3
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +53 -41
  14. package/dist/chunks/DetailsDialog.es.js +26 -24
  15. package/dist/chunks/EmptyPlaceholder.es.js +3 -3
  16. package/dist/chunks/EmptyPlaceholderFlex.styled.es.js +40 -0
  17. package/dist/chunks/EntityPath.es.js +72 -71
  18. package/dist/chunks/EntityPickerDialog.es.js +88 -83
  19. package/dist/chunks/EntityTooltip.es.js +11 -10
  20. package/dist/chunks/EntityUpdatesContext.es.js +11 -11
  21. package/dist/chunks/Feed.es.js +864 -859
  22. package/dist/chunks/FilterErrorActions.es.js +4 -3
  23. package/dist/chunks/Menu.es.js +633 -289
  24. package/dist/chunks/MenuContext.es.js +1 -1
  25. package/dist/chunks/MetaWidget.es.js +2751 -2217
  26. package/dist/chunks/PlayableIcon.es.js +79 -78
  27. package/dist/chunks/ProjectContext.es.js +7 -7
  28. package/dist/chunks/RepresentationsList.es.js +1 -1
  29. package/dist/chunks/ReviewablesSelector.es.js +625 -609
  30. package/dist/chunks/SimpleForm.es.js +1 -1
  31. package/dist/chunks/SimpleTable.es.js +386 -363
  32. package/dist/chunks/Slicer.es.js +954 -821
  33. package/dist/chunks/{DeleteEntitiesContextInstance.es.js → TableExportContextInstance.es.js} +190 -186
  34. package/dist/chunks/TableSettingsFallback.es.js +4 -3
  35. package/dist/chunks/ThumbnailSimple.es.js +96 -95
  36. package/dist/chunks/VideoPlayer.es.js +1 -1
  37. package/dist/chunks/Watchers.es.js +850 -797
  38. package/dist/chunks/getBundleMode.es.js +1 -1
  39. package/dist/chunks/getEntityTypeIcon.es.js +5 -4
  40. package/dist/chunks/getUris.es.js +3704 -3504
  41. package/dist/chunks/realtimeUpdatesUtils.es.js +91 -82
  42. package/dist/chunks/searchTerms.es.js +649 -563
  43. package/dist/chunks/sortLists.es.js +22 -0
  44. package/dist/chunks/useAttributeEnums.es.js +21 -21
  45. package/dist/chunks/useHierarchySelection.es.js +6 -5
  46. package/dist/chunks/useLoadModule.es.js +24 -23
  47. package/dist/chunks/viewUpdateHelper.es.js +19 -18
  48. package/dist/components.es.js +628 -593
  49. package/dist/context.es.js +525 -499
  50. package/dist/hooks.es.js +54 -53
  51. package/dist/index.es.js +4 -4
  52. package/dist/types/ContextMenu.d.ts +4 -1
  53. package/dist/types/Feed.d.ts +1 -1
  54. package/dist/types/ListTable.d.ts +1 -1
  55. package/dist/types/ProjectTreeTable.d.ts +144 -14
  56. package/dist/types/SimpleTable.d.ts +2 -1
  57. package/dist/types/Slicer.d.ts +32 -5
  58. package/dist/types/Views.d.ts +6 -0
  59. package/dist/types/api.d.ts +2252 -510
  60. package/dist/types/components.d.ts +52 -4
  61. package/dist/types/context.d.ts +96 -2
  62. package/dist/types/hooks.d.ts +36 -1
  63. package/dist/types/util.d.ts +54 -0
  64. package/dist/util.es.js +129 -119
  65. package/package.json +4 -4
  66. package/dist/chunks/MenuItem.es.js +0 -420
@@ -78,7 +78,7 @@ export declare const HeaderButton: IStyledComponentBase<"web", FastOmit<Omit< Bu
78
78
  ref?: ((instance: HTMLButtonElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
79
79
  }, never>>> & string & Omit< ForwardRefExoticComponent< ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
80
80
 
81
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
81
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'listValues' | 'entityLinks' | 'tableExport';
82
82
 
83
83
  export declare const RowExpander: ({ isRowExpandable, isRowExpanded, enableNonFolderIndent, isTableExpandable, onExpandClick, }: RowExpanderProps) => false | JSX_2.Element | undefined;
84
84
 
@@ -170,6 +170,7 @@ export declare interface SimpleTableProps extends Omit<React.HTMLAttributes<HTML
170
170
  imgRatio?: number;
171
171
  imgPosition?: 'start' | 'end';
172
172
  onScrollBottom?: () => void;
173
+ scrollToRowId?: string;
173
174
  onRename?: (id: string, row: Row<SimpleTableRow>) => void;
174
175
  renamingId?: string | null;
175
176
  renameInitialValue?: string;
@@ -16,7 +16,7 @@ import { RowSelectionState } from '@tanstack/react-table';
16
16
 
17
17
  declare type Assignee = {
18
18
  name: AssigneeNode['name'];
19
- fullName: AssigneeNode['attrib']['fullName'];
19
+ fullName: UserAttrib['fullName'];
20
20
  updatedAt: AssigneeNode['updatedAt'];
21
21
  };
22
22
 
@@ -215,20 +215,22 @@ declare type GetAllProjectUsersAsAssigneeQuery = {
215
215
  node: {
216
216
  name: string;
217
217
  updatedAt: unknown;
218
- attrib: {
219
- fullName: string | null;
220
- };
218
+ attrib: unknown;
221
219
  };
222
220
  }>;
223
221
  };
224
222
  };
225
223
 
224
+ export declare const getDefaultSliceSort: (sliceType: SliceType) => SliceSort;
225
+
226
226
  declare type GetDefaultViewApiResponse =
227
227
  /** status 200 Successful Response */
228
228
  OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
229
229
 
230
230
  export declare type GetSlicerCountsSource = (sliceType: string) => SlicerCountsSource | undefined;
231
231
 
232
+ export declare const getSliceSortOptions: (sliceType: SliceType) => SortMenuOption[];
233
+
232
234
  declare type GroupCount = {
233
235
  count: number;
234
236
  percentage?: number;
@@ -343,7 +345,7 @@ export declare interface PinnedSlice {
343
345
  expanded: ExpandedState;
344
346
  }
345
347
 
346
- declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
348
+ declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'listValues' | 'entityLinks' | 'tableExport';
347
349
 
348
350
  declare type ProductType = {
349
351
  __typename?: 'ProductType';
@@ -423,6 +425,8 @@ declare type QueryFilter_5 = {
423
425
 
424
426
  export declare const resolvePanelLayout: (stored: SlicerPanelHeights, panelIds: string[], collapsed?: string[], containerHeight?: number, defaultHeight?: number) => SlicerPanelLayout;
425
427
 
428
+ export declare const resolveSliceSort: (sliceType: SliceType, sort: unknown) => SliceSort;
429
+
426
430
  declare type ReviewsSettings = {
427
431
  rowHeight?: number;
428
432
  sortBy?: string | string[];
@@ -537,6 +541,8 @@ export declare interface Slice {
537
541
  isExpandable: boolean;
538
542
  }
539
543
 
544
+ export declare const SLICE_DEFAULT_ORDER = "default";
545
+
540
546
  export declare interface SliceData {
541
547
  getData: () => Promise<SimpleTableRow[] | undefined>;
542
548
  isLoading: boolean;
@@ -599,6 +605,8 @@ export declare interface SlicerContextValue {
599
605
  setPanelExpanded: (panelId: string, expanded: React.SetStateAction<ExpandedState>) => void;
600
606
  collapsedPanels: string[];
601
607
  togglePanelCollapsed: (panelId: string) => void;
608
+ getSliceSort: (sliceType: SliceType) => SliceSort;
609
+ setSliceSort: (sliceType: SliceType, sort: SliceSort) => void;
602
610
  isViewSyncPending: boolean;
603
611
  pinnedSlice: PinnedSlice | null;
604
612
  setPinnedSlice: React.Dispatch<React.SetStateAction<PinnedSlice | null>>;
@@ -689,6 +697,7 @@ export declare interface SlicerViewSettings {
689
697
  sliceType?: SliceType;
690
698
  sliceTypes?: SliceType[];
691
699
  collapsedSliceTypes?: SliceType[];
700
+ sliceSorts?: Record<SliceType, SliceSort>;
692
701
  }
693
702
 
694
703
  export declare type SliceSelection = {
@@ -696,6 +705,11 @@ export declare type SliceSelection = {
696
705
  rowSelection: RowSelectionState;
697
706
  };
698
707
 
708
+ export declare interface SliceSort {
709
+ by: string;
710
+ desc: boolean;
711
+ }
712
+
699
713
  export declare type SliceType = 'hierarchy' | 'assignees' | 'status' | 'type' | 'taskType' | 'entityList' | string;
700
714
 
701
715
  export declare interface SliceTypeField {
@@ -704,6 +718,14 @@ export declare interface SliceTypeField {
704
718
  icon?: string;
705
719
  }
706
720
 
721
+ declare interface SortMenuOption<T extends string = string> {
722
+ id: T;
723
+ label: string;
724
+ desc: boolean;
725
+ }
726
+
727
+ export declare const sortSliceRows: (rows: SimpleTableRow[], sliceType: SliceType, sort: SliceSort) => SimpleTableRow[];
728
+
707
729
  declare type Status_2 = {
708
730
  name: string;
709
731
  original_name?: string;
@@ -811,6 +833,10 @@ export declare const useHierarchySelection: () => RowSelectionState | null;
811
833
 
812
834
  export declare const useOptionalSlicerContext: () => SlicerContextValue | undefined;
813
835
 
836
+ declare type UserAttrib = {
837
+ fullName: string | null;
838
+ };
839
+
814
840
  /**
815
841
  * Resolves entity list slicer selections to actual entity IDs.
816
842
  * When a panel with sliceType 'entityList' exists, fetches entity IDs from each
@@ -898,6 +924,7 @@ declare type VersionStatsArgs = {
898
924
  productFilter?: string;
899
925
  taskFilter?: string;
900
926
  folderFilter?: string;
927
+ representationFilter?: string;
901
928
  folderIds?: string[];
902
929
  versionIds?: string[];
903
930
  productIds?: string[];
@@ -243,6 +243,8 @@ export declare type ListsViewSettings = {
243
243
  onUpdateFilters: (filters: QueryFilter) => void;
244
244
  columns: ColumnsConfig;
245
245
  onUpdateColumns: (columns: ColumnsConfig, allColumnIds?: string[]) => void;
246
+ listValues?: Record<string, unknown>;
247
+ onUpdateListValues: (settings: Record<string, unknown>) => void;
246
248
  };
247
249
 
248
250
  declare type ListViewsApiArg = {
@@ -879,6 +881,10 @@ export declare interface ViewsProviderProps {
879
881
  viewAlias?: string;
880
882
  projectName?: string;
881
883
  dispatch?: any;
884
+ include?: {
885
+ viewsList?: boolean;
886
+ baseViews?: boolean;
887
+ };
882
888
  debug?: {
883
889
  powerLicense?: boolean;
884
890
  };