vident-view_component 3.0.0 → 3.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8a28dd067143483f3c2e19e53665891d1d7044cb722bbb508cbc4a7b5efd987
4
- data.tar.gz: b672d968e7b6916c1c8b57725917fa577b29574e1e0094b886dbdc21a281a7ae
3
+ metadata.gz: c53602f93c41d2d9f476e6192784b66ba4ea07b4c3de60d0226d9e0570b29074
4
+ data.tar.gz: 23c0e4e219c52a69c44dc391649a44a3fdd00e66b8eea41c6bfae98a1024ed8c
5
5
  SHA512:
6
- metadata.gz: 8e102228d3387732845eabe708afb71dc4af84f7c4a810d22a34a5dbdc9855cb141c09658e09a3973653177dae44c10a1988f8ac30effe26feb51cc9df1ab48e
7
- data.tar.gz: f0299d8efddff1c7bca06025c61c3f65e8064de8acb8d1c94ed79cc828444c5110b6ecf0f2fb02a58cbad46b8343779731035ac81d072f75483d954a6e302eab
6
+ metadata.gz: 0b0a95b0da0bcc94a33013dd75627aa7f7107366223cf6022d8489ebbfa740cb6a86e8e6214dd160a9c61f7613f01f272c20a442b620ce7c5358cca9287ecdf0
7
+ data.tar.gz: 0a676b8374f64913ac4505804751e5fb9e9d4d45a54dd988739bb8d5cc0019d971d5f24b36ffd50a5f2979cc21d020557caf66a2b2f9a3a53a7ec811e29a97d1
data/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
 
9
+ ## [3.1.0] - 2026-05-26
10
+
11
+ ### Added
12
+
13
+ - Cross-controller parser forms accept a component class (or instance) wherever they accept a controller-path String — e.g. `stimulus_target: [Row, :summary]`, `stimulus_controllers: [Row]`, `stimulus_action: [:click, Row, :toggle]` — so references to another component's controller stay refactor-safe instead of hard-coded identifier strings. The same holds for the class-level builders (`Parent.stimulus_target(Row, :summary)`); the String cross-controller form is still rejected there.
14
+
15
+
9
16
  ## [3.0.0] - 2026-05-04
10
17
 
11
18
  A bare `String` now means the same thing across every Stimulus primitive — a controller path. The 2.x ambiguity where a `String` could variously mean controller path, outlet name, CSS selector, or fully-qualified action descriptor (depending on primitive and position) is gone, closing a class of silent-failure footguns. See `UPGRADING.md` "Upgrading to Vident 3.0" for symptom → fix on each breaking change.
data/README.md CHANGED
@@ -602,7 +602,7 @@ class CustomComponent < Vident::ViewComponent::Base
602
602
  end
603
603
  ```
604
604
 
605
- All stimulus props accept Symbol paths as well as Strings (e.g. `stimulus_controllers: [:custom, :"admin/users"]`). `stimulus_values:` and `stimulus_classes:` additionally accept Array entries (for cross-controller: `[["admin/users", :name, "value"]]`) and pre-built `Vident::Stimulus::Value` / `Vident::Stimulus::ClassMap` instances, so you can compose attribute sets outside the component and pass them in.
605
+ All stimulus props accept Symbol paths as well as Strings (e.g. `stimulus_controllers: [:custom, :"admin/users"]`). `stimulus_values:` and `stimulus_classes:` additionally accept Array entries (for cross-controller: `[["admin/users", :name, "value"]]`) and pre-built `Vident::Stimulus::Value` / `Vident::Stimulus::ClassMap` instances, so you can compose attribute sets outside the component and pass them in. Anywhere a controller-path String is accepted in a cross-controller slot you may pass the component class (or instance) instead — `[OtherComponent, :name, "value"]`, `stimulus_controllers: [OtherComponent]`, `stimulus_target: [OtherComponent, :row]` — which keeps the reference refactor-safe rather than a hard-coded identifier string.
606
606
 
607
607
  or you can use tag helpers to generate HTML with Stimulus attributes:
608
608
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vident-view_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Ierodiaconou
@@ -55,14 +55,14 @@ dependencies:
55
55
  requirements:
56
56
  - - "~>"
57
57
  - !ruby/object:Gem::Version
58
- version: 3.0.0
58
+ version: 3.1.0
59
59
  type: :runtime
60
60
  prerelease: false
61
61
  version_requirements: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - "~>"
64
64
  - !ruby/object:Gem::Version
65
- version: 3.0.0
65
+ version: 3.1.0
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: view_component
68
68
  requirement: !ruby/object:Gem::Requirement