@ray-js/adapter 1.4.0-alpha.9 → 1.4.0
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/Button/index.d.ts +6 -0
- package/cjs/hostComponents/Button/node.d.ts +1 -0
- package/cjs/hostComponents/Button/node.js +3 -1
- package/cjs/hostComponents/Input/index.d.ts +1 -0
- package/cjs/hostComponents/Input/node.d.ts +1 -0
- package/cjs/hostComponents/Input/node.js +1 -1
- package/cjs/hostComponents/RichText/index.d.ts +1 -0
- package/cjs/hostComponents/RichText/node.d.ts +1 -0
- package/cjs/hostComponents/RichText/node.js +1 -1
- package/esm/hostComponents/Button/index.d.ts +6 -0
- package/esm/hostComponents/Button/node.d.ts +1 -0
- package/esm/hostComponents/Button/node.js +3 -1
- package/esm/hostComponents/Input/index.d.ts +1 -0
- package/esm/hostComponents/Input/node.d.ts +1 -0
- package/esm/hostComponents/Input/node.js +1 -1
- package/esm/hostComponents/RichText/index.d.ts +1 -0
- package/esm/hostComponents/RichText/node.d.ts +1 -0
- package/esm/hostComponents/RichText/node.js +1 -1
- package/node.js +1 -0
- package/package.json +3 -2
|
@@ -12,5 +12,11 @@ export interface ButtonProps extends BaseProps {
|
|
|
12
12
|
hoverStayTime?: number;
|
|
13
13
|
hoverStopPropagation?: boolean;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
+
openType?: string;
|
|
16
|
+
onFeedback?: (event: TouchEvent & {
|
|
17
|
+
detail: {
|
|
18
|
+
type: 'success' | 'fail';
|
|
19
|
+
};
|
|
20
|
+
}) => void;
|
|
15
21
|
}
|
|
16
22
|
export declare const Button: React.ComponentType<ButtonProps>;
|
|
@@ -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), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress'
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress',
|
|
6
|
+
// ray 1.3.20添加
|
|
7
|
+
onFeedback: 'bindfeedback' });
|
|
6
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), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', confirmType: 'confirm-type', indentStart: 'indent-start', indentEnd: 'indent-end', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', confirmType: 'confirm-type', indentStart: 'indent-start', indentEnd: 'indent-end', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -8,6 +8,7 @@ type RichTextNode = {
|
|
|
8
8
|
export interface RichTextProps extends BaseProps {
|
|
9
9
|
/** 节点列表/HTML String,现支持两种节点,通过 type 来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的 HTML 节点。 */
|
|
10
10
|
nodes?: string | RichTextNode[];
|
|
11
|
+
onSelect: (e: any) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
13
14
|
export {};
|
|
@@ -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), { nodes: 'nodes' });
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { nodes: 'nodes', onSelect: 'bindselect' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -12,5 +12,11 @@ export interface ButtonProps extends BaseProps {
|
|
|
12
12
|
hoverStayTime?: number;
|
|
13
13
|
hoverStopPropagation?: boolean;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
+
openType?: string;
|
|
16
|
+
onFeedback?: (event: TouchEvent & {
|
|
17
|
+
detail: {
|
|
18
|
+
type: 'success' | 'fail';
|
|
19
|
+
};
|
|
20
|
+
}) => void;
|
|
15
21
|
}
|
|
16
22
|
export declare const Button: React.ComponentType<ButtonProps>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress'
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', id: 'id', style: 'style', size: 'size', type: 'type', plain: 'plain', disabled: 'disabled', loading: 'loading', formType: 'form-type', openType: 'open-type', hoverClassName: 'hover-class', hoverStartTime: 'hover-start-time', hoverStayTime: 'hover-stay-time', hoverStopPropagation: 'hover-stop-propagation', onGetPhoneNumber: 'bindgetphonenumber', onTap: 'bindtap', onClick: 'bindtap', onTouchStart: 'bindtouchstart', onTouchMove: 'bindtouchmove', onTouchEnd: 'bindtouchend', onTouchCancel: 'bindtouchcancel', onLongTap: 'bindlongtap', onLongClick: 'bindlongtap', onLongPress: 'bindlongpress',
|
|
3
|
+
// ray 1.3.20添加
|
|
4
|
+
onFeedback: 'bindfeedback' });
|
|
3
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), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', confirmType: 'confirm-type', indentStart: 'indent-start', indentEnd: 'indent-end', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { id: 'id', className: 'class', animation: 'animation', style: 'style', value: 'value', type: 'type', password: 'password', placeholder: 'placeholder', placeholderStyle: 'placeholder-style', disabled: 'disabled', maxLength: 'maxlength', maxlength: 'maxlength', confirmType: 'confirm-type', indentStart: 'indent-start', indentEnd: 'indent-end', onInput: 'bindinput', onFocus: 'bindfocus', onBlur: 'bindblur', onConfirm: 'bindconfirm' });
|
|
3
3
|
export const props = Object.values(alias);
|
|
@@ -8,6 +8,7 @@ type RichTextNode = {
|
|
|
8
8
|
export interface RichTextProps extends BaseProps {
|
|
9
9
|
/** 节点列表/HTML String,现支持两种节点,通过 type 来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的 HTML 节点。 */
|
|
10
10
|
nodes?: string | RichTextNode[];
|
|
11
|
+
onSelect: (e: any) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
13
14
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { universalAlias } from '../universal';
|
|
2
|
-
export const alias = Object.assign(Object.assign({}, universalAlias), { nodes: 'nodes' });
|
|
2
|
+
export const alias = Object.assign(Object.assign({}, universalAlias), { nodes: 'nodes', onSelect: 'bindselect' });
|
|
3
3
|
export const props = Object.values(alias);
|
package/node.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/node')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/adapter",
|
|
3
|
-
"version": "1.4.0
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Ray adapter for tuya",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
"cjs",
|
|
20
20
|
"esm",
|
|
21
|
+
"node.js",
|
|
21
22
|
"templates"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"@ray-core/types": "^0.3.6"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@ray-js/types": "^1.4.0
|
|
37
|
+
"@ray-js/types": "^1.4.0",
|
|
37
38
|
"concurrently": "^6.5.1"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|