actiontext 7.0.8.7 → 7.1.0.beta1

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: 24518302c3909a97a1cd36a9ab7945be3f08ba7fc64e4157c9bcbb569ea48c28
4
- data.tar.gz: 5c0568c1d862c1e7f7b0039548cb529fed8d7fcd0cb161d174738c9d16afc3ec
3
+ metadata.gz: ff6d3d54018c8afe0b6ac198891859f46c6123de79c1e8c9e1b96eff64b089c5
4
+ data.tar.gz: 9699239744fc76adf7e245610dcdd36dd964ab8805dda53846144e0193b56242
5
5
  SHA512:
6
- metadata.gz: da7bdf7d7b57e394fc7cca3e4b4a4f256265f1c1cbda0e917f0ddbb9ff2e0af01d865b8db69dcf31c694b1534b5561e0fffbe71cc0349d0781cb09b378d9d303
7
- data.tar.gz: fb280fe4907385d2afef2f634badca0c2064b5597fce3e45fc5b4e60b3f089f6cd8cb4ace96ae82685d2b5ec5b5024723c0257a28e2e833206dbaac412828498
6
+ metadata.gz: 37ff95258403ed1acbc72509381b2a35d6a2e74362451fce7f413625faf06bb94947a6923e6dab7b29c8d707dbd2cc89790628354f2d3f70dfcc515f8c247669
7
+ data.tar.gz: 9fe3dead550cf29b88c4eff21f19de3f520594833052d7c9a79699511c50b3888200d03651023f78850abed0af5e0c3b5c57992945944d165762f6bb5c97af7b
data/CHANGELOG.md CHANGED
@@ -1,203 +1,58 @@
1
- ## Rails 7.0.8.7 (December 10, 2024) ##
1
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
2
2
 
3
- * Update vendored trix version to 1.3.4
3
+ * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
4
+ supported.
4
5
 
5
- *John Hawthorn*
6
+ Action Text's sanitizer can be configured by setting
7
+ `config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
8
+ `Rails::HTML5::Sanitizer`.
6
9
 
10
+ The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
11
+ fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
12
+ `Rails::HTML4::Sanitizer`.
7
13
 
8
- ## Rails 7.0.8.6 (October 23, 2024) ##
14
+ As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
15
+ `.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
16
+ unless set by the application. You may call `sanitizer_allowed_tags` or
17
+ `sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
18
+ sanitizer.
9
19
 
10
- * No changes.
20
+ *Mike Dalessio*
11
21
 
22
+ * Attachables now can override default attachment missing template.
12
23
 
13
- ## Rails 7.0.8.5 (October 15, 2024) ##
24
+ When rendering Action Text attachments where the underlying attachable model has
25
+ been removed, a fallback template is used. You now can override this template on
26
+ a per-model basis. For example, you could render a placeholder image for a file
27
+ attachment or the text "Deleted User" for a User attachment.
14
28
 
15
- * Avoid backtracing in plain_text_for_blockquote_node
29
+ *Matt Swanson*, *Joel Drapper*
16
30
 
17
- [CVE-2024-47888]
31
+ * Update bundled Trix version from `1.3.1` to `2.0.4`.
18
32
 
33
+ *Sarah Ridge*, *Sean Doyle*
19
34
 
20
- ## Rails 7.0.8.4 (June 04, 2024) ##
35
+ * Apply `field_error_proc` to `rich_text_area` form fields.
21
36
 
22
- * No changes.
37
+ *Kaíque Kandy Koga*
23
38
 
39
+ * Action Text attachment URLs rendered in a background job (a la Turbo
40
+ Streams) now use `Rails.application.default_url_options` and
41
+ `Rails.application.config.force_ssl` instead of `http://example.org`.
24
42
 
25
- ## Rails 7.0.8.3 (May 17, 2024) ##
43
+ *Jonathan Hefner*
26
44
 
