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.
Files changed (518) hide show
  1. package/dist/index.umd.js +19 -198
  2. package/es/_util/cssinjs/Cache.mjs +16 -0
  3. package/es/_util/cssinjs/Keyframes.mjs +11 -0
  4. package/es/_util/cssinjs/StyleContext.mjs +116 -0
  5. package/es/_util/cssinjs/hooks/useCSSVarRegister.mjs +47 -0
  6. package/es/_util/cssinjs/hooks/useCacheToken.mjs +9 -0
  7. package/es/_util/cssinjs/hooks/useCacheToken.tsx2.mjs +76 -0
  8. package/es/_util/cssinjs/hooks/useGlobalCache.mjs +27 -0
  9. package/es/_util/cssinjs/hooks/useHMR.mjs +7 -0
  10. package/es/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.mjs +51 -0
  11. package/es/_util/cssinjs/hooks/useStyleRegister/index.mjs +17 -0
  12. package/es/_util/cssinjs/hooks/useStyleRegister/index.tsx2.mjs +541 -0
  13. package/es/_util/cssinjs/index.mjs +59 -0
  14. package/es/_util/cssinjs/linters/contentQuotesLinter.mjs +13 -0
  15. package/es/_util/cssinjs/linters/hashedAnimationLinter.mjs +10 -0
  16. package/es/_util/cssinjs/linters/index.mjs +12 -0
  17. package/es/_util/cssinjs/linters/interface.mjs +1 -0
  18. package/es/_util/cssinjs/linters/legacyNotSelectorLinter.mjs +15 -0
  19. package/es/_util/cssinjs/linters/logicalPropertiesLinter.mjs +61 -0
  20. package/es/_util/cssinjs/linters/parentSelectorLinter.mjs +7 -0
  21. package/es/_util/cssinjs/linters/utils.mjs +11 -0
  22. package/es/_util/cssinjs/theme/Theme.mjs +18 -0
  23. package/es/_util/cssinjs/theme/ThemeCache.mjs +72 -0
  24. package/es/_util/cssinjs/theme/createTheme.mjs +10 -0
  25. package/es/_util/cssinjs/theme/index.mjs +8 -0
  26. package/es/_util/cssinjs/theme/interface.mjs +1 -0
  27. package/es/_util/cssinjs/transformers/interface.mjs +1 -0
  28. package/es/_util/cssinjs/transformers/legacyLogicalProperties.mjs +92 -0
  29. package/es/_util/cssinjs/transformers/px2rem.mjs +31 -0
  30. package/es/_util/cssinjs/util.mjs +102 -0
  31. package/es/_util/cssinjs-utils/_util/hooks/useUniqueMemo.mjs +55 -0
  32. package/es/_util/cssinjs-utils/hooks/useCSP.mjs +4 -0
  33. package/es/_util/cssinjs-utils/hooks/usePrefix.mjs +1 -0
  34. package/es/_util/cssinjs-utils/hooks/useToken.mjs +1 -0
  35. package/es/_util/cssinjs-utils/index.mjs +10 -0
  36. package/es/_util/cssinjs-utils/interface/components.mjs +1 -0
  37. package/es/_util/cssinjs-utils/interface/index.mjs +1 -0
  38. package/es/_util/cssinjs-utils/util/calc/CSSCalculator.mjs +35 -0
  39. package/es/_util/cssinjs-utils/util/calc/NumCalculator.mjs +24 -0
  40. package/es/_util/cssinjs-utils/util/calc/calculator.mjs +5 -0
  41. package/es/_util/cssinjs-utils/util/calc/index.mjs +9 -0
  42. package/es/_util/cssinjs-utils/util/genStyleUtils.mjs +188 -0
  43. package/es/_util/cssinjs-utils/util/getCompVarPrefix.mjs +7 -0
  44. package/es/_util/cssinjs-utils/util/getComponentToken.mjs +18 -0
  45. package/es/_util/cssinjs-utils/util/getDefaultComponentToken.mjs +9 -0
  46. package/es/_util/cssinjs-utils/util/maxmin.mjs +15 -0
  47. package/es/_util/cssinjs-utils/util/statistic.mjs +45 -0
  48. package/es/_util/getScrollBarSize.mjs +33 -0
  49. package/es/_util/getValue.mjs +11 -0
  50. package/es/_util/hooks/use-event-callback.mjs +10 -0
  51. package/es/_util/hooks/use-state.mjs +11 -0
  52. package/es/_util/hooks/use-x-component-config.mjs +17 -0
  53. package/es/_util/hooks/useMergedState.mjs +21 -0
  54. package/es/_util/motion.mjs +23 -0
  55. package/es/_util/pick-attrs.mjs +43 -0
  56. package/es/_util/setStyle.mjs +11 -0
  57. package/es/_util/supportsPassive.mjs +14 -0
  58. package/es/_util/transition.mjs +75 -0
  59. package/es/_util/type.mjs +48 -0
  60. package/es/_util/warning.mjs +45 -0
  61. package/es/attachments/Attachments.mjs +4 -0
  62. package/es/attachments/Attachments2.mjs +255 -0
  63. package/es/attachments/DropArea.mjs +58 -0
  64. package/es/attachments/FileList/AudioIcon.mjs +5 -0
  65. package/es/attachments/FileList/AudioIcon2.mjs +35 -0
  66. package/es/attachments/FileList/FileList.mjs +4 -0
  67. package/es/attachments/FileList/FileList2.mjs +1574 -0
  68. package/es/attachments/FileList/FileListCard.mjs +168 -0
  69. package/es/attachments/FileList/Progress.mjs +49 -0
  70. package/es/attachments/FileList/VideoIcon.mjs +30 -0
  71. package/es/attachments/FileList/index.mjs +6 -0
  72. package/es/attachments/PlaceholderUploader.mjs +79 -0
  73. package/es/attachments/SilentUploader.mjs +27 -0
  74. package/es/attachments/context.mjs +32 -0
  75. package/es/attachments/index.mjs +12 -0
  76. package/es/attachments/interface.mjs +1 -0
  77. package/es/attachments/style/fileCard.mjs +157 -0
  78. package/es/attachments/style/index.mjs +584 -0
  79. package/es/attachments/util.mjs +31 -0
  80. package/es/bubble/Bubble.mjs +126 -0
  81. package/es/bubble/BubbleList.mjs +136 -0
  82. package/es/bubble/context.mjs +31 -0
  83. package/es/bubble/hooks/useDisplayData.mjs +36 -0
  84. package/es/bubble/hooks/useListData.mjs +18 -0
  85. package/es/bubble/hooks/useTypedEffect.mjs +24 -0
  86. package/es/bubble/hooks/useTypingConfig.mjs +24 -0
  87. package/es/bubble/index.mjs +10 -0
  88. package/es/bubble/interface.mjs +1 -0
  89. package/es/bubble/loading.mjs +25 -0
  90. package/es/bubble/style/content.mjs +59 -0
  91. package/es/bubble/style/index.mjs +148 -0
  92. package/es/bubble/style/list.mjs +14 -0
  93. package/es/conversations/Conversations.mjs +105 -0
  94. package/es/conversations/ConversationsItem.mjs +89 -0
  95. package/es/conversations/GroupTitle.mjs +22 -0
  96. package/es/conversations/context.mjs +31 -0
  97. package/es/conversations/hooks/useGroupable.mjs +48 -0
  98. package/es/conversations/index.mjs +5 -0
  99. package/es/conversations/interface.mjs +1 -0
  100. package/es/conversations/style/index.mjs +103 -0
  101. package/es/index.mjs +38 -0
  102. package/es/prompts/Prompts.mjs +116 -0
  103. package/es/prompts/index.mjs +5 -0
  104. package/es/prompts/interface.mjs +1 -0
  105. package/es/prompts/style/index.mjs +143 -0
  106. package/es/sender/Sender.mjs +251 -0
  107. package/es/sender/SenderHeader.mjs +82 -0
  108. package/es/sender/StopLoading.mjs +52 -0
  109. package/es/sender/components/ActionButton/context.mjs +31 -0
  110. package/es/sender/components/ActionButton/index.mjs +65 -0
  111. package/es/sender/components/ClearButton.mjs +41 -0
  112. package/es/sender/components/LoadingButton.mjs +58 -0
  113. package/es/sender/components/SendButton.mjs +45 -0
  114. package/es/sender/components/SpeechButton/RecordingIcon.mjs +49 -0
  115. package/es/sender/components/SpeechButton/index.mjs +59 -0
  116. package/es/sender/context.mjs +31 -0
  117. package/es/sender/index.mjs +9 -0
  118. package/es/sender/interface.mjs +1 -0
  119. package/es/sender/style/header.mjs +49 -0
  120. package/es/sender/style/index.mjs +147 -0
  121. package/es/sender/useSpeech.mjs +55 -0
  122. package/es/suggestion/Suggestion.mjs +93 -0
  123. package/es/suggestion/index.mjs +5 -0
  124. package/es/suggestion/interface.mjs +1 -0
  125. package/es/suggestion/style/index.mjs +41 -0
  126. package/es/suggestion/useActive.mjs +56 -0
  127. package/es/theme/components.mjs +1 -0
  128. package/es/theme/cssinjs-utils.mjs +1 -0
  129. package/es/theme/genStyleUtils.mjs +32 -0
  130. package/es/theme/index.mjs +4 -0
  131. package/es/theme/patch-antd.mjs +33 -0
  132. package/es/theme/useToken.mjs +351 -0
  133. package/es/thought-chain/ThoughtChain.mjs +107 -0
  134. package/es/thought-chain/context.mjs +31 -0
  135. package/es/thought-chain/hooks/useCollapsible.mjs +36 -0
  136. package/es/thought-chain/index.mjs +5 -0
  137. package/es/thought-chain/interface.mjs +4 -0
  138. package/es/thought-chain/item.mjs +96 -0
  139. package/es/thought-chain/style/index.mjs +215 -0
  140. package/es/transition-collapse/TransitionCollapse.mjs +49 -0
  141. package/es/transition-collapse/index.mjs +10 -0
  142. package/es/transition-collapse/style/index.mjs +22 -0
  143. package/es/type-utility.mjs +1 -0
  144. package/es/use-x-agent/index.mjs +7 -0
  145. package/es/use-x-agent/use-x-agent.mjs +49 -0
  146. package/es/use-x-chat/index.mjs +5 -0
  147. package/es/use-x-chat/use-x-chat.mjs +97 -0
  148. package/es/use-x-chat/useSyncState.mjs +12 -0
  149. package/es/vc-util/Dom/addEventListener.mjs +15 -0
  150. package/es/vc-util/Dom/canUseDom.mjs +6 -0
  151. package/es/vc-util/Dom/class.mjs +19 -0
  152. package/es/vc-util/Dom/contains.mjs +6 -0
  153. package/es/vc-util/Dom/css.mjs +86 -0
  154. package/es/vc-util/Dom/dynamicCSS.mjs +70 -0
  155. package/es/vc-util/Dom/isVisible.mjs +20 -0
  156. package/es/vc-util/Dom/scrollLocker.mjs +66 -0
  157. package/es/vc-util/devWarning.mjs +9 -0
  158. package/es/vc-util/get.mjs +12 -0
  159. package/es/vc-util/isEqual.mjs +32 -0
  160. package/es/vc-util/isMobile.mjs +13 -0
  161. package/es/vc-util/set.mjs +14 -0
  162. package/es/vc-util/warning.mjs +26 -0
  163. package/es/version/index.mjs +4 -0
  164. package/es/version/token-meta.mjs +7 -0
  165. package/es/version/token.mjs +21 -0
  166. package/es/version/version.mjs +4 -0
  167. package/es/welcome/Welcome.mjs +91 -0
  168. package/es/welcome/index.mjs +5 -0
  169. package/es/welcome/interface.mjs +1 -0
  170. package/es/welcome/style/index.mjs +69 -0
  171. package/es/x-provider/context.mjs +31 -0
  172. package/es/x-provider/hooks/use-x-provider-context.mjs +21 -0
  173. package/es/x-provider/index.mjs +8 -0
  174. package/es/x-provider/index2.mjs +81 -0
  175. package/es/x-request/index.mjs +7 -0
  176. package/es/x-request/x-fetch.mjs +22 -0
  177. package/es/x-request/x-request.mjs +83 -0
  178. package/es/x-stream/index.mjs +5 -0
  179. package/es/x-stream/x-stream.mjs +64 -0
  180. package/lib/_util/cssinjs/Cache.js +1 -0
  181. package/lib/_util/cssinjs/Keyframes.js +1 -0
  182. package/lib/_util/cssinjs/StyleContext.js +1 -0
  183. package/lib/_util/cssinjs/hooks/useCSSVarRegister.js +1 -0
  184. package/lib/_util/cssinjs/hooks/useCacheToken.js +1 -0
  185. package/lib/_util/cssinjs/hooks/useCacheToken.tsx2.js +1 -0
  186. package/lib/_util/cssinjs/hooks/useGlobalCache.js +1 -0
  187. package/lib/_util/cssinjs/hooks/useHMR.js +1 -0
  188. package/lib/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.js +1 -0
  189. package/lib/_util/cssinjs/hooks/useStyleRegister/index.js +1 -0
  190. package/lib/_util/cssinjs/hooks/useStyleRegister/index.tsx2.js +2 -0
  191. package/lib/_util/cssinjs/index.js +1 -0
  192. package/lib/_util/cssinjs/linters/contentQuotesLinter.js +1 -0
  193. package/lib/_util/cssinjs/linters/hashedAnimationLinter.js +1 -0
  194. package/lib/_util/cssinjs/linters/index.js +1 -0
  195. package/lib/_util/cssinjs/linters/interface.js +1 -0
  196. package/lib/_util/cssinjs/linters/legacyNotSelectorLinter.js +1 -0
  197. package/lib/_util/cssinjs/linters/logicalPropertiesLinter.js +1 -0
  198. package/lib/_util/cssinjs/linters/parentSelectorLinter.js +1 -0
  199. package/lib/_util/cssinjs/linters/utils.js +1 -0
  200. package/lib/_util/cssinjs/theme/Theme.js +1 -0
  201. package/lib/_util/cssinjs/theme/ThemeCache.js +1 -0
  202. package/lib/_util/cssinjs/theme/createTheme.js +1 -0
  203. package/lib/_util/cssinjs/theme/index.js +1 -0
  204. package/lib/_util/cssinjs/theme/interface.js +1 -0
  205. package/lib/_util/cssinjs/transformers/interface.js +1 -0
  206. package/lib/_util/cssinjs/transformers/legacyLogicalProperties.js +1 -0
  207. package/lib/_util/cssinjs/transformers/px2rem.js +1 -0
  208. package/lib/_util/cssinjs/util.js +1 -0
  209. package/lib/_util/cssinjs-utils/_util/hooks/useUniqueMemo.js +1 -0
  210. package/lib/_util/cssinjs-utils/hooks/useCSP.js +1 -0
  211. package/lib/_util/cssinjs-utils/hooks/usePrefix.js +1 -0
  212. package/lib/_util/cssinjs-utils/hooks/useToken.js +1 -0
  213. package/lib/_util/cssinjs-utils/index.js +1 -0
  214. package/lib/_util/cssinjs-utils/interface/components.js +1 -0
  215. package/lib/_util/cssinjs-utils/interface/index.js +1 -0
  216. package/lib/_util/cssinjs-utils/util/calc/CSSCalculator.js +1 -0
  217. package/lib/_util/cssinjs-utils/util/calc/NumCalculator.js +1 -0
  218. package/lib/_util/cssinjs-utils/util/calc/calculator.js +1 -0
  219. package/lib/_util/cssinjs-utils/util/calc/index.js +1 -0
  220. package/lib/_util/cssinjs-utils/util/genStyleUtils.js +1 -0
  221. package/lib/_util/cssinjs-utils/util/getCompVarPrefix.js +1 -0
  222. package/lib/_util/cssinjs-utils/util/getComponentToken.js +1 -0
  223. package/lib/_util/cssinjs-utils/util/getDefaultComponentToken.js +1 -0
  224. package/lib/_util/cssinjs-utils/util/maxmin.js +1 -0
  225. package/lib/_util/cssinjs-utils/util/statistic.js +1 -0
  226. package/lib/_util/getScrollBarSize.js +1 -0
  227. package/lib/_util/getValue.js +1 -0
  228. package/lib/_util/hooks/use-event-callback.js +1 -0
  229. package/lib/_util/hooks/use-state.js +1 -0
  230. package/lib/_util/hooks/use-x-component-config.js +1 -0
  231. package/lib/_util/hooks/useMergedState.js +1 -0
  232. package/lib/_util/motion.js +1 -0
  233. package/lib/_util/pick-attrs.js +18 -0
  234. package/lib/_util/setStyle.js +1 -0
  235. package/lib/_util/supportsPassive.js +1 -0
  236. package/lib/_util/transition.js +1 -0
  237. package/lib/_util/type.js +1 -0
  238. package/lib/_util/warning.js +1 -0
  239. package/lib/attachments/Attachments.js +1 -0
  240. package/lib/attachments/Attachments2.js +5 -0
  241. package/lib/attachments/DropArea.js +1 -0
  242. package/lib/attachments/FileList/AudioIcon.js +1 -0
  243. package/lib/attachments/FileList/AudioIcon2.js +1 -0
  244. package/lib/attachments/FileList/FileList.js +1 -0
  245. package/lib/attachments/FileList/FileList2.js +57 -0
  246. package/lib/attachments/FileList/FileListCard.js +1 -0
  247. package/lib/attachments/FileList/Progress.js +1 -0
  248. package/lib/attachments/FileList/VideoIcon.js +1 -0
  249. package/lib/attachments/FileList/index.js +1 -0
  250. package/lib/attachments/PlaceholderUploader.js +1 -0
  251. package/lib/attachments/SilentUploader.js +1 -0
  252. package/lib/attachments/context.js +1 -0
  253. package/lib/attachments/index.js +1 -0
  254. package/lib/attachments/interface.js +1 -0
  255. package/lib/attachments/style/fileCard.js +1 -0
  256. package/lib/attachments/style/index.js +1 -0
  257. package/lib/attachments/util.js +1 -0
  258. package/lib/bubble/Bubble.js +1 -0
  259. package/lib/bubble/BubbleList.js +1 -0
  260. package/lib/bubble/context.js +1 -0
  261. package/lib/bubble/hooks/useDisplayData.js +1 -0
  262. package/lib/bubble/hooks/useListData.js +1 -0
  263. package/lib/bubble/hooks/useTypedEffect.js +1 -0
  264. package/lib/bubble/hooks/useTypingConfig.js +1 -0
  265. package/lib/bubble/index.js +1 -0
  266. package/lib/bubble/interface.js +1 -0
  267. package/lib/bubble/loading.js +1 -0
  268. package/lib/bubble/style/content.js +1 -0
  269. package/lib/bubble/style/index.js +1 -0
  270. package/lib/bubble/style/list.js +1 -0
  271. package/lib/conversations/Conversations.js +1 -0
  272. package/lib/conversations/ConversationsItem.js +1 -0
  273. package/lib/conversations/GroupTitle.js +1 -0
  274. package/lib/conversations/context.js +1 -0
  275. package/lib/conversations/hooks/useGroupable.js +1 -0
  276. package/lib/conversations/index.js +1 -0
  277. package/lib/conversations/interface.js +1 -0
  278. package/lib/conversations/style/index.js +1 -0
  279. package/lib/index.js +1 -0
  280. package/lib/prompts/Prompts.js +1 -0
  281. package/lib/prompts/index.js +1 -0
  282. package/lib/prompts/interface.js +1 -0
  283. package/lib/prompts/style/index.js +1 -0
  284. package/lib/sender/Sender.js +1 -0
  285. package/lib/sender/SenderHeader.js +1 -0
  286. package/lib/sender/StopLoading.js +1 -0
  287. package/lib/sender/components/ActionButton/context.js +1 -0
  288. package/lib/sender/components/ActionButton/index.js +1 -0
  289. package/lib/sender/components/ClearButton.js +1 -0
  290. package/lib/sender/components/LoadingButton.js +1 -0
  291. package/lib/sender/components/SendButton.js +1 -0
  292. package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -0
  293. package/lib/sender/components/SpeechButton/index.js +1 -0
  294. package/lib/sender/context.js +1 -0
  295. package/lib/sender/index.js +1 -0
  296. package/lib/sender/interface.js +1 -0
  297. package/lib/sender/style/header.js +1 -0
  298. package/lib/sender/style/index.js +1 -0
  299. package/lib/sender/useSpeech.js +1 -0
  300. package/lib/suggestion/Suggestion.js +1 -0
  301. package/lib/suggestion/index.js +1 -0
  302. package/lib/suggestion/interface.js +1 -0
  303. package/lib/suggestion/style/index.js +1 -0
  304. package/lib/suggestion/useActive.js +1 -0
  305. package/lib/theme/components.js +1 -0
  306. package/lib/theme/cssinjs-utils.js +1 -0
  307. package/lib/theme/genStyleUtils.js +1 -0
  308. package/lib/theme/index.js +1 -0
  309. package/lib/theme/patch-antd.js +1 -0
  310. package/lib/theme/useToken.js +35 -0
  311. package/lib/thought-chain/ThoughtChain.js +1 -0
  312. package/lib/thought-chain/context.js +1 -0
  313. package/lib/thought-chain/hooks/useCollapsible.js +1 -0
  314. package/lib/thought-chain/index.js +1 -0
  315. package/lib/thought-chain/interface.js +1 -0
  316. package/lib/thought-chain/item.js +1 -0
  317. package/lib/thought-chain/style/index.js +1 -0
  318. package/lib/transition-collapse/TransitionCollapse.js +1 -0
  319. package/lib/transition-collapse/index.js +1 -0
  320. package/lib/transition-collapse/style/index.js +1 -0
  321. package/lib/type-utility.js +1 -0
  322. package/lib/use-x-agent/index.js +1 -0
  323. package/lib/use-x-agent/use-x-agent.js +1 -0
  324. package/lib/use-x-chat/index.js +1 -0
  325. package/lib/use-x-chat/use-x-chat.js +1 -0
  326. package/lib/use-x-chat/useSyncState.js +1 -0
  327. package/lib/vc-util/Dom/addEventListener.js +1 -0
  328. package/lib/vc-util/Dom/canUseDom.js +1 -0
  329. package/lib/vc-util/Dom/class.js +1 -0
  330. package/lib/vc-util/Dom/contains.js +1 -0
  331. package/lib/vc-util/Dom/css.js +1 -0
  332. package/lib/vc-util/Dom/dynamicCSS.js +1 -0
  333. package/lib/vc-util/Dom/isVisible.js +1 -0
  334. package/lib/vc-util/Dom/scrollLocker.js +1 -0
  335. package/lib/vc-util/devWarning.js +1 -0
  336. package/lib/vc-util/get.js +1 -0
  337. package/lib/vc-util/isEqual.js +1 -0
  338. package/lib/vc-util/isMobile.js +1 -0
  339. package/lib/vc-util/set.js +1 -0
  340. package/lib/vc-util/warning.js +1 -0
  341. package/lib/version/index.js +1 -0
  342. package/lib/version/token-meta.js +1 -0
  343. package/lib/version/token.js +1 -0
  344. package/lib/version/version.js +1 -0
  345. package/lib/welcome/Welcome.js +1 -0
  346. package/lib/welcome/index.js +1 -0
  347. package/lib/welcome/interface.js +1 -0
  348. package/lib/welcome/style/index.js +1 -0
  349. package/lib/x-provider/context.js +1 -0
  350. package/lib/x-provider/hooks/use-x-provider-context.js +1 -0
  351. package/lib/x-provider/index.js +1 -0
  352. package/lib/x-provider/index2.js +1 -0
  353. package/lib/x-request/index.js +1 -0
  354. package/lib/x-request/x-fetch.js +1 -0
  355. package/lib/x-request/x-request.js +1 -0
  356. package/lib/x-stream/index.js +1 -0
  357. package/lib/x-stream/x-stream.js +4 -0
  358. package/package.json +21 -13
  359. package/typings/bubble/Bubble.vue.d.ts +37 -0
  360. package/typings/bubble/index.d.ts +258 -0
  361. package/{dist/typings → typings}/bubble/interface.d.ts +6 -4
  362. package/{dist/typings → typings}/conversations/interface.d.ts +2 -1
  363. package/{dist/typings → typings}/sender/interface.d.ts +1 -1
  364. package/{dist/typings → typings}/x-provider/context.d.ts +9 -9
  365. package/dist/index.mjs +0 -34154
  366. package/dist/typings/bubble/Bubble.vue.d.ts +0 -35
  367. package/dist/typings/bubble/index.d.ts +0 -51
  368. /package/{dist/resolver → resolver-dist}/index.d.ts +0 -0
  369. /package/{dist/resolver → resolver-dist}/index.js +0 -0
  370. /package/{dist/typings → typings}/_util/cssinjs/Cache.d.ts +0 -0
  371. /package/{dist/typings → typings}/_util/cssinjs/Keyframes.d.ts +0 -0
  372. /package/{dist/typings → typings}/_util/cssinjs/StyleContext.d.ts +0 -0
  373. /package/{dist/typings → typings}/_util/cssinjs/hooks/useCSSVarRegister.d.ts +0 -0
  374. /package/{dist/typings → typings}/_util/cssinjs/hooks/useCacheToken.d.ts +0 -0
  375. /package/{dist/typings → typings}/_util/cssinjs/hooks/useGlobalCache.d.ts +0 -0
  376. /package/{dist/typings → typings}/_util/cssinjs/hooks/useHMR.d.ts +0 -0
  377. /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +0 -0
  378. /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/index.d.ts +0 -0
  379. /package/{dist/typings → typings}/_util/cssinjs/index.d.ts +0 -0
  380. /package/{dist/typings → typings}/_util/cssinjs/linters/contentQuotesLinter.d.ts +0 -0
  381. /package/{dist/typings → typings}/_util/cssinjs/linters/hashedAnimationLinter.d.ts +0 -0
  382. /package/{dist/typings → typings}/_util/cssinjs/linters/index.d.ts +0 -0
  383. /package/{dist/typings → typings}/_util/cssinjs/linters/interface.d.ts +0 -0
  384. /package/{dist/typings → typings}/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +0 -0
  385. /package/{dist/typings → typings}/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +0 -0
  386. /package/{dist/typings → typings}/_util/cssinjs/linters/parentSelectorLinter.d.ts +0 -0
  387. /package/{dist/typings → typings}/_util/cssinjs/linters/utils.d.ts +0 -0
  388. /package/{dist/typings → typings}/_util/cssinjs/theme/Theme.d.ts +0 -0
  389. /package/{dist/typings → typings}/_util/cssinjs/theme/ThemeCache.d.ts +0 -0
  390. /package/{dist/typings → typings}/_util/cssinjs/theme/createTheme.d.ts +0 -0
  391. /package/{dist/typings → typings}/_util/cssinjs/theme/index.d.ts +0 -0
  392. /package/{dist/typings → typings}/_util/cssinjs/theme/interface.d.ts +0 -0
  393. /package/{dist/typings → typings}/_util/cssinjs/transformers/interface.d.ts +0 -0
  394. /package/{dist/typings → typings}/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +0 -0
  395. /package/{dist/typings → typings}/_util/cssinjs/transformers/px2rem.d.ts +0 -0
  396. /package/{dist/typings → typings}/_util/cssinjs/util.d.ts +0 -0
  397. /package/{dist/typings → typings}/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +0 -0
  398. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useCSP.d.ts +0 -0
  399. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/usePrefix.d.ts +0 -0
  400. /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useToken.d.ts +0 -0
  401. /package/{dist/typings → typings}/_util/cssinjs-utils/index.d.ts +0 -0
  402. /package/{dist/typings → typings}/_util/cssinjs-utils/interface/components.d.ts +0 -0
  403. /package/{dist/typings → typings}/_util/cssinjs-utils/interface/index.d.ts +0 -0
  404. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +0 -0
  405. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +0 -0
  406. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/calculator.d.ts +0 -0
  407. /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/index.d.ts +0 -0
  408. /package/{dist/typings → typings}/_util/cssinjs-utils/util/genStyleUtils.d.ts +0 -0
  409. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +0 -0
  410. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getComponentToken.d.ts +0 -0
  411. /package/{dist/typings → typings}/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +0 -0
  412. /package/{dist/typings → typings}/_util/cssinjs-utils/util/maxmin.d.ts +0 -0
  413. /package/{dist/typings → typings}/_util/cssinjs-utils/util/statistic.d.ts +0 -0
  414. /package/{dist/typings → typings}/_util/getValue.d.ts +0 -0
  415. /package/{dist/typings → typings}/_util/hooks/use-event-callback.d.ts +0 -0
  416. /package/{dist/typings → typings}/_util/hooks/use-state.d.ts +0 -0
  417. /package/{dist/typings → typings}/_util/hooks/use-x-component-config.d.ts +0 -0
  418. /package/{dist/typings → typings}/_util/hooks/useMergedState.d.ts +0 -0
  419. /package/{dist/typings → typings}/_util/pick-attrs.d.ts +0 -0
  420. /package/{dist/typings → typings}/_util/type.d.ts +0 -0
  421. /package/{dist/typings → typings}/_util/warning.d.ts +0 -0
  422. /package/{dist/typings → typings}/attachments/Attachments.vue.d.ts +0 -0
  423. /package/{dist/typings → typings}/attachments/DropArea.vue.d.ts +0 -0
  424. /package/{dist/typings → typings}/attachments/FileList/AudioIcon.vue.d.ts +0 -0
  425. /package/{dist/typings → typings}/attachments/FileList/FileList.vue.d.ts +0 -0
  426. /package/{dist/typings → typings}/attachments/FileList/FileListCard.vue.d.ts +0 -0
  427. /package/{dist/typings → typings}/attachments/FileList/VideoIcon.vue.d.ts +0 -0
  428. /package/{dist/typings → typings}/attachments/FileList/index.d.ts +0 -0
  429. /package/{dist/typings → typings}/attachments/PlaceholderUploader.vue.d.ts +0 -0
  430. /package/{dist/typings → typings}/attachments/SilentUploader.vue.d.ts +0 -0
  431. /package/{dist/typings → typings}/attachments/context.d.ts +0 -0
  432. /package/{dist/typings → typings}/attachments/index.d.ts +0 -0
  433. /package/{dist/typings → typings}/attachments/interface.d.ts +0 -0
  434. /package/{dist/typings → typings}/attachments/style/fileCard.d.ts +0 -0
  435. /package/{dist/typings → typings}/attachments/style/index.d.ts +0 -0
  436. /package/{dist/typings → typings}/attachments/util.d.ts +0 -0
  437. /package/{dist/typings → typings}/bubble/BubbleList.vue.d.ts +0 -0
  438. /package/{dist/typings → typings}/bubble/context.d.ts +0 -0
  439. /package/{dist/typings → typings}/bubble/hooks/useDisplayData.d.ts +0 -0
  440. /package/{dist/typings → typings}/bubble/hooks/useListData.d.ts +0 -0
  441. /package/{dist/typings → typings}/bubble/hooks/useTypedEffect.d.ts +0 -0
  442. /package/{dist/typings → typings}/bubble/hooks/useTypingConfig.d.ts +0 -0
  443. /package/{dist/typings → typings}/bubble/loading.vue.d.ts +0 -0
  444. /package/{dist/typings → typings}/bubble/style/content.d.ts +0 -0
  445. /package/{dist/typings → typings}/bubble/style/index.d.ts +0 -0
  446. /package/{dist/typings → typings}/bubble/style/list.d.ts +0 -0
  447. /package/{dist/typings → typings}/conversations/Conversations.vue.d.ts +0 -0
  448. /package/{dist/typings → typings}/conversations/ConversationsItem.vue.d.ts +0 -0
  449. /package/{dist/typings → typings}/conversations/GroupTitle.vue.d.ts +0 -0
  450. /package/{dist/typings → typings}/conversations/context.d.ts +0 -0
  451. /package/{dist/typings → typings}/conversations/hooks/useGroupable.d.ts +0 -0
  452. /package/{dist/typings → typings}/conversations/index.d.ts +0 -0
  453. /package/{dist/typings → typings}/conversations/style/index.d.ts +0 -0
  454. /package/{dist/typings → typings}/index.d.ts +0 -0
  455. /package/{dist/typings → typings}/prompts/Prompts.vue.d.ts +0 -0
  456. /package/{dist/typings → typings}/prompts/index.d.ts +0 -0
  457. /package/{dist/typings → typings}/prompts/interface.d.ts +0 -0
  458. /package/{dist/typings → typings}/prompts/style/index.d.ts +0 -0
  459. /package/{dist/typings → typings}/sender/Sender.vue.d.ts +0 -0
  460. /package/{dist/typings → typings}/sender/SenderHeader.vue.d.ts +0 -0
  461. /package/{dist/typings → typings}/sender/StopLoading.vue.d.ts +0 -0
  462. /package/{dist/typings → typings}/sender/components/ActionButton/context.d.ts +0 -0
  463. /package/{dist/typings → typings}/sender/components/ActionButton/index.vue.d.ts +0 -0
  464. /package/{dist/typings → typings}/sender/components/ClearButton.vue.d.ts +0 -0
  465. /package/{dist/typings → typings}/sender/components/LoadingButton.vue.d.ts +0 -0
  466. /package/{dist/typings → typings}/sender/components/SendButton.vue.d.ts +0 -0
  467. /package/{dist/typings → typings}/sender/components/SpeechButton/RecordingIcon.vue.d.ts +0 -0
  468. /package/{dist/typings → typings}/sender/components/SpeechButton/index.vue.d.ts +0 -0
  469. /package/{dist/typings → typings}/sender/context.d.ts +0 -0
  470. /package/{dist/typings → typings}/sender/index.d.ts +0 -0
  471. /package/{dist/typings → typings}/sender/style/header.d.ts +0 -0
  472. /package/{dist/typings → typings}/sender/style/index.d.ts +0 -0
  473. /package/{dist/typings → typings}/sender/useSpeech.d.ts +0 -0
  474. /package/{dist/typings → typings}/suggestion/Suggestion.vue.d.ts +0 -0
  475. /package/{dist/typings → typings}/suggestion/index.d.ts +0 -0
  476. /package/{dist/typings → typings}/suggestion/interface.d.ts +0 -0
  477. /package/{dist/typings → typings}/suggestion/style/index.d.ts +0 -0
  478. /package/{dist/typings → typings}/suggestion/useActive.d.ts +0 -0
  479. /package/{dist/typings → typings}/theme/components.d.ts +0 -0
  480. /package/{dist/typings → typings}/theme/cssinjs-utils.d.ts +0 -0
  481. /package/{dist/typings → typings}/theme/genStyleUtils.d.ts +0 -0
  482. /package/{dist/typings → typings}/theme/index.d.ts +0 -0
  483. /package/{dist/typings → typings}/theme/patch-antd.d.ts +0 -0
  484. /package/{dist/typings → typings}/theme/useToken.d.ts +0 -0
  485. /package/{dist/typings → typings}/thought-chain/ThoughtChain.vue.d.ts +0 -0
  486. /package/{dist/typings → typings}/thought-chain/context.d.ts +0 -0
  487. /package/{dist/typings → typings}/thought-chain/hooks/useCollapsible.d.ts +0 -0
  488. /package/{dist/typings → typings}/thought-chain/index.d.ts +0 -0
  489. /package/{dist/typings → typings}/thought-chain/interface.d.ts +0 -0
  490. /package/{dist/typings → typings}/thought-chain/item.vue.d.ts +0 -0
  491. /package/{dist/typings → typings}/thought-chain/style/index.d.ts +0 -0
  492. /package/{dist/typings → typings}/transition-collapse/TransitionCollapse.vue.d.ts +0 -0
  493. /package/{dist/typings → typings}/transition-collapse/index.d.ts +0 -0
  494. /package/{dist/typings → typings}/transition-collapse/style/index.d.ts +0 -0
  495. /package/{dist/typings → typings}/type-utility.d.ts +0 -0
  496. /package/{dist/typings → typings}/use-x-agent/index.d.ts +0 -0
  497. /package/{dist/typings → typings}/use-x-agent/use-x-agent.d.ts +0 -0
  498. /package/{dist/typings → typings}/use-x-chat/index.d.ts +0 -0
  499. /package/{dist/typings → typings}/use-x-chat/use-x-chat.d.ts +0 -0
  500. /package/{dist/typings → typings}/use-x-chat/useSyncState.d.ts +0 -0
  501. /package/{dist/typings → typings}/vc-util/Dom/canUseDom.d.ts +0 -0
  502. /package/{dist/typings → typings}/vc-util/Dom/contains.d.ts +0 -0
  503. /package/{dist/typings → typings}/vc-util/Dom/dynamicCSS.d.ts +0 -0
  504. /package/{dist/typings → typings}/vc-util/warning.d.ts +0 -0
  505. /package/{dist/typings → typings}/version/index.d.ts +0 -0
  506. /package/{dist/typings → typings}/version/version.d.ts +0 -0
  507. /package/{dist/typings → typings}/welcome/Welcome.vue.d.ts +0 -0
  508. /package/{dist/typings → typings}/welcome/index.d.ts +0 -0
  509. /package/{dist/typings → typings}/welcome/interface.d.ts +0 -0
  510. /package/{dist/typings → typings}/welcome/style/index.d.ts +0 -0
  511. /package/{dist/typings → typings}/x-provider/hooks/use-x-provider-context.d.ts +0 -0
  512. /package/{dist/typings → typings}/x-provider/index.d.ts +0 -0
  513. /package/{dist/typings → typings}/x-provider/index.vue.d.ts +0 -0
  514. /package/{dist/typings → typings}/x-request/index.d.ts +0 -0
  515. /package/{dist/typings → typings}/x-request/x-fetch.d.ts +0 -0
  516. /package/{dist/typings → typings}/x-request/x-request.d.ts +0 -0
  517. /package/{dist/typings → typings}/x-stream/index.d.ts +0 -0
  518. /package/{dist/typings → typings}/x-stream/x-stream.d.ts +0 -0
