isomorfeus-react 16.9.5 → 16.9.6

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: 2bb389b00cc336750921d6f9cbed09d122e248b5502c1133720fb3be193d1fe1
4
- data.tar.gz: d189a0b592d10ac2e4817e674930f6e5e01174dd4d9f7b37796126ce4015660d
3
+ metadata.gz: 3db41ef26a24fa9c7fc245c8b438898364fe03203c954a5aafe3c5d871626f88
4
+ data.tar.gz: 5967eab20528f06f4f273e1294dd82cd6f53ed66c3c6f212bfcfb7081b984a6b
5
5
  SHA512:
6
- metadata.gz: 3a504977c3f5ab42da8519b925b672b5b1129ac1d806a466a35f3162f124f25729498cc381c5d3a0272aa3bca0ff65892bce38d7efc9921e49733391658a2141
7
- data.tar.gz: ba2e69d7f98e2c6f706dd0bb40f96fbbe34f2c08aa48a6e03fda0c95be9afdfc45f9ff8cb38349b57dfb89592efa4c40433dfb8bf6443754e765a3c24469a225
6
+ metadata.gz: 14153b0edb03c88fb5f17716ceee0fddd64a473fee15cde590b89abe012b16b0a765327b0d6a76d0020ac518b5bddd79a35211b71617a87ad682525043b39bbd
7
+ data.tar.gz: 9e4ce1d9545488c3873043d34b79f4add71b46e47b883e766af9e8337fdd91183c14d5c5525d2c56fad3d77ed8a697aac291425e8db9925536c35ceea037487f
@@ -16,6 +16,7 @@ module Isomorfeus
16
16
  # build javascript for rendering first pass
17
17
  javascript = <<~JAVASCRIPT
18
18
  global.FirstPassFinished = false;
19
+ global.Opal.Isomorfeus['$env=']('#{Isomorfeus.env}');
19
20
  global.Opal.Isomorfeus['$force_init!']();
20
21
  global.Opal.Isomorfeus['$ssr_response_status='](200);
21
22
  global.Opal.Isomorfeus.TopLevel['$ssr_route_path=']('#{props[:location]}');
@@ -5,6 +5,7 @@ module Isomorfeus
5
5
  on_ready do
6
6
  root_element = `document.querySelector('div[data-iso-root]')`
7
7
  component_name = root_element.JS.getAttribute('data-iso-root')
8
+ Isomorfeus.env = root_element.JS.getAttribute('data-iso-env')
8
9
  component = component_name.constantize
9
10
  props_json = root_element.JS.getAttribute('data-iso-props')
10
11
  props = `Opal.Hash.$new(JSON.parse(props_json))`
@@ -108,7 +108,7 @@ module LucidMaterial
108
108
  return #{component_name} + 'Shell';
109
109
  }
110
110
  render() {
111
- if (!base.lucid_material_component) {
111
+ if (!base.lucid_material_component || Opal.Isomorfeus["$development?"]()) {
112
112
  base.lucid_material_component = Opal.global.MuiStyles.withStyles(base.jss_styles)(function(props){
113
113
  return Opal.global.React.createElement(base.lucid_react_component, props);
114
114
  });
@@ -148,7 +148,7 @@ module LucidMaterial
148
148
  base.react_component = function(outer_props) {
149
149
  return Opal.global.React.createElement(Opal.global.LucidApplicationContext.Consumer, null, function(store) {
150
150
  var store_props = Object.assign({}, outer_props, { isomorfeus_store: store });
151
- if (!base.lucid_material_component) {
151
+ if (!base.lucid_material_component || Opal.Isomorfeus["$development?"]()) {
152
152
  base.lucid_material_component = Opal.global.MuiStyles.withStyles(base.jss_styles)(function(props){
153
153
  return Opal.global.React.createElement(base.lucid_react_component, props);
154
154
  });
data/lib/react/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.9.5'
2
+ VERSION = '16.9.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.9.5
4
+ version: 16.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj