Skip to content

Releases: Patternslib/Patterns

Release 7.7.0

12 Apr 07:45
Compare
Choose a tag to compare

7.7.0 (2022-04-12)

Features

  • Introduce disable-patterns class to prevent from initializing. (5f137f0)
    To disable patterns when scanning markup for patterns, use the disable-patterns CSS class.

Previously we did use the dont-touch-this class.
This is deprecated due to a ambiguous name and will be removed in the next major version.

Bug Fixes

  • Build: Fix changelog template. (96f7bac)
    Since conventional-changelog 4.2.0 the previous header is merged to the
    end of the new changelog entry block.
    This is documented here: release-it/conventional-changelog#46
    As long as this issue is not resolved, we're adding a # at the end
    of the changelog block, intending the previous entry in the heading
    hierarchy, but that's better than a even more messed up changelog file.

Release 7.6.0

08 Apr 10:01
Compare
Choose a tag to compare

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

01 Apr 12:16
Compare
Choose a tag to compare

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

24 Mar 16:53
Compare
Choose a tag to compare

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

17 Mar 11:22
Compare
Choose a tag to compare

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

16 Mar 08:20
Compare
Choose a tag to compare

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

14 Mar 09:21
Compare
Choose a tag to compare

7.1.3 (2022-03-14)

Bug Fixes

  • core logging: Fix invalid use of typeof. (e2e992d)

Maintenance

Release 7.1.2

14 Mar 07:52
Compare
Choose a tag to compare

7.1.2 (2022-03-14)

Bug Fixes

  • pat validation: With depending date validation also validate the dependend date. (5060fa4), closes #970
    Fixes: #970

Maintenance

  • Build: Makefile - Resolve package version for ZIP bundle at target runtime. (2d799f8)

  • pat tabs: Fix test for error not thrown. (c4e00aa)
    Fix an UnhandledPromiseRejection error with an asynchronous test.
    The problem popped up in node version 16 and was passing in node version 14.

Release 7.1.1

16 Feb 22:02
Compare
Choose a tag to compare

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

16 Feb 20:07
Compare
Choose a tag to compare

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

  • core events: Show behvavior of two click events emitted when clicking on a lable wrapping a checkbox. (259173f)

  • Dependencies: Upgrade dependencies. (6a7ea33)

  • pat toggle: Modernize code. (5a478a4)

  • pat validation: Demo - remove pat-validation type options. (d60e39b)