bhd-components 0.10.32 → 0.10.33
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 +24 -24
- package/es2017/AIMessageList/components/content/index.d.ts +4 -4
- package/es2017/AIMessageList/components/content/index.module.less +7 -7
- package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -7
- package/es2017/AIMessageList/components/copyIcon/index.module.less +23 -23
- package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -3
- package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
- package/es2017/AIMessageList/components/fileList/index.d.ts +4 -4
- package/es2017/AIMessageList/components/fileList/index.module.less +95 -95
- package/es2017/AIMessageList/components/footer/index.d.ts +10 -10
- package/es2017/AIMessageList/components/footer/index.module.less +51 -51
- package/es2017/AIMessageList/components/header/index.d.ts +9 -9
- package/es2017/AIMessageList/components/header/index.module.less +31 -31
- package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -9
- package/es2017/AIMessageList/components/referencesIcon/index.module.less +14 -14
- package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -12
- package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -13
- package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
- package/es2017/AIMessageList/components/renderReferrnce/index.module.less +63 -63
- package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -25
- package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
- package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
- package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -5
- package/es2017/AIMessageList/components/virtuosoList/index.js +33 -33
- package/es2017/AIMessageList/components/virtuosoList/index.module.less +471 -471
- package/es2017/AIMessageList/index.d.ts +4 -4
- package/es2017/AIMessageList/index.module.less +20 -20
- package/es2017/AIMessageList/type.d.ts +310 -310
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
- package/es2017/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
- package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
- package/es2017/bhdAppLayout/index.d.ts +28 -28
- package/es2017/bhdAppLayout/index.module.less +95 -95
- package/es2017/bhdDatePicker/index.d.ts +17 -17
- package/es2017/bhdDatePicker/index.js +1 -1
- package/es2017/bhdDatePicker/index.module.less +1007 -1007
- package/es2017/bhdEditor/index.d.ts +2 -2
- package/es2017/bhdEnterInput/index.d.ts +9 -9
- package/es2017/bhdModalCropper/index.d.ts +10 -10
- package/es2017/bhdModalCropper/index.module.less +362 -362
- package/es2017/bhdSelect/index.d.ts +33 -33
- package/es2017/bhdSelect/index.module.less +131 -131
- package/es2017/bhdTipModal/index.d.ts +29 -29
- package/es2017/bhdTipModal/index.module.less +280 -280
- package/es2017/bhdTipModal/modal.d.ts +6 -6
- package/es2017/customerService/common.module.less +1391 -1391
- package/es2017/customerService/contactsList.d.ts +14 -14
- package/es2017/customerService/function.d.ts +25 -24
- package/es2017/customerService/function.js +11 -1
- package/es2017/customerService/historyFun.d.ts +13 -13
- package/es2017/customerService/html2canvas.test.js +113 -113
- package/es2017/customerService/index.d.ts +20 -20
- package/es2017/customerService/index.js +83 -59
- package/es2017/customerService/index.module.less +2280 -2278
- package/es2017/customerService/index2.module.less +2218 -2216
- package/es2017/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
- package/es2017/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
- package/es2017/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
- package/es2017/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
- package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
- package/es2017/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
- package/es2017/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
- package/es2017/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
- package/es2017/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
- package/es2017/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
- package/es2017/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
- package/es2017/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
- package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
- package/es2017/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
- package/es2017/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
- package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
- package/es2017/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
- package/es2017/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
- package/es2017/customerService/js-screen-shot/main.d.ts +110 -110
- package/es2017/customerService/js-screen-shot/main.js +32 -32
- package/es2017/customerService/screenshotTool.d.ts +10 -10
- package/es2017/customerService/teacherList.d.ts +11 -11
- package/es2017/customerService/useMediaRecorder.d.ts +9 -9
- package/es2017/customerService/viewMemaid.d.ts +3 -3
- package/es2017/i18n/en_US.d.ts +2 -2
- package/es2017/i18n/index.d.ts +2 -2
- package/es2017/i18n/zh_CN.d.ts +2 -2
- package/es2017/icons/components/custom-ai_icon.d.ts +4 -4
- package/es2017/icons/components/custom-arrow.d.ts +4 -4
- package/es2017/icons/components/custom-close.d.ts +4 -4
- package/es2017/icons/components/custom-contacts.d.ts +4 -4
- package/es2017/icons/components/custom-copy.d.ts +4 -4
- package/es2017/icons/components/custom-dislike.d.ts +4 -4
- package/es2017/icons/components/custom-download.d.ts +4 -4
- package/es2017/icons/components/custom-duihao.d.ts +4 -4
- package/es2017/icons/components/custom-exit_full_screen.d.ts +4 -4
- package/es2017/icons/components/custom-expand.d.ts +4 -4
- package/es2017/icons/components/custom-full_screen.d.ts +4 -4
- package/es2017/icons/components/custom-knowledge_content.d.ts +4 -4
- package/es2017/icons/components/custom-like.d.ts +4 -4
- package/es2017/icons/components/custom-quote.d.ts +4 -4
- package/es2017/icons/components/custom-record.d.ts +4 -4
- package/es2017/icons/components/custom-reloading.d.ts +4 -4
- package/es2017/icons/components/custom-retract.d.ts +4 -4
- package/es2017/icons/components/custom-round_close.d.ts +4 -4
- package/es2017/icons/components/custom-screen-xuanzuan.d.ts +4 -4
- package/es2017/icons/components/custom-screenshot.d.ts +4 -4
- package/es2017/icons/components/custom-sending.d.ts +4 -4
- package/es2017/icons/components/custom-sound_recording.d.ts +4 -4
- package/es2017/icons/components/custom-video-abstraction.d.ts +4 -4
- package/es2017/icons/components/custom-wenhao_round.d.ts +4 -4
- package/es2017/icons/components/custom-xuanzuan.d.ts +4 -4
- package/es2017/icons/components/index.d.ts +25 -25
- package/es2017/icons/index.d.ts +2 -2
- package/es2017/images/index.d.ts +6 -6
- package/es2017/index.d.ts +86 -86
- package/es2017/index.js +3 -3
- package/es2017/index.module.css +3 -3
- package/es2017/message/index.d.ts +18 -18
- package/es2017/message/index.module.less +142 -142
- package/es2017/pagination/index.d.ts +4 -4
- package/es2017/pagination/index.module.less +51 -51
- package/es2017/provider/config.d.ts +9 -9
- package/es2017/provider/index.d.ts +7 -7
- package/es2017/table/index.d.ts +12 -12
- package/es2017/table/index.module.less +423 -423
- package/es2017/tableSelect/index.d.ts +3 -3
- package/es2017/tableSelect/index.js +3 -3
- package/es2017/tableSelect/index.module.less +20 -20
- package/es2017/textTootip/index.d.ts +9 -9
- package/es2017/theme/variable.less +652 -652
- package/es2017/titleBar/index.d.ts +16 -16
- package/es2017/titleBar/index.module.less +48 -48
- package/es2017/typings.d.ts +13 -13
- package/es2017/utils/Date.d.ts +10 -10
- package/es2017/utils/dom.d.ts +5 -5
- package/es2017/utils/number.d.ts +1 -1
- package/es2017/utils/object.d.ts +2 -2
- package/es2017/viewImage/index(/345/216/237).d.ts +31 -31
- package/es2017/viewImage/index.d.ts +33 -33
- package/es2017/viewImage/index.module(/345/216/237).less +173 -173
- package/es2017/viewImage/index.module.less +193 -193
- package/esm/AIMessageList/components/content/index.d.ts +4 -4
- package/esm/AIMessageList/components/content/index.module.less +7 -7
- package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -7
- package/esm/AIMessageList/components/copyIcon/index.module.less +23 -23
- package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -3
- package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -3
- package/esm/AIMessageList/components/fileList/index.d.ts +4 -4
- package/esm/AIMessageList/components/fileList/index.module.less +95 -95
- package/esm/AIMessageList/components/footer/index.d.ts +10 -10
- package/esm/AIMessageList/components/footer/index.module.less +51 -51
- package/esm/AIMessageList/components/header/index.d.ts +9 -9
- package/esm/AIMessageList/components/header/index.module.less +31 -31
- package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -9
- package/esm/AIMessageList/components/referencesIcon/index.module.less +14 -14
- package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -12
- package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -13
- package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -10
- package/esm/AIMessageList/components/renderReferrnce/index.module.less +63 -63
- package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/sendBtn/index.module.less +25 -25
- package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -4
- package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +4 -4
- package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -5
- package/esm/AIMessageList/components/virtuosoList/index.module.less +471 -471
- package/esm/AIMessageList/index.d.ts +4 -4
- package/esm/AIMessageList/index.module.less +20 -20
- package/esm/AIMessageList/type.d.ts +310 -310
- package/esm/bhdAppLayout/components/BhdTableSimple/index.js +9 -9
- package/esm/bhdAppLayout/components/BhdTableSimple/index.less +58 -58
- package/esm/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +9 -9
- package/esm/bhdAppLayout/index.d.ts +28 -28
- package/esm/bhdAppLayout/index.module.less +95 -95
- package/esm/bhdDatePicker/index.d.ts +17 -17
- package/esm/bhdDatePicker/index.module.less +1007 -1007
- package/esm/bhdEditor/index.d.ts +2 -2
- package/esm/bhdEnterInput/index.d.ts +9 -9
- package/esm/bhdModalCropper/index.d.ts +10 -10
- package/esm/bhdModalCropper/index.module.less +362 -362
- package/esm/bhdSelect/index.d.ts +33 -33
- package/esm/bhdSelect/index.module.less +131 -131
- package/esm/bhdTipModal/index.d.ts +29 -29
- package/esm/bhdTipModal/index.module.less +280 -280
- package/esm/bhdTipModal/modal.d.ts +6 -6
- package/esm/customerService/common.module.less +1391 -1391
- package/esm/customerService/contactsList.d.ts +14 -14
- package/esm/customerService/function.d.ts +25 -24
- package/esm/customerService/function.js +11 -1
- package/esm/customerService/historyFun.d.ts +13 -13
- package/esm/customerService/html2canvas.test.js +113 -113
- package/esm/customerService/index.d.ts +20 -20
- package/esm/customerService/index.js +50 -26
- package/esm/customerService/index.module.less +2280 -2278
- package/esm/customerService/index2.module.less +2218 -2216
- package/esm/customerService/js-screen-shot/assets/less/screen-shot.less +478 -478
- package/esm/customerService/js-screen-shot/lib/common-methods/CanvasPatch.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/DeviceTypeVerif.d.ts +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/common-methods/FixedData.js +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/GetBrushSelectedName.js +3 -3
- package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.d.ts +4 -4
- package/esm/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/GetColor.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/GetSelectedCalssName.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.d.ts +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/GetToolRelativePosition.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/common-methods/ImgScaling.js +6 -6
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.d.ts +8 -8
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SelectColor.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/SelectTextSize.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.d.ts +14 -14
- package/esm/customerService/js-screen-shot/lib/common-methods/SetBrushSize.js +10 -10
- package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.d.ts +7 -7
- package/esm/customerService/js-screen-shot/lib/common-methods/SetSelectedClassName.js +5 -5
- package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/TakeOutHistory.js +2 -2
- package/esm/customerService/js-screen-shot/lib/common-methods/UpdateContainerMouseStyle.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +17 -17
- package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.js +10 -10
- package/esm/customerService/js-screen-shot/lib/config/Toolbar.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/main-entrance/CreateDom.d.ts +24 -24
- package/esm/customerService/js-screen-shot/lib/main-entrance/InitData.d.ts +78 -78
- package/esm/customerService/js-screen-shot/lib/main-entrance/PlugInParameters.d.ts +46 -46
- package/esm/customerService/js-screen-shot/lib/split-methods/AddHistoryData.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.d.ts +8 -8
- package/esm/customerService/js-screen-shot/lib/split-methods/BoundaryJudgment.js +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.d.ts +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateOptionIcoPosition.js +3 -3
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.d.ts +16 -16
- package/esm/customerService/js-screen-shot/lib/split-methods/CalculateToolLocation.js +7 -7
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.d.ts +31 -31
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawArrow.js +14 -14
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCircle.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.d.ts +19 -19
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +12 -12
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.d.ts +13 -13
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawLineArrow.js +18 -18
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.d.ts +6 -6
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMasking.js +4 -4
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.d.ts +12 -12
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawMosaic.js +21 -21
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.d.ts +13 -13
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawPencil.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.d.ts +11 -11
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawRectangle.js +9 -9
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.d.ts +10 -10
- package/esm/customerService/js-screen-shot/lib/split-methods/DrawText.js +8 -8
- package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.d.ts +10 -10
- package/esm/customerService/js-screen-shot/lib/split-methods/KeyboardEventHandle.js +4 -4
- package/esm/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.d.ts +2 -2
- package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +5 -5
- package/esm/customerService/js-screen-shot/lib/split-methods/drawCrossImg.d.ts +1 -1
- package/esm/customerService/js-screen-shot/lib/type/ComponentType.d.ts +133 -133
- package/esm/customerService/js-screen-shot/main.d.ts +110 -110
- package/esm/customerService/js-screen-shot/main.js +32 -32
- package/esm/customerService/screenshotTool.d.ts +10 -10
- package/esm/customerService/teacherList.d.ts +11 -11
- package/esm/customerService/useMediaRecorder.d.ts +9 -9
- package/esm/customerService/viewMemaid.d.ts +3 -3
- package/esm/i18n/en_US.d.ts +2 -2
- package/esm/i18n/index.d.ts +2 -2
- package/esm/i18n/zh_CN.d.ts +2 -2
- package/esm/icons/components/custom-ai_icon.d.ts +4 -4
- package/esm/icons/components/custom-arrow.d.ts +4 -4
- package/esm/icons/components/custom-close.d.ts +4 -4
- package/esm/icons/components/custom-contacts.d.ts +4 -4
- package/esm/icons/components/custom-copy.d.ts +4 -4
- package/esm/icons/components/custom-dislike.d.ts +4 -4
- package/esm/icons/components/custom-download.d.ts +4 -4
- package/esm/icons/components/custom-duihao.d.ts +4 -4
- package/esm/icons/components/custom-exit_full_screen.d.ts +4 -4
- package/esm/icons/components/custom-expand.d.ts +4 -4
- package/esm/icons/components/custom-full_screen.d.ts +4 -4
- package/esm/icons/components/custom-knowledge_content.d.ts +4 -4
- package/esm/icons/components/custom-like.d.ts +4 -4
- package/esm/icons/components/custom-quote.d.ts +4 -4
- package/esm/icons/components/custom-record.d.ts +4 -4
- package/esm/icons/components/custom-reloading.d.ts +4 -4
- package/esm/icons/components/custom-retract.d.ts +4 -4
- package/esm/icons/components/custom-round_close.d.ts +4 -4
- package/esm/icons/components/custom-screen-xuanzuan.d.ts +4 -4
- package/esm/icons/components/custom-screenshot.d.ts +4 -4
- package/esm/icons/components/custom-sending.d.ts +4 -4
- package/esm/icons/components/custom-sound_recording.d.ts +4 -4
- package/esm/icons/components/custom-video-abstraction.d.ts +4 -4
- package/esm/icons/components/custom-wenhao_round.d.ts +4 -4
- package/esm/icons/components/custom-xuanzuan.d.ts +4 -4
- package/esm/icons/components/index.d.ts +25 -25
- package/esm/icons/index.d.ts +2 -2
- package/esm/images/index.d.ts +6 -6
- package/esm/index.d.ts +86 -86
- package/esm/index.js +3 -3
- package/esm/index.module.css +3 -3
- package/esm/message/index.d.ts +18 -18
- package/esm/message/index.module.less +142 -142
- package/esm/pagination/index.d.ts +4 -4
- package/esm/pagination/index.module.less +51 -51
- package/esm/provider/config.d.ts +9 -9
- package/esm/provider/index.d.ts +7 -7
- package/esm/table/index.d.ts +12 -12
- package/esm/table/index.module.less +423 -423
- package/esm/tableSelect/index.d.ts +3 -3
- package/esm/tableSelect/index.js +3 -3
- package/esm/tableSelect/index.module.less +20 -20
- package/esm/textTootip/index.d.ts +9 -9
- package/esm/theme/variable.less +652 -652
- package/esm/titleBar/index.d.ts +16 -16
- package/esm/titleBar/index.module.less +48 -48
- package/esm/typings.d.ts +13 -13
- package/esm/utils/Date.d.ts +10 -10
- package/esm/utils/dom.d.ts +5 -5
- package/esm/utils/number.d.ts +1 -1
- package/esm/utils/object.d.ts +2 -2
- package/esm/viewImage/index(/345/216/237).d.ts +31 -31
- package/esm/viewImage/index.d.ts +33 -33
- package/esm/viewImage/index.module(/345/216/237).less +173 -173
- package/esm/viewImage/index.module.less +193 -193
- package/package.json +3 -2
- package/dist/index.esm.es5.development.css +0 -14470
- package/dist/index.esm.es5.development.js +0 -16310
- package/dist/index.esm.es5.production.css +0 -10
- package/dist/index.esm.es5.production.js +0 -1
- package/dist/vendor.esm.es5.development.css +0 -119
- package/dist/vendor.esm.es5.development.js +0 -182678
- package/dist/vendor.esm.es5.production.css +0 -11
- package/dist/vendor.esm.es5.production.js +0 -493
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { AIMessageListProps, AIMessageListRefProps } from "./type";
|
|
3
|
-
declare const AIMessageList: React.ForwardRefExoticComponent<AIMessageListProps & React.RefAttributes<AIMessageListRefProps>>;
|
|
4
|
-
export default AIMessageList;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { AIMessageListProps, AIMessageListRefProps } from "./type";
|
|
3
|
+
declare const AIMessageList: React.ForwardRefExoticComponent<AIMessageListProps & React.RefAttributes<AIMessageListRefProps>>;
|
|
4
|
+
export default AIMessageList;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
background: #f5f5f5;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
.rootHeader {
|
|
9
|
-
width: 100%;
|
|
10
|
-
flex-shrink: 0;
|
|
11
|
-
}
|
|
12
|
-
.rootContent {
|
|
13
|
-
width: 100%;
|
|
14
|
-
flex: 1;
|
|
15
|
-
}
|
|
16
|
-
.rootFooter {
|
|
17
|
-
width: 100%;
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background: #f5f5f5;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
.rootHeader {
|
|
9
|
+
width: 100%;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
}
|
|
12
|
+
.rootContent {
|
|
13
|
+
width: 100%;
|
|
14
|
+
flex: 1;
|
|
15
|
+
}
|
|
16
|
+
.rootFooter {
|
|
17
|
+
width: 100%;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,310 +1,310 @@
|
|
|
1
|
-
export interface AIMessageListProps {
|
|
2
|
-
prefix?: string; // 类名前缀 默认为 "bhd-AIMessageList"
|
|
3
|
-
className?: string; //全局的className
|
|
4
|
-
headerConfig: headerConfigProps;
|
|
5
|
-
footerConfig: footerConfigProps;
|
|
6
|
-
contentConfig: contentConfigProps;
|
|
7
|
-
errorCallback?: (error: errorMessageProps) => void;
|
|
8
|
-
|
|
9
|
-
// sendMsgAjax: () => any; //发送消息
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AIMessageListRefProps {
|
|
13
|
-
footerApi: footerRefProps;
|
|
14
|
-
contentApi: contentRefProps;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// header Props
|
|
18
|
-
|
|
19
|
-
export interface headerConfigProps {
|
|
20
|
-
icon?: React.ReactNode; // 不传存在默认图标
|
|
21
|
-
title: React.ReactNode;
|
|
22
|
-
className?: string;
|
|
23
|
-
renderRightHead?: () => React.ReactNode; // 右侧区域的自定义渲染
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface msgActionProps {
|
|
27
|
-
renderLeft?: (
|
|
28
|
-
copyNode: React.ReactNode,
|
|
29
|
-
referencesNode: React.ReactNode,
|
|
30
|
-
upVoteNode: React.ReactNode,
|
|
31
|
-
downVoteNode: React.ReactNode,
|
|
32
|
-
refreshNode:React.ReactNode,
|
|
33
|
-
) => React.ReactNode;
|
|
34
|
-
renderRight?: (
|
|
35
|
-
copyNode: React.ReactNode,
|
|
36
|
-
referencesNode: React.ReactNode,
|
|
37
|
-
upVoteNode: React.ReactNode,
|
|
38
|
-
downVoteNode: React.ReactNode,
|
|
39
|
-
refreshNode:React.ReactNode,
|
|
40
|
-
) => React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface contentConfigProps {
|
|
44
|
-
className?: string;
|
|
45
|
-
msgAction?: string[] | msgActionProps;
|
|
46
|
-
// transformItem:(item: any) => dataItemType;
|
|
47
|
-
getList: (
|
|
48
|
-
page: number,
|
|
49
|
-
pageSize: number
|
|
50
|
-
) => Promise<{
|
|
51
|
-
total: number;
|
|
52
|
-
dataSource: dataItemType[];
|
|
53
|
-
}>; // 列表数据
|
|
54
|
-
loadMore?: boolean; // 是否开启加载更多 // 默认为true
|
|
55
|
-
helloMsg?: string; //欢迎语
|
|
56
|
-
pageSize?: number; //每页数量 默认为30
|
|
57
|
-
coverRenderText?: (item, html) => React.ReactNode; // 覆盖文本内容
|
|
58
|
-
coverRenderReferences?: (
|
|
59
|
-
item: dataItemType,
|
|
60
|
-
referenceNode: React.ReactNode
|
|
61
|
-
) => React.ReactNode; //覆盖引用内容
|
|
62
|
-
onRecordMessage?: (item: dataItemType) => void; // 发送和接收的消息记录
|
|
63
|
-
onVoteChange?: (type:string,item: dataItemType) => void; // 点赞 或踩
|
|
64
|
-
onRefresh?: (item:dataItemType) => void;// 刷新
|
|
65
|
-
fileCustomRender?: {// 文件对象的自定义渲染
|
|
66
|
-
iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
|
|
67
|
-
fileTitleRender?: (item: dataItemType) => React.ReactNode;
|
|
68
|
-
fileRender?: (item: dataItemType) => React.ReactNode;
|
|
69
|
-
};
|
|
70
|
-
onSendedHelloMsg?:()=>void;//发送招呼语之后
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// content props
|
|
74
|
-
|
|
75
|
-
export interface contentProps {
|
|
76
|
-
prefix: string;
|
|
77
|
-
contentConfig: contentConfigProps;
|
|
78
|
-
apiRef: AIMessageListRefProps;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// footer Props
|
|
82
|
-
|
|
83
|
-
export interface footerConfigProps {
|
|
84
|
-
placeholder?: string; // placeholder 默认值为“请输入内容”
|
|
85
|
-
className?: string;
|
|
86
|
-
maxLength?: number | ((value: string) => boolean); //字符长度 默认500
|
|
87
|
-
renderAction?: (
|
|
88
|
-
sendBtn: React.ReactNode,
|
|
89
|
-
uploadFileBtn: React.ReactNode
|
|
90
|
-
) => React.ReactNode; // 自定义渲染操作栏
|
|
91
|
-
fileUpload?: boolean | fileUploadProps; // 默认为false
|
|
92
|
-
sendMsgAjaxParams: sendMsgAjaxParams;
|
|
93
|
-
onClickStop?: () => void;
|
|
94
|
-
conversionContent?:(content:string)=>string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface onOpenProps {
|
|
98
|
-
retryFetch: () => void; // 重试
|
|
99
|
-
stopMessage: () => void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface sendMsgAjaxParams {
|
|
103
|
-
url: string;
|
|
104
|
-
method?: string;
|
|
105
|
-
headers?: () => object;
|
|
106
|
-
params: (
|
|
107
|
-
value: string,
|
|
108
|
-
refereces: referenceType,
|
|
109
|
-
fileList: fileCustomProps[],
|
|
110
|
-
beforeInfo: any
|
|
111
|
-
) => string;
|
|
112
|
-
onOpen?: (res: Response, onOpenProps: onOpenProps) => void;
|
|
113
|
-
onMessage?: (ev: EventSourceMessage,closeCallback:()=>void,bodyParams:string,msgId:string) => { id: string; content: string };
|
|
114
|
-
onClose?: () => void;
|
|
115
|
-
onError?: (err: any) => void;
|
|
116
|
-
coverProps?: object;
|
|
117
|
-
beforeSendMsg: (
|
|
118
|
-
value: string,
|
|
119
|
-
refereces: referenceType,
|
|
120
|
-
fileList: fileCustomProps[]
|
|
121
|
-
) => Promise<any>;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// footer file Props
|
|
125
|
-
// 文件上传(需覆盖两种场景:存在解析和不存在解析的场景) flase 则不显示文件上传的 icon
|
|
126
|
-
export interface fileUploadProps {
|
|
127
|
-
accept?: string; //文件类型 默认值 ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp"
|
|
128
|
-
maxCount?: number; // 上传文件数量限制 -1为不限制 默认为10
|
|
129
|
-
maxSize?: number; // 默认为50Mb 目前不考虑切片上传 业务上不要设置太大
|
|
130
|
-
multiple?: boolean; // 是否允许多选
|
|
131
|
-
customRequest: (file: File) => Promise<{
|
|
132
|
-
url: string;
|
|
133
|
-
fileId: string;
|
|
134
|
-
source: File;
|
|
135
|
-
status: fileStatus;
|
|
136
|
-
}>; // 自定义上传方法
|
|
137
|
-
mapUploadCount?: number; // 并发上传的数量 默认为1
|
|
138
|
-
deleteFileAjax?: (
|
|
139
|
-
fileId: string,
|
|
140
|
-
file: fileCustomProps
|
|
141
|
-
) => Promise<{ fileId: string }>; // 删除文件的ajax 返回删除文件的fileId
|
|
142
|
-
statusText?: (status: fileStatus) => React.ReactNode; // 自定义状态显示
|
|
143
|
-
parseFileAjax?: (fileId: string) => { status: fileStatus; fileId; string }; //文件解析的 ajax 请求 如不存在解析过程,可在此函数内直接返回上传成功的状态
|
|
144
|
-
iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// file status 文件状态
|
|
148
|
-
// 等待上传/上传中/上传失败/等待解析/解析中/解析成功/解析失败/上传成功
|
|
149
|
-
export type fileStatus =
|
|
150
|
-
| "waiting"
|
|
151
|
-
| "uploading"
|
|
152
|
-
| "uploadError"
|
|
153
|
-
| "waitParse"
|
|
154
|
-
| "parsing"
|
|
155
|
-
| "parsingError"
|
|
156
|
-
| "success";
|
|
157
|
-
|
|
158
|
-
// footer Ref Props
|
|
159
|
-
|
|
160
|
-
export interface footerRefProps {
|
|
161
|
-
setTextValue: (value: string) => void; // 设置输入框的值
|
|
162
|
-
sendMsg: (value: string) => void; // 发送消息
|
|
163
|
-
refreshSendMsg:(msgId:string,value:string,reference?:any,fileList?:any)=>void;// 刷新消息
|
|
164
|
-
sendMsgLeft:(msgId:string,value:string,reference?:any,fileList?:any)=>void;// 发送消息只显示ai返回的 不显示自己发送的
|
|
165
|
-
clearText: () => void; // 清空输入框
|
|
166
|
-
getCanSendMsg: () => boolean; //获取当前是否允许发送消息的状态
|
|
167
|
-
stopMessage: () => void; //停止发送消息
|
|
168
|
-
setReferences: (reference: referenceType) => void; // 添加引用
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// sendBtn Props
|
|
172
|
-
|
|
173
|
-
export interface sendBtnProps {
|
|
174
|
-
prefix: string;
|
|
175
|
-
canSendMsg: boolean;
|
|
176
|
-
sending: boolean;
|
|
177
|
-
stopMessage: () => void;
|
|
178
|
-
clickFn?: () => void;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// uploadFileBtn Props
|
|
182
|
-
export interface uploadFileBtnProps {
|
|
183
|
-
prefix: string;
|
|
184
|
-
fileUpload: fileUploadProps;
|
|
185
|
-
customRequest: (options: any) => void;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface VoteBtnProps {
|
|
189
|
-
prefix: string;
|
|
190
|
-
clickFn: () => void;
|
|
191
|
-
isActive: boolean;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface refreshBtnProps{
|
|
195
|
-
prefix:string;
|
|
196
|
-
clickFn:()=>void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// fileList Props
|
|
200
|
-
|
|
201
|
-
export interface fileListProps {
|
|
202
|
-
prefix: string;
|
|
203
|
-
fileUpload: fileUploadProps;
|
|
204
|
-
errorCallback: (error: errorMessageProps) => void;
|
|
205
|
-
changeFileCanSending: (flag: boolean) => void;
|
|
206
|
-
onChange:(obj:{page:number,pageSize:number,fileList:fileCustomProps[]})=>void
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// file 自定义对象
|
|
210
|
-
|
|
211
|
-
export interface fileCustomProps {
|
|
212
|
-
name: string;
|
|
213
|
-
suffix: string;
|
|
214
|
-
fileId: string;
|
|
215
|
-
url: string;
|
|
216
|
-
status: fileStatus | undefined;
|
|
217
|
-
source: File | undefined;
|
|
218
|
-
size:number
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// FileList 组件 ref props
|
|
222
|
-
|
|
223
|
-
export interface FileListRefProps {
|
|
224
|
-
addFile: (file: File) => void;
|
|
225
|
-
changePage: (page: number) => void;
|
|
226
|
-
deleteFile: (fileId: string) => void;
|
|
227
|
-
updateFile: (fileId: string, status: fileStatus) => void;
|
|
228
|
-
getFileList: () => fileCustomProps[];
|
|
229
|
-
vaildFile: (file: File, fileId?: string) => boolean; // 校验文件是否合规
|
|
230
|
-
fileToCustomFile: (file: File, params: any) => fileCustomProps;
|
|
231
|
-
clearFileList: () => void;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// error Message
|
|
235
|
-
|
|
236
|
-
export interface errorMessageProps {
|
|
237
|
-
type: errorMessageType;
|
|
238
|
-
message: string;
|
|
239
|
-
}
|
|
240
|
-
/*
|
|
241
|
-
fileAcceptError 文件类型错误
|
|
242
|
-
fileSizeEmpty 文件大小为空
|
|
243
|
-
fileSizeOver 文件大小超出限制
|
|
244
|
-
fileCountOver 文件数量超出限制
|
|
245
|
-
fileNameExist 文件名称已存在
|
|
246
|
-
*/
|
|
247
|
-
export type errorMessageType =
|
|
248
|
-
| "fileAcceptError"
|
|
249
|
-
| "fileSizeEmpty"
|
|
250
|
-
| "fileSizeOver"
|
|
251
|
-
| "fileCountOver"
|
|
252
|
-
| "fileNameExist";
|
|
253
|
-
|
|
254
|
-
// 引用数据类型
|
|
255
|
-
|
|
256
|
-
export type referenceType = referenceTypeText | referenceTypeFile;
|
|
257
|
-
|
|
258
|
-
export type referenceTypeText = {
|
|
259
|
-
type: "text";
|
|
260
|
-
value: string;
|
|
261
|
-
source:any;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export type referenceTypeFile = {
|
|
265
|
-
type: "file";
|
|
266
|
-
value: fileCustomProps;
|
|
267
|
-
source:any;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
export interface VirtuosoListProps {
|
|
271
|
-
prefix: string;
|
|
272
|
-
contentConfig: contentConfigProps;
|
|
273
|
-
apiRef: AIMessageListRefProps;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export interface VirtuosoListRefProps {
|
|
277
|
-
addMsg: (msg: dataItemType) => void;
|
|
278
|
-
updateMsg: (id: string, obj: any) => void;
|
|
279
|
-
clearInputing: () => void; //清楚正在输入的inputing
|
|
280
|
-
recordMsg: (item: dataItemType) => void;
|
|
281
|
-
getDataSource: () => dataItemType[];
|
|
282
|
-
upateDataSource:(id:string,obj:dataItemType)=>void;
|
|
283
|
-
changeDataSource:(list:dataItemType[])=>void;
|
|
284
|
-
scrollToBottom: () => void;
|
|
285
|
-
setSendingId:(id:string)=>void;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface contentRefProps extends VirtuosoListRefProps {}
|
|
289
|
-
|
|
290
|
-
export interface EventSourceMessage {
|
|
291
|
-
id: string;
|
|
292
|
-
event: string;
|
|
293
|
-
data: string;
|
|
294
|
-
retry?: number;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export interface dataItemType {
|
|
298
|
-
id: string; // 唯一id
|
|
299
|
-
createTime: string | number; //创建时间
|
|
300
|
-
content: string; //消息内容
|
|
301
|
-
location: "left" | "right"; // 消息显示在左边还是右边
|
|
302
|
-
reference: referenceType | null; // 引用数据
|
|
303
|
-
source: any; //原消息对象
|
|
304
|
-
vote?:string;// "up":点赞。"down":踩
|
|
305
|
-
type?:"file"|"text",
|
|
306
|
-
suffix?:string;
|
|
307
|
-
fileTitle?:string;
|
|
308
|
-
fileList?:fileCustomProps[];
|
|
309
|
-
hideAction?:boolean;
|
|
310
|
-
}
|
|
1
|
+
export interface AIMessageListProps {
|
|
2
|
+
prefix?: string; // 类名前缀 默认为 "bhd-AIMessageList"
|
|
3
|
+
className?: string; //全局的className
|
|
4
|
+
headerConfig: headerConfigProps;
|
|
5
|
+
footerConfig: footerConfigProps;
|
|
6
|
+
contentConfig: contentConfigProps;
|
|
7
|
+
errorCallback?: (error: errorMessageProps) => void;
|
|
8
|
+
|
|
9
|
+
// sendMsgAjax: () => any; //发送消息
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface AIMessageListRefProps {
|
|
13
|
+
footerApi: footerRefProps;
|
|
14
|
+
contentApi: contentRefProps;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// header Props
|
|
18
|
+
|
|
19
|
+
export interface headerConfigProps {
|
|
20
|
+
icon?: React.ReactNode; // 不传存在默认图标
|
|
21
|
+
title: React.ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
renderRightHead?: () => React.ReactNode; // 右侧区域的自定义渲染
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface msgActionProps {
|
|
27
|
+
renderLeft?: (
|
|
28
|
+
copyNode: React.ReactNode,
|
|
29
|
+
referencesNode: React.ReactNode,
|
|
30
|
+
upVoteNode: React.ReactNode,
|
|
31
|
+
downVoteNode: React.ReactNode,
|
|
32
|
+
refreshNode:React.ReactNode,
|
|
33
|
+
) => React.ReactNode;
|
|
34
|
+
renderRight?: (
|
|
35
|
+
copyNode: React.ReactNode,
|
|
36
|
+
referencesNode: React.ReactNode,
|
|
37
|
+
upVoteNode: React.ReactNode,
|
|
38
|
+
downVoteNode: React.ReactNode,
|
|
39
|
+
refreshNode:React.ReactNode,
|
|
40
|
+
) => React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface contentConfigProps {
|
|
44
|
+
className?: string;
|
|
45
|
+
msgAction?: string[] | msgActionProps;
|
|
46
|
+
// transformItem:(item: any) => dataItemType;
|
|
47
|
+
getList: (
|
|
48
|
+
page: number,
|
|
49
|
+
pageSize: number
|
|
50
|
+
) => Promise<{
|
|
51
|
+
total: number;
|
|
52
|
+
dataSource: dataItemType[];
|
|
53
|
+
}>; // 列表数据
|
|
54
|
+
loadMore?: boolean; // 是否开启加载更多 // 默认为true
|
|
55
|
+
helloMsg?: string; //欢迎语
|
|
56
|
+
pageSize?: number; //每页数量 默认为30
|
|
57
|
+
coverRenderText?: (item, html) => React.ReactNode; // 覆盖文本内容
|
|
58
|
+
coverRenderReferences?: (
|
|
59
|
+
item: dataItemType,
|
|
60
|
+
referenceNode: React.ReactNode
|
|
61
|
+
) => React.ReactNode; //覆盖引用内容
|
|
62
|
+
onRecordMessage?: (item: dataItemType) => void; // 发送和接收的消息记录
|
|
63
|
+
onVoteChange?: (type:string,item: dataItemType) => void; // 点赞 或踩
|
|
64
|
+
onRefresh?: (item:dataItemType) => void;// 刷新
|
|
65
|
+
fileCustomRender?: {// 文件对象的自定义渲染
|
|
66
|
+
iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
|
|
67
|
+
fileTitleRender?: (item: dataItemType) => React.ReactNode;
|
|
68
|
+
fileRender?: (item: dataItemType) => React.ReactNode;
|
|
69
|
+
};
|
|
70
|
+
onSendedHelloMsg?:()=>void;//发送招呼语之后
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// content props
|
|
74
|
+
|
|
75
|
+
export interface contentProps {
|
|
76
|
+
prefix: string;
|
|
77
|
+
contentConfig: contentConfigProps;
|
|
78
|
+
apiRef: AIMessageListRefProps;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// footer Props
|
|
82
|
+
|
|
83
|
+
export interface footerConfigProps {
|
|
84
|
+
placeholder?: string; // placeholder 默认值为“请输入内容”
|
|
85
|
+
className?: string;
|
|
86
|
+
maxLength?: number | ((value: string) => boolean); //字符长度 默认500
|
|
87
|
+
renderAction?: (
|
|
88
|
+
sendBtn: React.ReactNode,
|
|
89
|
+
uploadFileBtn: React.ReactNode
|
|
90
|
+
) => React.ReactNode; // 自定义渲染操作栏
|
|
91
|
+
fileUpload?: boolean | fileUploadProps; // 默认为false
|
|
92
|
+
sendMsgAjaxParams: sendMsgAjaxParams;
|
|
93
|
+
onClickStop?: () => void;
|
|
94
|
+
conversionContent?:(content:string)=>string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface onOpenProps {
|
|
98
|
+
retryFetch: () => void; // 重试
|
|
99
|
+
stopMessage: () => void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface sendMsgAjaxParams {
|
|
103
|
+
url: string;
|
|
104
|
+
method?: string;
|
|
105
|
+
headers?: () => object;
|
|
106
|
+
params: (
|
|
107
|
+
value: string,
|
|
108
|
+
refereces: referenceType,
|
|
109
|
+
fileList: fileCustomProps[],
|
|
110
|
+
beforeInfo: any
|
|
111
|
+
) => string;
|
|
112
|
+
onOpen?: (res: Response, onOpenProps: onOpenProps) => void;
|
|
113
|
+
onMessage?: (ev: EventSourceMessage,closeCallback:()=>void,bodyParams:string,msgId:string) => { id: string; content: string };
|
|
114
|
+
onClose?: () => void;
|
|
115
|
+
onError?: (err: any) => void;
|
|
116
|
+
coverProps?: object;
|
|
117
|
+
beforeSendMsg: (
|
|
118
|
+
value: string,
|
|
119
|
+
refereces: referenceType,
|
|
120
|
+
fileList: fileCustomProps[]
|
|
121
|
+
) => Promise<any>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// footer file Props
|
|
125
|
+
// 文件上传(需覆盖两种场景:存在解析和不存在解析的场景) flase 则不显示文件上传的 icon
|
|
126
|
+
export interface fileUploadProps {
|
|
127
|
+
accept?: string; //文件类型 默认值 ".pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.txt,.text,.png,.jpg,.jpeg,.gif,.webp"
|
|
128
|
+
maxCount?: number; // 上传文件数量限制 -1为不限制 默认为10
|
|
129
|
+
maxSize?: number; // 默认为50Mb 目前不考虑切片上传 业务上不要设置太大
|
|
130
|
+
multiple?: boolean; // 是否允许多选
|
|
131
|
+
customRequest: (file: File) => Promise<{
|
|
132
|
+
url: string;
|
|
133
|
+
fileId: string;
|
|
134
|
+
source: File;
|
|
135
|
+
status: fileStatus;
|
|
136
|
+
}>; // 自定义上传方法
|
|
137
|
+
mapUploadCount?: number; // 并发上传的数量 默认为1
|
|
138
|
+
deleteFileAjax?: (
|
|
139
|
+
fileId: string,
|
|
140
|
+
file: fileCustomProps
|
|
141
|
+
) => Promise<{ fileId: string }>; // 删除文件的ajax 返回删除文件的fileId
|
|
142
|
+
statusText?: (status: fileStatus) => React.ReactNode; // 自定义状态显示
|
|
143
|
+
parseFileAjax?: (fileId: string) => { status: fileStatus; fileId; string }; //文件解析的 ajax 请求 如不存在解析过程,可在此函数内直接返回上传成功的状态
|
|
144
|
+
iconFileRender?: (suffix: string) => React.ReactNode; // 文件上传的 icon。参数 文件对象file 返回值为图标
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// file status 文件状态
|
|
148
|
+
// 等待上传/上传中/上传失败/等待解析/解析中/解析成功/解析失败/上传成功
|
|
149
|
+
export type fileStatus =
|
|
150
|
+
| "waiting"
|
|
151
|
+
| "uploading"
|
|
152
|
+
| "uploadError"
|
|
153
|
+
| "waitParse"
|
|
154
|
+
| "parsing"
|
|
155
|
+
| "parsingError"
|
|
156
|
+
| "success";
|
|
157
|
+
|
|
158
|
+
// footer Ref Props
|
|
159
|
+
|
|
160
|
+
export interface footerRefProps {
|
|
161
|
+
setTextValue: (value: string) => void; // 设置输入框的值
|
|
162
|
+
sendMsg: (value: string) => void; // 发送消息
|
|
163
|
+
refreshSendMsg:(msgId:string,value:string,reference?:any,fileList?:any)=>void;// 刷新消息
|
|
164
|
+
sendMsgLeft:(msgId:string,value:string,reference?:any,fileList?:any)=>void;// 发送消息只显示ai返回的 不显示自己发送的
|
|
165
|
+
clearText: () => void; // 清空输入框
|
|
166
|
+
getCanSendMsg: () => boolean; //获取当前是否允许发送消息的状态
|
|
167
|
+
stopMessage: () => void; //停止发送消息
|
|
168
|
+
setReferences: (reference: referenceType) => void; // 添加引用
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// sendBtn Props
|
|
172
|
+
|
|
173
|
+
export interface sendBtnProps {
|
|
174
|
+
prefix: string;
|
|
175
|
+
canSendMsg: boolean;
|
|
176
|
+
sending: boolean;
|
|
177
|
+
stopMessage: () => void;
|
|
178
|
+
clickFn?: () => void;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// uploadFileBtn Props
|
|
182
|
+
export interface uploadFileBtnProps {
|
|
183
|
+
prefix: string;
|
|
184
|
+
fileUpload: fileUploadProps;
|
|
185
|
+
customRequest: (options: any) => void;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface VoteBtnProps {
|
|
189
|
+
prefix: string;
|
|
190
|
+
clickFn: () => void;
|
|
191
|
+
isActive: boolean;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface refreshBtnProps{
|
|
195
|
+
prefix:string;
|
|
196
|
+
clickFn:()=>void;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// fileList Props
|
|
200
|
+
|
|
201
|
+
export interface fileListProps {
|
|
202
|
+
prefix: string;
|
|
203
|
+
fileUpload: fileUploadProps;
|
|
204
|
+
errorCallback: (error: errorMessageProps) => void;
|
|
205
|
+
changeFileCanSending: (flag: boolean) => void;
|
|
206
|
+
onChange:(obj:{page:number,pageSize:number,fileList:fileCustomProps[]})=>void
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// file 自定义对象
|
|
210
|
+
|
|
211
|
+
export interface fileCustomProps {
|
|
212
|
+
name: string;
|
|
213
|
+
suffix: string;
|
|
214
|
+
fileId: string;
|
|
215
|
+
url: string;
|
|
216
|
+
status: fileStatus | undefined;
|
|
217
|
+
source: File | undefined;
|
|
218
|
+
size:number
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// FileList 组件 ref props
|
|
222
|
+
|
|
223
|
+
export interface FileListRefProps {
|
|
224
|
+
addFile: (file: File) => void;
|
|
225
|
+
changePage: (page: number) => void;
|
|
226
|
+
deleteFile: (fileId: string) => void;
|
|
227
|
+
updateFile: (fileId: string, status: fileStatus) => void;
|
|
228
|
+
getFileList: () => fileCustomProps[];
|
|
229
|
+
vaildFile: (file: File, fileId?: string) => boolean; // 校验文件是否合规
|
|
230
|
+
fileToCustomFile: (file: File, params: any) => fileCustomProps;
|
|
231
|
+
clearFileList: () => void;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// error Message
|
|
235
|
+
|
|
236
|
+
export interface errorMessageProps {
|
|
237
|
+
type: errorMessageType;
|
|
238
|
+
message: string;
|
|
239
|
+
}
|
|
240
|
+
/*
|
|
241
|
+
fileAcceptError 文件类型错误
|
|
242
|
+
fileSizeEmpty 文件大小为空
|
|
243
|
+
fileSizeOver 文件大小超出限制
|
|
244
|
+
fileCountOver 文件数量超出限制
|
|
245
|
+
fileNameExist 文件名称已存在
|
|
246
|
+
*/
|
|
247
|
+
export type errorMessageType =
|
|
248
|
+
| "fileAcceptError"
|
|
249
|
+
| "fileSizeEmpty"
|
|
250
|
+
| "fileSizeOver"
|
|
251
|
+
| "fileCountOver"
|
|
252
|
+
| "fileNameExist";
|
|
253
|
+
|
|
254
|
+
// 引用数据类型
|
|
255
|
+
|
|
256
|
+
export type referenceType = referenceTypeText | referenceTypeFile;
|
|
257
|
+
|
|
258
|
+
export type referenceTypeText = {
|
|
259
|
+
type: "text";
|
|
260
|
+
value: string;
|
|
261
|
+
source:any;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type referenceTypeFile = {
|
|
265
|
+
type: "file";
|
|
266
|
+
value: fileCustomProps;
|
|
267
|
+
source:any;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export interface VirtuosoListProps {
|
|
271
|
+
prefix: string;
|
|
272
|
+
contentConfig: contentConfigProps;
|
|
273
|
+
apiRef: AIMessageListRefProps;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface VirtuosoListRefProps {
|
|
277
|
+
addMsg: (msg: dataItemType) => void;
|
|
278
|
+
updateMsg: (id: string, obj: any) => void;
|
|
279
|
+
clearInputing: () => void; //清楚正在输入的inputing
|
|
280
|
+
recordMsg: (item: dataItemType) => void;
|
|
281
|
+
getDataSource: () => dataItemType[];
|
|
282
|
+
upateDataSource:(id:string,obj:dataItemType)=>void;
|
|
283
|
+
changeDataSource:(list:dataItemType[])=>void;
|
|
284
|
+
scrollToBottom: () => void;
|
|
285
|
+
setSendingId:(id:string)=>void;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface contentRefProps extends VirtuosoListRefProps {}
|
|
289
|
+
|
|
290
|
+
export interface EventSourceMessage {
|
|
291
|
+
id: string;
|
|
292
|
+
event: string;
|
|
293
|
+
data: string;
|
|
294
|
+
retry?: number;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface dataItemType {
|
|
298
|
+
id: string; // 唯一id
|
|
299
|
+
createTime: string | number; //创建时间
|
|
300
|
+
content: string; //消息内容
|
|
301
|
+
location: "left" | "right"; // 消息显示在左边还是右边
|
|
302
|
+
reference: referenceType | null; // 引用数据
|
|
303
|
+
source: any; //原消息对象
|
|
304
|
+
vote?:string;// "up":点赞。"down":踩
|
|
305
|
+
type?:"file"|"text",
|
|
306
|
+
suffix?:string;
|
|
307
|
+
fileTitle?:string;
|
|
308
|
+
fileList?:fileCustomProps[];
|
|
309
|
+
hideAction?:boolean;
|
|
310
|
+
}
|