@ray-js/adapter 0.9.1 → 0.9.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/ScrollView/index.d.ts +9 -0
- package/cjs/hostComponents/ScrollView/index.js +5 -0
- package/cjs/hostComponents/ScrollView/node.d.ts +15 -6
- package/cjs/hostComponents/ScrollView/node.js +3 -1
- package/esm/hostComponents/ScrollView/index.d.ts +9 -0
- package/esm/hostComponents/ScrollView/index.js +5 -0
- package/esm/hostComponents/ScrollView/node.d.ts +15 -6
- package/esm/hostComponents/ScrollView/node.js +3 -1
- package/package.json +3 -3
|
@@ -14,5 +14,14 @@ export interface ScrollViewProps extends BaseProps {
|
|
|
14
14
|
onScrollToLower?: (event: GenericEvent) => void;
|
|
15
15
|
enableBackToTop?: boolean;
|
|
16
16
|
enableFlex?: boolean;
|
|
17
|
+
refresherEnabled?: boolean;
|
|
18
|
+
refresherThreshold?: number;
|
|
19
|
+
refresherDefaultStyle?: string;
|
|
20
|
+
refresherBackground?: string;
|
|
21
|
+
refresherTriggered: boolean;
|
|
22
|
+
onRefresherpulling?: (event: GenericEvent) => void;
|
|
23
|
+
onRefresherrefresh?: (event: GenericEvent) => void;
|
|
24
|
+
onRefresherrestore?: (event: GenericEvent) => void;
|
|
25
|
+
onRefresherabort?: (event: GenericEvent) => void;
|
|
17
26
|
}
|
|
18
27
|
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -16,12 +16,15 @@ export declare const alias: {
|
|
|
16
16
|
onScrollToUpper: string;
|
|
17
17
|
onScrollToLower: string;
|
|
18
18
|
onScroll: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
refresherEnabled: string;
|
|
20
|
+
refresherThreshold: string;
|
|
21
|
+
refresherDefaultStyle: string;
|
|
22
|
+
refresherBackground: string;
|
|
23
|
+
refresherTriggered: string;
|
|
24
|
+
onRefresherpulling: string;
|
|
25
|
+
onRefresherrefresh: string;
|
|
26
|
+
onRefresherrestore: string;
|
|
27
|
+
onRefresherabort: string;
|
|
25
28
|
disableScroll: string;
|
|
26
29
|
hoverClass: string;
|
|
27
30
|
hoverClassName: string;
|
|
@@ -29,6 +32,12 @@ export declare const alias: {
|
|
|
29
32
|
hoverStayTime: string;
|
|
30
33
|
hidden: string;
|
|
31
34
|
hoverStopPropagation: string;
|
|
35
|
+
onTap: string;
|
|
36
|
+
onClick: string;
|
|
37
|
+
onTouchStart: string;
|
|
38
|
+
onTouchMove: string;
|
|
39
|
+
onTouchEnd: string;
|
|
40
|
+
onTouchCancel: string;
|
|
32
41
|
onLongTap: string;
|
|
33
42
|
onLongClick: string;
|
|
34
43
|
onLongPress: string;
|
|
@@ -2,5 +2,7 @@
|
|
|
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', 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',
|
|
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
|
+
/* 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' });
|
|
6
8
|
exports.props = Object.values(exports.alias);
|
|
@@ -14,5 +14,14 @@ export interface ScrollViewProps extends BaseProps {
|
|
|
14
14
|
onScrollToLower?: (event: GenericEvent) => void;
|
|
15
15
|
enableBackToTop?: boolean;
|
|
16
16
|
enableFlex?: boolean;
|
|
17
|
+
refresherEnabled?: boolean;
|
|
18
|
+
refresherThreshold?: number;
|
|
19
|
+
refresherDefaultStyle?: string;
|
|
20
|
+
refresherBackground?: string;
|
|
21
|
+
refresherTriggered: boolean;
|
|
22
|
+
onRefresherpulling?: (event: GenericEvent) => void;
|
|
23
|
+
onRefresherrefresh?: (event: GenericEvent) => void;
|
|
24
|
+
onRefresherrestore?: (event: GenericEvent) => void;
|
|
25
|
+
onRefresherabort?: (event: GenericEvent) => void;
|
|
17
26
|
}
|
|
18
27
|
export declare const ScrollView: React.ComponentType<ScrollViewProps>;
|
|
@@ -16,12 +16,15 @@ export declare const alias: {
|
|
|
16
16
|
onScrollToUpper: string;
|
|
17
17
|
onScrollToLower: string;
|
|
18
18
|
onScroll: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
refresherEnabled: string;
|
|
20
|
+
refresherThreshold: string;
|
|
21
|
+
refresherDefaultStyle: string;
|
|
22
|
+
refresherBackground: string;
|
|
23
|
+
refresherTriggered: string;
|
|
24
|
+
onRefresherpulling: string;
|
|
25
|
+
onRefresherrefresh: string;
|
|
26
|
+
onRefresherrestore: string;
|
|
27
|
+
onRefresherabort: string;
|
|
25
28
|
disableScroll: string;
|
|
26
29
|
hoverClass: string;
|
|
27
30
|
hoverClassName: string;
|
|
@@ -29,6 +32,12 @@ export declare const alias: {
|
|
|
29
32
|
hoverStayTime: string;
|
|
30
33
|
hidden: string;
|
|
31
34
|
hoverStopPropagation: string;
|
|
35
|
+
onTap: string;
|
|
36
|
+
onClick: string;
|
|
37
|
+
onTouchStart: string;
|
|
38
|
+
onTouchMove: string;
|
|
39
|
+
onTouchEnd: string;
|
|
40
|
+
onTouchCancel: string;
|
|
32
41
|
onLongTap: string;
|
|
33
42
|
onLongClick: string;
|
|
34
43
|
onLongPress: string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
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',
|
|
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
|
+
/* 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' });
|
|
3
5
|
export const props = Object.values(alias);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/adapter",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.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": "^0.9.
|
|
24
|
+
"@ray-js/types": "^0.9.3",
|
|
25
25
|
"concurrently": "^6.2.1"
|
|
26
26
|
},
|
|
27
27
|
"maintainers": [
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"@ray-core/shared": "^0.1.3",
|
|
36
36
|
"@ray-core/types": "^0.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "a4c8ce772a66378d4839e796a8c71909fa11f8ad",
|
|
39
39
|
"repository": {}
|
|
40
40
|
}
|