@plaso-infi/whiteboard-sdk 0.4.7 → 0.4.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/dist/esm/{index-ca37e845-68557e08.js → index-ca37e845-aa88b427.js} +1 -1
- package/dist/esm/{index-486839f6.js → index-de7bc26b.js} +5 -5
- package/dist/esm/index.css +0 -105
- package/dist/esm/index.d.ts +51 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/{web-pinyin-c81bd56d.js → web-pinyin-cc5ef1a2.js} +1 -1
- package/package.json +1 -1
- /package/dist/esm/{hls-aff7f0bb-dc3ddf16.js → hls-aff7f0bb-92b50057.js} +0 -0
- /package/dist/esm/{icon_map-ce0802c9-160438f1.js → icon_map-ce0802c9-9e5a2214.js} +0 -0
- /package/dist/esm/{pdf_lib-1df7c30b-12f4445f.js → pdf_lib-1df7c30b-c752a151.js} +0 -0
package/dist/esm/index.css
CHANGED
|
@@ -32298,108 +32298,3 @@
|
|
|
32298
32298
|
overflow: hidden;
|
|
32299
32299
|
text-overflow: ellipsis;
|
|
32300
32300
|
}
|
|
32301
|
-
|
|
32302
|
-
.titleBar_fR41U {
|
|
32303
|
-
display: flex;
|
|
32304
|
-
align-items: center;
|
|
32305
|
-
padding-right: 6px;
|
|
32306
|
-
height: 100%;
|
|
32307
|
-
font-size: 14px;
|
|
32308
|
-
}
|
|
32309
|
-
.titleBar_fR41U .wrapper_fR41U {
|
|
32310
|
-
height: 48px;
|
|
32311
|
-
width: 40px;
|
|
32312
|
-
cursor: pointer;
|
|
32313
|
-
display: flex;
|
|
32314
|
-
justify-content: center;
|
|
32315
|
-
align-items: center;
|
|
32316
|
-
}
|
|
32317
|
-
.titleBar_fR41U .wrapper_fR41U .icon_fR41U {
|
|
32318
|
-
font-size: 24px;
|
|
32319
|
-
width: 1em;
|
|
32320
|
-
height: 1em;
|
|
32321
|
-
fill: currentColor;
|
|
32322
|
-
flex-shrink: 0;
|
|
32323
|
-
}
|
|
32324
|
-
.titleBar_fR41U .menuPart_fR41U {
|
|
32325
|
-
padding: 8px 0;
|
|
32326
|
-
position: absolute;
|
|
32327
|
-
left: -8px;
|
|
32328
|
-
top: 52px;
|
|
32329
|
-
border-radius: 4px;
|
|
32330
|
-
flex-direction: column;
|
|
32331
|
-
background-color: #fff;
|
|
32332
|
-
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
|
|
32333
|
-
}
|
|
32334
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U {
|
|
32335
|
-
white-space: nowrap;
|
|
32336
|
-
display: flex;
|
|
32337
|
-
align-items: center;
|
|
32338
|
-
cursor: pointer;
|
|
32339
|
-
line-height: 40px;
|
|
32340
|
-
padding: 0 8px 0 16px;
|
|
32341
|
-
}
|
|
32342
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U.item_fR41U {
|
|
32343
|
-
justify-content: space-between;
|
|
32344
|
-
}
|
|
32345
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U .iconContainer_fR41U {
|
|
32346
|
-
display: flex;
|
|
32347
|
-
align-items: center;
|
|
32348
|
-
white-space: nowrap;
|
|
32349
|
-
}
|
|
32350
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U:hover {
|
|
32351
|
-
background-color: #f5f6f6;
|
|
32352
|
-
}
|
|
32353
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U .icon_fR41U {
|
|
32354
|
-
width: 24px;
|
|
32355
|
-
height: 24px;
|
|
32356
|
-
}
|
|
32357
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U .textPart_fR41U {
|
|
32358
|
-
margin-left: 12px;
|
|
32359
|
-
}
|
|
32360
|
-
.titleBar_fR41U .menuPart_fR41U .menuItem_fR41U .arrowIcon_fR41U {
|
|
32361
|
-
font-size: 12px;
|
|
32362
|
-
margin-left: 65px;
|
|
32363
|
-
height: 40px;
|
|
32364
|
-
width: 24px;
|
|
32365
|
-
}
|
|
32366
|
-
.titleBar_fR41U .subMenuPart_fR41U {
|
|
32367
|
-
position: absolute;
|
|
32368
|
-
width: 200px;
|
|
32369
|
-
padding: 8px 0;
|
|
32370
|
-
background-color: #fff;
|
|
32371
|
-
flex-direction: column;
|
|
32372
|
-
border-radius: 4px;
|
|
32373
|
-
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.08);
|
|
32374
|
-
}
|
|
32375
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U {
|
|
32376
|
-
display: flex;
|
|
32377
|
-
position: relative;
|
|
32378
|
-
align-items: center;
|
|
32379
|
-
cursor: pointer;
|
|
32380
|
-
line-height: 40px;
|
|
32381
|
-
padding: 0 8px 0 16px;
|
|
32382
|
-
}
|
|
32383
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U:hover {
|
|
32384
|
-
background-color: #f5f6f6;
|
|
32385
|
-
}
|
|
32386
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U .icon_fR41U {
|
|
32387
|
-
width: 24px;
|
|
32388
|
-
height: 24px;
|
|
32389
|
-
}
|
|
32390
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U .textPart_fR41U {
|
|
32391
|
-
margin-left: 12px;
|
|
32392
|
-
}
|
|
32393
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U .arrowIcon_fR41U {
|
|
32394
|
-
font-size: 12px;
|
|
32395
|
-
margin-left: 65px;
|
|
32396
|
-
}
|
|
32397
|
-
.titleBar_fR41U .subMenuPart_fR41U .menuItem_fR41U .activeIcon_fR41U {
|
|
32398
|
-
position: absolute;
|
|
32399
|
-
right: 8px;
|
|
32400
|
-
top: 8px;
|
|
32401
|
-
font-size: 24px;
|
|
32402
|
-
color: #2e73e5;
|
|
32403
|
-
width: 24px;
|
|
32404
|
-
height: 24px;
|
|
32405
|
-
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -136,6 +136,13 @@ type MeetingConfigs = {
|
|
|
136
136
|
onLeaveMeeting?: (meetingId: string) => void;
|
|
137
137
|
/** 确定离开会议时的回调函数,入参为离开会议的原因 */
|
|
138
138
|
didLeaveMeeting?: (exitStatus: ExitMeetingStatus) => void;
|
|
139
|
+
};
|
|
140
|
+
/** 由内部控制的config */
|
|
141
|
+
type InternalMeetingConfigs = {
|
|
142
|
+
/** 是否支持云端录制功能 */
|
|
143
|
+
enableCloudRecord?: boolean;
|
|
144
|
+
/** 返回云端录制获取地址 */
|
|
145
|
+
getMeetingRecordUrl?: (meetingId: string) => Promise<string>;
|
|
139
146
|
};
|
|
140
147
|
|
|
141
148
|
type WebsdkEngineType = {
|
|
@@ -303,6 +310,32 @@ type UploadRejectInfo = {
|
|
|
303
310
|
code: UploadFailedCode;
|
|
304
311
|
message?: string;
|
|
305
312
|
};
|
|
313
|
+
type OperationGuideT = {
|
|
314
|
+
/** 画布引导,如画布缩放、拖拽 */
|
|
315
|
+
boardGuide: {
|
|
316
|
+
/** 是否显示引导的开关 */
|
|
317
|
+
show: boolean;
|
|
318
|
+
/** 引导结束后的回调 */
|
|
319
|
+
onFinish?: () => void;
|
|
320
|
+
};
|
|
321
|
+
/** 用户操作引导,如工具栏操作 */
|
|
322
|
+
userGuide: {
|
|
323
|
+
/** 是否显示引导的开关 */
|
|
324
|
+
show: boolean;
|
|
325
|
+
/** 引导结束后的回调 */
|
|
326
|
+
onFinish?: () => void;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
type ExportConfigsT = {
|
|
330
|
+
/** 是否允许导出帧框为PPT */
|
|
331
|
+
canExportFrameAsPowerPoint?: boolean;
|
|
332
|
+
/** 设置不能导出帧框为PPT,用户点击时的调用的函数,可用于做用户反馈使用 */
|
|
333
|
+
handleExportFrameAsPowerPoint?: () => void;
|
|
334
|
+
/** 是否允许导出帧框为图片 */
|
|
335
|
+
canExportFrameAsImage?: boolean;
|
|
336
|
+
/** 设置不能导出帧框为图片,用户点击时的调用的函数,可用于做用户反馈使用 */
|
|
337
|
+
handleExportFrameAsImage?: () => void;
|
|
338
|
+
};
|
|
306
339
|
/** 获取白板 websdk 实例的配置参数 */
|
|
307
340
|
interface GetSdkInstanceConfigs {
|
|
308
341
|
/** 当前白板的用户信息 */
|
|
@@ -358,6 +391,12 @@ interface GetSdkInstanceConfigs {
|
|
|
358
391
|
lineOpacity?: number;
|
|
359
392
|
}[];
|
|
360
393
|
};
|
|
394
|
+
/**
|
|
395
|
+
* 开发者设定的默认显示其他用户的用户光标
|
|
396
|
+
* - 用户的使用习惯 优先于 此处配置的行为
|
|
397
|
+
* - 用户光标显示会被其他因素影响,如:手机模式不处理用户光标、画布处于某些场景下(如演讲场景)会按照预设改变光标状态
|
|
398
|
+
*/
|
|
399
|
+
showOthersCursorByDefault?: boolean;
|
|
361
400
|
};
|
|
362
401
|
/** 进入画布时,如果给入该值,则会向 x:0, y:0 处插入模板内容,并尝试移动视野至该位置 */
|
|
363
402
|
initTemplate?: string | {
|
|
@@ -401,6 +440,11 @@ interface GetSdkInstanceConfigs {
|
|
|
401
440
|
*/
|
|
402
441
|
displayMode?: 'bigScreen' | 'normal' | 'phone';
|
|
403
442
|
meetingConfigs?: MeetingConfigs;
|
|
443
|
+
/** 是否初次加载后默认缩放视野直至全部元素可见 */
|
|
444
|
+
showAerialViewByDefault?: boolean;
|
|
445
|
+
/** 是否初次加载后显示用户指引 */
|
|
446
|
+
operationGuide?: OperationGuideT;
|
|
447
|
+
exportConfigs?: ExportConfigsT;
|
|
404
448
|
getElementLink?: (encodeId: string, id: string) => string;
|
|
405
449
|
/** 链接跳转,返回值为string表示跳转元素id */
|
|
406
450
|
gotoLink?: (link: string) => string | undefined;
|
|
@@ -496,11 +540,14 @@ type BoardHooksT = {
|
|
|
496
540
|
disableShortCut: () => void;
|
|
497
541
|
/** 恢复画布中快捷键响应 */
|
|
498
542
|
enableShortCut: () => void;
|
|
543
|
+
/** 画布实例 */
|
|
544
|
+
websdkIns: InternalWebSdkInsT;
|
|
499
545
|
};
|
|
500
546
|
|
|
501
547
|
declare class UserPreferenceManager {
|
|
502
548
|
websdkIns: InternalWebSdkInsT;
|
|
503
549
|
userPreference: PreferencesType;
|
|
550
|
+
enableMeetingHistory: boolean;
|
|
504
551
|
preferenceConfigs?: {
|
|
505
552
|
accessSetting?: number;
|
|
506
553
|
};
|
|
@@ -542,6 +589,8 @@ type PreferencesType = Partial<{
|
|
|
542
589
|
width: number;
|
|
543
590
|
};
|
|
544
591
|
accessSetting: number;
|
|
592
|
+
showOthersCursorByDefault: boolean;
|
|
593
|
+
enableMeetingHistory: boolean;
|
|
545
594
|
}>;
|
|
546
595
|
type ElementMetaData = {
|
|
547
596
|
id: string;
|
|
@@ -740,6 +789,7 @@ interface InternalWebSdkInsT extends InfiWebsdkInstanceType {
|
|
|
740
789
|
/** 上传文件前回调函数 */
|
|
741
790
|
beforeUpload?: () => Promise<boolean>;
|
|
742
791
|
updateDisplayMode?: (displayMode: DisplayModeT) => void;
|
|
792
|
+
internalMeetingConfigs?: MeetingConfigs & InternalMeetingConfigs;
|
|
743
793
|
}
|
|
744
794
|
type WebsdkEventTypeMap = {
|
|
745
795
|
/** 白板未完成初始化 */
|
|
@@ -799,10 +849,6 @@ declare function getFileType(ext: string): FileType | undefined;
|
|
|
799
849
|
*/
|
|
800
850
|
declare function getDocumentType(ext: string): DocumentType | undefined;
|
|
801
851
|
|
|
802
|
-
declare const Setting: React$1.FC<{
|
|
803
|
-
showHistory?: boolean;
|
|
804
|
-
}>;
|
|
805
|
-
|
|
806
852
|
type PropT = {
|
|
807
853
|
className?: string;
|
|
808
854
|
style?: React$1.CSSProperties;
|
|
@@ -875,4 +921,4 @@ declare function useInfiWebSDK(): BoardHooksT;
|
|
|
875
921
|
declare const GroupTalkPlugin: ISdkPluginConstructor;
|
|
876
922
|
declare const VotingPlugin: ISdkPluginConstructor;
|
|
877
923
|
|
|
878
|
-
export { type AddMemberCmpProp, type CanUploadInfo, type ComponentProps, type CustomizeUploader, DefaultPerm, type EditMeetingCmpProp, FULL_TOOLBAR_CONFIG, type GetSdkInstanceConfigs, GridType, type GroupTalkConfig, GroupTalkPlugin, HoverTip, type InfiSdkPluginType, type InfiUserInfoT, type InfiWebSdkPlugin, type InfiWebsdkInstanceType, type MeetingConfigs, type SdkBottomRightPluginSlotType, type SdkPluginSlotType,
|
|
924
|
+
export { type AddMemberCmpProp, type CanUploadInfo, type ComponentProps, type CustomizeUploader, DefaultPerm, type EditMeetingCmpProp, FULL_TOOLBAR_CONFIG, type GetSdkInstanceConfigs, GridType, type GroupTalkConfig, GroupTalkPlugin, HoverTip, type InfiSdkPluginType, type InfiUserInfoT, type InfiWebSdkPlugin, type InfiWebsdkInstanceType, type MeetingConfigs, type SdkBottomRightPluginSlotType, type SdkPluginSlotType, SvgIcon, SvgManager, type ToolBarType, type UploadRejectInfo, VotingPlugin, type WebsdkEngineType, InfiWebsdk as default, getDocumentType, getFileType, useInfiWebSDK };
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{D as DefaultPerm,F as FULL_TOOLBAR_CONFIG,a as GridType,G as GroupTalkPlugin,H as HoverTip,S as
|
|
1
|
+
export{D as DefaultPerm,F as FULL_TOOLBAR_CONFIG,a as GridType,G as GroupTalkPlugin,H as HoverTip,S as SvgIcon,e as SvgManager,V as VotingPlugin,I as default,d as getDocumentType,c as getFileType,u as useInfiWebSDK}from"./index-de7bc26b.js";import"react";import"react-dom";
|