view_component 2.29.0 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/view_component/base.rb +5 -0
- data/lib/view_component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bb3c2781d5f07f404e5bf9582758537704a05c3937529c250ae657541d4f664
|
|
4
|
+
data.tar.gz: 0efa6d2e3bbf03ed206e02b9dad11bea1f5649ab655dfff78d1f48c68414129f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9222381535158cc047e33e37341329c232ac984ee3f6895e95251cd9dabc9b92baebb69b336500932c264b48eb7f74ef0b7d3f918473d8fe83151ad73c18323b
|
|
7
|
+
data.tar.gz: 4da1bd8980affd316288695a52e9fcdccad912f3447081f0186194190ad48e52d397f36c34b3bea70ea743d32f2eda8d37779ecb588b50cbd626f7d89a4f365c
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## main
|
|
4
4
|
|
|
5
|
+
## 2.30.0
|
|
6
|
+
|
|
7
|
+
* Deprecate `with_content_areas` in favor of [slots](https://viewcomponent.org/guide/slots.html).
|
|
8
|
+
|
|
9
|
+
*Joel Hawksley*
|
|
10
|
+
|
|
5
11
|
## 2.29.0
|
|
6
12
|
|
|
7
13
|
* Allow Slot lambdas to share data from the parent component and allow chaining on the returned component.
|
data/lib/view_component/base.rb
CHANGED
|
@@ -309,6 +309,11 @@ module ViewComponent
|
|
|
309
309
|
end
|
|
310
310
|
|
|
311
311
|
def with_content_areas(*areas)
|
|
312
|
+
ActiveSupport::Deprecation.warn(
|
|
313
|
+
"`with_content_areas` is deprecated and will be removed in ViewComponent v3.0.0.\n" \
|
|
314
|
+
"Use slots (https://viewcomponent.org/guide/slots.html) instead."
|
|
315
|
+
)
|
|
316
|
+
|
|
312
317
|
if areas.include?(:content)
|
|
313
318
|
raise ArgumentError.new ":content is a reserved content area name. Please use another name, such as ':body'"
|
|
314
319
|
end
|