Skip to content

Commit 59c7c71

Browse files
committed
Add changeset
1 parent d2bd66a commit 59c7c71

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@embedpdf/models': patch
3+
---
4+
5+
Add `PdfAnnotationFlags.LOCKED_CONTENTS` (`1 << 9`) and map it to the `'lockedContents'` `PdfAnnotationFlagName`, extending flag parsing helpers (`flagsToNames`, `namesToFlags`) accordingly.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@embedpdf/plugin-annotation': patch
3+
---
4+
5+
Add PDF `LOCKED_CONTENTS` flag handling and granular lock helpers (`hasNoViewFlag`, `hasHiddenFlag`, `hasReadOnlyFlag`, `hasLockedContentsFlag`). Expose `isAnnotationInteractive`, `isAnnotationStructurallyLocked`, `isAnnotationContentLocked`, and `isAnnotationSelectable` on the plugin API. Update annotation rendering across React/Preact, Svelte, and Vue to skip `noView`/`hidden` annotations and gate interactions using the new predicates. Thread `structurallyLocked` and `contentLocked` through the selection menu context on all three stacks so custom menus can disable structural or content edits without re-reading flag arrays.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@embedpdf/snippet': patch
3+
---
4+
5+
Align annotation fill-mode toolbar commands with plugin-configured default lock state via `getDefaultAnnotationLock`, and swap unlock vs form-only lock behavior so defaults match the intended modes. Re-export `LockModeType` from the snippet’s public `embedpdf` entry for consumers.

0 commit comments

Comments
 (0)