isomorfeus-preact 10.6.14 → 10.6.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isomorfeus-preact.rb +4 -4
  3. data/lib/isomorfeus_preact/lucid_component/api.rb +1 -1
  4. data/lib/isomorfeus_preact/lucid_component/initializer.rb +2 -4
  5. data/lib/isomorfeus_preact/lucid_func/initializer.rb +1 -1
  6. data/lib/isomorfeus_preact/preact/function_component/initializer.rb +1 -1
  7. data/lib/preact/component/api.rb +2 -2
  8. data/lib/preact/component/callbacks.rb +6 -6
  9. data/lib/preact/component/initializer.rb +2 -2
  10. data/lib/preact/component/native_component_constructor.rb +1 -1
  11. data/lib/preact/component/resolution.rb +2 -2
  12. data/lib/preact/params.rb +16 -0
  13. data/lib/preact/props.rb +69 -0
  14. data/lib/preact/state.rb +87 -0
  15. data/lib/preact/version.rb +1 -1
  16. data/lib/preact.rb +4 -2
  17. data/node_modules/.package-lock.json +3 -3
  18. data/node_modules/preact/LICENSE +21 -21
  19. data/node_modules/preact/README.md +187 -187
  20. data/node_modules/preact/compat/dist/compat.js +1 -1
  21. data/node_modules/preact/compat/dist/compat.js.map +1 -1
  22. data/node_modules/preact/compat/dist/compat.mjs +1 -1
  23. data/node_modules/preact/compat/dist/compat.module.js +1 -1
  24. data/node_modules/preact/compat/dist/compat.module.js.map +1 -1
  25. data/node_modules/preact/compat/dist/compat.umd.js +1 -1
  26. data/node_modules/preact/compat/dist/compat.umd.js.map +1 -1
  27. data/node_modules/preact/compat/jsx-dev-runtime.js +1 -1
  28. data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -1
  29. data/node_modules/preact/compat/jsx-runtime.js +1 -1
  30. data/node_modules/preact/compat/jsx-runtime.mjs +1 -1
  31. data/node_modules/preact/compat/package.json +19 -19
  32. data/node_modules/preact/compat/scheduler.js +15 -15
  33. data/node_modules/preact/compat/scheduler.mjs +23 -23
  34. data/node_modules/preact/compat/server.js +15 -15
  35. data/node_modules/preact/compat/server.mjs +4 -4
  36. data/node_modules/preact/compat/src/Children.js +21 -21
  37. data/node_modules/preact/compat/src/PureComponent.js +15 -15
  38. data/node_modules/preact/compat/src/forwardRef.js +51 -51
  39. data/node_modules/preact/compat/src/index.d.ts +141 -141
  40. data/node_modules/preact/compat/src/index.js +187 -187
  41. data/node_modules/preact/compat/src/internal.d.ts +47 -47
  42. data/node_modules/preact/compat/src/memo.js +34 -34
  43. data/node_modules/preact/compat/src/portals.js +80 -80
  44. data/node_modules/preact/compat/src/render.js +229 -230
  45. data/node_modules/preact/compat/src/suspense-list.d.ts +14 -14
  46. data/node_modules/preact/compat/src/suspense-list.js +126 -126
  47. data/node_modules/preact/compat/src/suspense.d.ts +15 -15
  48. data/node_modules/preact/compat/src/suspense.js +270 -270
  49. data/node_modules/preact/compat/src/util.js +28 -28
  50. data/node_modules/preact/compat/test-utils.js +1 -1
  51. data/node_modules/preact/debug/dist/debug.js.map +1 -1
  52. data/node_modules/preact/debug/dist/debug.module.js.map +1 -1
  53. data/node_modules/preact/debug/dist/debug.umd.js.map +1 -1
  54. data/node_modules/preact/debug/package.json +18 -18
  55. data/node_modules/preact/debug/src/check-props.js +54 -54
  56. data/node_modules/preact/debug/src/component-stack.js +146 -146
  57. data/node_modules/preact/debug/src/constants.js +3 -3
  58. data/node_modules/preact/debug/src/debug.js +442 -442
  59. data/node_modules/preact/debug/src/index.js +6 -6
  60. data/node_modules/preact/debug/src/internal.d.ts +82 -82
  61. data/node_modules/preact/debug/src/util.js +11 -11
  62. data/node_modules/preact/devtools/dist/devtools.js +1 -1
  63. data/node_modules/preact/devtools/dist/devtools.js.map +1 -1
  64. data/node_modules/preact/devtools/dist/devtools.mjs +1 -1
  65. data/node_modules/preact/devtools/dist/devtools.module.js +1 -1
  66. data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -1
  67. data/node_modules/preact/devtools/dist/devtools.umd.js +1 -1
  68. data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -1
  69. data/node_modules/preact/devtools/package.json +16 -16
  70. data/node_modules/preact/devtools/src/devtools.js +10 -10
  71. data/node_modules/preact/devtools/src/index.d.ts +8 -8
  72. data/node_modules/preact/devtools/src/index.js +15 -15
  73. data/node_modules/preact/dist/preact.js.map +1 -1
  74. data/node_modules/preact/dist/preact.min.js.map +1 -1
  75. data/node_modules/preact/dist/preact.module.js.map +1 -1
  76. data/node_modules/preact/dist/preact.umd.js.map +1 -1
  77. data/node_modules/preact/hooks/dist/hooks.js +1 -1
  78. data/node_modules/preact/hooks/dist/hooks.js.map +1 -1
  79. data/node_modules/preact/hooks/dist/hooks.mjs +1 -1
  80. data/node_modules/preact/hooks/dist/hooks.module.js +1 -1
  81. data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -1
  82. data/node_modules/preact/hooks/dist/hooks.umd.js +1 -1
  83. data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -1
  84. data/node_modules/preact/hooks/package.json +26 -26
  85. data/node_modules/preact/hooks/src/index.d.ts +139 -139
  86. data/node_modules/preact/hooks/src/index.js +386 -388
  87. data/node_modules/preact/hooks/src/internal.d.ts +75 -75
  88. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -1
  89. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -1
  90. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -1
  91. data/node_modules/preact/jsx-runtime/package.json +19 -19
  92. data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -50
  93. data/node_modules/preact/jsx-runtime/src/index.js +77 -77
  94. data/node_modules/preact/package.json +291 -287
  95. data/node_modules/preact/src/cjs.js +3 -3
  96. data/node_modules/preact/src/clone-element.js +34 -34
  97. data/node_modules/preact/src/component.js +225 -225
  98. data/node_modules/preact/src/constants.js +3 -3
  99. data/node_modules/preact/src/create-context.js +68 -68
  100. data/node_modules/preact/src/create-element.js +98 -98
  101. data/node_modules/preact/src/diff/catch-error.js +38 -38
  102. data/node_modules/preact/src/diff/children.js +335 -335
  103. data/node_modules/preact/src/diff/index.js +516 -516
  104. data/node_modules/preact/src/diff/props.js +158 -158
  105. data/node_modules/preact/src/index.d.ts +310 -310
  106. data/node_modules/preact/src/index.js +13 -13
  107. data/node_modules/preact/src/internal.d.ts +146 -146
  108. data/node_modules/preact/src/jsx.d.ts +1005 -1005
  109. data/node_modules/preact/src/options.js +16 -16
  110. data/node_modules/preact/src/render.js +75 -75
  111. data/node_modules/preact/src/util.js +27 -27
  112. data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -1
  113. data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -1
  114. data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -1
  115. data/node_modules/preact/test-utils/package.json +19 -19
  116. data/node_modules/preact/test-utils/src/index.d.ts +3 -3
  117. data/node_modules/preact/test-utils/src/index.js +117 -117
  118. data/package.json +1 -1
  119. metadata +7 -7
  120. data/lib/preact/component/params.rb +0 -18
  121. data/lib/preact/component/props.rb +0 -55
  122. data/lib/preact/component/state.rb +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25eae0583892bc94bcca4e8c5e04e33b04aea5060f7044cbd131ffe55885a0d2
