@triiiceratops/plugin-pdf-export 1.0.0-rc.6 → 1.0.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/dist/plugin.d.ts CHANGED
@@ -17,8 +17,8 @@
17
17
  * with its own configuration. A preconfigured default (`PdfExportPlugin`) is
18
18
  * exported alongside it.
19
19
  *
20
- * The plugin reads the raw OSD viewer (`ViewerState.osdViewer`) to size export
21
- * requests, so it declares `requiredCapabilities: ['osd@5']`.
20
+ * The plugin sizes export requests from `ViewerState.containerSize`, a
21
+ * first-party query-only read, so it requires no capability.
22
22
  */
23
23
  import { type SdkPlugin } from '@triiiceratops/plugin-sdk';
24
24
  import type { PdfExportConfig } from './types';
@@ -1 +1 @@
1
- export declare function reportPdfExportError(node: EventTarget, error: unknown, retry: () => void): void;
1
+ export declare const reportPdfExportError: (node: EventTarget, error: unknown, retry: () => void) => void;
package/dist/styles.d.ts CHANGED
@@ -1,16 +1,6 @@
1
1
  /**
2
- * The plugin's package-owned global CSS + its style-service install id, shaped
3
- * by {@link definePluginStyles} into the `STYLES` / `STYLE_ID` exports the
4
- * activation installs. Class names are namespaced `tri-pdf-*` since these rules
5
- * are not Svelte-scoped.
6
- *
7
- * Chrome ownership (epic restore-plugin-toolbar-chrome, ticket 05): core owns
8
- * the toolbar button and the docked panel chrome (surface, sticky header, radius,
9
- * open/close). These rules therefore style ONLY the panel's content body — no
10
- * self-positioned toggle, no `position: absolute`, no panel surface/border. The
11
- * body layout mirrors core's former `PdfExportPanel` embedded look; the range
12
- * `Select`s and export `Button` are themed by the shared `@triiiceratops/ui`
13
- * primitives, so no bespoke control styling lives here. Tokens are the current
14
- * `--tri-` theme variables.
2
+ * The plugin's package-owned global CSS and its style-service install id. What
3
+ * the rules cover, and where core's ownership of the panel chrome stops, is
4
+ * documented in `panel.css` beside them.
15
5
  */
16
6
  export declare const STYLES: string, STYLE_ID: string;
package/dist/types.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import type { PdfCanvasOcrOverlayProvider, PdfCoverSheetConfig, PdfExportFilenameProvider, PdfImageLoader, PdfImageRequestConfig, PdfOcrPlacementMode, PdfOcrSizingMode, PdfOcrVisibilityMode } from './exportPdf';
2
2
  /**
3
- * Consumer-facing configuration for the PDF export plugin. This is the same
4
- * public shape the plugin exposed before it moved to its own package (ticket 16
5
- * moved it here unchanged), so `createPdfExportPlugin(config)` keeps its
6
- * factory-with-config authoring contract.
3
+ * Consumer-facing configuration for the PDF export plugin, preserving
4
+ * `createPdfExportPlugin(config)`'s factory-with-config authoring contract.
7
5
  */
8
6
  export type PdfExportConfig = {
9
7
  coverSheet?: PdfCoverSheetConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triiiceratops/plugin-pdf-export",
3
- "version": "1.0.0-rc.6",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "description": "PDF export plugin for the triiiceratops IIIF viewer, authored on @triiiceratops/plugin-sdk. Owns its own pdf-lib dependency.",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/d-flood/triiiceratops.git",
11
11
  "directory": "packages/plugin-pdf-export"
12
12
  },
13
- "homepage": "https://d-flood.github.io/triiiceratops/",
13
+ "homepage": "https://triiiceratops.org/",
14
14
  "publishConfig": {
15
15
  "access": "public",
16
16
  "provenance": true
@@ -37,7 +37,7 @@
37
37
  "./iife": "./dist/iife.js"
38
38
  },
39
39
  "scripts": {
40
- "build": "pnpm build:esm && pnpm build:iife && pnpm build:types",
40
+ "build": "pnpm clean && pnpm build:esm && pnpm build:iife && pnpm build:types",
41
41
  "build:esm": "BUILD_FORMAT=es vite build",
42
42
  "build:iife": "BUILD_FORMAT=iife vite build",
43
43
  "build:types": "tsc -p tsconfig.build.json",
@@ -49,21 +49,21 @@
49
49
  "lint:fix": "eslint . --fix --max-warnings 0"
50
50
  },
51
51
  "peerDependencies": {
52
- "triiiceratops": "^1.0.0-rc.36",
53
- "@triiiceratops/plugin-sdk": "^1.0.0-rc.6"
52
+ "triiiceratops": "^1.0.0",
53
+ "@triiiceratops/plugin-sdk": "^1.0.0"
54
54
  },
55
55
  "dependencies": {
56
56
  "pdf-lib": "^1.17.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@sveltejs/vite-plugin-svelte": "^6.2.1",
60
- "@triiiceratops/plugin-sdk": "1.0.0-rc.6",
59
+ "@sveltejs/vite-plugin-svelte": "^6.2.4",
60
+ "@triiiceratops/plugin-sdk": "1.0.0",
61
61
  "@triiiceratops/ui": "0.0.0",
62
62
  "@vitest/coverage-v8": "4.0.15",
63
- "happy-dom": "^20.0.11",
64
- "svelte": "5.45.5",
63
+ "happy-dom": "^20.11.6",
64
+ "svelte": "5.56.10",
65
65
  "svelte-check": "^4.3.4",
66
- "triiiceratops": "1.0.0-rc.36",
66
+ "triiiceratops": "1.0.0",
67
67
  "typescript": "~5.9.3",
68
68
  "vite": "^6.0.0",
69
69
  "vitest": "^4.0.15"