@viewfly/platform-browser 0.0.12 → 0.0.13
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/bundles/create-app.d.ts +2 -2
- package/bundles/fork.d.ts +2 -2
- package/bundles/index.esm.js +28 -28
- package/bundles/jsx-dom.d.ts +5 -5
- package/package.json +3 -3
package/bundles/create-app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Viewfly, RootNode } from '@viewfly/core';
|
|
2
2
|
/**
|
|
3
3
|
* 创建一个 Viewfly 实例
|
|
4
4
|
* @param host 应用根节点
|
|
@@ -15,4 +15,4 @@ import { JSX, RootNode } from '@viewfly/core';
|
|
|
15
15
|
* renderer.refresh() // 手动更新视图
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export declare function createApp(host: HTMLElement, root: RootNode, autoUpdate?: boolean):
|
|
18
|
+
export declare function createApp(host: HTMLElement, root: RootNode, autoUpdate?: boolean): Viewfly;
|
package/bundles/fork.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RootNode,
|
|
2
|
-
export declare function fork(root: RootNode):
|
|
1
|
+
import { RootNode, Viewfly } from '@viewfly/core';
|
|
2
|
+
export declare function fork(root: RootNode): Viewfly;
|
package/bundles/index.esm.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { NativeRenderer,
|
|
1
|
+
import { NativeRenderer, Viewfly, makeError, provide, onDestroy } from '@viewfly/core';
|
|
2
2
|
import { Injectable } from '@tanbo/di';
|
|
3
3
|
|
|
4
|
-
/******************************************************************************
|
|
5
|
-
Copyright (c) Microsoft Corporation.
|
|
6
|
-
|
|
7
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
-
purpose with or without fee is hereby granted.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
-
***************************************************************************** */
|
|
18
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function __decorate(decorators, target, key, desc) {
|
|
22
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
25
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
29
|
-
var e = new Error(message);
|
|
30
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4
|
+
/******************************************************************************
|
|
5
|
+
Copyright (c) Microsoft Corporation.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
+
purpose with or without fee is hereby granted.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
function __decorate(decorators, target, key, desc) {
|
|
22
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
25
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
29
|
+
var e = new Error(message);
|
|
30
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
let DomRenderer = class DomRenderer extends NativeRenderer {
|
package/bundles/jsx-dom.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as CSS from 'csstype';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewTypes } from '@viewfly/core';
|
|
3
3
|
export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
|
4
4
|
/**
|
|
5
5
|
* The index signature was removed to enable closed typing for style
|
|
@@ -200,9 +200,9 @@ interface AriaAttributes {
|
|
|
200
200
|
'aria-valuetext'?: string;
|
|
201
201
|
}
|
|
202
202
|
export type StyleValue = string | CSSProperties | null;
|
|
203
|
-
export interface HTMLAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>,
|
|
203
|
+
export interface HTMLAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>, ViewTypes.RefAttributes<T> {
|
|
204
204
|
innerHTML?: string;
|
|
205
|
-
class?:
|
|
205
|
+
class?: ViewTypes.ClassNames;
|
|
206
206
|
style?: StyleValue;
|
|
207
207
|
accesskey?: string;
|
|
208
208
|
contenteditable?: Booleanish | 'inherit';
|
|
@@ -620,13 +620,13 @@ export interface WebViewHTMLAttributes<T extends object> extends HTMLAttributes<
|
|
|
620
620
|
useragent?: string;
|
|
621
621
|
webpreferences?: string;
|
|
622
622
|
}
|
|
623
|
-
export interface SVGAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>,
|
|
623
|
+
export interface SVGAttributes<T extends object> extends AriaAttributes, EventHandlers<Events>, ViewTypes.RefAttributes<T> {
|
|
624
624
|
innerHTML?: string;
|
|
625
625
|
/**
|
|
626
626
|
* SVG Styling Attributes
|
|
627
627
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
628
628
|
*/
|
|
629
|
-
class?:
|
|
629
|
+
class?: ViewTypes.ClassNames;
|
|
630
630
|
style?: string | CSSProperties;
|
|
631
631
|
color?: string;
|
|
632
632
|
height?: Numberish;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/platform-browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "This project is used to enable the Viewfly framework to run in a browser.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@tanbo/di": "^1.1.5",
|
|
16
|
-
"@viewfly/core": "^0.0.
|
|
16
|
+
"@viewfly/core": "^0.0.13",
|
|
17
17
|
"csstype": "^3.1.2",
|
|
18
18
|
"reflect-metadata": "^0.1.13"
|
|
19
19
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fbfaa99daf471f60ffe119241ca38ccedf8ba5f5"
|
|
39
39
|
}
|