@manifest-editor/creators 1.1.0 → 1.3.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.
Files changed (41) hide show
  1. package/dist/iiif-browser-form.lazy-3EZNJN4M.js +21 -0
  2. package/dist/iiif-browser-form.lazy-3YUQOIEL.js +21 -0
  3. package/dist/iiif-browser-form.lazy-4CDWA6JD.js +47 -0
  4. package/dist/iiif-browser-form.lazy-B2RXVKR5.js +21 -0
  5. package/dist/iiif-browser-form.lazy-DCCYGD42.js +35 -0
  6. package/dist/iiif-browser-form.lazy-DU2NJUCE.js +46 -0
  7. package/dist/iiif-browser-form.lazy-DUTUHLUT.js +50 -0
  8. package/dist/iiif-browser-form.lazy-EJZ754MG.js +42 -0
  9. package/dist/iiif-browser-form.lazy-ENQRBLTJ.js +21 -0
  10. package/dist/iiif-browser-form.lazy-FMKQQWDE.js +33 -0
  11. package/dist/iiif-browser-form.lazy-FOIWPPI7.js +47 -0
  12. package/dist/iiif-browser-form.lazy-G7XAQYYG.js +51 -0
  13. package/dist/iiif-browser-form.lazy-GO6U6NE5.js +32 -0
  14. package/dist/iiif-browser-form.lazy-GVEEZX37.js +33 -0
  15. package/dist/iiif-browser-form.lazy-HBWB7QGF.js +31 -0
  16. package/dist/iiif-browser-form.lazy-I7ZNZHID.js +48 -0
  17. package/dist/iiif-browser-form.lazy-IX5DFVDG.js +47 -0
  18. package/dist/iiif-browser-form.lazy-KPB57B25.js +21 -0
  19. package/dist/iiif-browser-form.lazy-KYOKLDRV.js +47 -0
  20. package/dist/iiif-browser-form.lazy-NDPLPCQQ.js +43 -0
  21. package/dist/iiif-browser-form.lazy-OQLU6NDJ.js +51 -0
  22. package/dist/iiif-browser-form.lazy-OZNQO2OO.js +21 -0
  23. package/dist/iiif-browser-form.lazy-QR55LXI4.js +21 -0
  24. package/dist/iiif-browser-form.lazy-R5TMXUBV.js +19 -0
  25. package/dist/iiif-browser-form.lazy-RWEJWTIW.js +21 -0
  26. package/dist/iiif-browser-form.lazy-T6LT6BJD.js +48 -0
  27. package/dist/iiif-browser-form.lazy-TWQYATEG.js +21 -0
  28. package/dist/iiif-browser-form.lazy-UPZXU6JB.js +51 -0
  29. package/dist/iiif-browser-form.lazy-W42LJ6X2.js +47 -0
  30. package/dist/iiif-browser-form.lazy-WAK45BLF.js +42 -0
  31. package/dist/iiif-browser-form.lazy-WVCVE6XK.js +21 -0
  32. package/dist/index.cjs +1550 -1378
  33. package/dist/index.d.cts +18 -16
  34. package/dist/index.d.ts +18 -16
  35. package/dist/index.js +1451 -1283
  36. package/package.json +13 -12
  37. package/dist/chunk-YSQDPG26.js +0 -30
  38. package/dist/iiif-browser-form.lazy-C3VAAY7I.js +0 -34
  39. package/dist/iiif-browser-form.lazy-QLO62DFA.js +0 -32
  40. package/dist/iiif-browser-form.lazy-ZADCSMAN.js +0 -32
  41. package/dist/manifest-browser-form.lazy-FLU4HSPW.js +0 -7
@@ -0,0 +1,21 @@
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] max-h-full"
16
+ }
17
+ ) });
18
+ }
19
+ export {
20
+ IIIFBrowserCreatorForm as default
21
+ };
@@ -0,0 +1,21 @@
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: "iiif-browser border-none border-t rounded-none h-[70vh] max-h-full max-w-[70vw]"
16
+ }
17
+ ) });
18
+ }
19
+ export {
20
+ IIIFBrowserCreatorForm as default
21
+ };
@@ -0,0 +1,47 @@
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 max-f-ull",
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
+ };
@@ -0,0 +1,21 @@
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-full"
16
+ }
17
+ ) });
18
+ }
19
+ export {
20
+ IIIFBrowserCreatorForm as default
21
+ };
@@ -0,0 +1,35 @@
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) => {
19
+ console.log("output", resource);
20
+ },
21
+ format: { type: "content-state" }
22
+ }
23
+ ];
24
+ }, [props2.runCreate]);
25
+ return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
26
+ IIIFBrowser,
27
+ {
28
+ className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
29
+ output
30
+ }
31
+ ) });
32
+ }
33
+ export {
34
+ IIIFBrowserCreatorForm as default
35
+ };
@@ -0,0 +1,46 @@
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
+ className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-[70vw]",
32
+ output,
33
+ navigation: {
34
+ canCropImage: true,
35
+ canSelectCanvas: true,
36
+ canSelectManifest: false,
37
+ canSelectCollection: false,
38
+ // @todo fix the output so this one works.
39
+ multiSelect: false
40
+ }
41
+ }
42
+ ) });
43
+ }
44
+ export {
45
+ IIIFBrowserCreatorForm as default
46
+ };
@@ -0,0 +1,50 @@
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({ output: resource });
27
+ },
28
+ format: { type: "content-state" }
29
+ }
30
+ ];
31
+ }, [props2.runCreate]);
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
+ navigation: {
38
+ canCropImage: true,
39
+ canSelectCanvas: true,
40
+ canSelectManifest: false,
41
+ canSelectCollection: false,
42
+ // @todo fix the output so this one works.
43
+ multiSelect: false
44
+ }
45
+ }
46
+ ) });
47
+ }
48
+ export {
49
+ IIIFBrowserCreatorForm as default
50
+ };
@@ -0,0 +1,42 @@
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
+ };
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,47 @@
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
+ };
@@ -0,0 +1,51 @@
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
+ };
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,31 @@
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
+ };
@@ -0,0 +1,48 @@
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
+ };
@@ -0,0 +1,47 @@
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
+ };
@@ -0,0 +1,21 @@
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"
16
+ }
17
+ ) });
18
+ }
19
+ export {
20
+ IIIFBrowserCreatorForm as default
21
+ };