@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.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/es/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +32 -26
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +311 -5
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -0
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/lib/index.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h = (w,
|
|
1
|
+
var h = (w, i, n) => new Promise((I, e) => {
|
|
2
2
|
var r = (c) => {
|
|
3
3
|
try {
|
|
4
4
|
a(n.next(c));
|
|
@@ -12,73 +12,74 @@ var h = (w, d, n) => new Promise((I, e) => {
|
|
|
12
12
|
e(f);
|
|
13
13
|
}
|
|
14
14
|
}, a = (c) => c.done ? I(c.value) : Promise.resolve(c.value).then(r, E);
|
|
15
|
-
a((n = n.apply(w,
|
|
15
|
+
a((n = n.apply(w, i)).next());
|
|
16
16
|
});
|
|
17
|
-
import { jsx as L } from "
|
|
18
|
-
import { useContext as
|
|
19
|
-
import { Drawer as
|
|
20
|
-
|
|
21
|
-
import B from "
|
|
17
|
+
import { jsx as L } from "../../../_virtual/jsx-runtime.mjs";
|
|
18
|
+
import { useContext as O, useState as b, useRef as R, useEffect as x } from "react";
|
|
19
|
+
import { Drawer as j, Spin as v, message as m } from "antd";
|
|
20
|
+
import "./style.less.mjs";
|
|
21
|
+
import { LoadingOutlined as B } from "@ant-design/icons";
|
|
22
|
+
import H from "./SessionItem.mjs";
|
|
22
23
|
import P from "../../../context.mjs";
|
|
23
|
-
const
|
|
24
|
+
const M = (w) => {
|
|
24
25
|
const {
|
|
25
|
-
currentSessionId:
|
|
26
|
+
currentSessionId: i,
|
|
26
27
|
onSessionChange: n,
|
|
27
28
|
onClose: I
|
|
28
29
|
} = w, {
|
|
29
30
|
agentClient: e,
|
|
30
31
|
popupContainer: r
|
|
31
|
-
} =
|
|
32
|
+
} = O(P), [E, a] = b(!1), [c, f] = b(!1), [p, T] = b(""), [l, S] = b([]), s = R(l);
|
|
32
33
|
x(() => {
|
|
33
|
-
|
|
34
|
-
a(!1),
|
|
34
|
+
s.current = [], S(s.current), a(!0), e == null || e.getSessions().then((t) => h(void 0, null, function* () {
|
|
35
|
+
a(!1), s.current = [...t], S(s.current);
|
|
35
36
|
}));
|
|
36
37
|
}, []), x(() => {
|
|
37
|
-
|
|
38
|
+
l.length && i && setTimeout(() => {
|
|
38
39
|
var t;
|
|
39
|
-
(t = document.getElementById(
|
|
40
|
+
(t = document.getElementById(i)) == null || t.scrollIntoView(!0);
|
|
40
41
|
}, 100);
|
|
41
|
-
}, [
|
|
42
|
-
const
|
|
42
|
+
}, [l]);
|
|
43
|
+
const _ = (t, o) => {
|
|
43
44
|
m.config({
|
|
44
45
|
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
45
46
|
}), e == null || e.removeSession(t, !0).then(() => h(void 0, null, function* () {
|
|
46
|
-
const
|
|
47
|
+
const d = l.filter((u) => {
|
|
47
48
|
var g, y;
|
|
48
49
|
return ((g = u.data) == null ? void 0 : g.id) !== ((y = t.data) == null ? void 0 : y.id);
|
|
49
50
|
});
|
|
50
|
-
t.data.id ===
|
|
51
|
-
})),
|
|
52
|
-
},
|
|
51
|
+
t.data.id === i && n && n(""), m.success("删除成功"), s.current = [...d], S(s.current);
|
|
52
|
+
})), o == null || o.stopPropagation();
|
|
53
|
+
}, $ = (t) => {
|
|
53
54
|
t && (n && n(t.sessionId, t), I());
|
|
54
|
-
}, z = (t,
|
|
55
|
+
}, z = (t, o) => h(void 0, null, function* () {
|
|
55
56
|
m.config({
|
|
56
57
|
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
57
58
|
});
|
|
58
59
|
try {
|
|
59
|
-
yield e == null ? void 0 : e.setTop(t.data.id,
|
|
60
|
-
} catch (
|
|
61
|
-
m.error(`${
|
|
60
|
+
yield e == null ? void 0 : e.setTop(t.data.id, o), m.success(`${o ? "" : "取消"}置顶成功`);
|
|
61
|
+
} catch (d) {
|
|
62
|
+
m.error(`${o ? "" : "取消"}置顶失败`);
|
|
62
63
|
}
|
|
63
64
|
e == null || e.getSessions({
|
|
64
65
|
order: "top_time desc, sort_status desc, updated_at desc"
|
|
65
|
-
}).then((
|
|
66
|
-
|
|
66
|
+
}).then((d) => h(void 0, null, function* () {
|
|
67
|
+
s.current = [...d], S(s.current);
|
|
67
68
|
}));
|
|
68
|
-
}), D = (t,
|
|
69
|
+
}), D = (t, o) => {
|
|
69
70
|
m.config({
|
|
70
71
|
getContainer: () => (r == null ? void 0 : r.current) || document.body
|
|
71
|
-
}),
|
|
72
|
-
const
|
|
72
|
+
}), o && (t.rename(o), t == null || t.addEventListener("data:updated", () => {
|
|
73
|
+
const d = s.current.map((u) => {
|
|
73
74
|
var g, y;
|
|
74
75
|
return ((g = u.data) == null ? void 0 : g.id) === ((y = u.data) == null ? void 0 : y.id), u;
|
|
75
76
|
});
|
|
76
|
-
|
|
77
|
+
s.current = [...d], S(s.current);
|
|
77
78
|
}));
|
|
78
|
-
},
|
|
79
|
-
f(
|
|
79
|
+
}, N = (t, o) => {
|
|
80
|
+
f(o), T(t);
|
|
80
81
|
};
|
|
81
|
-
return /* @__PURE__ */ L(
|
|
82
|
+
return /* @__PURE__ */ L(j, {
|
|
82
83
|
title: "会话历史记录",
|
|
83
84
|
open: !0,
|
|
84
85
|
placement: "bottom",
|
|
@@ -90,30 +91,30 @@ const V = (w) => {
|
|
|
90
91
|
style: {
|
|
91
92
|
position: "absolute"
|
|
92
93
|
},
|
|
93
|
-
children: E ? /* @__PURE__ */ L(
|
|
94
|
-
indicator: /* @__PURE__ */ L(
|
|
94
|
+
children: E ? /* @__PURE__ */ L(v, {
|
|
95
|
+
indicator: /* @__PURE__ */ L(B, {
|
|
95
96
|
style: {
|
|
96
97
|
fontSize: 24
|
|
97
98
|
},
|
|
98
99
|
spin: !0
|
|
99
100
|
})
|
|
100
|
-
}) :
|
|
101
|
-
var
|
|
102
|
-
return /* @__PURE__ */ L(
|
|
101
|
+
}) : l.map((t, o) => {
|
|
102
|
+
var d;
|
|
103
|
+
return /* @__PURE__ */ L(H, {
|
|
103
104
|
session: t,
|
|
104
|
-
index:
|
|
105
|
-
currentSessionId:
|
|
106
|
-
onChangeSession:
|
|
107
|
-
onDelSession:
|
|
105
|
+
index: o,
|
|
106
|
+
currentSessionId: i,
|
|
107
|
+
onChangeSession: $,
|
|
108
|
+
onDelSession: _,
|
|
108
109
|
onTopSession: z,
|
|
109
110
|
onEditNameConfirm: D,
|
|
110
|
-
editSessionId:
|
|
111
|
+
editSessionId: p,
|
|
111
112
|
isEdit: c,
|
|
112
|
-
onChangeEditStatus:
|
|
113
|
-
}, (
|
|
113
|
+
onChangeEditStatus: N
|
|
114
|
+
}, (d = t.data) == null ? void 0 : d.id);
|
|
114
115
|
})
|
|
115
116
|
});
|
|
116
|
-
}
|
|
117
|
+
};
|
|
117
118
|
export {
|
|
118
|
-
|
|
119
|
+
M as default
|
|
119
120
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as a, jsx as s } from "
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { jsxs as a, jsx as s } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Popover as p, Button as c } from "antd";
|
|
3
3
|
import { useState as m } from "react";
|
|
4
4
|
import f from "./HistorySessionList/index.mjs";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import "./style.less.mjs";
|
|
6
|
+
import d from "../../Iconfont/index.mjs";
|
|
7
|
+
const C = (o) => {
|
|
7
8
|
const {
|
|
8
9
|
currentSessionId: t,
|
|
9
10
|
disabled: i = !1,
|
|
@@ -11,7 +12,7 @@ const S = (o) => {
|
|
|
11
12
|
} = o, [r, e] = m(!1);
|
|
12
13
|
return /* @__PURE__ */ a("div", {
|
|
13
14
|
className: "session-list-component",
|
|
14
|
-
children: [/* @__PURE__ */ s(
|
|
15
|
+
children: [/* @__PURE__ */ s(p, {
|
|
15
16
|
placement: "topRight",
|
|
16
17
|
showArrow: !1,
|
|
17
18
|
overlayClassName: "session-list-overlay",
|
|
@@ -20,7 +21,7 @@ const S = (o) => {
|
|
|
20
21
|
},
|
|
21
22
|
getPopupContainer: (l) => l.parentNode,
|
|
22
23
|
content: "会话历史记录",
|
|
23
|
-
children: /* @__PURE__ */ s(
|
|
24
|
+
children: /* @__PURE__ */ s(c, {
|
|
24
25
|
className: "list-overlay-action",
|
|
25
26
|
disabled: i,
|
|
26
27
|
type: "text",
|
|
@@ -38,7 +39,7 @@ const S = (o) => {
|
|
|
38
39
|
onClose: () => e(!1)
|
|
39
40
|
})]
|
|
40
41
|
});
|
|
41
|
-
}
|
|
42
|
+
};
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
C as default
|
|
44
45
|
};
|
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
var a = (p, e,
|
|
1
|
+
var a = (p, e, n) => new Promise((l, i) => {
|
|
2
2
|
var m = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
r(
|
|
4
|
+
r(n.next(o));
|
|
5
5
|
} catch (c) {
|
|
6
|
-
|
|
6
|
+
i(c);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, k = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
r(
|
|
10
|
+
r(n.throw(o));
|
|
11
11
|
} catch (c) {
|
|
12
|
-
|
|
12
|
+
i(c);
|
|
13
13
|
}
|
|
14
|
-
}, r = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m,
|
|
15
|
-
r((
|
|
14
|
+
}, r = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m, k);
|
|
15
|
+
r((n = n.apply(p, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { jsxs as g, jsx as t } from "
|
|
17
|
+
import { jsxs as g, jsx as t } from "../../../_virtual/jsx-runtime.mjs";
|
|
18
18
|
import { useContext as w } from "react";
|
|
19
|
-
import { Space as
|
|
20
|
-
import { ISourceType as
|
|
19
|
+
import { Space as h, Tooltip as I, Button as y } from "antd";
|
|
20
|
+
import { ISourceType as f, IversionInfo as b } from "@glodon-aiot/apis";
|
|
21
21
|
import d from "../../../Iconfont/index.mjs";
|
|
22
|
-
|
|
22
|
+
import "./style.less.mjs";
|
|
23
|
+
import x from "../../../components/WebLink/index.mjs";
|
|
23
24
|
import C from "../../../context.mjs";
|
|
24
|
-
const
|
|
25
|
+
const F = (p) => {
|
|
25
26
|
var o, c;
|
|
26
27
|
const {
|
|
27
28
|
data: e,
|
|
28
|
-
onClick:
|
|
29
|
+
onClick: n,
|
|
29
30
|
loadPage: l
|
|
30
31
|
} = p, {
|
|
31
|
-
transform:
|
|
32
|
+
transform: i
|
|
32
33
|
} = w(C), m = () => a(void 0, null, function* () {
|
|
33
34
|
return l ? yield l(e.knowledgeId, e.docId, e.textId) : 0;
|
|
34
|
-
}),
|
|
35
|
+
}), k = e.sourceType === f.WebLink && !!e.webLink, r = (
|
|
35
36
|
// data?.origin === IFileOrigin.AECPILOT ||
|
|
36
|
-
e.sourceType ===
|
|
37
|
+
e.sourceType === f.SourceFile && !!e.sourceFileName && // data.sourceFileName 标识参考文件存在与否,不能使用其他字段判断
|
|
37
38
|
(e == null ? void 0 : e.versionInfo) !== b.ProtectUnauthorize
|
|
38
39
|
);
|
|
39
|
-
return /* @__PURE__ */ g(
|
|
40
|
+
return /* @__PURE__ */ g(h, {
|
|
40
41
|
className: "session-refer-panel",
|
|
41
42
|
children: [/* @__PURE__ */ t("span", {
|
|
42
43
|
className: "refer-panel-item",
|
|
43
44
|
children: (e.knowledgeSourceName || "") + (e.knowledgeTitleName || "") || "-"
|
|
44
|
-
}),
|
|
45
|
+
}), k && ((o = i == null ? void 0 : i.reference) == null ? void 0 : o.iconVisible) && /* @__PURE__ */ t(I, {
|
|
45
46
|
overlayStyle: {
|
|
46
47
|
maxWidth: "90vw"
|
|
47
48
|
},
|
|
@@ -53,7 +54,7 @@ const L = (p) => {
|
|
|
53
54
|
}),
|
|
54
55
|
children: /* @__PURE__ */ t(y, {
|
|
55
56
|
icon: /* @__PURE__ */ t(d, {
|
|
56
|
-
type: e.sourceType ===
|
|
57
|
+
type: e.sourceType === f.WebLink ? "icon-lianjie" : "icon-doc-link",
|
|
57
58
|
style: {
|
|
58
59
|
fontSize: 16
|
|
59
60
|
}
|
|
@@ -61,10 +62,10 @@ const L = (p) => {
|
|
|
61
62
|
type: "link",
|
|
62
63
|
size: "small",
|
|
63
64
|
onClick: (s) => a(void 0, null, function* () {
|
|
64
|
-
s.stopPropagation(),
|
|
65
|
+
s.stopPropagation(), n(e);
|
|
65
66
|
})
|
|
66
67
|
})
|
|
67
|
-
}), r && ((c =
|
|
68
|
+
}), r && ((c = i == null ? void 0 : i.reference) == null ? void 0 : c.iconVisible) && /* @__PURE__ */ t(y, {
|
|
68
69
|
icon: /* @__PURE__ */ t(d, {
|
|
69
70
|
type: "icon-doc-link",
|
|
70
71
|
style: {
|
|
@@ -76,11 +77,11 @@ const L = (p) => {
|
|
|
76
77
|
onClick: (s) => a(void 0, null, function* () {
|
|
77
78
|
s.stopPropagation();
|
|
78
79
|
const u = (yield m()) || 0;
|
|
79
|
-
|
|
80
|
+
n(e, u);
|
|
80
81
|
})
|
|
81
82
|
})]
|
|
82
83
|
});
|
|
83
|
-
}
|
|
84
|
+
};
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
+
F as default
|
|
86
87
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as n } from "../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { useContext as x } from "react";
|
|
3
3
|
import { Space as p, Collapse as f } from "antd";
|
|
4
4
|
import S from "../../Iconfont/index.mjs";
|
|
5
|
-
|
|
5
|
+
import "./style.less.mjs";
|
|
6
|
+
import { ISourceType as u } from "@glodon-aiot/apis";
|
|
6
7
|
import D from "../../components/Markdown/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
8
|
+
import y from "./ReferItem/index.mjs";
|
|
9
|
+
import F from "../../context.mjs";
|
|
9
10
|
const {
|
|
10
|
-
Panel:
|
|
11
|
-
} = f,
|
|
11
|
+
Panel: R
|
|
12
|
+
} = f, E = (h) => {
|
|
12
13
|
var r, d, c, m;
|
|
13
14
|
const {
|
|
14
15
|
history: o,
|
|
@@ -16,18 +17,18 @@ const {
|
|
|
16
17
|
} = h, {
|
|
17
18
|
transform: i,
|
|
18
19
|
service: l
|
|
19
|
-
} = x(
|
|
20
|
+
} = x(F), I = (e, a) => {
|
|
20
21
|
if (!(!(e != null && e.knowledgeId) || !(e != null && e.docId))) {
|
|
21
22
|
if (e.sourceType === u.WebLink) {
|
|
22
23
|
window.open(e.webLink);
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
e.sourceType === u.SourceFile && window.open(`${w}#/doc?url=${encodeURIComponent(e.sourceFileUrl)}&page=${
|
|
26
|
+
e.sourceType === u.SourceFile && window.open(`${w}#/doc?url=${encodeURIComponent(e.sourceFileUrl)}&page=${a || 0}`);
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ s("div", {
|
|
29
30
|
className: "session-refer",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ s(p, {
|
|
31
32
|
className: "session-refer-header",
|
|
32
33
|
size: 8,
|
|
33
34
|
children: [/* @__PURE__ */ n(S, {
|
|
@@ -39,21 +40,21 @@ const {
|
|
|
39
40
|
}), /* @__PURE__ */ n("span", {
|
|
40
41
|
className: "refer-header-title",
|
|
41
42
|
children: "参考来源"
|
|
42
|
-
}), /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ s("span", {
|
|
43
44
|
children: ["(共 ", ((r = o == null ? void 0 : o.reference) == null ? void 0 : r.length) || 0, " 项)"]
|
|
44
45
|
})]
|
|
45
46
|
}), /* @__PURE__ */ n("div", {
|
|
46
47
|
className: "session-refer-content",
|
|
47
48
|
children: /* @__PURE__ */ n(f, {
|
|
48
49
|
ghost: !0,
|
|
49
|
-
defaultActiveKey: (d = i == null ? void 0 : i.reference) != null && d.isExpand ? (c = o == null ? void 0 : o.reference) == null ? void 0 : c.map((e,
|
|
50
|
-
children: (m = o == null ? void 0 : o.reference) == null ? void 0 : m.map((e,
|
|
51
|
-
header: /* @__PURE__ */
|
|
50
|
+
defaultActiveKey: (d = i == null ? void 0 : i.reference) != null && d.isExpand ? (c = o == null ? void 0 : o.reference) == null ? void 0 : c.map((e, a) => e.docId + a) : [],
|
|
51
|
+
children: (m = o == null ? void 0 : o.reference) == null ? void 0 : m.map((e, a) => /* @__PURE__ */ n(R, {
|
|
52
|
+
header: /* @__PURE__ */ s(p, {
|
|
52
53
|
className: "session-refer-panel",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ s("span", {
|
|
54
55
|
className: "refer-panel-item",
|
|
55
|
-
children: [
|
|
56
|
-
}), l && /* @__PURE__ */ n(
|
|
56
|
+
children: [a + 1, "."]
|
|
57
|
+
}), l && /* @__PURE__ */ n(y, {
|
|
57
58
|
data: e,
|
|
58
59
|
loadPage: (g, k, C) => l.getKnowledgeIdFileIdData(g, k, C).then((N) => {
|
|
59
60
|
const t = (N || []).find((v) => v.key === "pages_from");
|
|
@@ -68,11 +69,11 @@ const {
|
|
|
68
69
|
children: e.text || "-"
|
|
69
70
|
})
|
|
70
71
|
})
|
|
71
|
-
}, e.docId +
|
|
72
|
+
}, e.docId + a))
|
|
72
73
|
})
|
|
73
74
|
})]
|
|
74
75
|
});
|
|
75
|
-
}
|
|
76
|
+
};
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
E as default
|
|
78
79
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as o, jsx as e } from "
|
|
2
|
-
import { Space as
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import m from "../../
|
|
6
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Space as r } from "antd";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { removeNewlines as c } from "../../utils/index.mjs";
|
|
5
|
+
import m from "../../Iconfont/index.mjs";
|
|
6
|
+
import l from "../../components/Markdown/index.mjs";
|
|
7
|
+
const x = (n) => {
|
|
7
8
|
const {
|
|
8
|
-
history:
|
|
9
|
+
history: d,
|
|
9
10
|
onRelatedClick: i,
|
|
10
11
|
relatedQuesion: t
|
|
11
12
|
} = n;
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
13
|
+
return /* @__PURE__ */ o(r, {
|
|
13
14
|
className: "session-related",
|
|
14
15
|
direction: "vertical",
|
|
15
16
|
size: 12,
|
|
16
|
-
children: [/* @__PURE__ */ o(
|
|
17
|
+
children: [/* @__PURE__ */ o(r, {
|
|
17
18
|
className: "session-related-header",
|
|
18
19
|
size: 8,
|
|
19
|
-
children: [/* @__PURE__ */ e(
|
|
20
|
+
children: [/* @__PURE__ */ e(m, {
|
|
20
21
|
type: "icon-xiangguanwenti",
|
|
21
22
|
style: {
|
|
22
23
|
color: "#0A51D1",
|
|
@@ -26,20 +27,20 @@ const d = (n) => {
|
|
|
26
27
|
className: "question-header-title",
|
|
27
28
|
children: "相关问题"
|
|
28
29
|
})]
|
|
29
|
-
}), /* @__PURE__ */ e(
|
|
30
|
+
}), /* @__PURE__ */ e(r, {
|
|
30
31
|
className: "session-related-main",
|
|
31
32
|
direction: "vertical",
|
|
32
33
|
size: 12,
|
|
33
|
-
children: t.map((
|
|
34
|
+
children: t.map((s, a) => /* @__PURE__ */ e("div", {
|
|
34
35
|
className: "question-main-item",
|
|
35
|
-
onClick: () => i == null ? void 0 : i(c(
|
|
36
|
-
children: /* @__PURE__ */ e(
|
|
37
|
-
children:
|
|
36
|
+
onClick: () => i == null ? void 0 : i(c(s)),
|
|
37
|
+
children: /* @__PURE__ */ e(l, {
|
|
38
|
+
children: s
|
|
38
39
|
})
|
|
39
40
|
}, a))
|
|
40
41
|
})]
|
|
41
42
|
});
|
|
42
|
-
}
|
|
43
|
+
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
x as default
|
|
45
46
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { CloseCircleFilled as
|
|
3
|
-
import { Modal as
|
|
4
|
-
|
|
1
|
+
import { jsx as e, jsxs as n } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { CloseCircleFilled as r } from "@ant-design/icons";
|
|
3
|
+
import { Modal as a, Button as o } from "antd";
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
const p = (t) => {
|
|
5
6
|
const {
|
|
6
7
|
isvisible: c,
|
|
7
8
|
onClose: l
|
|
8
9
|
} = t;
|
|
9
|
-
return /* @__PURE__ */ e(
|
|
10
|
+
return /* @__PURE__ */ e(a, {
|
|
10
11
|
className: "clear-modal",
|
|
11
12
|
width: 340,
|
|
12
13
|
open: c,
|
|
13
|
-
title: /* @__PURE__ */
|
|
14
|
+
title: /* @__PURE__ */ n("div", {
|
|
14
15
|
className: "title",
|
|
15
|
-
children: [/* @__PURE__ */ e(
|
|
16
|
+
children: [/* @__PURE__ */ e(r, {
|
|
16
17
|
style: {
|
|
17
18
|
color: "#F33E3E",
|
|
18
19
|
fontSize: 20
|
|
@@ -44,7 +45,7 @@ import { Modal as r, Button as o } from "antd";
|
|
|
44
45
|
children: "列表中的文件清空后不能恢复,请确认是否清空所有文件。"
|
|
45
46
|
})
|
|
46
47
|
});
|
|
47
|
-
}
|
|
48
|
+
};
|
|
48
49
|
export {
|
|
49
50
|
p as default
|
|
50
51
|
};
|