@viewfly/core 1.0.0-alpha.3 → 1.0.0-alpha.5
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.
|
@@ -33,7 +33,7 @@ export declare class Component extends ReflectiveInjector {
|
|
|
33
33
|
template: any;
|
|
34
34
|
portalHost: import("./injection-tokens").NativeNode | undefined;
|
|
35
35
|
};
|
|
36
|
-
update(newProps:
|
|
36
|
+
update(newProps: Record<string, any>, forceUpdate?: boolean): any;
|
|
37
37
|
provide<T>(providers: Provider<T> | Provider<T>[]): void;
|
|
38
38
|
rendered(): void;
|
|
39
39
|
destroy(): void;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { ListenDelegate } from './_utils';
|
|
2
2
|
export interface Props {
|
|
3
3
|
children?: JSXInternal.ViewNode | JSXInternal.ViewNode[];
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
[key: symbol]: any;
|
|
6
4
|
}
|
|
7
5
|
export declare function Fragment(props: Props): () => any;
|
|
8
6
|
export type Key = number | string;
|
|
9
|
-
export declare function jsx(type: string | JSXInternal.ComponentSetup, props: Props, key?: Key): JSXNode;
|
|
7
|
+
export declare function jsx(type: string | JSXInternal.ComponentSetup, props: Props & Record<string, any>, key?: Key): JSXNode;
|
|
10
8
|
export declare const jsxs: typeof jsx;
|
|
11
9
|
export interface JSXNode<T = string | JSXInternal.ComponentSetup> {
|
|
12
10
|
type: T;
|
|
13
|
-
props: Props
|
|
11
|
+
props: Props & Record<string, any>;
|
|
14
12
|
key?: Key;
|
|
15
13
|
on?: Record<string, ListenDelegate>;
|
|
16
14
|
}
|
|
17
15
|
export declare const JSXNodeFactory: {
|
|
18
|
-
createNode<T = string | JSXInternal.ComponentSetup<any>>(type: T, props: Props, key?: Key): JSXNode<T>;
|
|
16
|
+
createNode<T = string | JSXInternal.ComponentSetup<any>>(type: T, props: Props & Record<string, any>, key?: Key): JSXNode<T>;
|
|
19
17
|
};
|
package/bundles/index.esm.js
CHANGED
|
@@ -239,6 +239,7 @@ class NullInjector extends Injector {
|
|
|
239
239
|
super(...arguments);
|
|
240
240
|
this.parentInjector = null;
|
|
241
241
|
}
|
|
242
|
+
/* eslint-disable-next-line */
|
|
242
243
|
get(token, notFoundValue = THROW_IF_NOT_FOUND, _) {
|
|
243
244
|
if (notFoundValue === THROW_IF_NOT_FOUND) {
|
|
244
245
|
throw nullInjectorErrorFn(token);
|
package/bundles/index.js
CHANGED
|
@@ -241,6 +241,7 @@ class NullInjector extends Injector {
|
|
|
241
241
|
super(...arguments);
|
|
242
242
|
this.parentInjector = null;
|
|
243
243
|
}
|
|
244
|
+
/* eslint-disable-next-line */
|
|
244
245
|
get(token, notFoundValue = THROW_IF_NOT_FOUND, _) {
|
|
245
246
|
if (notFoundValue === THROW_IF_NOT_FOUND) {
|
|
246
247
|
throw nullInjectorErrorFn(token);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
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": "
|
|
50
|
+
"gitHead": "08440a64a07df71eb5d65467a4ad371a35e1f896",
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"reflect-metadata": "^0.1.13"
|
|
53
53
|
}
|