@manifest-editor/creators 1.4.3 → 2.0.1-next.0.2841cdd
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/iiif-browser-form.lazy-3ZdoCwGA.cjs +1 -0
- package/dist/iiif-browser-form.lazy-C2OEJ-sB.js +2 -0
- package/dist/iiif-browser-form.lazy-C2OEJ-sB.js.map +1 -0
- package/dist/index.cjs +19 -2675
- package/dist/index.css +758 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +392 -292
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +392 -292
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -2526
- package/dist/index.js.map +1 -0
- package/dist/manifest-browser-form.lazy-ChGxMNuK.js +1 -0
- package/dist/manifest-browser-form.lazy-CyY_B4mJ.cjs +1 -0
- package/dist/manifest-browser-form.lazy-DnIXlrw4.cjs +1 -0
- package/dist/manifest-browser-form.lazy-WlvvR5FO.js +2 -0
- package/dist/manifest-browser-form.lazy-WlvvR5FO.js.map +1 -0
- package/package.json +28 -32
- package/dist/chunk-2B2F7X4A.js +0 -59
- package/dist/chunk-5YV7MYAZ.js +0 -60
- package/dist/chunk-7FSKLOVQ.js +0 -33
- package/dist/chunk-AVISJS46.js +0 -50
- package/dist/chunk-CYVZA2MU.js +0 -59
- package/dist/chunk-ES62IRNT.js +0 -50
- package/dist/chunk-KLSWX2QF.js +0 -38
- package/dist/chunk-PFQB3PNW.js +0 -47
- package/dist/chunk-S3JO5Y3Z.js +0 -50
- package/dist/chunk-W4PYM3PN.js +0 -59
- package/dist/iiif-browser-form.lazy-3EZNJN4M.js +0 -21
- package/dist/iiif-browser-form.lazy-3INAWCE5.js +0 -54
- package/dist/iiif-browser-form.lazy-3YUQOIEL.js +0 -21
- package/dist/iiif-browser-form.lazy-4CDWA6JD.js +0 -47
- package/dist/iiif-browser-form.lazy-4NX7YPGK.js +0 -57
- package/dist/iiif-browser-form.lazy-4X5LD2U4.js +0 -51
- package/dist/iiif-browser-form.lazy-5TF74M2Q.js +0 -48
- package/dist/iiif-browser-form.lazy-B2RXVKR5.js +0 -21
- package/dist/iiif-browser-form.lazy-BHX6TGDY.js +0 -58
- package/dist/iiif-browser-form.lazy-C72INDSJ.js +0 -57
- package/dist/iiif-browser-form.lazy-DCCYGD42.js +0 -35
- package/dist/iiif-browser-form.lazy-DKKTAIO5.js +0 -59
- package/dist/iiif-browser-form.lazy-DPRO7R2W.js +0 -59
- package/dist/iiif-browser-form.lazy-DU2NJUCE.js +0 -46
- package/dist/iiif-browser-form.lazy-DUTUHLUT.js +0 -50
- package/dist/iiif-browser-form.lazy-EJZ754MG.js +0 -42
- package/dist/iiif-browser-form.lazy-ENQRBLTJ.js +0 -21
- package/dist/iiif-browser-form.lazy-EREIP6PZ.js +0 -58
- package/dist/iiif-browser-form.lazy-FMKQQWDE.js +0 -33
- package/dist/iiif-browser-form.lazy-FOIWPPI7.js +0 -47
- package/dist/iiif-browser-form.lazy-FQDZQ3UW.js +0 -58
- package/dist/iiif-browser-form.lazy-G7TCZSC2.js +0 -58
- package/dist/iiif-browser-form.lazy-G7XAQYYG.js +0 -51
- package/dist/iiif-browser-form.lazy-GO6U6NE5.js +0 -32
- package/dist/iiif-browser-form.lazy-GVEEZX37.js +0 -33
- package/dist/iiif-browser-form.lazy-HBWB7QGF.js +0 -31
- package/dist/iiif-browser-form.lazy-HZ3M2DXT.js +0 -57
- package/dist/iiif-browser-form.lazy-I7KTYV3O.js +0 -57
- package/dist/iiif-browser-form.lazy-I7ZNZHID.js +0 -48
- package/dist/iiif-browser-form.lazy-IX5DFVDG.js +0 -47
- package/dist/iiif-browser-form.lazy-JMT72BLP.js +0 -59
- package/dist/iiif-browser-form.lazy-JX4S6NGX.js +0 -48
- package/dist/iiif-browser-form.lazy-KPB57B25.js +0 -21
- package/dist/iiif-browser-form.lazy-KTB4BQBM.js +0 -59
- package/dist/iiif-browser-form.lazy-KYOKLDRV.js +0 -47
- package/dist/iiif-browser-form.lazy-NDPLPCQQ.js +0 -43
- package/dist/iiif-browser-form.lazy-O35TC45U.js +0 -49
- package/dist/iiif-browser-form.lazy-OMDV43NQ.js +0 -51
- package/dist/iiif-browser-form.lazy-OQLU6NDJ.js +0 -51
- package/dist/iiif-browser-form.lazy-OXQVZ3GS.js +0 -59
- package/dist/iiif-browser-form.lazy-OZNQO2OO.js +0 -21
- package/dist/iiif-browser-form.lazy-PL3WMLU5.js +0 -33
- package/dist/iiif-browser-form.lazy-QR55LXI4.js +0 -21
- package/dist/iiif-browser-form.lazy-R5TMXUBV.js +0 -19
- package/dist/iiif-browser-form.lazy-RWEJWTIW.js +0 -21
- package/dist/iiif-browser-form.lazy-T6LT6BJD.js +0 -48
- package/dist/iiif-browser-form.lazy-TWQYATEG.js +0 -21
- package/dist/iiif-browser-form.lazy-UPZXU6JB.js +0 -51
- package/dist/iiif-browser-form.lazy-W42LJ6X2.js +0 -47
- package/dist/iiif-browser-form.lazy-WAK45BLF.js +0 -42
- package/dist/iiif-browser-form.lazy-WVCVE6XK.js +0 -21
- package/dist/iiif-browser-form.lazy-XORWZFSW.js +0 -49
- package/dist/manifest-browser-form.lazy-4CFTHOMZ.js +0 -6
- package/dist/manifest-browser-form.lazy-5JVKGB7O.js +0 -6
- package/dist/manifest-browser-form.lazy-ALVCNMEV.js +0 -6
- package/dist/manifest-browser-form.lazy-FI4GGCPX.js +0 -6
- package/dist/manifest-browser-form.lazy-HJJKFMR6.js +0 -6
- package/dist/manifest-browser-form.lazy-MYI26AX4.js +0 -6
- package/dist/manifest-browser-form.lazy-QGTJHSSC.js +0 -6
- package/dist/manifest-browser-form.lazy-WRWZPVRC.js +0 -6
- package/dist/manifest-browser-form.lazy-XVYSAQAW.js +0 -6
- package/dist/manifest-browser-form.lazy-YYKOYF7R.js +0 -6
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
supportedTypes: [
|
|
19
|
-
"Canvas",
|
|
20
|
-
"CanvasList",
|
|
21
|
-
"CanvasRegion",
|
|
22
|
-
"ImageService",
|
|
23
|
-
"ImageServiceRegion"
|
|
24
|
-
],
|
|
25
|
-
cb: (resource) => {
|
|
26
|
-
console.log("output", resource, props2.runCreate);
|
|
27
|
-
},
|
|
28
|
-
format: { type: "content-state" }
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
}, []);
|
|
32
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
33
|
-
IIIFBrowser,
|
|
34
|
-
{
|
|
35
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
36
|
-
output
|
|
37
|
-
}
|
|
38
|
-
) });
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
IIIFBrowserCreatorForm as default
|
|
42
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function IIIFBrowserCreatorForm(props) {
|
|
10
|
-
const vault = usePreviewVault();
|
|
11
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
12
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
13
|
-
IIIFBrowser,
|
|
14
|
-
{
|
|
15
|
-
className: "border-none border-t rounded-none h-[70vh]"
|
|
16
|
-
}
|
|
17
|
-
) });
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
IIIFBrowserCreatorForm as default
|
|
21
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import { Vault } from "@iiif/helpers";
|
|
3
|
-
import { PreviewVaultBoundary } from "@manifest-editor/shell";
|
|
4
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
5
|
-
import { useMemo } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
function IIIFBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Canvas", "CanvasList", "CanvasRegion", "ImageService", "ImageServiceRegion"],
|
|
15
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
16
|
-
format: {
|
|
17
|
-
type: "custom",
|
|
18
|
-
format: (resource, parent, vault2) => {
|
|
19
|
-
const resourcesAsArray = Array.isArray(resource) ? resource : [{ ...resource, parent }];
|
|
20
|
-
const resources = [];
|
|
21
|
-
for (const resource2 of resourcesAsArray) {
|
|
22
|
-
resources.push({ resource: vault2.get(resource2), parent: resource2.parent, selector: resource2.selector });
|
|
23
|
-
}
|
|
24
|
-
return resource;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
}, [props.runCreate]);
|
|
30
|
-
const navigationOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
canCropImage: true,
|
|
33
|
-
canSelectCanvas: true,
|
|
34
|
-
canSelectManifest: false,
|
|
35
|
-
canSelectCollection: false,
|
|
36
|
-
// @todo fix the output so this one works.
|
|
37
|
-
multiSelect: true
|
|
38
|
-
};
|
|
39
|
-
}, []);
|
|
40
|
-
const uiOptions = useMemo(() => {
|
|
41
|
-
return {
|
|
42
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
43
|
-
};
|
|
44
|
-
}, []);
|
|
45
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
46
|
-
IIIFBrowser,
|
|
47
|
-
{
|
|
48
|
-
ui: uiOptions,
|
|
49
|
-
vault,
|
|
50
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
51
|
-
output,
|
|
52
|
-
navigation: navigationOptions
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
IIIFBrowserCreatorForm as default
|
|
58
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
cb: (resource) => props2.runCreate({ output: resource }),
|
|
19
|
-
format: { type: "content-state" }
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
}, [props2.runCreate]);
|
|
23
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
24
|
-
IIIFBrowser,
|
|
25
|
-
{
|
|
26
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
27
|
-
output
|
|
28
|
-
}
|
|
29
|
-
) });
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
IIIFBrowserCreatorForm as default
|
|
33
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewVault
|
|
5
|
-
} from "@manifest-editor/shell";
|
|
6
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function IIIFBrowserCreatorForm(props) {
|
|
10
|
-
const vault = usePreviewVault();
|
|
11
|
-
const output = useMemo(() => {
|
|
12
|
-
return [
|
|
13
|
-
{
|
|
14
|
-
type: "callback",
|
|
15
|
-
label: "Select",
|
|
16
|
-
supportedTypes: [
|
|
17
|
-
"Canvas",
|
|
18
|
-
"CanvasList",
|
|
19
|
-
"CanvasRegion",
|
|
20
|
-
"ImageService",
|
|
21
|
-
"ImageServiceRegion"
|
|
22
|
-
],
|
|
23
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
24
|
-
format: { type: "content-state" }
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
}, [props.runCreate]);
|
|
28
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
29
|
-
IIIFBrowser,
|
|
30
|
-
{
|
|
31
|
-
vault,
|
|
32
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full",
|
|
33
|
-
output,
|
|
34
|
-
navigation: {
|
|
35
|
-
canCropImage: true,
|
|
36
|
-
canSelectCanvas: true,
|
|
37
|
-
canSelectManifest: false,
|
|
38
|
-
canSelectCollection: false,
|
|
39
|
-
// @todo fix the output so this one works.
|
|
40
|
-
multiSelect: false
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
IIIFBrowserCreatorForm as default
|
|
47
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import { Vault } from "@iiif/helpers";
|
|
3
|
-
import { PreviewVaultBoundary } from "@manifest-editor/shell";
|
|
4
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
5
|
-
import { useMemo } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
function IIIFBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Canvas", "CanvasList", "CanvasRegion", "ImageService", "ImageServiceRegion"],
|
|
15
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
16
|
-
format: {
|
|
17
|
-
type: "custom",
|
|
18
|
-
format: (resource, parent, vault2) => {
|
|
19
|
-
const resourcesAsArray = Array.isArray(resource) ? resource : [{ ...resource, parent }];
|
|
20
|
-
const resources = [];
|
|
21
|
-
for (const resource2 of resourcesAsArray) {
|
|
22
|
-
resources.push({ resource: vault2.get(resource2), parent: resource2.parent, selector: resource2.selector });
|
|
23
|
-
}
|
|
24
|
-
return resources;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
}, [props.runCreate]);
|
|
30
|
-
const navigationOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
canCropImage: true,
|
|
33
|
-
canSelectCanvas: true,
|
|
34
|
-
canSelectManifest: false,
|
|
35
|
-
canSelectCollection: false,
|
|
36
|
-
// @todo fix the output so this one works.
|
|
37
|
-
multiSelect: true
|
|
38
|
-
};
|
|
39
|
-
}, []);
|
|
40
|
-
const uiOptions = useMemo(() => {
|
|
41
|
-
return {
|
|
42
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
43
|
-
};
|
|
44
|
-
}, []);
|
|
45
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
46
|
-
IIIFBrowser,
|
|
47
|
-
{
|
|
48
|
-
ui: uiOptions,
|
|
49
|
-
vault,
|
|
50
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
51
|
-
output,
|
|
52
|
-
navigation: navigationOptions
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
IIIFBrowserCreatorForm as default
|
|
58
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import { Vault } from "@iiif/helpers";
|
|
3
|
-
import { PreviewVaultBoundary } from "@manifest-editor/shell";
|
|
4
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
5
|
-
import { useMemo } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
function IIIFBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Canvas", "CanvasList", "CanvasRegion", "ImageService", "ImageServiceRegion"],
|
|
15
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
16
|
-
format: {
|
|
17
|
-
type: "custom",
|
|
18
|
-
format: (resource, parent, vault2) => {
|
|
19
|
-
const resourcesAsArray = Array.isArray(resource) ? resource : [{ ...resource, parent }];
|
|
20
|
-
const resources = [];
|
|
21
|
-
for (const resource2 of resourcesAsArray) {
|
|
22
|
-
resources.push({ resource: vault2.get(resource2), parent: resource2.parent });
|
|
23
|
-
}
|
|
24
|
-
return { resources };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
}, [props.runCreate]);
|
|
30
|
-
const navigationOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
canCropImage: true,
|
|
33
|
-
canSelectCanvas: true,
|
|
34
|
-
canSelectManifest: false,
|
|
35
|
-
canSelectCollection: false,
|
|
36
|
-
// @todo fix the output so this one works.
|
|
37
|
-
multiSelect: true
|
|
38
|
-
};
|
|
39
|
-
}, []);
|
|
40
|
-
const uiOptions = useMemo(() => {
|
|
41
|
-
return {
|
|
42
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
43
|
-
};
|
|
44
|
-
}, []);
|
|
45
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
46
|
-
IIIFBrowser,
|
|
47
|
-
{
|
|
48
|
-
ui: uiOptions,
|
|
49
|
-
vault,
|
|
50
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
51
|
-
output,
|
|
52
|
-
navigation: navigationOptions
|
|
53
|
-
}
|
|
54
|
-
) });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
IIIFBrowserCreatorForm as default
|
|
58
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
supportedTypes: [
|
|
19
|
-
"Canvas",
|
|
20
|
-
"CanvasList",
|
|
21
|
-
"CanvasRegion",
|
|
22
|
-
"ImageService",
|
|
23
|
-
"ImageServiceRegion"
|
|
24
|
-
],
|
|
25
|
-
cb: (resource) => {
|
|
26
|
-
props2.runCreate;
|
|
27
|
-
console.log("output", resource);
|
|
28
|
-
},
|
|
29
|
-
format: { type: "content-state" }
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
}, []);
|
|
33
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
34
|
-
IIIFBrowser,
|
|
35
|
-
{
|
|
36
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
37
|
-
output,
|
|
38
|
-
navigation: {
|
|
39
|
-
canCropImage: true,
|
|
40
|
-
canSelectCanvas: true,
|
|
41
|
-
canSelectManifest: false,
|
|
42
|
-
canSelectCollection: false,
|
|
43
|
-
// @todo fix the output so this one works.
|
|
44
|
-
multiSelect: false
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
) });
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
IIIFBrowserCreatorForm as default
|
|
51
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
cb: (resource) => props2.runCreate({ output: resource })
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
}, [props2.runCreate]);
|
|
22
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
23
|
-
IIIFBrowser,
|
|
24
|
-
{
|
|
25
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
26
|
-
output
|
|
27
|
-
}
|
|
28
|
-
) });
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
IIIFBrowserCreatorForm as default
|
|
32
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
cb: (resource) => props2.runCreate({ output: resource }),
|
|
19
|
-
format: { type: "json" }
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
}, [props2.runCreate]);
|
|
23
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
24
|
-
IIIFBrowser,
|
|
25
|
-
{
|
|
26
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
27
|
-
output
|
|
28
|
-
}
|
|
29
|
-
) });
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
IIIFBrowserCreatorForm as default
|
|
33
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props2) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
cb: (resource) => props2.runCreate({ output: resource })
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
}, [props2.runCreate]);
|
|
22
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
23
|
-
IIIFBrowser,
|
|
24
|
-
{
|
|
25
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]"
|
|
26
|
-
}
|
|
27
|
-
) });
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
IIIFBrowserCreatorForm as default
|
|
31
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import { Vault } from "@iiif/helpers";
|
|
3
|
-
import {
|
|
4
|
-
PreviewVaultBoundary
|
|
5
|
-
} from "@manifest-editor/shell";
|
|
6
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function IIIFBrowserCreatorForm(props) {
|
|
10
|
-
const vault = useMemo(() => new Vault(), []);
|
|
11
|
-
const output = useMemo(() => {
|
|
12
|
-
return [
|
|
13
|
-
{
|
|
14
|
-
type: "callback",
|
|
15
|
-
label: "Select",
|
|
16
|
-
supportedTypes: [
|
|
17
|
-
"Canvas",
|
|
18
|
-
"CanvasList",
|
|
19
|
-
"CanvasRegion",
|
|
20
|
-
"ImageService",
|
|
21
|
-
"ImageServiceRegion"
|
|
22
|
-
],
|
|
23
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
24
|
-
format: { type: "content-state" }
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
}, [props.runCreate]);
|
|
28
|
-
const navigationOptions = useMemo(() => {
|
|
29
|
-
return {
|
|
30
|
-
canCropImage: true,
|
|
31
|
-
canSelectCanvas: true,
|
|
32
|
-
canSelectManifest: false,
|
|
33
|
-
canSelectCollection: false,
|
|
34
|
-
// @todo fix the output so this one works.
|
|
35
|
-
multiSelect: false
|
|
36
|
-
};
|
|
37
|
-
}, []);
|
|
38
|
-
const uiOptions = useMemo(() => {
|
|
39
|
-
return {
|
|
40
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
41
|
-
};
|
|
42
|
-
}, []);
|
|
43
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
44
|
-
IIIFBrowser,
|
|
45
|
-
{
|
|
46
|
-
debug: true,
|
|
47
|
-
ui: uiOptions,
|
|
48
|
-
vault,
|
|
49
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
50
|
-
output,
|
|
51
|
-
navigation: navigationOptions
|
|
52
|
-
}
|
|
53
|
-
) });
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
IIIFBrowserCreatorForm as default
|
|
57
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import { Vault } from "@iiif/helpers";
|
|
3
|
-
import {
|
|
4
|
-
PreviewVaultBoundary
|
|
5
|
-
} from "@manifest-editor/shell";
|
|
6
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function IIIFBrowserCreatorForm(props) {
|
|
10
|
-
const vault = useMemo(() => new Vault(), []);
|
|
11
|
-
const output = useMemo(() => {
|
|
12
|
-
return [
|
|
13
|
-
{
|
|
14
|
-
type: "callback",
|
|
15
|
-
label: "Select",
|
|
16
|
-
supportedTypes: [
|
|
17
|
-
"Canvas",
|
|
18
|
-
"CanvasList",
|
|
19
|
-
"CanvasRegion",
|
|
20
|
-
"ImageService",
|
|
21
|
-
"ImageServiceRegion"
|
|
22
|
-
],
|
|
23
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
24
|
-
format: { type: "content-state" }
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
}, [props.runCreate]);
|
|
28
|
-
const navigationOptions = useMemo(() => {
|
|
29
|
-
return {
|
|
30
|
-
canCropImage: true,
|
|
31
|
-
canSelectCanvas: true,
|
|
32
|
-
canSelectManifest: false,
|
|
33
|
-
canSelectCollection: false,
|
|
34
|
-
// @todo fix the output so this one works.
|
|
35
|
-
multiSelect: false
|
|
36
|
-
};
|
|
37
|
-
}, []);
|
|
38
|
-
const uiOptions = useMemo(() => {
|
|
39
|
-
return {
|
|
40
|
-
buttonClassName: "me-primary-500"
|
|
41
|
-
};
|
|
42
|
-
}, []);
|
|
43
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
44
|
-
IIIFBrowser,
|
|
45
|
-
{
|
|
46
|
-
debug: true,
|
|
47
|
-
ui: uiOptions,
|
|
48
|
-
vault,
|
|
49
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
50
|
-
output,
|
|
51
|
-
navigation: navigationOptions
|
|
52
|
-
}
|
|
53
|
-
) });
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
IIIFBrowserCreatorForm as default
|
|
57
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewHistory,
|
|
5
|
-
usePreviewVault
|
|
6
|
-
} from "@manifest-editor/shell";
|
|
7
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
8
|
-
import { useMemo } from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function IIIFBrowserCreatorForm(props) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
const output = useMemo(() => {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
type: "callback",
|
|
17
|
-
label: "Select",
|
|
18
|
-
supportedTypes: [
|
|
19
|
-
"Canvas",
|
|
20
|
-
"CanvasList",
|
|
21
|
-
"CanvasRegion",
|
|
22
|
-
"ImageService",
|
|
23
|
-
"ImageServiceRegion"
|
|
24
|
-
],
|
|
25
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
26
|
-
format: { type: "content-state" }
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
}, [props.runCreate]);
|
|
30
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
31
|
-
IIIFBrowser,
|
|
32
|
-
{
|
|
33
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
|
|
34
|
-
output,
|
|
35
|
-
navigation: {
|
|
36
|
-
canCropImage: true,
|
|
37
|
-
canSelectCanvas: true,
|
|
38
|
-
canSelectManifest: false,
|
|
39
|
-
canSelectCollection: false,
|
|
40
|
-
// @todo fix the output so this one works.
|
|
41
|
-
multiSelect: false
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
) });
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
IIIFBrowserCreatorForm as default
|
|
48
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// src/ContentResource/IIIFBrowserCreator/iiif-browser-form.lazy.tsx
|
|
2
|
-
import {
|
|
3
|
-
PreviewVaultBoundary,
|
|
4
|
-
usePreviewVault
|
|
5
|
-
} from "@manifest-editor/shell";
|
|
6
|
-
import { IIIFBrowser } from "iiif-browser";
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
function IIIFBrowserCreatorForm(props) {
|
|
10
|
-
const vault = usePreviewVault();
|
|
11
|
-
const output = useMemo(() => {
|
|
12
|
-
return [
|
|
13
|
-
{
|
|
14
|
-
type: "callback",
|
|
15
|
-
label: "Select",
|
|
16
|
-
supportedTypes: [
|
|
17
|
-
"Canvas",
|
|
18
|
-
"CanvasList",
|
|
19
|
-
"CanvasRegion",
|
|
20
|
-
"ImageService",
|
|
21
|
-
"ImageServiceRegion"
|
|
22
|
-
],
|
|
23
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
24
|
-
format: { type: "content-state" }
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
}, [props.runCreate]);
|
|
28
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
29
|
-
IIIFBrowser,
|
|
30
|
-
{
|
|
31
|
-
vault,
|
|
32
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full w-full",
|
|
33
|
-
output,
|
|
34
|
-
navigation: {
|
|
35
|
-
canCropImage: true,
|
|
36
|
-
canSelectCanvas: true,
|
|
37
|
-
canSelectManifest: false,
|
|
38
|
-
canSelectCollection: false,
|
|
39
|
-
// @todo fix the output so this one works.
|
|
40
|
-
multiSelect: false
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
IIIFBrowserCreatorForm as default
|
|
47
|
-
};
|