vident-phlex 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: c416c516698b5baa7fa1781d7214304c47e1538914d8ca223999ed445d31668a
4
- data.tar.gz: d4a7734bd601437da2c0ae138af4fa842d3fb4f6e54d1c0eb63b248570ed6bff
3
+ metadata.gz: e5bca9c0444d08e3660a8c888896ff0ae27fcaf4f7810dfb8679983eb19fa32d
4
+ data.tar.gz: 903065ffc15930e541216af9ca1eb2c53c6e9e2a50684e4d9e36b6dcb0a4e78f
5
5
  SHA512:
6
- metadata.gz: e42d3a768f1764c41ef278a40c0a568db966e029dcd010fa62dc6a53f0551842bb853caf375cbe67f6d2a3c5de32d7ff826a10cbf738850a7828950f8afbbc88
7
- data.tar.gz: edd99c2f09799da5fe30f477c5ddb07d77d20c3a0820ef5d23e7e24ec493320ed45568756f8d7ca6fe812d573ac0aef4c07f774759cb89fa0dd52b7a4e432c87
6
+ metadata.gz: 728e8ab9aef6bda741c4c70ec34e791a91c137ec7ebdc2995c61ecca2110ed94f11d1bc0e5e30221abf6bc6925aa598109ae91409dcfb5db901da5d36041be52
7
+ data.tar.gz: d3c29d85fcc3841297796f3ef99d070bdedc77c4781c6992a461073837556b7558a91ff7f3f852aa1baa984699b5b120b5fb5a99ff6026d5b6875fc1bdc091d8
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-phlex
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: phlex
68
68
  requirement: !ruby/object:Gem::Requirement