@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
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifest-editor/creators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.0.1-next.0.2841cdd",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bugs": "https://github.com/digirati-co-uk/iiif-manifest-editor/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/digirati-co-uk/iiif-manifest-editor.git",
|
|
8
|
+
"url": "git+https://github.com/digirati-co-uk/iiif-manifest-editor.git",
|
|
9
9
|
"directory": "packages/creators"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
@@ -18,58 +18,54 @@
|
|
|
18
18
|
],
|
|
19
19
|
"main": "./dist/index.cjs",
|
|
20
20
|
"module": "./dist/index.js",
|
|
21
|
-
"types": "./dist/index.d.
|
|
21
|
+
"types": "./dist/index.d.cts",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
|
-
"import":
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"require": {
|
|
32
|
-
"types": "./dist/index.d.cts",
|
|
33
|
-
"default": "./dist/index.cjs"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"require": "./dist/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
36
31
|
},
|
|
37
32
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
-
"dev": "
|
|
33
|
+
"build": "tsdown src/index.ts",
|
|
34
|
+
"dev": "tsdown src/index.ts --watch",
|
|
40
35
|
"lint": "publint",
|
|
41
36
|
"typecheck": "tsc --noEmit",
|
|
42
|
-
"prepack": "
|
|
37
|
+
"prepack": "tsdown src/index.ts"
|
|
43
38
|
},
|
|
44
39
|
"dependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@iiif/
|
|
47
|
-
"@iiif/parser": "^2.1.8",
|
|
40
|
+
"@iiif/helpers": "1.5.7",
|
|
41
|
+
"@iiif/parser": "2.2.8",
|
|
48
42
|
"@iiif/presentation-3": "^2.2.3",
|
|
49
43
|
"@iiif/presentation-3-normalized": "^0.9.7",
|
|
50
|
-
"@manifest-editor/components": "1.
|
|
51
|
-
"@manifest-editor/creator-api": "1.
|
|
52
|
-
"@manifest-editor/editor-api": "1.
|
|
53
|
-
"@manifest-editor/editors": "1.
|
|
54
|
-
"@manifest-editor/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"react": "
|
|
58
|
-
"react-dom": "^18.3.1",
|
|
44
|
+
"@manifest-editor/components": "2.0.1-next.0.2841cdd",
|
|
45
|
+
"@manifest-editor/creator-api": "2.0.1-next.0.2841cdd",
|
|
46
|
+
"@manifest-editor/editor-api": "2.0.1-next.0.2841cdd",
|
|
47
|
+
"@manifest-editor/editors": "2.0.1-next.0.2841cdd",
|
|
48
|
+
"@manifest-editor/shell": "2.0.1-next.0.2841cdd",
|
|
49
|
+
"iiif-browser": "^2.0.4",
|
|
50
|
+
"react": "19.2.0",
|
|
51
|
+
"react-dom": "19.2.0",
|
|
59
52
|
"react-error-boundary": "^4.0.13",
|
|
60
|
-
"react-iiif-vault": "
|
|
53
|
+
"react-iiif-vault": "2.0.6",
|
|
61
54
|
"styled-components": "6.1.8"
|
|
62
55
|
},
|
|
63
56
|
"devDependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
57
|
+
"@atlas-viewer/iiif-image-api": "^2.2.0",
|
|
58
|
+
"@manifest-editor/ui": "2.0.0",
|
|
59
|
+
"@repo/eslint-config": "",
|
|
66
60
|
"@types/react": "^18.3.3",
|
|
67
61
|
"@types/react-dom": "^18.3.0",
|
|
62
|
+
"postcss-import": "^16.1.0",
|
|
63
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
68
64
|
"tiny-invariant": "^1.3.3",
|
|
69
|
-
"
|
|
65
|
+
"tsdown": "0.16.4"
|
|
70
66
|
},
|
|
71
67
|
"publishConfig": {
|
|
72
68
|
"access": "public"
|
|
73
69
|
},
|
|
74
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "2841cdd72fac56b862a9e901eb43cdcb0d9868d0"
|
|
75
71
|
}
|
package/dist/chunk-2B2F7X4A.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection"],
|
|
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: false,
|
|
33
|
-
canSelectCanvas: false,
|
|
34
|
-
canSelectManifest: true,
|
|
35
|
-
canSelectCollection: true,
|
|
36
|
-
multiSelect: true
|
|
37
|
-
};
|
|
38
|
-
}, []);
|
|
39
|
-
const uiOptions = useMemo(() => {
|
|
40
|
-
return {
|
|
41
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
42
|
-
};
|
|
43
|
-
}, []);
|
|
44
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
45
|
-
IIIFBrowser,
|
|
46
|
-
{
|
|
47
|
-
debug: true,
|
|
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
|
-
|
|
57
|
-
export {
|
|
58
|
-
ManifestBrowserCreatorForm
|
|
59
|
-
};
|
package/dist/chunk-5YV7MYAZ.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection"],
|
|
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: false,
|
|
33
|
-
canSelectCanvas: false,
|
|
34
|
-
canSelectManifest: true,
|
|
35
|
-
canSelectCollection: true,
|
|
36
|
-
// @todo fix the output so this one works.
|
|
37
|
-
multiSelect: false
|
|
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
|
-
debug: true,
|
|
49
|
-
ui: uiOptions,
|
|
50
|
-
vault,
|
|
51
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
52
|
-
output,
|
|
53
|
-
navigation: navigationOptions
|
|
54
|
-
}
|
|
55
|
-
) });
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
ManifestBrowserCreatorForm
|
|
60
|
-
};
|
package/dist/chunk-7FSKLOVQ.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-browser-form.lazy.tsx
|
|
2
|
-
import { IIIFExplorer } from "@manifest-editor/iiif-browser";
|
|
3
|
-
import { usePreviewVault, usePreviewHistory, PreviewVaultBoundary, HOMEPAGE_COLLECTION } from "@manifest-editor/shell";
|
|
4
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
function ManifestBrowserCreatorForm(props) {
|
|
6
|
-
const vault = usePreviewVault();
|
|
7
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
8
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
9
|
-
IIIFExplorer,
|
|
10
|
-
{
|
|
11
|
-
window: false,
|
|
12
|
-
hideHeader: true,
|
|
13
|
-
outputTypes: ["Manifest", "Collection"],
|
|
14
|
-
vault,
|
|
15
|
-
output: { type: "content-state" },
|
|
16
|
-
homepageCollection: HOMEPAGE_COLLECTION,
|
|
17
|
-
clearHomepageCollection: clearHistory,
|
|
18
|
-
onHistory: addHistory,
|
|
19
|
-
outputTargets: [
|
|
20
|
-
{
|
|
21
|
-
type: "callback",
|
|
22
|
-
label: "Select",
|
|
23
|
-
cb: (resource) => props.runCreate({ output: resource })
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
allowRemoveEntry: true
|
|
27
|
-
}
|
|
28
|
-
) }) });
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
ManifestBrowserCreatorForm
|
|
33
|
-
};
|
package/dist/chunk-AVISJS46.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection"],
|
|
15
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
16
|
-
format: { type: "content-state" }
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
}, [props.runCreate]);
|
|
20
|
-
const navigationOptions = useMemo(() => {
|
|
21
|
-
return {
|
|
22
|
-
canCropImage: true,
|
|
23
|
-
canSelectCanvas: true,
|
|
24
|
-
canSelectManifest: false,
|
|
25
|
-
canSelectCollection: false,
|
|
26
|
-
// @todo fix the output so this one works.
|
|
27
|
-
multiSelect: false
|
|
28
|
-
};
|
|
29
|
-
}, []);
|
|
30
|
-
const uiOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
36
|
-
IIIFBrowser,
|
|
37
|
-
{
|
|
38
|
-
debug: true,
|
|
39
|
-
ui: uiOptions,
|
|
40
|
-
vault,
|
|
41
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
42
|
-
output,
|
|
43
|
-
navigation: navigationOptions
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
ManifestBrowserCreatorForm
|
|
50
|
-
};
|
package/dist/chunk-CYVZA2MU.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection", "ManifestList", "CollectionList", "CollectionItemList"],
|
|
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: false,
|
|
33
|
-
canSelectCanvas: false,
|
|
34
|
-
canSelectManifest: true,
|
|
35
|
-
canSelectCollection: true,
|
|
36
|
-
multiSelect: true
|
|
37
|
-
};
|
|
38
|
-
}, []);
|
|
39
|
-
const uiOptions = useMemo(() => {
|
|
40
|
-
return {
|
|
41
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
42
|
-
};
|
|
43
|
-
}, []);
|
|
44
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
45
|
-
IIIFBrowser,
|
|
46
|
-
{
|
|
47
|
-
debug: true,
|
|
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
|
-
|
|
57
|
-
export {
|
|
58
|
-
ManifestBrowserCreatorForm
|
|
59
|
-
};
|
package/dist/chunk-ES62IRNT.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(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: { type: "content-state" }
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
}, [props.runCreate]);
|
|
20
|
-
const navigationOptions = useMemo(() => {
|
|
21
|
-
return {
|
|
22
|
-
canCropImage: true,
|
|
23
|
-
canSelectCanvas: true,
|
|
24
|
-
canSelectManifest: false,
|
|
25
|
-
canSelectCollection: false,
|
|
26
|
-
// @todo fix the output so this one works.
|
|
27
|
-
multiSelect: false
|
|
28
|
-
};
|
|
29
|
-
}, []);
|
|
30
|
-
const uiOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
36
|
-
IIIFBrowser,
|
|
37
|
-
{
|
|
38
|
-
debug: true,
|
|
39
|
-
ui: uiOptions,
|
|
40
|
-
vault,
|
|
41
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
42
|
-
output,
|
|
43
|
-
navigation: navigationOptions
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
ManifestBrowserCreatorForm
|
|
50
|
-
};
|
package/dist/chunk-KLSWX2QF.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-browser-form.lazy.tsx
|
|
2
|
-
import { IIIFExplorer } from "@manifest-editor/iiif-browser";
|
|
3
|
-
import {
|
|
4
|
-
usePreviewVault,
|
|
5
|
-
usePreviewHistory,
|
|
6
|
-
PreviewVaultBoundary,
|
|
7
|
-
HOMEPAGE_COLLECTION
|
|
8
|
-
} from "@manifest-editor/shell";
|
|
9
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
10
|
-
function ManifestBrowserCreatorForm(props) {
|
|
11
|
-
const vault = usePreviewVault();
|
|
12
|
-
const { addHistory, clearHistory } = usePreviewHistory();
|
|
13
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
14
|
-
IIIFExplorer,
|
|
15
|
-
{
|
|
16
|
-
window: false,
|
|
17
|
-
hideHeader: true,
|
|
18
|
-
outputTypes: ["Manifest", "Collection"],
|
|
19
|
-
vault,
|
|
20
|
-
output: { type: "content-state" },
|
|
21
|
-
homepageCollection: HOMEPAGE_COLLECTION,
|
|
22
|
-
clearHomepageCollection: clearHistory,
|
|
23
|
-
onHistory: addHistory,
|
|
24
|
-
outputTargets: [
|
|
25
|
-
{
|
|
26
|
-
type: "callback",
|
|
27
|
-
label: "Select",
|
|
28
|
-
cb: (resource) => props.runCreate({ output: resource })
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
allowRemoveEntry: true
|
|
32
|
-
}
|
|
33
|
-
) }) });
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
ManifestBrowserCreatorForm
|
|
38
|
-
};
|
package/dist/chunk-PFQB3PNW.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-browser-form.lazy.tsx
|
|
2
|
-
import { PreviewVaultBoundary } from "@manifest-editor/shell";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
function ManifestBrowserCreatorForm(props) {
|
|
5
|
-
const vault = useMemo(() => new Vault(), []);
|
|
6
|
-
const output = useMemo(() => {
|
|
7
|
-
return [
|
|
8
|
-
{
|
|
9
|
-
type: "callback",
|
|
10
|
-
label: "Select",
|
|
11
|
-
supportedTypes: ["Canvas", "CanvasList", "CanvasRegion", "ImageService", "ImageServiceRegion"],
|
|
12
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
13
|
-
format: { type: "content-state" }
|
|
14
|
-
}
|
|
15
|
-
];
|
|
16
|
-
}, [props.runCreate]);
|
|
17
|
-
const navigationOptions = useMemo(() => {
|
|
18
|
-
return {
|
|
19
|
-
canCropImage: true,
|
|
20
|
-
canSelectCanvas: true,
|
|
21
|
-
canSelectManifest: false,
|
|
22
|
-
canSelectCollection: false,
|
|
23
|
-
// @todo fix the output so this one works.
|
|
24
|
-
multiSelect: false
|
|
25
|
-
};
|
|
26
|
-
}, []);
|
|
27
|
-
const uiOptions = useMemo(() => {
|
|
28
|
-
return {
|
|
29
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
30
|
-
};
|
|
31
|
-
}, []);
|
|
32
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
33
|
-
IIIFBrowser,
|
|
34
|
-
{
|
|
35
|
-
debug: true,
|
|
36
|
-
ui: uiOptions,
|
|
37
|
-
vault,
|
|
38
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
39
|
-
output,
|
|
40
|
-
navigation: navigationOptions
|
|
41
|
-
}
|
|
42
|
-
) });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
ManifestBrowserCreatorForm
|
|
47
|
-
};
|
package/dist/chunk-S3JO5Y3Z.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection"],
|
|
15
|
-
cb: (resource) => props.runCreate({ output: resource }),
|
|
16
|
-
format: { type: "content-state" }
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
}, [props.runCreate]);
|
|
20
|
-
const navigationOptions = useMemo(() => {
|
|
21
|
-
return {
|
|
22
|
-
canCropImage: false,
|
|
23
|
-
canSelectCanvas: false,
|
|
24
|
-
canSelectManifest: true,
|
|
25
|
-
canSelectCollection: true,
|
|
26
|
-
// @todo fix the output so this one works.
|
|
27
|
-
multiSelect: false
|
|
28
|
-
};
|
|
29
|
-
}, []);
|
|
30
|
-
const uiOptions = useMemo(() => {
|
|
31
|
-
return {
|
|
32
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
36
|
-
IIIFBrowser,
|
|
37
|
-
{
|
|
38
|
-
debug: true,
|
|
39
|
-
ui: uiOptions,
|
|
40
|
-
vault,
|
|
41
|
-
className: "iiif-browser border-none border-t rounded-none h-[70vh] min-h-[60vh] max-h-full max-w-full",
|
|
42
|
-
output,
|
|
43
|
-
navigation: navigationOptions
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
ManifestBrowserCreatorForm
|
|
50
|
-
};
|
package/dist/chunk-W4PYM3PN.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// src/Manifest/ManifestBrowserCreator/manifest-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 ManifestBrowserCreatorForm(props) {
|
|
8
|
-
const vault = useMemo(() => new Vault(), []);
|
|
9
|
-
const output = useMemo(() => {
|
|
10
|
-
return [
|
|
11
|
-
{
|
|
12
|
-
type: "callback",
|
|
13
|
-
label: "Select",
|
|
14
|
-
supportedTypes: ["Manifest", "Collection", "CollectionItemList"],
|
|
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: false,
|
|
33
|
-
canSelectCanvas: false,
|
|
34
|
-
canSelectManifest: true,
|
|
35
|
-
canSelectCollection: true,
|
|
36
|
-
multiSelect: true
|
|
37
|
-
};
|
|
38
|
-
}, []);
|
|
39
|
-
const uiOptions = useMemo(() => {
|
|
40
|
-
return {
|
|
41
|
-
buttonClassName: "bg-me-primary-500 text-white hover:bg-me-primary-600"
|
|
42
|
-
};
|
|
43
|
-
}, []);
|
|
44
|
-
return /* @__PURE__ */ jsx(PreviewVaultBoundary, { children: /* @__PURE__ */ jsx(
|
|
45
|
-
IIIFBrowser,
|
|
46
|
-
{
|
|
47
|
-
debug: true,
|
|
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
|
-
|
|
57
|
-
export {
|
|
58
|
-
ManifestBrowserCreatorForm
|
|
59
|
-
};
|
|
@@ -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] max-h-full"
|
|
16
|
-
}
|
|
17
|
-
) });
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
IIIFBrowserCreatorForm as default
|
|
21
|
-
};
|