@ray-js/adapter 0.9.2 → 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.
@@ -14,10 +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;
17
+ refresherEnabled?: boolean;
18
+ refresherThreshold?: number;
19
+ refresherDefaultStyle?: string;
20
+ refresherBackground?: string;
21
21
  refresherTriggered: boolean;
22
+ onRefresherpulling?: (event: GenericEvent) => void;
23
+ onRefresherrefresh?: (event: GenericEvent) => void;
24
+ onRefresherrestore?: (event: GenericEvent) => void;
25
+ onRefresherabort?: (event: GenericEvent) => void;
22
26
  }
23
27
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -21,6 +21,10 @@ export declare const alias: {
21
21
  refresherDefaultStyle: string;
22
22
  refresherBackground: string;
23
23
  refresherTriggered: string;
24
+ onRefresherpulling: string;
25
+ onRefresherrefresh: string;
26
+ onRefresherrestore: string;
27
+ onRefresherabort: string;
24
28
  disableScroll: string;
25
29
  hoverClass: string;
26
30
  hoverClassName: 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', refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered' });
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,10 +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;
17
+ refresherEnabled?: boolean;
18
+ refresherThreshold?: number;
19
+ refresherDefaultStyle?: string;
20
+ refresherBackground?: string;
21
21
  refresherTriggered: boolean;
22
+ onRefresherpulling?: (event: GenericEvent) => void;
23
+ onRefresherrefresh?: (event: GenericEvent) => void;
24
+ onRefresherrestore?: (event: GenericEvent) => void;
25
+ onRefresherabort?: (event: GenericEvent) => void;
22
26
  }
23
27
  export declare const ScrollView: React.ComponentType<ScrollViewProps>;
@@ -21,6 +21,10 @@ export declare const alias: {
21
21
  refresherDefaultStyle: string;
22
22
  refresherBackground: string;
23
23
  refresherTriggered: string;
24
+ onRefresherpulling: string;
25
+ onRefresherrefresh: string;
26
+ onRefresherrestore: string;
27
+ onRefresherabort: string;
24
28
  disableScroll: string;
25
29
  hoverClass: string;
26
30
  hoverClassName: 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', refresherEnabled: 'refresher-enabled', refresherThreshold: 'refresher-threshold', refresherDefaultStyle: 'refresher-default-style', refresherBackground: 'refresher-background', refresherTriggered: 'refresher-triggered' });
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.2",
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.2",
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": "1c71b873519e3aaf6dd2395df595ab6b8e0c201c",
38
+ "gitHead": "a4c8ce772a66378d4839e796a8c71909fa11f8ad",
39
39
  "repository": {}
40
40
  }