Skip to content

Commit 5b3cc85

Browse files
committed
Release new version.
1 parent a5c4e3d commit 5b3cc85

File tree

2 files changed

+94
-1
lines changed

2 files changed

+94
-1
lines changed

CHANGES.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,99 @@ See the [history](./docs/history/index.md) for older changelog entries.
44

55

66

7+
## [9.7.0-alpha.1](https://github.com/Patternslib/patterns/compare/9.7.0-alpha.0...9.7.0-alpha.1) (2022-10-11)
8+
9+
10+
### Features
11+
12+
13+
* **Build:** Add global switch window.__patternslib_disable_modernizr to optionally disable modernizr. ([2a0ec96](https://github.com/Patternslib/patterns/commit/2a0ec9641639f2f2fb77c1e565d2a109fbda6224))While this is convenient to quickly disable modernizr and also splits modernizr out from the main bundle entry file it was necessary for the clone-code pattern to get a clean code example for the whole html tree.
14+
15+
* **core registry:** Move clone-code Pattern to the beginning. ([9f7f5ef](https://github.com/Patternslib/patterns/commit/9f7f5efeedec1cb79d7a1e69a1c01ebd927ce6ef))We want clone-code to clone the markup before any other patterns are
16+
modifying it.
17+
18+
* **pat-date-picker:** Add placeholder support for styled behavior. ([752036f](https://github.com/Patternslib/patterns/commit/752036f9848172a2b74f6070c5be71e12a0ca046))/cc @cornae
19+
This fixes the following two issues:
20+
21+
Fixes: https://github.com/Patternslib/Patterns/issues/837
22+
Fixes: https://github.com/quaive/ploneintranet.prototype/issues/1289
23+
24+
* **pat-markdown:** Initialize syntax highlight when parsing markup. ([8fd88c0](https://github.com/Patternslib/patterns/commit/8fd88c01dfb21ab970d0e8679988ec805cba147c))
25+
26+
* **pat-markdown:** Switch to marked as markdown library to support better syntax highlight libraries. ([3739935](https://github.com/Patternslib/patterns/commit/3739935a53315f0a1f0ad63b1626df4c5bcea62c))
27+
28+
* **pat-sortable:** Add the sortable-item class to each sortable element. ([0513102](https://github.com/Patternslib/patterns/commit/051310242928b7bc283827f49816178a3e0f3531))The current situation requires the integrator to add the `sortable-item` class
29+
on all sortables manually. If that is not done there can be styling problems
30+
like a missing insert marker which makes it hard to use the pattern. As the
31+
pattern already defines what should be a sortable it we also let the pattern
32+
assign the class "sortable-item".
33+
34+
* **pat-sortable:** Optionally import the sortable styles. ([fe90c73](https://github.com/Patternslib/patterns/commit/fe90c731093f4b84baef2e7359cb0829a9377bd3))Import the sortable styles when the global variable
35+
`__patternslib_import_styles` is set to `true` (the default is `false`).
36+
This allows to show the sortable marker without having to separately
37+
load all the styles.
38+
39+
* **pat-sortable:** Support dynamic sortable lists. ([5f3076c](https://github.com/Patternslib/patterns/commit/5f3076c99e00e3012380c2eb927e616f22c27427))When new items were added to a sortable list e.g. via pat-clone or
40+
pat-inject, those items could not be sorted. We are now re-initializing
41+
the sortable pattern after a `pat-update` event and make new elements
42+
sortable.
43+
44+
* **pat-syntax-highlight:** Switch to highlight.js. ([85212ba](https://github.com/Patternslib/patterns/commit/85212ba338ce488f737185553fdd3cd6444ac035))highlight.js allows to dyamically load languages in a webpack
45+
environment (almost, see next commit). Prism.js is mainly a Node.js
46+
library and currently not suited to load languages dynamically.
47+
48+
* **pat-validation:** Validate also newly added form elements. ([8838da0](https://github.com/Patternslib/patterns/commit/8838da03a6ac9784a71d16358fc674265e9dd6ae))When form elements were added via user interaction - e.g. by using
49+
pat-clone or pat-inject - those elements were not validated. Now the
50+
form validation is re-initialized after a `pat-update` event and this
51+
problem is fixed.
52+
53+
54+
### Bug Fixes
55+
56+
57+
* **core registry:** Do not scan TextNode content for patterns. ([76a83c5](https://github.com/Patternslib/patterns/commit/76a83c53c70643a77be2af045c1060823c0a4701))TextNode cannot hold markup, so there is also no needto scan those
58+
elements for patterns.
59+
60+
* **pat-date-picker:** Do not throw a blur event after selecting a date. ([a20a883](https://github.com/Patternslib/patterns/commit/a20a883434c6010babd702f86df07ff5f53d7445))When a date was selected with the date picker a `blur` and `changed`
61+
event was thrown. Now we only throw a `changed` event if da date was
62+
selected. If no date was selected we throw a `blur` event allow
63+
pat-validation do validate required date input fields when no value was
64+
given.
65+
66+
* **pat-syntax-highlight:** Depend on highlight.js <11. ([0f00d8c](https://github.com/Patternslib/patterns/commit/0f00d8c58d0b9f349e7214c7132bde87a449f010))highlight.js version 11 does not allow dynamic imports of languages and
67+
styles with webpack due to an exports field in package.json.
68+
69+
See: https://github.com/highlightjs/highlight.js/issues/3634
70+
71+
* **pat-validation:** Fallback error messages for not-before and not-after. ([831ee60](https://github.com/Patternslib/patterns/commit/831ee60c5741c0b4dba6c3c2d7ba5beda1c71bf1))If no error messages were provided for the not-before and not-after
72+
constraints on date fields no error messages were shown even when those inputs
73+
had form validation errors.
74+
Now we are always providing a fallback error message based on the label
75+
or input name.
76+
77+
* **pat-validation:** Fix problem with multiple form validation runs. ([a8b7981](https://github.com/Patternslib/patterns/commit/a8b7981de8138b7fe5ce5d7ca3c81517381afc89))Due to some event listers calling each other multiple times, the form
78+
was validated up to 5 times in one validation run. This commit fixes
79+
multiple validation runs when a form element was disabled, e.g. when the
80+
submit button was disabled after validation errors.
81+
82+
83+
### Maintenance
84+
85+
86+
* **core utils:** Improve escape/unescape for safer version which makes use use of browser features. ([97ca0b1](https://github.com/Patternslib/patterns/commit/97ca0b11a36c17e46d949f6204a7094c07a25332))
87+
88+
* **core utils:** safeClone - document which versions of IE are affected. ([8bec57a](https://github.com/Patternslib/patterns/commit/8bec57af7a5722bfd6070b2cb039749b427f5d6e))
89+
90+
* **pat-markdown:** Modernize code. ([81c4e14](https://github.com/Patternslib/patterns/commit/81c4e14c035164007592523647a58807d8b2a899))
91+
92+
* **pat-syntax-highlight:** Switch to class based pattern. ([8fb23e1](https://github.com/Patternslib/patterns/commit/8fb23e1f339de8260a3ad221af0302d149064b27))
93+
94+
* **pat-toggle:** Add alias attribute for attr to toggle an attribute. ([fcfdb84](https://github.com/Patternslib/patterns/commit/fcfdb8481a14f4add1b4de120c9feb1b1400e6df))
95+
96+
* **pat-validation:** Rename log to logger for better naming. ([9ed77c8](https://github.com/Patternslib/patterns/commit/9ed77c8b074b126cf32a4bca248273002426c426))
97+
98+
* **pat-validation:** Use more debug messages. ([c8c656a](https://github.com/Patternslib/patterns/commit/c8c656a1d50a5388f81739b8888b604b9b4d26ca))
99+
7100
## [9.7.0-alpha.0](https://github.com/Patternslib/patterns/compare/9.6.1...9.7.0-alpha.0) (2022-09-28)
8101

9102

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patternslib/patternslib",
3-
"version": "9.7.0-alpha.0",
3+
"version": "9.7.0-alpha.1",
44
"title": "Markup patterns to drive behaviour.",
55
"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.",
66
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)