@cu-mkp/editioncrafter 1.3.1-beta.4 → 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,13 +54025,13 @@ 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("div", { className: "surface-thumbnail-overlay-selected left", children: /* @__PURE__ */ B.jsxs("div", { children: [
|
|
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("div", { className: "surface-thumbnail-overlay-selected right", children: /* @__PURE__ */ B.jsxs("div", { children: [
|
|
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
|
-
] }) }) : /* @__PURE__ */ B.jsx("div", { className: "surface-thumbnail-overlay", children: /* @__PURE__ */ B.jsxs("div", { className: "surface-thumbnail-overlay-content", children: [
|
|
54034
|
+
] }) }) }) : /* @__PURE__ */ B.jsx("div", { className: "surface-thumbnail-overlay", children: /* @__PURE__ */ B.jsxs("div", { className: "surface-thumbnail-overlay-content", children: [
|
|
54035
54035
|
/* @__PURE__ */ B.jsx("a", { onClick: s.left, title: "Insert left", children: /* @__PURE__ */ B.jsx(Hte, {}) }),
|
|
54036
54036
|
/* @__PURE__ */ B.jsx("a", { onClick: s.right, title: "Insert right", children: /* @__PURE__ */ B.jsx(Vte, {}) })
|
|
54037
54037
|
] }) }),
|
|
@@ -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,21 +85,25 @@ function Thumbnail(props) {
|
|
|
85
85
|
<figure className="surface-thumbnail-figure">
|
|
86
86
|
{isLeft
|
|
87
87
|
? (
|
|
88
|
-
<
|
|
89
|
-
<div>
|
|
90
|
-
<
|
|
91
|
-
|
|
88
|
+
<a onDoubleClick={onClick.right} title="Double click to insert right">
|
|
89
|
+
<div className="surface-thumbnail-overlay-selected left">
|
|
90
|
+
<div>
|
|
91
|
+
<Left />
|
|
92
|
+
<Typography>Left</Typography>
|
|
93
|
+
</div>
|
|
92
94
|
</div>
|
|
93
|
-
</
|
|
95
|
+
</a>
|
|
94
96
|
)
|
|
95
97
|
: isRight
|
|
96
98
|
? (
|
|
97
|
-
<
|
|
98
|
-
<div>
|
|
99
|
-
<
|
|
100
|
-
|
|
99
|
+
<a onDoubleClick={onClick.left} title="Double click to insert left">
|
|
100
|
+
<div className="surface-thumbnail-overlay-selected right">
|
|
101
|
+
<div>
|
|
102
|
+
<Right />
|
|
103
|
+
<Typography>Right</Typography>
|
|
104
|
+
</div>
|
|
101
105
|
</div>
|
|
102
|
-
</
|
|
106
|
+
</a>
|
|
103
107
|
)
|
|
104
108
|
: (
|
|
105
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
|
|