4
- data.tar.gz: c88f7168bbec59caa8a8e94db31d6b5ed6232e46978cfef00c81193e9dca3dfe
3
+ metadata.gz: 2ea65d13596d480bc9236508994f2fe5e8faed1d74cab03acd6f2c3b272c4446
4
+ data.tar.gz: 961c5f11b767f30b4db8a7124c2029f0aa748404c175dc8466b67f38ef58292a
5
5
  SHA512:
6
- metadata.gz: 1508a858e842bfeb7790a67405e276e2af5a593bf89a5d0017e6fbfaacbabb72d19416375ad615b52a8d63ea6e73b4f0a73d336ea4f6fdb9cb84afa1e3d3575f
7
- data.tar.gz: 814950a053e13eaf4925f429685279cd6057f8a3963eee727067e698a5ab52c08866aada13b092d061630cbffe72e150d3db3e8293750fe06d781a33ce3cd696
6
+ metadata.gz: 57baa3fcf48a20fa0693942f0ffd84794b2ae3409a27e8cf925d3f67c27d03dc2ecdd8a5517bdd392cb06f04212892dd1d5d64177e85ddb59dc2e393bf3991be
7
+ data.tar.gz: 808e9777924661bef69c400af5ab5c04d02f76df9ae644344a474df2e8d14f63e6fcf2754af9cfd1cefab590cfcfedc0c7d18109ca1022341a8358f8f9d829ed
@@ -21,7 +21,7 @@ if RUBY_ENGINE == 'opal'
21
21
 
