@manifest-editor/manifest-preset 1.4.2 → 2.0.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/components-BXdAFfup.js +2 -0
- package/dist/components-BXdAFfup.js.map +1 -0
- package/dist/components-cGHI3B6O.cjs +1 -0
- package/dist/components.cjs +1 -378
- package/dist/components.d.cts +84 -63
- package/dist/components.d.cts.map +1 -0
- package/dist/components.d.ts +84 -63
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +1 -24
- package/dist/index.cjs +108 -432
- package/dist/index.css +688 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +31 -28
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +31 -28
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +120 -51
- package/dist/index.js.map +1 -0
- package/package.json +36 -37
- package/dist/chunk-SJ3QA4KN.js +0 -425
package/dist/components.d.ts
CHANGED
|
@@ -1,68 +1,89 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import * as _manifest_editor_shell0 from "@manifest-editor/shell";
|
|
2
|
+
import { LayoutPanel } from "@manifest-editor/shell";
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
|
+
import { SVGProps } from "react";
|
|
5
|
+
import * as _manifest_editor_editor_api0 from "@manifest-editor/editor-api";
|
|
6
|
+
import * as _iiif_presentation_32 from "@iiif/presentation-3";
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
//#region src/center-panels/manifest-overview.d.ts
|
|
9
|
+
declare function ManifestOverviewCenterPanel(): react_jsx_runtime1.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/left-panels/canvas-listing.d.ts
|
|
12
|
+
declare const CanvasListingIcon: ({
|
|
13
|
+
title,
|
|
14
|
+
titleId,
|
|
15
|
+
...props
|
|
16
|
+
}: SVGProps<SVGSVGElement> & {
|
|
17
|
+
title?: string;
|
|
18
|
+
titleId?: string;
|
|
19
|
+
}) => react_jsx_runtime1.JSX.Element;
|
|
20
|
+
declare function CanvasListing({
|
|
21
|
+
gridView,
|
|
22
|
+
onChangeGridView
|
|
23
|
+
}: {
|
|
24
|
+
gridView: boolean;
|
|
25
|
+
onChangeGridView: (gridView: boolean) => void;
|
|
26
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
17
27
|
declare function useEditCanvasItems(): {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
open: {
|
|
37
|
-
(id: string, state?: any): void;
|
|
38
|
-
(args: {
|
|
39
|
-
id: string;
|
|
40
|
-
state?: any;
|
|
41
|
-
stacked?: boolean;
|
|
42
|
-
unique?: boolean;
|
|
43
|
-
}): void;
|
|
28
|
+
canvas: _manifest_editor_shell0.EditableResource | undefined;
|
|
29
|
+
canvases: {
|
|
30
|
+
type: string;
|
|
31
|
+
id: string;
|
|
32
|
+
}[];
|
|
33
|
+
items: _manifest_editor_editor_api0.BaseReferenceListEditor<Partial<_iiif_presentation_32.DescriptiveProperties> & Partial<_iiif_presentation_32.TechnicalProperties> & Partial<_iiif_presentation_32.LinkingProperties> & Partial<_iiif_presentation_32.StructuralProperties<unknown>> & Partial<_iiif_presentation_32.NavPlaceExtension & _iiif_presentation_32.TextGranularityExtension>, {
|
|
34
|
+
type: string;
|
|
35
|
+
id: string;
|
|
36
|
+
}>;
|
|
37
|
+
canvasActions: {
|
|
38
|
+
readonly create: (index?: number, initialData?: any) => void;
|
|
39
|
+
readonly edit: (resource: any, index?: number) => void;
|
|
40
|
+
readonly createFiltered: (filter: string, index?: number, initialData?: any) => void;
|
|
41
|
+
readonly creator: (initialCreator: string, initialData?: any) => void;
|
|
42
|
+
readonly buttonProps: {
|
|
43
|
+
"data-action-id": string;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
};
|
|
46
|
+
open: {
|
|
47
|
+
(id: string, state?: any): void;
|
|
48
|
+
(args: {
|
|
49
|
+
id: string;
|
|
50
|
+
state?: any;
|
|
51
|
+
stacked?: boolean;
|
|
52
|
+
unique?: boolean;
|
|
53
|
+
}): void;
|
|
54
|
+
};
|
|
55
|
+
edit: (resource: _iiif_presentation_32.Reference | _iiif_presentation_32.SpecificResource, context?: Omit<_manifest_editor_shell0.EditableResource, "resource">, options?: {
|
|
56
|
+
reset?: boolean;
|
|
57
|
+
property?: string;
|
|
58
|
+
stacked?: boolean | undefined;
|
|
59
|
+
selectedTab?: string;
|
|
60
|
+
forceOpen?: boolean;
|
|
61
|
+
}) => void;
|
|
62
|
+
canCreateCanvas: any;
|
|
52
63
|
};
|
|
53
|
-
declare function CanvasGridView({
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
declare function CanvasGridView({
|
|
65
|
+
isEditing
|
|
66
|
+
}: {
|
|
67
|
+
isEditing: boolean;
|
|
68
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
69
|
+
declare function CanvasListView({
|
|
70
|
+
isEditing
|
|
71
|
+
}: {
|
|
72
|
+
isEditing: boolean;
|
|
73
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
74
|
+
declare function ListEditIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime1.JSX.Element;
|
|
75
|
+
declare function CanvasThumbnailsIcon(): react_jsx_runtime1.JSX.Element;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/left-panels/manifest.d.ts
|
|
78
|
+
declare function ManifestIcon({
|
|
79
|
+
title,
|
|
80
|
+
titleId,
|
|
81
|
+
...props
|
|
82
|
+
}: SVGProps<SVGSVGElement> & {
|
|
83
|
+
title?: string;
|
|
84
|
+
titleId?: string;
|
|
85
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
86
|
+
declare function ManifestPanel(): react_jsx_runtime1.JSX.Element;
|
|
87
|
+
//#endregion
|
|
68
88
|
export { CanvasGridView, CanvasListView, CanvasListing, CanvasListingIcon, CanvasThumbnailsIcon, ListEditIcon, ManifestIcon, ManifestOverviewCenterPanel, ManifestPanel, useEditCanvasItems };
|
|
89
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","names":[],"sources":["../src/center-panels/manifest-overview.tsx","../src/left-panels/canvas-listing.tsx","../src/left-panels/manifest.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBA4BgB,2BAAA,CAAA,GAA2B,kBAAA,CAAA,GAAA,CAAA;;;cCC9B;;;;GAIV,SAAS;;;MAAqD,kBAAA,CAAA,GAAA,CAAA;iBAuCjD,aAAA;;;;ED5CA,QAAA,EAAA,OAAA;;ICkDf,kBAAA,CAAA,GAAA,CAAA;iBAqDe,kBAAA,CAAA;EAtGH,MAAA,EAsGqB,uBAAA,CAAA,gBAAA,GA9EjC,SAAA;EAxB6B,QAAA,EAAA;IAAA,IAAA,EAAA,MAAA;IAIlB,EAAA,EAAA,MAAA;EAAT,CAAA,EAAA;EAA8D,KAAA,sDAAA,QAAA,6CAAA,UAAA,2CAAA,UAAA,yCAAA,UAAA,2CAAA,CAAA,OAAA,CAAA,CAAA,UAAA,yFAAA,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24 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CanvasGridView,
|
|
3
|
-
CanvasListView,
|
|
4
|
-
CanvasListing,
|
|
5
|
-
CanvasListingIcon,
|
|
6
|
-
CanvasThumbnailsIcon,
|
|
7
|
-
ListEditIcon,
|
|
8
|
-
ManifestIcon,
|
|
9
|
-
ManifestOverviewCenterPanel,
|
|
10
|
-
ManifestPanel,
|
|
11
|
-
useEditCanvasItems
|
|
12
|
-
} from "./chunk-SJ3QA4KN.js";
|
|
13
|
-
export {
|
|
14
|
-
CanvasGridView,
|
|
15
|
-
CanvasListView,
|
|
16
|
-
CanvasListing,
|
|
17
|
-
CanvasListingIcon,
|
|
18
|
-
CanvasThumbnailsIcon,
|
|
19
|
-
ListEditIcon,
|
|
20
|
-
ManifestIcon,
|
|
21
|
-
ManifestOverviewCenterPanel,
|
|
22
|
-
ManifestPanel,
|
|
23
|
-
useEditCanvasItems
|
|
24
|
-
};
|
|
1
|
+
import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,s as c,t as l}from"./components-BXdAFfup.js";export{i as CanvasGridView,e as CanvasListView,s as CanvasListing,c as CanvasListingIcon,t as CanvasThumbnailsIcon,a as ListEditIcon,l as ManifestIcon,r as ManifestOverviewCenterPanel,o as ManifestPanel,n as useEditCanvasItems};
|