@manifest-editor/shell 2.1.1-next.0.96fdf30 → 2.2.1-cdn.1.2412bf12
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 +297 -298
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +297 -298
- 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_runtime5 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;
|
|
@@ -103,6 +89,10 @@ interface Config {
|
|
|
103
89
|
behaviorPresets: string[];
|
|
104
90
|
newTemplates: Collection | null;
|
|
105
91
|
defaultPreview: string | null;
|
|
92
|
+
urlState?: {
|
|
93
|
+
getSearchParam: (key: string) => string | null;
|
|
94
|
+
replaceSearchParam: (key: string, value: string | null) => void;
|
|
95
|
+
};
|
|
106
96
|
editorConfig: {
|
|
107
97
|
All?: EditorConfig;
|
|
108
98
|
Manifest?: EditorConfig;
|
|
@@ -133,6 +123,7 @@ interface Config {
|
|
|
133
123
|
baseIdentifier: string | null;
|
|
134
124
|
version: 3 | 2;
|
|
135
125
|
};
|
|
126
|
+
creators: CreatorConfig;
|
|
136
127
|
uploadBackends: Array<UploadBackendConfig>;
|
|
137
128
|
plugins?: {
|
|
138
129
|
apps?: Record<string, {
|
|
@@ -160,19 +151,15 @@ interface UploadBackendConfig {
|
|
|
160
151
|
}
|
|
161
152
|
declare function mergePartialConfig(...configs: Array<Partial<Config> | null | undefined>): Partial<Config>;
|
|
162
153
|
declare function mergeConfig(...configs: Array<Partial<Config> | null | undefined>): Config;
|
|
163
|
-
declare const ConfigReactContext:
|
|
164
|
-
declare const SaveConfigReactContext:
|
|
154
|
+
declare const ConfigReactContext: import("react").Context<Config>;
|
|
155
|
+
declare const SaveConfigReactContext: import("react").Context<(config: Partial<Config>) => void>;
|
|
165
156
|
declare function useConfig(): Config;
|
|
166
157
|
declare function useSaveConfig(): (config: Partial<Config>) => void;
|
|
167
|
-
declare function ConfigProvider({
|
|
168
|
-
children,
|
|
169
|
-
config,
|
|
170
|
-
saveConfig
|
|
171
|
-
}: {
|
|
158
|
+
declare function ConfigProvider({ children, config, saveConfig }: {
|
|
172
159
|
children: ReactNode;
|
|
173
160
|
config?: Partial<Config>;
|
|
174
161
|
saveConfig?: (config: Partial<Config>) => void;
|
|
175
|
-
}):
|
|
162
|
+
}): import("react").JSX.Element;
|
|
176
163
|
//#endregion
|
|
177
164
|
//#region src/EditingStack/EditingStack.types.d.ts
|
|
178
165
|
interface EditableResource {
|
|
@@ -337,7 +324,7 @@ type PanelActionType = { [T in keyof PinnablePanelActions]: {
|
|
|
337
324
|
type: T;
|
|
338
325
|
panel: keyof LayoutState;
|
|
339
326
|
payload: Parameters<PinnablePanelActions[T]>[0];
|
|
340
|
-
} }[keyof PinnablePanelActions];
|
|
327
|
+
}; }[keyof PinnablePanelActions];
|
|
341
328
|
interface PinnablePanelState extends PanelState {
|
|
342
329
|
pinnable: true;
|
|
343
330
|
pinned: boolean;
|
|
@@ -364,6 +351,7 @@ type LayoutFunction = (state: any, ctx: {
|
|
|
364
351
|
current: PanelActions;
|
|
365
352
|
vault?: Vault;
|
|
366
353
|
transition?: TransitionStatus;
|
|
354
|
+
isModal?: boolean;
|
|
367
355
|
} & LayoutContext, app: AppState) => ReactNode;
|
|
368
356
|
interface AnnotationPanel {
|
|
369
357
|
id: string;
|
|
@@ -382,6 +370,7 @@ interface LayoutPanel {
|
|
|
382
370
|
separator?: boolean;
|
|
383
371
|
icon?: null | string | ReactNode;
|
|
384
372
|
supports?: (ctx: LayoutPanelSupportContext) => boolean;
|
|
373
|
+
modal?: boolean;
|
|
385
374
|
focusedMode?: {
|
|
386
375
|
hide?: boolean;
|
|
387
376
|
closeOnMainPanelClick?: boolean;
|
|
@@ -430,9 +419,9 @@ interface LayoutPanelFocusedModeContext {
|
|
|
430
419
|
actions: LayoutActions;
|
|
431
420
|
}
|
|
432
421
|
type MenuPositions = "left" | "right" | "bottom" | "top";
|
|
433
|
-
interface PinnedLayoutPanel<T
|
|
422
|
+
interface PinnedLayoutPanel<T = any> extends LayoutPanel {
|
|
434
423
|
pinned: true;
|
|
435
|
-
state: T
|
|
424
|
+
state: T;
|
|
436
425
|
}
|
|
437
426
|
interface CanvasEditorDefinition {
|
|
438
427
|
id: string;
|
|
@@ -535,15 +524,11 @@ declare function useCanvasProgressActions(resource: CanvasProgressResource): {
|
|
|
535
524
|
clearStatus(): CanvasProgressStatus;
|
|
536
525
|
getStatus(): CanvasProgressStatus;
|
|
537
526
|
};
|
|
538
|
-
declare function ManifestEditorCanvasProgressOverlay({
|
|
539
|
-
resource,
|
|
540
|
-
status,
|
|
541
|
-
className
|
|
542
|
-
}: {
|
|
527
|
+
declare function ManifestEditorCanvasProgressOverlay({ resource, status, className }: {
|
|
543
528
|
resource?: CanvasProgressResource;
|
|
544
529
|
status?: CanvasProgressStatus;
|
|
545
530
|
className?: string;
|
|
546
|
-
}):
|
|
531
|
+
}): import("react").JSX.Element;
|
|
547
532
|
//#endregion
|
|
548
533
|
//#region src/PluginContext/PluginContext.types.d.ts
|
|
549
534
|
type PluginMetadata = {
|
|
@@ -606,20 +591,20 @@ type PluginSettingsField = {
|
|
|
606
591
|
placeholder?: string;
|
|
607
592
|
options?: PluginSettingsFieldOption[];
|
|
608
593
|
};
|
|
609
|
-
type PluginSettingsRenderContext<T
|
|
594
|
+
type PluginSettingsRenderContext<T extends PluginSettingsValue = PluginSettingsValue> = {
|
|
610
595
|
plugin: MappedPlugin;
|
|
611
596
|
appId: string;
|
|
612
597
|
scope: PluginConfigScope;
|
|
613
|
-
value: T
|
|
614
|
-
defaults: T
|
|
615
|
-
effective: T
|
|
616
|
-
onChange: (value: T
|
|
598
|
+
value: T;
|
|
599
|
+
defaults: T;
|
|
600
|
+
effective: T;
|
|
601
|
+
onChange: (value: T) => void;
|
|
617
602
|
};
|
|
618
|
-
type PluginSettingsDefinition<T
|
|
619
|
-
defaults?: T
|
|
603
|
+
type PluginSettingsDefinition<T extends PluginSettingsValue = PluginSettingsValue> = {
|
|
604
|
+
defaults?: T;
|
|
620
605
|
fields?: PluginSettingsField[];
|
|
621
|
-
validate?: (settings: T
|
|
622
|
-
render?: (context: PluginSettingsRenderContext<T
|
|
606
|
+
validate?: (settings: T) => string | null | undefined | void;
|
|
607
|
+
render?: (context: PluginSettingsRenderContext<T>) => ReactNode;
|
|
623
608
|
};
|
|
624
609
|
type PluginConfigScope = "workspace" | "global";
|
|
625
610
|
type PluginAppConfig = {
|
|
@@ -654,7 +639,7 @@ type PluginStore = PluginStoreSnapshot & {
|
|
|
654
639
|
};
|
|
655
640
|
type PluginHostApp = Pick<MappedApp, "metadata" | "layout">;
|
|
656
641
|
type PluginRuntimeApi = {
|
|
657
|
-
getSettings<T
|
|
642
|
+
getSettings<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string): T;
|
|
658
643
|
};
|
|
659
644
|
//#endregion
|
|
660
645
|
//#region src/Tags.d.ts
|
|
@@ -718,34 +703,21 @@ declare function useResourceTagActions(resource: ManifestEditorTagResource): {
|
|
|
718
703
|
toggleTag(tag: ManifestEditorTag): ManifestEditorTag[];
|
|
719
704
|
hasTag(tagType: string, tagId?: string): boolean;
|
|
720
705
|
};
|
|
721
|
-
declare function ManifestEditorTagIcon({
|
|
722
|
-
icon,
|
|
723
|
-
title,
|
|
724
|
-
...props
|
|
725
|
-
}: SVGProps<SVGSVGElement> & {
|
|
706
|
+
declare function ManifestEditorTagIcon({ icon, title, ...props }: SVGProps<SVGSVGElement> & {
|
|
726
707
|
icon?: string;
|
|
727
708
|
title?: string;
|
|
728
|
-
}):
|
|
729
|
-
declare function ManifestEditorTagBadge({
|
|
730
|
-
tag,
|
|
731
|
-
showIcon,
|
|
732
|
-
className,
|
|
733
|
-
style
|
|
734
|
-
}: {
|
|
709
|
+
}): import("react").JSX.Element | null;
|
|
710
|
+
declare function ManifestEditorTagBadge({ tag, showIcon, className, style }: {
|
|
735
711
|
tag: ManifestEditorTag;
|
|
736
712
|
showIcon?: boolean;
|
|
737
713
|
className?: string;
|
|
738
714
|
style?: CSSProperties;
|
|
739
|
-
}):
|
|
740
|
-
declare function ManifestEditorTagOverlay({
|
|
741
|
-
resource,
|
|
742
|
-
tags,
|
|
743
|
-
className
|
|
744
|
-
}: {
|
|
715
|
+
}): import("react").JSX.Element;
|
|
716
|
+
declare function ManifestEditorTagOverlay({ resource, tags, className }: {
|
|
745
717
|
resource?: ManifestEditorTagResource;
|
|
746
718
|
tags?: ManifestEditorTag[];
|
|
747
719
|
className?: string;
|
|
748
|
-
}):
|
|
720
|
+
}): import("react").JSX.Element;
|
|
749
721
|
//#endregion
|
|
750
722
|
//#region src/BackgroundTasks/BackgroundTasks.types.d.ts
|
|
751
723
|
type BackgroundActionStatus = "idle" | "preparing" | "running" | "complete" | "error" | "cancelled";
|
|
@@ -954,9 +926,76 @@ type MappedApp = {
|
|
|
954
926
|
metadata: LoadedApp["default"];
|
|
955
927
|
layout: LayoutProps;
|
|
956
928
|
config?: Partial<Config>;
|
|
929
|
+
preset?: PresetDefinition;
|
|
930
|
+
};
|
|
931
|
+
type PresetTemplateConfigurationField = {
|
|
932
|
+
id: string;
|
|
933
|
+
label: string;
|
|
934
|
+
type: "text" | "textarea" | "number" | "boolean" | "select";
|
|
935
|
+
defaultValue?: string | number | boolean;
|
|
936
|
+
options?: Array<{
|
|
937
|
+
label: string;
|
|
938
|
+
value: string | number | boolean;
|
|
939
|
+
}>;
|
|
940
|
+
};
|
|
941
|
+
type PresetTemplateDefinition = {
|
|
942
|
+
id: string;
|
|
943
|
+
label: string;
|
|
944
|
+
summary: string;
|
|
945
|
+
type: "slideshow" | "fullpage" | "scroll";
|
|
946
|
+
previewUrl: string;
|
|
947
|
+
thumbnailUrl: string;
|
|
948
|
+
configuration?: PresetTemplateConfigurationField[];
|
|
949
|
+
};
|
|
950
|
+
type PresetPreviewAction = {
|
|
951
|
+
id: string;
|
|
952
|
+
label: string;
|
|
953
|
+
status?: "available" | "configured" | "active";
|
|
954
|
+
disabled?: boolean;
|
|
955
|
+
onClick: () => void;
|
|
956
|
+
};
|
|
957
|
+
type PresetPreviewOptions = {
|
|
958
|
+
mainAction?: PresetPreviewAction;
|
|
959
|
+
actions?: PresetPreviewAction[];
|
|
960
|
+
};
|
|
961
|
+
type PresetOnboardingRenderContext = {
|
|
962
|
+
templates: PresetTemplateDefinition[];
|
|
963
|
+
selectedTemplateId: string | null;
|
|
964
|
+
selectedTemplate: PresetTemplateDefinition | null;
|
|
965
|
+
setSelectedTemplateId: (id: string | null) => void;
|
|
966
|
+
dismiss: () => void;
|
|
967
|
+
};
|
|
968
|
+
type PresetPreviewButtonRenderContext = {
|
|
969
|
+
downloadEnabled?: boolean;
|
|
970
|
+
fileName?: string;
|
|
971
|
+
preview?: PresetPreviewOptions;
|
|
972
|
+
showOnboardingPreviewHint?: boolean;
|
|
973
|
+
onOnboardingPreviewHintClose?: () => void;
|
|
974
|
+
};
|
|
975
|
+
type PresetOnboardingDefinition = {
|
|
976
|
+
id: string;
|
|
977
|
+
mode: "global" | "per-resource";
|
|
978
|
+
title: string;
|
|
979
|
+
summary?: string;
|
|
980
|
+
openLabel?: string;
|
|
981
|
+
dismissLabel?: string;
|
|
982
|
+
primaryLabel?: string;
|
|
983
|
+
renderBody: (ctx: PresetOnboardingRenderContext) => ReactNode;
|
|
984
|
+
renderPreviewButton?: (ctx: PresetPreviewButtonRenderContext) => ReactNode;
|
|
985
|
+
};
|
|
986
|
+
type PresetDefinition = {
|
|
987
|
+
onboarding?: PresetOnboardingDefinition;
|
|
988
|
+
templates?: PresetTemplateDefinition[];
|
|
989
|
+
/** Use `replace` with `templates: leedsTemplates` to replace an inherited list. */
|
|
990
|
+
templateStrategy?: "append" | "replace";
|
|
991
|
+
/** Applied to the complete inherited/replaced list, e.g. `(template) => template.id.startsWith("leeds-")`. */
|
|
992
|
+
templateFilter?: (template: PresetTemplateDefinition) => boolean;
|
|
993
|
+
/** Example: `preview: { mainAction: { id: "host-preview", label: "Preview", onClick: openPreview } }`. */
|
|
994
|
+
preview?: PresetPreviewOptions;
|
|
957
995
|
};
|
|
958
996
|
interface AppExtension {
|
|
959
997
|
config?: Partial<Config>;
|
|
998
|
+
preset?: PresetDefinition;
|
|
960
999
|
leftPanels?: LayoutPanel[];
|
|
961
1000
|
centerPanels?: LayoutPanel[];
|
|
962
1001
|
rightPanels?: LayoutPanel[];
|
|
@@ -974,9 +1013,9 @@ type AppState = {
|
|
|
974
1013
|
state: null | any;
|
|
975
1014
|
setState: SetStateAction<any>;
|
|
976
1015
|
};
|
|
977
|
-
declare const PrimeAppReactContext:
|
|
978
|
-
declare const AppReactContext:
|
|
979
|
-
declare const AppStateReactContext:
|
|
1016
|
+
declare const PrimeAppReactContext: import("react").Context<MappedApp | null>;
|
|
1017
|
+
declare const AppReactContext: import("react").Context<AppContext | null>;
|
|
1018
|
+
declare const AppStateReactContext: import("react").Context<{
|
|
980
1019
|
state: null | any;
|
|
981
1020
|
setState: SetStateAction<any>;
|
|
982
1021
|
}>;
|
|
@@ -986,21 +1025,21 @@ declare function useAppState<S = any>(): {
|
|
|
986
1025
|
state: null | any;
|
|
987
1026
|
setState: SetStateAction<any>;
|
|
988
1027
|
};
|
|
989
|
-
declare function
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
}: {
|
|
1028
|
+
declare function getSelectedPresetTemplate(templates: PresetTemplateDefinition[], selectedTemplateId?: string | null): PresetTemplateDefinition | null;
|
|
1029
|
+
declare function usePresetTemplateSelection(): {
|
|
1030
|
+
templates: PresetTemplateDefinition[];
|
|
1031
|
+
selectedTemplateId: any;
|
|
1032
|
+
selectedTemplate: PresetTemplateDefinition | null;
|
|
1033
|
+
setSelectedTemplateId: (presetTemplateId: string | null) => any;
|
|
1034
|
+
};
|
|
1035
|
+
declare function AppProvider({ instanceId, appId, args, definition, children, initialState }: {
|
|
997
1036
|
initialState?: any;
|
|
998
1037
|
instanceId: string;
|
|
999
1038
|
appId: string;
|
|
1000
1039
|
args?: any;
|
|
1001
1040
|
definition: MappedApp;
|
|
1002
1041
|
children: ReactNode;
|
|
1003
|
-
}):
|
|
1042
|
+
}): import("react").JSX.Element;
|
|
1004
1043
|
//#endregion
|
|
1005
1044
|
//#region src/AppContext/MultiAppContext.d.ts
|
|
1006
1045
|
type MappedApp$1 = any;
|
|
@@ -1021,14 +1060,7 @@ type MultiAppContext = {
|
|
|
1021
1060
|
changeProjectType: (type: "Manifest" | "Collection") => void;
|
|
1022
1061
|
};
|
|
1023
1062
|
declare function useApps(): MultiAppContext;
|
|
1024
|
-
declare function MultiAppProvider({
|
|
1025
|
-
apps,
|
|
1026
|
-
initialApp,
|
|
1027
|
-
saveCurrentApp,
|
|
1028
|
-
instanceId,
|
|
1029
|
-
children,
|
|
1030
|
-
config
|
|
1031
|
-
}: {
|
|
1063
|
+
declare function MultiAppProvider({ apps, initialApp, saveCurrentApp, instanceId, children, config }: {
|
|
1032
1064
|
apps: Record<string, MappedApp$1>;
|
|
1033
1065
|
initialApp?: MultiAppContext["currentApp"];
|
|
1034
1066
|
saveCurrentApp?: boolean;
|
|
@@ -1039,38 +1071,35 @@ declare function MultiAppProvider({
|
|
|
1039
1071
|
manifestApp?: string;
|
|
1040
1072
|
collectionApp?: string;
|
|
1041
1073
|
};
|
|
1042
|
-
}):
|
|
1074
|
+
}): import("react").JSX.Element | null;
|
|
1043
1075
|
//#endregion
|
|
1044
1076
|
//#region src/AppHeader/AppHeader.d.ts
|
|
1045
1077
|
interface AppHeaderProps {
|
|
1046
1078
|
onClickLogo?: () => void;
|
|
1047
1079
|
}
|
|
1048
|
-
declare const AppHeader:
|
|
1080
|
+
declare const AppHeader: import("react").MemoExoticComponent<(props: AppHeaderProps) => import("react").JSX.Element>;
|
|
1049
1081
|
//#endregion
|
|
1050
1082
|
//#region src/AppMenu/AppMenuContext.d.ts
|
|
1051
|
-
type MenuItem = {
|
|
1083
|
+
type MenuItem$1 = {
|
|
1052
1084
|
label: string;
|
|
1053
1085
|
onClick?: () => void;
|
|
1054
1086
|
active?: boolean;
|
|
1055
1087
|
};
|
|
1056
1088
|
interface AppMenuContext {
|
|
1057
1089
|
file: {
|
|
1058
|
-
new: MenuItem;
|
|
1059
|
-
edit: MenuItem;
|
|
1060
|
-
open: MenuItem;
|
|
1061
|
-
newOptions: MenuItem[];
|
|
1062
|
-
openOptions: MenuItem[];
|
|
1090
|
+
new: MenuItem$1;
|
|
1091
|
+
edit: MenuItem$1;
|
|
1092
|
+
open: MenuItem$1;
|
|
1093
|
+
newOptions: MenuItem$1[];
|
|
1094
|
+
openOptions: MenuItem$1[];
|
|
1063
1095
|
};
|
|
1064
1096
|
}
|
|
1065
1097
|
declare function useAppMenu(): AppMenuContext | null;
|
|
1066
1098
|
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
|
-
}: {
|
|
1099
|
+
declare function AppMenuProvider({ children, menu }: {
|
|
1071
1100
|
children: React.ReactNode;
|
|
1072
1101
|
menu: AppMenuContext;
|
|
1073
|
-
}):
|
|
1102
|
+
}): import("react").JSX.Element;
|
|
1074
1103
|
//#endregion
|
|
1075
1104
|
//#region src/AtlasStore/AtlasStoreProvider.d.ts
|
|
1076
1105
|
declare function useAtlasStore(): StoreApi<AtlasStore>;
|
|
@@ -1095,9 +1124,9 @@ declare function getImageDimensions(url: string): Promise<{
|
|
|
1095
1124
|
//#endregion
|
|
1096
1125
|
//#region src/BackgroundTasks/BackgroundActions.d.ts
|
|
1097
1126
|
declare function useAvailableBackgroundActions(): BackgroundActionGroup[];
|
|
1098
|
-
declare function BackgroundActionsMount():
|
|
1127
|
+
declare function BackgroundActionsMount(): import("react").JSX.Element;
|
|
1099
1128
|
declare function BackgroundActionToasts(): null;
|
|
1100
|
-
declare function BackgroundActionsMenu():
|
|
1129
|
+
declare function BackgroundActionsMenu(): import("react").JSX.Element | null;
|
|
1101
1130
|
//#endregion
|
|
1102
1131
|
//#region src/BackgroundTasks/BackgroundTasksStore.d.ts
|
|
1103
1132
|
interface BackgroundActionsStore {
|
|
@@ -1146,28 +1175,18 @@ declare function getBackgroundActionInstanceKey(actionId: string, target: Backgr
|
|
|
1146
1175
|
declare function mergeBackgroundActionDefinitions(base?: BackgroundActionDefinition[], extensions?: BackgroundActionDefinition[]): BackgroundActionDefinition[];
|
|
1147
1176
|
declare function sortBackgroundActionDefinitions(definitions: BackgroundActionDefinition[]): BackgroundActionDefinition[];
|
|
1148
1177
|
declare function normaliseBackgroundActionError(error: unknown): BackgroundActionError;
|
|
1149
|
-
declare function getAvailableBackgroundActionGroups({
|
|
1150
|
-
definitions,
|
|
1151
|
-
instances,
|
|
1152
|
-
systemContext,
|
|
1153
|
-
targets,
|
|
1154
|
-
onSupportsError
|
|
1155
|
-
}: GetAvailableBackgroundActionGroupsOptions): BackgroundActionGroup[];
|
|
1178
|
+
declare function getAvailableBackgroundActionGroups({ definitions, instances, systemContext, targets, onSupportsError }: GetAvailableBackgroundActionGroupsOptions): BackgroundActionGroup[];
|
|
1156
1179
|
declare function createBackgroundActionsStore(initialDefinitions?: BackgroundActionDefinition[]): StoreApi<BackgroundActionsStore>;
|
|
1157
1180
|
declare function runBackgroundAction(options: RunBackgroundActionOptions): Promise<BackgroundActionInstance | undefined>;
|
|
1158
1181
|
declare function createLocalForageBackgroundActionPersistence(): BackgroundActionPersistence | null;
|
|
1159
|
-
declare const BackgroundActionsReactContext:
|
|
1160
|
-
declare function BackgroundActionsProvider({
|
|
1161
|
-
children,
|
|
1162
|
-
persistence,
|
|
1163
|
-
persistenceKey
|
|
1164
|
-
}: {
|
|
1182
|
+
declare const BackgroundActionsReactContext: import("react").Context<StoreApi<BackgroundActionsStore> | null>;
|
|
1183
|
+
declare function BackgroundActionsProvider({ children, persistence, persistenceKey }: {
|
|
1165
1184
|
children: ReactNode;
|
|
1166
1185
|
persistence?: BackgroundActionPersistence | false | null;
|
|
1167
1186
|
persistenceKey?: BackgroundActionPersistenceKey;
|
|
1168
|
-
}):
|
|
1187
|
+
}): import("react").FunctionComponentElement<import("react").ProviderProps<StoreApi<BackgroundActionsStore> | null>>;
|
|
1169
1188
|
declare function useBackgroundActionsStoreApi(): StoreApi<BackgroundActionsStore>;
|
|
1170
|
-
declare function useBackgroundActionsStore<T
|
|
1189
|
+
declare function useBackgroundActionsStore<T = BackgroundActionsStore>(selector?: (state: BackgroundActionsStore) => T): T;
|
|
1171
1190
|
declare function useBackgroundActionInstance(instanceKey: string): BackgroundActionInstance | undefined;
|
|
1172
1191
|
declare function useBackgroundActionHistory(instanceKey: string): BackgroundActionInstance[];
|
|
1173
1192
|
//#endregion
|
|
@@ -1179,7 +1198,7 @@ interface BaseAnnotationCreatorProps {
|
|
|
1179
1198
|
resource: CreatableResource;
|
|
1180
1199
|
onCreate: () => void;
|
|
1181
1200
|
}
|
|
1182
|
-
declare function BaseAnnotationCreator(props: BaseAnnotationCreatorProps):
|
|
1201
|
+
declare function BaseAnnotationCreator(props: BaseAnnotationCreatorProps): import("react").JSX.Element;
|
|
1183
1202
|
//#endregion
|
|
1184
1203
|
//#region src/BaseCreator/BaseCreator.hooks.d.ts
|
|
1185
1204
|
declare function useCreator(parent: any, property: string, type: string, target?: Reference, options?: {
|
|
@@ -1197,37 +1216,35 @@ declare function useCreator(parent: any, property: string, type: string, target?
|
|
|
1197
1216
|
declare function useInlineCreator(): Creator;
|
|
1198
1217
|
//#endregion
|
|
1199
1218
|
//#region src/BaseCreator/CreatorInitialData.d.ts
|
|
1200
|
-
declare function useInitialData<T
|
|
1201
|
-
declare function CreatorInitialData<T
|
|
1219
|
+
declare function useInitialData<T = unknown>(id: string): T | {};
|
|
1220
|
+
declare function CreatorInitialData<T extends Record<string, unknown>>(props: {
|
|
1202
1221
|
id: string;
|
|
1203
1222
|
children: React.ReactNode;
|
|
1204
|
-
data: T
|
|
1205
|
-
}):
|
|
1223
|
+
data: T;
|
|
1224
|
+
}): import("react").JSX.Element;
|
|
1206
1225
|
//#endregion
|
|
1207
1226
|
//#region src/BaseEditor/index.d.ts
|
|
1208
1227
|
declare const baseEditor: LayoutPanel;
|
|
1209
1228
|
//#endregion
|
|
1210
1229
|
//#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;
|
|
1230
|
+
declare function BaseEditorBackButton({ fallback, backAction }: any): any;
|
|
1231
|
+
declare function BaseEditorCloseButton({ closeAction, fallback }: any): any;
|
|
1219
1232
|
declare function editBasedOnResource(resource: EditableResource, list: ResourceDefinition[], options: {
|
|
1220
1233
|
edit?: boolean;
|
|
1221
1234
|
vault: Vault$1;
|
|
1222
1235
|
}, config: EditorConfig): ResourceDefinition | null;
|
|
1223
|
-
declare function BaseEditor({
|
|
1224
|
-
currentTab
|
|
1225
|
-
}: {
|
|
1236
|
+
declare function BaseEditor({ currentTab }: {
|
|
1226
1237
|
currentTab?: string;
|
|
1227
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean |
|
|
1238
|
+
}): 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
1239
|
//#endregion
|
|
1229
1240
|
//#region src/ConfigContext/ConfigEditor.d.ts
|
|
1230
|
-
declare function ConfigEditor():
|
|
1241
|
+
declare function ConfigEditor(): import("react").JSX.Element;
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region src/ConfigContext/CreatorSettings.d.ts
|
|
1244
|
+
declare function CreatorSettings(): import("react").JSX.Element;
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region src/ConfigContext/IIIFOptions.d.ts
|
|
1247
|
+
declare function IIIFOptions(): import("react").JSX.Element;
|
|
1231
1248
|
//#endregion
|
|
1232
1249
|
//#region src/ContextMenu/ContextMenuContext.d.ts
|
|
1233
1250
|
type ContextMenuItem = {
|
|
@@ -1276,12 +1293,10 @@ type ContextMenuStore = {
|
|
|
1276
1293
|
}>;
|
|
1277
1294
|
hookMenuItem(req: ContextMenuRequest): () => void;
|
|
1278
1295
|
};
|
|
1279
|
-
declare const ContextMenuReactContext:
|
|
1280
|
-
declare function ContextMenuProvider({
|
|
1281
|
-
children
|
|
1282
|
-
}: {
|
|
1296
|
+
declare const ContextMenuReactContext: import("react").Context<StoreApi<ContextMenuStore> | null>;
|
|
1297
|
+
declare function ContextMenuProvider({ children }: {
|
|
1283
1298
|
children: React.ReactNode;
|
|
1284
|
-
}):
|
|
1299
|
+
}): import("react").JSX.Element;
|
|
1285
1300
|
declare function useResourceContextMenuItems(req: {
|
|
1286
1301
|
id?: string;
|
|
1287
1302
|
type: string;
|
|
@@ -1292,24 +1307,24 @@ declare function useResourceContextMenuItems(req: {
|
|
|
1292
1307
|
declare function useCustomContextMenu(req: ContextMenuRequest, deps?: any[]): void;
|
|
1293
1308
|
//#endregion
|
|
1294
1309
|
//#region src/EditingStack/EditingStack.d.ts
|
|
1295
|
-
declare const EditingStackContext:
|
|
1310
|
+
declare const EditingStackContext: import("react").Context<EditingStackState>;
|
|
1296
1311
|
declare function useEditingStack(): EditingStackActions;
|
|
1297
1312
|
declare function useEditingResource(): EditableResource | null;
|
|
1298
1313
|
declare function useEditingResourceStack(): EditableResource[];
|
|
1299
1314
|
declare function useCreatingResource(): {
|
|
1300
|
-
resource:
|
|
1315
|
+
resource: import("@manifest-editor/creator-api").CreatableResource;
|
|
1301
1316
|
options: any;
|
|
1302
1317
|
} | null;
|
|
1303
|
-
declare function useManifestEditor(): EditorInstance<Partial<
|
|
1304
|
-
declare function useCollectionEditor(): EditorInstance<Partial<
|
|
1318
|
+
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>>;
|
|
1319
|
+
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
1320
|
declare function useGenericEditor(ref: Reference<any> | SpecificResource | undefined, ctx?: {
|
|
1306
1321
|
parent?: Reference;
|
|
1307
1322
|
parentProperty?: string;
|
|
1308
1323
|
index?: number;
|
|
1309
1324
|
allowNull?: boolean;
|
|
1310
|
-
}): EditorInstance<Partial<
|
|
1311
|
-
declare function useAnnotationPageEditor(): EditorInstance<Partial<
|
|
1312
|
-
declare function useEditor(): EditorInstance<Partial<
|
|
1325
|
+
}): 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>>;
|
|
1326
|
+
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>>;
|
|
1327
|
+
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
1328
|
declare function EditingStack(props: {
|
|
1314
1329
|
children?: any;
|
|
1315
1330
|
initialState?: EditingStackState;
|
|
@@ -1317,24 +1332,21 @@ declare function EditingStack(props: {
|
|
|
1317
1332
|
id: string;
|
|
1318
1333
|
type: string;
|
|
1319
1334
|
};
|
|
1320
|
-
}):
|
|
1321
|
-
declare function InlineEditingStack({
|
|
1322
|
-
resource,
|
|
1323
|
-
children
|
|
1324
|
-
}: {
|
|
1335
|
+
}): import("react").JSX.Element;
|
|
1336
|
+
declare function InlineEditingStack({ resource, children }: {
|
|
1325
1337
|
resource: {
|
|
1326
1338
|
id: string;
|
|
1327
1339
|
type: string;
|
|
1328
1340
|
};
|
|
1329
1341
|
children?: React.ReactNode;
|
|
1330
|
-
}):
|
|
1342
|
+
}): import("react").JSX.Element;
|
|
1331
1343
|
//#endregion
|
|
1332
1344
|
//#region src/ExportPanel/ExportPanel.d.ts
|
|
1333
1345
|
interface ExportPanelProps {
|
|
1334
1346
|
initialVersion?: 2 | 3;
|
|
1335
1347
|
versions?: Array<2 | 3>;
|
|
1336
1348
|
}
|
|
1337
|
-
declare function ExportPanel(props: ExportPanelProps):
|
|
1349
|
+
declare function ExportPanel(props: ExportPanelProps): import("react").JSX.Element;
|
|
1338
1350
|
//#endregion
|
|
1339
1351
|
//#region src/helpers.d.ts
|
|
1340
1352
|
declare function getManifestNomalized(id: string): Promise<ManifestNormalized | undefined>;
|
|
@@ -1343,6 +1355,7 @@ declare function createDownload(data: any, fileName: string, fileType?: string):
|
|
|
1343
1355
|
declare function copyToClipboard(json: string | any): Promise<void>;
|
|
1344
1356
|
declare function randomId(): string;
|
|
1345
1357
|
declare function mapApp(input: any, map?: (app: MappedApp) => MappedApp): MappedApp;
|
|
1358
|
+
declare function mergePresetConfig(base: MappedApp["preset"] | undefined, override: MappedApp["preset"] | undefined): MappedApp["preset"] | undefined;
|
|
1346
1359
|
declare function extendApp(app: MappedApp, metadata: MappedApp["metadata"], extensions: AppExtension): MappedApp;
|
|
1347
1360
|
//#endregion
|
|
1348
1361
|
//#region src/highlighted-image-resources.d.ts
|
|
@@ -1360,7 +1373,7 @@ interface HighlightedImageResources {
|
|
|
1360
1373
|
highlight: (id: string) => void;
|
|
1361
1374
|
clearHighlight: (id: string) => void;
|
|
1362
1375
|
}
|
|
1363
|
-
declare const useHighlightedImageResource:
|
|
1376
|
+
declare const useHighlightedImageResource: import("zustand").UseBoundStore<import("zustand").StoreApi<HighlightedImageResources>>;
|
|
1364
1377
|
declare function useTemporaryHighlight(newValue?: Projection | null): void;
|
|
1365
1378
|
declare function useHoverHighlightImageResource(id?: string): {
|
|
1366
1379
|
onMouseEnter(): void;
|
|
@@ -1368,12 +1381,7 @@ declare function useHoverHighlightImageResource(id?: string): {
|
|
|
1368
1381
|
};
|
|
1369
1382
|
//#endregion
|
|
1370
1383
|
//#region src/hooks/use-annotation-creator-state.d.ts
|
|
1371
|
-
declare function useAnnotationCreatorState<Type = any>({
|
|
1372
|
-
key,
|
|
1373
|
-
initialValue,
|
|
1374
|
-
requestId,
|
|
1375
|
-
getInitialValue
|
|
1376
|
-
}: {
|
|
1384
|
+
declare function useAnnotationCreatorState<Type = any>({ key, initialValue, requestId, getInitialValue }: {
|
|
1377
1385
|
key: string;
|
|
1378
1386
|
initialValue?: Type;
|
|
1379
1387
|
requestId?: string;
|
|
@@ -1387,14 +1395,11 @@ declare function useDecayState(time: number): readonly [boolean, {
|
|
|
1387
1395
|
}];
|
|
1388
1396
|
//#endregion
|
|
1389
1397
|
//#region src/hooks/use-event.d.ts
|
|
1390
|
-
declare const ReactEmitterContext:
|
|
1391
|
-
declare function EventEmitterProvider({
|
|
1392
|
-
children,
|
|
1393
|
-
emitter
|
|
1394
|
-
}: {
|
|
1398
|
+
declare const ReactEmitterContext: import("react").Context<Emitter<any>>;
|
|
1399
|
+
declare function EventEmitterProvider({ children, emitter }: {
|
|
1395
1400
|
children: React.ReactNode;
|
|
1396
1401
|
emitter: Emitter<any>;
|
|
1397
|
-
}):
|
|
1402
|
+
}): import("react").JSX.Element;
|
|
1398
1403
|
declare function useEmitter<Event extends Record<string | symbol, unknown>>(): Emitter<Event>;
|
|
1399
1404
|
declare function useEvent<Event extends Record<string | symbol, unknown>, Key extends keyof Event>(key: Key, listener: (data: Event[Key]) => void, deps?: any[]): void;
|
|
1400
1405
|
//#endregion
|
|
@@ -1408,8 +1413,8 @@ declare function useSaveVault(vault: Vault$1, saveChanges: () => void, saveInter
|
|
|
1408
1413
|
//#endregion
|
|
1409
1414
|
//#region src/hooks/use-svg-tools.d.ts
|
|
1410
1415
|
declare function useSvgTools(): {
|
|
1411
|
-
currentTool:
|
|
1412
|
-
selectedStamp:
|
|
1416
|
+
currentTool: import("polygon-editor").ValidTools;
|
|
1417
|
+
selectedStamp: import("polygon-editor").InputShape | null;
|
|
1413
1418
|
draw: {
|
|
1414
1419
|
active: boolean;
|
|
1415
1420
|
enable: () => void;
|
|
@@ -1449,14 +1454,14 @@ declare function useSvgTools(): {
|
|
|
1449
1454
|
};
|
|
1450
1455
|
//#endregion
|
|
1451
1456
|
//#region src/Layout/components/HandleControls.d.ts
|
|
1452
|
-
declare const HandleContainer:
|
|
1453
|
-
declare const HandleControls:
|
|
1457
|
+
declare const HandleContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1458
|
+
declare const HandleControls: import("react").ForwardRefExoticComponent<{
|
|
1454
1459
|
dir: "left" | "right";
|
|
1455
1460
|
open: boolean;
|
|
1456
1461
|
actions: PanelActions;
|
|
1457
1462
|
transition?: TransitionStatus;
|
|
1458
1463
|
reset?: () => void;
|
|
1459
|
-
} &
|
|
1464
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1460
1465
|
//#endregion
|
|
1461
1466
|
//#region src/Layout/components/ModularPanel.d.ts
|
|
1462
1467
|
interface ModularPanelProps {
|
|
@@ -1467,34 +1472,24 @@ interface ModularPanelProps {
|
|
|
1467
1472
|
pinActions?: PinnablePanelActions;
|
|
1468
1473
|
transition?: TransitionStatus;
|
|
1469
1474
|
noHeader?: boolean;
|
|
1475
|
+
isModal?: boolean;
|
|
1470
1476
|
close?: () => void;
|
|
1471
1477
|
available?: LayoutPanel[];
|
|
1472
1478
|
style?: any;
|
|
1473
1479
|
}
|
|
1474
1480
|
declare function useSetCustomTitle(): (title: string) => void;
|
|
1475
|
-
declare const ModularPanelHeader:
|
|
1481
|
+
declare const ModularPanelHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1476
1482
|
$tabs?: boolean;
|
|
1477
1483
|
$error?: boolean;
|
|
1478
1484
|
}>>;
|
|
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_runtime5.JSX.Element | null;
|
|
1485
|
+
declare const ModulePanelButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
1486
|
+
declare function ModularPanel({ panel, state, actions, isLeft, pinActions, transition, close, available, style, noHeader, isModal }: ModularPanelProps): import("react").JSX.Element | null;
|
|
1492
1487
|
//#endregion
|
|
1493
1488
|
//#region src/Layout/components/PanelError.d.ts
|
|
1494
1489
|
declare function PanelError(props: {
|
|
1495
1490
|
error: Error;
|
|
1496
1491
|
resetErrorBoundary: () => void;
|
|
1497
|
-
}):
|
|
1492
|
+
}): import("react").JSX.Element;
|
|
1498
1493
|
//#endregion
|
|
1499
1494
|
//#region src/Layout/Layout.d.ts
|
|
1500
1495
|
interface LayoutRenderProps {
|
|
@@ -1514,12 +1509,12 @@ interface LayoutRenderProps {
|
|
|
1514
1509
|
disableSideEffects?: string[];
|
|
1515
1510
|
layoutMode?: "default" | "focused";
|
|
1516
1511
|
}
|
|
1517
|
-
declare const Layout:
|
|
1512
|
+
declare const Layout: import("react").MemoExoticComponent<(props: LayoutRenderProps) => import("react").JSX.Element | null>;
|
|
1518
1513
|
//#endregion
|
|
1519
1514
|
//#region src/Layout/Layout.context.d.ts
|
|
1520
|
-
declare const LayoutActionsReactContext:
|
|
1521
|
-
declare const LayoutStateReactContext:
|
|
1522
|
-
declare const LayoutModeReactContext:
|
|
1515
|
+
declare const LayoutActionsReactContext: import("react").Context<LayoutActions>;
|
|
1516
|
+
declare const LayoutStateReactContext: import("react").Context<LayoutState>;
|
|
1517
|
+
declare const LayoutModeReactContext: import("react").Context<"default" | "focused">;
|
|
1523
1518
|
declare function useLayoutState(): LayoutState;
|
|
1524
1519
|
declare function useLayoutActions(): LayoutActions;
|
|
1525
1520
|
declare function useLayoutMode(): "default" | "focused";
|
|
@@ -1532,11 +1527,7 @@ declare function useLayoutProvider(): LayoutProviderProps & {
|
|
|
1532
1527
|
//#endregion
|
|
1533
1528
|
//#region src/Layout/Layout.helpers.d.ts
|
|
1534
1529
|
declare function isPinnableState(t: unknown): t is PinnablePanelState;
|
|
1535
|
-
declare function panelSizing({
|
|
1536
|
-
initial,
|
|
1537
|
-
fallback,
|
|
1538
|
-
options
|
|
1539
|
-
}: {
|
|
1530
|
+
declare function panelSizing({ initial, fallback, options }: {
|
|
1540
1531
|
initial?: number;
|
|
1541
1532
|
fallback: number;
|
|
1542
1533
|
options?: {
|
|
@@ -1564,25 +1555,15 @@ interface ManifestPaginationNavigationProps {
|
|
|
1564
1555
|
className?: string;
|
|
1565
1556
|
variant?: "light" | "dark";
|
|
1566
1557
|
}
|
|
1567
|
-
declare function ManifestPaginationNavigation({
|
|
1568
|
-
className,
|
|
1569
|
-
variant
|
|
1570
|
-
}: ManifestPaginationNavigationProps): react_jsx_runtime5.JSX.Element;
|
|
1558
|
+
declare function ManifestPaginationNavigation({ className, variant }: ManifestPaginationNavigationProps): import("react").JSX.Element;
|
|
1571
1559
|
//#endregion
|
|
1572
1560
|
//#region src/PluginContext/PluginContext.d.ts
|
|
1573
|
-
declare const PluginReactContext:
|
|
1574
|
-
declare const PluginGlobalConfigReactContext:
|
|
1561
|
+
declare const PluginReactContext: import("react").Context<StoreApi<PluginStore> | null>;
|
|
1562
|
+
declare const PluginGlobalConfigReactContext: import("react").Context<{
|
|
1575
1563
|
globalPluginConfig?: Config["plugins"];
|
|
1576
1564
|
saveGlobalPluginConfig?: (config: Config["plugins"]) => void | Promise<void>;
|
|
1577
1565
|
}>;
|
|
1578
|
-
declare function PluginProvider({
|
|
1579
|
-
plugins,
|
|
1580
|
-
enabled,
|
|
1581
|
-
disabled,
|
|
1582
|
-
globalPluginConfig,
|
|
1583
|
-
saveGlobalPluginConfig,
|
|
1584
|
-
children
|
|
1585
|
-
}: {
|
|
1566
|
+
declare function PluginProvider({ plugins, enabled, disabled, globalPluginConfig, saveGlobalPluginConfig, children }: {
|
|
1586
1567
|
plugins: PluginInput[];
|
|
1587
1568
|
enabled?: string[];
|
|
1588
1569
|
disabled?: string[];
|
|
@@ -1601,24 +1582,22 @@ declare function usePluginActions(): {
|
|
|
1601
1582
|
setGlobalAppConfig(appId: string, config: PluginAppConfig): void;
|
|
1602
1583
|
};
|
|
1603
1584
|
declare function usePluginRuntimeApi(appId?: string): PluginRuntimeApi;
|
|
1604
|
-
declare function usePluginSettings<T
|
|
1605
|
-
declare function usePluginConfigApi<T
|
|
1585
|
+
declare function usePluginSettings<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string, appId?: string): T;
|
|
1586
|
+
declare function usePluginConfigApi<T extends PluginSettingsValue = PluginSettingsValue>(pluginId: string, appId?: string): {
|
|
1606
1587
|
plugin: MappedPlugin | null;
|
|
1607
1588
|
appId: string;
|
|
1608
|
-
defaults: T
|
|
1609
|
-
global: T
|
|
1610
|
-
workspace: T
|
|
1611
|
-
effective: T
|
|
1589
|
+
defaults: T;
|
|
1590
|
+
global: T;
|
|
1591
|
+
workspace: T;
|
|
1592
|
+
effective: T;
|
|
1612
1593
|
canSaveGlobal: boolean;
|
|
1613
|
-
setWorkspaceSettings: (settings: T
|
|
1594
|
+
setWorkspaceSettings: (settings: T) => void;
|
|
1614
1595
|
resetWorkspaceSettings: () => void;
|
|
1615
|
-
setGlobalSettings: (settings: T
|
|
1596
|
+
setGlobalSettings: (settings: T) => Promise<void>;
|
|
1616
1597
|
resetGlobalSettings: () => Promise<void>;
|
|
1617
1598
|
};
|
|
1618
1599
|
declare function useResolvedPluginApp(definition: MappedApp, appId: string): MappedApp;
|
|
1619
|
-
declare function PluginConfigBridge({
|
|
1620
|
-
config
|
|
1621
|
-
}: {
|
|
1600
|
+
declare function PluginConfigBridge({ config }: {
|
|
1622
1601
|
config?: Partial<Config>;
|
|
1623
1602
|
}): null;
|
|
1624
1603
|
//#endregion
|
|
@@ -1644,11 +1623,11 @@ declare function getPluginCompatibilityReason(plugin: MappedPlugin, app?: Plugin
|
|
|
1644
1623
|
declare function isPluginSelected(plugin: MappedPlugin, state: PluginStoreSnapshot, appId?: string | null): boolean;
|
|
1645
1624
|
declare function getPluginSelectionSource(plugin: MappedPlugin, state: PluginStoreSnapshot, appId?: string | null): PluginConfigScope | "provider" | "default";
|
|
1646
1625
|
declare function getEnabledPluginsForApp(state: PluginStoreSnapshot, app?: PluginHostApp | null, appId?: string | null): MappedPlugin[];
|
|
1647
|
-
declare function getPluginSettingsFromConfig<T
|
|
1648
|
-
declare function setPluginSettingsInConfig<T
|
|
1626
|
+
declare function getPluginSettingsFromConfig<T extends PluginSettingsValue = PluginSettingsValue>(config: PluginAppConfig | undefined, pluginId: string): Partial<T>;
|
|
1627
|
+
declare function setPluginSettingsInConfig<T extends PluginSettingsValue = PluginSettingsValue>(config: PluginAppConfig | undefined, pluginId: string, settings: T): PluginAppConfig;
|
|
1649
1628
|
declare function resetPluginSettingsInConfig(config: PluginAppConfig | undefined, pluginId: string): PluginAppConfig;
|
|
1650
|
-
declare function getPluginDefaultSettings<T
|
|
1651
|
-
declare function getEffectivePluginSettings<T
|
|
1629
|
+
declare function getPluginDefaultSettings<T extends PluginSettingsValue = PluginSettingsValue>(plugin?: MappedPlugin): T;
|
|
1630
|
+
declare function getEffectivePluginSettings<T extends PluginSettingsValue = PluginSettingsValue>(state: PluginStoreSnapshot, pluginId: string, appId?: string | null): T;
|
|
1652
1631
|
declare function createPluginRuntimeApi(state: PluginStoreSnapshot, appId?: string | null): PluginRuntimeApi;
|
|
1653
1632
|
declare function enablePluginAndDependenciesInConfig(config: PluginAppConfig, state: PluginStoreSnapshot, plugin: MappedPlugin, app?: PluginHostApp | null, appId?: string | null): {
|
|
1654
1633
|
config: PluginAppConfig;
|
|
@@ -1658,42 +1637,73 @@ declare function enablePluginAndDependenciesInConfig(config: PluginAppConfig, st
|
|
|
1658
1637
|
declare function applyPlugins(app: MappedApp, plugins: MappedPlugin[], appId?: string): MappedApp;
|
|
1659
1638
|
//#endregion
|
|
1660
1639
|
//#region src/PluginContext/PluginContext.store.d.ts
|
|
1661
|
-
declare function createPluginStore({
|
|
1662
|
-
plugins,
|
|
1663
|
-
enabled,
|
|
1664
|
-
disabled,
|
|
1665
|
-
globalPluginConfig
|
|
1666
|
-
}?: {
|
|
1640
|
+
declare function createPluginStore({ plugins, enabled, disabled, globalPluginConfig }?: {
|
|
1667
1641
|
plugins?: MappedPlugin[];
|
|
1668
1642
|
enabled?: string[];
|
|
1669
1643
|
disabled?: string[];
|
|
1670
1644
|
globalPluginConfig?: Config["plugins"];
|
|
1671
|
-
}):
|
|
1645
|
+
}): import("zustand").StoreApi<PluginStore>;
|
|
1672
1646
|
//#endregion
|
|
1673
1647
|
//#region src/PluginContext/PluginManager.d.ts
|
|
1674
|
-
declare function PluginManager():
|
|
1648
|
+
declare function PluginManager(): import("react").JSX.Element | null;
|
|
1675
1649
|
//#endregion
|
|
1676
1650
|
//#region src/PreviewButton/PreviewButton.d.ts
|
|
1677
|
-
declare function
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1651
|
+
declare function hasPreviewOption(configCount: number, preview?: PresetPreviewOptions): boolean;
|
|
1652
|
+
declare function PreviewButton({ downloadEnabled, fileName, preview }: {
|
|
1653
|
+
downloadEnabled?: boolean;
|
|
1654
|
+
fileName?: string;
|
|
1655
|
+
preview?: PresetPreviewOptions;
|
|
1656
|
+
}): import("react").JSX.Element;
|
|
1657
|
+
//#endregion
|
|
1658
|
+
//#region src/PreviewButton/PreviewButton.styles.d.ts
|
|
1659
|
+
declare const ButtonContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1660
|
+
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>>);
|
|
1661
|
+
declare const ButtonChange: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
|
|
1662
|
+
$open: boolean;
|
|
1663
|
+
}>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<any, {
|
|
1664
|
+
$open: boolean;
|
|
1665
|
+
}>> & Omit<any, keyof import("react").Component<any, {}, any>>);
|
|
1666
|
+
declare const MenuContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1667
|
+
$open: boolean;
|
|
1668
|
+
}>>;
|
|
1669
|
+
declare const MenuItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1670
|
+
declare const MenuItemStatus: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1671
|
+
$status: "available" | "configured" | "active";
|
|
1672
|
+
}>>;
|
|
1673
|
+
declare const MenuItemLabel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1674
|
+
declare const MenuItemClose: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1675
|
+
declare const ButtonEmpty: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1676
|
+
//#endregion
|
|
1677
|
+
//#region src/PresetOnboarding/PresetOnboarding.d.ts
|
|
1678
|
+
declare function getPresetOnboardingDismissalKey(onboarding: {
|
|
1679
|
+
id: string;
|
|
1680
|
+
mode: "global" | "per-resource";
|
|
1681
|
+
}, resource?: {
|
|
1682
|
+
id: string;
|
|
1683
|
+
type: string;
|
|
1684
|
+
}): string;
|
|
1685
|
+
declare function useOpenPresetOnboarding(): () => boolean;
|
|
1686
|
+
declare function PresetOnboardingButton({ className }: {
|
|
1687
|
+
className?: string;
|
|
1688
|
+
}): import("react").JSX.Element | null;
|
|
1689
|
+
declare function PresetPreviewButton(props: {
|
|
1681
1690
|
downloadEnabled?: boolean;
|
|
1682
1691
|
fileName?: string;
|
|
1683
|
-
}):
|
|
1692
|
+
}): 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;
|
|
1693
|
+
declare function PresetOnboarding(): import("react").JSX.Element | null;
|
|
1684
1694
|
//#endregion
|
|
1685
1695
|
//#region src/PreviewContext/PreviewContext.d.ts
|
|
1686
|
-
declare const PreviewProvider:
|
|
1696
|
+
declare const PreviewProvider: import("react").MemoExoticComponent<({ children, configs }: {
|
|
1687
1697
|
previews: Preview[];
|
|
1688
1698
|
children: ReactNode;
|
|
1689
1699
|
configs: PreviewConfiguration[];
|
|
1690
|
-
}>;
|
|
1700
|
+
}) => import("react").JSX.Element>;
|
|
1691
1701
|
declare function usePreviews(): Preview[];
|
|
1692
1702
|
declare function usePreviewContext(): PreviewContext;
|
|
1693
1703
|
//#endregion
|
|
1694
1704
|
//#region src/PreviewVault/create-preview-vault.d.ts
|
|
1695
1705
|
declare function createPreviewVault(homepageCollectionId?: string): {
|
|
1696
|
-
readonly vault: Vault
|
|
1706
|
+
readonly vault: Vault<import("@iiif/helpers").Vault3TypeMap>;
|
|
1697
1707
|
readonly unsubscribe: () => void;
|
|
1698
1708
|
readonly addHistory: (id: string, type: string) => void;
|
|
1699
1709
|
readonly clearHistory: () => void;
|
|
@@ -1712,7 +1722,7 @@ type VaultBridgeRegistry = {
|
|
|
1712
1722
|
declare function createIframeVaultBridge(vault: Vault, port: MessagePort): () => void;
|
|
1713
1723
|
//#endregion
|
|
1714
1724
|
//#region src/PreviewVault/PreviewVault.d.ts
|
|
1715
|
-
declare function usePreviewVault(): Vault
|
|
1725
|
+
declare function usePreviewVault(): Vault<import("@iiif/helpers").Vault3TypeMap>;
|
|
1716
1726
|
declare const HOMEPAGE_COLLECTION = "manifest-editor://homepage-collection.json";
|
|
1717
1727
|
declare function usePreviewHistory(): {
|
|
1718
1728
|
addHistory: (id: string, type: string) => void;
|
|
@@ -1720,25 +1730,47 @@ declare function usePreviewHistory(): {
|
|
|
1720
1730
|
};
|
|
1721
1731
|
declare function PreviewVaultContext(props: {
|
|
1722
1732
|
children: any;
|
|
1723
|
-
}):
|
|
1724
|
-
declare function PreviewVaultBoundary({
|
|
1725
|
-
children
|
|
1726
|
-
}: {
|
|
1733
|
+
}): import("react").JSX.Element;
|
|
1734
|
+
declare function PreviewVaultBoundary({ children }: {
|
|
1727
1735
|
children: any;
|
|
1728
|
-
}):
|
|
1736
|
+
}): import("react").JSX.Element;
|
|
1737
|
+
//#endregion
|
|
1738
|
+
//#region src/PreviewWindow/PreviewWindowContext.d.ts
|
|
1739
|
+
type PreviewWindowOptions = {
|
|
1740
|
+
url: string;
|
|
1741
|
+
resource: {
|
|
1742
|
+
id: string;
|
|
1743
|
+
type: string;
|
|
1744
|
+
};
|
|
1745
|
+
canvasId?: string | null;
|
|
1746
|
+
annotationId?: string | null;
|
|
1747
|
+
name?: string;
|
|
1748
|
+
features?: string;
|
|
1749
|
+
reloadKey?: string;
|
|
1750
|
+
};
|
|
1751
|
+
type PreviewWindowContextValue = {
|
|
1752
|
+
open: (options: PreviewWindowOptions) => void;
|
|
1753
|
+
update: (options: PreviewWindowOptions) => void;
|
|
1754
|
+
focus: () => void;
|
|
1755
|
+
isClosed: boolean;
|
|
1756
|
+
};
|
|
1757
|
+
declare function PreviewWindowProvider({ children }: {
|
|
1758
|
+
children: ReactNode;
|
|
1759
|
+
}): import("react").JSX.Element;
|
|
1760
|
+
declare function usePreviewWindow(): PreviewWindowContextValue;
|
|
1729
1761
|
//#endregion
|
|
1730
1762
|
//#region src/ResourceEditingContext/ResourceEditingContext.d.ts
|
|
1731
1763
|
interface ResourceEditingContext {
|
|
1732
1764
|
resource: Reference<any> | null;
|
|
1733
1765
|
}
|
|
1734
|
-
declare const ResourceEditingReactContext:
|
|
1766
|
+
declare const ResourceEditingReactContext: import("react").Context<ResourceEditingContext>;
|
|
1735
1767
|
declare function useEditingContext(): ResourceEditingContext;
|
|
1736
1768
|
/**
|
|
1737
1769
|
* useResource
|
|
1738
1770
|
*
|
|
1739
1771
|
* Only use this if you KNOW that there is a resource (e.g. in a panel)
|
|
1740
1772
|
*/
|
|
1741
|
-
declare function useResource<T
|
|
1773
|
+
declare function useResource<T = Record<string, never>>(): T & Reference<any>;
|
|
1742
1774
|
/**
|
|
1743
1775
|
* useOptionalResource
|
|
1744
1776
|
*
|
|
@@ -1748,28 +1780,16 @@ declare function useOptionalResource(): {
|
|
|
1748
1780
|
type: any;
|
|
1749
1781
|
id: string;
|
|
1750
1782
|
} | null;
|
|
1751
|
-
declare function ResourceEditingProvider({
|
|
1752
|
-
resource,
|
|
1753
|
-
children
|
|
1754
|
-
}: {
|
|
1783
|
+
declare function ResourceEditingProvider({ resource, children }: {
|
|
1755
1784
|
resource: {
|
|
1756
1785
|
id: string;
|
|
1757
1786
|
type: string;
|
|
1758
1787
|
} | null | undefined;
|
|
1759
1788
|
children: ReactNode;
|
|
1760
|
-
}):
|
|
1789
|
+
}): import("react").JSX.Element;
|
|
1761
1790
|
//#endregion
|
|
1762
1791
|
//#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
|
-
}: {
|
|
1792
|
+
declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, editing, backgroundActionPersistence }: {
|
|
1773
1793
|
resource: Resource;
|
|
1774
1794
|
config?: Partial<Config>;
|
|
1775
1795
|
saveConfig?: (config: Partial<Config>) => void;
|
|
@@ -1781,7 +1801,7 @@ declare function ShellProvider({
|
|
|
1781
1801
|
type: string;
|
|
1782
1802
|
};
|
|
1783
1803
|
backgroundActionPersistence?: BackgroundActionPersistence | false | null;
|
|
1784
|
-
}):
|
|
1804
|
+
}): import("react").JSX.Element;
|
|
1785
1805
|
//#endregion
|
|
1786
1806
|
//#region src/SpecificationContext/SpecificationContext.types.d.ts
|
|
1787
1807
|
type SpecificationEntityType = "Collection" | "Manifest" | "Canvas" | "Range" | "AnnotationPage" | "Annotation" | "ContentResource" | "Agent";
|
|
@@ -1900,13 +1920,10 @@ type SpecificationPropertyPolicy = {
|
|
|
1900
1920
|
};
|
|
1901
1921
|
//#endregion
|
|
1902
1922
|
//#region src/SpecificationContext/SpecificationContext.d.ts
|
|
1903
|
-
declare function SpecificationProvider({
|
|
1904
|
-
children,
|
|
1905
|
-
specifications
|
|
1906
|
-
}: {
|
|
1923
|
+
declare function SpecificationProvider({ children, specifications }: {
|
|
1907
1924
|
children: ReactNode;
|
|
1908
1925
|
specifications?: ManifestEditorSpecification[];
|
|
1909
|
-
}):
|
|
1926
|
+
}): import("react").JSX.Element;
|
|
1910
1927
|
declare function useSpecifications(): ManifestEditorSpecification[];
|
|
1911
1928
|
declare function useSpecificationReport(rootRef?: Reference): SpecificationReport;
|
|
1912
1929
|
declare function useSpecificationTerminology(): {
|
|
@@ -1948,11 +1965,9 @@ declare function useTask(name: string): Task<any, any>;
|
|
|
1948
1965
|
declare function useTaskEvent<Req = any, Res = any>(task: Task<Req, Res>, name: string, _cb: (task: Task<Req, Res>) => any): void;
|
|
1949
1966
|
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
1967
|
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
|
-
}: {
|
|
1968
|
+
declare function TaskBridge({ children }: {
|
|
1954
1969
|
children?: ReactNode;
|
|
1955
|
-
}):
|
|
1970
|
+
}): import("react").JSX.Element;
|
|
1956
1971
|
//#endregion
|
|
1957
1972
|
//#region src/Toast/ToastContext.d.ts
|
|
1958
1973
|
type ToastVariant = ToastVariant$1;
|
|
@@ -1969,15 +1984,12 @@ interface ToastProviderProps {
|
|
|
1969
1984
|
children: ReactNode;
|
|
1970
1985
|
maxVisibleToasts?: number;
|
|
1971
1986
|
}
|
|
1972
|
-
declare function ToastProvider({
|
|
1973
|
-
children,
|
|
1974
|
-
maxVisibleToasts
|
|
1975
|
-
}: ToastProviderProps): react_jsx_runtime5.JSX.Element;
|
|
1987
|
+
declare function ToastProvider({ children, maxVisibleToasts }: ToastProviderProps): import("react").JSX.Element;
|
|
1976
1988
|
declare function useToasts(): ToastApi;
|
|
1977
1989
|
//#endregion
|
|
1978
1990
|
//#region src/Universal/UniversalCopyPaste.types.d.ts
|
|
1979
|
-
interface UniversalCopyPasteProps<T
|
|
1980
|
-
as?: keyof JSX.IntrinsicElements |
|
|
1991
|
+
interface UniversalCopyPasteProps<T> {
|
|
1992
|
+
as?: keyof JSX.IntrinsicElements | React$1.ComponentType<T>;
|
|
1981
1993
|
children?: ReactNode;
|
|
1982
1994
|
reference?: Reference;
|
|
1983
1995
|
onReference?: (reference: Reference) => void;
|
|
@@ -1994,20 +2006,7 @@ interface UniversalCopyPasteProps<T$1> {
|
|
|
1994
2006
|
}
|
|
1995
2007
|
//#endregion
|
|
1996
2008
|
//#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_runtime5.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 };
|
|
2009
|
+
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;
|
|
2010
|
+
//#endregion
|
|
2011
|
+
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, IIIFOptions, 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
2012
|
//# sourceMappingURL=index.d.cts.map
|