actiontext 6.1.4 → 7.0.0.rc1
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 -77
- data/MIT-LICENSE +1 -1
- data/README.md +4 -0
- data/app/assets/javascripts/actiontext.js +900 -0
- data/app/assets/javascripts/trix.js +5278 -0
- data/app/assets/stylesheets/trix.css +375 -0
- data/app/helpers/action_text/content_helper.rb +17 -3
- data/app/helpers/action_text/tag_helper.rb +19 -9
- data/app/javascript/actiontext/attachment_upload.js +8 -1
- data/app/models/action_text/encrypted_rich_text.rb +9 -0
- data/app/models/action_text/record.rb +1 -1
- data/app/models/action_text/rich_text.rb +4 -0
- data/app/views/action_text/contents/_content.html.erb +1 -0
- data/app/views/layouts/action_text/contents/_content.html.erb +3 -0
- data/db/migrate/20180528164100_create_action_text_tables.rb +14 -2
- data/lib/action_text/attachable.rb +4 -0
- data/lib/action_text/attachment.rb +4 -4
- data/lib/action_text/attachment_gallery.rb +14 -9
- data/lib/action_text/attachments/caching.rb +1 -1
- data/lib/action_text/attachments/minification.rb +1 -1
- data/lib/action_text/attribute.rb +18 -2
- data/lib/action_text/content.rb +7 -3
- data/lib/action_text/encryption.rb +38 -0
- data/lib/action_text/engine.rb +14 -0
- data/lib/action_text/fixture_set.rb +55 -0
- data/lib/action_text/gem_version.rb +4 -4
- data/lib/action_text/plain_text_conversion.rb +31 -2
- data/lib/action_text/rendering.rb +1 -1
- data/lib/action_text/serialization.rb +2 -0
- data/lib/action_text/trix_attachment.rb +3 -3
- data/lib/action_text.rb +1 -0
- data/lib/generators/action_text/install/install_generator.rb +40 -35
- data/lib/generators/action_text/install/templates/actiontext.css +35 -0
- data/package.json +13 -3
- metadata +40 -19
- data/app/views/action_text/content/_layout.html.erb +0 -3
- data/lib/generators/action_text/install/templates/actiontext.scss +0 -36
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:
|
4
|
+
version: 7.0.0.rc1
|
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: 2021-06
|
13
|
+
date: 2021-12-06 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:
|
21
|
+
version: 7.0.0.rc1
|
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:
|
28
|
+
version: 7.0.0.rc1
|
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:
|
35
|
+
version: 7.0.0.rc1
|
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:
|
42
|
+
version: 7.0.0.rc1
|
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:
|
49
|
+
version: 7.0.0.rc1
|
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:
|
56
|
+
version: 7.0.0.rc1
|
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:
|
63
|
+
version: 7.0.0.rc1
|
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:
|
70
|
+
version: 7.0.0.rc1
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: nokogiri
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,6 +82,20 @@ dependencies:
|
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: 1.8.5
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: globalid
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.6.0
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.6.0
|
85
99
|
description: Edit and display rich text in Rails applications.
|
86
100
|
email:
|
87
101
|
- javan@javan.us
|
@@ -94,17 +108,22 @@ files:
|
|
94
108
|
- CHANGELOG.md
|
95
109
|
- MIT-LICENSE
|
96
110
|
- README.md
|
111
|
+
- app/assets/javascripts/actiontext.js
|
112
|
+
- app/assets/javascripts/trix.js
|
113
|
+
- app/assets/stylesheets/trix.css
|
97
114
|
- app/helpers/action_text/content_helper.rb
|
98
115
|
- app/helpers/action_text/tag_helper.rb
|
99
116
|
- app/javascript/actiontext/attachment_upload.js
|
100
117
|
- app/javascript/actiontext/index.js
|
118
|
+
- app/models/action_text/encrypted_rich_text.rb
|
101
119
|
- app/models/action_text/record.rb
|
102
120
|
- app/models/action_text/rich_text.rb
|
103
121
|
- app/views/action_text/attachables/_missing_attachable.html.erb
|
104
122
|
- app/views/action_text/attachables/_remote_image.html.erb
|
105
123
|
- app/views/action_text/attachment_galleries/_attachment_gallery.html.erb
|
106
|
-
- app/views/action_text/
|
124
|
+
- app/views/action_text/contents/_content.html.erb
|
107
125
|
- app/views/active_storage/blobs/_blob.html.erb
|
126
|
+
- app/views/layouts/action_text/contents/_content.html.erb
|
108
127
|
- db/migrate/20180528164100_create_action_text_tables.rb
|
109
128
|
- lib/action_text.rb
|
110
129
|
- lib/action_text/attachable.rb
|
@@ -118,6 +137,7 @@ files:
|
|
118
137
|
- lib/action_text/attachments/trix_conversion.rb
|
119
138
|
- lib/action_text/attribute.rb
|
120
139
|
- lib/action_text/content.rb
|
140
|
+
- lib/action_text/encryption.rb
|
121
141
|
- lib/action_text/engine.rb
|
122
142
|
- lib/action_text/fixture_set.rb
|
123
143
|
- lib/action_text/fragment.rb
|
@@ -130,7 +150,7 @@ files:
|
|
130
150
|
- lib/action_text/trix_attachment.rb
|
131
151
|
- lib/action_text/version.rb
|
132
152
|
- lib/generators/action_text/install/install_generator.rb
|
133
|
-
- lib/generators/action_text/install/templates/actiontext.
|
153
|
+
- lib/generators/action_text/install/templates/actiontext.css
|
134
154
|
- lib/rails/generators/test_unit/install_generator.rb
|
135
155
|
- lib/rails/generators/test_unit/templates/fixtures.yml
|
136
156
|
- lib/tasks/actiontext.rake
|
@@ -140,10 +160,11 @@ licenses:
|
|
140
160
|
- MIT
|
141
161
|
metadata:
|
142
162
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
143
|
-
changelog_uri: https://github.com/rails/rails/blob/
|
144
|
-
documentation_uri: https://api.rubyonrails.org/
|
163
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.0.rc1/actiontext/CHANGELOG.md
|
164
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.0.rc1/
|
145
165
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
146
|
-
source_code_uri: https://github.com/rails/rails/tree/
|
166
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.0.rc1/actiontext
|
167
|
+
rubygems_mfa_required: 'true'
|
147
168
|
post_install_message:
|
148
169
|
rdoc_options: []
|
149
170
|
require_paths:
|
@@ -152,14 +173,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
173
|
requirements:
|
153
174
|
- - ">="
|
154
175
|
- !ruby/object:Gem::Version
|
155
|
-
version: 2.
|
176
|
+
version: 2.7.0
|
156
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
178
|
requirements:
|
158
|
-
- - "
|
179
|
+
- - ">"
|
159
180
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
181
|
+
version: 1.3.1
|
161
182
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.2.22
|
163
184
|
signing_key:
|
164
185
|
specification_version: 4
|
165
186
|
summary: Rich text framework.
|
@@ -1,36 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
|
3
|
-
// the trix-editor content (whether displayed or under editing). Feel free to incorporate this
|
4
|
-
// inclusion directly in any other asset bundle and remove this file.
|
5
|
-
//
|
6
|
-
//= require trix/dist/trix
|
7
|
-
|
8
|
-
// We need to override trix.css’s image gallery styles to accommodate the
|
9
|
-
// <action-text-attachment> element we wrap around attachments. Otherwise,
|
10
|
-
// images in galleries will be squished by the max-width: 33%; rule.
|
11
|
-
.trix-content {
|
12
|
-
.attachment-gallery {
|
13
|
-
> action-text-attachment,
|
14
|
-
> .attachment {
|
15
|
-
flex: 1 0 33%;
|
16
|
-
padding: 0 0.5em;
|
17
|
-
max-width: 33%;
|
18
|
-
}
|
19
|
-
|
20
|
-
&.attachment-gallery--2,
|
21
|
-
&.attachment-gallery--4 {
|
22
|
-
> action-text-attachment,
|
23
|
-
> .attachment {
|
24
|
-
flex-basis: 50%;
|
25
|
-
max-width: 50%;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
action-text-attachment {
|
31
|
-
.attachment {
|
32
|
-
padding: 0 !important;
|
33
|
-
max-width: 100% !important;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|