isomorfeus-preact 10.6.55 → 10.6.56

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: 24e36cc4a4f88aae6af0204b00a679c9aaf8a545e9c61bc62a1b2454846cbfab
4
- data.tar.gz: cee4d9e10517e8085ae10ae366f4d8ad8731f7e0e6b104897212563aef523a4e
3
+ metadata.gz: b1c2fb916224b97957f33bf1aa165deb9ea0a93ec5b86d7f7bf180463d9a9f28
4
+ data.tar.gz: f671cf14a06f9c0a33d43a57b3af4a361c414862e88d050b0d5a289489cbb48b
5
5
  SHA512:
6
- metadata.gz: 5c66762e3598fa332730f28a7c79bb90c3834e475bb4d82ccdc94fb121f0bcac2ab0f80f6555081ca801c92512b12399f1ad43d61c4fb9f36ac58bd518df5b6d
7
- data.tar.gz: fcab5d3afe8f4b287ccce9d6e4307adcd4a0a74a88fcd7278bf23d9e90549490abca37dc40633839a11e7ba2e816dc77ef98c47229f0d6db764e6bc2da0d2f22
6
+ metadata.gz: 9880247b4c0081e7ba9fd24ee7b8f2159e336b2547aae3358bb4613b6e8e01e52bb4a25958573d04eff0e6fcbfc1a7ef1a1d4dd56c2e768c041eea54bc4d8158
7
+ data.tar.gz: 1853e6575b0c5d14e3a9b38f258c7a9c6710c72ffea62313b80c00adc146cbd7101c7070ce5f58b2df73b6e86a1e75ebc95a74bd49c3b11bdf0bc81be10c0f27
@@ -9,6 +9,6 @@ module LucidApp::Mixin
9
9
  base.include(::LucidComponent::Api)
10
10
  base.include(::LucidApp::Api)
11
11
  base.include(::LucidComponent::Initializer)
12
- base.include(::LucidI18n::Mixin) if `("lucid_i18n/mixin" in Opal.modules)`
12
+ base.include(::LucidI18n::Mixin) if `(Opal.modules.hasOwnProperty("lucid_i18n/mixin"))`
13
13
  end
14
14
  end
@@ -8,6 +8,6 @@ module LucidComponent::Mixin
8
8
  base.include(::Preact::Component::Callbacks)
9
9
  base.include(::LucidComponent::Api)
10
10
  base.include(::LucidComponent::Initializer)
11
- base.include(::LucidI18n::Mixin) if `("lucid_i18n/mixin" in Opal.modules)`
11
+ base.include(::LucidI18n::Mixin) if `(Opal.modules.hasOwnProperty("lucid_i18n/mixin"))`
12
12
  end
13
13
  end
@@ -5,6 +5,6 @@ module LucidFunc::Mixin
5
5
  base.extend(::LucidFunc::NativeComponentConstructor)
6
6
  base.include(::Preact::Elements)
7
7
  base.include(::LucidComponent::Api)
8
- base.include(::LucidI18n::Mixin) if `("lucid_i18n/mixin" in Opal.modules)`
8
+ base.include(::LucidI18n::Mixin) if `(Opal.modules.hasOwnProperty("lucid_i18n/mixin"))`
9
9
  end
10
10
  end
@@ -1,4 +1,12 @@
1
1
  module Preact::FunctionComponent::Api
2
+ def self.included(base)
3
+ base.instance_exec do
4
+ def to_js
5
+ self.JS[:preact_component]
6
+ end
7
+ end
8
+ end
9
+
2
10
  def props
3
11
  @native_props
4
12
  end
@@ -49,6 +49,10 @@ module Preact::Component::Api
49
49
  def should_component_update?(&block)
50
50
  `base.should_component_update_block = block`
51
51
  end
52
+
53
+ def to_js
54
+ self.JS[:preact_component]
55
+ end
52
56
  end
53
57
  end
54
58
 
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.55'
2
+ VERSION = '10.6.56'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.55
4
+ version: 10.6.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann