@hussmartinez/pdf-sdk 0.4.5 → 0.5.0
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/README.md +25 -1
- package/dist/assets/processing/processing.worker.js +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lazy/{_virtual_hm-pdfjs-data-BSzhlxyq.js → inline-data.js} +7 -1
- package/dist/lazy/inline-data.js.map +1 -0
- package/dist/lazy/no-inline-workers.js +17 -0
- package/dist/lazy/no-inline-workers.js.map +1 -0
- package/dist/lazy/{processing-worker-D4qwaqbw.js → processing-worker.js} +2 -2
- package/dist/lazy/processing-worker.js.map +1 -0
- package/dist/lazy/{render-worker-WgnZ-czI.js → render-worker.js} +1 -1
- package/dist/lazy/render-worker.js.map +1 -0
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -1
- package/dist/shared/{en-DAmVF5wH.js → en-COnsYGXV.js} +12 -14
- package/dist/shared/en-COnsYGXV.js.map +1 -0
- package/dist/shared/pdf-error-DzxHQvrO.js +11 -0
- package/dist/shared/pdf-error-DzxHQvrO.js.map +1 -0
- package/package.json +17 -2
- package/dist/lazy/processing-worker-D4qwaqbw.js.map +0 -1
- package/dist/lazy/render-worker-WgnZ-czI.js.map +0 -1
- package/dist/shared/en-DAmVF5wH.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processing-worker.js","names":["ProcessingWorker"],"sources":["../../src/adapters/qpdf/processing-worker.ts"],"sourcesContent":["import ProcessingWorker from \"../../workers/processing.worker.ts?worker&inline\";\n\n/** Starts the inlined processing worker, from its own lazy chunk. */\nexport function createInlineWorker(): Worker {\n return new ProcessingWorker({ name: \"hm-pdf-processing\" });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,qBAA6B;CAC3C,OAAO,IAAIA,cAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-worker.js","names":["PdfJsWorker"],"sources":["../../src/adapters/pdfjs/render-worker.ts"],"sourcesContent":["import PdfJsWorker from \"../../workers/pdfjs.worker.ts?worker&inline\";\n\n/**\n * Starts the inlined render worker. A separate lazy chunk, so applications\n * that self-host the worker never download the inlined copy.\n */\nexport function createInlineWorker(): Worker {\n return new PdfJsWorker({ name: \"hm-pdf-render\" });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMA,SAAgB,qBAA6B;CAC3C,OAAO,IAAIA,cAAY,EAAE,MAAM,gBAAgB,CAAC;AAClD"}
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { g as createPdfJsEngine, h as createPdfProcessor, n as createPdfSession, t as pdfMessages, v as linkDestination,
|
|
2
|
+
import { g as createPdfJsEngine, h as createPdfProcessor, n as createPdfSession, t as pdfMessages, v as linkDestination, y as safeLinkUrl } from "./shared/en-COnsYGXV.js";
|
|
3
|
+
import { n as isPdfError } from "./shared/pdf-error-DzxHQvrO.js";
|
|
3
4
|
import { MAX_FILE_NAME_LENGTH, cleanFileName, createMessages, createShortcutRegistry, createToolRegistry, defineMessages, defineTool, plural } from "@hussmartinez/sdk-core";
|
|
4
5
|
import { AnnouncerProvider, Button, DeleteIcon, DownloadIcon, IconButton, MoveDownIcon, MoveUpIcon, OpenIcon, PageAddIcon, RedoIcon, RotateLeftIcon, RotateRightIcon, Toolbar, ToolbarGroup, UiMessagesProvider, UndoIcon, useAnnounce, usePlatform } from "@hussmartinez/ui/react";
|
|
5
6
|
import { Component, createContext, forwardRef, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|