@hussmartinez/pdf-sdk 0.4.0 → 0.4.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"processing-worker-DIP9ck2l.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"}
1
+ {"version":3,"file":"processing-worker-B70FATD2.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"}
package/dist/react.d.ts CHANGED
@@ -405,12 +405,14 @@ export declare const pdfEditorMessages: {
405
405
  readonly "tools.insert-pages": "Insert pages";
406
406
  readonly "tools.move-earlier": "Move earlier";
407
407
  readonly "tools.move-later": "Move later";
408
+ readonly "colorField.swatches": "swatches";
408
409
  readonly "dialog.close": "Close";
409
410
  readonly "fileDropZone.choose": "Choose a file";
410
411
  readonly "fileDropZone.chooseMultiple": "Choose files";
411
412
  readonly "fileDropZone.hint": "or drop it here";
412
413
  readonly "fileDropZone.hintMultiple": "or drop them here";
413
414
  readonly "progress.label": "Progress";
415
+ readonly "reorderableList.moved": "{label} moved to position {position} of {count}";
414
416
  readonly "spinner.label": "Loading";
415
417
  readonly "errors.INVALID_THEME_TOKEN": "The theme setting {token} has a value that can't be used.";
416
418
  readonly "errors.INVALID_THEME_SELECTOR": "The theme can't be applied to the selector {selector}.";
package/dist/react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { T as isPdfError, _ as createPdfJsEngine, b as safeLinkUrl, g as createPdfProcessor, n as createPdfSession, r as cleanFileName, t as pdfMessages, y as linkDestination } from "./shared/en-DKR-ngAZ.js";
2
+ import { T as isPdfError, _ as createPdfJsEngine, b as safeLinkUrl, g as createPdfProcessor, n as createPdfSession, r as cleanFileName, t as pdfMessages, y as linkDestination } from "./shared/en-DiJkcy2X.js";
3
3
  import { createMessages, createShortcutRegistry, createToolRegistry, defineMessages, defineTool, plural } from "@hussmartinez/sdk-core";
4
4
  import { AnnouncerProvider, Button, DeleteIcon, DownloadIcon, IconButton, MoveDownIcon, MoveUpIcon, OpenIcon, PageAddIcon, RedoIcon, RotateLeftIcon, RotateRightIcon, Toolbar, ToolbarGroup, UiMessagesProvider, UndoIcon, useAnnounce, usePlatform } from "@hussmartinez/ui/react";
5
5
  import { Component, createContext, forwardRef, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
@@ -1449,7 +1449,7 @@ function PdfEditorBody(props) {
1449
1449
  role: "group",
1450
1450
  "aria-label": messages.t("editor.label"),
1451
1451
  "aria-busy": status === "opening" || snapshot.busy || saving.saving,
1452
- className: join("hm-pdf-editor", className, classNames.root),
1452
+ className: join(unstyled ? void 0 : "hm-text", "hm-pdf-editor", className, classNames.root),
1453
1453
  "data-hm-status": status,
1454
1454
  onKeyDown,
1455
1455
  ...unstyled ? { "data-hm-unstyled": "" } : {},