@cu-mkp/editioncrafter 1.3.1-beta.5 → 1.3.1-beta.7
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: [
|
|
@@ -54301,6 +54301,9 @@ function $te(e) {
|
|
|
54301
54301
|
onClick: () => {
|
|
54302
54302
|
v([]), U();
|
|
54303
54303
|
},
|
|
54304
|
+
style: {
|
|
54305
|
+
marginRight: "24px"
|
|
54306
|
+
},
|
|
54304
54307
|
children: "Clear All"
|
|
54305
54308
|
}
|
|
54306
54309
|
) : null,
|
|
@@ -54426,16 +54429,16 @@ function rne(e) {
|
|
|
54426
54429
|
return Ui(n);
|
|
54427
54430
|
}
|
|
54428
54431
|
function ine(e, n) {
|
|
54429
|
-
const t = rne(n), { documentName: r, baseURL: i, transcriptionTypes: s } = e,
|
|
54430
|
-
for (const
|
|
54431
|
-
|
|
54432
|
-
documentName:
|
|
54432
|
+
const t = rne(n), { documentName: r, baseURL: i, transcriptionTypes: s, manifestPath: c = "/iiif/manifest.json" } = e, u = {};
|
|
54433
|
+
for (const f of t)
|
|
54434
|
+
u[f.local_id] = {
|
|
54435
|
+
documentName: f.name,
|
|
54433
54436
|
transcriptionTypes: s,
|
|
54434
|
-
iiifManifest: `${i}/${
|
|
54437
|
+
iiifManifest: `${i}/${f.local_id}${c}`
|
|
54435
54438
|
};
|
|
54436
54439
|
return {
|
|
54437
54440
|
documentName: r,
|
|
54438
|
-
documentInfo:
|
|
54441
|
+
documentInfo: u,
|
|
54439
54442
|
tagExplorerMode: !0
|
|
54440
54443
|
};
|
|
54441
54444
|
}
|
|
@@ -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
|
|