larksr_websdk 3.2.1 → 3.2.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.
- package/README.md +29 -12
- package/dist/doc/config.md +108 -0
- package/dist/doc/events.md +129 -0
- package/dist/doc/functions.md +65 -0
- package/dist/doc/index.md +65 -0
- package/dist/larksr-web-sdk.min.js +1 -1
- package/dist/types/appli_params.d.ts +1 -1
- package/dist/types/larksr.d.ts +7 -1
- package/package.json +11 -5
package/dist/types/larksr.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fcx@pingxingyun.com
|
|
3
|
+
* www.pingxingyun.com
|
|
4
|
+
*/
|
|
1
5
|
import { EventBase, LocalEvent } from './event/event_base';
|
|
2
6
|
import Application, { APP_STATE } from './lark/application';
|
|
3
7
|
import { AppliParams, AppliParamsUtils, IAppliParams, LoadAppliParamsFromUrl, LoadAppliParamsStartAppInfo } from './appli_params';
|
|
@@ -162,6 +166,8 @@ interface LarkSREvent extends LocalEvent<LarkSRClientEvent> {
|
|
|
162
166
|
interface ILarkSRConfig {
|
|
163
167
|
/**
|
|
164
168
|
* 必选项 根元素。组件会挂载到跟元素下面
|
|
169
|
+
* 注意*不要*设置为 document.documentElement
|
|
170
|
+
* 默认模式下会通过旋转根元素实现强制横屏模式。
|
|
165
171
|
* @see handelRootElementSize
|
|
166
172
|
* @see scaleMode
|
|
167
173
|
*/
|
|
@@ -274,7 +280,7 @@ export declare function CreateLarkSRClientFromeAPI(config: ILarkSRConfig, params
|
|
|
274
280
|
* @param config 传入 config @see ILarkSRConfig
|
|
275
281
|
* @returns Promise 创建 larksr client 是否成功
|
|
276
282
|
*/
|
|
277
|
-
export declare function CreateLarkSRClientFromeUrl(config: ILarkSRConfig): Promise<
|
|
283
|
+
export declare function CreateLarkSRClientFromeUrl(config: ILarkSRConfig): Promise<LarkSR>;
|
|
278
284
|
declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
279
285
|
/**
|
|
280
286
|
* 应用参数,构建时传入
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "larksr_websdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "larksr websdk. http://www.pingxingyun.com",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pingxingyun",
|
|
7
|
+
"larksr",
|
|
8
|
+
"cloudrendeing",
|
|
9
|
+
"webrtc",
|
|
10
|
+
"cloudxr"
|
|
11
|
+
],
|
|
6
12
|
"main": "./dist/larksr-web-sdk.min.js",
|
|
7
13
|
"types": "./dist/types/index.d.ts",
|
|
8
14
|
"files": [
|
|
@@ -14,7 +20,7 @@
|
|
|
14
20
|
"build": "webpack --config webpack.config.js",
|
|
15
21
|
"build:typings": "tsc --build tsconfig.type.json",
|
|
16
22
|
"copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/types/",
|
|
17
|
-
"dist": "webpack --config webpack.config.js && copyfiles -u 1 \"src/**/*.d.ts\" dist/types/"
|
|
23
|
+
"dist": "webpack --config webpack.config.js && copyfiles -u 1 \"src/**/*.d.ts\" dist/types/ && copyfiles -u 1 \"doc/*\" dist/doc/"
|
|
18
24
|
},
|
|
19
25
|
"author": "fcx@pingxingyun.com",
|
|
20
26
|
"license": "ISC",
|
|
@@ -27,10 +33,10 @@
|
|
|
27
33
|
"webrtc-adapter": "^8.1.0"
|
|
28
34
|
},
|
|
29
35
|
"devDependencies": {
|
|
30
|
-
"@types/crypto-js": "^4.0.2",
|
|
31
|
-
"@types/webrtc": "^0.0.30",
|
|
32
36
|
"@babel/core": "^7.15.5",
|
|
33
37
|
"@tsconfig/svelte": "^2.0.1",
|
|
38
|
+
"@types/crypto-js": "^4.0.2",
|
|
39
|
+
"@types/webrtc": "^0.0.30",
|
|
34
40
|
"babel-loader": "^8.2.2",
|
|
35
41
|
"clean-webpack-plugin": "^4.0.0",
|
|
36
42
|
"css-loader": "^6.3.0",
|