actiontext 7.0.4 → 7.1.3.4

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: 82de1e2be05cc3b13e988c6b414f4c352a8f1a116cddca68fd1bca06cd0ec7cb
4
- data.tar.gz: fe16bd3209f7ceb9ab2694839697979d94bb64d96bb7686bd5a5a3b8ad8187aa
3
+ metadata.gz: d51a41ff03b550ac428a52ce89ee785539d2ac0b386c5597f4c06b763070d054
4
+ data.tar.gz: 85028cdc38e4448c321e17190924c602f7bd940588307ef42206c7e0842ba31a
5
5
  SHA512:
6
- metadata.gz: 997f51c29f335af6073885d08b0c312a89bbea06eca533231ca851b450948184f96791a10d0dba23d09640985aa60086d44e66b570abbd53080868fc775192f1
7
- data.tar.gz: 041b4833e2d2b16e6c49e338b6d851023748d62c35e95cc7e5dbca27c52d69f18a8c5e5e54ea5ca51f21687af4a3bb5b85efa1b0189e1e465eb84b406ba28a1f
6
+ metadata.gz: 417dec3ad3e197b566e52b5b42356481d6a5f54e1a792b5f16c7eeaa45137b2a4bdeeb32e83fd890d884fc60864e7d6062ebe25115710a40de06df3c93812c95
7
+ data.tar.gz: ab1691bf97b79a8f2b644b6bf324c06fc663fd8ca2ba4641a906fcf7062a4c4acb4103b25b405561fc21e81198ce7b7541a9d02921d137ae14de6eb75d01b1c7
data/CHANGELOG.md CHANGED
@@ -1,109 +1,125 @@
1
- ## Rails 7.0.4 (September 09, 2022) ##
1
+ ## Rails 7.1.3.4 (June 04, 2024) ##
2
2
 
3
- * No changes.
3
+ * Sanitize ActionText HTML ContentAttachment in Trix edit view
4
+ [CVE-2024-32464]
4
5
 
5
6
 
6
- ## Rails 7.0.3.1 (July 12, 2022) ##
7
+ ## Rails 7.1.3.3 (May 16, 2024) ##
7
8
 
8
- * No changes.
9
+ * Upgrade Trix to 1.3.2 to fix [CVE-2024-34341](https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99).
10
+
11
+ *Rafael Mendonça França*
9
12
 
10
13
 
11
- ## Rails 7.0.3 (May 09, 2022) ##
14
+ ## Rails 7.1.3.2 (February 21, 2024) ##
12
15
 
13
16
  * No changes.
14
17
 
15
18
 
16
- ## Rails 7.0.2.4 (April 26, 2022) ##
19
+ ## Rails 7.1.3.1 (February 21, 2024) ##
17
20
 
18
21
  * No changes.
19
22
 
20
23
 
21
- ## Rails 7.0.2.3 (March 08, 2022) ##
24
+ ## Rails 7.1.3 (January 16, 2024) ##
22
25
 
23
26
  * No changes.
24
27
 
25
28
 
26
- ## Rails 7.0.2.2 (February 11, 2022) ##
29
+ ## Rails 7.1.2 (November 10, 2023) ##
27
30
 
28
- * No changes.
31
+ * Compile ESM package that can be used directly in the browser as `actiontext.esm.js`.
29
32
 
33
+ *Matias Grunberg*
30
34
 
31
- ## Rails 7.0.2.1 (February 11, 2022) ##
35
+ * Fix using actiontext.js with Sprockets.
32
36
 
33
- * No changes.
37
+ *Matias Grunberg*
34
38
 
39
+ * Upgrade Trix to 2.0.7.
35
40
 
36
- ## Rails 7.0.2 (February 08, 2022) ##
41
+ *Hartley McGuire*
37
42
 
38
- * No changes.
43
+ * Fix using Trix with Sprockets.
39
44
 
45
+ *Hartley McGuire*
40
46
 
41
- ## Rails 7.0.1 (January 06, 2022) ##
47
+
48
+ ## Rails 7.1.1 (October 11, 2023) ##
42
49
 
43
50
  * No changes.
44
51
 
45
52
 
