@seed-hypermedia/client 0.0.85 → 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("pdfjs-dist");
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."
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZVJGJE2L.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
- } from "./chunk-52P3E6H6.mjs";
6
+ } from "./chunk-2FJBS3V7.mjs";
7
7
  import {
8
8
  isGrobidAvailable,
9
9
  processFulltextDocument
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-QRWRLUTY.mjs";
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-52P3E6H6.mjs";
19
+ } from "./chunk-2FJBS3V7.mjs";
20
20
  import {
21
21
  resolveIdWithClient
22
22
  } from "./chunk-7DJW6A2P.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  embeddedPdfToBlocks
3
- } from "./chunk-52P3E6H6.mjs";
3
+ } from "./chunk-2FJBS3V7.mjs";
4
4
  import "./chunk-7P6ASYW6.mjs";
5
5
  export {
6
6
  embeddedPdfToBlocks
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-QRWRLUTY.mjs";
3
+ } from "./chunk-7OWFPOHI.mjs";
4
4
  import "./chunk-ZVJGJE2L.mjs";
5
- import "./chunk-52P3E6H6.mjs";
5
+ import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
7
  import "./chunk-GIO2JLKT.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",