@rsmax/toutiao 1.3.8 → 1.3.9
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 +21 -0
- package/cjs/api/index.d.ts +1981 -1047
- package/cjs/api/index.js +313 -90
- package/cjs/hostComponents/Ad/index.d.ts +12 -0
- package/cjs/hostComponents/Ad/index.js +8 -0
- package/cjs/hostComponents/Ad/node.d.ts +10 -0
- package/cjs/hostComponents/Ad/node.js +13 -0
- package/cjs/hostComponents/Camera/index.d.ts +19 -0
- package/cjs/hostComponents/Camera/index.js +5 -0
- package/cjs/hostComponents/Camera/node.d.ts +17 -0
- package/cjs/hostComponents/Camera/node.js +20 -0
- package/cjs/hostComponents/LivePlayer/index.d.ts +28 -0
- package/cjs/hostComponents/LivePlayer/index.js +5 -0
- package/cjs/hostComponents/LivePlayer/node.d.ts +18 -0
- package/cjs/hostComponents/LivePlayer/node.js +21 -0
- package/cjs/hostComponents/LivePreview/index.d.ts +18 -0
- package/cjs/hostComponents/LivePreview/index.js +5 -0
- package/cjs/hostComponents/LivePreview/node.d.ts +16 -0
- package/cjs/hostComponents/LivePreview/node.js +19 -0
- package/cjs/hostComponents/Map/index.d.ts +115 -0
- package/cjs/hostComponents/Map/index.js +5 -0
- package/cjs/hostComponents/Map/node.d.ts +35 -0
- package/cjs/hostComponents/Map/node.js +38 -0
- package/cjs/hostComponents/Mask/index.d.ts +12 -0
- package/cjs/hostComponents/Mask/index.js +13 -0
- package/cjs/hostComponents/Mask/node.d.ts +7 -0
- package/cjs/hostComponents/Mask/node.js +10 -0
- package/cjs/hostComponents/MatchMedia/index.d.ts +18 -0
- package/cjs/hostComponents/MatchMedia/index.js +9 -0
- package/cjs/hostComponents/MatchMedia/node.d.ts +8 -0
- package/cjs/hostComponents/MatchMedia/node.js +11 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +1 -1
- package/cjs/hostComponents/MovableView/index.d.ts +1 -1
- package/cjs/hostComponents/Progress/index.d.ts +1 -0
- package/cjs/hostComponents/Progress/node.d.ts +1 -0
- package/cjs/hostComponents/Progress/node.js +1 -0
- package/cjs/hostComponents/RichText/index.d.ts +1 -0
- package/cjs/hostComponents/RtcRoom/index.d.ts +10 -0
- package/cjs/hostComponents/RtcRoom/index.js +5 -0
- package/cjs/hostComponents/RtcRoom/node.d.ts +10 -0
- package/cjs/hostComponents/RtcRoom/node.js +13 -0
- package/cjs/hostComponents/index.d.ts +8 -0
- package/cjs/hostComponents/index.js +8 -0
- package/cjs/hostComponents/node.js +16 -0
- package/esm/api/index.d.ts +1981 -1047
- package/esm/api/index.js +308 -87
- package/esm/hostComponents/Ad/index.d.ts +12 -0
- package/esm/hostComponents/Ad/index.js +5 -0
- package/esm/hostComponents/Ad/node.d.ts +10 -0
- package/esm/hostComponents/Ad/node.js +10 -0
- package/esm/hostComponents/Camera/index.d.ts +19 -0
- package/esm/hostComponents/Camera/index.js +2 -0
- package/esm/hostComponents/Camera/node.d.ts +17 -0
- package/esm/hostComponents/Camera/node.js +17 -0
- package/esm/hostComponents/LivePlayer/index.d.ts +28 -0
- package/esm/hostComponents/LivePlayer/index.js +2 -0
- package/esm/hostComponents/LivePlayer/node.d.ts +18 -0
- package/esm/hostComponents/LivePlayer/node.js +18 -0
- package/esm/hostComponents/LivePreview/index.d.ts +18 -0
- package/esm/hostComponents/LivePreview/index.js +2 -0
- package/esm/hostComponents/LivePreview/node.d.ts +16 -0
- package/esm/hostComponents/LivePreview/node.js +16 -0
- package/esm/hostComponents/Map/index.d.ts +115 -0
- package/esm/hostComponents/Map/index.js +2 -0
- package/esm/hostComponents/Map/node.d.ts +35 -0
- package/esm/hostComponents/Map/node.js +35 -0
- package/esm/hostComponents/Mask/index.d.ts +12 -0
- package/esm/hostComponents/Mask/index.js +10 -0
- package/esm/hostComponents/Mask/node.d.ts +7 -0
- package/esm/hostComponents/Mask/node.js +7 -0
- package/esm/hostComponents/MatchMedia/index.d.ts +18 -0
- package/esm/hostComponents/MatchMedia/index.js +6 -0
- package/esm/hostComponents/MatchMedia/node.d.ts +8 -0
- package/esm/hostComponents/MatchMedia/node.js +8 -0
- package/esm/hostComponents/MovableArea/index.d.ts +1 -1
- package/esm/hostComponents/MovableView/index.d.ts +1 -1
- package/esm/hostComponents/Progress/index.d.ts +1 -0
- package/esm/hostComponents/Progress/node.d.ts +1 -0
- package/esm/hostComponents/Progress/node.js +1 -0
- package/esm/hostComponents/RichText/index.d.ts +1 -0
- package/esm/hostComponents/RtcRoom/index.d.ts +10 -0
- package/esm/hostComponents/RtcRoom/index.js +2 -0
- package/esm/hostComponents/RtcRoom/node.d.ts +10 -0
- package/esm/hostComponents/RtcRoom/node.js +10 -0
- package/esm/hostComponents/index.d.ts +8 -0
- package/esm/hostComponents/index.js +8 -0
- package/esm/hostComponents/node.js +16 -0
- package/package.json +7 -7
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
className: 'class',
|
|
6
|
+
id: 'id',
|
|
7
|
+
style: 'style',
|
|
8
|
+
src: 'src',
|
|
9
|
+
autoplay: 'autoplay',
|
|
10
|
+
muted: 'muted',
|
|
11
|
+
orientation: 'orientation',
|
|
12
|
+
objectFit: 'object-fit',
|
|
13
|
+
signature: 'signature',
|
|
14
|
+
showCastingButton: 'show-casting-button',
|
|
15
|
+
onStatechange: 'bindstatechange',
|
|
16
|
+
onFullscreenchange: 'bindfullscreenchange',
|
|
17
|
+
onError: 'binderror',
|
|
18
|
+
onTap: 'bindtap',
|
|
19
|
+
onClick: 'bindtap',
|
|
20
|
+
};
|
|
21
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
/**
|
|
4
|
+
* live-preview
|
|
5
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/media-component/live-preview
|
|
6
|
+
*/
|
|
7
|
+
export interface LivePreviewProps extends BaseProps {
|
|
8
|
+
awemeId: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
imageSrc?: string;
|
|
11
|
+
hideHeader?: boolean;
|
|
12
|
+
onUserPage?: (e: any) => void;
|
|
13
|
+
onLiveRoom?: (e: any) => void;
|
|
14
|
+
onLiveStatus?: (e: any) => void;
|
|
15
|
+
onError?: (e: any) => void;
|
|
16
|
+
onClick?: (e: any) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const LivePreview: React.ComponentType<LivePreviewProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
className: string;
|
|
3
|
+
id: string;
|
|
4
|
+
style: string;
|
|
5
|
+
awemeId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
imageSrc: string;
|
|
8
|
+
hideHeader: string;
|
|
9
|
+
onUserPage: string;
|
|
10
|
+
onLiveRoom: string;
|
|
11
|
+
onLiveStatus: string;
|
|
12
|
+
onError: string;
|
|
13
|
+
onTap: string;
|
|
14
|
+
onClick: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
className: 'class',
|
|
6
|
+
id: 'id',
|
|
7
|
+
style: 'style',
|
|
8
|
+
awemeId: 'aweme-id',
|
|
9
|
+
title: 'title',
|
|
10
|
+
imageSrc: 'image-src',
|
|
11
|
+
hideHeader: 'hide-header',
|
|
12
|
+
onUserPage: 'bindUserPage',
|
|
13
|
+
onLiveRoom: 'bindLiveRoom',
|
|
14
|
+
onLiveStatus: 'bindLiveStatus',
|
|
15
|
+
onError: 'binderror',
|
|
16
|
+
onTap: 'bindtap',
|
|
17
|
+
onClick: 'bindtap',
|
|
18
|
+
};
|
|
19
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
type Label = {
|
|
4
|
+
content?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
borderRadius?: number;
|
|
8
|
+
padding?: number;
|
|
9
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
10
|
+
borderWidth?: number;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
bgColor?: string;
|
|
13
|
+
anchorX?: number;
|
|
14
|
+
anchorY?: number;
|
|
15
|
+
};
|
|
16
|
+
type Circle = {
|
|
17
|
+
latitude: number;
|
|
18
|
+
longitude: number;
|
|
19
|
+
color?: string;
|
|
20
|
+
fillColor?: string;
|
|
21
|
+
radius?: number;
|
|
22
|
+
strokeWidth?: number;
|
|
23
|
+
};
|
|
24
|
+
type Callout = {
|
|
25
|
+
content?: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
fontSize?: number;
|
|
28
|
+
borderRadius?: number;
|
|
29
|
+
padding?: number;
|
|
30
|
+
display?: 'BYCLICK' | 'ALWAYS';
|
|
31
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
32
|
+
bgColor?: string;
|
|
33
|
+
borderWidth?: number;
|
|
34
|
+
anchorX?: number;
|
|
35
|
+
anchorY?: number;
|
|
36
|
+
};
|
|
37
|
+
type LngLat = {
|
|
38
|
+
latitude: number;
|
|
39
|
+
longitude: number;
|
|
40
|
+
};
|
|
41
|
+
type ArrowOption = {
|
|
42
|
+
show?: boolean;
|
|
43
|
+
color?: string;
|
|
44
|
+
width?: number;
|
|
45
|
+
spaceWidth?: number;
|
|
46
|
+
};
|
|
47
|
+
type Polyline = {
|
|
48
|
+
points: LngLat[];
|
|
49
|
+
color?: string;
|
|
50
|
+
width?: number;
|
|
51
|
+
dottedLine?: boolean;
|
|
52
|
+
colorList?: string[];
|
|
53
|
+
borderColor?: string;
|
|
54
|
+
borderWidth?: string;
|
|
55
|
+
arrowOption?: ArrowOption;
|
|
56
|
+
};
|
|
57
|
+
type Markers = {
|
|
58
|
+
id?: number;
|
|
59
|
+
latitude: number;
|
|
60
|
+
longitude: number;
|
|
61
|
+
title?: string;
|
|
62
|
+
iconPath?: string;
|
|
63
|
+
width?: number;
|
|
64
|
+
height?: number;
|
|
65
|
+
zIndex?: number;
|
|
66
|
+
callout?: Callout;
|
|
67
|
+
alpha?: number;
|
|
68
|
+
anchorX?: number;
|
|
69
|
+
anchorY?: number;
|
|
70
|
+
rotate?: number;
|
|
71
|
+
label?: Label;
|
|
72
|
+
};
|
|
73
|
+
type Polygon = {
|
|
74
|
+
points: LngLat[];
|
|
75
|
+
strokeWidth?: number;
|
|
76
|
+
strokeColor?: string;
|
|
77
|
+
fillColor?: string;
|
|
78
|
+
zIndex?: number;
|
|
79
|
+
};
|
|
80
|
+
export interface MapProps extends BaseProps {
|
|
81
|
+
longitude: number;
|
|
82
|
+
latitude: number;
|
|
83
|
+
scale?: number;
|
|
84
|
+
markers?: Markers[];
|
|
85
|
+
circles?: Circle[];
|
|
86
|
+
showLocation?: boolean;
|
|
87
|
+
polyline?: Polyline[];
|
|
88
|
+
includePoints?: LngLat[];
|
|
89
|
+
onTap?: (event: any) => void;
|
|
90
|
+
onClick?: (event: any) => void;
|
|
91
|
+
onMarkerTap?: (event: any) => void;
|
|
92
|
+
onCalloutTap?: (event: any) => void;
|
|
93
|
+
onRegionChange?: (event: any) => void;
|
|
94
|
+
rotate?: number;
|
|
95
|
+
skew?: number;
|
|
96
|
+
polygons?: Polygon[];
|
|
97
|
+
showCompass?: number;
|
|
98
|
+
enableOverlooking?: boolean;
|
|
99
|
+
enableRotate?: boolean;
|
|
100
|
+
minScale?: number;
|
|
101
|
+
maxScale?: number;
|
|
102
|
+
enable3D?: boolean;
|
|
103
|
+
showScale?: boolean;
|
|
104
|
+
enableZoom?: boolean;
|
|
105
|
+
enableScroll?: boolean;
|
|
106
|
+
enableSatellite?: boolean;
|
|
107
|
+
enableTraffic?: boolean;
|
|
108
|
+
enablePoi?: boolean;
|
|
109
|
+
enableBuilding?: boolean;
|
|
110
|
+
onLabelTap?: (event: any) => void;
|
|
111
|
+
onUpdated?: (event: any) => void;
|
|
112
|
+
onAnchorPointTap?: (event: any) => void;
|
|
113
|
+
}
|
|
114
|
+
export declare const Map: React.ComponentType<MapProps>;
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const alias: {
|
|
2
|
+
longitude: string;
|
|
3
|
+
latitude: string;
|
|
4
|
+
scale: string;
|
|
5
|
+
markers: string;
|
|
6
|
+
circles: string;
|
|
7
|
+
showLocation: string;
|
|
8
|
+
polyline: string;
|
|
9
|
+
includePoints: string;
|
|
10
|
+
onTap: string;
|
|
11
|
+
onClick: string;
|
|
12
|
+
onMarkerTap: string;
|
|
13
|
+
onCalloutTap: string;
|
|
14
|
+
onRegionChange: string;
|
|
15
|
+
rotate: string;
|
|
16
|
+
skew: string;
|
|
17
|
+
polygons: string;
|
|
18
|
+
showCompass: string;
|
|
19
|
+
enableOverlooking: string;
|
|
20
|
+
enableRotate: string;
|
|
21
|
+
minScale: string;
|
|
22
|
+
maxScale: string;
|
|
23
|
+
enable3D: string;
|
|
24
|
+
showScale: string;
|
|
25
|
+
enableZoom: string;
|
|
26
|
+
enableScroll: string;
|
|
27
|
+
enableSatellite: string;
|
|
28
|
+
enableTraffic: string;
|
|
29
|
+
enablePoi: string;
|
|
30
|
+
enableBuilding: string;
|
|
31
|
+
onLabelTap: string;
|
|
32
|
+
onUpdated: string;
|
|
33
|
+
onAnchorPointTap: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const props: string[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
longitude: 'longitude',
|
|
6
|
+
latitude: 'latitude',
|
|
7
|
+
scale: 'scale',
|
|
8
|
+
markers: 'markers',
|
|
9
|
+
circles: 'circles',
|
|
10
|
+
showLocation: 'show-location',
|
|
11
|
+
polyline: 'polyline',
|
|
12
|
+
includePoints: 'include-points',
|
|
13
|
+
onTap: 'bindtap',
|
|
14
|
+
onClick: 'bindtap',
|
|
15
|
+
onMarkerTap: 'bindmarkertap',
|
|
16
|
+
onCalloutTap: 'bindcallouttap',
|
|
17
|
+
onRegionChange: 'bindregionchange',
|
|
18
|
+
rotate: 'rotate',
|
|
19
|
+
skew: 'skew',
|
|
20
|
+
polygons: 'polygons',
|
|
21
|
+
showCompass: 'show-compass',
|
|
22
|
+
enableOverlooking: 'enable-overlooking',
|
|
23
|
+
enableRotate: 'enable-rotate',
|
|
24
|
+
minScale: 'min-scale',
|
|
25
|
+
maxScale: 'max-scale',
|
|
26
|
+
enable3D: 'enable-3D',
|
|
27
|
+
showScale: 'show-scale',
|
|
28
|
+
enableZoom: 'enable-zoom',
|
|
29
|
+
enableScroll: 'enable-scroll',
|
|
30
|
+
enableSatellite: 'enable-satellite',
|
|
31
|
+
enableTraffic: 'enable-traffic',
|
|
32
|
+
enablePoi: 'enable-poi',
|
|
33
|
+
enableBuilding: 'enable-building',
|
|
34
|
+
onLabelTap: 'bindlabeltap',
|
|
35
|
+
onUpdated: 'bindupdated',
|
|
36
|
+
onAnchorPointTap: 'bindanchorpointtap',
|
|
37
|
+
};
|
|
38
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface MaskProps extends BaseProps {
|
|
4
|
+
hidden?: boolean;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* mask 蒙层
|
|
9
|
+
* 基础库 1.0.0 开始支持本组件。
|
|
10
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/mask
|
|
11
|
+
*/
|
|
12
|
+
export declare const Mask: React.ComponentType<MaskProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Mask = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* mask 蒙层
|
|
7
|
+
* 基础库 1.0.0 开始支持本组件。
|
|
8
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/mask
|
|
9
|
+
*/
|
|
10
|
+
exports.Mask = (0, runtime_1.createHostComponent)('mask');
|
|
11
|
+
exports.Mask.defaultProps = {
|
|
12
|
+
hidden: false,
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
hidden: 'hidden',
|
|
9
|
+
};
|
|
10
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface MatchMediaProps extends BaseProps {
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
width?: number;
|
|
7
|
+
minHeight?: number;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
orientation?: 'portrait' | 'portraitupsidedown' | 'landscapeleft' | 'landscaperight';
|
|
11
|
+
onClick?: (e: any) => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* match-media
|
|
16
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/component-match-media
|
|
17
|
+
*/
|
|
18
|
+
export declare const MatchMedia: React.ComponentType<MatchMediaProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MatchMedia = void 0;
|
|
4
|
+
const runtime_1 = require("@rsmax/runtime");
|
|
5
|
+
/**
|
|
6
|
+
* match-media
|
|
7
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/component-match-media
|
|
8
|
+
*/
|
|
9
|
+
exports.MatchMedia = (0, runtime_1.createHostComponent)('match-media');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
className: 'class',
|
|
6
|
+
id: 'id',
|
|
7
|
+
style: 'style',
|
|
8
|
+
onTap: 'bindtap',
|
|
9
|
+
onClick: 'bindtap',
|
|
10
|
+
};
|
|
11
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '../../types/component';
|
|
3
3
|
/**
|
|
4
|
-
* https://
|
|
4
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/movable-area
|
|
5
5
|
* 基础库 2.25.0 开始支持本组件。
|
|
6
6
|
*/
|
|
7
7
|
export interface MovableAreaProps extends BaseProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
/***
|
|
4
|
-
* https://
|
|
4
|
+
* https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/view-container/movable-view
|
|
5
5
|
* 基础库 2.25.0 开始支持本组件。
|
|
6
6
|
* 可移动的视图容器,在页面中可以拖拽滑动。movable-view 必须在 movable-area 组件中,并且必须是直接子节点,否则不能移动。
|
|
7
7
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '../../types/component';
|
|
3
|
+
export interface RtcRoomProps extends BaseProps {
|
|
4
|
+
userId: string;
|
|
5
|
+
mode?: 'camera' | 'video' | 'screen';
|
|
6
|
+
onError?: (event: any) => void;
|
|
7
|
+
onTap?: (event: any) => void;
|
|
8
|
+
onClick?: (event: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const RtcRoom: React.ComponentType<RtcRoomProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = exports.alias = void 0;
|
|
4
|
+
exports.alias = {
|
|
5
|
+
id: 'id',
|
|
6
|
+
className: 'class',
|
|
7
|
+
style: 'style',
|
|
8
|
+
userId: 'user-id',
|
|
9
|
+
onTap: 'bindtap',
|
|
10
|
+
onClick: 'bindtap',
|
|
11
|
+
onError: 'binderror',
|
|
12
|
+
};
|
|
13
|
+
exports.props = Object.values(exports.alias);
|
|
@@ -27,3 +27,11 @@ export * from './Canvas';
|
|
|
27
27
|
export * from './WebView';
|
|
28
28
|
export * from './MovableArea';
|
|
29
29
|
export * from './MovableView';
|
|
30
|
+
export * from './Mask';
|
|
31
|
+
export * from './Ad';
|
|
32
|
+
export * from './RtcRoom';
|
|
33
|
+
export * from './MatchMedia';
|
|
34
|
+
export * from './LivePlayer';
|
|
35
|
+
export * from './LivePreview';
|
|
36
|
+
export * from './Camera';
|
|
37
|
+
export * from './Map';
|
|
@@ -43,3 +43,11 @@ __exportStar(require("./Canvas"), exports);
|
|
|
43
43
|
__exportStar(require("./WebView"), exports);
|
|
44
44
|
__exportStar(require("./MovableArea"), exports);
|
|
45
45
|
__exportStar(require("./MovableView"), exports);
|
|
46
|
+
__exportStar(require("./Mask"), exports);
|
|
47
|
+
__exportStar(require("./Ad"), exports);
|
|
48
|
+
__exportStar(require("./RtcRoom"), exports);
|
|
49
|
+
__exportStar(require("./MatchMedia"), exports);
|
|
50
|
+
__exportStar(require("./LivePlayer"), exports);
|
|
51
|
+
__exportStar(require("./LivePreview"), exports);
|
|
52
|
+
__exportStar(require("./Camera"), exports);
|
|
53
|
+
__exportStar(require("./Map"), exports);
|
|
@@ -52,6 +52,14 @@ const view = __importStar(require("./View/node"));
|
|
|
52
52
|
const webView = __importStar(require("./WebView/node"));
|
|
53
53
|
const movableArea = __importStar(require("./MovableArea/node"));
|
|
54
54
|
const movableView = __importStar(require("./MovableView/node"));
|
|
55
|
+
const mask = __importStar(require("./Mask/node"));
|
|
56
|
+
const ad = __importStar(require("./Ad/node"));
|
|
57
|
+
const rtcRoom = __importStar(require("./RtcRoom/node"));
|
|
58
|
+
const matchMedia = __importStar(require("./MatchMedia/node"));
|
|
59
|
+
const livePlayer = __importStar(require("./LivePlayer/node"));
|
|
60
|
+
const livePreview = __importStar(require("./LivePreview/node"));
|
|
61
|
+
const camera = __importStar(require("./Camera/node"));
|
|
62
|
+
const map = __importStar(require("./Map/node"));
|
|
55
63
|
const hostComponents = new Map();
|
|
56
64
|
hostComponents.set('button', button);
|
|
57
65
|
hostComponents.set('canvas', canvas);
|
|
@@ -82,4 +90,12 @@ hostComponents.set('view', view);
|
|
|
82
90
|
hostComponents.set('web-view', webView);
|
|
83
91
|
hostComponents.set('movable-area', movableArea);
|
|
84
92
|
hostComponents.set('movable-view', movableView);
|
|
93
|
+
hostComponents.set('mask', mask);
|
|
94
|
+
hostComponents.set('ad', ad);
|
|
95
|
+
hostComponents.set('rtc-room', rtcRoom);
|
|
96
|
+
hostComponents.set('match-media', matchMedia);
|
|
97
|
+
hostComponents.set('live-player', livePlayer);
|
|
98
|
+
hostComponents.set('live-preview', livePreview);
|
|
99
|
+
hostComponents.set('camera', camera);
|
|
100
|
+
hostComponents.set('map', map);
|
|
85
101
|
exports.default = hostComponents;
|