@lobehub/ui 6.16.1 → 6.16.3
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/es/A/index.d.mts +1 -1
- package/es/A/index.mjs +2 -2
- package/es/Accordion/Accordion.d.mts +1 -1
- package/es/Accordion/Accordion.mjs +1 -1
- package/es/Accordion/atoms.d.mts +1 -1
- package/es/Accordion/atoms.mjs +4 -4
- package/es/Accordion/style.mjs +1 -1
- package/es/Accordion/type.d.mts +1 -1
- package/es/ActionIcon/ActionIcon.d.mts +1 -1
- package/es/ActionIcon/ActionIcon.mjs +2 -2
- package/es/ActionIcon/type.d.mts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.d.mts +1 -1
- package/es/ActionIconGroup/ActionIconGroup.mjs +3 -3
- package/es/ActionIconGroup/type.d.mts +1 -1
- package/es/AgentAvatar/AgentAvatar.mjs +2 -2
- package/es/AgentAvatar/utils.mjs +3 -3
- package/es/Alert/Alert.mjs +3 -3
- package/es/Alert/type.d.mts +1 -1
- package/es/Anchor/Anchor.mjs +2 -2
- package/es/AutoComplete/AutoComplete.mjs +4 -4
- package/es/AutoComplete/style.d.mts +1 -1
- package/es/AutoComplete/style.mjs +2 -2
- package/es/AutoComplete/type.d.mts +2 -2
- package/es/Avatar/Avatar.mjs +5 -5
- package/es/Avatar/AvatarGroup/index.mjs +2 -2
- package/es/Avatar/index.d.mts +1 -1
- package/es/Avatar/type.d.mts +1 -1
- package/es/Badge/Badge.mjs +2 -2
- package/es/Block/Block.d.mts +1 -1
- package/es/Block/Block.mjs +1 -1
- package/es/Block/type.d.mts +1 -1
- package/es/Breadcrumb/Breadcrumb.mjs +3 -3
- package/es/Burger/Burger.mjs +3 -3
- package/es/Burger/type.d.mts +1 -1
- package/es/Button/Button.d.mts +1 -1
- package/es/Button/Button.mjs +3 -3
- package/es/Button/SplitButton.d.mts +1 -1
- package/es/Button/SplitButton.mjs +3 -3
- package/es/Button/type.d.mts +1 -1
- package/es/Carousel/Carousel.mjs +3 -3
- package/es/Checkbox/Checkbox.mjs +5 -5
- package/es/Checkbox/CheckboxGroup.mjs +3 -3
- package/es/Checkbox/type.d.mts +3 -3
- package/es/CodeDiff/CodeDiff.mjs +2 -2
- package/es/CodeDiff/DiffPanel.mjs +3 -3
- package/es/CodeDiff/PatchDiff.mjs +2 -2
- package/es/CodeDiff/theme.mjs +1 -1
- package/es/CodeDiff/type.d.mts +2 -2
- package/es/CodeEditor/CodeEditor.mjs +2 -2
- package/es/CodeEditor/type.d.mts +1 -1
- package/es/Collapsible/Collapsible.mjs +2 -2
- package/es/ColorPicker/ColorInputs.mjs +3 -3
- package/es/ColorPicker/ColorPanel.mjs +2 -2
- package/es/ColorPicker/ColorPicker.mjs +1 -1
- package/es/ColorPicker/SaturationArea.mjs +2 -2
- package/es/ColorPicker/Swatch.mjs +1 -1
- package/es/ColorPicker/Swatches.mjs +2 -2
- package/es/ColorPicker/Trigger.mjs +3 -3
- package/es/ColorPicker/type.d.mts +1 -1
- package/es/ColorSwatches/ColorSwatches.d.mts +1 -1
- package/es/ColorSwatches/ColorSwatches.mjs +4 -4
- package/es/ColorSwatches/CustomPicker.mjs +2 -2
- package/es/ColorSwatches/type.d.mts +1 -1
- package/es/ConfigProvider/index.d.mts +1 -1
- package/es/ConfigProvider/index.mjs +1 -1
- package/es/ContextMenu/ContextMenuHost.mjs +4 -4
- package/es/ContextMenu/ContextMenuTrigger.d.mts +1 -1
- package/es/ContextMenu/ContextMenuTrigger.mjs +3 -3
- package/es/ContextMenu/renderItems.d.mts +1 -1
- package/es/ContextMenu/renderItems.mjs +5 -5
- package/es/ContextMenu/store.d.mts +1 -1
- package/es/CopyButton/CopyButton.mjs +3 -3
- package/es/DatePicker/PurePanel.mjs +1 -1
- package/es/DatePicker/RangePicker.mjs +2 -2
- package/es/DatePicker/SinglePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Popup/Footer.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Popup/PopupPanel.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Popup/index.mjs +2 -2
- package/es/DatePicker/core/PickerInput/RangePicker.d.mts +1 -1
- package/es/DatePicker/core/PickerInput/RangePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/ClearIcon.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/Icon.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/Input.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/RangeSelector.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/HoverSelector.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/MultipleDates.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/SingleSelector/index.mjs +2 -2
- package/es/DatePicker/core/PickerInput/Selector/hooks/useClearIcon.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useInputProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/Selector/hooks/useRootProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/SinglePicker.d.mts +1 -1
- package/es/DatePicker/core/PickerInput/SinglePicker.mjs +2 -2
- package/es/DatePicker/core/PickerInput/hooks/useCellRender.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useDelayState.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldFormat.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFieldsInvalidate.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFilledProps.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusEvents.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useFocusLock.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useLockEffect.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/usePresets.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs +2 -3
- package/es/DatePicker/core/PickerInput/hooks/useRangePickerValue.mjs.map +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValue.mjs +1 -1
- package/es/DatePicker/core/PickerInput/hooks/useRangeValueChange.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/DatePanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/DateTimePanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/DecadePanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/MonthPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/PanelBody.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/PanelHeader.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/QuarterPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/ClockDial.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimeClock/index.mjs +3 -3
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/TimeColumn.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useScrollTo.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/TimePanelBody/useTimeState.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/TimePanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/WeekPanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPanel/YearPanel/index.mjs +1 -1
- package/es/DatePicker/core/PickerPanel/index.mjs +2 -2
- package/es/DatePicker/core/PickerPopup.mjs +4 -4
- package/es/DatePicker/core/hooks/useTimeInfo.mjs +1 -1
- package/es/DatePicker/dateGenerateConfig.mjs +1 -1
- package/es/DatePicker/legacyDate.mjs +1 -1
- package/es/DatePicker/locale.mjs +2 -2
- package/es/DatePicker/type.d.mts +2 -2
- package/es/DatePicker/usePanelKeyboard.mjs +1 -1
- package/es/DatePicker/usePickerShared.mjs +3 -3
- package/es/DatePicker/usePresetActive.mjs +1 -1
- package/es/Descriptions/Descriptions.mjs +2 -2
- package/es/Divider/Divider.mjs +3 -3
- package/es/DownloadButton/DownloadButton.d.mts +1 -1
- package/es/DownloadButton/DownloadButton.mjs +3 -3
- package/es/DraggablePanel/DraggablePanel.mjs +1 -1
- package/es/DraggablePanel/atoms.d.mts +1 -1
- package/es/DraggablePanel/atoms.mjs +5 -5
- package/es/DraggablePanel/core/controller.d.mts +1 -1
- package/es/DraggablePanel/core/controller.mjs +1 -1
- package/es/DraggablePanel/type.d.mts +1 -1
- package/es/DraggableSideNav/DraggableSideNav.mjs +5 -5
- package/es/DraggableSideNav/type.d.mts +2 -2
- package/es/Drawer/Drawer.mjs +3 -3
- package/es/Drawer/atoms.d.mts +2 -2
- package/es/Drawer/atoms.mjs +7 -7
- package/es/Drawer/constants.d.mts +1 -1
- package/es/DropdownMenu/DropdownMenu.mjs +2 -2
- package/es/DropdownMenu/atoms.d.mts +2 -2
- package/es/DropdownMenu/atoms.mjs +5 -5
- package/es/DropdownMenu/renderItems.d.mts +1 -1
- package/es/DropdownMenu/renderItems.mjs +1 -1
- package/es/DropdownMenu/type.d.mts +2 -2
- package/es/EditableText/ControlInput.mjs +2 -2
- package/es/EditableText/EditableText.mjs +3 -3
- package/es/EditableText/type.d.mts +1 -1
- package/es/EditorSlashMenu/EditorSlashMenu.d.mts +2 -2
- package/es/EditorSlashMenu/EditorSlashMenu.mjs +1 -1
- package/es/EditorSlashMenu/MenuItemRenderer.mjs +1 -1
- package/es/EditorSlashMenu/atoms.d.mts +1 -1
- package/es/EditorSlashMenu/atoms.mjs +3 -3
- package/es/EditorSlashMenu/type.d.mts +1 -1
- package/es/EditorSlashMenu/useKeyboardNavigation.mjs +1 -1
- package/es/EditorSlashMenu/useNormalizedItems.mjs +1 -1
- package/es/EmojiPicker/AvatarUploader.mjs +3 -3
- package/es/EmojiPicker/EmojiPicker.mjs +7 -7
- package/es/EmojiPicker/type.d.mts +1 -1
- package/es/Empty/Empty.mjs +4 -4
- package/es/Empty/type.d.mts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.d.mts +1 -1
- package/es/FileTypeIcon/FileTypeIcon.mjs +2 -2
- package/es/FileTypeIcon/type.d.mts +1 -1
- package/es/Flex/Center.d.mts +1 -1
- package/es/Flex/Center.mjs +1 -1
- package/es/Flex/FlexBasic.mjs +1 -1
- package/es/FloatingPanel/FloatingPanel.mjs +3 -3
- package/es/FloatingPanel/ToastDodge.mjs +1 -1
- package/es/FloatingPanel/type.d.mts +2 -2
- package/es/FloatingSheet/FloatingSheet.mjs +2 -2
- package/es/FloatingSheet/useSnapPoints.mjs +1 -1
- package/es/FluentEmoji/FluentEmoji.d.mts +1 -1
- package/es/FluentEmoji/FluentEmoji.mjs +2 -2
- package/es/FluentEmoji/type.d.mts +1 -1
- package/es/FocusScope/FocusScope.mjs +1 -1
- package/es/FocusScope/useScopeArrowNav.mjs +1 -1
- package/es/FocusScope/useScopeSwitcher.mjs +1 -1
- package/es/Form/Form.mjs +4 -4
- package/es/Form/components/FormDivider.d.mts +1 -1
- package/es/Form/components/FormDivider.mjs +1 -1
- package/es/Form/components/FormField.mjs +3 -3
- package/es/Form/components/FormFlatGroup.mjs +2 -2
- package/es/Form/components/FormFooter.d.mts +1 -1
- package/es/Form/components/FormFooter.mjs +1 -1
- package/es/Form/components/FormGroup.mjs +5 -5
- package/es/Form/components/FormSubmitFooter.mjs +4 -4
- package/es/Form/components/FormTitle.d.mts +1 -1
- package/es/Form/components/FormTitle.mjs +1 -1
- package/es/Form/stableContext.mjs +1 -1
- package/es/Form/type.d.mts +3 -3
- package/es/FormKit/Field.d.mts +1 -1
- package/es/FormKit/Field.mjs +2 -2
- package/es/FormKit/Form.mjs +2 -2
- package/es/FormKit/List.d.mts +1 -1
- package/es/FormKit/List.mjs +4 -4
- package/es/FormKit/SubmitFooter.mjs +1 -1
- package/es/FormKit/engine/tanstack.mjs +1 -1
- package/es/FormKit/type.d.mts +1 -1
- package/es/FormKit/useForm.mjs +1 -1
- package/es/Grid/Grid.d.mts +1 -1
- package/es/Grid/Grid.mjs +3 -3
- package/es/Grid/type.d.mts +1 -1
- package/es/GroupAvatar/GroupAvatar.d.mts +1 -1
- package/es/GroupAvatar/GroupAvatar.mjs +2 -2
- package/es/GroupAvatar/type.d.mts +1 -1
- package/es/GuideCard/GuideCard.mjs +3 -3
- package/es/GuideCard/type.d.mts +1 -1
- package/es/Header/Header.mjs +2 -2
- package/es/Header/type.d.mts +1 -1
- package/es/Highlighter/FullFeatured.mjs +3 -3
- package/es/Highlighter/Highlighter.mjs +2 -2
- package/es/Highlighter/LangSelect.mjs +3 -3
- package/es/Highlighter/SyntaxHighlighter/StaticRenderer.mjs +1 -1
- package/es/Highlighter/SyntaxHighlighter/StreamRenderer.mjs +2 -2
- package/es/Highlighter/SyntaxHighlighter/index.mjs +3 -3
- package/es/Highlighter/engine.mjs +1 -1
- package/es/Highlighter/style.mjs +1 -1
- package/es/Highlighter/type.d.mts +1 -1
- package/es/Hotkey/Hotkey.mjs +3 -3
- package/es/Hotkey/type.d.mts +1 -1
- package/es/HotkeyInput/HotkeyInput.mjs +5 -5
- package/es/HtmlPreview/HtmlPreview.mjs +4 -4
- package/es/HtmlPreview/Iframe.mjs +2 -2
- package/es/HtmlPreview/type.d.mts +1 -1
- package/es/Icon/Icon.mjs +2 -2
- package/es/Icon/components/IconProvider.d.mts +1 -1
- package/es/Icon/type.d.mts +2 -2
- package/es/Image/Image.mjs +2 -2
- package/es/Image/index.d.mts +1 -1
- package/es/Image/type.d.mts +1 -1
- package/es/Image/useImagePreview.d.mts +1 -1
- package/es/Image/useImagePreview.mjs +1 -1
- package/es/Image/viewer/ActualSizeIcon.mjs +2 -2
- package/es/Image/viewer/GalleryNav.mjs +2 -2
- package/es/Image/viewer/ImageViewer.mjs +2 -2
- package/es/Image/viewer/Toolbar.mjs +3 -3
- package/es/Image/viewer/ViewerChrome.mjs +3 -3
- package/es/Image/viewer/registry.d.mts +2 -2
- package/es/Image/viewer/useFlipTransition.mjs +1 -1
- package/es/Image/viewer/useGalleryNav.mjs +1 -1
- package/es/Image/viewer/useRefitTransition.mjs +2 -2
- package/es/Image/viewer/useZoomPan.mjs +2 -2
- package/es/ImageSelect/ImageSelect.mjs +2 -2
- package/es/ImageSelect/type.d.mts +1 -1
- package/es/Img/index.mjs +2 -2
- package/es/Input/ClearButton.mjs +3 -3
- package/es/Input/Input.mjs +3 -3
- package/es/Input/InputNumber.mjs +5 -5
- package/es/Input/InputOTP.mjs +3 -3
- package/es/Input/InputPassword.mjs +3 -3
- package/es/Input/TextArea.mjs +3 -3
- package/es/Input/style.d.mts +1 -1
- package/es/Input/style.mjs +1 -1
- package/es/Input/type.d.mts +1 -1
- package/es/Layout/Layout.mjs +2 -2
- package/es/Layout/components/LayoutFooter.mjs +2 -2
- package/es/Layout/components/LayoutHeader.mjs +2 -2
- package/es/Layout/components/LayoutMain.mjs +2 -2
- package/es/Layout/components/LayoutSidebar.mjs +2 -2
- package/es/Layout/components/LayoutSidebarInner.mjs +2 -2
- package/es/Layout/components/LayoutToc.mjs +1 -1
- package/es/Layout/index.d.mts +1 -1
- package/es/Layout/type.d.mts +1 -1
- package/es/List/List.d.mts +1 -1
- package/es/List/List.mjs +2 -2
- package/es/List/ListRow.d.mts +2 -2
- package/es/List/ListRow.mjs +2 -2
- package/es/List/type.d.mts +1 -1
- package/es/Markdown/Markdown.mjs +4 -3
- package/es/Markdown/Markdown.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs +36 -4
- package/es/Markdown/SyntaxMarkdown/MarkdownRender.mjs.map +1 -1
- package/es/Markdown/SyntaxMarkdown/StreamdownRender.mjs +2 -2
- package/es/Markdown/SyntaxMarkdown/parseCache.mjs +154 -0
- package/es/Markdown/SyntaxMarkdown/parseCache.mjs.map +1 -0
- package/es/Markdown/Typography.mjs +2 -2
- package/es/Markdown/components/CodeBlock.mjs +1 -1
- package/es/Markdown/components/Footnotes.mjs +1 -1
- package/es/Markdown/components/MarkdownProvider.mjs +1 -1
- package/es/Markdown/components/MarkdownTable/index.mjs +1 -1
- package/es/Markdown/components/SearchResultCards/SearchResultCard.mjs +2 -2
- package/es/Markdown/components/SearchResultCards/index.d.mts +1 -1
- package/es/Markdown/components/SearchResultCards/index.mjs +2 -2
- package/es/Markdown/plugins/rehypeCustomFootnotes.mjs +1 -1
- package/es/Markdown/plugins/rehypeKatex.mjs +1 -1
- package/es/Markdown/plugins/rehypeKatexDir.mjs +1 -1
- package/es/Markdown/plugins/remarkBr.mjs +1 -1
- package/es/Markdown/plugins/remarkCjkAutolink.mjs +1 -1
- package/es/Markdown/plugins/remarkColor.mjs +1 -1
- package/es/Markdown/plugins/remarkCustomFootnotes.mjs +1 -1
- package/es/Markdown/plugins/remarkGfmPlus.mjs +1 -1
- package/es/Markdown/plugins/remarkVideo.mjs +1 -1
- package/es/Markdown/type.d.mts +11 -4
- package/es/MaskShadow/MaskShadow.mjs +2 -2
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.d.mts +1 -1
- package/es/MaterialFileTypeIcon/MaterialFileTypeIcon.mjs +2 -2
- package/es/Mermaid/FullFeatured.mjs +3 -3
- package/es/Mermaid/Mermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/MermaidFallback.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/MermaidSvg.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/StaticMermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/StreamMermaid.mjs +2 -2
- package/es/Mermaid/SyntaxMermaid/index.mjs +2 -2
- package/es/Mermaid/type.d.mts +1 -1
- package/es/Meta/Meta.mjs +1 -1
- package/es/Modal/Modal.d.mts +1 -1
- package/es/Modal/Modal.mjs +3 -3
- package/es/Modal/atoms.d.mts +2 -2
- package/es/Modal/atoms.mjs +7 -7
- package/es/Modal/imperative.mjs +2 -2
- package/es/Modal/type.d.mts +1 -1
- package/es/MotionProvider/index.d.mts +1 -1
- package/es/Pagination/Pagination.mjs +4 -4
- package/es/Pagination/type.d.mts +1 -1
- package/es/Popover/ArrowIcon.mjs +1 -1
- package/es/Popover/Popover.d.mts +1 -1
- package/es/Popover/Popover.mjs +1 -1
- package/es/Popover/PopoverGroup.d.mts +1 -1
- package/es/Popover/PopoverGroup.mjs +2 -2
- package/es/Popover/PopoverInGroup.mjs +4 -4
- package/es/Popover/PopoverStandalone.mjs +2 -2
- package/es/Popover/atoms.d.mts +3 -3
- package/es/Popover/atoms.mjs +5 -5
- package/es/Popover/groupContext.d.mts +1 -1
- package/es/Popover/type.d.mts +2 -2
- package/es/Popover/useMergedPopoverProps.mjs +1 -1
- package/es/ProTable/ProTable.mjs +2 -2
- package/es/ProTable/hooks/useColumnsState.mjs +1 -1
- package/es/ProTable/hooks/useDensity.mjs +1 -1
- package/es/ProTable/hooks/useFullscreen.mjs +1 -1
- package/es/ProTable/hooks/usePageInfo.mjs +1 -1
- package/es/ProTable/hooks/useProColumns.mjs +2 -2
- package/es/ProTable/hooks/useProLocale.mjs +1 -1
- package/es/ProTable/hooks/useProRequest.mjs +1 -1
- package/es/ProTable/hooks/useSearchForm.mjs +1 -1
- package/es/ProTable/hooks/useTableBindings.mjs +1 -1
- package/es/ProTable/locale.d.mts +1 -1
- package/es/ProTable/parts/ColumnSetting.mjs +1 -1
- package/es/ProTable/parts/FieldControl.mjs +1 -1
- package/es/ProTable/parts/SearchForm.mjs +2 -2
- package/es/ProTable/parts/TableAlert.mjs +1 -1
- package/es/ProTable/parts/Toolbar.mjs +2 -2
- package/es/ProTable/parts/ToolbarOptions.mjs +2 -2
- package/es/ProTable/parts/renderValue.mjs +2 -2
- package/es/ProTable/style.mjs +2 -2
- package/es/ProTable/type.d.mts +1 -1
- package/es/Progress/Progress.mjs +4 -4
- package/es/ProgressiveBlur/ProgressiveBlur.mjs +2 -2
- package/es/QRCode/QRCode.mjs +4 -4
- package/es/Radio/Radio.mjs +3 -3
- package/es/Radio/RadioGroup.mjs +3 -3
- package/es/Radio/type.d.mts +3 -3
- package/es/Rate/Rate.mjs +4 -4
- package/es/Result/Result.mjs +3 -3
- package/es/ScrollArea/ScrollArea.d.mts +1 -1
- package/es/ScrollArea/atoms.d.mts +2 -2
- package/es/ScrollArea/atoms.mjs +2 -2
- package/es/ScrollArea/type.d.mts +1 -1
- package/es/ScrollShadow/ScrollShadow.d.mts +1 -1
- package/es/ScrollShadow/ScrollShadow.mjs +2 -2
- package/es/ScrollShadow/type.d.mts +1 -1
- package/es/SearchBar/SearchBar.mjs +4 -4
- package/es/SearchBar/type.d.mts +1 -1
- package/es/Segmented/Segmented.mjs +2 -2
- package/es/Segmented/atoms.d.mts +2 -2
- package/es/Segmented/atoms.mjs +3 -3
- package/es/Segmented/type.d.mts +1 -1
- package/es/Select/Select.mjs +3 -3
- package/es/Select/atoms.d.mts +2 -2
- package/es/Select/atoms.mjs +5 -5
- package/es/Select/hooks.mjs +1 -1
- package/es/Select/parts.mjs +5 -5
- package/es/Select/renderOptions.mjs +3 -3
- package/es/Select/type.d.mts +2 -2
- package/es/SideNav/SideNav.mjs +2 -2
- package/es/SideNav/type.d.mts +1 -1
- package/es/Skeleton/Skeleton.mjs +1 -1
- package/es/Skeleton/SkeletonAvatar.d.mts +1 -1
- package/es/Skeleton/SkeletonAvatar.mjs +1 -1
- package/es/Skeleton/SkeletonText.d.mts +1 -1
- package/es/Skeleton/SkeletonText.mjs +1 -1
- package/es/Skeleton/index.d.mts +1 -1
- package/es/Slider/Slider.mjs +3 -3
- package/es/Slider/SliderWithInput.mjs +4 -4
- package/es/Slider/type.d.mts +2 -2
- package/es/Snippet/Snippet.d.mts +1 -1
- package/es/Snippet/Snippet.mjs +1 -1
- package/es/Snippet/type.d.mts +1 -1
- package/es/SortableList/SortableList.d.mts +1 -1
- package/es/SortableList/SortableList.mjs +5 -5
- package/es/SortableList/components/DragHandle.mjs +3 -3
- package/es/SortableList/components/SortableItem.d.mts +1 -1
- package/es/SortableList/components/SortableItem.mjs +4 -4
- package/es/SortableList/components/SortableOverlay.mjs +1 -1
- package/es/SortableList/type.d.mts +1 -1
- package/es/Spin/NetworkGlyph.mjs +2 -2
- package/es/Spin/Spin.mjs +4 -4
- package/es/Statistic/Statistic.mjs +2 -2
- package/es/Steps/Steps.mjs +3 -3
- package/es/Switch/Switch.mjs +4 -4
- package/es/Switch/atoms.d.mts +1 -1
- package/es/Switch/atoms.mjs +4 -4
- package/es/Switch/type.d.mts +1 -1
- package/es/Table/Column.d.mts +1 -1
- package/es/Table/ColumnGroup.d.mts +1 -1
- package/es/Table/Table.d.mts +1 -1
- package/es/Table/Table.mjs +4 -4
- package/es/Table/atoms/cells.d.mts +1 -1
- package/es/Table/atoms/cells.mjs +1 -1
- package/es/Table/atoms/layout.d.mts +1 -1
- package/es/Table/atoms/layout.mjs +2 -2
- package/es/Table/engine/useTableEngine.mjs +2 -2
- package/es/Table/internal.d.mts +2 -2
- package/es/Table/pipeline/selectionUtils.d.mts +1 -1
- package/es/Table/pipeline/useExpandable.mjs +1 -1
- package/es/Table/pipeline/useFilter.mjs +1 -1
- package/es/Table/pipeline/useSelection.mjs +1 -1
- package/es/Table/pipeline/useSorter.mjs +1 -1
- package/es/Table/pipeline/useTableLocale.mjs +1 -1
- package/es/Table/pipeline/useTableState.mjs +1 -1
- package/es/Table/pipeline/useVirtualLayout.mjs +1 -1
- package/es/Table/render/Body.mjs +2 -2
- package/es/Table/render/BodyCell.mjs +1 -1
- package/es/Table/render/CellShell.mjs +2 -2
- package/es/Table/render/ExpandIcon.mjs +2 -2
- package/es/Table/render/FilterDropdown.mjs +3 -3
- package/es/Table/render/FilterPanel.mjs +4 -4
- package/es/Table/render/FixedFrost.mjs +3 -3
- package/es/Table/render/FixedHolder.mjs +1 -1
- package/es/Table/render/Header.mjs +3 -3
- package/es/Table/render/LoadingSkeleton.mjs +2 -2
- package/es/Table/render/PaginationBar.mjs +2 -2
- package/es/Table/render/SelectionCells.mjs +4 -4
- package/es/Table/render/Summary.d.mts +1 -1
- package/es/Table/render/Summary.mjs +1 -1
- package/es/Table/render/TableView.mjs +2 -2
- package/es/Table/render/VirtualBody.mjs +1 -1
- package/es/Table/render/filterUtils.mjs +1 -1
- package/es/Table/render/useScrollSync.mjs +1 -1
- package/es/Table/render/useViewContexts.mjs +1 -1
- package/es/Table/semantic.mjs +1 -1
- package/es/Table/store/hooks.mjs +1 -1
- package/es/Table/type.d.mts +1 -1
- package/es/Table/useTableController.mjs +1 -1
- package/es/Tabs/Tabs.d.mts +1 -1
- package/es/Tabs/Tabs.mjs +2 -2
- package/es/Tabs/atoms.d.mts +1 -1
- package/es/Tabs/atoms.mjs +3 -3
- package/es/Tabs/style.d.mts +1 -1
- package/es/Tabs/style.mjs +1 -1
- package/es/Tabs/type.d.mts +1 -1
- package/es/Tag/Tag.mjs +3 -3
- package/es/Tag/utils.mjs +1 -1
- package/es/Text/Text.d.mts +1 -1
- package/es/Text/Text.mjs +2 -2
- package/es/Text/style.mjs +1 -1
- package/es/Text/type.d.mts +1 -1
- package/es/Toast/Toast.mjs +4 -4
- package/es/Toast/imperative.mjs +3 -3
- package/es/Toast/type.d.mts +2 -2
- package/es/Toc/Toc.mjs +2 -2
- package/es/Toc/toFlatTocItems.d.mts +1 -1
- package/es/Toc/type.d.mts +1 -1
- package/es/ToggleGroup/ToggleGroup.mjs +2 -2
- package/es/ToggleGroup/atoms.d.mts +3 -3
- package/es/ToggleGroup/atoms.mjs +3 -3
- package/es/Tooltip/ArrowIcon.mjs +1 -1
- package/es/Tooltip/Tooltip.d.mts +1 -1
- package/es/Tooltip/Tooltip.mjs +1 -1
- package/es/Tooltip/TooltipContent.mjs +1 -1
- package/es/Tooltip/TooltipGroup.d.mts +1 -1
- package/es/Tooltip/TooltipGroup.mjs +3 -3
- package/es/Tooltip/TooltipInGroup.mjs +4 -4
- package/es/Tooltip/TooltipStandalone.mjs +4 -4
- package/es/Tooltip/type.d.mts +2 -2
- package/es/Tooltip/useMergedTooltipProps.mjs +1 -1
- package/es/Tree/Tree.mjs +2 -2
- package/es/Tree/TreeNode.mjs +5 -5
- package/es/Tree/type.d.mts +1 -1
- package/es/Upload/Upload.mjs +3 -3
- package/es/Upload/UploadDragger.mjs +2 -2
- package/es/Video/Video.mjs +1 -1
- package/es/Video/index.d.mts +1 -1
- package/es/Video/parts/Caption.mjs +2 -2
- package/es/Video/parts/CenterPlay.mjs +1 -1
- package/es/Video/parts/Controls.mjs +3 -3
- package/es/Video/parts/Frame.mjs +2 -2
- package/es/Video/parts/HoverPreview.mjs +30 -6
- package/es/Video/parts/HoverPreview.mjs.map +1 -1
- package/es/Video/parts/LoadError.mjs +1 -1
- package/es/Video/parts/RateMenu.mjs +2 -2
- package/es/Video/parts/Root.mjs +2 -2
- package/es/Video/parts/SectionList.mjs +1 -1
- package/es/Video/parts/SectionMenu.mjs +2 -2
- package/es/Video/parts/Timeline.mjs +4 -2
- package/es/Video/parts/Timeline.mjs.map +1 -1
- package/es/Video/sizing.mjs +12 -1
- package/es/Video/sizing.mjs.map +1 -1
- package/es/Video/style.mjs +0 -2
- package/es/Video/style.mjs.map +1 -1
- package/es/Video/useVideo.mjs +1 -1
- package/es/awesome/AgentSkillCard/AgentSkillCard.mjs +3 -3
- package/es/awesome/AgentSkillCard/type.d.mts +1 -1
- package/es/awesome/AuroraBackground/AuroraBackground.mjs +2 -2
- package/es/awesome/AuroraBackground/type.d.mts +1 -1
- package/es/awesome/BentoGrid/BentoCard.mjs +2 -2
- package/es/awesome/BentoGrid/BentoGrid.mjs +2 -2
- package/es/awesome/BentoGrid/type.d.mts +1 -1
- package/es/awesome/BottomGradientButton/BottomGradientButton.mjs +2 -2
- package/es/awesome/CodeShowcase/CodeShowcase.mjs +2 -2
- package/es/awesome/CodeShowcase/type.d.mts +1 -1
- package/es/awesome/FeatureGrid/FeatureGrid.mjs +2 -2
- package/es/awesome/FeatureGrid/type.d.mts +1 -1
- package/es/awesome/Features/FeatureItem.mjs +2 -2
- package/es/awesome/Features/Features.mjs +2 -2
- package/es/awesome/Features/type.d.mts +1 -1
- package/es/awesome/FluidGradient/FluidGradient.mjs +2 -2
- package/es/awesome/Giscus/Giscus.mjs +3 -3
- package/es/awesome/Giscus/style.mjs +1 -1
- package/es/awesome/Giscus/type.d.mts +1 -1
- package/es/awesome/GradientButton/GradientButton.mjs +2 -2
- package/es/awesome/Grainient/Grainient.mjs +2 -2
- package/es/awesome/GridBackground/GridBackground.mjs +4 -4
- package/es/awesome/GridBackground/GridShowcase.mjs +2 -2
- package/es/awesome/GridBackground/components/Grid.mjs +2 -2
- package/es/awesome/Hero/Hero.mjs +2 -2
- package/es/awesome/InstallBanner/InstallBanner.mjs +2 -2
- package/es/awesome/InstallBanner/type.d.mts +1 -1
- package/es/awesome/LandingHero/LandingHero.mjs +2 -2
- package/es/awesome/LandingHero/type.d.mts +1 -1
- package/es/awesome/LandingSection/LandingSection.mjs +2 -2
- package/es/awesome/LandingSection/type.d.mts +1 -1
- package/es/awesome/LogoMarquee/LogoMarquee.mjs +2 -2
- package/es/awesome/LogoMarquee/type.d.mts +1 -1
- package/es/awesome/Spotlight/Spotlight.mjs +2 -2
- package/es/awesome/SpotlightCard/SpotlightCard.mjs +2 -2
- package/es/awesome/SpotlightCard/SpotlightCardItem.mjs +1 -1
- package/es/awesome/SpotlightCard/type.d.mts +1 -1
- package/es/awesome/TypewriterEffect/TypewriterEffect.mjs +2 -2
- package/es/awesome/landingActions.d.mts +1 -1
- package/es/awesome/landingActions.mjs +2 -2
- package/es/brand/BrandLoading/index.d.mts +1 -1
- package/es/brand/BrandLoading/index.mjs +1 -1
- package/es/brand/LobeChat/index.d.mts +1 -1
- package/es/brand/LobeChat/index.mjs +2 -2
- package/es/brand/LobeChatText/index.d.mts +1 -1
- package/es/brand/LobeChatText/index.mjs +1 -1
- package/es/brand/LobeHub/index.d.mts +1 -1
- package/es/brand/LobeHub/index.mjs +2 -2
- package/es/brand/LobeHubText/index.d.mts +1 -1
- package/es/brand/LobeHubText/index.mjs +1 -1
- package/es/brand/Logo3d/index.d.mts +1 -1
- package/es/brand/Logo3d/index.mjs +1 -1
- package/es/chat/BackBottom/BackBottom.mjs +3 -3
- package/es/chat/BackBottom/type.d.mts +1 -1
- package/es/chat/ChatHeader/ChatHeader.mjs +3 -3
- package/es/chat/ChatHeader/ChatHeaderTitle.d.mts +1 -1
- package/es/chat/ChatHeader/index.d.mts +1 -1
- package/es/chat/ChatHeader/type.d.mts +1 -1
- package/es/chat/ChatInputArea/ChatInputArea.mjs +2 -2
- package/es/chat/ChatInputArea/components/ChatInputActionBar.d.mts +1 -1
- package/es/chat/ChatInputArea/components/ChatInputActionBar.mjs +1 -1
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.d.mts +1 -1
- package/es/chat/ChatInputArea/components/ChatSendButton.mjs +2 -2
- package/es/chat/ChatInputArea/index.d.mts +1 -1
- package/es/chat/ChatInputArea/type.d.mts +1 -1
- package/es/chat/ChatItem/ChatItem.mjs +2 -2
- package/es/chat/ChatItem/components/Actions.mjs +1 -1
- package/es/chat/ChatItem/components/Avatar.mjs +1 -1
- package/es/chat/ChatItem/components/Loading.mjs +1 -1
- package/es/chat/ChatItem/components/MessageContent.mjs +2 -2
- package/es/chat/ChatItem/type.d.mts +1 -1
- package/es/chat/ChatList/ChatList.mjs +2 -2
- package/es/chat/ChatList/components/ChatActionsBar.d.mts +1 -1
- package/es/chat/ChatList/components/ChatActionsBar.mjs +1 -1
- package/es/chat/ChatList/components/ChatListItem.mjs +1 -1
- package/es/chat/ChatList/components/HistoryDivider.mjs +1 -1
- package/es/chat/ChatList/components/useChatListActionsBar.mjs +1 -1
- package/es/chat/ChatList/type.d.mts +1 -1
- package/es/chat/EditableMessage/EditableMessage.mjs +2 -2
- package/es/chat/EditableMessage/type.d.mts +1 -1
- package/es/chat/EditableMessageList/EditableMessageList.mjs +4 -4
- package/es/chat/EditableMessageList/type.d.mts +1 -1
- package/es/chat/LoadingDots/LoadingDots.d.mts +1 -1
- package/es/chat/LoadingDots/LoadingDots.mjs +2 -2
- package/es/chat/MessageInput/MessageInput.mjs +3 -3
- package/es/chat/MessageInput/type.d.mts +1 -1
- package/es/chat/MessageModal/MessageModal.mjs +2 -2
- package/es/chat/MessageModal/type.d.mts +1 -1
- package/es/chat/TokenTag/TokenTag.d.mts +1 -1
- package/es/chat/TokenTag/TokenTag.mjs +2 -2
- package/es/color/ColorScales/ScaleRow.mjs +2 -2
- package/es/color/ColorScales/index.d.mts +1 -1
- package/es/color/ColorScales/index.mjs +3 -3
- package/es/color/CssVar/ScaleRow.mjs +2 -2
- package/es/color/CssVar/VarRow.mjs +2 -2
- package/es/color/CssVar/index.d.mts +1 -1
- package/es/color/CssVar/index.mjs +3 -3
- package/es/css/Markdown.css +0 -4
- package/es/css/Video.css +0 -4
- package/es/css/chat/ChatItem.css +0 -4
- package/es/css/chat/ChatList.css +0 -4
- package/es/css/chat/EditableMessage.css +0 -4
- package/es/css/chat/MessageModal.css +0 -4
- package/es/css/mdx/Mdx.css +0 -4
- package/es/css/mdx/mdxComponents.css +0 -4
- package/es/dashboard/AuthLayout/Aside.mjs +1 -1
- package/es/dashboard/AuthLayout/AuthLayout.mjs +2 -2
- package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs +2 -2
- package/es/dashboard/AuthTools/AuthThemeSwitch.mjs +2 -2
- package/es/dashboard/Breadcrumb/Breadcrumb.mjs +1 -1
- package/es/dashboard/ChartGrid/ChartGrid.mjs +1 -1
- package/es/dashboard/ConsoleNav/ConsoleNav.mjs +4 -4
- package/es/dashboard/ConsoleNav/Skeleton.mjs +1 -1
- package/es/dashboard/ConsoleNav/type.d.mts +1 -1
- package/es/dashboard/ConsoleShell/ConsoleBrand.mjs +1 -1
- package/es/dashboard/ConsoleShell/ConsoleShell.mjs +3 -3
- package/es/dashboard/FilterSidebar/FilterSidebar.mjs +3 -3
- package/es/dashboard/FilterStrip/FilterStrip.mjs +2 -2
- package/es/dashboard/LabelWithKey/LabelWithKey.mjs +1 -1
- package/es/dashboard/LabelWithKey/type.d.mts +1 -1
- package/es/dashboard/MetricStrip/MetricCell.mjs +1 -1
- package/es/dashboard/MetricStrip/MetricStrip.mjs +2 -2
- package/es/dashboard/MetricStrip/type.d.mts +1 -1
- package/es/dashboard/PageHeader/PageHeader.mjs +1 -1
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs +1 -1
- package/es/dashboard/PageTabs/PageTabs.mjs +1 -1
- package/es/dashboard/PageToolbar/PageToolbar.mjs +1 -1
- package/es/dashboard/PanelSurface/PanelSurface.mjs +1 -1
- package/es/dashboard/PanelSurface/type.d.mts +1 -1
- package/es/dashboard/RouteProgress/RouteProgress.mjs +2 -2
- package/es/dashboard/Section/Section.mjs +2 -2
- package/es/dashboard/Section/type.d.mts +1 -1
- package/es/dashboard/StatCard/StatCard.mjs +1 -1
- package/es/dashboard/StatCard/type.d.mts +1 -1
- package/es/dashboard/Surface/Surface.mjs +2 -2
- package/es/dashboard/Surface/link.d.mts +2 -2
- package/es/dashboard/Surface/link.mjs +2 -2
- package/es/dashboard/TableIconActions/TableIconActions.mjs +1 -1
- package/es/dashboard/TableIconActions/type.d.mts +1 -1
- package/es/dashboard/TitleWithTips/TitleWithTips.mjs +2 -2
- package/es/hooks/useControlledState.mjs +1 -1
- package/es/hooks/useHighlight.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownComponents.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownContent.mjs +1 -1
- package/es/hooks/useMarkdown/useMarkdownRehypePlugins.mjs +4 -4
- package/es/hooks/useMarkdown/useMarkdownRemarkPlugins.mjs +5 -5
- package/es/hooks/useMermaid.mjs +1 -1
- package/es/hooks/useStableValue.mjs +1 -1
- package/es/hooks/useStreamHighlight.mjs +1 -1
- package/es/hooks/useStreamMermaid.mjs +1 -1
- package/es/i18n/context.d.mts +1 -1
- package/es/i18n/context.mjs +1 -1
- package/es/i18n/useTranslation.mjs +1 -1
- package/es/icons/Auth0/components/Avatar.d.mts +1 -1
- package/es/icons/Auth0/components/Avatar.mjs +1 -1
- package/es/icons/Auth0/components/Mono.mjs +1 -1
- package/es/icons/Authelia/components/Avatar.d.mts +1 -1
- package/es/icons/Authelia/components/Avatar.mjs +1 -1
- package/es/icons/Authelia/components/Color.mjs +2 -2
- package/es/icons/Authelia/components/Mono.mjs +1 -1
- package/es/icons/Authentik/components/Avatar.d.mts +1 -1
- package/es/icons/Authentik/components/Avatar.mjs +1 -1
- package/es/icons/Authentik/components/Color.mjs +1 -1
- package/es/icons/Authentik/components/Mono.mjs +1 -1
- package/es/icons/Casdoor/components/Avatar.d.mts +1 -1
- package/es/icons/Casdoor/components/Avatar.mjs +1 -1
- package/es/icons/Casdoor/components/Color.mjs +2 -2
- package/es/icons/Casdoor/components/Mono.mjs +1 -1
- package/es/icons/Clerk/components/Avatar.d.mts +1 -1
- package/es/icons/Clerk/components/Avatar.mjs +1 -1
- package/es/icons/Clerk/components/Color.mjs +1 -1
- package/es/icons/Clerk/components/Mono.mjs +1 -1
- package/es/icons/DingTalk/components/Avatar.d.mts +1 -1
- package/es/icons/DingTalk/components/Avatar.mjs +1 -1
- package/es/icons/DingTalk/components/Color.mjs +1 -1
- package/es/icons/DingTalk/components/Mono.mjs +1 -1
- package/es/icons/Discord/components/Avatar.d.mts +1 -1
- package/es/icons/Discord/components/Avatar.mjs +1 -1
- package/es/icons/Discord/components/Color.mjs +1 -1
- package/es/icons/Discord/components/Mono.mjs +1 -1
- package/es/icons/GoogleChat/components/Avatar.d.mts +1 -1
- package/es/icons/GoogleChat/components/Avatar.mjs +1 -1
- package/es/icons/GoogleChat/components/Color.mjs +1 -1
- package/es/icons/GoogleChat/components/Mono.mjs +1 -1
- package/es/icons/IMessage/components/Avatar.d.mts +1 -1
- package/es/icons/IMessage/components/Avatar.mjs +1 -1
- package/es/icons/IMessage/components/Color.mjs +1 -1
- package/es/icons/IMessage/components/Inner.mjs +1 -1
- package/es/icons/IMessage/components/Mono.mjs +1 -1
- package/es/icons/Lark/components/Avatar.d.mts +1 -1
- package/es/icons/Lark/components/Avatar.mjs +1 -1
- package/es/icons/Lark/components/Color.mjs +1 -1
- package/es/icons/Lark/components/Mono.mjs +1 -1
- package/es/icons/Line/components/Avatar.d.mts +1 -1
- package/es/icons/Line/components/Avatar.mjs +1 -1
- package/es/icons/Line/components/Color.mjs +1 -1
- package/es/icons/Line/components/Mono.mjs +1 -1
- package/es/icons/Logto/components/Avatar.d.mts +1 -1
- package/es/icons/Logto/components/Avatar.mjs +1 -1
- package/es/icons/Logto/components/Color.mjs +2 -2
- package/es/icons/Logto/components/Mono.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Avatar.d.mts +1 -1
- package/es/icons/MicrosoftEntra/components/Avatar.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Color.mjs +1 -1
- package/es/icons/MicrosoftEntra/components/Mono.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Avatar.d.mts +1 -1
- package/es/icons/MicrosoftTeams/components/Avatar.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Color.mjs +1 -1
- package/es/icons/MicrosoftTeams/components/Mono.mjs +1 -1
- package/es/icons/NextAuth/components/Avatar.d.mts +1 -1
- package/es/icons/NextAuth/components/Avatar.mjs +1 -1
- package/es/icons/NextAuth/components/Color.mjs +2 -2
- package/es/icons/NextAuth/components/Mono.mjs +1 -1
- package/es/icons/QQ/components/Avatar.d.mts +1 -1
- package/es/icons/QQ/components/Avatar.mjs +1 -1
- package/es/icons/Slack/components/Avatar.d.mts +1 -1
- package/es/icons/Slack/components/Avatar.mjs +1 -1
- package/es/icons/Slack/components/Color.mjs +1 -1
- package/es/icons/Slack/components/Mono.mjs +1 -1
- package/es/icons/Telegram/components/Avatar.d.mts +1 -1
- package/es/icons/Telegram/components/Avatar.mjs +1 -1
- package/es/icons/Telegram/components/Color.mjs +1 -1
- package/es/icons/Telegram/components/Inner.mjs +1 -1
- package/es/icons/Telegram/components/Mono.mjs +1 -1
- package/es/icons/WeChat/components/Avatar.d.mts +1 -1
- package/es/icons/WeChat/components/Avatar.mjs +1 -1
- package/es/icons/WeChat/components/Color.mjs +1 -1
- package/es/icons/WeChat/components/Mono.mjs +1 -1
- package/es/icons/WeCom/components/Avatar.d.mts +1 -1
- package/es/icons/WeCom/components/Avatar.mjs +1 -1
- package/es/icons/WeCom/components/Color.mjs +1 -1
- package/es/icons/WeCom/components/Mono.mjs +1 -1
- package/es/icons/WhatsApp/components/Avatar.d.mts +1 -1
- package/es/icons/WhatsApp/components/Avatar.mjs +1 -1
- package/es/icons/WhatsApp/components/Color.mjs +1 -1
- package/es/icons/WhatsApp/components/Mono.mjs +1 -1
- package/es/icons/Zitadel/components/Avatar.d.mts +1 -1
- package/es/icons/Zitadel/components/Avatar.mjs +1 -1
- package/es/icons/Zitadel/components/Color.mjs +2 -2
- package/es/icons/Zitadel/components/Mono.mjs +1 -1
- package/es/internal/menu/baseItem.d.mts +2 -2
- package/es/internal/menu/checkboxItem.d.mts +1 -1
- package/es/internal/menu/renderUtils.d.mts +1 -1
- package/es/internal/menu/renderUtils.mjs +1 -1
- package/es/internal/menu/switchItem.d.mts +1 -1
- package/es/internal/menu/type.d.mts +1 -1
- package/es/internal/virtual/MenuVirtualList.d.mts +2 -2
- package/es/internal/virtual/VirtualScrollArea.d.mts +2 -2
- package/es/internal/virtual/VirtualScrollArea.mjs +2 -2
- package/es/internal/virtual/useMenuVirtualList.d.mts +2 -2
- package/es/internal/virtual/useMenuVirtualList.mjs +1 -1
- package/es/internal/zIndex/useLayerZIndex.mjs +1 -1
- package/es/mdx/Callout/index.d.mts +1 -1
- package/es/mdx/Callout/index.mjs +2 -2
- package/es/mdx/Cards/Card.d.mts +1 -1
- package/es/mdx/Cards/Card.mjs +1 -1
- package/es/mdx/Cards/index.d.mts +1 -1
- package/es/mdx/Cards/index.mjs +1 -1
- package/es/mdx/FileTree/File.d.mts +1 -1
- package/es/mdx/FileTree/File.mjs +2 -2
- package/es/mdx/FileTree/Folder.d.mts +1 -1
- package/es/mdx/FileTree/Folder.mjs +3 -3
- package/es/mdx/FileTree/index.d.mts +1 -1
- package/es/mdx/FileTree/index.mjs +1 -1
- package/es/mdx/Mdx/index.d.mts +1 -1
- package/es/mdx/Mdx/index.mjs +8 -8
- package/es/mdx/Steps/index.d.mts +1 -1
- package/es/mdx/Steps/index.mjs +1 -1
- package/es/mdx/Tabs/Tab.d.mts +1 -1
- package/es/mdx/Tabs/Tab.mjs +1 -1
- package/es/mdx/Tabs/index.d.mts +1 -1
- package/es/mdx/Tabs/index.mjs +2 -2
- package/es/mdx/mdxComponents/Citation/PopoverPanel.mjs +3 -3
- package/es/mdx/mdxComponents/Citation/index.mjs +1 -1
- package/es/mdx/mdxComponents/CodeBlock.d.mts +1 -1
- package/es/mdx/mdxComponents/Image.d.mts +1 -1
- package/es/mdx/mdxComponents/Image.mjs +1 -1
- package/es/mdx/mdxComponents/Link.d.mts +1 -1
- package/es/mdx/mdxComponents/Link.mjs +1 -1
- package/es/mdx/mdxComponents/Pre.d.mts +1 -1
- package/es/mdx/mdxComponents/Pre.mjs +1 -1
- package/es/mdx/mdxComponents/Video.d.mts +1 -1
- package/es/mdx/mdxComponents/Video.mjs +1 -1
- package/es/mobile/ChatHeader/ChatHeader.mjs +3 -3
- package/es/mobile/ChatHeader/ChatHeaderTitle.mjs +1 -1
- package/es/mobile/ChatHeader/index.d.mts +1 -1
- package/es/mobile/ChatHeader/type.d.mts +1 -1
- package/es/mobile/ChatInputArea/ChatInputArea.mjs +3 -3
- package/es/mobile/ChatInputArea/components/ChatSendButton.mjs +3 -3
- package/es/mobile/ChatInputArea/index.d.mts +1 -1
- package/es/mobile/ChatInputArea/type.d.mts +1 -1
- package/es/mobile/SafeArea/SafeArea.d.mts +1 -1
- package/es/mobile/SafeArea/SafeArea.mjs +1 -1
- package/es/mobile/TabBar/TabBar.mjs +2 -2
- package/es/mobile/TabBar/type.d.mts +1 -1
- package/es/spline/LogoThree/Loading.mjs +1 -1
- package/es/spline/LogoThree/LogoSpline.d.mts +1 -1
- package/es/spline/LogoThree/LogoSpline.mjs +1 -1
- package/es/spline/LogoThree/index.d.mts +1 -1
- package/es/spline/LogoThree/index.mjs +1 -1
- package/es/spline/Spline/ParentSize.mjs +2 -2
- package/es/spline/Spline/Spine.mjs +1 -1
- package/es/spline/Spline/type.d.mts +1 -1
- package/es/storybook/StoryBook/index.d.mts +1 -1
- package/es/storybook/StoryBook/index.mjs +3 -3
- package/es/style.css +0 -4
- package/es/styles/createGlobalStyle.d.mts +1 -1
- package/es/styles/createGlobalStyle.mjs +1 -1
- package/es/styles/css.d.mts +1 -1
- package/es/styles/css.mjs +1 -1
- package/es/styles/stylex/props.d.mts +2 -2
- package/es/styles/stylex/props.mjs +1 -1
- package/es/styles/theme/customNeutral.mjs +1 -1
- package/es/styles/theme/customPrimary.mjs +1 -1
- package/es/styles/theme/customToken.mjs +1 -1
- package/es/styles/theme/scope.d.mts +1 -1
- package/es/styles/theme/scope.mjs +2 -2
- package/es/types/index.d.mts +1 -1
- package/es/utils/hashString.mjs +8 -8
- package/package.json +6 -1
- package/es/node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.mjs +0 -289
- package/es/node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.mjs.map +0 -1
package/es/Markdown/Markdown.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useCallback } from "react";
|
|
2
4
|
import { useStableValue } from "../hooks/useStableValue.mjs";
|
|
3
5
|
import PreviewGroup from "../Image/PreviewGroup.mjs";
|
|
4
6
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
@@ -9,12 +11,10 @@ import { rootStyles, styles } from "./style.mjs";
|
|
|
9
11
|
import MarkdownRenderer from "./SyntaxMarkdown/MarkdownRender.mjs";
|
|
10
12
|
import { StreamdownRender } from "./SyntaxMarkdown/StreamdownRender.mjs";
|
|
11
13
|
import { TypographyImpl } from "./Typography.mjs";
|
|
12
|
-
import clsx$1 from "clsx";
|
|
13
|
-
import { memo, useCallback } from "react";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
// src/Markdown/Markdown.tsx
|
|
16
16
|
const Markdown = memo((props) => {
|
|
17
|
-
const { ref, children = "", className, style, fullFeaturedCodeBlock, onDoubleClick, animated, enableHtmlPreview = false, enableLatex = true, enableMermaid = true, enableImageGallery, enableCustomFootnotes, enableGithubAlert, enableStream = true, componentProps, rehypePluginsAhead, allowHtml, borderRadius, fontSize, headerMultiple, marginMultiple, variant = "default", reactMarkdownProps, lineHeight, rehypePlugins, remarkPlugins, remarkPluginsAhead, components = {}, customRender, showFootnotes = true, streamAnimationGranularity, streamSmoothingPreset, citations, ...rest } = props;
|
|
17
|
+
const { ref, children = "", className, style, fullFeaturedCodeBlock, onDoubleClick, animated, enableHtmlPreview = false, enableLatex = true, enableMermaid = true, enableImageGallery, enableCustomFootnotes, enableGithubAlert, enableParseCache = false, enableStream = true, componentProps, rehypePluginsAhead, allowHtml, borderRadius, fontSize, headerMultiple, marginMultiple, variant = "default", reactMarkdownProps, lineHeight, rehypePlugins, remarkPlugins, remarkPluginsAhead, components = {}, customRender, showFootnotes = true, streamAnimationGranularity, streamSmoothingPreset, citations, ...rest } = props;
|
|
18
18
|
const delayedAnimated = useDelayedAnimated(animated);
|
|
19
19
|
const stableComponentProps = useStableValue(componentProps);
|
|
20
20
|
const stableComponents = useStableValue(components);
|
|
@@ -52,6 +52,7 @@ const Markdown = memo((props) => {
|
|
|
52
52
|
enableHtmlPreview,
|
|
53
53
|
enableLatex,
|
|
54
54
|
enableMermaid,
|
|
55
|
+
enableParseCache,
|
|
55
56
|
fullFeaturedCodeBlock,
|
|
56
57
|
rehypePlugins,
|
|
57
58
|
rehypePluginsAhead,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.mjs","names":["MarkdownRender","clsx"],"sources":["../../src/Markdown/Markdown.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { memo, useCallback } from 'react';\n\nimport { useStableValue } from '@/hooks/useStableValue';\nimport { PreviewGroup } from '@/Image';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { MarkdownProvider } from './components/MarkdownProvider';\nimport { useDelayedAnimated } from './components/useDelayedAnimated';\nimport { markdownClasses } from './stable';\nimport { rootStyles, styles } from './style';\nimport { MarkdownRender, StreamdownRender } from './SyntaxMarkdown';\nimport { type MarkdownProps } from './type';\nimport { TypographyImpl } from './Typography';\n\nconst Markdown = memo<MarkdownProps>((props) => {\n const {\n ref,\n children = '',\n className,\n style,\n fullFeaturedCodeBlock,\n onDoubleClick,\n animated,\n enableHtmlPreview = false,\n enableLatex = true,\n enableMermaid = true,\n enableImageGallery,\n enableCustomFootnotes,\n enableGithubAlert,\n enableStream = true,\n componentProps,\n rehypePluginsAhead,\n allowHtml,\n borderRadius,\n fontSize,\n headerMultiple,\n marginMultiple,\n variant = 'default',\n reactMarkdownProps,\n lineHeight,\n rehypePlugins,\n remarkPlugins,\n remarkPluginsAhead,\n components = {},\n customRender,\n showFootnotes = true,\n streamAnimationGranularity,\n streamSmoothingPreset,\n citations,\n ...rest\n } = props;\n\n const delayedAnimated = useDelayedAnimated(animated);\n\n // Stabilise structural props so an inline `componentProps={{ html:\n // {...} }}` from the caller doesn't cascade through MarkdownProvider →\n // useMarkdownComponents → react-markdown's `components` and remount the\n // entire code-block subtree (including the HtmlPreview iframe) on\n // every parent render. The deep-equal compare treats inline literals\n // as the same object as long as their structure matches. Inline\n // callbacks (`actionsRender`, custom `components`) still need\n // `useCallback` at the call site — function bodies aren't compared.\n const stableComponentProps = useStableValue(componentProps);\n const stableComponents = useStableValue(components);\n\n const Render = useCallback(\n ({\n enableStream,\n children,\n reactMarkdownProps,\n }: Pick<MarkdownProps, 'children' | 'enableStream' | 'reactMarkdownProps'>) => {\n const DefaultRender = enableStream ? StreamdownRender : MarkdownRender;\n const defaultDOM = <DefaultRender {...reactMarkdownProps}>{children}</DefaultRender>;\n return customRender ? customRender(defaultDOM, { text: children }) : defaultDOM;\n },\n [customRender],\n );\n\n return (\n <PreviewGroup enable={enableImageGallery}>\n <TypographyImpl\n borderRadius={borderRadius}\n data-code-type=\"markdown\"\n fontSize={fontSize}\n headerMultiple={headerMultiple}\n lineHeight={lineHeight}\n marginMultiple={marginMultiple}\n ref={ref}\n style={style}\n xstyle={rootStyles.root}\n className={clsx(\n variant === 'chat' && styles.chat,\n enableLatex && styles.latex,\n styles.gfm,\n markdownClasses(),\n className,\n )}\n onDoubleClick={onDoubleClick}\n {...toDataAttributes({ variant })}\n {...rest}\n >\n <MarkdownProvider\n allowHtml={allowHtml}\n animated={delayedAnimated}\n citations={citations}\n componentProps={stableComponentProps}\n components={stableComponents}\n enableCustomFootnotes={enableCustomFootnotes}\n enableGithubAlert={enableGithubAlert}\n enableHtmlPreview={enableHtmlPreview}\n enableLatex={enableLatex}\n enableMermaid={enableMermaid}\n fullFeaturedCodeBlock={fullFeaturedCodeBlock}\n rehypePlugins={rehypePlugins}\n rehypePluginsAhead={rehypePluginsAhead}\n remarkPlugins={remarkPlugins}\n remarkPluginsAhead={remarkPluginsAhead}\n showFootnotes={showFootnotes}\n streamAnimationGranularity={streamAnimationGranularity}\n streamSmoothingPreset={streamSmoothingPreset}\n variant={variant}\n >\n <Render\n enableStream={enableStream && delayedAnimated}\n reactMarkdownProps={reactMarkdownProps}\n >\n {children}\n </Render>\n </MarkdownProvider>\n </TypographyImpl>\n </PreviewGroup>\n );\n});\n\nMarkdown.displayName = 'Markdown';\n\nexport default Markdown;\n"],"mappings":";;;;;;;;;;;;;;;AAiBA,MAAM,WAAW,MAAqB,UAAU;CAC9C,MAAM,EACJ,KACA,WAAW,IACX,WACA,OACA,uBACA,eACA,UACA,oBAAoB,OACpB,cAAc,MACd,gBAAgB,MAChB,oBACA,uBACA,mBACA,eAAe,MACf,gBACA,oBACA,WACA,cACA,UACA,gBACA,gBACA,UAAU,WACV,oBACA,YACA,eACA,eACA,oBACA,aAAa,CAAC,GACd,cACA,gBAAgB,MAChB,4BACA,uBACA,WACA,GAAG,SACD;CAEJ,MAAM,kBAAkB,mBAAmB,QAAQ;CAUnD,MAAM,uBAAuB,eAAe,cAAc;CAC1D,MAAM,mBAAmB,eAAe,UAAU;CAElD,MAAM,SAAS,aACZ,EACC,cACA,UACA,yBAC6E;EAE7E,MAAM,aAAa,oBADG,eAAe,mBAAmBA,kBACrC;GAAe,GAAI;GAAqB;EAAwB,CAAA;EACnF,OAAO,eAAe,aAAa,YAAY,EAAE,MAAM,SAAS,CAAC,IAAI;CACvE,GACA,CAAC,YAAY,CACf;CAEA,OACE,oBAAC,cAAD;EAAc,QAAQ;EACpB,UAAA,oBAAC,gBAAD;GACgB;GACd,kBAAe;GACL;GACM;GACJ;GACI;GACX;GACE;GACP,QAAQ,WAAW;GACnB,WAAWC,OACT,YAAY,UAAU,OAAO,MAC7B,eAAe,OAAO,OACtB,OAAO,KACP,gBAAgB,GAChB,SACF;GACe;GACf,GAAI,iBAAiB,EAAE,QAAQ,CAAC;GAChC,GAAI;GAEJ,UAAA,oBAAC,kBAAD;IACa;IACX,UAAU;IACC;IACX,gBAAgB;IAChB,YAAY;IACW;IACJ;IACA;IACN;IACE;
|
|
1
|
+
{"version":3,"file":"Markdown.mjs","names":["MarkdownRender","clsx"],"sources":["../../src/Markdown/Markdown.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { memo, useCallback } from 'react';\n\nimport { useStableValue } from '@/hooks/useStableValue';\nimport { PreviewGroup } from '@/Image';\nimport { toDataAttributes } from '@/utils/bem';\n\nimport { MarkdownProvider } from './components/MarkdownProvider';\nimport { useDelayedAnimated } from './components/useDelayedAnimated';\nimport { markdownClasses } from './stable';\nimport { rootStyles, styles } from './style';\nimport { MarkdownRender, StreamdownRender } from './SyntaxMarkdown';\nimport { type MarkdownProps } from './type';\nimport { TypographyImpl } from './Typography';\n\nconst Markdown = memo<MarkdownProps>((props) => {\n const {\n ref,\n children = '',\n className,\n style,\n fullFeaturedCodeBlock,\n onDoubleClick,\n animated,\n enableHtmlPreview = false,\n enableLatex = true,\n enableMermaid = true,\n enableImageGallery,\n enableCustomFootnotes,\n enableGithubAlert,\n enableParseCache = false,\n enableStream = true,\n componentProps,\n rehypePluginsAhead,\n allowHtml,\n borderRadius,\n fontSize,\n headerMultiple,\n marginMultiple,\n variant = 'default',\n reactMarkdownProps,\n lineHeight,\n rehypePlugins,\n remarkPlugins,\n remarkPluginsAhead,\n components = {},\n customRender,\n showFootnotes = true,\n streamAnimationGranularity,\n streamSmoothingPreset,\n citations,\n ...rest\n } = props;\n\n const delayedAnimated = useDelayedAnimated(animated);\n\n // Stabilise structural props so an inline `componentProps={{ html:\n // {...} }}` from the caller doesn't cascade through MarkdownProvider →\n // useMarkdownComponents → react-markdown's `components` and remount the\n // entire code-block subtree (including the HtmlPreview iframe) on\n // every parent render. The deep-equal compare treats inline literals\n // as the same object as long as their structure matches. Inline\n // callbacks (`actionsRender`, custom `components`) still need\n // `useCallback` at the call site — function bodies aren't compared.\n const stableComponentProps = useStableValue(componentProps);\n const stableComponents = useStableValue(components);\n\n const Render = useCallback(\n ({\n enableStream,\n children,\n reactMarkdownProps,\n }: Pick<MarkdownProps, 'children' | 'enableStream' | 'reactMarkdownProps'>) => {\n const DefaultRender = enableStream ? StreamdownRender : MarkdownRender;\n const defaultDOM = <DefaultRender {...reactMarkdownProps}>{children}</DefaultRender>;\n return customRender ? customRender(defaultDOM, { text: children }) : defaultDOM;\n },\n [customRender],\n );\n\n return (\n <PreviewGroup enable={enableImageGallery}>\n <TypographyImpl\n borderRadius={borderRadius}\n data-code-type=\"markdown\"\n fontSize={fontSize}\n headerMultiple={headerMultiple}\n lineHeight={lineHeight}\n marginMultiple={marginMultiple}\n ref={ref}\n style={style}\n xstyle={rootStyles.root}\n className={clsx(\n variant === 'chat' && styles.chat,\n enableLatex && styles.latex,\n styles.gfm,\n markdownClasses(),\n className,\n )}\n onDoubleClick={onDoubleClick}\n {...toDataAttributes({ variant })}\n {...rest}\n >\n <MarkdownProvider\n allowHtml={allowHtml}\n animated={delayedAnimated}\n citations={citations}\n componentProps={stableComponentProps}\n components={stableComponents}\n enableCustomFootnotes={enableCustomFootnotes}\n enableGithubAlert={enableGithubAlert}\n enableHtmlPreview={enableHtmlPreview}\n enableLatex={enableLatex}\n enableMermaid={enableMermaid}\n enableParseCache={enableParseCache}\n fullFeaturedCodeBlock={fullFeaturedCodeBlock}\n rehypePlugins={rehypePlugins}\n rehypePluginsAhead={rehypePluginsAhead}\n remarkPlugins={remarkPlugins}\n remarkPluginsAhead={remarkPluginsAhead}\n showFootnotes={showFootnotes}\n streamAnimationGranularity={streamAnimationGranularity}\n streamSmoothingPreset={streamSmoothingPreset}\n variant={variant}\n >\n <Render\n enableStream={enableStream && delayedAnimated}\n reactMarkdownProps={reactMarkdownProps}\n >\n {children}\n </Render>\n </MarkdownProvider>\n </TypographyImpl>\n </PreviewGroup>\n );\n});\n\nMarkdown.displayName = 'Markdown';\n\nexport default Markdown;\n"],"mappings":";;;;;;;;;;;;;;;AAiBA,MAAM,WAAW,MAAqB,UAAU;CAC9C,MAAM,EACJ,KACA,WAAW,IACX,WACA,OACA,uBACA,eACA,UACA,oBAAoB,OACpB,cAAc,MACd,gBAAgB,MAChB,oBACA,uBACA,mBACA,mBAAmB,OACnB,eAAe,MACf,gBACA,oBACA,WACA,cACA,UACA,gBACA,gBACA,UAAU,WACV,oBACA,YACA,eACA,eACA,oBACA,aAAa,CAAC,GACd,cACA,gBAAgB,MAChB,4BACA,uBACA,WACA,GAAG,SACD;CAEJ,MAAM,kBAAkB,mBAAmB,QAAQ;CAUnD,MAAM,uBAAuB,eAAe,cAAc;CAC1D,MAAM,mBAAmB,eAAe,UAAU;CAElD,MAAM,SAAS,aACZ,EACC,cACA,UACA,yBAC6E;EAE7E,MAAM,aAAa,oBADG,eAAe,mBAAmBA,kBACrC;GAAe,GAAI;GAAqB;EAAwB,CAAA;EACnF,OAAO,eAAe,aAAa,YAAY,EAAE,MAAM,SAAS,CAAC,IAAI;CACvE,GACA,CAAC,YAAY,CACf;CAEA,OACE,oBAAC,cAAD;EAAc,QAAQ;EACpB,UAAA,oBAAC,gBAAD;GACgB;GACd,kBAAe;GACL;GACM;GACJ;GACI;GACX;GACE;GACP,QAAQ,WAAW;GACnB,WAAWC,OACT,YAAY,UAAU,OAAO,MAC7B,eAAe,OAAO,OACtB,OAAO,KACP,gBAAgB,GAChB,SACF;GACe;GACf,GAAI,iBAAiB,EAAE,QAAQ,CAAC;GAChC,GAAI;GAEJ,UAAA,oBAAC,kBAAD;IACa;IACX,UAAU;IACC;IACX,gBAAgB;IAChB,YAAY;IACW;IACJ;IACA;IACN;IACE;IACG;IACK;IACR;IACK;IACL;IACK;IACL;IACa;IACL;IACd;IAET,UAAA,oBAAC,QAAD;KACE,cAAc,gBAAgB;KACV;KAEnB;IACK,CAAA;GACQ,CAAA;EACJ,CAAA;CACJ,CAAA;AAElB,CAAC;AAED,SAAS,cAAc"}
|
|
@@ -1,17 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { toJsxRuntime } from "hast-util-to-jsx-runtime";
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import Markdown from "react-markdown";
|
|
2
6
|
import { useMarkdownComponents } from "../../hooks/useMarkdown/useMarkdownComponents.mjs";
|
|
3
7
|
import { useMarkdownContent } from "../../hooks/useMarkdown/useMarkdownContent.mjs";
|
|
4
8
|
import { useMarkdownRehypePlugins } from "../../hooks/useMarkdown/useMarkdownRehypePlugins.mjs";
|
|
5
9
|
import { useMarkdownRemarkPlugins } from "../../hooks/useMarkdown/useMarkdownRemarkPlugins.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import Markdown from "react-markdown";
|
|
10
|
+
import { useMarkdownContext } from "../components/MarkdownProvider.mjs";
|
|
11
|
+
import { canUseParseCache, getParsedHast, getPipelineKey } from "./parseCache.mjs";
|
|
9
12
|
// src/Markdown/SyntaxMarkdown/MarkdownRender.tsx
|
|
10
13
|
const MarkdownRenderer = memo(({ children, ...rest }) => {
|
|
11
|
-
const escapedContent = useMarkdownContent(children || "");
|
|
14
|
+
const escapedContent = useMarkdownContent(children || "") ?? "";
|
|
12
15
|
const components = useMarkdownComponents();
|
|
13
16
|
const rehypePluginsList = useMarkdownRehypePlugins();
|
|
14
17
|
const remarkPluginsList = useMarkdownRemarkPlugins();
|
|
18
|
+
const { enableParseCache } = useMarkdownContext();
|
|
19
|
+
const cacheable = !!enableParseCache && canUseParseCache(rest);
|
|
20
|
+
const { remarkRehypeOptions } = rest;
|
|
21
|
+
const pipeline = useMemo(() => ({
|
|
22
|
+
rehypePlugins: rehypePluginsList,
|
|
23
|
+
remarkPlugins: remarkPluginsList,
|
|
24
|
+
remarkRehypeOptions
|
|
25
|
+
}), [
|
|
26
|
+
rehypePluginsList,
|
|
27
|
+
remarkPluginsList,
|
|
28
|
+
remarkRehypeOptions
|
|
29
|
+
]);
|
|
30
|
+
const pipelineKey = useMemo(() => getPipelineKey(pipeline), [pipeline]);
|
|
31
|
+
const tree = useMemo(() => cacheable ? getParsedHast(escapedContent, pipeline, pipelineKey) : void 0, [
|
|
32
|
+
cacheable,
|
|
33
|
+
escapedContent,
|
|
34
|
+
pipeline,
|
|
35
|
+
pipelineKey
|
|
36
|
+
]);
|
|
37
|
+
const element = useMemo(() => tree && toJsxRuntime(tree, {
|
|
38
|
+
Fragment: Fragment$1,
|
|
39
|
+
components,
|
|
40
|
+
ignoreInvalidStyle: true,
|
|
41
|
+
jsx,
|
|
42
|
+
jsxs,
|
|
43
|
+
passKeys: true,
|
|
44
|
+
passNode: true
|
|
45
|
+
}), [tree, components]);
|
|
46
|
+
if (element) return element;
|
|
15
47
|
return /* @__PURE__ */ jsx(Markdown, {
|
|
16
48
|
...rest,
|
|
17
49
|
components,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRender.mjs","names":[],"sources":["../../../src/Markdown/SyntaxMarkdown/MarkdownRender.tsx"],"sourcesContent":["'use client';\n\nimport { memo, type NamedExoticComponent } from 'react';\nimport Markdown, { type Options } from 'react-markdown';\n\nimport {\n useMarkdownComponents,\n useMarkdownContent,\n useMarkdownRehypePlugins,\n useMarkdownRemarkPlugins,\n} from '@/hooks/useMarkdown';\n\nconst MarkdownRenderer: NamedExoticComponent<Options> = memo<Options>(\n ({ children, ...rest }) => {\n const escapedContent = useMarkdownContent(children || '');\n const components = useMarkdownComponents();\n const rehypePluginsList = useMarkdownRehypePlugins();\n const remarkPluginsList = useMarkdownRemarkPlugins();\n\n return (\n <Markdown\n {...rest}\n components={components}\n rehypePlugins={rehypePluginsList}\n remarkPlugins={remarkPluginsList}\n >\n {escapedContent}\n </Markdown>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nexport default MarkdownRenderer;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownRender.mjs","names":["Fragment"],"sources":["../../../src/Markdown/SyntaxMarkdown/MarkdownRender.tsx"],"sourcesContent":["'use client';\n\nimport { toJsxRuntime } from 'hast-util-to-jsx-runtime';\nimport { memo, type NamedExoticComponent, useMemo } from 'react';\nimport { Fragment, jsx, jsxs } from 'react/jsx-runtime';\nimport Markdown, { type Options } from 'react-markdown';\n\nimport {\n useMarkdownComponents,\n useMarkdownContent,\n useMarkdownRehypePlugins,\n useMarkdownRemarkPlugins,\n} from '@/hooks/useMarkdown';\n\nimport { useMarkdownContext } from '../components/MarkdownProvider';\nimport { canUseParseCache, getParsedHast, getPipelineKey } from './parseCache';\n\nconst MarkdownRenderer: NamedExoticComponent<Options> = memo<Options>(\n ({ children, ...rest }) => {\n const escapedContent = useMarkdownContent(children || '') ?? '';\n const components = useMarkdownComponents();\n const rehypePluginsList = useMarkdownRehypePlugins();\n const remarkPluginsList = useMarkdownRemarkPlugins();\n\n const { enableParseCache } = useMarkdownContext();\n const cacheable = !!enableParseCache && canUseParseCache(rest);\n const { remarkRehypeOptions } = rest;\n\n const pipeline = useMemo(\n () => ({\n rehypePlugins: rehypePluginsList,\n remarkPlugins: remarkPluginsList,\n remarkRehypeOptions,\n }),\n [rehypePluginsList, remarkPluginsList, remarkRehypeOptions],\n );\n const pipelineKey = useMemo(() => getPipelineKey(pipeline), [pipeline]);\n\n // Remounts (e.g. switching conversations) reuse the parsed hast from the\n // module-level cache and only run hast → JSX with this instance's\n // `components`; see `parseCache.ts` for the cache key.\n const tree = useMemo(\n () => (cacheable ? getParsedHast(escapedContent, pipeline, pipelineKey) : undefined),\n [cacheable, escapedContent, pipeline, pipelineKey],\n );\n\n const element = useMemo(\n () =>\n tree &&\n toJsxRuntime(tree, {\n Fragment,\n components,\n ignoreInvalidStyle: true,\n jsx,\n jsxs,\n passKeys: true,\n passNode: true,\n }),\n [tree, components],\n );\n\n if (element) return element;\n\n return (\n <Markdown\n {...rest}\n components={components}\n rehypePlugins={rehypePluginsList}\n remarkPlugins={remarkPluginsList}\n >\n {escapedContent}\n </Markdown>\n );\n },\n (prevProps, nextProps) => prevProps.children === nextProps.children,\n);\n\nexport default MarkdownRenderer;\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAM,mBAAkD,MACrD,EAAE,UAAU,GAAG,WAAW;CACzB,MAAM,iBAAiB,mBAAmB,YAAY,EAAE,KAAK;CAC7D,MAAM,aAAa,sBAAsB;CACzC,MAAM,oBAAoB,yBAAyB;CACnD,MAAM,oBAAoB,yBAAyB;CAEnD,MAAM,EAAE,qBAAqB,mBAAmB;CAChD,MAAM,YAAY,CAAC,CAAC,oBAAoB,iBAAiB,IAAI;CAC7D,MAAM,EAAE,wBAAwB;CAEhC,MAAM,WAAW,eACR;EACL,eAAe;EACf,eAAe;EACf;CACF,IACA;EAAC;EAAmB;EAAmB;CAAmB,CAC5D;CACA,MAAM,cAAc,cAAc,eAAe,QAAQ,GAAG,CAAC,QAAQ,CAAC;CAKtE,MAAM,OAAO,cACJ,YAAY,cAAc,gBAAgB,UAAU,WAAW,IAAI,KAAA,GAC1E;EAAC;EAAW;EAAgB;EAAU;CAAW,CACnD;CAEA,MAAM,UAAU,cAEZ,QACA,aAAa,MAAM;EACjBA,UAAAA;EACA;EACA,oBAAoB;EACpB;EACA;EACA,UAAU;EACV,UAAU;CACZ,CAAC,GACH,CAAC,MAAM,UAAU,CACnB;CAEA,IAAI,SAAS,OAAO;CAEpB,OACE,oBAAC,UAAD;EACE,GAAI;EACQ;EACZ,eAAe;EACf,eAAe;EAEd,UAAA;CACO,CAAA;AAEd,IACC,WAAW,cAAc,UAAU,aAAa,UAAU,QAC7D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Streamdown } from "@lobehub/streamdown";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import { useMarkdownComponents } from "../../hooks/useMarkdown/useMarkdownComponents.mjs";
|
|
3
5
|
import { useMarkdownContent } from "../../hooks/useMarkdown/useMarkdownContent.mjs";
|
|
4
6
|
import { useMarkdownRehypePlugins } from "../../hooks/useMarkdown/useMarkdownRehypePlugins.mjs";
|
|
5
7
|
import { useMarkdownRemarkPlugins } from "../../hooks/useMarkdown/useMarkdownRemarkPlugins.mjs";
|
|
6
8
|
import { useMarkdownContext } from "../components/MarkdownProvider.mjs";
|
|
7
|
-
import { memo } from "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Streamdown } from "@lobehub/streamdown";
|
|
10
10
|
// src/Markdown/SyntaxMarkdown/StreamdownRender.tsx
|
|
11
11
|
const StreamdownRender = memo(({ children, ...rest }) => {
|
|
12
12
|
const { enableLatex = true, streamAnimationGranularity = "char", streamSmoothingPreset = "balanced" } = useMarkdownContext();
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { urlAttributes } from "html-url-attributes";
|
|
2
|
+
import { defaultUrlTransform } from "react-markdown";
|
|
3
|
+
import remarkParse from "remark-parse";
|
|
4
|
+
import remarkRehype from "remark-rehype";
|
|
5
|
+
import { unified } from "unified";
|
|
6
|
+
import { visit } from "unist-util-visit";
|
|
7
|
+
import { VFile } from "vfile";
|
|
8
|
+
// src/Markdown/SyntaxMarkdown/parseCache.ts
|
|
9
|
+
/**
|
|
10
|
+
* Upper bound of cached hast trees, evicted least-recently-used first like the
|
|
11
|
+
* `contentCache` in `hooks/useMarkdown/utils.ts`. It is larger than that cache
|
|
12
|
+
* (50) because one entry is one message: switching back and forth between two
|
|
13
|
+
* or three ~30-message conversations should still hit, while the bound keeps
|
|
14
|
+
* memory flat in long sessions.
|
|
15
|
+
*/
|
|
16
|
+
const PARSE_CACHE_SIZE = 100;
|
|
17
|
+
/**
|
|
18
|
+
* Module-level LRU of parsed hast trees, keyed by `<plugin key>\u0000<content>`.
|
|
19
|
+
*
|
|
20
|
+
* Why hast and not React elements: the hast tree only depends on the content
|
|
21
|
+
* and the remark/rehype pipeline, while the React elements also bake in the
|
|
22
|
+
* `components` map of the rendering instance (custom renderers, citations,
|
|
23
|
+
* `componentProps`, ...). Caching hast lets every mount reuse the expensive
|
|
24
|
+
* remark → rehype work and still run the cheap hast → JSX step with its own
|
|
25
|
+
* `components`, so component overrides are never served stale.
|
|
26
|
+
*/
|
|
27
|
+
const parseCache = /* @__PURE__ */ new Map();
|
|
28
|
+
/**
|
|
29
|
+
* `react-markdown` options that change how the hast tree is post-processed
|
|
30
|
+
* before it becomes JSX. They are rarely used and may carry per-instance
|
|
31
|
+
* callbacks, so the cache is bypassed whenever any of them is set and the
|
|
32
|
+
* stock `react-markdown` path renders instead.
|
|
33
|
+
*/
|
|
34
|
+
const POST_PROCESS_OPTIONS = [
|
|
35
|
+
"allowElement",
|
|
36
|
+
"allowedElements",
|
|
37
|
+
"disallowedElements",
|
|
38
|
+
"skipHtml",
|
|
39
|
+
"unwrapDisallowed",
|
|
40
|
+
"urlTransform"
|
|
41
|
+
];
|
|
42
|
+
const canUseParseCache = (options) => POST_PROCESS_OPTIONS.every((key) => options[key] === void 0);
|
|
43
|
+
let nextIdentityId = 0;
|
|
44
|
+
const identityIds = /* @__PURE__ */ new WeakMap();
|
|
45
|
+
const getIdentityId = (value) => {
|
|
46
|
+
let id = identityIds.get(value);
|
|
47
|
+
if (id === void 0) {
|
|
48
|
+
id = ++nextIdentityId;
|
|
49
|
+
identityIds.set(value, id);
|
|
50
|
+
}
|
|
51
|
+
return id;
|
|
52
|
+
};
|
|
53
|
+
const isPlainObject = (value) => {
|
|
54
|
+
const proto = Object.getPrototypeOf(value);
|
|
55
|
+
return proto === Object.prototype || proto === null;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Serializes a plugin list (or plugin options) into a string that is stable
|
|
59
|
+
* across component instances:
|
|
60
|
+
* - functions (plugins, presets, callbacks inside options) and non-plain
|
|
61
|
+
* objects are keyed by identity, so two different plugins never collide;
|
|
62
|
+
* - arrays and plain objects are serialized structurally, so the
|
|
63
|
+
* `[remarkGfm, { singleTilde: false }]` tuples rebuilt by each instance's
|
|
64
|
+
* `useMemo` still map to the same key.
|
|
65
|
+
*
|
|
66
|
+
* The keys deliberately avoid the plugin array references themselves: every
|
|
67
|
+
* `Markdown` instance memoizes its own arrays, so keying on them would miss on
|
|
68
|
+
* every remount. Because the effective plugin list is derived from
|
|
69
|
+
* `enableLatex`, `enableCustomFootnotes`, `enableGithubAlert`, `allowHtml`,
|
|
70
|
+
* `variant` and the user-supplied plugins, serializing that list covers all
|
|
71
|
+
* of those settings without enumerating them here.
|
|
72
|
+
*
|
|
73
|
+
* Assumption: a plugin with the same identity and options is a pure function
|
|
74
|
+
* of its input. A plugin that reads external mutable state must be recreated
|
|
75
|
+
* (new function identity) when that state changes, which is also what
|
|
76
|
+
* `react-markdown` needs to re-render it.
|
|
77
|
+
*/
|
|
78
|
+
const serialize = (value) => {
|
|
79
|
+
if (value === null || value === void 0) return String(value);
|
|
80
|
+
switch (typeof value) {
|
|
81
|
+
case "function": return `f${getIdentityId(value)}`;
|
|
82
|
+
case "object":
|
|
83
|
+
if (Array.isArray(value)) return `[${value.map(serialize).join(",")}]`;
|
|
84
|
+
if (!isPlainObject(value)) return `o${getIdentityId(value)}`;
|
|
85
|
+
return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serialize(value[key])}`).join(",")}}`;
|
|
86
|
+
case "string": return JSON.stringify(value);
|
|
87
|
+
default: return `${typeof value}:${String(value)}`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
/** Stable key of the remark → rehype pipeline; part of the parse cache key. */
|
|
91
|
+
const getPipelineKey = ({ rehypePlugins, remarkPlugins, remarkRehypeOptions }) => `${serialize(remarkPlugins ?? [])}|${serialize(rehypePlugins ?? [])}|${serialize(remarkRehypeOptions ?? null)}`;
|
|
92
|
+
/**
|
|
93
|
+
* Mirrors the default (no post-process options) `post` transform of
|
|
94
|
+
* react-markdown 10: raw HTML nodes left by the pipeline become text, and URL
|
|
95
|
+
* attributes go through `defaultUrlTransform`. Both steps are idempotent, so
|
|
96
|
+
* the transformed tree can be cached and rendered any number of times.
|
|
97
|
+
*
|
|
98
|
+
* @see https://github.com/remarkjs/react-markdown/blob/main/lib/index.js
|
|
99
|
+
*/
|
|
100
|
+
const applyDefaultPostTransform = (tree) => {
|
|
101
|
+
visit(tree, (node, index, parent) => {
|
|
102
|
+
if (node.type === "raw" && parent && typeof index === "number") {
|
|
103
|
+
parent.children[index] = {
|
|
104
|
+
type: "text",
|
|
105
|
+
value: node.value
|
|
106
|
+
};
|
|
107
|
+
return index;
|
|
108
|
+
}
|
|
109
|
+
if (node.type === "element") {
|
|
110
|
+
for (const key in urlAttributes) if (Object.hasOwn(urlAttributes, key) && Object.hasOwn(node.properties, key)) {
|
|
111
|
+
const test = urlAttributes[key];
|
|
112
|
+
if (test === null || test.includes(node.tagName)) node.properties[key] = defaultUrlTransform(String(node.properties[key] || ""));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/** Same pipeline as react-markdown's `createProcessor`. */
|
|
118
|
+
const parseMarkdown = (content, pipeline) => {
|
|
119
|
+
const processor = unified().use(remarkParse).use(pipeline.remarkPlugins ?? []).use(remarkRehype, {
|
|
120
|
+
...pipeline.remarkRehypeOptions,
|
|
121
|
+
allowDangerousHtml: true
|
|
122
|
+
}).use(pipeline.rehypePlugins ?? []);
|
|
123
|
+
const file = new VFile();
|
|
124
|
+
file.value = content;
|
|
125
|
+
const tree = processor.runSync(processor.parse(file), file);
|
|
126
|
+
applyDefaultPostTransform(tree);
|
|
127
|
+
return tree;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Returns the parsed, post-transformed hast tree for `content`, reusing a
|
|
131
|
+
* cached tree when the same content was parsed with an equivalent pipeline.
|
|
132
|
+
*
|
|
133
|
+
* The returned tree is shared between mounts and must be treated as
|
|
134
|
+
* read-only by the caller and by markdown components receiving `node`.
|
|
135
|
+
*/
|
|
136
|
+
const getParsedHast = (content, pipeline, pipelineKey) => {
|
|
137
|
+
const key = `${pipelineKey}\u0000${content}`;
|
|
138
|
+
const cached = parseCache.get(key);
|
|
139
|
+
if (cached) {
|
|
140
|
+
parseCache.delete(key);
|
|
141
|
+
parseCache.set(key, cached);
|
|
142
|
+
return cached;
|
|
143
|
+
}
|
|
144
|
+
const tree = parseMarkdown(content, pipeline);
|
|
145
|
+
if (parseCache.size >= PARSE_CACHE_SIZE) {
|
|
146
|
+
const oldestKey = parseCache.keys().next().value;
|
|
147
|
+
if (oldestKey !== void 0) parseCache.delete(oldestKey);
|
|
148
|
+
}
|
|
149
|
+
parseCache.set(key, tree);
|
|
150
|
+
return tree;
|
|
151
|
+
};
|
|
152
|
+
export { canUseParseCache, getParsedHast, getPipelineKey };
|
|
153
|
+
|
|
154
|
+
//# sourceMappingURL=parseCache.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseCache.mjs","names":[],"sources":["../../../src/Markdown/SyntaxMarkdown/parseCache.ts"],"sourcesContent":["import type { Root } from 'hast';\nimport { urlAttributes } from 'html-url-attributes';\nimport { defaultUrlTransform, type Options } from 'react-markdown';\nimport remarkParse from 'remark-parse';\nimport remarkRehype from 'remark-rehype';\nimport { type PluggableList, unified } from 'unified';\nimport { visit } from 'unist-util-visit';\nimport { VFile } from 'vfile';\n\n/**\n * Upper bound of cached hast trees, evicted least-recently-used first like the\n * `contentCache` in `hooks/useMarkdown/utils.ts`. It is larger than that cache\n * (50) because one entry is one message: switching back and forth between two\n * or three ~30-message conversations should still hit, while the bound keeps\n * memory flat in long sessions.\n */\nconst PARSE_CACHE_SIZE = 100;\n\n/**\n * Module-level LRU of parsed hast trees, keyed by `<plugin key>\\u0000<content>`.\n *\n * Why hast and not React elements: the hast tree only depends on the content\n * and the remark/rehype pipeline, while the React elements also bake in the\n * `components` map of the rendering instance (custom renderers, citations,\n * `componentProps`, ...). Caching hast lets every mount reuse the expensive\n * remark → rehype work and still run the cheap hast → JSX step with its own\n * `components`, so component overrides are never served stale.\n */\nconst parseCache = new Map<string, Root>();\n\n/**\n * `react-markdown` options that change how the hast tree is post-processed\n * before it becomes JSX. They are rarely used and may carry per-instance\n * callbacks, so the cache is bypassed whenever any of them is set and the\n * stock `react-markdown` path renders instead.\n */\nconst POST_PROCESS_OPTIONS = [\n 'allowElement',\n 'allowedElements',\n 'disallowedElements',\n 'skipHtml',\n 'unwrapDisallowed',\n 'urlTransform',\n] as const satisfies readonly (keyof Options)[];\n\nexport const canUseParseCache = (options: Options): boolean =>\n POST_PROCESS_OPTIONS.every((key) => options[key] === undefined);\n\nlet nextIdentityId = 0;\nconst identityIds = new WeakMap<object, number>();\n\nconst getIdentityId = (value: object): number => {\n let id = identityIds.get(value);\n if (id === undefined) {\n id = ++nextIdentityId;\n identityIds.set(value, id);\n }\n return id;\n};\n\nconst isPlainObject = (value: object): boolean => {\n const proto = Object.getPrototypeOf(value);\n return proto === Object.prototype || proto === null;\n};\n\n/**\n * Serializes a plugin list (or plugin options) into a string that is stable\n * across component instances:\n * - functions (plugins, presets, callbacks inside options) and non-plain\n * objects are keyed by identity, so two different plugins never collide;\n * - arrays and plain objects are serialized structurally, so the\n * `[remarkGfm, { singleTilde: false }]` tuples rebuilt by each instance's\n * `useMemo` still map to the same key.\n *\n * The keys deliberately avoid the plugin array references themselves: every\n * `Markdown` instance memoizes its own arrays, so keying on them would miss on\n * every remount. Because the effective plugin list is derived from\n * `enableLatex`, `enableCustomFootnotes`, `enableGithubAlert`, `allowHtml`,\n * `variant` and the user-supplied plugins, serializing that list covers all\n * of those settings without enumerating them here.\n *\n * Assumption: a plugin with the same identity and options is a pure function\n * of its input. A plugin that reads external mutable state must be recreated\n * (new function identity) when that state changes, which is also what\n * `react-markdown` needs to re-render it.\n */\nconst serialize = (value: unknown): string => {\n if (value === null || value === undefined) return String(value);\n switch (typeof value) {\n case 'function': {\n return `f${getIdentityId(value)}`;\n }\n case 'object': {\n if (Array.isArray(value)) return `[${value.map(serialize).join(',')}]`;\n if (!isPlainObject(value)) return `o${getIdentityId(value)}`;\n const entries = Object.keys(value)\n .sort()\n .map((key) => `${JSON.stringify(key)}:${serialize((value as any)[key])}`);\n return `{${entries.join(',')}}`;\n }\n case 'string': {\n return JSON.stringify(value);\n }\n default: {\n return `${typeof value}:${String(value)}`;\n }\n }\n};\n\nexport interface ParsePipeline {\n rehypePlugins?: PluggableList;\n remarkPlugins?: PluggableList;\n remarkRehypeOptions?: Options['remarkRehypeOptions'];\n}\n\n/** Stable key of the remark → rehype pipeline; part of the parse cache key. */\nexport const getPipelineKey = ({\n rehypePlugins,\n remarkPlugins,\n remarkRehypeOptions,\n}: ParsePipeline): string =>\n `${serialize(remarkPlugins ?? [])}|${serialize(rehypePlugins ?? [])}|${serialize(remarkRehypeOptions ?? null)}`;\n\n/**\n * Mirrors the default (no post-process options) `post` transform of\n * react-markdown 10: raw HTML nodes left by the pipeline become text, and URL\n * attributes go through `defaultUrlTransform`. Both steps are idempotent, so\n * the transformed tree can be cached and rendered any number of times.\n *\n * @see https://github.com/remarkjs/react-markdown/blob/main/lib/index.js\n */\nconst applyDefaultPostTransform = (tree: Root) => {\n visit(tree, (node, index, parent) => {\n if (node.type === 'raw' && parent && typeof index === 'number') {\n parent.children[index] = { type: 'text', value: node.value };\n return index;\n }\n\n if (node.type === 'element') {\n for (const key in urlAttributes) {\n if (Object.hasOwn(urlAttributes, key) && Object.hasOwn(node.properties, key)) {\n const test = urlAttributes[key];\n if (test === null || test.includes(node.tagName)) {\n node.properties[key] = defaultUrlTransform(String(node.properties[key] || ''));\n }\n }\n }\n }\n });\n};\n\n/** Same pipeline as react-markdown's `createProcessor`. */\nconst parseMarkdown = (content: string, pipeline: ParsePipeline): Root => {\n const processor = unified()\n .use(remarkParse)\n .use(pipeline.remarkPlugins ?? [])\n .use(remarkRehype, { ...pipeline.remarkRehypeOptions, allowDangerousHtml: true })\n .use(pipeline.rehypePlugins ?? []);\n\n const file = new VFile();\n file.value = content;\n\n const tree = processor.runSync(processor.parse(file), file) as Root;\n applyDefaultPostTransform(tree);\n return tree;\n};\n\n/**\n * Returns the parsed, post-transformed hast tree for `content`, reusing a\n * cached tree when the same content was parsed with an equivalent pipeline.\n *\n * The returned tree is shared between mounts and must be treated as\n * read-only by the caller and by markdown components receiving `node`.\n */\nexport const getParsedHast = (content: string, pipeline: ParsePipeline, pipelineKey: string) => {\n const key = `${pipelineKey}\\u0000${content}`;\n\n const cached = parseCache.get(key);\n if (cached) {\n // Refresh recency so frequently revisited messages stay cached.\n parseCache.delete(key);\n parseCache.set(key, cached);\n return cached;\n }\n\n const tree = parseMarkdown(content, pipeline);\n\n if (parseCache.size >= PARSE_CACHE_SIZE) {\n const oldestKey = parseCache.keys().next().value;\n if (oldestKey !== undefined) parseCache.delete(oldestKey);\n }\n parseCache.set(key, tree);\n\n return tree;\n};\n\n/** Test helper: drops every cached tree. */\nexport const clearParseCache = () => parseCache.clear();\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAM,mBAAmB;;;;;;;;;;;AAYzB,MAAM,6BAAa,IAAI,IAAkB;;;;;;;AAQzC,MAAM,uBAAuB;CAC3B;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,oBAAoB,YAC/B,qBAAqB,OAAO,QAAQ,QAAQ,SAAS,KAAA,CAAS;AAEhE,IAAI,iBAAiB;AACrB,MAAM,8BAAc,IAAI,QAAwB;AAEhD,MAAM,iBAAiB,UAA0B;CAC/C,IAAI,KAAK,YAAY,IAAI,KAAK;CAC9B,IAAI,OAAO,KAAA,GAAW;EACpB,KAAK,EAAE;EACP,YAAY,IAAI,OAAO,EAAE;CAC3B;CACA,OAAO;AACT;AAEA,MAAM,iBAAiB,UAA2B;CAChD,MAAM,QAAQ,OAAO,eAAe,KAAK;CACzC,OAAO,UAAU,OAAO,aAAa,UAAU;AACjD;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,aAAa,UAA2B;CAC5C,IAAI,UAAU,QAAQ,UAAU,KAAA,GAAW,OAAO,OAAO,KAAK;CAC9D,QAAQ,OAAO,OAAf;EACE,KAAK,YACH,OAAO,IAAI,cAAc,KAAK;EAEhC,KAAK;GACH,IAAI,MAAM,QAAQ,KAAK,GAAG,OAAO,IAAI,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,GAAG,EAAE;GACpE,IAAI,CAAC,cAAc,KAAK,GAAG,OAAO,IAAI,cAAc,KAAK;GAIzD,OAAO,IAHS,OAAO,KAAK,KAAK,CAAC,CAC/B,KAAK,CAAC,CACN,KAAK,QAAQ,GAAG,KAAK,UAAU,GAAG,EAAE,GAAG,UAAW,MAAc,IAAI,GACtD,CAAC,CAAC,KAAK,GAAG,EAAE;EAE/B,KAAK,UACH,OAAO,KAAK,UAAU,KAAK;EAE7B,SACE,OAAO,GAAG,OAAO,MAAM,GAAG,OAAO,KAAK;CAE1C;AACF;;AASA,MAAa,kBAAkB,EAC7B,eACA,eACA,0BAEA,GAAG,UAAU,iBAAiB,CAAC,CAAC,EAAE,GAAG,UAAU,iBAAiB,CAAC,CAAC,EAAE,GAAG,UAAU,uBAAuB,IAAI;;;;;;;;;AAU9G,MAAM,6BAA6B,SAAe;CAChD,MAAM,OAAO,MAAM,OAAO,WAAW;EACnC,IAAI,KAAK,SAAS,SAAS,UAAU,OAAO,UAAU,UAAU;GAC9D,OAAO,SAAS,SAAS;IAAE,MAAM;IAAQ,OAAO,KAAK;GAAM;GAC3D,OAAO;EACT;EAEA,IAAI,KAAK,SAAS,WACX;QAAA,MAAM,OAAO,eAChB,IAAI,OAAO,OAAO,eAAe,GAAG,KAAK,OAAO,OAAO,KAAK,YAAY,GAAG,GAAG;IAC5E,MAAM,OAAO,cAAc;IAC3B,IAAI,SAAS,QAAQ,KAAK,SAAS,KAAK,OAAO,GAC7C,KAAK,WAAW,OAAO,oBAAoB,OAAO,KAAK,WAAW,QAAQ,EAAE,CAAC;GAEjF;;CAGN,CAAC;AACH;;AAGA,MAAM,iBAAiB,SAAiB,aAAkC;CACxE,MAAM,YAAY,QAAQ,CAAC,CACxB,IAAI,WAAW,CAAC,CAChB,IAAI,SAAS,iBAAiB,CAAC,CAAC,CAAC,CACjC,IAAI,cAAc;EAAE,GAAG,SAAS;EAAqB,oBAAoB;CAAK,CAAC,CAAC,CAChF,IAAI,SAAS,iBAAiB,CAAC,CAAC;CAEnC,MAAM,OAAO,IAAI,MAAM;CACvB,KAAK,QAAQ;CAEb,MAAM,OAAO,UAAU,QAAQ,UAAU,MAAM,IAAI,GAAG,IAAI;CAC1D,0BAA0B,IAAI;CAC9B,OAAO;AACT;;;;;;;;AASA,MAAa,iBAAiB,SAAiB,UAAyB,gBAAwB;CAC9F,MAAM,MAAM,GAAG,YAAY,QAAQ;CAEnC,MAAM,SAAS,WAAW,IAAI,GAAG;CACjC,IAAI,QAAQ;EAEV,WAAW,OAAO,GAAG;EACrB,WAAW,IAAI,KAAK,MAAM;EAC1B,OAAO;CACT;CAEA,MAAM,OAAO,cAAc,SAAS,QAAQ;CAE5C,IAAI,WAAW,QAAQ,kBAAkB;EACvC,MAAM,YAAY,WAAW,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;EAC3C,IAAI,cAAc,KAAA,GAAW,WAAW,OAAO,SAAS;CAC1D;CACA,WAAW,IAAI,KAAK,IAAI;CAExB,OAAO;AACT"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { styleProps } from "../styles/stylex/props.mjs";
|
|
3
|
-
import { typographyClasses } from "./stable.mjs";
|
|
4
2
|
import clsx$1 from "clsx";
|
|
5
3
|
import { memo } from "react";
|
|
4
|
+
import { styleProps } from "../styles/stylex/props.mjs";
|
|
5
|
+
import { typographyClasses } from "./stable.mjs";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
// src/Markdown/Typography.tsx
|
|
8
8
|
const TypographyImpl = ({ ref, children, className, fontSize, headerMultiple, marginMultiple, lineHeight, borderRadius, style, xstyle, ...rest }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { memo } from "react";
|
|
1
2
|
import "../../Highlighter/const.mjs";
|
|
2
3
|
import { isFullHtmlDocument } from "../../HtmlPreview/const.mjs";
|
|
3
4
|
import { Pre, PreHtmlPreview, PreMermaid, PreSingleLine } from "../../mdx/mdxComponents/Pre.mjs";
|
|
4
|
-
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
// src/Markdown/components/CodeBlock.tsx
|
|
7
7
|
const countLines = (str) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { memo, useMemo } from "react";
|
|
2
3
|
import A from "../../A/index.mjs";
|
|
3
4
|
import Block from "../../Block/Block.mjs";
|
|
4
5
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
5
6
|
import Text from "../../Text/Text.mjs";
|
|
6
7
|
import SearchResultCards from "./SearchResultCards/index.mjs";
|
|
7
|
-
import { memo, useMemo } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/Markdown/components/Footnotes.tsx
|
|
10
10
|
const DefaultFootnotes = memo(({ dataSource }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useStableValue } from "../../hooks/useStableValue.mjs";
|
|
3
2
|
import { createContext, memo, use } from "react";
|
|
3
|
+
import { useStableValue } from "../../hooks/useStableValue.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/Markdown/components/MarkdownProvider.tsx
|
|
6
6
|
const MarkdownContext = createContext({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { memo, useCallback, useRef } from "react";
|
|
2
3
|
import CopyButton from "../../../CopyButton/CopyButton.mjs";
|
|
3
4
|
import { styleProps } from "../../../styles/stylex/props.mjs";
|
|
4
5
|
import { hastTableToMarkdown } from "./hastTableToMarkdown.mjs";
|
|
5
6
|
import { styles } from "./style.mjs";
|
|
6
|
-
import { memo, useCallback, useRef } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/Markdown/components/MarkdownTable/index.tsx
|
|
9
9
|
const MarkdownTable = memo(({ node, children, ...rest }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
2
4
|
import A from "../../../A/index.mjs";
|
|
3
5
|
import Block from "../../../Block/Block.mjs";
|
|
4
6
|
import FlexBasic_default from "../../../Flex/FlexBasic.mjs";
|
|
5
7
|
import Img from "../../../Img/index.mjs";
|
|
6
8
|
import Text from "../../../Text/Text.mjs";
|
|
7
9
|
import { searchResultCardsClasses } from "../../stable.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { memo, useMemo } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/Markdown/components/SearchResultCards/SearchResultCard.tsx
|
|
12
12
|
const SearchResultCard = memo(({ ref, url, title, alt, ...rest }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import ScrollShadow from "../../../ScrollShadow/ScrollShadow.mjs";
|
|
3
5
|
import { styleProps } from "../../../styles/stylex/props.mjs";
|
|
4
6
|
import { searchResultCardsClasses } from "../../stable.mjs";
|
|
5
7
|
import SearchResultCard from "./SearchResultCard.mjs";
|
|
6
8
|
import { styles } from "./style.mjs";
|
|
7
|
-
import clsx$1 from "clsx";
|
|
8
|
-
import { memo } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
// src/Markdown/components/SearchResultCards/index.tsx
|
|
11
11
|
const SearchResultCards = memo(({ ref, className, dataSource, style, ...rest }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { visit } from "
|
|
1
|
+
import { visit } from "unist-util-visit";
|
|
2
2
|
// src/Markdown/plugins/rehypeCustomFootnotes.ts
|
|
3
3
|
const rehypeCustomFootnotes = () => (tree, file) => {
|
|
4
4
|
const linksData = file.data.footnoteLinks || {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SKIP, visitParents } from "unist-util-visit-parents";
|
|
2
1
|
import { fromHtmlIsomorphic } from "hast-util-from-html-isomorphic";
|
|
3
2
|
import { toText } from "hast-util-to-text";
|
|
4
3
|
import katex from "katex";
|
|
4
|
+
import { SKIP, visitParents } from "unist-util-visit-parents";
|
|
5
5
|
// src/Markdown/plugins/rehypeKatex.ts
|
|
6
6
|
const emptyClasses = [];
|
|
7
7
|
const rehypeKatex = (options) => (tree, file) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { visit } from "
|
|
1
|
+
import { visit } from "unist-util-visit";
|
|
2
2
|
// src/Markdown/plugins/rehypeKatexDir.ts
|
|
3
3
|
const rehypeKatexDir = () => (tree) => {
|
|
4
4
|
visit(tree, "element", (node) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { visit } from "../../node_modules/.pnpm/unist-util-visit@5.2.0/node_modules/unist-util-visit/lib/index.mjs";
|
|
2
1
|
import { gfmAutolinkLiteralFromMarkdown } from "mdast-util-gfm-autolink-literal";
|
|
2
|
+
import { visit } from "unist-util-visit";
|
|
3
3
|
// src/Markdown/plugins/remarkCjkAutolink.ts
|
|
4
4
|
/**
|
|
5
5
|
* GFM 的 autolink literal 只会回溯裁剪 ASCII 的尾随标点(`)`、`.`、`,` 等),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SKIP, visit } from "
|
|
1
|
+
import { SKIP, visit } from "unist-util-visit";
|
|
2
2
|
// src/Markdown/plugins/remarkCustomFootnotes.ts
|
|
3
3
|
const remarkCustomFootnotes = () => (tree, file) => {
|
|
4
4
|
const footnoteLinks = /* @__PURE__ */ new Map();
|
package/es/Markdown/type.d.mts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { StreamAnimationGranularity, StreamSmoothingPreset } from "@lobehub/streamdown";
|
|
2
|
+
import { CSSProperties, ElementType, FC, ReactNode, Ref } from "react";
|
|
3
|
+
import { Components, Options } from "react-markdown";
|
|
4
|
+
import { Pluggable } from "unified";
|
|
1
5
|
import "../Highlighter/index.mjs";
|
|
2
6
|
import { HighlighterProps } from "../Highlighter/type.mjs";
|
|
3
7
|
import "../HtmlPreview/index.mjs";
|
|
@@ -10,10 +14,6 @@ import { AProps, DivProps } from "../types/index.mjs";
|
|
|
10
14
|
import { PreProps } from "../mdx/mdxComponents/Pre.mjs";
|
|
11
15
|
import { VideoProps } from "../mdx/mdxComponents/Video.mjs";
|
|
12
16
|
import { CitationItem } from "../types/citation.mjs";
|
|
13
|
-
import { CSSProperties, ElementType, FC, ReactNode, Ref } from "react";
|
|
14
|
-
import { StreamAnimationGranularity, StreamSmoothingPreset } from "@lobehub/streamdown";
|
|
15
|
-
import { Components, Options } from "react-markdown";
|
|
16
|
-
import { Pluggable } from "unified";
|
|
17
17
|
export interface TypographyProps extends DivProps {
|
|
18
18
|
borderRadius?: number;
|
|
19
19
|
fontSize?: number;
|
|
@@ -44,6 +44,13 @@ export interface SyntaxMarkdownProps {
|
|
|
44
44
|
enableHtmlPreview?: boolean;
|
|
45
45
|
enableLatex?: boolean;
|
|
46
46
|
enableMermaid?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Reuse the parsed tree across mounts of the same content and plugins (non-streaming
|
|
49
|
+
* render only). Remark/rehype plugins must be pure for a given identity and options, and
|
|
50
|
+
* custom components must not mutate `node`, since cached trees are shared.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
enableParseCache?: boolean;
|
|
47
54
|
enableStream?: boolean;
|
|
48
55
|
fullFeaturedCodeBlock?: boolean;
|
|
49
56
|
reactMarkdownProps?: Omit<Readonly<Options>, 'components' | 'rehypePlugins' | 'remarkPlugins'>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useMemo } from "react";
|
|
2
4
|
import FlexBasic_default from "../Flex/FlexBasic.mjs";
|
|
3
5
|
import { styleProps } from "../styles/stylex/props.mjs";
|
|
4
6
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
5
7
|
import { maskShadowClasses } from "./stable.mjs";
|
|
6
8
|
import { styles } from "./style.mjs";
|
|
7
|
-
import clsx$1 from "clsx";
|
|
8
|
-
import { memo, useMemo } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
// src/MaskShadow/MaskShadow.tsx
|
|
11
11
|
const MaskShadow = memo(({ className, children, position = "bottom", size = 40, ...rest }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { useMemo } from "react";
|
|
2
4
|
import { useCdnFn } from "../ConfigProvider/index.mjs";
|
|
3
5
|
import FileTypeIcon from "../FileTypeIcon/FileTypeIcon.mjs";
|
|
4
6
|
import Center from "../Flex/Center.mjs";
|
|
5
7
|
import Img from "../Img/index.mjs";
|
|
6
8
|
import { materialFileTypeIconClasses } from "./stable.mjs";
|
|
7
9
|
import { getIconUrlForDirectoryPath, getIconUrlForFilePath } from "./utils.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
|
-
import { useMemo } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/MaterialFileTypeIcon/MaterialFileTypeIcon.tsx
|
|
12
12
|
const MaterialFileTypeIcon = ({ fallbackUnknownType = true, filename, size = 48, variant = "raw", type, style, open, ...rest }) => {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
4
|
+
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
5
|
import ActionIcon from "../ActionIcon/ActionIcon.mjs";
|
|
3
6
|
import CopyButton from "../CopyButton/CopyButton.mjs";
|
|
4
7
|
import FlexBasic_default from "../Flex/FlexBasic.mjs";
|
|
@@ -9,10 +12,7 @@ import Text from "../Text/Text.mjs";
|
|
|
9
12
|
import { toDataAttributes } from "../utils/bem.mjs";
|
|
10
13
|
import { stopPropagation } from "../utils/dom.mjs";
|
|
11
14
|
import { mermaidClasses } from "./stable.mjs";
|
|
12
|
-
import clsx$1 from "clsx";
|
|
13
|
-
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
14
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
16
16
|
// src/Mermaid/FullFeatured.tsx
|
|
17
17
|
const MermaidHeaderLanguage = memo(({ fileName, language, showLanguage }) => {
|
|
18
18
|
if (!showLanguage) return null;
|
package/es/Mermaid/Mermaid.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useCallback, useEffect, useMemo, useRef } from "react";
|
|
2
4
|
import CopyButton from "../CopyButton/CopyButton.mjs";
|
|
3
5
|
import FlexBasic_default from "../Flex/FlexBasic.mjs";
|
|
4
6
|
import { actionsHoverCls, rootClassName, rootStyles, styles } from "../Highlighter/style.mjs";
|
|
@@ -8,8 +10,6 @@ import { toDataAttributes } from "../utils/bem.mjs";
|
|
|
8
10
|
import { MermaidFullFeatured } from "./FullFeatured.mjs";
|
|
9
11
|
import { mermaidClasses } from "./stable.mjs";
|
|
10
12
|
import SyntaxMermaid from "./SyntaxMermaid/index.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { memo, useCallback, useEffect, useMemo, useRef } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
// src/Mermaid/Mermaid.tsx
|
|
15
15
|
const Mermaid = memo(({ actionIconSize, animated, bodyRender, children, classNames, className, copyable = true, defaultExpand = true, fileName, fullFeatured, language = "mermaid", actionsRender, shadow, showLanguage = true, style, styles: customStyles, theme, variant = "filled", ...rest }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
3
5
|
import Text from "../../Text/Text.mjs";
|
|
4
6
|
import { styles } from "./style.mjs";
|
|
5
|
-
import { memo } from "react";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import * as stylex from "@stylexjs/stylex";
|
|
8
8
|
// src/Mermaid/SyntaxMermaid/MermaidFallback.tsx
|
|
9
9
|
const MermaidFallback = memo(({ children, className, dataAttributes, message, style }) => /* @__PURE__ */ jsx("div", {
|
|
10
10
|
...dataAttributes,
|