@glodon-aiot/agent-cli-ui 3.19.0-alpha.30 → 3.19.0-beta.31
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/index.mjs +8211 -302
- package/dist/lib/index.js +16 -326
- package/dist/src/utils/reactDomCompat.d.ts +3 -0
- package/package.json +10 -13
- package/dist/es/AgentClientUI.mjs +0 -150
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +0 -88
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +0 -38
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +0 -101
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +0 -248
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +0 -86
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +0 -46
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +0 -384
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +0 -105
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +0 -89
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +0 -4
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +0 -120
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +0 -48
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +0 -135
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +0 -119
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +0 -44
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +0 -50
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +0 -128
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +0 -374
- package/dist/es/Dialog/AgentChat/index.mjs +0 -1147
- package/dist/es/Dialog/SessionList/index.mjs +0 -401
- package/dist/es/Dialog/UploadingPrompt/index.mjs +0 -64
- package/dist/es/Dialog/index.mjs +0 -180
- package/dist/es/Footer/FooterWarning.mjs +0 -24
- package/dist/es/Footer/index.mjs +0 -17
- package/dist/es/QuillEditor/index.mjs +0 -278
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +0 -406
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +0 -112
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +0 -97
- package/dist/es/ReactTextGenerationUI/index.mjs +0 -81
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/prism-core.mjs +0 -4
- package/dist/es/_virtual/types.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/_virtual/utilities.mjs +0 -4
- package/dist/es/assets/brand.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/assets/icon.svg.mjs +0 -4
- package/dist/es/assets/think.svg.mjs +0 -4
- package/dist/es/components/FilePreview/index.mjs +0 -83
- package/dist/es/components/Greeting/index.mjs +0 -30
- package/dist/es/components/Iconfont/index.mjs +0 -12
- package/dist/es/components/JsonDisplay/index.mjs +0 -15
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +0 -67
- package/dist/es/components/KnowledgeList/index.mjs +0 -79
- package/dist/es/components/Recommend/RecommendItem.mjs +0 -97
- package/dist/es/components/Recommend/index.mjs +0 -76
- package/dist/es/components/Recommend/tip.svg.mjs +0 -4
- package/dist/es/components/Sider/index.mjs +0 -24
- package/dist/es/components/WebLink/index.mjs +0 -26
- package/dist/es/constant.mjs +0 -124
- package/dist/es/context/SessionContext.mjs +0 -26
- package/dist/es/context.mjs +0 -7
- package/dist/es/hooks/useSessionState.mjs +0 -6
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +0 -70
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +0 -11
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +0 -124
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +0 -13
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -3
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/ccount/index.mjs +0 -12
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -18
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +0 -14
- package/dist/es/node_modules/devlop/lib/default.mjs +0 -8
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +0 -7
- package/dist/es/node_modules/extend/index.mjs +0 -46
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +0 -298
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +0 -22
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +0 -10
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +0 -126
- package/dist/es/node_modules/hastscript/lib/index.mjs +0 -8
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +0 -16
- package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
- package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
- package/dist/es/node_modules/is-decimal/index.mjs +0 -8
- package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
- package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
- package/dist/es/node_modules/longest-streak/index.mjs +0 -12
- package/dist/es/node_modules/markdown-table/index.mjs +0 -70
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +0 -8
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +0 -584
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +0 -17
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +0 -136
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +0 -100
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +0 -61
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +0 -30
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +0 -123
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +0 -25
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +0 -31
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +0 -58
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +0 -65
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +0 -26
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +0 -11
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +0 -145
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +0 -49
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +0 -40
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +0 -50
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +0 -7
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +0 -14
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +0 -67
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +0 -29
- package/dist/es/node_modules/micromark/lib/constructs.mjs +0 -85
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +0 -225
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +0 -37
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +0 -133
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +0 -33
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +0 -103
- package/dist/es/node_modules/micromark/lib/parse.mjs +0 -32
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +0 -9
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +0 -40
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +0 -74
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +0 -18
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +0 -42
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +0 -30
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +0 -94
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +0 -45
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +0 -50
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +0 -80
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +0 -46
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +0 -144
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +0 -102
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +0 -152
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +0 -22
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +0 -19
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +0 -14
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +0 -90
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +0 -62
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +0 -25
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +0 -12
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +0 -193
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +0 -192
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +0 -68
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +0 -71
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +0 -24
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +0 -147
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +0 -45
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +0 -31
- package/dist/es/node_modules/micromark-factory-label/index.mjs +0 -28
- package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-title/index.mjs +0 -26
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-character/index.mjs +0 -39
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +0 -10
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +0 -36
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +0 -18
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +0 -5
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +0 -6
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +0 -23
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +0 -65
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +0 -175
- package/dist/es/node_modules/moment/dist/moment.mjs +0 -2301
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
- package/dist/es/node_modules/parse-entities/index.mjs +0 -83
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
- package/dist/es/node_modules/property-information/find.mjs +0 -25
- package/dist/es/node_modules/property-information/html.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
- package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
- package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
- package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
- package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/property-information/normalize.mjs +0 -7
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-markdown/lib/index.mjs +0 -153
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +0 -29
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
- package/dist/es/node_modules/refractor/core.mjs +0 -111
- package/dist/es/node_modules/refractor/index.mjs +0 -553
- package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
- package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
- package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
- package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
- package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
- package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
- package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
- package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
- package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
- package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
- package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
- package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
- package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
- package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
- package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
- package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
- package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
- package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
- package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
- package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
- package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
- package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
- package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
- package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
- package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
- package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
- package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
- package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
- package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
- package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
- package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
- package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
- package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
- package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +0 -34
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +0 -9
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +0 -51
- package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -11
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +0 -22
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +0 -18
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +0 -93
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +0 -25
- package/dist/es/node_modules/trim-lines/index.mjs +0 -25
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +0 -25
- package/dist/es/node_modules/unified/lib/index.mjs +0 -525
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +0 -7
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +0 -9
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +0 -61
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +0 -26
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +0 -15
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
- package/dist/es/node_modules/vfile/lib/index.mjs +0 -401
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +0 -120
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +0 -9
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +0 -35
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +0 -7
- package/dist/es/node_modules/vfile-message/lib/index.mjs +0 -106
- package/dist/es/node_modules/xtend/immutable.mjs +0 -12
- package/dist/es/packages/agent-cli-ui/package.json.mjs +0 -164
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +0 -8
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +0 -43
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -44
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +0 -64
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +0 -62
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +0 -19
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +0 -80
- package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +0 -38
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +0 -29
- package/dist/es/src/global.css +0 -1
- package/dist/es/src/image-viewer.css +0 -1
- package/dist/es/src/katex.min.css +0 -1
- package/dist/es/src/mask.css +0 -1
- package/dist/es/src/safe-area.css +0 -1
- 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 -1
- 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/es/types.mjs +0 -4
- package/dist/es/utils/antdConfig.mjs +0 -15
- package/dist/es/utils/index.mjs +0 -41
- package/dist/es/utils/scopedMessage.mjs +0 -29
- package/dist/lib/index.css +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
- package/dist/src/utils/reactCompatibility.d.ts +0 -27
- package/dist/src/utils/testAntdPrefix.d.ts +0 -3
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
var De = Object.defineProperty;
|
|
2
|
-
var ue = Object.getOwnPropertySymbols;
|
|
3
|
-
var Ie = Object.prototype.hasOwnProperty, Re = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var ye = (N, g, a) => g in N ? De(N, g, { enumerable: !0, configurable: !0, writable: !0, value: a }) : N[g] = a, ge = (N, g) => {
|
|
5
|
-
for (var a in g || (g = {}))
|
|
6
|
-
Ie.call(g, a) && ye(N, a, g[a]);
|
|
7
|
-
if (ue)
|
|
8
|
-
for (var a of ue(g))
|
|
9
|
-
Re.call(g, a) && ye(N, a, g[a]);
|
|
10
|
-
return N;
|
|
11
|
-
};
|
|
12
|
-
var L = (N, g, a) => new Promise((r, O) => {
|
|
13
|
-
var b = (E) => {
|
|
14
|
-
try {
|
|
15
|
-
M(a.next(E));
|
|
16
|
-
} catch (x) {
|
|
17
|
-
O(x);
|
|
18
|
-
}
|
|
19
|
-
}, ee = (E) => {
|
|
20
|
-
try {
|
|
21
|
-
M(a.throw(E));
|
|
22
|
-
} catch (x) {
|
|
23
|
-
O(x);
|
|
24
|
-
}
|
|
25
|
-
}, M = (E) => E.done ? r(E.value) : Promise.resolve(E.value).then(b, ee);
|
|
26
|
-
M((a = a.apply(N, g)).next());
|
|
27
|
-
});
|
|
28
|
-
import { jsx as f, jsxs as T } from "react/jsx-runtime";
|
|
29
|
-
import { forwardRef as Ye, useState as k, useContext as $e, useRef as V, useEffect as C, useImperativeHandle as He, useMemo as Ve } from "react";
|
|
30
|
-
import { Button as Fe, Typography as Ke, Space as ve, Popconfirm as Ae, Input as ze, Divider as Be, notification as J } from "antd";
|
|
31
|
-
import p from "dayjs";
|
|
32
|
-
import Ge from "classnames";
|
|
33
|
-
import Ne from "../../components/Iconfont/index.mjs";
|
|
34
|
-
import Ue from "../../context.mjs";
|
|
35
|
-
/* empty css */import { useMemoizedFn as Ee } from "ahooks";
|
|
36
|
-
import { MAX_KNOWLEDGES_AND_FILES_COUNT as F, NET_OPEN_STATUS as we } from "../../constant.mjs";
|
|
37
|
-
import { useSessionState as Xe } from "../../hooks/useSessionState.mjs";
|
|
38
|
-
import { calcKnowledgesLeafCount as be } from "../../utils/index.mjs";
|
|
39
|
-
const Q = 15, We = Ye((N, g) => {
|
|
40
|
-
const {
|
|
41
|
-
currentSession: a,
|
|
42
|
-
setCurrentSession: r,
|
|
43
|
-
checkKnowledges: O,
|
|
44
|
-
application: b,
|
|
45
|
-
networkStatus: ee,
|
|
46
|
-
isShowHeader: M = !0,
|
|
47
|
-
afterSessionClick: E,
|
|
48
|
-
sessionId: x
|
|
49
|
-
} = N, [K, z] = k(), {
|
|
50
|
-
agentClient: u,
|
|
51
|
-
mode: te,
|
|
52
|
-
features: o,
|
|
53
|
-
popupContainer: B,
|
|
54
|
-
silencedSeconds: ae
|
|
55
|
-
} = $e(Ue), [oe, ne] = k(O), {
|
|
56
|
-
sessions: _,
|
|
57
|
-
setSessions: P
|
|
58
|
-
} = Xe(), [de, G] = k(0), [ke, D] = k(""), [Oe, re] = k(null), j = 30, [U, I] = k(!1), [R, Y] = k(!0), [Me, $] = k(!1), H = V(void 0), S = V(0), X = V(null), W = V(null), ie = (e) => {
|
|
59
|
-
var n, s;
|
|
60
|
-
if (!(e != null && e.length))
|
|
61
|
-
return;
|
|
62
|
-
let t = (s = (n = e[0]) == null ? void 0 : n.data) == null ? void 0 : s.createdAt;
|
|
63
|
-
return e.forEach((d) => {
|
|
64
|
-
var l, m, h, y;
|
|
65
|
-
t ? (m = d.data) != null && m.createdAt && p((h = d.data) == null ? void 0 : h.createdAt).valueOf() < p(t).valueOf() && (t = (y = d.data) == null ? void 0 : y.createdAt) : t = (l = d.data) == null ? void 0 : l.createdAt;
|
|
66
|
-
}), t;
|
|
67
|
-
}, le = Ee((e) => {
|
|
68
|
-
e.id && P((t) => [...t.map((d) => {
|
|
69
|
-
var l;
|
|
70
|
-
return ((l = d.data) == null ? void 0 : l.id) === e.id && (d.data = ge({}, e)), d;
|
|
71
|
-
})].sort((d, l) => {
|
|
72
|
-
var y, w;
|
|
73
|
-
const m = p((y = d.data) == null ? void 0 : y.createdAt).valueOf();
|
|
74
|
-
return p((w = l.data) == null ? void 0 : w.createdAt).valueOf() - m;
|
|
75
|
-
}));
|
|
76
|
-
});
|
|
77
|
-
C(() => {
|
|
78
|
-
if (te === "float") {
|
|
79
|
-
a === void 0 && !x && (r == null || r(null));
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
I(!0), H.current = void 0, S.current = 0, u == null || u.getSessions({
|
|
83
|
-
pageSize: j
|
|
84
|
-
}).then((e) => L(void 0, null, function* () {
|
|
85
|
-
var t;
|
|
86
|
-
if (P([...e]), S.current = e.length, H.current = ie(e), Y(e.length >= j), $(e.length < j), !((t = a == null ? void 0 : a.data) != null && t.id) && (e != null && e.length) && te === "inlay") {
|
|
87
|
-
const n = e[0];
|
|
88
|
-
x || r == null || r(n);
|
|
89
|
-
} else
|
|
90
|
-
a === void 0 && (x || r == null || r(null));
|
|
91
|
-
})).finally(() => I(!1));
|
|
92
|
-
}, []), C(() => {
|
|
93
|
-
var e;
|
|
94
|
-
if (!((e = a == null ? void 0 : a.data) != null && e.id) && O === void 0) {
|
|
95
|
-
const t = typeof (o == null ? void 0 : o.knowledges) == "object" && o.knowledges.default || void 0;
|
|
96
|
-
if (Array.isArray(t) && t.some((d) => Array.isArray(d.fileIds) && d.fileIds.length === 0))
|
|
97
|
-
throw Error("fileIds cannot be an empty array");
|
|
98
|
-
if (be(t || []) > F)
|
|
99
|
-
throw Error(`knowledges and fileIds total count cannot exceed ${F}`);
|
|
100
|
-
ne(t);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
ne(O);
|
|
104
|
-
}, [O]), C(() => {
|
|
105
|
-
a == null || a.addEventListener("data:updated", le);
|
|
106
|
-
}, [a]), He(g, () => ({
|
|
107
|
-
create(e) {
|
|
108
|
-
return ce(e).then((t) => (r == null || r(t), t));
|
|
109
|
-
},
|
|
110
|
-
list: () => Promise.resolve(_)
|
|
111
|
-
}));
|
|
112
|
-
const ce = (e) => {
|
|
113
|
-
const t = typeof (o == null ? void 0 : o.connectNetwork) == "object" && typeof (o == null ? void 0 : o.connectNetwork.default) == "boolean" ? o.connectNetwork.default : !1;
|
|
114
|
-
return new Promise((n) => L(void 0, null, function* () {
|
|
115
|
-
var m;
|
|
116
|
-
const s = typeof (o == null ? void 0 : o.promptVariables) == "object" ? (o == null ? void 0 : o.promptVariables.default) || [] : void 0, d = yield u == null ? void 0 : u.loadSession("", {
|
|
117
|
-
name: e == null ? void 0 : e.name,
|
|
118
|
-
// @ts-ignore netOpen入参是number 响应是boolen
|
|
119
|
-
// 只有对话有联网 其它没有
|
|
120
|
-
// 不传netOpen会默认取defaultNetOpen
|
|
121
|
-
netOpen: (b == null ? void 0 : b.type) === 0 ? e != null && e.netOpen ? e.netOpen : t ? we.OPEN : we.CLOSE : void 0,
|
|
122
|
-
knowledges: (m = a == null ? void 0 : a.data) != null && m.id ? e == null ? void 0 : e.knowledges : oe,
|
|
123
|
-
promptVariables: s
|
|
124
|
-
}), l = (h) => {
|
|
125
|
-
var y;
|
|
126
|
-
J.config({
|
|
127
|
-
getContainer: () => (B == null ? void 0 : B.current) || document.body,
|
|
128
|
-
prefixCls: "gbot-notification"
|
|
129
|
-
}), J.error({
|
|
130
|
-
message: ((y = h.cause) == null ? void 0 : y.message) || h.message
|
|
131
|
-
}), J.config({
|
|
132
|
-
getContainer: void 0,
|
|
133
|
-
prefixCls: "gbot-notification"
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
d == null || d.addEventListener("error", l), d == null || d.addEventListener("data:created", () => L(void 0, null, function* () {
|
|
137
|
-
d == null || d.removeEventListener("error", l), P([d, ..._]), n(d);
|
|
138
|
-
}));
|
|
139
|
-
}));
|
|
140
|
-
}, xe = () => {
|
|
141
|
-
ce({
|
|
142
|
-
knowledges: oe
|
|
143
|
-
}).then((e) => {
|
|
144
|
-
r == null || r(e);
|
|
145
|
-
});
|
|
146
|
-
}, Le = (e) => {
|
|
147
|
-
u == null || u.removeSession(e, !0).then(() => L(void 0, null, function* () {
|
|
148
|
-
var n, s;
|
|
149
|
-
const t = _.filter((d) => {
|
|
150
|
-
var l, m;
|
|
151
|
-
return ((l = d.data) == null ? void 0 : l.id) !== ((m = e.data) == null ? void 0 : m.id);
|
|
152
|
-
});
|
|
153
|
-
((n = e.data) == null ? void 0 : n.id) === ((s = a == null ? void 0 : a.data) == null ? void 0 : s.id) && (t != null && t.length ? r == null || r(t[0]) : r == null || r(null)), P([...t]);
|
|
154
|
-
}));
|
|
155
|
-
}, Te = () => L(void 0, null, function* () {
|
|
156
|
-
if (!(U || !R)) {
|
|
157
|
-
I(!0);
|
|
158
|
-
try {
|
|
159
|
-
const e = yield u == null ? void 0 : u.getSessions({
|
|
160
|
-
pageSize: j,
|
|
161
|
-
beforeTime: H.current
|
|
162
|
-
}), t = (e == null ? void 0 : e.length) || 0, n = t - S.current;
|
|
163
|
-
P([...e || []]), H.current = ie(e || []), n <= 0 ? (Y(!1), $(!0)) : n < j ? (Y(!1), $(!0), S.current = t) : (Y(!0), $(!1), S.current = t);
|
|
164
|
-
} finally {
|
|
165
|
-
I(!1);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
C(() => {
|
|
170
|
-
if (!X.current || !W.current)
|
|
171
|
-
return;
|
|
172
|
-
const e = X.current, t = W.current, n = new IntersectionObserver((s) => {
|
|
173
|
-
s[0].isIntersecting && R && !U && Te();
|
|
174
|
-
}, {
|
|
175
|
-
root: e,
|
|
176
|
-
rootMargin: "0px 0px 200px 0px",
|
|
177
|
-
threshold: 0
|
|
178
|
-
});
|
|
179
|
-
return n.observe(t), () => n.disconnect();
|
|
180
|
-
}, [R, U]);
|
|
181
|
-
const _e = (e) => {
|
|
182
|
-
var t, n;
|
|
183
|
-
z((t = e.data) == null ? void 0 : t.name), D(""), re(((n = e.data) == null ? void 0 : n.id) || null);
|
|
184
|
-
}, Pe = (e) => {
|
|
185
|
-
const t = fe(K || "");
|
|
186
|
-
if (t) {
|
|
187
|
-
D(t);
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
e.rename(K.trim()), e == null || e.addEventListener("data:updated", le), se();
|
|
191
|
-
}, je = () => {
|
|
192
|
-
se();
|
|
193
|
-
}, se = () => {
|
|
194
|
-
re(null), z(""), D(""), G((e) => e + 1);
|
|
195
|
-
}, fe = (e) => !e || e.trim().length === 0 ? "会话名称不能为空" : e.length > Q ? `不能超过${Q}个字符` : "", Se = (e) => L(void 0, null, function* () {
|
|
196
|
-
r == null || r(e), E == null || E(e);
|
|
197
|
-
}), Ce = (e) => {
|
|
198
|
-
const t = e.target.value;
|
|
199
|
-
z(t), D(fe(t));
|
|
200
|
-
};
|
|
201
|
-
C(() => {
|
|
202
|
-
var t, n, s, d;
|
|
203
|
-
if (!(a != null && a.id))
|
|
204
|
-
return;
|
|
205
|
-
const e = {};
|
|
206
|
-
if (typeof (o == null ? void 0 : o.knowledges) == "object" && ((t = o == null ? void 0 : o.knowledges) != null && t.default)) {
|
|
207
|
-
if (e.knowledges = (n = o == null ? void 0 : o.knowledges) == null ? void 0 : n.default, Array.isArray(e.knowledges) && e.knowledges.some((h) => Array.isArray(h.fileIds) && h.fileIds.length === 0))
|
|
208
|
-
throw Error("fileIds cannot be an empty array");
|
|
209
|
-
if (be(e.knowledges) > F)
|
|
210
|
-
throw Error(`knowledges and fileIds total count cannot exceed ${F}`);
|
|
211
|
-
}
|
|
212
|
-
typeof (o == null ? void 0 : o.promptVariables) == "object" && ((s = o == null ? void 0 : o.promptVariables) != null && s.default) && (e.promptVariables = (d = o == null ? void 0 : o.promptVariables) == null ? void 0 : d.default), u == null || u.loadSession(a.id, e);
|
|
213
|
-
}, [a]);
|
|
214
|
-
const me = Ee((e) => {
|
|
215
|
-
const t = p().endOf("day"), n = t.subtract(1, "day"), s = t.subtract(7, "day"), d = t.subtract(30, "day"), l = [], m = [], h = [], y = [], w = {};
|
|
216
|
-
return e.forEach((c) => {
|
|
217
|
-
var A;
|
|
218
|
-
const i = p((A = c.data) == null ? void 0 : A.createdAt);
|
|
219
|
-
if (i.isAfter(n))
|
|
220
|
-
m.push(c);
|
|
221
|
-
else if (i.isAfter(s))
|
|
222
|
-
h.push(c);
|
|
223
|
-
else if (i.isAfter(d))
|
|
224
|
-
y.push(c);
|
|
225
|
-
else {
|
|
226
|
-
const v = i.format("YYYY-MM");
|
|
227
|
-
w[v] || (w[v] = []), w[v].push(c);
|
|
228
|
-
}
|
|
229
|
-
}), m.length > 0 && l.push({
|
|
230
|
-
title: "今天",
|
|
231
|
-
sessions: m.sort((c, i) => {
|
|
232
|
-
var A, v;
|
|
233
|
-
return p((A = i.data) == null ? void 0 : A.createdAt).valueOf() - p((v = c.data) == null ? void 0 : v.createdAt).valueOf();
|
|
234
|
-
}),
|
|
235
|
-
key: "today"
|
|
236
|
-
}), h.length > 0 && l.push({
|
|
237
|
-
title: "7天内",
|
|
238
|
-
sessions: h.sort((c, i) => {
|
|
239
|
-
var A, v;
|
|
240
|
-
return p((A = i.data) == null ? void 0 : A.createdAt).valueOf() - p((v = c.data) == null ? void 0 : v.createdAt).valueOf();
|
|
241
|
-
}),
|
|
242
|
-
key: "seven-days"
|
|
243
|
-
}), y.length > 0 && l.push({
|
|
244
|
-
title: "30天内",
|
|
245
|
-
sessions: y.sort((c, i) => {
|
|
246
|
-
var A, v;
|
|
247
|
-
return p((A = i.data) == null ? void 0 : A.createdAt).valueOf() - p((v = c.data) == null ? void 0 : v.createdAt).valueOf();
|
|
248
|
-
}),
|
|
249
|
-
key: "thirty-days"
|
|
250
|
-
}), Object.keys(w).sort((c, i) => i.localeCompare(c)).forEach((c) => {
|
|
251
|
-
const i = w[c].sort((A, v) => {
|
|
252
|
-
var he, pe;
|
|
253
|
-
return p((he = v.data) == null ? void 0 : he.createdAt).valueOf() - p((pe = A.data) == null ? void 0 : pe.createdAt).valueOf();
|
|
254
|
-
});
|
|
255
|
-
l.push({
|
|
256
|
-
title: p(c).format("YYYY年MM月"),
|
|
257
|
-
sessions: i,
|
|
258
|
-
key: `month-${c}`
|
|
259
|
-
});
|
|
260
|
-
}), l;
|
|
261
|
-
}), Z = Ve(() => me(_), [_, me]);
|
|
262
|
-
return /* @__PURE__ */ f("div", {
|
|
263
|
-
className: "bot-session-container",
|
|
264
|
-
children: /* @__PURE__ */ T("div", {
|
|
265
|
-
className: "agent-sessions",
|
|
266
|
-
children: [M && (o == null ? void 0 : o.siderTitle) && /* @__PURE__ */ f("div", {
|
|
267
|
-
className: "sessions-header",
|
|
268
|
-
children: /* @__PURE__ */ f("div", {
|
|
269
|
-
className: "session-header-title",
|
|
270
|
-
children: (b == null ? void 0 : b.name) || "-"
|
|
271
|
-
})
|
|
272
|
-
}), /* @__PURE__ */ T("div", {
|
|
273
|
-
className: "sessions-main",
|
|
274
|
-
ref: X,
|
|
275
|
-
children: [M && /* @__PURE__ */ f("div", {
|
|
276
|
-
className: "session-header-btn-wrapper",
|
|
277
|
-
children: /* @__PURE__ */ f(Fe, {
|
|
278
|
-
className: "session-header-btn",
|
|
279
|
-
onClick: xe,
|
|
280
|
-
type: "primary",
|
|
281
|
-
disabled: ae ? ae > 0 : !1,
|
|
282
|
-
children: "+ 新会话"
|
|
283
|
-
})
|
|
284
|
-
}), Z == null ? void 0 : Z.map((e) => {
|
|
285
|
-
var t;
|
|
286
|
-
return /* @__PURE__ */ T("div", {
|
|
287
|
-
className: "session-group",
|
|
288
|
-
children: [/* @__PURE__ */ f("div", {
|
|
289
|
-
className: "group-header",
|
|
290
|
-
style: {
|
|
291
|
-
top: M ? 48 : 0
|
|
292
|
-
},
|
|
293
|
-
children: e.title
|
|
294
|
-
}), (t = e.sessions) == null ? void 0 : t.map((n) => {
|
|
295
|
-
var s, d, l, m, h, y, w, q, c;
|
|
296
|
-
return /* @__PURE__ */ f("div", {
|
|
297
|
-
className: Ge({
|
|
298
|
-
"session-item": !0,
|
|
299
|
-
"session-item__active": ((s = n.data) == null ? void 0 : s.id) === ((d = a == null ? void 0 : a.data) == null ? void 0 : d.id)
|
|
300
|
-
}),
|
|
301
|
-
onClick: () => Se(n),
|
|
302
|
-
children: /* @__PURE__ */ f("div", {
|
|
303
|
-
className: "session-item-wrapper",
|
|
304
|
-
children: /* @__PURE__ */ T("div", {
|
|
305
|
-
className: "session-item-top",
|
|
306
|
-
children: [/* @__PURE__ */ f(Ke.Paragraph, {
|
|
307
|
-
className: "item-top-title",
|
|
308
|
-
style: {
|
|
309
|
-
margin: 0,
|
|
310
|
-
width: "100%"
|
|
311
|
-
},
|
|
312
|
-
ellipsis: {
|
|
313
|
-
rows: 1,
|
|
314
|
-
tooltip: {
|
|
315
|
-
title: ((l = n.data) == null ? void 0 : l.name) || "-",
|
|
316
|
-
placement: "topLeft"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
children: ((m = n.data) == null ? void 0 : m.name) || "-"
|
|
320
|
-
}), /* @__PURE__ */ T(ve, {
|
|
321
|
-
children: [/* @__PURE__ */ f("span", {
|
|
322
|
-
className: "item-top-time",
|
|
323
|
-
children: p((h = n.data) == null ? void 0 : h.createdAt).format("MM/DD HH:mm:ss")
|
|
324
|
-
}), /* @__PURE__ */ T("div", {
|
|
325
|
-
className: "item-top-action",
|
|
326
|
-
onClick: (i) => i.stopPropagation(),
|
|
327
|
-
children: [/* @__PURE__ */ f(Ae, {
|
|
328
|
-
open: Oe === ((y = n.data) == null ? void 0 : y.id),
|
|
329
|
-
getPopupContainer: (i) => i.parentNode,
|
|
330
|
-
icon: !1,
|
|
331
|
-
title: /* @__PURE__ */ f(ze, {
|
|
332
|
-
placeholder: "请输入内容",
|
|
333
|
-
autoComplete: "off",
|
|
334
|
-
showCount: !0,
|
|
335
|
-
value: K,
|
|
336
|
-
onChange: Ce,
|
|
337
|
-
maxLength: Q,
|
|
338
|
-
status: ke ? "error" : ""
|
|
339
|
-
}),
|
|
340
|
-
onConfirm: () => Pe(n),
|
|
341
|
-
onCancel: je,
|
|
342
|
-
children: /* @__PURE__ */ f(Ne, {
|
|
343
|
-
type: "icon-bianji2",
|
|
344
|
-
onClick: () => _e(n),
|
|
345
|
-
className: "icon-action",
|
|
346
|
-
style: {
|
|
347
|
-
marginRight: "8px"
|
|
348
|
-
}
|
|
349
|
-
})
|
|
350
|
-
}, `edit-${(w = n.data) == null ? void 0 : w.id}-${de}`), /* @__PURE__ */ f(Ae, {
|
|
351
|
-
getPopupContainer: (i) => i.parentNode,
|
|
352
|
-
icon: !1,
|
|
353
|
-
title: /* @__PURE__ */ T(ve, {
|
|
354
|
-
direction: "vertical",
|
|
355
|
-
children: [/* @__PURE__ */ f("div", {
|
|
356
|
-
children: "删除确认?"
|
|
357
|
-
}), /* @__PURE__ */ f("div", {
|
|
358
|
-
children: "会话删除后不可恢复,请确认是否删除!"
|
|
359
|
-
})]
|
|
360
|
-
}),
|
|
361
|
-
onConfirm: () => {
|
|
362
|
-
Le(n), G((i) => i + 1);
|
|
363
|
-
},
|
|
364
|
-
onCancel: () => {
|
|
365
|
-
G((i) => i + 1);
|
|
366
|
-
},
|
|
367
|
-
children: /* @__PURE__ */ f(Ne, {
|
|
368
|
-
style: {
|
|
369
|
-
fontSize: "18px"
|
|
370
|
-
},
|
|
371
|
-
className: "icon-action",
|
|
372
|
-
type: "icon-del"
|
|
373
|
-
})
|
|
374
|
-
}, `delete-${(q = n.data) == null ? void 0 : q.id}-${de}`)]
|
|
375
|
-
})]
|
|
376
|
-
})]
|
|
377
|
-
})
|
|
378
|
-
})
|
|
379
|
-
}, (c = n.data) == null ? void 0 : c.id);
|
|
380
|
-
})]
|
|
381
|
-
}, e.key);
|
|
382
|
-
}), !R && Me && /* @__PURE__ */ f(Be, {
|
|
383
|
-
style: {
|
|
384
|
-
color: "rgb(199 199 199)"
|
|
385
|
-
},
|
|
386
|
-
plain: !0,
|
|
387
|
-
children: "没有更多数据了"
|
|
388
|
-
}), /* @__PURE__ */ f("div", {
|
|
389
|
-
ref: W,
|
|
390
|
-
style: {
|
|
391
|
-
height: 1
|
|
392
|
-
}
|
|
393
|
-
})]
|
|
394
|
-
})]
|
|
395
|
-
})
|
|
396
|
-
});
|
|
397
|
-
});
|
|
398
|
-
We.displayName = "SessionList";
|
|
399
|
-
export {
|
|
400
|
-
We as default
|
|
401
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { ExclamationCircleFilled as f } from "@ant-design/icons";
|
|
3
|
-
import { Modal as u, Button as s } from "antd";
|
|
4
|
-
import { useContext as h } from "react";
|
|
5
|
-
/* empty css */import C from "../../context.mjs";
|
|
6
|
-
const E = (r) => {
|
|
7
|
-
const {
|
|
8
|
-
files: a,
|
|
9
|
-
sessionId: l,
|
|
10
|
-
isvisible: c,
|
|
11
|
-
onClose: t
|
|
12
|
-
} = r, {
|
|
13
|
-
service: n
|
|
14
|
-
} = h(C), d = /* @__PURE__ */ p("div", {
|
|
15
|
-
className: "title",
|
|
16
|
-
children: [/* @__PURE__ */ e(f, {
|
|
17
|
-
style: {
|
|
18
|
-
color: "#FF9326",
|
|
19
|
-
fontSize: 20
|
|
20
|
-
}
|
|
21
|
-
}), /* @__PURE__ */ e("span", {
|
|
22
|
-
children: "文件任务正在处理"
|
|
23
|
-
})]
|
|
24
|
-
}), m = () => {
|
|
25
|
-
if (!l)
|
|
26
|
-
return;
|
|
27
|
-
const i = [];
|
|
28
|
-
a.filter((o) => o.id).forEach((o) => i.push({
|
|
29
|
-
id: o.id,
|
|
30
|
-
status: o.status
|
|
31
|
-
})), n == null || n.deleteSessionKnowledgeFiles(l, {
|
|
32
|
-
files: i
|
|
33
|
-
}), t("abandon");
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ e(u, {
|
|
36
|
-
className: "prompt-modal",
|
|
37
|
-
width: 340,
|
|
38
|
-
open: c,
|
|
39
|
-
title: d,
|
|
40
|
-
centered: !0,
|
|
41
|
-
maskClosable: !1,
|
|
42
|
-
onCancel: () => t("close"),
|
|
43
|
-
getContainer: document.getElementById("dialog-modal") || !1,
|
|
44
|
-
footer: [/* @__PURE__ */ e(s, {
|
|
45
|
-
onClick: () => {
|
|
46
|
-
m();
|
|
47
|
-
},
|
|
48
|
-
children: "放弃文件"
|
|
49
|
-
}, "cancel"), /* @__PURE__ */ e(s, {
|
|
50
|
-
type: "primary",
|
|
51
|
-
onClick: () => {
|
|
52
|
-
t("continue");
|
|
53
|
-
},
|
|
54
|
-
children: "继续上传"
|
|
55
|
-
}, "confirm")],
|
|
56
|
-
children: /* @__PURE__ */ e("div", {
|
|
57
|
-
className: "content",
|
|
58
|
-
children: "你可以选择后台继续上传,也可以直接离开放弃上传中的文件。"
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
E as default
|
|
64
|
-
};
|
package/dist/es/Dialog/index.mjs
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
var q = Object.defineProperty, z = Object.defineProperties;
|
|
2
|
-
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var L = Object.getOwnPropertySymbols;
|
|
4
|
-
var F = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var R = (r, d, t) => d in r ? q(r, d, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[d] = t, j = (r, d) => {
|
|
6
|
-
for (var t in d || (d = {}))
|
|
7
|
-
F.call(d, t) && R(r, t, d[t]);
|
|
8
|
-
if (L)
|
|
9
|
-
for (var t of L(d))
|
|
10
|
-
G.call(d, t) && R(r, t, d[t]);
|
|
11
|
-
return r;
|
|
12
|
-
}, A = (r, d) => z(r, B(d));
|
|
13
|
-
var v = (r, d, t) => new Promise((f, y) => {
|
|
14
|
-
var s = (e) => {
|
|
15
|
-
try {
|
|
16
|
-
m(t.next(e));
|
|
17
|
-
} catch (g) {
|
|
18
|
-
y(g);
|
|
19
|
-
}
|
|
20
|
-
}, i = (e) => {
|
|
21
|
-
try {
|
|
22
|
-
m(t.throw(e));
|
|
23
|
-
} catch (g) {
|
|
24
|
-
y(g);
|
|
25
|
-
}
|
|
26
|
-
}, m = (e) => e.done ? f(e.value) : Promise.resolve(e.value).then(s, i);
|
|
27
|
-
m((t = t.apply(r, d)).next());
|
|
28
|
-
});
|
|
29
|
-
import { jsx as a, jsxs as H } from "react/jsx-runtime";
|
|
30
|
-
import { forwardRef as J, useState as p, useContext as M, useRef as K, useEffect as I, useImperativeHandle as Q } from "react";
|
|
31
|
-
import W from "../context.mjs";
|
|
32
|
-
import X from "./AgentChat/index.mjs";
|
|
33
|
-
import Y from "../components/KnowledgeList/index.mjs";
|
|
34
|
-
import Z from "../components/Sider/index.mjs";
|
|
35
|
-
/* empty css */import { useSessionState as _ } from "../hooks/useSessionState.mjs";
|
|
36
|
-
const ae = J((r, d) => {
|
|
37
|
-
const {
|
|
38
|
-
sessionId: t,
|
|
39
|
-
appId: f,
|
|
40
|
-
docViewerUrl: y
|
|
41
|
-
} = r, [s, i] = p(), {
|
|
42
|
-
showHeader: m,
|
|
43
|
-
agentClient: e,
|
|
44
|
-
sider: g,
|
|
45
|
-
onSessionLoad: u,
|
|
46
|
-
features: c,
|
|
47
|
-
mode: T
|
|
48
|
-
} = M(W), [h, D] = p(), S = K(null), [O, P] = p(""), [k, N] = p(), b = K(null), [x, w] = p(!1);
|
|
49
|
-
p([]);
|
|
50
|
-
const {
|
|
51
|
-
setIsSwitchingToExistingSession: U
|
|
52
|
-
} = _();
|
|
53
|
-
I(() => {
|
|
54
|
-
var n;
|
|
55
|
-
w(s ? !!((n = s.data) != null && n.netOpen) : typeof (c == null ? void 0 : c.connectNetwork) == "object" && typeof (c == null ? void 0 : c.connectNetwork.default) == "boolean" ? c.connectNetwork.default : !1);
|
|
56
|
-
}, [s]), I(() => {
|
|
57
|
-
const n = () => v(void 0, null, function* () {
|
|
58
|
-
const o = e == null ? void 0 : e.application;
|
|
59
|
-
if (!(o != null && o.id))
|
|
60
|
-
return;
|
|
61
|
-
const l = o == null ? void 0 : o.arrange;
|
|
62
|
-
if (!(l != null && l.length))
|
|
63
|
-
return;
|
|
64
|
-
const V = l[0].embeddingService;
|
|
65
|
-
P(V), D(o);
|
|
66
|
-
});
|
|
67
|
-
if (e != null && e.ready) {
|
|
68
|
-
n();
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
return e == null || e.addEventListener("ready", () => n()), () => {
|
|
72
|
-
e == null || e.removeEventListener("ready", n);
|
|
73
|
-
};
|
|
74
|
-
}, [e]), I(() => {
|
|
75
|
-
e && t && (e.ready ? e == null || e.getSessions().then((n) => v(void 0, null, function* () {
|
|
76
|
-
i == null || i(n.find((o) => o.id === t));
|
|
77
|
-
})) : e.addEventListener("ready", () => v(void 0, null, function* () {
|
|
78
|
-
e == null || e.getSessions().then((n) => v(void 0, null, function* () {
|
|
79
|
-
i == null || i(n.find((o) => o.id === t));
|
|
80
|
-
}));
|
|
81
|
-
}), !0));
|
|
82
|
-
}, [e, t]), I(() => {
|
|
83
|
-
if (!s) {
|
|
84
|
-
u && u({
|
|
85
|
-
applicationId: f,
|
|
86
|
-
sessionId: "",
|
|
87
|
-
session: null,
|
|
88
|
-
sessionInstance: null
|
|
89
|
-
});
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
s.data && u && u({
|
|
93
|
-
applicationId: f,
|
|
94
|
-
sessionId: s.data.id,
|
|
95
|
-
session: s.data,
|
|
96
|
-
sessionInstance: s
|
|
97
|
-
}), s.addEventListener("data:loaded", () => {
|
|
98
|
-
s != null && s.data && u && u({
|
|
99
|
-
applicationId: f,
|
|
100
|
-
sessionId: s.data.id,
|
|
101
|
-
session: s.data,
|
|
102
|
-
sessionInstance: s
|
|
103
|
-
});
|
|
104
|
-
}, !0);
|
|
105
|
-
}, [s]);
|
|
106
|
-
const E = (n) => {
|
|
107
|
-
var o;
|
|
108
|
-
return (o = S.current) == null ? void 0 : o.create(A(j({}, n), {
|
|
109
|
-
knowledges: k
|
|
110
|
-
}));
|
|
111
|
-
};
|
|
112
|
-
return Q(d, () => ({
|
|
113
|
-
createSession: (n) => E(n),
|
|
114
|
-
getSessionList: () => {
|
|
115
|
-
var o;
|
|
116
|
-
const n = ((o = S.current) == null ? void 0 : o.list()) || [];
|
|
117
|
-
return Promise.resolve(n);
|
|
118
|
-
},
|
|
119
|
-
// 新增:获取当前输入框内容
|
|
120
|
-
getCurrentInputText: () => {
|
|
121
|
-
var n;
|
|
122
|
-
return (n = b.current) == null ? void 0 : n.getCurrentInputText();
|
|
123
|
-
}
|
|
124
|
-
})), /* @__PURE__ */ a("div", {
|
|
125
|
-
className: "dialog",
|
|
126
|
-
children: /* @__PURE__ */ H("div", {
|
|
127
|
-
className: "dialog-pannel",
|
|
128
|
-
children: [/* @__PURE__ */ a("div", {
|
|
129
|
-
className: "dialog-sider",
|
|
130
|
-
style: {
|
|
131
|
-
display: g && T === "inlay" ? "block" : "none"
|
|
132
|
-
},
|
|
133
|
-
children: /* @__PURE__ */ a(Z, {
|
|
134
|
-
ref: S,
|
|
135
|
-
appId: f,
|
|
136
|
-
networkStatus: x,
|
|
137
|
-
currentSession: s,
|
|
138
|
-
application: h,
|
|
139
|
-
setCurrentSession: i,
|
|
140
|
-
checkKnowledges: k,
|
|
141
|
-
setCheckKnowledges: m ? N : void 0,
|
|
142
|
-
sessionId: t,
|
|
143
|
-
afterSessionClick: (n) => {
|
|
144
|
-
var o, l;
|
|
145
|
-
((o = n.data) == null ? void 0 : o.id) !== ((l = s == null ? void 0 : s.data) == null ? void 0 : l.id) && U(!0);
|
|
146
|
-
}
|
|
147
|
-
})
|
|
148
|
-
}), /* @__PURE__ */ a("div", {
|
|
149
|
-
className: "dialog-content",
|
|
150
|
-
children: /* @__PURE__ */ H("div", {
|
|
151
|
-
className: "dialog-chat",
|
|
152
|
-
children: [m && /* @__PURE__ */ a("div", {
|
|
153
|
-
className: "dialog-chat-header",
|
|
154
|
-
children: /* @__PURE__ */ a(Y, {
|
|
155
|
-
setCheckKnowledges: N,
|
|
156
|
-
application: h,
|
|
157
|
-
currentSession: s
|
|
158
|
-
})
|
|
159
|
-
}), /* @__PURE__ */ a("div", {
|
|
160
|
-
className: "dialog-chat-content",
|
|
161
|
-
children: (h == null ? void 0 : h.id) && /* @__PURE__ */ a(X, {
|
|
162
|
-
setNetworkStatus: w,
|
|
163
|
-
networkStatus: x,
|
|
164
|
-
application: h,
|
|
165
|
-
currentSession: s,
|
|
166
|
-
onCreateSession: E,
|
|
167
|
-
docViewerUrl: y,
|
|
168
|
-
embeddingService: O,
|
|
169
|
-
setCurrentSession: i,
|
|
170
|
-
ref: b
|
|
171
|
-
})
|
|
172
|
-
})]
|
|
173
|
-
})
|
|
174
|
-
})]
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
export {
|
|
179
|
-
ae as default
|
|
180
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as u, useEffect as e } from "react";
|
|
3
|
-
/* empty css */const l = ({
|
|
4
|
-
visible: f = !0,
|
|
5
|
-
text: n = "所有内容均由人工智能模型生成,请仔细甄别",
|
|
6
|
-
element: r
|
|
7
|
-
}) => {
|
|
8
|
-
if (!f)
|
|
9
|
-
return null;
|
|
10
|
-
const t = u(null);
|
|
11
|
-
return e(() => {
|
|
12
|
-
var i;
|
|
13
|
-
r && ((i = t.current) == null || i.replaceWith(r));
|
|
14
|
-
}, [r]), r ? /* @__PURE__ */ o("div", {
|
|
15
|
-
ref: t
|
|
16
|
-
}) : /* @__PURE__ */ o("div", {
|
|
17
|
-
className: "footer-warning",
|
|
18
|
-
ref: t,
|
|
19
|
-
children: n
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
l as default
|
|
24
|
-
};
|
package/dist/es/Footer/index.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
/* empty css */import f from "./FooterWarning.mjs";
|
|
3
|
-
const l = ({
|
|
4
|
-
className: e,
|
|
5
|
-
tips: o,
|
|
6
|
-
children: r
|
|
7
|
-
}) => /* @__PURE__ */ t("div", {
|
|
8
|
-
className: `home-footer ${e || ""}`,
|
|
9
|
-
children: [r, /* @__PURE__ */ n(f, {
|
|
10
|
-
visible: o !== !1,
|
|
11
|
-
text: typeof o == "string" ? o : void 0,
|
|
12
|
-
element: typeof o != "string" && typeof o != "boolean" ? o : void 0
|
|
13
|
-
})]
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
l as default
|
|
17
|
-
};
|