22
22
  # nanocss
23
23
  require 'nano_css'
24
-
24
+
25
25
  # preact
26
26
  require 'preact/version'
27
27
  require 'preact'
@@ -31,7 +31,8 @@ if RUBY_ENGINE == 'opal'
31
31
  require 'isomorfeus/props/validate_hash_proxy'
32
32
  require 'isomorfeus/props/validator'
33
33
  require 'lucid_prop_declaration/mixin'
34
- require 'preact/component/props'
34
+ require 'preact/params'
35
+ require 'preact/props'
35
36
 
36
37
  # HTML Elements and Fragment support
37
38
  require 'preact/component/elements'
@@ -45,8 +46,7 @@ if RUBY_ENGINE == 'opal'
45
46
  require 'preact/component/callbacks'
46
47
  require 'preact/component/initializer'
47
48
  require 'preact/component/native_component_constructor'
48
- require 'preact/component/state'
49
- require 'preact/component/params'
49
+ require 'preact/state'
50
50
  require 'preact/component/resolution'
51
51
  require 'preact/component/mixin'
52
52
  require 'preact/component/base'
@@ -2,7 +2,7 @@ module LucidComponent
2
2
  module Api
3
3
  def self.included(base)
4
4
  base.instance_exec do
5
- # store
5
+ # stores
6
6
  attr_accessor :app_store
7
7
  attr_accessor :class_store
8
8
  attr_accessor :store
@@ -4,11 +4,9 @@ module LucidComponent
4
4
  @native = native_component
5
5
  @app_store = LucidComponent::AppStoreProxy.new(self)
6
6
  @class_store = LucidComponent::ClassStoreProxy.new(self.class.to_s, self, @native)
7
- # @iso_store = Isomorfeus::IsomorphicStoreProxy.new(self)
8
- # @local_store = Isomorfeus::LocalStoreProxy.new(self)
9
7
  @store = LucidComponent::InstanceStoreProxy.new(self)
10
- @props = `Opal.Preact.Component.Props.$new(#@native)`
11
- @state = `Opal.Preact.Component.State.$new(#@native)`
8
+ @props = `Opal.Preact.Props.$new(#@native)`
9
+ @state = `Opal.Preact.State.$new(#@native)`
12
10
  end
13
11
  end
14
12
  end
@@ -2,7 +2,7 @@ module LucidFunc
2
2
  module Initializer
3
3
  def initialize
4
4
  self.JS[:native_props] = `{ props: null }`
5
- @native_props = `Opal.Preact.Component.Props.$new(#{self})`
5
+ @native_props = `Opal.Preact.Props.$new(#{self})`
6
6
  @app_store = LucidComponent::AppStoreProxy.new(self)
7
7
  @class_store = LucidComponent::ClassStoreProxy.new(self.class.to_s, self, self)
8
8
  @store = LucidComponent::InstanceStoreProxy.new(self)
@@ -3,7 +3,7 @@ module Preact
3
3
  module Initializer
4
4
  def initialize
5
5
  self.JS[:native_props] = `{ props: null }`
6
- @native_props = ::Preact::Component::Props.new(self)
6
+ @native_props = `Opal.Preact.Props.$new(self)`
7
7
  end
8
8
  end
9
9
  end
@@ -41,7 +41,7 @@ module Preact
41
41
  if (callback) { callback.call(); }
42
42
  }
43
43
  }
44
- @default_state = Preact::Component::State.new(`native_state`)
44
+ @default_state = `Opal.Preact.State.$new(native_state)`
45
45
  end
46
46
 
47
47
  def render(&block)
@@ -113,7 +113,7 @@ module Preact
113
113
 
114
114
  def ruby_ref(name)
115
115
  return `#@native[name]` if `(typeof #@native[name] === 'function')`
116
- Preact::Ref::new(`#@native[name]`)
116
+ `Opal.Preact.Ref.$new(#@native[name])`
117
117
  end
118
118
 
119
119
  def set_state(updater, &callback)
@@ -41,8 +41,8 @@ module Preact
41
41
  %x{
42
42
  var fun = function(prev_props, prev_state, snapshot) {
43
43
  Opal.Preact.active_redux_components.push(this);
44
- #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Component.Props.$new({props: prev_props})`,
45
- `Opal.Preact.Component.State.$new({state: prev_state})`,
44
+ #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Props.$new({props: prev_props})`,
45
+ `Opal.Preact.State.$new({state: prev_state})`,
46
46
  `snapshot`, &block)};
47
47
  Opal.Preact.active_redux_components.pop();
48
48
  }
@@ -69,8 +69,8 @@ module Preact
69
69
  %x{
70
70
  var fun = function(props, state) {
71
71
  Opal.Preact.active_redux_components.push(this);
72
- var result = #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Component.Props.$new({props: props})`,
73
- `Opal.Preact.Component.State.$new({state: state})`, &block)};
72
+ var result = #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Props.$new({props: props})`,
73
+ `Opal.Preact.State.$new({state: state})`, &block)};
74
74
  Opal.Preact.active_redux_components.pop();
75
75
  if (typeof result.$to_n === 'function') { result = result.$to_n() }
76
76
  if (result === Opal.nil) { return null; }
@@ -85,8 +85,8 @@ module Preact
85
85
  %x{
86
86
  var fun = function(prev_props, prev_state) {
87
87
  Opal.Preact.active_redux_components.push(this);
88
- var result = #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Component.Props.$new({props: prev_props})`,
89
- `Opal.Preact.Component.State.$new({state: prev_state})`, &block)};
88
+ var result = #{`this.__ruby_instance`.instance_exec(`Opal.Preact.Props.$new({props: prev_props})`,
89
+ `Opal.Preact.State.$new({state: prev_state})`, &block)};
90
90
  Opal.Preact.active_redux_components.pop();
91
91
  if (result === Opal.nil) { return null; }
92
92
  return result;
@@ -3,8 +3,8 @@ module Preact
3
3
  module Initializer
4
4
  def initialize(native_component)
5
5
  @native = native_component
6
- @props = `Opal.Preact.Component.Props.$new(#@native)`
7
- @state = `Opal.Preact.Component.State.$new(#@native)`
6
+ @props = `Opal.Preact.Props.$new(#@native)`
7
+ @state = `Opal.Preact.State.$new(#@native)`
8
8
  end
9
9
  end
10
10
  end
@@ -46,7 +46,7 @@ module Preact
46
46
  }