46
- ## Rails 7.0.0 (December 15, 2021) ##
53
+ ## Rails 7.1.0 (October 05, 2023) ##
47
54
 
48
55
  * No changes.
49
56
 
50
57
 
51
- ## Rails 7.0.0.rc3 (December 14, 2021) ##
58
+ ## Rails 7.1.0.rc2 (October 01, 2023) ##
52
59
 
53
60
  * No changes.
54
61
 
55
62
 
56
- ## Rails 7.0.0.rc2 (December 14, 2021) ##
63
+ ## Rails 7.1.0.rc1 (September 27, 2023) ##
57
64
 
58
65
  * No changes.
59
66
 
60
- ## Rails 7.0.0.rc1 (December 06, 2021) ##
61
-
62
- * Fix an issue with how nested lists were displayed when converting to plain text
63
-
64
- *Matt Swanson*
65
67
 
66
- * Allow passing in a custom `direct_upload_url` or `blob_url_template` to `rich_text_area_tag`.
68
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
67
69
 
68
- *Lucas Mansur*
70
+ * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
71
+ supported.
69
72
 
73
+ Action Text's sanitizer can be configured by setting
74
+ `config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
75
+ `Rails::HTML5::Sanitizer`.
70
76
 
71
- ## Rails 7.0.0.alpha2 (September 15, 2021) ##
77
+ The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
78
+ fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
79
+ `Rails::HTML4::Sanitizer`.
72
80
 
73
- * No changes.
81
+ As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
82
+ `.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
83
+ unless set by the application. You may call `sanitizer_allowed_tags` or
84
+ `sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
85
+ sanitizer.
74
86
 
87
+ *Mike Dalessio*
75
88
 
76
- ## Rails 7.0.0.alpha1 (September 15, 2021) ##
89
+ * Attachables now can override default attachment missing template.
77
90
 
78
- * Make the Action Text + Trix JavaScript and CSS available through the asset pipeline.
91
+ When rendering Action Text attachments where the underlying attachable model has
92
+ been removed, a fallback template is used. You now can override this template on
93
+ a per-model basis. For example, you could render a placeholder image for a file
94
+ attachment or the text "Deleted User" for a User attachment.
79
95
 
80
- *DHH*
96
+ *Matt Swanson*, *Joel Drapper*
81
97
 
82
- * OpenSSL constants are now used for Digest computations.
98
+ * Update bundled Trix version from `1.3.1` to `2.0.4`.
83
99
 
84
- *Dirkjan Bussink*
100
+ *Sarah Ridge*, *Sean Doyle*
85
101
 
86
- * Add support for passing `form:` option to `rich_text_area_tag` and
87
- `rich_text_area` helpers to specify the `<input type="hidden" form="...">`
88
- value.
102
+ * Apply `field_error_proc` to `rich_text_area` form fields.
89
103
 
90
- *Sean Doyle*
104
+ *Kaíque Kandy Koga*
91
105
 
92
- * Add `config.action_text.attachment_tag_name`, to specify the HTML tag that contains attachments.
106
+ * Action Text attachment URLs rendered in a background job (a la Turbo
107
+ Streams) now use `Rails.application.default_url_options` and
108
+ `Rails.application.config.force_ssl` instead of `http://example.org`.
93
109
 
94
- *Mark VanLandingham*
110
+ *Jonathan Hefner*
95
111
 
96
- * Expose how we render the HTML _surrounding_ rich text content as an
97
- extensible `layouts/action_view/contents/_content.html.erb` template to
98
- encourage user-land customizations, while retaining private API control over how
99
- the rich text itself is rendered by `action_text/contents/_content.html.erb`
100
- partial.
112
+ * Support `strict_loading:` option for `has_rich_text` declaration
101
113
 
102
114
  *Sean Doyle*
103
115
 
104
- * Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
116
+ * Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
117
+
118
+ *Jamis Buck*
105
119
 
106
- *Matt Swanson*, *DHH*
120
+ * Fix an issue that caused the content layout to render multiple times when a
121
+ rich_text field was updated.
107
122
 
123
+ *Jacob Herrington*
108
124
 
109
- Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
125
+ 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