@hubstr/kit 0.1.0 → 0.1.2

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 (746) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +29 -29
  3. package/analytics/src/providers/ga4.ts +2 -2
  4. package/analytics/src/providers/posthog-node.ts +2 -2
  5. package/analytics/src/providers/posthog.ts +2 -2
  6. package/analytics/src/providers/xads.ts +2 -2
  7. package/analytics/src/react/hooks.ts +1 -1
  8. package/assets-logo/assets/logo-flat.svg +1 -1
  9. package/assets-logo/assets/logo-high-contrast.svg +1 -1
  10. package/assets-logo/assets/logo-text.svg +1 -1
  11. package/charts/src/AccuracyBarChart/index.tsx +9 -9
  12. package/charts/src/AreaChart/index.tsx +10 -10
  13. package/charts/src/BarChart/demos/xAxisLabelFormatter.tsx +1 -1
  14. package/charts/src/BarChart/index.tsx +9 -9
  15. package/charts/src/BarChart/renderShape.tsx +1 -1
  16. package/charts/src/BarList/index.tsx +3 -3
  17. package/charts/src/ComposedChart/index.tsx +7 -7
  18. package/charts/src/ComposedChart/types.ts +2 -2
  19. package/charts/src/DataBars/CategoryBar.tsx +3 -3
  20. package/charts/src/DataBars/DeltaBar.tsx +2 -2
  21. package/charts/src/DonutChart/DonutChartTooltip.tsx +3 -3
  22. package/charts/src/DonutChart/index.tsx +7 -7
  23. package/charts/src/DonutChart/inputParser.ts +2 -2
  24. package/charts/src/FunnelChart/index.tsx +7 -7
  25. package/charts/src/Heatmaps/Calendar.tsx +1 -1
  26. package/charts/src/Heatmaps/ChartLabels.tsx +2 -2
  27. package/charts/src/Heatmaps/index.tsx +6 -6
  28. package/charts/src/Legend/index.tsx +1 -1
  29. package/charts/src/LineChart/index.tsx +10 -10
  30. package/charts/src/ScatterChart/ScatterChartTooltip.tsx +3 -3
  31. package/charts/src/ScatterChart/index.tsx +10 -10
  32. package/charts/src/ScatterChart/renderShape.tsx +1 -1
  33. package/charts/src/SparkChart/SparkAreaChart.tsx +5 -5
  34. package/charts/src/SparkChart/SparkBarChart.tsx +4 -4
  35. package/charts/src/SparkChart/SparkLineChart.tsx +5 -5
  36. package/charts/src/common/BaseChartProps.tsx +2 -2
  37. package/charts/src/common/BaseSparkChartProps.tsx +1 -1
  38. package/charts/src/common/ChartLegend.tsx +2 -2
  39. package/charts/src/common/ChartTooltip/index.tsx +1 -1
  40. package/charts/src/common/CustomTooltipProps.tsx +2 -2
  41. package/charts/src/common/CustomYAxisTick.tsx +1 -1
  42. package/charts/src/hooks/useOnWindowResize.ts +1 -1
  43. package/charts/src/hooks/usePrefersReducedMotion.ts +1 -1
  44. package/charts/src/index.ts +1 -1
  45. package/charts/src/utils/calendar.ts +2 -2
  46. package/charts/src/utils/getMaxLabelLength.ts +2 -2
  47. package/charts/src/utils/index.ts +1 -1
  48. package/editor/src/codemirror/loader.ts +1 -1
  49. package/editor/src/common/sys.ts +3 -3
  50. package/editor/src/const/hotkey.ts +1 -1
  51. package/editor/src/editor-kernel/__tests__/lexical-patch.test.ts +1 -1
  52. package/editor/src/editor-kernel/__tests__/node.test.ts +14 -14
  53. package/editor/src/editor-kernel/__tests__/utils.test.ts +1 -1
  54. package/editor/src/editor-kernel/index.ts +1 -1
  55. package/editor/src/editor-kernel/kernel.ts +7 -7
  56. package/editor/src/editor-kernel/plugin.ts +1 -1
  57. package/editor/src/editor-kernel/react/react-context.ts +1 -1
  58. package/editor/src/editor-kernel/react/react-editor.tsx +1 -1
  59. package/editor/src/editor-kernel/react/useAnchor.ts +1 -1
  60. package/editor/src/editor-kernel/react/useDecorators.tsx +2 -2
  61. package/editor/src/editor-kernel/react/useEditable.ts +1 -1
  62. package/editor/src/editor-kernel/react/useTranslation.ts +1 -1
  63. package/editor/src/editor-kernel/utils.ts +1 -1
  64. package/editor/src/headless/__tests__/headless-editor.test.ts +2 -2
  65. package/editor/src/headless/index.ts +17 -17
  66. package/editor/src/plugins/auto-complete/plugin/index.ts +4 -4
  67. package/editor/src/plugins/auto-complete/react/ReactAutoCompletePlugin.tsx +2 -2
  68. package/editor/src/plugins/auto-complete/react/type.ts +1 -1
  69. package/editor/src/plugins/block/command/index.ts +1 -1
  70. package/editor/src/plugins/block/plugin/index.ts +2 -2
  71. package/editor/src/plugins/block/react/ReactBlockPlugin.tsx +5 -5
  72. package/editor/src/plugins/block/react/drag/drag-session.ts +2 -2
  73. package/editor/src/plugins/block/service/i-block-menu-service.ts +2 -2
  74. package/editor/src/plugins/code/__tests__/litexml.test.ts +5 -5
  75. package/editor/src/plugins/code/command/index.ts +1 -1
  76. package/editor/src/plugins/code/node/code.ts +1 -1
  77. package/editor/src/plugins/code/plugin/index.ts +6 -6
  78. package/editor/src/plugins/code/plugin/registry.ts +3 -3
  79. package/editor/src/plugins/code/react/CodeReactPlugin.tsx +2 -2
  80. package/editor/src/plugins/codeblock/__tests__/litexml.test.ts +5 -5
  81. package/editor/src/plugins/codeblock/plugin/CodeHighlighterShiki.ts +1 -1
  82. package/editor/src/plugins/codeblock/plugin/FacadeShiki.ts +2 -2
  83. package/editor/src/plugins/codeblock/plugin/index.ts +6 -6
  84. package/editor/src/plugins/codeblock/react/ReactCodeblockPlugin.tsx +2 -2
  85. package/editor/src/plugins/codeblock/react/type.ts +1 -1
  86. package/editor/src/plugins/codemirror-block/__tests__/litexml.test.ts +5 -5
  87. package/editor/src/plugins/codemirror-block/command/index.ts +1 -1
  88. package/editor/src/plugins/codemirror-block/lib/index.ts +1 -1
  89. package/editor/src/plugins/codemirror-block/lib/mode.ts +1 -1
  90. package/editor/src/plugins/codemirror-block/node/CodeMirrorNode.ts +1 -1
  91. package/editor/src/plugins/codemirror-block/plugin/index.ts +5 -5
  92. package/editor/src/plugins/codemirror-block/react/CodemirrorNode.tsx +3 -3
  93. package/editor/src/plugins/codemirror-block/react/ReactCodemirrorNode.tsx +1 -1
  94. package/editor/src/plugins/common/data-source/json-data-source.ts +4 -4
  95. package/editor/src/plugins/common/data-source/text-data-source.ts +3 -3
  96. package/editor/src/plugins/common/node/ElementDOMSlot.ts +1 -1
  97. package/editor/src/plugins/common/node/cursor.ts +1 -1
  98. package/editor/src/plugins/common/plugin/__test__/litexml.test.ts +5 -5
  99. package/editor/src/plugins/common/plugin/__test__/markdown.test.ts +4 -4
  100. package/editor/src/plugins/common/plugin/index.ts +7 -7
  101. package/editor/src/plugins/common/plugin/mdReader.ts +3 -3
  102. package/editor/src/plugins/common/plugin/paste-handler.ts +1 -1
  103. package/editor/src/plugins/common/plugin/register.ts +4 -4
  104. package/editor/src/plugins/common/react/Placeholder/index.tsx +2 -2
  105. package/editor/src/plugins/common/react/ReactPlainText.tsx +4 -4
  106. package/editor/src/plugins/common/react/type.ts +2 -2
  107. package/editor/src/plugins/common/utils/__test__/utils.test.ts +3 -3
  108. package/editor/src/plugins/common/utils/index.ts +2 -2
  109. package/editor/src/plugins/content-blocks/data-source/content-blocks-data-source.ts +2 -2
  110. package/editor/src/plugins/content-blocks/demos/headless.tsx +1 -1
  111. package/editor/src/plugins/content-blocks/demos/index.tsx +1 -1
  112. package/editor/src/plugins/content-blocks/plugin/index.ts +4 -4
  113. package/editor/src/plugins/content-blocks/types.ts +1 -1
  114. package/editor/src/plugins/content-blocks/utils/__tests__/extract.test.ts +2 -2
  115. package/editor/src/plugins/content-blocks/utils/extract.ts +4 -4
  116. package/editor/src/plugins/file/command/index.ts +1 -1
  117. package/editor/src/plugins/file/node/FileNode.ts +1 -1
  118. package/editor/src/plugins/file/plugin/index.ts +7 -7
  119. package/editor/src/plugins/file/react/ReactFilePlugin.tsx +2 -2
  120. package/editor/src/plugins/file/react/components/ReactFile.tsx +2 -2
  121. package/editor/src/plugins/file/react/type.ts +2 -2
  122. package/editor/src/plugins/hr/node/HorizontalRuleNode.ts +1 -1
  123. package/editor/src/plugins/hr/plugin/index.ts +5 -5
  124. package/editor/src/plugins/hr/react/ReactHRPlugin.tsx +2 -2
  125. package/editor/src/plugins/hr/react/components/HRNode.tsx +1 -1
  126. package/editor/src/plugins/image/__test__/litexml.test.ts +5 -5
  127. package/editor/src/plugins/image/command/index.ts +1 -1
  128. package/editor/src/plugins/image/plugin/index.ts +8 -8
  129. package/editor/src/plugins/image/react/ReactImagePlugin.tsx +2 -2
  130. package/editor/src/plugins/image/react/components/BrokenImage.tsx +1 -1
  131. package/editor/src/plugins/image/react/components/Image.tsx +2 -2
  132. package/editor/src/plugins/image/react/components/ImageEditPopover.tsx +3 -3
  133. package/editor/src/plugins/image/react/components/__tests__/Image.test.tsx +2 -2
  134. package/editor/src/plugins/inode/plugin/index.ts +2 -2
  135. package/editor/src/plugins/inode/react/index.tsx +1 -1
  136. package/editor/src/plugins/inode/service/index.ts +2 -2
  137. package/editor/src/plugins/link/__test__/litexml.test.ts +5 -5
  138. package/editor/src/plugins/link/node/LinkNode.ts +2 -2
  139. package/editor/src/plugins/link/plugin/index.ts +5 -5
  140. package/editor/src/plugins/link/plugin/registry.ts +2 -2
  141. package/editor/src/plugins/link/react/ReactLinkPlugin.tsx +4 -4
  142. package/editor/src/plugins/link/react/components/LinkEdit.tsx +4 -4
  143. package/editor/src/plugins/link/react/components/LinkToolbar.tsx +5 -5
  144. package/editor/src/plugins/link/react/type.ts +1 -1
  145. package/editor/src/plugins/link/service/i-link-service.ts +2 -2
  146. package/editor/src/plugins/link-highlight/node/link-highlight.ts +1 -1
  147. package/editor/src/plugins/link-highlight/plugin/index.ts +6 -6
  148. package/editor/src/plugins/link-highlight/plugin/registry.ts +3 -3
  149. package/editor/src/plugins/link-highlight/react/ReactLinkHighlightPlugin.tsx +2 -2
  150. package/editor/src/plugins/link-highlight/utils/index.ts +1 -1
  151. package/editor/src/plugins/list/__test__/litexml.test.ts +5 -5
  152. package/editor/src/plugins/list/plugin/index.test.ts +4 -4
  153. package/editor/src/plugins/list/plugin/index.ts +6 -6
  154. package/editor/src/plugins/list/plugin/registry.ts +2 -2
  155. package/editor/src/plugins/list/react/ReactListPlugin.tsx +2 -2
  156. package/editor/src/plugins/list/utils/index.ts +1 -1
  157. package/editor/src/plugins/litexml/__test__/command.test.ts +6 -6
  158. package/editor/src/plugins/litexml/__test__/secondary_diff.test.ts +5 -5
  159. package/editor/src/plugins/litexml/command/index.ts +2 -2
  160. package/editor/src/plugins/litexml/data-source/litexml-data-source.ts +6 -6
  161. package/editor/src/plugins/litexml/node/DiffNode.ts +2 -2
  162. package/editor/src/plugins/litexml/plugin/index.ts +3 -3
  163. package/editor/src/plugins/litexml/react/DiffNodeToolbar/index.tsx +2 -2
  164. package/editor/src/plugins/litexml/react/hooks/useHasDiffNode.ts +1 -1
  165. package/editor/src/plugins/litexml/react/index.tsx +2 -2
  166. package/editor/src/plugins/litexml/service/litexml-service.ts +1 -1
  167. package/editor/src/plugins/markdown/command/__tests__/command.test.ts +1 -1
  168. package/editor/src/plugins/markdown/command/index.ts +2 -2
  169. package/editor/src/plugins/markdown/data-source/markdown/parse.test.ts +1 -1
  170. package/editor/src/plugins/markdown/data-source/markdown/parse.ts +2 -2
  171. package/editor/src/plugins/markdown/data-source/markdown-data-source.ts +5 -5
  172. package/editor/src/plugins/markdown/plugin/index.ts +3 -3
  173. package/editor/src/plugins/markdown/react/index.tsx +3 -3
  174. package/editor/src/plugins/markdown/service/shortcut.ts +4 -4
  175. package/editor/src/plugins/markdown/utils/index.ts +1 -1
  176. package/editor/src/plugins/markdown/utils/logger.ts +1 -1
  177. package/editor/src/plugins/markdown/utils/url-validator.ts +1 -1
  178. package/editor/src/plugins/math/__tests__/litexml.test.ts +5 -5
  179. package/editor/src/plugins/math/__tests__/math.test.ts +1 -1
  180. package/editor/src/plugins/math/node/index.ts +1 -1
  181. package/editor/src/plugins/math/plugin/index.ts +6 -6
  182. package/editor/src/plugins/math/react/components/MathEditor.tsx +3 -3
  183. package/editor/src/plugins/math/react/components/MathEditorContainer.tsx +1 -1
  184. package/editor/src/plugins/math/react/components/MathEditorContent.tsx +2 -2
  185. package/editor/src/plugins/math/react/components/MathInline.tsx +3 -3
  186. package/editor/src/plugins/math/react/components/Placeholder.tsx +1 -1
  187. package/editor/src/plugins/math/react/index.tsx +2 -2
  188. package/editor/src/plugins/mention/__test__/litexml.test.ts +5 -5
  189. package/editor/src/plugins/mention/node/MentionNode.ts +1 -1
  190. package/editor/src/plugins/mention/plugin/__tests__/mention.test.ts +4 -4
  191. package/editor/src/plugins/mention/plugin/index.ts +6 -6
  192. package/editor/src/plugins/mention/react/ReactMentionPlugin.tsx +2 -2
  193. package/editor/src/plugins/mention/react/components/Mention.tsx +1 -1
  194. package/editor/src/plugins/mention/react/type.ts +1 -1
  195. package/editor/src/plugins/slash/plugin/index.ts +2 -2
  196. package/editor/src/plugins/slash/react/ReactSlashPlugin.tsx +3 -3
  197. package/editor/src/plugins/slash/react/type.ts +3 -3
  198. package/editor/src/plugins/slash/service/i-slash-service.ts +3 -3
  199. package/editor/src/plugins/table/__test__/litexml.test.ts +5 -5
  200. package/editor/src/plugins/table/node/index.ts +2 -2
  201. package/editor/src/plugins/table/plugin/index.ts +7 -7
  202. package/editor/src/plugins/table/react/TableActionMenu/ActionMenu.tsx +1 -1
  203. package/editor/src/plugins/table/react/TableActionMenu/index.tsx +2 -2
  204. package/editor/src/plugins/table/react/TableColController.tsx +2 -2
  205. package/editor/src/plugins/table/react/TableControllerMenu.tsx +1 -1
  206. package/editor/src/plugins/table/react/TableHoverActions/index.tsx +2 -2
  207. package/editor/src/plugins/table/react/TableHoverActions/utils.ts +1 -1
  208. package/editor/src/plugins/table/react/TableRowController.tsx +1 -1
  209. package/editor/src/plugins/table/react/index.tsx +4 -4
  210. package/editor/src/plugins/table/react/type.ts +1 -1
  211. package/editor/src/plugins/table/service/i-table-controller-menu-service.ts +2 -2
  212. package/editor/src/plugins/table/utils/index.ts +1 -1
  213. package/editor/src/plugins/toolbar/react/index.tsx +3 -3
  214. package/editor/src/plugins/upload/plugin/index.ts +3 -3
  215. package/editor/src/plugins/upload/service/i-upload-service.ts +2 -2
  216. package/editor/src/plugins/virtual-block/plugin/index.ts +2 -2
  217. package/editor/src/plugins/virtual-block/plugin/register.ts +4 -4
  218. package/editor/src/plugins/virtual-block/react/ReactVirtualBlock.tsx +1 -1
  219. package/editor/src/react/ChatInput/ChatInput.tsx +1 -1
  220. package/editor/src/react/ChatInputActionBar/demos/index.tsx +1 -1
  221. package/editor/src/react/ChatInputActions/components/useDisplayActionCount.ts +1 -1
  222. package/editor/src/react/Editor/Editor.tsx +6 -6
  223. package/editor/src/react/Editor/demos/Container.tsx +1 -1
  224. package/editor/src/react/Editor/demos/XmlModifier.tsx +2 -2
  225. package/editor/src/react/Editor/demos/actions.ts +1 -1
  226. package/editor/src/react/Editor/demos/index.tsx +1 -1
  227. package/editor/src/react/Editor/demos/pasteAsPlainText.tsx +1 -1
  228. package/editor/src/react/Editor/type.ts +4 -4
  229. package/editor/src/react/EditorProvider/demos/index.tsx +1 -1
  230. package/editor/src/react/EditorProvider/index.tsx +1 -1
  231. package/editor/src/react/SlashMenu/SlashMenu.tsx +1 -1
  232. package/editor/src/react/SlashMenu/type.ts +2 -2
  233. package/editor/src/react/hooks/useEditor.ts +2 -2
  234. package/editor/src/react/hooks/useEditorState/index.ts +13 -13
  235. package/editor/src/react/index.ts +1 -1
  236. package/editor/src/renderer/nodes/index.ts +13 -13
  237. package/editor/src/renderer/renderers/file.tsx +1 -1
  238. package/editor/src/renderer/style.ts +6 -6
  239. package/editor/src/types/kernel.ts +3 -3
  240. package/editor/src/types/locale.ts +1 -1
  241. package/editor/src/utils/hotkey/parseHotkeys.ts +2 -2
  242. package/editor/src/utils/hotkey/registerHotkey.ts +4 -4
  243. package/package.json +308 -308
  244. package/tts/src/core/EdgeSpeechTTS/index.ts +4 -4
  245. package/tts/src/core/EdgeSpeechTTS/options.ts +1 -1
  246. package/tts/src/core/MicrosoftSpeechTTS/index.ts +4 -4
  247. package/tts/src/core/MicrosoftSpeechTTS/voiceList.ts +1 -1
  248. package/tts/src/core/OpenAISTT/index.ts +2 -2
  249. package/tts/src/core/OpenAITTS/index.ts +2 -2
  250. package/tts/src/core/SpeechSynthesisTTS/index.ts +1 -1
  251. package/tts/src/core/SpeechSynthesisTTS/options.ts +2 -2
  252. package/tts/src/core/VoiceList.ts +5 -5
  253. package/tts/src/core/index.ts +8 -8
  254. package/tts/src/core/utils/getVoiceList.ts +1 -1
  255. package/tts/src/react/AudioPlayer/index.tsx +1 -1
  256. package/tts/src/react/hooks/useAudioPlayer.ts +1 -1
  257. package/tts/src/react/hooks/useBlobUrl.ts +3 -3
  258. package/tts/src/react/hooks/useStreamAudioPlayer.ts +1 -1
  259. package/tts/src/react/useAudioRecorder/index.ts +2 -2
  260. package/tts/src/react/useEdgeSpeech/index.ts +2 -2
  261. package/tts/src/react/useMicrosoftSpeech/index.ts +2 -2
  262. package/tts/src/react/useOpenAISTT/demos/AutoStop.tsx +1 -1
  263. package/tts/src/react/useOpenAISTT/demos/index.tsx +1 -1
  264. package/tts/src/react/useOpenAISTT/useOpenAISTTAutoStop.ts +2 -2
  265. package/tts/src/react/useOpenAISTT/useOpenAISTTCore.ts +1 -1
  266. package/tts/src/react/useOpenAISTT/useOpenAISTTInteractive.ts +2 -2
  267. package/tts/src/react/useOpenAISTT/useOpenAISTTRecorder.ts +3 -3
  268. package/tts/src/react/useOpenAITTS/demos/index.tsx +1 -1
  269. package/tts/src/react/useOpenAITTS/index.ts +2 -2
  270. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionAutoStop.ts +1 -1
  271. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionCore.ts +1 -1
  272. package/tts/src/react/useSpeechRecognition/useSpeechRecognitionInteractive.ts +2 -2
  273. package/tts/src/react/useSpeechSynthes/index.ts +2 -2
  274. package/tts/src/react/useTTS/index.ts +3 -3
  275. package/tts/src/server/createOpenaiAudioTranscriptions.ts +1 -1
  276. package/ui/src/A/index.tsx +2 -2
  277. package/ui/src/Accordion/AccordionItem.tsx +5 -5
  278. package/ui/src/Accordion/demos/Action.tsx +1 -1
  279. package/ui/src/Accordion/demos/Standalone.tsx +1 -1
  280. package/ui/src/Accordion/demos/data.tsx +1 -1
  281. package/ui/src/Accordion/demos/index.tsx +1 -1
  282. package/ui/src/Accordion/type.ts +1 -1
  283. package/ui/src/ActionIcon/ActionIcon.tsx +3 -3
  284. package/ui/src/ActionIcon/components/utils.ts +1 -1
  285. package/ui/src/ActionIcon/demos/DropdownMenu.tsx +2 -2
  286. package/ui/src/ActionIcon/demos/Size.tsx +1 -1
  287. package/ui/src/ActionIcon/demos/Variant.tsx +1 -1
  288. package/ui/src/ActionIcon/style.ts +1 -1
  289. package/ui/src/ActionIcon/type.ts +3 -3
  290. package/ui/src/ActionIconGroup/ActionIconGroup.tsx +4 -4
  291. package/ui/src/ActionIconGroup/style.ts +1 -1
  292. package/ui/src/ActionIconGroup/type.ts +5 -5
  293. package/ui/src/Alert/Alert.tsx +4 -4
  294. package/ui/src/Alert/style.ts +1 -1
  295. package/ui/src/Alert/type.ts +1 -1
  296. package/ui/src/AutoComplete/style.ts +1 -1
  297. package/ui/src/Avatar/Avatar.tsx +5 -5
  298. package/ui/src/Avatar/AvatarGroup/index.tsx +1 -1
  299. package/ui/src/Avatar/demos/Bordered.tsx +1 -1
  300. package/ui/src/Avatar/demos/ErrorFallback.tsx +1 -1
  301. package/ui/src/Avatar/demos/Text.tsx +1 -1
  302. package/ui/src/Avatar/style.ts +1 -1
  303. package/ui/src/Avatar/type.ts +2 -2
  304. package/ui/src/Block/Block.tsx +1 -1
  305. package/ui/src/Block/style.ts +1 -1
  306. package/ui/src/Block/type.ts +1 -1
  307. package/ui/src/Burger/Burger.tsx +2 -2
  308. package/ui/src/Burger/style.ts +1 -1
  309. package/ui/src/Burger/type.ts +1 -1
  310. package/ui/src/Button/Button.tsx +1 -1
  311. package/ui/src/Button/demos/Variant.tsx +1 -1
  312. package/ui/src/Button/style.ts +1 -1
  313. package/ui/src/Button/type.ts +1 -1
  314. package/ui/src/Checkbox/Checkbox.tsx +3 -3
  315. package/ui/src/Checkbox/CheckboxGroup.tsx +1 -1
  316. package/ui/src/Checkbox/demos/CheckboxGroupDisabled.tsx +1 -1
  317. package/ui/src/Checkbox/demos/CheckboxGroupOptions.tsx +1 -1
  318. package/ui/src/Checkbox/demos/CheckboxGroupUsage.tsx +1 -1
  319. package/ui/src/Checkbox/demos/Indeterminate.tsx +1 -1
  320. package/ui/src/Checkbox/demos/Size.tsx +1 -1
  321. package/ui/src/Checkbox/demos/WithText.tsx +1 -1
  322. package/ui/src/Checkbox/type.ts +3 -3
  323. package/ui/src/CodeDiff/DiffPanel.tsx +7 -7
  324. package/ui/src/CodeDiff/demos/ActionsRender.tsx +1 -1
  325. package/ui/src/CodeDiff/demos/Variants.tsx +1 -1
  326. package/ui/src/CodeDiff/style.ts +1 -1
  327. package/ui/src/CodeDiff/theme.ts +1 -1
  328. package/ui/src/CodeDiff/type.ts +1 -1
  329. package/ui/src/CodeEditor/CodeEditor.tsx +3 -3
  330. package/ui/src/CodeEditor/style.ts +1 -1
  331. package/ui/src/CodeEditor/type.ts +2 -2
  332. package/ui/src/Collapse/Collapse.tsx +2 -2
  333. package/ui/src/Collapse/demos/Padding.tsx +1 -1
  334. package/ui/src/Collapse/demos/data.tsx +1 -1
  335. package/ui/src/Collapse/style.ts +1 -1
  336. package/ui/src/Collapse/type.ts +1 -1
  337. package/ui/src/ColorSwatches/ColorSwatches.tsx +4 -4
  338. package/ui/src/ColorSwatches/type.ts +1 -1
  339. package/ui/src/ConfigProvider/index.tsx +3 -3
  340. package/ui/src/ContextMenu/index.ts +1 -1
  341. package/ui/src/CopyButton/CopyButton.tsx +3 -3
  342. package/ui/src/CopyButton/type.ts +1 -1
  343. package/ui/src/DatePicker/style.ts +1 -1
  344. package/ui/src/DownloadButton/DownloadButton.tsx +2 -2
  345. package/ui/src/DownloadButton/type.ts +1 -1
  346. package/ui/src/DraggablePanel/DraggablePanel.tsx +2 -2
  347. package/ui/src/DraggablePanel/components/DraggablePanelBody.tsx +2 -2
  348. package/ui/src/DraggablePanel/components/DraggablePanelContainer.tsx +2 -2
  349. package/ui/src/DraggablePanel/components/DraggablePanelFooter.tsx +2 -2
  350. package/ui/src/DraggablePanel/components/DraggablePanelHeader.tsx +3 -3
  351. package/ui/src/DraggablePanel/demos/DragToCollapse.tsx +1 -1
  352. package/ui/src/DraggablePanel/demos/Layout.tsx +1 -1
  353. package/ui/src/DraggablePanel/demos/StableLayout.tsx +2 -2
  354. package/ui/src/DraggablePanel/demos/index.tsx +1 -1
  355. package/ui/src/DraggablePanel/type.ts +1 -1
  356. package/ui/src/DraggableSideNav/DraggableSideNav.tsx +2 -2
  357. package/ui/src/DraggableSideNav/demos/Body.tsx +1 -1
  358. package/ui/src/DraggableSideNav/demos/Footer.tsx +1 -1
  359. package/ui/src/DraggableSideNav/demos/Header.tsx +1 -1
  360. package/ui/src/DraggableSideNav/demos/index.tsx +3 -3
  361. package/ui/src/DraggableSideNav/type.ts +1 -1
  362. package/ui/src/Drawer/Drawer.tsx +2 -2
  363. package/ui/src/Drawer/type.ts +1 -1
  364. package/ui/src/Dropdown/Dropdown.tsx +2 -2
  365. package/ui/src/Dropdown/demos/ContextMenu.tsx +1 -1
  366. package/ui/src/Dropdown/type.ts +3 -3
  367. package/ui/src/DropdownMenu/index.ts +2 -2
  368. package/ui/src/EditableText/ControlInput.tsx +3 -3
  369. package/ui/src/EditableText/EditableText.tsx +2 -2
  370. package/ui/src/EditableText/type.ts +2 -2
  371. package/ui/src/EditorSlashMenu/atoms.tsx +2 -2
  372. package/ui/src/EmojiPicker/AvatarUploader.tsx +7 -7
  373. package/ui/src/EmojiPicker/EmojiPicker.tsx +9 -9
  374. package/ui/src/EmojiPicker/demos/Control.tsx +1 -1
  375. package/ui/src/EmojiPicker/type.ts +3 -3
  376. package/ui/src/Empty/Empty.tsx +5 -5
  377. package/ui/src/Empty/type.ts +4 -4
  378. package/ui/src/FileTypeIcon/FileTypeIcon.tsx +1 -1
  379. package/ui/src/FileTypeIcon/components/FileIcon.tsx +1 -1
  380. package/ui/src/FileTypeIcon/components/FolderIcon.tsx +1 -1
  381. package/ui/src/FileTypeIcon/demos/Icon.tsx +1 -1
  382. package/ui/src/FileTypeIcon/type.ts +1 -1
  383. package/ui/src/FluentEmoji/FluentEmoji.tsx +3 -3
  384. package/ui/src/FluentEmoji/demos/index.tsx +1 -1
  385. package/ui/src/FluentEmoji/type.ts +2 -2
  386. package/ui/src/Footer/Footer.tsx +1 -1
  387. package/ui/src/Footer/type.ts +1 -1
  388. package/ui/src/Form/components/FormFlatGroup.tsx +1 -1
  389. package/ui/src/Form/components/FormFooter.tsx +1 -1
  390. package/ui/src/Form/components/FormGroup.tsx +3 -3
  391. package/ui/src/Form/components/FormSubmitFooter.tsx +6 -6
  392. package/ui/src/Form/components/FormTitle.tsx +2 -2
  393. package/ui/src/Form/demos/SubmitFooter.tsx +1 -1
  394. package/ui/src/Form/demos/index.tsx +1 -1
  395. package/ui/src/Form/style.ts +1 -1
  396. package/ui/src/Form/type.ts +6 -6
  397. package/ui/src/FormModal/FormModal.tsx +4 -4
  398. package/ui/src/FormModal/type.ts +3 -3
  399. package/ui/src/Grid/Grid.tsx +1 -1
  400. package/ui/src/Grid/type.ts +1 -1
  401. package/ui/src/GroupAvatar/GroupAvatar.tsx +3 -3
  402. package/ui/src/GroupAvatar/demos/CornerShape.tsx +2 -2
  403. package/ui/src/GroupAvatar/demos/index.tsx +1 -1
  404. package/ui/src/GroupAvatar/style.ts +1 -1
  405. package/ui/src/GroupAvatar/type.ts +3 -3
  406. package/ui/src/GuideCard/GuideCard.tsx +3 -3
  407. package/ui/src/GuideCard/style.ts +1 -1
  408. package/ui/src/GuideCard/type.ts +3 -3
  409. package/ui/src/Header/Header.tsx +1 -1
  410. package/ui/src/Header/type.ts +1 -1
  411. package/ui/src/Highlighter/FullFeatured.tsx +7 -7
  412. package/ui/src/Highlighter/Highlighter.tsx +4 -4
  413. package/ui/src/Highlighter/LangSelect.tsx +4 -4
  414. package/ui/src/Highlighter/SyntaxHighlighter/StaticRenderer.tsx +1 -1
  415. package/ui/src/Highlighter/SyntaxHighlighter/StreamRenderer.tsx +1 -1
  416. package/ui/src/Highlighter/SyntaxHighlighter/style.ts +1 -1
  417. package/ui/src/Highlighter/style.ts +1 -1
  418. package/ui/src/Highlighter/type.ts +3 -3
  419. package/ui/src/Hotkey/Hotkey.tsx +6 -6
  420. package/ui/src/Hotkey/demos/InverseTheme.tsx +1 -1
  421. package/ui/src/Hotkey/demos/MacStyle.tsx +1 -1
  422. package/ui/src/Hotkey/demos/Mouse.tsx +1 -1
  423. package/ui/src/Hotkey/style.ts +1 -1
  424. package/ui/src/Hotkey/type.ts +1 -1
  425. package/ui/src/HotkeyInput/HotkeyInput.tsx +6 -6
  426. package/ui/src/HotkeyInput/style.ts +1 -1
  427. package/ui/src/HtmlPreview/HtmlPreview.tsx +9 -9
  428. package/ui/src/HtmlPreview/demos/SlowStream.tsx +1 -1
  429. package/ui/src/HtmlPreview/demos/Streaming.tsx +1 -1
  430. package/ui/src/HtmlPreview/type.ts +2 -2
  431. package/ui/src/Icon/type.ts +1 -1
  432. package/ui/src/Image/Image.tsx +1 -1
  433. package/ui/src/Image/components/Toolbar.tsx +7 -7
  434. package/ui/src/Image/components/usePreview.tsx +1 -1
  435. package/ui/src/Image/components/usePreviewGroup.tsx +1 -1
  436. package/ui/src/Image/demos/Gallery.tsx +1 -1
  437. package/ui/src/Image/style.ts +1 -1
  438. package/ui/src/ImageSelect/ImageSelect.tsx +3 -3
  439. package/ui/src/ImageSelect/styles.ts +1 -1
  440. package/ui/src/ImageSelect/type.ts +2 -2
  441. package/ui/src/Img/index.tsx +2 -2
  442. package/ui/src/Input/style.ts +1 -1
  443. package/ui/src/Layout/Layout.tsx +1 -1
  444. package/ui/src/Layout/demos/index.tsx +1 -1
  445. package/ui/src/Layout/style.ts +1 -1
  446. package/ui/src/Layout/type.ts +1 -1
  447. package/ui/src/List/List.tsx +1 -1
  448. package/ui/src/List/ListItem/index.tsx +4 -4
  449. package/ui/src/List/ListItem/style.ts +1 -1
  450. package/ui/src/List/type.ts +1 -1
  451. package/ui/src/Markdown/Markdown.tsx +2 -2
  452. package/ui/src/Markdown/SyntaxMarkdown/MarkdownRender.tsx +1 -1
  453. package/ui/src/Markdown/SyntaxMarkdown/StreamdownRender.tsx +8 -8
  454. package/ui/src/Markdown/SyntaxMarkdown/style.ts +1 -1
  455. package/ui/src/Markdown/SyntaxMarkdown/useSmoothStreamContent.ts +3 -3
  456. package/ui/src/Markdown/components/CodeBlock.tsx +6 -6
  457. package/ui/src/Markdown/components/Footnotes.tsx +4 -4
  458. package/ui/src/Markdown/components/MarkdownProvider.tsx +1 -1
  459. package/ui/src/Markdown/components/MarkdownTable/index.tsx +1 -1
  460. package/ui/src/Markdown/components/SearchResultCards/SearchResultCard.tsx +6 -6
  461. package/ui/src/Markdown/components/SearchResultCards/index.tsx +2 -2
  462. package/ui/src/Markdown/demos/StreamingPlayground.tsx +1 -1
  463. package/ui/src/Markdown/demos/advanced/htmlPreviewArticle.tsx +1 -1
  464. package/ui/src/Markdown/demos/advanced/htmlPreviewReport.tsx +2 -2
  465. package/ui/src/Markdown/demos/advanced/htmlPreviewStream.tsx +1 -1
  466. package/ui/src/Markdown/demos/content.ts +4 -4
  467. package/ui/src/Markdown/demos/custom/citations/index.tsx +1 -1
  468. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntArtifact/Component.tsx +1 -1
  469. package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/Component.tsx +1 -1
  470. package/ui/src/Markdown/demos/custom/thinking/index.tsx +1 -1
  471. package/ui/src/Markdown/demos/streamingAnimationRepro.tsx +1 -1
  472. package/ui/src/Markdown/plugins/rehypeStreamAnimated.ts +1 -1
  473. package/ui/src/Markdown/streamProfiler/StreamdownProfilerPanel.tsx +1 -1
  474. package/ui/src/Markdown/streamProfiler/profiler.ts +2 -2
  475. package/ui/src/Markdown/type.ts +6 -6
  476. package/ui/src/MaskShadow/MaskShadow.tsx +1 -1
  477. package/ui/src/MaskShadow/type.ts +1 -1
  478. package/ui/src/MaterialFileTypeIcon/MaterialFileTypeIcon.tsx +4 -4
  479. package/ui/src/MaterialFileTypeIcon/type.ts +1 -1
  480. package/ui/src/Menu/Menu.tsx +2 -2
  481. package/ui/src/Menu/baseItem.ts +1 -1
  482. package/ui/src/Menu/checkboxItem.ts +1 -1
  483. package/ui/src/Menu/demos/index.tsx +1 -1
  484. package/ui/src/Menu/renderUtils.tsx +1 -1
  485. package/ui/src/Menu/style.ts +1 -1
  486. package/ui/src/Menu/switchItem.ts +1 -1
  487. package/ui/src/Menu/type.ts +1 -1
  488. package/ui/src/Menu/utils.tsx +1 -1
  489. package/ui/src/Mermaid/FullFeatured.tsx +7 -7
  490. package/ui/src/Mermaid/Mermaid.tsx +4 -4
  491. package/ui/src/Mermaid/SyntaxMermaid/StaticMermaid.tsx +2 -2
  492. package/ui/src/Mermaid/SyntaxMermaid/StreamMermaid.tsx +2 -2
  493. package/ui/src/Mermaid/type.ts +2 -2
  494. package/ui/src/Modal/Modal.tsx +2 -2
  495. package/ui/src/Modal/ModalStackItem.tsx +1 -1
  496. package/ui/src/Modal/RawModalStackItem.tsx +1 -1
  497. package/ui/src/Modal/imperative.tsx +3 -3
  498. package/ui/src/Popover/index.ts +2 -2
  499. package/ui/src/ScrollArea/index.ts +1 -1
  500. package/ui/src/ScrollShadow/ScrollShadow.tsx +2 -2
  501. package/ui/src/ScrollShadow/type.ts +1 -1
  502. package/ui/src/SearchBar/SearchBar.tsx +4 -4
  503. package/ui/src/SearchBar/style.ts +1 -1
  504. package/ui/src/SearchBar/type.ts +1 -1
  505. package/ui/src/Segmented/style.ts +1 -1
  506. package/ui/src/Segmented/type.ts +1 -1
  507. package/ui/src/Select/Select.tsx +1 -1
  508. package/ui/src/Select/style.ts +1 -1
  509. package/ui/src/Select/type.ts +1 -1
  510. package/ui/src/SideNav/SideNav.tsx +1 -1
  511. package/ui/src/SideNav/type.ts +1 -1
  512. package/ui/src/Skeleton/Skeleton.tsx +1 -1
  513. package/ui/src/Skeleton/SkeletonBlock.tsx +2 -2
  514. package/ui/src/Skeleton/SkeletonParagraph.tsx +1 -1
  515. package/ui/src/Skeleton/SkeletonTags.tsx +1 -1
  516. package/ui/src/Skeleton/demos/Avatar.tsx +1 -1
  517. package/ui/src/Skeleton/demos/Block.tsx +1 -1
  518. package/ui/src/Skeleton/demos/Button.tsx +1 -1
  519. package/ui/src/Skeleton/demos/Paragraph.tsx +1 -1
  520. package/ui/src/Skeleton/demos/Tags.tsx +1 -1
  521. package/ui/src/Skeleton/demos/Title.tsx +1 -1
  522. package/ui/src/Skeleton/index.ts +1 -1
  523. package/ui/src/SliderWithInput/SliderWithInput.tsx +2 -2
  524. package/ui/src/SliderWithInput/type.ts +2 -2
  525. package/ui/src/Snippet/Snippet.tsx +4 -4
  526. package/ui/src/Snippet/style.ts +1 -1
  527. package/ui/src/Snippet/type.ts +1 -1
  528. package/ui/src/SortableList/SortableList.tsx +1 -1
  529. package/ui/src/SortableList/components/DragHandle.tsx +1 -1
  530. package/ui/src/SortableList/components/SortableItem.tsx +2 -2
  531. package/ui/src/SortableList/style.ts +1 -1
  532. package/ui/src/SortableList/type.ts +1 -1
  533. package/ui/src/Tabs/Tabs.tsx +1 -1
  534. package/ui/src/Tag/Tag.tsx +2 -2
  535. package/ui/src/Tag/demos/Color.tsx +1 -1
  536. package/ui/src/Tag/styles.ts +1 -1
  537. package/ui/src/Text/Text.tsx +2 -2
  538. package/ui/src/Text/type.ts +2 -2
  539. package/ui/src/ThemeProvider/GlobalStyle/antdOverride.ts +1 -1
  540. package/ui/src/ThemeProvider/GlobalStyle/global.ts +1 -1
  541. package/ui/src/ThemeProvider/Meta.tsx +1 -1
  542. package/ui/src/ThemeProvider/ThemeProvider.tsx +5 -5
  543. package/ui/src/ThemeProvider/demos/CustomFonts.tsx +1 -1
  544. package/ui/src/ThemeProvider/type.ts +1 -1
  545. package/ui/src/ThemeSwitch/ThemeSwitch.tsx +5 -5
  546. package/ui/src/ThemeSwitch/type.ts +2 -2
  547. package/ui/src/Toast/index.ts +1 -1
  548. package/ui/src/Toc/TocMobile.tsx +1 -1
  549. package/ui/src/Toc/style.ts +1 -1
  550. package/ui/src/Toc/utils.ts +1 -1
  551. package/ui/src/Tooltip/index.ts +2 -2
  552. package/ui/src/Video/index.tsx +3 -3
  553. package/ui/src/Video/style.ts +1 -1
  554. package/ui/src/awesome/AuroraBackground/AuroraBackground.tsx +1 -1
  555. package/ui/src/awesome/AuroraBackground/type.ts +1 -1
  556. package/ui/src/awesome/BottomGradientButton/BottomGradientButton.tsx +1 -1
  557. package/ui/src/awesome/BottomGradientButton/style.ts +1 -1
  558. package/ui/src/awesome/BottomGradientButton/type.ts +1 -1
  559. package/ui/src/awesome/Features/FeatureItem.tsx +5 -5
  560. package/ui/src/awesome/Features/Features.tsx +1 -1
  561. package/ui/src/awesome/Features/type.ts +3 -3
  562. package/ui/src/awesome/Giscus/style.ts +1 -1
  563. package/ui/src/awesome/GradientButton/GradientButton.tsx +1 -1
  564. package/ui/src/awesome/GradientButton/style.ts +1 -1
  565. package/ui/src/awesome/GradientButton/type.ts +1 -1
  566. package/ui/src/awesome/GridBackground/GridShowcase.tsx +1 -1
  567. package/ui/src/awesome/GridBackground/components/Grid.tsx +1 -1
  568. package/ui/src/awesome/GridBackground/type.ts +2 -2
  569. package/ui/src/awesome/Hero/Hero.tsx +5 -5
  570. package/ui/src/awesome/Hero/style.ts +1 -1
  571. package/ui/src/awesome/Spotlight/type.ts +1 -1
  572. package/ui/src/awesome/SpotlightCard/SpotlightCard.tsx +1 -1
  573. package/ui/src/awesome/SpotlightCard/SpotlightCardItem.tsx +1 -1
  574. package/ui/src/awesome/SpotlightCard/demos/index.tsx +1 -1
  575. package/ui/src/awesome/SpotlightCard/type.ts +1 -1
  576. package/ui/src/awesome/TypewriterEffect/TypewriterEffect.tsx +1 -1
  577. package/ui/src/awesome/TypewriterEffect/demos/advanced.tsx +1 -1
  578. package/ui/src/awesome/TypewriterEffect/demos/callback.tsx +1 -1
  579. package/ui/src/awesome/TypewriterEffect/demos/colors.tsx +1 -1
  580. package/ui/src/awesome/TypewriterEffect/demos/cursorBehavior.tsx +1 -1
  581. package/ui/src/awesome/TypewriterEffect/demos/cursorStyles.tsx +1 -1
  582. package/ui/src/awesome/TypewriterEffect/demos/customSpeed.tsx +1 -1
  583. package/ui/src/awesome/TypewriterEffect/demos/emoji.tsx +1 -1
  584. package/ui/src/awesome/TypewriterEffect/demos/initialDelay.tsx +1 -1
  585. package/ui/src/awesome/TypewriterEffect/demos/segmentModes.tsx +1 -1
  586. package/ui/src/awesome/TypewriterEffect/demos/variableSpeed.tsx +1 -1
  587. package/ui/src/base-ui/Button/Button.tsx +1 -1
  588. package/ui/src/base-ui/ContextMenu/ContextMenuHost.tsx +4 -4
  589. package/ui/src/base-ui/ContextMenu/ContextMenuTrigger.tsx +1 -1
  590. package/ui/src/base-ui/ContextMenu/__tests__/slots.test.tsx +1 -1
  591. package/ui/src/base-ui/ContextMenu/renderItems.tsx +9 -9
  592. package/ui/src/base-ui/ContextMenu/store.ts +1 -1
  593. package/ui/src/base-ui/ContextMenu/style.ts +1 -1
  594. package/ui/src/base-ui/ContextMenu/type.ts +1 -1
  595. package/ui/src/base-ui/DropdownMenu/DropdownMenu.tsx +2 -2
  596. package/ui/src/base-ui/DropdownMenu/atoms.tsx +6 -6
  597. package/ui/src/base-ui/DropdownMenu/renderItems.tsx +3 -3
  598. package/ui/src/base-ui/DropdownMenu/type.ts +3 -3
  599. package/ui/src/base-ui/Modal/Modal.tsx +1 -1
  600. package/ui/src/base-ui/Modal/atoms.tsx +3 -3
  601. package/ui/src/base-ui/Modal/imperative.tsx +3 -3
  602. package/ui/src/base-ui/Popover/Popover.tsx +1 -1
  603. package/ui/src/base-ui/Popover/PopoverGroup.tsx +3 -3
  604. package/ui/src/base-ui/Popover/PopoverInGroup.tsx +2 -2
  605. package/ui/src/base-ui/Popover/PopoverPortal.tsx +1 -1
  606. package/ui/src/base-ui/Popover/PopoverStandalone.tsx +4 -4
  607. package/ui/src/base-ui/Popover/atoms.tsx +3 -3
  608. package/ui/src/base-ui/Popover/demos/dropdown-menu.tsx +1 -1
  609. package/ui/src/base-ui/Popover/type.ts +2 -2
  610. package/ui/src/base-ui/Select/Select.tsx +1 -1
  611. package/ui/src/base-ui/Select/atoms.tsx +3 -3
  612. package/ui/src/base-ui/Select/hooks.tsx +1 -1
  613. package/ui/src/base-ui/Select/parts.tsx +2 -2
  614. package/ui/src/base-ui/Select/renderOptions.tsx +2 -2
  615. package/ui/src/base-ui/Select/style.ts +1 -1
  616. package/ui/src/base-ui/Select/type.ts +1 -1
  617. package/ui/src/base-ui/Switch/Switch.tsx +1 -1
  618. package/ui/src/base-ui/Switch/atoms.tsx +1 -1
  619. package/ui/src/base-ui/Toast/Toast.tsx +1 -1
  620. package/ui/src/base-ui/Toast/imperative.tsx +2 -2
  621. package/ui/src/base-ui/Toast/type.ts +1 -1
  622. package/ui/src/base-ui/Tooltip/TooltipContent.tsx +1 -1
  623. package/ui/src/base-ui/Tooltip/TooltipGroup.tsx +4 -4
  624. package/ui/src/base-ui/Tooltip/TooltipInGroup.tsx +1 -1
  625. package/ui/src/base-ui/Tooltip/TooltipStandalone.tsx +5 -5
  626. package/ui/src/base-ui/Tooltip/demos/group-children-preserve.tsx +1 -1
  627. package/ui/src/base-ui/Tooltip/demos/group-remove-trigger.tsx +1 -1
  628. package/ui/src/base-ui/Tooltip/demos/group-shared.tsx +1 -1
  629. package/ui/src/base-ui/Tooltip/demos/group.tsx +1 -1
  630. package/ui/src/base-ui/Tooltip/type.ts +2 -2
  631. package/ui/src/brand/BrandLoading/index.tsx +1 -1
  632. package/ui/src/brand/Hubstr/index.tsx +7 -7
  633. package/ui/src/brand/HubstrChat/index.tsx +8 -8
  634. package/ui/src/brand/HubstrChatText/index.tsx +1 -1
  635. package/ui/src/brand/HubstrText/index.tsx +1 -1
  636. package/ui/src/brand/Logo3d/index.tsx +1 -1
  637. package/ui/src/brand/LogoFlat/index.tsx +1 -1
  638. package/ui/src/brand/LogoMark.tsx +29 -29
  639. package/ui/src/brand/LogoMono/index.tsx +1 -1
  640. package/ui/src/brand/LogoThree/Loading.tsx +2 -2
  641. package/ui/src/brand/LogoThree/LogoSpline.tsx +1 -1
  642. package/ui/src/brand/LogoThree/demos/LogoSpline.tsx +29 -29
  643. package/ui/src/brand/LogoThree/index.tsx +2 -2
  644. package/ui/src/brand/components/Divider.tsx +1 -1
  645. package/ui/src/chat/BackBottom/BackBottom.tsx +1 -1
  646. package/ui/src/chat/Bubble/Bubble.tsx +1 -1
  647. package/ui/src/chat/Bubble/style.ts +1 -1
  648. package/ui/src/chat/Bubble/type.ts +1 -1
  649. package/ui/src/chat/ChatHeader/ChatHeader.tsx +2 -2
  650. package/ui/src/chat/ChatHeader/ChatHeaderTitle.tsx +1 -1
  651. package/ui/src/chat/ChatHeader/type.ts +1 -1
  652. package/ui/src/chat/ChatInputArea/ChatInputArea.tsx +1 -1
  653. package/ui/src/chat/ChatInputArea/components/ChatInputActionBar.tsx +1 -1
  654. package/ui/src/chat/ChatInputArea/components/ChatInputAreaInner.tsx +1 -1
  655. package/ui/src/chat/ChatInputArea/components/ChatSendButton.tsx +3 -3
  656. package/ui/src/chat/ChatInputArea/demos/index.tsx +1 -1
  657. package/ui/src/chat/ChatInputArea/style.ts +1 -1
  658. package/ui/src/chat/ChatInputArea/type.ts +3 -3
  659. package/ui/src/chat/ChatItem/ChatItem.tsx +3 -3
  660. package/ui/src/chat/ChatItem/components/Actions.tsx +2 -2
  661. package/ui/src/chat/ChatItem/components/Avatar.tsx +2 -2
  662. package/ui/src/chat/ChatItem/components/ErrorContent.tsx +3 -3
  663. package/ui/src/chat/ChatItem/components/Loading.tsx +3 -3
  664. package/ui/src/chat/ChatItem/components/MessageContent.tsx +4 -4
  665. package/ui/src/chat/ChatItem/components/Title.tsx +3 -3
  666. package/ui/src/chat/ChatItem/type.ts +7 -7
  667. package/ui/src/chat/ChatList/components/ChatActionsBar.tsx +1 -1
  668. package/ui/src/chat/ChatList/components/ChatListItem.tsx +4 -4
  669. package/ui/src/chat/ChatList/components/HistoryDivider.tsx +2 -2
  670. package/ui/src/chat/ChatList/components/useChatListActionsBar.tsx +1 -1
  671. package/ui/src/chat/ChatList/demos/data.ts +1 -1
  672. package/ui/src/chat/ChatList/type.ts +5 -5
  673. package/ui/src/chat/EditableMessage/EditableMessage.tsx +3 -3
  674. package/ui/src/chat/EditableMessage/type.ts +3 -3
  675. package/ui/src/chat/EditableMessageList/EditableMessageList.tsx +7 -7
  676. package/ui/src/chat/EditableMessageList/messageReducer.ts +1 -1
  677. package/ui/src/chat/EditableMessageList/type.ts +1 -1
  678. package/ui/src/chat/MessageInput/MessageInput.tsx +7 -7
  679. package/ui/src/chat/MessageInput/demos/index.tsx +1 -1
  680. package/ui/src/chat/MessageInput/type.ts +3 -3
  681. package/ui/src/chat/MessageModal/MessageModal.tsx +9 -9
  682. package/ui/src/chat/MessageModal/TextArea.tsx +1 -1
  683. package/ui/src/chat/MessageModal/type.ts +2 -2
  684. package/ui/src/chat/TokenTag/TokenTag.tsx +3 -3
  685. package/ui/src/chat/TokenTag/type.ts +1 -1
  686. package/ui/src/color/ColorScales/ScaleRow.tsx +2 -2
  687. package/ui/src/color/ColorScales/index.tsx +1 -1
  688. package/ui/src/color/CssVar/ScaleRow.tsx +2 -2
  689. package/ui/src/color/CssVar/VarRow.tsx +2 -2
  690. package/ui/src/color/CssVar/index.tsx +1 -1
  691. package/ui/src/color/neutrals/index.ts +1 -1
  692. package/ui/src/hooks/useHighlight.ts +2 -2
  693. package/ui/src/hooks/useMarkdown/useMarkdownComponents.tsx +8 -8
  694. package/ui/src/hooks/useMarkdown/useMarkdownContent.ts +1 -1
  695. package/ui/src/hooks/useMarkdown/useMarkdownRehypePlugins.ts +3 -3
  696. package/ui/src/hooks/useMarkdown/useMarkdownRemarkPlugins.ts +5 -5
  697. package/ui/src/hooks/useStableValue.ts +1 -1
  698. package/ui/src/hooks/useStreamHighlight.ts +2 -2
  699. package/ui/src/i18n/context.tsx +4 -4
  700. package/ui/src/i18n/demos/ConfigProvider.tsx +4 -4
  701. package/ui/src/i18n/demos/DynamicImport.tsx +2 -2
  702. package/ui/src/i18n/demos/index.tsx +4 -4
  703. package/ui/src/icons/lucideExtra/demos/index.tsx +1 -1
  704. package/ui/src/index.ts +2 -2
  705. package/ui/src/mdx/Callout/index.tsx +2 -2
  706. package/ui/src/mdx/Cards/Card.tsx +6 -6
  707. package/ui/src/mdx/Cards/index.tsx +1 -1
  708. package/ui/src/mdx/FileTree/File.tsx +2 -2
  709. package/ui/src/mdx/FileTree/Folder.tsx +2 -2
  710. package/ui/src/mdx/FileTree/index.tsx +1 -1
  711. package/ui/src/mdx/Mdx/index.tsx +5 -5
  712. package/ui/src/mdx/Steps/index.tsx +1 -1
  713. package/ui/src/mdx/Tabs/Tab.tsx +1 -1
  714. package/ui/src/mdx/Tabs/index.tsx +2 -2
  715. package/ui/src/mdx/mdxComponents/Citation/PopoverPanel.tsx +2 -2
  716. package/ui/src/mdx/mdxComponents/Citation/index.tsx +2 -2
  717. package/ui/src/mdx/mdxComponents/CodeBlock.tsx +2 -2
  718. package/ui/src/mdx/mdxComponents/Image.tsx +1 -1
  719. package/ui/src/mdx/mdxComponents/Link.tsx +4 -4
  720. package/ui/src/mdx/mdxComponents/Pre.tsx +5 -5
  721. package/ui/src/mdx/mdxComponents/Section.tsx +1 -1
  722. package/ui/src/mdx/mdxComponents/Video.tsx +1 -1
  723. package/ui/src/mdx/mdxComponents/index.ts +7 -7
  724. package/ui/src/mobile/ChatHeader/ChatHeader.tsx +3 -3
  725. package/ui/src/mobile/ChatHeader/ChatHeaderTitle.tsx +1 -1
  726. package/ui/src/mobile/ChatHeader/demos/index.tsx +1 -1
  727. package/ui/src/mobile/ChatHeader/type.ts +1 -1
  728. package/ui/src/mobile/ChatInputArea/ChatInputArea.tsx +4 -4
  729. package/ui/src/mobile/ChatInputArea/components/ChatSendButton.tsx +1 -1
  730. package/ui/src/mobile/ChatInputArea/demos/index.tsx +1 -1
  731. package/ui/src/mobile/ChatInputArea/type.ts +2 -2
  732. package/ui/src/mobile/SafeArea/demos/index.tsx +1 -1
  733. package/ui/src/mobile/SafeArea/type.ts +1 -1
  734. package/ui/src/mobile/TabBar/TabBar.tsx +2 -2
  735. package/ui/src/mobile/TabBar/type.ts +1 -1
  736. package/ui/src/storybook/StoryBook/index.tsx +2 -2
  737. package/ui/src/styles/customTheme.ts +2 -2
  738. package/ui/src/styles/theme/algorithms/darkAlgorithm.ts +5 -5
  739. package/ui/src/styles/theme/algorithms/lightAlgorithm.ts +3 -3
  740. package/ui/src/styles/theme/customStylish.ts +1 -1
  741. package/ui/src/styles/theme/customStylishStatic.ts +1 -1
  742. package/ui/src/styles/theme/customToken.ts +3 -3
  743. package/ui/src/styles/theme/generateColorPalette.ts +1 -1
  744. package/ui/src/styles/theme/token/dark.ts +1 -1
  745. package/ui/src/styles/theme/token/light.ts +1 -1
  746. package/ui/src/utils/parseTrigger.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  import { ComponentType, HTMLAttributes } from 'react';
