actiontext 7.0.8 → 7.1.1

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: 1ac9973c6fa041a048b0957105e43fab5638d74e7c20827bc7603e801edb7704
4
- data.tar.gz: c2b71c1fc63a51b8d230192fe9ee58bdf1981ff252bd36c533928b1fce875264
3
+ metadata.gz: e85954503e9e89aeb89783fb174a61dcacac527dc7183f89f38f52c139bcdd02
4
+ data.tar.gz: d149464ba8f11b65c8ca5207c8fef1c4f588688c2e1f98bb1b0b0e85f300c241
5
5
  SHA512:
6
- metadata.gz: 9dfbe85ee8c2415b18ab759ca441c3a339d48058b0dbc90e6956ebc5b7ac03cb3cc9c9518d476b5f5078c74850b19754fb0304ea0890376ca596fef610ee989b
7
- data.tar.gz: e25d1a9ad7a70f620045cf6ca72b21d7e82c5a121de528f703c465efc319bcaaf4447073b61945fba585e65ffb2c4d8ba41c220ceb2ea76f8a2285f84fe849d7
6
+ metadata.gz: aceea0e8fb378452f4f66f62811c25e15418239bd39a096b3c6a534c5515d638988c687a09bd595366a2f8e6925dbd760dcb6faf7ffde4bc9b9564376047d448
7
+ data.tar.gz: 02604001f841ffd17764af38fa2edd1e02cfb744d0f016229759af2448c8f5e487fed0572dc4105e271f82d01ac6ca617f564af991fd58d7708c06287c350b1a
data/CHANGELOG.md CHANGED
@@ -1,161 +1,78 @@
1
- ## Rails 7.0.8 (September 09, 2023) ##
1
+ ## Rails 7.1.1 (October 11, 2023) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 7.0.7.2 (August 22, 2023) ##
6
+ ## Rails 7.1.0 (October 05, 2023) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 7.0.7.1 (August 22, 2023) ##
11
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 7.0.7 (August 09, 2023) ##
16
+ ## Rails 7.1.0.rc1 (September 27, 2023) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 7.0.6 (June 29, 2023) ##
21
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
22
22
 
23
- * No changes.
24
-
25
-
26
- ## Rails 7.0.5.1 (June 26, 2023) ##
27
-
28
- * No changes.
29
-
30
-
31
- ## Rails 7.0.5 (May 24, 2023) ##
32
-
33
- * Fix `ActionText::Attachable#as_json`.
34
-
35
- *Alexandre Ruban*
36
-
37
-
38
- ## Rails 7.0.4.3 (March 13, 2023) ##
39
-
40
- * No changes.
41
-
42
-
43
- ## Rails 7.0.4.2 (January 24, 2023) ##
44
-
45
- * No changes.
46
-
47
-
48
- ## Rails 7.0.4.1 (January 17, 2023) ##
23
+ * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
24
+ supported.
49
25
 
