@viewfly/core 0.0.26 → 0.0.27
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.
- package/bundles/foundation/_utils.d.ts +4 -1
- package/bundles/foundation/jsx-element.d.ts +1 -0
- package/bundles/foundation/renderer.d.ts +2 -34
- package/bundles/foundation/root.component.d.ts +1 -1
- package/bundles/index.esm.js +537 -607
- package/bundles/index.js +538 -609
- package/bundles/public-api.d.ts +0 -1
- package/bundles/viewfly.d.ts +11 -25
- package/package.json +2 -5
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from './component';
|
|
2
|
+
import { JSXElement, JSXText, Props } from './jsx-element';
|
|
3
|
+
import { JSXInternal } from './types';
|
|
4
|
+
import { NativeNode } from './injection-tokens';
|
|
2
5
|
export interface ListenDelegate {
|
|
3
6
|
delegate: () => any;
|
|
4
7
|
listenFn: ((...args: any[]) => any) | void;
|
|
@@ -25,6 +25,7 @@ export declare class JSXElement implements JSXTypeof {
|
|
|
25
25
|
type: string;
|
|
26
26
|
props: Props;
|
|
27
27
|
key?: Key | undefined;
|
|
28
|
+
static create(name: string, props: Props, key?: Key): JSXElement;
|
|
28
29
|
$$typeOf: string;
|
|
29
30
|
on?: Record<string, ListenDelegate>;
|
|
30
31
|
constructor(type: string, props: Props, key?: Key | undefined);
|
|
@@ -1,35 +1,3 @@
|
|
|
1
1
|
import { NativeNode, NativeRenderer } from './injection-tokens';
|
|
2
|
-
import {
|
|
3
|
-
export declare
|
|
4
|
-
abstract component: RootComponent;
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class HostRef {
|
|
7
|
-
abstract host: NativeNode;
|
|
8
|
-
}
|
|
9
|
-
export declare class Renderer {
|
|
10
|
-
private nativeRenderer;
|
|
11
|
-
private rootComponentRef;
|
|
12
|
-
private hostRef;
|
|
13
|
-
private isInit;
|
|
14
|
-
constructor(nativeRenderer: NativeRenderer, rootComponentRef: RootComponentRef, hostRef: HostRef);
|
|
15
|
-
render(): void;
|
|
16
|
-
private updateView;
|
|
17
|
-
private applyChanges;
|
|
18
|
-
private diff;
|
|
19
|
-
private reuseComponentView;
|
|
20
|
-
private createChanges;
|
|
21
|
-
private cleanView;
|
|
22
|
-
private buildView;
|
|
23
|
-
private componentRender;
|
|
24
|
-
private createChainByComponentFactory;
|
|
25
|
-
private createChainByJSXElement;
|
|
26
|
-
private createChainByJSXText;
|
|
27
|
-
private createChainByChildren;
|
|
28
|
-
private linkTemplate;
|
|
29
|
-
private link;
|
|
30
|
-
private createElement;
|
|
31
|
-
private createTextNode;
|
|
32
|
-
private updateNativeNodeProperties;
|
|
33
|
-
private applyRefs;
|
|
34
|
-
private bindEvent;
|
|
35
|
-
}
|
|
2
|
+
import { Component } from './component';
|
|
3
|
+
export declare function createRenderer(component: Component, nativeRenderer: NativeRenderer): (host: NativeNode) => void;
|
|
@@ -6,6 +6,6 @@ import { Injector } from '../di/_api';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class RootComponent extends Component {
|
|
8
8
|
onChange: (() => void) | null;
|
|
9
|
-
constructor(factory: JSXInternal.ComponentConstructor
|
|
9
|
+
constructor(parentInjector: Injector, factory: JSXInternal.ComponentConstructor);
|
|
10
10
|
markAsChanged(changedComponent?: Component): void;
|
|
11
11
|
}
|