reactronic 0.24.273 → 0.24.274

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.
@@ -73,6 +73,7 @@ export type RxNodeDriver<E = unknown> = {
73
73
  mount(node: RxNode<E>): void;
74
74
  update(node: RxNode<E>): void | Promise<void>;
75
75
  child(ownerNode: RxNode<E>, childDriver: RxNodeDriver<any>, childDeclaration?: RxNodeDecl<any>, childPreset?: RxNodeDecl<any>): MergedItem<RxNode> | undefined;
76
+ getHost(node: RxNode<E>): RxNode<E>;
76
77
  };
77
78
  export type RxNodeContext<T extends Object = Object> = {
78
79
  value: T;
@@ -88,6 +89,7 @@ export declare abstract class BaseDriver<E = unknown> implements RxNodeDriver<E>
88
89
  mount(node: RxNode<E>): void;
89
90
  update(node: RxNode<E>): void | Promise<void>;
90
91
  child(ownerNode: RxNode<E>, childDriver: RxNodeDriver<any>, childDeclaration?: RxNodeDecl<any>, childPreset?: RxNodeDecl<any>): MergedItem<RxNode> | undefined;
92
+ getHost(node: RxNode<E>): RxNode<E>;
91
93
  }
92
94
  export declare class RxNodeVariable<T extends Object = Object> {
93
95
  readonly defaultValue: T | undefined;
@@ -166,6 +166,9 @@ export class BaseDriver {
166
166
  child(ownerNode, childDriver, childDeclaration, childPreset) {
167
167
  return undefined;
168
168
  }
169
+ getHost(node) {
170
+ return node;
171
+ }
169
172
  }
170
173
  export class RxNodeVariable {
171
174
  constructor(defaultValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.24.273",
3
+ "version": "0.24.274",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",