@plaso-infi/whiteboard-sdk 0.2.6 → 0.3.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/dist/cjs/icon_map-6c5c4fe0-59742d61.js +1 -0
- package/dist/cjs/index-4351ab81.js +73 -0
- package/dist/cjs/index-8df22370-fce50926.js +1 -0
- package/dist/cjs/index.css +1072 -391
- package/dist/cjs/index.d.ts +16 -4
- package/dist/cjs/index.js +1 -1
- package/dist/esm/icon_map-6c5c4fe0-7d298fb1.js +1 -0
- package/dist/esm/index-1a65132d.js +73 -0
- package/dist/esm/index-8df22370-7479587e.js +1 -0
- package/dist/esm/index.css +1072 -391
- package/dist/esm/index.d.ts +16 -4
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/icon_map-045b8a37-62339bc2.js +0 -1
- package/dist/cjs/index-c50caacd-61254089.js +0 -1
- package/dist/cjs/index-f7647a4b.js +0 -73
- package/dist/esm/icon_map-045b8a37-d07f81c3.js +0 -1
- package/dist/esm/index-0dd31a2c.js +0 -73
- package/dist/esm/index-c50caacd-7f8e5116.js +0 -1
- /package/dist/cjs/{hls-1d581e7e-f75a1954.js → hls-34c85692-986afa9a.js} +0 -0
- /package/dist/cjs/{pdf_lib-e6018db4-e8dbafdf.js → pdf_lib-d28baf2f-8e65b405.js} +0 -0
- /package/dist/esm/{hls-1d581e7e-01f74054.js → hls-34c85692-428bbc6b.js} +0 -0
- /package/dist/esm/{pdf_lib-e6018db4-7521e959.js → pdf_lib-d28baf2f-75bb720d.js} +0 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ interface ISdkPluginConstructor {
|
|
|
75
75
|
type InfiWebSdkPlugin = {
|
|
76
76
|
pluginConstructor: ISdkPluginConstructor;
|
|
77
77
|
beforeInit?: (plugin: InfiSdkPluginType) => void;
|
|
78
|
+
/** 当前仅官方 Plugin 可用,详情请参考官方插件文档 */
|
|
79
|
+
config?: Record<string, any>;
|
|
78
80
|
};
|
|
79
81
|
|
|
80
82
|
type ToolBarType = 'sticker' | 'template' | 'shapes' | 'upload' | 'stickyNote' | 'draw' | 'frame' | 'connectLine' | 'table' | 'timer' | 'mindMap' | 'text' | 'comment' | 'webpage' | 'kanban';
|
|
@@ -181,13 +183,20 @@ interface GetSdkInstanceConfigs {
|
|
|
181
183
|
* 尚提供可以切换不同的画布侧环境的配置项入口。后期会移除该配置项,websdk 仅能使用线上环境
|
|
182
184
|
*/
|
|
183
185
|
env?: 'prod' | 'dev' | 'test';
|
|
184
|
-
getElementLink?: (encodeId: string, id: string) => string;
|
|
185
|
-
/** 链接跳转,返回值为string表示跳转元素id */
|
|
186
|
-
gotoLink?: (link: string) => string | undefined;
|
|
187
186
|
/**
|
|
188
187
|
* 路由配置,包括设置路由history的类型(默认为browser)、标识画布唯一性的search联合字段(默认为所有search字段)等
|
|
189
188
|
*/
|
|
190
189
|
routeConfig?: RouteConfigT;
|
|
190
|
+
/**
|
|
191
|
+
* 显示模式设置,请在画布初始化时设置, 默认为 normal 模式
|
|
192
|
+
* - bigScreen: 大屏模式,主要聚焦于画布批注场景
|
|
193
|
+
* - phone: 手机模式,工具栏显示更加紧凑
|
|
194
|
+
* - normal: 常规模式,PC、Laptop、PAD 上推荐使用本模式
|
|
195
|
+
*/
|
|
196
|
+
displayMode?: 'bigScreen' | 'normal' | 'phone';
|
|
197
|
+
getElementLink?: (encodeId: string, id: string) => string;
|
|
198
|
+
/** 链接跳转,返回值为string表示跳转元素id */
|
|
199
|
+
gotoLink?: (link: string) => string | undefined;
|
|
191
200
|
/** 获取画布连接参数的请求函数,画布连接参数为初始化 & 链接服务器使用的加密字符串, 内含应用、白板、用户等信息 */
|
|
192
201
|
getQueryString: () => Promise<string>;
|
|
193
202
|
/** 获取AI 鉴权所必要参数 boardId, userId, appid, ts, sign, key */
|
|
@@ -558,4 +567,7 @@ declare class SvgManager {
|
|
|
558
567
|
private static _isSymbol;
|
|
559
568
|
}
|
|
560
569
|
|
|
561
|
-
|
|
570
|
+
/** 官方提供分组讨论插件,基于 websdk plugin 配置项引入后,会使得画布开启分组讨论功能 */
|
|
571
|
+
declare const GroupTalkPlugin: ISdkPluginConstructor;
|
|
572
|
+
|
|
573
|
+
export { type ComponentProps, type CustomizeUploader, FULL_TOOLBAR_CONFIG, type GetSdkInstanceConfigs, GridType, GroupTalkPlugin, HoverTip, type InfiSdkPluginType, type InfiUserInfoT, type InfiWebSdkPlugin, type InfiWebsdkInstanceType, type SdkBottomRightPluginSlotType, type SdkPluginSlotType, Setting, SvgIcon, SvgManager, type ToolBarType, type WebsdkEngineType, InfiWebsdk as default, getDocumentType, getFileType };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-4351ab81.js");require("react"),require("react-dom"),exports.FULL_TOOLBAR_CONFIG=e.FULL_TOOLBAR_CONFIG,Object.defineProperty(exports,"GridType",{enumerable:!0,get:function(){return e.GridType}}),exports.GroupTalkPlugin=e.GroupTalkPlugin,exports.HoverTip=e.HoverTip,exports.Setting=e.Setting,exports.SvgIcon=e.SvgIcon,exports.SvgManager=e.SvgManager,exports.default=e.InfiWebsdk,exports.getDocumentType=e.getDocumentType,exports.getFileType=e.getFileType;
|