@ray-js/adapter 0.9.1 → 0.9.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.
@@ -14,5 +14,10 @@ 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;
17
22
  }
18
23
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -9,4 +9,9 @@ exports.ScrollView.defaultProps = {
9
9
  scrollX: false,
10
10
  scrollY: false,
11
11
  scrollWithAnimation: false,
12
+ refresherEnabled: false,
13
+ refresherThreshold: 45,
14
+ refresherDefaultStyle: 'black',
15
+ refresherBackground: '#FFF',
16
+ refresherTriggered: false,
12
17
  };
@@ -16,12 +16,11 @@ export declare const alias: {
16
16
  onScrollToUpper: string;
17
17
  onScrollToLower: string;
18
18
  onScroll: string;
19
- onTap: string;
20
- onTouchStart: string;
21
- onTouchEnd: string;
22
- onTouchMove: string;
23
- onTouchCancel: string;
24
- onClick: string;
19
+ refresherEnabled: string;
20
+ refresherThreshold: string;
21
+ refresherDefaultStyle: string;
22
+ refresherBackground: string;
23
+ refresherTriggered: string;
25
24
  disableScroll: string;
26
25
  hoverClass: string;
27
26
  hoverClassName: string;
@@ -29,6 +28,12 @@ export declare const alias: {
29
28
  hoverStayTime: string;
30
29
  hidden: string;
31
30
  hoverStopPropagation: string;
31
+ onTap: string;
32
+ onClick: string;
33
+ onTouchStart: string;
34
+ onTouchMove: string;
35
+ onTouchEnd: string;
36
+ onTouchCancel: string;
32
37
  onLongTap: string;
33
38
  onLongClick: string;
34
39
  onLongPress: 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), { 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', onTap: 'bindtap', onTouchStart: 'bindtouchstart', onTouchEnd: 'bindtouchend', onTouchMove: 'bindtouchmove', onTouchCancel: 'bindtouchcancel', onClick: 'bindtap' });
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', refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered' });
6
6
  exports.props = Object.values(exports.alias);
@@ -14,5 +14,10 @@ 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;
17
22
  }
18
23
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -6,4 +6,9 @@ ScrollView.defaultProps = {
6
6
  scrollX: false,
7
7
  scrollY: false,
8
8
  scrollWithAnimation: false,
9
+ refresherEnabled: false,
10
+ refresherThreshold: 45,
11
+ refresherDefaultStyle: 'black',
12
+ refresherBackground: '#FFF',
13
+ refresherTriggered: false,
9
14
  };
@@ -16,12 +16,11 @@ export declare const alias: {
16
16
  onScrollToUpper: string;
17
17
  onScrollToLower: string;
18
18
  onScroll: string;
19
- onTap: string;
20
- onTouchStart: string;
21
- onTouchEnd: string;
22
- onTouchMove: string;
23
- onTouchCancel: string;
24
- onClick: string;
19
+ refresherEnabled: string;
20
+ refresherThreshold: string;
21
+ refresherDefaultStyle: string;
22
+ refresherBackground: string;
23
+ refresherTriggered: string;
25
24
  disableScroll: string;
26
25
  hoverClass: string;
27
26
  hoverClassName: string;
@@ -29,6 +28,12 @@ export declare const alias: {
29
28
  hoverStayTime: string;
30
29
  hidden: string;
31
30
  hoverStopPropagation: string;
31
+ onTap: string;
32
+ onClick: string;
33
+ onTouchStart: string;
34
+ onTouchMove: string;
35
+ onTouchEnd: string;
36
+ onTouchCancel: string;
32
37
  onLongTap: string;
33
38
  onLongClick: string;
34
39
  onLongPress: string;
@@ -1,3 +1,3 @@
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', onTap: 'bindtap', onTouchStart: 'bindtouchstart', onTouchEnd: 'bindtouchend', onTouchMove: 'bindtouchmove', onTouchCancel: 'bindtouchcancel', onClick: 'bindtap' });
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', refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered' });
3
3
  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.1",
3
+ "version": "0.9.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": "^0.9.1",
24
+ "@ray-js/types": "^0.9.2",
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": "df36c441ce238cbfd81d52852d5243fc39fb70fb",
38
+ "gitHead": "1c71b873519e3aaf6dd2395df595ab6b8e0c201c",
39
39
  "repository": {}
40
40
  }