Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternslib/patternslib

Package Overview
Dependencies
Maintainers
5
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternslib/patternslib - npm Package Versions

1
16

9.9.0-beta.1

Diff

Changelog

Source

9.9.0-beta.1 (2023-05-17)

Bug Fixes

  • pat display time: Default to locale-formatted output. (c77d01a)

    Default to formatted output according to the current locale. This fixes a regression since 4.1.0 which came with the date picker's styled behavior but let display time output an ISO date instead of a formatted date when not output format was set.

  • pat inject: Allow to use a scroll container other than the injection target. (efde472)

    This fixes a problem when the content should scroll to an element which is within a scroll container below the injection target. Until now the scroll container could only be a parent of the injection target. Now it can be a parent of the scroll-target.

  • pat inject: Fix scrolling behavior, where the scrolling target could not be found. (911b8b8)

  • pat validation: Do not disable input elements with formnovalidate. (f30af14)

    Do not disable input elements with the formnovalidate attribute set when form validation fails. E.g. a cancel button: <button formnovalidate>Cancel</button>.

    Fixes #1132. closes #1132

Maintenance

  • pat inject: Give tests a individual number to allow easier selectively testing individual tests. (e819b84)
thet
published 9.9.0-beta.0 •

Changelog

Source

9.9.0-beta.0 (2023-05-11)

Bug Fixes

  • pat calendar: Do not set a Content-Type header when no body is submitted (89d34c1)

    Closes #1156 closes #1156

  • pat navigation: Fix current marker anchors with child elements. (8578b1b)

    The links within a pat-navigation structure might have child elements, e.g. a span within an anchor. In that case the click target is the span and not the anchor. Apply a fix where a closest anchor of the click target is searched, which might be the click target itself.

Maintenance

thet
published 9.9.0-alpha.5 •

Changelog

Source

9.9.0-alpha.5 (2023-04-21)

Bug Fixes

  • pat collapsible: Adapt to changed pat-scroll. (7211616)

Breaking Changes

  • pat scroll: Simplify pattern and remove obsolete functionality. (b62e6e0)

    Since pat-navigation now supports marking navigation and content items with CSS classes based on their scroll position this functionality is removed from pat-scroll. You can still use pat-scroll in combination with pat-scroll-marker to achieve the same functionality like before.

Also the jQuery based scroll animation is removed as smooth scrolling is supported by CSS since long.

Maintenance

  • core utils: Deprecate elementInViewport in favor of isElementInViewport. (a9b5035)

  • pat scroll: Update documentation. (fdb44bf)

  • Upgrade dependencies. (75acb81)

thet
published 9.9.0-alpha.4 •

Changelog

Source

9.9.0-alpha.4 (2023-04-19)

Bug Fixes

  • pat navigation: Change default scroll-trigger-selector to "a[href^='#'].scroll-trigger". (efc5826)

    In the alpha.3 release it was "a[href^='#'].scroll-marker" where it should have been "a[href^='#'].scroll-trigger". This is fixed now.

thet
published 9.9.0-alpha.3 •

Changelog

Source

9.9.0-alpha.3 (2023-04-19)

Features

  • core utils: Add is_option_truthy to check Pattern options for a truthy value. (6a6e9fa)

    A values "undefined", "null", "false", "none" or "" are considered falsy and can be used to disable some functionality. Other values including "0" are considered to be true.

  • core utils: parseLength: handle unitless lengths as pixels. (15090e3)

  • pat navigation: Implement scroll-trigger-selector option. (818c68d)

    Define the CSS selector which is used to find navigation links with hash URLs. The default is "a[href^='#'].scroll-marker" which would find all anchor elements which href starts with a "#" sign and have the class scroll-marker. The restriction on scroll-marker allows for other hash-urls in the same navigation - e.g. a pat-tooltip which references a local content. If you set it to "none" the scroll marker functionality is not activated.

  • pat scroll-marker: Implement selector option. (678aee5)

    Define the CSS selector which is used to find navigation links with hash URLs. The default is "a[href^='#']" which would find all anchor elements which href starts with a "#" sign.

Bug Fixes

  • pat navigation: Allow "none" to be a valid option for scroll-item-visibility. (456e05a)

  • pat navigation: Rename scroll-marker- options to scroll-item. (a40fc0f)

    Implement review comments.

This is not listed as "breaking" change because this change on the scroll-marker feature happens within the alpha phase.

  • pat scroll-marker: Allow "none" to be a valid option for visibility. (e506ed2)
thet
published 9.9.0-alpha.2 •

Changelog

Source

9.9.0-alpha.2 (2023-04-18)

Features

  • core dom: Add escape_css_id method. (5aa7a52)

    Get an escaped CSS selector for a given id string.

id selectors should - but don't have to - start with a letter. If the id starts with a number or a dash, it should be escaped. This method does that for you.