47
47
  shouldComponentUpdate(next_props, next_state) {
48
48
  if (base.should_component_update_block) {
49
- return #{!!`this.__ruby_instance`.instance_exec(Preact::Component::Props.new(`{props: next_props}`), Preact::Component::State.new(`{state: next_state }`), &`base.should_component_update_block`)};
49
+ return #{!!`this.__ruby_instance`.instance_exec(`Opal.Preact.Props.$new({props: next_props})`, `Opal.Preact.State.$new({state: next_state })`, &`base.should_component_update_block`)};
50
50
  }
51
51
  if (!Opal.Preact.props_are_equal(this.props, next_props)) { return true; }
52
52
  if (Opal.Preact.state_is_not_equal(this.state, next_state)) { return true; }
@@ -10,9 +10,9 @@ module Preact
10
10
  def const_missing(const_name)
11
11
  %x{
12
12
  if (typeof Opal.global[const_name] !== "undefined" && (const_name[0] === const_name[0].toUpperCase())) {
13
- var new_const = #{Preact::NativeConstantWrapper.new(`Opal.global[const_name]`, const_name)};
13
+ var new_const = Opal.Preact.NativeConstantWrapper.$new(Opal.global[const_name], const_name);
14
14
  new_const.preact_component = Opal.global[const_name];
15
- #{Object.const_set(const_name, `new_const`)};
15
+ Opal.Object.$const_set(const_name, new_const);
16
16
  return new_const;
17
17
  } else {
18
18
  return #{_preact_component_class_resolution_original_const_missing(const_name)};
@@ -0,0 +1,16 @@
1
+ module Preact
2
+ class Params
3
+ include Native::Wrapper
4
+
5
+ def method_missing(prop, *args, &block)
6
+ %x{
7
+ const p = #@native;
8
+ if (typeof p[prop] === 'undefined') {
9
+ prop = Opal.Preact.lower_camelize(prop);
10
+ if (typeof p[prop] === 'undefined') { return nil; }
11
+ }
12
+ return p[prop];
13
+ }
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,69 @@
1
+ module Preact
2
+ class Props
3
+ def initialize(native)
4
+ @native = native
5
+ end
6
+
7
+ def ==(other_props)
8
+ %x{
9
+ if (Opal.Preact.props_are_equal(#@native.props, #{other_props.to_n})) { return true; }
10
+ return false;
11
+ }
12
+ end
13
+
14
+ def [](prop)
15
+ %x{
16
+ const p = #@native.props;
17
+ if (typeof p[prop] === 'undefined') {
18
+ prop = Opal.Preact.lower_camelize(prop);
19
+ if (typeof p[prop] === 'undefined') { return nil; }
20
+ }
21
+ return p[prop];
22
+ }
23
+ end
24
+
25
+ def key?(k)
26
+ %x{
27
+ if (typeof #@native.props[k] !== 'undefined') { return true; }
28
+ return false;
29
+ }
30
+ end
31
+
32
+ def method_missing(prop, *args, &block)
33
+ %x{
34
+ const p = #@native.props;
35
+ if (typeof p[prop] === 'undefined') {
36
+ prop = Opal.Preact.lower_camelize(prop);
37
+ if (typeof p[prop] === 'undefined') { return nil; }
38
+ }
39
+ return p[prop];
40
+ }
41
+ end
42
+
43
+ def theme
44
+ `#@native.props.iso_theme`
45
+ end
46
+
47
+ def params
48
+ return @params if @params
49
+ return nil if `typeof #@native.props.params === 'undefined'`
50
+ @params = `Opal.Preact.Params.$new(#@native.props.params)`
51
+ end
52
+
53
+ def to_h
54
+ `Opal.Hash.$new(#@native.props)`.transform_keys!(&:underscore)
55
+ end
56
+
57
+ def to_json
58
+ JSON.dump(to_transport)
59
+ end
60
+
61
+ def to_n
62
+ `#@native.props`
63
+ end
64
+
65
+ def to_transport
66
+ {}.merge(to_h)
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,87 @@
1
+ module Preact
2
+ class State
3
+ include ::Native::Wrapper
4
+
5
+ def initialize(native)
6
+ @native = native
7
+ end
8
+
9
+ def ==(other_state)
10
+ %x{
11
+ if (Opal.Preact.state_is_not_equal(#@native.state, #{other_state.to_raw_n})) { return false; }
12
+ return true;
13
+ }
14
+ end
15
+
16
+ def [](key)
17
+ %x{
18
+ if (typeof #@native.state[key] === 'undefined') { return nil; }
19
+ return #@native.state[key];
20
+ }
21
+ end
22
+
23
+ def []=(key)
24
+ new_state = `{}`
25
+ new_state.JS[(`key.endsWith('=')` ? key.chop : key)] = args[0]
26
+ @native.JS.setState(new_state, `null`)
27
+ end
28
+
29
+ def key?(k)
30
+ %x{
31
+ if (typeof #@native.state[k] !== 'undefined') { return true; }
32
+ return false;
33
+ }
34
+ end
35
+
36
+ def method_missing(key, *args, &block)
37
+ if `args.length > 0`
38
+ new_state = `{}`
39
+ new_state.JS[(`key.endsWith('=')` ? key.chop : key)] = args[0]
40
+ if block_given?
41
+ @native.JS.setState(new_state, `function() { block.$call(); }`)
42
+ else
43
+ @native.JS.setState(new_state, `null`)
44
+ end
45
+ else
46
+ %x{
47
+ if (typeof #@native.state[key] === 'undefined') { return nil; }
48
+ return #@native.state[key];
49
+ }
50
+ end
51
+ end
52
+
53
+ def set_state(updater, &block)
54
+ new_state = `{}`
55
+ updater.each do |key, value|
56
+ new_state.JS[key] = value
57
+ end
58
+ if block_given?
59
+ @native.JS.setState(new_state, `function() { block.$call(); }`)
60
+ else
61
+ @native.JS.setState(new_state, `null`)
62
+ end
63
+ end
64
+
65
+ def size
66
+ `Object.keys(#@native.state).length`;
67
+ end
68
+
69
+ def to_n
70
+ %x{
71
+ var new_native = {};
72
+ for (var key in #@native.state) {
73
+ if (typeof #@native.state[key].$to_n !== "undefined") {
74
+ new_native[key] = #@native.state[key].$to_n();
75
+ } else {
76
+ new_native[key] = #@native.state[key];
77
+ }
78
+ }
79
+ return new_native;
80
+ }
81
+ end
82
+
83
+ def to_raw_n
84
+ `#@native.state`
85
+ end
86
+ end
87
+ end
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.14'
2
+ VERSION = '10.6.18'
3
3
  end
data/lib/preact.rb CHANGED
@@ -169,6 +169,8 @@ module Preact
169
169
  else { component_name = active_component.$to_s(); }
170
170
  #{Isomorfeus.raise_error(message: "Is #{`value`} a valid method of #{`component_name`}? If so then please use: #{`key`}: method_ref(:#{`value`}) within component: #{`component_name`}")}
171
171
  }
172
+ } else if (type === "object" && value === nil) {
173
+ result[self.lower_camelize(key)] = null;
172
174
  } else {
173
175
  let active_component = self.active_component();
174
176
  let component_name;
@@ -256,14 +258,14 @@ module Preact
256
258
  `Opal.global.Preact.toChildArray(children)`
257
259
  end
258
260
 
259
- def self.clone_element(ruby_preact_element, props = nil, children = nil, &block)
261
+ def self.clone_element(native_preact_element, props = nil, children = nil, &block)
260
262
  block_result = `null`
261
263
  if block_given?
262
264
  block_result = block.call
263
265
  block_result = `null` unless block_result
264
266
  end
265
267
  native_props = props ? `Opal.Preact.to_native_preact_props(props)` : `null`
266
- `Opal.global.Preact.cloneElement(ruby_preact_element.$to_n(), native_props, block_result)`
268
+ `Opal.global.Preact.cloneElement(native_preact_element, native_props, block_result)`
267
269
  end
268
270
 
269
271
  def self.create_context(const_name, default_value)
@@ -4,9 +4,9 @@
4
4
  "requires": true,
5
5
  "packages": {
6
6
  "node_modules/preact": {
7
- "version": "10.6.4",
8
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.6.4.tgz",
9
- "integrity": "sha512-WyosM7pxGcndU8hY0OQlLd54tOU+qmG45QXj2dAYrL11HoyU/EzOSTlpJsirbBr1QW7lICxSsVJJmcmUglovHQ==",
7
+ "version": "10.6.5",
8
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.6.5.tgz",
9
+ "integrity": "sha512-i+LXM6JiVjQXSt2jG2vZZFapGpCuk1fl8o6ii3G84MA3xgj686FKjs4JFDkmUVhtxyq21+4ay74zqPykz9hU6w==",
10
10
  "funding": {
11
11
  "type": "opencollective",
12
12
  "url": "https://opencollective.com/preact"
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015-present Jason Miller
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present Jason Miller
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.