Release v1.5.2
Release v1.5.2
Changelog
Added
- Workflow documentation: WORKFLOW.md with Mermaid diagrams for architecture, page load and init, load PDF, add signature box, drag/resize overlay, coordinate sync, and form submit. Linked from USAGE and README.
- Data attributes for overrides: The viewer script finds elements by
data-pdf-signableattributes (e.g.data-pdf-signable="widget","page","x") instead of CSS classes, so you can change or remove classes in overridden templates for styling without breaking the JS. Form types and theme add these attributes; USAGE documents the full table and override notes. - Recipe:
.symfony/recipeconfig file is a complete example with all options commented and explained in English.
Changed
- Override form theme: USAGE now explains that if the overridden form theme is not applied (form fields still from bundle), add the theme explicitly in
config/packages/twig.yamlunderform_themesso Twig uses your overridden template.
Fixed
- Widget init: Script finds the widget by
[data-pdf-signable="widget"]with fallback to.nowo-pdf-signable-widget, so overridden themes that do not add the attribute still work. - Page field on add box: When the page field is an input and the template override omits the expected class, the script now finds it by
[data-pdf-signable="page"]or by input/select whosenameends with[page], so the page number is set correctly when clicking on the PDF. - Mermaid diagrams: WORKFLOW.md sequence diagram labels simplified (no commas or special characters in arrow text) so Mermaid parsers accept them.
Developer
- CHANGELOG, UPGRADING, and RELEASE checklist updated for 1.5.2.
For upgrade steps from 1.5.1, see UPGRADING.
Commits
- Release version 1.5.2 with new features and improvements (bccc25f)
- Enhance PdfSignable bundle with data attributes for improved element targeting (2298a81)
- Update NowoPdfSignable bundle configuration with additional options and improved comments (8c724ae)
- Update documentation for template overriding in NowoPdfSignable bundle (7f71d73)
- Enhance documentation with template overriding instructions (53296b5)