50
- * No changes.
51
-
52
-
53
- ## Rails 7.0.4 (September 09, 2022) ##
54
-
55
- * No changes.
26
+ Action Text's sanitizer can be configured by setting
27
+ `config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
28
+ `Rails::HTML5::Sanitizer`.
56
29
 
30
+ The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
31
+ fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
32
+ `Rails::HTML4::Sanitizer`.
57
33
 
58
- ## Rails 7.0.3.1 (July 12, 2022) ##
34
+ As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
35
+ `.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
36
+ unless set by the application. You may call `sanitizer_allowed_tags` or
37
+ `sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
38
+ sanitizer.
59
39
 
60
- * No changes.
40
+ *Mike Dalessio*
61
41
 
42
+ * Attachables now can override default attachment missing template.
62
43
 
63
- ## Rails 7.0.3 (May 09, 2022) ##
44
+ When rendering Action Text attachments where the underlying attachable model has
45
+ been removed, a fallback template is used. You now can override this template on
46
+ a per-model basis. For example, you could render a placeholder image for a file
47
+ attachment or the text "Deleted User" for a User attachment.
64
48
 
65
- * No changes.
49
+ *Matt Swanson*, *Joel Drapper*
66
50
 
51
+ * Update bundled Trix version from `1.3.1` to `2.0.4`.
67
52
 
68
- ## Rails 7.0.2.4 (April 26, 2022) ##
53
+ *Sarah Ridge*, *Sean Doyle*
69
54
 
70
- * No changes.
55
+ * Apply `field_error_proc` to `rich_text_area` form fields.
71
56
 
57
+ *Kaíque Kandy Koga*
72
58
 
73
- ## Rails 7.0.2.3 (March 08, 2022) ##
74
-
75
- * No changes.
59
+ * Action Text attachment URLs rendered in a background job (a la Turbo
60
+ Streams) now use `Rails.application.default_url_options` and
61
+ `Rails.application.config.force_ssl` instead of `http://example.org`.
76
62
 
63
+ *Jonathan Hefner*
77
64
 
78
- ## Rails 7.0.2.2 (February 11, 2022) ##
79
-
80
- * No changes.
81
-
82
-
83
- ## Rails 7.0.2.1 (February 11, 2022) ##
84
-
85
- * No changes.
86
-
87
-
88
- ## Rails 7.0.2 (February 08, 2022) ##
89
-
90
- * No changes.
91
-
92
-
93
- ## Rails 7.0.1 (January 06, 2022) ##
94
-
95
- * No changes.
96
-
97
-
98
- ## Rails 7.0.0 (December 15, 2021) ##
99
-
100
- * No changes.
101
-
102
-
103
- ## Rails 7.0.0.rc3 (December 14, 2021) ##
104
-
105
- * No changes.
106
-
107
-
108
- ## Rails 7.0.0.rc2 (December 14, 2021) ##
109
-
110
- * No changes.
111
-
112
- ## Rails 7.0.0.rc1 (December 06, 2021) ##
113
-
114
- * Fix an issue with how nested lists were displayed when converting to plain text
115
-
116
- *Matt Swanson*
117
-
118
- * Allow passing in a custom `direct_upload_url` or `blob_url_template` to `rich_text_area_tag`.
119
-
120
- *Lucas Mansur*
121
-
122
-
123
- ## Rails 7.0.0.alpha2 (September 15, 2021) ##
124
-
125
- * No changes.
126
-
127
-
128
- ## Rails 7.0.0.alpha1 (September 15, 2021) ##
129
-
130
- * Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
131
-
132
- *DHH*
133
-
134
- * OpenSSL constants are now used for Digest computations.
135
-
136
- *Dirkjan Bussink*
137
-
138
- * Add support for passing `form:` option to `rich_text_area_tag` and
139
- `rich_text_area` helpers to specify the `<input type="hidden" form="...">`
140
- value.
65
+ * Support `strict_loading:` option for `has_rich_text` declaration
141
66
 
142
67
  *Sean Doyle*
143
68
 
144
- * Add `config.action_text.attachment_tag_name`, to specify the HTML tag that contains attachments.
145
-
146
- *Mark VanLandingham*
147
-
148
- * Expose how we render the HTML _surrounding_ rich text content as an
149
- extensible `layouts/action_view/contents/_content.html.erb` template to
150
- encourage user-land customizations, while retaining private API control over how
151
- the rich text itself is rendered by `action_text/contents/_content.html.erb`
152
- partial.
153
-
154
- *Sean Doyle*
69
+ * Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
155
70
 
156
- * Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
71
+ *Jamis Buck*
157
72
 
158
- *Matt Swanson*, *DHH*
73
+ * Fix an issue that caused the content layout to render multiple times when a
74
+ rich_text field was updated.
159
75
 
76
+ *Jacob Herrington*
160
77
 
161
- Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
78
+ 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