view_component_reflex 3.3.6 → 3.3.7

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: 82c28e28c2da0f6adb25812a0572aafabbbdd5a36903939c2d6b0aef1237ad05
4
- data.tar.gz: 0b7ed019c6b15bb4eece10c4efc7055917bc0f7ee30056f5271bdfe656ab1cc4
3
+ metadata.gz: ae8be2f64a083d4251b5eef0cc9b228975c8945f4d86f1533733299598a6a7b1
4
+ data.tar.gz: 863be20cc526eeee4456b82df012137480467f286d8d57bbee9e6320b054ea76
5
5
  SHA512:
6
- metadata.gz: 13dcb91e645762a0e2ec588975ad9f0edfd6c76a7097eeb274a3ad78bd30966e349c8771285fb3654c03703b2ff65d866441afd9a1dd9c9ec9d312d384d1fa44
7
- data.tar.gz: 1f9f9471d1bc54120005d37a8a9920fa8dad4a34653a3c845528426d192b970ec8aed7741ceb9d9d03f1f5e03a9933f608c42fc0c3546f375391cd05ded935f4
6
+ metadata.gz: ebd1ef0a4cd063d64e10a2f1fc401855f7b6df923fb8aee03b19b2e8955d2d1c51ac864f1a6a54c497afc0d827c80135cb178827d054b4dfd9c4a47f3a2c2f92
7
+ data.tar.gz: c606742241637572e2c4b8df1248514fb9864a58d30c116535d0ccc0e8a59cbf93716afce9db8cc46dd3bde7720da345a88a4eb0a4589bf4bc05d51e1ed40f33
@@ -27,8 +27,8 @@ module ViewComponentReflex
27
27
  end
28
28
 
29
29
  def callbacks(key)
30
- @@callbacks ||= {}
31
- @@callbacks[key] ||= []
30
+ @callbacks ||= {}
31
+ @callbacks[key] ||= []
32
32
  end
33
33
 
34
34
  def register_callbacks(key)
@@ -33,7 +33,7 @@ module ViewComponentReflex
33
33
  html: html.inner_html,
34
34
  children_only: true,
35
35
  permanent_attribute_name: "data-reflex-permanent",
36
- reflex_id: reflex_id
36
+ reflex_id: respond_to?(:id) ? id : reflex_id
37
37
  )
38
38
  end
39
39
  end
@@ -69,7 +69,7 @@ module ViewComponentReflex
69
69
  children_only: true,
70
70
  html: component_document.css(selector).to_html,
71
71
  permanent_attribute_name: "data-reflex-permanent",
72
- reflex_id: reflex_id
72
+ reflex_id: respond_to?(:id) ? id : reflex_id
73
73
  )
74
74
  end
75
75
 
@@ -85,7 +85,7 @@ module ViewComponentReflex
85
85
 
86
86
  def stimulus_reflex_data
87
87
  {
88
- reflex_id: reflex_id,
88
+ reflex_id: respond_to?(:id) ? id : reflex_id,
89
89
  xpath_controller: xpath_controller,
90
90
  xpath_element: xpath_element,
91
91
  target: target,
@@ -1,3 +1,3 @@
1
1
  module ViewComponentReflex
2
- VERSION = '3.3.6'
2
+ VERSION = '3.3.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.6
4
+ version: 3.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua LeBlanc