@arpproject/recrate 0.1.34 → 0.1.36
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/crate-builder/CrateManager/profile-manager.d.ts +1 -1
- package/dist/crate-builder/RenderEntity/CoreEntityFields.d.ts +26 -0
- package/dist/crate-builder/RenderEntity/DialogEditContext.d.ts +4 -0
- package/dist/crate-builder/RenderEntity/EntityEditorLayout.d.ts +23 -0
- package/dist/crate-builder/RenderEntity/EntityEditorToolbar.d.ts +23 -0
- package/dist/crate-builder/RenderEntity/EntityPropertyField.d.ts +33 -0
- package/dist/crate-builder/RenderEntity/EntityPropertyFields.d.ts +20 -0
- package/dist/crate-builder/RenderEntity/PaginateLinkedEntities.d.ts +1 -0
- package/dist/crate-builder/RenderEntity/ProfileTabRail.d.ts +23 -0
- package/dist/crate-builder/RenderEntity/approval-utils.d.ts +13 -0
- package/dist/crate-builder/RenderEntity/profile-tabs.lib.d.ts +14 -0
- package/dist/crate-builder/RenderEntity/profile-tabs.lib.spec.d.ts +1 -0
- package/dist/crate-builder/RenderEntity/useEntityMutationHandlers.d.ts +51 -0
- package/dist/crate-builder/RenderEntity/useEntityMutationHandlers.spec.d.ts +1 -0
- package/dist/crate-builder/RenderEntity/useEntityNavigationState.d.ts +25 -0
- package/dist/crate-builder/RenderEntity/useEntityScrollRestoration.d.ts +33 -0
- package/dist/crate-builder/RenderEntity/useScrollViewportHeight.d.ts +13 -0
- package/dist/crate-builder/RenderEntity/useTabRailScrollState.d.ts +18 -0
- package/dist/crate-builder/Shell.d.ts +3 -3
- package/dist/crate-builder/editor-state.d.ts +3 -0
- package/dist/crate-builder/editor-state.spec.d.ts +1 -0
- package/dist/crate-builder/locales/en.d.ts +12 -0
- package/dist/crate-builder/locales/hu.d.ts +12 -0
- package/dist/index.d.ts +4 -4
- package/dist/recrate.css +1 -1
- package/dist/recrate.es.js +55355 -54430
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AiEditedFieldBadgeVariant } from './AiEditedFieldBadge';
|
|
3
|
+
interface CoreEntityFieldsProps {
|
|
4
|
+
entity: any;
|
|
5
|
+
layout: 'untabbed' | 'tabbed';
|
|
6
|
+
showFieldHelp: boolean;
|
|
7
|
+
savedProperty?: string;
|
|
8
|
+
selectedAiApprovalProperty?: string;
|
|
9
|
+
missingRequiredData?: boolean;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
untabbedNameSavedClassName?: string;
|
|
12
|
+
shouldRenderCoreField: (property: string, label?: string) => boolean;
|
|
13
|
+
fieldWasAiEdited: (property: string) => boolean;
|
|
14
|
+
fieldAiEditedVariant: (property: string) => AiEditedFieldBadgeVariant;
|
|
15
|
+
getCoreAiReviewProps: (property: string) => any;
|
|
16
|
+
onUpdateCoreProperty: (data: {
|
|
17
|
+
property: string;
|
|
18
|
+
value: any;
|
|
19
|
+
}) => void;
|
|
20
|
+
onToggleHighlightRequiredProperties: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const FloatingRequiredPropertiesWarning: React.FC<{
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
}>;
|
|
25
|
+
declare const CoreEntityFields: React.FC<CoreEntityFieldsProps>;
|
|
26
|
+
export default CoreEntityFields;
|
|
@@ -3,6 +3,10 @@ interface DialogEditContextProps {
|
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
onUpdateContext: (context: any) => void;
|
|
5
5
|
open: boolean;
|
|
6
|
+
approvalRecord?: any;
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
onAcceptAiContext?: () => void;
|
|
9
|
+
onRejectAiContext?: () => void;
|
|
6
10
|
}
|
|
7
11
|
declare const DialogEditContext: React.FC<DialogEditContextProps>;
|
|
8
12
|
export default DialogEditContext;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EntityEditorLayoutProps {
|
|
3
|
+
renderTabs: boolean;
|
|
4
|
+
tabLocation?: string;
|
|
5
|
+
iconView: boolean;
|
|
6
|
+
tabPaneWidth: number;
|
|
7
|
+
scrollViewportHeight: number;
|
|
8
|
+
editorScrollClassName: string;
|
|
9
|
+
contentContainerRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
activeContentRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
topTabItems: any[];
|
|
12
|
+
profileActionRail: React.ReactNode;
|
|
13
|
+
profileTabRail: React.ReactNode;
|
|
14
|
+
quickSettingsHeader: React.ReactNode;
|
|
15
|
+
untabbedContent: React.ReactNode;
|
|
16
|
+
untabbedTopContent: React.ReactNode;
|
|
17
|
+
tabbedRequiredWarning: React.ReactNode;
|
|
18
|
+
tabbedAboutContent: React.ReactNode;
|
|
19
|
+
tabbedOtherTabsContent: React.ReactNode;
|
|
20
|
+
onTabPaneWidthChange: (width: number) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const EntityEditorLayout: React.FC<EntityEditorLayoutProps>;
|
|
23
|
+
export default EntityEditorLayout;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EntityEditorToolbarProps {
|
|
3
|
+
entity: any;
|
|
4
|
+
quickSettingsVisible: boolean;
|
|
5
|
+
reverseSidebarVisible: boolean;
|
|
6
|
+
enableReverseLinkBrowser?: boolean;
|
|
7
|
+
onLoadEntity: (params: {
|
|
8
|
+
id: string;
|
|
9
|
+
updateState?: boolean;
|
|
10
|
+
}) => void;
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
onForward: () => void;
|
|
13
|
+
onAddPropertyPlaceholder: (property: any) => void;
|
|
14
|
+
onDeleteEntity: (data: {
|
|
15
|
+
id: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
onSaveEntityTemplate: (data: any) => void;
|
|
18
|
+
onUpdateContext: (data: any) => void;
|
|
19
|
+
onToggleQuickSettings: () => void;
|
|
20
|
+
onToggleReverseSidebar: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const EntityEditorToolbar: React.FC<EntityEditorToolbarProps>;
|
|
23
|
+
export default EntityEditorToolbar;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AiEditedFieldBadgeVariant } from './AiEditedFieldBadge';
|
|
3
|
+
export declare const CORE_ENTITY_PROPERTIES: string[];
|
|
4
|
+
export declare const isCoreEntityProperty: (property: string) => boolean;
|
|
5
|
+
interface EntityPropertyFieldHandlers {
|
|
6
|
+
onLoadEntity: (data: any) => void;
|
|
7
|
+
onCreateEntity: (data: any) => any;
|
|
8
|
+
onLinkEntity: (data: any) => void;
|
|
9
|
+
onUnlinkEntity: (data: any) => void;
|
|
10
|
+
onCreateProperty: (data: any) => void;
|
|
11
|
+
onSaveProperty: (data: any) => void;
|
|
12
|
+
onDeleteProperty: (data: any) => void;
|
|
13
|
+
onAcceptAiEntityDelete: (deletedEntity: any) => void;
|
|
14
|
+
onRestoreAiDeletedEntity: (deletedEntity: any) => void;
|
|
15
|
+
onAcceptAiEntityEdit: (editedEntity: any) => void;
|
|
16
|
+
onRejectAiEntityEdit: (editedEntity: any) => void;
|
|
17
|
+
onAcceptAiEntityUnlink: (data: any) => void;
|
|
18
|
+
onRejectAiEntityUnlink: (data: any) => void;
|
|
19
|
+
}
|
|
20
|
+
interface EntityPropertyFieldProps extends EntityPropertyFieldHandlers {
|
|
21
|
+
entity: any;
|
|
22
|
+
property: string;
|
|
23
|
+
layout: 'untabbed' | 'tabbed';
|
|
24
|
+
showFieldHelp: boolean;
|
|
25
|
+
highlightRequiredProperties: boolean;
|
|
26
|
+
savedProperty?: string;
|
|
27
|
+
selectedAiApprovalProperty?: string;
|
|
28
|
+
aiEdited: boolean;
|
|
29
|
+
aiEditedVariant: AiEditedFieldBadgeVariant;
|
|
30
|
+
}
|
|
31
|
+
declare const EntityPropertyField: React.FC<EntityPropertyFieldProps>;
|
|
32
|
+
export default EntityPropertyField;
|
|
33
|
+
export type { EntityPropertyFieldHandlers };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AiEditedFieldBadgeVariant } from './AiEditedFieldBadge';
|
|
3
|
+
import { EntityPropertyFieldHandlers } from './EntityPropertyField';
|
|
4
|
+
interface EntityPropertyFieldsProps extends EntityPropertyFieldHandlers {
|
|
5
|
+
entity: any;
|
|
6
|
+
fields: Array<string | {
|
|
7
|
+
name: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
}>;
|
|
10
|
+
layout: 'untabbed' | 'tabbed';
|
|
11
|
+
showFieldHelp: boolean;
|
|
12
|
+
highlightRequiredProperties: boolean;
|
|
13
|
+
savedProperty?: string;
|
|
14
|
+
selectedAiApprovalProperty?: string;
|
|
15
|
+
shouldRenderField: (property: string, label?: string) => boolean;
|
|
16
|
+
fieldWasAiEdited: (property: string) => boolean;
|
|
17
|
+
fieldAiEditedVariant: (property: string) => AiEditedFieldBadgeVariant;
|
|
18
|
+
}
|
|
19
|
+
declare const EntityPropertyFields: React.FC<EntityPropertyFieldsProps>;
|
|
20
|
+
export default EntityPropertyFields;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ProfileTabRailProps {
|
|
3
|
+
tabs?: any[];
|
|
4
|
+
activeTab?: string;
|
|
5
|
+
iconView: boolean;
|
|
6
|
+
showAddPanel: boolean;
|
|
7
|
+
actionsOnly?: boolean;
|
|
8
|
+
hoveredTabKey?: string | null;
|
|
9
|
+
tabRailListRef?: React.RefObject<HTMLDivElement>;
|
|
10
|
+
tabRailScrollState?: {
|
|
11
|
+
canScrollUp: boolean;
|
|
12
|
+
canScrollDown: boolean;
|
|
13
|
+
};
|
|
14
|
+
onToggleIconView: () => void;
|
|
15
|
+
onAddNewProfile: () => void;
|
|
16
|
+
onSelectTab?: (tabName: string) => void;
|
|
17
|
+
onRemoveProfile?: (tab: any) => void;
|
|
18
|
+
onHoveredTabKeyChange?: (tabKey: string | null) => void;
|
|
19
|
+
onScrollTabRail?: (direction: 'up' | 'down') => void;
|
|
20
|
+
onUpdateTabRailScrollState?: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const ProfileTabRail: React.FC<ProfileTabRailProps>;
|
|
23
|
+
export default ProfileTabRail;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const approvalIsApproved: (approvalRecord: any) => boolean;
|
|
2
|
+
export declare const CONTEXT_APPROVAL_PROPERTY_NAME = "@context";
|
|
2
3
|
export declare const getApprovalEntities: (approvalData: any) => any[];
|
|
3
4
|
export declare const getEntityIdAliases: (id: string | undefined) => string[];
|
|
4
5
|
export declare const entityIdsMatch: (left: string | undefined, right: string | undefined) => boolean;
|
|
@@ -6,6 +7,7 @@ export declare const isPendingEntityDeleteApproval: (entityApproval: any) => boo
|
|
|
6
7
|
export declare const getDeletedEntityFromApproval: (entityApproval: any) => any | undefined;
|
|
7
8
|
export declare const getPendingDeletedEntityFromApproval: (approvalData: any, entityId: string | undefined) => any | undefined;
|
|
8
9
|
export declare const getPendingDeletedEntitiesForReverseProperty: (approvalData: any, sourceEntityId: string | undefined, property: string) => any[];
|
|
10
|
+
export declare const getPendingDeletedEntitiesForRemovedReferences: (approvalData: any, sourceEntityId: string | undefined, property: string, currentValue: any) => any[];
|
|
9
11
|
export declare const getDeletedEntityReviewTarget: (entityApproval: any) => {
|
|
10
12
|
entityId: string;
|
|
11
13
|
property: string;
|
|
@@ -13,14 +15,25 @@ export declare const getDeletedEntityReviewTarget: (entityApproval: any) => {
|
|
|
13
15
|
export declare const getPendingDeletedEntityReversePropertiesForSource: (approvalData: any, sourceEntityId: string | undefined) => string[];
|
|
14
16
|
export declare const getEntityApproval: (approvalData: any, entityId: string | undefined) => any | undefined;
|
|
15
17
|
export declare const getEntityApprovalRecords: (approvalData: any, entityId: string | undefined, property: string) => any[];
|
|
18
|
+
export declare const getPendingEntityContextApprovalRecords: (approvalData: any, entityId: string | undefined) => any[];
|
|
19
|
+
export declare const getPendingContextApprovalRecords: (approvalData: any) => Array<{
|
|
20
|
+
entityId: string;
|
|
21
|
+
approvalRecord: any;
|
|
22
|
+
}>;
|
|
16
23
|
export declare const getReferenceId: (value: any) => string | undefined;
|
|
17
24
|
export declare const getReferenceValues: (value: any) => any[];
|
|
18
25
|
export declare const getRemovedReferenceValues: (previousValue: any, currentValue: any) => any[];
|
|
26
|
+
export declare const getAddedReferenceValues: (previousValue: any, currentValue: any) => any[];
|
|
19
27
|
export declare const getPendingUnlinkedReferenceApprovals: (approvalData: any, sourceEntityId: string | undefined, property: string, currentValue: any) => Array<{
|
|
20
28
|
approvalRecord: any;
|
|
21
29
|
reference: any;
|
|
22
30
|
targetEntityId: string;
|
|
23
31
|
}>;
|
|
32
|
+
export declare const getPendingAddedReferenceApprovals: (approvalData: any, sourceEntityId: string | undefined, property: string, currentValue: any) => Array<{
|
|
33
|
+
approvalRecord: any;
|
|
34
|
+
reference: any;
|
|
35
|
+
targetEntityId: string;
|
|
36
|
+
}>;
|
|
24
37
|
export declare const getPendingEntityApprovalRecords: (approvalData: any, entityId: string | undefined) => any[];
|
|
25
38
|
export declare const getPendingEntityApprovalFieldCount: (approvalData: any, entityId: string | undefined) => number;
|
|
26
39
|
export declare const getPendingApprovalEntities: (approvalData: any) => any[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const DEFAULT_TAB_PANE_WIDTH = 240;
|
|
2
|
+
export declare const ICON_TAB_PANE_WIDTH = 80;
|
|
3
|
+
export declare const MIN_LABEL_TAB_PANE_WIDTH = 100;
|
|
4
|
+
export declare const MAX_LABEL_TAB_PANE_WIDTH = 250;
|
|
5
|
+
export declare const getProfileTabKey: (tab: any) => string;
|
|
6
|
+
export declare const isProfileTab: (tab: any) => boolean;
|
|
7
|
+
export declare const findAddedProfileTab: (tabs: any[], previousTabKeys: Set<string>) => any;
|
|
8
|
+
export declare const isAboutTab: (tab: any) => boolean;
|
|
9
|
+
export declare const tabContainsProperty: (tab: any, property: string) => boolean;
|
|
10
|
+
export declare const findTabForProperty: (tabs: any[], property: string) => any;
|
|
11
|
+
export declare const clampLabelTabPaneWidth: (width: number) => number;
|
|
12
|
+
export declare const readPendingAddedProfileTabKeys: (entityId: string) => string[] | null;
|
|
13
|
+
export declare const writePendingAddedProfileTabKeys: (entityId: string, tabKeys: string[]) => void;
|
|
14
|
+
export declare const clearPendingAddedProfileTabKeys: (entityId: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
interface UseEntityMutationHandlersOptions {
|
|
2
|
+
entity: any;
|
|
3
|
+
contextEntity: any;
|
|
4
|
+
crateManager: any;
|
|
5
|
+
approvalContext: any;
|
|
6
|
+
state: any;
|
|
7
|
+
onLoadEntityWithContext: (params: {
|
|
8
|
+
id: string;
|
|
9
|
+
updateState?: boolean;
|
|
10
|
+
}) => void;
|
|
11
|
+
refresh: () => void;
|
|
12
|
+
saveCratePreservingView: () => void;
|
|
13
|
+
notifySave: (property: string) => void;
|
|
14
|
+
onWarning: () => void;
|
|
15
|
+
onError: () => void;
|
|
16
|
+
}
|
|
17
|
+
declare const useEntityMutationHandlers: ({ entity, contextEntity, crateManager, approvalContext, state, onLoadEntityWithContext, refresh, saveCratePreservingView, notifySave, onWarning, onError, }: UseEntityMutationHandlersOptions) => {
|
|
18
|
+
handleAcceptAiEntityUnlink: (data: {
|
|
19
|
+
sourceEntityId: string;
|
|
20
|
+
property: string;
|
|
21
|
+
targetEntityId: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
handleCreateEntity: (data: any) => any;
|
|
24
|
+
handleCreateProperty: (data: {
|
|
25
|
+
property: string;
|
|
26
|
+
value: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
handleDeleteEntity: (data: {
|
|
29
|
+
id: string;
|
|
30
|
+
}) => void;
|
|
31
|
+
handleDeleteProperty: (data: {
|
|
32
|
+
property: string;
|
|
33
|
+
idx: number;
|
|
34
|
+
}) => void;
|
|
35
|
+
handleLinkEntity: (data: any) => void;
|
|
36
|
+
handleRejectAiEntityUnlink: (data: {
|
|
37
|
+
sourceEntityId: string;
|
|
38
|
+
property: string;
|
|
39
|
+
targetEntityId: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
handleUnlinkEntity: (data: {
|
|
42
|
+
property: string;
|
|
43
|
+
tgtEntityId: string;
|
|
44
|
+
}) => void;
|
|
45
|
+
handleUpdateContext: (context: any) => void;
|
|
46
|
+
handleUpdateEntity: (data: {
|
|
47
|
+
property: string;
|
|
48
|
+
value: any;
|
|
49
|
+
}) => void;
|
|
50
|
+
};
|
|
51
|
+
export default useEntityMutationHandlers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
interface UseEntityNavigationStateOptions {
|
|
3
|
+
activeTab: string;
|
|
4
|
+
activeContentRef: RefObject<HTMLDivElement>;
|
|
5
|
+
contextEntity: any;
|
|
6
|
+
state: any;
|
|
7
|
+
restoreInProgressRef: MutableRefObject<boolean>;
|
|
8
|
+
showAddPanel: boolean;
|
|
9
|
+
reverseSidebarVisible: boolean;
|
|
10
|
+
highlightRequiredProperties: boolean;
|
|
11
|
+
iconView: boolean;
|
|
12
|
+
tabPaneWidth: number;
|
|
13
|
+
onSaveCrate: () => void;
|
|
14
|
+
debugScroll?: (...args: any[]) => void;
|
|
15
|
+
}
|
|
16
|
+
interface CaptureViewContextOptions {
|
|
17
|
+
updateActiveTab?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const useEntityNavigationState: ({ activeTab, activeContentRef, contextEntity, state, restoreInProgressRef, showAddPanel, reverseSidebarVisible, highlightRequiredProperties, iconView, tabPaneWidth, onSaveCrate, debugScroll, }: UseEntityNavigationStateOptions) => {
|
|
20
|
+
captureCurrentViewContext: (tabName?: string) => void;
|
|
21
|
+
captureViewContext: (tabName?: string, explicitScrollTop?: number, options?: CaptureViewContextOptions) => void;
|
|
22
|
+
saveCratePreservingView: () => void;
|
|
23
|
+
saveTabToState: (tabName: string) => void;
|
|
24
|
+
};
|
|
25
|
+
export default useEntityNavigationState;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Dispatch, MutableRefObject, RefObject, SetStateAction } from 'react';
|
|
2
|
+
export interface PendingAddedProperty {
|
|
3
|
+
entityId: string;
|
|
4
|
+
property: string;
|
|
5
|
+
tabName?: string;
|
|
6
|
+
}
|
|
7
|
+
interface UseEntityScrollRestorationOptions {
|
|
8
|
+
activeTab: string;
|
|
9
|
+
activeContentRef: RefObject<HTMLDivElement>;
|
|
10
|
+
contextEntity: any;
|
|
11
|
+
renderTabs: boolean;
|
|
12
|
+
tabsLength: number;
|
|
13
|
+
extraPropertiesLength: number;
|
|
14
|
+
scrollRestoreNonce: number;
|
|
15
|
+
setScrollRestoreNonce: Dispatch<SetStateAction<number>>;
|
|
16
|
+
navigationRestoreReadyRef: MutableRefObject<boolean>;
|
|
17
|
+
pendingRestoredTabRef: MutableRefObject<string | null>;
|
|
18
|
+
restoreInProgressRef: MutableRefObject<boolean>;
|
|
19
|
+
pendingAddedPropertyRef: MutableRefObject<PendingAddedProperty | null>;
|
|
20
|
+
showAddPanel: boolean;
|
|
21
|
+
reverseSidebarVisible: boolean;
|
|
22
|
+
highlightRequiredProperties: boolean;
|
|
23
|
+
iconView: boolean;
|
|
24
|
+
tabPaneWidth: number;
|
|
25
|
+
state: any;
|
|
26
|
+
isAiScrollRestoreSuppressed: () => boolean;
|
|
27
|
+
captureViewContext: (tabName?: string, explicitScrollTop?: number, options?: {
|
|
28
|
+
updateActiveTab?: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
debugScroll?: (...args: any[]) => void;
|
|
31
|
+
}
|
|
32
|
+
declare const useEntityScrollRestoration: ({ activeTab, activeContentRef, contextEntity, renderTabs, tabsLength, extraPropertiesLength, scrollRestoreNonce, setScrollRestoreNonce, navigationRestoreReadyRef, pendingRestoredTabRef, restoreInProgressRef, pendingAddedPropertyRef, showAddPanel, reverseSidebarVisible, highlightRequiredProperties, iconView, tabPaneWidth, state, isAiScrollRestoreSuppressed, captureViewContext, debugScroll, }: UseEntityScrollRestorationOptions) => void;
|
|
33
|
+
export default useEntityScrollRestoration;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface UseScrollViewportHeightOptions {
|
|
2
|
+
activeTab: string;
|
|
3
|
+
renderTabs: boolean;
|
|
4
|
+
tabsLength: number;
|
|
5
|
+
entityId?: string;
|
|
6
|
+
reverseSidebarVisible: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const useScrollViewportHeight: ({ activeTab, renderTabs, tabsLength, entityId, reverseSidebarVisible, }: UseScrollViewportHeightOptions) => {
|
|
9
|
+
activeContentRef: import('react').RefObject<HTMLDivElement>;
|
|
10
|
+
contentContainerRef: import('react').RefObject<HTMLDivElement>;
|
|
11
|
+
scrollViewportHeight: number;
|
|
12
|
+
};
|
|
13
|
+
export default useScrollViewportHeight;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface UseTabRailScrollStateOptions {
|
|
2
|
+
activeTab: string;
|
|
3
|
+
iconView: boolean;
|
|
4
|
+
renderTabs: boolean;
|
|
5
|
+
scrollViewportHeight: number;
|
|
6
|
+
tabPaneWidth: number;
|
|
7
|
+
tabsLength: number;
|
|
8
|
+
}
|
|
9
|
+
declare const useTabRailScrollState: ({ activeTab, iconView, renderTabs, scrollViewportHeight, tabPaneWidth, tabsLength, }: UseTabRailScrollStateOptions) => {
|
|
10
|
+
scrollTabRail: (direction: "up" | "down") => void;
|
|
11
|
+
tabRailListRef: import('react').RefObject<HTMLDivElement>;
|
|
12
|
+
tabRailScrollState: {
|
|
13
|
+
canScrollUp: boolean;
|
|
14
|
+
canScrollDown: boolean;
|
|
15
|
+
};
|
|
16
|
+
updateTabRailScrollState: () => void;
|
|
17
|
+
};
|
|
18
|
+
export default useTabRailScrollState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, JSX } from 'react';
|
|
2
2
|
import { CrateManagerType, ProfileManagerType } from './types';
|
|
3
3
|
type RoCrateApprovalDecision = "accept" | "reject" | "manual-edit";
|
|
4
|
-
export interface
|
|
4
|
+
export interface RecrateCrateBuilderProps {
|
|
5
5
|
crate?: CrateManagerType["crate"];
|
|
6
6
|
roCrateApproval?: any;
|
|
7
7
|
profile?: ProfileManagerType["profile"];
|
|
@@ -55,5 +55,5 @@ export declare const ProfileManagerContext: React.Context<any>;
|
|
|
55
55
|
export declare const CrateManagerContext: React.Context<any>;
|
|
56
56
|
export declare const RoCrateApprovalContext: React.Context<any>;
|
|
57
57
|
export declare const LookupsContext: React.Context<any>;
|
|
58
|
-
export declare function
|
|
59
|
-
export default
|
|
58
|
+
export declare function RecrateCrateBuilder(props: RecrateCrateBuilderProps): JSX.Element;
|
|
59
|
+
export default RecrateCrateBuilder;
|
|
@@ -35,6 +35,9 @@ export declare class EditorState {
|
|
|
35
35
|
private normaliseScopeKey;
|
|
36
36
|
private hydrate;
|
|
37
37
|
private persist;
|
|
38
|
+
private cloneNavigationState;
|
|
39
|
+
private mergeNavigationState;
|
|
40
|
+
private latestEntryForId;
|
|
38
41
|
clearPersistedState(): void;
|
|
39
42
|
dispose(options?: {
|
|
40
43
|
clearPersistedState?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,6 +20,18 @@ declare namespace en {
|
|
|
20
20
|
let browse_entities: string;
|
|
21
21
|
let filter_attribute_set: string;
|
|
22
22
|
let save_label: string;
|
|
23
|
+
let ai_context_review_title: string;
|
|
24
|
+
let ai_context_review_description: string;
|
|
25
|
+
let ai_context_diff_aria: string;
|
|
26
|
+
let ai_context_diff_title: string;
|
|
27
|
+
let ai_previous_context: string;
|
|
28
|
+
let ai_current_context: string;
|
|
29
|
+
let ai_context_diff_omitted_lines_one: string;
|
|
30
|
+
let ai_context_diff_omitted_lines_other: string;
|
|
31
|
+
let ai_context_diff_show_omitted_lines_one: string;
|
|
32
|
+
let ai_context_diff_show_omitted_lines_other: string;
|
|
33
|
+
let ai_context_diff_hide_omitted_lines_one: string;
|
|
34
|
+
let ai_context_diff_hide_omitted_lines_other: string;
|
|
23
35
|
let preview_loading: string;
|
|
24
36
|
let search_for_connection: string;
|
|
25
37
|
let filter_by_type: string;
|
|
@@ -20,6 +20,18 @@ declare namespace hu {
|
|
|
20
20
|
let browse_entities: string;
|
|
21
21
|
let filter_attribute_set: string;
|
|
22
22
|
let save_label: string;
|
|
23
|
+
let ai_context_review_title: string;
|
|
24
|
+
let ai_context_review_description: string;
|
|
25
|
+
let ai_context_diff_aria: string;
|
|
26
|
+
let ai_context_diff_title: string;
|
|
27
|
+
let ai_previous_context: string;
|
|
28
|
+
let ai_current_context: string;
|
|
29
|
+
let ai_context_diff_omitted_lines_one: string;
|
|
30
|
+
let ai_context_diff_omitted_lines_other: string;
|
|
31
|
+
let ai_context_diff_show_omitted_lines_one: string;
|
|
32
|
+
let ai_context_diff_show_omitted_lines_other: string;
|
|
33
|
+
let ai_context_diff_hide_omitted_lines_one: string;
|
|
34
|
+
let ai_context_diff_hide_omitted_lines_other: string;
|
|
23
35
|
let preview_loading: string;
|
|
24
36
|
let search_for_connection: string;
|
|
25
37
|
let filter_by_type: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as RecrateCrateBuilder } from './crate-builder/Shell';
|
|
2
2
|
export type { JSONObject } from './types';
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
5
|
-
export default
|
|
3
|
+
export type { RecrateCrateBuilderProps } from './types';
|
|
4
|
+
export { RecrateCrateBuilder } from './crate-builder/Shell';
|
|
5
|
+
export default RecrateCrateBuilder;
|