superglue 0.52.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94703de4362e746c0d94f24ded15dbfb455022c891147b2c0763a09ac49812d5
4
- data.tar.gz: 784a3048c3c07fe565302994ce725596f29e589390b7c592c47363c68e7f216e
3
+ metadata.gz: c657a62bc960eead2e245bb9ab18c948e4189a71b2912b93af6db77ab3c736ec
4
+ data.tar.gz: 877c045ed6e1f0d9ba2ec5dd22cfff0f90fa3dc09857391329d88239706e398a
5
5
  SHA512:
6
- metadata.gz: e76c3826966499af06badefe2aff6c891242f30c02b2bdd3c63adbf7a43d7179db2af8fec6cf757127e56cf0569d1d14cd9eca23af0f471adb6e1fb1d0ed3c3d
7
- data.tar.gz: ecc81a26f8a3d7077afb83f99fd0260e9fc6bde3c7e17cd3f3b2c1aff53917a0c2091daf040de440c1c46bd1f6eab750f3378975c5a00c54d4b0596ba34d8aca
6
+ metadata.gz: efb1cbbfa8f10db7e67d99216581f0d0852d2d4e34b49b4560d5b05c16217a8df9eba63e13489c617d8ac1324b262fdec1b9d6fc02703c1a10551cde045df8e5
7
+ data.tar.gz: cbbc592a52dfd39f4ce3e9ed618e2fed40746dd4b4daadc926ed02e3dcca5dc4813f2b881ee80394c380e30fcf2927198da6a6094e7ffac2b3d1005ee6beecbc
@@ -1,4 +1,4 @@
1
- <%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
1
+ <%% initial_state = controller.render_to_string(active_template_virtual_path, formats: [:json], locals: local_assigns, layout: true) %>
2
2
 
3
3
  <script type="text/javascript">
4
4
  window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
@@ -1,4 +1,4 @@
1
- <%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
1
+ <%% initial_state = controller.render_to_string(active_template_virtual_path, formats: [:json], locals: local_assigns, layout: true) %>
2
2
 
3
3
  <script type="text/javascript">
4
4
  window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
@@ -1,4 +1,4 @@
1
- <%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
1
+ <%% initial_state = controller.render_to_string(active_template_virtual_path, formats: [:json], locals: local_assigns, layout: true) %>
2
2
 
3
3
  <script type="text/javascript">
4
4
  window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
@@ -1,4 +1,4 @@
1
- <%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
1
+ <%% initial_state = controller.render_to_string(active_template_virtual_path, formats: [:json], locals: local_assigns, layout: true) %>
2
2
 
3
3
  <script type="text/javascript">
4
4
  window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { Provider } from 'react-redux';
3
2
  import { createRoot } from 'react-dom/client';
4
3
  import { ApplicationBase } from '@thoughtbot/superglue';
5
4
  import { buildVisitAndRemote } from './application_visit';
@@ -4,7 +4,7 @@ json.data(search: path) do
4
4
  yield json
5
5
  end
6
6
 
7
- json.componentIdentifier "#{controller_path}/#{action_name}"
7
+ json.componentIdentifier active_template_virtual_path
8
8
  json.defers json.deferred!
9
9
  json.fragments json.fragments!
10
10
  json.assets [ asset_path('application.js') ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superglue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johny Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.31.0
33
+ version: 0.32.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.31.0
40
+ version: 0.32.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: form_props
43
43
  requirement: !ruby/object:Gem::Requirement