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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4452a44114a2a49166816f4966764b27cccf5de838568acb29fc68544fb96878
4
- data.tar.gz: 7d28fe11d1d06bb28433be2587411471ce79db0983347de07acf40a2e62bc3d7
3
+ metadata.gz: '0880ac255708fd7f92c868a50b53f4feb7d96d6554ada41f355b05d92d1c8bbe'
4
+ data.tar.gz: 682e140504a57d6065fc793c4f958e5fd4e581cb3bbf54f8d6573298b07f3f23
5
5
  SHA512:
6
- metadata.gz: 8af0b42463b95aac1f4bf2c1f290a75735a1ebb304fe333f79124da55bb2f0d694c05e23292b3328accb0b70c596205b918a6912757f2e8dbddcd5101f6df4bc
7
- data.tar.gz: e95c020441e9c26e4941d49ec7e202dc22af173b02af6bf2023a46260004dceee1e0ca9f352bed232a80b085c819a35f26d9994013a21a76ed65f669d2f4f471
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
- ## Breaking changes
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
- ## Added
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 !== "symbol") {
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 !== "symbol") {
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('input[required], select[required]')
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.map(&:to_s).join(' '),
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
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cocooned
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocooned
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard