actiontext 7.0.8 → 7.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ac9973c6fa041a048b0957105e43fab5638d74e7c20827bc7603e801edb7704
4
- data.tar.gz: c2b71c1fc63a51b8d230192fe9ee58bdf1981ff252bd36c533928b1fce875264
3
+ metadata.gz: 5e1bbfcde2a6f0703dfb211878dff37e4b6861b36afe7228a8a6c97583d7fffe
4
+ data.tar.gz: b86e7bd2dbb9a2afa7000795f0869c1e2b9d6ed01abf85f3c01d0536a9f0d8b3
5
5
  SHA512:
6
- metadata.gz: 9dfbe85ee8c2415b18ab759ca441c3a339d48058b0dbc90e6956ebc5b7ac03cb3cc9c9518d476b5f5078c74850b19754fb0304ea0890376ca596fef610ee989b
7
- data.tar.gz: e25d1a9ad7a70f620045cf6ca72b21d7e82c5a121de528f703c465efc319bcaaf4447073b61945fba585e65ffb2c4d8ba41c220ceb2ea76f8a2285f84fe849d7
6
+ metadata.gz: e2406e2d2025dae50c1500b01b783a2b9c9c67fc893a279cc84d9b96b51407f6e6e2ddd074cd8af899e2560312ea3e9fdcd19d870fc60dfbc1c2f98642fc338a
7
+ data.tar.gz: 76e80ad39a261c8c64ab8f7c711e00559f6a00d824cf8a623cdb3320c777d38bb55a185badca98355684ff7449dd6295ed5f019108a22826c680f5f8612f1ec7
data/CHANGELOG.md CHANGED
@@ -1,161 +1,63 @@
1
- ## Rails 7.0.8 (September 09, 2023) ##
1
+ ## Rails 7.1.0.rc1 (September 27, 2023) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 7.0.7.2 (August 22, 2023) ##
7
-
8
- * No changes.
9
-
10
-
11
- ## Rails 7.0.7.1 (August 22, 2023) ##
12
-
13
- * No changes.
14
-
15
-
16
- ## Rails 7.0.7 (August 09, 2023) ##
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.
29
-
30
-
31
- ## Rails 7.0.5 (May 24, 2023) ##
32
-
33
- * Fix `ActionText::Attachable#as_json`.
34
-
35
- *Alexandre Ruban*
6
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
36
7
 
8
+ * Use `Rails::HTML5::SafeListSanitizer` by default in the Rails 7.1 configuration if it is
9
+ supported.
37
10
 
38
- ## Rails 7.0.4.3 (March 13, 2023) ##
11
+ Action Text's sanitizer can be configured by setting
12
+ `config.action_text.sanitizer_vendor`. Supported values are `Rails::HTML4::Sanitizer` or
13
+ `Rails::HTML5::Sanitizer`.
39
14
 
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) ##
49
-
50
- * No changes.
51
-
52
-
53
- ## Rails 7.0.4 (September 09, 2022) ##
15
+ The Rails 7.1 configuration will set this to `Rails::HTML5::Sanitizer` when it is supported, and
16
+ fall back to `Rails::HTML4::Sanitizer`. Previous configurations default to
17
+ `Rails::HTML4::Sanitizer`.
54
18
 
55
- * No changes.
56
-
57
-
58
- ## Rails 7.0.3.1 (July 12, 2022) ##
19
+ As a result of this change, the defaults for `ActionText::ContentHelper.allowed_tags` and
20
+ `.allowed_attributes` are applied at runtime, so the value of these attributes is now 'nil'
21
+ unless set by the application. You may call `sanitizer_allowed_tags` or
22
+ `sanitizer_allowed_attributes` to inspect the tags and attributes being allowed by the
23
+ sanitizer.
59
24
 
60
- * No changes.
25
+ *Mike Dalessio*
61
26
 
27
+ * Attachables now can override default attachment missing template.
62
28
 
63
- ## Rails 7.0.3 (May 09, 2022) ##
29
+ When rendering Action Text attachments where the underlying attachable model has
30
+ been removed, a fallback template is used. You now can override this template on
31
+ a per-model basis. For example, you could render a placeholder image for a file
32
+ attachment or the text "Deleted User" for a User attachment.
64
33
 
65
- * No changes.
34
+ *Matt Swanson*, *Joel Drapper*
66
35
 
36
+ * Update bundled Trix version from `1.3.1` to `2.0.4`.
67
37
 
68
- ## Rails 7.0.2.4 (April 26, 2022) ##
38
+ *Sarah Ridge*, *Sean Doyle*
69
39
 
70
- * No changes.
40
+ * Apply `field_error_proc` to `rich_text_area` form fields.
71
41
 
42
+ *Kaíque Kandy Koga*
72
43
 
73
- ## Rails 7.0.2.3 (March 08, 2022) ##
44
+ * Action Text attachment URLs rendered in a background job (a la Turbo
45
+ Streams) now use `Rails.application.default_url_options` and
46
+ `Rails.application.config.force_ssl` instead of `http://example.org`.
74
47
 
75
- * No changes.
76
-
77
-
78
- ## Rails 7.0.2.2 (February 11, 2022) ##
79
-
80
- * No changes.
48
+ *Jonathan Hefner*
81
49
 
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.
50
+ * Support `strict_loading:` option for `has_rich_text` declaration
141
51
 
142
52
  *Sean Doyle*
143
53
 
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*
54
+ * Update ContentAttachment so that it can encapsulate arbitrary HTML content in a document.
155
55
 
156
- * Add `with_all_rich_text` method to eager load all rich text associations on a model at once.
56
+ *Jamis Buck*
157
57
 
158
- *Matt Swanson*, *DHH*
58
+ * Fix an issue that caused the content layout to render multiple times when a
59
+ rich_text field was updated.
159
60
 
61
+ *Jacob Herrington*
160
62
 
161
- Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actiontext/CHANGELOG.md) for previous changes.
63
+ 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