You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***core basepattern:** Allow to specify parser options on the pattern. ([eb66159](https://github.com/Patternslib/patterns/commit/eb66159e82ba019a3210d8d862ea65dcbd178df6))
Throw a bubbling pre-init.PATTERNNAME.patterns event before initializing
25
+
the event for old prototype based patterns.
26
+
27
+
28
+
***core dom:** Add get_scroll_x and get_scroll_y helper methods to get the horizontal/vertical scrolling position. ([a3ecf93](https://github.com/Patternslib/patterns/commit/a3ecf9350c2720e6ac2cf6a5e50eea28691067a4))
29
+
30
+
31
+
***core dom:** Implement get_visible_ratio to calculate the visible ratio between an element and a container. ([622d5e2](https://github.com/Patternslib/patterns/commit/622d5e21bc6295ec93d11224a2ff78ee010a617a))
32
+
33
+
34
+
***core utils:** add parseLength method for parsing px and % lengths. ([95c16b8](https://github.com/Patternslib/patterns/commit/95c16b8dab1f9324e8751fbd7211da1a9e82d47f))
35
+
36
+
37
+
***core utils:** Add threshold_list helper for intersection observers. ([52d9ecf](https://github.com/Patternslib/patterns/commit/52d9ecf1ecb2e14d5f0e4e3fd9f39531b0846dab))
38
+
39
+
40
+
***core utils:** debouncer - Add postpone option for callback to be run after all debounce calls or in between. ([12c980b](https://github.com/Patternslib/patterns/commit/12c980b02ce140e58b9d256520e056561795ac1b))
41
+
42
+
If "postpone" is set to "true" (the default and previous behavior) the
43
+
callback will only be called after no more debouncer calls are done for
44
+
the given timeout.
45
+
If "postpone" is set to "false" the callback will be run after the
46
+
timeout has passed and calls to "debouncer" in between are ignored.
The pattern now sets current and in-view classes on the navigation and
52
+
the content when scrolling to hash-link targets.
53
+
54
+
55
+
***pat scroll-marker:** Add pattern to set navigation classes based on the scroll position. ([6483649](https://github.com/Patternslib/patterns/commit/64836491c2591b399fe543bd4aacb1e50b826b3c))
56
+
57
+
The new scroll-marker pattern allows you to set classes on the
58
+
navigation and content elements for hash-links. If a content section
59
+
with a hash id and a corresponding navigation link with the same
60
+
hash-url is visible, the navigation and content section are marked with
61
+
CSS classes.
62
+
63
+
64
+
65
+
### Maintenance
66
+
67
+
68
+
***pat inject:** Use dom.find_scroll_container instead jQuery :scrollable selector. ([14af661](https://github.com/Patternslib/patterns/commit/14af6612c38e79bd073ee08d9e1e1a6048dfe086))
69
+
70
+
71
+
***pat navigation:** Don't do option grouping. There will some options be added where grouping get's in the way. ([3c55864](https://github.com/Patternslib/patterns/commit/3c5586466f4ba72a1d9d2c80b5f978200b6e263f))
72
+
73
+
74
+
***pat navigation:** Switch to class based pattern. ([5b0fc43](https://github.com/Patternslib/patterns/commit/5b0fc43295bb7eab46cb483e8744f1fafb839269))
***pat scroll-box:** Use dom.scroll_y instead of own implementation. ([e5a4b24](https://github.com/Patternslib/patterns/commit/e5a4b244c65974619b9716e3baecfe5e7376be58))
@@ -1165,4 +1278,4 @@ For usage see: src/core/basepattern.md
1165
1278
1166
1279
-**docs:** Move upgrade 2 to 3 guide to history section. ([5449491](https://github.com/Patternslib/patterns/commit/5449491cbb851af9d1a2b3f5f017a6b599f8d9a7))
1167
1280
1168
-
-**docs:** Remove outdated roadmap and version files. ([8f9e0cb](https://github.com/Patternslib/patterns/commit/8f9e0cb5a992303d961c4a9790a41ceb3e77547c))
1281
+
-**docs:** Remove outdated roadmap and version files. ([8f9e0cb](https://github.com/Patternslib/patterns/commit/8f9e0cb5a992303d961c4a9790a41ceb3e77547c))
Copy file name to clipboardExpand all lines: package.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@patternslib/patternslib",
3
-
"version": "9.8.3",
3
+
"version": "9.9.0-alpha.0",
4
4
"title": "Markup patterns to drive behaviour.",
5
5
"description": "Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming language. Accessibility, SEO and well structured HTML are core values of Patterns.",
0 commit comments