@manifest-editor/shell 2.1.0 → 2.2.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.
- package/dist/index.cjs +174 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -10
- package/dist/index.d.cts +288 -296
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +288 -296
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +178 -158
- package/dist/index.js.map +1 -1
- package/package.json +23 -22
- package/dist/index.css.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CreatableResource, Creator, CreatorConfig, CreatorDefinition } from "@manifest-editor/creator-api";
|
|
2
|
+
import * as React$1 from "react";
|
|
2
3
|
import { CSSProperties, Dispatch, HTMLAttributes, ReactElement, ReactNode, SVGProps, SetStateAction } from "react";
|
|
3
|
-
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
|
-
import * as _manifest_editor_creator_api0 from "@manifest-editor/creator-api";
|
|
5
|
-
import { CreatableResource, Creator, CreatorDefinition } from "@manifest-editor/creator-api";
|
|
6
|
-
import * as _iiif_presentation_30 from "@iiif/presentation-3";
|
|
7
4
|
import { Collection, Reference, SpecificResource } from "@iiif/presentation-3";
|
|
8
5
|
import { Vault } from "@iiif/helpers/vault";
|
|
9
6
|
import { AtlasStore, AtlasStoreProvider, AtlasStoreReactContext, RenderingStrategy } from "react-iiif-vault";
|
|
10
7
|
import { TransitionStatus } from "react-transition-group";
|
|
11
|
-
import * as zustand0 from "zustand";
|
|
12
8
|
import { StoreApi } from "zustand";
|
|
13
|
-
import * as polygon_editor0 from "polygon-editor";
|
|
14
9
|
import { InputShape } from "polygon-editor";
|
|
15
10
|
import { Vault as Vault$1 } from "@iiif/helpers";
|
|
16
11
|
import { EditorInstance } from "@manifest-editor/editor-api";
|
|
17
12
|
import { ManifestNormalized } from "@iiif/presentation-3-normalized";
|
|
18
13
|
import { Emitter } from "mitt";
|
|
19
14
|
import { ToastContent as ToastContent$1, ToastVariant as ToastVariant$1, useLocalStorage, useOptionalLocalStorage } from "@manifest-editor/components";
|
|
20
|
-
import * as styled_components_dist_types0 from "styled-components/dist/types";
|
|
21
|
-
import * as styled_components0 from "styled-components";
|
|
22
15
|
import { ToastOptions } from "@react-stately/toast";
|
|
23
16
|
import { MessagePortClientVault, RemoteVaultAction, RemoteVaultClientMessage } from "@manifest-editor/client-vault";
|
|
24
|
-
|
|
25
17
|
//#region src/AppResourceProvider/AppResourceProvider.d.ts
|
|
26
18
|
interface Resource {
|
|
27
19
|
id: string;
|
|
@@ -29,20 +21,14 @@ interface Resource {
|
|
|
29
21
|
}
|
|
30
22
|
declare function useAppResourceInstance(): string;
|
|
31
23
|
declare function useAppResource(): Resource;
|
|
32
|
-
declare function AppResourceInstanceProvider({
|
|
33
|
-
id,
|
|
34
|
-
children
|
|
35
|
-
}: {
|
|
24
|
+
declare function AppResourceInstanceProvider({ id, children }: {
|
|
36
25
|
id?: string;
|
|
37
26
|
children: React.ReactNode;
|
|
38
|
-
}): string | number | bigint | boolean | Iterable<
|
|
39
|
-
declare function AppResourceProvider({
|
|
40
|
-
resource,
|
|
41
|
-
children
|
|
42
|
-
}: {
|
|
27
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
28
|
+
declare function AppResourceProvider({ resource, children }: {
|
|
43
29
|
resource?: Resource;
|
|
44
30
|
children: React.ReactNode;
|
|
45
|
-
}):
|
|
31
|
+
}): import("react").JSX.Element;
|
|
46
32
|
//#endregion
|
|
47
33
|
//#region src/PreviewContext/PreviewContext.types.d.ts
|
|
48
34
|
interface Preview {
|
|
@@ -70,12 +56,12 @@ interface PreviewActions {
|
|
|
70
56
|
type PreviewActionsType = { [T in keyof PreviewActions]: {
|
|
71
57
|
type: T;
|
|
72
58
|
payload: Parameters<PreviewActions[T]>[0];
|
|
73
|
-
} }[keyof PreviewActions];
|
|
74
|
-
interface PreviewConfiguration<Config
|
|
59
|
+
}; }[keyof PreviewActions];
|
|
60
|
+
interface PreviewConfiguration<Config = any> {
|
|
75
61
|
id: string;
|
|
76
62
|
type: string;
|
|
77
63
|
label: string;
|
|
78
|
-
config: Config
|
|
64
|
+
config: Config;
|
|
79
65
|
}
|
|
80
66
|
interface PreviewHandler {
|
|
81
67
|
id: string;
|
|
@@ -133,6 +119,7 @@ interface Config {
|
|
|
133
119
|
baseIdentifier: string | null;
|
|
134
120
|
version: 3 | 2;
|
|
135
121
|
};
|
|
122
|
+
creators: CreatorConfig;
|
|
136
123
|
uploadBackends: Array<UploadBackendConfig>;
|
|
137
124
|
plugins?: {
|
|
138
125
|
apps?: Record<string, {
|
|
@@ -160,19 +147,15 @@ interface UploadBackendConfig {
|
|
|
160
147
|
}
|
|
161
148
|
declare function mergePartialConfig(...configs: Array<Partial<Config> | null | undefined>): Partial<Config>;
|
|
162
149
|
declare function mergeConfig(...configs: Array<Partial<Config> | null | undefined>): Config;
|
|
163
|
-
declare const ConfigReactContext:
|
|
164
|
-
declare const SaveConfigReactContext:
|
|
150
|
+
declare const ConfigReactContext: import("react").Context<Config>;
|
|
151
|
+
declare const SaveConfigReactContext: import("react").Context<(config: Partial<Config>) => void>;
|
|
165
152
|
declare function useConfig(): Config;
|
|
166
153
|
declare function useSaveConfig(): (config: Partial<Config>) => void;
|
|
167
|
-
declare function ConfigProvider({
|
|
168
|
-
children,
|
|
169
|
-
config,
|
|
170
|
-
saveConfig
|
|
171
|
-
}: {
|
|
154
|
+
declare function ConfigProvider({ children, config, saveConfig }: {
|
|
172
155
|
children: ReactNode;
|
|
173
156
|
config?: Partial<Config>;
|
|
174
157
|
saveConfig?: (config: Partial<Config>) => void;
|
|
175
|
-
}):
|
|
158
|
+
}): import("react").JSX.Element;
|
|
176
159
|
//#endregion
|
|
177
160
|
//#region src/EditingStack/EditingStack.types.d.ts
|
|
178
161
|
interface EditableResource {
|
|
@@ -337,7 +320,7 @@ type PanelActionType = { [T in keyof PinnablePanelActions]: {
|
|
|
337
320
|
type: T;
|
|
338
321
|
panel: keyof LayoutState;
|
|
339
322
|
payload: Parameters<PinnablePanelActions[T]>[0];
|
|
340
|
-
} }[keyof PinnablePanelActions];
|
|
323
|
+
}; }[keyof PinnablePanelActions];
|
|
341
324
|
interface PinnablePanelState extends PanelState {
|
|
342
325
|
pinnable: true;
|
|
343
326
|
pinned: boolean;
|
|
@@ -364,6 +347,7 @@ type LayoutFunction = (state: any, ctx: {
|
|
|
364
347
|
current: PanelActions;
|
|
365
348
|
vault?: Vault;
|
|
366
349
|
transition?: TransitionStatus;
|
|
350
|
+
isModal?: boolean;
|
|
367
351
|
} & LayoutContext, app: AppState) => ReactNode;
|
|
368
352
|
interface AnnotationPanel {
|
|
369
353
|
id: string;
|
|
@@ -382,6 +366,7 @@ interface LayoutPanel {
|
|
|
382
366
|
separator?: boolean;
|
|
383
367
|
icon?: null | string | ReactNode;
|
|
384
368
|
supports?: (ctx: LayoutPanelSupportContext) => boolean;
|
|
369
|
+
modal?: boolean;
|
|
385
370
|
focusedMode?: {
|
|
386
371
|
hide?: boolean;
|
|
387
372
|
closeOnMainPanelClick?: boolean;
|
|
@@ -430,9 +415,9 @@ interface LayoutPanelFocusedModeContext {
|
|
|
430
415
|
actions: LayoutActions;
|
|
431
416
|
}
|
|
432
417
|
type MenuPositions = "left" | "right" | "bottom" | "top";
|
|
433
|
-
interface PinnedLayoutPanel<T
|
|
418
|
+
interface PinnedLayoutPanel<T = any> extends LayoutPanel {
|
|
434
419
|
pinned: true;
|
|
435
|
-
state: T
|
|
420
|
+
state: T;
|
|
436
421
|
}
|
|
437
422
|
interface CanvasEditorDefinition {
|
|
438
423
|
id: string;
|
|
@@ -535,15 +520,11 @@ declare function useCanvasProgressActions(resource: CanvasProgressResource): {
|
|
|
535
520
|
clearStatus(): CanvasProgressStatus;
|
|
536
521
|
getStatus(): CanvasProgressStatus;
|
|
537
522
|
};
|
|
538
|
-
declare function ManifestEditorCanvasProgressOverlay({
|
|
539
|
-
resource,
|
|
540
|
-
status,
|
|
541
|
-
className
|
|
542
|
-
}: {
|
|
523
|
+
declare function ManifestEditorCanvasProgressOverlay({ resource, status, className }: {
|
|
543
524
|
resource?: CanvasProgressResource;
|
|
544
525
|
status?: CanvasProgressStatus;
|
|
545
526
|
className?: string;
|
|
546
|
-
}):
|
|
527
|
+
}): import("react").JSX.Element;
|
|
547
528
|
//#endregion
|
|
548
529
|
//#region src/PluginContext/PluginContext.types.d.ts
|
|
549
530
|
type PluginMetadata = {
|
|
@@ -606,20 +587,20 @@ type PluginSettingsField = {
|
|
|
606
587
|
placeholder?: string;
|
|
607
588
|
options?: PluginSettingsFieldOption[];
|
|
608
589
|
};
|
|
609
|
-
type PluginSettingsRenderContext<T
|
|
590
|
+
type PluginSettingsRenderContext<T extends PluginSettingsValue = PluginSettingsValue> = {
|
|
610
591
|
plugin: MappedPlugin;
|
|
611
592
|
appId: string;
|
|
612
593
|
scope: PluginConfigScope;
|
|
613
|
-
value: T
|
|
614
|
-
defaults: T
|
|
615
|
-
effective: T
|
|
616
|
-
onChange: (value: T
|
|
594
|
+
value: T;
|
|
595
|
+
defaults: T;
|
|
596
|
+
effective: T;
|
|
597
|
+
onChange: (value: T) => void;
|
|
617
598
|
};
|
|
618
|
-
type PluginSettingsDefinition<T
|
|
619
|
-
defaults?: T
|
|
599
|
+
type PluginSettingsDefinition<T extends PluginSettingsValue = PluginSettingsValue> = {
|
|
600
|
+
defaults?: T;
|
|
620
601
|
fields?: PluginSettingsField[];
|
|
621
|
-
validate?: (settings: T
|
|
622
|
-
render?: (context: PluginSettingsRenderContext<T
|
|
602
|
+
validate?: (settings: T) => string | null | undefined | void;
|
|
603
|
+
render?: (context: PluginSettingsRenderContext<T>) => ReactNode;
|
|
623
604
|
};
|
|
624
605
|
type PluginConfigScope = "workspace" | "global";
|
|
625
606
|
type PluginAppConfig = {
|
|
@@ -654,7 +635,7 @@ type PluginStore = PluginStoreSnapshot & {
|
|
|
654
635
|
};
|
|
655
636
|
type PluginHostApp = Pick<MappedApp, "metadata" | "layout">;
|
|
656
637
|
type PluginRuntimeApi = {
|
|
657
|
-
getSettings<T
|
|
638
|
+
getSettings<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string): T;
|
|
658
639
|
};
|
|
659
640
|
//#endregion
|
|
660
641
|
//#region src/Tags.d.ts
|
|
@@ -718,34 +699,21 @@ declare function useResourceTagActions(resource: ManifestEditorTagResource): {
|
|
|
718
699
|
toggleTag(tag: ManifestEditorTag): ManifestEditorTag[];
|
|
719
700
|
hasTag(tagType: string, tagId?: string): boolean;
|
|
720
701
|
};
|
|
721
|
-
declare function ManifestEditorTagIcon({
|
|
722
|
-
icon,
|
|
723
|
-
title,
|
|
724
|
-
...props
|
|
725
|
-
}: SVGProps<SVGSVGElement> & {
|
|
702
|
+
declare function ManifestEditorTagIcon({ icon, title, ...props }: SVGProps<SVGSVGElement> & {
|
|
726
703
|
icon?: string;
|
|
727
704
|
title?: string;
|
|
728
|
-
}):
|
|
729
|
-
declare function ManifestEditorTagBadge({
|
|
730
|
-
tag,
|
|
731
|
-
showIcon,
|
|
732
|
-
className,
|
|
733
|
-
style
|
|
734
|
-
}: {
|
|
705
|
+
}): import("react").JSX.Element | null;
|
|
706
|
+
declare function ManifestEditorTagBadge({ tag, showIcon, className, style }: {
|
|
735
707
|
tag: ManifestEditorTag;
|
|
736
708
|
showIcon?: boolean;
|
|
737
709
|
className?: string;
|
|
738
710
|
style?: CSSProperties;
|
|
739
|
-
}):
|
|
740
|
-
declare function ManifestEditorTagOverlay({
|
|
741
|
-
resource,
|
|
742
|
-
tags,
|
|
743
|
-
className
|
|
744
|
-
}: {
|
|
711
|
+
}): import("react").JSX.Element;
|
|
712
|
+
declare function ManifestEditorTagOverlay({ resource, tags, className }: {
|
|
745
713
|
resource?: ManifestEditorTagResource;
|
|
746
714
|
tags?: ManifestEditorTag[];
|
|
747
715
|
className?: string;
|
|
748
|
-
}):
|
|
716
|
+
}): import("react").JSX.Element;
|
|
749
717
|
//#endregion
|
|
750
718
|
//#region src/BackgroundTasks/BackgroundTasks.types.d.ts
|
|
751
719
|
type BackgroundActionStatus = "idle" | "preparing" | "running" | "complete" | "error" | "cancelled";
|
|
@@ -954,9 +922,76 @@ type MappedApp = {
|
|
|
954
922
|
metadata: LoadedApp["default"];
|
|
955
923
|
layout: LayoutProps;
|
|
956
924
|
config?: Partial<Config>;
|
|
925
|
+
preset?: PresetDefinition;
|
|
926
|
+
};
|
|
927
|
+
type PresetTemplateConfigurationField = {
|
|
928
|
+
id: string;
|
|
929
|
+
label: string;
|
|
930
|
+
type: "text" | "textarea" | "number" | "boolean" | "select";
|
|
931
|
+
defaultValue?: string | number | boolean;
|
|
932
|
+
options?: Array<{
|
|
933
|
+
label: string;
|
|
934
|
+
value: string | number | boolean;
|
|
935
|
+
}>;
|
|
936
|
+
};
|
|
937
|
+
type PresetTemplateDefinition = {
|
|
938
|
+
id: string;
|
|
939
|
+
label: string;
|
|
940
|
+
summary: string;
|
|
941
|
+
type: "slideshow" | "fullpage" | "scroll";
|
|
942
|
+
previewUrl: string;
|
|
943
|
+
thumbnailUrl: string;
|
|
944
|
+
configuration?: PresetTemplateConfigurationField[];
|
|
945
|
+
};
|
|
946
|
+
type PresetPreviewAction = {
|
|
947
|
+
id: string;
|
|
948
|
+
label: string;
|
|
949
|
+
status?: "available" | "configured" | "active";
|
|
950
|
+
disabled?: boolean;
|
|
951
|
+
onClick: () => void;
|
|
952
|
+
};
|
|
953
|
+
type PresetPreviewOptions = {
|
|
954
|
+
mainAction?: PresetPreviewAction;
|
|
955
|
+
actions?: PresetPreviewAction[];
|
|
956
|
+
};
|
|
957
|
+
type PresetOnboardingRenderContext = {
|
|
958
|
+
templates: PresetTemplateDefinition[];
|
|
959
|
+
selectedTemplateId: string | null;
|
|
960
|
+
selectedTemplate: PresetTemplateDefinition | null;
|
|
961
|
+
setSelectedTemplateId: (id: string | null) => void;
|
|
962
|
+
dismiss: () => void;
|
|
963
|
+
};
|
|
964
|
+
type PresetPreviewButtonRenderContext = {
|
|
965
|
+
downloadEnabled?: boolean;
|
|
966
|
+
fileName?: string;
|
|
967
|
+
preview?: PresetPreviewOptions;
|
|
968
|
+
showOnboardingPreviewHint?: boolean;
|
|
969
|
+
onOnboardingPreviewHintClose?: () => void;
|
|
970
|
+
};
|
|
971
|
+
type PresetOnboardingDefinition = {
|
|
972
|
+
id: string;
|
|
973
|
+
mode: "global" | "per-resource";
|
|
974
|
+
title: string;
|
|
975
|
+
summary?: string;
|
|
976
|
+
openLabel?: string;
|
|
977
|
+
dismissLabel?: string;
|
|
978
|
+
primaryLabel?: string;
|
|
979
|
+
renderBody: (ctx: PresetOnboardingRenderContext) => ReactNode;
|
|
980
|
+
renderPreviewButton?: (ctx: PresetPreviewButtonRenderContext) => ReactNode;
|
|
981
|
+
};
|
|
982
|
+
type PresetDefinition = {
|
|
983
|
+
onboarding?: PresetOnboardingDefinition;
|
|
984
|
+
templates?: PresetTemplateDefinition[];
|
|
985
|
+
/** Use `replace` with `templates: leedsTemplates` to replace an inherited list. */
|
|
986
|
+
templateStrategy?: "append" | "replace";
|
|
987
|
+
/** Applied to the complete inherited/replaced list, e.g. `(template) => template.id.startsWith("leeds-")`. */
|
|
988
|
+
templateFilter?: (template: PresetTemplateDefinition) => boolean;
|
|
989
|
+
/** Example: `preview: { mainAction: { id: "host-preview", label: "Preview", onClick: openPreview } }`. */
|
|
990
|
+
preview?: PresetPreviewOptions;
|
|
957
991
|
};
|
|
958
992
|
interface AppExtension {
|
|
959
993
|
config?: Partial<Config>;
|
|
994
|
+
preset?: PresetDefinition;
|
|
960
995
|
leftPanels?: LayoutPanel[];
|
|
961
996
|
centerPanels?: LayoutPanel[];
|
|
962
997
|
rightPanels?: LayoutPanel[];
|
|
@@ -974,9 +1009,9 @@ type AppState = {
|
|
|
974
1009
|
state: null | any;
|
|
975
1010
|
setState: SetStateAction<any>;
|
|
976
1011
|
};
|
|
977
|
-
declare const PrimeAppReactContext:
|
|
978
|
-
declare const AppReactContext:
|
|
979
|
-
declare const AppStateReactContext:
|
|
1012
|
+
declare const PrimeAppReactContext: import("react").Context<MappedApp | null>;
|
|
1013
|
+
declare const AppReactContext: import("react").Context<AppContext | null>;
|
|
1014
|
+
declare const AppStateReactContext: import("react").Context<{
|
|
980
1015
|
state: null | any;
|
|
981
1016
|
setState: SetStateAction<any>;
|
|
982
1017
|
}>;
|
|
@@ -986,21 +1021,21 @@ declare function useAppState<S = any>(): {
|
|
|
986
1021
|
state: null | any;
|
|
987
1022
|
setState: SetStateAction<any>;
|
|
988
1023
|
};
|
|
989
|
-
declare function
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
}: {
|
|
1024
|
+
declare function getSelectedPresetTemplate(templates: PresetTemplateDefinition[], selectedTemplateId?: string | null): PresetTemplateDefinition | null;
|
|
1025
|
+
declare function usePresetTemplateSelection(): {
|
|
1026
|
+
templates: PresetTemplateDefinition[];
|
|
1027
|
+
selectedTemplateId: any;
|
|
1028
|
+
selectedTemplate: PresetTemplateDefinition | null;
|
|
1029
|
+
setSelectedTemplateId: (presetTemplateId: string | null) => any;
|
|
1030
|
+
};
|
|
1031
|
+
declare function AppProvider({ instanceId, appId, args, definition, children, initialState }: {
|
|
997
1032
|
initialState?: any;
|
|
998
1033
|
instanceId: string;
|
|
999
1034
|
appId: string;
|
|
1000
1035
|
args?: any;
|
|
1001
1036
|
definition: MappedApp;
|
|
1002
1037
|
children: ReactNode;
|
|
1003
|
-
}):
|
|
1038
|
+
}): import("react").JSX.Element;
|
|
1004
1039
|
//#endregion
|
|
1005
1040
|
//#region src/AppContext/MultiAppContext.d.ts
|
|
1006
1041
|
type MappedApp$1 = any;
|
|
@@ -1021,14 +1056,7 @@ type MultiAppContext = {
|
|
|
1021
1056
|
changeProjectType: (type: "Manifest" | "Collection") => void;
|
|
1022
1057
|
};
|
|
1023
1058
|
declare function useApps(): MultiAppContext;
|
|
1024
|
-
declare function MultiAppProvider({
|
|
1025
|
-
apps,
|
|
1026
|
-
initialApp,
|
|
1027
|
-
saveCurrentApp,
|
|
1028
|
-
instanceId,
|
|
1029
|
-
children,
|
|
1030
|
-
config
|
|
1031
|
-
}: {
|
|
1059
|
+
declare function MultiAppProvider({ apps, initialApp, saveCurrentApp, instanceId, children, config }: {
|
|
1032
1060
|
apps: Record<string, MappedApp$1>;
|
|
1033
1061
|
initialApp?: MultiAppContext["currentApp"];
|
|
1034
1062
|
saveCurrentApp?: boolean;
|
|
@@ -1039,38 +1067,35 @@ declare function MultiAppProvider({
|
|
|
1039
1067
|
manifestApp?: string;
|
|
1040
1068
|
collectionApp?: string;
|
|
1041
1069
|
};
|
|
1042
|
-
}):
|
|
1070
|
+
}): import("react").JSX.Element | null;
|
|
1043
1071
|
//#endregion
|
|
1044
1072
|
//#region src/AppHeader/AppHeader.d.ts
|
|
1045
1073
|
interface AppHeaderProps {
|
|
1046
1074
|
onClickLogo?: () => void;
|
|
1047
1075
|
}
|
|
1048
|
-
declare const AppHeader:
|
|
1076
|
+
declare const AppHeader: import("react").MemoExoticComponent<(props: AppHeaderProps) => import("react").JSX.Element>;
|
|
1049
1077
|
//#endregion
|
|
1050
1078
|
//#region src/AppMenu/AppMenuContext.d.ts
|
|
1051
|
-
type MenuItem = {
|
|
1079
|
+
type MenuItem$1 = {
|
|
1052
1080
|
label: string;
|
|
1053
1081
|
onClick?: () => void;
|
|
1054
1082
|
active?: boolean;
|
|
1055
1083
|
};
|
|
1056
1084
|
interface AppMenuContext {
|
|
1057
1085
|
file: {
|
|
1058
|
-
new: MenuItem;
|
|
1059
|
-
edit: MenuItem;
|
|
1060
|
-
open: MenuItem;
|
|
1061
|
-
newOptions: MenuItem[];
|
|
1062
|
-
openOptions: MenuItem[];
|
|
1086
|
+
new: MenuItem$1;
|
|
1087
|
+
edit: MenuItem$1;
|
|
1088
|
+
open: MenuItem$1;
|
|
1089
|
+
newOptions: MenuItem$1[];
|
|
1090
|
+
openOptions: MenuItem$1[];
|
|
1063
1091
|
};
|
|
1064
1092
|
}
|
|
1065
1093
|
declare function useAppMenu(): AppMenuContext | null;
|
|
1066
1094
|
declare function useAppMenuItem<Key extends keyof AppMenuContext, Name extends keyof AppMenuContext[Key], Return extends AppMenuContext[Key][Name]>(menu: Key, name: Name): Return | null;
|
|
1067
|
-
declare function AppMenuProvider({
|
|
1068
|
-
children,
|
|
1069
|
-
menu
|
|
1070
|
-
}: {
|
|
1095
|
+
declare function AppMenuProvider({ children, menu }: {
|
|
1071
1096
|
children: React.ReactNode;
|
|
1072
1097
|
menu: AppMenuContext;
|
|
1073
|
-
}):
|
|
1098
|
+
}): import("react").JSX.Element;
|
|
1074
1099
|
//#endregion
|
|
1075
1100
|
//#region src/AtlasStore/AtlasStoreProvider.d.ts
|
|
1076
1101
|
declare function useAtlasStore(): StoreApi<AtlasStore>;
|
|
@@ -1095,9 +1120,9 @@ declare function getImageDimensions(url: string): Promise<{
|
|
|
1095
1120
|
//#endregion
|
|
1096
1121
|
//#region src/BackgroundTasks/BackgroundActions.d.ts
|
|
1097
1122
|
declare function useAvailableBackgroundActions(): BackgroundActionGroup[];
|
|
1098
|
-
declare function BackgroundActionsMount():
|
|
1123
|
+
declare function BackgroundActionsMount(): import("react").JSX.Element;
|
|
1099
1124
|
declare function BackgroundActionToasts(): null;
|
|
1100
|
-
declare function BackgroundActionsMenu():
|
|
1125
|
+
declare function BackgroundActionsMenu(): import("react").JSX.Element | null;
|
|
1101
1126
|
//#endregion
|
|
1102
1127
|
//#region src/BackgroundTasks/BackgroundTasksStore.d.ts
|
|
1103
1128
|
interface BackgroundActionsStore {
|
|
@@ -1146,28 +1171,18 @@ declare function getBackgroundActionInstanceKey(actionId: string, target: Backgr
|
|
|
1146
1171
|
declare function mergeBackgroundActionDefinitions(base?: BackgroundActionDefinition[], extensions?: BackgroundActionDefinition[]): BackgroundActionDefinition[];
|
|
1147
1172
|
declare function sortBackgroundActionDefinitions(definitions: BackgroundActionDefinition[]): BackgroundActionDefinition[];
|
|
1148
1173
|
declare function normaliseBackgroundActionError(error: unknown): BackgroundActionError;
|
|
1149
|
-
declare function getAvailableBackgroundActionGroups({
|
|
1150
|
-
definitions,
|
|
1151
|
-
instances,
|
|
1152
|
-
systemContext,
|
|
1153
|
-
targets,
|
|
1154
|
-
onSupportsError
|
|
1155
|
-
}: GetAvailableBackgroundActionGroupsOptions): BackgroundActionGroup[];
|
|
1174
|
+
declare function getAvailableBackgroundActionGroups({ definitions, instances, systemContext, targets, onSupportsError }: GetAvailableBackgroundActionGroupsOptions): BackgroundActionGroup[];
|
|
1156
1175
|
declare function createBackgroundActionsStore(initialDefinitions?: BackgroundActionDefinition[]): StoreApi<BackgroundActionsStore>;
|
|
1157
1176
|
declare function runBackgroundAction(options: RunBackgroundActionOptions): Promise<BackgroundActionInstance | undefined>;
|
|
1158
1177
|
declare function createLocalForageBackgroundActionPersistence(): BackgroundActionPersistence | null;
|
|
1159
|
-
declare const BackgroundActionsReactContext:
|
|
1160
|
-
declare function BackgroundActionsProvider({
|
|
1161
|
-
children,
|
|
1162
|
-
persistence,
|
|
1163
|
-
persistenceKey
|
|
1164
|
-
}: {
|
|
1178
|
+
declare const BackgroundActionsReactContext: import("react").Context<StoreApi<BackgroundActionsStore> | null>;
|
|
1179
|
+
declare function BackgroundActionsProvider({ children, persistence, persistenceKey }: {
|
|
1165
1180
|
children: ReactNode;
|
|
1166
1181
|
persistence?: BackgroundActionPersistence | false | null;
|
|
1167
1182
|
persistenceKey?: BackgroundActionPersistenceKey;
|
|
1168
|
-
}):
|
|
1183
|
+
}): import("react").FunctionComponentElement<import("react").ProviderProps<StoreApi<BackgroundActionsStore> | null>>;
|
|
1169
1184
|
declare function useBackgroundActionsStoreApi(): StoreApi<BackgroundActionsStore>;
|
|
1170
|
-
declare function useBackgroundActionsStore<T
|
|
1185
|
+
declare function useBackgroundActionsStore<T = BackgroundActionsStore>(selector?: (state: BackgroundActionsStore) => T): T;
|
|
1171
1186
|
declare function useBackgroundActionInstance(instanceKey: string): BackgroundActionInstance | undefined;
|
|
1172
1187
|
declare function useBackgroundActionHistory(instanceKey: string): BackgroundActionInstance[];
|
|
1173
1188
|
//#endregion
|
|
@@ -1179,7 +1194,7 @@ interface BaseAnnotationCreatorProps {
|
|
|
1179
1194
|
resource: CreatableResource;
|
|
1180
1195
|
onCreate: () => void;
|
|
1181
1196
|
}
|
|
1182
|
-
declare function BaseAnnotationCreator(props: BaseAnnotationCreatorProps):
|
|
1197
|
+
declare function BaseAnnotationCreator(props: BaseAnnotationCreatorProps): import("react").JSX.Element;
|
|
1183
1198
|
//#endregion
|
|
1184
1199
|
//#region src/BaseCreator/BaseCreator.hooks.d.ts
|
|
1185
1200
|
declare function useCreator(parent: any, property: string, type: string, target?: Reference, options?: {
|
|
@@ -1197,37 +1212,32 @@ declare function useCreator(parent: any, property: string, type: string, target?
|
|
|
1197
1212
|
declare function useInlineCreator(): Creator;
|
|
1198
1213
|
//#endregion
|
|
1199
1214
|
//#region src/BaseCreator/CreatorInitialData.d.ts
|
|
1200
|
-
declare function useInitialData<T
|
|
1201
|
-
declare function CreatorInitialData<T
|
|
1215
|
+
declare function useInitialData<T = unknown>(id: string): T | {};
|
|
1216
|
+
declare function CreatorInitialData<T extends Record<string, unknown>>(props: {
|
|
1202
1217
|
id: string;
|
|
1203
1218
|
children: React.ReactNode;
|
|
1204
|
-
data: T
|
|
1205
|
-
}):
|
|
1219
|
+
data: T;
|
|
1220
|
+
}): import("react").JSX.Element;
|
|
1206
1221
|
//#endregion
|
|
1207
1222
|
//#region src/BaseEditor/index.d.ts
|
|
1208
1223
|
declare const baseEditor: LayoutPanel;
|
|
1209
1224
|
//#endregion
|
|
1210
1225
|
//#region src/BaseEditor/BaseEditor.d.ts
|
|
1211
|
-
declare function BaseEditorBackButton({
|
|
1212
|
-
|
|
1213
|
-
backAction
|
|
1214
|
-
}: any): any;
|
|
1215
|
-
declare function BaseEditorCloseButton({
|
|
1216
|
-
closeAction,
|
|
1217
|
-
fallback
|
|
1218
|
-
}: any): any;
|
|
1226
|
+
declare function BaseEditorBackButton({ fallback, backAction }: any): any;
|
|
1227
|
+
declare function BaseEditorCloseButton({ closeAction, fallback }: any): any;
|
|
1219
1228
|
declare function editBasedOnResource(resource: EditableResource, list: ResourceDefinition[], options: {
|
|
1220
1229
|
edit?: boolean;
|
|
1221
1230
|
vault: Vault$1;
|
|
1222
1231
|
}, config: EditorConfig): ResourceDefinition | null;
|
|
1223
|
-
declare function BaseEditor({
|
|
1224
|
-
currentTab
|
|
1225
|
-
}: {
|
|
1232
|
+
declare function BaseEditor({ currentTab }: {
|
|
1226
1233
|
currentTab?: string;
|
|
1227
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
1234
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
1228
1235
|
//#endregion
|
|
1229
1236
|
//#region src/ConfigContext/ConfigEditor.d.ts
|
|
1230
|
-
declare function ConfigEditor():
|
|
1237
|
+
declare function ConfigEditor(): import("react").JSX.Element;
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region src/ConfigContext/CreatorSettings.d.ts
|
|
1240
|
+
declare function CreatorSettings(): import("react").JSX.Element;
|
|
1231
1241
|
//#endregion
|
|
1232
1242
|
//#region src/ContextMenu/ContextMenuContext.d.ts
|
|
1233
1243
|
type ContextMenuItem = {
|
|
@@ -1276,12 +1286,10 @@ type ContextMenuStore = {
|
|
|
1276
1286
|
}>;
|
|
1277
1287
|
hookMenuItem(req: ContextMenuRequest): () => void;
|
|
1278
1288
|
};
|
|
1279
|
-
declare const ContextMenuReactContext:
|
|
1280
|
-
declare function ContextMenuProvider({
|
|
1281
|
-
children
|
|
1282
|
-
}: {
|
|
1289
|
+
declare const ContextMenuReactContext: import("react").Context<StoreApi<ContextMenuStore> | null>;
|
|
1290
|
+
declare function ContextMenuProvider({ children }: {
|
|
1283
1291
|
children: React.ReactNode;
|
|
1284
|
-
}):
|
|
1292
|
+
}): import("react").JSX.Element;
|
|
1285
1293
|
declare function useResourceContextMenuItems(req: {
|
|
1286
1294
|
id?: string;
|
|
1287
1295
|
type: string;
|
|
@@ -1292,24 +1300,24 @@ declare function useResourceContextMenuItems(req: {
|
|
|
1292
1300
|
declare function useCustomContextMenu(req: ContextMenuRequest, deps?: any[]): void;
|
|
1293
1301
|
//#endregion
|
|
1294
1302
|
//#region src/EditingStack/EditingStack.d.ts
|
|
1295
|
-
declare const EditingStackContext:
|
|
1303
|
+
declare const EditingStackContext: import("react").Context<EditingStackState>;
|
|
1296
1304
|
declare function useEditingStack(): EditingStackActions;
|
|
1297
1305
|
declare function useEditingResource(): EditableResource | null;
|
|
1298
1306
|
declare function useEditingResourceStack(): EditableResource[];
|
|
1299
1307
|
declare function useCreatingResource(): {
|
|
1300
|
-
resource:
|
|
1308
|
+
resource: import("@manifest-editor/creator-api").CreatableResource;
|
|
1301
1309
|
options: any;
|
|
1302
1310
|
} | null;
|
|
1303
|
-
declare function useManifestEditor(): EditorInstance<Partial<
|
|
1304
|
-
declare function useCollectionEditor(): EditorInstance<Partial<
|
|
1311
|
+
declare function useManifestEditor(): EditorInstance<Partial<import("@iiif/presentation-3").DescriptiveProperties> & Partial<import("@iiif/presentation-3").TechnicalProperties> & Partial<import("@iiif/presentation-3").LinkingProperties> & Partial<import("@iiif/presentation-3").StructuralProperties<unknown>> & Partial<import("@iiif/presentation-3").NavPlaceExtension & import("@iiif/presentation-3").TextGranularityExtension>>;
|
|
1312
|
+
declare function useCollectionEditor(): EditorInstance<Partial<import("@iiif/presentation-3").DescriptiveProperties> & Partial<import("@iiif/presentation-3").TechnicalProperties> & Partial<import("@iiif/presentation-3").LinkingProperties> & Partial<import("@iiif/presentation-3").StructuralProperties<unknown>> & Partial<import("@iiif/presentation-3").NavPlaceExtension & import("@iiif/presentation-3").TextGranularityExtension>>;
|
|
1305
1313
|
declare function useGenericEditor(ref: Reference<any> | SpecificResource | undefined, ctx?: {
|
|
1306
1314
|
parent?: Reference;
|
|
1307
1315
|
parentProperty?: string;
|
|
1308
1316
|
index?: number;
|
|
1309
1317
|
allowNull?: boolean;
|
|
1310
|
-
}): EditorInstance<Partial<
|
|
1311
|
-
declare function useAnnotationPageEditor(): EditorInstance<Partial<
|
|
1312
|
-
declare function useEditor(): EditorInstance<Partial<
|
|
1318
|
+
}): EditorInstance<{}> | EditorInstance<Partial<import("@iiif/presentation-3").DescriptiveProperties> & Partial<import("@iiif/presentation-3").TechnicalProperties> & Partial<import("@iiif/presentation-3").LinkingProperties> & Partial<import("@iiif/presentation-3").StructuralProperties<unknown>> & Partial<import("@iiif/presentation-3").NavPlaceExtension & import("@iiif/presentation-3").TextGranularityExtension>>;
|
|
1319
|
+
declare function useAnnotationPageEditor(): EditorInstance<{}> | EditorInstance<Partial<import("@iiif/presentation-3").DescriptiveProperties> & Partial<import("@iiif/presentation-3").TechnicalProperties> & Partial<import("@iiif/presentation-3").LinkingProperties> & Partial<import("@iiif/presentation-3").StructuralProperties<unknown>> & Partial<import("@iiif/presentation-3").NavPlaceExtension & import("@iiif/presentation-3").TextGranularityExtension>>;
|
|
1320
|
+
declare function useEditor(): EditorInstance<Partial<import("@iiif/presentation-3").DescriptiveProperties> & Partial<import("@iiif/presentation-3").TechnicalProperties> & Partial<import("@iiif/presentation-3").LinkingProperties> & Partial<import("@iiif/presentation-3").StructuralProperties<unknown>> & Partial<import("@iiif/presentation-3").NavPlaceExtension & import("@iiif/presentation-3").TextGranularityExtension>>;
|
|
1313
1321
|
declare function EditingStack(props: {
|
|
1314
1322
|
children?: any;
|
|
1315
1323
|
initialState?: EditingStackState;
|
|
@@ -1317,24 +1325,21 @@ declare function EditingStack(props: {
|
|
|
1317
1325
|
id: string;
|
|
1318
1326
|
type: string;
|
|
1319
1327
|
};
|
|
1320
|
-
}):
|
|
1321
|
-
declare function InlineEditingStack({
|
|
1322
|
-
resource,
|
|
1323
|
-
children
|
|
1324
|
-
}: {
|
|
1328
|
+
}): import("react").JSX.Element;
|
|
1329
|
+
declare function InlineEditingStack({ resource, children }: {
|
|
1325
1330
|
resource: {
|
|
1326
1331
|
id: string;
|
|
1327
1332
|
type: string;
|
|
1328
1333
|
};
|
|
1329
1334
|
children?: React.ReactNode;
|
|
1330
|
-
}):
|
|
1335
|
+
}): import("react").JSX.Element;
|
|
1331
1336
|
//#endregion
|
|
1332
1337
|
//#region src/ExportPanel/ExportPanel.d.ts
|
|
1333
1338
|
interface ExportPanelProps {
|
|
1334
1339
|
initialVersion?: 2 | 3;
|
|
1335
1340
|
versions?: Array<2 | 3>;
|
|
1336
1341
|
}
|
|
1337
|
-
declare function ExportPanel(props: ExportPanelProps):
|
|
1342
|
+
declare function ExportPanel(props: ExportPanelProps): import("react").JSX.Element;
|
|
1338
1343
|
//#endregion
|
|
1339
1344
|
//#region src/helpers.d.ts
|
|
1340
1345
|
declare function getManifestNomalized(id: string): Promise<ManifestNormalized | undefined>;
|
|
@@ -1343,6 +1348,7 @@ declare function createDownload(data: any, fileName: string, fileType?: string):
|
|
|
1343
1348
|
declare function copyToClipboard(json: string | any): Promise<void>;
|
|
1344
1349
|
declare function randomId(): string;
|
|
1345
1350
|
declare function mapApp(input: any, map?: (app: MappedApp) => MappedApp): MappedApp;
|
|
1351
|
+
declare function mergePresetConfig(base: MappedApp["preset"] | undefined, override: MappedApp["preset"] | undefined): MappedApp["preset"] | undefined;
|
|
1346
1352
|
declare function extendApp(app: MappedApp, metadata: MappedApp["metadata"], extensions: AppExtension): MappedApp;
|
|
1347
1353
|
//#endregion
|
|
1348
1354
|
//#region src/highlighted-image-resources.d.ts
|
|
@@ -1360,7 +1366,7 @@ interface HighlightedImageResources {
|
|
|
1360
1366
|
highlight: (id: string) => void;
|
|
1361
1367
|
clearHighlight: (id: string) => void;
|
|
1362
1368
|
}
|
|
1363
|
-
declare const useHighlightedImageResource:
|
|
1369
|
+
declare const useHighlightedImageResource: import("zustand").UseBoundStore<import("zustand").StoreApi<HighlightedImageResources>>;
|
|
1364
1370
|
declare function useTemporaryHighlight(newValue?: Projection | null): void;
|
|
1365
1371
|
declare function useHoverHighlightImageResource(id?: string): {
|
|
1366
1372
|
onMouseEnter(): void;
|
|
@@ -1368,12 +1374,7 @@ declare function useHoverHighlightImageResource(id?: string): {
|
|
|
1368
1374
|
};
|
|
1369
1375
|
//#endregion
|
|
1370
1376
|
//#region src/hooks/use-annotation-creator-state.d.ts
|
|
1371
|
-
declare function useAnnotationCreatorState<Type = any>({
|
|
1372
|
-
key,
|
|
1373
|
-
initialValue,
|
|
1374
|
-
requestId,
|
|
1375
|
-
getInitialValue
|
|
1376
|
-
}: {
|
|
1377
|
+
declare function useAnnotationCreatorState<Type = any>({ key, initialValue, requestId, getInitialValue }: {
|
|
1377
1378
|
key: string;
|
|
1378
1379
|
initialValue?: Type;
|
|
1379
1380
|
requestId?: string;
|
|
@@ -1387,14 +1388,11 @@ declare function useDecayState(time: number): readonly [boolean, {
|
|
|
1387
1388
|
}];
|
|
1388
1389
|
//#endregion
|
|
1389
1390
|
//#region src/hooks/use-event.d.ts
|
|
1390
|
-
declare const ReactEmitterContext:
|
|
1391
|
-
declare function EventEmitterProvider({
|
|
1392
|
-
children,
|
|
1393
|
-
emitter
|
|
1394
|
-
}: {
|
|
1391
|
+
declare const ReactEmitterContext: import("react").Context<Emitter<any>>;
|
|
1392
|
+
declare function EventEmitterProvider({ children, emitter }: {
|
|
1395
1393
|
children: React.ReactNode;
|
|
1396
1394
|
emitter: Emitter<any>;
|
|
1397
|
-
}):
|
|
1395
|
+
}): import("react").JSX.Element;
|
|
1398
1396
|
declare function useEmitter<Event extends Record<string | symbol, unknown>>(): Emitter<Event>;
|
|
1399
1397
|
declare function useEvent<Event extends Record<string | symbol, unknown>, Key extends keyof Event>(key: Key, listener: (data: Event[Key]) => void, deps?: any[]): void;
|
|
1400
1398
|
//#endregion
|
|
@@ -1408,8 +1406,8 @@ declare function useSaveVault(vault: Vault$1, saveChanges: () => void, saveInter
|
|
|
1408
1406
|
//#endregion
|
|
1409
1407
|
//#region src/hooks/use-svg-tools.d.ts
|
|
1410
1408
|
declare function useSvgTools(): {
|
|
1411
|
-
currentTool:
|
|
1412
|
-
selectedStamp:
|
|
1409
|
+
currentTool: import("polygon-editor").ValidTools;
|
|
1410
|
+
selectedStamp: import("polygon-editor").InputShape | null;
|
|
1413
1411
|
draw: {
|
|
1414
1412
|
active: boolean;
|
|
1415
1413
|
enable: () => void;
|
|
@@ -1449,14 +1447,14 @@ declare function useSvgTools(): {
|
|
|
1449
1447
|
};
|
|
1450
1448
|
//#endregion
|
|
1451
1449
|
//#region src/Layout/components/HandleControls.d.ts
|
|
1452
|
-
declare const HandleContainer:
|
|
1453
|
-
declare const HandleControls:
|
|
1450
|
+
declare const HandleContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1451
|
+
declare const HandleControls: import("react").ForwardRefExoticComponent<{
|
|
1454
1452
|
dir: "left" | "right";
|
|
1455
1453
|
open: boolean;
|
|
1456
1454
|
actions: PanelActions;
|
|
1457
1455
|
transition?: TransitionStatus;
|
|
1458
1456
|
reset?: () => void;
|
|
1459
|
-
} &
|
|
1457
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1460
1458
|
//#endregion
|
|
1461
1459
|
//#region src/Layout/components/ModularPanel.d.ts
|
|
1462
1460
|
interface ModularPanelProps {
|
|
@@ -1467,34 +1465,24 @@ interface ModularPanelProps {
|
|
|
1467
1465
|
pinActions?: PinnablePanelActions;
|
|
1468
1466
|
transition?: TransitionStatus;
|
|
1469
1467
|
noHeader?: boolean;
|
|
1468
|
+
isModal?: boolean;
|
|
1470
1469
|
close?: () => void;
|
|
1471
1470
|
available?: LayoutPanel[];
|
|
1472
1471
|
style?: any;
|
|
1473
1472
|
}
|
|
1474
1473
|
declare function useSetCustomTitle(): (title: string) => void;
|
|
1475
|
-
declare const ModularPanelHeader:
|
|
1474
|
+
declare const ModularPanelHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1476
1475
|
$tabs?: boolean;
|
|
1477
1476
|
$error?: boolean;
|
|
1478
1477
|
}>>;
|
|
1479
|
-
declare const ModulePanelButton:
|
|
1480
|
-
declare function ModularPanel({
|
|
1481
|
-
panel,
|
|
1482
|
-
state,
|
|
1483
|
-
actions,
|
|
1484
|
-
isLeft,
|
|
1485
|
-
pinActions,
|
|
1486
|
-
transition,
|
|
1487
|
-
close,
|
|
1488
|
-
available,
|
|
1489
|
-
style,
|
|
1490
|
-
noHeader
|
|
1491
|
-
}: ModularPanelProps): react_jsx_runtime2.JSX.Element | null;
|
|
1478
|
+
declare const ModulePanelButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
1479
|
+
declare function ModularPanel({ panel, state, actions, isLeft, pinActions, transition, close, available, style, noHeader, isModal }: ModularPanelProps): import("react").JSX.Element | null;
|
|
1492
1480
|
//#endregion
|
|
1493
1481
|
//#region src/Layout/components/PanelError.d.ts
|
|
1494
1482
|
declare function PanelError(props: {
|
|
1495
1483
|
error: Error;
|
|
1496
1484
|
resetErrorBoundary: () => void;
|
|
1497
|
-
}):
|
|
1485
|
+
}): import("react").JSX.Element;
|
|
1498
1486
|
//#endregion
|
|
1499
1487
|
//#region src/Layout/Layout.d.ts
|
|
1500
1488
|
interface LayoutRenderProps {
|
|
@@ -1514,12 +1502,12 @@ interface LayoutRenderProps {
|
|
|
1514
1502
|
disableSideEffects?: string[];
|
|
1515
1503
|
layoutMode?: "default" | "focused";
|
|
1516
1504
|
}
|
|
1517
|
-
declare const Layout:
|
|
1505
|
+
declare const Layout: import("react").MemoExoticComponent<(props: LayoutRenderProps) => import("react").JSX.Element | null>;
|
|
1518
1506
|
//#endregion
|
|
1519
1507
|
//#region src/Layout/Layout.context.d.ts
|
|
1520
|
-
declare const LayoutActionsReactContext:
|
|
1521
|
-
declare const LayoutStateReactContext:
|
|
1522
|
-
declare const LayoutModeReactContext:
|
|
1508
|
+
declare const LayoutActionsReactContext: import("react").Context<LayoutActions>;
|
|
1509
|
+
declare const LayoutStateReactContext: import("react").Context<LayoutState>;
|
|
1510
|
+
declare const LayoutModeReactContext: import("react").Context<"default" | "focused">;
|
|
1523
1511
|
declare function useLayoutState(): LayoutState;
|
|
1524
1512
|
declare function useLayoutActions(): LayoutActions;
|
|
1525
1513
|
declare function useLayoutMode(): "default" | "focused";
|
|
@@ -1532,11 +1520,7 @@ declare function useLayoutProvider(): LayoutProviderProps & {
|
|
|
1532
1520
|
//#endregion
|
|
1533
1521
|
//#region src/Layout/Layout.helpers.d.ts
|
|
1534
1522
|
declare function isPinnableState(t: unknown): t is PinnablePanelState;
|
|
1535
|
-
declare function panelSizing({
|
|
1536
|
-
initial,
|
|
1537
|
-
fallback,
|
|
1538
|
-
options
|
|
1539
|
-
}: {
|
|
1523
|
+
declare function panelSizing({ initial, fallback, options }: {
|
|
1540
1524
|
initial?: number;
|
|
1541
1525
|
fallback: number;
|
|
1542
1526
|
options?: {
|
|
@@ -1564,25 +1548,15 @@ interface ManifestPaginationNavigationProps {
|
|
|
1564
1548
|
className?: string;
|
|
1565
1549
|
variant?: "light" | "dark";
|
|
1566
1550
|
}
|
|
1567
|
-
declare function ManifestPaginationNavigation({
|
|
1568
|
-
className,
|
|
1569
|
-
variant
|
|
1570
|
-
}: ManifestPaginationNavigationProps): react_jsx_runtime2.JSX.Element;
|
|
1551
|
+
declare function ManifestPaginationNavigation({ className, variant }: ManifestPaginationNavigationProps): import("react").JSX.Element;
|
|
1571
1552
|
//#endregion
|
|
1572
1553
|
//#region src/PluginContext/PluginContext.d.ts
|
|
1573
|
-
declare const PluginReactContext:
|
|
1574
|
-
declare const PluginGlobalConfigReactContext:
|
|
1554
|
+
declare const PluginReactContext: import("react").Context<StoreApi<PluginStore> | null>;
|
|
1555
|
+
declare const PluginGlobalConfigReactContext: import("react").Context<{
|
|
1575
1556
|
globalPluginConfig?: Config["plugins"];
|
|
1576
1557
|
saveGlobalPluginConfig?: (config: Config["plugins"]) => void | Promise<void>;
|
|
1577
1558
|
}>;
|
|
1578
|
-
declare function PluginProvider({
|
|
1579
|
-
plugins,
|
|
1580
|
-
enabled,
|
|
1581
|
-
disabled,
|
|
1582
|
-
globalPluginConfig,
|
|
1583
|
-
saveGlobalPluginConfig,
|
|
1584
|
-
children
|
|
1585
|
-
}: {
|
|
1559
|
+
declare function PluginProvider({ plugins, enabled, disabled, globalPluginConfig, saveGlobalPluginConfig, children }: {
|
|
1586
1560
|
plugins: PluginInput[];
|
|
1587
1561
|
enabled?: string[];
|
|
1588
1562
|
disabled?: string[];
|
|
@@ -1601,24 +1575,22 @@ declare function usePluginActions(): {
|
|
|
1601
1575
|
setGlobalAppConfig(appId: string, config: PluginAppConfig): void;
|
|
1602
1576
|
};
|
|
1603
1577
|
declare function usePluginRuntimeApi(appId?: string): PluginRuntimeApi;
|
|
1604
|
-
declare function usePluginSettings<T
|
|
1605
|
-
declare function usePluginConfigApi<T
|
|
1578
|
+
declare function usePluginSettings<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string, appId?: string): T;
|
|
1579
|
+
declare function usePluginConfigApi<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string, appId?: string): {
|
|
1606
1580
|
plugin: MappedPlugin | null;
|
|
1607
1581
|
appId: string;
|
|
1608
|
-
defaults: T
|
|
1609
|
-
global: T
|
|
1610
|
-
workspace: T
|
|
1611
|
-
effective: T
|
|
1582
|
+
defaults: T;
|
|
1583
|
+
global: T;
|
|
1584
|
+
workspace: T;
|
|
1585
|
+
effective: T;
|
|
1612
1586
|
canSaveGlobal: boolean;
|
|
1613
|
-
setWorkspaceSettings: (settings: T
|
|
1587
|
+
setWorkspaceSettings: (settings: T) => void;
|
|
1614
1588
|
resetWorkspaceSettings: () => void;
|
|
1615
|
-
setGlobalSettings: (settings: T
|
|
1589
|
+
setGlobalSettings: (settings: T) => Promise<void>;
|
|
1616
1590
|
resetGlobalSettings: () => Promise<void>;
|
|
1617
1591
|
};
|
|
1618
1592
|
declare function useResolvedPluginApp(definition: MappedApp, appId: string): MappedApp;
|
|
1619
|
-
declare function PluginConfigBridge({
|
|
1620
|
-
config
|
|
1621
|
-
}: {
|
|
1593
|
+
declare function PluginConfigBridge({ config }: {
|
|
1622
1594
|
config?: Partial<Config>;
|
|
1623
1595
|
}): null;
|
|
1624
1596
|
//#endregion
|
|
@@ -1644,11 +1616,11 @@ declare function getPluginCompatibilityReason(plugin: MappedPlugin, app?: Plugin
|
|
|
1644
1616
|
declare function isPluginSelected(plugin: MappedPlugin, state: PluginStoreSnapshot, appId?: string | null): boolean;
|
|
1645
1617
|
declare function getPluginSelectionSource(plugin: MappedPlugin, state: PluginStoreSnapshot, appId?: string | null): PluginConfigScope | "provider" | "default";
|
|
1646
1618
|
declare function getEnabledPluginsForApp(state: PluginStoreSnapshot, app?: PluginHostApp | null, appId?: string | null): MappedPlugin[];
|
|
1647
|
-
declare function getPluginSettingsFromConfig<T
|
|
1648
|
-
declare function setPluginSettingsInConfig<T
|
|
1619
|
+
declare function getPluginSettingsFromConfig<T extends PluginSettingsValue = PluginSettingsValue>(config: PluginAppConfig | undefined, pluginId: string): Partial<T>;
|
|
1620
|
+
declare function setPluginSettingsInConfig<T extends PluginSettingsValue = PluginSettingsValue>(config: PluginAppConfig | undefined, pluginId: string, settings: T): PluginAppConfig;
|
|
1649
1621
|
declare function resetPluginSettingsInConfig(config: PluginAppConfig | undefined, pluginId: string): PluginAppConfig;
|
|
1650
|
-
declare function getPluginDefaultSettings<T
|
|
1651
|
-
declare function getEffectivePluginSettings<T
|
|
1622
|
+
declare function getPluginDefaultSettings<T extends PluginSettingsValue = PluginSettingsValue>(plugin?: MappedPlugin): T;
|
|
1623
|
+
declare function getEffectivePluginSettings<T extends PluginSettingsValue = PluginSettingsValue>(state: PluginStoreSnapshot, pluginId: string, appId?: string | null): T;
|
|
1652
1624
|
declare function createPluginRuntimeApi(state: PluginStoreSnapshot, appId?: string | null): PluginRuntimeApi;
|
|
1653
1625
|
declare function enablePluginAndDependenciesInConfig(config: PluginAppConfig, state: PluginStoreSnapshot, plugin: MappedPlugin, app?: PluginHostApp | null, appId?: string | null): {
|
|
1654
1626
|
config: PluginAppConfig;
|
|
@@ -1658,36 +1630,67 @@ declare function enablePluginAndDependenciesInConfig(config: PluginAppConfig, st
|
|
|
1658
1630
|
declare function applyPlugins(app: MappedApp, plugins: MappedPlugin[], appId?: string): MappedApp;
|
|
1659
1631
|
//#endregion
|
|
1660
1632
|
//#region src/PluginContext/PluginContext.store.d.ts
|
|
1661
|
-
declare function createPluginStore({
|
|
1662
|
-
plugins,
|
|
1663
|
-
enabled,
|
|
1664
|
-
disabled,
|
|
1665
|
-
globalPluginConfig
|
|
1666
|
-
}?: {
|
|
1633
|
+
declare function createPluginStore({ plugins, enabled, disabled, globalPluginConfig }?: {
|
|
1667
1634
|
plugins?: MappedPlugin[];
|
|
1668
1635
|
enabled?: string[];
|
|
1669
1636
|
disabled?: string[];
|
|
1670
1637
|
globalPluginConfig?: Config["plugins"];
|
|
1671
|
-
}):
|
|
1638
|
+
}): import("zustand").StoreApi<PluginStore>;
|
|
1672
1639
|
//#endregion
|
|
1673
1640
|
//#region src/PluginContext/PluginManager.d.ts
|
|
1674
|
-
declare function PluginManager():
|
|
1641
|
+
declare function PluginManager(): import("react").JSX.Element | null;
|
|
1675
1642
|
//#endregion
|
|
1676
1643
|
//#region src/PreviewButton/PreviewButton.d.ts
|
|
1677
|
-
declare function
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1644
|
+
declare function hasPreviewOption(configCount: number, preview?: PresetPreviewOptions): boolean;
|
|
1645
|
+
declare function PreviewButton({ downloadEnabled, fileName, preview }: {
|
|
1646
|
+
downloadEnabled?: boolean;
|
|
1647
|
+
fileName?: string;
|
|
1648
|
+
preview?: PresetPreviewOptions;
|
|
1649
|
+
}): import("react").JSX.Element;
|
|
1650
|
+
//#endregion
|
|
1651
|
+
//#region src/PreviewButton/PreviewButton.styles.d.ts
|
|
1652
|
+
declare const ButtonContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1653
|
+
declare const ButtonMain: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
|
|
1654
|
+
declare const ButtonChange: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
|
|
1655
|
+
$open: boolean;
|
|
1656
|
+
}>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
|
|
1657
|
+
$open: boolean;
|
|
1658
|
+
}>> & Omit<any, keyof import("react").Component<any, {}, any>>);
|
|
1659
|
+
declare const MenuContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1660
|
+
$open: boolean;
|
|
1661
|
+
}>>;
|
|
1662
|
+
declare const MenuItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1663
|
+
declare const MenuItemStatus: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1664
|
+
$status: "available" | "configured" | "active";
|
|
1665
|
+
}>>;
|
|
1666
|
+
declare const MenuItemLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1667
|
+
declare const MenuItemClose: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1668
|
+
declare const ButtonEmpty: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1669
|
+
//#endregion
|
|
1670
|
+
//#region src/PresetOnboarding/PresetOnboarding.d.ts
|
|
1671
|
+
declare function getPresetOnboardingDismissalKey(onboarding: {
|
|
1672
|
+
id: string;
|
|
1673
|
+
mode: "global" | "per-resource";
|
|
1674
|
+
}, resource?: {
|
|
1675
|
+
id: string;
|
|
1676
|
+
type: string;
|
|
1677
|
+
}): string;
|
|
1678
|
+
declare function useOpenPresetOnboarding(): () => boolean;
|
|
1679
|
+
declare function PresetOnboardingButton({ className }: {
|
|
1680
|
+
className?: string;
|
|
1681
|
+
}): import("react").JSX.Element | null;
|
|
1682
|
+
declare function PresetPreviewButton(props: {
|
|
1681
1683
|
downloadEnabled?: boolean;
|
|
1682
1684
|
fileName?: string;
|
|
1683
|
-
}):
|
|
1685
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
1686
|
+
declare function PresetOnboarding(): import("react").JSX.Element | null;
|
|
1684
1687
|
//#endregion
|
|
1685
1688
|
//#region src/PreviewContext/PreviewContext.d.ts
|
|
1686
|
-
declare const PreviewProvider:
|
|
1689
|
+
declare const PreviewProvider: import("react").MemoExoticComponent<({ children, configs }: {
|
|
1687
1690
|
previews: Preview[];
|
|
1688
1691
|
children: ReactNode;
|
|
1689
1692
|
configs: PreviewConfiguration[];
|
|
1690
|
-
}>;
|
|
1693
|
+
}) => import("react").JSX.Element>;
|
|
1691
1694
|
declare function usePreviews(): Preview[];
|
|
1692
1695
|
declare function usePreviewContext(): PreviewContext;
|
|
1693
1696
|
//#endregion
|
|
@@ -1720,25 +1723,47 @@ declare function usePreviewHistory(): {
|
|
|
1720
1723
|
};
|
|
1721
1724
|
declare function PreviewVaultContext(props: {
|
|
1722
1725
|
children: any;
|
|
1723
|
-
}):
|
|
1724
|
-
declare function PreviewVaultBoundary({
|
|
1725
|
-
children
|
|
1726
|
-
}: {
|
|
1726
|
+
}): import("react").JSX.Element;
|
|
1727
|
+
declare function PreviewVaultBoundary({ children }: {
|
|
1727
1728
|
children: any;
|
|
1728
|
-
}):
|
|
1729
|
+
}): import("react").JSX.Element;
|
|
1730
|
+
//#endregion
|
|
1731
|
+
//#region src/PreviewWindow/PreviewWindowContext.d.ts
|
|
1732
|
+
type PreviewWindowOptions = {
|
|
1733
|
+
url: string;
|
|
1734
|
+
resource: {
|
|
1735
|
+
id: string;
|
|
1736
|
+
type: string;
|
|
1737
|
+
};
|
|
1738
|
+
canvasId?: string | null;
|
|
1739
|
+
annotationId?: string | null;
|
|
1740
|
+
name?: string;
|
|
1741
|
+
features?: string;
|
|
1742
|
+
reloadKey?: string;
|
|
1743
|
+
};
|
|
1744
|
+
type PreviewWindowContextValue = {
|
|
1745
|
+
open: (options: PreviewWindowOptions) => void;
|
|
1746
|
+
update: (options: PreviewWindowOptions) => void;
|
|
1747
|
+
focus: () => void;
|
|
1748
|
+
isClosed: boolean;
|
|
1749
|
+
};
|
|
1750
|
+
declare function PreviewWindowProvider({ children }: {
|
|
1751
|
+
children: ReactNode;
|
|
1752
|
+
}): import("react").JSX.Element;
|
|
1753
|
+
declare function usePreviewWindow(): PreviewWindowContextValue;
|
|
1729
1754
|
//#endregion
|
|
1730
1755
|
//#region src/ResourceEditingContext/ResourceEditingContext.d.ts
|
|
1731
1756
|
interface ResourceEditingContext {
|
|
1732
1757
|
resource: Reference<any> | null;
|
|
1733
1758
|
}
|
|
1734
|
-
declare const ResourceEditingReactContext:
|
|
1759
|
+
declare const ResourceEditingReactContext: import("react").Context<ResourceEditingContext>;
|
|
1735
1760
|
declare function useEditingContext(): ResourceEditingContext;
|
|
1736
1761
|
/**
|
|
1737
1762
|
* useResource
|
|
1738
1763
|
*
|
|
1739
1764
|
* Only use this if you KNOW that there is a resource (e.g. in a panel)
|
|
1740
1765
|
*/
|
|
1741
|
-
declare function useResource<T
|
|
1766
|
+
declare function useResource<T = Record<string, never>>(): T & Reference<any>;
|
|
1742
1767
|
/**
|
|
1743
1768
|
* useOptionalResource
|
|
1744
1769
|
*
|
|
@@ -1748,28 +1773,16 @@ declare function useOptionalResource(): {
|
|
|
1748
1773
|
type: any;
|
|
1749
1774
|
id: string;
|
|
1750
1775
|
} | null;
|
|
1751
|
-
declare function ResourceEditingProvider({
|
|
1752
|
-
resource,
|
|
1753
|
-
children
|
|
1754
|
-
}: {
|
|
1776
|
+
declare function ResourceEditingProvider({ resource, children }: {
|
|
1755
1777
|
resource: {
|
|
1756
1778
|
id: string;
|
|
1757
1779
|
type: string;
|
|
1758
1780
|
} | null | undefined;
|
|
1759
1781
|
children: ReactNode;
|
|
1760
|
-
}):
|
|
1782
|
+
}): import("react").JSX.Element;
|
|
1761
1783
|
//#endregion
|
|
1762
1784
|
//#region src/ShellContext/ShellContext.d.ts
|
|
1763
|
-
declare function ShellProvider({
|
|
1764
|
-
config,
|
|
1765
|
-
saveConfig,
|
|
1766
|
-
children,
|
|
1767
|
-
theme,
|
|
1768
|
-
previews,
|
|
1769
|
-
resource,
|
|
1770
|
-
editing,
|
|
1771
|
-
backgroundActionPersistence
|
|
1772
|
-
}: {
|
|
1785
|
+
declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, editing, backgroundActionPersistence }: {
|
|
1773
1786
|
resource: Resource;
|
|
1774
1787
|
config?: Partial<Config>;
|
|
1775
1788
|
saveConfig?: (config: Partial<Config>) => void;
|
|
@@ -1781,7 +1794,7 @@ declare function ShellProvider({
|
|
|
1781
1794
|
type: string;
|
|
1782
1795
|
};
|
|
1783
1796
|
backgroundActionPersistence?: BackgroundActionPersistence | false | null;
|
|
1784
|
-
}):
|
|
1797
|
+
}): import("react").JSX.Element;
|
|
1785
1798
|
//#endregion
|
|
1786
1799
|
//#region src/SpecificationContext/SpecificationContext.types.d.ts
|
|
1787
1800
|
type SpecificationEntityType = "Collection" | "Manifest" | "Canvas" | "Range" | "AnnotationPage" | "Annotation" | "ContentResource" | "Agent";
|
|
@@ -1900,13 +1913,10 @@ type SpecificationPropertyPolicy = {
|
|
|
1900
1913
|
};
|
|
1901
1914
|
//#endregion
|
|
1902
1915
|
//#region src/SpecificationContext/SpecificationContext.d.ts
|
|
1903
|
-
declare function SpecificationProvider({
|
|
1904
|
-
children,
|
|
1905
|
-
specifications
|
|
1906
|
-
}: {
|
|
1916
|
+
declare function SpecificationProvider({ children, specifications }: {
|
|
1907
1917
|
children: ReactNode;
|
|
1908
1918
|
specifications?: ManifestEditorSpecification[];
|
|
1909
|
-
}):
|
|
1919
|
+
}): import("react").JSX.Element;
|
|
1910
1920
|
declare function useSpecifications(): ManifestEditorSpecification[];
|
|
1911
1921
|
declare function useSpecificationReport(rootRef?: Reference): SpecificationReport;
|
|
1912
1922
|
declare function useSpecificationTerminology(): {
|
|
@@ -1948,11 +1958,9 @@ declare function useTask(name: string): Task<any, any>;
|
|
|
1948
1958
|
declare function useTaskEvent<Req = any, Res = any>(task: Task<Req, Res>, name: string, _cb: (task: Task<Req, Res>) => any): void;
|
|
1949
1959
|
declare function useTaskDispatch<Req = any, Res = any>(name: string, onComplete?: (task: Task<Req, Res>) => void | Promise<void>): readonly [(request?: any) => void, Task<any, any>];
|
|
1950
1960
|
declare function useTaskRunner<Req = any, Res = any>(name: string, onRun: (task: Task<Req, Res>) => void | Promise<void>): readonly [(response?: any) => void, Task<any, any>, (reason?: any, error?: any) => void];
|
|
1951
|
-
declare function TaskBridge({
|
|
1952
|
-
children
|
|
1953
|
-
}: {
|
|
1961
|
+
declare function TaskBridge({ children }: {
|
|
1954
1962
|
children?: ReactNode;
|
|
1955
|
-
}):
|
|
1963
|
+
}): import("react").JSX.Element;
|
|
1956
1964
|
//#endregion
|
|
1957
1965
|
//#region src/Toast/ToastContext.d.ts
|
|
1958
1966
|
type ToastVariant = ToastVariant$1;
|
|
@@ -1969,15 +1977,12 @@ interface ToastProviderProps {
|
|
|
1969
1977
|
children: ReactNode;
|
|
1970
1978
|
maxVisibleToasts?: number;
|
|
1971
1979
|
}
|
|
1972
|
-
declare function ToastProvider({
|
|
1973
|
-
children,
|
|
1974
|
-
maxVisibleToasts
|
|
1975
|
-
}: ToastProviderProps): react_jsx_runtime2.JSX.Element;
|
|
1980
|
+
declare function ToastProvider({ children, maxVisibleToasts }: ToastProviderProps): import("react").JSX.Element;
|
|
1976
1981
|
declare function useToasts(): ToastApi;
|
|
1977
1982
|
//#endregion
|
|
1978
1983
|
//#region src/Universal/UniversalCopyPaste.types.d.ts
|
|
1979
|
-
interface UniversalCopyPasteProps<T
|
|
1980
|
-
as?: keyof JSX.IntrinsicElements |
|
|
1984
|
+
interface UniversalCopyPasteProps<T> {
|
|
1985
|
+
as?: keyof JSX.IntrinsicElements | React$1.ComponentType<T>;
|
|
1981
1986
|
children?: ReactNode;
|
|
1982
1987
|
reference?: Reference;
|
|
1983
1988
|
onReference?: (reference: Reference) => void;
|
|
@@ -1994,20 +1999,7 @@ interface UniversalCopyPasteProps<T$1> {
|
|
|
1994
1999
|
}
|
|
1995
2000
|
//#endregion
|
|
1996
2001
|
//#region src/Universal/UniversalCopyPaste.d.ts
|
|
1997
|
-
declare function UniversalCopyTarget<T
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
onReference,
|
|
2001
|
-
onLink,
|
|
2002
|
-
onAnalysis,
|
|
2003
|
-
onDropReference: _onDropReference,
|
|
2004
|
-
onDropLink: _onDropLink,
|
|
2005
|
-
onDropAnalysis: _onDropAnalysis,
|
|
2006
|
-
onPasteReference: _onPasteReference,
|
|
2007
|
-
onPasteLink: _onPasteLink,
|
|
2008
|
-
onPasteAnalysis: _onPasteAnalysis,
|
|
2009
|
-
...props
|
|
2010
|
-
}: Partial<HTMLAttributes<HTMLElement>> & UniversalCopyPasteProps<T$1> & T$1): react_jsx_runtime2.JSX.Element;
|
|
2011
|
-
//#endregion
|
|
2012
|
-
export { AnnotationPanel, AppContext, AppExtension, AppHeader, AppMenuProvider, AppProvider, AppReactContext, AppResourceInstanceProvider, AppResourceProvider, AppState, AppStateReactContext, AtlasStoreProvider, AtlasStoreReactContext, AvailableBackgroundAction, BackgroundActionContext, BackgroundActionDefinition, BackgroundActionError, BackgroundActionEvent, BackgroundActionEventType, BackgroundActionGroup, BackgroundActionInstance, BackgroundActionLifecycle, BackgroundActionLogEntry, BackgroundActionLogLevel, BackgroundActionPersistedState, BackgroundActionPersistence, BackgroundActionPersistenceKey, BackgroundActionPlan, BackgroundActionProgress, BackgroundActionProgressInput, BackgroundActionRenderContext, BackgroundActionRunContext, BackgroundActionStatus, BackgroundActionSystemContext, BackgroundActionTarget, BackgroundActionTask, BackgroundActionTaskRunOptions, BackgroundActionTaskRunResult, BackgroundActionTaskStatus, BackgroundActionTasksApi, BackgroundActionToasts, BackgroundActionsMenu, BackgroundActionsMount, BackgroundActionsProvider, BackgroundActionsReactContext, BackgroundActionsStore, BackgroundPanel, BaseAnnotationCreator, BaseEditor, BaseEditorBackButton, BaseEditorCloseButton, CANVAS_PROGRESS_META_NAMESPACE, CANVAS_PROGRESS_STATUS_META_KEY, CanvasEditorDefinition, CanvasProgressActiveStatus, CanvasProgressResource, CanvasProgressStatus, CanvasProgressStatusInput, CanvasWithImageServiceSpecificationRule, Config, ConfigEditor, ConfigProvider, ConfigReactContext, ContextMenuItem, ContextMenuProvider, ContextMenuReactContext, ContextMenuRequest, CreatorInitialData, DisallowPropertySpecificationRule, EditableResource, EditingStack, EditingStackActionCreators, EditingStackActions, EditingStackContext, EditingStackState, EditorConfig, EditorDefinition, EventEmitterProvider, ExportPanel, ExportPanelProps, FLAG_TAG, FixedValueSpecificationRule, GetAvailableBackgroundActionGroupsOptions, HOMEPAGE_COLLECTION, HandleContainer, HandleControls, InlineEditingStack, Layout, LayoutActions, LayoutActionsReactContext, LayoutContext, LayoutFunction, LayoutModeReactContext, LayoutPanel, LayoutPanelContext, LayoutPanelFocusedModeContext, LayoutPanelSupportContext, LayoutProps, LayoutProviderProps, LayoutRenderProps, LayoutState, LayoutStateReactContext, LazyPluginModule, LoadedApp, ManifestEditorCanvasProgressApi, ManifestEditorCanvasProgressOverlay, ManifestEditorSpecification, ManifestEditorTag, ManifestEditorTagBadge, ManifestEditorTagGroup, ManifestEditorTagGroupRow, ManifestEditorTagIcon, ManifestEditorTagOverlay, ManifestEditorTagResource, ManifestEditorTagsApi, ManifestPaginationNavigation, ManifestPaginationNavigationProps, MappedApp, MappedPlugin, MenuPositions, MessagePortClientVault, MetadataTemplateSpecificationRule, ModularPanel, ModularPanelHeader, ModulePanelButton, MultiAppContext, MultiAppProvider, PanelActionType, PanelActions, PanelError, PanelState, PinnablePanelActions, PinnablePanelState, PinnedLayoutPanel, PluginAppConfig, PluginConfigBridge, PluginConfigScope, PluginGlobalConfigReactContext, PluginHostApp, PluginInput, PluginManager, PluginMetadata, PluginModule, PluginProvider, PluginReactContext, PluginRuntimeApi, PluginSettingsDefinition, PluginSettingsField, PluginSettingsFieldOption, PluginSettingsRecord, PluginSettingsRenderContext, PluginSettingsValue, PluginStore, PluginStoreSnapshot, Preview, PreviewActions, PreviewActionsType, PreviewButton, PreviewConfiguration, PreviewContext, PreviewHandler, PreviewProvider, PreviewState, PreviewVaultBoundary, PreviewVaultContext, PrimeAppReactContext, ReactEmitterContext, type RemoteVaultAction, type RemoteVaultClientMessage, RequireNonEmptySpecificationRule, RequiredStatementSpecificationRule, Resource, ResourceDefinition, ResourceEditingProvider, ResourceEditingReactContext, RunBackgroundActionOptions, SaveConfigReactContext, ShellProvider, SpecificationEditorTarget, SpecificationEntityType, SpecificationJsonValue, SpecificationPropertyPath, SpecificationPropertyPolicy, SpecificationPropertyRuleBase, SpecificationProvider, SpecificationReport, SpecificationReportItem, SpecificationReportStatus, SpecificationRule, SpecificationRuleBase, SpecificationTextValue, TAGS_META_KEY, TAGS_META_NAMESPACE, TaskBridge, ThumbnailFromBodyServiceSpecificationRule, ToastApi, ToastContent, ToastProvider, ToastVariant, UniversalCopyPasteProps, UniversalCopyTarget, UploadBackendConfig, ValidRightsSpecificationRule, VaultBridgeRegistry, addResourceTag, analyse, analyseJson, applyPlugins, baseCreator, baseEditor, clearCanvasProgressStatus, clearCanvasProgressStatuses, collectSpecificationResources, copyToClipboard, createActionIdentity, createBackgroundActionsStore, createDownload, createIframeVaultBridge, createLocalForageBackgroundActionPersistence, createManifestEditorCanvasProgressApi, createManifestEditorTagsApi, createPluginRuntimeApi, createPluginStore, createPreviewVault, createTrackingCanvasProgressApi, detectMedia, disablePluginInConfig, editBasedOnResource, enablePluginAndDependenciesInConfig, enablePluginInConfig, evaluateSpecifications, extendApp, filterSupportedPanels, getAvailableBackgroundActionGroups, getBackgroundActionInstanceKey, getCanvasProgressStatus, getCanvasProgressStatusFromState, getDefaultLayoutState, getDefaultPanelState, getEffectivePluginSettings, getEmptyPluginState, getEnabledPluginsForApp, getFormat, getImageDimensions, getManifestNomalized, getPluginCompatibilityReason, getPluginDefaultSettings, getPluginSelectionSource, getPluginSettingsFromConfig, getPropertyPolicy, getResourceTag, getResourceTagGroups, getResourceTags, getResourceTagsFromState, getSupportedPanelFallback, getTerminologyLabel, getValueAtPath, hasMeaningfulValue, hasResourceTag, isLazyPlugin, isMappedPlugin, isPinnableState, isPluginCompatible, isPluginSelected, layoutReducer, mapApp, mapLazyPlugin, mapPlugin, mergeBackgroundActionDefinitions, mergeConfig, mergePartialConfig, mergeProviderPlugins, normaliseBackgroundActionError, normaliseJsonValue, normalisePlugin, normalisePluginAppConfig, normalisePluginAppsConfig, normalisePlugins, normaliseSpecificationPath, panelIds, panelSizing, pluginAppConfigEquals, polygonToBoundingBox, randomId, removeResourceTag, renderHelper, resetPluginInConfig, resetPluginSettingsInConfig, runBackgroundAction, setCanvasProgressStatus, setCanvasProgressStatuses, setPluginSettingsInConfig, setResourceTags, setValueAtPath, sortBackgroundActionDefinitions, specificationJsonEquals, specificationPathEquals, toggleResourceTag, useAnnotationCreatorState, useAnnotationPageEditor, useApp, useAppInstance, useAppMenu, useAppMenuItem, useAppResource, useAppResourceInstance, useAppState, useApps, useAtlasStore, useAvailableBackgroundActions, useAvailableLayouts, useBackgroundActionHistory, useBackgroundActionInstance, useBackgroundActionsStore, useBackgroundActionsStoreApi, useCanvasProgressActions, useCanvasProgressStatus, useCollectionEditor, useConfig, useCreatingResource, useCreator, useCustomContextMenu, useDecayState, useEditingContext, useEditingResource, useEditingResourceStack, useEditingStack, useEditor, useEmitter, useEnabledPlugins, useEvent, useGenericEditor, useHighlightedImageResource, useHoverHighlightImageResource, useInitialData, useInlineCreator, useLayoutActions, useLayoutMode, useLayoutProvider, useLayoutState, useLocalStorage, useManifestEditor, useMatchMedia, useOptionalLocalStorage, useOptionalPluginStoreApi, useOptionalResource, usePanelActions, usePluginActions, usePluginConfigApi, usePluginRuntimeApi, usePluginSettings, usePluginStoreApi, usePlugins, usePreviewContext, usePreviewHistory, usePreviewVault, usePreviews, useResolvedPluginApp, useResource, useResourceContextMenuItems, useResourceTagActions, useResourceTags, useSaveConfig, useSaveVault, useSetCustomTitle, useSpecificationPropertyPolicy, useSpecificationReport, useSpecificationTerminology, useSpecifications, useSvgTools, useTask, useTaskDispatch, useTaskEvent, useTaskRunner, useTemporaryHighlight, useToasts };
|
|
2002
|
+
declare function UniversalCopyTarget<T>({ as, reference: _ref, onReference, onLink, onAnalysis, onDropReference: _onDropReference, onDropLink: _onDropLink, onDropAnalysis: _onDropAnalysis, onPasteReference: _onPasteReference, onPasteLink: _onPasteLink, onPasteAnalysis: _onPasteAnalysis, ...props }: Partial<HTMLAttributes<HTMLElement>> & UniversalCopyPasteProps<T> & T): import("react").JSX.Element;
|
|
2003
|
+
//#endregion
|
|
2004
|
+
export { AnnotationPanel, AppContext, AppExtension, AppHeader, AppMenuProvider, AppProvider, AppReactContext, AppResourceInstanceProvider, AppResourceProvider, AppState, AppStateReactContext, AtlasStoreProvider, AtlasStoreReactContext, AvailableBackgroundAction, BackgroundActionContext, BackgroundActionDefinition, BackgroundActionError, BackgroundActionEvent, BackgroundActionEventType, BackgroundActionGroup, BackgroundActionInstance, BackgroundActionLifecycle, BackgroundActionLogEntry, BackgroundActionLogLevel, BackgroundActionPersistedState, BackgroundActionPersistence, BackgroundActionPersistenceKey, BackgroundActionPlan, BackgroundActionProgress, BackgroundActionProgressInput, BackgroundActionRenderContext, BackgroundActionRunContext, BackgroundActionStatus, BackgroundActionSystemContext, BackgroundActionTarget, BackgroundActionTask, BackgroundActionTaskRunOptions, BackgroundActionTaskRunResult, BackgroundActionTaskStatus, BackgroundActionTasksApi, BackgroundActionToasts, BackgroundActionsMenu, BackgroundActionsMount, BackgroundActionsProvider, BackgroundActionsReactContext, BackgroundActionsStore, BackgroundPanel, BaseAnnotationCreator, BaseEditor, BaseEditorBackButton, BaseEditorCloseButton, ButtonChange, ButtonContainer, ButtonEmpty, ButtonMain, CANVAS_PROGRESS_META_NAMESPACE, CANVAS_PROGRESS_STATUS_META_KEY, CanvasEditorDefinition, CanvasProgressActiveStatus, CanvasProgressResource, CanvasProgressStatus, CanvasProgressStatusInput, CanvasWithImageServiceSpecificationRule, Config, ConfigEditor, ConfigProvider, ConfigReactContext, ContextMenuItem, ContextMenuProvider, ContextMenuReactContext, ContextMenuRequest, CreatorInitialData, CreatorSettings, DisallowPropertySpecificationRule, EditableResource, EditingStack, EditingStackActionCreators, EditingStackActions, EditingStackContext, EditingStackState, EditorConfig, EditorDefinition, EventEmitterProvider, ExportPanel, ExportPanelProps, FLAG_TAG, FixedValueSpecificationRule, GetAvailableBackgroundActionGroupsOptions, HOMEPAGE_COLLECTION, HandleContainer, HandleControls, InlineEditingStack, Layout, LayoutActions, LayoutActionsReactContext, LayoutContext, LayoutFunction, LayoutModeReactContext, LayoutPanel, LayoutPanelContext, LayoutPanelFocusedModeContext, LayoutPanelSupportContext, LayoutProps, LayoutProviderProps, LayoutRenderProps, LayoutState, LayoutStateReactContext, LazyPluginModule, LoadedApp, ManifestEditorCanvasProgressApi, ManifestEditorCanvasProgressOverlay, ManifestEditorSpecification, ManifestEditorTag, ManifestEditorTagBadge, ManifestEditorTagGroup, ManifestEditorTagGroupRow, ManifestEditorTagIcon, ManifestEditorTagOverlay, ManifestEditorTagResource, ManifestEditorTagsApi, ManifestPaginationNavigation, ManifestPaginationNavigationProps, MappedApp, MappedPlugin, MenuContainer, MenuItem, MenuItemClose, MenuItemLabel, MenuItemStatus, MenuPositions, MessagePortClientVault, MetadataTemplateSpecificationRule, ModularPanel, ModularPanelHeader, ModulePanelButton, MultiAppContext, MultiAppProvider, PanelActionType, PanelActions, PanelError, PanelState, PinnablePanelActions, PinnablePanelState, PinnedLayoutPanel, PluginAppConfig, PluginConfigBridge, PluginConfigScope, PluginGlobalConfigReactContext, PluginHostApp, PluginInput, PluginManager, PluginMetadata, PluginModule, PluginProvider, PluginReactContext, PluginRuntimeApi, PluginSettingsDefinition, PluginSettingsField, PluginSettingsFieldOption, PluginSettingsRecord, PluginSettingsRenderContext, PluginSettingsValue, PluginStore, PluginStoreSnapshot, PresetDefinition, PresetOnboarding, PresetOnboardingButton, PresetOnboardingDefinition, PresetOnboardingRenderContext, PresetPreviewAction, PresetPreviewButton, PresetPreviewButtonRenderContext, PresetPreviewOptions, PresetTemplateConfigurationField, PresetTemplateDefinition, Preview, PreviewActions, PreviewActionsType, PreviewButton, PreviewConfiguration, PreviewContext, PreviewHandler, PreviewProvider, PreviewState, PreviewVaultBoundary, PreviewVaultContext, PreviewWindowOptions, PreviewWindowProvider, PrimeAppReactContext, ReactEmitterContext, type RemoteVaultAction, type RemoteVaultClientMessage, RequireNonEmptySpecificationRule, RequiredStatementSpecificationRule, Resource, ResourceDefinition, ResourceEditingProvider, ResourceEditingReactContext, RunBackgroundActionOptions, SaveConfigReactContext, ShellProvider, SpecificationEditorTarget, SpecificationEntityType, SpecificationJsonValue, SpecificationPropertyPath, SpecificationPropertyPolicy, SpecificationPropertyRuleBase, SpecificationProvider, SpecificationReport, SpecificationReportItem, SpecificationReportStatus, SpecificationRule, SpecificationRuleBase, SpecificationTextValue, TAGS_META_KEY, TAGS_META_NAMESPACE, TaskBridge, ThumbnailFromBodyServiceSpecificationRule, ToastApi, ToastContent, ToastProvider, ToastVariant, UniversalCopyPasteProps, UniversalCopyTarget, UploadBackendConfig, ValidRightsSpecificationRule, VaultBridgeRegistry, addResourceTag, analyse, analyseJson, applyPlugins, baseCreator, baseEditor, clearCanvasProgressStatus, clearCanvasProgressStatuses, collectSpecificationResources, copyToClipboard, createActionIdentity, createBackgroundActionsStore, createDownload, createIframeVaultBridge, createLocalForageBackgroundActionPersistence, createManifestEditorCanvasProgressApi, createManifestEditorTagsApi, createPluginRuntimeApi, createPluginStore, createPreviewVault, createTrackingCanvasProgressApi, detectMedia, disablePluginInConfig, editBasedOnResource, enablePluginAndDependenciesInConfig, enablePluginInConfig, evaluateSpecifications, extendApp, filterSupportedPanels, getAvailableBackgroundActionGroups, getBackgroundActionInstanceKey, getCanvasProgressStatus, getCanvasProgressStatusFromState, getDefaultLayoutState, getDefaultPanelState, getEffectivePluginSettings, getEmptyPluginState, getEnabledPluginsForApp, getFormat, getImageDimensions, getManifestNomalized, getPluginCompatibilityReason, getPluginDefaultSettings, getPluginSelectionSource, getPluginSettingsFromConfig, getPresetOnboardingDismissalKey, getPropertyPolicy, getResourceTag, getResourceTagGroups, getResourceTags, getResourceTagsFromState, getSelectedPresetTemplate, getSupportedPanelFallback, getTerminologyLabel, getValueAtPath, hasMeaningfulValue, hasPreviewOption, hasResourceTag, isLazyPlugin, isMappedPlugin, isPinnableState, isPluginCompatible, isPluginSelected, layoutReducer, mapApp, mapLazyPlugin, mapPlugin, mergeBackgroundActionDefinitions, mergeConfig, mergePartialConfig, mergePresetConfig, mergeProviderPlugins, normaliseBackgroundActionError, normaliseJsonValue, normalisePlugin, normalisePluginAppConfig, normalisePluginAppsConfig, normalisePlugins, normaliseSpecificationPath, panelIds, panelSizing, pluginAppConfigEquals, polygonToBoundingBox, randomId, removeResourceTag, renderHelper, resetPluginInConfig, resetPluginSettingsInConfig, runBackgroundAction, setCanvasProgressStatus, setCanvasProgressStatuses, setPluginSettingsInConfig, setResourceTags, setValueAtPath, sortBackgroundActionDefinitions, specificationJsonEquals, specificationPathEquals, toggleResourceTag, useAnnotationCreatorState, useAnnotationPageEditor, useApp, useAppInstance, useAppMenu, useAppMenuItem, useAppResource, useAppResourceInstance, useAppState, useApps, useAtlasStore, useAvailableBackgroundActions, useAvailableLayouts, useBackgroundActionHistory, useBackgroundActionInstance, useBackgroundActionsStore, useBackgroundActionsStoreApi, useCanvasProgressActions, useCanvasProgressStatus, useCollectionEditor, useConfig, useCreatingResource, useCreator, useCustomContextMenu, useDecayState, useEditingContext, useEditingResource, useEditingResourceStack, useEditingStack, useEditor, useEmitter, useEnabledPlugins, useEvent, useGenericEditor, useHighlightedImageResource, useHoverHighlightImageResource, useInitialData, useInlineCreator, useLayoutActions, useLayoutMode, useLayoutProvider, useLayoutState, useLocalStorage, useManifestEditor, useMatchMedia, useOpenPresetOnboarding, useOptionalLocalStorage, useOptionalPluginStoreApi, useOptionalResource, usePanelActions, usePluginActions, usePluginConfigApi, usePluginRuntimeApi, usePluginSettings, usePluginStoreApi, usePlugins, usePresetTemplateSelection, usePreviewContext, usePreviewHistory, usePreviewVault, usePreviewWindow, usePreviews, useResolvedPluginApp, useResource, useResourceContextMenuItems, useResourceTagActions, useResourceTags, useSaveConfig, useSaveVault, useSetCustomTitle, useSpecificationPropertyPolicy, useSpecificationReport, useSpecificationTerminology, useSpecifications, useSvgTools, useTask, useTaskDispatch, useTaskEvent, useTaskRunner, useTemporaryHighlight, useToasts };
|
|
2013
2005
|
//# sourceMappingURL=index.d.cts.map
|