@viewfly/core 2.1.0 → 3.0.0-alpha.0
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 +67 -4
- package/dist/_utils/make-error.d.ts +1 -0
- package/dist/base/_api.d.ts +12 -0
- package/dist/base/_utils.d.ts +46 -0
- package/dist/base/component.d.ts +77 -0
- package/dist/base/context.d.ts +112 -0
- package/dist/base/dep.d.ts +9 -0
- package/dist/base/injection-tokens.d.ts +20 -0
- package/dist/base/jsx-element.d.ts +64 -0
- package/dist/base/lifecycle.d.ts +54 -0
- package/dist/base/ref.d.ts +50 -0
- package/dist/base/renderer.d.ts +4 -0
- package/dist/base/root.component.d.ts +9 -0
- package/dist/base/types.d.ts +29 -0
- package/dist/di/_api.d.ts +10 -0
- package/dist/di/forward-ref.d.ts +10 -0
- package/dist/di/injectable.d.ts +20 -0
- package/dist/di/injection-token.d.ts +8 -0
- package/dist/di/injector.d.ts +26 -0
- package/dist/di/metadata.d.ts +43 -0
- package/dist/di/null-injector.d.ts +6 -0
- package/dist/di/provider.d.ts +30 -0
- package/dist/di/reflective-injector.d.ts +30 -0
- package/dist/di/reflective-provider.d.ts +20 -0
- package/dist/di/type.d.ts +7 -0
- package/dist/di/utils/_api.d.ts +3 -0
- package/dist/di/utils/annotations.d.ts +33 -0
- package/dist/di/utils/decorators.d.ts +17 -0
- package/dist/di/utils/stringify.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +2302 -0
- package/dist/index.js +2940 -0
- package/dist/jsx-runtime/index.d.ts +7 -0
- package/dist/jsx-runtime/index.esm.js +2 -0
- package/dist/jsx-runtime/index.js +26 -0
- package/dist/jsx-runtime.d.ts +7 -0
- package/dist/reactive/_api.d.ts +7 -0
- package/dist/reactive/_help.d.ts +15 -0
- package/dist/reactive/array-handlers.d.ts +30 -0
- package/dist/reactive/computed.d.ts +10 -0
- package/dist/reactive/effect.d.ts +13 -0
- package/dist/reactive/iterable-iterator.d.ts +5 -0
- package/dist/reactive/map-handlers.d.ts +12 -0
- package/dist/reactive/reactive.d.ts +141 -0
- package/dist/reactive/set-handlers.d.ts +11 -0
- package/dist/reactive/shallow-reactive.d.ts +6 -0
- package/dist/reactive/signal.d.ts +38 -0
- package/dist/reactive/watch-effect.d.ts +7 -0
- package/dist/reactive/watch.d.ts +8 -0
- package/dist/viewfly.d.ts +30 -0
- package/package.json +29 -29
- package/bundles/index.d.ts +0 -768
- package/bundles/index.esm.js +0 -2700
- package/bundles/index.js +0 -2777
- package/jsx-runtime/index.d.ts +0 -25
- package/jsx-runtime/index.esm.js +0 -11
- package/jsx-runtime/index.js +0 -14
- package/jsx-runtime/package.json +0 -29
- package/rollup-d.config.ts +0 -14
package/jsx-runtime/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment, JSX as ViewflyJSX } from '@viewfly/core';
|
|
2
|
-
/**
|
|
3
|
-
* JSX namespace for usage with @jsxImportsSource directive
|
|
4
|
-
* when ts compilerOptions.jsx is 'react-jsx'
|
|
5
|
-
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
6
|
-
*/
|
|
7
|
-
declare const jsxDEV: typeof jsx;
|
|
8
|
-
export { jsx, jsxs, Fragment, jsxDEV };
|
|
9
|
-
export declare namespace JSX {
|
|
10
|
-
type ElementType = ViewflyJSX.ElementType;
|
|
11
|
-
interface Element extends ViewflyJSX.Element {
|
|
12
|
-
}
|
|
13
|
-
interface ElementClass extends ViewflyJSX.ElementClass {
|
|
14
|
-
}
|
|
15
|
-
interface IntrinsicElements extends ViewflyJSX.IntrinsicElements {
|
|
16
|
-
}
|
|
17
|
-
interface IntrinsicAttributes extends ViewflyJSX.IntrinsicAttributes {
|
|
18
|
-
}
|
|
19
|
-
interface ElementChildrenAttribute extends ViewflyJSX.ElementChildrenAttribute {
|
|
20
|
-
}
|
|
21
|
-
interface ElementAttributesProperty extends ViewflyJSX.ElementAttributesProperty {
|
|
22
|
-
}
|
|
23
|
-
interface IntrinsicClassAttributes<T> extends ViewflyJSX.IntrinsicClassAttributes<T> {
|
|
24
|
-
}
|
|
25
|
-
}
|
package/jsx-runtime/index.esm.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@viewfly/core';
|
|
2
|
-
export { Fragment, jsx, jsxs } from '@viewfly/core';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* JSX namespace for usage with @jsxImportsSource directive
|
|
6
|
-
* when ts compilerOptions.jsx is 'react-jsx'
|
|
7
|
-
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
8
|
-
*/
|
|
9
|
-
const jsxDEV = jsx;
|
|
10
|
-
|
|
11
|
-
export { jsxDEV };
|
package/jsx-runtime/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jsxDEV = exports.Fragment = exports.jsxs = exports.jsx = void 0;
|
|
4
|
-
var core_1 = require("@viewfly/core");
|
|
5
|
-
Object.defineProperty(exports, "jsx", { enumerable: true, get: function () { return core_1.jsx; } });
|
|
6
|
-
Object.defineProperty(exports, "jsxs", { enumerable: true, get: function () { return core_1.jsxs; } });
|
|
7
|
-
Object.defineProperty(exports, "Fragment", { enumerable: true, get: function () { return core_1.Fragment; } });
|
|
8
|
-
/**
|
|
9
|
-
* JSX namespace for usage with @jsxImportsSource directive
|
|
10
|
-
* when ts compilerOptions.jsx is 'react-jsx'
|
|
11
|
-
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
12
|
-
*/
|
|
13
|
-
var jsxDEV = core_1.jsx;
|
|
14
|
-
exports.jsxDEV = jsxDEV;
|
package/jsx-runtime/package.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"module": "./index.esm.js",
|
|
4
|
-
"types": "./index.d.ts",
|
|
5
|
-
"scripts": {
|
|
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
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@viewfly/core": "*"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@rollup/plugin-commonjs": "^25.0.3",
|
|
13
|
-
"@rollup/plugin-typescript": "^11.1.2",
|
|
14
|
-
"rimraf": "^3.0.2",
|
|
15
|
-
"rollup": "^3.26.3",
|
|
16
|
-
"tslib": "^2.6.0"
|
|
17
|
-
},
|
|
18
|
-
"author": {
|
|
19
|
-
"name": "Tanbo",
|
|
20
|
-
"email": "tanbohb@qq.com"
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/viewfly/viewfly.git"
|
|
25
|
-
},
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
28
|
-
}
|
|
29
|
-
}
|