actiontext 7.0.8 → 7.1.3.2

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: ce8b2b2628c11a9dd67e83a7ba948df06d10e616756d6ce8e509c96b356e060c
4
+ data.tar.gz: 1ac97fa71f50ac3e568f81a5c57f05a3d81387a47233104e7a16ea823830a296
5
5
  SHA512:
6
- metadata.gz: 9dfbe85ee8c2415b18ab759ca441c3a339d48058b0dbc90e6956ebc5b7ac03cb3cc9c9518d476b5f5078c74850b19754fb0304ea0890376ca596fef610ee989b
7
- data.tar.gz: e25d1a9ad7a70f620045cf6ca72b21d7e82c5a121de528f703c465efc319bcaaf4447073b61945fba585e65ffb2c4d8ba41c220ceb2ea76f8a2285f84fe849d7
6
+ metadata.gz: 919197c2541430986c06da4c8d5fd069d6007092e73ed051af06452ceda46a4e807d6a877fb4e4338d2c9fc42fada5881e5a45317e8dba69a381e2e538718269
7
+ data.tar.gz: 2012b4fc3f3fd5f725e1ffecdb050be22555ac3a67136bc0a10dabe5f41559784d69983085041a6fb2a71cbdd82bfd45d5e29b64cd821df55eb3a676d31c17ac
data/CHANGELOG.md CHANGED
@@ -1,161 +1,112 @@
1
- ## Rails 7.0.8 (September 09, 2023) ##
1
+ ## Rails 7.1.3.2 (February 21, 2024) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 7.0.7.2 (August 22, 2023) ##
6
+ ## Rails 7.1.3.1 (February 21, 2024) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 7.0.7.1 (August 22, 2023) ##
11
+ ## Rails 7.1.3 (January 16, 2024) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 7.0.7 (August 09, 2023) ##
16
+ ## Rails 7.1.2 (November 10, 2023) ##
17
17
 
18
- * No changes.
19
-
20
-
21
- ## Rails 7.0.6 (June 29, 2023) ##
22
-
23
- * No changes.
24
-
25
-
26
- ## Rails 7.0.5.1 (June 26, 2023) ##
27
-
28
- * No changes.
18
+ * Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
29
19
 
20
+ *Matias Grunberg*
30
21
 
31
- ## Rails 7.0.5 (May 24, 2023) ##
22
+ * Fix using actiontext.js with Sprockets.
32
23
 
33
- * Fix `ActionText::Attachable#as_json`.
24
+ *Matias Grunberg*
34
25
 
35
- *Alexandre Ruban*
26
+ * Upgrade Trix to 2.0.7.
36
27
 
28
+ *Hartley McGuire*
37
29
 
38
- ## Rails 7.0.4.3 (March 13, 2023) ##
30
+ * Fix using Trix with Sprockets.
39
31
 
40
- * No changes.
32
+ *Hartley McGuire*
41
33
 
42
34
 
43
- ## Rails 7.0.4.2 (January 24, 2023) ##
35
+ ## Rails 7.1.1 (October 11, 2023) ##
44
36
 
45
37
  * No changes.
46
38
 
47
39
 
48
- ## Rails 7.0.4.1 (January 17, 2023) ##
40
+ ## Rails 7.1.0 (October 05, 2023) ##
49
41
 
50
42
  * No changes.
51
43
 
52
44
 
53
- ## Rails 7.0.4 (September 09, 2022) ##
45
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
54
46
 
55
47
  * No changes.
56
48
 
57
49
 
58
- ## Rails 7.0.3.1 (July 12, 2022) ##
50
+ ## Rails 7.1.0.rc1 (September 27, 2023) ##
59
51
 
60
52
  * No changes.
61
53
 
62
54
 
63
- ## Rails 7.0.3 (May 09, 2022) ##
55
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
64
56
 
65
- * No changes.
57
+ * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
58
+ supported.
66
59
 
60
+ Action Text's sanitizer can be configured by setting
61
+ `config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
62
+ `Rails::HTML5::Sanitizer`.
67
63
 
68
- ## Rails 7.0.2.4 (April 26, 2022) ##
64
+ The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
65
+ fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
66
+ `Rails::HTML4::Sanitizer`.
69
67
 
70
- * No changes.
68
+ As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
69
+ `.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
70
+ unless set by the application. You may call `sanitizer_allowed_tags` or
71
+ `sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
72
+ sanitizer.
71
73
 
74
+ *Mike Dalessio*
72
75
 
73
- ## Rails 7.0.2.3 (March 08, 2022) ##
76
+ * Attachables now can override default attachment missing template.
74
77
 
75
- * No changes.
78
+ When rendering Action Text attachments where the underlying attachable model has
79
+ been removed, a fallback template is used. You now can override this template on
80
+ a per-model basis. For example, you could render a placeholder image for a file
81
+ attachment or the text "Deleted User" for a User attachment.
76
82
 
83
+ *Matt Swanson*, *Joel Drapper*
77
84
 
78
- ## Rails 7.0.2.2 (February 11, 2022) ##
85
+ * Update bundled Trix version from `1.3.1` to `2.0.4`.
79
86
 
80
- * No changes.
87
+ *Sarah Ridge*, *Sean Doyle*
81
88
 
89
+ * Apply `field_error_proc` to `rich_text_area` form fields.
82
90
 
83
- ## Rails 7.0.2.1 (February 11, 2022) ##
91
+ *Kaíque Kandy Koga*
84
92
 
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.
93
+ * Action Text attachment URLs rendered in a background job (a la Turbo
94
+ Streams) now use `Rails.application.default_url_options` and
95
+ `Rails.application.config.force_ssl` instead of `http://example.org`.
101
96
 
97
+ *Jonathan Hefner*
102
98
 
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.
99
+ * Support `strict_loading:` option for `has_rich_text` declaration
141
100
 
142
101
  *Sean Doyle*
143
102
 
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*
103
+ * Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
155
104
 
156
- * Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
105
+ *Jamis Buck*
157
106
 
158
- *Matt Swanson*, *DHH*
107
+ * Fix an issue that caused the content layout to render multiple times when a
108
+ rich_text field was updated.
159
109
 
110
+ *Jacob Herrington*
160
111
 
161
- Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
112
+ 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