2
2
  import type { AxisDomain } from 'recharts/types/util/types';
3
3
 
4
- import type { NoDataProps } from '@/common/NoData';
5
- import { IntervalType, LabelFormatter, ValueFormatter } from '@/types/charts';
4
+ import type { NoDataProps } from './NoData';
5
+ import { IntervalType, LabelFormatter, ValueFormatter } from '../types/charts';
6
6
 
7
7
  import type BaseAnimationTimingProps from './BaseAnimationTimingProps';
8
8
  import { CustomTooltipProps } from './CustomTooltipProps';
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
 
3
- import { NoDataProps } from '@/common/NoData';
3
+ import { NoDataProps } from './NoData';
4
4
 
5
5
  import BaseAnimationTimingProps from './BaseAnimationTimingProps';
6
6
 
@@ -1,8 +1,8 @@
1
1
  import { Flexbox } from '@hubstr/kit/ui';
2
2
  import { Dispatch, SetStateAction, useRef } from 'react';
3
3
 
4
- import Legend from '@/Legend';
5
- import { useOnWindowResize } from '@/hooks/useOnWindowResize';
4
+ import Legend from '../Legend';
5
+ import { useOnWindowResize } from '../hooks/useOnWindowResize';
6
6
 
7
7
  const calculateHeight = (height: number | undefined) =>
