isomorfeus-react 16.8.2 → 16.8.3

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: 9e21d256eefe22328c08a12c7fe32ad6891c60d167f2ff44b4c24fea24ce018e
4
- data.tar.gz: 3f142f8243283f8ef26892e96d8c10913d22b20ccf70d435f662148b0ea51f0c
3
+ metadata.gz: 87da6715bc1c82a1d0399ccc0cf50405c03ba38c221d8a2aef1a3b7bfb133cdc
4
+ data.tar.gz: 2be16e621f8df169986563a2c63311f732eb887a9de849f3d734bcd5302dc639
5
5
  SHA512:
6
- metadata.gz: 5da5eb77a5e0705a8f073b6841932cdfddba41bf05dd12cd417295cb5abfdfc07f2337b9197fe7d340740779311f8ed8f1c03238ae9d8eb59e4a2412f0d27d40
7
- data.tar.gz: aff97f67736bd4901efd02936c16a236855b759c1b0b1f9c0d949700d5592a3540a3e39ddbead11b75bfb9d619f543813a8539c9471ba153acf7ad04a44dff67
6
+ metadata.gz: bbf289350bacb3952d36737f147fe03382e9613c719af481cd68bab554e0e66655ec4b74f3d5a700dfa5412799f61667e75bd1b009626b92b62256ca5fe33879
7
+ data.tar.gz: 3ceaa36ed316f28f653e45cabe8697d44bc2375ee2daaf51dc0dfcd246991cd024ddd9cb6391fbb027d43201e429aa0a151c6fcf58c33b42f9fbb31b9af3e80c
@@ -20,7 +20,7 @@ module Isomorfeus
20
20
  return [rendered_tree, application_state]
21
21
  JAVASCRIPT
22
22
  rendered_tree, application_state = Isomorfeus.ssr_contexts[asset].exec(javascript)
23
- render_result << "data-iso-state='#{Oj.dump(application_state, mode: :strict)}'>"
23
+ render_result << " data-iso-state='#{Oj.dump(application_state, mode: :strict)}'>"
24
24
  render_result << rendered_tree
25
25
  else
26
26
  render_result << '>'
data/lib/lucid_app/api.rb CHANGED
@@ -1,12 +1,6 @@
1
1
  module LucidApp
2
2
  module API
3
3
  def self.included(base)
4
- base.instance_exec do
5
- def render(&block)
6
- `base.render_block = block`
7
- end
8
- end
9
-
10
4
  def context
11
5
  @native.JS[:context]
12
6
  end
@@ -11,6 +11,7 @@ module LucidApp
11
11
  base.include(::React::Component::Callbacks)
12
12
  base.include(::React::ReduxComponent::API)
13
13
  base.include(::LucidApp::API)
14
+ base.include(::LucidComponent::Initializer)
14
15
  base.include(::React::Component::Features)
15
16
  base.include(::React::Component::Resolution)
16
17
  end
@@ -5,13 +5,14 @@ module LucidMaterial
5
5
  base.include(::Native::Wrapper)
6
6
  base.extend(::LucidMaterial::App::NativeComponentConstructor)
7
7
  base.extend(::React::Component::ShouldComponentUpdate)
8
- base.extend(::React::Component::EventHandler)
8
+ base.extend(::LucidComponent::EventHandler)
9
9
  base.include(::React::Component::Elements)
10
10
  base.include(::React::Component::API)
11
11
  base.include(::React::Component::Callbacks)
12
12
  base.include(::React::ReduxComponent::API)
13
13
  base.include(::LucidMaterial::Component::API)
14
14
  base.include(::LucidApp::API)
15
+ base.include(::LucidComponent::Initializer)
15
16
  base.include(::React::Component::Features)
16
17
  base.include(::React::Component::Resolution)
17
18
  end
@@ -6,11 +6,8 @@ module React
6
6
  def method_missing(prop, *args, &block)
7
7
  %x{
8
8
  var prop_name = Opal.React.lower_camelize(prop);
9
- if (typeof #@native[prop_name] === 'undefined') {
10
- return #{nil};
11
- } else {
12
- return #@native[prop_name];
13
- }
9
+ if (typeof #@native[prop_name] === 'undefined') { return #{nil}; }
10
+ return #@native[prop_name];
14
11
  }
15
12
  end
16
13
 
@@ -7,11 +7,8 @@ module React
7
7
 
8
8
  def method_missing(prop, *args, &block)
9
9
  %x{
10
- if (typeof #@native[prop] === 'undefined') {
11
- return #{nil};
12
- } else {
13
- return #@native[prop];
14
- }
10
+ if (typeof #@native[prop] === 'undefined') { return #{nil}; }
11
+ return #@native[prop];
15
12
  }
16
13
  end
17
14
 
data/lib/react/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.8.2'
2
+ VERSION = '16.8.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.8.2
4
+ version: 16.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann