Releases: Patternslib/Patterns
Release 7.6.0
7.6.0 (2022-04-08)
Features
-
pat tooltip: For ajax requests, define the accept header. (a65642e)
We're expecting HTML or XML as the response.
This solves a problem with*/*
or json requests being handled by plone.restapi only. -
pat tooltip: Support query strings in remote tooltip content URLs. (252ee17)
Bug Fixes
- Build: Fix changelog template as per @release-it/conventional-changelog v4.2.0 the header was improperly appended at the end of the new changelog entry. (276b2d5)
Maintenance
- Build: Upgrade dependencies. (900eedb)
Release 7.5.0
7.5.0 (2022-04-01)
Features
- pat tooltip: Expose get_content API method and allow to reload the tooltip's content. (16ba9c1)
Bug Fixes
- pat inject tests: Fix one failing test in GH actions, where document is null. (0f8d4aa)
Maintenance
-
Build: Upgrade dependencies. (21b911f)
-
pat inject: Minor code improvements. (8f507ab)
-
pat inject tests: Restore all mocks. (82cc049)
-
pat tooltip: Remove ajax_state. With async/await based loading we do not need to set the ajax_state to avoid multiple ajax calls. (b5deb4b)
-
pat tooltip tests: Add numbers to test cases so that they can be esier run selectively by filtering. (72611af)
-
pat tooltip tests: Restore all mocks completly after each test run. (8edba74)
Release 7.4.0
7.4.0 (2022-03-24)
Features
-
core parser: Also convert on/off values to boolean for boolean arguments. (985f4e2)
-
pat ajax: Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. (49dbecf)
-
pat inject: Allow caching of ajax requests by using the option cache which can be set to caching or no-caching. (8376c56)
Bug Fixes
- pat inject: Fix logic for adding executing-class to the pat-inject element. (e8531de)
Breaking Changes
- core pluggable: Remove unused pluggable module. (c5c2e1b)
Maintenance
-
Build: Upgrade dependencies. (e5b8fe4)
-
Build: Use node version 16 and upgrade setup-node and checkout actions. (3c98bfa)
-
core base: Un-underscore core.base tests. (4a0ad4b)
-
core logging: Cleanup - remove IE8 compatibility code for console.log. (da0d9d9)
-
core parser: Un-underscore core.parser tests. (5faec93)
-
core utils: Un-underscore core.utils. (cd9c00d)
-
Dependencies: Remove now unused dependency Underscore.js. (874c6c1)
-
pat inject: Remove console.log statements from tests. (3db47fe)
-
pat inject: Un-underscore pat-inject. (584420c)
-
pat navigation: Remove console.log statement from tests. (a20fbd4)
Release 7.3.0
7.3.0 (2022-03-17)
Features
-
core base: Add one event listener to listen for Pattern events only once. (1028a6d)
-
core dom: Add a fallback option to find_scroll_container to return something else than document.body if no other scroll container can be found. (ac220fd)
-
core events: Add await_event for using await statements to wait for an event to happen. (1e264c1)
-
core events: Add await_pattern_init helper which can be used to await the event when a pattern instance is initialized. (ac371e0)
Bug Fixes
- pat bumper: Fallback to null if no scroll container can be found. Fixes a problem with initalization of the IntersectionObserver introduced in 7.2.0. (c04ea75)
Maintenance
- pat bumper: Minor code cleanup. (edfec61)
Release 7.2.0
7.2.0 (2022-03-16)
Features
-
core dom: Add
find_scroll_container
to find a scrollable element up in the DOM tree. (d9eef9e) -
pat inject: Rework autoload-visible to use an IntersectionObserver. (4f26006)
The autoload-visible trigger of pat-inject now uses an IntersectionObserver.
This simplifies the code and improves performance because there are no more complex position calculations involved.
Fixes: #955
- pat inject: Support delay time for trigger: autoload-visible. (d951817)
Maintenance
-
Upgrade dependencies. (2590bcf)
-
core dom: Move utils.getCSSValue to dom.get_css_value and keep a BBB import. (25e1846)
Move utils.getCSSValue to dom.get_css_value and keep a BBB import in utils.
This change is made for these reasons:
- Avoid circular imports (even if supported).
- Code cleanup - move DOM related methods to dom module.
-
pat bumper: Update import for get_css_value. (ccff688)
-
pat bumper: Use new core.dom.find_scroll_container instead own implementation. (ab98985)
-
pat gallery: Update import for get_css_value. (3268b1e)
-
pat inject: Update import for get_css_value. (e378e51)
-
pat scroll: Use new core.dom.find_scroll_container instead own implementation. (3872aaf)
-
pat tabs: Update import for get_css_value. (ce50044)
-
tests: Add an IntersectionObserver mock for testing. (8e84d0f)
Release 7.1.3
Release 7.1.2
Release 7.1.1
7.1.1 (2022-02-16)
Features
- core polyfills: Add polyfills module for modern browsers. (69402f6)
Currently this holds a polyfill for SubmitEvent.submitter, which isn't available in Safari < 15.4 and jsDOM.
Bug Fixes
- pat validation: Fix release 7.1.0. (3afb42b)
The event-submitter-polyfill package isn't universally built.
Let's use our new core/polyfills.js module instead and fix the previous release.
Release 7.1.0
7.1.0 (2022-02-16)
Features
-
core events: Standard JavaScript event factories - add "click" event. (8c7ce5f)
-
pat validation: Do not submit when a formnovalidate buttons was used. (35f4227)
-
pat validation: Set novalidation to pat-validation forms to prevent the browser's validation bubbles to appear. (a6a8188)
Bug Fixes
- pat toggle: Don't let pat-toggle steal the click event and prevent double clicks. (8b75b8e)
Do not let pat-toggle prevent the click event after it was catched.
This makes pat-toggle work together with other Patterns, like pat-checklist.
Also, when clicking on a label wrapping a checkbox, the checkbox also emits a click event which results in a unmodified toggle-state.
Prevent double-clicks by debouncing and canceling events.
Maintenance
Release 7.0.2
7.0.2 (2022-02-15)
Bug Fixes
- pat auto suggest: Fix issue with pat-auto-submit. (bbf5735)
Also dispatch a input event after a value has changed to let auto-submit do a form submit.
This fixes an issue introduced in Patternslib 7.0.0.
Note: this will be revisited when reworking auto-submit and input-change-events for standard JavaScript event compatibility.
Maintenance
-
core events tests: Add jQuery vs native JavaScript events tests. (bb3a8e8)
Add test showing that jQuery catches native events, but native listeners do not catch jQuery events.
In the mid-term we want to switch to native-only to get rid of this difference. -
Dependencies: Upgrade dependencies. (d5fd1ad)
-
pat auto submit: Cleanup code, improve tests. (8d289eb)
-
pat auto suggest: Improve and extend tests. (d4d2e99)