@glodon-aiot/agent-cli-ui 3.19.0-alpha.27 → 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,278 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as te, useState as c, useRef as B, useImperativeHandle as ne, useEffect as l } from "react";
|
|
3
|
-
import { Popover as re, Space as oe, Button as ie } from "antd";
|
|
4
|
-
import { useKeyPress as F } from "ahooks";
|
|
5
|
-
import C from "classnames";
|
|
6
|
-
import se from "react-quill-new";
|
|
7
|
-
import ce from "../components/Iconfont/index.mjs";
|
|
8
|
-
import { shortCutEnum as x } from "../utils/index.mjs";
|
|
9
|
-
import "react-quill-new/dist/quill.snow.css";
|
|
10
|
-
/* empty css */const le = te((M, j) => {
|
|
11
|
-
var A, O, z;
|
|
12
|
-
const {
|
|
13
|
-
text: h,
|
|
14
|
-
onTextSend: m,
|
|
15
|
-
disabled: Q,
|
|
16
|
-
maxLength: d = 0,
|
|
17
|
-
onChange: w,
|
|
18
|
-
networkStatus: f,
|
|
19
|
-
clearAction: S,
|
|
20
|
-
loading: T
|
|
21
|
-
} = M, [k, D] = c(!0), [u, a] = c(), [p, g] = c(), [U, V] = c(15), [I, $] = c(12), [K, H] = c(0), [P, b] = c(!1), W = B(null), n = B(null);
|
|
22
|
-
ne(j, () => ({
|
|
23
|
-
clear: J,
|
|
24
|
-
prevent: X,
|
|
25
|
-
focus: L,
|
|
26
|
-
update: G,
|
|
27
|
-
// 新增:获取当前输入框内容
|
|
28
|
-
getCurrentText: () => p
|
|
29
|
-
})), l(() => {
|
|
30
|
-
if (a(h), h) {
|
|
31
|
-
const e = document.createElement("div");
|
|
32
|
-
e.innerHTML = h;
|
|
33
|
-
const t = e.textContent || e.innerText || "";
|
|
34
|
-
g(t.replace(/[\n\s]+$/, ""));
|
|
35
|
-
} else
|
|
36
|
-
g(void 0);
|
|
37
|
-
n.current && (E(), L());
|
|
38
|
-
}, [h]), l(() => {
|
|
39
|
-
if (!n.current)
|
|
40
|
-
return;
|
|
41
|
-
const e = n.current.getEditor();
|
|
42
|
-
if (e && e.bounds !== document.body)
|
|
43
|
-
try {
|
|
44
|
-
console.log("设置 bounds"), e.bounds = document.body;
|
|
45
|
-
} catch (t) {
|
|
46
|
-
console.warn("设置 bounds 失败:", t);
|
|
47
|
-
}
|
|
48
|
-
}, [n.current]);
|
|
49
|
-
const y = () => {
|
|
50
|
-
var v;
|
|
51
|
-
if (!n.current)
|
|
52
|
-
return;
|
|
53
|
-
const e = n.current.getEditor(), t = e.root;
|
|
54
|
-
let i = e.getText().trim().length > 0;
|
|
55
|
-
if (!i) {
|
|
56
|
-
const Z = t.querySelectorAll("p");
|
|
57
|
-
for (const ee of Array.from(Z)) {
|
|
58
|
-
const N = Array.from(ee.childNodes);
|
|
59
|
-
if (N.length > 1 || N.length === 1 && ((v = N[0].nodeName) == null ? void 0 : v.toLowerCase()) !== "br") {
|
|
60
|
-
i = !0;
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
i ? t.classList.add("hide-placeholder") : t.classList.remove("hide-placeholder");
|
|
66
|
-
};
|
|
67
|
-
l(() => {
|
|
68
|
-
y();
|
|
69
|
-
}, [u]), l(() => {
|
|
70
|
-
if (!n.current)
|
|
71
|
-
return;
|
|
72
|
-
const e = n.current.getEditor().root, t = () => {
|
|
73
|
-
e.classList.add("hide-placeholder");
|
|
74
|
-
}, r = () => {
|
|
75
|
-
setTimeout(() => {
|
|
76
|
-
y();
|
|
77
|
-
}, 0);
|
|
78
|
-
};
|
|
79
|
-
return e.addEventListener("compositionstart", t), e.addEventListener("compositionend", r), () => {
|
|
80
|
-
e.removeEventListener("compositionstart", t), e.removeEventListener("compositionend", r);
|
|
81
|
-
};
|
|
82
|
-
}, [n.current]);
|
|
83
|
-
const G = (e) => {
|
|
84
|
-
a(e), setTimeout(() => {
|
|
85
|
-
y();
|
|
86
|
-
}, 0);
|
|
87
|
-
}, J = () => {
|
|
88
|
-
a(void 0), g(void 0), n.current && n.current.getEditor().root.classList.remove("hide-placeholder");
|
|
89
|
-
}, X = () => {
|
|
90
|
-
}, L = () => {
|
|
91
|
-
if (!n.current || k)
|
|
92
|
-
return;
|
|
93
|
-
const e = n.current.getEditor();
|
|
94
|
-
e.focus(), setTimeout(() => {
|
|
95
|
-
e.getLength() > 0 && e.setSelection(e.getLength(), e.getLength());
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
l(() => {
|
|
99
|
-
if (!n.current)
|
|
100
|
-
return;
|
|
101
|
-
const e = n.current.getEditor();
|
|
102
|
-
d && (e.on("text-change", () => {
|
|
103
|
-
e.getLength() > d && e.deleteText(d, e.getLength()), E(), R(), L();
|
|
104
|
-
}), e.on("selection-change", R));
|
|
105
|
-
}, [n, d]);
|
|
106
|
-
const E = () => {
|
|
107
|
-
if (!n.current)
|
|
108
|
-
return;
|
|
109
|
-
const e = n.current.getEditor(), t = e.getBounds(e.getLength() - 1, e.getLength());
|
|
110
|
-
t && (V(t.left), $(t.top));
|
|
111
|
-
}, R = (e) => {
|
|
112
|
-
if (!n.current)
|
|
113
|
-
return;
|
|
114
|
-
const t = n.current.getEditor(), r = e || t.getSelection();
|
|
115
|
-
(r == null ? void 0 : r.index) !== void 0 && H(r == null ? void 0 : r.index);
|
|
116
|
-
};
|
|
117
|
-
F("1", () => {
|
|
118
|
-
var t;
|
|
119
|
-
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
120
|
-
P && f && (e == null || e.blur(), setTimeout(() => _()));
|
|
121
|
-
}), F("2", () => {
|
|
122
|
-
var t;
|
|
123
|
-
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
124
|
-
P && (e == null || e.blur(), setTimeout(() => q()));
|
|
125
|
-
});
|
|
126
|
-
const _ = () => {
|
|
127
|
-
var t;
|
|
128
|
-
if (!f)
|
|
129
|
-
return;
|
|
130
|
-
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
131
|
-
e == null || e.focus(), b(!1), setTimeout(() => e == null ? void 0 : e.insertText(K, x.NETWORK));
|
|
132
|
-
}, q = () => {
|
|
133
|
-
var t;
|
|
134
|
-
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
135
|
-
e == null || e.focus(), b(!1), setTimeout(() => e == null ? void 0 : e.insertText(K, x.DOCUMENT));
|
|
136
|
-
}, Y = () => {
|
|
137
|
-
var t, r, i;
|
|
138
|
-
const e = (t = n.current) == null ? void 0 : t.getEditor();
|
|
139
|
-
return e && (e == null ? void 0 : e.getLength()) > 2 && !((r = e.getText()) != null && r.includes(x.NETWORK)) && !((i = e.getText()) != null && i.includes(x.DOCUMENT));
|
|
140
|
-
};
|
|
141
|
-
return l(() => {
|
|
142
|
-
var e, t;
|
|
143
|
-
T ? (e = n.current) == null || e.getEditor().disable() : (t = n.current) == null || t.getEditor().enable();
|
|
144
|
-
}, [T]), l(() => (window.addEventListener("resize", E), () => {
|
|
145
|
-
window.removeEventListener("resize", E);
|
|
146
|
-
}), []), /* @__PURE__ */ s("div", {
|
|
147
|
-
className: C({
|
|
148
|
-
"quill-editor": !0,
|
|
149
|
-
"quill-editor__active": k
|
|
150
|
-
}),
|
|
151
|
-
children: [/* @__PURE__ */ s("div", {
|
|
152
|
-
className: C({
|
|
153
|
-
"quill-editor-wrapper": !0,
|
|
154
|
-
"quill-editor-wrapper__scroll": I >= 200
|
|
155
|
-
}),
|
|
156
|
-
onKeyDownCapture: (e) => {
|
|
157
|
-
!e.shiftKey && e.code === "Enter" && e.preventDefault();
|
|
158
|
-
},
|
|
159
|
-
children: [/* @__PURE__ */ o(se, {
|
|
160
|
-
theme: "snow",
|
|
161
|
-
placeholder: "输入你想问的,shift+enter 换行。",
|
|
162
|
-
ref: n,
|
|
163
|
-
bounds: document.body,
|
|
164
|
-
onFocus: () => D(!0),
|
|
165
|
-
onBlur: () => D(!1),
|
|
166
|
-
onKeyDown: (e) => {
|
|
167
|
-
if (!e.shiftKey && e.keyCode == 13) {
|
|
168
|
-
const t = u == null ? void 0 : u.replace(/[\n\s]+$/, "");
|
|
169
|
-
a(t), m && m(p);
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
value: u,
|
|
173
|
-
modules: {
|
|
174
|
-
toolbar: !1
|
|
175
|
-
},
|
|
176
|
-
onChange: (e, t, r, i) => {
|
|
177
|
-
if (!t)
|
|
178
|
-
return;
|
|
179
|
-
a(e);
|
|
180
|
-
const v = i.getText().replace(/[\n\s]+$/, "");
|
|
181
|
-
g(v), w && w(e, i);
|
|
182
|
-
}
|
|
183
|
-
}), /* @__PURE__ */ o("div", {
|
|
184
|
-
className: "shortcut-direct",
|
|
185
|
-
ref: W,
|
|
186
|
-
style: {
|
|
187
|
-
position: "absolute",
|
|
188
|
-
left: U + 4,
|
|
189
|
-
top: I,
|
|
190
|
-
cursor: "pointer",
|
|
191
|
-
visibility: Y() ? "visible" : "hidden"
|
|
192
|
-
},
|
|
193
|
-
children: /* @__PURE__ */ o(re, {
|
|
194
|
-
autoAdjustOverflow: !0,
|
|
195
|
-
placement: "top",
|
|
196
|
-
trigger: "hover",
|
|
197
|
-
getPopupContainer: (e) => e.parentNode,
|
|
198
|
-
onVisibleChange: (e) => {
|
|
199
|
-
b(e);
|
|
200
|
-
},
|
|
201
|
-
content: /* @__PURE__ */ s("div", {
|
|
202
|
-
className: "shortcut-direct-pannel",
|
|
203
|
-
children: [/* @__PURE__ */ s("div", {
|
|
204
|
-
className: C({
|
|
205
|
-
"shortcut-direct-item": f,
|
|
206
|
-
"shortcut-direct-item__disabled": !f
|
|
207
|
-
}),
|
|
208
|
-
onClick: _,
|
|
209
|
-
children: [/* @__PURE__ */ o("span", {
|
|
210
|
-
className: "title",
|
|
211
|
-
children: "指定联网回答"
|
|
212
|
-
}), /* @__PURE__ */ o("span", {
|
|
213
|
-
className: "text",
|
|
214
|
-
children: "快捷键1"
|
|
215
|
-
})]
|
|
216
|
-
}), /* @__PURE__ */ s("div", {
|
|
217
|
-
className: "shortcut-direct-item",
|
|
218
|
-
onClick: q,
|
|
219
|
-
children: [/* @__PURE__ */ o("span", {
|
|
220
|
-
className: "title",
|
|
221
|
-
children: "指定文档回答"
|
|
222
|
-
}), /* @__PURE__ */ o("span", {
|
|
223
|
-
className: "text",
|
|
224
|
-
children: "快捷键2"
|
|
225
|
-
})]
|
|
226
|
-
})]
|
|
227
|
-
})
|
|
228
|
-
})
|
|
229
|
-
})]
|
|
230
|
-
}), /* @__PURE__ */ s("div", {
|
|
231
|
-
className: "quill-editor-send",
|
|
232
|
-
children: [/* @__PURE__ */ o("div", {
|
|
233
|
-
style: {
|
|
234
|
-
height: 32
|
|
235
|
-
},
|
|
236
|
-
children: S || /* @__PURE__ */ o("span", {})
|
|
237
|
-
}), /* @__PURE__ */ s("div", {
|
|
238
|
-
style: {
|
|
239
|
-
height: 32,
|
|
240
|
-
display: "flex",
|
|
241
|
-
alignItems: "center"
|
|
242
|
-
},
|
|
243
|
-
children: [/* @__PURE__ */ s(oe, {
|
|
244
|
-
size: 2,
|
|
245
|
-
style: {
|
|
246
|
-
color: "#84868C"
|
|
247
|
-
},
|
|
248
|
-
children: [/* @__PURE__ */ o("span", {
|
|
249
|
-
children: ((A = n.current) == null ? void 0 : A.getEditor()) && ((z = (O = n.current) == null ? void 0 : O.getEditor()) == null ? void 0 : z.getLength()) - 1
|
|
250
|
-
}), /* @__PURE__ */ o("span", {
|
|
251
|
-
children: "/"
|
|
252
|
-
}), /* @__PURE__ */ o("span", {
|
|
253
|
-
children: d
|
|
254
|
-
})]
|
|
255
|
-
}), /* @__PURE__ */ o(ie, {
|
|
256
|
-
type: "link",
|
|
257
|
-
ghost: !0,
|
|
258
|
-
disabled: Q || !p,
|
|
259
|
-
loading: T,
|
|
260
|
-
icon: /* @__PURE__ */ o(ce, {
|
|
261
|
-
className: "icon-sendMsg",
|
|
262
|
-
style: {
|
|
263
|
-
fontSize: 24
|
|
264
|
-
},
|
|
265
|
-
type: "icon-fasong"
|
|
266
|
-
}),
|
|
267
|
-
onClick: () => {
|
|
268
|
-
m && m(p);
|
|
269
|
-
}
|
|
270
|
-
})]
|
|
271
|
-
})]
|
|
272
|
-
})]
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
le.displayName = "QuillEditor";
|
|
276
|
-
export {
|
|
277
|
-
le as default
|
|
278
|
-
};
|
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
var ye = Object.defineProperty, Ie = Object.defineProperties;
|
|
2
|
-
var pe = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var G = Object.getOwnPropertySymbols;
|
|
4
|
-
var ve = Object.prototype.hasOwnProperty, ke = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Q = (n, i, c) => i in n ? ye(n, i, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[i] = c, T = (n, i) => {
|
|
6
|
-
for (var c in i || (i = {}))
|
|
7
|
-
ve.call(i, c) && Q(n, c, i[c]);
|
|
8
|
-
if (G)
|
|
9
|
-
for (var c of G(i))
|
|
10
|
-
ke.call(i, c) && Q(n, c, i[c]);
|
|
11
|
-
return n;
|
|
12
|
-
}, X = (n, i) => Ie(n, pe(i));
|
|
13
|
-
var P = (n, i, c) => new Promise((f, b) => {
|
|
14
|
-
var M = (u) => {
|
|
15
|
-
try {
|
|
16
|
-
k(c.next(u));
|
|
17
|
-
} catch (x) {
|
|
18
|
-
b(x);
|
|
19
|
-
}
|
|
20
|
-
}, v = (u) => {
|
|
21
|
-
try {
|
|
22
|
-
k(c.throw(u));
|
|
23
|
-
} catch (x) {
|
|
24
|
-
b(x);
|
|
25
|
-
}
|
|
26
|
-
}, k = (u) => u.done ? f(u.value) : Promise.resolve(u.value).then(M, v);
|
|
27
|
-
k((c = c.apply(n, i)).next());
|
|
28
|
-
});
|
|
29
|
-
import { jsxs as S, jsx as o, Fragment as xe } from "react/jsx-runtime";
|
|
30
|
-
import { useState as h, useRef as Se, useContext as be, useEffect as w } from "react";
|
|
31
|
-
import { Form as V, Collapse as te, Input as F, Button as Pe, message as Z, notification as K } from "antd";
|
|
32
|
-
import { PromptVariableType as y } from "@glodon-aiot/apis";
|
|
33
|
-
import { v4 as Ce } from "uuid";
|
|
34
|
-
import we from "../../../context.mjs";
|
|
35
|
-
import Ne from "../../../components/KnowledgeList/KnowledgeSelect/index.mjs";
|
|
36
|
-
import "../../../packages/react-components/dist/es/index.mjs";
|
|
37
|
-
import Ae from "../../../Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs";
|
|
38
|
-
import Te from "../../../node_modules/moment/dist/moment.mjs";
|
|
39
|
-
/* empty css */import { fetchEventSource as Ve } from "../fetchEventSource/fetch.mjs";
|
|
40
|
-
import { withAgentCliMessage as _ } from "../../../utils/scopedMessage.mjs";
|
|
41
|
-
import { Markdown as Me } from "../../../packages/react-components/dist/es/components/Markdown/index.mjs";
|
|
42
|
-
const {
|
|
43
|
-
Panel: ee
|
|
44
|
-
} = te, Je = ({
|
|
45
|
-
application: n,
|
|
46
|
-
sessionId: i,
|
|
47
|
-
docViewerUrl: c
|
|
48
|
-
}) => {
|
|
49
|
-
const f = n.id, [b, M] = h(""), [v, k] = h(""), [u, x] = h(), [q, N] = h(!1), $ = Se(null), [D, se] = h([]), [A, H] = h([]), [re, O] = h(0), [Y, j] = h(), [l, L] = h(), [E] = V.useForm(), [R, ne] = h({}), [U, ae] = h({}), [oe, le] = h(0), {
|
|
50
|
-
service: g,
|
|
51
|
-
agentClient: p,
|
|
52
|
-
popupContainer: C,
|
|
53
|
-
token: ce,
|
|
54
|
-
apiUrl: ie
|
|
55
|
-
} = be(we), de = (e, a, d, t) => {
|
|
56
|
-
const s = {
|
|
57
|
-
messageId: Ce(),
|
|
58
|
-
content: "",
|
|
59
|
-
role: 1,
|
|
60
|
-
sessionId: "",
|
|
61
|
-
reference: [],
|
|
62
|
-
messageTime: "",
|
|
63
|
-
llmModel: "",
|
|
64
|
-
searchReference: []
|
|
65
|
-
}, r = X(T({}, d), {
|
|
66
|
-
stream: !0
|
|
67
|
-
});
|
|
68
|
-
Ve(`${ie}/chat/v2/chat?applicationId=${e}&sessionId=${a}`, {
|
|
69
|
-
method: "POST",
|
|
70
|
-
headers: {
|
|
71
|
-
Authorization: `Bearer ${ce}`,
|
|
72
|
-
"Content-Type": "application/json"
|
|
73
|
-
},
|
|
74
|
-
body: JSON.stringify(r),
|
|
75
|
-
openWhenHidden: !0,
|
|
76
|
-
onopen(m) {
|
|
77
|
-
return console.log("onopen"), m.ok && t != null && t.onopen && t.onopen(), Promise.resolve();
|
|
78
|
-
},
|
|
79
|
-
onmessage(m) {
|
|
80
|
-
if (!m.id && !m.data && !m.event && !m.retry)
|
|
81
|
-
return;
|
|
82
|
-
if (!m.data.includes('{"code": ')) {
|
|
83
|
-
s.content = s.content + m.data;
|
|
84
|
-
const B = {
|
|
85
|
-
content: s.content,
|
|
86
|
-
role: 1,
|
|
87
|
-
reference: s.reference,
|
|
88
|
-
messageId: s.messageId,
|
|
89
|
-
sessionId: a,
|
|
90
|
-
messageTime: Te(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"),
|
|
91
|
-
searchReference: []
|
|
92
|
-
};
|
|
93
|
-
return (t == null ? void 0 : t.onmessage) && t.onmessage(B);
|
|
94
|
-
}
|
|
95
|
-
const I = JSON.parse(m.data);
|
|
96
|
-
if (s.reference = I.data.reference, s.messageTime = I.data.messageTime, s.messageId = I.data.messageId, s.llmModel = I.data.llmModel, s.content = I.data.content, s.code = I.code, I.code === 200) {
|
|
97
|
-
const B = {
|
|
98
|
-
code: s.code,
|
|
99
|
-
content: s.content,
|
|
100
|
-
role: 1,
|
|
101
|
-
reference: s.reference,
|
|
102
|
-
messageId: s.messageId,
|
|
103
|
-
sessionId: a,
|
|
104
|
-
messageTime: s.messageTime,
|
|
105
|
-
searchReference: []
|
|
106
|
-
};
|
|
107
|
-
t != null && t.onmessage && t.onmessage(B);
|
|
108
|
-
} else if (I.code !== 11916) {
|
|
109
|
-
K.config({
|
|
110
|
-
getContainer: () => (C == null ? void 0 : C.current) || document.body,
|
|
111
|
-
prefixCls: "gbot-notification"
|
|
112
|
-
}), K.error({
|
|
113
|
-
message: I.message
|
|
114
|
-
}), K.config({
|
|
115
|
-
getContainer: void 0,
|
|
116
|
-
prefixCls: "gbot-notification"
|
|
117
|
-
});
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
onerror() {
|
|
122
|
-
t != null && t.onerror && t.onerror();
|
|
123
|
-
},
|
|
124
|
-
onclose() {
|
|
125
|
-
console.log("onclose");
|
|
126
|
-
const m = {
|
|
127
|
-
code: s.code,
|
|
128
|
-
content: s.content,
|
|
129
|
-
role: 1,
|
|
130
|
-
reference: s.reference,
|
|
131
|
-
messageId: s.messageId,
|
|
132
|
-
sessionId: a,
|
|
133
|
-
messageTime: s.messageTime,
|
|
134
|
-
comment: {
|
|
135
|
-
isAgree: 0
|
|
136
|
-
},
|
|
137
|
-
searchReference: []
|
|
138
|
-
};
|
|
139
|
-
t != null && t.onclose && t.onclose(m);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
};
|
|
143
|
-
w(() => {
|
|
144
|
-
if (!(n != null && n.id))
|
|
145
|
-
return;
|
|
146
|
-
const e = n.arrange;
|
|
147
|
-
if (!(e != null && e.length))
|
|
148
|
-
return;
|
|
149
|
-
const d = e[0].knowledges || [];
|
|
150
|
-
se(d), O(d.length);
|
|
151
|
-
const t = d.map((s) => s.id);
|
|
152
|
-
H(t);
|
|
153
|
-
}, [n]), w(() => {
|
|
154
|
-
if (!(n != null && n.id) || !p)
|
|
155
|
-
return;
|
|
156
|
-
const e = p.questionContextMaxLength || 4e3;
|
|
157
|
-
le(e), me();
|
|
158
|
-
}, [n, p]);
|
|
159
|
-
const me = () => P(void 0, null, function* () {
|
|
160
|
-
if (!g || !f)
|
|
161
|
-
return;
|
|
162
|
-
const e = yield g.postApplicationIdSession({
|
|
163
|
-
name: "AI 会话",
|
|
164
|
-
applicationId: f
|
|
165
|
-
});
|
|
166
|
-
j(e);
|
|
167
|
-
});
|
|
168
|
-
w(() => {
|
|
169
|
-
!f || !g || Promise.all([g.getApplicationIdPromptVariables(f, {
|
|
170
|
-
type: y.User,
|
|
171
|
-
status: 1
|
|
172
|
-
}), g.getApplicationIdPromptVariables(f, {
|
|
173
|
-
type: y.System,
|
|
174
|
-
status: 1
|
|
175
|
-
})]).then(([e, a]) => {
|
|
176
|
-
const s = [...e, ...a].filter((r) => !(r.type === y.User && r.key === "query") && !(r.type === y.System && r.key === "datetime")).map((r) => ({
|
|
177
|
-
id: r.id,
|
|
178
|
-
key: r.key,
|
|
179
|
-
name: r.name,
|
|
180
|
-
value: "",
|
|
181
|
-
type: r.type
|
|
182
|
-
}));
|
|
183
|
-
L(s);
|
|
184
|
-
});
|
|
185
|
-
}, [g, f]), w(() => {
|
|
186
|
-
if (!l)
|
|
187
|
-
return;
|
|
188
|
-
const e = l.filter((s) => s.type === y.User), a = l.filter((s) => s.type === y.System), d = {};
|
|
189
|
-
e == null || e.map((s) => {
|
|
190
|
-
s.key && (d[s.key] = s.value);
|
|
191
|
-
});
|
|
192
|
-
const t = {};
|
|
193
|
-
a == null || a.map((s) => {
|
|
194
|
-
s.key && (t[s.key] = s.value);
|
|
195
|
-
}), E.setFieldsValue({
|
|
196
|
-
userPrompts: d,
|
|
197
|
-
systemPrompts: t
|
|
198
|
-
}), ne(d), ae(t);
|
|
199
|
-
}, [l]);
|
|
200
|
-
const fe = (e, a) => P(void 0, null, function* () {
|
|
201
|
-
!Y || !f || !g || (yield g.patchApplicationIdSessionpromptVariablesId(f, Y.id, e, {
|
|
202
|
-
value: a
|
|
203
|
-
}));
|
|
204
|
-
}), ue = (e) => {
|
|
205
|
-
M(e.target.value);
|
|
206
|
-
}, ge = () => P(void 0, null, function* () {
|
|
207
|
-
if (!f || !g || !p)
|
|
208
|
-
return;
|
|
209
|
-
N(!0);
|
|
210
|
-
for (const t in R)
|
|
211
|
-
R[t] || _(C, () => {
|
|
212
|
-
Z.error("变量值不能为空");
|
|
213
|
-
});
|
|
214
|
-
for (const t in U)
|
|
215
|
-
U[t] || _(C, () => {
|
|
216
|
-
Z.error("变量值不能为空");
|
|
217
|
-
});
|
|
218
|
-
const e = yield g.postApplicationIdSession({
|
|
219
|
-
name: "AI 会话",
|
|
220
|
-
applicationId: f
|
|
221
|
-
});
|
|
222
|
-
j(e);
|
|
223
|
-
const a = A == null ? void 0 : A.map((t) => t.toString());
|
|
224
|
-
yield g.getApplicationIdSessionIdPromptVariables(f, e.id).then((t) => P(void 0, null, function* () {
|
|
225
|
-
if (!l)
|
|
226
|
-
return;
|
|
227
|
-
const s = t.filter((r) => r.key !== "query").map((r) => {
|
|
228
|
-
const m = l.filter((I) => I.key === r.key);
|
|
229
|
-
return r.value = m[0].value, r;
|
|
230
|
-
});
|
|
231
|
-
yield Promise.all(s.map((r) => fe(r.id, r.value))), L(s);
|
|
232
|
-
})).catch((t) => {
|
|
233
|
-
console.log(t), N(!1);
|
|
234
|
-
});
|
|
235
|
-
const d = {
|
|
236
|
-
content: b,
|
|
237
|
-
chatMode: 1,
|
|
238
|
-
knowledges: a,
|
|
239
|
-
promptVariables: R,
|
|
240
|
-
systemPromptVariables: U
|
|
241
|
-
};
|
|
242
|
-
de(f, e.id, d, {
|
|
243
|
-
onmessage: (t) => {
|
|
244
|
-
x(void 0), k(t.content);
|
|
245
|
-
},
|
|
246
|
-
onclose: (t) => P(void 0, null, function* () {
|
|
247
|
-
if (N(!1), t.code == 200) {
|
|
248
|
-
k(t.content);
|
|
249
|
-
const s = yield Promise.all(t.reference.map((r) => g.getKnowledgeIdFileId(r.knowledgeId, r.docId)));
|
|
250
|
-
t.reference = t.reference.map((r, m) => T(T({}, r), s[m])), x(t);
|
|
251
|
-
} else
|
|
252
|
-
t.code === 11916 && (x(void 0), k("尊敬的用户您好,让我们换个话题再聊聊吧。"));
|
|
253
|
-
}),
|
|
254
|
-
onerror: () => {
|
|
255
|
-
N(!1);
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
w(() => {
|
|
260
|
-
if (!v)
|
|
261
|
-
return;
|
|
262
|
-
const e = $.current;
|
|
263
|
-
e && (e.scrollTop = e.scrollHeight);
|
|
264
|
-
}, [v]);
|
|
265
|
-
const he = (e) => {
|
|
266
|
-
H(e), O(e.length);
|
|
267
|
-
}, z = (e, a) => {
|
|
268
|
-
l && (l.map((d) => {
|
|
269
|
-
d.id === e && (d.value = a.target.value);
|
|
270
|
-
}), L([...l]));
|
|
271
|
-
}, J = (l == null ? void 0 : l.filter((e) => e.type === y.System)) || [], W = (l == null ? void 0 : l.filter((e) => e.type === y.User)) || [];
|
|
272
|
-
return /* @__PURE__ */ S("div", {
|
|
273
|
-
className: "text-main",
|
|
274
|
-
children: [/* @__PURE__ */ S("div", {
|
|
275
|
-
className: "text-left-sider",
|
|
276
|
-
children: [!!(l != null && l.length) && /* @__PURE__ */ o(V, {
|
|
277
|
-
autoComplete: "off",
|
|
278
|
-
form: E,
|
|
279
|
-
labelWrap: !0,
|
|
280
|
-
labelAlign: "left",
|
|
281
|
-
labelCol: {
|
|
282
|
-
style: {
|
|
283
|
-
width: 120
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
className: "prompt-form",
|
|
287
|
-
children: /* @__PURE__ */ S(te, {
|
|
288
|
-
bordered: !1,
|
|
289
|
-
ghost: !0,
|
|
290
|
-
className: "prompt-variables-collapse",
|
|
291
|
-
defaultActiveKey: [y.System, y.User],
|
|
292
|
-
children: [J.length && /* @__PURE__ */ o(ee, {
|
|
293
|
-
header: "角色设定变量",
|
|
294
|
-
children: J.map((e) => /* @__PURE__ */ o(V.Item, {
|
|
295
|
-
label: e.name,
|
|
296
|
-
name: ["systemPrompts", e.key],
|
|
297
|
-
style: {
|
|
298
|
-
marginBottom: 8
|
|
299
|
-
},
|
|
300
|
-
rules: [{
|
|
301
|
-
required: !0,
|
|
302
|
-
message: "请输入"
|
|
303
|
-
}],
|
|
304
|
-
children: /* @__PURE__ */ o(F, {
|
|
305
|
-
placeholder: "请输入",
|
|
306
|
-
maxLength: p == null ? void 0 : p.questionContextMaxLength,
|
|
307
|
-
onBlur: (a) => z(e.id, a)
|
|
308
|
-
})
|
|
309
|
-
}, e.key))
|
|
310
|
-
}, y.System), W.length && /* @__PURE__ */ o(ee, {
|
|
311
|
-
header: "用户指令变量",
|
|
312
|
-
children: W.map((e) => /* @__PURE__ */ o(V.Item, {
|
|
313
|
-
label: e.name,
|
|
314
|
-
name: ["userPrompts", e.key],
|
|
315
|
-
style: {
|
|
316
|
-
marginBottom: 8
|
|
317
|
-
},
|
|
318
|
-
rules: [{
|
|
319
|
-
required: !0,
|
|
320
|
-
message: "请输入"
|
|
321
|
-
}],
|
|
322
|
-
children: /* @__PURE__ */ o(F, {
|
|
323
|
-
placeholder: "请输入",
|
|
324
|
-
maxLength: p == null ? void 0 : p.questionContextMaxLength,
|
|
325
|
-
onBlur: (a) => z(e.id, a)
|
|
326
|
-
})
|
|
327
|
-
}, e.key))
|
|
328
|
-
}, y.User)]
|
|
329
|
-
})
|
|
330
|
-
}), /* @__PURE__ */ S("div", {
|
|
331
|
-
className: "sider-header",
|
|
332
|
-
children: [/* @__PURE__ */ o("span", {
|
|
333
|
-
className: "header-title",
|
|
334
|
-
children: "文本生成输入"
|
|
335
|
-
}), D.length !== 0 && /* @__PURE__ */ o(Ne, {
|
|
336
|
-
checkedValues: A,
|
|
337
|
-
currKnowledgeList: D,
|
|
338
|
-
selectCount: re,
|
|
339
|
-
onSelectChange: he,
|
|
340
|
-
disabled: !1
|
|
341
|
-
})]
|
|
342
|
-
}), /* @__PURE__ */ o("div", {
|
|
343
|
-
className: "sider-main",
|
|
344
|
-
children: /* @__PURE__ */ S("div", {
|
|
345
|
-
className: "sider-text",
|
|
346
|
-
children: [/* @__PURE__ */ o(F.TextArea, {
|
|
347
|
-
style: {
|
|
348
|
-
height: "100%",
|
|
349
|
-
resize: "none"
|
|
350
|
-
},
|
|
351
|
-
placeholder: "请输入你的问题,通过shift+enter换行",
|
|
352
|
-
maxLength: oe,
|
|
353
|
-
showCount: !0,
|
|
354
|
-
bordered: !1,
|
|
355
|
-
onChange: ue,
|
|
356
|
-
value: b,
|
|
357
|
-
className: "left-input"
|
|
358
|
-
}), /* @__PURE__ */ o(Pe, {
|
|
359
|
-
type: "primary",
|
|
360
|
-
disabled: !b || q,
|
|
361
|
-
onClick: ge,
|
|
362
|
-
className: "sider-btn",
|
|
363
|
-
loading: q,
|
|
364
|
-
children: q ? "生成中" : "确认生成"
|
|
365
|
-
})]
|
|
366
|
-
})
|
|
367
|
-
})]
|
|
368
|
-
}), /* @__PURE__ */ S("div", {
|
|
369
|
-
className: "text-right-sider",
|
|
370
|
-
children: [/* @__PURE__ */ o("div", {
|
|
371
|
-
className: "sider-main",
|
|
372
|
-
children: /* @__PURE__ */ o("div", {
|
|
373
|
-
className: "sider-text",
|
|
374
|
-
ref: $,
|
|
375
|
-
children: /* @__PURE__ */ o("div", {
|
|
376
|
-
className: "sider-content",
|
|
377
|
-
children: v ? /* @__PURE__ */ S(xe, {
|
|
378
|
-
children: [/* @__PURE__ */ o(Me, {
|
|
379
|
-
children: v
|
|
380
|
-
}), u && (u == null ? void 0 : u.reference.length) !== 0 && /* @__PURE__ */ o("div", {
|
|
381
|
-
style: {
|
|
382
|
-
marginTop: 16
|
|
383
|
-
},
|
|
384
|
-
children: /* @__PURE__ */ o(Ae, {
|
|
385
|
-
history: u,
|
|
386
|
-
docViewerUrl: c
|
|
387
|
-
})
|
|
388
|
-
})]
|
|
389
|
-
}) : /* @__PURE__ */ o("div", {
|
|
390
|
-
className: "text-pannel",
|
|
391
|
-
children: /* @__PURE__ */ o("span", {
|
|
392
|
-
children: "请在左侧输入需要 AI 生成的内容"
|
|
393
|
-
})
|
|
394
|
-
})
|
|
395
|
-
})
|
|
396
|
-
})
|
|
397
|
-
}), v ? /* @__PURE__ */ o("div", {
|
|
398
|
-
className: "ai-footer-tip",
|
|
399
|
-
children: "所有内容均由人工智能模型生成,请仔细甄别"
|
|
400
|
-
}) : null]
|
|
401
|
-
})]
|
|
402
|
-
});
|
|
403
|
-
};
|
|
404
|
-
export {
|
|
405
|
-
Je as default
|
|
406
|
-
};
|