isomorfeus-preact 10.6.9 → 10.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser/event.rb +2 -0
- data/lib/isomorfeus/props/validate_hash_proxy.rb +1 -1
- data/lib/isomorfeus/props/validator.rb +6 -4
- data/lib/isomorfeus_preact/lucid_app/native_component_constructor.rb +1 -1
- data/lib/isomorfeus_preact/lucid_component/native_component_constructor.rb +1 -1
- data/lib/preact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55b2185c8d266cd270e8e00bae7896a1593ff3e4590a61280888f9c6d4149ff8
|
4
|
+
data.tar.gz: 86a7cb16f143d7152afcf3eb1317cb9f8fb7252f135e79d59297b8f1db496513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0e06043e4ea705e63437a88aaa85a873d8ba081decda2c2fd652cd3646c8ebff95ac790730521bbf5a547c1a8c4a7a4eb86a78fada0606d8282e8fa874aa6c7
|
7
|
+
data.tar.gz: a351dd0fed547e8a7f0927c08c535fed18bccdff2a76cb6350de231c2c47b04c7bc0f35125cd4fcbceae545cfa3409e2f17107e06d3f3001e7b981078eecd418
|
data/lib/browser/event.rb
CHANGED
@@ -14,6 +14,7 @@ module Browser
|
|
14
14
|
`#@native.preventDefault()`
|
15
15
|
self
|
16
16
|
end
|
17
|
+
alias_method :prevent_default, :prevent
|
17
18
|
|
18
19
|
# Prevent the runtime from bubbling this event up the hierarchy. This is
|
19
20
|
# typically used to keep an event local to the element on which it was
|
@@ -31,6 +32,7 @@ module Browser
|
|
31
32
|
def prevented?
|
32
33
|
`#@native.defaultPrevented`
|
33
34
|
end
|
35
|
+
alias_method :default_prevented?, :prevented?
|
34
36
|
|
35
37
|
# @return [Boolean] true if the Meta/Command/Windows key was pressed when
|
36
38
|
# this event fired, false otherwise
|
@@ -52,10 +52,12 @@ module Isomorfeus
|
|
52
52
|
|
53
53
|
def ensure!
|
54
54
|
if @o.key?(:ensure)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
proc_or_val = @o[:ensure]
|
56
|
+
if proc_or_val.class == Proc
|
57
|
+
@v = proc_or_val.call(@v)
|
58
|
+
else
|
59
|
+
@v = proc_or_val
|
60
|
+
end
|
59
61
|
true
|
60
62
|
else
|
61
63
|
false
|
@@ -70,7 +70,7 @@ module LucidApp
|
|
70
70
|
return Opal.global.Preact.createElement(Opal.global.LucidApplicationContext.Provider, { value: { iso_store: this.state.isomorfeus_store_state, iso_theme: base.css_theme }}, children);
|
71
71
|
}
|
72
72
|
data_access() {
|
73
|
-
this.state.isomorfeus_store_state;
|
73
|
+
return this.state.isomorfeus_store_state;
|
74
74
|
}
|
75
75
|
listener() {
|
76
76
|
let next_state = Opal.Isomorfeus.store.native.getState();
|
@@ -64,7 +64,7 @@ module LucidComponent
|
|
64
64
|
return (result.length === 1) ? result[0] : result;
|
65
65
|
}
|
66
66
|
data_access() {
|
67
|
-
this.
|
67
|
+
return this.props.iso_store;
|
68
68
|
}
|
69
69
|
shouldComponentUpdate(next_props, next_state) {
|
70
70
|
if (!Opal.Preact.props_are_equal(this.props, next_props)) { return true; }
|
data/lib/preact/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-preact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.6.
|
4
|
+
version: 10.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|