From 8428d9850dd21a9b9d17d4d12a4f4890bb1a6683 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 21:55:44 +0000 Subject: [PATCH] chore: version packages (next) (next) --- .changeset/pre.json | 10 +- packages/core/CHANGELOG.md | 2 + packages/core/package.json | 2 +- packages/engines/CHANGELOG.md | 2 + packages/engines/package.json | 2 +- packages/models/CHANGELOG.md | 2 + packages/models/package.json | 2 +- packages/pdfium/CHANGELOG.md | 2 + packages/pdfium/package.json | 2 +- packages/plugin-annotation/CHANGELOG.md | 2 + packages/plugin-annotation/package.json | 2 +- packages/plugin-attachment/CHANGELOG.md | 2 + packages/plugin-attachment/package.json | 2 +- packages/plugin-bookmark/CHANGELOG.md | 2 + packages/plugin-bookmark/package.json | 2 +- packages/plugin-capture/CHANGELOG.md | 2 + packages/plugin-capture/package.json | 2 +- packages/plugin-commands/CHANGELOG.md | 2 + packages/plugin-commands/package.json | 2 +- packages/plugin-document-manager/CHANGELOG.md | 2 + packages/plugin-document-manager/package.json | 2 +- packages/plugin-export/CHANGELOG.md | 2 + packages/plugin-export/package.json | 2 +- packages/plugin-fullscreen/CHANGELOG.md | 2 + packages/plugin-fullscreen/package.json | 2 +- packages/plugin-history/CHANGELOG.md | 2 + packages/plugin-history/package.json | 2 +- packages/plugin-i18n/CHANGELOG.md | 2 + packages/plugin-i18n/package.json | 2 +- .../plugin-interaction-manager/CHANGELOG.md | 2 + .../plugin-interaction-manager/package.json | 2 +- packages/plugin-pan/CHANGELOG.md | 2 + packages/plugin-pan/package.json | 2 +- packages/plugin-print/CHANGELOG.md | 2 + packages/plugin-print/package.json | 2 +- packages/plugin-redaction/CHANGELOG.md | 2 + packages/plugin-redaction/package.json | 2 +- packages/plugin-render/CHANGELOG.md | 2 + packages/plugin-render/package.json | 2 +- packages/plugin-rotate/CHANGELOG.md | 2 + packages/plugin-rotate/package.json | 2 +- packages/plugin-scroll/CHANGELOG.md | 6 + packages/plugin-scroll/package.json | 2 +- packages/plugin-search/CHANGELOG.md | 2 + packages/plugin-search/package.json | 2 +- packages/plugin-selection/CHANGELOG.md | 2 + packages/plugin-selection/package.json | 2 +- packages/plugin-spread/CHANGELOG.md | 2 + packages/plugin-spread/package.json | 2 +- packages/plugin-thumbnail/CHANGELOG.md | 2 + packages/plugin-thumbnail/package.json | 2 +- packages/plugin-tiling/CHANGELOG.md | 2 + packages/plugin-tiling/package.json | 2 +- packages/plugin-ui/CHANGELOG.md | 21 +++ packages/plugin-ui/package.json | 2 +- packages/plugin-view-manager/CHANGELOG.md | 2 + packages/plugin-view-manager/package.json | 2 +- packages/plugin-viewport/CHANGELOG.md | 2 + packages/plugin-viewport/package.json | 2 +- packages/plugin-zoom/CHANGELOG.md | 2 + packages/plugin-zoom/package.json | 2 +- packages/utils/CHANGELOG.md | 2 + packages/utils/package.json | 2 +- viewers/react/CHANGELOG.md | 3 + viewers/react/package.json | 2 +- viewers/snippet/CHANGELOG.md | 143 ++++++++++++++++++ viewers/snippet/package.json | 2 +- viewers/svelte/CHANGELOG.md | 3 + viewers/svelte/package.json | 2 +- viewers/vue/CHANGELOG.md | 3 + viewers/vue/package.json | 2 +- 71 files changed, 281 insertions(+), 36 deletions(-) create mode 100644 viewers/react/CHANGELOG.md create mode 100644 viewers/snippet/CHANGELOG.md create mode 100644 viewers/svelte/CHANGELOG.md create mode 100644 viewers/vue/CHANGELOG.md diff --git a/.changeset/pre.json b/.changeset/pre.json index a3064f6f5..c87ca76f8 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -41,12 +41,17 @@ "@embedpdf/plugin-viewport": "1.5.0", "@embedpdf/plugin-zoom": "1.5.0", "@embedpdf/utils": "1.5.0", - "@embedpdf/snippet": "1.0.0" + "@embedpdf/snippet": "1.0.0", + "@embedpdf/react-pdf-viewer": "1.0.0", + "@embedpdf/svelte-pdf-viewer": "1.0.0", + "@embedpdf/vue-pdf-viewer": "1.0.0" }, "changesets": [ "commands-svelte-use-current", "fix-document-manager-empty-array", "fix-i18n-vue-locale-reactivity", + "hidden-items-dependency-rules", + "layout-ready-event-page-info", "multi-view-core", "multi-view-engines", "multi-view-models", @@ -79,6 +84,9 @@ "multi-view-utils", "scroll-initial-page-removal", "selection-menu-height-config", + "snippet-capability-scope-type-exports", + "snippet-disabled-categories-and-hierarchical-categories", + "snippet-spanish-translations-partial-configs", "utils-svelte-action-pattern" ] } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index d7257c87e..69b93e0b0 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/core +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/core/package.json b/packages/core/package.json index c4833e573..e01354df1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/core", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/engines/CHANGELOG.md b/packages/engines/CHANGELOG.md index 29ca15b55..f5d6b2a77 100644 --- a/packages/engines/CHANGELOG.md +++ b/packages/engines/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/engines +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/engines/package.json b/packages/engines/package.json index ec2b21983..5d868669d 100644 --- a/packages/engines/package.json +++ b/packages/engines/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/engines", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "description": "Pluggable runtime layer that abstracts over multiple PDF engines (PDF-ium, Web Workers, mocks, etc.) to provide a unified API for rendering, search, annotation, and other document-level operations in EmbedPDF.", "type": "module", "main": "./dist/index.cjs", diff --git a/packages/models/CHANGELOG.md b/packages/models/CHANGELOG.md index f64604301..0ac6d3fab 100644 --- a/packages/models/CHANGELOG.md +++ b/packages/models/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/models +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/models/package.json b/packages/models/package.json index fb8c5debb..bb888ffc2 100644 --- a/packages/models/package.json +++ b/packages/models/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/models", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "private": false, "description": "Shared type definitions, data models, and utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.", "type": "module", diff --git a/packages/pdfium/CHANGELOG.md b/packages/pdfium/CHANGELOG.md index 06d07c406..ceadbab45 100644 --- a/packages/pdfium/CHANGELOG.md +++ b/packages/pdfium/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/pdfium +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/pdfium/package.json b/packages/pdfium/package.json index b4dda20ef..a86bd0d45 100644 --- a/packages/pdfium/package.json +++ b/packages/pdfium/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/pdfium", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "private": false, "description": "PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.", "type": "module", diff --git a/packages/plugin-annotation/CHANGELOG.md b/packages/plugin-annotation/CHANGELOG.md index c3fb8a4da..ac648454d 100644 --- a/packages/plugin-annotation/CHANGELOG.md +++ b/packages/plugin-annotation/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-annotation +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-annotation/package.json b/packages/plugin-annotation/package.json index 803e01d26..d9373a523 100644 --- a/packages/plugin-annotation/package.json +++ b/packages/plugin-annotation/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-annotation", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-attachment/CHANGELOG.md b/packages/plugin-attachment/CHANGELOG.md index 57126fb16..8245b74f6 100644 --- a/packages/plugin-attachment/CHANGELOG.md +++ b/packages/plugin-attachment/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-attachment +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-attachment/package.json b/packages/plugin-attachment/package.json index 0228e9a08..69e5f6cfa 100644 --- a/packages/plugin-attachment/package.json +++ b/packages/plugin-attachment/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-attachment", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-bookmark/CHANGELOG.md b/packages/plugin-bookmark/CHANGELOG.md index cc9c6a78c..90992eaa8 100644 --- a/packages/plugin-bookmark/CHANGELOG.md +++ b/packages/plugin-bookmark/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-bookmark +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-bookmark/package.json b/packages/plugin-bookmark/package.json index 47b8aa856..cd7d5cb3b 100644 --- a/packages/plugin-bookmark/package.json +++ b/packages/plugin-bookmark/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-bookmark", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-capture/CHANGELOG.md b/packages/plugin-capture/CHANGELOG.md index 48610ec35..647ae2c4f 100644 --- a/packages/plugin-capture/CHANGELOG.md +++ b/packages/plugin-capture/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-capture +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-capture/package.json b/packages/plugin-capture/package.json index 3b72e6a21..e0b8bd3a7 100644 --- a/packages/plugin-capture/package.json +++ b/packages/plugin-capture/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-capture", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-commands/CHANGELOG.md b/packages/plugin-commands/CHANGELOG.md index ef8d8d093..ce35e56a7 100644 --- a/packages/plugin-commands/CHANGELOG.md +++ b/packages/plugin-commands/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-commands +## 2.0.0-next.2 + ## 2.0.0-next.1 ### Patch Changes diff --git a/packages/plugin-commands/package.json b/packages/plugin-commands/package.json index aba1bccef..dc54eb238 100644 --- a/packages/plugin-commands/package.json +++ b/packages/plugin-commands/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-commands", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-document-manager/CHANGELOG.md b/packages/plugin-document-manager/CHANGELOG.md index c71d53a51..796dbfc8c 100644 --- a/packages/plugin-document-manager/CHANGELOG.md +++ b/packages/plugin-document-manager/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-document-manager +## 2.0.0-next.2 + ## 2.0.0-next.1 ### Patch Changes diff --git a/packages/plugin-document-manager/package.json b/packages/plugin-document-manager/package.json index 9c8f4b8d0..7e5302c6c 100644 --- a/packages/plugin-document-manager/package.json +++ b/packages/plugin-document-manager/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-document-manager", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-export/CHANGELOG.md b/packages/plugin-export/CHANGELOG.md index f11790483..76a842e40 100644 --- a/packages/plugin-export/CHANGELOG.md +++ b/packages/plugin-export/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-export +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-export/package.json b/packages/plugin-export/package.json index d35a0bcb6..cdb03d2c7 100644 --- a/packages/plugin-export/package.json +++ b/packages/plugin-export/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-export", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-fullscreen/CHANGELOG.md b/packages/plugin-fullscreen/CHANGELOG.md index 8c92b7188..a66bce481 100644 --- a/packages/plugin-fullscreen/CHANGELOG.md +++ b/packages/plugin-fullscreen/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-fullscreen +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-fullscreen/package.json b/packages/plugin-fullscreen/package.json index 47246ea58..93c670c70 100644 --- a/packages/plugin-fullscreen/package.json +++ b/packages/plugin-fullscreen/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-fullscreen", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-history/CHANGELOG.md b/packages/plugin-history/CHANGELOG.md index e76e88ba0..feae84cc3 100644 --- a/packages/plugin-history/CHANGELOG.md +++ b/packages/plugin-history/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-history +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-history/package.json b/packages/plugin-history/package.json index bf3792705..4e276a8ed 100644 --- a/packages/plugin-history/package.json +++ b/packages/plugin-history/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-history", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-i18n/CHANGELOG.md b/packages/plugin-i18n/CHANGELOG.md index 9fd119640..671236870 100644 --- a/packages/plugin-i18n/CHANGELOG.md +++ b/packages/plugin-i18n/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-i18n +## 2.0.0-next.2 + ## 2.0.0-next.1 ### Patch Changes diff --git a/packages/plugin-i18n/package.json b/packages/plugin-i18n/package.json index 46982d21e..346957dd1 100644 --- a/packages/plugin-i18n/package.json +++ b/packages/plugin-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-i18n", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-interaction-manager/CHANGELOG.md b/packages/plugin-interaction-manager/CHANGELOG.md index 84058b0c6..972e632af 100644 --- a/packages/plugin-interaction-manager/CHANGELOG.md +++ b/packages/plugin-interaction-manager/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-interaction-manager +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-interaction-manager/package.json b/packages/plugin-interaction-manager/package.json index 530fae408..f3c01110f 100644 --- a/packages/plugin-interaction-manager/package.json +++ b/packages/plugin-interaction-manager/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-interaction-manager", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-pan/CHANGELOG.md b/packages/plugin-pan/CHANGELOG.md index 445790b29..ae36c7a7d 100644 --- a/packages/plugin-pan/CHANGELOG.md +++ b/packages/plugin-pan/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-pan +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-pan/package.json b/packages/plugin-pan/package.json index 2ed181710..4609bfc65 100644 --- a/packages/plugin-pan/package.json +++ b/packages/plugin-pan/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-pan", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-print/CHANGELOG.md b/packages/plugin-print/CHANGELOG.md index 772359a93..1978ee89b 100644 --- a/packages/plugin-print/CHANGELOG.md +++ b/packages/plugin-print/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-print +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-print/package.json b/packages/plugin-print/package.json index 286ab1dc5..1238c4f56 100644 --- a/packages/plugin-print/package.json +++ b/packages/plugin-print/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-print", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-redaction/CHANGELOG.md b/packages/plugin-redaction/CHANGELOG.md index 2cc6c08c9..526f54cd4 100644 --- a/packages/plugin-redaction/CHANGELOG.md +++ b/packages/plugin-redaction/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-redaction +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-redaction/package.json b/packages/plugin-redaction/package.json index 519a79059..411d216b0 100644 --- a/packages/plugin-redaction/package.json +++ b/packages/plugin-redaction/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-redaction", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-render/CHANGELOG.md b/packages/plugin-render/CHANGELOG.md index 2621a8cb6..19e3e0e4e 100644 --- a/packages/plugin-render/CHANGELOG.md +++ b/packages/plugin-render/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-render +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-render/package.json b/packages/plugin-render/package.json index ad9ba1f7f..9f126d212 100644 --- a/packages/plugin-render/package.json +++ b/packages/plugin-render/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-render", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-rotate/CHANGELOG.md b/packages/plugin-rotate/CHANGELOG.md index fe1a462b0..d66f01650 100644 --- a/packages/plugin-rotate/CHANGELOG.md +++ b/packages/plugin-rotate/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-rotate +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-rotate/package.json b/packages/plugin-rotate/package.json index b91b8ff76..3c954108c 100644 --- a/packages/plugin-rotate/package.json +++ b/packages/plugin-rotate/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-rotate", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-scroll/CHANGELOG.md b/packages/plugin-scroll/CHANGELOG.md index e9c02433b..833ea4bf1 100644 --- a/packages/plugin-scroll/CHANGELOG.md +++ b/packages/plugin-scroll/CHANGELOG.md @@ -1,5 +1,11 @@ # @embedpdf/plugin-scroll +## 2.0.0-next.2 + +### Minor Changes + +- [`89b94a0`](https://github.com/embedpdf/embed-pdf-viewer/commit/89b94a09659ad63eeab6b66fc56f8110a07a8f57) by [@bobsingor](https://github.com/bobsingor) – Added `pageNumber` and `totalPages` properties to `LayoutReadyEvent`. This allows consumers to get the current page information immediately when the layout becomes ready, without needing to subscribe to a separate `onPageChange` event. + ## 2.0.0-next.1 ### Minor Changes diff --git a/packages/plugin-scroll/package.json b/packages/plugin-scroll/package.json index 49b4a0807..2d303fcf9 100644 --- a/packages/plugin-scroll/package.json +++ b/packages/plugin-scroll/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-scroll", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-search/CHANGELOG.md b/packages/plugin-search/CHANGELOG.md index 2e27a0bd2..a0d6721dc 100644 --- a/packages/plugin-search/CHANGELOG.md +++ b/packages/plugin-search/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-search +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-search/package.json b/packages/plugin-search/package.json index aa76536e0..93fb8e9f9 100644 --- a/packages/plugin-search/package.json +++ b/packages/plugin-search/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-search", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-selection/CHANGELOG.md b/packages/plugin-selection/CHANGELOG.md index c859c695f..66a73f243 100644 --- a/packages/plugin-selection/CHANGELOG.md +++ b/packages/plugin-selection/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-selection +## 2.0.0-next.2 + ## 2.0.0-next.1 ### Patch Changes diff --git a/packages/plugin-selection/package.json b/packages/plugin-selection/package.json index 58deca6da..c0227e311 100644 --- a/packages/plugin-selection/package.json +++ b/packages/plugin-selection/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-selection", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-spread/CHANGELOG.md b/packages/plugin-spread/CHANGELOG.md index 66228394d..caa8452af 100644 --- a/packages/plugin-spread/CHANGELOG.md +++ b/packages/plugin-spread/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-spread +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-spread/package.json b/packages/plugin-spread/package.json index ecb3ea4c5..553eed260 100644 --- a/packages/plugin-spread/package.json +++ b/packages/plugin-spread/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-spread", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-thumbnail/CHANGELOG.md b/packages/plugin-thumbnail/CHANGELOG.md index 4a8b963a9..205a12e39 100644 --- a/packages/plugin-thumbnail/CHANGELOG.md +++ b/packages/plugin-thumbnail/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-thumbnail +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-thumbnail/package.json b/packages/plugin-thumbnail/package.json index b0efcc270..89f28f647 100644 --- a/packages/plugin-thumbnail/package.json +++ b/packages/plugin-thumbnail/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-thumbnail", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-tiling/CHANGELOG.md b/packages/plugin-tiling/CHANGELOG.md index 6f057f8f1..fc96a9089 100644 --- a/packages/plugin-tiling/CHANGELOG.md +++ b/packages/plugin-tiling/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-tiling +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-tiling/package.json b/packages/plugin-tiling/package.json index 3c81f5793..b7be395d7 100644 --- a/packages/plugin-tiling/package.json +++ b/packages/plugin-tiling/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-tiling", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-ui/CHANGELOG.md b/packages/plugin-ui/CHANGELOG.md index 5835b89a8..d85ba1854 100644 --- a/packages/plugin-ui/CHANGELOG.md +++ b/packages/plugin-ui/CHANGELOG.md @@ -1,5 +1,26 @@ # @embedpdf/plugin-ui +## 2.0.0-next.2 + +### Minor Changes + +- [#293](https://github.com/embedpdf/embed-pdf-viewer/pull/293) by [@github-actions](https://github.com/apps/github-actions) – Added `data-hidden-items` attribute for efficient CSS dependency rules. + + **Problem**: Visibility dependency rules (e.g., hiding overflow buttons when all menu items are hidden) required exponential CSS rules when using category-based logic, causing stylesheet bloat. + + **Solution**: + - Added `hiddenItems` state that tracks which item IDs are hidden based on disabled categories + - Dependency rules now use `data-epdf-hid` attribute to check item IDs directly + - CSS rules are now O(n) per breakpoint instead of O(m^n) + + **New APIs**: + - `getHiddenItems()` - returns array of hidden item IDs + - `onCategoryChanged` event now includes `hiddenItems` in payload + - `extractItemCategories(schema)` - extracts item→categories mapping + - `computeHiddenItems(itemCategories, disabledCategories)` - computes hidden items + + **Breaking Changes**: None - existing `disabledCategories` API unchanged + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-ui/package.json b/packages/plugin-ui/package.json index c9d052d21..9a7a37d76 100644 --- a/packages/plugin-ui/package.json +++ b/packages/plugin-ui/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-ui", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-view-manager/CHANGELOG.md b/packages/plugin-view-manager/CHANGELOG.md index d9ff8b3d7..e9c484823 100644 --- a/packages/plugin-view-manager/CHANGELOG.md +++ b/packages/plugin-view-manager/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-view-manager +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-view-manager/package.json b/packages/plugin-view-manager/package.json index 1dbe9b7c0..02a7b891e 100644 --- a/packages/plugin-view-manager/package.json +++ b/packages/plugin-view-manager/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-view-manager", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-viewport/CHANGELOG.md b/packages/plugin-viewport/CHANGELOG.md index db8b14175..fdc2d92b4 100644 --- a/packages/plugin-viewport/CHANGELOG.md +++ b/packages/plugin-viewport/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-viewport +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-viewport/package.json b/packages/plugin-viewport/package.json index d10600b28..b105fdb8f 100644 --- a/packages/plugin-viewport/package.json +++ b/packages/plugin-viewport/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-viewport", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/plugin-zoom/CHANGELOG.md b/packages/plugin-zoom/CHANGELOG.md index 2cfd0a891..ee7bdd15c 100644 --- a/packages/plugin-zoom/CHANGELOG.md +++ b/packages/plugin-zoom/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/plugin-zoom +## 2.0.0-next.2 + ## 2.0.0-next.1 ## 2.0.0-next.0 diff --git a/packages/plugin-zoom/package.json b/packages/plugin-zoom/package.json index 92a6f1209..6d6b3366c 100644 --- a/packages/plugin-zoom/package.json +++ b/packages/plugin-zoom/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/plugin-zoom", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "type": "module", "license": "MIT", "main": "./dist/index.cjs", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index b0a142242..8bb9982ce 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # @embedpdf/utils +## 2.0.0-next.2 + ## 2.0.0-next.1 ### Patch Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index 404750f38..93cd1d83c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/utils", - "version": "2.0.0-next.1", + "version": "2.0.0-next.2", "private": false, "description": "Shared utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.", "type": "module", diff --git a/viewers/react/CHANGELOG.md b/viewers/react/CHANGELOG.md new file mode 100644 index 000000000..2964cc63f --- /dev/null +++ b/viewers/react/CHANGELOG.md @@ -0,0 +1,3 @@ +# @embedpdf/react-pdf-viewer + +## 2.0.0-next.2 diff --git a/viewers/react/package.json b/viewers/react/package.json index 6ea733688..c89834d5b 100644 --- a/viewers/react/package.json +++ b/viewers/react/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/react-pdf-viewer", - "version": "1.0.0", + "version": "2.0.0-next.2", "description": "React component for embedding PDF documents", "main": "dist/index.cjs", "module": "dist/index.js", diff --git a/viewers/snippet/CHANGELOG.md b/viewers/snippet/CHANGELOG.md new file mode 100644 index 000000000..237ca0a8a --- /dev/null +++ b/viewers/snippet/CHANGELOG.md @@ -0,0 +1,143 @@ +# @embedpdf/snippet + +## 2.0.0-next.2 + +### Minor Changes + +- [`89b94a0`](https://github.com/embedpdf/embed-pdf-viewer/commit/89b94a09659ad63eeab6b66fc56f8110a07a8f57) by [@bobsingor](https://github.com/bobsingor) – Added comprehensive type exports for all plugin Capabilities and Scopes, enabling proper TypeScript support when using plugin APIs. + + ### New Type Exports + + All plugins now export their `*Capability` and `*Scope` types, allowing developers to properly type variables when using `plugin.provides()` and `forDocument()`: + - **Viewport**: `ViewportCapability`, `ViewportScope`, `ViewportMetrics` + - **Scroll**: `ScrollCapability`, `ScrollScope`, `ScrollMetrics`, `PageChangeEvent`, `ScrollEvent`, `LayoutChangeEvent` + - **Spread**: `SpreadCapability`, `SpreadScope` + - **Zoom**: `ZoomCapability`, `ZoomScope`, `ZoomLevel`, `ZoomChangeEvent` + - **Rotate**: `RotateCapability`, `RotateScope` + - **Tiling**: `TilingCapability`, `TilingScope` + - **Thumbnail**: `ThumbnailCapability`, `ThumbnailScope` + - **Annotation**: `AnnotationCapability`, `AnnotationScope`, `AnnotationEvent` + - **Search**: `SearchCapability`, `SearchScope` + - **Selection**: `SelectionCapability`, `SelectionScope` + - **Capture**: `CaptureCapability`, `CaptureScope` + - **Redaction**: `RedactionCapability`, `RedactionScope`, `RedactionMode`, `RedactionItem` + - **UI**: `UIScope` (UICapability was already exported) + - **I18n**: `I18nCapability`, `I18nScope`, `Locale`, `LocaleChangeEvent` + - **Commands**: `CommandScope` (CommandsCapability was already exported) + - **DocumentManager**: `DocumentManagerCapability`, `DocumentChangeEvent`, `LoadDocumentUrlOptions`, `LoadDocumentBufferOptions` + - **Print**: `PrintCapability`, `PrintScope` + - **Fullscreen**: `FullscreenCapability` + - **Bookmark**: `BookmarkCapability`, `BookmarkScope` + - **Export**: `ExportCapability`, `ExportScope` + - **Pan**: `PanCapability`, `PanScope` + - **History**: `HistoryCapability`, `HistoryScope` + - **Attachment**: `AttachmentCapability`, `AttachmentScope` + - **Render**: `RenderCapability`, `RenderScope` + - **InteractionManager**: `InteractionManagerCapability`, `InteractionManagerScope` + + ### Usage Example + + ```typescript + import { + ScrollPlugin, + type ScrollCapability, + type ScrollScope, + type PageChangeEvent, + } from '@embedpdf/snippet'; + + // Type the capability returned by provides() + const scroll: ScrollCapability = registry + .getPlugin('scroll') + ?.provides(); + + // Type the scoped API for a specific document + const doc: ScrollScope = scroll.forDocument('my-document'); + + // Type event callbacks + scroll.onPageChange((event: PageChangeEvent) => { + console.log(`Page ${event.pageNumber} of ${event.totalPages}`); + }); + ``` + +- [#293](https://github.com/embedpdf/embed-pdf-viewer/pull/293) by [@github-actions](https://github.com/apps/github-actions) – Added global `disabledCategories` config and hierarchical categories for fine-grained feature control. + + **Global `disabledCategories` Configuration** + + Added `disabledCategories` to the root `PDFViewerConfig` that applies to both UI and Commands plugins: + + ```typescript + const config: PDFViewerConfig = { + src: 'document.pdf', + // Disable all annotation and redaction features globally + disabledCategories: ['annotation', 'redaction'], + }; + ``` + + Plugin-specific settings can override the global setting: + + ```typescript + const config: PDFViewerConfig = { + disabledCategories: ['annotation'], // Global default + ui: { + disabledCategories: ['redaction'], // Overrides for UI only + }, + commands: { + disabledCategories: [], // Re-enables all for commands + }, + }; + ``` + + **Hierarchical Categories** + + All commands and UI schema items now have hierarchical categories for granular control: + - `annotation` - all annotation features + - `annotation-markup` - highlight, underline, strikeout, squiggly + - `annotation-highlight`, `annotation-underline`, etc. + - `annotation-shape` - rectangle, circle, line, arrow, polygon, polyline + - `annotation-rectangle`, `annotation-circle`, etc. + - `annotation-ink`, `annotation-text`, `annotation-stamp` + - `redaction` - all redaction features + - `redaction-text`, `redaction-area`, `redaction-apply`, `redaction-clear` + - `zoom` - all zoom features + - `zoom-in`, `zoom-out`, `zoom-fit-page`, `zoom-fit-width`, `zoom-marquee` + - `zoom-level` - all zoom level presets + - `document` - document operations + - `document-open`, `document-close`, `document-print`, `document-export`, `document-fullscreen` + - `panel` - sidebar panels + - `panel-sidebar`, `panel-search`, `panel-comment`, `panel-annotation-style` + - `page` - page settings + - `spread`, `scroll`, `rotate` + - `history` - undo/redo + - `history-undo`, `history-redo` + - `mode` - viewer modes + - `mode-view`, `mode-annotate`, `mode-shapes`, `mode-redact` + - `tools` - tool buttons + - `pan`, `pointer`, `capture` + + Example: Disable only print functionality while keeping export: + + ```typescript + disabledCategories: ['document-print']; + ``` + +- [#293](https://github.com/embedpdf/embed-pdf-viewer/pull/293) by [@github-actions](https://github.com/apps/github-actions) – Added Spanish translations, improved i18n support, and enhanced plugin configuration API. + + ### New Features + - **Spanish Translations**: Added Spanish (`es`) locale support with complete translations for all UI elements and commands. + - **Annotation Sidebar Translations**: Sidebar titles are now properly translated using i18n keys. Added missing translation keys (`annotation.freeText`, `annotation.square`, `annotation.styles`, `annotation.defaults`) to all 5 languages. + + ### Improvements + - **Partial Plugin Configs**: All plugin configuration options in `PDFViewerConfig` now use `Partial<>` types, making it easier to override only the settings you need without specifying all required fields. + - **Reactive Blend Mode Labels**: Blend mode dropdown labels in the annotation sidebar now update reactively when the language changes. + - **Search Sidebar Layout**: Changed search options checkboxes from horizontal to vertical layout for better compatibility with longer translated labels. + + ```typescript + // Override just specific settings + + ``` diff --git a/viewers/snippet/package.json b/viewers/snippet/package.json index 7869e62bc..29f8960fc 100644 --- a/viewers/snippet/package.json +++ b/viewers/snippet/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/snippet", - "version": "1.0.0", + "version": "2.0.0-next.2", "main": "dist/embedpdf.js", "types": "dist/embedpdf.d.ts", "license": "MIT", diff --git a/viewers/svelte/CHANGELOG.md b/viewers/svelte/CHANGELOG.md new file mode 100644 index 000000000..ef2387b9a --- /dev/null +++ b/viewers/svelte/CHANGELOG.md @@ -0,0 +1,3 @@ +# @embedpdf/svelte-pdf-viewer + +## 2.0.0-next.2 diff --git a/viewers/svelte/package.json b/viewers/svelte/package.json index b7559f9d6..5b4823b65 100644 --- a/viewers/svelte/package.json +++ b/viewers/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/svelte-pdf-viewer", - "version": "1.0.0", + "version": "2.0.0-next.2", "description": "Svelte component for embedding PDF documents", "license": "MIT", "type": "module", diff --git a/viewers/vue/CHANGELOG.md b/viewers/vue/CHANGELOG.md new file mode 100644 index 000000000..201092905 --- /dev/null +++ b/viewers/vue/CHANGELOG.md @@ -0,0 +1,3 @@ +# @embedpdf/vue-pdf-viewer + +## 2.0.0-next.2 diff --git a/viewers/vue/package.json b/viewers/vue/package.json index 9a052de69..0378e4934 100644 --- a/viewers/vue/package.json +++ b/viewers/vue/package.json @@ -1,6 +1,6 @@ { "name": "@embedpdf/vue-pdf-viewer", - "version": "1.0.0", + "version": "2.0.0-next.2", "description": "Vue component for embedding PDF documents", "main": "dist/index.cjs", "module": "dist/index.js",