isomorfeus-preact 10.6.6 → 10.6.7
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/README.md +19 -19
- data/lib/preact/version.rb +1 -1
- data/lib/preact.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 678bb5948b2fb7b0174bf957048f66f7c16662841e9fa51b0d69e90f8c6425b4
|
|
4
|
+
data.tar.gz: 7b68f3dfd52944f74dd8f2d2e19f5fad77743d0db6f142ad433ab3f050777876
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b8060b615a763e967125dc5b90b9659ebcda3d84858b3d51c2c3e233c0fd2eb2490260a766169b6ec1b38bb4e889609410f4a7cae6011fbf0813064e7e502b2
|
|
7
|
+
data.tar.gz: 8700117f152176dda74bdb970d84ca946baafd53d68b3c4d2f7610e30f06aa32196754e5de0624da4f08be03415053e156421f033f6ffd6142ca957f03b1884b
|
data/README.md
CHANGED
|
@@ -22,36 +22,36 @@ apply, but in the Ruby way, see:
|
|
|
22
22
|
- [https://preactjs.com/guide/v10/getting-started](https://preactjs.com/guide/v10/getting-started)
|
|
23
23
|
|
|
24
24
|
Component Types:
|
|
25
|
-
- [Class Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
26
|
-
- [Function and Memo Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
27
|
-
- [Lucid App, Lucid Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
28
|
-
- [Lucid Func (for use with Hooks)](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
29
|
-
- [Preact Javascript Components and Preact Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
25
|
+
- [Class Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/class_component.md)
|
|
26
|
+
- [Function and Memo Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/function_component.md)
|
|
27
|
+
- [Lucid App, Lucid Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lucid_component.md)
|
|
28
|
+
- [Lucid Func (for use with Hooks)](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lucid_func_component.md)
|
|
29
|
+
- [Preact Javascript Components and Preact Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/javascript_component.md)
|
|
30
30
|
|
|
31
31
|
Which component to use?
|
|
32
32
|
- Usually LucidApp and LucidComponent.
|
|
33
33
|
|
|
34
34
|
Specific to Class, Lucid and LucidMaterial Components:
|
|
35
|
-
- [Events](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
36
|
-
- [Lifecycle Callbacks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
37
|
-
- [Props](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
38
|
-
- [State](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
35
|
+
- [Events](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/events.md)
|
|
36
|
+
- [Lifecycle Callbacks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lifecycle_callbacks.md)
|
|
37
|
+
- [Props](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/props.md)
|
|
38
|
+
- [State](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/state.md)
|
|
39
39
|
|
|
40
40
|
For all Components:
|
|
41
|
-
- [Accessibility](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
42
|
-
- [Render Blocks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
43
|
-
- [Rendering HTML or SVG Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
41
|
+
- [Accessibility](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/accessibility.md)
|
|
42
|
+
- [Render Blocks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/render_blocks.md)
|
|
43
|
+
- [Rendering HTML or SVG Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/rendering_elements.md)
|
|
44
44
|
|
|
45
45
|
Special Preact Features:
|
|
46
|
-
- [Context](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
47
|
-
- [Fragments](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
48
|
-
- [Refs](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
46
|
+
- [Context](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/context.md)
|
|
47
|
+
- [Fragments](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/fragments.md)
|
|
48
|
+
- [Refs](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/refs.md)
|
|
49
49
|
|
|
50
50
|
Other Features:
|
|
51
|
-
- [Hot Module Reloading](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
52
|
-
- [Server Side Rendering](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
53
|
-
- [Using Wouter as Router](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
54
|
-
- [Isomorfeus Helpers](https://github.com/isomorfeus/isomorfeus-preact/blob/master/
|
|
51
|
+
- [Hot Module Reloading](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/hot_module_reloading.md)
|
|
52
|
+
- [Server Side Rendering](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/server_side_rendering.md)
|
|
53
|
+
- [Using Wouter as Router](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/wouter.md)
|
|
54
|
+
- [Isomorfeus Helpers](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/isomorfeus_helpers.md)
|
|
55
55
|
|
|
56
56
|
### Development Tools
|
|
57
57
|
The Preact Devtools allow for analyzing, debugging and profiling components. A very helpful toolset and working very nice with isomorfeus-preact:
|
data/lib/preact/version.rb
CHANGED
data/lib/preact.rb
CHANGED
|
@@ -63,7 +63,7 @@ module Preact
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
self.native_to_ruby_event = function(event) {
|
|
66
|
-
if (
|
|
66
|
+
if ('target' in event) { return #{::Browser::Event.new(`event`)}; }
|
|
67
67
|
else if (Array.isArray(event)) { return event; }
|
|
68
68
|
else { return Opal.Hash.$new(event); }
|
|
69
69
|
};
|
|
@@ -219,7 +219,7 @@ module Preact
|
|
|
219
219
|
if (component.__c) { self.deep_force_update(component.__c); }
|
|
220
220
|
else if (component.base) { self.update_components_from_dom(component.base); }
|
|
221
221
|
};
|
|
222
|
-
|
|
222
|
+
|
|
223
223
|
self.update_components_from_dom = function(node, fn) {
|
|
224
224
|
let children = node.childNodes;
|
|
225
225
|
for (let i=children && children.length; i--;) {
|
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.7
|
|
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-18 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.5
|
|
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.5
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: isomorfeus-redux
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|