@ynput/ayon-frontend-shared 0.4.6 → 0.5.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 (62) hide show
  1. package/dist/DetailsPanel.es.js +686 -653
  2. package/dist/ListTable.es.js +11 -10
  3. package/dist/ProjectTreeTable.es.js +2225 -2186
  4. package/dist/Slicer.es.js +152 -120
  5. package/dist/api.es.js +202 -201
  6. package/dist/chunks/Actions.es.js +20 -20
  7. package/dist/chunks/ColumnDropIndicator.es.js +128 -242
  8. package/dist/chunks/DeleteEntitiesContext.es.js +37 -37
  9. package/dist/chunks/DetailsDialog.es.js +3 -3
  10. package/dist/chunks/EntityPath.es.js +23 -23
  11. package/dist/chunks/EntityPickerDialog.es.js +2 -2
  12. package/dist/chunks/EntityTooltip.es.js +12 -12
  13. package/dist/chunks/Feed.es.js +16 -16
  14. package/dist/chunks/FilterErrorActions.es.js +5 -5
  15. package/dist/chunks/GlobalContext.es.js +14 -14
  16. package/dist/chunks/InfoMessage.es.js +146 -0
  17. package/dist/chunks/JsonViewer.es.js +1 -1
  18. package/dist/chunks/Menu.es.js +5 -5
  19. package/dist/chunks/MenuContext.es.js +75 -73
  20. package/dist/chunks/MetaWidget.es.js +1970 -1962
  21. package/dist/chunks/NewEntityContext.es.js +538 -543
  22. package/dist/chunks/PlayableIcon.es.js +54 -54
  23. package/dist/chunks/ProjectContext.es.js +12 -12
  24. package/dist/chunks/ProjectFoldersContext.es.js +84 -76
  25. package/dist/chunks/RepresentationsList.es.js +1 -1
  26. package/dist/chunks/ReviewablesSelector.es.js +390 -387
  27. package/dist/chunks/SimpleTable.es.js +286 -283
  28. package/dist/chunks/Slicer.es.js +1122 -684
  29. package/dist/chunks/VersionUploadContext.es.js +26 -26
  30. package/dist/chunks/VideoPlayer.es.js +1 -1
  31. package/dist/chunks/ViewsContext.es.js +31 -31
  32. package/dist/chunks/Watchers.es.js +2 -2
  33. package/dist/chunks/entityDefinitions.es.js +275 -133
  34. package/dist/chunks/getUris.es.js +236 -231
  35. package/dist/chunks/searchTerms.es.js +10 -1
  36. package/dist/chunks/useAttributeEnums.es.js +69 -61
  37. package/dist/chunks/useColumnDragRestriction.es.js +1 -1
  38. package/dist/chunks/useLocalStorage.es.js +11 -11
  39. package/dist/chunks/viewUpdateHelper.es.js +23 -23
  40. package/dist/components.es.js +168 -168
  41. package/dist/hooks.es.js +47 -46
  42. package/dist/index.es.js +14 -13
  43. package/dist/types/Actions.d.ts +7 -7
  44. package/dist/types/ContextMenu.d.ts +7 -7
  45. package/dist/types/DetailsPanel.d.ts +13 -7
  46. package/dist/types/EntityPickerDialog.d.ts +7 -7
  47. package/dist/types/Feed.d.ts +7 -7
  48. package/dist/types/ListTable.d.ts +7 -7
  49. package/dist/types/NewEntity.d.ts +7 -7
  50. package/dist/types/ProjectTreeTable.d.ts +35 -13
  51. package/dist/types/RepresentationsList.d.ts +10 -7
  52. package/dist/types/SimpleTable.d.ts +8 -7
  53. package/dist/types/Slicer.d.ts +110 -25
  54. package/dist/types/Views.d.ts +7 -7
  55. package/dist/types/api.d.ts +20 -7
  56. package/dist/types/components.d.ts +14 -12
  57. package/dist/types/context.d.ts +7 -7
  58. package/dist/types/hooks.d.ts +7 -7
  59. package/dist/types/index.d.ts +7 -7
  60. package/dist/types/util.d.ts +7 -7
  61. package/package.json +11 -1
  62. package/dist/chunks/useSlicerSplitter.es.js +0 -18
