@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,55 +1,56 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e } from "
|
|
1
|
+
import { jsxs as l, jsx as e } from "../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { useContext as w, useState as h, useEffect as N } from "react";
|
|
3
3
|
import f from "../FileCard/doc-icons/pdf.svg.mjs";
|
|
4
4
|
import v from "../FileCard/doc-icons/doc.svg.mjs";
|
|
5
5
|
import y from "../FileCard/doc-icons/docx.svg.mjs";
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import j from "../
|
|
9
|
-
|
|
6
|
+
import "./style.less.mjs";
|
|
7
|
+
import { Typography as U, message as u } from "antd";
|
|
8
|
+
import { getFileExtension as x, formatFileSize as E, isValidImageUrlWithAnyExtension as j } from "../utils/index.mjs";
|
|
9
|
+
import k from "../context.mjs";
|
|
10
|
+
const z = {
|
|
10
11
|
doc: v,
|
|
11
12
|
docx: y,
|
|
12
13
|
pdf: f
|
|
13
|
-
},
|
|
14
|
+
}, b = (g) => {
|
|
14
15
|
const {
|
|
15
16
|
currentSession: i,
|
|
16
|
-
fileId:
|
|
17
|
+
fileId: p,
|
|
17
18
|
file: r,
|
|
18
|
-
docViewerUrl:
|
|
19
|
+
docViewerUrl: C
|
|
19
20
|
} = g, {
|
|
20
21
|
service: m
|
|
21
|
-
} = w(
|
|
22
|
+
} = w(k), [o, t] = h(), [c, d] = h("");
|
|
22
23
|
N(() => {
|
|
23
24
|
var n;
|
|
24
25
|
if (r != null && r.id) {
|
|
25
|
-
|
|
26
|
+
t(r);
|
|
26
27
|
const s = x(r == null ? void 0 : r.name) || "";
|
|
27
28
|
d(s);
|
|
28
29
|
} else {
|
|
29
|
-
if (!
|
|
30
|
+
if (!p || !((n = i == null ? void 0 : i.data) != null && n.id))
|
|
30
31
|
return;
|
|
31
|
-
m == null || m.getSessionKnowledgeFile(i.data.id,
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
d(
|
|
32
|
+
m == null || m.getSessionKnowledgeFile(i.data.id, p).then((s) => {
|
|
33
|
+
t(s);
|
|
34
|
+
const I = x(s == null ? void 0 : s.name) || "";
|
|
35
|
+
d(I);
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
}, []);
|
|
38
|
-
const
|
|
39
|
+
const F = (n) => {
|
|
39
40
|
if (!(n != null && n.url))
|
|
40
41
|
return u.error("链接不存在");
|
|
41
|
-
if (
|
|
42
|
+
if (!j(n.url))
|
|
42
43
|
return u.error("链接格式不正确");
|
|
43
|
-
window.open(`${
|
|
44
|
+
window.open(`${C}#/doc?url=${encodeURIComponent(n == null ? void 0 : n.url)}`);
|
|
44
45
|
};
|
|
45
46
|
return /* @__PURE__ */ l("div", {
|
|
46
47
|
className: "file-item",
|
|
47
|
-
onClick: () =>
|
|
48
|
+
onClick: () => F(o),
|
|
48
49
|
children: [/* @__PURE__ */ e("div", {
|
|
49
50
|
className: "item-left",
|
|
50
51
|
children: /* @__PURE__ */ e("img", {
|
|
51
52
|
className: "file-icon",
|
|
52
|
-
src:
|
|
53
|
+
src: z[c]
|
|
53
54
|
})
|
|
54
55
|
}), /* @__PURE__ */ l("div", {
|
|
55
56
|
className: "item-main",
|
|
@@ -78,7 +79,7 @@ const k = {
|
|
|
78
79
|
})]
|
|
79
80
|
})]
|
|
80
81
|
});
|
|
81
|
-
}
|
|
82
|
+
};
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
b as default
|
|
84
85
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
|
|
1
|
+
import { jsx as o } from "../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useRef as u, useEffect as n } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
const l = ({
|
|
4
5
|
visible: e = !0,
|
|
5
|
-
text:
|
|
6
|
+
text: f = "所有内容均由 AecGPT 人工智能模型生成,请仔细甄别。",
|
|
6
7
|
element: r
|
|
7
8
|
}) => {
|
|
8
9
|
if (!e)
|
|
9
10
|
return null;
|
|
10
|
-
const t =
|
|
11
|
-
return
|
|
12
|
-
var
|
|
13
|
-
r && ((
|
|
14
|
-
}, [r]), r ? /* @__PURE__ */
|
|
11
|
+
const t = u(null);
|
|
12
|
+
return n(() => {
|
|
13
|
+
var i;
|
|
14
|
+
r && ((i = t.current) == null || i.replaceWith(r));
|
|
15
|
+
}, [r]), r ? /* @__PURE__ */ o("div", {
|
|
15
16
|
ref: t
|
|
16
|
-
}) : /* @__PURE__ */
|
|
17
|
+
}) : /* @__PURE__ */ o("div", {
|
|
17
18
|
className: "footer-warning",
|
|
18
19
|
ref: t,
|
|
19
|
-
children:
|
|
20
|
+
children: f
|
|
20
21
|
});
|
|
21
|
-
}
|
|
22
|
+
};
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
+
l as default
|
|
24
25
|
};
|
package/dist/es/Footer/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsxs as t, jsx as f } from "../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import "./style.less.mjs";
|
|
3
|
+
import m from "./FooterWarning.mjs";
|
|
4
|
+
const l = ({
|
|
4
5
|
className: e,
|
|
5
6
|
tips: o,
|
|
6
7
|
children: r
|
|
7
8
|
}) => /* @__PURE__ */ t("div", {
|
|
8
9
|
className: `home-footer ${e || ""}`,
|
|
9
|
-
children: [r, /* @__PURE__ */
|
|
10
|
+
children: [r, /* @__PURE__ */ f(m, {
|
|
10
11
|
visible: o !== !1,
|
|
11
12
|
text: typeof o == "string" ? o : void 0,
|
|
12
13
|
element: typeof o != "string" && typeof o != "boolean" ? o : void 0
|
|
13
14
|
})]
|
|
14
|
-
})
|
|
15
|
+
});
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
l as default
|
|
17
18
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
|
|
1
|
+
import { jsxs as e, jsx as t } from "../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import "./style.less.mjs";
|
|
3
|
+
const o = (n) => {
|
|
3
4
|
const {
|
|
4
|
-
text:
|
|
5
|
+
text: i,
|
|
5
6
|
size: s = 12
|
|
6
7
|
} = n;
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ e("span", {
|
|
8
9
|
className: "input-progress",
|
|
9
|
-
children: [/* @__PURE__ */
|
|
10
|
+
children: [/* @__PURE__ */ e("span", {
|
|
10
11
|
className: "progress-point",
|
|
11
12
|
children: [/* @__PURE__ */ t("div", {
|
|
12
13
|
className: "point point1",
|
|
@@ -27,12 +28,12 @@ import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
|
27
28
|
height: s
|
|
28
29
|
}
|
|
29
30
|
})]
|
|
30
|
-
}),
|
|
31
|
+
}), i ? /* @__PURE__ */ t("span", {
|
|
31
32
|
className: "progress-waiting",
|
|
32
|
-
children:
|
|
33
|
+
children: i
|
|
33
34
|
}) : null]
|
|
34
35
|
});
|
|
35
|
-
}
|
|
36
|
+
};
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
o as default
|
|
38
39
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as s, jsx as r } from "
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import T from "classnames";
|
|
5
|
-
import
|
|
6
|
-
import { Popover as
|
|
7
|
-
import "react-quill/dist/quill.snow.css";
|
|
8
|
-
|
|
1
|
+
import { jsxs as s, jsx as r } from "../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { forwardRef as X, useState as o, useRef as O, useImperativeHandle as Y, useEffect as g } from "react";
|
|
3
|
+
import Z from "react-quill";
|
|
4
|
+
import T from "../node_modules/classnames/index.mjs";
|
|
5
|
+
import ee from "../Iconfont/index.mjs";
|
|
6
|
+
import { Popover as te, Space as ne, Button as re } from "antd";
|
|
7
|
+
import "../node_modules/react-quill/dist/quill.snow.css.mjs";
|
|
8
|
+
import "./style.less.mjs";
|
|
9
|
+
import P from "../node_modules/ahooks/es/useKeyPress/index.mjs";
|
|
9
10
|
import { shortCutEnum as p } from "../utils/index.mjs";
|
|
10
|
-
const
|
|
11
|
+
const ie = X((z, F) => {
|
|
11
12
|
var D, q, B;
|
|
12
13
|
const {
|
|
13
14
|
text: N,
|
|
@@ -18,10 +19,10 @@ const z = Y((F, Q) => {
|
|
|
18
19
|
networkStatus: a,
|
|
19
20
|
clearAction: C,
|
|
20
21
|
loading: m
|
|
21
|
-
} =
|
|
22
|
-
|
|
23
|
-
clear:
|
|
24
|
-
prevent:
|
|
22
|
+
} = z, [b, L] = o(!0), [h, l] = o(), [v, w] = o(), [M, Q] = o(15), [S, U] = o(12), [k, A] = o(0), [I, E] = o(!1), V = O(null), n = O(null);
|
|
23
|
+
Y(F, () => ({
|
|
24
|
+
clear: $,
|
|
25
|
+
prevent: H,
|
|
25
26
|
focus: x,
|
|
26
27
|
update: W
|
|
27
28
|
})), g(() => {
|
|
@@ -29,9 +30,9 @@ const z = Y((F, Q) => {
|
|
|
29
30
|
}, [N]);
|
|
30
31
|
const W = (e) => {
|
|
31
32
|
l(e);
|
|
32
|
-
},
|
|
33
|
+
}, $ = () => {
|
|
33
34
|
l(void 0), w(void 0);
|
|
34
|
-
},
|
|
35
|
+
}, H = () => {
|
|
35
36
|
}, x = () => {
|
|
36
37
|
if (!n.current || b)
|
|
37
38
|
return;
|
|
@@ -52,7 +53,7 @@ const z = Y((F, Q) => {
|
|
|
52
53
|
if (!n.current)
|
|
53
54
|
return;
|
|
54
55
|
const e = n.current.getEditor();
|
|
55
|
-
|
|
56
|
+
Q(e.getBounds(e.getLength() - 1, e.getLength()).left), U(e.getBounds(e.getLength() - 1, e.getLength()).top);
|
|
56
57
|
}, K = (e) => {
|
|
57
58
|
if (!n.current)
|
|
58
59
|
return;
|
|
@@ -73,12 +74,12 @@ const z = Y((F, Q) => {
|
|
|
73
74
|
if (!a)
|
|
74
75
|
return;
|
|
75
76
|
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
76
|
-
e == null || e.focus(),
|
|
77
|
+
e == null || e.focus(), E(!1), setTimeout(() => e == null ? void 0 : e.insertText(k, p.NETWORK));
|
|
77
78
|
}, _ = () => {
|
|
78
79
|
var t;
|
|
79
80
|
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
80
|
-
e == null || e.focus(),
|
|
81
|
-
},
|
|
81
|
+
e == null || e.focus(), E(!1), setTimeout(() => e == null ? void 0 : e.insertText(k, p.DOCUMENT));
|
|
82
|
+
}, G = () => {
|
|
82
83
|
var t, i, u;
|
|
83
84
|
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
84
85
|
return e && (e == null ? void 0 : e.getLength()) > 2 && !((i = e.getText()) != null && i.includes(p.NETWORK)) && !((u = e.getText()) != null && u.includes(p.DOCUMENT));
|
|
@@ -101,7 +102,7 @@ const z = Y((F, Q) => {
|
|
|
101
102
|
onKeyDownCapture: (e) => {
|
|
102
103
|
!e.shiftKey && e.code === "Enter" && e.preventDefault();
|
|
103
104
|
},
|
|
104
|
-
children: [/* @__PURE__ */ r(
|
|
105
|
+
children: [/* @__PURE__ */ r(Z, {
|
|
105
106
|
theme: "snow",
|
|
106
107
|
placeholder: "输入你想问的,shift+enter 换行。",
|
|
107
108
|
ref: n,
|
|
@@ -110,7 +111,7 @@ const z = Y((F, Q) => {
|
|
|
110
111
|
onKeyDown: (e) => {
|
|
111
112
|
if (!e.shiftKey && e.keyCode == 13) {
|
|
112
113
|
const t = h == null ? void 0 : h.replace(/[\n\s]+$/, "");
|
|
113
|
-
l(t), d && d(
|
|
114
|
+
l(t), d && d(v);
|
|
114
115
|
}
|
|
115
116
|
},
|
|
116
117
|
value: h,
|
|
@@ -121,8 +122,8 @@ const z = Y((F, Q) => {
|
|
|
121
122
|
if (!t)
|
|
122
123
|
return;
|
|
123
124
|
l(e);
|
|
124
|
-
const
|
|
125
|
-
w(
|
|
125
|
+
const J = u.getText().replace(/[\n\s]+$/, "");
|
|
126
|
+
w(J), y && y(e, u);
|
|
126
127
|
}
|
|
127
128
|
}), /* @__PURE__ */ r("div", {
|
|
128
129
|
className: "shortcut-direct",
|
|
@@ -132,15 +133,15 @@ const z = Y((F, Q) => {
|
|
|
132
133
|
left: M + 4,
|
|
133
134
|
top: S,
|
|
134
135
|
cursor: "pointer",
|
|
135
|
-
visibility:
|
|
136
|
+
visibility: G() ? "visible" : "hidden"
|
|
136
137
|
},
|
|
137
|
-
children: /* @__PURE__ */ r(
|
|
138
|
+
children: /* @__PURE__ */ r(te, {
|
|
138
139
|
autoAdjustOverflow: !0,
|
|
139
140
|
placement: "top",
|
|
140
141
|
trigger: "hover",
|
|
141
142
|
getPopupContainer: (e) => e.parentNode,
|
|
142
143
|
onVisibleChange: (e) => {
|
|
143
|
-
|
|
144
|
+
E(e);
|
|
144
145
|
},
|
|
145
146
|
content: /* @__PURE__ */ s("div", {
|
|
146
147
|
className: "shortcut-direct-pannel",
|
|
@@ -184,7 +185,7 @@ const z = Y((F, Q) => {
|
|
|
184
185
|
display: "flex",
|
|
185
186
|
alignItems: "center"
|
|
186
187
|
},
|
|
187
|
-
children: [/* @__PURE__ */ s(
|
|
188
|
+
children: [/* @__PURE__ */ s(ne, {
|
|
188
189
|
size: 2,
|
|
189
190
|
style: {
|
|
190
191
|
color: "#84868C"
|
|
@@ -196,12 +197,12 @@ const z = Y((F, Q) => {
|
|
|
196
197
|
}), /* @__PURE__ */ r("span", {
|
|
197
198
|
children: c
|
|
198
199
|
})]
|
|
199
|
-
}), /* @__PURE__ */ r(
|
|
200
|
+
}), /* @__PURE__ */ r(re, {
|
|
200
201
|
type: "link",
|
|
201
202
|
ghost: !0,
|
|
202
|
-
disabled: j || !
|
|
203
|
+
disabled: j || !v,
|
|
203
204
|
loading: m,
|
|
204
|
-
icon: /* @__PURE__ */ r(
|
|
205
|
+
icon: /* @__PURE__ */ r(ee, {
|
|
205
206
|
className: "icon-sendMsg",
|
|
206
207
|
style: {
|
|
207
208
|
fontSize: 24
|
|
@@ -209,15 +210,14 @@ const z = Y((F, Q) => {
|
|
|
209
210
|
type: "icon-fasong"
|
|
210
211
|
}),
|
|
211
212
|
onClick: () => {
|
|
212
|
-
d && d(
|
|
213
|
+
d && d(v);
|
|
213
214
|
}
|
|
214
215
|
})]
|
|
215
216
|
})]
|
|
216
217
|
})]
|
|
217
218
|
});
|
|
218
219
|
});
|
|
219
|
-
|
|
220
|
-
const pe = z;
|
|
220
|
+
ie.displayName = "QuillEditor";
|
|
221
221
|
export {
|
|
222
|
-
|
|
222
|
+
ie as default
|
|
223
223
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
8
|
+
};
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useState as r, useEffect as c } from "react";
|
|
3
3
|
import l from "../../Iconfont/index.mjs";
|
|
4
4
|
import { copyToClipboard as m } from "../../utils/clipboard.mjs";
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import "./style.less.mjs";
|
|
6
|
+
import { CheckOutlined as p, CloseOutlined as f } from "@ant-design/icons";
|
|
7
|
+
import { Tooltip as n } from "antd";
|
|
8
|
+
const b = ({
|
|
9
|
+
text: i
|
|
9
10
|
}) => {
|
|
10
|
-
const [
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
}, [
|
|
11
|
+
const [o, t] = r();
|
|
12
|
+
return c(() => {
|
|
13
|
+
o && setTimeout(() => t(void 0), 2e3);
|
|
14
|
+
}, [o]), o ? /* @__PURE__ */ e("div", {
|
|
14
15
|
className: "copy-tip",
|
|
15
|
-
children:
|
|
16
|
+
children: o === "success" ? /* @__PURE__ */ e(p, {
|
|
16
17
|
style: {
|
|
17
18
|
color: "rgba(48, 191, 19, 1)"
|
|
18
19
|
}
|
|
19
|
-
}) : /* @__PURE__ */
|
|
20
|
+
}) : /* @__PURE__ */ e(f, {
|
|
20
21
|
style: {
|
|
21
22
|
color: "#dc4446"
|
|
22
23
|
}
|
|
23
24
|
})
|
|
24
|
-
}) : /* @__PURE__ */
|
|
25
|
+
}) : /* @__PURE__ */ e(n, {
|
|
25
26
|
title: "复制",
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ e("div", {
|
|
27
28
|
className: "copy-btn",
|
|
28
29
|
onClick: () => {
|
|
29
30
|
m({
|
|
30
|
-
value:
|
|
31
|
-
}).then((
|
|
32
|
-
t(
|
|
31
|
+
value: i
|
|
32
|
+
}).then((s) => {
|
|
33
|
+
t(s ? "success" : "failed");
|
|
33
34
|
});
|
|
34
35
|
},
|
|
35
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ e(l, {
|
|
36
37
|
type: "icon-fuzhi"
|
|
37
38
|
})
|
|
38
39
|
})
|
|
39
40
|
});
|
|
40
|
-
}
|
|
41
|
+
};
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
+
b as default
|
|
43
44
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as s } from "
|
|
2
|
-
|
|
1
|
+
import { jsx as s } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import "./style.less.mjs";
|
|
3
|
+
const e = (n) => {
|
|
3
4
|
const {
|
|
4
5
|
josn: o
|
|
5
6
|
} = n, r = JSON.stringify(o, null, 2);
|
|
@@ -9,7 +10,7 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
9
10
|
children: r
|
|
10
11
|
})
|
|
11
12
|
});
|
|
12
|
-
}
|
|
13
|
+
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
e as default
|
|
15
16
|
};
|
|
@@ -19,21 +19,21 @@ var x = (e, t) => {
|
|
|
19
19
|
t.indexOf(n) < 0 && u.call(e, n) && (r[n] = e[n]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
import { jsx as s, jsxs as
|
|
23
|
-
const
|
|
24
|
-
var h,
|
|
22
|
+
import { jsx as s, jsxs as F, Fragment as N } from "../../../_virtual/jsx-runtime.mjs";
|
|
23
|
+
const k = (e) => {
|
|
24
|
+
var h, i;
|
|
25
25
|
const n = e, {
|
|
26
26
|
node: t
|
|
27
27
|
} = n, r = x(n, [
|
|
28
28
|
"node"
|
|
29
29
|
]);
|
|
30
30
|
if (t.tagName === "a" && ((h = t.children) == null ? void 0 : h.length) > 0) {
|
|
31
|
-
const
|
|
32
|
-
let
|
|
31
|
+
const o = ((i = t.children[0]) == null ? void 0 : i.value) || "";
|
|
32
|
+
let g = /(^https?:\/\/|^www\.)(?:www\.)?[\w\-]+(\.[\w\-]+)+(\/[\w\- .\/?%&=]*)?/g, a = o.match(g), p = o.replace(g, "").trim();
|
|
33
33
|
if (!(a != null && a.length))
|
|
34
34
|
return /* @__PURE__ */ s("a", c({}, r));
|
|
35
35
|
const l = a[0];
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ F(N, {
|
|
37
37
|
children: [/* @__PURE__ */ s("a", f(c({}, r), {
|
|
38
38
|
href: /^www\./.test(l) ? "//" + l : l,
|
|
39
39
|
children: l
|
|
@@ -41,7 +41,7 @@ const N = (e) => {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
return /* @__PURE__ */ s("a", c({}, r));
|
|
44
|
-
}
|
|
44
|
+
};
|
|
45
45
|
export {
|
|
46
46
|
k as default
|
|
47
47
|
};
|