@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.
Files changed (59) hide show
  1. package/README.md +67 -4
  2. package/dist/_utils/make-error.d.ts +1 -0
  3. package/dist/base/_api.d.ts +12 -0
  4. package/dist/base/_utils.d.ts +46 -0
  5. package/dist/base/component.d.ts +77 -0
  6. package/dist/base/context.d.ts +112 -0
  7. package/dist/base/dep.d.ts +9 -0
  8. package/dist/base/injection-tokens.d.ts +20 -0
  9. package/dist/base/jsx-element.d.ts +64 -0
  10. package/dist/base/lifecycle.d.ts +54 -0
  11. package/dist/base/ref.d.ts +50 -0
  12. package/dist/base/renderer.d.ts +4 -0
  13. package/dist/base/root.component.d.ts +9 -0
  14. package/dist/base/types.d.ts +29 -0
  15. package/dist/di/_api.d.ts +10 -0
  16. package/dist/di/forward-ref.d.ts +10 -0
  17. package/dist/di/injectable.d.ts +20 -0
  18. package/dist/di/injection-token.d.ts +8 -0
  19. package/dist/di/injector.d.ts +26 -0
  20. package/dist/di/metadata.d.ts +43 -0
  21. package/dist/di/null-injector.d.ts +6 -0
  22. package/dist/di/provider.d.ts +30 -0
  23. package/dist/di/reflective-injector.d.ts +30 -0
  24. package/dist/di/reflective-provider.d.ts +20 -0
  25. package/dist/di/type.d.ts +7 -0
  26. package/dist/di/utils/_api.d.ts +3 -0
  27. package/dist/di/utils/annotations.d.ts +33 -0
  28. package/dist/di/utils/decorators.d.ts +17 -0
  29. package/dist/di/utils/stringify.d.ts +1 -0
  30. package/dist/index.d.ts +5 -0
  31. package/dist/index.esm.js +2302 -0
  32. package/dist/index.js +2940 -0
  33. package/dist/jsx-runtime/index.d.ts +7 -0
  34. package/dist/jsx-runtime/index.esm.js +2 -0
  35. package/dist/jsx-runtime/index.js +26 -0
  36. package/dist/jsx-runtime.d.ts +7 -0
  37. package/dist/reactive/_api.d.ts +7 -0
  38. package/dist/reactive/_help.d.ts +15 -0
  39. package/dist/reactive/array-handlers.d.ts +30 -0
  40. package/dist/reactive/computed.d.ts +10 -0
  41. package/dist/reactive/effect.d.ts +13 -0
  42. package/dist/reactive/iterable-iterator.d.ts +5 -0
  43. package/dist/reactive/map-handlers.d.ts +12 -0
  44. package/dist/reactive/reactive.d.ts +141 -0
  45. package/dist/reactive/set-handlers.d.ts +11 -0
  46. package/dist/reactive/shallow-reactive.d.ts +6 -0
  47. package/dist/reactive/signal.d.ts +38 -0
  48. package/dist/reactive/watch-effect.d.ts +7 -0
  49. package/dist/reactive/watch.d.ts +8 -0
  50. package/dist/viewfly.d.ts +30 -0
  51. package/package.json +29 -29
  52. package/bundles/index.d.ts +0 -768
  53. package/bundles/index.esm.js +0 -2700
  54. package/bundles/index.js +0 -2777
  55. package/jsx-runtime/index.d.ts +0 -25
  56. package/jsx-runtime/index.esm.js +0 -11
  57. package/jsx-runtime/index.js +0 -14
  58. package/jsx-runtime/package.json +0 -29
  59. package/rollup-d.config.ts +0 -14
@@ -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
- }
@@ -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 };
@@ -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;
@@ -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
- }
@@ -1,14 +0,0 @@
1
- import dts from 'rollup-plugin-dts'
2
-
3
- export default {
4
- input: 'src/public-api.ts',
5
- output: [
6
- {
7
- file: './bundles/index.d.ts',
8
- format: 'es'
9
- }
10
- ],
11
- plugins: [
12
- dts(),
13
- ]
14
- }