vident 1.0.0.alpha4 → 1.0.0.beta1
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 +10 -0
- data/lib/vident/stimulus_builder.rb +2 -1
- data/lib/vident/stimulus_component.rb +1 -1
- data/lib/vident/tag_helper.rb +2 -1
- data/lib/vident/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afda27d62ee5246fc8fdd81ab6f53720ec58ebbd8ca42099b120f7c388788688
|
|
4
|
+
data.tar.gz: c2ddd4762e650cd0ce63ff01662bb691cb76943c3f538eb490348dd211c98a1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00fb4a976875313eed41e49f235417a6dd6d5d42a7d0aeed572d62eb3bca61636cbd6cf14c4483f34e95744772375cdcdbc1c9ad889e9c18e8a0dcf9d061b0f8
|
|
7
|
+
data.tar.gz: 995ba08626a953e7212b16d4bea31a18277bf764e327b02498ac0893599a050fcbe9be5c88c71bbff264b5822d9b59d41781dc7f940fa039ffcd9b176bea2159
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ 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
|
+
## [1.0.0.beta1] - 2026-04-16
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `tag(...)` singular stimulus kwargs (e.g. `stimulus_action: [:click, :foo]`) no longer splat `[event, handler]` tuples into two bare handlers (#19).
|
|
14
|
+
- `vident-view_component`'s `tag(...)` now emits void elements (`:input`, `:img`, `:br`, etc.) without a closing tag (#19).
|
|
15
|
+
- `vident-view_component`'s `tag(...)` without a block no longer renders the options hash as element content (#19).
|
|
16
|
+
- `stimulus_targets:` prop now accepts `Array` entries (e.g. `[[controller_path, :name]]`), matching `stimulus_actions:` (#20).
|
|
17
|
+
- `stimulus do ... outlets(...)` DSL now accepts a positional `Hash`, allowing string keys (e.g. stimulus identifiers containing `--`) that cannot be Ruby kwarg keys (#21).
|
|
18
|
+
|
|
9
19
|
## [1.0.0.alpha4] - 2025-12-12
|
|
10
20
|
|
|
11
21
|
- Update to `view_component` 4
|
|
@@ -49,7 +49,7 @@ module Vident
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
prop :stimulus_actions, _Array(_Union(String, Symbol, Array, Hash, StimulusAction, StimulusActionCollection)), default: -> { [] }
|
|
52
|
-
prop :stimulus_targets, _Array(_Union(String, Symbol, Hash, StimulusTarget, StimulusTargetCollection)), default: -> { [] }
|
|
52
|
+
prop :stimulus_targets, _Array(_Union(String, Symbol, Array, Hash, StimulusTarget, StimulusTargetCollection)), default: -> { [] }
|
|
53
53
|
prop :stimulus_outlets, _Array(_Union(String, Symbol, StimulusOutlet, StimulusOutletCollection)), default: -> { [] }
|
|
54
54
|
prop :stimulus_outlet_host, _Nilable(Vident::Component) # A component that will host this component as an outlet
|
|
55
55
|
prop :stimulus_values, _Union(_Hash(Symbol, _Any), StimulusValue, StimulusValueCollection), default: -> { {} } # TODO: instead of _Any, is it _Interface(:to_s)?
|
data/lib/vident/tag_helper.rb
CHANGED
|
@@ -54,7 +54,8 @@ module Vident
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def tag_wrap_single_stimulus_attribute(plural, singular)
|
|
57
|
-
plural
|
|
57
|
+
return plural if plural
|
|
58
|
+
singular.nil? ? nil : [singular]
|
|
58
59
|
end
|
|
59
60
|
|
|
60
61
|
def generate_tag(tag_name, stimulus_data_attributes, options, &block)
|
data/lib/vident/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vident
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Ierodiaconou
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: railties
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
|
-
rubygems_version:
|
|
136
|
+
rubygems_version: 4.0.3
|
|
137
137
|
specification_version: 4
|
|
138
138
|
summary: Vident is the base of your design system implementation, which provides helpers
|
|
139
139
|
for working with Stimulus. For component libraries with ViewComponent or Phlex.
|