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

@patternslib/patternslib

Package Overview
Dependencies
Maintainers
7
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternslib/patternslib - npm Package Versions

1
17

9.9.0-alpha.2

Diff

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)
thet
published 9.8.3-alpha.1 •

Changelog

Source

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

Bug Fixes

  • core events: await_pattern_init - check for event coming from correct element. (a532ebf)Check if the init/not-init events were thrown from the Pattern's own element. When a child element did an unsuccessful Pattern init (rejected because already initialized) and at the same time the parent element also tried to initialized the same Pattern await_pattern_init could fail. The not-init event bubbled up which was incorrectly catched by await_pattern_init on the parent element.

Maintenance

  • core events test: Remove unused test. (ca16b1d)

  • core utils debounce tests: await for number of debounce calls to correctly test the debounce method. (0c3dea7)

  • Upgrade dependencies. (bfaf95c)

thet
published 9.8.3-alpha.0 •

Changelog

Source

9.8.3-alpha.0 (2023-03-06)

Bug Fixes

  • pat auto submit: Fix cloned elements not submitted when their input changes. (f36c69b)
thet
published 9.8.2 •

Changelog

Source

9.8.2 (2023-02-24)

thet
published 9.8.2-alpha.0 •

Changelog

Source

9.8.2-alpha.0 (2023-02-14)

Maintenance

thet
published 9.8.1 •

Changelog

Source

9.8.1 (2023-02-02)

Features

  • build: Update patternslib.com with each non-pre release. (143031d)

Bug Fixes

  • Build: Fix luxon (again) to 2.4.0 to avoid webpack MF error due to non standard package.json setup. (9661ae7)

  • pat checklist: Also set the "checked" and "unchecked" classes on the toggle checkbox. (8154775)

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