Bug Fixes

  • pat navigation: Do escaping for hash id selectors, so they are allowed to start with a number. (75d8283)

  • pat scroll-marker: Do escaping for hash id selectors, so they are allowed to start with a number. (d733cb7)

  • pat scroll-marker: The init method does not need to be async. (c308b66)

thet
published 9.9.0-alpha.1 •

Changelog

Source

9.9.0-alpha.1 (2023-04-17)

Bug Fixes

  • pat scroll-marker: Do not break if no scroll-marker observables have been found. (be6723f)

  • pat scroll-marker: Use the correct scroll container. (ccc3ddc)

    The scroll container was potentially wrong and is a parent of the hash-link target contents and not a parent of the navigation where pat-scroll-container (or pat-navigation) are defined upon.

Maintenance

thet
published 9.9.0-alpha.0 •

Changelog

Source

9.9.0-alpha.0 (2023-04-17)

Features

  • core basepattern: Allow to specify parser options on the pattern. (eb66159)

  • core basepattern: Throw pre-init.PATTERNNAME.patterns event. (cacb743)

    Throw a bubbling pre-init.PATTERNNAME.patterns event before initializing the event for new class-based patterns.

  • core base: Throw pre-init.PATTERNNAME.patterns event. (e9a8f2f)

    Throw a bubbling pre-init.PATTERNNAME.patterns event before initializing the event for old prototype based patterns.

  • core dom: Add get_scroll_x and get_scroll_y helper methods to get the horizontal/vertical scrolling position. (a3ecf93)

  • core dom: Implement get_visible_ratio to calculate the visible ratio between an element and a container. (622d5e2)

  • core utils: add parseLength method for parsing px and % lengths. (95c16b8)

  • core utils: Add threshold_list helper for intersection observers. (52d9ecf)

  • core utils: debouncer - Add postpone option for callback to be run after all debounce calls or in between. (12c980b)

    If "postpone" is set to "true" (the default and previous behavior) the callback will only be called after no more debouncer calls are done for the given timeout. If "postpone" is set to "false" the callback will be run after the timeout has passed and calls to "debouncer" in between are ignored.

  • pat navigation: Add scroll-marker functionality. (fb8eb82)

    The pattern now sets current and in-view classes on the navigation and the content when scrolling to hash-link targets.

  • pat scroll-marker: Add pattern to set navigation classes based on the scroll position. (6483649)

    The new scroll-marker pattern allows you to set classes on the navigation and content elements for hash-links. If a content section with a hash id and a corresponding navigation link with the same hash-url is visible, the navigation and content section are marked with CSS classes.

Maintenance

  • pat inject: Use dom.find_scroll_container instead jQuery :scrollable selector. (14af661)

  • pat navigation: Don't do option grouping. There will some options be added where grouping get's in the way. (3c55864)

  • pat navigation: Switch to class based pattern. (5b0fc43)

  • pat scroll-box: Cleanup code. (148f79a)

  • pat scroll-box: Use dom.scroll_y instead of own implementation. (e5a4b24)

  • pat scroll: Code cleanup. (a66a9f8)

  • pat-inject: Remove obsolete hooks option. (411653d)

    The hooks option allowed to throw custom events after successful injection. It was a multi-value argument but only allowed "raptor" as value. Raptor was a WYSIWYG editor which has not been further developed since 10 years and which we're not supporting anymore since quite some time. Thus this option could be safely removed and this change is not a breaking change.

If you need to react on events, see the documented event list in pat-inject's documentation.

  • pat-inject: Remove obsolete raptor-ui trigger. (ae01e20)

    Remove the ".raptor-ui .ui-button.pat-inject" trigger selector which was for raptor WYSIWYG HTML editor support. This editor isn't actively developed since almost 9 years and not supported anymore. This is not a breaking change.

  • Upgrade dependencies. (15b6adb)

  • Upgrade luxon to 3.3.0. (b19f1e5)

    The Module federation warning "Unable to find required version" is fixed since webpack v5.78.0 for modules which do package.json self-referencing.

Ref:

  • https://github.com/webpack/webpack/issues/16683
  • https://github.com/webpack/webpack/pull/16685
thet
published 9.8.3 •

Changelog

Source

9.8.3 (2023-04-17)

Maintenance

  • Docs: Remove section about IE polyfills from README. (b9c3697)The IE polyfills were removed in Patternslib 9.8.0-alpha.2.

  • pat inject: Document events thrown by the pattern. (d3a7a0e)

  • pat inject: Document the scroll argument. (1b9604e)

thet
published 9.8.3-alpha.2 •

Changelog

Source

9.8.3-alpha.2 (2023-03-09)

Maintenance

  • Upgrade pat-tiptap to 4.8.1. (eda16d7)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc