@ray-js/adapter 1.2.1 → 1.2.2

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.
@@ -1,6 +1,7 @@
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;
4
5
  /** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
5
6
  value?: number[];
6
7
  /** 设置选择器中间选中框的样式 */
@@ -9,9 +10,5 @@ export interface PickerViewProps extends BaseProps {
9
10
  maskStyle?: React.CSSProperties;
10
11
  /** 滚动选择时触发 change 事件,event.detail = {value};value 为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始) */
11
12
  onChange?: (event: GenericEvent) => any;
12
- /** 当滚动选择开始时候触发事件 */
13
- onPickstart?: (event: GenericEvent) => any;
14
- /** 当滚动选择结束时候触发事件 */
15
- onPickend?: (event: GenericEvent) => any;
16
13
  }
17
14
  export declare const PickerView: React.ComponentType<PickerViewProps>;
@@ -1,20 +1,19 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ name: string;
4
+ className: string;
5
+ animation: string;
6
+ style: string;
2
7
  value: string;
3
8
  indicatorStyle: string;
4
9
  maskStyle: string;
5
10
  onChange: string;
6
- onPickstart: string;
7
- onPickend: string;
8
- id: string;
9
11
  disableScroll: string;
10
12
  hoverClass: string;
11
13
  hoverClassName: string;
12
14
  hoverStartTime: string;
13
15
  hoverStayTime: string;
14
16
  hidden: string;
15
- className: string;
16
- animation: string;
17
- style: string;
18
17
  hoverStopPropagation: string;
19
18
  onTap: string;
20
19
  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), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange', onPickstart: 'bindpickstart', onPickend: 'bindpickend' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', name: 'name', className: 'class', animation: 'animation', style: 'style', value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange' });
6
6
  exports.props = Object.values(exports.alias);
@@ -19,13 +19,9 @@ export interface ScrollViewProps extends BaseProps {
19
19
  refresherDefaultStyle?: string;
20
20
  refresherBackground?: string;
21
21
  refresherTriggered: boolean;
22
- onRefresherPulling?: (event: GenericEvent) => void;
23
22
  onRefresherpulling?: (event: GenericEvent) => void;
24
- onRefresherRefresh?: (event: GenericEvent) => void;
25
23
  onRefresherrefresh?: (event: GenericEvent) => void;
26
- onRefresherRestore?: (event: GenericEvent) => void;
27
24
  onRefresherrestore?: (event: GenericEvent) => void;
28
- onRefresherAbort?: (event: GenericEvent) => void;
29
25
  onRefresherabort?: (event: GenericEvent) => void;
30
26
  }
31
27
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -21,13 +21,9 @@ export declare const alias: {
21
21
  refresherDefaultStyle: string;
22
22
  refresherBackground: string;
23
23
  refresherTriggered: string;
24
- onRefresherPulling: string;
25
24
  onRefresherpulling: string;
26
- onRefresherRefresh: string;
27
25
  onRefresherrefresh: string;
28
- onRefresherRestore: string;
29
26
  onRefresherrestore: string;
30
- onRefresherAbort: string;
31
27
  onRefresherabort: string;
32
28
  disableScroll: string;
33
29
  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', onRefresherpulling: 'bindrefresherpulling', onRefresherRefresh: 'bindrefresherrefresh', onRefresherrefresh: 'bindrefresherrefresh', onRefresherRestore: 'bindrefresherrestore', onRefresherrestore: 'bindrefresherrestore', onRefresherAbort: 'bindrefresherabort', onRefresherabort: 'bindrefresherabort' });
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' });
8
8
  exports.props = Object.values(exports.alias);
@@ -9,7 +9,6 @@ export declare const alias: {
9
9
  backgroundColor: string;
10
10
  boxSize: string;
11
11
  blockColor: string;
12
- blockSize: string;
13
12
  showValue: string;
14
13
  onChange: string;
15
14
  onChanging: 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), { 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' });
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' });
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: 'bindmessage', updateLayout: 'update-layout' });
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);
@@ -27,7 +27,6 @@ export * from './IpcPlayer';
27
27
  export * from './CoverView';
28
28
  export * from './NativeVideo';
29
29
  export * from './WebView';
30
- export * from './Iframe';
31
30
  export * from './Map';
32
31
  export * from './Camera';
33
32
  export * from './Progress';
@@ -43,7 +43,6 @@ __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);
47
46
  __exportStar(require("./Map"), exports);
48
47
  __exportStar(require("./Camera"), exports);
49
48
  __exportStar(require("./Progress"), exports);
@@ -56,7 +56,6 @@ 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"));
60
59
  const hostComponents = new Map();
61
60
  hostComponents.set('button', Button);
62
61
  hostComponents.set('canvas', Canvas);
@@ -91,5 +90,4 @@ hostComponents.set('map', MapView);
91
90
  hostComponents.set('camera', Camera);
92
91
  hostComponents.set('progress', Progress);
93
92
  hostComponents.set('rich-text', RichText);
94
- hostComponents.set('iframe', Iframe);
95
93
  exports.default = hostComponents;
@@ -1,6 +1,7 @@
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;
4
5
  /** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 */
5
6
  value?: number[];
6
7
  /** 设置选择器中间选中框的样式 */
@@ -9,9 +10,5 @@ export interface PickerViewProps extends BaseProps {
9
10
  maskStyle?: React.CSSProperties;
10
11
  /** 滚动选择时触发 change 事件,event.detail = {value};value 为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始) */
11
12
  onChange?: (event: GenericEvent) => any;
12
- /** 当滚动选择开始时候触发事件 */
13
- onPickstart?: (event: GenericEvent) => any;
14
- /** 当滚动选择结束时候触发事件 */
15
- onPickend?: (event: GenericEvent) => any;
16
13
  }
17
14
  export declare const PickerView: React.ComponentType<PickerViewProps>;
@@ -1,20 +1,19 @@
1
1
  export declare const alias: {
2
+ id: string;
3
+ name: string;
4
+ className: string;
5
+ animation: string;
6
+ style: string;
2
7
  value: string;
3
8
  indicatorStyle: string;
4
9
  maskStyle: string;
5
10
  onChange: string;
6
- onPickstart: string;
7
- onPickend: string;
8
- id: string;
9
11
  disableScroll: string;
10
12
  hoverClass: string;
11
13
  hoverClassName: string;
12
14
  hoverStartTime: string;
13
15
  hoverStayTime: string;
14
16
  hidden: string;
15
- className: string;
16
- animation: string;
17
- style: string;
18
17
  hoverStopPropagation: string;
19
18
  onTap: string;
20
19
  onClick: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange', onPickstart: 'bindpickstart', onPickend: 'bindpickend' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', name: 'name', className: 'class', animation: 'animation', style: 'style', value: 'value', indicatorStyle: 'indicator-style', maskStyle: 'mask-style', onChange: 'bindchange' });
3
3
  export const props = Object.values(alias);
@@ -19,13 +19,9 @@ export interface ScrollViewProps extends BaseProps {
19
19
  refresherDefaultStyle?: string;
20
20
  refresherBackground?: string;
21
21
  refresherTriggered: boolean;
22
- onRefresherPulling?: (event: GenericEvent) => void;
23
22
  onRefresherpulling?: (event: GenericEvent) => void;
24
- onRefresherRefresh?: (event: GenericEvent) => void;
25
23
  onRefresherrefresh?: (event: GenericEvent) => void;
26
- onRefresherRestore?: (event: GenericEvent) => void;
27
24
  onRefresherrestore?: (event: GenericEvent) => void;
28
- onRefresherAbort?: (event: GenericEvent) => void;
29
25
  onRefresherabort?: (event: GenericEvent) => void;
30
26
  }
31
27
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -21,13 +21,9 @@ export declare const alias: {
21
21
  refresherDefaultStyle: string;
22
22
  refresherBackground: string;
23
23
  refresherTriggered: string;
24
- onRefresherPulling: string;
25
24
  onRefresherpulling: string;
26
- onRefresherRefresh: string;
27
25
  onRefresherrefresh: string;
28
- onRefresherRestore: string;
29
26
  onRefresherrestore: string;
30
- onRefresherAbort: string;
31
27
  onRefresherabort: string;
32
28
  disableScroll: string;
33
29
  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', onRefresherpulling: 'bindrefresherpulling', onRefresherRefresh: 'bindrefresherrefresh', onRefresherrefresh: 'bindrefresherrefresh', onRefresherRestore: 'bindrefresherrestore', onRefresherrestore: 'bindrefresherrestore', onRefresherAbort: 'bindrefresherabort', onRefresherabort: 'bindrefresherabort' });
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' });
5
5
  export const props = Object.values(alias);
@@ -9,7 +9,6 @@ export declare const alias: {
9
9
  backgroundColor: string;
10
10
  boxSize: string;
11
11
  blockColor: string;
12
- blockSize: string;
13
12
  showValue: string;
14
13
  onChange: string;
15
14
  onChanging: string;
@@ -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', blockSize: 'blockSize', 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', 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: 'bindmessage', updateLayout: 'update-layout' });
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);
@@ -27,7 +27,6 @@ export * from './IpcPlayer';
27
27
  export * from './CoverView';
28
28
  export * from './NativeVideo';
29
29
  export * from './WebView';
30
- export * from './Iframe';
31
30
  export * from './Map';
32
31
  export * from './Camera';
33
32
  export * from './Progress';
@@ -27,7 +27,6 @@ export * from './IpcPlayer';
27
27
  export * from './CoverView';
28
28
  export * from './NativeVideo';
29
29
  export * from './WebView';
30
- export * from './Iframe';
31
30
  export * from './Map';
32
31
  export * from './Camera';
33
32
  export * from './Progress';
@@ -31,7 +31,6 @@ 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';
35
34
  const hostComponents = new Map();
36
35
  hostComponents.set('button', Button);
37
36
  hostComponents.set('canvas', Canvas);
@@ -66,5 +65,4 @@ hostComponents.set('map', MapView);
66
65
  hostComponents.set('camera', Camera);
67
66
  hostComponents.set('progress', Progress);
68
67
  hostComponents.set('rich-text', RichText);
69
- hostComponents.set('iframe', Iframe);
70
68
  export default hostComponents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/adapter",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
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.1",
24
+ "@ray-js/types": "^1.2.2",
25
25
  "concurrently": "^6.2.1"
26
26
  },
27
27
  "maintainers": [
@@ -31,10 +31,10 @@
31
31
  }
32
32
  ],
33
33
  "dependencies": {
34
- "@ray-core/runtime": "^0.2.1",
35
- "@ray-core/shared": "^0.2.1",
36
- "@ray-core/types": "^0.2.1"
34
+ "@ray-core/runtime": "^0.2.3",
35
+ "@ray-core/shared": "^0.2.3",
36
+ "@ray-core/types": "^0.2.3"
37
37
  },
38
- "gitHead": "2bfdb0b62fdd4fa36e82f661712fc57eccb51f4c",
38
+ "gitHead": "e517fe5da418e0caa4c69c9331499d510472dc5e",
39
39
  "repository": {}
40
40
  }