@ynput/ayon-frontend-shared 0.5.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.
- package/dist/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +307 -311
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +99 -92
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4459 -2959
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +32 -27
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +74 -69
- package/dist/chunks/EntityPickerDialog.es.js +25 -21
- package/dist/chunks/EntityTooltip.es.js +29 -22
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +2321 -2668
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -256
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2895 -4919
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +4215 -1179
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +4 -4
- package/dist/chunks/ReviewablesSelector.es.js +468 -460
- package/dist/chunks/SimpleForm.es.js +18 -18
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +109 -98
- package/dist/chunks/TableSettingsFallback.es.js +22 -10
- package/dist/chunks/ThumbnailSimple.es.js +290 -52
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +669 -644
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +737 -710
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +179 -174
- package/dist/chunks/useAttributeEnums.es.js +9 -9
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +74 -57
- package/dist/components.es.js +1432 -1001
- package/dist/context.es.js +791 -78
- package/dist/hooks.es.js +95 -94
- package/dist/index.es.js +27 -26
- package/dist/types/Actions.d.ts +15 -15
- package/dist/types/ContextMenu.d.ts +19 -16
- package/dist/types/DetailsPanel.d.ts +110 -17
- package/dist/types/EntityPickerDialog.d.ts +15 -15
- package/dist/types/Feed.d.ts +19 -16
- package/dist/types/ListTable.d.ts +15 -15
- package/dist/types/NewEntity.d.ts +24 -18
- package/dist/types/ProjectTreeTable.d.ts +34 -123
- package/dist/types/RepresentationsList.d.ts +15 -15
- package/dist/types/SimpleTable.d.ts +19 -16
- package/dist/types/Slicer.d.ts +18 -15
- package/dist/types/Views.d.ts +19 -16
- package/dist/types/api.d.ts +515 -207
- package/dist/types/components.d.ts +84 -20
- package/dist/types/context.d.ts +108 -25
- package/dist/types/hooks.d.ts +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/util.d.ts +20 -15
- package/dist/util.es.js +117 -105
- package/package.json +16 -4
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useColumnDragRestriction.es.js +0 -148
- package/dist/chunks/useLocalStorage.es.js +0 -355
- /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';
|
|
@@ -39,7 +40,7 @@ import { Option as Option_2 } from '@ynput/ayon-react-components';
|
|
|
39
40
|
import { OverrideResultType } from '@reduxjs/toolkit/query';
|
|
40
41
|
import { QueryDefinition } from '@reduxjs/toolkit/query';
|
|
41
42
|
import { QueryStatus } from '@reduxjs/toolkit/query';
|
|
42
|
-
import { reactHooksModuleName } from '@reduxjs/toolkit/
|
|
43
|
+
import { reactHooksModuleName } from '@reduxjs/toolkit/query/react';
|
|
43
44
|
import { ReactNode } from 'react';
|
|
44
45
|
import { RefAttributes } from 'react';
|
|
45
46
|
import { RefObject } from 'react';
|
|
@@ -155,7 +156,7 @@ declare type Anatomy = {
|
|
|
155
156
|
/** Link types configuration */
|
|
156
157
|
link_types?: LinkType[];
|
|
157
158
|
/** Statuses configuration */
|
|
158
|
-
statuses?:
|
|
159
|
+
statuses?: Status[];
|
|
159
160
|
/** Tags configuration */
|
|
160
161
|
tags?: Tag[];
|
|
161
162
|
product_base_types?: ProductBaseTypes;
|
|
@@ -436,6 +437,26 @@ declare interface CommandEvent {
|
|
|
436
437
|
};
|
|
437
438
|
}
|
|
438
439
|
|
|
440
|
+
declare type CommentFrameLink = CommentFrameRange & {
|
|
441
|
+
entityId: string;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
declare interface CommentFrameLinkApi {
|
|
445
|
+
draft: CommentFrameLink | null;
|
|
446
|
+
setDraft: (link: CommentFrameLink | null) => void;
|
|
447
|
+
editPreview: FeedFrameLinkPreview | null;
|
|
448
|
+
setEditPreview: (preview: FeedFrameLinkPreview | null) => void;
|
|
449
|
+
link: (entityId: string) => void;
|
|
450
|
+
unlink: () => void;
|
|
451
|
+
goTo: (link: CommentFrameLink) => void;
|
|
452
|
+
formatFrame?: (frame: number) => string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare type CommentFrameRange = {
|
|
456
|
+
startFrame: number;
|
|
457
|
+
endFrame: number;
|
|
458
|
+
};
|
|
459
|
+
|
|
439
460
|
declare interface ContextMenuItemProps {
|
|
440
461
|
icon?: string;
|
|
441
462
|
iconFilled?: boolean;
|
|
@@ -631,17 +652,36 @@ declare type DeliveryTemplate = {
|
|
|
631
652
|
file: string;
|
|
632
653
|
};
|
|
633
654
|
|
|
655
|
+
declare interface DescriptionMentionsContext {
|
|
656
|
+
projectName: string;
|
|
657
|
+
entityType: string;
|
|
658
|
+
entityId: string;
|
|
659
|
+
productTypes?: ProjectContextValue['productTypes'];
|
|
660
|
+
taskTypes?: TaskType_3[];
|
|
661
|
+
}
|
|
662
|
+
|
|
634
663
|
export declare const DescriptionSection: default_2.FC<DescriptionSectionProps>;
|
|
635
664
|
|
|
636
665
|
declare interface DescriptionSectionProps {
|
|
637
666
|
description: string;
|
|
638
|
-
isLarge
|
|
667
|
+
isLarge?: boolean;
|
|
639
668
|
isMixed: boolean;
|
|
640
669
|
enableEditing: boolean;
|
|
641
670
|
initialEdit?: boolean;
|
|
642
671
|
onChange: (description: string) => void;
|
|
643
672
|
onCancel?: () => void;
|
|
644
673
|
isLoading: boolean;
|
|
674
|
+
mentionsContext?: DescriptionMentionsContext;
|
|
675
|
+
onMentionClick?: (mention: {
|
|
676
|
+
type: string;
|
|
677
|
+
id: string;
|
|
678
|
+
label: string;
|
|
679
|
+
}) => void;
|
|
680
|
+
onMentionHover?: (mention: {
|
|
681
|
+
type: string;
|
|
682
|
+
id: string;
|
|
683
|
+
label: string;
|
|
684
|
+
}, target: HTMLElement) => void;
|
|
645
685
|
}
|
|
646
686
|
|
|
647
687
|
export declare const DetailsDialog: ({ projectName, entityType, entityIds, visible, onHide, }: DetailsDialogProps) => JSX_2.Element | null;
|
|
@@ -681,6 +721,7 @@ declare interface DetailsPanelContextProps {
|
|
|
681
721
|
};
|
|
682
722
|
onOpenImage?: (args: any) => void;
|
|
683
723
|
onGoToFrame?: (frame: number) => void;
|
|
724
|
+
commentFrameLink?: CommentFrameLinkApi;
|
|
684
725
|
onOpenViewer?: (args: any) => void;
|
|
685
726
|
onUpdateEntity?: (data: {
|
|
686
727
|
operations: any[];
|
|
@@ -721,6 +762,8 @@ declare interface DetailsPanelContextType extends DetailsPanelContextProps {
|
|
|
721
762
|
setEntities: (entities: Entities | null) => void;
|
|
722
763
|
feedAnnotations: SavedAnnotationMetadata[];
|
|
723
764
|
setFeedAnnotations: (annotations: SavedAnnotationMetadata[]) => void;
|
|
765
|
+
feedFrameLinks: FeedFrameLink[];
|
|
766
|
+
setFeedFrameLinks: (links: FeedFrameLink[]) => void;
|
|
724
767
|
onPowerFeature: (feature: PowerpackFeature) => void;
|
|
725
768
|
}
|
|
726
769
|
|
|
@@ -1041,7 +1084,7 @@ export declare interface EntityTooltipProjectInfo {
|
|
|
1041
1084
|
name: string;
|
|
1042
1085
|
icon?: string;
|
|
1043
1086
|
}[];
|
|
1044
|
-
statuses?:
|
|
1087
|
+
statuses?: Status_3[];
|
|
1045
1088
|
}
|
|
1046
1089
|
|
|
1047
1090
|
export declare interface EntityTooltipProps {
|
|
@@ -1157,6 +1200,8 @@ declare interface FeaturedVersionOrderProps {
|
|
|
1157
1200
|
onChange: (value: string[]) => void;
|
|
1158
1201
|
}
|
|
1159
1202
|
|
|
1203
|
+
export declare const FeedbackContext: Context<FeedbackContextType | undefined>;
|
|
1204
|
+
|
|
1160
1205
|
export declare type FeedbackContextType = {
|
|
1161
1206
|
loaded: boolean;
|
|
1162
1207
|
openSupport: (page?: 'Home' | 'Messages' | 'Changelog' | 'Help' | 'NewMessage' | 'ShowArticle', id?: string) => void;
|
|
@@ -1174,6 +1219,15 @@ declare type FeedbackProviderProps = {
|
|
|
1174
1219
|
children: ReactNode;
|
|
1175
1220
|
};
|
|
1176
1221
|
|
|
1222
|
+
declare type FeedFrameLink = CommentFrameLink & {
|
|
1223
|
+
activityId: string;
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
declare type FeedFrameLinkPreview = {
|
|
1227
|
+
activityId: string;
|
|
1228
|
+
link: CommentFrameLink | null;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1177
1231
|
export declare const FieldLabel: default_2.FC<FieldLabelProps>;
|
|
1178
1232
|
|
|
1179
1233
|
declare interface FieldLabelProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -1939,7 +1993,7 @@ export declare type PathSegment = {
|
|
|
1939
1993
|
id: string;
|
|
1940
1994
|
};
|
|
1941
1995
|
|
|
1942
|
-
export declare const Placeholder: IStyledComponentBase<"web", FastOmit<
|
|
1996
|
+
export declare const Placeholder: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
1943
1997
|
|
|
1944
1998
|
declare const Placeholder_2: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
1945
1999
|
|
|
@@ -2953,6 +3007,14 @@ declare type TaskType_2 = {
|
|
|
2953
3007
|
icon?: string;
|
|
2954
3008
|
};
|
|
2955
3009
|
|
|
3010
|
+
declare type TaskType_3 = {
|
|
3011
|
+
name: string;
|
|
3012
|
+
original_name?: string;
|
|
3013
|
+
shortName?: string;
|
|
3014
|
+
color?: string;
|
|
3015
|
+
icon?: string;
|
|
3016
|
+
};
|
|
3017
|
+
|
|
2956
3018
|
export declare const TEAM_KEY_PREFIX = "team:";
|
|
2957
3019
|
|
|
2958
3020
|
declare type Templates = {
|
|
@@ -3396,6 +3458,8 @@ declare type VersionsViewPostModel = {
|
|
|
3396
3458
|
viewType?: 'versions';
|
|
3397
3459
|
};
|
|
3398
3460
|
|
|
3461
|
+
export declare const VersionUploadContext: Context<VersionUploadContextType | undefined>;
|
|
3462
|
+
|
|
3399
3463
|
export declare interface VersionUploadContextType {
|
|
3400
3464
|
productId: string;
|
|
3401
3465
|
folderId: string;
|
|
@@ -3670,9 +3734,18 @@ export * from "primereact/confirmdialog";
|
|
|
3670
3734
|
export { }
|
|
3671
3735
|
|
|
3672
3736
|
|
|
3673
|
-
declare
|
|
3674
|
-
interface
|
|
3675
|
-
|
|
3737
|
+
declare module '@tanstack/react-table' {
|
|
3738
|
+
interface FilterFns {
|
|
3739
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
3740
|
+
}
|
|
3741
|
+
interface FilterMeta {
|
|
3742
|
+
itemRank: RankingInfo;
|
|
3743
|
+
}
|
|
3744
|
+
interface TableMeta<TData extends RowData> {
|
|
3745
|
+
isExpandable?: boolean;
|
|
3746
|
+
isLoading?: boolean;
|
|
3747
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
3748
|
+
[key: string]: any;
|
|
3676
3749
|
}
|
|
3677
3750
|
}
|
|
3678
3751
|
|
|
@@ -3691,18 +3764,9 @@ declare module '@tanstack/react-table' {
|
|
|
3691
3764
|
}
|
|
3692
3765
|
|
|
3693
3766
|
|
|
3694
|
-
declare
|
|
3695
|
-
interface
|
|
3696
|
-
|
|
3697
|
-
}
|
|
3698
|
-
interface FilterMeta {
|
|
3699
|
-
itemRank: RankingInfo;
|
|
3700
|
-
}
|
|
3701
|
-
interface TableMeta<TData extends RowData> {
|
|
3702
|
-
isExpandable?: boolean;
|
|
3703
|
-
isLoading?: boolean;
|
|
3704
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
3705
|
-
[key: string]: any;
|
|
3767
|
+
declare global {
|
|
3768
|
+
interface Window {
|
|
3769
|
+
senderId: string;
|
|
3706
3770
|
}
|
|
3707
3771
|
}
|
|
3708
3772
|
|
package/dist/types/context.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { NavigateFunction } from 'react-router';
|
|
|
17
17
|
import { OverrideResultType } from '@reduxjs/toolkit/query';
|
|
18
18
|
import { QueryDefinition } from '@reduxjs/toolkit/query';
|
|
19
19
|
import { QueryStatus } from '@reduxjs/toolkit/query';
|
|
20
|
-
import { reactHooksModuleName } from '@reduxjs/toolkit/
|
|
20
|
+
import { reactHooksModuleName } from '@reduxjs/toolkit/query/react';
|
|
21
21
|
import { ReactNode } from 'react';
|
|
22
22
|
import { ReadyState as ReadyState_2 } from 'react-use-websocket';
|
|
23
23
|
import { RefAttributes } from 'react';
|
|
@@ -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;
|
|
@@ -203,6 +207,26 @@ declare type ColumnItemModel = {
|
|
|
203
207
|
width?: number;
|
|
204
208
|
};
|
|
205
209
|
|
|
210
|
+
export declare type CommentFrameLink = CommentFrameRange & {
|
|
211
|
+
entityId: string;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export declare interface CommentFrameLinkApi {
|
|
215
|
+
draft: CommentFrameLink | null;
|
|
216
|
+
setDraft: (link: CommentFrameLink | null) => void;
|
|
217
|
+
editPreview: FeedFrameLinkPreview | null;
|
|
218
|
+
setEditPreview: (preview: FeedFrameLinkPreview | null) => void;
|
|
219
|
+
link: (entityId: string) => void;
|
|
220
|
+
unlink: () => void;
|
|
221
|
+
goTo: (link: CommentFrameLink) => void;
|
|
222
|
+
formatFrame?: (frame: number) => string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export declare type CommentFrameRange = {
|
|
226
|
+
startFrame: number;
|
|
227
|
+
endFrame: number;
|
|
228
|
+
};
|
|
229
|
+
|
|
206
230
|
declare type CreateViewApiArg = {
|
|
207
231
|
viewType: string;
|
|
208
232
|
projectName?: string;
|
|
@@ -233,7 +257,9 @@ export declare interface DeletableEntity {
|
|
|
233
257
|
|
|
234
258
|
export declare type DeletableEntityType = 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile';
|
|
235
259
|
|
|
236
|
-
declare
|
|
260
|
+
export declare const DeleteEntitiesContext: Context<DeleteEntitiesContextValue | null>;
|
|
261
|
+
|
|
262
|
+
export declare interface DeleteEntitiesContextValue {
|
|
237
263
|
deleteEntities: (entities: DeletableEntity[], options?: DeleteEntitiesOptions) => Promise<void>;
|
|
238
264
|
}
|
|
239
265
|
|
|
@@ -257,6 +283,8 @@ declare type DeliveryTemplate = {
|
|
|
257
283
|
file: string;
|
|
258
284
|
};
|
|
259
285
|
|
|
286
|
+
export declare const DetailsPanelContext: Context<DetailsPanelContextType | undefined>;
|
|
287
|
+
|
|
260
288
|
export declare interface DetailsPanelContextProps {
|
|
261
289
|
dispatch?: any;
|
|
262
290
|
user: UserModel;
|
|
@@ -267,6 +295,7 @@ export declare interface DetailsPanelContextProps {
|
|
|
267
295
|
};
|
|
268
296
|
onOpenImage?: (args: any) => void;
|
|
269
297
|
onGoToFrame?: (frame: number) => void;
|
|
298
|
+
commentFrameLink?: CommentFrameLinkApi;
|
|
270
299
|
onOpenViewer?: (args: any) => void;
|
|
271
300
|
onUpdateEntity?: (data: {
|
|
272
301
|
operations: any[];
|
|
@@ -307,6 +336,8 @@ export declare interface DetailsPanelContextType extends DetailsPanelContextProp
|
|
|
307
336
|
setEntities: (entities: Entities | null) => void;
|
|
308
337
|
feedAnnotations: SavedAnnotationMetadata[];
|
|
309
338
|
setFeedAnnotations: (annotations: SavedAnnotationMetadata[]) => void;
|
|
339
|
+
feedFrameLinks: FeedFrameLink[];
|
|
340
|
+
setFeedFrameLinks: (links: FeedFrameLink[]) => void;
|
|
310
341
|
onPowerFeature: (feature: PowerpackFeature) => void;
|
|
311
342
|
}
|
|
312
343
|
|
|
@@ -389,6 +420,8 @@ declare type EntityNaming_2 = {
|
|
|
389
420
|
|
|
390
421
|
declare type EntityType = OperationModel['entityType'];
|
|
391
422
|
|
|
423
|
+
export declare const EntityUpdatesContext: Context<EntityUpdatesContextValue | undefined>;
|
|
424
|
+
|
|
392
425
|
export declare type EntityUpdatesContextValue = {
|
|
393
426
|
updates: RTEntityUpdate[];
|
|
394
427
|
projectNames: string[];
|
|
@@ -450,6 +483,15 @@ declare type EnumItem_6 = {
|
|
|
450
483
|
|
|
451
484
|
export declare type FeedFilter = QueryFilter;
|
|
452
485
|
|
|
486
|
+
export declare type FeedFrameLink = CommentFrameLink & {
|
|
487
|
+
activityId: string;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export declare type FeedFrameLinkPreview = {
|
|
491
|
+
activityId: string;
|
|
492
|
+
link: CommentFrameLink | null;
|
|
493
|
+
};
|
|
494
|
+
|
|
453
495
|
declare type FolderListItem = {
|
|
454
496
|
id: string;
|
|
455
497
|
path: string;
|
|
@@ -548,6 +590,17 @@ declare type GenericViewPostModel = {
|
|
|
548
590
|
viewType: string;
|
|
549
591
|
};
|
|
550
592
|
|
|
593
|
+
export declare const getActivityFrameLink: (activity: {
|
|
594
|
+
activityData?: {
|
|
595
|
+
startFrame?: unknown;
|
|
596
|
+
endFrame?: unknown;
|
|
597
|
+
} | null;
|
|
598
|
+
origin?: {
|
|
599
|
+
id: string;
|
|
600
|
+
} | null;
|
|
601
|
+
entityId?: string | null;
|
|
602
|
+
}) => CommentFrameLink | null;
|
|
603
|
+
|
|
551
604
|
export declare const getAutoSyncForTopic: (topic: string, autoSyncSettings: RTUpdateConfig | undefined) => boolean;
|
|
552
605
|
|
|
553
606
|
declare type GetBaseViewApiArg = {
|
|
@@ -599,7 +652,9 @@ OverviewViewModel | TaskProgressViewModel | ListsViewModel | ReviewsViewModel |
|
|
|
599
652
|
|
|
600
653
|
declare type GetYnputCloudInfoApiResponse = YnputCloudInfoModel;
|
|
601
654
|
|
|
602
|
-
declare
|
|
655
|
+
export declare const GlobalContext: Context<GlobalContextType | undefined>;
|
|
656
|
+
|
|
657
|
+
export declare type GlobalContextType = {
|
|
603
658
|
siteInfo: GetSiteInfoResult | undefined;
|
|
604
659
|
attributes: AttributeModel[];
|
|
605
660
|
user: GetCurrentUserApiResponse | undefined;
|
|
@@ -685,6 +740,8 @@ declare type InfoResponseModel = {
|
|
|
685
740
|
|
|
686
741
|
export declare const isDeletableEntityType: (type?: string) => type is DeletableEntityType;
|
|
687
742
|
|
|
743
|
+
export declare const isDetailsPanelTab: (tab: unknown) => tab is DetailsPanelTab;
|
|
744
|
+
|
|
688
745
|
declare type LinkType = {
|
|
689
746
|
link_type: string;
|
|
690
747
|
input_type: 'folder' | 'product' | 'version' | 'representation' | 'task' | 'workfile';
|
|
@@ -784,11 +841,15 @@ declare type ListViewsApiArg = {
|
|
|
784
841
|
projectName?: string;
|
|
785
842
|
};
|
|
786
843
|
|
|
844
|
+
export declare const matchesProject: (project: string | undefined, projectNames: string[]) => boolean;
|
|
845
|
+
|
|
846
|
+
export declare const matchesTopic: (topic: string, subscribedTopic: string) => boolean;
|
|
847
|
+
|
|
787
848
|
declare type Maybe<T> = T | null;
|
|
788
849
|
|
|
789
|
-
export declare const MenuContext:
|
|
850
|
+
export declare const MenuContext: Context<MenuContextType | undefined>;
|
|
790
851
|
|
|
791
|
-
declare interface MenuContextType {
|
|
852
|
+
export declare interface MenuContextType {
|
|
792
853
|
menuOpen: string | false;
|
|
793
854
|
setMenuOpen: (menuId: string | false) => void;
|
|
794
855
|
toggleMenuOpen: (menuId: string | false) => void;
|
|
@@ -870,6 +931,8 @@ declare type OverviewViewPostModel = {
|
|
|
870
931
|
viewType?: 'overview';
|
|
871
932
|
};
|
|
872
933
|
|
|
934
|
+
export declare const PiPContext: Context<PiPContextType | undefined>;
|
|
935
|
+
|
|
873
936
|
export declare type PiPContextType = {
|
|
874
937
|
isSupported: boolean;
|
|
875
938
|
pipWindow: Window | null;
|
|
@@ -895,6 +958,8 @@ export declare interface PiPWrapperProps {
|
|
|
895
958
|
children: default_2.ReactNode;
|
|
896
959
|
}
|
|
897
960
|
|
|
961
|
+
export declare const PowerpackContext: Context<PowerpackContextType | undefined>;
|
|
962
|
+
|
|
898
963
|
export declare type PowerpackContextType = {
|
|
899
964
|
selectedPowerPack: PowerpackFeature | null;
|
|
900
965
|
selectedAddon: AddonDialogSelection | null;
|
|
@@ -1027,6 +1092,8 @@ declare type ProjectAttribModel2_2 = {
|
|
|
1027
1092
|
description?: string;
|
|
1028
1093
|
};
|
|
1029
1094
|
|
|
1095
|
+
export declare const ProjectContext: Context<ProjectContextValue | undefined>;
|
|
1096
|
+
|
|
1030
1097
|
export declare const ProjectContextProvider: React.FC<ProjectProviderProps>;
|
|
1031
1098
|
|
|
1032
1099
|
export declare interface ProjectContextValue extends ProjectModelWithProducts {
|
|
@@ -1052,6 +1119,8 @@ export declare interface ProjectContextValue extends ProjectModelWithProducts {
|
|
|
1052
1119
|
}[];
|
|
1053
1120
|
}
|
|
1054
1121
|
|
|
1122
|
+
export declare const ProjectFoldersContext: Context<ProjectFoldersContextValue | undefined>;
|
|
1123
|
+
|
|
1055
1124
|
export declare const ProjectFoldersContextProvider: React.FC<ProjectFoldersProviderProps>;
|
|
1056
1125
|
|
|
1057
1126
|
export declare interface ProjectFoldersContextValue {
|
|
@@ -1227,7 +1296,9 @@ export declare interface RemoteAddonProps {
|
|
|
1227
1296
|
toast: any;
|
|
1228
1297
|
}
|
|
1229
1298
|
|
|
1230
|
-
declare
|
|
1299
|
+
export declare const RemoteModulesContext: Context<RemoteModulesContextType>;
|
|
1300
|
+
|
|
1301
|
+
export declare type RemoteModulesContextType = {
|
|
1231
1302
|
isLoading: boolean;
|
|
1232
1303
|
modules: FrontendModuleListItem[];
|
|
1233
1304
|
remotesInitialized: boolean;
|
|
@@ -1418,7 +1489,9 @@ export declare type SettingField = 'columns' | string;
|
|
|
1418
1489
|
|
|
1419
1490
|
export declare type SettingHighlightedId = string | null;
|
|
1420
1491
|
|
|
1421
|
-
declare
|
|
1492
|
+
export declare const SettingsPanelContext: Context<SettingsPanelContextType | undefined>;
|
|
1493
|
+
|
|
1494
|
+
export declare interface SettingsPanelContextType {
|
|
1422
1495
|
isPanelOpen: boolean;
|
|
1423
1496
|
selectedSetting: SettingField | null;
|
|
1424
1497
|
highlightedSetting: SettingHighlightedId;
|
|
@@ -1466,6 +1539,8 @@ export declare type SlideOut = {
|
|
|
1466
1539
|
projectName: string;
|
|
1467
1540
|
};
|
|
1468
1541
|
|
|
1542
|
+
export declare const SocketContext: Context<WebsocketContextType | undefined>;
|
|
1543
|
+
|
|
1469
1544
|
export declare const SocketProvider: ({ children, userName, projectName, dispatch, }: SocketProviderProps) => JSX_2.Element;
|
|
1470
1545
|
|
|
1471
1546
|
export declare type SocketProviderProps = {
|
|
@@ -1567,6 +1642,8 @@ declare interface SubtasksManagerProps extends Omit<React.HTMLAttributes<HTMLDiv
|
|
|
1567
1642
|
dispatch?: ThunkDispatch<any, any, UnknownAction>;
|
|
1568
1643
|
}
|
|
1569
1644
|
|
|
1645
|
+
export declare const SubtasksModulesContext: Context<SubtasksModulesContextType | undefined>;
|
|
1646
|
+
|
|
1570
1647
|
export declare interface SubtasksModulesContextType {
|
|
1571
1648
|
SubtasksManager: typeof SubtasksManagerFallback;
|
|
1572
1649
|
requiredVersion: string | undefined;
|
|
@@ -1577,6 +1654,8 @@ export declare const SubtasksModulesProvider: FC<{
|
|
|
1577
1654
|
children: ReactNode;
|
|
1578
1655
|
}>;
|
|
1579
1656
|
|
|
1657
|
+
export declare const TABS_BY_SCOPE_KEY = "details/tabs-by-scope";
|
|
1658
|
+
|
|
1580
1659
|
export declare interface TabStateByScope {
|
|
1581
1660
|
[scope: string]: DetailsPanelTab;
|
|
1582
1661
|
}
|
|
@@ -1702,6 +1781,8 @@ export declare type ThumbnailUploadProviderProps = {
|
|
|
1702
1781
|
|
|
1703
1782
|
declare type ToastFunc = typeof toast;
|
|
1704
1783
|
|
|
1784
|
+
export declare const toggleSyncAll: (on: boolean) => RTUpdateConfig;
|
|
1785
|
+
|
|
1705
1786
|
export declare type TopicUpdateType = 'created' | 'label_changed' | 'renamed' | 'type_changed' | 'status_changed' | 'tags_changed' | 'attrib_changed' | 'deleted';
|
|
1706
1787
|
|
|
1707
1788
|
declare type UpdateEntitiesArgs = {
|
|
@@ -1740,7 +1821,9 @@ declare type UpdateViewApiArg = {
|
|
|
1740
1821
|
|
|
1741
1822
|
declare type UpdateViewSettingsFn = (updatedSettings: any, localStateSetter: (value: any) => void, newLocalValue: any, options: UpdateOptions) => Promise<void>;
|
|
1742
1823
|
|
|
1743
|
-
declare
|
|
1824
|
+
export declare const URIContext: Context<URIContextValue | undefined>;
|
|
1825
|
+
|
|
1826
|
+
export declare interface URIContextValue {
|
|
1744
1827
|
uri: string;
|
|
1745
1828
|
uriType: 'settings' | 'entity' | undefined;
|
|
1746
1829
|
entity?: EntityUri;
|
|
@@ -1904,13 +1987,13 @@ declare type UseSyncUpdatesParams = {
|
|
|
1904
1987
|
shouldSyncOnUpdate?: (update: RTEntityUpdate) => boolean;
|
|
1905
1988
|
};
|
|
1906
1989
|
|
|
1907
|
-
export declare const useThumbnailUploadContext: () =>
|
|
1990
|
+
export declare const useThumbnailUploadContext: () => {
|
|
1908
1991
|
resetFileUploadState?: Function;
|
|
1909
1992
|
triggerThumbnailUpload?: () => void;
|
|
1910
1993
|
triggerVersionUpload?: () => void;
|
|
1911
1994
|
canUploadVersion?: boolean;
|
|
1912
1995
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1913
|
-
}
|
|
1996
|
+
};
|
|
1914
1997
|
|
|
1915
1998
|
declare const useUpdateSubtasksMutation: <R extends Record<string, any> = ({
|
|
1916
1999
|
requestId?: undefined;
|
|
@@ -2396,9 +2479,18 @@ declare type YnputCloudSubscriptionModel = {
|
|
|
2396
2479
|
export { }
|
|
2397
2480
|
|
|
2398
2481
|
|
|
2399
|
-
declare
|
|
2400
|
-
interface
|
|
2401
|
-
|
|
2482
|
+
declare module '@tanstack/react-table' {
|
|
2483
|
+
interface FilterFns {
|
|
2484
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
2485
|
+
}
|
|
2486
|
+
interface FilterMeta {
|
|
2487
|
+
itemRank: RankingInfo;
|
|
2488
|
+
}
|
|
2489
|
+
interface TableMeta<TData extends RowData> {
|
|
2490
|
+
isExpandable?: boolean;
|
|
2491
|
+
isLoading?: boolean;
|
|
2492
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
2493
|
+
[key: string]: any;
|
|
2402
2494
|
}
|
|
2403
2495
|
}
|
|
2404
2496
|
|
|
@@ -2417,18 +2509,9 @@ declare module '@tanstack/react-table' {
|
|
|
2417
2509
|
}
|
|
2418
2510
|
|
|
2419
2511
|
|
|
2420
|
-
declare
|
|
2421
|
-
interface
|
|
2422
|
-
|
|
2423
|
-
}
|
|
2424
|
-
interface FilterMeta {
|
|
2425
|
-
itemRank: RankingInfo;
|
|
2426
|
-
}
|
|
2427
|
-
interface TableMeta<TData extends RowData> {
|
|
2428
|
-
isExpandable?: boolean;
|
|
2429
|
-
isLoading?: boolean;
|
|
2430
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
2431
|
-
[key: string]: any;
|
|
2512
|
+
declare global {
|
|
2513
|
+
interface Window {
|
|
2514
|
+
senderId: string;
|
|
2432
2515
|
}
|
|
2433
2516
|
}
|
|
2434
2517
|
|
package/dist/types/hooks.d.ts
CHANGED
|
@@ -610,9 +610,18 @@ export declare const writeSessionStorage: <T>(key: string, value: T) => void;
|
|
|
610
610
|
export { }
|
|
611
611
|
|
|
612
612
|
|
|
613
|
-
declare
|
|
614
|
-
interface
|
|
615
|
-
|
|
613
|
+
declare module '@tanstack/react-table' {
|
|
614
|
+
interface FilterFns {
|
|
615
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
616
|
+
}
|
|
617
|
+
interface FilterMeta {
|
|
618
|
+
itemRank: RankingInfo;
|
|
619
|
+
}
|
|
620
|
+
interface TableMeta<TData extends RowData> {
|
|
621
|
+
isExpandable?: boolean;
|
|
622
|
+
isLoading?: boolean;
|
|
623
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
624
|
+
[key: string]: any;
|
|
616
625
|
}
|
|
617
626
|
}
|
|
618
627
|
|
|
@@ -631,18 +640,9 @@ declare module '@tanstack/react-table' {
|
|
|
631
640
|
}
|
|
632
641
|
|
|
633
642
|
|
|
634
|
-
declare
|
|
635
|
-
interface
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
interface FilterMeta {
|
|
639
|
-
itemRank: RankingInfo;
|
|
640
|
-
}
|
|
641
|
-
interface TableMeta<TData extends RowData> {
|
|
642
|
-
isExpandable?: boolean;
|
|
643
|
-
isLoading?: boolean;
|
|
644
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
645
|
-
[key: string]: any;
|
|
643
|
+
declare global {
|
|
644
|
+
interface Window {
|
|
645
|
+
senderId: string;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -62,9 +62,18 @@ declare interface UserImageProps {
|
|
|
62
62
|
export { }
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
declare
|
|
66
|
-
interface
|
|
67
|
-
|
|
65
|
+
declare module '@tanstack/react-table' {
|
|
66
|
+
interface FilterFns {
|
|
67
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
68
|
+
}
|
|
69
|
+
interface FilterMeta {
|
|
70
|
+
itemRank: RankingInfo;
|
|
71
|
+
}
|
|
72
|
+
interface TableMeta<TData extends RowData> {
|
|
73
|
+
isExpandable?: boolean;
|
|
74
|
+
isLoading?: boolean;
|
|
75
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
76
|
+
[key: string]: any;
|
|
68
77
|
}
|
|
69
78
|
}
|
|
70
79
|
|
|
@@ -83,18 +92,9 @@ declare module '@tanstack/react-table' {
|
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
|
|
86
|
-
declare
|
|
87
|
-
interface
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
interface FilterMeta {
|
|
91
|
-
itemRank: RankingInfo;
|
|
92
|
-
}
|
|
93
|
-
interface TableMeta<TData extends RowData> {
|
|
94
|
-
isExpandable?: boolean;
|
|
95
|
-
isLoading?: boolean;
|
|
96
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
97
|
-
[key: string]: any;
|
|
95
|
+
declare global {
|
|
96
|
+
interface Window {
|
|
97
|
+
senderId: string;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
package/dist/types/util.d.ts
CHANGED
|
@@ -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;
|
|
@@ -942,9 +947,18 @@ export declare const waitForRealtimeJitter: () => Promise<void>;
|
|
|
942
947
|
export { }
|
|
943
948
|
|
|
944
949
|
|
|
945
|
-
declare
|
|
946
|
-
interface
|
|
947
|
-
|
|
950
|
+
declare module '@tanstack/react-table' {
|
|
951
|
+
interface FilterFns {
|
|
952
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
953
|
+
}
|
|
954
|
+
interface FilterMeta {
|
|
955
|
+
itemRank: RankingInfo;
|
|
956
|
+
}
|
|
957
|
+
interface TableMeta<TData extends RowData> {
|
|
958
|
+
isExpandable?: boolean;
|
|
959
|
+
isLoading?: boolean;
|
|
960
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
961
|
+
[key: string]: any;
|
|
948
962
|
}
|
|
949
963
|
}
|
|
950
964
|
|
|
@@ -963,18 +977,9 @@ declare module '@tanstack/react-table' {
|
|
|
963
977
|
}
|
|
964
978
|
|
|
965
979
|
|
|
966
|
-
declare
|
|
967
|
-
interface
|
|
968
|
-
|
|
969
|
-
}
|
|
970
|
-
interface FilterMeta {
|
|
971
|
-
itemRank: RankingInfo;
|
|
972
|
-
}
|
|
973
|
-
interface TableMeta<TData extends RowData> {
|
|
974
|
-
isExpandable?: boolean;
|
|
975
|
-
isLoading?: boolean;
|
|
976
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
977
|
-
[key: string]: any;
|
|
980
|
+
declare global {
|
|
981
|
+
interface Window {
|
|
982
|
+
senderId: string;
|
|
978
983
|
}
|
|
979
984
|
}
|
|
980
985
|
|