8
8
  height
@@ -3,7 +3,7 @@ import { Typography } from 'antd';
3
3
  import { createStaticStyles, cssVar, cx } from 'antd-style';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- import { ValueFormatter } from '@/types/charts';
6
+ import { ValueFormatter } from '../../types/charts';
7
7
 
8
8
  import ChartTooltipFrame from './ChartTooltipFrame';
9
9
  import ChartTooltipRow from './ChartTooltipRow';
@@ -1,7 +1,7 @@
1
1
  import { NameType, Payload } from 'recharts/types/component/DefaultTooltipContent';
2
2
 
3
- import { ScatterChartValueFormatter } from '@/ScatterChart';
4
- import { ValueFormatter } from '@/types/charts';
3
+ import { ScatterChartValueFormatter } from '../ScatterChart';
4
+ import { ValueFormatter } from '../types/charts';
5
5
 
6
6
  export type CustomTooltipProps = {
7
7
  active: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  import { cssVar } from 'antd-style';
2
2
  import React, { memo } from 'react';
3
3
 
4
- import { ValueFormatter } from '@/types/charts';
4
+ import { ValueFormatter } from '../types/charts';
5
5
 
6
6
  interface CustomYAxisTickProps {
7
7
  align: 'left' | 'right';
@@ -1,6 +1,6 @@
1
1
  import { useEffect } from 'react';
2
2
 
3
- import { isOnSeverSide } from '@/utils';
3
+ import { isOnSeverSide } from '../utils';
4
4
 
5
5
  export const useOnWindowResize = (handler: { (): void }) => {
6
6
  useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
2
 
3
- import { isOnSeverSide } from '@/utils';
3
+ import { isOnSeverSide } from '../utils';
4
4
 
5
5
  const query = '(prefers-reduced-motion: reduce)';
6
6
 
@@ -21,4 +21,4 @@ export { default as ScatterChart, type ScatterChartProps } from './ScatterChart'
21
21
  export * from './SparkChart';
22
22
  export { default as Tracker, type TrackerProps } from './Tracker';
23
23
  export type * from './types/charts';
24
- export { useThemeColorRange } from '@/hooks/useThemeColorRange';
24
+ export { useThemeColorRange } from './hooks/useThemeColorRange';
@@ -12,8 +12,8 @@ import {
12
12
  subWeeks,
13
13
  } from 'date-fns';
14
14
 
15
- import type { Activity, Week } from '@/types/charts';
16
- import { isOnSeverSide } from '@/utils/index';
15
+ import type { Activity, Week } from '../types/charts';
16
+ import { isOnSeverSide } from './index';
17
17
 
18
18
  export const DEFAULT_MONTH_LABELS = [
19
19
  'Jan',
@@ -1,5 +1,5 @@
1
- import { ValueFormatter } from '@/types/charts';
2
- import { defaultValueFormatter, isOnSeverSide } from '@/utils/index';
1
+ import { ValueFormatter } from '../types/charts';
2
+ import { defaultValueFormatter, isOnSeverSide } from './index';
3
3
 
4
4
  export const getTextWidth = (text: string) => {
5
5
  if (isOnSeverSide) return 0;
@@ -1,4 +1,4 @@
1
- import { DeltaTypes, ValueFormatter } from '@/types/charts';
1
+ import { DeltaTypes, ValueFormatter } from '../types/charts';
2
2
 
3
3
  export const defaultValueFormatter: ValueFormatter = String;
4
4
 
@@ -1,4 +1,4 @@
1
- import { createDebugLogger } from '@/utils/debug';
1
+ import { createDebugLogger } from '../utils/debug';
2
2
 
3
3
  const logger = createDebugLogger('plugin', 'codemirror-loader');
4
4
 
@@ -23,11 +23,11 @@ export const macOSDetect = (): boolean => {
23
23
 
24
24
  export const isMac = macOSDetect();
25
25
 
26
- // TODO: 这些常量已经迁移到 @/const/hotkey,建议使用新的统一定义
26
+ // TODO: 这些常量已经迁移到 ../const/hotkey,建议使用新的统一定义
27
27
  // 为了向后兼容性保留,但应该逐步迁移到新的 PLATFORM_MODIFIER
28
- /** @deprecated 请使用 @/const/hotkey 中的 PLATFORM_MODIFIER.MOD */
28
+ /** @deprecated 请使用 ../const/hotkey 中的 PLATFORM_MODIFIER.MOD */
29
29
  export const CONTROL_OR_META = { ctrlKey: !IS_APPLE, metaKey: IS_APPLE };
30
- /** @deprecated 请使用 @/const/hotkey 中的 PLATFORM_MODIFIER.MOD_SHIFT */
30
+ /** @deprecated 请使用 ../const/hotkey 中的 PLATFORM_MODIFIER.MOD_SHIFT */
31
31
  export const CONTROL_OR_META_AND_SHIFT = { ctrlKey: !IS_APPLE, metaKey: IS_APPLE, shiftKey: true };
32
32
 
33
33
  export { IS_FIREFOX, IS_APPLE as isApple } from '@lexical/utils';
@@ -1,6 +1,6 @@
1
1
  import { COMMAND_PRIORITY_LOW } from 'lexical';
2
2
 
3
- import { HotkeyEnum, HotkeyItem, HotkeyScopeEnum, KeyEnum } from '@/types/hotkey';
3
+ import { HotkeyEnum, HotkeyItem, HotkeyScopeEnum, KeyEnum } from '../types/hotkey';
4
4
 
5
5
  const combineKeys = (keys: string[]) => keys.join('+');
6
6
 
@@ -9,7 +9,7 @@ import {
9
9
  } from 'lexical';
10
10
  import { beforeEach, describe, expect, it } from 'vitest';
11
11
 
12
- import { CommonPlugin } from '@/plugins/common';
12
+ import { CommonPlugin } from '../../plugins/common';
13
13
 
14
14
  import Editor from '../';
15
15
 
@@ -1,20 +1,20 @@
1
1
  // @vitest-environment node
2
2
  import { describe, expect, it, vi } from 'vitest';
3
3
 
4
- import { CodePlugin } from '@/plugins/code';
5
- import { CodeblockPlugin } from '@/plugins/codeblock';
6
- import { CommonPlugin } from '@/plugins/common';
7
- import { FilePlugin } from '@/plugins/file';
8
- import { HRPlugin } from '@/plugins/hr';
9
- import { ImagePlugin } from '@/plugins/image';
10
- import { LinkPlugin } from '@/plugins/link';
11
- import { LinkHighlightPlugin } from '@/plugins/link-highlight';
12
- import { ListPlugin } from '@/plugins/list';
13
- import { MarkdownPlugin } from '@/plugins/markdown';
14
- import { MathPlugin } from '@/plugins/math';
15
- import { MentionPlugin } from '@/plugins/mention';
16
- import { SlashPlugin } from '@/plugins/slash';
17
- import { TablePlugin } from '@/plugins/table';
4
+ import { CodePlugin } from '../../plugins/code';
5
+ import { CodeblockPlugin } from '../../plugins/codeblock';
6
+ import { CommonPlugin } from '../../plugins/common';
7
+ import { FilePlugin } from '../../plugins/file';
8
+ import { HRPlugin } from '../../plugins/hr';
9
+ import { ImagePlugin } from '../../plugins/image';
10
+ import { LinkPlugin } from '../../plugins/link';
11
+ import { LinkHighlightPlugin } from '../../plugins/link-highlight';
12
+ import { ListPlugin } from '../../plugins/list';
13
+ import { MarkdownPlugin } from '../../plugins/markdown';
14
+ import { MathPlugin } from '../../plugins/math';
15
+ import { MentionPlugin } from '../../plugins/mention';
16
+ import { SlashPlugin } from '../../plugins/slash';
17
+ import { TablePlugin } from '../../plugins/table';
18
18
 
19
19
  import Editor from '../';
20
20
 
@@ -165,7 +165,7 @@ describe('editor kernel utils', () => {
165
165
  });
166
166
 
167
167
  it('getKernelFromEditor should read injected kernel', () => {
168
- const kernel = { id: 'kernel' } as unknown as import('@/types').IEditorKernel;
168
+ const kernel = { id: 'kernel' } as unknown as import('../../types').IEditorKernel;
169
169
  const editorWithKernel = { _kernel: kernel } as unknown as import('lexical').LexicalEditor;
170
170
  expect(getKernelFromEditor(editorWithKernel)).toBe(kernel);
171
171
 
@@ -1,4 +1,4 @@
1
- import type { IEditor } from '@/types';
1
+ import type { IEditor } from '../types';
2
2
 
3
3
  import { Kernel } from './kernel';
4
4
 
@@ -23,9 +23,9 @@ import {
23
23
  createEditor,
24
24
  } from 'lexical';
25
25
 
26
- import defaultLocale from '@/locale';
27
- import { $isRootTextContentEmpty } from '@/plugins/common/utils';
28
- import { HotkeyId } from '@/types/hotkey';
26
+ import defaultLocale from '../locale';
27
+ import { $isRootTextContentEmpty } from '../plugins/common/utils';
28
+ import { HotkeyId } from '../types/hotkey';
29
29
  import {
30
30
  Commands,
31
31
  IBeforeEditorInitLifecycle,
@@ -39,15 +39,15 @@ import {
39
39
  IPlugin,
40
40
  ISelectionObject,
41
41
  IServiceID,
42
- } from '@/types/kernel';
43
- import { ILocaleKeys } from '@/types/locale';
44
- import { createDebugLogger } from '@/utils/debug';
42
+ } from '../types/kernel';
43
+ import { ILocaleKeys } from '../types/locale';
44
+ import { createDebugLogger } from '../utils/debug';
45
45
  import {
46
46
  HotkeyOptions,
47
47
  HotkeysEvent,
48
48
  getHotkeyById,
49
49
  registerHotkey,
50
- } from '@/utils/hotkey/registerHotkey';
50
+ } from '../utils/hotkey/registerHotkey';
51
51
 
52
52
  import DataSource from './data-source';
53
53
  import { registerEvent } from './event';
@@ -1,6 +1,6 @@
1
1
  import EventEmitter from 'eventemitter3';
2
2
 
3
- import type { IEditorKernel, INodeRegistrationTransform } from '@/types/kernel';
3
+ import type { IEditorKernel, INodeRegistrationTransform } from '../types/kernel';
4
4
 
5
5
  export abstract class KernelPlugin extends EventEmitter {
6
6
  protected clears: Array<() => void> = [];
@@ -1,7 +1,7 @@
1
1
  import type { EditorThemeClasses } from 'lexical';
2
2
  import { type Context, createContext as createReactContext, use } from 'react';
3
3
 
4
- import { IEditor } from '@/types';
4
+ import { IEditor } from '../../types';
5
5
 
6
6
  import { assert } from '../utils';
7
7
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type FC, type ReactNode, useEffect, useMemo, useRef } from 'react';
5
5
 
6
- import type { IEditor } from '@/types';
6
+ import type { IEditor } from '../../types';
7
7
 
8
8
  import Editor from '../';
9
9
  import {
@@ -3,7 +3,7 @@
3
3
  import { HUBSTR_THEME_APP_ID } from '@hubstr/kit/ui';
4
4
  import { useMemo } from 'react';
5
5
 
6
- import { useLexicalComposerContext } from '@/editor-kernel/react/react-context';
6
+ import { useLexicalComposerContext } from './react-context';
7
7
 
8
8
  export const useAnchor = () => {
9
9
  const [editor] = useLexicalComposerContext();
@@ -12,8 +12,8 @@ import {
12
12
  } from 'react';
13
13
  import { createPortal, flushSync } from 'react-dom';
14
14
 
15
- import { CAN_USE_DOM } from '@/common/canUseDOM';
16
- import { IEditor } from '@/types';
15
+ import { CAN_USE_DOM } from '../../common/canUseDOM';
16
+ import { IEditor } from '../../types';
17
17
 
18
18
  // This workaround is no longer necessary in React 19,
19
19
  // but we currently support React >=17.x
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useEffect, useState } from 'react';
4
4
 
5
- import { useLexicalComposerContext } from '@/editor-kernel/react/react-context';
5
+ import { useLexicalComposerContext } from './react-context';
6
6
 
7
7
  export const useEditable = () => {
8
8
  const [editor] = useLexicalComposerContext();
@@ -1,6 +1,6 @@
1
1
  import { useCallback } from 'react';
2
2
 
3
- import { ILocaleKeys, TFunction } from '@/types';
3
+ import { ILocaleKeys, TFunction } from '../../types';
4
4
 
5
5
  import { useLexicalComposerContext } from './react-context';
6
6
 
@@ -8,7 +8,7 @@ import {
8
8
  createEditor,
9
9
  } from 'lexical';
10
10
 
11
- import type { IEditorKernel, IServiceID } from '@/types';
11
+ import type { IEditorKernel, IServiceID } from '../types';
12
12
 
13
13
  // DOM
14
14
  export const DOM_ELEMENT_TYPE = 1;
@@ -256,11 +256,11 @@ describe('HeadlessEditor', () => {
256
256
  'utf8',
257
257
  );
258
258
 
259
- expect(source).toContain('@/plugins/codemirror-block/plugin');
259
+ expect(source).toContain('../../plugins/codemirror-block/plugin');
260
260
  expect(source).toContain('CodemirrorPlugin');
261
261
  expect(source).not.toContain('CodeblockPlugin');
262
262
  expect(source).not.toContain('HeadlessCodeblockPlugin');
263
- expect(commandSource).toContain('@/plugins/codeblock/command/symbols');
263
+ expect(commandSource).toContain('../../plugins/codeblock/command/symbols');
264
264
  expect(commandSource).not.toContain("@/plugins/codeblock'");
265
265
  });
266
266
 
@@ -1,27 +1,27 @@
1
1
  import type { CommandPayloadType, SerializedEditorState, SerializedLexicalNode } from 'lexical';
2
2
 
3
- import Editor, { moment } from '@/editor-kernel';
4
- import { CodePlugin } from '@/plugins/code/plugin';
5
- import { CodemirrorPlugin } from '@/plugins/codemirror-block/plugin';
6
- import { CommonPlugin } from '@/plugins/common/plugin';
7
- import { FilePlugin } from '@/plugins/file/plugin';
8
- import { HRPlugin } from '@/plugins/hr/plugin';
9
- import { ImagePlugin } from '@/plugins/image/plugin';
10
- import { INodePlugin } from '@/plugins/inode/plugin';
11
- import { LinkPlugin } from '@/plugins/link/plugin';
12
- import { ListPlugin } from '@/plugins/list/plugin';
3
+ import Editor, { moment } from '../editor-kernel';
4
+ import { CodePlugin } from '../plugins/code/plugin';
5
+ import { CodemirrorPlugin } from '../plugins/codemirror-block/plugin';
6
+ import { CommonPlugin } from '../plugins/common/plugin';
7
+ import { FilePlugin } from '../plugins/file/plugin';
8
+ import { HRPlugin } from '../plugins/hr/plugin';
9
+ import { ImagePlugin } from '../plugins/image/plugin';
10
+ import { INodePlugin } from '../plugins/inode/plugin';
11
+ import { LinkPlugin } from '../plugins/link/plugin';
12
+ import { ListPlugin } from '../plugins/list/plugin';
13
13
  import {
14
14
  LITEXML_APPLY_COMMAND,
15
15
  LITEXML_INSERT_COMMAND,
16
16
  LITEXML_MODIFY_COMMAND,
17
17
  LITEXML_REMOVE_COMMAND,
18
- } from '@/plugins/litexml/command';
19
- import { LitexmlPlugin } from '@/plugins/litexml/plugin';
20
- import { MarkdownPlugin } from '@/plugins/markdown/plugin';
21
- import { MathPlugin } from '@/plugins/math/plugin';
22
- import { MentionPlugin } from '@/plugins/mention/plugin';
23
- import { TablePlugin } from '@/plugins/table/plugin';
24
- import type { IDocumentOptions, IEditor, IPlugin } from '@/types';
18
+ } from '../plugins/litexml/command';
19
+ import { LitexmlPlugin } from '../plugins/litexml/plugin';
20
+ import { MarkdownPlugin } from '../plugins/markdown/plugin';
21
+ import { MathPlugin } from '../plugins/math/plugin';
22
+ import { MentionPlugin } from '../plugins/mention/plugin';
23
+ import { TablePlugin } from '../plugins/table/plugin';
24
+ import type { IDocumentOptions, IEditor, IPlugin } from '../types';
25
25
 
26
26
  export type { FileListItem, ImageListItem, MediaLists } from './extract-media-from-editor-state';
27
27
  export { extractMediaFromEditorState } from './extract-media-from-editor-state';
@@ -14,10 +14,10 @@ import {
14
14
  } from 'lexical';
15
15
  import type { BaseSelection } from 'lexical';
16
16
 
17
- import { KernelPlugin } from '@/editor-kernel/plugin';
18
- import { IMarkdownShortCutService } from '@/plugins/markdown';
19
- import { IEditor, IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '@/types';
20
- import { createDebugLogger } from '@/utils/debug';
17
+ import { KernelPlugin } from '../../../editor-kernel/plugin';
18
+ import { IMarkdownShortCutService } from '../../markdown';
19
+ import { IEditor, IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
20
+ import { createDebugLogger } from '../../../utils/debug';
21
21
 
22
22
  import { PlaceholderBlockNode, PlaceholderNode } from '../node/placeholderNode';
23
23
 
@@ -3,8 +3,8 @@
3
3
  import { cx } from 'antd-style';
4
4
  import { type FC, useLayoutEffect, useRef } from 'react';
5
5
 
6
- import { useLexicalComposerContext } from '@/editor-kernel/react/react-context';
7
- import { createDebugLogger } from '@/utils/debug';
6
+ import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
7
+ import { createDebugLogger } from '../../../utils/debug';
8
8
 
9
9
  import { AutoCompletePlugin } from '../plugin';
10
10
  import { styles } from './style';
@@ -1,4 +1,4 @@
1
- import { IEditor } from '@/types';
1
+ import { IEditor } from '../../../types';
2
2
 
3
3
  export interface ReactAutoCompletePluginProps {
4
4
  delay?: number;
@@ -18,7 +18,7 @@ import {
18
18
  createCommand,
19
19
  } from 'lexical';
20
20
 
21
- import { createDebugLogger } from '@/utils/debug';
21
+ import { createDebugLogger } from '../../../utils/debug';
22
22
 
23
23
  export interface BlockMovePayload {
24
24
  placement: 'after' | 'before';
@@ -16,8 +16,8 @@ import {
16
16
  ParagraphNode,
17
17
  } from 'lexical';
18
18
 
19
- import { KernelPlugin } from '@/editor-kernel/plugin';
20
- import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '@/types';
19
+ import { KernelPlugin } from '../../../editor-kernel/plugin';
20
+ import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
21
21
 
22
22
  import { registerBlockMoveCommand } from '../command';
23
23
  import { BlockMenuService, IBlockMenuService } from '../service';
@@ -19,11 +19,11 @@ import {
19
19
  } from 'react';
20
20
  import { createPortal } from 'react-dom';
21
21
 
22
- import { useLexicalEditor } from '@/editor-kernel/react';
23
- import { useLexicalComposerContext } from '@/editor-kernel/react/react-context';
24
- import { useEditable } from '@/editor-kernel/react/useEditable';
25
- import { ILocaleKeys } from '@/types';
26
- import { createDebugLogger } from '@/utils/debug';
22
+ import { useLexicalEditor } from '../../../editor-kernel/react';
23
+ import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
24
+ import { useEditable } from '../../../editor-kernel/react/useEditable';
25
+ import { ILocaleKeys } from '../../../types';
26
+ import { createDebugLogger } from '../../../utils/debug';
27
27
 
28
28
  import { BlockPlugin, type BlockPluginOptions } from '../plugin';
29
29
  import { BlockMenuService, type IBlockMenuRenderContext, IBlockMenuService } from '../service';
@@ -1,7 +1,7 @@
1
1
  import type { MutableRefObject } from 'react';
2
2
 
3
- import type { IEditor } from '@/types';
4
- import { createDebugLogger } from '@/utils/debug';
3
+ import type { IEditor } from '../../../../types';
4
+ import { createDebugLogger } from '../../../../utils/debug';
5
5
 
6
6
  import { MOVE_BLOCK_COMMAND } from '../../command';
7
7
  import { type IBlockMenuRenderContext } from '../../service';
@@ -1,7 +1,7 @@
1
1
  import type { LexicalNode } from 'lexical';
2
2
 
3
- import { genServiceId } from '@/editor-kernel';
4
- import type { IEditor, IServiceID } from '@/types';
3
+ import { genServiceId } from '../../../editor-kernel';
4
+ import type { IEditor, IServiceID } from '../../../types';
5
5
 
6
6
  export interface IBlockMenuRenderContext {
7
7
  blockElement: HTMLElement;
@@ -1,10 +1,10 @@
1
1
  import { describe, expect, it, vi } from 'vitest';
2
2
 
3
- import Editor, { resetRandomKey } from '@/editor-kernel';
4
- import { CommonPlugin } from '@/plugins/common';
5
- import { LitexmlPlugin } from '@/plugins/litexml';
6
- import { MarkdownPlugin } from '@/plugins/markdown';
7
- import { IEditor } from '@/types';
3
+ import Editor, { resetRandomKey } from '../../../editor-kernel';
4
+ import { CommonPlugin } from '../../common';
5
+ import { LitexmlPlugin } from '../../litexml';
6
+ import { MarkdownPlugin } from '../../markdown';
7
+ import { IEditor } from '../../../types';
8
8
 
9
9
  import { CodePlugin } from '../plugin';
10
10
 
@@ -8,7 +8,7 @@ import {
8
8
  createCommand,
9
9
  } from 'lexical';
10
10
 
11
- import { $createCursorNode } from '@/plugins/common';
11
+ import { $createCursorNode } from '../../common';
12
12
 
13
13
  import { $createCodeNode, $isCodeInlineNode, getCodeInlineNode } from '../node/code';
14
14
 
@@ -16,7 +16,7 @@ import {
16
16
  $createCursorNode,
17
17
  $isCursorNode,
18
18
  CardLikeElementNode,
19
- } from '@/plugins/common/node/cursor';
19
+ } from '../../common/node/cursor';
20
20
 
21
21
  export type SerializedCodeNode = SerializedElementNode;
22
22
 
@@ -1,11 +1,11 @@
1
1
  import { $setSelection, LexicalEditor, TextNode } from 'lexical';
2
2
 
3
- import { INodeHelper } from '@/editor-kernel/inode/helper';
4
- import { KernelPlugin } from '@/editor-kernel/plugin';
5
- import { $createCursorNode, cursorNodeSerialized } from '@/plugins/common';
6
- import { ILitexmlService } from '@/plugins/litexml';
7
- import { IMarkdownShortCutService } from '@/plugins/markdown/service/shortcut';
8
- import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '@/types';
3
+ import { INodeHelper } from '../../../editor-kernel/inode/helper';
4
+ import { KernelPlugin } from '../../../editor-kernel/plugin';
5
+ import { $createCursorNode, cursorNodeSerialized } from '../../common';
6
+ import { ILitexmlService } from '../../litexml';
7
+ import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
8
+ import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
9
9
 
10
10
  import { registerCodeInlineCommand } from '../command';
11
11
  import { $createCodeNode, CodeNode } from '../node/code';
@@ -1,9 +1,9 @@
1
1
  import { mergeRegister } from '@lexical/utils';
2
2
  import { $getNodeByKey, HISTORY_MERGE_TAG, LexicalEditor } from 'lexical';
3
3
 
4
- import { $createCursorNode } from '@/plugins/common';
5
- import { IEditorKernel } from '@/types';
6
- import { HotkeyEnum } from '@/types/hotkey';
4
+ import { $createCursorNode } from '../../common';
5
+ import { IEditorKernel } from '../../../types';
6
+ import { HotkeyEnum } from '../../../types/hotkey';
7
7
 
8
8
  import { INSERT_CODEINLINE_COMMAND } from '../command';
9
9
  import { CodeNode } from '../node/code';
@@ -3,8 +3,8 @@
3
3
  import { cx } from 'antd-style';
4
4
  import { type FC, useLayoutEffect } from 'react';
5
5
 
6
- import { useLexicalComposerContext } from '@/editor-kernel/react/react-context';
7
- import { MarkdownPlugin } from '@/plugins/markdown/plugin';
6
+ import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
7
+ import { MarkdownPlugin } from '../../markdown/plugin';
8
8
 
9
9
  import { CodePlugin } from '../plugin';
10
10
  import { styles } from './style';
@@ -1,10 +1,10 @@
1
1
  import { describe, expect, it, vi } from 'vitest';
2
2
 
3
- import Editor from '@/editor-kernel';
4
- import { CommonPlugin } from '@/plugins/common';
5
- import { LitexmlPlugin } from '@/plugins/litexml';
6
- import { MarkdownPlugin } from '@/plugins/markdown';
7
- import { IEditor } from '@/types';
3
+ import Editor from '../../../editor-kernel';
4
+ import { CommonPlugin } from '../../common';
5
+ import { LitexmlPlugin } from '../../litexml';
6
+ import { MarkdownPlugin } from '../../markdown';
7
+ import { IEditor } from '../../../types';
8
8
 
9
9
  import { CodeblockPlugin } from '../plugin';
10
10
 
@@ -57,7 +57,7 @@ import {
57
57
  TextNode,
58
58
  } from 'lexical';
59
59
 
60
- import { INode } from '@/editor-kernel/inode';
60
+ import { INode } from '../../../editor-kernel/inode';
61
61
 
62
62
  import {
63
63
  $getHighlightNodes,
@@ -20,8 +20,8 @@ import type { LexicalEditor, LexicalNode, NodeKey, SerializedTextNode, Spread }
20
20
  import { $createLineBreakNode, $createTabNode, $getNodeByKey } from 'lexical';
21
21
  import { bundledLanguagesInfo, bundledThemesInfo } from 'shiki';
22
22
 
23
- import { INode } from '@/editor-kernel/inode';
24
- import { INodeHelper } from '@/editor-kernel/inode/helper';
23
+ import { INode } from '../../../editor-kernel/inode';
24
+ import { INodeHelper } from '../../../editor-kernel/inode/helper';
25
25
 
26
26
  // Color replacements types for Shiki
27
27
  export type ColorReplacements = Record<string, string>;