isomorfeus-preact 10.6.10 → 10.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/browser/event.rb +2 -0
- data/lib/isomorfeus/preact_view_helper.rb +3 -2
- data/lib/isomorfeus/props/validate_hash_proxy.rb +1 -1
- data/lib/isomorfeus/props/validator.rb +6 -4
- data/lib/isomorfeus_preact/lucid_component/native_component_constructor.rb +1 -1
- data/lib/preact/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25eae0583892bc94bcca4e8c5e04e33b04aea5060f7044cbd131ffe55885a0d2
|
4
|
+
data.tar.gz: c88f7168bbec59caa8a8e94db31d6b5ed6232e46978cfef00c81193e9dca3dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1508a858e842bfeb7790a67405e276e2af5a593bf89a5d0017e6fbfaacbabb72d19416375ad615b52a8d63ea6e73b4f0a73d336ea4f6fdb9cb84afa1e3d3575f
|
7
|
+
data.tar.gz: 814950a053e13eaf4925f429685279cd6057f8a3963eee727067e698a5ab52c08866aada13b092d061630cbffe72e150d3db3e8293750fe06d781a33ce3cd696
|
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
|
@@ -68,7 +68,7 @@ module Isomorfeus
|
|
68
68
|
let exception;
|
69
69
|
if (typeof global.Opal.Isomorfeus.Transport !== 'undefined' && api_ws_path !== '') {
|
70
70
|
global.Opal.Isomorfeus.TopLevel["$transport_ws_url="]("#{transport_ws_url}");
|
71
|
-
global.Opal.send(global.Opal.Isomorfeus.Transport.$promise_connect(), 'then', [], ($$1 = function(){
|
71
|
+
global.Opal.send(global.Opal.Isomorfeus.Transport.$promise_connect(global.IsomorfeusSessionId), 'then', [], ($$1 = function(){
|
72
72
|
try {
|
73
73
|
global.Opal.Isomorfeus.TopLevel.$render_component_to_string('#{component_name}', #{Oj.dump(props, mode: :strict)});
|
74
74
|
global.FirstPassFinished = 'transport';
|
@@ -77,7 +77,8 @@ module Isomorfeus
|
|
77
77
|
global.FirstPassFinished = 'transport';
|
78
78
|
}
|
79
79
|
}, $$1.$$s = this, $$1.$$arity = 0, $$1))
|
80
|
-
|
80
|
+
return false;
|
81
|
+
} else { global.FirstPassFinished = true; return true; };
|
81
82
|
JAVASCRIPT
|
82
83
|
# execute first render pass
|
83
84
|
begin
|
@@ -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
|
@@ -64,7 +64,7 @@ module LucidComponent
|
|
64
64
|
return (result.length === 1) ? result[0] : result;
|
65
65
|
}
|
66
66
|
data_access() {
|
67
|
-
return 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.14
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.14.
|
89
|
+
version: 0.14.6
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.14.
|
96
|
+
version: 0.14.6
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: isomorfeus-redux
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.6.
|
173
|
+
version: 0.6.4
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.6.
|
180
|
+
version: 0.6.4
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rake
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|