27
- * Fix vendored trix.css to be correct file.
28
-
29
- *Hartley McGuire*
30
-
31
- ## Rails 7.0.8.2 (May 16, 2024) ##
32
-
33
- * Upgrade Trix to 1.3.2 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
34
-
35
- *Rafael Mendonça França*
36
-
37
-
38
- ## Rails 7.0.8.1 (February 21, 2024) ##
39
-
40
- * No changes.
41
-
42
-
43
- ## Rails 7.0.8 (September 09, 2023) ##
44
-
45
- * No changes.
46
-
47
-
48
- ## Rails 7.0.7.2 (August 22, 2023) ##
49
-
50
- * No changes.
51
-
52
-
53
- ## Rails 7.0.7.1 (August 22, 2023) ##
54
-
55
- * No changes.
56
-
57
-
58
- ## Rails 7.0.7 (August 09, 2023) ##
59
-
60
- * No changes.
61
-
62
-
63
- ## Rails 7.0.6 (June 29, 2023) ##
64
-
65
- * No changes.
66
-
67
-
68
- ## Rails 7.0.5.1 (June 26, 2023) ##
69
-
70
- * No changes.
71
-
72
-
73
- ## Rails 7.0.5 (May 24, 2023) ##
74
-
75
- * Fix `ActionText::Attachable#as_json`.
76
-
77
- *Alexandre Ruban*
78
-
79
-
80
- ## Rails 7.0.4.3 (March 13, 2023) ##
81
-
82
- * No changes.
83
-
84
-
85
- ## Rails 7.0.4.2 (January 24, 2023) ##
86
-
87
- * No changes.
88
-
89
-
90
- ## Rails 7.0.4.1 (January 17, 2023) ##
91
-
92
- * No changes.
93
-
94
-
95
- ## Rails 7.0.4 (September 09, 2022) ##
96
-
97
- * No changes.
98
-
99
-
100
- ## Rails 7.0.3.1 (July 12, 2022) ##
101
-
102
- * No changes.
103
-
104
-
105
- ## Rails 7.0.3 (May 09, 2022) ##
106
-
107
- * No changes.
108
-
109
-
110
- ## Rails 7.0.2.4 (April 26, 2022) ##
111
-
112
- * No changes.
113
-
114
-
115
- ## Rails 7.0.2.3 (March 08, 2022) ##
116
-
117
- * No changes.
118
-
119
-
120
- ## Rails 7.0.2.2 (February 11, 2022) ##
121
-
122
- * No changes.
123
-
124
-
125
- ## Rails 7.0.2.1 (February 11, 2022) ##
126
-
127
- * No changes.
128
-
129
-
130
- ## Rails 7.0.2 (February 08, 2022) ##
131
-
132
- * No changes.
133
-
134
-
135
- ## Rails 7.0.1 (January 06, 2022) ##
136
-
137
- * No changes.
138
-
139
-
140
- ## Rails 7.0.0 (December 15, 2021) ##
141
-
142
- * No changes.
143
-
144
-
145
- ## Rails 7.0.0.rc3 (December 14, 2021) ##
146
-
147
- * No changes.
148
-
149
-
150
- ## Rails 7.0.0.rc2 (December 14, 2021) ##
151
-
152
- * No changes.
153
-
154
- ## Rails 7.0.0.rc1 (December 06, 2021) ##
155
-
156
- * Fix an issue with how nested lists were displayed when converting to plain text
157
-
158
- *Matt Swanson*
159
-
160
- * Allow passing in a custom `direct_upload_url` or `blob_url_template` to `rich_text_area_tag`.
161
-
162
- *Lucas Mansur*
163
-
164
-
165
- ## Rails 7.0.0.alpha2 (September 15, 2021) ##
166
-
167
- * No changes.
168
-
169
-
170
- ## Rails 7.0.0.alpha1 (September 15, 2021) ##
171
-
172
- * Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
173
-
174
- *DHH*
175
-
176
- * OpenSSL constants are now used for Digest computations.
177
-
178
- *Dirkjan Bussink*
179
-
180
- * Add support for passing `form:` option to `rich_text_area_tag` and
181
- `rich_text_area` helpers to specify the `<input type="hidden" form="...">`
182
- value.
45
+ * Support `strict_loading:` option for `has_rich_text` declaration
183
46
 
184
47
  *Sean Doyle*
185
48
 
186
- * Add `config.action_text.attachment_tag_name`, to specify the HTML tag that contains attachments.
187
-
188
- *Mark VanLandingham*
189
-
190
- * Expose how we render the HTML _surrounding_ rich text content as an
191
- extensible `layouts/action_view/contents/_content.html.erb` template to
192
- encourage user-land customizations, while retaining private API control over how
193
- the rich text itself is rendered by `action_text/contents/_content.html.erb`
194
- partial.
195
-
196
- *Sean Doyle*
49
+ * Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
197
50
 
198
- * Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
51
+ *Jamis Buck*
199
52
 
200
- *Matt Swanson*, *DHH*
53
+ * Fix an issue that caused the content layout to render multiple times when a
54
+ rich_text field was updated.
201
55
 
56
+ *Jacob Herrington*
202
57
 
203
- Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
58
+ Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actiontext/CHANGELOG.md) for previous changes.
data/MIT-LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020-2022 Basecamp, LLC
3
+ Copyright (c) 37signals LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Action Text
2
2
 
3
- Action Text brings rich text content and editing to Rails. It includes the [Trix editor](https://trix-editor.org) that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.
3
+ Action Text brings rich text content and editing to \Rails. It includes the [Trix editor](https://trix-editor.org) that handles everything from formatting to links to quotes to lists to embedded images and galleries. The rich text content generated by the Trix editor is saved in its own RichText model that's associated with any existing Active Record model in the application. Any embedded images (or other attachments) are automatically stored using Active Storage and associated with the included RichText model.
4
4
 
5
- You can read more about Action Text in the [Action Text Overview](https://edgeguides.rubyonrails.org/action_text_overview.html) guide.
5
+ You can read more about Action Text in the [Action Text Overview](https://guides.rubyonrails.org/action_text_overview.html) guide.
6
6
 
7
7
  ## Development
8
8