@ray-js/adapter 1.2.2 → 1.2.3
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/cjs/hostComponents/PickerView/index.d.ts +4 -1
- package/cjs/hostComponents/PickerView/node.d.ts +6 -5
- package/cjs/hostComponents/PickerView/node.js +1 -1
- package/cjs/hostComponents/ScrollView/index.d.ts +4 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +4 -0
- package/cjs/hostComponents/ScrollView/node.js +1 -1
- package/cjs/hostComponents/Slider/node.d.ts +1 -0
- package/cjs/hostComponents/Slider/node.js +1 -1
- package/cjs/hostComponents/WebView/node.js +1 -1
- package/cjs/hostComponents/index.d.ts +1 -0
- package/cjs/hostComponents/index.js +1 -0
- package/cjs/hostComponents/node.js +2 -0
- package/esm/hostComponents/PickerView/index.d.ts +4 -1
- package/esm/hostComponents/PickerView/node.d.ts +6 -5
- package/esm/hostComponents/PickerView/node.js +1 -1
- package/esm/hostComponents/ScrollView/index.d.ts +4 -0
- package/esm/hostComponents/ScrollView/node.d.ts +4 -0
- package/esm/hostComponents/ScrollView/node.js +1 -1
- package/esm/hostComponents/Slider/node.d.ts +1 -0
- package/esm/hostComponents/Slider/node.js +1 -1
- package/esm/hostComponents/WebView/node.js +1 -1
- package/esm/hostComponents/index.d.ts +1 -0
- package/esm/hostComponents/index.js +1 -0
- package/esm/hostComponents/node.js +2 -0
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PickerViewProps extends BaseProps {
|
|
4
|
-
name?: string;
|
|
5
4
|
/** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
|
|
6
5
|
value?: number[];
|
|
7
6
|
/** 设置选择器中间选中框的样式 */
|
|
@@ -10,5 +9,9 @@ export interface PickerViewProps extends BaseProps {
|
|
|
10
9
|
maskStyle?: React.CSSProperties;
|
|
11
10
|
/** 滚动选择时触发 change 事件,event.detail = {value};value 为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始) */
|
|
12
11
|
onChange?: (event: GenericEvent) => any;
|
|
12
|
+
/** 当滚动选择开始时候触发事件 */
|
|
13
|
+
onPickstart?: (event: GenericEvent) => any;
|
|
14
|
+
/** 当滚动选择结束时候触发事件 */
|
|
15
|
+
onPickend?: (event: GenericEvent) => any;
|
|
13
16
|
}
|
|
14
17
|
export declare const PickerView: React.ComponentType<PickerViewProps>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export declare const alias: {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
className: string;
|
|
5
|
-
animation: string;
|
|
6
|
-
style: string;
|
|
7
2
|
value: string;
|
|
8
3
|
indicatorStyle: string;
|
|
9
4
|
maskStyle: string;
|
|
10
5
|
onChange: string;
|
|
6
|
+
onPickstart: string;
|
|
7
|
+
onPickend: string;
|
|
8
|
+
id: string;
|
|
11
9
|
disableScroll: string;
|
|
12
10
|
hoverClass: string;
|
|
13
11
|
hoverClassName: string;
|
|
14
12
|
hoverStartTime: string;
|
|
15
13
|
hoverStayTime: string;
|
|
16
14
|
hidden: string;
|
|
15
|
+
className: string;
|
|
16
|
+
animation: string;
|
|
17
|
+
style: string;
|
|
17
18
|
hoverStopPropagation: string;
|
|
18
19
|
onTap: string;
|
|
19
20
|
onClick: string;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
const universal_1 = require("../universal");
|
|
5
|
-
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), {
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange', onPickstart: 'bindpickstart', onPickend: 'bindpickend' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -19,9 +19,13 @@ export interface ScrollViewProps extends BaseProps {
|
|
|
19
19
|
refresherDefaultStyle?: string;
|
|
20
20
|
refresherBackground?: string;
|
|
21
21
|
refresherTriggered: boolean;
|
|
22
|
+
onRefresherPulling?: (event: GenericEvent) => void;
|
|
22
23
|
onRefresherpulling?: (event: GenericEvent) => void;
|
|
24
|
+
onRefresherRefresh?: (event: GenericEvent) => void;
|
|
23
25
|
onRefresherrefresh?: (event: GenericEvent) => void;
|
|
26
|
+
onRefresherRestore?: (event: GenericEvent) => void;
|
|
24
27
|
onRefresherrestore?: (event: GenericEvent) => void;
|
|
28
|
+
onRefresherAbort?: (event: GenericEvent) => void;
|
|
25
29
|
onRefresherabort?: (event: GenericEvent) => void;
|
|
26
30
|
}
|
|
27
31
|
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -21,9 +21,13 @@ export declare const alias: {
|
|
|
21
21
|
refresherDefaultStyle: string;
|
|
22
22
|
refresherBackground: string;
|
|
23
23
|
refresherTriggered: string;
|
|
24
|
+
onRefresherPulling: string;
|
|
24
25
|
onRefresherpulling: string;
|
|
26
|
+
onRefresherRefresh: string;
|
|
25
27
|
onRefresherrefresh: string;
|
|
28
|
+
onRefresherRestore: string;
|
|
26
29
|
onRefresherrestore: string;
|
|
30
|
+
onRefresherAbort: string;
|
|
27
31
|
onRefresherabort: string;
|
|
28
32
|
disableScroll: string;
|
|
29
33
|
hoverClass: string;
|
|
@@ -4,5 +4,5 @@ exports.props = exports.alias = void 0;
|
|
|
4
4
|
const universal_1 = require("../universal");
|
|
5
5
|
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', scrollX: 'scroll-x', scrollY: 'scroll-y', upperThreshold: 'upper-threshold', lowerThreshold: 'lower-threshold', scrollTop: 'scroll-top', scrollLeft: 'scroll-left', scrollIntoView: 'scroll-into-view', scrollWithAnimation: 'scroll-with-animation', enableBackToTop: 'enable-back-to-top', enableFlex: 'enable-flex', onScrollToUpper: 'bindscrolltoupper', onScrollToLower: 'bindscrolltolower', onScroll: 'bindscroll',
|
|
6
6
|
/* 0.9.3新增 */
|
|
7
|
-
refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', onRefresherpulling: 'bindrefresherpulling', onRefresherrefresh: 'bindrefresherrefresh', onRefresherrestore: 'bindrefresherrestore', onRefresherabort: 'bindrefresherabort' });
|
|
7
|
+
refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', onRefresherPulling: 'bindrefresherpulling', onRefresherpulling: 'bindrefresherpulling', onRefresherRefresh: 'bindrefresherrefresh', onRefresherrefresh: 'bindrefresherrefresh', onRefresherRestore: 'bindrefresherrestore', onRefresherrestore: 'bindrefresherrestore', onRefresherAbort: 'bindrefresherabort', onRefresherabort: 'bindrefresherabort' });
|
|
8
8
|
exports.props = Object.values(exports.alias);
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
const universal_1 = require("../universal");
|
|
5
|
-
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', showValue: 'showValue', onChange: 'bindchange', onChanging: 'bindchanging' });
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', blockSize: 'blockSize', showValue: 'showValue', onChange: 'bindchange', onChanging: 'bindchanging' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.props = exports.alias = void 0;
|
|
4
4
|
const universal_1 = require("../universal");
|
|
5
|
-
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class-name', style: 'style', src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: '
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class-name', style: 'style', src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: 'bindmessage', updateLayout: 'update-layout' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./IpcPlayer"), exports);
|
|
|
43
43
|
__exportStar(require("./CoverView"), exports);
|
|
44
44
|
__exportStar(require("./NativeVideo"), exports);
|
|
45
45
|
__exportStar(require("./WebView"), exports);
|
|
46
|
+
__exportStar(require("./Iframe"), exports);
|
|
46
47
|
__exportStar(require("./Map"), exports);
|
|
47
48
|
__exportStar(require("./Camera"), exports);
|
|
48
49
|
__exportStar(require("./Progress"), exports);
|
|
@@ -56,6 +56,7 @@ const WebView = __importStar(require("./WebView/node"));
|
|
|
56
56
|
const MapView = __importStar(require("./Map/node"));
|
|
57
57
|
const Camera = __importStar(require("./Camera/node"));
|
|
58
58
|
const RichText = __importStar(require("./RichText/node"));
|
|
59
|
+
const Iframe = __importStar(require("./Iframe/node"));
|
|
59
60
|
const hostComponents = new Map();
|
|
60
61
|
hostComponents.set('button', Button);
|
|
61
62
|
hostComponents.set('canvas', Canvas);
|
|
@@ -90,4 +91,5 @@ hostComponents.set('map', MapView);
|
|
|
90
91
|
hostComponents.set('camera', Camera);
|
|
91
92
|
hostComponents.set('progress', Progress);
|
|
92
93
|
hostComponents.set('rich-text', RichText);
|
|
94
|
+
hostComponents.set('iframe', Iframe);
|
|
93
95
|
exports.default = hostComponents;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PickerViewProps extends BaseProps {
|
|
4
|
-
name?: string;
|
|
5
4
|
/** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
|
|
6
5
|
value?: number[];
|
|
7
6
|
/** 设置选择器中间选中框的样式 */
|
|
@@ -10,5 +9,9 @@ export interface PickerViewProps extends BaseProps {
|
|
|
10
9
|
maskStyle?: React.CSSProperties;
|
|
11
10
|
/** 滚动选择时触发 change 事件,event.detail = {value};value 为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始) */
|
|
12
11
|
onChange?: (event: GenericEvent) => any;
|
|
12
|
+
/** 当滚动选择开始时候触发事件 */
|
|
13
|
+
onPickstart?: (event: GenericEvent) => any;
|
|
14
|
+
/** 当滚动选择结束时候触发事件 */
|
|
15
|
+
onPickend?: (event: GenericEvent) => any;
|
|
13
16
|
}
|
|
14
17
|
export declare const PickerView: React.ComponentType<PickerViewProps>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export declare const alias: {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
className: string;
|
|
5
|
-
animation: string;
|
|
6
|
-
style: string;
|
|
7
2
|
value: string;
|
|
8
3
|
indicatorStyle: string;
|
|
9
4
|
maskStyle: string;
|
|
10
5
|
onChange: string;
|
|
6
|
+
onPickstart: string;
|
|
7
|
+
onPickend: string;
|
|
8
|
+
id: string;
|
|
11
9
|
disableScroll: string;
|
|
12
10
|
hoverClass: string;
|
|
13
11
|
hoverClassName: string;
|
|
14
12
|
hoverStartTime: string;
|
|
15
13
|
hoverStayTime: string;
|
|
16
14
|
hidden: string;
|
|
15
|
+
className: string;
|
|
16
|
+
animation: string;
|
|
17
|
+
style: string;
|
|
17
18
|
hoverStopPropagation: string;
|
|
18
19
|
onTap: string;
|
|
19
20
|
onClick: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), {
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange', onPickstart: 'bindpickstart', onPickend: 'bindpickend' });
|
|
3
3
|
export const props = Object.values(alias);
|
|
@@ -19,9 +19,13 @@ export interface ScrollViewProps extends BaseProps {
|
|
|
19
19
|
refresherDefaultStyle?: string;
|
|
20
20
|
refresherBackground?: string;
|
|
21
21
|
refresherTriggered: boolean;
|
|
22
|
+
onRefresherPulling?: (event: GenericEvent) => void;
|
|
22
23
|
onRefresherpulling?: (event: GenericEvent) => void;
|
|
24
|
+
onRefresherRefresh?: (event: GenericEvent) => void;
|
|
23
25
|
onRefresherrefresh?: (event: GenericEvent) => void;
|
|
26
|
+
onRefresherRestore?: (event: GenericEvent) => void;
|
|
24
27
|
onRefresherrestore?: (event: GenericEvent) => void;
|
|
28
|
+
onRefresherAbort?: (event: GenericEvent) => void;
|
|
25
29
|
onRefresherabort?: (event: GenericEvent) => void;
|
|
26
30
|
}
|
|
27
31
|
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -21,9 +21,13 @@ export declare const alias: {
|
|
|
21
21
|
refresherDefaultStyle: string;
|
|
22
22
|
refresherBackground: string;
|
|
23
23
|
refresherTriggered: string;
|
|
24
|
+
onRefresherPulling: string;
|
|
24
25
|
onRefresherpulling: string;
|
|
26
|
+
onRefresherRefresh: string;
|
|
25
27
|
onRefresherrefresh: string;
|
|
28
|
+
onRefresherRestore: string;
|
|
26
29
|
onRefresherrestore: string;
|
|
30
|
+
onRefresherAbort: string;
|
|
27
31
|
onRefresherabort: string;
|
|
28
32
|
disableScroll: string;
|
|
29
33
|
hoverClass: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
2
|
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', scrollX: 'scroll-x', scrollY: 'scroll-y', upperThreshold: 'upper-threshold', lowerThreshold: 'lower-threshold', scrollTop: 'scroll-top', scrollLeft: 'scroll-left', scrollIntoView: 'scroll-into-view', scrollWithAnimation: 'scroll-with-animation', enableBackToTop: 'enable-back-to-top', enableFlex: 'enable-flex', onScrollToUpper: 'bindscrolltoupper', onScrollToLower: 'bindscrolltolower', onScroll: 'bindscroll',
|
|
3
3
|
/* 0.9.3新增 */
|
|
4
|
-
refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', onRefresherpulling: 'bindrefresherpulling', onRefresherrefresh: 'bindrefresherrefresh', onRefresherrestore: 'bindrefresherrestore', onRefresherabort: 'bindrefresherabort' });
|
|
4
|
+
refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered', onRefresherPulling: 'bindrefresherpulling', onRefresherpulling: 'bindrefresherpulling', onRefresherRefresh: 'bindrefresherrefresh', onRefresherrefresh: 'bindrefresherrefresh', onRefresherRestore: 'bindrefresherrestore', onRefresherrestore: 'bindrefresherrestore', onRefresherAbort: 'bindrefresherabort', onRefresherabort: 'bindrefresherabort' });
|
|
5
5
|
export const props = Object.values(alias);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', showValue: 'showValue', onChange: 'bindchange', onChanging: 'bindchanging' });
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { min: 'min', max: 'max', step: 'step', value: 'value', color: 'color', selecteColor: 'selecteColor', activeColor: 'activeColor', backgroundColor: 'backgroundColor', boxSize: 'boxSize', blockColor: 'blockColor', blockSize: 'blockSize', showValue: 'showValue', onChange: 'bindchange', onChanging: 'bindchanging' });
|
|
3
3
|
export const props = Object.values(alias);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class-name', style: 'style', src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: '
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class-name', style: 'style', src: 'src', onError: 'binderror', onLoad: 'bindload', onMessage: 'bindmessage', updateLayout: 'update-layout' });
|
|
3
3
|
export const props = Object.values(alias);
|
|
@@ -31,6 +31,7 @@ import * as WebView from './WebView/node';
|
|
|
31
31
|
import * as MapView from './Map/node';
|
|
32
32
|
import * as Camera from './Camera/node';
|
|
33
33
|
import * as RichText from './RichText/node';
|
|
34
|
+
import * as Iframe from './Iframe/node';
|
|
34
35
|
const hostComponents = new Map();
|
|
35
36
|
hostComponents.set('button', Button);
|
|
36
37
|
hostComponents.set('canvas', Canvas);
|
|
@@ -65,4 +66,5 @@ hostComponents.set('map', MapView);
|
|
|
65
66
|
hostComponents.set('camera', Camera);
|
|
66
67
|
hostComponents.set('progress', Progress);
|
|
67
68
|
hostComponents.set('rich-text', RichText);
|
|
69
|
+
hostComponents.set('iframe', Iframe);
|
|
68
70
|
export default hostComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/adapter",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Ray adapter for tuya",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"watch": "concurrently 'yarn build:cjs --watch' 'yarn build:esm --watch'"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@ray-js/types": "^1.2.
|
|
24
|
+
"@ray-js/types": "^1.2.3",
|
|
25
25
|
"concurrently": "^6.2.1"
|
|
26
26
|
},
|
|
27
27
|
"maintainers": [
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"@ray-core/shared": "^0.2.3",
|
|
36
36
|
"@ray-core/types": "^0.2.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "85a989192806a0e9dd297f2949778e14386ef1a6",
|
|
39
39
|
"repository": {}
|
|
40
40
|
}
|