@ray-js/adapter 0.9.3 → 0.9.4
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/CHANGELOG.md +6 -0
- package/cjs/hostComponents/RichText/index.d.ts +13 -0
- package/cjs/hostComponents/RichText/index.js +6 -0
- package/cjs/hostComponents/RichText/node.d.ts +28 -0
- package/cjs/hostComponents/RichText/node.js +6 -0
- package/cjs/hostComponents/index.d.ts +1 -0
- package/cjs/hostComponents/index.js +1 -0
- package/cjs/hostComponents/node.js +2 -0
- package/esm/hostComponents/RichText/index.d.ts +13 -0
- package/esm/hostComponents/RichText/index.js +3 -0
- package/esm/hostComponents/RichText/node.d.ts +28 -0
- package/esm/hostComponents/RichText/node.js +3 -0
- package/esm/hostComponents/index.d.ts +1 -0
- package/esm/hostComponents/index.js +1 -0
- package/esm/hostComponents/node.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.9.4-beta-1](./compare/v0.9.0...v0.9.4-beta-1) (2023-03-06)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- 添加 rich-text 去掉 lineaGradient ([442e11d](./commit/442e11da734b54c1b013482f49627738361f372f))
|
|
10
|
+
|
|
5
11
|
### [0.9.1-beta-1](./compare/v0.9.0...v0.9.1-beta-1) (2023-02-22)
|
|
6
12
|
|
|
7
13
|
**Note:** Version bump only for package @ray-js/adapter
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
declare type RichTextNode = {
|
|
4
|
+
name: string;
|
|
5
|
+
attrs?: Record<string, unknown>;
|
|
6
|
+
children?: RichTextNode[];
|
|
7
|
+
};
|
|
8
|
+
export interface RichTextProps extends BaseProps {
|
|
9
|
+
/** 节点列表/HTML String,现支持两种节点,通过 type 来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的 HTML 节点。 */
|
|
10
|
+
nodes?: string | RichTextNode[];
|
|
11
|
+
}
|
|
12
|
+
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
nodes: string;
|
|
3
|
+
id: string;
|
|
4
|
+
disableScroll: string;
|
|
5
|
+
hoverClass: string;
|
|
6
|
+
hoverClassName: string;
|
|
7
|
+
hoverStartTime: string;
|
|
8
|
+
hoverStayTime: string;
|
|
9
|
+
hidden: string;
|
|
10
|
+
className: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
style: string;
|
|
13
|
+
hoverStopPropagation: string;
|
|
14
|
+
onTap: string;
|
|
15
|
+
onClick: string;
|
|
16
|
+
onTouchStart: string;
|
|
17
|
+
onTouchMove: string;
|
|
18
|
+
onTouchEnd: string;
|
|
19
|
+
onTouchCancel: string;
|
|
20
|
+
onLongTap: string;
|
|
21
|
+
onLongClick: string;
|
|
22
|
+
onLongPress: string;
|
|
23
|
+
onTransitionEnd: string;
|
|
24
|
+
onAnimationIteration: string;
|
|
25
|
+
onAnimationStart: string;
|
|
26
|
+
onAnimationEnd: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
const universal_1 = require("../universal");
|
|
5
|
+
exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { nodes: 'nodes' });
|
|
6
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -55,6 +55,7 @@ const NativeVideo = __importStar(require("./NativeVideo/node"));
|
|
|
55
55
|
const WebView = __importStar(require("./WebView/node"));
|
|
56
56
|
const MapView = __importStar(require("./Map/node"));
|
|
57
57
|
const Camera = __importStar(require("./Camera/node"));
|
|
58
|
+
const RichText = __importStar(require("./RichText/node"));
|
|
58
59
|
const hostComponents = new Map();
|
|
59
60
|
hostComponents.set('button', Button);
|
|
60
61
|
hostComponents.set('canvas', Canvas);
|
|
@@ -88,4 +89,5 @@ hostComponents.set('web-view', WebView);
|
|
|
88
89
|
hostComponents.set('map', MapView);
|
|
89
90
|
hostComponents.set('camera', Camera);
|
|
90
91
|
hostComponents.set('progress', Progress);
|
|
92
|
+
hostComponents.set('rich-text', RichText);
|
|
91
93
|
exports.default = hostComponents;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
declare type RichTextNode = {
|
|
4
|
+
name: string;
|
|
5
|
+
attrs?: Record<string, unknown>;
|
|
6
|
+
children?: RichTextNode[];
|
|
7
|
+
};
|
|
8
|
+
export interface RichTextProps extends BaseProps {
|
|
9
|
+
/** 节点列表/HTML String,现支持两种节点,通过 type 来区分,分别是元素节点和文本节点,默认是元素节点,在富文本区域里显示的 HTML 节点。 */
|
|
10
|
+
nodes?: string | RichTextNode[];
|
|
11
|
+
}
|
|
12
|
+
export declare const RichText: React.ComponentType<RichTextProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
nodes: string;
|
|
3
|
+
id: string;
|
|
4
|
+
disableScroll: string;
|
|
5
|
+
hoverClass: string;
|
|
6
|
+
hoverClassName: string;
|
|
7
|
+
hoverStartTime: string;
|
|
8
|
+
hoverStayTime: string;
|
|
9
|
+
hidden: string;
|
|
10
|
+
className: string;
|
|
11
|
+
animation: string;
|
|
12
|
+
style: string;
|
|
13
|
+
hoverStopPropagation: string;
|
|
14
|
+
onTap: string;
|
|
15
|
+
onClick: string;
|
|
16
|
+
onTouchStart: string;
|
|
17
|
+
onTouchMove: string;
|
|
18
|
+
onTouchEnd: string;
|
|
19
|
+
onTouchCancel: string;
|
|
20
|
+
onLongTap: string;
|
|
21
|
+
onLongClick: string;
|
|
22
|
+
onLongPress: string;
|
|
23
|
+
onTransitionEnd: string;
|
|
24
|
+
onAnimationIteration: string;
|
|
25
|
+
onAnimationStart: string;
|
|
26
|
+
onAnimationEnd: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const props: string[];
|
|
@@ -30,6 +30,7 @@ import * as NativeVideo from './NativeVideo/node';
|
|
|
30
30
|
import * as WebView from './WebView/node';
|
|
31
31
|
import * as MapView from './Map/node';
|
|
32
32
|
import * as Camera from './Camera/node';
|
|
33
|
+
import * as RichText from './RichText/node';
|
|
33
34
|
const hostComponents = new Map();
|
|
34
35
|
hostComponents.set('button', Button);
|
|
35
36
|
hostComponents.set('canvas', Canvas);
|
|
@@ -63,4 +64,5 @@ hostComponents.set('web-view', WebView);
|
|
|
63
64
|
hostComponents.set('map', MapView);
|
|
64
65
|
hostComponents.set('camera', Camera);
|
|
65
66
|
hostComponents.set('progress', Progress);
|
|
67
|
+
hostComponents.set('rich-text', RichText);
|
|
66
68
|
export default hostComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/adapter",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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.4",
|
|
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": "f95a98a41f9fe156b5aa9356057b560287ab3c3b",
|
|
39
39
|
"repository": {}
|
|
40
40
|
}
|