@@ -0,0 +1,541 @@
1
+ import { m as me } from "../useCacheToken.tsx2.mjs";
2
+ import { useStyleInject as de, CSS_IN_JS_INSTANCE as pe, ATTR_TOKEN as ae, ATTR_MARK as H } from "../../StyleContext.mjs";
3
+ import { supportLayer as ye } from "../../util.mjs";
4
+ import Se from "../useGlobalCache.mjs";
5
+ import { updateCSS as X, removeCSS as ve } from "../../../../vc-util/Dom/dynamicCSS.mjs";
6
+ import { computed as V } from "vue";
7
+ import be from "../../../../vc-util/Dom/canUseDom.mjs";
8
+ import { existPath as ge, getStyleAndHash as ke, ATTR_CACHE_MAP as U, serialize as Ce } from "./cacheMapUtil.mjs";
9
+ var we = {
10
+ animationIterationCount: 1,
11
+ aspectRatio: 1,
12
+ borderImageOutset: 1,
13
+ borderImageSlice: 1,
14
+ borderImageWidth: 1,
15
+ boxFlex: 1,
16
+ boxFlexGroup: 1,
17
+ boxOrdinalGroup: 1,
18
+ columnCount: 1,
19
+ columns: 1,
20
+ flex: 1,
21
+ flexGrow: 1,
22
+ flexPositive: 1,
23
+ flexShrink: 1,
24
+ flexNegative: 1,
25
+ flexOrder: 1,
26
+ gridRow: 1,
27
+ gridRowEnd: 1,
28
+ gridRowSpan: 1,
29
+ gridRowStart: 1,
30
+ gridColumn: 1,
31
+ gridColumnEnd: 1,
32
+ gridColumnSpan: 1,
33
+ gridColumnStart: 1,
34
+ msGridRow: 1,
35
+ msGridRowSpan: 1,
36
+ msGridColumn: 1,
37
+ msGridColumnSpan: 1,
38
+ fontWeight: 1,
39
+ lineHeight: 1,
40
+ opacity: 1,
41
+ order: 1,
42
+ orphans: 1,
43
+ scale: 1,
44
+ tabSize: 1,
45
+ widows: 1,
46
+ zIndex: 1,
47
+ zoom: 1,
48
+ WebkitLineClamp: 1,
49
+ // SVG-related properties
50
+ fillOpacity: 1,
51
+ floodOpacity: 1,
52
+ stopOpacity: 1,
53
+ strokeDasharray: 1,
54
+ strokeDashoffset: 1,
55
+ strokeMiterlimit: 1,
56
+ strokeOpacity: 1,
57
+ strokeWidth: 1
58
+ }, ce = "comm", ie = "rule", se = "decl", $e = "@import", Ae = "@keyframes", Ee = "@layer", oe = Math.abs, Z = String.fromCharCode;
59
+ function fe(e) {
60
+ return e.trim();
61
+ }
62
+ function L(e, t, n) {
63
+ return e.replace(t, n);
64
+ }
65
+ function xe(e, t, n) {
66
+ return e.indexOf(t, n);
67
+ }
68
+ function P(e, t) {
69
+ return e.charCodeAt(t) | 0;
70
+ }
71
+ function I(e, t, n) {
72
+ return e.slice(t, n);
73
+ }
74
+ function O(e) {
75
+ return e.length;
76
+ }
77
+ function _e(e) {
78
+ return e.length;
79
+ }
80
+ function z(e, t) {
81
+ return t.push(e), e;
82
+ }
83
+ var K = 1, T = 1, le = 0, E = 0, C = 0, N = "";
84
+ function B(e, t, n, c, u, p, o, m) {
85
+ return { value: e, root: t, parent: n, type: c, props: u, children: p, line: K, column: T, length: o, return: "", siblings: m };
86
+ }
87
+ function Oe() {
88
+ return C;
89
+ }
90
+ function je() {
91
+ return C = E > 0 ? P(N, --E) : 0, T--, C === 10 && (T = 1, K--), C;
92
+ }
93
+ function _() {
94
+ return C = E < le ? P(N, E++) : 0, T++, C === 10 && (T = 1, K++), C;
95
+ }
96
+ function j() {
97
+ return P(N, E);
98
+ }
99
+ function G() {
100
+ return E;
101
+ }
102
+ function D(e, t) {
103
+ return I(N, e, t);
104
+ }
105
+ function M(e) {
106
+ switch (e) {
107
+ // \0 \t \n \r \s whitespace token
108
+ case 0:
109
+ case 9:
110
+ case 10:
111
+ case 13:
112
+ case 32:
113
+ return 5;
114
+ // ! + , / > @ ~ isolate token
115
+ case 33:
116
+ case 43:
117
+ case 44:
118
+ case 47:
119
+ case 62:
120
+ case 64:
121
+ case 126:
122
+ // ; { } breakpoint token
123
+ case 59:
124
+ case 123:
125
+ case 125:
126
+ return 4;
127
+ // : accompanied token
128
+ case 58:
129
+ return 3;
130
+ // " ' ( [ opening delimit token
131
+ case 34:
132
+ case 39:
133
+ case 40:
134
+ case 91:
135
+ return 2;
136
+ // ) ] closing delimit token
137
+ case 41:
138
+ case 93:
139
+ return 1;
140
+ }
141
+ return 0;
142
+ }
143
+ function Re(e) {
144
+ return K = T = 1, le = O(N = e), E = 0, [];
145
+ }
146
+ function Ie(e) {
147
+ return N = "", e;
148
+ }
149
+ function q(e) {
150
+ return fe(D(E - 1, F(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
151
+ }
152
+ function Te(e) {
153
+ for (; (C = j()) && C < 33; )
154
+ _();
155
+ return M(e) > 2 || M(C) > 3 ? "" : " ";
156
+ }
157
+ function Ne(e, t) {
158
+ for (; --t && _() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
159
+ ;
160
+ return D(e, G() + (t < 6 && j() == 32 && _() == 32));
161
+ }
162
+ function F(e) {
163
+ for (; _(); )
164
+ switch (C) {
165
+ // ] ) " '
166
+ case e:
167
+ return E;
168
+ // " '
169
+ case 34:
170
+ case 39:
171
+ e !== 34 && e !== 39 && F(C);
172
+ break;
173
+ // (
174
+ case 40:
175
+ e === 41 && F(e);
176
+ break;
177
+ // \
178
+ case 92:
179
+ _();
180
+ break;
181
+ }
182
+ return E;
183
+ }
184
+ function Pe(e, t) {
185
+ for (; _() && e + C !== 57; )
186
+ if (e + C === 84 && j() === 47)
187
+ break;
188
+ return "/*" + D(t, E - 1) + "*" + Z(e === 47 ? e : _());
189
+ }
190
+ function Me(e) {
191
+ for (; !M(j()); )
192
+ _();
193
+ return D(e, E);
194
+ }
195
+ function ze(e) {
196
+ return Ie(W("", null, null, null, [""], e = Re(e), 0, [0], e));
197
+ }
198
+ function W(e, t, n, c, u, p, o, m, $) {
199
+ for (var i = 0, S = 0, f = o, g = 0, w = 0, k = 0, d = 1, y = 1, l = 1, s = 0, v = "", a = u, b = p, h = c, r = v; y; )
200
+ switch (k = s, s = _()) {
201
+ // (
202
+ case 40:
203
+ if (k != 108 && P(r, f - 1) == 58) {
204
+ xe(r += L(q(s), "&", "&\f"), "&\f", oe(i ? m[i - 1] : 0)) != -1 && (l = -1);
205
+ break;
206
+ }
207
+ // " ' [
208
+ case 34:
209
+ case 39:
210
+ case 91:
211
+ r += q(s);
212
+ break;
213
+ // \t \n \r \s
214
+ case 9:
215
+ case 10:
216
+ case 13:
217
+ case 32:
218
+ r += Te(k);
219
+ break;
220
+ // \
221
+ case 92:
222
+ r += Ne(G() - 1, 7);
223
+ continue;
224
+ // /
225
+ case 47:
226
+ switch (j()) {
227
+ case 42:
228
+ case 47:
229
+ z(He(Pe(_(), G()), t, n, $), $), (M(k || 1) == 5 || M(j() || 1) == 5) && O(r) && I(r, -1, void 0) !== " " && (r += " ");
230
+ break;
231
+ default:
232
+ r += "/";
233
+ }
234
+ break;
235
+ // {
236
+ case 123 * d:
237
+ m[i++] = O(r) * l;
238
+ // } ; \0
239
+ case 125 * d:
240
+ case 59:
241
+ case 0:
242
+ switch (s) {
243
+ // \0 }
244
+ case 0:
245
+ case 125:
246
+ y = 0;
247
+ // ;
248
+ case 59 + S:
249
+ l == -1 && (r = L(r, /\f/g, "")), w > 0 && (O(r) - f || d === 0 && k === 47) && z(w > 32 ? te(r + ";", c, n, f - 1, $) : te(L(r, " ", "") + ";", c, n, f - 2, $), $);
250
+ break;
251
+ // @ ;
252
+ case 59:
253
+ r += ";";
254
+ // { rule/at-rule
255
+ default:
256
+ if (z(h = ee(r, t, n, i, S, u, m, v, a = [], b = [], f, p), p), s === 123)
257
+ if (S === 0)
258
+ W(r, t, h, h, a, p, f, m, b);
259
+ else
260
+ switch (g === 99 && P(r, 3) === 110 ? 100 : g) {
261
+ // d l m s
262
+ case 100:
263
+ case 108:
264
+ case 109:
265
+ case 115:
266
+ W(e, h, h, c && z(ee(e, h, h, 0, 0, u, m, v, u, a = [], f, b), b), u, b, f, m, c ? a : b);
267
+ break;
268
+ default:
269
+ W(r, h, h, h, [""], b, 0, m, b);
270
+ }
271
+ }
272
+ i = S = w = 0, d = l = 1, v = r = "", f = o;
273
+ break;
274
+ // :
275
+ case 58:
276
+ f = 1 + O(r), w = k;
277
+ default:
278
+ if (d < 1) {
279
+ if (s == 123)
280
+ --d;
281
+ else if (s == 125 && d++ == 0 && je() == 125)
282
+ continue;
283
+ }
284
+ switch (r += Z(s), s * d) {
285
+ // &
286
+ case 38:
287
+ l = S > 0 ? 1 : (r += "\f", -1);
288
+ break;
289
+ // ,
290
+ case 44:
291
+ m[i++] = (O(r) - 1) * l, l = 1;
292
+ break;
293
+ // @
294
+ case 64:
295
+ j() === 45 && (r += q(_())), g = j(), S = f = O(v = r += Me(G())), s++;
296
+ break;
297
+ // -
298
+ case 45:
299
+ k === 45 && O(r) == 2 && (d = 0);
300
+ }
301
+ }
302
+ return p;
303
+ }
304
+ function ee(e, t, n, c, u, p, o, m, $, i, S, f) {
305
+ for (var g = u - 1, w = u === 0 ? p : [""], k = _e(w), d = 0, y = 0, l = 0; d < c; ++d)
306
+ for (var s = 0, v = I(e, g + 1, g = oe(y = o[d])), a = e; s < k; ++s)
307
+ (a = fe(y > 0 ? w[s] + " " + v : L(v, /&\f/g, w[s]))) && ($[l++] = a);
308
+ return B(e, t, n, u === 0 ? ie : m, $, i, S, f);
309
+ }
310
+ function He(e, t, n, c) {
311
+ return B(e, t, n, ce, Z(Oe()), I(e, 2, -2), 0, c);
312
+ }
313
+ function te(e, t, n, c, u) {
314
+ return B(e, t, n, se, I(e, 0, c), I(e, c + 1, -1), c, u);
315
+ }
316
+ function Y(e, t) {
317
+ for (var n = "", c = 0; c < e.length; c++)
318
+ n += t(e[c], c, e, t) || "";
319
+ return n;
320
+ }
321
+ function Le(e, t, n, c) {
322
+ switch (e.type) {
323
+ case Ee:
324
+ if (e.children.length) break;
325
+ case $e:
326
+ case se:
327
+ return e.return = e.return || e.value;
328
+ case ce:
329
+ return "";
330
+ case Ae:
331
+ return e.return = e.value + "{" + Y(e.children, c) + "}";
332
+ case ie:
333
+ if (!O(e.value = e.props.join(","))) return "";
334
+ }
335
+ return O(n = Y(e.children, c)) ? e.return = e.value + "{" + n + "}" : "";
336
+ }
337
+ const re = be(), Ge = "_skip_check_", ue = "_multi_value_";
338
+ function J(e) {
339
+ return Y(ze(e), Le).replace(/\{%%%\:[^;];}/g, ";");
340
+ }
341
+ function We(e) {
342
+ return typeof e == "object" && e && (Ge in e || ue in e);
343
+ }
344
+ function Ke(e, t, n) {
345
+ if (!t)
346
+ return e;
347
+ const c = `.${t}`, u = n === "low" ? `:where(${c})` : c;
348
+ return e.split(",").map((o) => {
349
+ var S;
350
+ const m = o.trim().split(/\s+/);
351
+ let $ = m[0] || "";
352
+ const i = ((S = $.match(/^\w+/)) == null ? void 0 : S[0]) || "";
353
+ return $ = `${i}${u}${$.slice(i.length)}`, [$, ...m.slice(1)].join(" ");
354
+ }).join(",");
355
+ }
356
+ const ne = /* @__PURE__ */ new Set(), Xe = void 0, Q = (e, t = {}, {
357
+ root: n,
358
+ injectHash: c,
359
+ parentSelectors: u
360
+ } = {
361
+ root: !0,
362
+ parentSelectors: []
363
+ }) => {
364
+ const {
365
+ hashId: p,
366
+ layer: o,
367
+ path: m,
368
+ hashPriority: $,
369
+ transformers: i = [],
370
+ linters: S = []
371
+ } = t;
372
+ let f = "", g = {};
373
+ function w(y) {
374
+ const l = y.getName(p);
375
+ if (!g[l]) {
376
+ const [s] = Q(y.style, t, {
377
+ root: !1,
378
+ parentSelectors: u
379
+ });
380
+ g[l] = `@keyframes ${y.getName(p)}${s}`;
381
+ }
382
+ }
383
+ function k(y, l = []) {
384
+ return y.forEach((s) => {
385
+ Array.isArray(s) ? k(s, l) : s && l.push(s);
386
+ }), l;
387
+ }
388
+ return k(Array.isArray(e) ? e : [e]).forEach((y) => {
389
+ const l = typeof y == "string" && !n ? {} : y;
390
+ if (typeof l == "string")
391
+ f += `${l}
392
+ `;
393
+ else if (l._keyframe)
394
+ w(l);
395
+ else {
396
+ const s = i.reduce((v, a) => {
397
+ var b;
398
+ return ((b = a == null ? void 0 : a.visit) == null ? void 0 : b.call(a, v)) || v;
399
+ }, l);
400
+ Object.keys(s).forEach((v) => {
401
+ const a = s[v];
402
+ if (typeof a == "object" && a && (v !== "animationName" || !a._keyframe) && !We(a)) {
403
+ let b = !1, h = v.trim(), r = !1;
404
+ (n || c) && p ? h.startsWith("@") ? b = !0 : h = Ke(v, p, $) : n && !p && (h === "&" || h === "") && (h = "", r = !0);
405
+ const [A, R] = Q(a, t, {
406
+ root: r,
407
+ injectHash: b,
408
+ parentSelectors: [...u, h]
409
+ });
410
+ g = {
411
+ ...g,
412
+ ...R
413
+ }, f += `${h}${A}`;
414
+ } else {
415
+ let b = function(r, A) {
416
+ const R = r.replace(/[A-Z]/g, (he) => `-${he.toLowerCase()}`);
417
+ let x = A;
418
+ !we[r] && typeof x == "number" && x !== 0 && (x = `${x}px`), r === "animationName" && (A != null && A._keyframe) && (w(A), x = A.getName(p)), f += `${R}:${x};`;
419
+ };
420
+ const h = (a == null ? void 0 : a.value) ?? a;
421
+ typeof a == "object" && (a != null && a[ue]) && Array.isArray(h) ? h.forEach((r) => {
422
+ b(v, r);
423
+ }) : b(v, h);
424
+ }
425
+ });
426
+ }
427
+ }), n ? o && ye() : f = `{${f}}`, [f, g];
428
+ };
429
+ function De(e, t) {
430
+ return me(`${e.join("%")}${t}`);
431
+ }
432
+ function Ve(e, t) {
433
+ const n = de(), c = V(() => {
434
+ var o;
435
+ return (o = e.value) == null ? void 0 : o.token._tokenKey;
436
+ }), u = V(() => {
437
+ var o;
438
+ return [c.value, ...((o = e.value) == null ? void 0 : o.path) || []];
439
+ });
440
+ let p = re;
441
+ return Se(
442
+ "style",
443
+ u,
444
+ // Create cache if needed
445
+ () => {
446
+ const {
447
+ path: o,
448
+ hashId: m,
449
+ layer: $,
450
+ nonce: i,
451
+ clientOnly: S,
452
+ order: f = 0
453
+ } = e.value || {}, g = u.value.join("|");
454
+ if (ge(g)) {
455
+ const [r, A] = ke(g);
456
+ if (r)
457
+ return [r, c.value, A, {}, S, f];
458
+ }
459
+ const w = t(), {
460
+ hashPriority: k,
461
+ container: d,
462
+ transformers: y,
463
+ linters: l,
464
+ cache: s
465
+ } = n.value, [v, a] = Q(w, {
466
+ hashId: m,
467
+ hashPriority: k,
468
+ layer: $,
469
+ path: o == null ? void 0 : o.join("-"),
470
+ transformers: y,
471
+ linters: l
472
+ }), b = J(v), h = De(u.value, b);
473
+ if (p) {
474
+ const r = {
475
+ mark: H,
476
+ prepend: "queue",
477
+ attachTo: d
478
+ }, A = typeof i == "function" ? i() : i;
479
+ A && (r.csp = {
480
+ nonce: A
481
+ });
482
+ const R = X(b, h, r);
483
+ R[pe] = s.instanceId, R.setAttribute(ae, c.value), Object.keys(a).forEach((x) => {
484
+ ne.has(x) || (ne.add(x), X(J(a[x]), `_effect-${x}`, {
485
+ mark: H,
486
+ prepend: "queue",
487
+ attachTo: d
488
+ }));
489
+ });
490
+ }
491
+ return [b, c.value, h, a, S, f];
492
+ },
493
+ // Remove cache if no need
494
+ ([, , o], m) => {
495
+ (m || n.value.autoClear) && re && ve(o, {
496
+ mark: H
497
+ });
498
+ }
499
+ ), (o) => o;
500
+ }
501
+ function et(e, t = !1) {
502
+ const n = "style%", c = Array.from(e.cache.keys()).filter((i) => i.startsWith(n)), u = {}, p = {};
503
+ let o = "";
504
+ function m(i, S, f, g = {}) {
505
+ const w = {
506
+ ...g,
507
+ [ae]: S,
508
+ [H]: f
509
+ }, k = Object.keys(w).map((d) => {
510
+ const y = w[d];
511
+ return y ? `${d}="${y}"` : null;
512
+ }).filter((d) => d).join(" ");
513
+ return t ? i : `<style ${k}>${i}</style>`;
514
+ }
515
+ return c.map((i) => {
516
+ const S = i.slice(n.length).replace(/%/g, "|"), [f, g, w, k, d, y] = e.cache.get(i)[1];
517
+ if (d)
518
+ return null;
519
+ const l = {
520
+ "data-vc-order": "prependQueue",
521
+ "data-vc-priority": `${y}`
522
+ };
523
+ let s = m(f, g, w, l);
524
+ return p[S] = w, k && Object.keys(k).forEach((a) => {
525
+ u[a] || (u[a] = !0, s += m(J(k[a]), g, `_effect-${a}`, l));
526
+ }), [y, s];
527
+ }).filter((i) => i).sort((i, S) => i[0] - S[0]).forEach(([, i]) => {
528
+ o += i;
529
+ }), o += m(`.${U}{content:"${Ce(p)}";}`, void 0, void 0, {
530
+ [U]: U
531
+ }), o;
532
+ }
533
+ export {
534
+ Xe as _,
535
+ De as a,
536
+ we as b,
537
+ et as e,
538
+ J as n,
539
+ Q as p,
540
+ Ve as u
541
+ };
@@ -0,0 +1,59 @@
1
+ import { u as r } from "./hooks/useCacheToken.tsx2.mjs";
2
+ import { default as W } from "./hooks/useCSSVarRegister.mjs";
3
+ import { e, u as o } from "./hooks/useStyleRegister/index.tsx2.mjs";
4
+ import t from "./Keyframes.mjs";
5
+ import m from "./linters/legacyNotSelectorLinter.mjs";
6
+ import a from "./linters/logicalPropertiesLinter.mjs";
7
+ import s from "./linters/parentSelectorLinter.mjs";
8
+ import { StyleProvider as i, useStyleProvider as p, useStyleInject as n, createCache as f } from "./StyleContext.mjs";
9
+ import l from "./theme/createTheme.mjs";
10
+ import c from "./theme/Theme.mjs";
11
+ import "./theme/ThemeCache.mjs";
12
+ import S from "./transformers/legacyLogicalProperties.mjs";
13
+ import u from "./transformers/px2rem.mjs";
14
+ import { supportWhere as y, supportLogicProps as g } from "./util.mjs";
15
+ import { token2CSSVar as b, unit as q } from "./util.mjs";
16
+ const R = {
17
+ Theme: c,
18
+ createTheme: l,
19
+ useStyleRegister: o,
20
+ useCacheToken: r,
21
+ createCache: f,
22
+ useStyleInject: n,
23
+ useStyleProvider: p,
24
+ Keyframes: t,
25
+ extractStyle: e,
26
+ // Transformer
27
+ legacyLogicalPropertiesTransformer: S,
28
+ px2remTransformer: u,
29
+ // Linters
30
+ logicalPropertiesLinter: a,
31
+ legacyNotSelectorLinter: m,
32
+ parentSelectorLinter: s,
33
+ // cssinjs
34
+ StyleProvider: i
35
+ }, V = {
36
+ supportModernCSS: () => y() && g()
37
+ };
38
+ export {
39
+ t as Keyframes,
40
+ i as StyleProvider,
41
+ c as Theme,
42
+ V as _experimental,
43
+ f as createCache,
44
+ l as createTheme,
45
+ R as default,
46
+ e as extractStyle,
47
+ S as legacyLogicalPropertiesTransformer,
48
+ m as legacyNotSelectorLinter,
49
+ a as logicalPropertiesLinter,
50
+ s as parentSelectorLinter,
51
+ u as px2remTransformer,
52
+ b as token2CSSVar,
53
+ q as unit,
54
+ W as useCSSVarRegister,
55
+ r as useCacheToken,
56
+ n as useStyleInject,
57
+ p as useStyleProvider,
58
+ o as useStyleRegister
59
+ };
@@ -0,0 +1,13 @@
1
+ import { lintWarning as i } from "./utils.mjs";
2
+ const a = (n, t, e) => {
3
+ if (n === "content") {
4
+ const o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
5
+ (typeof t != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(t) === -1 && !o.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")) && i(
6
+ `You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,
7
+ e
8
+ );
9
+ }
10
+ };
11
+ export {
12
+ a as default
13
+ };
@@ -0,0 +1,10 @@
1
+ import { lintWarning as n } from "./utils.mjs";
2
+ const m = (e, i, a) => {
3
+ e === "animation" && a.hashId && i !== "none" && n(
4
+ `You seem to be using hashed animation '${i}', in which case 'animationName' with Keyframe as value is recommended.`,
5
+ a
6
+ );
7
+ };
8
+ export {
9
+ m as default
10
+ };
@@ -0,0 +1,12 @@
1
+ import { default as r } from "./contentQuotesLinter.mjs";
2
+ import { default as a } from "./hashedAnimationLinter.mjs";
3
+ import { default as l } from "./legacyNotSelectorLinter.mjs";
4
+ import { default as i } from "./logicalPropertiesLinter.mjs";
5
+ import { default as p } from "./parentSelectorLinter.mjs";
6
+ export {
7
+ r as contentQuotesLinter,
8
+ a as hashedAnimationLinter,
9
+ l as legacyNotSelectorLinter,
10
+ i as logicalPropertiesLinter,
11
+ p as parentSelectorLinter
12
+ };
@@ -0,0 +1,15 @@
1
+ import { lintWarning as l } from "./utils.mjs";
2
+ function s(n) {
3
+ var r;
4
+ return (((r = n.match(/:not\(([^)]*)\)/)) == null ? void 0 : r[1]) || "").split(/(\[[^[]*])|(?=[.#])/).filter((o) => o).length > 1;
5
+ }
6
+ function a(n) {
7
+ return n.parentSelectors.reduce((e, t) => e ? t.includes("&") ? t.replace(/&/g, e) : `${e} ${t}` : t, "");
8
+ }
9
+ const i = (n, e, t) => {
10
+ const o = a(t).match(/:not\([^)]*\)/g) || [];
11
+ o.length > 0 && o.some(s) && l("Concat ':not' selector not support in legacy browsers.", t);
12
+ };
13
+ export {
14
+ i as default
15
+ };