@hubstr/kit 0.1.1 → 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.
- package/LICENSE +21 -21
- package/README.md +29 -29
- package/analytics/src/providers/ga4.ts +2 -2
- package/analytics/src/providers/posthog-node.ts +2 -2
- package/analytics/src/providers/posthog.ts +2 -2
- package/analytics/src/providers/xads.ts +2 -2
- package/analytics/src/react/hooks.ts +1 -1
- package/assets-logo/assets/logo-flat.svg +1 -1
- package/assets-logo/assets/logo-high-contrast.svg +1 -1
- package/assets-logo/assets/logo-text.svg +1 -1
- package/charts/src/AccuracyBarChart/index.tsx +9 -9
- package/charts/src/AreaChart/index.tsx +10 -10
- package/charts/src/BarChart/demos/xAxisLabelFormatter.tsx +1 -1
- package/charts/src/BarChart/index.tsx +9 -9
- package/charts/src/BarChart/renderShape.tsx +1 -1
- package/charts/src/BarList/index.tsx +3 -3
- package/charts/src/ComposedChart/index.tsx +7 -7
- package/charts/src/ComposedChart/types.ts +2 -2
- package/charts/src/DataBars/CategoryBar.tsx +3 -3
- package/charts/src/DataBars/DeltaBar.tsx +2 -2
- package/charts/src/DonutChart/DonutChartTooltip.tsx +3 -3
- package/charts/src/DonutChart/index.tsx +7 -7
- package/charts/src/DonutChart/inputParser.ts +2 -2
- package/charts/src/FunnelChart/index.tsx +7 -7
- package/charts/src/Heatmaps/Calendar.tsx +1 -1
- package/charts/src/Heatmaps/ChartLabels.tsx +2 -2
- package/charts/src/Heatmaps/index.tsx +6 -6
- package/charts/src/Legend/index.tsx +1 -1
- package/charts/src/LineChart/index.tsx +10 -10
- package/charts/src/ScatterChart/ScatterChartTooltip.tsx +3 -3
- package/charts/src/ScatterChart/index.tsx +10 -10
- package/charts/src/ScatterChart/renderShape.tsx +1 -1
- package/charts/src/SparkChart/SparkAreaChart.tsx +5 -5
- package/charts/src/SparkChart/SparkBarChart.tsx +4 -4
- package/charts/src/SparkChart/SparkLineChart.tsx +5 -5
- package/charts/src/common/BaseChartProps.tsx +2 -2
- package/charts/src/common/BaseSparkChartProps.tsx +1 -1
- package/charts/src/common/ChartLegend.tsx +2 -2
- package/charts/src/common/ChartTooltip/index.tsx +1 -1
- package/charts/src/common/CustomTooltipProps.tsx +2 -2
- package/charts/src/common/CustomYAxisTick.tsx +1 -1
- package/charts/src/hooks/useOnWindowResize.ts +1 -1
- package/charts/src/hooks/usePrefersReducedMotion.ts +1 -1
- package/charts/src/index.ts +1 -1
- package/charts/src/utils/calendar.ts +2 -2
- package/charts/src/utils/getMaxLabelLength.ts +2 -2
- package/charts/src/utils/index.ts +1 -1
- package/editor/src/codemirror/loader.ts +1 -1
- package/editor/src/common/sys.ts +3 -3
- package/editor/src/const/hotkey.ts +1 -1
- package/editor/src/editor-kernel/__tests__/lexical-patch.test.ts +1 -1
- package/editor/src/editor-kernel/__tests__/node.test.ts +14 -14
- package/editor/src/editor-kernel/__tests__/utils.test.ts +1 -1
- package/editor/src/editor-kernel/index.ts +1 -1
- package/editor/src/editor-kernel/kernel.ts +7 -7
- package/editor/src/editor-kernel/plugin.ts +1 -1
- package/editor/src/editor-kernel/react/react-context.ts +1 -1
- package/editor/src/editor-kernel/react/react-editor.tsx +1 -1
- package/editor/src/editor-kernel/react/useAnchor.ts +1 -1
- package/editor/src/editor-kernel/react/useDecorators.tsx +2 -2
- package/editor/src/editor-kernel/react/useEditable.ts +1 -1
- package/editor/src/editor-kernel/react/useTranslation.ts +1 -1
- package/editor/src/editor-kernel/utils.ts +1 -1
- package/editor/src/headless/__tests__/headless-editor.test.ts +2 -2
- package/editor/src/headless/index.ts +17 -17
- package/editor/src/plugins/auto-complete/plugin/index.ts +4 -4
- package/editor/src/plugins/auto-complete/react/ReactAutoCompletePlugin.tsx +2 -2
- package/editor/src/plugins/auto-complete/react/type.ts +1 -1
- package/editor/src/plugins/block/command/index.ts +1 -1
- package/editor/src/plugins/block/plugin/index.ts +2 -2
- package/editor/src/plugins/block/react/ReactBlockPlugin.tsx +5 -5
- package/editor/src/plugins/block/react/drag/drag-session.ts +2 -2
- package/editor/src/plugins/block/service/i-block-menu-service.ts +2 -2
- package/editor/src/plugins/code/__tests__/litexml.test.ts +5 -5
- package/editor/src/plugins/code/command/index.ts +1 -1
- package/editor/src/plugins/code/node/code.ts +1 -1
- package/editor/src/plugins/code/plugin/index.ts +6 -6
- package/editor/src/plugins/code/plugin/registry.ts +3 -3
- package/editor/src/plugins/code/react/CodeReactPlugin.tsx +2 -2
- package/editor/src/plugins/codeblock/__tests__/litexml.test.ts +5 -5
- package/editor/src/plugins/codeblock/plugin/CodeHighlighterShiki.ts +1 -1
- package/editor/src/plugins/codeblock/plugin/FacadeShiki.ts +2 -2
- package/editor/src/plugins/codeblock/plugin/index.ts +6 -6
- package/editor/src/plugins/codeblock/react/ReactCodeblockPlugin.tsx +2 -2
- package/editor/src/plugins/codeblock/react/type.ts +1 -1
- package/editor/src/plugins/codemirror-block/__tests__/litexml.test.ts +5 -5
- package/editor/src/plugins/codemirror-block/command/index.ts +1 -1
- package/editor/src/plugins/codemirror-block/lib/index.ts +1 -1
- package/editor/src/plugins/codemirror-block/lib/mode.ts +1 -1
- package/editor/src/plugins/codemirror-block/node/CodeMirrorNode.ts +1 -1
- package/editor/src/plugins/codemirror-block/plugin/index.ts +5 -5
- package/editor/src/plugins/codemirror-block/react/CodemirrorNode.tsx +3 -3
- package/editor/src/plugins/codemirror-block/react/ReactCodemirrorNode.tsx +1 -1
- package/editor/src/plugins/common/data-source/json-data-source.ts +4 -4
- package/editor/src/plugins/common/data-source/text-data-source.ts +3 -3
- package/editor/src/plugins/common/node/ElementDOMSlot.ts +1 -1
- package/editor/src/plugins/common/node/cursor.ts +1 -1
- package/editor/src/plugins/common/plugin/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/common/plugin/__test__/markdown.test.ts +4 -4
- package/editor/src/plugins/common/plugin/index.ts +7 -7
- package/editor/src/plugins/common/plugin/mdReader.ts +3 -3
- package/editor/src/plugins/common/plugin/paste-handler.ts +1 -1
- package/editor/src/plugins/common/plugin/register.ts +4 -4
- package/editor/src/plugins/common/react/Placeholder/index.tsx +2 -2
- package/editor/src/plugins/common/react/ReactPlainText.tsx +4 -4
- package/editor/src/plugins/common/react/type.ts +2 -2
- package/editor/src/plugins/common/utils/__test__/utils.test.ts +3 -3
- package/editor/src/plugins/common/utils/index.ts +2 -2
- package/editor/src/plugins/content-blocks/data-source/content-blocks-data-source.ts +2 -2
- package/editor/src/plugins/content-blocks/demos/headless.tsx +1 -1
- package/editor/src/plugins/content-blocks/demos/index.tsx +1 -1
- package/editor/src/plugins/content-blocks/plugin/index.ts +4 -4
- package/editor/src/plugins/content-blocks/types.ts +1 -1
- package/editor/src/plugins/content-blocks/utils/__tests__/extract.test.ts +2 -2
- package/editor/src/plugins/content-blocks/utils/extract.ts +4 -4
- package/editor/src/plugins/file/command/index.ts +1 -1
- package/editor/src/plugins/file/node/FileNode.ts +1 -1
- package/editor/src/plugins/file/plugin/index.ts +7 -7
- package/editor/src/plugins/file/react/ReactFilePlugin.tsx +2 -2
- package/editor/src/plugins/file/react/components/ReactFile.tsx +2 -2
- package/editor/src/plugins/file/react/type.ts +2 -2
- package/editor/src/plugins/hr/node/HorizontalRuleNode.ts +1 -1
- package/editor/src/plugins/hr/plugin/index.ts +5 -5
- package/editor/src/plugins/hr/react/ReactHRPlugin.tsx +2 -2
- package/editor/src/plugins/hr/react/components/HRNode.tsx +1 -1
- package/editor/src/plugins/image/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/image/command/index.ts +1 -1
- package/editor/src/plugins/image/plugin/index.ts +8 -8
- package/editor/src/plugins/image/react/ReactImagePlugin.tsx +2 -2
- package/editor/src/plugins/image/react/components/BrokenImage.tsx +1 -1
- package/editor/src/plugins/image/react/components/Image.tsx +2 -2
- package/editor/src/plugins/image/react/components/ImageEditPopover.tsx +3 -3
- package/editor/src/plugins/image/react/components/__tests__/Image.test.tsx +2 -2
- package/editor/src/plugins/inode/plugin/index.ts +2 -2
- package/editor/src/plugins/inode/react/index.tsx +1 -1
- package/editor/src/plugins/inode/service/index.ts +2 -2
- package/editor/src/plugins/link/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/link/node/LinkNode.ts +2 -2
- package/editor/src/plugins/link/plugin/index.ts +5 -5
- package/editor/src/plugins/link/plugin/registry.ts +2 -2
- package/editor/src/plugins/link/react/ReactLinkPlugin.tsx +4 -4
- package/editor/src/plugins/link/react/components/LinkEdit.tsx +4 -4
- package/editor/src/plugins/link/react/components/LinkToolbar.tsx +5 -5
- package/editor/src/plugins/link/react/type.ts +1 -1
- package/editor/src/plugins/link/service/i-link-service.ts +2 -2
- package/editor/src/plugins/link-highlight/node/link-highlight.ts +1 -1
- package/editor/src/plugins/link-highlight/plugin/index.ts +6 -6
- package/editor/src/plugins/link-highlight/plugin/registry.ts +3 -3
- package/editor/src/plugins/link-highlight/react/ReactLinkHighlightPlugin.tsx +2 -2
- package/editor/src/plugins/link-highlight/utils/index.ts +1 -1
- package/editor/src/plugins/list/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/list/plugin/index.test.ts +4 -4
- package/editor/src/plugins/list/plugin/index.ts +6 -6
- package/editor/src/plugins/list/plugin/registry.ts +2 -2
- package/editor/src/plugins/list/react/ReactListPlugin.tsx +2 -2
- package/editor/src/plugins/list/utils/index.ts +1 -1
- package/editor/src/plugins/litexml/__test__/command.test.ts +6 -6
- package/editor/src/plugins/litexml/__test__/secondary_diff.test.ts +5 -5
- package/editor/src/plugins/litexml/command/index.ts +2 -2
- package/editor/src/plugins/litexml/data-source/litexml-data-source.ts +6 -6
- package/editor/src/plugins/litexml/node/DiffNode.ts +2 -2
- package/editor/src/plugins/litexml/plugin/index.ts +3 -3
- package/editor/src/plugins/litexml/react/DiffNodeToolbar/index.tsx +2 -2
- package/editor/src/plugins/litexml/react/hooks/useHasDiffNode.ts +1 -1
- package/editor/src/plugins/litexml/react/index.tsx +2 -2
- package/editor/src/plugins/litexml/service/litexml-service.ts +1 -1
- package/editor/src/plugins/markdown/command/__tests__/command.test.ts +1 -1
- package/editor/src/plugins/markdown/command/index.ts +2 -2
- package/editor/src/plugins/markdown/data-source/markdown/parse.test.ts +1 -1
- package/editor/src/plugins/markdown/data-source/markdown/parse.ts +2 -2
- package/editor/src/plugins/markdown/data-source/markdown-data-source.ts +5 -5
- package/editor/src/plugins/markdown/plugin/index.ts +3 -3
- package/editor/src/plugins/markdown/react/index.tsx +3 -3
- package/editor/src/plugins/markdown/service/shortcut.ts +4 -4
- package/editor/src/plugins/markdown/utils/index.ts +1 -1
- package/editor/src/plugins/markdown/utils/logger.ts +1 -1
- package/editor/src/plugins/markdown/utils/url-validator.ts +1 -1
- package/editor/src/plugins/math/__tests__/litexml.test.ts +5 -5
- package/editor/src/plugins/math/__tests__/math.test.ts +1 -1
- package/editor/src/plugins/math/node/index.ts +1 -1
- package/editor/src/plugins/math/plugin/index.ts +6 -6
- package/editor/src/plugins/math/react/components/MathEditor.tsx +3 -3
- package/editor/src/plugins/math/react/components/MathEditorContainer.tsx +1 -1
- package/editor/src/plugins/math/react/components/MathEditorContent.tsx +2 -2
- package/editor/src/plugins/math/react/components/MathInline.tsx +3 -3
- package/editor/src/plugins/math/react/components/Placeholder.tsx +1 -1
- package/editor/src/plugins/math/react/index.tsx +2 -2
- package/editor/src/plugins/mention/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/mention/node/MentionNode.ts +1 -1
- package/editor/src/plugins/mention/plugin/__tests__/mention.test.ts +4 -4
- package/editor/src/plugins/mention/plugin/index.ts +6 -6
- package/editor/src/plugins/mention/react/ReactMentionPlugin.tsx +2 -2
- package/editor/src/plugins/mention/react/components/Mention.tsx +1 -1
- package/editor/src/plugins/mention/react/type.ts +1 -1
- package/editor/src/plugins/slash/plugin/index.ts +2 -2
- package/editor/src/plugins/slash/react/ReactSlashPlugin.tsx +3 -3
- package/editor/src/plugins/slash/react/type.ts +3 -3
- package/editor/src/plugins/slash/service/i-slash-service.ts +3 -3
- package/editor/src/plugins/table/__test__/litexml.test.ts +5 -5
- package/editor/src/plugins/table/node/index.ts +2 -2
- package/editor/src/plugins/table/plugin/index.ts +7 -7
- package/editor/src/plugins/table/react/TableActionMenu/ActionMenu.tsx +1 -1
- package/editor/src/plugins/table/react/TableActionMenu/index.tsx +2 -2
- package/editor/src/plugins/table/react/TableColController.tsx +2 -2
- package/editor/src/plugins/table/react/TableControllerMenu.tsx +1 -1
- package/editor/src/plugins/table/react/TableHoverActions/index.tsx +2 -2
- package/editor/src/plugins/table/react/TableHoverActions/utils.ts +1 -1
- package/editor/src/plugins/table/react/TableRowController.tsx +1 -1
- package/editor/src/plugins/table/react/index.tsx +4 -4
- package/editor/src/plugins/table/react/type.ts +1 -1
- package/editor/src/plugins/table/service/i-table-controller-menu-service.ts +2 -2
- package/editor/src/plugins/table/utils/index.ts +1 -1
- package/editor/src/plugins/toolbar/react/index.tsx +3 -3
- package/editor/src/plugins/upload/plugin/index.ts +3 -3
- package/editor/src/plugins/upload/service/i-upload-service.ts +2 -2
- package/editor/src/plugins/virtual-block/plugin/index.ts +2 -2
- package/editor/src/plugins/virtual-block/plugin/register.ts +4 -4
- package/editor/src/plugins/virtual-block/react/ReactVirtualBlock.tsx +1 -1
- package/editor/src/react/ChatInput/ChatInput.tsx +1 -1
- package/editor/src/react/ChatInputActionBar/demos/index.tsx +1 -1
- package/editor/src/react/ChatInputActions/components/useDisplayActionCount.ts +1 -1
- package/editor/src/react/Editor/Editor.tsx +6 -6
- package/editor/src/react/Editor/demos/Container.tsx +1 -1
- package/editor/src/react/Editor/demos/XmlModifier.tsx +2 -2
- package/editor/src/react/Editor/demos/actions.ts +1 -1
- package/editor/src/react/Editor/demos/index.tsx +1 -1
- package/editor/src/react/Editor/demos/pasteAsPlainText.tsx +1 -1
- package/editor/src/react/Editor/type.ts +4 -4
- package/editor/src/react/EditorProvider/demos/index.tsx +1 -1
- package/editor/src/react/EditorProvider/index.tsx +1 -1
- package/editor/src/react/SlashMenu/SlashMenu.tsx +1 -1
- package/editor/src/react/SlashMenu/type.ts +2 -2
- package/editor/src/react/hooks/useEditor.ts +2 -2
- package/editor/src/react/hooks/useEditorState/index.ts +13 -13
- package/editor/src/react/index.ts +1 -1
- package/editor/src/renderer/nodes/index.ts +13 -13
- package/editor/src/renderer/renderers/file.tsx +1 -1
- package/editor/src/renderer/style.ts +6 -6
- package/editor/src/types/kernel.ts +3 -3
- package/editor/src/types/locale.ts +1 -1
- package/editor/src/utils/hotkey/parseHotkeys.ts +2 -2
- package/editor/src/utils/hotkey/registerHotkey.ts +4 -4
- package/package.json +308 -308
- package/tts/src/core/EdgeSpeechTTS/index.ts +4 -4
- package/tts/src/core/EdgeSpeechTTS/options.ts +1 -1
- package/tts/src/core/MicrosoftSpeechTTS/index.ts +4 -4
- package/tts/src/core/MicrosoftSpeechTTS/voiceList.ts +1 -1
- package/tts/src/core/OpenAISTT/index.ts +2 -2
- package/tts/src/core/OpenAITTS/index.ts +2 -2
- package/tts/src/core/SpeechSynthesisTTS/index.ts +1 -1
- package/tts/src/core/SpeechSynthesisTTS/options.ts +2 -2
- package/tts/src/core/VoiceList.ts +5 -5
- package/tts/src/core/index.ts +8 -8
- package/tts/src/core/utils/getVoiceList.ts +1 -1
- package/tts/src/react/AudioPlayer/index.tsx +1 -1
- package/tts/src/react/hooks/useAudioPlayer.ts +1 -1
- package/tts/src/react/hooks/useBlobUrl.ts +3 -3
- package/tts/src/react/hooks/useStreamAudioPlayer.ts +1 -1
- package/tts/src/react/useAudioRecorder/index.ts +2 -2
- package/tts/src/react/useEdgeSpeech/index.ts +2 -2
- package/tts/src/react/useMicrosoftSpeech/index.ts +2 -2
- package/tts/src/react/useOpenAISTT/demos/AutoStop.tsx +1 -1
- package/tts/src/react/useOpenAISTT/demos/index.tsx +1 -1
- package/tts/src/react/useOpenAISTT/useOpenAISTTAutoStop.ts +2 -2
- package/tts/src/react/useOpenAISTT/useOpenAISTTCore.ts +1 -1
- package/tts/src/react/useOpenAISTT/useOpenAISTTInteractive.ts +2 -2
- package/tts/src/react/useOpenAISTT/useOpenAISTTRecorder.ts +3 -3
- package/tts/src/react/useOpenAITTS/demos/index.tsx +1 -1
- package/tts/src/react/useOpenAITTS/index.ts +2 -2
- package/tts/src/react/useSpeechRecognition/useSpeechRecognitionAutoStop.ts +1 -1
- package/tts/src/react/useSpeechRecognition/useSpeechRecognitionCore.ts +1 -1
- package/tts/src/react/useSpeechRecognition/useSpeechRecognitionInteractive.ts +2 -2
- package/tts/src/react/useSpeechSynthes/index.ts +2 -2
- package/tts/src/react/useTTS/index.ts +3 -3
- package/tts/src/server/createOpenaiAudioTranscriptions.ts +1 -1
- package/ui/src/A/index.tsx +2 -2
- package/ui/src/Accordion/AccordionItem.tsx +5 -5
- package/ui/src/Accordion/demos/Action.tsx +1 -1
- package/ui/src/Accordion/demos/Standalone.tsx +1 -1
- package/ui/src/Accordion/demos/data.tsx +1 -1
- package/ui/src/Accordion/demos/index.tsx +1 -1
- package/ui/src/Accordion/type.ts +1 -1
- package/ui/src/ActionIcon/ActionIcon.tsx +3 -3
- package/ui/src/ActionIcon/components/utils.ts +1 -1
- package/ui/src/ActionIcon/demos/DropdownMenu.tsx +2 -2
- package/ui/src/ActionIcon/demos/Size.tsx +1 -1
- package/ui/src/ActionIcon/demos/Variant.tsx +1 -1
- package/ui/src/ActionIcon/style.ts +1 -1
- package/ui/src/ActionIcon/type.ts +3 -3
- package/ui/src/ActionIconGroup/ActionIconGroup.tsx +4 -4
- package/ui/src/ActionIconGroup/style.ts +1 -1
- package/ui/src/ActionIconGroup/type.ts +5 -5
- package/ui/src/Alert/Alert.tsx +4 -4
- package/ui/src/Alert/style.ts +1 -1
- package/ui/src/Alert/type.ts +1 -1
- package/ui/src/AutoComplete/style.ts +1 -1
- package/ui/src/Avatar/Avatar.tsx +5 -5
- package/ui/src/Avatar/AvatarGroup/index.tsx +1 -1
- package/ui/src/Avatar/demos/Bordered.tsx +1 -1
- package/ui/src/Avatar/demos/ErrorFallback.tsx +1 -1
- package/ui/src/Avatar/demos/Text.tsx +1 -1
- package/ui/src/Avatar/style.ts +1 -1
- package/ui/src/Avatar/type.ts +2 -2
- package/ui/src/Block/Block.tsx +1 -1
- package/ui/src/Block/style.ts +1 -1
- package/ui/src/Block/type.ts +1 -1
- package/ui/src/Burger/Burger.tsx +2 -2
- package/ui/src/Burger/style.ts +1 -1
- package/ui/src/Burger/type.ts +1 -1
- package/ui/src/Button/Button.tsx +1 -1
- package/ui/src/Button/demos/Variant.tsx +1 -1
- package/ui/src/Button/style.ts +1 -1
- package/ui/src/Button/type.ts +1 -1
- package/ui/src/Checkbox/Checkbox.tsx +3 -3
- package/ui/src/Checkbox/CheckboxGroup.tsx +1 -1
- package/ui/src/Checkbox/demos/CheckboxGroupDisabled.tsx +1 -1
- package/ui/src/Checkbox/demos/CheckboxGroupOptions.tsx +1 -1
- package/ui/src/Checkbox/demos/CheckboxGroupUsage.tsx +1 -1
- package/ui/src/Checkbox/demos/Indeterminate.tsx +1 -1
- package/ui/src/Checkbox/demos/Size.tsx +1 -1
- package/ui/src/Checkbox/demos/WithText.tsx +1 -1
- package/ui/src/Checkbox/type.ts +3 -3
- package/ui/src/CodeDiff/DiffPanel.tsx +7 -7
- package/ui/src/CodeDiff/demos/ActionsRender.tsx +1 -1
- package/ui/src/CodeDiff/demos/Variants.tsx +1 -1
- package/ui/src/CodeDiff/style.ts +1 -1
- package/ui/src/CodeDiff/theme.ts +1 -1
- package/ui/src/CodeDiff/type.ts +1 -1
- package/ui/src/CodeEditor/CodeEditor.tsx +3 -3
- package/ui/src/CodeEditor/style.ts +1 -1
- package/ui/src/CodeEditor/type.ts +2 -2
- package/ui/src/Collapse/Collapse.tsx +2 -2
- package/ui/src/Collapse/demos/Padding.tsx +1 -1
- package/ui/src/Collapse/demos/data.tsx +1 -1
- package/ui/src/Collapse/style.ts +1 -1
- package/ui/src/Collapse/type.ts +1 -1
- package/ui/src/ColorSwatches/ColorSwatches.tsx +4 -4
- package/ui/src/ColorSwatches/type.ts +1 -1
- package/ui/src/ConfigProvider/index.tsx +3 -3
- package/ui/src/ContextMenu/index.ts +1 -1
- package/ui/src/CopyButton/CopyButton.tsx +3 -3
- package/ui/src/CopyButton/type.ts +1 -1
- package/ui/src/DatePicker/style.ts +1 -1
- package/ui/src/DownloadButton/DownloadButton.tsx +2 -2
- package/ui/src/DownloadButton/type.ts +1 -1
- package/ui/src/DraggablePanel/DraggablePanel.tsx +2 -2
- package/ui/src/DraggablePanel/components/DraggablePanelBody.tsx +2 -2
- package/ui/src/DraggablePanel/components/DraggablePanelContainer.tsx +2 -2
- package/ui/src/DraggablePanel/components/DraggablePanelFooter.tsx +2 -2
- package/ui/src/DraggablePanel/components/DraggablePanelHeader.tsx +3 -3
- package/ui/src/DraggablePanel/demos/DragToCollapse.tsx +1 -1
- package/ui/src/DraggablePanel/demos/Layout.tsx +1 -1
- package/ui/src/DraggablePanel/demos/StableLayout.tsx +2 -2
- package/ui/src/DraggablePanel/demos/index.tsx +1 -1
- package/ui/src/DraggablePanel/type.ts +1 -1
- package/ui/src/DraggableSideNav/DraggableSideNav.tsx +2 -2
- package/ui/src/DraggableSideNav/demos/Body.tsx +1 -1
- package/ui/src/DraggableSideNav/demos/Footer.tsx +1 -1
- package/ui/src/DraggableSideNav/demos/Header.tsx +1 -1
- package/ui/src/DraggableSideNav/demos/index.tsx +3 -3
- package/ui/src/DraggableSideNav/type.ts +1 -1
- package/ui/src/Drawer/Drawer.tsx +2 -2
- package/ui/src/Drawer/type.ts +1 -1
- package/ui/src/Dropdown/Dropdown.tsx +2 -2
- package/ui/src/Dropdown/demos/ContextMenu.tsx +1 -1
- package/ui/src/Dropdown/type.ts +3 -3
- package/ui/src/DropdownMenu/index.ts +2 -2
- package/ui/src/EditableText/ControlInput.tsx +3 -3
- package/ui/src/EditableText/EditableText.tsx +2 -2
- package/ui/src/EditableText/type.ts +2 -2
- package/ui/src/EditorSlashMenu/atoms.tsx +2 -2
- package/ui/src/EmojiPicker/AvatarUploader.tsx +7 -7
- package/ui/src/EmojiPicker/EmojiPicker.tsx +9 -9
- package/ui/src/EmojiPicker/demos/Control.tsx +1 -1
- package/ui/src/EmojiPicker/type.ts +3 -3
- package/ui/src/Empty/Empty.tsx +5 -5
- package/ui/src/Empty/type.ts +4 -4
- package/ui/src/FileTypeIcon/FileTypeIcon.tsx +1 -1
- package/ui/src/FileTypeIcon/components/FileIcon.tsx +1 -1
- package/ui/src/FileTypeIcon/components/FolderIcon.tsx +1 -1
- package/ui/src/FileTypeIcon/demos/Icon.tsx +1 -1
- package/ui/src/FileTypeIcon/type.ts +1 -1
- package/ui/src/FluentEmoji/FluentEmoji.tsx +3 -3
- package/ui/src/FluentEmoji/demos/index.tsx +1 -1
- package/ui/src/FluentEmoji/type.ts +2 -2
- package/ui/src/Footer/Footer.tsx +1 -1
- package/ui/src/Footer/type.ts +1 -1
- package/ui/src/Form/components/FormFlatGroup.tsx +1 -1
- package/ui/src/Form/components/FormFooter.tsx +1 -1
- package/ui/src/Form/components/FormGroup.tsx +3 -3
- package/ui/src/Form/components/FormSubmitFooter.tsx +6 -6
- package/ui/src/Form/components/FormTitle.tsx +2 -2
- package/ui/src/Form/demos/SubmitFooter.tsx +1 -1
- package/ui/src/Form/demos/index.tsx +1 -1
- package/ui/src/Form/style.ts +1 -1
- package/ui/src/Form/type.ts +6 -6
- package/ui/src/FormModal/FormModal.tsx +4 -4
- package/ui/src/FormModal/type.ts +3 -3
- package/ui/src/Grid/Grid.tsx +1 -1
- package/ui/src/Grid/type.ts +1 -1
- package/ui/src/GroupAvatar/GroupAvatar.tsx +3 -3
- package/ui/src/GroupAvatar/demos/CornerShape.tsx +2 -2
- package/ui/src/GroupAvatar/demos/index.tsx +1 -1
- package/ui/src/GroupAvatar/style.ts +1 -1
- package/ui/src/GroupAvatar/type.ts +3 -3
- package/ui/src/GuideCard/GuideCard.tsx +3 -3
- package/ui/src/GuideCard/style.ts +1 -1
- package/ui/src/GuideCard/type.ts +3 -3
- package/ui/src/Header/Header.tsx +1 -1
- package/ui/src/Header/type.ts +1 -1
- package/ui/src/Highlighter/FullFeatured.tsx +7 -7
- package/ui/src/Highlighter/Highlighter.tsx +4 -4
- package/ui/src/Highlighter/LangSelect.tsx +4 -4
- package/ui/src/Highlighter/SyntaxHighlighter/StaticRenderer.tsx +1 -1
- package/ui/src/Highlighter/SyntaxHighlighter/StreamRenderer.tsx +1 -1
- package/ui/src/Highlighter/SyntaxHighlighter/style.ts +1 -1
- package/ui/src/Highlighter/style.ts +1 -1
- package/ui/src/Highlighter/type.ts +3 -3
- package/ui/src/Hotkey/Hotkey.tsx +6 -6
- package/ui/src/Hotkey/demos/InverseTheme.tsx +1 -1
- package/ui/src/Hotkey/demos/MacStyle.tsx +1 -1
- package/ui/src/Hotkey/demos/Mouse.tsx +1 -1
- package/ui/src/Hotkey/style.ts +1 -1
- package/ui/src/Hotkey/type.ts +1 -1
- package/ui/src/HotkeyInput/HotkeyInput.tsx +6 -6
- package/ui/src/HotkeyInput/style.ts +1 -1
- package/ui/src/HtmlPreview/HtmlPreview.tsx +9 -9
- package/ui/src/HtmlPreview/demos/SlowStream.tsx +1 -1
- package/ui/src/HtmlPreview/demos/Streaming.tsx +1 -1
- package/ui/src/HtmlPreview/type.ts +2 -2
- package/ui/src/Icon/type.ts +1 -1
- package/ui/src/Image/Image.tsx +1 -1
- package/ui/src/Image/components/Toolbar.tsx +7 -7
- package/ui/src/Image/components/usePreview.tsx +1 -1
- package/ui/src/Image/components/usePreviewGroup.tsx +1 -1
- package/ui/src/Image/demos/Gallery.tsx +1 -1
- package/ui/src/Image/style.ts +1 -1
- package/ui/src/ImageSelect/ImageSelect.tsx +3 -3
- package/ui/src/ImageSelect/styles.ts +1 -1
- package/ui/src/ImageSelect/type.ts +2 -2
- package/ui/src/Img/index.tsx +2 -2
- package/ui/src/Input/style.ts +1 -1
- package/ui/src/Layout/Layout.tsx +1 -1
- package/ui/src/Layout/demos/index.tsx +1 -1
- package/ui/src/Layout/style.ts +1 -1
- package/ui/src/Layout/type.ts +1 -1
- package/ui/src/List/List.tsx +1 -1
- package/ui/src/List/ListItem/index.tsx +4 -4
- package/ui/src/List/ListItem/style.ts +1 -1
- package/ui/src/List/type.ts +1 -1
- package/ui/src/Markdown/Markdown.tsx +2 -2
- package/ui/src/Markdown/SyntaxMarkdown/MarkdownRender.tsx +1 -1
- package/ui/src/Markdown/SyntaxMarkdown/StreamdownRender.tsx +8 -8
- package/ui/src/Markdown/SyntaxMarkdown/style.ts +1 -1
- package/ui/src/Markdown/SyntaxMarkdown/useSmoothStreamContent.ts +3 -3
- package/ui/src/Markdown/components/CodeBlock.tsx +6 -6
- package/ui/src/Markdown/components/Footnotes.tsx +4 -4
- package/ui/src/Markdown/components/MarkdownProvider.tsx +1 -1
- package/ui/src/Markdown/components/MarkdownTable/index.tsx +1 -1
- package/ui/src/Markdown/components/SearchResultCards/SearchResultCard.tsx +6 -6
- package/ui/src/Markdown/components/SearchResultCards/index.tsx +2 -2
- package/ui/src/Markdown/demos/StreamingPlayground.tsx +1 -1
- package/ui/src/Markdown/demos/advanced/htmlPreviewArticle.tsx +1 -1
- package/ui/src/Markdown/demos/advanced/htmlPreviewReport.tsx +2 -2
- package/ui/src/Markdown/demos/advanced/htmlPreviewStream.tsx +1 -1
- package/ui/src/Markdown/demos/content.ts +4 -4
- package/ui/src/Markdown/demos/custom/citations/index.tsx +1 -1
- package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntArtifact/Component.tsx +1 -1
- package/ui/src/Markdown/demos/custom/plugins/MarkdownElements/AntThinking/Component.tsx +1 -1
- package/ui/src/Markdown/demos/custom/thinking/index.tsx +1 -1
- package/ui/src/Markdown/demos/streamingAnimationRepro.tsx +1 -1
- package/ui/src/Markdown/plugins/rehypeStreamAnimated.ts +1 -1
- package/ui/src/Markdown/streamProfiler/StreamdownProfilerPanel.tsx +1 -1
- package/ui/src/Markdown/streamProfiler/profiler.ts +2 -2
- package/ui/src/Markdown/type.ts +6 -6
- package/ui/src/MaskShadow/MaskShadow.tsx +1 -1
- package/ui/src/MaskShadow/type.ts +1 -1
- package/ui/src/MaterialFileTypeIcon/MaterialFileTypeIcon.tsx +4 -4
- package/ui/src/MaterialFileTypeIcon/type.ts +1 -1
- package/ui/src/Menu/Menu.tsx +2 -2
- package/ui/src/Menu/baseItem.ts +1 -1
- package/ui/src/Menu/checkboxItem.ts +1 -1
- package/ui/src/Menu/demos/index.tsx +1 -1
- package/ui/src/Menu/renderUtils.tsx +1 -1
- package/ui/src/Menu/style.ts +1 -1
- package/ui/src/Menu/switchItem.ts +1 -1
- package/ui/src/Menu/type.ts +1 -1
- package/ui/src/Menu/utils.tsx +1 -1
- package/ui/src/Mermaid/FullFeatured.tsx +7 -7
- package/ui/src/Mermaid/Mermaid.tsx +4 -4
- package/ui/src/Mermaid/SyntaxMermaid/StaticMermaid.tsx +2 -2
- package/ui/src/Mermaid/SyntaxMermaid/StreamMermaid.tsx +2 -2
- package/ui/src/Mermaid/type.ts +2 -2
- package/ui/src/Modal/Modal.tsx +2 -2
- package/ui/src/Modal/ModalStackItem.tsx +1 -1
- package/ui/src/Modal/RawModalStackItem.tsx +1 -1
- package/ui/src/Modal/imperative.tsx +3 -3
- package/ui/src/Popover/index.ts +2 -2
- package/ui/src/ScrollArea/index.ts +1 -1
- package/ui/src/ScrollShadow/ScrollShadow.tsx +2 -2
- package/ui/src/ScrollShadow/type.ts +1 -1
- package/ui/src/SearchBar/SearchBar.tsx +4 -4
- package/ui/src/SearchBar/style.ts +1 -1
- package/ui/src/SearchBar/type.ts +1 -1
- package/ui/src/Segmented/style.ts +1 -1
- package/ui/src/Segmented/type.ts +1 -1
- package/ui/src/Select/Select.tsx +1 -1
- package/ui/src/Select/style.ts +1 -1
- package/ui/src/Select/type.ts +1 -1
- package/ui/src/SideNav/SideNav.tsx +1 -1
- package/ui/src/SideNav/type.ts +1 -1
- package/ui/src/Skeleton/Skeleton.tsx +1 -1
- package/ui/src/Skeleton/SkeletonBlock.tsx +2 -2
- package/ui/src/Skeleton/SkeletonParagraph.tsx +1 -1
- package/ui/src/Skeleton/SkeletonTags.tsx +1 -1
- package/ui/src/Skeleton/demos/Avatar.tsx +1 -1
- package/ui/src/Skeleton/demos/Block.tsx +1 -1
- package/ui/src/Skeleton/demos/Button.tsx +1 -1
- package/ui/src/Skeleton/demos/Paragraph.tsx +1 -1
- package/ui/src/Skeleton/demos/Tags.tsx +1 -1
- package/ui/src/Skeleton/demos/Title.tsx +1 -1
- package/ui/src/Skeleton/index.ts +1 -1
- package/ui/src/SliderWithInput/SliderWithInput.tsx +2 -2
- package/ui/src/SliderWithInput/type.ts +2 -2
- package/ui/src/Snippet/Snippet.tsx +4 -4
- package/ui/src/Snippet/style.ts +1 -1
- package/ui/src/Snippet/type.ts +1 -1
- package/ui/src/SortableList/SortableList.tsx +1 -1
- package/ui/src/SortableList/components/DragHandle.tsx +1 -1
- package/ui/src/SortableList/components/SortableItem.tsx +2 -2
- package/ui/src/SortableList/style.ts +1 -1
- package/ui/src/SortableList/type.ts +1 -1
- package/ui/src/Tabs/Tabs.tsx +1 -1
- package/ui/src/Tag/Tag.tsx +2 -2
- package/ui/src/Tag/demos/Color.tsx +1 -1
- package/ui/src/Tag/styles.ts +1 -1
- package/ui/src/Text/Text.tsx +2 -2
- package/ui/src/Text/type.ts +2 -2
- package/ui/src/ThemeProvider/GlobalStyle/antdOverride.ts +1 -1
- package/ui/src/ThemeProvider/GlobalStyle/global.ts +1 -1
- package/ui/src/ThemeProvider/Meta.tsx +1 -1
- package/ui/src/ThemeProvider/ThemeProvider.tsx +5 -5
- package/ui/src/ThemeProvider/demos/CustomFonts.tsx +1 -1
- package/ui/src/ThemeProvider/type.ts +1 -1
- package/ui/src/ThemeSwitch/ThemeSwitch.tsx +5 -5
- package/ui/src/ThemeSwitch/type.ts +2 -2
- package/ui/src/Toast/index.ts +1 -1
- package/ui/src/Toc/TocMobile.tsx +1 -1
- package/ui/src/Toc/style.ts +1 -1
- package/ui/src/Toc/utils.ts +1 -1
- package/ui/src/Tooltip/index.ts +2 -2
- package/ui/src/Video/index.tsx +3 -3
- package/ui/src/Video/style.ts +1 -1
- package/ui/src/awesome/AuroraBackground/AuroraBackground.tsx +1 -1
- package/ui/src/awesome/AuroraBackground/type.ts +1 -1
- package/ui/src/awesome/BottomGradientButton/BottomGradientButton.tsx +1 -1
- package/ui/src/awesome/BottomGradientButton/style.ts +1 -1
- package/ui/src/awesome/BottomGradientButton/type.ts +1 -1
- package/ui/src/awesome/Features/FeatureItem.tsx +5 -5
- package/ui/src/awesome/Features/Features.tsx +1 -1
- package/ui/src/awesome/Features/type.ts +3 -3
- package/ui/src/awesome/Giscus/style.ts +1 -1
- package/ui/src/awesome/GradientButton/GradientButton.tsx +1 -1
- package/ui/src/awesome/GradientButton/style.ts +1 -1
- package/ui/src/awesome/GradientButton/type.ts +1 -1
- package/ui/src/awesome/GridBackground/GridShowcase.tsx +1 -1
- package/ui/src/awesome/GridBackground/components/Grid.tsx +1 -1
- package/ui/src/awesome/GridBackground/type.ts +2 -2
- package/ui/src/awesome/Hero/Hero.tsx +5 -5
- package/ui/src/awesome/Hero/style.ts +1 -1
- package/ui/src/awesome/Spotlight/type.ts +1 -1
- package/ui/src/awesome/SpotlightCard/SpotlightCard.tsx +1 -1
- package/ui/src/awesome/SpotlightCard/SpotlightCardItem.tsx +1 -1
- package/ui/src/awesome/SpotlightCard/demos/index.tsx +1 -1
- package/ui/src/awesome/SpotlightCard/type.ts +1 -1
- package/ui/src/awesome/TypewriterEffect/TypewriterEffect.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/advanced.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/callback.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/colors.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/cursorBehavior.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/cursorStyles.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/customSpeed.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/emoji.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/initialDelay.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/segmentModes.tsx +1 -1
- package/ui/src/awesome/TypewriterEffect/demos/variableSpeed.tsx +1 -1
- package/ui/src/base-ui/Button/Button.tsx +1 -1
- package/ui/src/base-ui/ContextMenu/ContextMenuHost.tsx +4 -4
- package/ui/src/base-ui/ContextMenu/ContextMenuTrigger.tsx +1 -1
- package/ui/src/base-ui/ContextMenu/__tests__/slots.test.tsx +1 -1
- package/ui/src/base-ui/ContextMenu/renderItems.tsx +9 -9
- package/ui/src/base-ui/ContextMenu/store.ts +1 -1
- package/ui/src/base-ui/ContextMenu/style.ts +1 -1
- package/ui/src/base-ui/ContextMenu/type.ts +1 -1
- package/ui/src/base-ui/DropdownMenu/DropdownMenu.tsx +2 -2
- package/ui/src/base-ui/DropdownMenu/atoms.tsx +6 -6
- package/ui/src/base-ui/DropdownMenu/renderItems.tsx +3 -3
- package/ui/src/base-ui/DropdownMenu/type.ts +3 -3
- package/ui/src/base-ui/Modal/Modal.tsx +1 -1
- package/ui/src/base-ui/Modal/atoms.tsx +3 -3
- package/ui/src/base-ui/Modal/imperative.tsx +3 -3
- package/ui/src/base-ui/Popover/Popover.tsx +1 -1
- package/ui/src/base-ui/Popover/PopoverGroup.tsx +3 -3
- package/ui/src/base-ui/Popover/PopoverInGroup.tsx +2 -2
- package/ui/src/base-ui/Popover/PopoverPortal.tsx +1 -1
- package/ui/src/base-ui/Popover/PopoverStandalone.tsx +4 -4
- package/ui/src/base-ui/Popover/atoms.tsx +3 -3
- package/ui/src/base-ui/Popover/demos/dropdown-menu.tsx +1 -1
- package/ui/src/base-ui/Popover/type.ts +2 -2
- package/ui/src/base-ui/Select/Select.tsx +1 -1
- package/ui/src/base-ui/Select/atoms.tsx +3 -3
- package/ui/src/base-ui/Select/hooks.tsx +1 -1
- package/ui/src/base-ui/Select/parts.tsx +2 -2
- package/ui/src/base-ui/Select/renderOptions.tsx +2 -2
- package/ui/src/base-ui/Select/style.ts +1 -1
- package/ui/src/base-ui/Select/type.ts +1 -1
- package/ui/src/base-ui/Switch/Switch.tsx +1 -1
- package/ui/src/base-ui/Switch/atoms.tsx +1 -1
- package/ui/src/base-ui/Toast/Toast.tsx +1 -1
- package/ui/src/base-ui/Toast/imperative.tsx +2 -2
- package/ui/src/base-ui/Toast/type.ts +1 -1
- package/ui/src/base-ui/Tooltip/TooltipContent.tsx +1 -1
- package/ui/src/base-ui/Tooltip/TooltipGroup.tsx +4 -4
- package/ui/src/base-ui/Tooltip/TooltipInGroup.tsx +1 -1
- package/ui/src/base-ui/Tooltip/TooltipStandalone.tsx +5 -5
- package/ui/src/base-ui/Tooltip/demos/group-children-preserve.tsx +1 -1
- package/ui/src/base-ui/Tooltip/demos/group-remove-trigger.tsx +1 -1
- package/ui/src/base-ui/Tooltip/demos/group-shared.tsx +1 -1
- package/ui/src/base-ui/Tooltip/demos/group.tsx +1 -1
- package/ui/src/base-ui/Tooltip/type.ts +2 -2
- package/ui/src/brand/BrandLoading/index.tsx +1 -1
- package/ui/src/brand/Hubstr/index.tsx +7 -7
- package/ui/src/brand/HubstrChat/index.tsx +8 -8
- package/ui/src/brand/HubstrChatText/index.tsx +1 -1
- package/ui/src/brand/HubstrText/index.tsx +1 -1
- package/ui/src/brand/Logo3d/index.tsx +1 -1
- package/ui/src/brand/LogoFlat/index.tsx +1 -1
- package/ui/src/brand/LogoMark.tsx +29 -29
- package/ui/src/brand/LogoMono/index.tsx +1 -1
- package/ui/src/brand/LogoThree/Loading.tsx +2 -2
- package/ui/src/brand/LogoThree/LogoSpline.tsx +1 -1
- package/ui/src/brand/LogoThree/index.tsx +2 -2
- package/ui/src/brand/components/Divider.tsx +1 -1
- package/ui/src/chat/BackBottom/BackBottom.tsx +1 -1
- package/ui/src/chat/Bubble/Bubble.tsx +1 -1
- package/ui/src/chat/Bubble/style.ts +1 -1
- package/ui/src/chat/Bubble/type.ts +1 -1
- package/ui/src/chat/ChatHeader/ChatHeader.tsx +2 -2
- package/ui/src/chat/ChatHeader/ChatHeaderTitle.tsx +1 -1
- package/ui/src/chat/ChatHeader/type.ts +1 -1
- package/ui/src/chat/ChatInputArea/ChatInputArea.tsx +1 -1
- package/ui/src/chat/ChatInputArea/components/ChatInputActionBar.tsx +1 -1
- package/ui/src/chat/ChatInputArea/components/ChatInputAreaInner.tsx +1 -1
- package/ui/src/chat/ChatInputArea/components/ChatSendButton.tsx +3 -3
- package/ui/src/chat/ChatInputArea/demos/index.tsx +1 -1
- package/ui/src/chat/ChatInputArea/style.ts +1 -1
- package/ui/src/chat/ChatInputArea/type.ts +3 -3
- package/ui/src/chat/ChatItem/ChatItem.tsx +3 -3
- package/ui/src/chat/ChatItem/components/Actions.tsx +2 -2
- package/ui/src/chat/ChatItem/components/Avatar.tsx +2 -2
- package/ui/src/chat/ChatItem/components/ErrorContent.tsx +3 -3
- package/ui/src/chat/ChatItem/components/Loading.tsx +3 -3
- package/ui/src/chat/ChatItem/components/MessageContent.tsx +4 -4
- package/ui/src/chat/ChatItem/components/Title.tsx +3 -3
- package/ui/src/chat/ChatItem/type.ts +7 -7
- package/ui/src/chat/ChatList/components/ChatActionsBar.tsx +1 -1
- package/ui/src/chat/ChatList/components/ChatListItem.tsx +4 -4
- package/ui/src/chat/ChatList/components/HistoryDivider.tsx +2 -2
- package/ui/src/chat/ChatList/components/useChatListActionsBar.tsx +1 -1
- package/ui/src/chat/ChatList/demos/data.ts +1 -1
- package/ui/src/chat/ChatList/type.ts +5 -5
- package/ui/src/chat/EditableMessage/EditableMessage.tsx +3 -3
- package/ui/src/chat/EditableMessage/type.ts +3 -3
- package/ui/src/chat/EditableMessageList/EditableMessageList.tsx +7 -7
- package/ui/src/chat/EditableMessageList/messageReducer.ts +1 -1
- package/ui/src/chat/EditableMessageList/type.ts +1 -1
- package/ui/src/chat/MessageInput/MessageInput.tsx +7 -7
- package/ui/src/chat/MessageInput/demos/index.tsx +1 -1
- package/ui/src/chat/MessageInput/type.ts +3 -3
- package/ui/src/chat/MessageModal/MessageModal.tsx +9 -9
- package/ui/src/chat/MessageModal/TextArea.tsx +1 -1
- package/ui/src/chat/MessageModal/type.ts +2 -2
- package/ui/src/chat/TokenTag/TokenTag.tsx +3 -3
- package/ui/src/chat/TokenTag/type.ts +1 -1
- package/ui/src/color/ColorScales/ScaleRow.tsx +2 -2
- package/ui/src/color/ColorScales/index.tsx +1 -1
- package/ui/src/color/CssVar/ScaleRow.tsx +2 -2
- package/ui/src/color/CssVar/VarRow.tsx +2 -2
- package/ui/src/color/CssVar/index.tsx +1 -1
- package/ui/src/color/neutrals/index.ts +1 -1
- package/ui/src/hooks/useHighlight.ts +2 -2
- package/ui/src/hooks/useMarkdown/useMarkdownComponents.tsx +8 -8
- package/ui/src/hooks/useMarkdown/useMarkdownContent.ts +1 -1
- package/ui/src/hooks/useMarkdown/useMarkdownRehypePlugins.ts +3 -3
- package/ui/src/hooks/useMarkdown/useMarkdownRemarkPlugins.ts +5 -5
- package/ui/src/hooks/useStableValue.ts +1 -1
- package/ui/src/hooks/useStreamHighlight.ts +2 -2
- package/ui/src/i18n/context.tsx +4 -4
- package/ui/src/i18n/demos/ConfigProvider.tsx +4 -4
- package/ui/src/i18n/demos/DynamicImport.tsx +2 -2
- package/ui/src/i18n/demos/index.tsx +4 -4
- package/ui/src/icons/lucideExtra/demos/index.tsx +1 -1
- package/ui/src/index.ts +1 -1
- package/ui/src/mdx/Callout/index.tsx +2 -2
- package/ui/src/mdx/Cards/Card.tsx +6 -6
- package/ui/src/mdx/Cards/index.tsx +1 -1
- package/ui/src/mdx/FileTree/File.tsx +2 -2
- package/ui/src/mdx/FileTree/Folder.tsx +2 -2
- package/ui/src/mdx/FileTree/index.tsx +1 -1
- package/ui/src/mdx/Mdx/index.tsx +5 -5
- package/ui/src/mdx/Steps/index.tsx +1 -1
- package/ui/src/mdx/Tabs/Tab.tsx +1 -1
- package/ui/src/mdx/Tabs/index.tsx +2 -2
- package/ui/src/mdx/mdxComponents/Citation/PopoverPanel.tsx +2 -2
- package/ui/src/mdx/mdxComponents/Citation/index.tsx +2 -2
- package/ui/src/mdx/mdxComponents/CodeBlock.tsx +2 -2
- package/ui/src/mdx/mdxComponents/Image.tsx +1 -1
- package/ui/src/mdx/mdxComponents/Link.tsx +4 -4
- package/ui/src/mdx/mdxComponents/Pre.tsx +5 -5
- package/ui/src/mdx/mdxComponents/Section.tsx +1 -1
- package/ui/src/mdx/mdxComponents/Video.tsx +1 -1
- package/ui/src/mdx/mdxComponents/index.ts +7 -7
- package/ui/src/mobile/ChatHeader/ChatHeader.tsx +3 -3
- package/ui/src/mobile/ChatHeader/ChatHeaderTitle.tsx +1 -1
- package/ui/src/mobile/ChatHeader/demos/index.tsx +1 -1
- package/ui/src/mobile/ChatHeader/type.ts +1 -1
- package/ui/src/mobile/ChatInputArea/ChatInputArea.tsx +4 -4
- package/ui/src/mobile/ChatInputArea/components/ChatSendButton.tsx +1 -1
- package/ui/src/mobile/ChatInputArea/demos/index.tsx +1 -1
- package/ui/src/mobile/ChatInputArea/type.ts +2 -2
- package/ui/src/mobile/SafeArea/demos/index.tsx +1 -1
- package/ui/src/mobile/SafeArea/type.ts +1 -1
- package/ui/src/mobile/TabBar/TabBar.tsx +2 -2
- package/ui/src/mobile/TabBar/type.ts +1 -1
- package/ui/src/storybook/StoryBook/index.tsx +2 -2
- package/ui/src/styles/customTheme.ts +2 -2
- package/ui/src/styles/theme/algorithms/darkAlgorithm.ts +5 -5
- package/ui/src/styles/theme/algorithms/lightAlgorithm.ts +3 -3
- package/ui/src/styles/theme/customStylish.ts +1 -1
- package/ui/src/styles/theme/customStylishStatic.ts +1 -1
- package/ui/src/styles/theme/customToken.ts +3 -3
- package/ui/src/styles/theme/generateColorPalette.ts +1 -1
- package/ui/src/styles/theme/token/dark.ts +1 -1
- package/ui/src/styles/theme/token/light.ts +1 -1
- package/ui/src/utils/parseTrigger.ts +1 -1
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
TextNode,
|
|
20
20
|
} from 'lexical';
|
|
21
21
|
|
|
22
|
-
import { INodeHelper } from '
|
|
23
|
-
import { KernelPlugin } from '
|
|
24
|
-
import { IBlockMenuService } from '
|
|
25
|
-
import { ILitexmlService } from '
|
|
26
|
-
import { IMarkdownShortCutService } from '
|
|
27
|
-
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
22
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
23
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
24
|
+
import { IBlockMenuService } from '../../block/service';
|
|
25
|
+
import { ILitexmlService } from '../../litexml';
|
|
26
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
27
|
+
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
28
28
|
|
|
29
29
|
import { CustomShikiTokenizer, registerCodeCommand } from '../command';
|
|
30
30
|
import { getCodeLanguageByInput } from '../utils/language';
|
|
@@ -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 '
|
|
7
|
-
import { MarkdownPlugin } from '
|
|
6
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
|
|
7
|
+
import { MarkdownPlugin } from '../../markdown/plugin';
|
|
8
8
|
|
|
9
9
|
import { CodeblockPlugin } from '../plugin';
|
|
10
10
|
import { styles } from './style';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
2
|
|
|
3
|
-
import Editor from '
|
|
4
|
-
import { CommonPlugin } from '
|
|
5
|
-
import { LitexmlPlugin } from '
|
|
6
|
-
import { MarkdownPlugin } from '
|
|
7
|
-
import { IEditor } from '
|
|
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 { CodemirrorPlugin } from '../plugin';
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
createCommand,
|
|
13
13
|
} from 'lexical';
|
|
14
14
|
|
|
15
|
-
import { UPDATE_CODEBLOCK_LANG } from '
|
|
15
|
+
import { UPDATE_CODEBLOCK_LANG } from '../../codeblock/command/symbols';
|
|
16
16
|
|
|
17
17
|
import { $createCodeMirrorNode, $isCodeMirrorNode } from '../node/CodeMirrorNode';
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $createNodeSelection, $setSelection, DecoratorNode, LexicalEditor } from 'lexical';
|
|
2
2
|
|
|
3
|
-
import { INodeHelper } from '
|
|
4
|
-
import { KernelPlugin } from '
|
|
5
|
-
import { ILitexmlService } from '
|
|
6
|
-
import { IMarkdownShortCutService } from '
|
|
7
|
-
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
3
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
4
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
5
|
+
import { ILitexmlService } from '../../litexml/service/litexml-service';
|
|
6
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
7
|
+
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
8
8
|
|
|
9
9
|
import { registerCodeMirrorCommand } from '../command';
|
|
10
10
|
import { modeMatch } from '../lib/mode';
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
} from 'lexical';
|
|
14
14
|
import { type FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import { Toolbar, hubstrTheme, styles } from '
|
|
17
|
-
import { useLexicalNodeSelection } from '
|
|
18
|
-
import { useTranslation } from '
|
|
16
|
+
import { Toolbar, hubstrTheme, styles } from '../../../codemirror';
|
|
17
|
+
import { useLexicalNodeSelection } from '../../../editor-kernel/react/useLexicalNodeSelection';
|
|
18
|
+
import { useTranslation } from '../../../editor-kernel/react/useTranslation';
|
|
19
19
|
|
|
20
20
|
import { SELECT_AFTER_CODEMIRROR_COMMAND, SELECT_BEFORE_CODEMIRROR_COMMAND } from '../command';
|
|
21
21
|
import { loadCodeMirror } from '../lib';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { type FC, useLayoutEffect } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useLexicalComposerContext } from '
|
|
5
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
|
|
6
6
|
|
|
7
7
|
import { CodemirrorPlugin } from '../plugin';
|
|
8
8
|
import ReactCodemirrorNode from './CodemirrorNode';
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
} from 'lexical';
|
|
20
20
|
import { $getRoot } from 'lexical';
|
|
21
21
|
|
|
22
|
-
import { DataSource } from '
|
|
23
|
-
import type { IWriteOptions } from '
|
|
24
|
-
import { INodeHelper } from '
|
|
25
|
-
import { $parseSerializedNodeImpl } from '
|
|
22
|
+
import { DataSource } from '../../../editor-kernel';
|
|
23
|
+
import type { IWriteOptions } from '../../../editor-kernel/data-source';
|
|
24
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
25
|
+
import { $parseSerializedNodeImpl } from '../../litexml/utils';
|
|
26
26
|
|
|
27
27
|
import { cursorNodeSerialized } from '../node/cursor';
|
|
28
28
|
import { exportNodeToJSON } from '../utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $getRoot, $getSelection, LexicalEditor } from 'lexical';
|
|
2
2
|
|
|
3
|
-
import { DataSource } from '
|
|
4
|
-
import { IWriteOptions } from '
|
|
5
|
-
import { INodeHelper } from '
|
|
3
|
+
import { DataSource } from '../../../editor-kernel';
|
|
4
|
+
import { IWriteOptions } from '../../../editor-kernel/data-source';
|
|
5
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
6
6
|
|
|
7
7
|
export default class TextDataSource extends DataSource {
|
|
8
8
|
read(editor: LexicalEditor, data: string) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CAN_USE_DOM, mergeRegister } from '@lexical/utils';
|
|
2
2
|
import { COMMAND_PRIORITY_HIGH, LexicalEditor, SELECTION_CHANGE_COMMAND } from 'lexical';
|
|
3
3
|
|
|
4
|
-
import { $getNodeFromDOMNode } from '
|
|
4
|
+
import { $getNodeFromDOMNode } from '../../../editor-kernel/utils';
|
|
5
5
|
|
|
6
6
|
export function patchBreakLine() {
|
|
7
7
|
// ignore
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
2
|
|
|
3
|
-
import Editor, { resetRandomKey } from '
|
|
4
|
-
import { CommonPlugin } from '
|
|
5
|
-
import { LitexmlPlugin } from '
|
|
6
|
-
import { MarkdownPlugin } from '
|
|
7
|
-
import { IEditor } from '
|
|
3
|
+
import Editor, { resetRandomKey } from '../../../../editor-kernel';
|
|
4
|
+
import { CommonPlugin } from '../..';
|
|
5
|
+
import { LitexmlPlugin } from '../../../litexml';
|
|
6
|
+
import { MarkdownPlugin } from '../../../markdown/plugin';
|
|
7
|
+
import { IEditor } from '../../../../types';
|
|
8
8
|
|
|
9
9
|
describe('Common Plugin Tests', () => {
|
|
10
10
|
let kernel: IEditor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IS_BOLD, IS_UNDERLINE } from 'lexical';
|
|
2
2
|
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
3
3
|
|
|
4
|
-
import Editor from '
|
|
5
|
-
import { CommonPlugin } from '
|
|
6
|
-
import { MarkdownPlugin } from '
|
|
7
|
-
import { IEditor } from '
|
|
4
|
+
import Editor from '../../../../editor-kernel';
|
|
5
|
+
import { CommonPlugin } from '../..';
|
|
6
|
+
import { MarkdownPlugin } from '../../../markdown/plugin';
|
|
7
|
+
import { IEditor } from '../../../../types';
|
|
8
8
|
|
|
9
9
|
describe('Common Plugin Tests', () => {
|
|
10
10
|
let kernel: IEditor;
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from 'lexical';
|
|
29
29
|
import type { LexicalEditor } from 'lexical';
|
|
30
30
|
|
|
31
|
-
import { noop } from '
|
|
32
|
-
import { INodeHelper } from '
|
|
33
|
-
import { KernelPlugin } from '
|
|
34
|
-
import { ILitexmlService } from '
|
|
35
|
-
import { IMarkdownShortCutService } from '
|
|
36
|
-
import { isPunctuationChar } from '
|
|
37
|
-
import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
31
|
+
import { noop } from '../../../editor-kernel';
|
|
32
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
33
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
34
|
+
import { ILitexmlService } from '../../litexml';
|
|
35
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
36
|
+
import { isPunctuationChar } from '../../markdown/utils';
|
|
37
|
+
import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
38
38
|
|
|
39
39
|
import { registerCommands } from '../command';
|
|
40
40
|
import JSONDataSource from '../data-source/json-data-source';
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
IS_UNDERLINE,
|
|
8
8
|
} from 'lexical';
|
|
9
9
|
|
|
10
|
-
import type { INode } from '
|
|
11
|
-
import { INodeHelper } from '
|
|
12
|
-
import type { IMarkdownShortCutService } from '
|
|
10
|
+
import type { INode } from '../../../editor-kernel/inode';
|
|
11
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
12
|
+
import type { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
13
13
|
|
|
14
14
|
export function registerMDReader(markdownService: IMarkdownShortCutService) {
|
|
15
15
|
markdownService.registerMarkdownReader('blockquote', (node, children) => {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from 'lexical';
|
|
9
9
|
import type { LexicalEditor } from 'lexical';
|
|
10
10
|
|
|
11
|
-
import { $createCodeMirrorNode } from '
|
|
11
|
+
import { $createCodeMirrorNode } from '../../codemirror-block/node/CodeMirrorNode';
|
|
12
12
|
|
|
13
13
|
// ============================================================================
|
|
14
14
|
// Paste Middleware Types
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
UNDO_COMMAND,
|
|
33
33
|
} from 'lexical';
|
|
34
34
|
|
|
35
|
-
import { $closest } from '
|
|
36
|
-
import { IEditor } from '
|
|
37
|
-
import { HotkeyEnum } from '
|
|
38
|
-
import { createDebugLogger } from '
|
|
35
|
+
import { $closest } from '../../../editor-kernel';
|
|
36
|
+
import { IEditor } from '../../../types';
|
|
37
|
+
import { HotkeyEnum } from '../../../types/hotkey';
|
|
38
|
+
import { createDebugLogger } from '../../../utils/debug';
|
|
39
39
|
|
|
40
40
|
const logger = createDebugLogger('plugin', 'common');
|
|
41
41
|
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from 'lexical';
|
|
11
11
|
import { type CSSProperties, type ReactNode, memo, useRef, useState } from 'react';
|
|
12
12
|
|
|
13
|
-
import { $closestNodeType } from '
|
|
14
|
-
import { useLexicalEditor } from '
|
|
13
|
+
import { $closestNodeType } from '../../../../editor-kernel';
|
|
14
|
+
import { useLexicalEditor } from '../../../../editor-kernel/react';
|
|
15
15
|
|
|
16
16
|
import { $canShowPlaceholderCurry } from '../../utils';
|
|
17
17
|
import { styles } from './style';
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from 'react';
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
|
|
18
|
-
import { LexicalErrorBoundary } from '
|
|
19
|
-
import { useLexicalComposerContext } from '
|
|
20
|
-
import { useDecorators } from '
|
|
21
|
-
import { MarkdownPlugin } from '
|
|
18
|
+
import { LexicalErrorBoundary } from '../../../editor-kernel/react/LexicalErrorBoundary';
|
|
19
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
|
|
20
|
+
import { useDecorators } from '../../../editor-kernel/react/useDecorators';
|
|
21
|
+
import { MarkdownPlugin } from '../../markdown/plugin';
|
|
22
22
|
|
|
23
23
|
import { CommonPlugin } from '../plugin';
|
|
24
24
|
import Placeholder from './Placeholder';
|
|
@@ -7,8 +7,8 @@ import type {
|
|
|
7
7
|
ReactNode,
|
|
8
8
|
} from 'react';
|
|
9
9
|
|
|
10
|
-
import type { CommonPluginOptions } from '
|
|
11
|
-
import type { IEditor } from '
|
|
10
|
+
import type { CommonPluginOptions } from '..';
|
|
11
|
+
import type { IEditor } from '../../../types';
|
|
12
12
|
|
|
13
13
|
export interface ReactEditorContentProps {
|
|
14
14
|
content: any;
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
} from 'lexical';
|
|
12
12
|
import { describe, expect, it } from 'vitest';
|
|
13
13
|
|
|
14
|
-
import Editor from '
|
|
15
|
-
import { CommonPlugin, MarkdownPlugin, TablePlugin } from '
|
|
16
|
-
import { IEditor } from '
|
|
14
|
+
import Editor from '../../../../editor-kernel';
|
|
15
|
+
import { CommonPlugin, MarkdownPlugin, TablePlugin } from '../../../../index';
|
|
16
|
+
import { IEditor } from '../../../../types';
|
|
17
17
|
|
|
18
18
|
import { $isCursorInQuote, $isCursorInTable } from '..';
|
|
19
19
|
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
$isTextNode,
|
|
16
16
|
} from 'lexical';
|
|
17
17
|
|
|
18
|
-
import { INodeHelper } from '
|
|
19
|
-
import type { ElementTransformer } from '
|
|
18
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
19
|
+
import type { ElementTransformer } from '../../markdown/service/transformers';
|
|
20
20
|
|
|
21
21
|
export const sampleReader = (format: number, xmlElement: Element, children: any[]) => {
|
|
22
22
|
children.forEach((child) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LexicalEditor } from 'lexical';
|
|
2
2
|
|
|
3
|
-
import { DataSource } from '
|
|
4
|
-
import type { IMarkdownShortCutService } from '
|
|
3
|
+
import { DataSource } from '../../../editor-kernel';
|
|
4
|
+
import type { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
5
5
|
|
|
6
6
|
import type { ContentBlock, ExtractContentBlocksOptions } from '../types';
|
|
7
7
|
import { CONTENT_BLOCKS_DATA_TYPE } from '../types';
|
|
@@ -13,7 +13,7 @@ import { CodeEditor, Collapse, Highlighter } from '@hubstr/kit/ui';
|
|
|
13
13
|
import { debounce } from 'es-toolkit';
|
|
14
14
|
import { useMemo, useState } from 'react';
|
|
15
15
|
|
|
16
|
-
import { DEFAULT_HEADLESS_EDITOR_PLUGINS, createHeadlessEditor } from '
|
|
16
|
+
import { DEFAULT_HEADLESS_EDITOR_PLUGINS, createHeadlessEditor } from '../../../headless';
|
|
17
17
|
|
|
18
18
|
import sample from './data.json';
|
|
19
19
|
|
|
@@ -15,7 +15,7 @@ import { Collapse, Highlighter, ToastHost } from '@hubstr/kit/ui';
|
|
|
15
15
|
import { debounce } from 'es-toolkit';
|
|
16
16
|
import { type FC, useLayoutEffect, useMemo, useState } from 'react';
|
|
17
17
|
|
|
18
|
-
import { useLexicalComposerContext } from '
|
|
18
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react';
|
|
19
19
|
|
|
20
20
|
import content from './data.json';
|
|
21
21
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KernelPlugin } from '
|
|
2
|
-
import { IMarkdownShortCutService } from '
|
|
3
|
-
import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
4
|
-
import { createDebugLogger } from '
|
|
1
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
2
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
3
|
+
import type { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
4
|
+
import { createDebugLogger } from '../../../utils/debug';
|
|
5
5
|
|
|
6
6
|
import { ContentBlocksDataSource } from '../data-source/content-blocks-data-source';
|
|
7
7
|
import type { ExtractContentBlocksOptions } from '../types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, it } from 'vitest';
|
|
2
2
|
|
|
3
|
-
import Editor from '
|
|
4
|
-
import type { IEditor } from '
|
|
3
|
+
import Editor from '../../../../editor-kernel';
|
|
4
|
+
import type { IEditor } from '../../../../types';
|
|
5
5
|
|
|
6
6
|
import { CommonPlugin } from '../../../common';
|
|
7
7
|
import { FilePlugin } from '../../../file';
|
|
@@ -7,13 +7,13 @@ import type {
|
|
|
7
7
|
} from 'lexical';
|
|
8
8
|
import { $getRoot, $isElementNode } from 'lexical';
|
|
9
9
|
|
|
10
|
-
import { INodeHelper } from '
|
|
11
|
-
import type { IElementNode } from '
|
|
12
|
-
import { MarkdownWriterContext } from '
|
|
10
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
11
|
+
import type { IElementNode } from '../../../editor-kernel/inode/i-element-node';
|
|
12
|
+
import { MarkdownWriterContext } from '../../markdown/data-source/markdown-writer-context';
|
|
13
13
|
import type {
|
|
14
14
|
IMarkdownShortCutService,
|
|
15
15
|
MarkdownShortCutService,
|
|
16
|
-
} from '
|
|
16
|
+
} from '../../markdown/service/shortcut';
|
|
17
17
|
|
|
18
18
|
import type {
|
|
19
19
|
ContentBlock,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
LexicalEditor,
|
|
10
10
|
} from 'lexical';
|
|
11
11
|
|
|
12
|
-
import { INodeHelper } from '
|
|
13
|
-
import { KernelPlugin } from '
|
|
14
|
-
import { ILitexmlService } from '
|
|
15
|
-
import { IMarkdownShortCutService } from '
|
|
16
|
-
import { IUploadService } from '
|
|
17
|
-
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
18
|
-
import { createDebugLogger } from '
|
|
12
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
13
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
14
|
+
import { ILitexmlService } from '../../litexml';
|
|
15
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
16
|
+
import { IUploadService } from '../../upload';
|
|
17
|
+
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
18
|
+
import { createDebugLogger } from '../../../utils/debug';
|
|
19
19
|
|
|
20
20
|
import { registerFileCommand } from '../command';
|
|
21
21
|
import { $createFileNode, $isFileNode, FileNode } from '../node/FileNode';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { type FC, useLayoutEffect } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useLexicalComposerContext } from '
|
|
6
|
-
import { UploadPlugin } from '
|
|
5
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
|
|
6
|
+
import { UploadPlugin } from '../../upload';
|
|
7
7
|
|
|
8
8
|
import { FilePlugin } from '../plugin';
|
|
9
9
|
import ReactFile from './components/ReactFile';
|
|
@@ -2,8 +2,8 @@ import { MaterialFileTypeIcon , Center } from '@hubstr/kit/ui';
|
|
|
2
2
|
import { CLICK_COMMAND, COMMAND_PRIORITY_LOW, LexicalEditor } from 'lexical';
|
|
3
3
|
import { type FC, useCallback, useEffect, useRef } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useLexicalNodeSelection } from '
|
|
6
|
-
import { useTranslation } from '
|
|
5
|
+
import { useLexicalNodeSelection } from '../../../../editor-kernel/react/useLexicalNodeSelection';
|
|
6
|
+
import { useTranslation } from '../../../../editor-kernel/react/useTranslation';
|
|
7
7
|
|
|
8
8
|
import { FileNode } from '../../node/FileNode';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileNode } from '
|
|
2
|
-
import type { ILocaleKeys } from '
|
|
1
|
+
import { FileNode } from '../node/FileNode';
|
|
2
|
+
import type { ILocaleKeys } from '../../../types';
|
|
3
3
|
|
|
4
4
|
export interface ReactFilePluginProps {
|
|
5
5
|
className?: string;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SerializedLexicalNode,
|
|
13
13
|
} from 'lexical';
|
|
14
14
|
|
|
15
|
-
import { getKernelFromEditor } from '
|
|
15
|
+
import { getKernelFromEditor } from '../../../editor-kernel/utils';
|
|
16
16
|
|
|
17
17
|
export type SerializedHorizontalRuleNode = SerializedLexicalNode;
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DecoratorNode, LexicalEditor } from 'lexical';
|
|
2
2
|
|
|
3
|
-
import { INodeHelper } from '
|
|
4
|
-
import { KernelPlugin } from '
|
|
5
|
-
import { ILitexmlService } from '
|
|
6
|
-
import { IMarkdownShortCutService } from '
|
|
7
|
-
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
3
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
4
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
5
|
+
import { ILitexmlService } from '../../litexml';
|
|
6
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
7
|
+
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
8
8
|
|
|
9
9
|
import { registerHorizontalRuleCommand } from '../command';
|
|
10
10
|
import {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { type FC, useLayoutEffect } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useLexicalComposerContext } from '
|
|
6
|
-
import { MarkdownPlugin } from '
|
|
5
|
+
import { useLexicalComposerContext } from '../../../editor-kernel/react/react-context';
|
|
6
|
+
import { MarkdownPlugin } from '../../markdown/plugin';
|
|
7
7
|
|
|
8
8
|
import { HRPlugin } from '../plugin';
|
|
9
9
|
import HRNode from './components/HRNode';
|
|
@@ -5,7 +5,7 @@ import { cx } from 'antd-style';
|
|
|
5
5
|
import { CLICK_COMMAND, COMMAND_PRIORITY_LOW, LexicalEditor } from 'lexical';
|
|
6
6
|
import { type FC, useEffect } from 'react';
|
|
7
7
|
|
|
8
|
-
import { useLexicalNodeSelection } from '
|
|
8
|
+
import { useLexicalNodeSelection } from '../../../../editor-kernel/react/useLexicalNodeSelection';
|
|
9
9
|
|
|
10
10
|
import { HorizontalRuleNode } from '../../node/HorizontalRuleNode';
|
|
11
11
|
import { styles } from '../style';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { describe, expect, it, vi } from 'vitest';
|
|
2
2
|
|
|
3
|
-
import Editor, { moment, resetRandomKey } from '
|
|
4
|
-
import { CommonPlugin } from '
|
|
5
|
-
import { LitexmlPlugin } from '
|
|
6
|
-
import { MarkdownPlugin } from '
|
|
7
|
-
import { IEditor } from '
|
|
3
|
+
import Editor, { moment, 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 { ImagePlugin } from '../plugin';
|
|
10
10
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createCommand,
|
|
11
11
|
} from 'lexical';
|
|
12
12
|
|
|
13
|
-
import { createDebugLogger } from '
|
|
13
|
+
import { createDebugLogger } from '../../../utils/debug';
|
|
14
14
|
|
|
15
15
|
import { $createBlockImageNode } from '../node/block-image-node';
|
|
16
16
|
import { $createImageNode } from '../node/image-node';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LexicalEditor } from 'lexical';
|
|
2
2
|
|
|
3
|
-
import { INode } from '
|
|
4
|
-
import { INodeHelper } from '
|
|
5
|
-
import { KernelPlugin } from '
|
|
6
|
-
import { INodeService } from '
|
|
7
|
-
import { ILitexmlService } from '
|
|
8
|
-
import { IMarkdownShortCutService } from '
|
|
9
|
-
import { IUploadService, UPLOAD_PRIORITY_HIGH } from '
|
|
10
|
-
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '
|
|
3
|
+
import { INode } from '../../../editor-kernel/inode';
|
|
4
|
+
import { INodeHelper } from '../../../editor-kernel/inode/helper';
|
|
5
|
+
import { KernelPlugin } from '../../../editor-kernel/plugin';
|
|
6
|
+
import { INodeService } from '../../inode';
|
|
7
|
+
import { ILitexmlService } from '../../litexml';
|
|
8
|
+
import { IMarkdownShortCutService } from '../../markdown/service/shortcut';
|
|
9
|
+
import { IUploadService, UPLOAD_PRIORITY_HIGH } from '../../upload';
|
|
10
|
+
import { IEditorKernel, IEditorPlugin, IEditorPluginConstructor } from '../../../types';
|
|
11
11
|
|
|
12
12
|
import { INSERT_IMAGE_COMMAND, registerImageCommand } from '../command';
|
|
13
13
|
import { $isBlockImageNode, BlockImageNode } from '../node/block-image-node';
|