@glodon-aiot/agent-cli-ui 0.0.0-snapshot-20250729081352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +143 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +91 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +233 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +79 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +348 -0
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +124 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +394 -0
- package/dist/es/Dialog/AgentChat/index.mjs +906 -0
- package/dist/es/Dialog/SessionList/index.mjs +210 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
- package/dist/es/Dialog/index.mjs +150 -0
- package/dist/es/Footer/FooterWarning.mjs +24 -0
- package/dist/es/Footer/index.mjs +17 -0
- package/dist/es/QuillEditor/index.mjs +222 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/_virtual/utilities.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/assets/think.svg.mjs +4 -0
- package/dist/es/components/FilePreview/index.mjs +82 -0
- package/dist/es/components/Greeting/index.mjs +30 -0
- package/dist/es/components/Iconfont/index.mjs +12 -0
- package/dist/es/components/JsonDisplay/index.mjs +15 -0
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
- package/dist/es/components/KnowledgeList/index.mjs +73 -0
- package/dist/es/components/Recommend/RecommendItem.mjs +98 -0
- package/dist/es/components/Recommend/index.mjs +58 -0
- package/dist/es/components/Recommend/tip.svg.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +113 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/index.mjs +347 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -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/@ungap/structured-clone/esm/deserialize.mjs +70 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -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/antd-mobile/es/components/config-provider/config-provider.mjs +20 -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 +13 -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 +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.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 +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/index.mjs +3 -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 +47 -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/ccount/index.mjs +12 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
- package/dist/es/node_modules/extend/index.mjs +46 -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/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/markdown-table/index.mjs +70 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
- package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
- package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -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-destination/index.mjs +31 -0
- package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
- package/dist/es/node_modules/trim-lines/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
- package/dist/es/node_modules/unified/lib/index.mjs +525 -0
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -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-position/lib/index.mjs +26 -0
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -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/vfile/lib/index.mjs +401 -0
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
- package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/node_modules/zwitch/index.mjs +18 -0
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +42 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +56 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +68 -0
- package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/es/src/global.css +1 -0
- package/dist/es/src/image-viewer.css +1 -0
- package/dist/es/src/katex.min.css +1 -0
- package/dist/es/src/mask.css +1 -0
- package/dist/es/src/safe-area.css +1 -0
- package/dist/es/src/style.css +1 -0
- package/dist/es/src/style10.css +1 -0
- package/dist/es/src/style11.css +1 -0
- package/dist/es/src/style12.css +1 -0
- package/dist/es/src/style13.css +1 -0
- package/dist/es/src/style14.css +1 -0
- package/dist/es/src/style15.css +1 -0
- package/dist/es/src/style16.css +1 -0
- package/dist/es/src/style17.css +1 -0
- package/dist/es/src/style18.css +1 -0
- package/dist/es/src/style19.css +1 -0
- package/dist/es/src/style2.css +1 -0
- package/dist/es/src/style20.css +1 -0
- package/dist/es/src/style21.css +1 -0
- package/dist/es/src/style22.css +1 -0
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -0
- package/dist/es/src/style25.css +1 -0
- package/dist/es/src/style26.css +1 -0
- package/dist/es/src/style27.css +1 -0
- package/dist/es/src/style28.css +1 -0
- package/dist/es/src/style29.css +1 -0
- package/dist/es/src/style3.css +1 -0
- package/dist/es/src/style4.css +1 -0
- package/dist/es/src/style5.css +1 -0
- package/dist/es/src/style6.css +1 -0
- package/dist/es/src/style7.css +1 -0
- package/dist/es/src/style8.css +1 -0
- package/dist/es/src/style9.css +1 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/index.mjs +37 -0
- package/dist/lib/index.css +1 -0
- package/dist/lib/index.js +317 -0
- package/dist/src/AgentClientUI.d.ts +4 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +18 -0
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +19 -0
- package/dist/src/Dialog/SessionList/index.d.ts +21 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +8 -0
- package/dist/src/QuillEditor/index.d.ts +20 -0
- package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +21 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
- package/dist/src/components/FilePreview/index.d.ts +20 -0
- package/dist/src/components/Greeting/index.d.ts +8 -0
- package/dist/src/components/Header/index.d.ts +7 -0
- package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/components/Iconfont/index.d.ts +2 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/components/KnowledgeList/index.d.ts +10 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/components/Recommend/index.d.ts +14 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +17 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/types.d.ts +228 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +25 -0
- package/package.json +141 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
var N = (V, E, f) => new Promise((a, i) => {
|
|
2
|
+
var v = (p) => {
|
|
3
|
+
try {
|
|
4
|
+
k(f.next(p));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
i(s);
|
|
7
|
+
}
|
|
8
|
+
}, g = (p) => {
|
|
9
|
+
try {
|
|
10
|
+
k(f.throw(p));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
i(s);
|
|
13
|
+
}
|
|
14
|
+
}, k = (p) => p.done ? a(p.value) : Promise.resolve(p.value).then(v, g);
|
|
15
|
+
k((f = f.apply(V, E)).next());
|
|
16
|
+
});
|
|
17
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
18
|
+
import { forwardRef as U, useState as L, useContext as q, useEffect as x, useImperativeHandle as G } from "react";
|
|
19
|
+
import { Button as J, Popconfirm as H, Input as Q, Space as T } from "antd";
|
|
20
|
+
import W from "dayjs";
|
|
21
|
+
import X from "classnames";
|
|
22
|
+
import O from "../../components/Iconfont/index.mjs";
|
|
23
|
+
import Y from "../../context.mjs";
|
|
24
|
+
/* empty css */import { useMemoizedFn as Z } from "ahooks";
|
|
25
|
+
const $ = U((V, E) => {
|
|
26
|
+
const {
|
|
27
|
+
sider: f,
|
|
28
|
+
currentSession: a,
|
|
29
|
+
setCurrentSession: i,
|
|
30
|
+
checkKnowledges: v,
|
|
31
|
+
application: g,
|
|
32
|
+
networkStatus: k
|
|
33
|
+
} = V, [p, s] = L(), {
|
|
34
|
+
agentClient: m,
|
|
35
|
+
mode: P,
|
|
36
|
+
features: t
|
|
37
|
+
} = q(Y), [h, j] = L([]), [D, K] = L(v), M = Z(() => {
|
|
38
|
+
var e;
|
|
39
|
+
if (!((e = a == null ? void 0 : a.data) != null && e.id))
|
|
40
|
+
return;
|
|
41
|
+
const d = h.map((l) => {
|
|
42
|
+
var o, c;
|
|
43
|
+
return ((o = l.data) == null ? void 0 : o.id) === ((c = a.data) == null ? void 0 : c.id) ? a : l;
|
|
44
|
+
});
|
|
45
|
+
j([...d]);
|
|
46
|
+
});
|
|
47
|
+
x(() => {
|
|
48
|
+
m == null || m.getSessions().then((d) => N(void 0, null, function* () {
|
|
49
|
+
var e;
|
|
50
|
+
if (j([...d]), !((e = a == null ? void 0 : a.data) != null && e.id) && (d != null && d.length) && P === "inlay") {
|
|
51
|
+
const l = d[0];
|
|
52
|
+
i == null || i(l);
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
}, []), x(() => {
|
|
56
|
+
var d;
|
|
57
|
+
if (!((d = a == null ? void 0 : a.data) != null && d.id) && v === void 0) {
|
|
58
|
+
const e = typeof (t == null ? void 0 : t.knowledges) == "object" && t.knowledges.default || void 0;
|
|
59
|
+
K(e);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
K(v);
|
|
63
|
+
}, [v]), x(() => {
|
|
64
|
+
a == null || a.addEventListener("data:updated", M);
|
|
65
|
+
}, [a]), G(E, () => ({
|
|
66
|
+
create(d) {
|
|
67
|
+
return C(d);
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
const C = (d) => new Promise((e) => N(void 0, null, function* () {
|
|
71
|
+
var c;
|
|
72
|
+
const l = typeof (t == null ? void 0 : t.promptVariables) == "object" ? (t == null ? void 0 : t.promptVariables.default) || [] : void 0, o = yield m == null ? void 0 : m.loadSession("", {
|
|
73
|
+
name: d == null ? void 0 : d.name,
|
|
74
|
+
// @ts-ignore netOpen入参是number 响应是boolen
|
|
75
|
+
// 只有对话有联网 其它没有
|
|
76
|
+
netOpen: (g == null ? void 0 : g.type) === 0 ? d == null ? void 0 : d.netOpen : void 0,
|
|
77
|
+
knowledges: (c = a == null ? void 0 : a.data) != null && c.id ? d == null ? void 0 : d.knowledges : D,
|
|
78
|
+
promptVariables: l
|
|
79
|
+
});
|
|
80
|
+
o == null || o.addEventListener("data:created", () => N(void 0, null, function* () {
|
|
81
|
+
j([o, ...h]), e(o);
|
|
82
|
+
}));
|
|
83
|
+
})), z = () => {
|
|
84
|
+
C({
|
|
85
|
+
netOpen: (h == null ? void 0 : h.length) > 0 ? 2 : k ? 1 : 2,
|
|
86
|
+
knowledges: D
|
|
87
|
+
}).then((d) => {
|
|
88
|
+
i == null || i(d);
|
|
89
|
+
});
|
|
90
|
+
}, A = (d) => {
|
|
91
|
+
m == null || m.removeSession(d, !0).then(() => N(void 0, null, function* () {
|
|
92
|
+
var l, o;
|
|
93
|
+
const e = h.filter((c) => {
|
|
94
|
+
var w, y;
|
|
95
|
+
return ((w = c.data) == null ? void 0 : w.id) !== ((y = d.data) == null ? void 0 : y.id);
|
|
96
|
+
});
|
|
97
|
+
((l = d.data) == null ? void 0 : l.id) === ((o = a == null ? void 0 : a.data) == null ? void 0 : o.id) && (e != null && e.length ? i == null || i(e[0]) : i == null || i(void 0)), j([...e]);
|
|
98
|
+
}));
|
|
99
|
+
}, F = (d) => {
|
|
100
|
+
var e;
|
|
101
|
+
s((e = d.data) == null ? void 0 : e.name);
|
|
102
|
+
}, R = (d) => {
|
|
103
|
+
p && (d.rename(p), d == null || d.addEventListener("data:updated", M));
|
|
104
|
+
}, _ = (d) => N(void 0, null, function* () {
|
|
105
|
+
i == null || i(d);
|
|
106
|
+
}), B = (d) => {
|
|
107
|
+
s(d.target.value);
|
|
108
|
+
};
|
|
109
|
+
return x(() => {
|
|
110
|
+
var e, l, o, c;
|
|
111
|
+
if (!(a != null && a.id))
|
|
112
|
+
return;
|
|
113
|
+
const d = {};
|
|
114
|
+
typeof (t == null ? void 0 : t.knowledges) == "object" && ((e = t == null ? void 0 : t.knowledges) != null && e.default) && (d.knowledges = (l = t == null ? void 0 : t.knowledges) == null ? void 0 : l.default), typeof (t == null ? void 0 : t.promptVariables) == "object" && ((o = t == null ? void 0 : t.promptVariables) != null && o.default) && (d.promptVariables = (c = t == null ? void 0 : t.promptVariables) == null ? void 0 : c.default), m == null || m.loadSession(a.id, d);
|
|
115
|
+
}, [a]), /* @__PURE__ */ n("div", {
|
|
116
|
+
className: "bot-session-container",
|
|
117
|
+
children: f && P === "inlay" && /* @__PURE__ */ r("div", {
|
|
118
|
+
className: "agent-sessions",
|
|
119
|
+
children: [/* @__PURE__ */ r("div", {
|
|
120
|
+
className: "sessions-header",
|
|
121
|
+
children: [/* @__PURE__ */ n("span", {
|
|
122
|
+
className: "session-header-title",
|
|
123
|
+
children: "会话列表"
|
|
124
|
+
}), /* @__PURE__ */ n(J, {
|
|
125
|
+
className: "session-header-btn",
|
|
126
|
+
onClick: z,
|
|
127
|
+
children: "+ 新建会话"
|
|
128
|
+
})]
|
|
129
|
+
}), /* @__PURE__ */ n("div", {
|
|
130
|
+
className: "sessions-main",
|
|
131
|
+
children: h == null ? void 0 : h.map((d) => {
|
|
132
|
+
var e, l, o, c, w, y;
|
|
133
|
+
return /* @__PURE__ */ n("div", {
|
|
134
|
+
className: X({
|
|
135
|
+
"session-item": !0,
|
|
136
|
+
"session-item__active": ((e = d.data) == null ? void 0 : e.id) === ((l = a == null ? void 0 : a.data) == null ? void 0 : l.id)
|
|
137
|
+
}),
|
|
138
|
+
onClick: () => _(d),
|
|
139
|
+
children: /* @__PURE__ */ r("div", {
|
|
140
|
+
className: "session-item-wrapper",
|
|
141
|
+
children: [/* @__PURE__ */ r("div", {
|
|
142
|
+
className: "session-item-top",
|
|
143
|
+
children: [/* @__PURE__ */ n("span", {
|
|
144
|
+
className: "item-top-title",
|
|
145
|
+
children: ((o = d.data) == null ? void 0 : o.name) || "-"
|
|
146
|
+
}), /* @__PURE__ */ r("div", {
|
|
147
|
+
className: "item-top-action",
|
|
148
|
+
onClick: (b) => b.stopPropagation(),
|
|
149
|
+
children: [/* @__PURE__ */ n(H, {
|
|
150
|
+
getPopupContainer: (b) => b.parentNode,
|
|
151
|
+
icon: !1,
|
|
152
|
+
title: /* @__PURE__ */ n(Q, {
|
|
153
|
+
placeholder: "请输入内容",
|
|
154
|
+
autoComplete: "off",
|
|
155
|
+
showCount: !0,
|
|
156
|
+
value: p,
|
|
157
|
+
onChange: B,
|
|
158
|
+
maxLength: 15
|
|
159
|
+
}),
|
|
160
|
+
onConfirm: () => R(d),
|
|
161
|
+
children: /* @__PURE__ */ n(O, {
|
|
162
|
+
type: "icon-bianji2",
|
|
163
|
+
onClick: () => F(d),
|
|
164
|
+
className: "icon-action",
|
|
165
|
+
style: {
|
|
166
|
+
marginRight: "8px"
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
}), /* @__PURE__ */ n(H, {
|
|
170
|
+
getPopupContainer: (b) => b.parentNode,
|
|
171
|
+
icon: !1,
|
|
172
|
+
title: /* @__PURE__ */ r(T, {
|
|
173
|
+
direction: "vertical",
|
|
174
|
+
children: [/* @__PURE__ */ n("div", {
|
|
175
|
+
children: "删除确认?"
|
|
176
|
+
}), /* @__PURE__ */ n("div", {
|
|
177
|
+
children: "会话删除后不可恢复,请确认是否删除!"
|
|
178
|
+
})]
|
|
179
|
+
}),
|
|
180
|
+
onConfirm: () => A(d),
|
|
181
|
+
children: /* @__PURE__ */ n(O, {
|
|
182
|
+
style: {
|
|
183
|
+
fontSize: "18px"
|
|
184
|
+
},
|
|
185
|
+
className: "icon-action",
|
|
186
|
+
type: "icon-del"
|
|
187
|
+
})
|
|
188
|
+
})]
|
|
189
|
+
})]
|
|
190
|
+
}), /* @__PURE__ */ r("div", {
|
|
191
|
+
className: "session-item-bottom",
|
|
192
|
+
children: [/* @__PURE__ */ n("span", {
|
|
193
|
+
className: "item-bottom-desc",
|
|
194
|
+
children: ((c = d.data) == null ? void 0 : c.finialMessage) || "-"
|
|
195
|
+
}), /* @__PURE__ */ n("span", {
|
|
196
|
+
className: "item-bottom-time",
|
|
197
|
+
children: W((w = d.data) == null ? void 0 : w.createdAt).format("MM/DD HH:mm:ss")
|
|
198
|
+
})]
|
|
199
|
+
})]
|
|
200
|
+
})
|
|
201
|
+
}, (y = d.data) == null ? void 0 : y.id);
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
$.displayName = "SessionList";
|
|
208
|
+
export {
|
|
209
|
+
$ as default
|
|
210
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
var O = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
|
+
var q = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var E = (t, d, n) => d in t ? O(t, d, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[d] = n, L = (t, d) => {
|
|
6
|
+
for (var n in d || (d = {}))
|
|
7
|
+
q.call(d, n) && E(t, n, d[n]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var n of b(d))
|
|
10
|
+
z.call(d, n) && E(t, n, d[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, x = (t, d) => U(t, V(d));
|
|
13
|
+
var h = (t, d, n) => new Promise((w, s) => {
|
|
14
|
+
var i = (c) => {
|
|
15
|
+
try {
|
|
16
|
+
e(n.next(c));
|
|
17
|
+
} catch (r) {
|
|
18
|
+
s(r);
|
|
19
|
+
}
|
|
20
|
+
}, p = (c) => {
|
|
21
|
+
try {
|
|
22
|
+
e(n.throw(c));
|
|
23
|
+
} catch (r) {
|
|
24
|
+
s(r);
|
|
25
|
+
}
|
|
26
|
+
}, e = (c) => c.done ? w(c.value) : Promise.resolve(c.value).then(i, p);
|
|
27
|
+
e((n = n.apply(t, d)).next());
|
|
28
|
+
});
|
|
29
|
+
import { jsx as l, jsxs as j } from "react/jsx-runtime";
|
|
30
|
+
import { useState as v, useContext as B, useRef as F, useEffect as u } from "react";
|
|
31
|
+
import G from "../context.mjs";
|
|
32
|
+
import J from "./AgentChat/index.mjs";
|
|
33
|
+
import M from "../components/KnowledgeList/index.mjs";
|
|
34
|
+
import P from "./SessionList/index.mjs";
|
|
35
|
+
/* empty css */const ee = (t) => {
|
|
36
|
+
const {
|
|
37
|
+
sessionId: d,
|
|
38
|
+
appId: n,
|
|
39
|
+
docViewerUrl: w
|
|
40
|
+
} = t, [s, i] = v(), {
|
|
41
|
+
showHeader: p,
|
|
42
|
+
agentClient: e,
|
|
43
|
+
sider: c,
|
|
44
|
+
onSessionLoad: r,
|
|
45
|
+
features: f
|
|
46
|
+
} = B(G), [m, A] = v(), I = F(null), [K, R] = v(""), [N, k] = v(), [S, y] = v(!1);
|
|
47
|
+
u(() => {
|
|
48
|
+
var a;
|
|
49
|
+
y(s ? !!((a = s.data) != null && a.netOpen) : typeof (f == null ? void 0 : f.connectNetwork) == "object" && typeof (f == null ? void 0 : f.connectNetwork.default) == "boolean" ? f.connectNetwork.default : !1);
|
|
50
|
+
}, [s]), u(() => {
|
|
51
|
+
const a = () => h(void 0, null, function* () {
|
|
52
|
+
const o = e == null ? void 0 : e.application;
|
|
53
|
+
if (!(o != null && o.id))
|
|
54
|
+
return;
|
|
55
|
+
const g = o == null ? void 0 : o.arrange;
|
|
56
|
+
if (!(g != null && g.length))
|
|
57
|
+
return;
|
|
58
|
+
const D = g[0].embeddingService;
|
|
59
|
+
R(D), A(o);
|
|
60
|
+
});
|
|
61
|
+
return e == null || e.addEventListener("ready", () => a()), () => {
|
|
62
|
+
e == null || e.removeEventListener("ready", a);
|
|
63
|
+
};
|
|
64
|
+
}, []), u(() => {
|
|
65
|
+
e && d && (e.ready ? e == null || e.getSessions().then((a) => h(void 0, null, function* () {
|
|
66
|
+
i == null || i(a.find((o) => o.id === d));
|
|
67
|
+
})) : e.addEventListener("ready", () => h(void 0, null, function* () {
|
|
68
|
+
e == null || e.getSessions().then((a) => h(void 0, null, function* () {
|
|
69
|
+
i == null || i(a.find((o) => o.id === d));
|
|
70
|
+
}));
|
|
71
|
+
}), !0));
|
|
72
|
+
}, [e, d]), u(() => {
|
|
73
|
+
if (!s) {
|
|
74
|
+
r && r({
|
|
75
|
+
applicationId: n,
|
|
76
|
+
sessionId: "",
|
|
77
|
+
session: null,
|
|
78
|
+
sessionInstance: null
|
|
79
|
+
});
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
s.data && r && r({
|
|
83
|
+
applicationId: n,
|
|
84
|
+
sessionId: s.data.id,
|
|
85
|
+
session: s.data,
|
|
86
|
+
sessionInstance: s
|
|
87
|
+
}), s.addEventListener("data:loaded", () => {
|
|
88
|
+
s != null && s.data && r && r({
|
|
89
|
+
applicationId: n,
|
|
90
|
+
sessionId: s.data.id,
|
|
91
|
+
session: s.data,
|
|
92
|
+
sessionInstance: s
|
|
93
|
+
});
|
|
94
|
+
}, !0);
|
|
95
|
+
}, [s]);
|
|
96
|
+
const H = (a) => {
|
|
97
|
+
var o;
|
|
98
|
+
return (o = I.current) == null ? void 0 : o.create(x(L({}, a), {
|
|
99
|
+
knowledges: N
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
return /* @__PURE__ */ l("div", {
|
|
103
|
+
className: "dialog",
|
|
104
|
+
children: /* @__PURE__ */ j("div", {
|
|
105
|
+
className: "dialog-pannel",
|
|
106
|
+
children: [/* @__PURE__ */ l("div", {
|
|
107
|
+
className: "dialog-sider",
|
|
108
|
+
children: /* @__PURE__ */ l(P, {
|
|
109
|
+
ref: I,
|
|
110
|
+
sider: c,
|
|
111
|
+
appId: n,
|
|
112
|
+
networkStatus: S,
|
|
113
|
+
currentSession: s,
|
|
114
|
+
application: m,
|
|
115
|
+
setCurrentSession: i,
|
|
116
|
+
checkKnowledges: N,
|
|
117
|
+
setCheckKnowledges: p ? k : void 0
|
|
118
|
+
})
|
|
119
|
+
}), /* @__PURE__ */ l("div", {
|
|
120
|
+
className: "dialog-content",
|
|
121
|
+
children: /* @__PURE__ */ j("div", {
|
|
122
|
+
className: "dialog-chat",
|
|
123
|
+
children: [p && /* @__PURE__ */ l("div", {
|
|
124
|
+
className: "dialog-chat-header",
|
|
125
|
+
children: /* @__PURE__ */ l(M, {
|
|
126
|
+
setCheckKnowledges: k,
|
|
127
|
+
application: m,
|
|
128
|
+
currentSession: s
|
|
129
|
+
})
|
|
130
|
+
}), /* @__PURE__ */ l("div", {
|
|
131
|
+
className: "dialog-chat-content",
|
|
132
|
+
children: (m == null ? void 0 : m.id) && /* @__PURE__ */ l(J, {
|
|
133
|
+
setNetworkStatus: y,
|
|
134
|
+
networkStatus: S,
|
|
135
|
+
application: m,
|
|
136
|
+
currentSession: s,
|
|
137
|
+
onCreateSession: H,
|
|
138
|
+
docViewerUrl: w,
|
|
139
|
+
embeddingService: K,
|
|
140
|
+
setCurrentSession: i
|
|
141
|
+
})
|
|
142
|
+
})]
|
|
143
|
+
})
|
|
144
|
+
})]
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
export {
|
|
149
|
+
ee as default
|
|
150
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as n, useEffect as u } from "react";
|
|
3
|
+
/* empty css */const l = ({
|
|
4
|
+
visible: e = !0,
|
|
5
|
+
text: f = "所有内容均由 AecGPT 人工智能模型生成,请仔细甄别。",
|
|
6
|
+
element: r
|
|
7
|
+
}) => {
|
|
8
|
+
if (!e)
|
|
9
|
+
return null;
|
|
10
|
+
const t = n(null);
|
|
11
|
+
return u(() => {
|
|
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: f
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
l as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as X, useState as o, useRef as O, useImperativeHandle as Y, useEffect as g } from "react";
|
|
3
|
+
import { Popover as Z, Space as ee, Button as te } from "antd";
|
|
4
|
+
import { useKeyPress as P } from "ahooks";
|
|
5
|
+
import T from "classnames";
|
|
6
|
+
import ne from "react-quill";
|
|
7
|
+
import re from "../components/Iconfont/index.mjs";
|
|
8
|
+
import { shortCutEnum as p } from "../utils/index.mjs";
|
|
9
|
+
import "react-quill/dist/quill.snow.css";
|
|
10
|
+
/* empty css */const ie = X((z, F) => {
|
|
11
|
+
var D, q, B;
|
|
12
|
+
const {
|
|
13
|
+
text: N,
|
|
14
|
+
onTextSend: d,
|
|
15
|
+
disabled: j,
|
|
16
|
+
maxLength: c = 0,
|
|
17
|
+
onChange: y,
|
|
18
|
+
networkStatus: a,
|
|
19
|
+
clearAction: C,
|
|
20
|
+
loading: m
|
|
21
|
+
} = 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);
|
|
22
|
+
Y(F, () => ({
|
|
23
|
+
clear: $,
|
|
24
|
+
prevent: H,
|
|
25
|
+
focus: x,
|
|
26
|
+
update: W
|
|
27
|
+
})), g(() => {
|
|
28
|
+
l(N), n.current && (f(), x());
|
|
29
|
+
}, [N]);
|
|
30
|
+
const W = (e) => {
|
|
31
|
+
l(e);
|
|
32
|
+
}, $ = () => {
|
|
33
|
+
l(void 0), w(void 0);
|
|
34
|
+
}, H = () => {
|
|
35
|
+
}, x = () => {
|
|
36
|
+
if (!n.current || b)
|
|
37
|
+
return;
|
|
38
|
+
const e = n.current.getEditor();
|
|
39
|
+
e.focus(), setTimeout(() => {
|
|
40
|
+
e.getLength() > 0 && e.setSelection(e.getLength(), e.getLength());
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
g(() => {
|
|
44
|
+
if (!n.current)
|
|
45
|
+
return;
|
|
46
|
+
const e = n.current.getEditor();
|
|
47
|
+
c && (e.on("text-change", () => {
|
|
48
|
+
e.getLength() > c && e.deleteText(c, e.getLength()), f(), K(), x();
|
|
49
|
+
}), e.on("selection-change", K));
|
|
50
|
+
}, [n, c]);
|
|
51
|
+
const f = () => {
|
|
52
|
+
if (!n.current)
|
|
53
|
+
return;
|
|
54
|
+
const e = n.current.getEditor();
|
|
55
|
+
Q(e.getBounds(e.getLength() - 1, e.getLength()).left), U(e.getBounds(e.getLength() - 1, e.getLength()).top);
|
|
56
|
+
}, K = (e) => {
|
|
57
|
+
if (!n.current)
|
|
58
|
+
return;
|
|
59
|
+
const t = n.current.getEditor(), i = e || t.getSelection();
|
|
60
|
+
(i == null ? void 0 : i.index) !== void 0 && A(i == null ? void 0 : i.index);
|
|
61
|
+
};
|
|
62
|
+
P("1", () => {
|
|
63
|
+
var t;
|
|
64
|
+
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
65
|
+
I && a && (e == null || e.blur(), setTimeout(() => R()));
|
|
66
|
+
}), P("2", () => {
|
|
67
|
+
var t;
|
|
68
|
+
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
69
|
+
I && (e == null || e.blur(), setTimeout(() => _()));
|
|
70
|
+
});
|
|
71
|
+
const R = () => {
|
|
72
|
+
var t;
|
|
73
|
+
if (!a)
|
|
74
|
+
return;
|
|
75
|
+
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
76
|
+
e == null || e.focus(), E(!1), setTimeout(() => e == null ? void 0 : e.insertText(k, p.NETWORK));
|
|
77
|
+
}, _ = () => {
|
|
78
|
+
var t;
|
|
79
|
+
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
80
|
+
e == null || e.focus(), E(!1), setTimeout(() => e == null ? void 0 : e.insertText(k, p.DOCUMENT));
|
|
81
|
+
}, G = () => {
|
|
82
|
+
var t, i, u;
|
|
83
|
+
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
84
|
+
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));
|
|
85
|
+
};
|
|
86
|
+
return g(() => {
|
|
87
|
+
var e, t;
|
|
88
|
+
m ? (e = n.current) == null || e.getEditor().disable() : (t = n.current) == null || t.getEditor().enable();
|
|
89
|
+
}, [m]), g(() => (window.addEventListener("resize", f), () => {
|
|
90
|
+
window.removeEventListener("resize", f);
|
|
91
|
+
}), []), /* @__PURE__ */ s("div", {
|
|
92
|
+
className: T({
|
|
93
|
+
"quill-editor": !0,
|
|
94
|
+
"quill-editor__active": b
|
|
95
|
+
}),
|
|
96
|
+
children: [/* @__PURE__ */ s("div", {
|
|
97
|
+
className: T({
|
|
98
|
+
"quill-editor-wrapper": !0,
|
|
99
|
+
"quill-editor-wrapper__scroll": S >= 200
|
|
100
|
+
}),
|
|
101
|
+
onKeyDownCapture: (e) => {
|
|
102
|
+
!e.shiftKey && e.code === "Enter" && e.preventDefault();
|
|
103
|
+
},
|
|
104
|
+
children: [/* @__PURE__ */ r(ne, {
|
|
105
|
+
theme: "snow",
|
|
106
|
+
placeholder: "输入你想问的,shift+enter 换行。",
|
|
107
|
+
ref: n,
|
|
108
|
+
onFocus: () => L(!0),
|
|
109
|
+
onBlur: () => L(!1),
|
|
110
|
+
onKeyDown: (e) => {
|
|
111
|
+
if (!e.shiftKey && e.keyCode == 13) {
|
|
112
|
+
const t = h == null ? void 0 : h.replace(/[\n\s]+$/, "");
|
|
113
|
+
l(t), d && d(v);
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
value: h,
|
|
117
|
+
modules: {
|
|
118
|
+
toolbar: !1
|
|
119
|
+
},
|
|
120
|
+
onChange: (e, t, i, u) => {
|
|
121
|
+
if (!t)
|
|
122
|
+
return;
|
|
123
|
+
l(e);
|
|
124
|
+
const J = u.getText().replace(/[\n\s]+$/, "");
|
|
125
|
+
w(J), y && y(e, u);
|
|
126
|
+
}
|
|
127
|
+
}), /* @__PURE__ */ r("div", {
|
|
128
|
+
className: "shortcut-direct",
|
|
129
|
+
ref: V,
|
|
130
|
+
style: {
|
|
131
|
+
position: "absolute",
|
|
132
|
+
left: M + 4,
|
|
133
|
+
top: S,
|
|
134
|
+
cursor: "pointer",
|
|
135
|
+
visibility: G() ? "visible" : "hidden"
|
|
136
|
+
},
|
|
137
|
+
children: /* @__PURE__ */ r(Z, {
|
|
138
|
+
autoAdjustOverflow: !0,
|
|
139
|
+
placement: "top",
|
|
140
|
+
trigger: "hover",
|
|
141
|
+
getPopupContainer: (e) => e.parentNode,
|
|
142
|
+
onVisibleChange: (e) => {
|
|
143
|
+
E(e);
|
|
144
|
+
},
|
|
145
|
+
content: /* @__PURE__ */ s("div", {
|
|
146
|
+
className: "shortcut-direct-pannel",
|
|
147
|
+
children: [/* @__PURE__ */ s("div", {
|
|
148
|
+
className: T({
|
|
149
|
+
"shortcut-direct-item": a,
|
|
150
|
+
"shortcut-direct-item__disabled": !a
|
|
151
|
+
}),
|
|
152
|
+
onClick: R,
|
|
153
|
+
children: [/* @__PURE__ */ r("span", {
|
|
154
|
+
className: "title",
|
|
155
|
+
children: "指定联网回答"
|
|
156
|
+
}), /* @__PURE__ */ r("span", {
|
|
157
|
+
className: "text",
|
|
158
|
+
children: "快捷键1"
|
|
159
|
+
})]
|
|
160
|
+
}), /* @__PURE__ */ s("div", {
|
|
161
|
+
className: "shortcut-direct-item",
|
|
162
|
+
onClick: _,
|
|
163
|
+
children: [/* @__PURE__ */ r("span", {
|
|
164
|
+
className: "title",
|
|
165
|
+
children: "指定文档回答"
|
|
166
|
+
}), /* @__PURE__ */ r("span", {
|
|
167
|
+
className: "text",
|
|
168
|
+
children: "快捷键2"
|
|
169
|
+
})]
|
|
170
|
+
})]
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
})]
|
|
174
|
+
}), /* @__PURE__ */ s("div", {
|
|
175
|
+
className: "quill-editor-send",
|
|
176
|
+
children: [/* @__PURE__ */ r("div", {
|
|
177
|
+
style: {
|
|
178
|
+
height: 32
|
|
179
|
+
},
|
|
180
|
+
children: C || /* @__PURE__ */ r("span", {})
|
|
181
|
+
}), /* @__PURE__ */ s("div", {
|
|
182
|
+
style: {
|
|
183
|
+
height: 32,
|
|
184
|
+
display: "flex",
|
|
185
|
+
alignItems: "center"
|
|
186
|
+
},
|
|
187
|
+
children: [/* @__PURE__ */ s(ee, {
|
|
188
|
+
size: 2,
|
|
189
|
+
style: {
|
|
190
|
+
color: "#84868C"
|
|
191
|
+
},
|
|
192
|
+
children: [/* @__PURE__ */ r("span", {
|
|
193
|
+
children: ((D = n.current) == null ? void 0 : D.getEditor()) && ((B = (q = n.current) == null ? void 0 : q.getEditor()) == null ? void 0 : B.getLength()) - 1
|
|
194
|
+
}), /* @__PURE__ */ r("span", {
|
|
195
|
+
children: "/"
|
|
196
|
+
}), /* @__PURE__ */ r("span", {
|
|
197
|
+
children: c
|
|
198
|
+
})]
|
|
199
|
+
}), /* @__PURE__ */ r(te, {
|
|
200
|
+
type: "link",
|
|
201
|
+
ghost: !0,
|
|
202
|
+
disabled: j || !v,
|
|
203
|
+
loading: m,
|
|
204
|
+
icon: /* @__PURE__ */ r(re, {
|
|
205
|
+
className: "icon-sendMsg",
|
|
206
|
+
style: {
|
|
207
|
+
fontSize: 24
|
|
208
|
+
},
|
|
209
|
+
type: "icon-fasong"
|
|
210
|
+
}),
|
|
211
|
+
onClick: () => {
|
|
212
|
+
d && d(v);
|
|
213
|
+
}
|
|
214
|
+
})]
|
|
215
|
+
})]
|
|
216
|
+
})]
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
ie.displayName = "QuillEditor";
|
|
220
|
+
export {
|
|
221
|
+
ie as default
|
|
222
|
+
};
|
|
@@ -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
|
+
};
|