@cu-mkp/editioncrafter 1.3.1-beta.5 → 1.3.1-beta.6
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/editioncrafter.js
CHANGED
|
@@ -54025,10 +54025,10 @@ function Gte(e) {
|
|
|
54025
54025
|
};
|
|
54026
54026
|
return /* @__PURE__ */ B.jsxs(Nh, { className: "surface-thumbnail", children: [
|
|
54027
54027
|
/* @__PURE__ */ B.jsxs("figure", { className: "surface-thumbnail-figure", children: [
|
|
54028
|
-
f ? /* @__PURE__ */ B.jsx("
|
|
54028
|
+
f ? /* @__PURE__ */ B.jsx("a", { onDoubleClick: s.right, title: "Double click to insert right", children: /* @__PURE__ */ B.jsx("div", { className: "surface-thumbnail-overlay-selected left", children: /* @__PURE__ */ B.jsxs("div", { children: [
|
|
54029
54029
|
/* @__PURE__ */ B.jsx(ZP, {}),
|
|
54030
54030
|
/* @__PURE__ */ B.jsx(Kn, { children: "Left" })
|
|
54031
|
-
] }) }) }) : p ? /* @__PURE__ */ B.jsx("
|
|
54031
|
+
] }) }) }) : p ? /* @__PURE__ */ B.jsx("a", { onDoubleClick: s.left, title: "Double click to insert left", children: /* @__PURE__ */ B.jsx("div", { className: "surface-thumbnail-overlay-selected right", children: /* @__PURE__ */ B.jsxs("div", { children: [
|
|
54032
54032
|
/* @__PURE__ */ B.jsx(KP, {}),
|
|
54033
54033
|
/* @__PURE__ */ B.jsx(Kn, { children: "Right" })
|
|
54034
54034
|
] }) }) }) : /* @__PURE__ */ B.jsx("div", { className: "surface-thumbnail-overlay", children: /* @__PURE__ */ B.jsxs("div", { className: "surface-thumbnail-overlay-content", children: [
|
|
@@ -54426,16 +54426,16 @@ function rne(e) {
|
|
|
54426
54426
|
return Ui(n);
|
|
54427
54427
|
}
|
|
54428
54428
|
function ine(e, n) {
|
|
54429
|
-
const t = rne(n), { documentName: r, baseURL: i, transcriptionTypes: s } = e,
|
|
54430
|
-
for (const
|
|
54431
|
-
|
|
54432
|
-
documentName:
|
|
54429
|
+
const t = rne(n), { documentName: r, baseURL: i, transcriptionTypes: s, manifestPath: c = "/iiif/manifest.json" } = e, u = {};
|
|
54430
|
+
for (const f of t)
|
|
54431
|
+
u[f.local_id] = {
|
|
54432
|
+
documentName: f.name,
|
|
54433
54433
|
transcriptionTypes: s,
|
|
54434
|
-
iiifManifest: `${i}/${
|
|
54434
|
+
iiifManifest: `${i}/${f.local_id}${c}`
|
|
54435
54435
|
};
|
|
54436
54436
|
return {
|
|
54437
54437
|
documentName: r,
|
|
54438
|
-
documentInfo:
|
|
54438
|
+
documentInfo: u,
|
|
54439
54439
|
tagExplorerMode: !0
|
|
54440
54440
|
};
|
|
54441
54441
|
}
|
|
@@ -85,25 +85,25 @@ function Thumbnail(props) {
|
|
|
85
85
|
<figure className="surface-thumbnail-figure">
|
|
86
86
|
{isLeft
|
|
87
87
|
? (
|
|
88
|
-
<
|
|
89
|
-
<
|
|
88
|
+
<a onDoubleClick={onClick.right} title="Double click to insert right">
|
|
89
|
+
<div className="surface-thumbnail-overlay-selected left">
|
|
90
90
|
<div>
|
|
91
91
|
<Left />
|
|
92
92
|
<Typography>Left</Typography>
|
|
93
93
|
</div>
|
|
94
|
-
</
|
|
95
|
-
</
|
|
94
|
+
</div>
|
|
95
|
+
</a>
|
|
96
96
|
)
|
|
97
97
|
: isRight
|
|
98
98
|
? (
|
|
99
|
-
<
|
|
100
|
-
<
|
|
99
|
+
<a onDoubleClick={onClick.left} title="Double click to insert left">
|
|
100
|
+
<div className="surface-thumbnail-overlay-selected right">
|
|
101
101
|
<div>
|
|
102
102
|
<Right />
|
|
103
103
|
<Typography>Right</Typography>
|
|
104
104
|
</div>
|
|
105
|
-
</
|
|
106
|
-
</
|
|
105
|
+
</div>
|
|
106
|
+
</a>
|
|
107
107
|
)
|
|
108
108
|
: (
|
|
109
109
|
<div className="surface-thumbnail-overlay">
|
|
@@ -48,14 +48,14 @@ function getData(db) {
|
|
|
48
48
|
|
|
49
49
|
function generateECProps(props, db) {
|
|
50
50
|
const documents = getData(db)
|
|
51
|
-
const { documentName, baseURL, transcriptionTypes } = props
|
|
51
|
+
const { documentName, baseURL, transcriptionTypes, manifestPath = '/iiif/manifest.json' } = props
|
|
52
52
|
const documentInfo = {}
|
|
53
53
|
|
|
54
54
|
for (const document of documents) {
|
|
55
55
|
documentInfo[document.local_id] = {
|
|
56
56
|
documentName: document.name,
|
|
57
57
|
transcriptionTypes,
|
|
58
|
-
iiifManifest: `${baseURL}/${document.local_id}
|
|
58
|
+
iiifManifest: `${baseURL}/${document.local_id}${manifestPath}`,
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|