@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.
@@ -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("div", { className: "surface-thumbnail-overlay-selected left", children: /* @__PURE__ */ B.jsx("a", { onDoubleClick: s.right, 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.jsx("a", { onDoubleClick: s.left, 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
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, c = {};
54430
- for (const u of t)
54431
- c[u.local_id] = {
54432
- documentName: u.name,
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}/${u.local_id}/iiif/`
54437
+ iiifManifest: `${i}/${f.local_id}${c}`
54435
54438
  };
54436
54439
  return {
54437
54440
  documentName: r,
54438
- documentInfo: c,
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
- <div className="surface-thumbnail-overlay-selected left">
89
- <a onDoubleClick={onClick.right}>
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
- </a>
95
- </div>
94
+ </div>
95
+ </a>
96
96
  )
97
97
  : isRight
98
98
  ? (
99
- <div className="surface-thumbnail-overlay-selected right">
100
- <a onDoubleClick={onClick.left}>
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
- </a>
106
- </div>
105
+ </div>
106
+ </a>
107
107
  )
108
108
  : (
109
109
  <div className="surface-thumbnail-overlay">
@@ -151,6 +151,9 @@ function SurfaceBrowser(props) {
151
151
  setTags([])
152
152
  clearTags()
153
153
  }}
154
+ style={{
155
+ marginRight: '24px',
156
+ }}
154
157
  >
155
158
  Clear All
156
159
  </Button>
@@ -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}/iiif/`,
58
+ iiifManifest: `${baseURL}/${document.local_id}${manifestPath}`,
59
59
  }
60
60
  }
61
61
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cu-mkp/editioncrafter",
3
3
  "type": "module",
4
- "version": "1.3.1-beta.5",
4
+ "version": "1.3.1-beta.7",
5
5
  "private": false,
6
6
  "description": "A simple digital critical edition publication tool",
7
7
  "license": "MIT",