cocooned 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -2
- data/app/assets/javascripts/cocooned.js +4 -5
- data/lib/cocooned/helpers/containers.rb +1 -1
- data/lib/cocooned/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0880ac255708fd7f92c868a50b53f4feb7d96d6554ada41f355b05d92d1c8bbe'
|
|
4
|
+
data.tar.gz: 682e140504a57d6065fc793c4f958e5fd4e581cb3bbf54f8d6573298b07f3f23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8601774bc1290dafe7df2cc7491f0dd88ebc770a6d05d68e978dff93b3570612414e722600d9ec029461c0c64696d497d08cc5736ce98cdea5e77ac0c320949
|
|
7
|
+
data.tar.gz: e50005f7b8b2c6baae3d39972f55e19b6fcc697bec297a02c22730e24588a48e3a9b422c7e42a09e9be4e2e932c699b985c81dac3ae62f99688b57f58945de09
|
data/CHANGELOG.md
CHANGED
|
@@ -6,9 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## Version 3.0.1 (2026-03-15)
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
* Ensure `required` attributes is disabled on all input types (#127, thanks @mattmenefee)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
* Compatibility with `formtastic ~> 6.0` (#130)
|
|
18
|
+
|
|
9
19
|
## Version 3.0.0 (2026-01-27)
|
|
10
20
|
|
|
11
|
-
|
|
21
|
+
### Breaking changes
|
|
12
22
|
|
|
13
23
|
* Respect browser accessibility settings on reduced motion to determinate the default value of the `animate` option (#120)
|
|
14
24
|
`animate` will be set to false by default if the `(prefers-reduced-motion: reduce)` media query matches.
|
|
@@ -18,7 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
18
28
|
|
|
19
29
|
To not introduce too many breaking changes in a single release, removal of long-time deprecated features have been postponed to Cocooned 4.0 (#122)
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
### Added
|
|
22
32
|
|
|
23
33
|
* Optional Stimulus integration (#119)
|
|
24
34
|
Introduce two ways to integrate Cocooned with Stimulus: `registerCocoonedContainer` and `useCocooned`. See documentation for details.
|
|
@@ -168,15 +168,15 @@
|
|
|
168
168
|
|
|
169
169
|
disposable(Listener);
|
|
170
170
|
|
|
171
|
-
if (typeof Symbol.dispose !==
|
|
171
|
+
if (typeof Symbol.dispose !== 'symbol') {
|
|
172
172
|
console.warn(`
|
|
173
173
|
Cocooned use Disposable objects but they are not supported by your browser.
|
|
174
174
|
See Cocooned documentation for polyfill options.
|
|
175
175
|
`);
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
function disposable(klass) {
|
|
179
|
-
if (typeof Symbol.dispose !==
|
|
178
|
+
function disposable (klass) {
|
|
179
|
+
if (typeof Symbol.dispose !== 'symbol') {
|
|
180
180
|
return
|
|
181
181
|
}
|
|
182
182
|
|
|
@@ -700,8 +700,7 @@
|
|
|
700
700
|
|
|
701
701
|
_markForDestruction () {
|
|
702
702
|
this._item.querySelector('input[type=hidden][name$="[_destroy]"]').setAttribute('value', 'true');
|
|
703
|
-
this._item.querySelectorAll('
|
|
704
|
-
.forEach(input => input.removeAttribute('required'));
|
|
703
|
+
this._item.querySelectorAll('[required]').forEach(input => input.removeAttribute('required'));
|
|
705
704
|
}
|
|
706
705
|
}
|
|
707
706
|
|
|
@@ -64,7 +64,7 @@ module Cocooned
|
|
|
64
64
|
options.deep_merge(
|
|
65
65
|
class: token_list(options.delete(:class), %w[cocooned-container]),
|
|
66
66
|
data: {
|
|
67
|
-
controller: [options.dig(:data, :controller), :cocooned].compact_blank.
|
|
67
|
+
controller: [options.dig(:data, :controller), :cocooned].compact_blank.join(' '),
|
|
68
68
|
cocooned_container: true,
|
|
69
69
|
cocooned_options: options.extract!(:limit, :reorderable).to_json
|
|
70
70
|
}
|
data/lib/cocooned/version.rb
CHANGED