-
-
Notifications
You must be signed in to change notification settings - Fork 158
chore: version packages (next) (next) #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3bea350 to
716cc9b
Compare
716cc9b to
0158b12
Compare
0158b12 to
ed823f9
Compare
ed823f9 to
a9ee083
Compare
a9ee083 to
8428d98
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
@embedpdf/[email protected]
Minor Changes
89b94a0by @bobsingor – AddedpageNumberandtotalPagesproperties toLayoutReadyEvent. This allows consumers to get the current page information immediately when the layout becomes ready, without needing to subscribe to a separateonPageChangeevent.@embedpdf/[email protected]
Minor Changes
#293 by @github-actions – Added
data-hidden-itemsattribute 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:
hiddenItemsstate that tracks which item IDs are hidden based on disabled categoriesdata-epdf-hidattribute to check item IDs directlyNew APIs:
getHiddenItems()- returns array of hidden item IDsonCategoryChangedevent now includeshiddenItemsin payloadextractItemCategories(schema)- extracts item→categories mappingcomputeHiddenItems(itemCategories, disabledCategories)- computes hidden itemsBreaking Changes: None - existing
disabledCategoriesAPI unchanged@embedpdf/[email protected]
Minor Changes
89b94a0by @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
*Capabilityand*Scopetypes, allowing developers to properly type variables when usingplugin.provides()andforDocument():ViewportCapability,ViewportScope,ViewportMetricsScrollCapability,ScrollScope,ScrollMetrics,PageChangeEvent,ScrollEvent,LayoutChangeEventSpreadCapability,SpreadScopeZoomCapability,ZoomScope,ZoomLevel,ZoomChangeEventRotateCapability,RotateScopeTilingCapability,TilingScopeThumbnailCapability,ThumbnailScopeAnnotationCapability,AnnotationScope,AnnotationEventSearchCapability,SearchScopeSelectionCapability,SelectionScopeCaptureCapability,CaptureScopeRedactionCapability,RedactionScope,RedactionMode,RedactionItemUIScope(UICapability was already exported)I18nCapability,I18nScope,Locale,LocaleChangeEventCommandScope(CommandsCapability was already exported)DocumentManagerCapability,DocumentChangeEvent,LoadDocumentUrlOptions,LoadDocumentBufferOptionsPrintCapability,PrintScopeFullscreenCapabilityBookmarkCapability,BookmarkScopeExportCapability,ExportScopePanCapability,PanScopeHistoryCapability,HistoryScopeAttachmentCapability,AttachmentScopeRenderCapability,RenderScopeInteractionManagerCapability,InteractionManagerScopeUsage Example
#293 by @github-actions – Added global
disabledCategoriesconfig and hierarchical categories for fine-grained feature control.Global
disabledCategoriesConfigurationAdded
disabledCategoriesto the rootPDFViewerConfigthat applies to both UI and Commands plugins:Plugin-specific settings can override the global setting:
Hierarchical Categories
All commands and UI schema items now have hierarchical categories for granular control:
annotation- all annotation featuresannotation-markup- highlight, underline, strikeout, squigglyannotation-highlight,annotation-underline, etc.annotation-shape- rectangle, circle, line, arrow, polygon, polylineannotation-rectangle,annotation-circle, etc.annotation-ink,annotation-text,annotation-stampredaction- all redaction featuresredaction-text,redaction-area,redaction-apply,redaction-clearzoom- all zoom featureszoom-in,zoom-out,zoom-fit-page,zoom-fit-width,zoom-marqueezoom-level- all zoom level presetsdocument- document operationsdocument-open,document-close,document-print,document-export,document-fullscreenpanel- sidebar panelspanel-sidebar,panel-search,panel-comment,panel-annotation-stylepage- page settingsspread,scroll,rotatehistory- undo/redohistory-undo,history-redomode- viewer modesmode-view,mode-annotate,mode-shapes,mode-redacttools- tool buttonspan,pointer,captureExample: Disable only print functionality while keeping export:
#293 by @github-actions – Added Spanish translations, improved i18n support, and enhanced plugin configuration API.
New Features
es) locale support with complete translations for all UI elements and commands.annotation.freeText,annotation.square,annotation.styles,annotation.defaults) to all 5 languages.Improvements
PDFViewerConfignow usePartial<>types, making it easier to override only the settings you need without specifying all required fields.@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]
@embedpdf/[email protected]