svelte-on-rails 18.4.0 → 18.5.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.
- checksums.yaml +4 -4
- data/lib/svelte_on_rails/lib/view_helper_support.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cf3fb0d098a779dab7cc46ed83a62e1c3105bbec0c93dff552cd4d602bb4d2d
|
|
4
|
+
data.tar.gz: 75b3de3babec26b49b3b010f453484d38eeae280c423b3818e1832c4c331ae34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 884d2e9eca4451cbb14daf6ef4cff134f638bba44904df26f4ba68ae096710b09a3d07b38c1b363fd3e0cb54ba3b475a738ff1b7b97e8e7197e30dcc9d77dcdf
|
|
7
|
+
data.tar.gz: 305814dfd2fdd7e2faffc4ea68b47cd7e39f0b98a1dfb4254eeb93e4808f088fe8f47fbf0f65693a28a62f563f3ed98ad6dac685d61ee03dd15e4af81d8013b1
|
|
@@ -122,17 +122,13 @@ module SvelteOnRails
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
)
|
|
125
|
-
cl = "svelte-component #{ht_opts[:class]}".split(' ')
|
|
126
|
-
_cl = 'svelte-' + component_paths[:name].underscore.gsub('_', '-')
|
|
127
|
-
cl.push(_cl) unless cl.include?(_cl)
|
|
128
125
|
|
|
129
126
|
tnl = SvelteOnRails::Lib::ToSvelteTranslations.instance
|
|
130
127
|
_tnl = tnl.cached_translations(I18n.locale, :to_svelte_props, nil)
|
|
131
128
|
svelte_props[:_translations] = _tnl if _tnl
|
|
132
129
|
svelte_props[:test] = 'hello'
|
|
133
|
-
# svelte_props = {my: :joke}
|
|
134
130
|
|
|
135
|
-
ht_opts[:class] =
|
|
131
|
+
ht_opts[:class] = "svelte-component #{ht_opts[:class]}"
|
|
136
132
|
ht_opts[:data][:props] = svelte_props.to_json
|
|
137
133
|
ht_opts[:data][:svelte_status] = @options[:hydrate] ? 'ssr' : 'do-not-hydrate-me'
|
|
138
134
|
ht_opts
|