actiontext 7.1.2 → 7.1.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actiontext might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36fe5f0d6a4925ffa34abf90f51c05fdb81bfc69eefdf180162759e46f9c1200
4
- data.tar.gz: e1359ff60168b2cabac94d064d6f13433d7cd44ab55a6a569ae4bd6112675a4d
3
+ metadata.gz: 4313fb0db4c57a41976e0dd0d8311235e32fcd966c49c4d5da1fc76ccf3a3c19
4
+ data.tar.gz: 1c6f538ca06525f027cee23bfb76b301ae6ca8c5737035eac7756ac420ff82a3
5
5
  SHA512:
6
- metadata.gz: d832139704222aeb74ed6fd21dbec6fa18bf004902072fe5a9cfbb71c1008ef89745cc3587609c4809d7adcf110510957868f3aa20875f41928a6f472c5259a6
7
- data.tar.gz: d990facfb05949e439b853bded6a9fd75517cbd475493cdb5c39606e6e6ea915a905a9ab4382a12c8ea688dd43789a5b4e5d2fcea8780652ab390e5e5bd42fc9
6
+ metadata.gz: 6c9da506c6f8c7516ae80bab515e709abb29f1730ff7c8ff6e4b5d8bb14d44cd10c168e674951a48e6aeffcf8b36b6877a6e7e14a8bdeae7fdf246e560c0ea30
7
+ data.tar.gz: 8c30ed4e1f0df31e2296e973536f4a30712e280e4dee146d9b5eade3945c37e52078c7685db22f5e943b8c2d38a090ea61d76619392fdddb075fcde29e1cc567
data/CHANGELOG.md CHANGED
@@ -1,18 +1,23 @@
1
+ ## Rails 7.1.3 (January 16, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 7.1.2 (November 10, 2023) ##
2
7
 
3
- * Compile ESM package that can be used directly in the browser as actiontext.esm.js
8
+ * Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
4
9
 
5
10
  *Matias Grunberg*
6
11
 
7
- * Fix using actiontext.js with Sprockets
12
+ * Fix using actiontext.js with Sprockets.
8
13
 
9
14
  *Matias Grunberg*
10
15
 
11
- * Upgrade Trix to 2.0.7
16
+ * Upgrade Trix to 2.0.7.
12
17
 
13
18
  *Hartley McGuire*
14
19
 
15
- * Fix using Trix with Sprockets
20
+ * Fix using Trix with Sprockets.
16
21
 
17
22
  *Hartley McGuire*
18
23
 
@@ -771,9 +771,9 @@ function start() {
771
771
  }
772
772
 
773
773
  function didClick(event) {
774
- const {target: target} = event;
775
- if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
776
- submitButtonsByForm.set(target.form, target);
774
+ const button = event.target.closest("button, input");
775
+ if (button && button.type === "submit" && button.form) {
776
+ submitButtonsByForm.set(button.form, button);
777
777
  }
778
778
  }
779
779
 
@@ -753,9 +753,9 @@
753
753
  }
754
754
  }
755
755
  function didClick(event) {
756
- const {target: target} = event;
757
- if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
758
- submitButtonsByForm.set(target.form, target);
756
+ const button = event.target.closest("button, input");
757
+ if (button && button.type === "submit" && button.form) {
758
+ submitButtonsByForm.set(button.form, button);
759
759
  }
760
760
  }
761
761
  function didSubmitForm(event) {
@@ -66,15 +66,11 @@ module ActionView::Helpers
66
66
  # * <tt>[:data][:blob_url_template]</tt> - Defaults to <tt>rails_service_blob_url(":signed_id", ":filename")</tt>.
67
67
  #
68
68
  # ==== Example
69
- # form_with(model: @message) do |form|
70
- # form.rich_text_area :content
71
- # end
69
+ # rich_text_area :message, :content
72
70
  # # <input type="hidden" name="message[content]" id="message_content_trix_input_message_1">
73
71
  # # <trix-editor id="content" input="message_content_trix_input_message_1" class="trix-content" ...></trix-editor>
74
72
  #
75
- # form_with(model: @message) do |form|
76
- # form.rich_text_area :content, value: "<h1>Default message</h1>"
77
- # end
73
+ # rich_text_area :message, :content, value: "<h1>Default message</h1>"
78
74
  # # <input type="hidden" name="message[content]" id="message_content_trix_input_message_1" value="<h1>Default message</h1>">
79
75
  # # <trix-editor id="content" input="message_content_trix_input_message_1" class="trix-content" ...></trix-editor>
80
76
  def rich_text_area(object_name, method, options = {})
@@ -9,7 +9,7 @@ module ActionText
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 1
12
- TINY = 2
12
+ TINY = 3
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rails/actiontext",
3
- "version": "7.1.2",
3
+ "version": "7.1.3",
4
4
  "description": "Edit and display rich text in Rails applications",
5
5
  "module": "app/assets/javascripts/actiontext.esm.js",
6
6
  "main": "app/assets/javascripts/actiontext.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actiontext
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.2
4
+ version: 7.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-11-10 00:00:00.000000000 Z
13
+ date: 2024-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -18,56 +18,56 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 7.1.2
21
+ version: 7.1.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 7.1.2
28
+ version: 7.1.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: activerecord
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 7.1.2
35
+ version: 7.1.3
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 7.1.2
42
+ version: 7.1.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: activestorage
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 7.1.2
49
+ version: 7.1.3
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 7.1.2
56
+ version: 7.1.3
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: actionpack
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 7.1.2
63
+ version: 7.1.3
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 7.1.2
70
+ version: 7.1.3
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: nokogiri
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -163,10 +163,10 @@ licenses:
163
163
  - MIT
164
164
  metadata:
165
165
  bug_tracker_uri: https://github.com/rails/rails/issues
166
- changelog_uri: https://github.com/rails/rails/blob/v7.1.2/actiontext/CHANGELOG.md
167
- documentation_uri: https://api.rubyonrails.org/v7.1.2/
166
+ changelog_uri: https://github.com/rails/rails/blob/v7.1.3/actiontext/CHANGELOG.md
167
+ documentation_uri: https://api.rubyonrails.org/v7.1.3/
168
168
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
169
- source_code_uri: https://github.com/rails/rails/tree/v7.1.2/actiontext
169
+ source_code_uri: https://github.com/rails/rails/tree/v7.1.3/actiontext
170
170
  rubygems_mfa_required: 'true'
171
171
  post_install_message:
172
172
  rdoc_options: []