actiontext 7.1.1 → 7.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/app/assets/javascripts/actiontext.esm.js +889 -0
- data/app/assets/javascripts/actiontext.js +797 -830
- data/app/assets/javascripts/trix.js +11278 -12254
- data/app/helpers/action_text/tag_helper.rb +2 -6
- data/lib/action_text/engine.rb +1 -1
- data/lib/action_text/gem_version.rb +1 -1
- data/lib/generators/action_text/install/install_generator.rb +1 -1
- data/package.json +2 -2
- metadata +14 -13
@@ -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
|
-
#
|
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
|
-
#
|
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 = {})
|
data/lib/action_text/engine.rb
CHANGED
@@ -32,7 +32,7 @@ module ActionText
|
|
32
32
|
|
33
33
|
initializer "action_text.asset" do
|
34
34
|
if Rails.application.config.respond_to?(:assets)
|
35
|
-
Rails.application.config.assets.precompile += %w( actiontext.js trix.js trix.css )
|
35
|
+
Rails.application.config.assets.precompile += %w( actiontext.js actiontext.esm.js trix.js trix.css )
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -29,7 +29,7 @@ module ActionText
|
|
29
29
|
end
|
30
30
|
|
31
31
|
if (importmap_path = destination.join("config/importmap.rb")).exist?
|
32
|
-
append_to_file importmap_path.to_s, %(pin "trix"\npin "@rails/actiontext", to: "actiontext.js"\n)
|
32
|
+
append_to_file importmap_path.to_s, %(pin "trix"\npin "@rails/actiontext", to: "actiontext.esm.js"\n)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
data/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rails/actiontext",
|
3
|
-
"version": "7.1.
|
3
|
+
"version": "7.1.3",
|
4
4
|
"description": "Edit and display rich text in Rails applications",
|
5
|
+
"module": "app/assets/javascripts/actiontext.esm.js",
|
5
6
|
"main": "app/assets/javascripts/actiontext.js",
|
6
|
-
"type": "module",
|
7
7
|
"files": [
|
8
8
|
"app/assets/javascripts/*.js"
|
9
9
|
],
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
70
|
+
version: 7.1.3
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: nokogiri
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- CHANGELOG.md
|
109
109
|
- MIT-LICENSE
|
110
110
|
- README.md
|
111
|
+
- app/assets/javascripts/actiontext.esm.js
|
111
112
|
- app/assets/javascripts/actiontext.js
|
112
113
|
- app/assets/javascripts/trix.js
|
113
114
|
- app/assets/stylesheets/trix.css
|
@@ -162,10 +163,10 @@ licenses:
|
|
162
163
|
- MIT
|
163
164
|
metadata:
|
164
165
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
165
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.1.
|
166
|
-
documentation_uri: https://api.rubyonrails.org/v7.1.
|
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/
|
167
168
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
168
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.1.
|
169
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.1.3/actiontext
|
169
170
|
rubygems_mfa_required: 'true'
|
170
171
|
post_install_message:
|
171
172
|
rdoc_options: []
|