@viewfly/core 0.5.4 → 0.6.1

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.
@@ -1,12 +1,12 @@
1
1
  import type { Provider } from './di/_api';
2
- import { JSXInternal, NativeNode, NativeRenderer } from './foundation/_api';
2
+ import { NativeNode, NativeRenderer } from './foundation/_api';
3
3
  import { Injector } from './di/_api';
4
4
  /**
5
5
  * Viewfly 配置项
6
6
  */
7
7
  export interface Config {
8
8
  /** 根节点 */
9
- root: JSXInternal.JSXNode;
9
+ root: JSXInternal.ViewNode;
10
10
  /** 平台渲染器 */
11
11
  nativeRenderer: NativeRenderer;
12
12
  /** 应用的上下文 */
@@ -1,5 +1,4 @@
1
- import { jsx, jsxs, Fragment, JSXInternal } from '@viewfly/core';
2
- import { NativeElements } from '@viewfly/platform-browser';
1
+ import { jsx, jsxs, Fragment } from '@viewfly/core';
3
2
  /**
4
3
  * JSX namespace for usage with @jsxImportsSource directive
5
4
  * when ts compilerOptions.jsx is 'react-jsx'
@@ -11,7 +10,7 @@ export declare namespace JSX {
11
10
  type Element = JSXInternal.Element;
12
11
  interface ElementClass extends JSXInternal.ElementClass {
13
12
  }
14
- interface IntrinsicElements extends NativeElements, JSXInternal.IntrinsicElements {
13
+ interface IntrinsicElements extends JSXInternal.IntrinsicElements {
15
14
  }
16
15
  interface IntrinsicAttributes extends JSXInternal.IntrinsicAttributes {
17
16
  }
@@ -6,8 +6,7 @@
6
6
  "build:lib": "rimraf index.esm.js index.js index.d.ts && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && tsc index.ts -d"
7
7
  },
8
8
  "dependencies": {
9
- "@viewfly/core": "*",
10
- "@viewfly/platform-browser": "*"
9
+ "@viewfly/core": "*"
11
10
  },
12
11
  "devDependencies": {
13
12
  "@rollup/plugin-commonjs": "^25.0.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/core",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -47,7 +47,7 @@
47
47
  "bugs": {
48
48
  "url": "https://github.com/viewfly/viewfly.git/issues"
49
49
  },
50
- "gitHead": "b66a751b23e5f9a336ac9f52438f9f9a27766762",
50
+ "gitHead": "95ed600209322e44d2bd7d2eb62a1868629d9d68",
51
51
  "dependencies": {
52
52
  "reflect-metadata": "^0.1.13"
53
53
  }