@seed-hypermedia/client 0.0.86 → 0.0.87
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.
|
@@ -352,8 +352,12 @@ async function extractTitle(doc) {
|
|
|
352
352
|
}
|
|
353
353
|
async function embeddedPdfToBlocks(pdfData) {
|
|
354
354
|
let pdfjsLib;
|
|
355
|
+
const pdfjsSpecifier = "pdfjs-dist";
|
|
355
356
|
try {
|
|
356
|
-
pdfjsLib = await import(
|
|
357
|
+
pdfjsLib = await import(
|
|
358
|
+
/* @vite-ignore */
|
|
359
|
+
pdfjsSpecifier
|
|
360
|
+
);
|
|
357
361
|
} catch {
|
|
358
362
|
throw new Error(
|
|
359
363
|
"pdfjs-dist is not installed. Install it for embedded PDF extraction:\n pnpm add pdfjs-dist\nOr provide a GROBID server URL for higher-fidelity extraction."
|
package/dist/index.mjs
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-XB6E7EVC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
pdfToBlocks
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7OWFPOHI.mjs";
|
|
14
14
|
import {
|
|
15
15
|
teiToBlocks
|
|
16
16
|
} from "./chunk-ZVJGJE2L.mjs";
|
|
17
17
|
import {
|
|
18
18
|
embeddedPdfToBlocks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2FJBS3V7.mjs";
|
|
20
20
|
import {
|
|
21
21
|
resolveIdWithClient
|
|
22
22
|
} from "./chunk-7DJW6A2P.mjs";
|
package/dist/pdf-to-blocks.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pdfToBlocks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OWFPOHI.mjs";
|
|
4
4
|
import "./chunk-ZVJGJE2L.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-2FJBS3V7.mjs";
|
|
6
6
|
import "./chunk-PPAY4WZX.mjs";
|
|
7
7
|
import "./chunk-GIO2JLKT.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|