@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,525 +0,0 @@
|
|
|
1
|
-
import { bail as P } from "../node_modules/bail/index.mjs";
|
|
2
|
-
import y from "../../extend/index.mjs";
|
|
3
|
-
import z from "../node_modules/is-plain-obj/index.mjs";
|
|
4
|
-
import { CallableInstance as C } from "./callable-instance.mjs";
|
|
5
|
-
import { trough as A } from "../node_modules/trough/lib/index.mjs";
|
|
6
|
-
import { VFile as S } from "../../vfile/lib/index.mjs";
|
|
7
|
-
const F = {}.hasOwnProperty;
|
|
8
|
-
class x extends C {
|
|
9
|
-
/**
|
|
10
|
-
* Create a processor.
|
|
11
|
-
*/
|
|
12
|
-
constructor() {
|
|
13
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = A();
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Copy a processor.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
* This is a private internal method and should not be used.
|
|
20
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
21
|
-
* New *unfrozen* processor ({@linkcode Processor}) that is
|
|
22
|
-
* configured to work the same as its ancestor.
|
|
23
|
-
* When the descendant processor is configured in the future it does not
|
|
24
|
-
* affect the ancestral processor.
|
|
25
|
-
*/
|
|
26
|
-
copy() {
|
|
27
|
-
const e = (
|
|
28
|
-
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
29
|
-
new x()
|
|
30
|
-
);
|
|
31
|
-
let n = -1;
|
|
32
|
-
for (; ++n < this.attachers.length; ) {
|
|
33
|
-
const t = this.attachers[n];
|
|
34
|
-
e.use(...t);
|
|
35
|
-
}
|
|
36
|
-
return e.data(y(!0, {}, this.namespace)), e;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Configure the processor with info available to all plugins.
|
|
40
|
-
* Information is stored in an object.
|
|
41
|
-
*
|
|
42
|
-
* Typically, options can be given to a specific plugin, but sometimes it
|
|
43
|
-
* makes sense to have information shared with several plugins.
|
|
44
|
-
* For example, a list of HTML elements that are self-closing, which is
|
|
45
|
-
* needed during all phases.
|
|
46
|
-
*
|
|
47
|
-
* > **Note**: setting information cannot occur on *frozen* processors.
|
|
48
|
-
* > Call the processor first to create a new unfrozen processor.
|
|
49
|
-
*
|
|
50
|
-
* > **Note**: to register custom data in TypeScript, augment the
|
|
51
|
-
* > {@linkcode Data} interface.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* This example show how to get and set info:
|
|
55
|
-
*
|
|
56
|
-
* ```js
|
|
57
|
-
* import {unified} from 'unified'
|
|
58
|
-
*
|
|
59
|
-
* const processor = unified().data('alpha', 'bravo')
|
|
60
|
-
*
|
|
61
|
-
* processor.data('alpha') // => 'bravo'
|
|
62
|
-
*
|
|
63
|
-
* processor.data() // => {alpha: 'bravo'}
|
|
64
|
-
*
|
|
65
|
-
* processor.data({charlie: 'delta'})
|
|
66
|
-
*
|
|
67
|
-
* processor.data() // => {charlie: 'delta'}
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @template {keyof Data} Key
|
|
71
|
-
*
|
|
72
|
-
* @overload
|
|
73
|
-
* @returns {Data}
|
|
74
|
-
*
|
|
75
|
-
* @overload
|
|
76
|
-
* @param {Data} dataset
|
|
77
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
78
|
-
*
|
|
79
|
-
* @overload
|
|
80
|
-
* @param {Key} key
|
|
81
|
-
* @returns {Data[Key]}
|
|
82
|
-
*
|
|
83
|
-
* @overload
|
|
84
|
-
* @param {Key} key
|
|
85
|
-
* @param {Data[Key]} value
|
|
86
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
87
|
-
*
|
|
88
|
-
* @param {Data | Key} [key]
|
|
89
|
-
* Key to get or set, or entire dataset to set, or nothing to get the
|
|
90
|
-
* entire dataset (optional).
|
|
91
|
-
* @param {Data[Key]} [value]
|
|
92
|
-
* Value to set (optional).
|
|
93
|
-
* @returns {unknown}
|
|
94
|
-
* The current processor when setting, the value at `key` when getting, or
|
|
95
|
-
* the entire dataset when getting without key.
|
|
96
|
-
*/
|
|
97
|
-
data(e, n) {
|
|
98
|
-
return typeof e == "string" ? arguments.length === 2 ? (b("data", this.frozen), this.namespace[e] = n, this) : F.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (b("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Freeze a processor.
|
|
102
|
-
*
|
|
103
|
-
* Frozen processors are meant to be extended and not to be configured
|
|
104
|
-
* directly.
|
|
105
|
-
*
|
|
106
|
-
* When a processor is frozen it cannot be unfrozen.
|
|
107
|
-
* New processors working the same way can be created by calling the
|
|
108
|
-
* processor.
|
|
109
|
-
*
|
|
110
|
-
* It’s possible to freeze processors explicitly by calling `.freeze()`.
|
|
111
|
-
* Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,
|
|
112
|
-
* `.stringify()`, `.process()`, or `.processSync()` are called.
|
|
113
|
-
*
|
|
114
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
115
|
-
* The current processor.
|
|
116
|
-
*/
|
|
117
|
-
freeze() {
|
|
118
|
-
if (this.frozen)
|
|
119
|
-
return this;
|
|
120
|
-
const e = (
|
|
121
|
-
/** @type {Processor} */
|
|
122
|
-
/** @type {unknown} */
|
|
123
|
-
this
|
|
124
|
-
);
|
|
125
|
-
for (; ++this.freezeIndex < this.attachers.length; ) {
|
|
126
|
-
const [n, ...t] = this.attachers[this.freezeIndex];
|
|
127
|
-
if (t[0] === !1)
|
|
128
|
-
continue;
|
|
129
|
-
t[0] === !0 && (t[0] = void 0);
|
|
130
|
-
const i = n.call(e, ...t);
|
|
131
|
-
typeof i == "function" && this.transformers.use(i);
|
|
132
|
-
}
|
|
133
|
-
return this.frozen = !0, this.freezeIndex = Number.POSITIVE_INFINITY, this;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Parse text to a syntax tree.
|
|
137
|
-
*
|
|
138
|
-
* > **Note**: `parse` freezes the processor if not already *frozen*.
|
|
139
|
-
*
|
|
140
|
-
* > **Note**: `parse` performs the parse phase, not the run phase or other
|
|
141
|
-
* > phases.
|
|
142
|
-
*
|
|
143
|
-
* @param {Compatible | undefined} [file]
|
|
144
|
-
* file to parse (optional); typically `string` or `VFile`; any value
|
|
145
|
-
* accepted as `x` in `new VFile(x)`.
|
|
146
|
-
* @returns {ParseTree extends undefined ? Node : ParseTree}
|
|
147
|
-
* Syntax tree representing `file`.
|
|
148
|
-
*/
|
|
149
|
-
parse(e) {
|
|
150
|
-
this.freeze();
|
|
151
|
-
const n = m(e), t = this.parser || this.Parser;
|
|
152
|
-
return w("parse", t), t(String(n), n);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Process the given file as configured on the processor.
|
|
156
|
-
*
|
|
157
|
-
* > **Note**: `process` freezes the processor if not already *frozen*.
|
|
158
|
-
*
|
|
159
|
-
* > **Note**: `process` performs the parse, run, and stringify phases.
|
|
160
|
-
*
|
|
161
|
-
* @overload
|
|
162
|
-
* @param {Compatible | undefined} file
|
|
163
|
-
* @param {ProcessCallback<VFileWithOutput<CompileResult>>} done
|
|
164
|
-
* @returns {undefined}
|
|
165
|
-
*
|
|
166
|
-
* @overload
|
|
167
|
-
* @param {Compatible | undefined} [file]
|
|
168
|
-
* @returns {Promise<VFileWithOutput<CompileResult>>}
|
|
169
|
-
*
|
|
170
|
-
* @param {Compatible | undefined} [file]
|
|
171
|
-
* File (optional); typically `string` or `VFile`]; any value accepted as
|
|
172
|
-
* `x` in `new VFile(x)`.
|
|
173
|
-
* @param {ProcessCallback<VFileWithOutput<CompileResult>> | undefined} [done]
|
|
174
|
-
* Callback (optional).
|
|
175
|
-
* @returns {Promise<VFile> | undefined}
|
|
176
|
-
* Nothing if `done` is given.
|
|
177
|
-
* Otherwise a promise, rejected with a fatal error or resolved with the
|
|
178
|
-
* processed file.
|
|
179
|
-
*
|
|
180
|
-
* The parsed, transformed, and compiled value is available at
|
|
181
|
-
* `file.value` (see note).
|
|
182
|
-
*
|
|
183
|
-
* > **Note**: unified typically compiles by serializing: most
|
|
184
|
-
* > compilers return `string` (or `Uint8Array`).
|
|
185
|
-
* > Some compilers, such as the one configured with
|
|
186
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
187
|
-
* > React tree).
|
|
188
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
189
|
-
* > result values.
|
|
190
|
-
* >
|
|
191
|
-
* > To register custom results in TypeScript, add them to
|
|
192
|
-
* > {@linkcode CompileResultMap}.
|
|
193
|
-
*
|
|
194
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
195
|
-
*/
|
|
196
|
-
process(e, n) {
|
|
197
|
-
const t = this;
|
|
198
|
-
return this.freeze(), w("process", this.parser || this.Parser), g("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
199
|
-
function i(a, h) {
|
|
200
|
-
const p = m(e), l = (
|
|
201
|
-
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
202
|
-
/** @type {unknown} */
|
|
203
|
-
t.parse(p)
|
|
204
|
-
);
|
|
205
|
-
t.run(l, p, function(o, c, f) {
|
|
206
|
-
if (o || !c || !f)
|
|
207
|
-
return s(o);
|
|
208
|
-
const u = (
|
|
209
|
-
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
210
|
-
/** @type {unknown} */
|
|
211
|
-
c
|
|
212
|
-
), d = t.stringify(u, f);
|
|
213
|
-
D(d) ? f.value = d : f.result = d, s(
|
|
214
|
-
o,
|
|
215
|
-
/** @type {VFileWithOutput<CompileResult>} */
|
|
216
|
-
f
|
|
217
|
-
);
|
|
218
|
-
});
|
|
219
|
-
function s(o, c) {
|
|
220
|
-
o || !c ? h(o) : a ? a(c) : n(void 0, c);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Process the given file as configured on the processor.
|
|
226
|
-
*
|
|
227
|
-
* An error is thrown if asynchronous transforms are configured.
|
|
228
|
-
*
|
|
229
|
-
* > **Note**: `processSync` freezes the processor if not already *frozen*.
|
|
230
|
-
*
|
|
231
|
-
* > **Note**: `processSync` performs the parse, run, and stringify phases.
|
|
232
|
-
*
|
|
233
|
-
* @param {Compatible | undefined} [file]
|
|
234
|
-
* File (optional); typically `string` or `VFile`; any value accepted as
|
|
235
|
-
* `x` in `new VFile(x)`.
|
|
236
|
-
* @returns {VFileWithOutput<CompileResult>}
|
|
237
|
-
* The processed file.
|
|
238
|
-
*
|
|
239
|
-
* The parsed, transformed, and compiled value is available at
|
|
240
|
-
* `file.value` (see note).
|
|
241
|
-
*
|
|
242
|
-
* > **Note**: unified typically compiles by serializing: most
|
|
243
|
-
* > compilers return `string` (or `Uint8Array`).
|
|
244
|
-
* > Some compilers, such as the one configured with
|
|
245
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
246
|
-
* > React tree).
|
|
247
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
248
|
-
* > result values.
|
|
249
|
-
* >
|
|
250
|
-
* > To register custom results in TypeScript, add them to
|
|
251
|
-
* > {@linkcode CompileResultMap}.
|
|
252
|
-
*
|
|
253
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
254
|
-
*/
|
|
255
|
-
processSync(e) {
|
|
256
|
-
let n = !1, t;
|
|
257
|
-
return this.freeze(), w("processSync", this.parser || this.Parser), g("processSync", this.compiler || this.Compiler), this.process(e, i), T("processSync", "process", n), t;
|
|
258
|
-
function i(a, h) {
|
|
259
|
-
n = !0, P(a), t = h;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Run *transformers* on a syntax tree.
|
|
264
|
-
*
|
|
265
|
-
* > **Note**: `run` freezes the processor if not already *frozen*.
|
|
266
|
-
*
|
|
267
|
-
* > **Note**: `run` performs the run phase, not other phases.
|
|
268
|
-
*
|
|
269
|
-
* @overload
|
|
270
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
271
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
|
|
272
|
-
* @returns {undefined}
|
|
273
|
-
*
|
|
274
|
-
* @overload
|
|
275
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
276
|
-
* @param {Compatible | undefined} file
|
|
277
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} done
|
|
278
|
-
* @returns {undefined}
|
|
279
|
-
*
|
|
280
|
-
* @overload
|
|
281
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
282
|
-
* @param {Compatible | undefined} [file]
|
|
283
|
-
* @returns {Promise<TailTree extends undefined ? Node : TailTree>}
|
|
284
|
-
*
|
|
285
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
286
|
-
* Tree to transform and inspect.
|
|
287
|
-
* @param {(
|
|
288
|
-
* RunCallback<TailTree extends undefined ? Node : TailTree> |
|
|
289
|
-
* Compatible
|
|
290
|
-
* )} [file]
|
|
291
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
292
|
-
* `new VFile(x)`.
|
|
293
|
-
* @param {RunCallback<TailTree extends undefined ? Node : TailTree>} [done]
|
|
294
|
-
* Callback (optional).
|
|
295
|
-
* @returns {Promise<TailTree extends undefined ? Node : TailTree> | undefined}
|
|
296
|
-
* Nothing if `done` is given.
|
|
297
|
-
* Otherwise, a promise rejected with a fatal error or resolved with the
|
|
298
|
-
* transformed tree.
|
|
299
|
-
*/
|
|
300
|
-
run(e, n, t) {
|
|
301
|
-
I(e), this.freeze();
|
|
302
|
-
const i = this.transformers;
|
|
303
|
-
return !t && typeof n == "function" && (t = n, n = void 0), t ? a(void 0, t) : new Promise(a);
|
|
304
|
-
function a(h, p) {
|
|
305
|
-
const l = m(n);
|
|
306
|
-
i.run(e, l, s);
|
|
307
|
-
function s(o, c, f) {
|
|
308
|
-
const u = (
|
|
309
|
-
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
310
|
-
c || e
|
|
311
|
-
);
|
|
312
|
-
o ? p(o) : h ? h(u) : t(void 0, u, f);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Run *transformers* on a syntax tree.
|
|
318
|
-
*
|
|
319
|
-
* An error is thrown if asynchronous transforms are configured.
|
|
320
|
-
*
|
|
321
|
-
* > **Note**: `runSync` freezes the processor if not already *frozen*.
|
|
322
|
-
*
|
|
323
|
-
* > **Note**: `runSync` performs the run phase, not other phases.
|
|
324
|
-
*
|
|
325
|
-
* @param {HeadTree extends undefined ? Node : HeadTree} tree
|
|
326
|
-
* Tree to transform and inspect.
|
|
327
|
-
* @param {Compatible | undefined} [file]
|
|
328
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
329
|
-
* `new VFile(x)`.
|
|
330
|
-
* @returns {TailTree extends undefined ? Node : TailTree}
|
|
331
|
-
* Transformed tree.
|
|
332
|
-
*/
|
|
333
|
-
runSync(e, n) {
|
|
334
|
-
let t = !1, i;
|
|
335
|
-
return this.run(e, n, a), T("runSync", "run", t), i;
|
|
336
|
-
function a(h, p) {
|
|
337
|
-
P(h), i = p, t = !0;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Compile a syntax tree.
|
|
342
|
-
*
|
|
343
|
-
* > **Note**: `stringify` freezes the processor if not already *frozen*.
|
|
344
|
-
*
|
|
345
|
-
* > **Note**: `stringify` performs the stringify phase, not the run phase
|
|
346
|
-
* > or other phases.
|
|
347
|
-
*
|
|
348
|
-
* @param {CompileTree extends undefined ? Node : CompileTree} tree
|
|
349
|
-
* Tree to compile.
|
|
350
|
-
* @param {Compatible | undefined} [file]
|
|
351
|
-
* File associated with `node` (optional); any value accepted as `x` in
|
|
352
|
-
* `new VFile(x)`.
|
|
353
|
-
* @returns {CompileResult extends undefined ? Value : CompileResult}
|
|
354
|
-
* Textual representation of the tree (see note).
|
|
355
|
-
*
|
|
356
|
-
* > **Note**: unified typically compiles by serializing: most compilers
|
|
357
|
-
* > return `string` (or `Uint8Array`).
|
|
358
|
-
* > Some compilers, such as the one configured with
|
|
359
|
-
* > [`rehype-react`][rehype-react], return other values (in this case, a
|
|
360
|
-
* > React tree).
|
|
361
|
-
* > If you’re using a compiler that doesn’t serialize, expect different
|
|
362
|
-
* > result values.
|
|
363
|
-
* >
|
|
364
|
-
* > To register custom results in TypeScript, add them to
|
|
365
|
-
* > {@linkcode CompileResultMap}.
|
|
366
|
-
*
|
|
367
|
-
* [rehype-react]: https://github.com/rehypejs/rehype-react
|
|
368
|
-
*/
|
|
369
|
-
stringify(e, n) {
|
|
370
|
-
this.freeze();
|
|
371
|
-
const t = m(n), i = this.compiler || this.Compiler;
|
|
372
|
-
return g("stringify", i), I(e), i(e, t);
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Configure the processor to use a plugin, a list of usable values, or a
|
|
376
|
-
* preset.
|
|
377
|
-
*
|
|
378
|
-
* If the processor is already using a plugin, the previous plugin
|
|
379
|
-
* configuration is changed based on the options that are passed in.
|
|
380
|
-
* In other words, the plugin is not added a second time.
|
|
381
|
-
*
|
|
382
|
-
* > **Note**: `use` cannot be called on *frozen* processors.
|
|
383
|
-
* > Call the processor first to create a new unfrozen processor.
|
|
384
|
-
*
|
|
385
|
-
* @example
|
|
386
|
-
* There are many ways to pass plugins to `.use()`.
|
|
387
|
-
* This example gives an overview:
|
|
388
|
-
*
|
|
389
|
-
* ```js
|
|
390
|
-
* import {unified} from 'unified'
|
|
391
|
-
*
|
|
392
|
-
* unified()
|
|
393
|
-
* // Plugin with options:
|
|
394
|
-
* .use(pluginA, {x: true, y: true})
|
|
395
|
-
* // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):
|
|
396
|
-
* .use(pluginA, {y: false, z: true})
|
|
397
|
-
* // Plugins:
|
|
398
|
-
* .use([pluginB, pluginC])
|
|
399
|
-
* // Two plugins, the second with options:
|
|
400
|
-
* .use([pluginD, [pluginE, {}]])
|
|
401
|
-
* // Preset with plugins and settings:
|
|
402
|
-
* .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})
|
|
403
|
-
* // Settings only:
|
|
404
|
-
* .use({settings: {position: false}})
|
|
405
|
-
* ```
|
|
406
|
-
*
|
|
407
|
-
* @template {Array<unknown>} [Parameters=[]]
|
|
408
|
-
* @template {Node | string | undefined} [Input=undefined]
|
|
409
|
-
* @template [Output=Input]
|
|
410
|
-
*
|
|
411
|
-
* @overload
|
|
412
|
-
* @param {Preset | null | undefined} [preset]
|
|
413
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
414
|
-
*
|
|
415
|
-
* @overload
|
|
416
|
-
* @param {PluggableList} list
|
|
417
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
418
|
-
*
|
|
419
|
-
* @overload
|
|
420
|
-
* @param {Plugin<Parameters, Input, Output>} plugin
|
|
421
|
-
* @param {...(Parameters | [boolean])} parameters
|
|
422
|
-
* @returns {UsePlugin<ParseTree, HeadTree, TailTree, CompileTree, CompileResult, Input, Output>}
|
|
423
|
-
*
|
|
424
|
-
* @param {PluggableList | Plugin | Preset | null | undefined} value
|
|
425
|
-
* Usable value.
|
|
426
|
-
* @param {...unknown} parameters
|
|
427
|
-
* Parameters, when a plugin is given as a usable value.
|
|
428
|
-
* @returns {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>}
|
|
429
|
-
* Current processor.
|
|
430
|
-
*/
|
|
431
|
-
use(e, ...n) {
|
|
432
|
-
const t = this.attachers, i = this.namespace;
|
|
433
|
-
if (b("use", this.frozen), e != null)
|
|
434
|
-
if (typeof e == "function")
|
|
435
|
-
l(e, n);
|
|
436
|
-
else if (typeof e == "object")
|
|
437
|
-
Array.isArray(e) ? p(e) : h(e);
|
|
438
|
-
else
|
|
439
|
-
throw new TypeError("Expected usable value, not `" + e + "`");
|
|
440
|
-
return this;
|
|
441
|
-
function a(s) {
|
|
442
|
-
if (typeof s == "function")
|
|
443
|
-
l(s, []);
|
|
444
|
-
else if (typeof s == "object")
|
|
445
|
-
if (Array.isArray(s)) {
|
|
446
|
-
const [o, ...c] = (
|
|
447
|
-
/** @type {PluginTuple<Array<unknown>>} */
|
|
448
|
-
s
|
|
449
|
-
);
|
|
450
|
-
l(o, c);
|
|
451
|
-
} else
|
|
452
|
-
h(s);
|
|
453
|
-
else
|
|
454
|
-
throw new TypeError("Expected usable value, not `" + s + "`");
|
|
455
|
-
}
|
|
456
|
-
function h(s) {
|
|
457
|
-
if (!("plugins" in s) && !("settings" in s))
|
|
458
|
-
throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
|
|
459
|
-
p(s.plugins), s.settings && (i.settings = y(!0, i.settings, s.settings));
|
|
460
|
-
}
|
|
461
|
-
function p(s) {
|
|
462
|
-
let o = -1;
|
|
463
|
-
if (s != null)
|
|
464
|
-
if (Array.isArray(s))
|
|
465
|
-
for (; ++o < s.length; ) {
|
|
466
|
-
const c = s[o];
|
|
467
|
-
a(c);
|
|
468
|
-
}
|
|
469
|
-
else
|
|
470
|
-
throw new TypeError("Expected a list of plugins, not `" + s + "`");
|
|
471
|
-
}
|
|
472
|
-
function l(s, o) {
|
|
473
|
-
let c = -1, f = -1;
|
|
474
|
-
for (; ++c < t.length; )
|
|
475
|
-
if (t[c][0] === s) {
|
|
476
|
-
f = c;
|
|
477
|
-
break;
|
|
478
|
-
}
|
|
479
|
-
if (f === -1)
|
|
480
|
-
t.push([s, ...o]);
|
|
481
|
-
else if (o.length > 0) {
|
|
482
|
-
let [u, ...d] = o;
|
|
483
|
-
const E = t[f][1];
|
|
484
|
-
z(E) && z(u) && (u = y(!0, E, u)), t[f] = [s, u, ...d];
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
const R = new x().freeze();
|
|
490
|
-
function w(r, e) {
|
|
491
|
-
if (typeof e != "function")
|
|
492
|
-
throw new TypeError("Cannot `" + r + "` without `parser`");
|
|
493
|
-
}
|
|
494
|
-
function g(r, e) {
|
|
495
|
-
if (typeof e != "function")
|
|
496
|
-
throw new TypeError("Cannot `" + r + "` without `compiler`");
|
|
497
|
-
}
|
|
498
|
-
function b(r, e) {
|
|
499
|
-
if (e)
|
|
500
|
-
throw new Error("Cannot call `" + r + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
|
|
501
|
-
}
|
|
502
|
-
function I(r) {
|
|
503
|
-
if (!z(r) || typeof r.type != "string")
|
|
504
|
-
throw new TypeError("Expected node, got `" + r + "`");
|
|
505
|
-
}
|
|
506
|
-
function T(r, e, n) {
|
|
507
|
-
if (!n)
|
|
508
|
-
throw new Error("`" + r + "` finished async. Use `" + e + "` instead");
|
|
509
|
-
}
|
|
510
|
-
function m(r) {
|
|
511
|
-
return j(r) ? r : new S(r);
|
|
512
|
-
}
|
|
513
|
-
function j(r) {
|
|
514
|
-
return !!(r && typeof r == "object" && "message" in r && "messages" in r);
|
|
515
|
-
}
|
|
516
|
-
function D(r) {
|
|
517
|
-
return typeof r == "string" || L(r);
|
|
518
|
-
}
|
|
519
|
-
function L(r) {
|
|
520
|
-
return !!(r && typeof r == "object" && "byteLength" in r && "byteOffset" in r);
|
|
521
|
-
}
|
|
522
|
-
export {
|
|
523
|
-
x as Processor,
|
|
524
|
-
R as unified
|
|
525
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
function e(t) {
|
|
2
|
-
if (typeof t != "object" || t === null)
|
|
3
|
-
return !1;
|
|
4
|
-
const o = Object.getPrototypeOf(t);
|
|
5
|
-
return (o === null || o === Object.prototype || Object.getPrototypeOf(o) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
e as default
|
|
9
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
function x() {
|
|
2
|
-
const i = [], u = {
|
|
3
|
-
run: c,
|
|
4
|
-
use: p
|
|
5
|
-
};
|
|
6
|
-
return u;
|
|
7
|
-
function c(...n) {
|
|
8
|
-
let h = -1;
|
|
9
|
-
const t = n.pop();
|
|
10
|
-
if (typeof t != "function")
|
|
11
|
-
throw new TypeError("Expected function as last argument, not " + t);
|
|
12
|
-
f(null, ...n);
|
|
13
|
-
function f(e, ...o) {
|
|
14
|
-
const r = i[++h];
|
|
15
|
-
let l = -1;
|
|
16
|
-
if (e) {
|
|
17
|
-
t(e);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
for (; ++l < n.length; )
|
|
21
|
-
(o[l] === null || o[l] === void 0) && (o[l] = n[l]);
|
|
22
|
-
n = o, r ? s(r, f)(...o) : t(null, ...o);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function p(n) {
|
|
26
|
-
if (typeof n != "function")
|
|
27
|
-
throw new TypeError("Expected `middelware` to be a function, not " + n);
|
|
28
|
-
return i.push(n), u;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function s(i, u) {
|
|
32
|
-
let c;
|
|
33
|
-
return p;
|
|
34
|
-
function p(...t) {
|
|
35
|
-
const f = i.length > t.length;
|
|
36
|
-
let e;
|
|
37
|
-
f && t.push(n);
|
|
38
|
-
try {
|
|
39
|
-
e = i.apply(this, t);
|
|
40
|
-
} catch (o) {
|
|
41
|
-
const r = (
|
|
42
|
-
/** @type {Error} */
|
|
43
|
-
o
|
|
44
|
-
);
|
|
45
|
-
if (f && c)
|
|
46
|
-
throw r;
|
|
47
|
-
return n(r);
|
|
48
|
-
}
|
|
49
|
-
f || (e && e.then && typeof e.then == "function" ? e.then(h, n) : e instanceof Error ? n(e) : h(e));
|
|
50
|
-
}
|
|
51
|
-
function n(t, ...f) {
|
|
52
|
-
c || (c = !0, u(t, ...f));
|
|
53
|
-
}
|
|
54
|
-
function h(t) {
|
|
55
|
-
n(null, t);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
x as trough,
|
|
60
|
-
s as wrap
|
|
61
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { convert as t } from "../../unist-util-is/lib/index.mjs";
|
|
2
|
-
const f = (
|
|
3
|
-
// Note: overloads like this are needed to support optional generics.
|
|
4
|
-
/**
|
|
5
|
-
* @type {(
|
|
6
|
-
* (<Kind extends UnistParent, Check extends Test>(parent: Kind, index: Child<Kind> | number, test: Check) => Matches<Child<Kind>, Check> | undefined) &
|
|
7
|
-
* (<Kind extends UnistParent>(parent: Kind, index: Child<Kind> | number, test?: null | undefined) => Child<Kind> | undefined)
|
|
8
|
-
* )}
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @param {UnistParent} parent
|
|
12
|
-
* @param {UnistNode | number} index
|
|
13
|
-
* @param {Test} [test]
|
|
14
|
-
* @returns {UnistNode | undefined}
|
|
15
|
-
*/
|
|
16
|
-
function(e, r, o) {
|
|
17
|
-
const i = t(o);
|
|
18
|
-
if (!e || !e.type || !e.children)
|
|
19
|
-
throw new Error("Expected parent node");
|
|
20
|
-
if (typeof r == "number") {
|
|
21
|
-
if (r < 0 || r === Number.POSITIVE_INFINITY)
|
|
22
|
-
throw new Error("Expected positive finite number as index");
|
|
23
|
-
} else if (r = e.children.indexOf(r), r < 0)
|
|
24
|
-
throw new Error("Expected child node or index");
|
|
25
|
-
for (; ++r < e.children.length; )
|
|
26
|
-
if (i(e.children[r], r, e))
|
|
27
|
-
return e.children[r];
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
export {
|
|
31
|
-
f as findAfter
|
|
32
|
-
};
|