@ynput/ayon-frontend-shared 0.6.0 → 0.6.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 (89) hide show
  1. package/dist/ContextMenu.es.js +34 -16
  2. package/dist/DetailsPanel.es.js +292 -298
  3. package/dist/Feed.es.js +179 -50
  4. package/dist/ListTable.es.js +32 -35
  5. package/dist/NewEntity.es.js +1256 -11
  6. package/dist/ProjectTreeTable.es.js +4451 -2965
  7. package/dist/SimpleTable.es.js +8 -7
  8. package/dist/Slicer.es.js +451 -147
  9. package/dist/Views.es.js +918 -310
  10. package/dist/chunks/Actions.es.js +9 -4
  11. package/dist/chunks/ColumnDropIndicator.es.js +174 -328
  12. package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
  13. package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
  14. package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
  15. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
  16. package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
  17. package/dist/chunks/EmptyPlaceholder.es.js +4 -4
  18. package/dist/chunks/EntityPath.es.js +58 -53
  19. package/dist/chunks/EntityPickerDialog.es.js +24 -20
  20. package/dist/chunks/EntityTooltip.es.js +20 -13
  21. package/dist/chunks/EntityUpdatesContext.es.js +38 -96
  22. package/dist/chunks/Feed.es.js +1495 -1439
  23. package/dist/chunks/FilterErrorActions.es.js +25 -229
  24. package/dist/chunks/Menu.es.js +21 -17
  25. package/dist/chunks/MenuContext.es.js +14 -65
  26. package/dist/chunks/MenuItem.es.js +34 -24
  27. package/dist/chunks/MetaWidget.es.js +2835 -4301
  28. package/dist/chunks/NewEntityContextInstance.es.js +11 -0
  29. package/dist/chunks/PlayableIcon.es.js +1532 -1594
  30. package/dist/chunks/ProjectContext.es.js +102 -66
  31. package/dist/chunks/RepresentationsList.es.js +1 -1
  32. package/dist/chunks/ReviewablesSelector.es.js +457 -458
  33. package/dist/chunks/SimpleForm.es.js +9 -9
  34. package/dist/chunks/SimpleTable.es.js +15 -13
  35. package/dist/chunks/Slicer.es.js +163 -154
  36. package/dist/chunks/TableSettingsFallback.es.js +25 -13
  37. package/dist/chunks/ThumbnailSimple.es.js +150 -261
  38. package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
  39. package/dist/chunks/VideoPlayer.es.js +24 -28
  40. package/dist/chunks/Watchers.es.js +384 -389
  41. package/dist/chunks/entityDefinitions.es.js +2 -350
  42. package/dist/chunks/extractVersionFromFilename.es.js +28 -0
  43. package/dist/chunks/getBundleMode.es.js +61 -16
  44. package/dist/chunks/getUris.es.js +737 -712
  45. package/dist/chunks/searchTerms.es.js +57 -56
  46. package/dist/chunks/useAttributeEnums.es.js +4 -4
  47. package/dist/chunks/useCreateContextMenu.es.js +66 -90
  48. package/dist/chunks/useHierarchySelection.es.js +24 -0
  49. package/dist/chunks/useLoadModule.es.js +74 -0
  50. package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
  51. package/dist/chunks/versionUploadHelpers.es.js +16 -42
  52. package/dist/chunks/viewUpdateHelper.es.js +67 -50
  53. package/dist/components.es.js +1425 -999
  54. package/dist/context.es.js +791 -80
  55. package/dist/hooks.es.js +115 -120
  56. package/dist/index.es.js +19 -23
  57. package/dist/types/Actions.d.ts +7 -7
  58. package/dist/types/ContextMenu.d.ts +11 -8
  59. package/dist/types/DetailsPanel.d.ts +102 -9
  60. package/dist/types/EntityPickerDialog.d.ts +7 -7
  61. package/dist/types/Feed.d.ts +11 -8
  62. package/dist/types/ListTable.d.ts +7 -7
  63. package/dist/types/NewEntity.d.ts +16 -10
  64. package/dist/types/ProjectTreeTable.d.ts +22 -115
  65. package/dist/types/RepresentationsList.d.ts +7 -7
  66. package/dist/types/SimpleTable.d.ts +11 -8
  67. package/dist/types/Slicer.d.ts +10 -7
  68. package/dist/types/Views.d.ts +10 -7
  69. package/dist/types/api.d.ts +132 -120
  70. package/dist/types/components.d.ts +13 -8
  71. package/dist/types/context.d.ts +56 -16
  72. package/dist/types/hooks.d.ts +7 -7
  73. package/dist/types/index.d.ts +7 -7
  74. package/dist/types/util.d.ts +12 -7
  75. package/dist/util.es.js +72 -71
  76. package/package.json +1 -1
  77. package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
  78. package/dist/chunks/DetailsPanelContext.es.js +0 -155
  79. package/dist/chunks/GlobalContext.es.js +0 -52
  80. package/dist/chunks/NewEntityContext.es.js +0 -1242
  81. package/dist/chunks/ProjectFoldersContext.es.js +0 -134
  82. package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
  83. package/dist/chunks/VersionUploadContext.es.js +0 -232
  84. package/dist/chunks/ViewsContext.es.js +0 -878
  85. package/dist/chunks/uriUtils.es.js +0 -48
  86. package/dist/chunks/useColumnDragRestriction.es.js +0 -158
  87. package/dist/chunks/useLocalStorage.es.js +0 -355
  88. package/dist/chunks/useSessionStorage.es.js +0 -61
  89. /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
