ant-design-x-vue 1.1.1 → 1.2.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/index.umd.js +19 -198
- package/es/_util/cssinjs/Cache.mjs +16 -0
- package/es/_util/cssinjs/Keyframes.mjs +11 -0
- package/es/_util/cssinjs/StyleContext.mjs +116 -0
- package/es/_util/cssinjs/hooks/useCSSVarRegister.mjs +47 -0
- package/es/_util/cssinjs/hooks/useCacheToken.mjs +9 -0
- package/es/_util/cssinjs/hooks/useCacheToken.tsx2.mjs +76 -0
- package/es/_util/cssinjs/hooks/useGlobalCache.mjs +27 -0
- package/es/_util/cssinjs/hooks/useHMR.mjs +7 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.mjs +51 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.mjs +17 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.tsx2.mjs +541 -0
- package/es/_util/cssinjs/index.mjs +59 -0
- package/es/_util/cssinjs/linters/contentQuotesLinter.mjs +13 -0
- package/es/_util/cssinjs/linters/hashedAnimationLinter.mjs +10 -0
- package/es/_util/cssinjs/linters/index.mjs +12 -0
- package/es/_util/cssinjs/linters/interface.mjs +1 -0
- package/es/_util/cssinjs/linters/legacyNotSelectorLinter.mjs +15 -0
- package/es/_util/cssinjs/linters/logicalPropertiesLinter.mjs +61 -0
- package/es/_util/cssinjs/linters/parentSelectorLinter.mjs +7 -0
- package/es/_util/cssinjs/linters/utils.mjs +11 -0
- package/es/_util/cssinjs/theme/Theme.mjs +18 -0
- package/es/_util/cssinjs/theme/ThemeCache.mjs +72 -0
- package/es/_util/cssinjs/theme/createTheme.mjs +10 -0
- package/es/_util/cssinjs/theme/index.mjs +8 -0
- package/es/_util/cssinjs/theme/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/legacyLogicalProperties.mjs +92 -0
- package/es/_util/cssinjs/transformers/px2rem.mjs +31 -0
- package/es/_util/cssinjs/util.mjs +102 -0
- package/es/_util/cssinjs-utils/_util/hooks/useUniqueMemo.mjs +55 -0
- package/es/_util/cssinjs-utils/hooks/useCSP.mjs +4 -0
- package/es/_util/cssinjs-utils/hooks/usePrefix.mjs +1 -0
- package/es/_util/cssinjs-utils/hooks/useToken.mjs +1 -0
- package/es/_util/cssinjs-utils/index.mjs +10 -0
- package/es/_util/cssinjs-utils/interface/components.mjs +1 -0
- package/es/_util/cssinjs-utils/interface/index.mjs +1 -0
- package/es/_util/cssinjs-utils/util/calc/CSSCalculator.mjs +35 -0
- package/es/_util/cssinjs-utils/util/calc/NumCalculator.mjs +24 -0
- package/es/_util/cssinjs-utils/util/calc/calculator.mjs +5 -0
- package/es/_util/cssinjs-utils/util/calc/index.mjs +9 -0
- package/es/_util/cssinjs-utils/util/genStyleUtils.mjs +188 -0
- package/es/_util/cssinjs-utils/util/getCompVarPrefix.mjs +7 -0
- package/es/_util/cssinjs-utils/util/getComponentToken.mjs +18 -0
- package/es/_util/cssinjs-utils/util/getDefaultComponentToken.mjs +9 -0
- package/es/_util/cssinjs-utils/util/maxmin.mjs +15 -0
- package/es/_util/cssinjs-utils/util/statistic.mjs +45 -0
- package/es/_util/getScrollBarSize.mjs +33 -0
- package/es/_util/getValue.mjs +11 -0
- package/es/_util/hooks/use-event-callback.mjs +10 -0
- package/es/_util/hooks/use-state.mjs +11 -0
- package/es/_util/hooks/use-x-component-config.mjs +17 -0
- package/es/_util/hooks/useMergedState.mjs +21 -0
- package/es/_util/motion.mjs +23 -0
- package/es/_util/pick-attrs.mjs +43 -0
- package/es/_util/setStyle.mjs +11 -0
- package/es/_util/supportsPassive.mjs +14 -0
- package/es/_util/transition.mjs +75 -0
- package/es/_util/type.mjs +48 -0
- package/es/_util/warning.mjs +45 -0
- package/es/attachments/Attachments.mjs +4 -0
- package/es/attachments/Attachments2.mjs +255 -0
- package/es/attachments/DropArea.mjs +58 -0
- package/es/attachments/FileList/AudioIcon.mjs +5 -0
- package/es/attachments/FileList/AudioIcon2.mjs +35 -0
- package/es/attachments/FileList/FileList.mjs +4 -0
- package/es/attachments/FileList/FileList2.mjs +1574 -0
- package/es/attachments/FileList/FileListCard.mjs +168 -0
- package/es/attachments/FileList/Progress.mjs +49 -0
- package/es/attachments/FileList/VideoIcon.mjs +30 -0
- package/es/attachments/FileList/index.mjs +6 -0
- package/es/attachments/PlaceholderUploader.mjs +79 -0
- package/es/attachments/SilentUploader.mjs +27 -0
- package/es/attachments/context.mjs +32 -0
- package/es/attachments/index.mjs +12 -0
- package/es/attachments/interface.mjs +1 -0
- package/es/attachments/style/fileCard.mjs +157 -0
- package/es/attachments/style/index.mjs +584 -0
- package/es/attachments/util.mjs +31 -0
- package/es/bubble/Bubble.mjs +126 -0
- package/es/bubble/BubbleList.mjs +136 -0
- package/es/bubble/context.mjs +31 -0
- package/es/bubble/hooks/useDisplayData.mjs +36 -0
- package/es/bubble/hooks/useListData.mjs +18 -0
- package/es/bubble/hooks/useTypedEffect.mjs +24 -0
- package/es/bubble/hooks/useTypingConfig.mjs +24 -0
- package/es/bubble/index.mjs +10 -0
- package/es/bubble/interface.mjs +1 -0
- package/es/bubble/loading.mjs +25 -0
- package/es/bubble/style/content.mjs +59 -0
- package/es/bubble/style/index.mjs +148 -0
- package/es/bubble/style/list.mjs +14 -0
- package/es/conversations/Conversations.mjs +105 -0
- package/es/conversations/ConversationsItem.mjs +89 -0
- package/es/conversations/GroupTitle.mjs +22 -0
- package/es/conversations/context.mjs +31 -0
- package/es/conversations/hooks/useGroupable.mjs +48 -0
- package/es/conversations/index.mjs +5 -0
- package/es/conversations/interface.mjs +1 -0
- package/es/conversations/style/index.mjs +103 -0
- package/es/index.mjs +38 -0
- package/es/prompts/Prompts.mjs +116 -0
- package/es/prompts/index.mjs +5 -0
- package/es/prompts/interface.mjs +1 -0
- package/es/prompts/style/index.mjs +143 -0
- package/es/sender/Sender.mjs +251 -0
- package/es/sender/SenderHeader.mjs +82 -0
- package/es/sender/StopLoading.mjs +52 -0
- package/es/sender/components/ActionButton/context.mjs +31 -0
- package/es/sender/components/ActionButton/index.mjs +65 -0
- package/es/sender/components/ClearButton.mjs +41 -0
- package/es/sender/components/LoadingButton.mjs +58 -0
- package/es/sender/components/SendButton.mjs +45 -0
- package/es/sender/components/SpeechButton/RecordingIcon.mjs +49 -0
- package/es/sender/components/SpeechButton/index.mjs +59 -0
- package/es/sender/context.mjs +31 -0
- package/es/sender/index.mjs +9 -0
- package/es/sender/interface.mjs +1 -0
- package/es/sender/style/header.mjs +49 -0
- package/es/sender/style/index.mjs +147 -0
- package/es/sender/useSpeech.mjs +55 -0
- package/es/suggestion/Suggestion.mjs +93 -0
- package/es/suggestion/index.mjs +5 -0
- package/es/suggestion/interface.mjs +1 -0
- package/es/suggestion/style/index.mjs +41 -0
- package/es/suggestion/useActive.mjs +56 -0
- package/es/theme/components.mjs +1 -0
- package/es/theme/cssinjs-utils.mjs +1 -0
- package/es/theme/genStyleUtils.mjs +32 -0
- package/es/theme/index.mjs +4 -0
- package/es/theme/patch-antd.mjs +33 -0
- package/es/theme/useToken.mjs +351 -0
- package/es/thought-chain/ThoughtChain.mjs +107 -0
- package/es/thought-chain/context.mjs +31 -0
- package/es/thought-chain/hooks/useCollapsible.mjs +36 -0
- package/es/thought-chain/index.mjs +5 -0
- package/es/thought-chain/interface.mjs +4 -0
- package/es/thought-chain/item.mjs +96 -0
- package/es/thought-chain/style/index.mjs +215 -0
- package/es/transition-collapse/TransitionCollapse.mjs +49 -0
- package/es/transition-collapse/index.mjs +10 -0
- package/es/transition-collapse/style/index.mjs +22 -0
- package/es/type-utility.mjs +1 -0
- package/es/use-x-agent/index.mjs +7 -0
- package/es/use-x-agent/use-x-agent.mjs +49 -0
- package/es/use-x-chat/index.mjs +5 -0
- package/es/use-x-chat/use-x-chat.mjs +97 -0
- package/es/use-x-chat/useSyncState.mjs +12 -0
- package/es/vc-util/Dom/addEventListener.mjs +15 -0
- package/es/vc-util/Dom/canUseDom.mjs +6 -0
- package/es/vc-util/Dom/class.mjs +19 -0
- package/es/vc-util/Dom/contains.mjs +6 -0
- package/es/vc-util/Dom/css.mjs +86 -0
- package/es/vc-util/Dom/dynamicCSS.mjs +70 -0
- package/es/vc-util/Dom/isVisible.mjs +20 -0
- package/es/vc-util/Dom/scrollLocker.mjs +66 -0
- package/es/vc-util/devWarning.mjs +9 -0
- package/es/vc-util/get.mjs +12 -0
- package/es/vc-util/isEqual.mjs +32 -0
- package/es/vc-util/isMobile.mjs +13 -0
- package/es/vc-util/set.mjs +14 -0
- package/es/vc-util/warning.mjs +26 -0
- package/es/version/index.mjs +4 -0
- package/es/version/token-meta.mjs +7 -0
- package/es/version/token.mjs +21 -0
- package/es/version/version.mjs +4 -0
- package/es/welcome/Welcome.mjs +91 -0
- package/es/welcome/index.mjs +5 -0
- package/es/welcome/interface.mjs +1 -0
- package/es/welcome/style/index.mjs +69 -0
- package/es/x-provider/context.mjs +31 -0
- package/es/x-provider/hooks/use-x-provider-context.mjs +21 -0
- package/es/x-provider/index.mjs +8 -0
- package/es/x-provider/index2.mjs +81 -0
- package/es/x-request/index.mjs +7 -0
- package/es/x-request/x-fetch.mjs +22 -0
- package/es/x-request/x-request.mjs +83 -0
- package/es/x-stream/index.mjs +5 -0
- package/es/x-stream/x-stream.mjs +64 -0
- package/lib/_util/cssinjs/Cache.js +1 -0
- package/lib/_util/cssinjs/Keyframes.js +1 -0
- package/lib/_util/cssinjs/StyleContext.js +1 -0
- package/lib/_util/cssinjs/hooks/useCSSVarRegister.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.tsx2.js +1 -0
- package/lib/_util/cssinjs/hooks/useGlobalCache.js +1 -0
- package/lib/_util/cssinjs/hooks/useHMR.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.tsx2.js +2 -0
- package/lib/_util/cssinjs/index.js +1 -0
- package/lib/_util/cssinjs/linters/contentQuotesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/hashedAnimationLinter.js +1 -0
- package/lib/_util/cssinjs/linters/index.js +1 -0
- package/lib/_util/cssinjs/linters/interface.js +1 -0
- package/lib/_util/cssinjs/linters/legacyNotSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/logicalPropertiesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/parentSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/utils.js +1 -0
- package/lib/_util/cssinjs/theme/Theme.js +1 -0
- package/lib/_util/cssinjs/theme/ThemeCache.js +1 -0
- package/lib/_util/cssinjs/theme/createTheme.js +1 -0
- package/lib/_util/cssinjs/theme/index.js +1 -0
- package/lib/_util/cssinjs/theme/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/legacyLogicalProperties.js +1 -0
- package/lib/_util/cssinjs/transformers/px2rem.js +1 -0
- package/lib/_util/cssinjs/util.js +1 -0
- package/lib/_util/cssinjs-utils/_util/hooks/useUniqueMemo.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useCSP.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/usePrefix.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useToken.js +1 -0
- package/lib/_util/cssinjs-utils/index.js +1 -0
- package/lib/_util/cssinjs-utils/interface/components.js +1 -0
- package/lib/_util/cssinjs-utils/interface/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/CSSCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/NumCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/calculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/genStyleUtils.js +1 -0
- package/lib/_util/cssinjs-utils/util/getCompVarPrefix.js +1 -0
- package/lib/_util/cssinjs-utils/util/getComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/getDefaultComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/maxmin.js +1 -0
- package/lib/_util/cssinjs-utils/util/statistic.js +1 -0
- package/lib/_util/getScrollBarSize.js +1 -0
- package/lib/_util/getValue.js +1 -0
- package/lib/_util/hooks/use-event-callback.js +1 -0
- package/lib/_util/hooks/use-state.js +1 -0
- package/lib/_util/hooks/use-x-component-config.js +1 -0
- package/lib/_util/hooks/useMergedState.js +1 -0
- package/lib/_util/motion.js +1 -0
- package/lib/_util/pick-attrs.js +18 -0
- package/lib/_util/setStyle.js +1 -0
- package/lib/_util/supportsPassive.js +1 -0
- package/lib/_util/transition.js +1 -0
- package/lib/_util/type.js +1 -0
- package/lib/_util/warning.js +1 -0
- package/lib/attachments/Attachments.js +1 -0
- package/lib/attachments/Attachments2.js +5 -0
- package/lib/attachments/DropArea.js +1 -0
- package/lib/attachments/FileList/AudioIcon.js +1 -0
- package/lib/attachments/FileList/AudioIcon2.js +1 -0
- package/lib/attachments/FileList/FileList.js +1 -0
- package/lib/attachments/FileList/FileList2.js +57 -0
- package/lib/attachments/FileList/FileListCard.js +1 -0
- package/lib/attachments/FileList/Progress.js +1 -0
- package/lib/attachments/FileList/VideoIcon.js +1 -0
- package/lib/attachments/FileList/index.js +1 -0
- package/lib/attachments/PlaceholderUploader.js +1 -0
- package/lib/attachments/SilentUploader.js +1 -0
- package/lib/attachments/context.js +1 -0
- package/lib/attachments/index.js +1 -0
- package/lib/attachments/interface.js +1 -0
- package/lib/attachments/style/fileCard.js +1 -0
- package/lib/attachments/style/index.js +1 -0
- package/lib/attachments/util.js +1 -0
- package/lib/bubble/Bubble.js +1 -0
- package/lib/bubble/BubbleList.js +1 -0
- package/lib/bubble/context.js +1 -0
- package/lib/bubble/hooks/useDisplayData.js +1 -0
- package/lib/bubble/hooks/useListData.js +1 -0
- package/lib/bubble/hooks/useTypedEffect.js +1 -0
- package/lib/bubble/hooks/useTypingConfig.js +1 -0
- package/lib/bubble/index.js +1 -0
- package/lib/bubble/interface.js +1 -0
- package/lib/bubble/loading.js +1 -0
- package/lib/bubble/style/content.js +1 -0
- package/lib/bubble/style/index.js +1 -0
- package/lib/bubble/style/list.js +1 -0
- package/lib/conversations/Conversations.js +1 -0
- package/lib/conversations/ConversationsItem.js +1 -0
- package/lib/conversations/GroupTitle.js +1 -0
- package/lib/conversations/context.js +1 -0
- package/lib/conversations/hooks/useGroupable.js +1 -0
- package/lib/conversations/index.js +1 -0
- package/lib/conversations/interface.js +1 -0
- package/lib/conversations/style/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/prompts/Prompts.js +1 -0
- package/lib/prompts/index.js +1 -0
- package/lib/prompts/interface.js +1 -0
- package/lib/prompts/style/index.js +1 -0
- package/lib/sender/Sender.js +1 -0
- package/lib/sender/SenderHeader.js +1 -0
- package/lib/sender/StopLoading.js +1 -0
- package/lib/sender/components/ActionButton/context.js +1 -0
- package/lib/sender/components/ActionButton/index.js +1 -0
- package/lib/sender/components/ClearButton.js +1 -0
- package/lib/sender/components/LoadingButton.js +1 -0
- package/lib/sender/components/SendButton.js +1 -0
- package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -0
- package/lib/sender/components/SpeechButton/index.js +1 -0
- package/lib/sender/context.js +1 -0
- package/lib/sender/index.js +1 -0
- package/lib/sender/interface.js +1 -0
- package/lib/sender/style/header.js +1 -0
- package/lib/sender/style/index.js +1 -0
- package/lib/sender/useSpeech.js +1 -0
- package/lib/suggestion/Suggestion.js +1 -0
- package/lib/suggestion/index.js +1 -0
- package/lib/suggestion/interface.js +1 -0
- package/lib/suggestion/style/index.js +1 -0
- package/lib/suggestion/useActive.js +1 -0
- package/lib/theme/components.js +1 -0
- package/lib/theme/cssinjs-utils.js +1 -0
- package/lib/theme/genStyleUtils.js +1 -0
- package/lib/theme/index.js +1 -0
- package/lib/theme/patch-antd.js +1 -0
- package/lib/theme/useToken.js +35 -0
- package/lib/thought-chain/ThoughtChain.js +1 -0
- package/lib/thought-chain/context.js +1 -0
- package/lib/thought-chain/hooks/useCollapsible.js +1 -0
- package/lib/thought-chain/index.js +1 -0
- package/lib/thought-chain/interface.js +1 -0
- package/lib/thought-chain/item.js +1 -0
- package/lib/thought-chain/style/index.js +1 -0
- package/lib/transition-collapse/TransitionCollapse.js +1 -0
- package/lib/transition-collapse/index.js +1 -0
- package/lib/transition-collapse/style/index.js +1 -0
- package/lib/type-utility.js +1 -0
- package/lib/use-x-agent/index.js +1 -0
- package/lib/use-x-agent/use-x-agent.js +1 -0
- package/lib/use-x-chat/index.js +1 -0
- package/lib/use-x-chat/use-x-chat.js +1 -0
- package/lib/use-x-chat/useSyncState.js +1 -0
- package/lib/vc-util/Dom/addEventListener.js +1 -0
- package/lib/vc-util/Dom/canUseDom.js +1 -0
- package/lib/vc-util/Dom/class.js +1 -0
- package/lib/vc-util/Dom/contains.js +1 -0
- package/lib/vc-util/Dom/css.js +1 -0
- package/lib/vc-util/Dom/dynamicCSS.js +1 -0
- package/lib/vc-util/Dom/isVisible.js +1 -0
- package/lib/vc-util/Dom/scrollLocker.js +1 -0
- package/lib/vc-util/devWarning.js +1 -0
- package/lib/vc-util/get.js +1 -0
- package/lib/vc-util/isEqual.js +1 -0
- package/lib/vc-util/isMobile.js +1 -0
- package/lib/vc-util/set.js +1 -0
- package/lib/vc-util/warning.js +1 -0
- package/lib/version/index.js +1 -0
- package/lib/version/token-meta.js +1 -0
- package/lib/version/token.js +1 -0
- package/lib/version/version.js +1 -0
- package/lib/welcome/Welcome.js +1 -0
- package/lib/welcome/index.js +1 -0
- package/lib/welcome/interface.js +1 -0
- package/lib/welcome/style/index.js +1 -0
- package/lib/x-provider/context.js +1 -0
- package/lib/x-provider/hooks/use-x-provider-context.js +1 -0
- package/lib/x-provider/index.js +1 -0
- package/lib/x-provider/index2.js +1 -0
- package/lib/x-request/index.js +1 -0
- package/lib/x-request/x-fetch.js +1 -0
- package/lib/x-request/x-request.js +1 -0
- package/lib/x-stream/index.js +1 -0
- package/lib/x-stream/x-stream.js +4 -0
- package/package.json +21 -13
- package/typings/bubble/Bubble.vue.d.ts +37 -0
- package/typings/bubble/index.d.ts +258 -0
- package/{dist/typings → typings}/bubble/interface.d.ts +6 -4
- package/{dist/typings → typings}/conversations/interface.d.ts +2 -1
- package/{dist/typings → typings}/sender/interface.d.ts +1 -1
- package/{dist/typings → typings}/x-provider/context.d.ts +9 -9
- package/dist/index.mjs +0 -34154
- package/dist/typings/bubble/Bubble.vue.d.ts +0 -35
- package/dist/typings/bubble/index.d.ts +0 -51
- /package/{dist/resolver → resolver-dist}/index.d.ts +0 -0
- /package/{dist/resolver → resolver-dist}/index.js +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Cache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Keyframes.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/StyleContext.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCSSVarRegister.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCacheToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useGlobalCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useHMR.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/contentQuotesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/hashedAnimationLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/parentSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/utils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/Theme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/ThemeCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/createTheme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/px2rem.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/util.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useCSP.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/usePrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/components.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/calculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/maxmin.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/statistic.d.ts +0 -0
- /package/{dist/typings → typings}/_util/getValue.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-event-callback.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-state.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-x-component-config.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/useMergedState.d.ts +0 -0
- /package/{dist/typings → typings}/_util/pick-attrs.d.ts +0 -0
- /package/{dist/typings → typings}/_util/type.d.ts +0 -0
- /package/{dist/typings → typings}/_util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/Attachments.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/DropArea.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/AudioIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileListCard.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/VideoIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/PlaceholderUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/SilentUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/context.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/interface.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/fileCard.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/util.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/BubbleList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/context.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useDisplayData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useListData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypingConfig.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/loading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/content.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/list.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/Conversations.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/ConversationsItem.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/GroupTitle.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/context.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/hooks/useGroupable.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/index.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/Prompts.vue.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/interface.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/Sender.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/SenderHeader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/StopLoading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ClearButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/LoadingButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SendButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/RecordingIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/header.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/useSpeech.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/Suggestion.vue.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/interface.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/useActive.d.ts +0 -0
- /package/{dist/typings → typings}/theme/components.d.ts +0 -0
- /package/{dist/typings → typings}/theme/cssinjs-utils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/theme/patch-antd.d.ts +0 -0
- /package/{dist/typings → typings}/theme/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/ThoughtChain.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/context.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/hooks/useCollapsible.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/index.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/interface.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/item.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/TransitionCollapse.vue.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/type-utility.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/use-x-agent.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/use-x-chat.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/useSyncState.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/canUseDom.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/contains.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/dynamicCSS.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/version/index.d.ts +0 -0
- /package/{dist/typings → typings}/version/version.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/Welcome.vue.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/index.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/interface.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/hooks/use-x-provider-context.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-fetch.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-request.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/x-stream.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const c = "%";
|
|
2
|
+
class i {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
this.cache = /* @__PURE__ */ new Map(), this.instanceId = t;
|
|
5
|
+
}
|
|
6
|
+
get(t) {
|
|
7
|
+
return this.cache.get(Array.isArray(t) ? t.join(c) : t) || null;
|
|
8
|
+
}
|
|
9
|
+
update(t, n) {
|
|
10
|
+
const e = Array.isArray(t) ? t.join(c) : t, s = this.cache.get(e), a = n(s);
|
|
11
|
+
a === null ? this.cache.delete(e) : this.cache.set(e, a);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
i as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { inject as A, shallowRef as C, getCurrentInstance as T, defineComponent as g, watch as x, unref as d, provide as b } from "vue";
|
|
2
|
+
import P from "./Cache.mjs";
|
|
3
|
+
import { withInstall as v, arrayType as u, booleanType as l, someType as I, stringType as f, objectType as E } from "../type.mjs";
|
|
4
|
+
const J = "data-token-hash", h = "data-css-hash", V = "data-cache-path", i = "__cssinjs_instance__";
|
|
5
|
+
function s() {
|
|
6
|
+
const e = Math.random().toString(12).slice(2);
|
|
7
|
+
if (typeof document < "u" && document.head && document.body) {
|
|
8
|
+
const o = document.body.querySelectorAll(`style[${h}]`) || [], {
|
|
9
|
+
firstChild: n
|
|
10
|
+
} = document.head;
|
|
11
|
+
Array.from(o).forEach((t) => {
|
|
12
|
+
t[i] = t[i] || e, t[i] === e && document.head.insertBefore(t, n);
|
|
13
|
+
});
|
|
14
|
+
const c = {};
|
|
15
|
+
Array.from(document.querySelectorAll(`style[${h}]`)).forEach((t) => {
|
|
16
|
+
var r;
|
|
17
|
+
const a = t.getAttribute(h);
|
|
18
|
+
c[a] ? t[i] === e && ((r = t.parentNode) == null || r.removeChild(t)) : c[a] = !0;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return new P(e);
|
|
22
|
+
}
|
|
23
|
+
const p = Symbol("StyleContextKey"), N = () => {
|
|
24
|
+
var n, c, t;
|
|
25
|
+
const e = T();
|
|
26
|
+
let o;
|
|
27
|
+
if (e && e.appContext) {
|
|
28
|
+
const a = (t = (c = (n = e.appContext) == null ? void 0 : n.config) == null ? void 0 : c.globalProperties) == null ? void 0 : t.__ANTDV_CSSINJS_CACHE__;
|
|
29
|
+
a ? o = a : (o = s(), e.appContext.config.globalProperties && (e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = o));
|
|
30
|
+
} else
|
|
31
|
+
o = s();
|
|
32
|
+
return o;
|
|
33
|
+
}, m = {
|
|
34
|
+
cache: s(),
|
|
35
|
+
defaultCache: !0,
|
|
36
|
+
hashPriority: "low"
|
|
37
|
+
}, y = () => {
|
|
38
|
+
const e = N();
|
|
39
|
+
return A(p, C({
|
|
40
|
+
...m,
|
|
41
|
+
cache: e
|
|
42
|
+
}));
|
|
43
|
+
}, _ = (e) => {
|
|
44
|
+
const o = y(), n = C({
|
|
45
|
+
...m,
|
|
46
|
+
cache: s()
|
|
47
|
+
});
|
|
48
|
+
return x([() => d(e), o], () => {
|
|
49
|
+
const c = {
|
|
50
|
+
...o.value
|
|
51
|
+
}, t = d(e);
|
|
52
|
+
Object.keys(t).forEach((r) => {
|
|
53
|
+
const S = t[r];
|
|
54
|
+
t[r] !== void 0 && (c[r] = S);
|
|
55
|
+
});
|
|
56
|
+
const {
|
|
57
|
+
cache: a
|
|
58
|
+
} = t;
|
|
59
|
+
c.cache = c.cache || s(), c.defaultCache = !a && o.value.defaultCache, n.value = c;
|
|
60
|
+
}, {
|
|
61
|
+
immediate: !0
|
|
62
|
+
}), b(p, n), n;
|
|
63
|
+
}, j = () => ({
|
|
64
|
+
autoClear: l(),
|
|
65
|
+
/** @private Test only. Not work in production. */
|
|
66
|
+
mock: f(),
|
|
67
|
+
/**
|
|
68
|
+
* Only set when you need ssr to extract style on you own.
|
|
69
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
70
|
+
*/
|
|
71
|
+
cache: E(),
|
|
72
|
+
/** Tell children that this context is default generated context */
|
|
73
|
+
defaultCache: l(),
|
|
74
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
75
|
+
hashPriority: f(),
|
|
76
|
+
/** Tell cssinjs where to inject style in */
|
|
77
|
+
container: I(),
|
|
78
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
79
|
+
ssrInline: l(),
|
|
80
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
81
|
+
transformers: u(),
|
|
82
|
+
/**
|
|
83
|
+
* Linters to lint css before inject in document.
|
|
84
|
+
* Styles will be linted after transforming.
|
|
85
|
+
* Please note that `linters` do not support dynamic update.
|
|
86
|
+
*/
|
|
87
|
+
linters: u()
|
|
88
|
+
}), w = v(/* @__PURE__ */ g({
|
|
89
|
+
name: "AStyleProvider",
|
|
90
|
+
inheritAttrs: !1,
|
|
91
|
+
props: j(),
|
|
92
|
+
setup(e, {
|
|
93
|
+
slots: o
|
|
94
|
+
}) {
|
|
95
|
+
return _(e), () => {
|
|
96
|
+
var n;
|
|
97
|
+
return (n = o.default) == null ? void 0 : n.call(o);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
})), q = {
|
|
101
|
+
useStyleInject: y,
|
|
102
|
+
useStyleProvider: _,
|
|
103
|
+
StyleProvider: w
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
V as ATTR_CACHE_PATH,
|
|
107
|
+
h as ATTR_MARK,
|
|
108
|
+
J as ATTR_TOKEN,
|
|
109
|
+
i as CSS_IN_JS_INSTANCE,
|
|
110
|
+
w as StyleProvider,
|
|
111
|
+
s as createCache,
|
|
112
|
+
q as default,
|
|
113
|
+
j as styleProviderProps,
|
|
114
|
+
y as useStyleInject,
|
|
115
|
+
_ as useStyleProvider
|
|
116
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { removeCSS as f } from "../../../vc-util/Dom/dynamicCSS.mjs";
|
|
2
|
+
import h, { ATTR_MARK as k } from "../StyleContext.mjs";
|
|
3
|
+
import { isClientSide as C, transformToken as x, toStyleStr as T } from "../util.mjs";
|
|
4
|
+
import R from "./useGlobalCache.mjs";
|
|
5
|
+
import { a as V } from "./useStyleRegister/index.tsx2.mjs";
|
|
6
|
+
const A = "cssVar", v = (r, i) => {
|
|
7
|
+
const { key: t, prefix: o, unitless: s, ignore: n, token: c, scope: e = "" } = r, {
|
|
8
|
+
cache: { instanceId: l },
|
|
9
|
+
container: m
|
|
10
|
+
} = useContext(h), { _tokenKey: y } = c, u = [...r.path, t, e, y];
|
|
11
|
+
return R(
|
|
12
|
+
A,
|
|
13
|
+
u,
|
|
14
|
+
() => {
|
|
15
|
+
const a = i(), [S, p] = x(a, t, {
|
|
16
|
+
prefix: o,
|
|
17
|
+
unitless: s,
|
|
18
|
+
ignore: n,
|
|
19
|
+
scope: e
|
|
20
|
+
}), d = V(u, p);
|
|
21
|
+
return [S, p, d, t];
|
|
22
|
+
},
|
|
23
|
+
([, , a]) => {
|
|
24
|
+
C && f(a, { mark: k });
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}, E = (r, i, t) => {
|
|
28
|
+
const [, o, s, n] = r, { plain: c } = t || {};
|
|
29
|
+
if (!o)
|
|
30
|
+
return null;
|
|
31
|
+
const e = -999, l = {
|
|
32
|
+
"data-rc-order": "prependQueue",
|
|
33
|
+
"data-rc-priority": `${e}`
|
|
34
|
+
}, m = T(
|
|
35
|
+
o,
|
|
36
|
+
n,
|
|
37
|
+
s,
|
|
38
|
+
l,
|
|
39
|
+
c
|
|
40
|
+
);
|
|
41
|
+
return [e, s, m];
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
A as CSS_VAR_PREFIX,
|
|
45
|
+
v as default,
|
|
46
|
+
E as extract
|
|
47
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useStyleInject as m, ATTR_TOKEN as g, CSS_IN_JS_INSTANCE as C } from "../StyleContext.mjs";
|
|
2
|
+
import y from "./useGlobalCache.mjs";
|
|
3
|
+
import { flattenToken as k, token2key as S } from "../util.mjs";
|
|
4
|
+
import { ref as A, computed as d } from "vue";
|
|
5
|
+
function p(t) {
|
|
6
|
+
for (var e = 0, o, n = 0, c = t.length; c >= 4; ++n, c -= 4)
|
|
7
|
+
o = t.charCodeAt(n) & 255 | (t.charCodeAt(++n) & 255) << 8 | (t.charCodeAt(++n) & 255) << 16 | (t.charCodeAt(++n) & 255) << 24, o = /* Math.imul(k, m): */
|
|
8
|
+
(o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16), o ^= /* k >>> r: */
|
|
9
|
+
o >>> 24, e = /* Math.imul(k, m): */
|
|
10
|
+
(o & 65535) * 1540483477 + ((o >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
11
|
+
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
|
|
12
|
+
switch (c) {
|
|
13
|
+
case 3:
|
|
14
|
+
e ^= (t.charCodeAt(n + 2) & 255) << 16;
|
|
15
|
+
case 2:
|
|
16
|
+
e ^= (t.charCodeAt(n + 1) & 255) << 8;
|
|
17
|
+
case 1:
|
|
18
|
+
e ^= t.charCodeAt(n) & 255, e = /* Math.imul(h, m): */
|
|
19
|
+
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
|
|
20
|
+
}
|
|
21
|
+
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
22
|
+
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
23
|
+
}
|
|
24
|
+
const x = {}, E = "css", r = /* @__PURE__ */ new Map();
|
|
25
|
+
function _(t) {
|
|
26
|
+
r.set(t, (r.get(t) || 0) + 1);
|
|
27
|
+
}
|
|
28
|
+
function b(t, e) {
|
|
29
|
+
typeof document < "u" && document.querySelectorAll(`style[${g}="${t}"]`).forEach((n) => {
|
|
30
|
+
var c;
|
|
31
|
+
n[C] === e && ((c = n.parentNode) == null || c.removeChild(n));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const I = 0;
|
|
35
|
+
function K(t, e) {
|
|
36
|
+
r.set(t, (r.get(t) || 0) - 1);
|
|
37
|
+
const o = Array.from(r.keys()), n = o.filter((c) => (r.get(c) || 0) <= 0);
|
|
38
|
+
o.length - n.length > I && n.forEach((c) => {
|
|
39
|
+
b(c, e), r.delete(c);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const N = (t, e, o, n) => {
|
|
43
|
+
let s = {
|
|
44
|
+
...o == null ? void 0 : o.getDerivativeToken(t),
|
|
45
|
+
...e
|
|
46
|
+
};
|
|
47
|
+
return n && (s = n(s)), s;
|
|
48
|
+
};
|
|
49
|
+
function j(t, e, o = A({})) {
|
|
50
|
+
const n = m(), c = d(() => Object.assign({}, ...e.value || [])), s = d(() => k(c.value)), T = d(() => {
|
|
51
|
+
var f;
|
|
52
|
+
return k(((f = o.value) == null ? void 0 : f.override) || x);
|
|
53
|
+
});
|
|
54
|
+
return y("token", d(() => {
|
|
55
|
+
var f, a;
|
|
56
|
+
return [((f = o.value) == null ? void 0 : f.salt) || "", (a = t.value) == null ? void 0 : a.id, s.value, T.value];
|
|
57
|
+
}), () => {
|
|
58
|
+
const {
|
|
59
|
+
salt: f = "",
|
|
60
|
+
override: a = x,
|
|
61
|
+
formatToken: h,
|
|
62
|
+
getComputedToken: l
|
|
63
|
+
} = o.value || {}, u = l ? l(c.value, a, t.value) : N(c.value, a, t.value, h), i = S(u, f);
|
|
64
|
+
u._tokenKey = i, _(i);
|
|
65
|
+
const v = `${E}-${p(i)}`;
|
|
66
|
+
return u._hashId = v, [u, v];
|
|
67
|
+
}, (f) => {
|
|
68
|
+
var a;
|
|
69
|
+
K(f[0]._tokenKey, (a = n.value) == null ? void 0 : a.cache.instanceId);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
N as g,
|
|
74
|
+
p as m,
|
|
75
|
+
j as u
|
|
76
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useStyleInject as C } from "../StyleContext.mjs";
|
|
2
|
+
import { shallowRef as f, watchEffect as d, watch as v, onBeforeUnmount as x } from "vue";
|
|
3
|
+
function y(i, h, m, u) {
|
|
4
|
+
const n = C(), t = f(""), r = f();
|
|
5
|
+
d(() => {
|
|
6
|
+
t.value = [i, ...h.value].join("%");
|
|
7
|
+
});
|
|
8
|
+
const s = (l) => {
|
|
9
|
+
n.value.cache.update(l, (e) => {
|
|
10
|
+
const [a = 0, c] = e || [];
|
|
11
|
+
return a - 1 === 0 ? (u == null || u(c, !1), null) : [a - 1, c];
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
return v(t, (l, e) => {
|
|
15
|
+
e && s(e), n.value.cache.update(l, (a) => {
|
|
16
|
+
const [c = 0, o] = a || [], p = o || m();
|
|
17
|
+
return [c + 1, p];
|
|
18
|
+
}), r.value = n.value.cache.get(t.value)[1];
|
|
19
|
+
}, {
|
|
20
|
+
immediate: !0
|
|
21
|
+
}), x(() => {
|
|
22
|
+
s(t.value);
|
|
23
|
+
}), r;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
y as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import r from "../../../../vc-util/Dom/canUseDom.mjs";
|
|
2
|
+
import { ATTR_MARK as u } from "../../StyleContext.mjs";
|
|
3
|
+
const l = "data-ant-cssinjs-cache-path", f = "_FILE_STYLE__";
|
|
4
|
+
function h(t) {
|
|
5
|
+
return Object.keys(t).map((e) => {
|
|
6
|
+
const n = t[e];
|
|
7
|
+
return `${e}:${n}`;
|
|
8
|
+
}).join(";");
|
|
9
|
+
}
|
|
10
|
+
let o, s = !0;
|
|
11
|
+
function S(t, e = !0) {
|
|
12
|
+
o = t, s = e;
|
|
13
|
+
}
|
|
14
|
+
function m() {
|
|
15
|
+
var t;
|
|
16
|
+
if (!o && (o = {}, r())) {
|
|
17
|
+
const e = document.createElement("div");
|
|
18
|
+
e.className = l, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
19
|
+
let n = getComputedStyle(e).content || "";
|
|
20
|
+
n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((c) => {
|
|
21
|
+
const [a, d] = c.split(":");
|
|
22
|
+
o[a] = d;
|
|
23
|
+
});
|
|
24
|
+
const i = document.querySelector(`style[${l}]`);
|
|
25
|
+
i && (s = !1, (t = i.parentNode) == null || t.removeChild(i)), document.body.removeChild(e);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function _(t) {
|
|
29
|
+
return m(), !!o[t];
|
|
30
|
+
}
|
|
31
|
+
function C(t) {
|
|
32
|
+
const e = o[t];
|
|
33
|
+
let n = null;
|
|
34
|
+
if (e && r())
|
|
35
|
+
if (s)
|
|
36
|
+
n = f;
|
|
37
|
+
else {
|
|
38
|
+
const i = document.querySelector(`style[${u}="${o[t]}"]`);
|
|
39
|
+
i ? n = i.innerHTML : delete o[t];
|
|
40
|
+
}
|
|
41
|
+
return [n, e];
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
l as ATTR_CACHE_MAP,
|
|
45
|
+
f as CSS_FILE_STYLE,
|
|
46
|
+
_ as existPath,
|
|
47
|
+
C as getStyleAndHash,
|
|
48
|
+
m as prepare,
|
|
49
|
+
S as reset,
|
|
50
|
+
h as serialize
|
|
51
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../useCacheToken.tsx2.mjs";
|
|
2
|
+
import { _ as u, u as f, e as n, n as y, p as S, a as c } from "./index.tsx2.mjs";
|
|
3
|
+
import "../../StyleContext.mjs";
|
|
4
|
+
import "../../util.mjs";
|
|
5
|
+
import "../useGlobalCache.mjs";
|
|
6
|
+
import "../../../../vc-util/Dom/dynamicCSS.mjs";
|
|
7
|
+
import "vue";
|
|
8
|
+
import "../../../../vc-util/Dom/canUseDom.mjs";
|
|
9
|
+
import "./cacheMapUtil.mjs";
|
|
10
|
+
export {
|
|
11
|
+
u as _cf,
|
|
12
|
+
f as default,
|
|
13
|
+
n as extractStyle,
|
|
14
|
+
y as normalizeStyle,
|
|
15
|
+
S as parseStyle,
|
|
16
|
+
c as uniqueHash
|
|
17
|
+
};
|