@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +32 -26
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +311 -5
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -0
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/lib/index.css +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function M(r, u, e) {
|
|
2
|
+
return Math.max(u, Math.min(r, e));
|
|
3
|
+
}
|
|
4
|
+
const y = {
|
|
5
|
+
toVector(r, u) {
|
|
6
|
+
return r === void 0 && (r = u), Array.isArray(r) ? r : [r, r];
|
|
7
|
+
},
|
|
8
|
+
add(r, u) {
|
|
9
|
+
return [r[0] + u[0], r[1] + u[1]];
|
|
10
|
+
},
|
|
11
|
+
sub(r, u) {
|
|
12
|
+
return [r[0] - u[0], r[1] - u[1]];
|
|
13
|
+
},
|
|
14
|
+
addTo(r, u) {
|
|
15
|
+
r[0] += u[0], r[1] += u[1];
|
|
16
|
+
},
|
|
17
|
+
subTo(r, u) {
|
|
18
|
+
r[0] -= u[0], r[1] -= u[1];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function b(r, u, e) {
|
|
22
|
+
return u === 0 || Math.abs(u) === 1 / 0 ? Math.pow(r, e * 5) : r * u * e / (u + e * r);
|
|
23
|
+
}
|
|
24
|
+
function t(r, u, e, f = 0.15) {
|
|
25
|
+
return f === 0 ? M(r, u, e) : r < u ? -b(u - r, e - u, f) + u : r > e ? +b(r - e, e - u, f) + e : r;
|
|
26
|
+
}
|
|
27
|
+
function A(r, [u, e], [f, a]) {
|
|
28
|
+
const [[d, c], [h, n]] = r;
|
|
29
|
+
return [t(u, d, c, f), t(e, h, n, a)];
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
y as V,
|
|
33
|
+
A as c,
|
|
34
|
+
t as r
|
|
35
|
+
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { a as f, i as E, b as y, E as m, _ as p, c as O, p as P, d as I, C as b, t as T, S as j } from "./actions-fe213e88.esm.mjs";
|
|
2
|
+
function M(e, t) {
|
|
3
|
+
if (e == null)
|
|
4
|
+
return {};
|
|
5
|
+
var s = {}, n = Object.keys(e), r, i;
|
|
6
|
+
for (i = 0; i < n.length; i++)
|
|
7
|
+
r = n[i], !(t.indexOf(r) >= 0) && (s[r] = e[r]);
|
|
8
|
+
return s;
|
|
9
|
+
}
|
|
10
|
+
function k(e, t) {
|
|
11
|
+
if (e == null)
|
|
12
|
+
return {};
|
|
13
|
+
var s = M(e, t), n, r;
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
16
|
+
for (r = 0; r < i.length; r++)
|
|
17
|
+
n = i[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
|
|
18
|
+
}
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
const H = {
|
|
22
|
+
target(e) {
|
|
23
|
+
if (e)
|
|
24
|
+
return () => "current" in e ? e.current : e;
|
|
25
|
+
},
|
|
26
|
+
enabled(e = !0) {
|
|
27
|
+
return e;
|
|
28
|
+
},
|
|
29
|
+
window(e = j.isBrowser ? window : void 0) {
|
|
30
|
+
return e;
|
|
31
|
+
},
|
|
32
|
+
eventOptions({
|
|
33
|
+
passive: e = !0,
|
|
34
|
+
capture: t = !1
|
|
35
|
+
} = {}) {
|
|
36
|
+
return {
|
|
37
|
+
passive: e,
|
|
38
|
+
capture: t
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
transform(e) {
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
}, R = ["target", "eventOptions", "window", "enabled", "transform"];
|
|
45
|
+
function g(e = {}, t) {
|
|
46
|
+
const s = {};
|
|
47
|
+
for (const [n, r] of Object.entries(t))
|
|
48
|
+
switch (typeof r) {
|
|
49
|
+
case "function":
|
|
50
|
+
s[n] = r.call(s, e[n], n, e);
|
|
51
|
+
break;
|
|
52
|
+
case "object":
|
|
53
|
+
s[n] = g(e[n], r);
|
|
54
|
+
break;
|
|
55
|
+
case "boolean":
|
|
56
|
+
r && (s[n] = e[n]);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
return s;
|
|
60
|
+
}
|
|
61
|
+
function W(e, t, s = {}) {
|
|
62
|
+
const n = e, {
|
|
63
|
+
target: r,
|
|
64
|
+
eventOptions: i,
|
|
65
|
+
window: o,
|
|
66
|
+
enabled: c,
|
|
67
|
+
transform: u
|
|
68
|
+
} = n, a = k(n, R);
|
|
69
|
+
if (s.shared = g({
|
|
70
|
+
target: r,
|
|
71
|
+
eventOptions: i,
|
|
72
|
+
window: o,
|
|
73
|
+
enabled: c,
|
|
74
|
+
transform: u
|
|
75
|
+
}, H), t) {
|
|
76
|
+
const h = b.get(t);
|
|
77
|
+
s[t] = g(p({
|
|
78
|
+
shared: s.shared
|
|
79
|
+
}, a), h);
|
|
80
|
+
} else
|
|
81
|
+
for (const h in a) {
|
|
82
|
+
const v = b.get(h);
|
|
83
|
+
v && (s[h] = g(p({
|
|
84
|
+
shared: s.shared
|
|
85
|
+
}, a[h]), v));
|
|
86
|
+
}
|
|
87
|
+
return s;
|
|
88
|
+
}
|
|
89
|
+
class _ {
|
|
90
|
+
constructor(t, s) {
|
|
91
|
+
f(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = t, this._gestureKey = s;
|
|
92
|
+
}
|
|
93
|
+
add(t, s, n, r, i) {
|
|
94
|
+
const o = this._listeners, c = T(s, n), u = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, a = p(p({}, u), i);
|
|
95
|
+
t.addEventListener(c, r, a);
|
|
96
|
+
const h = () => {
|
|
97
|
+
t.removeEventListener(c, r, a), o.delete(h);
|
|
98
|
+
};
|
|
99
|
+
return o.add(h), h;
|
|
100
|
+
}
|
|
101
|
+
clean() {
|
|
102
|
+
this._listeners.forEach((t) => t()), this._listeners.clear();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
class x {
|
|
106
|
+
constructor() {
|
|
107
|
+
f(this, "_timeouts", /* @__PURE__ */ new Map());
|
|
108
|
+
}
|
|
109
|
+
add(t, s, n = 140, ...r) {
|
|
110
|
+
this.remove(t), this._timeouts.set(t, window.setTimeout(s, n, ...r));
|
|
111
|
+
}
|
|
112
|
+
remove(t) {
|
|
113
|
+
const s = this._timeouts.get(t);
|
|
114
|
+
s && window.clearTimeout(s);
|
|
115
|
+
}
|
|
116
|
+
clean() {
|
|
117
|
+
this._timeouts.forEach((t) => void window.clearTimeout(t)), this._timeouts.clear();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
class F {
|
|
121
|
+
constructor(t) {
|
|
122
|
+
f(this, "gestures", /* @__PURE__ */ new Set()), f(this, "_targetEventStore", new _(this)), f(this, "gestureEventStores", {}), f(this, "gestureTimeoutStores", {}), f(this, "handlers", {}), f(this, "config", {}), f(this, "pointerIds", /* @__PURE__ */ new Set()), f(this, "touchIds", /* @__PURE__ */ new Set()), f(this, "state", {
|
|
123
|
+
shared: {
|
|
124
|
+
shiftKey: !1,
|
|
125
|
+
metaKey: !1,
|
|
126
|
+
ctrlKey: !1,
|
|
127
|
+
altKey: !1
|
|
128
|
+
}
|
|
129
|
+
}), D(this, t);
|
|
130
|
+
}
|
|
131
|
+
setEventIds(t) {
|
|
132
|
+
if (E(t))
|
|
133
|
+
return this.touchIds = new Set(y(t)), this.touchIds;
|
|
134
|
+
if ("pointerId" in t)
|
|
135
|
+
return t.type === "pointerup" || t.type === "pointercancel" ? this.pointerIds.delete(t.pointerId) : t.type === "pointerdown" && this.pointerIds.add(t.pointerId), this.pointerIds;
|
|
136
|
+
}
|
|
137
|
+
applyHandlers(t, s) {
|
|
138
|
+
this.handlers = t, this.nativeHandlers = s;
|
|
139
|
+
}
|
|
140
|
+
applyConfig(t, s) {
|
|
141
|
+
this.config = W(t, s, this.config);
|
|
142
|
+
}
|
|
143
|
+
clean() {
|
|
144
|
+
this._targetEventStore.clean();
|
|
145
|
+
for (const t of this.gestures)
|
|
146
|
+
this.gestureEventStores[t].clean(), this.gestureTimeoutStores[t].clean();
|
|
147
|
+
}
|
|
148
|
+
effect() {
|
|
149
|
+
return this.config.shared.target && this.bind(), () => this._targetEventStore.clean();
|
|
150
|
+
}
|
|
151
|
+
bind(...t) {
|
|
152
|
+
const s = this.config.shared, n = {};
|
|
153
|
+
let r;
|
|
154
|
+
if (!(s.target && (r = s.target(), !r))) {
|
|
155
|
+
if (s.enabled) {
|
|
156
|
+
for (const o of this.gestures) {
|
|
157
|
+
const c = this.config[o], u = S(n, c.eventOptions, !!r);
|
|
158
|
+
if (c.enabled) {
|
|
159
|
+
const a = m.get(o);
|
|
160
|
+
new a(this, t, o).bind(u);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const i = S(n, s.eventOptions, !!r);
|
|
164
|
+
for (const o in this.nativeHandlers)
|
|
165
|
+
i(o, "", (c) => this.nativeHandlers[o](p(p({}, this.state.shared), {}, {
|
|
166
|
+
event: c,
|
|
167
|
+
args: t
|
|
168
|
+
})), void 0, !0);
|
|
169
|
+
}
|
|
170
|
+
for (const i in n)
|
|
171
|
+
n[i] = O(...n[i]);
|
|
172
|
+
if (!r)
|
|
173
|
+
return n;
|
|
174
|
+
for (const i in n) {
|
|
175
|
+
const {
|
|
176
|
+
device: o,
|
|
177
|
+
capture: c,
|
|
178
|
+
passive: u
|
|
179
|
+
} = P(i);
|
|
180
|
+
this._targetEventStore.add(r, o, "", n[i], {
|
|
181
|
+
capture: c,
|
|
182
|
+
passive: u
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function d(e, t) {
|
|
189
|
+
e.gestures.add(t), e.gestureEventStores[t] = new _(e, t), e.gestureTimeoutStores[t] = new x();
|
|
190
|
+
}
|
|
191
|
+
function D(e, t) {
|
|
192
|
+
t.drag && d(e, "drag"), t.wheel && d(e, "wheel"), t.scroll && d(e, "scroll"), t.move && d(e, "move"), t.pinch && d(e, "pinch"), t.hover && d(e, "hover");
|
|
193
|
+
}
|
|
194
|
+
const S = (e, t, s) => (n, r, i, o = {}, c = !1) => {
|
|
195
|
+
var u, a;
|
|
196
|
+
const h = (u = o.capture) !== null && u !== void 0 ? u : t.capture, v = (a = o.passive) !== null && a !== void 0 ? a : t.passive;
|
|
197
|
+
let w = c ? n : I(n, r, h);
|
|
198
|
+
s && v && (w += "Passive"), e[w] = e[w] || [], e[w].push(i);
|
|
199
|
+
}, G = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;
|
|
200
|
+
function L(e) {
|
|
201
|
+
const t = {}, s = {}, n = /* @__PURE__ */ new Set();
|
|
202
|
+
for (let r in e)
|
|
203
|
+
G.test(r) ? (n.add(RegExp.lastMatch), s[r] = e[r]) : t[r] = e[r];
|
|
204
|
+
return [s, t, n];
|
|
205
|
+
}
|
|
206
|
+
function l(e, t, s, n, r, i) {
|
|
207
|
+
if (!e.has(s) || !m.has(n))
|
|
208
|
+
return;
|
|
209
|
+
const o = s + "Start", c = s + "End", u = (a) => {
|
|
210
|
+
let h;
|
|
211
|
+
return a.first && o in t && t[o](a), s in t && (h = t[s](a)), a.last && c in t && t[c](a), h;
|
|
212
|
+
};
|
|
213
|
+
r[n] = u, i[n] = i[n] || {};
|
|
214
|
+
}
|
|
215
|
+
function K(e, t) {
|
|
216
|
+
const [s, n, r] = L(e), i = {};
|
|
217
|
+
return l(r, s, "onDrag", "drag", i, t), l(r, s, "onWheel", "wheel", i, t), l(r, s, "onScroll", "scroll", i, t), l(r, s, "onPinch", "pinch", i, t), l(r, s, "onMove", "move", i, t), l(r, s, "onHover", "hover", i, t), {
|
|
218
|
+
handlers: i,
|
|
219
|
+
config: t,
|
|
220
|
+
nativeHandlers: n
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export {
|
|
224
|
+
F as Controller,
|
|
225
|
+
K as parseMergedHandlers
|
|
226
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import i from "react";
|
|
2
|
+
import { Controller as c, parseMergedHandlers as d } from "../../core/dist/use-gesture-core.esm.mjs";
|
|
3
|
+
import { r as a, e as p } from "../../core/dist/actions-fe213e88.esm.mjs";
|
|
4
|
+
import { C as A, E as H, f as R } from "../../core/dist/actions-fe213e88.esm.mjs";
|
|
5
|
+
function f(r, n = {}, t, o) {
|
|
6
|
+
const e = i.useMemo(() => new c(r), []);
|
|
7
|
+
if (e.applyHandlers(r, o), e.applyConfig(n, t), i.useEffect(e.effect.bind(e)), i.useEffect(() => e.clean.bind(e), []), n.target === void 0)
|
|
8
|
+
return e.bind.bind(e);
|
|
9
|
+
}
|
|
10
|
+
function E(r, n) {
|
|
11
|
+
return a(p), f({
|
|
12
|
+
drag: r
|
|
13
|
+
}, n || {}, "drag");
|
|
14
|
+
}
|
|
15
|
+
function b(r) {
|
|
16
|
+
return r.forEach(a), function(t, o) {
|
|
17
|
+
const {
|
|
18
|
+
handlers: e,
|
|
19
|
+
nativeHandlers: s,
|
|
20
|
+
config: u
|
|
21
|
+
} = d(t, o || {});
|
|
22
|
+
return f(e, u, void 0, s);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
A as ConfigResolverMap,
|
|
27
|
+
H as EngineMap,
|
|
28
|
+
b as createUseGesture,
|
|
29
|
+
p as dragAction,
|
|
30
|
+
R as pinchAction,
|
|
31
|
+
a as registerAction,
|
|
32
|
+
E as useDrag
|
|
33
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { __values as x } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import q from "../useLatest/index.mjs";
|
|
3
|
+
import { isString as O, isNumber as j, isFunction as R } from "../utils/index.mjs";
|
|
4
|
+
import { getTargetElement as z } from "../utils/domTarget.mjs";
|
|
5
|
+
import N from "../utils/useDeepCompareWithTarget.mjs";
|
|
6
|
+
import P from "../utils/isAppleDevice.mjs";
|
|
7
|
+
var B = {
|
|
8
|
+
0: 48,
|
|
9
|
+
1: 49,
|
|
10
|
+
2: 50,
|
|
11
|
+
3: 51,
|
|
12
|
+
4: 52,
|
|
13
|
+
5: 53,
|
|
14
|
+
6: 54,
|
|
15
|
+
7: 55,
|
|
16
|
+
8: 56,
|
|
17
|
+
9: 57,
|
|
18
|
+
backspace: 8,
|
|
19
|
+
tab: 9,
|
|
20
|
+
enter: 13,
|
|
21
|
+
shift: 16,
|
|
22
|
+
ctrl: 17,
|
|
23
|
+
alt: 18,
|
|
24
|
+
pausebreak: 19,
|
|
25
|
+
capslock: 20,
|
|
26
|
+
esc: 27,
|
|
27
|
+
space: 32,
|
|
28
|
+
pageup: 33,
|
|
29
|
+
pagedown: 34,
|
|
30
|
+
end: 35,
|
|
31
|
+
home: 36,
|
|
32
|
+
leftarrow: 37,
|
|
33
|
+
uparrow: 38,
|
|
34
|
+
rightarrow: 39,
|
|
35
|
+
downarrow: 40,
|
|
36
|
+
insert: 45,
|
|
37
|
+
delete: 46,
|
|
38
|
+
a: 65,
|
|
39
|
+
b: 66,
|
|
40
|
+
c: 67,
|
|
41
|
+
d: 68,
|
|
42
|
+
e: 69,
|
|
43
|
+
f: 70,
|
|
44
|
+
g: 71,
|
|
45
|
+
h: 72,
|
|
46
|
+
i: 73,
|
|
47
|
+
j: 74,
|
|
48
|
+
k: 75,
|
|
49
|
+
l: 76,
|
|
50
|
+
m: 77,
|
|
51
|
+
n: 78,
|
|
52
|
+
o: 79,
|
|
53
|
+
p: 80,
|
|
54
|
+
q: 81,
|
|
55
|
+
r: 82,
|
|
56
|
+
s: 83,
|
|
57
|
+
t: 84,
|
|
58
|
+
u: 85,
|
|
59
|
+
v: 86,
|
|
60
|
+
w: 87,
|
|
61
|
+
x: 88,
|
|
62
|
+
y: 89,
|
|
63
|
+
z: 90,
|
|
64
|
+
leftwindowkey: 91,
|
|
65
|
+
rightwindowkey: 92,
|
|
66
|
+
meta: P ? [91, 93] : [91, 92],
|
|
67
|
+
selectkey: 93,
|
|
68
|
+
numpad0: 96,
|
|
69
|
+
numpad1: 97,
|
|
70
|
+
numpad2: 98,
|
|
71
|
+
numpad3: 99,
|
|
72
|
+
numpad4: 100,
|
|
73
|
+
numpad5: 101,
|
|
74
|
+
numpad6: 102,
|
|
75
|
+
numpad7: 103,
|
|
76
|
+
numpad8: 104,
|
|
77
|
+
numpad9: 105,
|
|
78
|
+
multiply: 106,
|
|
79
|
+
add: 107,
|
|
80
|
+
subtract: 109,
|
|
81
|
+
decimalpoint: 110,
|
|
82
|
+
divide: 111,
|
|
83
|
+
f1: 112,
|
|
84
|
+
f2: 113,
|
|
85
|
+
f3: 114,
|
|
86
|
+
f4: 115,
|
|
87
|
+
f5: 116,
|
|
88
|
+
f6: 117,
|
|
89
|
+
f7: 118,
|
|
90
|
+
f8: 119,
|
|
91
|
+
f9: 120,
|
|
92
|
+
f10: 121,
|
|
93
|
+
f11: 122,
|
|
94
|
+
f12: 123,
|
|
95
|
+
numlock: 144,
|
|
96
|
+
scrolllock: 145,
|
|
97
|
+
semicolon: 186,
|
|
98
|
+
equalsign: 187,
|
|
99
|
+
comma: 188,
|
|
100
|
+
dash: 189,
|
|
101
|
+
period: 190,
|
|
102
|
+
forwardslash: 191,
|
|
103
|
+
graveaccent: 192,
|
|
104
|
+
openbracket: 219,
|
|
105
|
+
backslash: 220,
|
|
106
|
+
closebracket: 221,
|
|
107
|
+
singlequote: 222
|
|
108
|
+
}, C = {
|
|
109
|
+
ctrl: function(r) {
|
|
110
|
+
return r.ctrlKey;
|
|
111
|
+
},
|
|
112
|
+
shift: function(r) {
|
|
113
|
+
return r.shiftKey;
|
|
114
|
+
},
|
|
115
|
+
alt: function(r) {
|
|
116
|
+
return r.altKey;
|
|
117
|
+
},
|
|
118
|
+
meta: function(r) {
|
|
119
|
+
return r.type === "keyup" ? B.meta.includes(r.keyCode) : r.metaKey;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
function D(r) {
|
|
123
|
+
return O(r) || j(r);
|
|
124
|
+
}
|
|
125
|
+
function S(r) {
|
|
126
|
+
var a = Object.keys(C).reduce(function(n, e) {
|
|
127
|
+
return C[e](r) ? n + 1 : n;
|
|
128
|
+
}, 0);
|
|
129
|
+
return [16, 17, 18, 91, 92].includes(r.keyCode) ? a : a + 1;
|
|
130
|
+
}
|
|
131
|
+
function T(r, a, n) {
|
|
132
|
+
var e, m;
|
|
133
|
+
if (!r.key)
|
|
134
|
+
return !1;
|
|
135
|
+
if (j(a))
|
|
136
|
+
return r.keyCode === a ? a : !1;
|
|
137
|
+
var u = a.split("."), d = 0;
|
|
138
|
+
try {
|
|
139
|
+
for (var f = x(u), l = f.next(); !l.done; l = f.next()) {
|
|
140
|
+
var s = l.value, v = C[s], y = B[s.toLowerCase()];
|
|
141
|
+
(v && v(r) || y && y === r.keyCode) && d++;
|
|
142
|
+
}
|
|
143
|
+
} catch (g) {
|
|
144
|
+
e = {
|
|
145
|
+
error: g
|
|
146
|
+
};
|
|
147
|
+
} finally {
|
|
148
|
+
try {
|
|
149
|
+
l && !l.done && (m = f.return) && m.call(f);
|
|
150
|
+
} finally {
|
|
151
|
+
if (e)
|
|
152
|
+
throw e.error;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return n ? d === u.length && S(r) === u.length ? a : !1 : d === u.length ? a : !1;
|
|
156
|
+
}
|
|
157
|
+
function V(r, a) {
|
|
158
|
+
return R(r) ? r : D(r) ? function(n) {
|
|
159
|
+
return T(n, r, a);
|
|
160
|
+
} : Array.isArray(r) ? function(n) {
|
|
161
|
+
return r.find(function(e) {
|
|
162
|
+
return T(n, e, a);
|
|
163
|
+
});
|
|
164
|
+
} : function() {
|
|
165
|
+
return !!r;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
var W = ["keydown"];
|
|
169
|
+
function Z(r, a, n) {
|
|
170
|
+
var e = n || {}, m = e.events, u = m === void 0 ? W : m, d = e.target, f = e.exactMatch, l = f === void 0 ? !1 : f, s = e.useCapture, v = s === void 0 ? !1 : s, y = q(a), g = q(r);
|
|
171
|
+
N(function() {
|
|
172
|
+
var k, E, K, t = z(d, window);
|
|
173
|
+
if (t) {
|
|
174
|
+
var L = function(o) {
|
|
175
|
+
var p, w = V(g.current, l), i = w(o), c = D(i) ? i : o.key;
|
|
176
|
+
if (i)
|
|
177
|
+
return (p = y.current) === null || p === void 0 ? void 0 : p.call(y, o, c);
|
|
178
|
+
};
|
|
179
|
+
try {
|
|
180
|
+
for (var b = x(u), h = b.next(); !h.done; h = b.next()) {
|
|
181
|
+
var G = h.value;
|
|
182
|
+
(K = t == null ? void 0 : t.addEventListener) === null || K === void 0 || K.call(t, G, L, v);
|
|
183
|
+
}
|
|
184
|
+
} catch (o) {
|
|
185
|
+
k = {
|
|
186
|
+
error: o
|
|
187
|
+
};
|
|
188
|
+
} finally {
|
|
189
|
+
try {
|
|
190
|
+
h && !h.done && (E = b.return) && E.call(b);
|
|
191
|
+
} finally {
|
|
192
|
+
if (k)
|
|
193
|
+
throw k.error;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return function() {
|
|
197
|
+
var o, p, w;
|
|
198
|
+
try {
|
|
199
|
+
for (var i = x(u), c = i.next(); !c.done; c = i.next()) {
|
|
200
|
+
var H = c.value;
|
|
201
|
+
(w = t == null ? void 0 : t.removeEventListener) === null || w === void 0 || w.call(t, H, L, v);
|
|
202
|
+
}
|
|
203
|
+
} catch (M) {
|
|
204
|
+
o = {
|
|
205
|
+
error: M
|
|
206
|
+
};
|
|
207
|
+
} finally {
|
|
208
|
+
try {
|
|
209
|
+
c && !c.done && (p = i.return) && p.call(i);
|
|
210
|
+
} finally {
|
|
211
|
+
if (o)
|
|
212
|
+
throw o.error;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}, [u], d);
|
|
218
|
+
}
|
|
219
|
+
export {
|
|
220
|
+
Z as default
|
|
221
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useRef as u, useMemo as i } from "react";
|
|
2
|
+
import { isFunction as a } from "../utils/index.mjs";
|
|
3
|
+
import c from "../utils/isDev.mjs";
|
|
4
|
+
function p(r) {
|
|
5
|
+
c && (a(r) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof r)));
|
|
6
|
+
var n = u(r);
|
|
7
|
+
n.current = i(function() {
|
|
8
|
+
return r;
|
|
9
|
+
}, [r]);
|
|
10
|
+
var t = u();
|
|
11
|
+
return t.current || (t.current = function() {
|
|
12
|
+
for (var o = [], e = 0; e < arguments.length; e++)
|
|
13
|
+
o[e] = arguments[e];
|
|
14
|
+
return n.current.apply(this, o);
|
|
15
|
+
}), t.current;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
p as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __read as i } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import { useRef as m, useState as c, useCallback as f } from "react";
|
|
3
|
+
import s from "../useUnmount/index.mjs";
|
|
4
|
+
function v(a) {
|
|
5
|
+
var t = m(0), e = i(c(a), 2), r = e[0], n = e[1], u = f(function(o) {
|
|
6
|
+
cancelAnimationFrame(t.current), t.current = requestAnimationFrame(function() {
|
|
7
|
+
n(o);
|
|
8
|
+
});
|
|
9
|
+
}, []);
|
|
10
|
+
return s(function() {
|
|
11
|
+
cancelAnimationFrame(t.current);
|
|
12
|
+
}), [r, u];
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
v as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __read as d } from "../../../tslib/tslib.es6.mjs";
|
|
2
|
+
import s from "../../../resize-observer-polyfill/dist/ResizeObserver.es.mjs";
|
|
3
|
+
import l from "../useRafState/index.mjs";
|
|
4
|
+
import { getTargetElement as o } from "../utils/domTarget.mjs";
|
|
5
|
+
import g from "../utils/useIsomorphicLayoutEffectWithTarget.mjs";
|
|
6
|
+
function E(e) {
|
|
7
|
+
var i = d(l(function() {
|
|
8
|
+
var t = o(e);
|
|
9
|
+
return t ? {
|
|
10
|
+
width: t.clientWidth,
|
|
11
|
+
height: t.clientHeight
|
|
12
|
+
} : void 0;
|
|
13
|
+
}), 2), f = i[0], a = i[1];
|
|
14
|
+
return g(function() {
|
|
15
|
+
var t = o(e);
|
|
16
|
+
if (t) {
|
|
17
|
+
var r = new s(function(c) {
|
|
18
|
+
c.forEach(function(u) {
|
|
19
|
+
var n = u.target, h = n.clientWidth, m = n.clientHeight;
|
|
20
|
+
a({
|
|
21
|
+
width: h,
|
|
22
|
+
height: m
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
return r.observe(t), function() {
|
|
27
|
+
r.disconnect();
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}, [], e), f;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
E as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import n from "../useLatest/index.mjs";
|
|
3
|
+
import { isFunction as r } from "../utils/index.mjs";
|
|
4
|
+
import u from "../utils/isDev.mjs";
|
|
5
|
+
var f = function(t) {
|
|
6
|
+
u && (r(t) || console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));
|
|
7
|
+
var o = n(t);
|
|
8
|
+
e(function() {
|
|
9
|
+
return function() {
|
|
10
|
+
o.current();
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
};
|
|
14
|
+
const a = f;
|
|
15
|
+
export {
|
|
16
|
+
a as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useRef as a } from "react";
|
|
2
|
+
import h from "../useUnmount/index.mjs";
|
|
3
|
+
import l from "./depsAreSame.mjs";
|
|
4
|
+
import { getTargetElement as p } from "./domTarget.mjs";
|
|
5
|
+
var d = function(v) {
|
|
6
|
+
var m = function(i, u, c) {
|
|
7
|
+
var f = a(!1), t = a([]), o = a([]), e = a();
|
|
8
|
+
v(function() {
|
|
9
|
+
var r, s = Array.isArray(c) ? c : [c], n = s.map(function(g) {
|
|
10
|
+
return p(g);
|
|
11
|
+
});
|
|
12
|
+
if (!f.current) {
|
|
13
|
+
f.current = !0, t.current = n, o.current = u, e.current = i();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
(n.length !== t.current.length || !l(t.current, n) || !l(o.current, u)) && ((r = e.current) === null || r === void 0 || r.call(e), t.current = n, o.current = u, e.current = i());
|
|
17
|
+
}), h(function() {
|
|
18
|
+
var r;
|
|
19
|
+
(r = e.current) === null || r === void 0 || r.call(e), f.current = !1;
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return m;
|
|
23
|
+
};
|
|
24
|
+
const W = d;
|
|
25
|
+
export {
|
|
26
|
+
W as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isFunction as i } from "./index.mjs";
|
|
2
|
+
import f from "./isBrowser.mjs";
|
|
3
|
+
function m(e, n) {
|
|
4
|
+
if (f) {
|
|
5
|
+
if (!e)
|
|
6
|
+
return n;
|
|
7
|
+
var r;
|
|
8
|
+
return i(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as getTargetElement
|
|
13
|
+
};
|