@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/Video/parts/Frame.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
2
4
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
3
5
|
import { FrameContext, useVideoContext } from "../context.mjs";
|
|
4
6
|
import { aspectOf, frameWidthOf } from "../sizing.mjs";
|
|
@@ -7,8 +9,6 @@ import { styles } from "../style.mjs";
|
|
|
7
9
|
import { useControlsIdle } from "../useControlsIdle.mjs";
|
|
8
10
|
import { useFullscreen } from "../useFullscreen.mjs";
|
|
9
11
|
import { useVideo } from "../useVideo.mjs";
|
|
10
|
-
import clsx$1 from "clsx";
|
|
11
|
-
import { useEffect, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
// src/Video/parts/Frame.tsx
|
|
14
14
|
const isFocusVisible = (element) => {
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
3
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
4
|
+
import { previewSizeOf } from "../sizing.mjs";
|
|
3
5
|
import { markerColor, styles } from "../style.mjs";
|
|
4
6
|
import { formatTime } from "../time.mjs";
|
|
5
|
-
import { useEffect, useRef } from "react";
|
|
6
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
// src/Video/parts/HoverPreview.tsx
|
|
8
|
-
const
|
|
9
|
+
const PREVIEW_SCALE = 2;
|
|
10
|
+
const Thumbnail = ({ size, src, time }) => {
|
|
9
11
|
const canvasRef = useRef(null);
|
|
10
12
|
const probeRef = useRef(null);
|
|
11
13
|
const pendingRef = useRef(null);
|
|
12
14
|
const busyRef = useRef(false);
|
|
15
|
+
const [probeSize, setProbeSize] = useState();
|
|
16
|
+
const { height, width } = previewSizeOf(size ?? probeSize);
|
|
13
17
|
useEffect(() => {
|
|
14
18
|
const probe = probeRef.current;
|
|
15
19
|
if (!probe) return;
|
|
@@ -27,11 +31,19 @@ const Thumbnail = ({ src, time }) => {
|
|
|
27
31
|
const reset = () => {
|
|
28
32
|
busyRef.current = false;
|
|
29
33
|
};
|
|
34
|
+
const readSize = () => {
|
|
35
|
+
setProbeSize({
|
|
36
|
+
height: probe.videoHeight,
|
|
37
|
+
width: probe.videoWidth
|
|
38
|
+
});
|
|
39
|
+
};
|
|
30
40
|
probe.addEventListener("seeked", paint);
|
|
31
41
|
probe.addEventListener("error", reset);
|
|
42
|
+
probe.addEventListener("loadedmetadata", readSize);
|
|
32
43
|
return () => {
|
|
33
44
|
probe.removeEventListener("seeked", paint);
|
|
34
45
|
probe.removeEventListener("error", reset);
|
|
46
|
+
probe.removeEventListener("loadedmetadata", readSize);
|
|
35
47
|
probe.removeAttribute("src");
|
|
36
48
|
probe.load?.();
|
|
37
49
|
};
|
|
@@ -46,6 +58,14 @@ const Thumbnail = ({ src, time }) => {
|
|
|
46
58
|
busyRef.current = true;
|
|
47
59
|
probe.currentTime = time;
|
|
48
60
|
}, [time]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
const canvas = canvasRef.current;
|
|
63
|
+
const probe = probeRef.current;
|
|
64
|
+
if (!canvas || !probe || probe.readyState < 2) return;
|
|
65
|
+
try {
|
|
66
|
+
canvas.getContext("2d")?.drawImage(probe, 0, 0, canvas.width, canvas.height);
|
|
67
|
+
} catch {}
|
|
68
|
+
}, [height, width]);
|
|
49
69
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("video", {
|
|
50
70
|
muted: true,
|
|
51
71
|
playsInline: true,
|
|
@@ -54,19 +74,23 @@ const Thumbnail = ({ src, time }) => {
|
|
|
54
74
|
src,
|
|
55
75
|
style: { display: "none" }
|
|
56
76
|
}), /* @__PURE__ */ jsx("canvas", {
|
|
57
|
-
height:
|
|
77
|
+
height: height * PREVIEW_SCALE,
|
|
58
78
|
ref: canvasRef,
|
|
59
|
-
width:
|
|
60
|
-
...styleProps(styles.previewCanvas
|
|
79
|
+
width: width * PREVIEW_SCALE,
|
|
80
|
+
...styleProps(styles.previewCanvas, void 0, {
|
|
81
|
+
height,
|
|
82
|
+
width
|
|
83
|
+
})
|
|
61
84
|
})] });
|
|
62
85
|
};
|
|
63
|
-
const HoverPreview = ({ marker, section, src, thumbnail, time, visible, x }) => /* @__PURE__ */ jsxs("div", {
|
|
86
|
+
const HoverPreview = ({ marker, section, size, src, thumbnail, time, visible, x }) => /* @__PURE__ */ jsxs("div", {
|
|
64
87
|
...styleProps(styles.preview, void 0, {
|
|
65
88
|
display: visible ? void 0 : "none",
|
|
66
89
|
left: x
|
|
67
90
|
}),
|
|
68
91
|
children: [
|
|
69
92
|
thumbnail && /* @__PURE__ */ jsx(Thumbnail, {
|
|
93
|
+
size,
|
|
70
94
|
src,
|
|
71
95
|
time
|
|
72
96
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverPreview.mjs","names":[],"sources":["../../../src/Video/parts/HoverPreview.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useRef } from 'react';\n\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { markerColor, styles } from '../style';\nimport { formatTime } from '../time';\nimport type { VideoMarker, VideoSection } from '../type';\n\nexport interface HoverPreviewProps {\n marker?: VideoMarker;\n section?: VideoSection;\n src: string;\n thumbnail: boolean;\n time: number;\n visible: boolean;\n x: number;\n}\n\n// The frame comes from a hidden second <video>: seeking the one on screen\n// would move the playhead the viewer is holding. Seeks queue so a fast sweep\n// paints the latest position instead of stalling on stale frames.\nconst Thumbnail = ({
|
|
1
|
+
{"version":3,"file":"HoverPreview.mjs","names":[],"sources":["../../../src/Video/parts/HoverPreview.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { previewSizeOf } from '../sizing';\nimport { markerColor, styles } from '../style';\nimport { formatTime } from '../time';\nimport type { VideoMarker, VideoSection, VideoState } from '../type';\n\nexport interface HoverPreviewProps {\n marker?: VideoMarker;\n section?: VideoSection;\n size?: VideoState['size'];\n src: string;\n thumbnail: boolean;\n time: number;\n visible: boolean;\n x: number;\n}\n\n// Backing store for the canvas: 2× the CSS box keeps the frame crisp on retina\n// displays without depending on the hover-time devicePixelRatio.\nconst PREVIEW_SCALE = 2;\n\n// The frame comes from a hidden second <video>: seeking the one on screen\n// would move the playhead the viewer is holding. Seeks queue so a fast sweep\n// paints the latest position instead of stalling on stale frames.\nconst Thumbnail = ({\n size,\n src,\n time,\n}: {\n size?: VideoState['size'];\n src: string;\n time: number;\n}) => {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const probeRef = useRef<HTMLVideoElement>(null);\n const pendingRef = useRef<number | null>(null);\n const busyRef = useRef(false);\n // The player's metadata is usually there first, but a hover can outrun a\n // player that is still loading; the probe then reports its own shape.\n const [probeSize, setProbeSize] = useState<VideoState['size']>();\n const { height, width } = previewSizeOf(size ?? probeSize);\n\n useEffect(() => {\n const probe = probeRef.current;\n if (!probe) return;\n const paint = () => {\n const canvas = canvasRef.current;\n try {\n canvas?.getContext('2d')?.drawImage(probe, 0, 0, canvas.width, canvas.height);\n } catch {\n // A frame that cannot be decoded yet leaves the previous paint in place.\n }\n busyRef.current = false;\n if (pendingRef.current === null) return;\n busyRef.current = true;\n probe.currentTime = pendingRef.current;\n pendingRef.current = null;\n };\n const reset = () => {\n busyRef.current = false;\n };\n const readSize = () => {\n setProbeSize({ height: probe.videoHeight, width: probe.videoWidth });\n };\n probe.addEventListener('seeked', paint);\n probe.addEventListener('error', reset);\n probe.addEventListener('loadedmetadata', readSize);\n return () => {\n probe.removeEventListener('seeked', paint);\n probe.removeEventListener('error', reset);\n probe.removeEventListener('loadedmetadata', readSize);\n // An unmounted element with a src keeps downloading until it is collected.\n probe.removeAttribute('src');\n probe.load?.();\n };\n }, []);\n\n useEffect(() => {\n const probe = probeRef.current;\n if (!probe) return;\n if (busyRef.current) {\n pendingRef.current = time;\n return;\n }\n busyRef.current = true;\n probe.currentTime = time;\n }, [time]);\n\n // Resizing the canvas clears it; repaint the frame the probe already holds.\n useEffect(() => {\n const canvas = canvasRef.current;\n const probe = probeRef.current;\n if (!canvas || !probe || probe.readyState < 2) return;\n try {\n canvas.getContext('2d')?.drawImage(probe, 0, 0, canvas.width, canvas.height);\n } catch {\n // Keep whatever is already painted.\n }\n }, [height, width]);\n\n return (\n <>\n <video\n muted\n playsInline\n preload=\"auto\"\n ref={probeRef}\n src={src}\n style={{ display: 'none' }}\n />\n <canvas\n height={height * PREVIEW_SCALE}\n ref={canvasRef}\n width={width * PREVIEW_SCALE}\n {...styleProps(styles.previewCanvas, undefined, { height, width })}\n />\n </>\n );\n};\n\nconst HoverPreview = ({\n marker,\n section,\n size,\n src,\n thumbnail,\n time,\n visible,\n x,\n}: HoverPreviewProps) => (\n <div\n {...styleProps(styles.preview, undefined, { display: visible ? undefined : 'none', left: x })}\n >\n {thumbnail && <Thumbnail size={size} src={src} time={time} />}\n {(section || marker) && (\n <div {...styleProps(styles.previewLabel)}>\n {section && <div {...styleProps(styles.previewTitle)}>{section.title}</div>}\n {marker && (\n <div>\n <span\n {...styleProps(styles.dot, undefined, {\n background: markerColor(marker.color),\n display: 'inline-block',\n marginInlineEnd: 6,\n })}\n />\n {marker.content ?? marker.label}\n </div>\n )}\n </div>\n )}\n <div {...styleProps(styles.previewTime)}>{formatTime(time)}</div>\n </div>\n);\n\nexport default HoverPreview;\n"],"mappings":";;;;;;;;AAwBA,MAAM,gBAAgB;AAKtB,MAAM,aAAa,EACjB,MACA,KACA,WAKI;CACJ,MAAM,YAAY,OAA0B,IAAI;CAChD,MAAM,WAAW,OAAyB,IAAI;CAC9C,MAAM,aAAa,OAAsB,IAAI;CAC7C,MAAM,UAAU,OAAO,KAAK;CAG5B,MAAM,CAAC,WAAW,gBAAgB,SAA6B;CAC/D,MAAM,EAAE,QAAQ,UAAU,cAAc,QAAQ,SAAS;CAEzD,gBAAgB;EACd,MAAM,QAAQ,SAAS;EACvB,IAAI,CAAC,OAAO;EACZ,MAAM,cAAc;GAClB,MAAM,SAAS,UAAU;GACzB,IAAI;IACF,QAAQ,WAAW,IAAI,CAAC,EAAE,UAAU,OAAO,GAAG,GAAG,OAAO,OAAO,OAAO,MAAM;GAC9E,QAAQ,CAER;GACA,QAAQ,UAAU;GAClB,IAAI,WAAW,YAAY,MAAM;GACjC,QAAQ,UAAU;GAClB,MAAM,cAAc,WAAW;GAC/B,WAAW,UAAU;EACvB;EACA,MAAM,cAAc;GAClB,QAAQ,UAAU;EACpB;EACA,MAA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AAS,KAAA,GAAW;EAAE,SAAS,UAAU,KAAA,IAAY;EAAQ,MAAM;CAAE,CAAC;CAD9F,UAAA;EAGG,aAAa,oBAAC,WAAD;GAAiB;GAAW;GAAW;EAAO,CAAA;GAC1D,WAAW,WACX,qBAAC,OAAD;GAAK,GAAI,WAAW,OAAO,YAAY;GAAvC,UAAA,CACG,WAAW,oBAAC,OAAD;IAAK,GAAI,WAAW,OAAO,YAAY;IAAI,UAAA,QAAQ;GAAW,CAAA,GACzE,UACC,qBAAC,OAAD,EAAA,UAAA,CACE,oBAAC,QAAD,EACE,GAAI,WAAW,OAAO,KAAK,KAAA,GAAW;IACpC,YAAY,YAAY,OAAO,KAAK;IACpC,SAAS;IACT,iBAAiB;GACnB,CAAC,EACF,CAAA,GACA,OAAO,WAAW,OAAO,KACvB,EAAA,CAAA,CAEJ;;EAEP,oBAAC,OAAD;GAAK,GAAI,WAAW,OAAO,WAAW;GAAI,UAAA,WAAW,IAAI;EAAO,CAAA;CAC7D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { AlertTriangle, Download, RefreshCw } from "lucide-react";
|
|
2
3
|
import video_default from "../../i18n/resources/en/video.mjs";
|
|
3
4
|
import { useTranslation } from "../../i18n/useTranslation.mjs";
|
|
4
5
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
@@ -7,7 +8,6 @@ import { videoClasses } from "../stable.mjs";
|
|
|
7
8
|
import { styles } from "../style.mjs";
|
|
8
9
|
import { useVideo } from "../useVideo.mjs";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { AlertTriangle, Download, RefreshCw } from "lucide-react";
|
|
11
11
|
// src/Video/parts/LoadError.tsx
|
|
12
12
|
const LoadError = () => {
|
|
13
13
|
const { config, media, store } = useVideoContext();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Check } from "lucide-react";
|
|
3
|
+
import { use } from "react";
|
|
2
4
|
import DropdownMenu from "../../DropdownMenu/DropdownMenu.mjs";
|
|
3
5
|
import video_default from "../../i18n/resources/en/video.mjs";
|
|
4
6
|
import { useTranslation } from "../../i18n/useTranslation.mjs";
|
|
@@ -8,9 +10,7 @@ import { styles } from "../style.mjs";
|
|
|
8
10
|
import { useFullscreen } from "../useFullscreen.mjs";
|
|
9
11
|
import { DEFAULT_PLAYBACK_RATES } from "../useKeyboard.mjs";
|
|
10
12
|
import { useVideo } from "../useVideo.mjs";
|
|
11
|
-
import { use } from "react";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Check } from "lucide-react";
|
|
14
14
|
// src/Video/parts/RateMenu.tsx
|
|
15
15
|
const RateMenu = () => {
|
|
16
16
|
const { config, store } = useVideoContext();
|
package/es/Video/parts/Root.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { useImperativeHandle, useLayoutEffect, useMemo, useState } from "react";
|
|
2
4
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
3
5
|
import { VideoContext } from "../context.mjs";
|
|
4
6
|
import { aspectOf, playerWidthOf } from "../sizing.mjs";
|
|
@@ -8,8 +10,6 @@ import { styles } from "../style.mjs";
|
|
|
8
10
|
import { sortSections } from "../time.mjs";
|
|
9
11
|
import { handleVideoKey } from "../useKeyboard.mjs";
|
|
10
12
|
import { useVideoState } from "../useVideo.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { useImperativeHandle, useLayoutEffect, useMemo, useState } from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
// src/Video/parts/Root.tsx
|
|
15
15
|
const NO_MARKERS = [];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
2
3
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
3
4
|
import { useVideoContext } from "../context.mjs";
|
|
4
5
|
import { videoClasses } from "../stable.mjs";
|
|
5
6
|
import { styles } from "../style.mjs";
|
|
6
7
|
import { formatTime } from "../time.mjs";
|
|
7
8
|
import { useVideo } from "../useVideo.mjs";
|
|
8
|
-
import clsx$1 from "clsx";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/Video/parts/SectionList.tsx
|
|
11
11
|
const SectionList = ({ className, style }) => {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Check, ChevronRight } from "lucide-react";
|
|
3
|
+
import { use, useState } from "react";
|
|
2
4
|
import DropdownMenu from "../../DropdownMenu/DropdownMenu.mjs";
|
|
3
5
|
import video_default from "../../i18n/resources/en/video.mjs";
|
|
4
6
|
import { useTranslation } from "../../i18n/useTranslation.mjs";
|
|
@@ -8,9 +10,7 @@ import { styles } from "../style.mjs";
|
|
|
8
10
|
import { formatTime } from "../time.mjs";
|
|
9
11
|
import { useFullscreen } from "../useFullscreen.mjs";
|
|
10
12
|
import { useVideo } from "../useVideo.mjs";
|
|
11
|
-
import { use, useState } from "react";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Check, ChevronRight } from "lucide-react";
|
|
14
14
|
// src/Video/parts/SectionMenu.tsx
|
|
15
15
|
const SectionMenu = () => {
|
|
16
16
|
const { config, store } = useVideoContext();
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
2
4
|
import video_default from "../../i18n/resources/en/video.mjs";
|
|
3
5
|
import { useTranslation } from "../../i18n/useTranslation.mjs";
|
|
4
6
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
@@ -8,8 +10,6 @@ import { markerColor, styles } from "../style.mjs";
|
|
|
8
10
|
import { formatTime, mergeSegments, sectionAt } from "../time.mjs";
|
|
9
11
|
import { useVideo } from "../useVideo.mjs";
|
|
10
12
|
import HoverPreview from "./HoverPreview.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
// src/Video/parts/Timeline.tsx
|
|
15
15
|
const SNAP_RATIO = .012;
|
|
@@ -25,6 +25,7 @@ const Timeline = ({ children, className, style, thumbnails = true }) => {
|
|
|
25
25
|
const { config, media, store } = useVideoContext();
|
|
26
26
|
const { t } = useTranslation(video_default);
|
|
27
27
|
const duration = useVideo((state) => Number.isFinite(state.duration) ? state.duration : 0);
|
|
28
|
+
const size = useVideo((state) => state.size);
|
|
28
29
|
const trackRef = useRef(null);
|
|
29
30
|
const [width, setWidth] = useState(0);
|
|
30
31
|
const [hover, setHover] = useState(null);
|
|
@@ -99,6 +100,7 @@ const Timeline = ({ children, className, style, thumbnails = true }) => {
|
|
|
99
100
|
hover && /* @__PURE__ */ jsx(HoverPreview, {
|
|
100
101
|
marker: hover.marker,
|
|
101
102
|
section: sectionAt(config.sections, hover.time),
|
|
103
|
+
size,
|
|
102
104
|
src: media.src,
|
|
103
105
|
thumbnail: thumbnails,
|
|
104
106
|
time: hover.time,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.mjs","names":["videoMessages","clsx"],"sources":["../../../src/Video/parts/Timeline.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport {\n type PointerEvent as ReactPointerEvent,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport videoMessages from '@/i18n/resources/en/video';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { useVideoContext } from '../context';\nimport { videoClasses } from '../stable';\nimport { markerColor, styles } from '../style';\nimport { formatTime, mergeSegments, sectionAt } from '../time';\nimport type { VideoMarker, VideoState, VideoTimelineProps } from '../type';\nimport { useVideo } from '../useVideo';\nimport HoverPreview from './HoverPreview';\n\nconst SNAP_RATIO = 0.012;\nconst GAP_PX = 3;\nconst PREVIEW_HALF = 88;\n\ninterface Hover {\n marker?: VideoMarker;\n time: number;\n x: number;\n}\n\nconst canHover = () =>\n typeof window === 'undefined' || !window.matchMedia?.('(hover: none)').matches;\n\nconst markerName = (marker: VideoMarker) =>\n [formatTime(marker.time), marker.label, marker.content]\n .filter((part) => typeof part === 'string')\n .join(' ');\n\nconst Timeline = ({ children, className, style, thumbnails = true }: VideoTimelineProps) => {\n const { config, media, store } = useVideoContext();\n const { t } = useTranslation(videoMessages);\n const duration = useVideo((state) => (Number.isFinite(state.duration) ? state.duration : 0));\n const trackRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(0);\n const [hover, setHover] = useState<Hover | null>(null);\n const [hovering, setHovering] = useState(false);\n\n useLayoutEffect(() => {\n const track = trackRef.current;\n if (!track) return;\n setWidth(track.getBoundingClientRect().width);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => setWidth(entry.contentRect.width));\n observer.observe(track);\n return () => observer.disconnect();\n }, []);\n\n // Playback must not re-render the timeline: the playhead and the played\n // fills read --video-time, written straight to the track on every frame.\n useLayoutEffect(() => {\n const track = trackRef.current;\n if (!track) return;\n const setOnChange = (name: string, value: string) => {\n if (track.getAttribute(name) !== value) track.setAttribute(name, value);\n };\n const paint = (state: VideoState) => {\n track.style.setProperty('--video-time', String(state.time));\n setOnChange('aria-valuenow', String(Math.round(state.time)));\n setOnChange(\n 'aria-valuetext',\n [`${formatTime(state.time)} / ${formatTime(state.duration)}`, state.activeSection?.title]\n .filter(Boolean)\n .join(', '),\n );\n };\n paint(store.getState());\n return store.subscribe(paint);\n }, [store]);\n\n const { hairlines, segments } = useMemo(\n () => mergeSegments(config.sections, duration, width),\n [config.sections, duration, width],\n );\n\n const visibleMarkers = useMemo(\n () => config.markers.filter((marker) => marker.time >= 0 && marker.time <= duration),\n [config.markers, duration],\n );\n\n const pct = (seconds: number) => (duration > 0 ? (seconds / duration) * 100 : 0);\n const timeAt = (element: HTMLElement, clientX: number) => {\n const box = element.getBoundingClientRect();\n if (!box.width) return 0;\n return Math.min(Math.max((clientX - box.left) / box.width, 0), 1) * duration;\n };\n\n const onPointerDown = (event: ReactPointerEvent<HTMLDivElement>) => {\n if (event.button !== 0 || !duration) return;\n const element = event.currentTarget;\n store.seek(timeAt(element, event.clientX));\n element.setPointerCapture?.(event.pointerId);\n const move = (next: PointerEvent) => store.seek(timeAt(element, next.clientX));\n const up = () => {\n element.removeEventListener('pointermove', move);\n element.removeEventListener('pointerup', up);\n element.removeEventListener('pointercancel', up);\n };\n element.addEventListener('pointermove', move);\n element.addEventListener('pointerup', up);\n element.addEventListener('pointercancel', up);\n };\n\n const onPointerMove = (event: ReactPointerEvent<HTMLDivElement>) => {\n if (event.pointerType === 'touch' || !duration || !canHover()) return;\n const element = event.currentTarget;\n const box = element.getBoundingClientRect();\n const seconds = timeAt(element, event.clientX);\n const snap = duration * SNAP_RATIO;\n const marker = visibleMarkers.find((item) => Math.abs(item.time - seconds) < snap);\n setHovering(true);\n setHover({\n marker,\n time: marker?.time ?? seconds,\n x: Math.min(\n Math.max(event.clientX - box.left, PREVIEW_HALF),\n Math.max(box.width - PREVIEW_HALF, PREVIEW_HALF),\n ),\n });\n };\n\n return (\n <div {...styleProps(styles.timeline, clsx(videoClasses('timeline'), className), style)}>\n {hover && (\n <HoverPreview\n marker={hover.marker}\n section={sectionAt(config.sections, hover.time)}\n src={media.src}\n thumbnail={thumbnails}\n time={hover.time}\n visible={hovering}\n x={hover.x}\n />\n )}\n <div\n aria-label={t('video.seek')}\n aria-valuemax={Math.round(duration)}\n aria-valuemin={0}\n ref={trackRef}\n role=\"slider\"\n {...styleProps(styles.track, videoClasses('track'))}\n onPointerDown={onPointerDown}\n onPointerLeave={() => setHovering(false)}\n onPointerMove={onPointerMove}\n >\n {segments.map((segment, index) => {\n const span = segment.end - segment.start;\n const hovered =\n hovering && hover !== null && hover.time >= segment.start && hover.time < segment.end;\n const hoverFill =\n hovering && hover ? Math.min(Math.max((hover.time - segment.start) / span, 0), 1) : 0;\n const leftInset = index === 0 ? 0 : GAP_PX / 2;\n const rightInset = index === segments.length - 1 ? 0 : GAP_PX / 2;\n return (\n <div\n data-video-segment=\"\"\n key={segment.start}\n {...styleProps(\n [styles.segment, hovered && styles.segmentHovered],\n videoClasses('segment'),\n {\n left: `calc(${pct(segment.start)}% + ${leftInset}px)`,\n width: `calc(${pct(span)}% - ${leftInset + rightInset}px)`,\n },\n )}\n >\n {hoverFill > 0 && (\n <div\n {...styleProps([styles.segmentFill, styles.segmentHoverFill], undefined, {\n width: `${hoverFill * 100}%`,\n })}\n />\n )}\n <div\n {...styleProps([styles.segmentFill, styles.segmentPlayedFill], undefined, {\n width: `calc(clamp(0, (var(--video-time, 0) - ${segment.start}) / ${span}, 1) * 100%)`,\n })}\n />\n </div>\n );\n })}\n {hairlines.map((at) => (\n <div key={at} {...styleProps(styles.hairline, undefined, { left: `${pct(at)}%` })} />\n ))}\n <div\n {...styleProps(styles.head, videoClasses('head'), {\n left: duration > 0 ? `calc(var(--video-time, 0) / ${duration} * 100%)` : 0,\n })}\n />\n {visibleMarkers.map((marker, index) => (\n <button\n aria-label={markerName(marker)}\n key={marker.key ?? `${marker.time}-${index}`}\n type=\"button\"\n {...styleProps(styles.marker, videoClasses('marker'), {\n background: markerColor(marker.color),\n left: `${pct(marker.time)}%`,\n })}\n onPointerDown={(event) => event.stopPropagation()}\n onClick={(event) => {\n event.stopPropagation();\n store.pause();\n store.seek(marker.time);\n store.setCaptions(true);\n config.onMarkerClick?.(marker);\n }}\n />\n ))}\n </div>\n {children}\n </div>\n );\n};\n\nTimeline.displayName = 'VideoTimeline';\n\nexport default Timeline;\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAM,aAAa;AACnB,MAAM,SAAS;AACf,MAAM,eAAe;AAQrB,MAAM,iBAC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;OACtB,MAAM,MAAM;OACZ,MAAM,KAAK,OAAO,IAAI;OACtB,MAAM,YAAY,IAAI;OACtB,OAAO,gBAAgB,MAAM;MAC/B;KACD,GAdM,OAAO,OAAO,GAAG,OAAO,KAAK,GAAG,OActC,CACF;IACE;;GACJ;EACE;;AAET;AAEA,SAAS,cAAc"}
|
|
1
|
+
{"version":3,"file":"Timeline.mjs","names":["videoMessages","clsx"],"sources":["../../../src/Video/parts/Timeline.tsx"],"sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport {\n type PointerEvent as ReactPointerEvent,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport videoMessages from '@/i18n/resources/en/video';\nimport { useTranslation } from '@/i18n/useTranslation';\nimport { styleProps } from '@/styles/stylex/props';\n\nimport { useVideoContext } from '../context';\nimport { videoClasses } from '../stable';\nimport { markerColor, styles } from '../style';\nimport { formatTime, mergeSegments, sectionAt } from '../time';\nimport type { VideoMarker, VideoState, VideoTimelineProps } from '../type';\nimport { useVideo } from '../useVideo';\nimport HoverPreview from './HoverPreview';\n\nconst SNAP_RATIO = 0.012;\nconst GAP_PX = 3;\nconst PREVIEW_HALF = 88;\n\ninterface Hover {\n marker?: VideoMarker;\n time: number;\n x: number;\n}\n\nconst canHover = () =>\n typeof window === 'undefined' || !window.matchMedia?.('(hover: none)').matches;\n\nconst markerName = (marker: VideoMarker) =>\n [formatTime(marker.time), marker.label, marker.content]\n .filter((part) => typeof part === 'string')\n .join(' ');\n\nconst Timeline = ({ children, className, style, thumbnails = true }: VideoTimelineProps) => {\n const { config, media, store } = useVideoContext();\n const { t } = useTranslation(videoMessages);\n const duration = useVideo((state) => (Number.isFinite(state.duration) ? state.duration : 0));\n const size = useVideo((state) => state.size);\n const trackRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(0);\n const [hover, setHover] = useState<Hover | null>(null);\n const [hovering, setHovering] = useState(false);\n\n useLayoutEffect(() => {\n const track = trackRef.current;\n if (!track) return;\n setWidth(track.getBoundingClientRect().width);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => setWidth(entry.contentRect.width));\n observer.observe(track);\n return () => observer.disconnect();\n }, []);\n\n // Playback must not re-render the timeline: the playhead and the played\n // fills read --video-time, written straight to the track on every frame.\n useLayoutEffect(() => {\n const track = trackRef.current;\n if (!track) return;\n const setOnChange = (name: string, value: string) => {\n if (track.getAttribute(name) !== value) track.setAttribute(name, value);\n };\n const paint = (state: VideoState) => {\n track.style.setProperty('--video-time', String(state.time));\n setOnChange('aria-valuenow', String(Math.round(state.time)));\n setOnChange(\n 'aria-valuetext',\n [`${formatTime(state.time)} / ${formatTime(state.duration)}`, state.activeSection?.title]\n .filter(Boolean)\n .join(', '),\n );\n };\n paint(store.getState());\n return store.subscribe(paint);\n }, [store]);\n\n const { hairlines, segments } = useMemo(\n () => mergeSegments(config.sections, duration, width),\n [config.sections, duration, width],\n );\n\n const visibleMarkers = useMemo(\n () => config.markers.filter((marker) => marker.time >= 0 && marker.time <= duration),\n [config.markers, duration],\n );\n\n const pct = (seconds: number) => (duration > 0 ? (seconds / duration) * 100 : 0);\n const timeAt = (element: HTMLElement, clientX: number) => {\n const box = element.getBoundingClientRect();\n if (!box.width) return 0;\n return Math.min(Math.max((clientX - box.left) / box.width, 0), 1) * duration;\n };\n\n const onPointerDown = (event: ReactPointerEvent<HTMLDivElement>) => {\n if (event.button !== 0 || !duration) return;\n const element = event.currentTarget;\n store.seek(timeAt(element, event.clientX));\n element.setPointerCapture?.(event.pointerId);\n const move = (next: PointerEvent) => store.seek(timeAt(element, next.clientX));\n const up = () => {\n element.removeEventListener('pointermove', move);\n element.removeEventListener('pointerup', up);\n element.removeEventListener('pointercancel', up);\n };\n element.addEventListener('pointermove', move);\n element.addEventListener('pointerup', up);\n element.addEventListener('pointercancel', up);\n };\n\n const onPointerMove = (event: ReactPointerEvent<HTMLDivElement>) => {\n if (event.pointerType === 'touch' || !duration || !canHover()) return;\n const element = event.currentTarget;\n const box = element.getBoundingClientRect();\n const seconds = timeAt(element, event.clientX);\n const snap = duration * SNAP_RATIO;\n const marker = visibleMarkers.find((item) => Math.abs(item.time - seconds) < snap);\n setHovering(true);\n setHover({\n marker,\n time: marker?.time ?? seconds,\n x: Math.min(\n Math.max(event.clientX - box.left, PREVIEW_HALF),\n Math.max(box.width - PREVIEW_HALF, PREVIEW_HALF),\n ),\n });\n };\n\n return (\n <div {...styleProps(styles.timeline, clsx(videoClasses('timeline'), className), style)}>\n {hover && (\n <HoverPreview\n marker={hover.marker}\n section={sectionAt(config.sections, hover.time)}\n size={size}\n src={media.src}\n thumbnail={thumbnails}\n time={hover.time}\n visible={hovering}\n x={hover.x}\n />\n )}\n <div\n aria-label={t('video.seek')}\n aria-valuemax={Math.round(duration)}\n aria-valuemin={0}\n ref={trackRef}\n role=\"slider\"\n {...styleProps(styles.track, videoClasses('track'))}\n onPointerDown={onPointerDown}\n onPointerLeave={() => setHovering(false)}\n onPointerMove={onPointerMove}\n >\n {segments.map((segment, index) => {\n const span = segment.end - segment.start;\n const hovered =\n hovering && hover !== null && hover.time >= segment.start && hover.time < segment.end;\n const hoverFill =\n hovering && hover ? Math.min(Math.max((hover.time - segment.start) / span, 0), 1) : 0;\n const leftInset = index === 0 ? 0 : GAP_PX / 2;\n const rightInset = index === segments.length - 1 ? 0 : GAP_PX / 2;\n return (\n <div\n data-video-segment=\"\"\n key={segment.start}\n {...styleProps(\n [styles.segment, hovered && styles.segmentHovered],\n videoClasses('segment'),\n {\n left: `calc(${pct(segment.start)}% + ${leftInset}px)`,\n width: `calc(${pct(span)}% - ${leftInset + rightInset}px)`,\n },\n )}\n >\n {hoverFill > 0 && (\n <div\n {...styleProps([styles.segmentFill, styles.segmentHoverFill], undefined, {\n width: `${hoverFill * 100}%`,\n })}\n />\n )}\n <div\n {...styleProps([styles.segmentFill, styles.segmentPlayedFill], undefined, {\n width: `calc(clamp(0, (var(--video-time, 0) - ${segment.start}) / ${span}, 1) * 100%)`,\n })}\n />\n </div>\n );\n })}\n {hairlines.map((at) => (\n <div key={at} {...styleProps(styles.hairline, undefined, { left: `${pct(at)}%` })} />\n ))}\n <div\n {...styleProps(styles.head, videoClasses('head'), {\n left: duration > 0 ? `calc(var(--video-time, 0) / ${duration} * 100%)` : 0,\n })}\n />\n {visibleMarkers.map((marker, index) => (\n <button\n aria-label={markerName(marker)}\n key={marker.key ?? `${marker.time}-${index}`}\n type=\"button\"\n {...styleProps(styles.marker, videoClasses('marker'), {\n background: markerColor(marker.color),\n left: `${pct(marker.time)}%`,\n })}\n onPointerDown={(event) => event.stopPropagation()}\n onClick={(event) => {\n event.stopPropagation();\n store.pause();\n store.seek(marker.time);\n store.setCaptions(true);\n config.onMarkerClick?.(marker);\n }}\n />\n ))}\n </div>\n {children}\n </div>\n );\n};\n\nTimeline.displayName = 'VideoTimeline';\n\nexport default Timeline;\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAM,aAAa;AACnB,MAAM,SAAS;AACf,MAAM,eAAe;AAQrB,MAAM,iBACJ,OAAO,WAAW,eAAe,CAAC,OAAO,aAAa,eAAe,CAAC,CAAC;AAEzE,MAAM,cAAc,WAClB;CAAC,WAAW,OAAO,IAAI;CAAG,OAAO;CAAO,OAAO;AAAO,CAAC,CACpD,QAAQ,SAAS,OAAO,SAAS,QAAQ,CAAC,CAC1C,KAAK,GAAG;AAEb,MAAM,YAAY,EAAE,UAAU,WAAW,OAAO,aAAa,WAA+B;CAC1F,MAAM,EAAE,QAAQ,OAAO,UAAU,gBAAgB;CACjD,MAAM,EAAE,MAAM,eAAeA,aAAa;CAC1C,MAAM,WAAW,UAAU,UAAW,OAAO,SAAS,MAAM,QAAQ,IAAI,MAAM,WAAW,CAAE;CAC3F,MAAM,OAAO,UAAU,UAAU,MAAM,IAAI;CAC3C,MAAM,WAAW,OAAuB,IAAI;CAC5C,MAAM,CAAC,OAAO,YAAY,SAAS,CAAC;CACpC,MAAM,CAAC,OAAO,YAAY,SAAuB,I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AA,GAAW,EACxE,OAAO,yCAAyC,QAAQ,MAAM,MAAM,KAAK,cAC3E,CAAC,EACF,CAAA,CACE;MAtBE,GAAA,QAAQ,KAsBV;KAET,CAAC;KACA,UAAU,KAAK,OACd,oBAAC,OAAD,EAAc,GAAI,WAAW,OAAO,UAAU,KAAA,GAAW,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,GAAG,CAAC,EAAI,GAA1E,EAA0E,CACrF;KACD,oBAAC,OAAD,EACE,GAAI,WAAW,OAAO,MAAM,aAAa,MAAM,GAAG,EAChD,MAAM,WAAW,IAAI,+BAA+B,SAAS,YAAY,EAC3E,CAAC,EACF,CAAA;KACA,eAAe,KAAK,QAAQ,UAC3B,oBAAC,UAAD;MACE,cAAY,WAAW,MAAM;MAE7B,MAAK;MACL,GAAI,WAAW,OAAO,QAAQ,aAAa,QAAQ,GAAG;OACpD,YAAY,YAAY,OAAO,KAAK;OACpC,MAAM,GAAG,IAAI,OAAO,IAAI,EAAE;MAC5B,CAAC;MACD,gBAAgB,UAAU,MAAM,gBAAgB;MAChD,UAAU,UAAU;OAClB,MAAM,gBAAgB;OACtB,MAAM,MAAM;OACZ,MAAM,KAAK,OAAO,IAAI;OACtB,MAAM,YAAY,IAAI;OACtB,OAAO,gBAAgB,MAAM;MAC/B;KACD,GAdM,OAAO,OAAO,GAAG,OAAO,KAAK,GAAG,OActC,CACF;IACE;;GACJ;EACE;;AAET;AAEA,SAAS,cAAc"}
|
package/es/Video/sizing.mjs
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
const aspectOf = (size) => size?.height ? size.width / size.height : 16 / 9;
|
|
2
|
+
const previewSizeOf = (size) => {
|
|
3
|
+
if (!size?.width || !size?.height) return {
|
|
4
|
+
height: 99,
|
|
5
|
+
width: 176
|
|
6
|
+
};
|
|
7
|
+
const scale = Math.min(176 / size.width, 99 / size.height);
|
|
8
|
+
return {
|
|
9
|
+
height: Math.max(1, Math.round(size.height * scale)),
|
|
10
|
+
width: Math.max(1, Math.round(size.width * scale))
|
|
11
|
+
};
|
|
12
|
+
};
|
|
2
13
|
const frameWidthOf = (maxHeight, aspect) => Math.round(maxHeight * aspect);
|
|
3
14
|
const playerWidthOf = (maxHeight, aspect) => Math.max(480, frameWidthOf(maxHeight, aspect));
|
|
4
|
-
export { aspectOf, frameWidthOf, playerWidthOf };
|
|
15
|
+
export { aspectOf, frameWidthOf, playerWidthOf, previewSizeOf };
|
|
5
16
|
|
|
6
17
|
//# sourceMappingURL=sizing.mjs.map
|
package/es/Video/sizing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizing.mjs","names":[],"sources":["../../src/Video/sizing.ts"],"sourcesContent":["import type { VideoState } from './type';\n\n// Room for the widest control row (frame stepping, captions, speed, fullscreen),\n// so a portrait recording capped by maxHeight never pushes controls out of view.\nexport const MIN_PLAYER_WIDTH = 480;\n\nexport const aspectOf = (size: VideoState['size']) =>\n size?.height ? size.width / size.height : 16 / 9;\n\nexport const frameWidthOf = (maxHeight: number, aspect: number) => Math.round(maxHeight * aspect);\n\nexport const playerWidthOf = (maxHeight: number, aspect: number) =>\n Math.max(MIN_PLAYER_WIDTH, frameWidthOf(maxHeight, aspect));\n"],"mappings":"AAMA,MAAa,YAAY,SACvB,MAAM,SAAS,KAAK,QAAQ,KAAK,SAAS,KAAK;
|
|
1
|
+
{"version":3,"file":"sizing.mjs","names":[],"sources":["../../src/Video/sizing.ts"],"sourcesContent":["import type { VideoState } from './type';\n\n// Room for the widest control row (frame stepping, captions, speed, fullscreen),\n// so a portrait recording capped by maxHeight never pushes controls out of view.\nexport const MIN_PLAYER_WIDTH = 480;\n\nexport const aspectOf = (size: VideoState['size']) =>\n size?.height ? size.width / size.height : 16 / 9;\n\n// Hover thumbnail box. The frame is fitted inside it, so a portrait recording\n// keeps its own shape instead of being squashed into a 16:9 preview.\nexport const PREVIEW_WIDTH = 176;\nexport const PREVIEW_HEIGHT = 99;\n\nexport const previewSizeOf = (size: VideoState['size']) => {\n if (!size?.width || !size?.height) return { height: PREVIEW_HEIGHT, width: PREVIEW_WIDTH };\n const scale = Math.min(PREVIEW_WIDTH / size.width, PREVIEW_HEIGHT / size.height);\n return {\n height: Math.max(1, Math.round(size.height * scale)),\n width: Math.max(1, Math.round(size.width * scale)),\n };\n};\n\nexport const frameWidthOf = (maxHeight: number, aspect: number) => Math.round(maxHeight * aspect);\n\nexport const playerWidthOf = (maxHeight: number, aspect: number) =>\n Math.max(MIN_PLAYER_WIDTH, frameWidthOf(maxHeight, aspect));\n"],"mappings":"AAMA,MAAa,YAAY,SACvB,MAAM,SAAS,KAAK,QAAQ,KAAK,SAAS,KAAK;AAOjD,MAAa,iBAAiB,SAA6B;CACzD,IAAI,CAAC,MAAM,SAAS,CAAC,MAAM,QAAQ,OAAO;EAAE,QAAA;EAAwB,OAAA;CAAqB;CACzF,MAAM,QAAQ,KAAK,IAAA,MAAoB,KAAK,OAAA,KAAwB,KAAK,MAAM;CAC/E,OAAO;EACL,QAAQ,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK,SAAS,KAAK,CAAC;EACnD,OAAO,KAAK,IAAI,GAAG,KAAK,MAAM,KAAK,QAAQ,KAAK,CAAC;CACnD;AACF;AAEA,MAAa,gBAAgB,WAAmB,WAAmB,KAAK,MAAM,YAAY,MAAM;AAEhG,MAAa,iBAAiB,WAAmB,WAC/C,KAAK,IAAA,KAAsB,aAAa,WAAW,MAAM,CAAC"}
|
package/es/Video/style.mjs
CHANGED
package/es/Video/style.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../src/Video/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\nconst reducedMotion = '@media (prefers-reduced-motion: reduce)';\nconst chromeBar = '#151515';\n\nconst labelFromBelow = stylex.keyframes({\n from: { opacity: 0, transform: 'translateY(70%)' },\n to: { opacity: 1, transform: 'none' },\n});\nconst labelFromAbove = stylex.keyframes({\n from: { opacity: 0, transform: 'translateY(-70%)' },\n to: { opacity: 1, transform: 'none' },\n});\n\n// The chrome stays dark in both themes: it sits on the black letterbox and\n// must not flash white around a dark recording.\nexport const styles = stylex.create({\n barButton: {\n padding: 0,\n borderRadius: 6,\n borderStyle: 'none',\n flex: 'none',\n outline: { 'default': 'none', ':focus-visible': '2px solid rgb(255 255 255 / 60%)' },\n alignItems: 'center',\n backgroundColor: {\n 'default': 'transparent',\n ':hover': 'rgb(255 255 255 / 12%)',\n },\n color: 'inherit',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n justifyContent: 'center',\n height: 28,\n minWidth: 28,\n },\n barButtonActive: {\n backgroundColor: 'rgb(255 255 255 / 18%)',\n },\n caption: {\n borderRadius: 8,\n paddingBlock: 8,\n paddingInline: 12,\n transition: { default: 'inset-block-end 200ms ease', [reducedMotion]: 'none' },\n backgroundColor: 'rgb(0 0 0 / 78%)',\n color: '#fff',\n fontSize: 13,\n insetBlockEnd: 16,\n insetInlineStart: 16,\n lineHeight: 1.5,\n position: 'absolute',\n zIndex: 2,\n maxWidth: '70%',\n },\n captionItem: {\n marginBlockStart: { 'default': 8, ':first-child': 0 },\n },\n captionRaised: {\n insetBlockEnd: 76,\n },\n captionTitle: {\n gap: 6,\n alignItems: 'center',\n display: 'flex',\n fontWeight: 600,\n },\n centerPlay: {\n borderRadius: '50%',\n borderStyle: 'none',\n alignItems: 'center',\n backgroundColor: 'rgb(0 0 0 / 55%)',\n color: '#fff',\n cursor: 'pointer',\n display: 'flex',\n insetBlockStart: '50%',\n insetInlineStart: '50%',\n justifyContent: 'center',\n position: 'absolute',\n transform: 'translate(-50%, -50%)',\n zIndex: 2,\n height: 56,\n width: 56,\n },\n chip: {\n borderRadius: 6,\n borderStyle: 'none',\n gap: 2,\n overflow: 'hidden',\n alignItems: 'center',\n backgroundColor: { 'default': 'rgb(255 255 255 / 10%)', ':hover': 'rgb(255 255 255 / 16%)' },\n color: 'inherit',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n paddingInlineEnd: 4,\n paddingInlineStart: 8,\n height: 24,\n maxWidth: '40%',\n minWidth: 0,\n },\n chipLabelBackward: {\n animationDuration: { default: '220ms', [reducedMotion]: '0s' },\n animationName: labelFromAbove,\n animationTimingFunction: 'cubic-bezier(0.2, 0, 0, 1)',\n },\n chipLabelForward: {\n animationDuration: { default: '220ms', [reducedMotion]: '0s' },\n animationName: labelFromBelow,\n animationTimingFunction: 'cubic-bezier(0.2, 0, 0, 1)',\n },\n chipText: {\n overflow: 'hidden',\n display: 'block',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n controls: {\n paddingInline: 12,\n color: '#fff',\n paddingBlockEnd: 6,\n },\n controlsBelow: {\n backgroundColor: chromeBar,\n paddingBlockStart: 6,\n },\n controlsHidden: {\n opacity: 0,\n pointerEvents: 'none',\n },\n controlsOverlay: {\n insetInline: 0,\n transition: { default: 'opacity 200ms ease', [reducedMotion]: 'none' },\n backgroundImage: 'linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 72%))',\n insetBlockEnd: 0,\n paddingBlockStart: 40,\n position: 'absolute',\n zIndex: 3,\n },\n disabled: {\n opacity: 0.4,\n pointerEvents: 'none',\n },\n dot: {\n borderRadius: '50%',\n flex: 'none',\n height: 6,\n width: 6,\n },\n error: {\n inset: 0,\n gap: 10,\n alignItems: 'center',\n backgroundColor: '#000',\n color: '#ccc',\n display: 'flex',\n flexDirection: 'column',\n fontSize: 13,\n justifyContent: 'center',\n position: 'absolute',\n zIndex: 4,\n },\n errorActions: {\n gap: 8,\n display: 'flex',\n },\n errorButton: {\n borderColor: 'rgb(255 255 255 / 20%)',\n borderRadius: 6,\n borderStyle: 'solid',\n borderWidth: 1,\n gap: 6,\n paddingInline: 10,\n textDecoration: 'none',\n alignItems: 'center',\n backgroundColor: { 'default': 'rgb(255 255 255 / 8%)', ':hover': 'rgb(255 255 255 / 14%)' },\n color: '#fff',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n height: 28,\n },\n frame: {\n overflow: 'hidden',\n backgroundColor: '#000',\n position: 'relative',\n width: '100%',\n },\n frameNo: {\n color: '#8a8a8a',\n fontFamily: cssVar.fontFamilyCode,\n fontVariantNumeric: 'tabular-nums',\n marginInlineEnd: 6,\n whiteSpace: 'nowrap',\n },\n hairline: {\n backgroundColor: 'rgb(0 0 0 / 55%)',\n insetBlockStart: 8,\n pointerEvents: 'none',\n position: 'absolute',\n height: 4,\n width: 1,\n },\n head: {\n borderRadius: '50%',\n backgroundColor: '#fff',\n insetBlockStart: 4,\n marginInlineStart: -6,\n pointerEvents: 'none',\n position: 'absolute',\n height: 12,\n width: 12,\n },\n marker: {\n padding: 0,\n borderColor: 'rgb(0 0 0 / 60%)',\n borderRadius: '50%',\n borderStyle: 'solid',\n borderWidth: 1.5,\n outline: { 'default': 'none', ':focus-visible': '2px solid #fff' },\n transition: { default: 'transform 120ms ease', [reducedMotion]: 'none' },\n cursor: 'pointer',\n insetBlockStart: -2,\n marginInlineStart: -5,\n position: 'absolute',\n transform: { 'default': null, ':hover': 'scale(1.3)' },\n zIndex: 1,\n height: 10,\n width: 10,\n },\n preview: {\n gap: 4,\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n insetBlockEnd: 24,\n marginInlineStart: -88,\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 2,\n width: 176,\n },\n previewCanvas: {\n borderColor: '#333',\n borderRadius: 8,\n borderStyle: 'solid',\n borderWidth: 1,\n backgroundColor: '#000',\n display: 'block',\n height: 99,\n width: 176,\n },\n previewLabel: {\n borderRadius: 6,\n overflow: 'hidden',\n paddingBlock: 3,\n paddingInline: 8,\n backgroundColor: 'rgb(0 0 0 / 82%)',\n fontSize: 12,\n lineHeight: 1.4,\n textAlign: 'center',\n textOverflow: 'ellipsis',\n maxWidth: 176,\n },\n previewTime: {\n color: '#ddd',\n fontFamily: cssVar.fontFamilyCode,\n fontSize: 11,\n },\n previewTitle: {\n fontWeight: 600,\n whiteSpace: 'nowrap',\n },\n root: {\n borderRadius: cssVar.borderRadiusLG,\n outline: 'none',\n overflow: 'hidden',\n backgroundColor: '#000',\n boxShadow: { 'default': null, ':focus-visible': `0 0 0 2px ${cssVar.colorPrimaryBorder}` },\n color: '#fff',\n lineHeight: 1,\n position: 'relative',\n maxWidth: '100%',\n },\n rateButton: {\n paddingInline: 6,\n fontFamily: cssVar.fontFamilyCode,\n },\n row: {\n gap: 4,\n alignItems: 'center',\n display: 'flex',\n fontSize: 12,\n height: 32,\n },\n sectionChip: {\n borderColor: 'rgb(255 255 255 / 14%)',\n borderRadius: 6,\n borderStyle: 'solid',\n borderWidth: 1,\n gap: 6,\n outline: { 'default': 'none', ':focus-visible': '2px solid rgb(255 255 255 / 60%)' },\n paddingInline: 8,\n alignItems: 'center',\n backgroundColor: { 'default': 'transparent', ':hover': 'rgb(255 255 255 / 8%)' },\n color: { 'default': '#bbb', ':hover': '#fff' },\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n height: 24,\n },\n sectionChipActive: {\n backgroundColor: 'rgb(255 255 255 / 16%)',\n color: '#fff',\n },\n sectionChipTime: {\n fontFamily: cssVar.fontFamilyCode,\n opacity: 0.7,\n },\n sectionList: {\n gap: 6,\n paddingBlock: 8,\n paddingInline: 12,\n backgroundColor: '#151515',\n display: 'flex',\n flexWrap: 'wrap',\n },\n segment: {\n borderRadius: 2,\n overflow: 'hidden',\n transition: {\n default: 'height 120ms ease, inset-block-start 120ms ease',\n [reducedMotion]: 'none',\n },\n backgroundColor: 'rgb(255 255 255 / 24%)',\n insetBlockStart: 8,\n position: 'absolute',\n height: 4,\n },\n segmentFill: {\n insetBlock: 0,\n insetInlineStart: 0,\n position: 'absolute',\n },\n segmentHoverFill: {\n backgroundColor: 'rgb(255 255 255 / 32%)',\n },\n segmentHovered: {\n insetBlockStart: 6,\n height: 8,\n },\n spacer: {\n flex: '1',\n },\n surface: {\n inset: 0,\n cursor: 'pointer',\n position: 'absolute',\n },\n segmentPlayedFill: {\n backgroundColor: '#fff',\n },\n time: {\n marginInline: 6,\n color: '#ddd',\n fontFamily: cssVar.fontFamilyCode,\n fontVariantNumeric: 'tabular-nums',\n whiteSpace: 'nowrap',\n },\n timeline: {\n position: 'relative',\n },\n track: {\n outline: 'none',\n cursor: 'pointer',\n position: 'relative',\n touchAction: 'none',\n height: 20,\n },\n video: {\n display: 'block',\n objectFit: 'contain',\n height: '100%',\n width: '100%',\n },\n});\n\nexport const markerColor = (color?: string) => {\n switch (color) {\n case undefined:\n case 'info': {\n return cssVar.colorInfo;\n }\n case 'success': {\n return cssVar.colorSuccess;\n }\n case 'warning': {\n return cssVar.colorWarning;\n }\n case 'error': {\n return cssVar.colorError;\n }\n default: {\n return color;\n }\n }\n};\n"],"mappings":";;AAUA,MAAa,SAAS;CACpB,WAAW;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,iBAAiB;EACf,QAAQ;EACR,OAAO;CACT;CACA,SAAS;EACP,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,OAAO;CACT;CACA,eAAe;EACb,QAAQ;EACR,OAAO;CACT;CACA,cAAc;EACZ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,YAAY;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QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,UAAU;EACR,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;AACF;AACA,MAAa,eAAe,UAAmB;CAC7C,QAAQ,OAAR;EACE,KAAK,KAAA;EACL,KAAK,QAED,OAAO,OAAO;EAElB,KAAK,WAED,OAAO,OAAO;EAElB,KAAK,WAED,OAAO,OAAO;EAElB,KAAK,SAED,OAAO,OAAO;EAElB,SAEI,OAAO;CAEb;AACF"}
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../src/Video/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\nconst reducedMotion = '@media (prefers-reduced-motion: reduce)';\nconst chromeBar = '#151515';\n\nconst labelFromBelow = stylex.keyframes({\n from: { opacity: 0, transform: 'translateY(70%)' },\n to: { opacity: 1, transform: 'none' },\n});\nconst labelFromAbove = stylex.keyframes({\n from: { opacity: 0, transform: 'translateY(-70%)' },\n to: { opacity: 1, transform: 'none' },\n});\n\n// The chrome stays dark in both themes: it sits on the black letterbox and\n// must not flash white around a dark recording.\nexport const styles = stylex.create({\n barButton: {\n padding: 0,\n borderRadius: 6,\n borderStyle: 'none',\n flex: 'none',\n outline: { 'default': 'none', ':focus-visible': '2px solid rgb(255 255 255 / 60%)' },\n alignItems: 'center',\n backgroundColor: {\n 'default': 'transparent',\n ':hover': 'rgb(255 255 255 / 12%)',\n },\n color: 'inherit',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n justifyContent: 'center',\n height: 28,\n minWidth: 28,\n },\n barButtonActive: {\n backgroundColor: 'rgb(255 255 255 / 18%)',\n },\n caption: {\n borderRadius: 8,\n paddingBlock: 8,\n paddingInline: 12,\n transition: { default: 'inset-block-end 200ms ease', [reducedMotion]: 'none' },\n backgroundColor: 'rgb(0 0 0 / 78%)',\n color: '#fff',\n fontSize: 13,\n insetBlockEnd: 16,\n insetInlineStart: 16,\n lineHeight: 1.5,\n position: 'absolute',\n zIndex: 2,\n maxWidth: '70%',\n },\n captionItem: {\n marginBlockStart: { 'default': 8, ':first-child': 0 },\n },\n captionRaised: {\n insetBlockEnd: 76,\n },\n captionTitle: {\n gap: 6,\n alignItems: 'center',\n display: 'flex',\n fontWeight: 600,\n },\n centerPlay: {\n borderRadius: '50%',\n borderStyle: 'none',\n alignItems: 'center',\n backgroundColor: 'rgb(0 0 0 / 55%)',\n color: '#fff',\n cursor: 'pointer',\n display: 'flex',\n insetBlockStart: '50%',\n insetInlineStart: '50%',\n justifyContent: 'center',\n position: 'absolute',\n transform: 'translate(-50%, -50%)',\n zIndex: 2,\n height: 56,\n width: 56,\n },\n chip: {\n borderRadius: 6,\n borderStyle: 'none',\n gap: 2,\n overflow: 'hidden',\n alignItems: 'center',\n backgroundColor: { 'default': 'rgb(255 255 255 / 10%)', ':hover': 'rgb(255 255 255 / 16%)' },\n color: 'inherit',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n paddingInlineEnd: 4,\n paddingInlineStart: 8,\n height: 24,\n maxWidth: '40%',\n minWidth: 0,\n },\n chipLabelBackward: {\n animationDuration: { default: '220ms', [reducedMotion]: '0s' },\n animationName: labelFromAbove,\n animationTimingFunction: 'cubic-bezier(0.2, 0, 0, 1)',\n },\n chipLabelForward: {\n animationDuration: { default: '220ms', [reducedMotion]: '0s' },\n animationName: labelFromBelow,\n animationTimingFunction: 'cubic-bezier(0.2, 0, 0, 1)',\n },\n chipText: {\n overflow: 'hidden',\n display: 'block',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n controls: {\n paddingInline: 12,\n color: '#fff',\n paddingBlockEnd: 6,\n },\n controlsBelow: {\n backgroundColor: chromeBar,\n paddingBlockStart: 6,\n },\n controlsHidden: {\n opacity: 0,\n pointerEvents: 'none',\n },\n controlsOverlay: {\n insetInline: 0,\n transition: { default: 'opacity 200ms ease', [reducedMotion]: 'none' },\n backgroundImage: 'linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 72%))',\n insetBlockEnd: 0,\n paddingBlockStart: 40,\n position: 'absolute',\n zIndex: 3,\n },\n disabled: {\n opacity: 0.4,\n pointerEvents: 'none',\n },\n dot: {\n borderRadius: '50%',\n flex: 'none',\n height: 6,\n width: 6,\n },\n error: {\n inset: 0,\n gap: 10,\n alignItems: 'center',\n backgroundColor: '#000',\n color: '#ccc',\n display: 'flex',\n flexDirection: 'column',\n fontSize: 13,\n justifyContent: 'center',\n position: 'absolute',\n zIndex: 4,\n },\n errorActions: {\n gap: 8,\n display: 'flex',\n },\n errorButton: {\n borderColor: 'rgb(255 255 255 / 20%)',\n borderRadius: 6,\n borderStyle: 'solid',\n borderWidth: 1,\n gap: 6,\n paddingInline: 10,\n textDecoration: 'none',\n alignItems: 'center',\n backgroundColor: { 'default': 'rgb(255 255 255 / 8%)', ':hover': 'rgb(255 255 255 / 14%)' },\n color: '#fff',\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n height: 28,\n },\n frame: {\n overflow: 'hidden',\n backgroundColor: '#000',\n position: 'relative',\n width: '100%',\n },\n frameNo: {\n color: '#8a8a8a',\n fontFamily: cssVar.fontFamilyCode,\n fontVariantNumeric: 'tabular-nums',\n marginInlineEnd: 6,\n whiteSpace: 'nowrap',\n },\n hairline: {\n backgroundColor: 'rgb(0 0 0 / 55%)',\n insetBlockStart: 8,\n pointerEvents: 'none',\n position: 'absolute',\n height: 4,\n width: 1,\n },\n head: {\n borderRadius: '50%',\n backgroundColor: '#fff',\n insetBlockStart: 4,\n marginInlineStart: -6,\n pointerEvents: 'none',\n position: 'absolute',\n height: 12,\n width: 12,\n },\n marker: {\n padding: 0,\n borderColor: 'rgb(0 0 0 / 60%)',\n borderRadius: '50%',\n borderStyle: 'solid',\n borderWidth: 1.5,\n outline: { 'default': 'none', ':focus-visible': '2px solid #fff' },\n transition: { default: 'transform 120ms ease', [reducedMotion]: 'none' },\n cursor: 'pointer',\n insetBlockStart: -2,\n marginInlineStart: -5,\n position: 'absolute',\n transform: { 'default': null, ':hover': 'scale(1.3)' },\n zIndex: 1,\n height: 10,\n width: 10,\n },\n preview: {\n gap: 4,\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n insetBlockEnd: 24,\n marginInlineStart: -88,\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 2,\n width: 176,\n },\n previewCanvas: {\n borderColor: '#333',\n borderRadius: 8,\n borderStyle: 'solid',\n borderWidth: 1,\n backgroundColor: '#000',\n display: 'block',\n },\n previewLabel: {\n borderRadius: 6,\n overflow: 'hidden',\n paddingBlock: 3,\n paddingInline: 8,\n backgroundColor: 'rgb(0 0 0 / 82%)',\n fontSize: 12,\n lineHeight: 1.4,\n textAlign: 'center',\n textOverflow: 'ellipsis',\n maxWidth: 176,\n },\n previewTime: {\n color: '#ddd',\n fontFamily: cssVar.fontFamilyCode,\n fontSize: 11,\n },\n previewTitle: {\n fontWeight: 600,\n whiteSpace: 'nowrap',\n },\n root: {\n borderRadius: cssVar.borderRadiusLG,\n outline: 'none',\n overflow: 'hidden',\n backgroundColor: '#000',\n boxShadow: { 'default': null, ':focus-visible': `0 0 0 2px ${cssVar.colorPrimaryBorder}` },\n color: '#fff',\n lineHeight: 1,\n position: 'relative',\n maxWidth: '100%',\n },\n rateButton: {\n paddingInline: 6,\n fontFamily: cssVar.fontFamilyCode,\n },\n row: {\n gap: 4,\n alignItems: 'center',\n display: 'flex',\n fontSize: 12,\n height: 32,\n },\n sectionChip: {\n borderColor: 'rgb(255 255 255 / 14%)',\n borderRadius: 6,\n borderStyle: 'solid',\n borderWidth: 1,\n gap: 6,\n outline: { 'default': 'none', ':focus-visible': '2px solid rgb(255 255 255 / 60%)' },\n paddingInline: 8,\n alignItems: 'center',\n backgroundColor: { 'default': 'transparent', ':hover': 'rgb(255 255 255 / 8%)' },\n color: { 'default': '#bbb', ':hover': '#fff' },\n cursor: 'pointer',\n display: 'inline-flex',\n fontFamily: 'inherit',\n fontSize: 12,\n height: 24,\n },\n sectionChipActive: {\n backgroundColor: 'rgb(255 255 255 / 16%)',\n color: '#fff',\n },\n sectionChipTime: {\n fontFamily: cssVar.fontFamilyCode,\n opacity: 0.7,\n },\n sectionList: {\n gap: 6,\n paddingBlock: 8,\n paddingInline: 12,\n backgroundColor: '#151515',\n display: 'flex',\n flexWrap: 'wrap',\n },\n segment: {\n borderRadius: 2,\n overflow: 'hidden',\n transition: {\n default: 'height 120ms ease, inset-block-start 120ms ease',\n [reducedMotion]: 'none',\n },\n backgroundColor: 'rgb(255 255 255 / 24%)',\n insetBlockStart: 8,\n position: 'absolute',\n height: 4,\n },\n segmentFill: {\n insetBlock: 0,\n insetInlineStart: 0,\n position: 'absolute',\n },\n segmentHoverFill: {\n backgroundColor: 'rgb(255 255 255 / 32%)',\n },\n segmentHovered: {\n insetBlockStart: 6,\n height: 8,\n },\n spacer: {\n flex: '1',\n },\n surface: {\n inset: 0,\n cursor: 'pointer',\n position: 'absolute',\n },\n segmentPlayedFill: {\n backgroundColor: '#fff',\n },\n time: {\n marginInline: 6,\n color: '#ddd',\n fontFamily: cssVar.fontFamilyCode,\n fontVariantNumeric: 'tabular-nums',\n whiteSpace: 'nowrap',\n },\n timeline: {\n position: 'relative',\n },\n track: {\n outline: 'none',\n cursor: 'pointer',\n position: 'relative',\n touchAction: 'none',\n height: 20,\n },\n video: {\n display: 'block',\n objectFit: 'contain',\n height: '100%',\n width: '100%',\n },\n});\n\nexport const markerColor = (color?: string) => {\n switch (color) {\n case undefined:\n case 'info': {\n return cssVar.colorInfo;\n }\n case 'success': {\n return cssVar.colorSuccess;\n }\n case 'warning': {\n return cssVar.colorWarning;\n }\n case 'error': {\n return cssVar.colorError;\n }\n default: {\n return color;\n }\n }\n};\n"],"mappings":";;AAUA,MAAa,SAAS;CACpB,WAAW;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,iBAAiB;EACf,QAAQ;EACR,OAAO;CACT;CACA,SAAS;EACP,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,OAAO;CACT;CACA,eAAe;EACb,QAAQ;EACR,OAAO;CACT;CACA,cAAc;EACZ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,YAAY;EACV,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,mBAAmB;EACjB,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,kBAAkB;EAChB,QAAQ;EACR,QAAQ;E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2
|
+
import { useState, useSyncExternalStore } from "react";
|
|
2
3
|
import { useVideoContext } from "./context.mjs";
|
|
3
4
|
import { createVideoStore } from "./store.mjs";
|
|
4
|
-
import { useState, useSyncExternalStore } from "react";
|
|
5
5
|
// src/Video/useVideo.ts
|
|
6
6
|
const identity = (state) => state;
|
|
7
7
|
function useVideoState(player, selector = identity) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { Bot, UserRound } from "lucide-react";
|
|
4
|
+
import { memo, useState } from "react";
|
|
2
5
|
import { renderLandingIcon } from "../landingIcon.mjs";
|
|
3
6
|
import Icon from "../../Icon/Icon.mjs";
|
|
4
7
|
import Segmented from "../../Segmented/Segmented.mjs";
|
|
@@ -8,10 +11,7 @@ import { toDataAttributes } from "../../utils/bem.mjs";
|
|
|
8
11
|
import { DEFAULT_SKILL_AGENTS } from "./agents.mjs";
|
|
9
12
|
import { awesomeAgentSkillCardClasses } from "./stable.mjs";
|
|
10
13
|
import { styles } from "./style.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { memo, useState } from "react";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Bot, UserRound } from "lucide-react";
|
|
15
15
|
// src/awesome/AgentSkillCard/AgentSkillCard.tsx
|
|
16
16
|
const AVATAR_SIZE = 28;
|
|
17
17
|
const AgentSkillCard = memo(({ agent, agents = DEFAULT_SKILL_AGENTS, className, defaultMode = "agent", footer, human, mode: controlledMode, onModeChange, ...rest }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DivProps } from "../../types/index.mjs";
|
|
2
1
|
import { ElementType, ReactNode } from "react";
|
|
2
|
+
import { DivProps } from "../../types/index.mjs";
|
|
3
3
|
export type AgentSkillCardMode = 'agent' | 'human';
|
|
4
4
|
export interface AgentSkillCardAgent {
|
|
5
5
|
/** An avatar component such as `ClaudeCode.Avatar` from `@lobehub/icons`, or a ready-made node. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
3
5
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
4
6
|
import { useThemeMode } from "../../styles/theme/scope.mjs";
|
|
5
7
|
import { awesomeAuroraBackgroundClasses } from "./stable.mjs";
|
|
6
8
|
import { styles } from "./style.mjs";
|
|
7
|
-
import clsx$1 from "clsx";
|
|
8
|
-
import { memo } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/awesome/AuroraBackground/AuroraBackground.tsx
|
|
11
11
|
const AuroraBackground = memo(({ ref, className, classNames, styles: customStyles, children, ...rest }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import { renderLandingLink } from "../landingLink.mjs";
|
|
3
5
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
4
6
|
import { awesomeBentoCardClasses } from "./stable.mjs";
|
|
5
7
|
import { styles } from "./style.mjs";
|
|
6
|
-
import clsx$1 from "clsx";
|
|
7
|
-
import { memo } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/awesome/BentoGrid/BentoCard.tsx
|
|
10
10
|
const BentoCard = memo(({ children, className, colSpan, hint, href, renderLink, rowSpan, style, title, ...rest }) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
3
5
|
import { awesomeBentoGridClasses } from "./stable.mjs";
|
|
4
6
|
import { styles } from "./style.mjs";
|
|
5
|
-
import clsx$1 from "clsx";
|
|
6
|
-
import { memo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
// src/awesome/BentoGrid/BentoGrid.tsx
|
|
9
9
|
const BentoGrid = memo(({ className, columns, rowHeight, style, ...rest }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo } from "react";
|
|
2
4
|
import { ButtonImpl } from "../../Button/Button.mjs";
|
|
3
5
|
import { awesomeBottomGradientButtonClasses } from "./stable.mjs";
|
|
4
6
|
import { styles } from "./style.mjs";
|
|
5
|
-
import clsx$1 from "clsx";
|
|
6
|
-
import { memo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
// src/awesome/BottomGradientButton/BottomGradientButton.tsx
|
|
9
9
|
const BottomGradientButton = memo(({ className, children, style, ref, ...rest }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { memo, useState } from "react";
|
|
2
4
|
import { Highlighter } from "../../Highlighter/Highlighter.mjs";
|
|
3
5
|
import Segmented from "../../Segmented/Segmented.mjs";
|
|
4
6
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
5
7
|
import { awesomeCodeShowcaseClasses } from "./stable.mjs";
|
|
6
8
|
import { styles } from "./style.mjs";
|
|
7
|
-
import clsx$1 from "clsx";
|
|
8
|
-
import { memo, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/awesome/CodeShowcase/CodeShowcase.tsx
|
|
11
11
|
const CodeShowcase = memo(({ activeKey: controlledKey, className, defaultActiveKey, items, minHeight, onChange, style, ...rest }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DivProps } from "../../types/index.mjs";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { DivProps } from "../../types/index.mjs";
|
|
3
3
|
export interface CodeShowcaseItem {
|
|
4
4
|
/** The snippet shown on the left. Keep it short enough to read without scrolling. */
|
|
5
5
|
code: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import clsx$1 from "clsx";
|
|
3
|
+
import { Fragment, memo } from "react";
|
|
2
4
|
import { renderLandingLink } from "../landingLink.mjs";
|
|
3
5
|
import Icon from "../../Icon/Icon.mjs";
|
|
4
6
|
import { styleProps } from "../../styles/stylex/props.mjs";
|
|
5
7
|
import { awesomeFeatureGridClasses } from "./stable.mjs";
|
|
6
8
|
import { styles } from "./style.mjs";
|
|
7
|
-
import clsx$1 from "clsx";
|
|
8
|
-
import { Fragment, memo } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/awesome/FeatureGrid/FeatureGrid.tsx
|
|
11
11
|
const FeatureGrid = memo(({ className, columns, items, renderLink, style, ...rest }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
1
2
|
import { LandingLinkRender } from "../landingLink.mjs";
|
|
2
3
|
import { IconProps } from "../../Icon/type.mjs";
|
|
3
4
|
import "../../Icon/index.mjs";
|
|
4
5
|
import { DivProps } from "../../types/index.mjs";
|
|
5
|
-
import { ReactNode } from "react";
|
|
6
6
|
export interface FeatureGridItem {
|
|
7
7
|
description: ReactNode;
|
|
8
8
|
/** Makes the whole card a link. */
|
|
@@ -1,4 +1,6 @@
|
|
|
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 Center from "../../Flex/Center.mjs";
|
|
4
6
|
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
@@ -8,8 +10,6 @@ import { styleProps } from "../../styles/stylex/props.mjs";
|
|
|
8
10
|
import Text from "../../Text/Text.mjs";
|
|
9
11
|
import { awesomeFeaturesClasses } from "./stable.mjs";
|
|
10
12
|
import { styles } from "./style.mjs";
|
|
11
|
-
import clsx$1 from "clsx";
|
|
12
|
-
import { memo, useMemo } from "react";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
// src/awesome/Features/FeatureItem.tsx
|
|
15
15
|
const Image = memo(({ image, className, title, style }) => {
|