feat: (esign) introduce viewOptions for document layout and deprecate layoutMode and layoutMargins#1957
Conversation
… layoutMode and layoutMargins - Added `viewOptions` to control document layout with options for 'web' and 'print'. - Deprecated `layoutMode` and `layoutMargins`, recommending CSS for margin control. - Updated documentation and examples to reflect the new configuration.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22204e04c8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
caio-pizzol
left a comment
There was a problem hiding this comment.
looking good! make sure to test it locally and make sure it works with the new options
after addressing relevant comments feel free to merge
- Improved the logic for setting `viewOptions` to ensure it falls back to `layoutMode` when `viewOptions` is an empty object. - Updated the documentation to clarify the recommended usage of `viewOptions` for SuperDoc versions greater than 1.6.x. - Added a test case to verify the fallback behavior for layout options.
|
🎉 This PR is included in esign v2.1.0-next.4 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.11.0-next.19 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.12.0-next.1 The release is available on GitHub release |
# [2.1.0](esign-v2.0.0...esign-v2.1.0) (2026-03-18) ### Bug Fixes * **esign:** add jsdoc comment ([9e57883](9e57883)) * **esign:** add jsdoc to FieldReference interface ([#1927](#1927)) ([22ebbe5](22ebbe5)) * mount Vue on wrapper element to prevent host framework conflicts (SD-1832) ([#1971](#1971)) ([0c4bdda](0c4bdda)) * sync esign with recent version updates ([#1943](#1943)) ([94c3ed1](94c3ed1)) * use correct template syntax for GitHub release URL in PR comments ([9d1bca2](9d1bca2)) ### Features * (esign) introduce viewOptions for document layout and deprecate layoutMode and layoutMargins ([#1957](#1957)) ([93e1b69](93e1b69)) * add support for PDF [eSign] ([#2111](#2111)) ([296a0a5](296a0a5)) * add telemetry and license key support to SuperDocESign component ([#2120](#2120)) ([6c679c6](6c679c6))
|
🎉 This PR is included in esign v2.1.0 The release is available on GitHub release |
viewOptionsto control document layout with options for 'web' and 'print'.layoutModeandlayoutMargins, recommending CSS for margin control.