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.
@@ -41,7 +41,7 @@ export interface IAppliParams {
41
41
  scaleMode: ScaleMode;
42
42
  /**
43
43
  * 日志级别
44
- * @default 'info'
44
+ * @default 'warn'
45
45
  */
46
46
  logLevel: 'info' | 'warn' | 'error';
47
47
  /**
@@ -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<unknown>;
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.1",
3
+ "version": "3.2.3",
4
4
  "description": "larksr websdk. http://www.pingxingyun.com",
5
- "keywords": ["pingxingyun", "larksr", "cloudrendeing", "webrtc", "cloudxr"],
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",