@viewfly/core 0.0.1-alpha.9 → 0.0.2

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/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  Viewfly
2
2
  ================================
3
3
 
4
- Viewfly 是一个简单、数据驱动的前端视图库,完整文档请参考官方网站:[viewfly.org](https://viewfly.org)
4
+ Viewfly 是一个简单、数据驱动的前端框架。此项目为 Viewfly 的内核实现,要开发完整的应该的应用,还需要结合 `@viewfly/platform-browser` 包,才能在浏览器运行。
5
+
6
+ 完整文档请参考官方网站:[viewfly.org](https://viewfly.org)
@@ -1,18 +1,9 @@
1
- import { Component, JSXElement } from '../model/_api';
2
- export interface MapChanges {
3
- remove: [string, any][];
4
- set: [string, any][];
5
- }
6
1
  export interface ObjectChanges {
7
2
  remove: [string, any][];
8
3
  add: [string, any][];
4
+ replace: [string, any, any][];
9
5
  }
10
6
  export declare const refKey = "ref";
11
- export declare function getObjectChanges(target: Record<string, any>, source: Record<string, any>): ObjectChanges;
12
- export declare function getMapChanges(target: Map<string, any>, source: Map<string, any>): MapChanges;
13
- export declare function getNodeChanges(newVNode: JSXElement | Component, oldVNode: JSXElement | Component): {
14
- styleChanges: MapChanges;
15
- attrChanges: MapChanges;
16
- listenerChanges: ObjectChanges;
17
- isChanged: boolean;
18
- };
7
+ export declare function getObjectChanges(newProps: Record<string, any>, oldProps: Record<string, any>): ObjectChanges;
8
+ export declare function classToString(config: unknown): any;
9
+ export declare function styleToObject(style: string | Record<string, any>): Record<string, any>;
@@ -21,7 +21,6 @@ export declare class Renderer {
21
21
  private buildView;
22
22
  private componentRender;
23
23
  private createChainByComponentFactory;
24
- private createChainByTemplate;
25
24
  private createChainByJSXElement;
26
25
  private createChainByJSXText;
27
26
  private createChainByChildren;