@@ -9,6 +9,7 @@ import { ColumnOrderState } from '@tanstack/react-table';
9
9
  import { ColumnPinningState } from '@tanstack/react-table';
10
10
  import { ColumnSizingState } from '@tanstack/react-table';
11
11
  import { Component } from 'react';
12
+ import { Context } from 'react';
12
13
  import { coreModuleName } from '@reduxjs/toolkit/query';
13
14
  import { CSSProperties } from 'react';
14
15
  import { default as default_2 } from 'react';
@@ -1199,6 +1200,8 @@ declare interface FeaturedVersionOrderProps {
1199
1200
  onChange: (value: string[]) => void;
1200
1201
  }
1201
1202
 
1203
+ export declare const FeedbackContext: Context<FeedbackContextType | undefined>;
1204
+
1202
1205
  export declare type FeedbackContextType = {
1203
1206
  loaded: boolean;
1204
1207
  openSupport: (page?: 'Home' | 'Messages' | 'Changelog' | 'Help' | 'NewMessage' | 'ShowArticle', id?: string) => void;
@@ -1990,7 +1993,7 @@ export declare type PathSegment = {
1990
1993
  id: string;
1991
1994
  };
1992
1995
 
1993
- export declare const Placeholder: IStyledComponentBase<"web", FastOmit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
1996
+ export declare const Placeholder: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
1994
1997
 
1995
1998
  declare const Placeholder_2: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
1996
1999
 
@@ -3455,6 +3458,8 @@ declare type VersionsViewPostModel = {
3455
3458
  viewType?: 'versions';
3456
3459
  };
3457
3460
 
3461
+ export declare const VersionUploadContext: Context<VersionUploadContextType | undefined>;
3462
+
3458
3463
  export declare interface VersionUploadContextType {
3459
3464
  productId: string;
3460
3465
  folderId: string;
@@ -3745,13 +3750,6 @@ declare module '@tanstack/react-table' {
3745
3750
  }
3746
3751
 
3747
3752
 
3748
- declare global {
3749
- interface Window {
3750
- senderId: string;
3751
- }
3752
- }
3753
-
3754
-
3755
3753
  declare module '@tanstack/react-table' {
3756
3754
  interface TableMeta<TData extends RowData> {
3757
3755
  options?: BuiltInFieldOptions;
@@ -3766,6 +3764,13 @@ declare module '@tanstack/react-table' {
3766
3764
  }
3767
3765
 
3768
3766
 
3767
+ declare global {
3768
+ interface Window {
3769
+ senderId: string;
3770
+ }
3771
+ }
3772
+
3773
+
3769
3774
  declare module '@tanstack/react-table' {
3770
3775
  interface ColumnMeta<TData extends RowData, TValue> {
3771
3776
  listTableCustomCell?: boolean;
@@ -49,6 +49,8 @@ export declare interface AddonConfig {
49
49
 
50
50
  export declare const addonConfigs: Record<string, AddonConfig>;
51
51
 
52
+ export declare const AddonContext: Context<AddonContextType | undefined>;
53
+
52
54
  export declare interface AddonContextProps extends RemoteAddonProps {
53
55
  children: React.ReactNode;
54
56
  }
@@ -64,6 +66,8 @@ export declare type AddonDialogSelection = {
64
66
 
65
67
  export declare type AddonFeatureKey = string;
66
68
 
69
+ export declare const AddonProjectContext: Context<AddonProjectContextType | undefined>;
70
+
67
71
  export declare interface AddonProjectContextType extends RemoteAddonProjectProps {
68
72
  project: ProjectModel_2 | undefined;
69
73
  user: UserModel_2 | undefined;
@@ -253,7 +257,9 @@ export declare interface DeletableEntity {
253
257
 
254
258
  export declare type DeletableEntityType = 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile';
255
259
 
256
- declare interface DeleteEntitiesContextValue {
260
+ export declare const DeleteEntitiesContext: Context<DeleteEntitiesContextValue | null>;
261
+
262
+ export declare interface DeleteEntitiesContextValue {
257
263
  deleteEntities: (entities: DeletableEntity[], options?: DeleteEntitiesOptions) => Promise<void>;
258
264
  }
259
265
 
@@ -277,6 +283,8 @@ declare type DeliveryTemplate = {
277
283
  file: string;
278
284
  };
279
285
 
286
+ export declare const DetailsPanelContext: Context<DetailsPanelContextType | undefined>;
287
+
280
288
  export declare interface DetailsPanelContextProps {
281
289
  dispatch?: any;
282
290
  user: UserModel;
@@ -412,6 +420,8 @@ declare type EntityNaming_2 = {
412
420
 
413
421
  declare type EntityType = OperationModel['entityType'];
414
422
 
423
+ export declare const EntityUpdatesContext: Context<EntityUpdatesContextValue | undefined>;
424
+
415
425
  export declare type EntityUpdatesContextValue = {
416
426
  updates: RTEntityUpdate[];
417
427
  projectNames: string[];
@@ -642,7 +652,9 @@ OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel |
642
652
 
643
653
  declare type GetYnputCloudInfoApiResponse = YnputCloudInfoModel;
644
654
 
645
- declare type GlobalContextType = {
655
+ export declare const GlobalContext: Context<GlobalContextType | undefined>;
656
+
657
+ export declare type GlobalContextType = {
646
658
  siteInfo: GetSiteInfoResult | undefined;
647
659
  attributes: AttributeModel[];
648
660
  user: GetCurrentUserApiResponse | undefined;
@@ -728,6 +740,8 @@ declare type InfoResponseModel = {
728
740
 
729
741
  export declare const isDeletableEntityType: (type?: string) => type is DeletableEntityType;
730
742
 
743
+ export declare const isDetailsPanelTab: (tab: unknown) => tab is DetailsPanelTab;
744
+
731
745
  declare type LinkType = {
732
746
  link_type: string;
733
747
  input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
@@ -827,11 +841,15 @@ declare type ListViewsApiArg = {
827
841
  projectName?: string;
828
842
  };
829
843
 
844
+ export declare const matchesProject: (project: string | undefined, projectNames: string[]) => boolean;
845
+
846
+ export declare const matchesTopic: (topic: string, subscribedTopic: string) => boolean;
847
+
830
848
  declare type Maybe<T> = T | null;
831
849
 
832
- export declare const MenuContext: default_2.Context<MenuContextType | undefined>;
850
+ export declare const MenuContext: Context<MenuContextType | undefined>;
833
851
 
834
- declare interface MenuContextType {
852
+ export declare interface MenuContextType {
835
853
  menuOpen: string | false;
836
854
  setMenuOpen: (menuId: string | false) => void;
837
855
  toggleMenuOpen: (menuId: string | false) => void;
@@ -913,6 +931,8 @@ declare type OverviewViewPostModel = {
913
931
  viewType?: 'overview';
914
932
  };
915
933
 
934
+ export declare const PiPContext: Context<PiPContextType | undefined>;
935
+
916
936
  export declare type PiPContextType = {
917
937
  isSupported: boolean;
918
938
  pipWindow: Window | null;
@@ -938,6 +958,8 @@ export declare interface PiPWrapperProps {
938
958
  children: default_2.ReactNode;
939
959
  }
940
960
 
961
+ export declare const PowerpackContext: Context<PowerpackContextType | undefined>;
962
+
941
963
  export declare type PowerpackContextType = {
942
964
  selectedPowerPack: PowerpackFeature | null;
943
965
  selectedAddon: AddonDialogSelection | null;
@@ -1070,6 +1092,8 @@ declare type ProjectAttribModel2_2 = {
1070
1092
  description?: string;
1071
1093
  };
1072
1094
 
1095
+ export declare const ProjectContext: Context<ProjectContextValue | undefined>;
1096
+
1073
1097
  export declare const ProjectContextProvider: React.FC<ProjectProviderProps>;
1074
1098
 
1075
1099
  export declare interface ProjectContextValue extends ProjectModelWithProducts {
@@ -1095,6 +1119,8 @@ export declare interface ProjectContextValue extends ProjectModelWithProducts {
1095
1119
  }[];
1096
1120
  }
1097
1121
 
1122
+ export declare const ProjectFoldersContext: Context<ProjectFoldersContextValue | undefined>;
1123
+
1098
1124
  export declare const ProjectFoldersContextProvider: React.FC<ProjectFoldersProviderProps>;
1099
1125
 
1100
1126
  export declare interface ProjectFoldersContextValue {
@@ -1270,7 +1296,9 @@ export declare interface RemoteAddonProps {
1270
1296
  toast: any;
1271
1297
  }
1272
1298
 
1273
- declare type RemoteModulesContextType = {
1299
+ export declare const RemoteModulesContext: Context<RemoteModulesContextType>;
1300
+
1301
+ export declare type RemoteModulesContextType = {
1274
1302
  isLoading: boolean;
1275
1303
  modules: FrontendModuleListItem[];
1276
1304
  remotesInitialized: boolean;
@@ -1461,7 +1489,9 @@ export declare type SettingField = 'columns' | string;
1461
1489
 
1462
1490
  export declare type SettingHighlightedId = string | null;
1463
1491
 
1464
- declare interface SettingsPanelContextType {
1492
+ export declare const SettingsPanelContext: Context<SettingsPanelContextType | undefined>;
1493
+
1494
+ export declare interface SettingsPanelContextType {
1465
1495
  isPanelOpen: boolean;
1466
1496
  selectedSetting: SettingField | null;
1467
1497
  highlightedSetting: SettingHighlightedId;
@@ -1509,6 +1539,8 @@ export declare type SlideOut = {
1509
1539
  projectName: string;
1510
1540
  };
1511
1541
 
1542
+ export declare const SocketContext: Context<WebsocketContextType | undefined>;
1543
+
1512
1544
  export declare const SocketProvider: ({ children, userName, projectName, dispatch, }: SocketProviderProps) => JSX_2.Element;
1513
1545
 
1514
1546
  export declare type SocketProviderProps = {
@@ -1610,6 +1642,8 @@ declare interface SubtasksManagerProps extends Omit<React.HTMLAttributes<HTMLDiv
1610
1642
  dispatch?: ThunkDispatch<any, any, UnknownAction>;
1611
1643
  }
1612
1644
 
1645
+ export declare const SubtasksModulesContext: Context<SubtasksModulesContextType | undefined>;
1646
+
1613
1647
  export declare interface SubtasksModulesContextType {
1614
1648
  SubtasksManager: typeof SubtasksManagerFallback;
1615
1649
  requiredVersion: string | undefined;
@@ -1620,6 +1654,8 @@ export declare const SubtasksModulesProvider: FC<{
1620
1654
  children: ReactNode;
1621
1655
  }>;
1622
1656
 
1657
+ export declare const TABS_BY_SCOPE_KEY = "details/tabs-by-scope";
1658
+
1623
1659
  export declare interface TabStateByScope {
1624
1660
  [scope: string]: DetailsPanelTab;
1625
1661
  }
@@ -1745,6 +1781,8 @@ export declare type ThumbnailUploadProviderProps = {
1745
1781
 
1746
1782
  declare type ToastFunc = typeof toast;
1747
1783
 
1784
+ export declare const toggleSyncAll: (on: boolean) => RTUpdateConfig;
1785
+
1748
1786
  export declare type TopicUpdateType = 'created' | 'label_changed' | 'renamed' | 'type_changed' | 'status_changed' | 'tags_changed' | 'attrib_changed' | 'deleted';
1749
1787
 
1750
1788
  declare type UpdateEntitiesArgs = {
@@ -1783,7 +1821,9 @@ declare type UpdateViewApiArg = {
1783
1821
 
1784
1822
  declare type UpdateViewSettingsFn = (updatedSettings: any, localStateSetter: (value: any) => void, newLocalValue: any, options: UpdateOptions) => Promise<void>;
1785
1823
 
1786
- declare interface URIContextValue {
1824
+ export declare const URIContext: Context<URIContextValue | undefined>;
1825
+
1826
+ export declare interface URIContextValue {
1787
1827
  uri: string;
1788
1828
  uriType: 'settings' | 'entity' | undefined;
1789
1829
  entity?: EntityUri;
@@ -1947,13 +1987,13 @@ declare type UseSyncUpdatesParams = {
1947
1987
  shouldSyncOnUpdate?: (update: RTEntityUpdate) => boolean;
1948
1988
  };
1949
1989
 
1950
- export declare const useThumbnailUploadContext: () => Context<{
1990
+ export declare const useThumbnailUploadContext: () => {
1951
1991
  resetFileUploadState?: Function;
1952
1992
  triggerThumbnailUpload?: () => void;
1953
1993
  triggerVersionUpload?: () => void;
1954
1994
  canUploadVersion?: boolean;
1955
1995
  onContextMenu?: (event: MouseEvent) => void;
1956
- }>;
1996
+ };
1957
1997
 
1958
1998
  declare const useUpdateSubtasksMutation: <R extends Record<string, any> = ({
1959
1999
  requestId?: undefined;
@@ -2455,13 +2495,6 @@ declare module '@tanstack/react-table' {
2455
2495
  }
2456
2496
 
2457
2497
 
2458
- declare global {
2459
- interface Window {
2460
- senderId: string;
2461
- }
2462
- }
2463
-
2464
-
2465
2498
  declare module '@tanstack/react-table' {
2466
2499
  interface TableMeta<TData extends RowData> {
2467
2500
  options?: BuiltInFieldOptions;
@@ -2476,6 +2509,13 @@ declare module '@tanstack/react-table' {
2476
2509
  }
2477
2510
 
2478
2511
 
2512
+ declare global {
2513
+ interface Window {
2514
+ senderId: string;
2515
+ }
2516
+ }
2517
+
2518
+
2479
2519
  declare module '@tanstack/react-table' {
2480
2520
  interface ColumnMeta<TData extends RowData, TValue> {
2481
2521
  listTableCustomCell?: boolean;
@@ -626,13 +626,6 @@ declare module '@tanstack/react-table' {
626
626
  }
627
627
 
628
628
 
629
- declare global {
630
- interface Window {
631
- senderId: string;
632
- }
633
- }
634
-
635
-
636
629
  declare module '@tanstack/react-table' {
637
630
  interface TableMeta<TData extends RowData> {
638
631
  options?: BuiltInFieldOptions;
@@ -647,6 +640,13 @@ declare module '@tanstack/react-table' {
647
640
  }
648
641
 
649
642
 
643
+ declare global {
644
+ interface Window {
645
+ senderId: string;
646
+ }
647
+ }
648
+
649
+
650
650
  declare module '@tanstack/react-table' {
651
651
  interface ColumnMeta<TData extends RowData, TValue> {
652
652
  listTableCustomCell?: boolean;
@@ -78,13 +78,6 @@ declare module '@tanstack/react-table' {
78
78
  }
79
79
 
80
80
 
81
- declare global {
82
- interface Window {
83
- senderId: string;
84
- }
85
- }
86
-
87
-
88
81
  declare module '@tanstack/react-table' {
89
82
  interface TableMeta<TData extends RowData> {
90
83
  options?: BuiltInFieldOptions;
@@ -99,6 +92,13 @@ declare module '@tanstack/react-table' {
99
92
  }
100
93
 
101
94
 
95
+ declare global {
96
+ interface Window {
97
+ senderId: string;
98
+ }
99
+ }
100
+
101
+
102
102
  declare module '@tanstack/react-table' {
103
103
  interface ColumnMeta<TData extends RowData, TValue> {
104
104
  listTableCustomCell?: boolean;
@@ -521,6 +521,11 @@ export declare const getProjectThumbnailUrl: (projectName: string, thumbnailHash
521
521
 
522
522
  export declare const getRequestErrorString: (error: unknown) => string;
523
523
 
524
+ export declare const getSelectableAssignees: <T extends {
525
+ name: string;
526
+ hidden?: boolean;
527
+ }>(users: T[], assigned?: string[]) => T[];
528
+
524
529
  export declare const getSelectableEnumItems: <T extends HideableEnumItem>(items: T[], selectedValues?: (string | number | boolean)[]) => T[];
525
530
 
526
531
  export declare const getSettingsStateFromUri: (uri: string) => SettingsUri;
@@ -958,13 +963,6 @@ declare module '@tanstack/react-table' {
958
963
  }
959
964
 
960
965
 
961
- declare global {
962
- interface Window {
963
- senderId: string;
964
- }
965
- }
966
-
967
-
968
966
  declare module '@tanstack/react-table' {
969
967
  interface TableMeta<TData extends RowData> {
970
968
  options?: BuiltInFieldOptions;
@@ -979,6 +977,13 @@ declare module '@tanstack/react-table' {
979
977
  }
980
978
 
981
979
 
980
+ declare global {
981
+ interface Window {
982
+ senderId: string;
983
+ }
984
+ }
985
+
986
+
982
987
  declare module '@tanstack/react-table' {
983
988
  interface ColumnMeta<TData extends RowData, TValue> {
984
989
  listTableCustomCell?: boolean;
package/dist/util.es.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { K as S, g as I, a as P } from "./chunks/platform.es.js";
2
2
  import { c as d } from "./chunks/confirmDelete.es.js";
3
3
  import { a as C } from "./chunks/confirmDelete.es.js";
4
- import { e as M, g as A } from "./chunks/getEntityTypeIcon.es.js";
4
+ import { e as A, g as M } from "./chunks/getEntityTypeIcon.es.js";
5
5
  import { g as U, r as L } from "./chunks/replaceRoot.es.js";
6
- import { e as N, g as v } from "./chunks/extractEntityHierarchyFromParents.es.js";
6
+ import { e as v, g as N } from "./chunks/extractEntityHierarchyFromParents.es.js";
7
7
  import { c as k } from "./chunks/copyToClipboard.es.js";
8
8
  import { g as O, h as B } from "./chunks/humanizeFieldName.es.js";
9
9
  import { c as K, a as z, g as q, p as J, b as Q } from "./chunks/parseHtmlToPlainTextWithLinks.es.js";
10
10
  import { bk as g } from "./chunks/searchTerms.es.js";
11
- import { bl as $, bf as j, bm as G, bi as X, bn as Y, be as Z, bo as ee, bg as ae, bh as te, bp as re, bq as oe, br as se, bj as ne, bs as ie, bt as le, bu as me } from "./chunks/searchTerms.es.js";
12
- import { a as pe, b as de, d as ge, e as ue, c as be, g as fe, f as Ee, s as he, v as Te, w as xe } from "./chunks/realtimeUpdatesUtils.es.js";
13
- import { a as Se, b as Ie, c as Pe, e as Fe, g as Ce, h as Re, s as Me, v as Ae, d as De, f as Ue } from "./chunks/versionUploadHelpers.es.js";
14
- import { c as _e, a as Ne } from "./chunks/columnConfigConverter.es.js";
15
- import { p as we } from "./chunks/pluralize.es.js";
16
- import { b as He, a as Oe, h as Be, p as Ve, r as Ke } from "./chunks/colorUtils.es.js";
17
- import { g as qe } from "./chunks/getGroupByDataType.es.js";
18
- import { b as Qe, g as We, a as $e, p as je } from "./chunks/uriUtils.es.js";
19
- import { b as Xe, s as Ye } from "./chunks/buildHierarchicalTableRows.es.js";
20
- import { g as ea, a as aa } from "./chunks/getThumbnailUrl.es.js";
21
- import { g as ra, u as oa } from "./chunks/getBundleMode.es.js";
22
- import { p as na } from "./chunks/parseFilename.es.js";
23
- import { i as la } from "./chunks/isHTMLElement.es.js";
24
- import { ConfirmDialog as ca } from "primereact/confirmdialog";
11
+ import { bl as $, be as j, bm as G, bg as X, bn as Y, bi as Z, bo as ee, bp as ae, bj as te, bf as re, bq as oe, br as se, bs as ne, bh as ie, bt as le, bu as me, bv as ce } from "./chunks/searchTerms.es.js";
12
+ import { a as de, b as ge, d as be, e as ue, c as fe, g as Ee, f as he, s as Te, v as xe, w as ye } from "./chunks/realtimeUpdatesUtils.es.js";
13
+ import { e as Ie } from "./chunks/extractVersionFromFilename.es.js";
14
+ import { c as Fe, a as Ce, b as Re, g as Ae, h as Me, s as De, v as Ue, d as Le, e as _e } from "./chunks/versionUploadHelpers.es.js";
15
+ import { c as Ne, a as we } from "./chunks/columnConfigConverter.es.js";
16
+ import { p as He } from "./chunks/pluralize.es.js";
17
+ import { b as Be, a as Ve, h as Ke, p as ze, r as qe } from "./chunks/colorUtils.es.js";
18
+ import { g as Qe } from "./chunks/getGroupByDataType.es.js";
19
+ import { b as $e, g as je, a as Ge, c as Xe, p as Ye, u as Ze } from "./chunks/getBundleMode.es.js";
20
+ import { b as aa, s as ta } from "./chunks/buildHierarchicalTableRows.es.js";
21
+ import { g as oa, a as sa } from "./chunks/getThumbnailUrl.es.js";
22
+ import { p as ia } from "./chunks/parseFilename.es.js";
23
+ import { i as ma } from "./chunks/isHTMLElement.es.js";
24
+ import { ConfirmDialog as pa } from "primereact/confirmdialog";
25
25
  const f = (e) => {
26
26
  const t = /* @__PURE__ */ new Map(), o = [];
27
27
  for (const a of e)
@@ -64,86 +64,87 @@ const f = (e) => {
64
64
  }
65
65
  };
66
66
  export {
67
- ca as ConfirmDialog,
67
+ pa as ConfirmDialog,
68
68
  $ as ENUM_CONTEXT_PARAMS,
69
69
  S as KeyMode,
70
70
  j as PubSub,
71
- pe as REALTIME_REST_CALL_LIMIT,
72
- de as REALTIME_REST_JITTER,
73
- ge as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
71
+ de as REALTIME_REST_CALL_LIMIT,
72
+ ge as REALTIME_REST_JITTER,
73
+ be as REALTIME_TASK_SUPPORTED_VALUE_FIELDS,
74
74
  ue as REALTIME_UPDATE_DEBOUNCE,
75
- He as blendCategoryColor,
76
- Oe as blendColors,
77
- Qe as buildEntityUri,
75
+ Be as blendCategoryColor,
76
+ Ve as blendColors,
77
+ $e as buildEntityUri,
78
78
  f as buildFolderHierarchy,
79
- Xe as buildHierarchicalTableRows,
79
+ aa as buildHierarchicalTableRows,
80
80
  K as checkLabel,
81
81
  z as checkName,
82
82
  d as confirmDelete,
83
83
  C as confirmDeleteDialog,
84
- _e as convertColumnConfigToTanstackStates,
85
- Ne as convertTanstackStatesToColumnConfig,
84
+ Ne as convertColumnConfigToTanstackStates,
85
+ we as convertTanstackStatesToColumnConfig,
86
86
  k as copyToClipboard,
87
- Se as createProductAndVersion,
88
- Ie as createProductHelper,
89
- be as createRealtimeBatcher,
90
- Pe as createVersionHelper,
91
- M as entityTypesWithIcons,
92
- N as extractEntityHierarchyFromParents,
93
- Fe as extractVersionFromFilename,
87
+ Fe as createProductAndVersion,
88
+ Ce as createProductHelper,
89
+ fe as createRealtimeBatcher,
90
+ Re as createVersionHelper,
91
+ A as entityTypesWithIcons,
92
+ v as extractEntityHierarchyFromParents,
93
+ Ie as extractVersionFromFilename,
94
94
  q as getAttributeIcon,
95
- ra as getBundleModeFromUser,
95
+ je as getBundleModeFromUser,
96
96
  I as getCurrentPlatform,
97
- fe as getEntityId,
98
- We as getEntityStateFromUri,
99
- ea as getEntityThumbnailUrl,
100
- A as getEntityTypeIcon,
97
+ Ee as getEntityId,
98
+ Ge as getEntityStateFromUri,
99
+ oa as getEntityThumbnailUrl,
100
+ M as getEntityTypeIcon,
101
101
  G as getEnumContextParams,
102
102
  X as getEnumErrorText,
103
103
  Y as getEnumItemIcon,
104
104
  g as getErrorMessage,
105
- qe as getGroupByDataType,
105
+ Qe as getGroupByDataType,
106
106
  O as getMixedState,
107
- Ce as getNextVersionNumber,
107
+ Ae as getNextVersionNumber,
108
108
  P as getPlatformShortcutKey,
109
- v as getPriorityOptions,
109
+ N as getPriorityOptions,
110
110
  h as getProjectDisplayName,
111
- aa as getProjectThumbnailUrl,
111
+ sa as getProjectThumbnailUrl,
112
112
  Z as getRequestErrorString,
113
- ee as getSelectableEnumItems,
114
- $e as getSettingsStateFromUri,
115
- Ee as getSupportedEntityPatch,
113
+ ee as getSelectableAssignees,
114
+ ae as getSelectableEnumItems,
115
+ Xe as getSettingsStateFromUri,
116
+ he as getSupportedEntityPatch,
116
117
  U as groupResult,
117
118
  E as handleDeleteFolders,
118
- Re as handleUploadError,
119
- ae as hasEnumOptions,
120
- te as hasEnumResolver,
121
- Be as hexToRgb,
119
+ Me as handleUploadError,
120
+ te as hasEnumOptions,
121
+ re as hasEnumResolver,
122
+ Ke as hexToRgb,
122
123
  B as humanizeField,
123
- re as isEnumContextParam,
124
- oe as isEnumIconImage,
125
- la as isHTMLElement,
126
- se as matchSearchQuery,
124
+ oe as isEnumContextParam,
125
+ se as isEnumIconImage,
126
+ ma as isHTMLElement,
127
+ ne as matchSearchQuery,
127
128
  T as mentionTypeOptions,
128
- ne as normalizeEnumItems,
129
+ ie as normalizeEnumItems,
129
130
  J as parseAndFormatName,
130
- Ve as parseColor,
131
- na as parseFilename,
131
+ ze as parseColor,
132
+ ia as parseFilename,
132
133
  Q as parseHtmlToPlainTextWithLinks,
133
- ie as parseSearchQuery,
134
- je as parseUri,
135
- we as pluralize,
134
+ le as parseSearchQuery,
135
+ Ye as parseUri,
136
+ He as pluralize,
136
137
  L as replaceRoot,
137
- Ke as rgbToHex,
138
- Me as sanitizeProductName,
139
- Ye as shouldBlockShortcuts,
140
- le as sortKeysDeep,
141
- he as subscribeToThumbnailUpdates,
142
- me as toDropdownErrorText,
143
- oa as useStagingModeState,
144
- Te as validateEntityId,
145
- Ae as validateFormData,
146
- De as validateProductName,
147
- Ue as validateVersion,
148
- xe as waitForRealtimeJitter
138
+ qe as rgbToHex,
139
+ De as sanitizeProductName,
140
+ ta as shouldBlockShortcuts,
141
+ me as sortKeysDeep,
142
+ Te as subscribeToThumbnailUpdates,
143
+ ce as toDropdownErrorText,
144
+ Ze as useStagingModeState,
145
+ xe as validateEntityId,
146
+ Ue as validateFormData,
147
+ Le as validateProductName,
148
+ _e as validateVersion,
149
+ ye as waitForRealtimeJitter
149
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynput/ayon-frontend-shared",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Shared React components for AYON frontend",
5
5
  "module": "dist/index.es.js",
6
6
  "exports": {