kiso 0.4.2.pre → 0.4.3.pre

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e7e4247e68272499ab572c3aa2ed94ad54860cf075f0b4e3240a1b11fd909d6
4
- data.tar.gz: 87e9710cb6428055adad01d89a4357e735ac5c8b326c547b01d696d208501cf8
3
+ metadata.gz: 0e16c80be5816e217b497d96bbaca01d358ed7d9d9a76c885e0f3c0f4e482470
4
+ data.tar.gz: 5017356a702d692ec3a08f86de357392a7bd93e4bee6b1fef4096c6433249fcc
5
5
  SHA512:
6
- metadata.gz: 9f0842c23bdf92f06c826614ac8eb81d427eb136ea5fa2d6f735886387790cccda7943d450e8e771a7405cb9d6017eb2c1a5b00386b499b2c079ff933b520ec2
7
- data.tar.gz: 1322bed3abb54da45bb4163e7fa5ca5919efbb6af07f505606dc17e65ac100f5fbc6d438e336347bdb44a09f70a2a7f3c413df876ace869adcd2b7a758ee725a
6
+ metadata.gz: a8ac36cb673b6f59b5fbd899e5c4117e525504d2d50a5b44bd08904c710b7bec469fa2f3f2c9b1fa4d349f2a0e965c98b394668fd7985b5a38210f93894aeb1b
7
+ data.tar.gz: 9d1b05dda12c29966829fde3eb6f7a42f1f36b29973d5674a637350ffe90e73a345c34c648833cbea21665fe42260ddd224f7272e231299f2993a6ef20eb5250
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.3.pre] - 2026-03-08
11
+
12
+ ### Fixed
13
+
14
+ - `scope:` values now merge into the parent partial's kwargs — previously, scope was pushed onto the stack for sub-parts but not merged into the parent's own strict locals, causing `ActionView::StrictLocalsError`
15
+ - `kui_tag` / `appui_tag` now render correctly without a block — self-closing elements (e.g., status dots, icons) were rendering the options hash as text content instead of HTML attributes
16
+
10
17
  ## [0.4.2.pre] - 2026-03-08
11
18
 
12
19
  ### Added
@@ -118,7 +125,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
118
125
  - Lookbook component previews
119
126
  - Bridgetown documentation site
120
127
 
121
- [Unreleased]: https://github.com/steveclarke/kiso/compare/v0.4.2.pre...HEAD
128
+ [Unreleased]: https://github.com/steveclarke/kiso/compare/v0.4.3.pre...HEAD
129
+ [0.4.3.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.3.pre
122
130
  [0.4.2.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.2.pre
123
131
  [0.4.1.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.1.pre
124
132
  [0.4.0.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.0.pre
@@ -102,10 +102,17 @@ module Kiso
102
102
  # yield
103
103
  # end
104
104
  def kui_tag(tag, theme:, slot:, css_classes: "", variants: {}, **component_options, &block)
105
- content_tag(tag,
105
+ html_options = {
106
106
  class: theme.render(**variants, class: css_classes),
107
107
  data: kiso_prepare_options(component_options, slot: slot),
108
- **component_options, &block)
108
+ **component_options
109
+ }
110
+
111
+ if block
112
+ content_tag(tag, html_options, &block)
113
+ else
114
+ content_tag(tag, nil, html_options)
115
+ end
109
116
  end
110
117
 
111
118
  private
@@ -172,6 +179,10 @@ module Kiso
172
179
  # Push context for composed sub-parts to read (skip when empty)
173
180
  kiso_push_ui_context(component, merged_ui) if has_ui
174
181
  kiso_push_scope(component, scope) if has_scope
182
+
183
+ # Merge scope into parent kwargs so the parent partial receives
184
+ # scope values as strict locals (scope as defaults, explicit kwargs win)
185
+ kwargs = scope.merge(kwargs) if has_scope
175
186
  begin
176
187
  locals = has_ui ? kwargs.merge(ui: merged_ui) : kwargs
177
188
 
data/lib/kiso/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Kiso
4
4
  # @return [String] the current gem version
5
- VERSION = "0.4.2.pre"
5
+ VERSION = "0.4.3.pre"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2.pre
4
+ version: 0.4.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Clarke