@@ -72,6 +72,8 @@ declare type AttributeModel = {
72
72
 
73
73
  export declare const buildListFolderRowId: (folderId: string) => string;
74
74
 
75
+ export declare const clampDraggedHeights: (sizes: number[], totalHeight: number, mins: number[]) => number[];
76
+
75
77
  declare type ColumnItemModel = {
76
78
  name: string;
77
79
  visible?: boolean;
@@ -118,15 +120,17 @@ declare interface ContextMenuItemType extends Omit<ContextMenuItemProps, 'contex
118
120
  }
119
121
 
120
122
  export declare type CreateFilterFromSlicer = ({ slice, attribFields, }: {
121
- slice: {
122
- sliceType: SliceType;
123
- rowSelection: RowSelectionState;
124
- } | null;
123
+ slice: SliceSelection | null;
125
124
  attribFields: ProjectTableAttribute[];
126
125
  }) => SliceFilter | null;
127
126
 
128
127
  export declare const createFilterFromSlicer: CreateFilterFromSlicer;
129
128
 
129
+ export declare const createFiltersFromSlicer: ({ slices, attribFields, }: {
130
+ slices: SliceSelection[];
131
+ attribFields: ProjectTableAttribute[];
132
+ }) => SliceFilter[];
133
+
130
134
  export declare const defaultSliceOptions: SliceTypeField[];
131
135
 
132
136
  declare interface EntityMoveData {
@@ -138,6 +142,12 @@ declare interface EntityMoveData {
138
142
 
139
143
  declare type EntityMoveType = 'folder' | 'task';
140
144
 
145
+ export declare interface EntityParentMaps {
146
+ taskFolderIds: Record<string, string>;
147
+ versionFolderIds: Record<string, string>;
148
+ productFolderIds: Record<string, string>;
149
+ }
150
+
141
151
  declare type EnumItem = {
142
152
  value: string | number | number | boolean;
143
153
  label: string;
@@ -216,6 +226,8 @@ declare type GetDefaultViewApiResponse =
216
226
  /** status 200 Successful Response */
217
227
  OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel | VersionsViewModel | GenericViewModel;
218
228
 
229
+ export declare type GetSlicerCountsSource = (sliceType: string) => SlicerCountsSource | undefined;
230
+
219
231
  declare type GroupCount = {
220
232
  count: number;
221
233
  percentage?: number;
@@ -408,6 +420,8 @@ declare type QueryFilter_5 = {
408
420
  operator?: 'and' | 'or';
409
421
  };
410
422
 
423
+ export declare const resolvePanelLayout: (stored: SlicerPanelHeights, panelIds: string[], collapsed?: string[], containerHeight?: number, defaultHeight?: number) => SlicerPanelLayout;
424
+
411
425
  declare type ReviewsSettings = {
412
426
  rowHeight?: number;
413
427
  sortBy?: string;
@@ -531,17 +545,23 @@ export declare interface SliceData {
531
545
  isAttribute?: boolean;
532
546
  }
533
547
 
534
- export declare interface SliceFilter extends FilterValue {
535
- values: {
536
- id: string;
537
- label: string;
538
- }[];
548
+ export declare interface SliceFilter extends Filter {
549
+ values: FilterValue[];
539
550
  }
540
551
 
541
552
  export declare type SliceMap = Map<string, SimpleTableRow>;
542
553
 
554
+ export declare interface SlicePanel {
555
+ id: string;
556
+ sliceType: SliceType;
557
+ }
558
+
543
559
  export declare const Slicer: FC<SlicerProps>;
544
560
 
561
+ export declare const SLICER_DEFAULT_PANEL_HEIGHT = 180;
562
+
563
+ export declare const SLICER_MIN_PANEL_HEIGHT = 100;
564
+
545
565
  export declare const SLICER_PAGES_CONFIG: SlicerConfig;
546
566
 
547
567
  export declare const SLICER_SPLITTER_PANEL_CONFIG: {
@@ -559,12 +579,23 @@ export declare type SlicerConfig = {
559
579
 
560
580
  export declare interface SlicerContextValue {
561
581
  projectName: string;
582
+ page: string;
562
583
  rowSelection: RowSelectionState;
563
584
  onRowSelectionChange: OnRowSelectionChange;
564
585
  expanded: ExpandedState;
565
586
  onExpandedChange: (expanded: ExpandedState) => void;
566
587
  sliceType: SliceType;
567
588
  onSliceTypeChange: OnSliceTypeChange;
589
+ slices: SlicePanel[];
590
+ addSlicePanel: (sliceType?: SliceType) => void;
591
+ removeSlicePanel: (panelId: string) => void;
592
+ setPanelSliceType: (panelId: string, sliceType: SliceType) => void;
593
+ getPanelSelection: (panelId: string) => RowSelectionState;
594
+ setPanelSelection: (panelId: string, selection: React.SetStateAction<RowSelectionState>) => void;
595
+ getPanelExpanded: (panelId: string) => ExpandedState;
596
+ setPanelExpanded: (panelId: string, expanded: React.SetStateAction<ExpandedState>) => void;
597
+ collapsedPanels: string[];
598
+ togglePanelCollapsed: (panelId: string) => void;
568
599
  isViewSyncPending: boolean;
569
600
  pinnedSlice: PinnedSlice | null;
570
601
  setPinnedSlice: React.Dispatch<React.SetStateAction<PinnedSlice | null>>;
@@ -594,12 +625,34 @@ declare interface SlicerDropdownFallbackProps extends DropdownProps {
594
625
  sliceTypes: SliceType[];
595
626
  }
596
627
 
628
+ declare interface SliceRowSelection {
629
+ sliceType: string;
630
+ rowSelection: RowSelectionState;
631
+ }
632
+
633
+ declare type SlicerPanelHeights = Record<string, number>;
634
+
635
+ declare type SlicerPanelLayout = {
636
+ heights: number[];
637
+ mins: number[];
638
+ sizes: number[];
639
+ minSize: number;
640
+ height: number;
641
+ };
642
+
643
+ export declare interface SlicerPanelSelections {
644
+ sliceSelections: SliceRowSelection[];
645
+ sliceFilters: SliceFilter[];
646
+ isLicensePending: boolean;
647
+ }
648
+
597
649
  export declare interface SlicerProps {
598
650
  sliceFields: SliceTypeField[];
599
651
  entityTypes?: string[];
600
652
  pinnedSliceType?: SliceType;
601
- countsSource?: SlicerCountsSource;
653
+ countsSource?: SlicerCountsSource | GetSlicerCountsSource;
602
654
  onAddToList?: OnAddToList;
655
+ enableSplit?: boolean;
603
656
  }
604
657
 
605
658
  export declare const SlicerProvider: ({ children, page, projectName, viewSettings, isLoadingViews, updateViewSettings, onOpenViewer, onAddToList, ...props }: SlicerProviderProps) => JSX_2.Element;
@@ -629,6 +682,17 @@ export declare interface SlicerTableProps {
629
682
  globalFilter: string;
630
683
  }
631
684
 
685
+ export declare interface SlicerViewSettings {
686
+ sliceType?: SliceType;
687
+ sliceTypes?: SliceType[];
688
+ collapsedSliceTypes?: SliceType[];
689
+ }
690
+
691
+ export declare type SliceSelection = {
692
+ sliceType: SliceType;
693
+ rowSelection: RowSelectionState;
694
+ };
695
+
632
696
  export declare type SliceType = 'hierarchy' | 'assignees' | 'status' | 'type' | 'taskType' | 'entityList' | string;
633
697
 
634
698
  export declare interface SliceTypeField {
@@ -740,26 +804,42 @@ export declare const useHierarchyContextMenuItems: (onAddToList?: OnAddToList, e
740
804
  onCancelRename: () => void;
741
805
  };
742
806
 
807
+ export declare const useHierarchySelection: () => RowSelectionState | null;
808
+
743
809
  export declare const useOptionalSlicerContext: () => SlicerContextValue | undefined;
744
810
 
745
811
  /**
746
812
  * Resolves entity list slicer selections to actual entity IDs.
747
- * When sliceType is 'entityList', fetches entity IDs from each selected list,
748
- * then resolves cross-entity parent references (e.g. task → folder, version → folder/task).
813
+ * When a panel with sliceType 'entityList' exists, fetches entity IDs from each
814
+ * selected list, then resolves cross-entity parent references
815
+ * (e.g. task → folder, version → folder/task).
749
816
  */
750
- export declare const useSelectedEntityIds: ({ rowSelection, sliceType, projectName, }: {
751
- rowSelection: RowSelectionState;
752
- sliceType: SliceType;
817
+ export declare const useSelectedEntityIds: ({ slices, projectName, }: {
818
+ slices: SliceSelection[];
753
819
  projectName: string;
754
820
  }) => {
755
821
  entityIds: SelectedEntityIds;
756
822
  rawEntityIds: SelectedEntityIds;
823
+ parentMaps: EntityParentMaps;
757
824
  isLoading: boolean;
758
825
  };
759
826
 
760
827
  export declare const useSlicerContext: () => SlicerContextValue;
761
828
 
762
- export declare const useSlicerCounts: (source: SlicerCountsSource | undefined, skip?: boolean) => SlicerCounts;
829
+ export declare const useSlicerCounts: (source: SlicerCountsSource | undefined, sliceType: string, allSliceTypes?: string[], skip?: boolean) => SlicerCounts;
830
+
831
+ export declare const useSlicerPanelHeights: (page: string, panelIds: string[], collapsed?: string[], containerHeight?: number) => {
832
+ sizes: number[];
833
+ minSize: number;
834
+ height: number;
835
+ panelHeights: number[];
836
+ layoutKey: string;
837
+ handleResizeEnd: (props: {
838
+ sizes: number[];
839
+ }) => void;
840
+ };
841
+
842
+ export declare const useSlicerPanelSelections: (attribFields: AttributeModel[]) => SlicerPanelSelections;
763
843
 
764
844
  export declare const useSlicerRemotes: () => {
765
845
  useExtraSlices: UseExtraSlices;
@@ -767,15 +847,19 @@ export declare const useSlicerRemotes: () => {
767
847
  SlicerDropdown: ForwardRefExoticComponent< SlicerDropdownFallbackProps & RefAttributes<DropdownRef>>;
768
848
  };
769
849
 
770
- export declare const useSlicerRowSelection: ({ sliceType, page, projectName, ...props }: UseSlicerRowSelectionProps) => {
850
+ export declare const useSlicerRowSelection: ({ sliceTypes, page, projectName, ...props }: UseSlicerRowSelectionProps) => {
771
851
  rowSelection: RowSelectionState;
772
852
  setRowSelection: (value: React.SetStateAction<RowSelectionState>, targetSliceType?: SliceType) => void;
773
853
  expanded: ExpandedState;
774
854
  setExpanded: (value: React.SetStateAction<ExpandedState>, targetSliceType?: SliceType) => void;
855
+ getPanelSelection: (sliceType: SliceType) => RowSelectionState;
856
+ setPanelSelection: (sliceType: SliceType, value: React.SetStateAction<RowSelectionState>) => void;
857
+ getPanelExpanded: (sliceType: SliceType) => ExpandedState;
858
+ setPanelExpanded: (sliceType: SliceType, value: React.SetStateAction<ExpandedState>) => void;
775
859
  };
776
860
 
777
861
  declare type UseSlicerRowSelectionProps = {
778
- sliceType: SliceType;
862
+ sliceTypes: SliceType[];
779
863
  page: string;
780
864
  projectName: string;
781
865
  rowSelection?: RowSelectionState;
@@ -810,6 +894,7 @@ declare type VersionStatsArgs = {
810
894
  versionFilter?: string;
811
895
  productFilter?: string;
812
896
  taskFilter?: string;
897
+ folderFilter?: string;
813
898
  folderIds?: string[];
814
899
  versionIds?: string[];
815
900
  productIds?: string[];
@@ -841,6 +926,13 @@ declare type ViewSettings = GetDefaultViewApiResponse['settings'];
841
926
  export { }
842
927
 
843
928
 
929
+ declare global {
930
+ interface Window {
931
+ senderId: string;
932
+ }
933
+ }
934
+
935
+
844
936
  declare module '@tanstack/react-table' {
845
937
  interface TableMeta<TData extends RowData> {
846
938
  options?: BuiltInFieldOptions;
@@ -855,13 +947,6 @@ declare module '@tanstack/react-table' {
855
947
  }
856
948
 
857
949
 
858
- declare global {
859
- interface Window {
860
- senderId: string;
861
- }
862
- }
863
-
864
-
865
950
  declare module '@tanstack/react-table' {
866
951
  interface FilterFns {
867
952
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -963,6 +963,13 @@ export declare const WORKING_VIEW_ID: "_working_";
963
963
  export { }
964
964
 
965
965
 
966
+ declare global {
967
+ interface Window {
968
+ senderId: string;
969
+ }
970
+ }
971
+
972
+
966
973
  declare module '@tanstack/react-table' {
967
974
  interface TableMeta<TData extends RowData> {
968
975
  options?: BuiltInFieldOptions;
@@ -977,13 +984,6 @@ declare module '@tanstack/react-table' {
977
984
  }
978
985
 
979
986
 
980
- declare global {
981
- interface Window {
982
- senderId: string;
983
- }
984
- }
985
-
986
-
987
987
  declare module '@tanstack/react-table' {
988
988
  interface FilterFns {
989
989
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -3854,7 +3854,10 @@ export declare type DetailsPanelProductFragmentFragment = {
3854
3854
  name: string;
3855
3855
  productType: string;
3856
3856
  latestVersion: {
3857
+ id: string;
3857
3858
  version: number;
3859
+ name: string;
3860
+ active: boolean;
3858
3861
  } | null;
3859
3862
  };
3860
3863
 
@@ -8635,7 +8638,10 @@ export declare type GetDetailsPanelRepresentationQuery = {
8635
8638
  folderType: string;
8636
8639
  };
8637
8640
  latestVersion: {
8641
+ id: string;
8638
8642
  version: number;
8643
+ name: string;
8644
+ active: boolean;
8639
8645
  } | null;
8640
8646
  };
8641
8647
  };
@@ -8743,7 +8749,10 @@ export declare type GetDetailsPanelVersionQuery = {
8743
8749
  folderType: string;
8744
8750
  };
8745
8751
  latestVersion: {
8752
+ id: string;
8746
8753
  version: number;
8754
+ name: string;
8755
+ active: boolean;
8747
8756
  } | null;
8748
8757
  };
8749
8758
  task: {
@@ -9155,6 +9164,8 @@ export declare type GetGroupedVersionsListArgs = {
9155
9164
  taskFilter?: string;
9156
9165
  folderFilter?: string;
9157
9166
  folderIds?: string[];
9167
+ versionIds?: string[];
9168
+ productIds?: string[];
9158
9169
  desc?: boolean;
9159
9170
  sortBy?: string;
9160
9171
  featuredOnly?: string[];
@@ -18819,6 +18830,8 @@ declare type TargetsArg = {
18819
18830
  } | null;
18820
18831
  };
18821
18832
 
18833
+ export declare const targetToColumnId: (field: string) => string;
18834
+
18822
18835
  export declare const TASK_TILE_FRAGMENT = "\nfragment taskTileFragment on TaskNode {\n id\n name\n status\n icon: taskType\n thumbnailEntityId: id\n thumbnailId\n profile: assignees\n footer: folder {\n folderType\n }\n updatedAt\n path: folder {\n path\n }\n}\n";
18823
18836
 
18824
18837
  export declare type TaskAttribModel = {
@@ -73292,6 +73305,13 @@ export declare type YnputConnectRequestModel = {
73292
73305
  export { }
73293
73306
 
73294
73307
 
73308
+ declare global {
73309
+ interface Window {
73310
+ senderId: string;
73311
+ }
73312
+ }
73313
+
73314
+
73295
73315
  declare module '@tanstack/react-table' {
73296
73316
  interface TableMeta<TData extends RowData> {
73297
73317
  options?: BuiltInFieldOptions;
@@ -73306,13 +73326,6 @@ declare module '@tanstack/react-table' {
73306
73326
  }
73307
73327
 
73308
73328
 
73309
- declare global {
73310
- interface Window {
73311
- senderId: string;
73312
- }
73313
- }
73314
-
73315
-
73316
73329
  declare module '@tanstack/react-table' {
73317
73330
  interface FilterFns {
73318
73331
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -795,7 +795,10 @@ declare type DetailsPanelProductFragmentFragment = {
795
795
  name: string;
796
796
  productType: string;
797
797
  latestVersion: {
798
+ id: string;
798
799
  version: number;
800
+ name: string;
801
+ active: boolean;
799
802
  } | null;
800
803
  };
801
804
 
@@ -1561,6 +1564,7 @@ export declare const InfoMessage: ForwardRefExoticComponent<InfoMessageProps & R
1561
1564
  declare interface InfoMessageAction {
1562
1565
  label: string;
1563
1566
  icon: string;
1567
+ iconPosition?: 'left' | 'right';
1564
1568
  callback: () => void;
1565
1569
  }
1566
1570
 
@@ -1569,6 +1573,7 @@ declare interface InfoMessageProps extends React.HTMLAttributes<HTMLDivElement>
1569
1573
  message: string;
1570
1574
  icon?: IconProps['icon'];
1571
1575
  action?: InfoMessageAction;
1576
+ compact?: boolean;
1572
1577
  }
1573
1578
 
1574
1579
  declare const InputText: IStyledComponentBase<"web", FastOmit<Omit< InputHTMLAttributes<HTMLInputElement> & RefAttributes<HTMLInputElement>, "ref"> & {
@@ -2668,11 +2673,8 @@ export declare type SimpleFormValueDict = Record<string, SimpleFormValue>;
2668
2673
 
2669
2674
  export declare const SizeSlider: FC<HeightSliderProps>;
2670
2675
 
2671
- declare interface SliceFilter extends FilterValue {
2672
- values: {
2673
- id: string;
2674
- label: string;
2675
- }[];
2676
+ declare interface SliceFilter extends Filter {
2677
+ values: FilterValue[];
2676
2678
  }
2677
2679
 
2678
2680
  declare type SlideOut = {
@@ -3668,6 +3670,13 @@ export * from "primereact/confirmdialog";
3668
3670
  export { }
3669
3671
 
3670
3672
 
3673
+ declare global {
3674
+ interface Window {
3675
+ senderId: string;
3676
+ }
3677
+ }
3678
+
3679
+
3671
3680
  declare module '@tanstack/react-table' {
3672
3681
  interface TableMeta<TData extends RowData> {
3673
3682
  options?: BuiltInFieldOptions;
@@ -3682,13 +3691,6 @@ declare module '@tanstack/react-table' {
3682
3691
  }
3683
3692
 
3684
3693
 
3685
- declare global {
3686
- interface Window {
3687
- senderId: string;
3688
- }
3689
- }
3690
-
3691
-
3692
3694
  declare module '@tanstack/react-table' {
3693
3695
  interface FilterFns {
3694
3696
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -2396,6 +2396,13 @@ declare type YnputCloudSubscriptionModel = {
2396
2396
  export { }
2397
2397
 
2398
2398
 
2399
+ declare global {
2400
+ interface Window {
2401
+ senderId: string;
2402
+ }
2403
+ }
2404
+
2405
+
2399
2406
  declare module '@tanstack/react-table' {
2400
2407
  interface TableMeta<TData extends RowData> {
2401
2408
  options?: BuiltInFieldOptions;
@@ -2410,13 +2417,6 @@ declare module '@tanstack/react-table' {
2410
2417
  }
2411
2418
 
2412
2419
 
2413
- declare global {
2414
- interface Window {
2415
- senderId: string;
2416
- }
2417
- }
2418
-
2419
-
2420
2420
  declare module '@tanstack/react-table' {
2421
2421
  interface FilterFns {
2422
2422
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -610,6 +610,13 @@ export declare const writeSessionStorage: <T>(key: string, value: T) => void;
610
610
  export { }
611
611
 
612
612
 
613
+ declare global {
614
+ interface Window {
615
+ senderId: string;
616
+ }
617
+ }
618
+
619
+
613
620
  declare module '@tanstack/react-table' {
614
621
  interface TableMeta<TData extends RowData> {
615
622
  options?: BuiltInFieldOptions;
@@ -624,13 +631,6 @@ declare module '@tanstack/react-table' {
624
631
  }
625
632
 
626
633
 
627
- declare global {
628
- interface Window {
629
- senderId: string;
630
- }
631
- }
632
-
633
-
634
634
  declare module '@tanstack/react-table' {
635
635
  interface FilterFns {
636
636
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -62,6 +62,13 @@ declare interface UserImageProps {
62
62
  export { }
63
63
 
64
64
 
65
+ declare global {
66
+ interface Window {
67
+ senderId: string;
68
+ }
69
+ }
70
+
71
+
65
72
  declare module '@tanstack/react-table' {
66
73
  interface TableMeta<TData extends RowData> {
67
74
  options?: BuiltInFieldOptions;
@@ -76,13 +83,6 @@ declare module '@tanstack/react-table' {
76
83
  }
77
84
 
78
85
 
79
- declare global {
80
- interface Window {
81
- senderId: string;
82
- }
83
- }
84
-
85
-
86
86
  declare module '@tanstack/react-table' {
87
87
  interface FilterFns {
88
88
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -942,6 +942,13 @@ export declare const waitForRealtimeJitter: () => Promise<void>;
942
942
  export { }
943
943
 
944
944
 
945
+ declare global {
946
+ interface Window {
947
+ senderId: string;
948
+ }
949
+ }
950
+
951
+
945
952
  declare module '@tanstack/react-table' {
946
953
  interface TableMeta<TData extends RowData> {
947
954
  options?: BuiltInFieldOptions;
@@ -956,13 +963,6 @@ declare module '@tanstack/react-table' {
956
963
  }
957
964
 
958
965
 
959
- declare global {
960
- interface Window {
961
- senderId: string;
962
- }
963
- }
964
-
965
-
966
966
  declare module '@tanstack/react-table' {
967
967
  interface FilterFns {
968
968
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynput/ayon-frontend-shared",
3
- "version": "0.4.6",
3
+ "version": "0.5.0",
4
4
  "description": "Shared React components for AYON frontend",
5
5
  "module": "dist/index.es.js",
6
6
  "exports": {
@@ -93,13 +93,16 @@
93
93
  "peerDependencies": {
94
94
  "@dnd-kit/core": "6.3.1",
95
95
  "@dnd-kit/sortable": "8.0.0",
96
+ "@module-federation/enhanced": "2.3.2",
96
97
  "@reduxjs/toolkit": "2.11.2",
97
98
  "@rtk-query/graphql-request-base-query": "2.3.2",
98
99
  "@tanstack/react-table": "8.21.3",
99
100
  "@ynput/ayon-react-components": "^1.19.10",
101
+ "graphql-request": "7.4.0",
100
102
  "react": "18.3.1",
101
103
  "react-dom": "18.3.1",
102
104
  "react-redux": "9.2.0",
105
+ "react-router": "7.18.3",
103
106
  "react-router-dom": "7.18.3",
104
107
  "react-toastify": "9.1.3",
105
108
  "styled-components": "6.4.0"
@@ -116,8 +119,11 @@
116
119
  "vite-plugin-linter": "4.0.0"
117
120
  },
118
121
  "dependencies": {
122
+ "@dnd-kit/modifiers": "9.0.0",
123
+ "@dnd-kit/utilities": "3.2.2",
119
124
  "@tanstack/match-sorter-utils": "8.19.4",
120
125
  "@tanstack/react-virtual": "3.13.23",
126
+ "@uiw/react-textarea-code-editor": "2.1.9",
121
127
  "@ynput/ayon-player": "1.0.2",
122
128
  "@ynput/ayon-react-components": "^1.21.0",
123
129
  "axios": "1.20.0",
@@ -125,19 +131,23 @@
125
131
  "custom-protocol-check": "1.4.0",
126
132
  "date-fns": "3.6.0",
127
133
  "lodash": "4.18.1",
134
+ "match-sorter": "6.4.0",
128
135
  "primeicons": "7.0.0",
129
136
  "primereact": "9.6.2",
130
137
  "primereact-context": "npm:primereact@9.2.3",
131
138
  "quill-magic-url": "4.2.0",
139
+ "react-intersection-observer": "9.16.0",
132
140
  "react-markdown": "10.1.0",
133
141
  "react-perfect-scrollbar": "1.5.8",
134
142
  "react-quill-ayon": "2.0.2",
135
143
  "react-toastify": "9.1.3",
144
+ "react-use-websocket": "4.13.0",
136
145
  "rehype-raw": "7.0.0",
137
146
  "remark-directive": "3.0.1",
138
147
  "remark-directive-rehype": "0.4.2",
139
148
  "remark-emoji": "4.0.1",
140
149
  "remark-gfm": "4.0.1",
150
+ "semver": "7.7.4",
141
151
  "turndown": "7.2.4",
142
152
  "uuid": "14.0.1"
143
153
  },
@@ -1,18 +0,0 @@
1
- import { f as S } from "./MenuContext.es.js";
2
- const n = "slicer-splitter", e = {
3
- minSize: 2,
4
- size: 12
5
- }, c = () => {
6
- const [s, i] = S(n, [
7
- e.size,
8
- 100 - e.size
9
- ]);
10
- return [s, (t) => {
11
- i(t.sizes);
12
- }];
13
- };
14
- export {
15
- e as S,
16
- n as a,
17
- c as u
18
- };