@cloudvoyant/vortex-ui 0.17.0-rc.202609140923.2a6f21c → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1280,7 +1280,7 @@ var youtubeRootBase = "not-prose my-4";
1280
1280
  var youtubeTitleBase = "mb-2 text-lg font-semibold text-foreground";
1281
1281
  var youtubeFacadeBase = "group relative aspect-video w-full cursor-pointer overflow-hidden rounded-md border border-border bg-muted/40";
1282
1282
  var youtubePlayButtonBase = "absolute inset-0 flex items-center justify-center";
1283
- var youtubePlayButtonInnerBase = "flex items-center justify-center text-red-600 drop-shadow-lg transition-transform group-hover:scale-105";
1283
+ var youtubePlayButtonInnerBase = "flex items-center justify-center rounded-xl bg-red-600 px-4 py-2 text-white drop-shadow-lg transition-transform group-hover:scale-105";
1284
1284
  var youtubeDescriptionBase = "mt-2 text-sm text-muted-foreground";
1285
1285
  var youtubeChaptersBase = "group mt-3 rounded-lg border border-border bg-muted/40";
1286
1286
  var youtubeChaptersSummaryBase = "flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 text-sm font-medium [&::-webkit-details-marker]:hidden";
package/dist/index.d.cts CHANGED
@@ -605,7 +605,7 @@ declare const youtubeRootBase = "not-prose my-4";
605
605
  declare const youtubeTitleBase = "mb-2 text-lg font-semibold text-foreground";
606
606
  declare const youtubeFacadeBase = "group relative aspect-video w-full cursor-pointer overflow-hidden rounded-md border border-border bg-muted/40";
607
607
  declare const youtubePlayButtonBase = "absolute inset-0 flex items-center justify-center";
608
- declare const youtubePlayButtonInnerBase = "flex items-center justify-center text-red-600 drop-shadow-lg transition-transform group-hover:scale-105";
608
+ declare const youtubePlayButtonInnerBase = "flex items-center justify-center rounded-xl bg-red-600 px-4 py-2 text-white drop-shadow-lg transition-transform group-hover:scale-105";
609
609
  declare const youtubeDescriptionBase = "mt-2 text-sm text-muted-foreground";
610
610
  declare const youtubeChaptersBase = "group mt-3 rounded-lg border border-border bg-muted/40";
611
611
  declare const youtubeChaptersSummaryBase = "flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 text-sm font-medium [&::-webkit-details-marker]:hidden";
@@ -801,6 +801,8 @@ interface LinkPreviewAttributes {
801
801
  provider: string;
802
802
  type: 'bookmark' | 'embed';
803
803
  }
804
+ /** Resolve bookmark metadata through an app-owned server or a CORS-enabled metadata service. */
805
+ type LinkPreviewFetcher = (url: string) => Promise<Omit<LinkPreviewAttributes, 'url' | 'type'>>;
804
806
  interface ImageUploadResult {
805
807
  src: string;
806
808
  srcset?: string;
@@ -832,8 +834,8 @@ interface EditorNodeViews {
832
834
  }
833
835
  /**
834
836
  * App-specific seams. These replace behaviour the source editor hardcoded, so the component
835
- * stays app-agnostic: mention search (was a fixed `/api/search/internal` fetch), internal-link
836
- * hrefs (were fixed `/read/...` paths), and image upload (was an app-specific endpoint).
837
+ * stays app-agnostic: mention search, internal-link hrefs, image upload, and bookmark metadata
838
+ * loading.
837
839
  */
838
840
  interface EditorSeams {
839
841
  /** Replaces the source editor's hardcoded internal-search fetch. */
@@ -842,6 +844,8 @@ interface EditorSeams {
842
844
  hrefBuilder?: (item: MentionItem) => string;
843
845
  /** Replaces the app-specific image upload. */
844
846
  onUpload?: (file: File) => Promise<ImageUploadResult>;
847
+ /** Resolves Open Graph or SEO metadata for bookmark cards. */
848
+ fetchLinkPreview?: LinkPreviewFetcher;
845
849
  }
846
850
  interface BuildExtensionsOptions extends EditorSeams {
847
851
  nodeViews: EditorNodeViews;
@@ -958,4 +962,4 @@ declare module '@tiptap/core' {
958
962
  }
959
963
  declare const createNoticeNode: (nodeView?: NodeViewFactory) => Node<any, any>;
960
964
 
961
- export { type BadgeProps, type BadgeVariants, type BuildExtensionsOptions, type ButtonProps, type ButtonVariants, type CardCoverProps, type CardProps, type CardVariants, type ChartProps, type ChartSeries, type CheckboxProps, type CheckboxVariants, type CodeBlockProps, type ComboboxItemVariants, type ComboboxProps, type EditorCounts, EditorHeading, type EditorNodeViews, type EditorSeams, ExitHeading, type FigureProps, type FileEntry, HeadingWithId, type ImageUploadResult, type InputProps, type InputVariants, type ItemProps, type ItemVariants, type LaTeXProps, type LanguageTab, type LinkPreviewAttributes, type ListboxItemData, type ManimModule, type ManimProps, type ManimRecordingScene, type MentionItem, type MentionListElement, type MermaidProps, type MultipleChoiceQuestionData, type NativeSelectVariants, type NavbarDensity, type NavbarMenuDensity, type NavbarMenuVariant, type NavbarVariant, type NodeViewFactory, type NoticeAttributes, type NoticeProps, type NoticeVariant, type NoticeVariants, type NumberInputProps, type NumericQuestionData, type OverlayPlacementOptions, type OverlayPosition, type PageGutterContentVariants, type PageGutterVariants, type PageVariants, type PrevNextProps, type ProseProps, type ProseVariants, type Question, type RevealProps, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, type SelectItemData, type SelectProps, type SidebarContextProps, type SidebarMenuButtonVariants, type SingleChoiceQuestionData, type SlashCommandItem, type SwitchProps, type SwitchVariants, THEMES, THEME_NAMES, type TabsIndicatorVariants, type TabsListVariants, type TagsInputProps, type TextareaProps, type ThemeMeta, TitleHeading, type ToggleButtonProps, type ToggleButtonVariants, type ToggleGroupProps, type ToggleGroupRootVariants, type UrlMentionAttributes, type YouTubeChapter, type YouTubeProps, badgeVariants, buildChartDefinition, buildExtensions, buttonVariants, cardBodyBase, cardCoverVariants, cardDescriptionBase, cardFooterBase, cardHeaderBase, cardTitleBase, cardVariants, centerBase, chartPlaceholderBase, chartPlaceholderLabelBase, chartRootBase, checkboxGroupBase, checkboxIndicatorBase, checkboxLabelBase, checkboxVariants, clipboardTriggerBase, cn, codeBlockBodyBase, codeBlockBodyScrollableBase, codeBlockContentBase, codeBlockCopyFloatBase, codeBlockHeaderBase, codeBlockHeaderInfoBase, codeBlockHighlightBase, codeBlockLineNumbersBase, codeBlockLoadingBase, codeBlockRootBase, codeBlockSpinnerBase, codeBlockTitleBase, colBase, comboboxClearTriggerBase, comboboxContentBase, comboboxControlBase, comboboxEmptyBase, comboboxInputBase, comboboxItemGroupLabelBase, comboboxItemIndicatorBase, comboboxItemVariants, comboboxListBase, comboboxPositionerBase, comboboxTriggerBase, containerBase, createCodeBlockCustom, createImageNode, createInternalMention, createLinkPreview, createNoticeNode, createUrlMention, defaultChartColor, defaultListboxFilter, dialogBackdropBase, dialogCloseTriggerBase, dialogContentBase, dialogDescriptionBase, dialogFooterBase, dialogFooterStickyBase, dialogFullscreenContentBase, dialogHeaderBase, dialogHeaderStickyBase, dialogPositionerBase, dialogTitleBase, extractYouTubeId, feedbackCorrectBase, feedbackExplanationBase, feedbackIncorrectBase, fetchYouTubeMetadata, fieldErrorBase, fieldHelperBase, fieldLabelBase, fieldRequiredIndicatorBase, fieldRootBase, fieldsetErrorBase, fieldsetHelperBase, fieldsetLegendBase, fieldsetRootBase, figureCaptionBase, figureImageBase, figureRootBase, findEditorScrollContainer, formatTime, hstackBase, injectCodeBlockStyles, inputVariants, insertPastedUrlAsLink, itemVariants, latexDisplayBase, latexErrorBase, latexInlineBase, latexRootBase, listboxContentBase, listboxEmptyBase, listboxInputBase, listboxItemBase, listboxItemIndicatorBase, listboxItemTextBase, listboxLabelBase, listboxRootBase, lockEditorOverlayScroll, manimCaptionBase, manimContainerBase, manimErrorBase, manimPlaceholderBase, manimPlaceholderLabelBase, manimRootBase, mermaidLoadingBase, mermaidRootBase, mermaidSourceBase, mermaidSvgAspectRatio, mermaidSvgBase, nativeSelectIconBase, nativeSelectVariants, nativeSelectWrapperBase, navbarActionsBase, navbarActivationAreaBase, navbarBrandBase, navbarContainerBase, navbarDensityVariants, navbarMenuBase, navbarMenuContentBase, navbarMenuIndicatorBase, navbarMenuItemBase, navbarMenuLinkBase, navbarMenuListBase, navbarMenuPlacementVariants, navbarMenuRootBase, navbarMenuTriggerStyle, navbarMenuViewportBase, navbarMenuViewportPositionerBase, navbarMobileActionsBase, navbarMobileBase, navbarMobileContentBase, navbarMobileHeaderBase, navbarMobileMenuBase, navbarMobileMenuContentBase, navbarMobileMenuTriggerBase, navbarShrunkBase, navbarTriggerVariants, navbarVariants, noticeDescriptionBase, noticeTitleBase, noticeVariants, numberInputControlBase, numberInputInputBase, numberInputRootBase, numberInputTriggerBase, pageContentBase, pageFooterBase, pageGutterAreaBase, pageGutterContentVariants, pageGutterVariants, pageSectionBase, pageVariants, paginationEllipsisBase, paginationItemBase, paginationRootBase, paginationTriggerBase, parseYouTubeChapters, placeEditorOverlay, placeEditorOverlayAt, popoverArrowBase, popoverCloseTriggerBase, popoverContentBase, popoverDescriptionBase, popoverIndicatorBase, popoverPositionerBase, popoverTitleBase, prevNextDirectionBase, prevNextLinkBase, prevNextLinkNextBase, prevNextRootBase, prevNextSpacerBase, prevNextTitleBase, proseVariants, questionCardBase, questionCheckButtonBase, questionGroupBase, questionInputBase, questionOptionBase, questionOptionCorrectBase, questionOptionIncorrectBase, questionPromptBase, questionUnitBase, quizHeaderBase, quizResetButtonBase, quizResultBase, quizResultTextBase, quizResultTitleBase, quizRootBase, quizScoreBase, quizSubmitButtonBase, quizTitleBase, radioGroupItemControlBase, radioGroupItemTextBase, radioGroupRootBase, registerImageInsertCallback, registerYouTubeInsertCallback, renderChartSvgString, renderCodeToHtml, renderMermaidSource, resolveMermaidThemeVariables, revealChevronBase, revealContentBase, revealRootBase, revealTriggerBase, rowBase, scrollContentBase, scrollCornerBase, scrollRootBase, scrollScrollbarBase, scrollThumbBase, scrollViewportBase, selectClearTriggerBase, selectContentBase, selectIndicatorBase, selectItemBase, selectItemGroupLabelBase, selectItemIndicatorBase, selectItemTextBase, selectPositionerBase, selectTriggerBase, selectValueBase, sidebarMenuButtonVariants, sidebarStyles, slashCommands, splitterPanelBase, splitterResizeTriggerBase, splitterResizeTriggerIndicatorBase, splitterResizeTriggerSeparatorBase, splitterRootBase, stackBase, switchControlBase, switchLabelBase, switchThumbBase, switchVariants, tabsContentBase, tabsIndicatorBase, tabsIndicatorVariants, tabsListBase, tabsListVariants, tabsRootBase, tabsTriggerBase, tagsInputClearTriggerBase, tagsInputControlBase, tagsInputInputBase, tagsInputItemBase, tagsInputItemDeleteTriggerBase, tagsInputItemInputBase, tagsInputItemTextBase, tagsInputRootBase, textareaBase, toLaTeX, toggleButtonVariants, toggleGroupRootVariants, tooltipArrowBase, tooltipContentBase, tooltipPositionerBase, unregisterImageInsertCallback, unregisterYouTubeInsertCallback, vstackBase, windowBodyBase, windowCloseTriggerBase, windowContentBase, windowControlBase, windowDragTriggerBase, windowHeaderBase, windowPositionerBase, windowResizeTriggerBase, windowStageTriggerBase, windowTitleBase, youtubeChapterButtonBase, youtubeChapterLabelBase, youtubeChapterTimeBase, youtubeChaptersBase, youtubeChaptersChevronBase, youtubeChaptersListBase, youtubeChaptersSummaryBase, youtubeDescriptionBase, youtubeFacadeBase, youtubePlayButtonBase, youtubePlayButtonInnerBase, youtubeRootBase, youtubeTitleBase };
965
+ export { type BadgeProps, type BadgeVariants, type BuildExtensionsOptions, type ButtonProps, type ButtonVariants, type CardCoverProps, type CardProps, type CardVariants, type ChartProps, type ChartSeries, type CheckboxProps, type CheckboxVariants, type CodeBlockProps, type ComboboxItemVariants, type ComboboxProps, type EditorCounts, EditorHeading, type EditorNodeViews, type EditorSeams, ExitHeading, type FigureProps, type FileEntry, HeadingWithId, type ImageUploadResult, type InputProps, type InputVariants, type ItemProps, type ItemVariants, type LaTeXProps, type LanguageTab, type LinkPreviewAttributes, type LinkPreviewFetcher, type ListboxItemData, type ManimModule, type ManimProps, type ManimRecordingScene, type MentionItem, type MentionListElement, type MermaidProps, type MultipleChoiceQuestionData, type NativeSelectVariants, type NavbarDensity, type NavbarMenuDensity, type NavbarMenuVariant, type NavbarVariant, type NodeViewFactory, type NoticeAttributes, type NoticeProps, type NoticeVariant, type NoticeVariants, type NumberInputProps, type NumericQuestionData, type OverlayPlacementOptions, type OverlayPosition, type PageGutterContentVariants, type PageGutterVariants, type PageVariants, type PrevNextProps, type ProseProps, type ProseVariants, type Question, type RevealProps, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, type SelectItemData, type SelectProps, type SidebarContextProps, type SidebarMenuButtonVariants, type SingleChoiceQuestionData, type SlashCommandItem, type SwitchProps, type SwitchVariants, THEMES, THEME_NAMES, type TabsIndicatorVariants, type TabsListVariants, type TagsInputProps, type TextareaProps, type ThemeMeta, TitleHeading, type ToggleButtonProps, type ToggleButtonVariants, type ToggleGroupProps, type ToggleGroupRootVariants, type UrlMentionAttributes, type YouTubeChapter, type YouTubeProps, badgeVariants, buildChartDefinition, buildExtensions, buttonVariants, cardBodyBase, cardCoverVariants, cardDescriptionBase, cardFooterBase, cardHeaderBase, cardTitleBase, cardVariants, centerBase, chartPlaceholderBase, chartPlaceholderLabelBase, chartRootBase, checkboxGroupBase, checkboxIndicatorBase, checkboxLabelBase, checkboxVariants, clipboardTriggerBase, cn, codeBlockBodyBase, codeBlockBodyScrollableBase, codeBlockContentBase, codeBlockCopyFloatBase, codeBlockHeaderBase, codeBlockHeaderInfoBase, codeBlockHighlightBase, codeBlockLineNumbersBase, codeBlockLoadingBase, codeBlockRootBase, codeBlockSpinnerBase, codeBlockTitleBase, colBase, comboboxClearTriggerBase, comboboxContentBase, comboboxControlBase, comboboxEmptyBase, comboboxInputBase, comboboxItemGroupLabelBase, comboboxItemIndicatorBase, comboboxItemVariants, comboboxListBase, comboboxPositionerBase, comboboxTriggerBase, containerBase, createCodeBlockCustom, createImageNode, createInternalMention, createLinkPreview, createNoticeNode, createUrlMention, defaultChartColor, defaultListboxFilter, dialogBackdropBase, dialogCloseTriggerBase, dialogContentBase, dialogDescriptionBase, dialogFooterBase, dialogFooterStickyBase, dialogFullscreenContentBase, dialogHeaderBase, dialogHeaderStickyBase, dialogPositionerBase, dialogTitleBase, extractYouTubeId, feedbackCorrectBase, feedbackExplanationBase, feedbackIncorrectBase, fetchYouTubeMetadata, fieldErrorBase, fieldHelperBase, fieldLabelBase, fieldRequiredIndicatorBase, fieldRootBase, fieldsetErrorBase, fieldsetHelperBase, fieldsetLegendBase, fieldsetRootBase, figureCaptionBase, figureImageBase, figureRootBase, findEditorScrollContainer, formatTime, hstackBase, injectCodeBlockStyles, inputVariants, insertPastedUrlAsLink, itemVariants, latexDisplayBase, latexErrorBase, latexInlineBase, latexRootBase, listboxContentBase, listboxEmptyBase, listboxInputBase, listboxItemBase, listboxItemIndicatorBase, listboxItemTextBase, listboxLabelBase, listboxRootBase, lockEditorOverlayScroll, manimCaptionBase, manimContainerBase, manimErrorBase, manimPlaceholderBase, manimPlaceholderLabelBase, manimRootBase, mermaidLoadingBase, mermaidRootBase, mermaidSourceBase, mermaidSvgAspectRatio, mermaidSvgBase, nativeSelectIconBase, nativeSelectVariants, nativeSelectWrapperBase, navbarActionsBase, navbarActivationAreaBase, navbarBrandBase, navbarContainerBase, navbarDensityVariants, navbarMenuBase, navbarMenuContentBase, navbarMenuIndicatorBase, navbarMenuItemBase, navbarMenuLinkBase, navbarMenuListBase, navbarMenuPlacementVariants, navbarMenuRootBase, navbarMenuTriggerStyle, navbarMenuViewportBase, navbarMenuViewportPositionerBase, navbarMobileActionsBase, navbarMobileBase, navbarMobileContentBase, navbarMobileHeaderBase, navbarMobileMenuBase, navbarMobileMenuContentBase, navbarMobileMenuTriggerBase, navbarShrunkBase, navbarTriggerVariants, navbarVariants, noticeDescriptionBase, noticeTitleBase, noticeVariants, numberInputControlBase, numberInputInputBase, numberInputRootBase, numberInputTriggerBase, pageContentBase, pageFooterBase, pageGutterAreaBase, pageGutterContentVariants, pageGutterVariants, pageSectionBase, pageVariants, paginationEllipsisBase, paginationItemBase, paginationRootBase, paginationTriggerBase, parseYouTubeChapters, placeEditorOverlay, placeEditorOverlayAt, popoverArrowBase, popoverCloseTriggerBase, popoverContentBase, popoverDescriptionBase, popoverIndicatorBase, popoverPositionerBase, popoverTitleBase, prevNextDirectionBase, prevNextLinkBase, prevNextLinkNextBase, prevNextRootBase, prevNextSpacerBase, prevNextTitleBase, proseVariants, questionCardBase, questionCheckButtonBase, questionGroupBase, questionInputBase, questionOptionBase, questionOptionCorrectBase, questionOptionIncorrectBase, questionPromptBase, questionUnitBase, quizHeaderBase, quizResetButtonBase, quizResultBase, quizResultTextBase, quizResultTitleBase, quizRootBase, quizScoreBase, quizSubmitButtonBase, quizTitleBase, radioGroupItemControlBase, radioGroupItemTextBase, radioGroupRootBase, registerImageInsertCallback, registerYouTubeInsertCallback, renderChartSvgString, renderCodeToHtml, renderMermaidSource, resolveMermaidThemeVariables, revealChevronBase, revealContentBase, revealRootBase, revealTriggerBase, rowBase, scrollContentBase, scrollCornerBase, scrollRootBase, scrollScrollbarBase, scrollThumbBase, scrollViewportBase, selectClearTriggerBase, selectContentBase, selectIndicatorBase, selectItemBase, selectItemGroupLabelBase, selectItemIndicatorBase, selectItemTextBase, selectPositionerBase, selectTriggerBase, selectValueBase, sidebarMenuButtonVariants, sidebarStyles, slashCommands, splitterPanelBase, splitterResizeTriggerBase, splitterResizeTriggerIndicatorBase, splitterResizeTriggerSeparatorBase, splitterRootBase, stackBase, switchControlBase, switchLabelBase, switchThumbBase, switchVariants, tabsContentBase, tabsIndicatorBase, tabsIndicatorVariants, tabsListBase, tabsListVariants, tabsRootBase, tabsTriggerBase, tagsInputClearTriggerBase, tagsInputControlBase, tagsInputInputBase, tagsInputItemBase, tagsInputItemDeleteTriggerBase, tagsInputItemInputBase, tagsInputItemTextBase, tagsInputRootBase, textareaBase, toLaTeX, toggleButtonVariants, toggleGroupRootVariants, tooltipArrowBase, tooltipContentBase, tooltipPositionerBase, unregisterImageInsertCallback, unregisterYouTubeInsertCallback, vstackBase, windowBodyBase, windowCloseTriggerBase, windowContentBase, windowControlBase, windowDragTriggerBase, windowHeaderBase, windowPositionerBase, windowResizeTriggerBase, windowStageTriggerBase, windowTitleBase, youtubeChapterButtonBase, youtubeChapterLabelBase, youtubeChapterTimeBase, youtubeChaptersBase, youtubeChaptersChevronBase, youtubeChaptersListBase, youtubeChaptersSummaryBase, youtubeDescriptionBase, youtubeFacadeBase, youtubePlayButtonBase, youtubePlayButtonInnerBase, youtubeRootBase, youtubeTitleBase };
package/dist/index.d.ts CHANGED
@@ -605,7 +605,7 @@ declare const youtubeRootBase = "not-prose my-4";
605
605
  declare const youtubeTitleBase = "mb-2 text-lg font-semibold text-foreground";
606
606
  declare const youtubeFacadeBase = "group relative aspect-video w-full cursor-pointer overflow-hidden rounded-md border border-border bg-muted/40";
607
607
  declare const youtubePlayButtonBase = "absolute inset-0 flex items-center justify-center";
608
- declare const youtubePlayButtonInnerBase = "flex items-center justify-center text-red-600 drop-shadow-lg transition-transform group-hover:scale-105";
608
+ declare const youtubePlayButtonInnerBase = "flex items-center justify-center rounded-xl bg-red-600 px-4 py-2 text-white drop-shadow-lg transition-transform group-hover:scale-105";
609
609
  declare const youtubeDescriptionBase = "mt-2 text-sm text-muted-foreground";
610
610
  declare const youtubeChaptersBase = "group mt-3 rounded-lg border border-border bg-muted/40";
611
611
  declare const youtubeChaptersSummaryBase = "flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 text-sm font-medium [&::-webkit-details-marker]:hidden";
@@ -801,6 +801,8 @@ interface LinkPreviewAttributes {
801
801
  provider: string;
802
802
  type: 'bookmark' | 'embed';
803
803
  }
804
+ /** Resolve bookmark metadata through an app-owned server or a CORS-enabled metadata service. */
805
+ type LinkPreviewFetcher = (url: string) => Promise<Omit<LinkPreviewAttributes, 'url' | 'type'>>;
804
806
  interface ImageUploadResult {
805
807
  src: string;
806
808
  srcset?: string;
@@ -832,8 +834,8 @@ interface EditorNodeViews {
832
834
  }
833
835
  /**
834
836
  * App-specific seams. These replace behaviour the source editor hardcoded, so the component
835
- * stays app-agnostic: mention search (was a fixed `/api/search/internal` fetch), internal-link
836
- * hrefs (were fixed `/read/...` paths), and image upload (was an app-specific endpoint).
837
+ * stays app-agnostic: mention search, internal-link hrefs, image upload, and bookmark metadata
838
+ * loading.
837
839
  */
838
840
  interface EditorSeams {
839
841
  /** Replaces the source editor's hardcoded internal-search fetch. */
@@ -842,6 +844,8 @@ interface EditorSeams {
842
844
  hrefBuilder?: (item: MentionItem) => string;
843
845
  /** Replaces the app-specific image upload. */
844
846
  onUpload?: (file: File) => Promise<ImageUploadResult>;
847
+ /** Resolves Open Graph or SEO metadata for bookmark cards. */
848
+ fetchLinkPreview?: LinkPreviewFetcher;
845
849
  }
846
850
  interface BuildExtensionsOptions extends EditorSeams {
847
851
  nodeViews: EditorNodeViews;
@@ -958,4 +962,4 @@ declare module '@tiptap/core' {
958
962
  }
959
963
  declare const createNoticeNode: (nodeView?: NodeViewFactory) => Node<any, any>;
960
964
 
961
- export { type BadgeProps, type BadgeVariants, type BuildExtensionsOptions, type ButtonProps, type ButtonVariants, type CardCoverProps, type CardProps, type CardVariants, type ChartProps, type ChartSeries, type CheckboxProps, type CheckboxVariants, type CodeBlockProps, type ComboboxItemVariants, type ComboboxProps, type EditorCounts, EditorHeading, type EditorNodeViews, type EditorSeams, ExitHeading, type FigureProps, type FileEntry, HeadingWithId, type ImageUploadResult, type InputProps, type InputVariants, type ItemProps, type ItemVariants, type LaTeXProps, type LanguageTab, type LinkPreviewAttributes, type ListboxItemData, type ManimModule, type ManimProps, type ManimRecordingScene, type MentionItem, type MentionListElement, type MermaidProps, type MultipleChoiceQuestionData, type NativeSelectVariants, type NavbarDensity, type NavbarMenuDensity, type NavbarMenuVariant, type NavbarVariant, type NodeViewFactory, type NoticeAttributes, type NoticeProps, type NoticeVariant, type NoticeVariants, type NumberInputProps, type NumericQuestionData, type OverlayPlacementOptions, type OverlayPosition, type PageGutterContentVariants, type PageGutterVariants, type PageVariants, type PrevNextProps, type ProseProps, type ProseVariants, type Question, type RevealProps, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, type SelectItemData, type SelectProps, type SidebarContextProps, type SidebarMenuButtonVariants, type SingleChoiceQuestionData, type SlashCommandItem, type SwitchProps, type SwitchVariants, THEMES, THEME_NAMES, type TabsIndicatorVariants, type TabsListVariants, type TagsInputProps, type TextareaProps, type ThemeMeta, TitleHeading, type ToggleButtonProps, type ToggleButtonVariants, type ToggleGroupProps, type ToggleGroupRootVariants, type UrlMentionAttributes, type YouTubeChapter, type YouTubeProps, badgeVariants, buildChartDefinition, buildExtensions, buttonVariants, cardBodyBase, cardCoverVariants, cardDescriptionBase, cardFooterBase, cardHeaderBase, cardTitleBase, cardVariants, centerBase, chartPlaceholderBase, chartPlaceholderLabelBase, chartRootBase, checkboxGroupBase, checkboxIndicatorBase, checkboxLabelBase, checkboxVariants, clipboardTriggerBase, cn, codeBlockBodyBase, codeBlockBodyScrollableBase, codeBlockContentBase, codeBlockCopyFloatBase, codeBlockHeaderBase, codeBlockHeaderInfoBase, codeBlockHighlightBase, codeBlockLineNumbersBase, codeBlockLoadingBase, codeBlockRootBase, codeBlockSpinnerBase, codeBlockTitleBase, colBase, comboboxClearTriggerBase, comboboxContentBase, comboboxControlBase, comboboxEmptyBase, comboboxInputBase, comboboxItemGroupLabelBase, comboboxItemIndicatorBase, comboboxItemVariants, comboboxListBase, comboboxPositionerBase, comboboxTriggerBase, containerBase, createCodeBlockCustom, createImageNode, createInternalMention, createLinkPreview, createNoticeNode, createUrlMention, defaultChartColor, defaultListboxFilter, dialogBackdropBase, dialogCloseTriggerBase, dialogContentBase, dialogDescriptionBase, dialogFooterBase, dialogFooterStickyBase, dialogFullscreenContentBase, dialogHeaderBase, dialogHeaderStickyBase, dialogPositionerBase, dialogTitleBase, extractYouTubeId, feedbackCorrectBase, feedbackExplanationBase, feedbackIncorrectBase, fetchYouTubeMetadata, fieldErrorBase, fieldHelperBase, fieldLabelBase, fieldRequiredIndicatorBase, fieldRootBase, fieldsetErrorBase, fieldsetHelperBase, fieldsetLegendBase, fieldsetRootBase, figureCaptionBase, figureImageBase, figureRootBase, findEditorScrollContainer, formatTime, hstackBase, injectCodeBlockStyles, inputVariants, insertPastedUrlAsLink, itemVariants, latexDisplayBase, latexErrorBase, latexInlineBase, latexRootBase, listboxContentBase, listboxEmptyBase, listboxInputBase, listboxItemBase, listboxItemIndicatorBase, listboxItemTextBase, listboxLabelBase, listboxRootBase, lockEditorOverlayScroll, manimCaptionBase, manimContainerBase, manimErrorBase, manimPlaceholderBase, manimPlaceholderLabelBase, manimRootBase, mermaidLoadingBase, mermaidRootBase, mermaidSourceBase, mermaidSvgAspectRatio, mermaidSvgBase, nativeSelectIconBase, nativeSelectVariants, nativeSelectWrapperBase, navbarActionsBase, navbarActivationAreaBase, navbarBrandBase, navbarContainerBase, navbarDensityVariants, navbarMenuBase, navbarMenuContentBase, navbarMenuIndicatorBase, navbarMenuItemBase, navbarMenuLinkBase, navbarMenuListBase, navbarMenuPlacementVariants, navbarMenuRootBase, navbarMenuTriggerStyle, navbarMenuViewportBase, navbarMenuViewportPositionerBase, navbarMobileActionsBase, navbarMobileBase, navbarMobileContentBase, navbarMobileHeaderBase, navbarMobileMenuBase, navbarMobileMenuContentBase, navbarMobileMenuTriggerBase, navbarShrunkBase, navbarTriggerVariants, navbarVariants, noticeDescriptionBase, noticeTitleBase, noticeVariants, numberInputControlBase, numberInputInputBase, numberInputRootBase, numberInputTriggerBase, pageContentBase, pageFooterBase, pageGutterAreaBase, pageGutterContentVariants, pageGutterVariants, pageSectionBase, pageVariants, paginationEllipsisBase, paginationItemBase, paginationRootBase, paginationTriggerBase, parseYouTubeChapters, placeEditorOverlay, placeEditorOverlayAt, popoverArrowBase, popoverCloseTriggerBase, popoverContentBase, popoverDescriptionBase, popoverIndicatorBase, popoverPositionerBase, popoverTitleBase, prevNextDirectionBase, prevNextLinkBase, prevNextLinkNextBase, prevNextRootBase, prevNextSpacerBase, prevNextTitleBase, proseVariants, questionCardBase, questionCheckButtonBase, questionGroupBase, questionInputBase, questionOptionBase, questionOptionCorrectBase, questionOptionIncorrectBase, questionPromptBase, questionUnitBase, quizHeaderBase, quizResetButtonBase, quizResultBase, quizResultTextBase, quizResultTitleBase, quizRootBase, quizScoreBase, quizSubmitButtonBase, quizTitleBase, radioGroupItemControlBase, radioGroupItemTextBase, radioGroupRootBase, registerImageInsertCallback, registerYouTubeInsertCallback, renderChartSvgString, renderCodeToHtml, renderMermaidSource, resolveMermaidThemeVariables, revealChevronBase, revealContentBase, revealRootBase, revealTriggerBase, rowBase, scrollContentBase, scrollCornerBase, scrollRootBase, scrollScrollbarBase, scrollThumbBase, scrollViewportBase, selectClearTriggerBase, selectContentBase, selectIndicatorBase, selectItemBase, selectItemGroupLabelBase, selectItemIndicatorBase, selectItemTextBase, selectPositionerBase, selectTriggerBase, selectValueBase, sidebarMenuButtonVariants, sidebarStyles, slashCommands, splitterPanelBase, splitterResizeTriggerBase, splitterResizeTriggerIndicatorBase, splitterResizeTriggerSeparatorBase, splitterRootBase, stackBase, switchControlBase, switchLabelBase, switchThumbBase, switchVariants, tabsContentBase, tabsIndicatorBase, tabsIndicatorVariants, tabsListBase, tabsListVariants, tabsRootBase, tabsTriggerBase, tagsInputClearTriggerBase, tagsInputControlBase, tagsInputInputBase, tagsInputItemBase, tagsInputItemDeleteTriggerBase, tagsInputItemInputBase, tagsInputItemTextBase, tagsInputRootBase, textareaBase, toLaTeX, toggleButtonVariants, toggleGroupRootVariants, tooltipArrowBase, tooltipContentBase, tooltipPositionerBase, unregisterImageInsertCallback, unregisterYouTubeInsertCallback, vstackBase, windowBodyBase, windowCloseTriggerBase, windowContentBase, windowControlBase, windowDragTriggerBase, windowHeaderBase, windowPositionerBase, windowResizeTriggerBase, windowStageTriggerBase, windowTitleBase, youtubeChapterButtonBase, youtubeChapterLabelBase, youtubeChapterTimeBase, youtubeChaptersBase, youtubeChaptersChevronBase, youtubeChaptersListBase, youtubeChaptersSummaryBase, youtubeDescriptionBase, youtubeFacadeBase, youtubePlayButtonBase, youtubePlayButtonInnerBase, youtubeRootBase, youtubeTitleBase };
965
+ export { type BadgeProps, type BadgeVariants, type BuildExtensionsOptions, type ButtonProps, type ButtonVariants, type CardCoverProps, type CardProps, type CardVariants, type ChartProps, type ChartSeries, type CheckboxProps, type CheckboxVariants, type CodeBlockProps, type ComboboxItemVariants, type ComboboxProps, type EditorCounts, EditorHeading, type EditorNodeViews, type EditorSeams, ExitHeading, type FigureProps, type FileEntry, HeadingWithId, type ImageUploadResult, type InputProps, type InputVariants, type ItemProps, type ItemVariants, type LaTeXProps, type LanguageTab, type LinkPreviewAttributes, type LinkPreviewFetcher, type ListboxItemData, type ManimModule, type ManimProps, type ManimRecordingScene, type MentionItem, type MentionListElement, type MermaidProps, type MultipleChoiceQuestionData, type NativeSelectVariants, type NavbarDensity, type NavbarMenuDensity, type NavbarMenuVariant, type NavbarVariant, type NodeViewFactory, type NoticeAttributes, type NoticeProps, type NoticeVariant, type NoticeVariants, type NumberInputProps, type NumericQuestionData, type OverlayPlacementOptions, type OverlayPosition, type PageGutterContentVariants, type PageGutterVariants, type PageVariants, type PrevNextProps, type ProseProps, type ProseVariants, type Question, type RevealProps, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_WIDTH_MOBILE, type SelectItemData, type SelectProps, type SidebarContextProps, type SidebarMenuButtonVariants, type SingleChoiceQuestionData, type SlashCommandItem, type SwitchProps, type SwitchVariants, THEMES, THEME_NAMES, type TabsIndicatorVariants, type TabsListVariants, type TagsInputProps, type TextareaProps, type ThemeMeta, TitleHeading, type ToggleButtonProps, type ToggleButtonVariants, type ToggleGroupProps, type ToggleGroupRootVariants, type UrlMentionAttributes, type YouTubeChapter, type YouTubeProps, badgeVariants, buildChartDefinition, buildExtensions, buttonVariants, cardBodyBase, cardCoverVariants, cardDescriptionBase, cardFooterBase, cardHeaderBase, cardTitleBase, cardVariants, centerBase, chartPlaceholderBase, chartPlaceholderLabelBase, chartRootBase, checkboxGroupBase, checkboxIndicatorBase, checkboxLabelBase, checkboxVariants, clipboardTriggerBase, cn, codeBlockBodyBase, codeBlockBodyScrollableBase, codeBlockContentBase, codeBlockCopyFloatBase, codeBlockHeaderBase, codeBlockHeaderInfoBase, codeBlockHighlightBase, codeBlockLineNumbersBase, codeBlockLoadingBase, codeBlockRootBase, codeBlockSpinnerBase, codeBlockTitleBase, colBase, comboboxClearTriggerBase, comboboxContentBase, comboboxControlBase, comboboxEmptyBase, comboboxInputBase, comboboxItemGroupLabelBase, comboboxItemIndicatorBase, comboboxItemVariants, comboboxListBase, comboboxPositionerBase, comboboxTriggerBase, containerBase, createCodeBlockCustom, createImageNode, createInternalMention, createLinkPreview, createNoticeNode, createUrlMention, defaultChartColor, defaultListboxFilter, dialogBackdropBase, dialogCloseTriggerBase, dialogContentBase, dialogDescriptionBase, dialogFooterBase, dialogFooterStickyBase, dialogFullscreenContentBase, dialogHeaderBase, dialogHeaderStickyBase, dialogPositionerBase, dialogTitleBase, extractYouTubeId, feedbackCorrectBase, feedbackExplanationBase, feedbackIncorrectBase, fetchYouTubeMetadata, fieldErrorBase, fieldHelperBase, fieldLabelBase, fieldRequiredIndicatorBase, fieldRootBase, fieldsetErrorBase, fieldsetHelperBase, fieldsetLegendBase, fieldsetRootBase, figureCaptionBase, figureImageBase, figureRootBase, findEditorScrollContainer, formatTime, hstackBase, injectCodeBlockStyles, inputVariants, insertPastedUrlAsLink, itemVariants, latexDisplayBase, latexErrorBase, latexInlineBase, latexRootBase, listboxContentBase, listboxEmptyBase, listboxInputBase, listboxItemBase, listboxItemIndicatorBase, listboxItemTextBase, listboxLabelBase, listboxRootBase, lockEditorOverlayScroll, manimCaptionBase, manimContainerBase, manimErrorBase, manimPlaceholderBase, manimPlaceholderLabelBase, manimRootBase, mermaidLoadingBase, mermaidRootBase, mermaidSourceBase, mermaidSvgAspectRatio, mermaidSvgBase, nativeSelectIconBase, nativeSelectVariants, nativeSelectWrapperBase, navbarActionsBase, navbarActivationAreaBase, navbarBrandBase, navbarContainerBase, navbarDensityVariants, navbarMenuBase, navbarMenuContentBase, navbarMenuIndicatorBase, navbarMenuItemBase, navbarMenuLinkBase, navbarMenuListBase, navbarMenuPlacementVariants, navbarMenuRootBase, navbarMenuTriggerStyle, navbarMenuViewportBase, navbarMenuViewportPositionerBase, navbarMobileActionsBase, navbarMobileBase, navbarMobileContentBase, navbarMobileHeaderBase, navbarMobileMenuBase, navbarMobileMenuContentBase, navbarMobileMenuTriggerBase, navbarShrunkBase, navbarTriggerVariants, navbarVariants, noticeDescriptionBase, noticeTitleBase, noticeVariants, numberInputControlBase, numberInputInputBase, numberInputRootBase, numberInputTriggerBase, pageContentBase, pageFooterBase, pageGutterAreaBase, pageGutterContentVariants, pageGutterVariants, pageSectionBase, pageVariants, paginationEllipsisBase, paginationItemBase, paginationRootBase, paginationTriggerBase, parseYouTubeChapters, placeEditorOverlay, placeEditorOverlayAt, popoverArrowBase, popoverCloseTriggerBase, popoverContentBase, popoverDescriptionBase, popoverIndicatorBase, popoverPositionerBase, popoverTitleBase, prevNextDirectionBase, prevNextLinkBase, prevNextLinkNextBase, prevNextRootBase, prevNextSpacerBase, prevNextTitleBase, proseVariants, questionCardBase, questionCheckButtonBase, questionGroupBase, questionInputBase, questionOptionBase, questionOptionCorrectBase, questionOptionIncorrectBase, questionPromptBase, questionUnitBase, quizHeaderBase, quizResetButtonBase, quizResultBase, quizResultTextBase, quizResultTitleBase, quizRootBase, quizScoreBase, quizSubmitButtonBase, quizTitleBase, radioGroupItemControlBase, radioGroupItemTextBase, radioGroupRootBase, registerImageInsertCallback, registerYouTubeInsertCallback, renderChartSvgString, renderCodeToHtml, renderMermaidSource, resolveMermaidThemeVariables, revealChevronBase, revealContentBase, revealRootBase, revealTriggerBase, rowBase, scrollContentBase, scrollCornerBase, scrollRootBase, scrollScrollbarBase, scrollThumbBase, scrollViewportBase, selectClearTriggerBase, selectContentBase, selectIndicatorBase, selectItemBase, selectItemGroupLabelBase, selectItemIndicatorBase, selectItemTextBase, selectPositionerBase, selectTriggerBase, selectValueBase, sidebarMenuButtonVariants, sidebarStyles, slashCommands, splitterPanelBase, splitterResizeTriggerBase, splitterResizeTriggerIndicatorBase, splitterResizeTriggerSeparatorBase, splitterRootBase, stackBase, switchControlBase, switchLabelBase, switchThumbBase, switchVariants, tabsContentBase, tabsIndicatorBase, tabsIndicatorVariants, tabsListBase, tabsListVariants, tabsRootBase, tabsTriggerBase, tagsInputClearTriggerBase, tagsInputControlBase, tagsInputInputBase, tagsInputItemBase, tagsInputItemDeleteTriggerBase, tagsInputItemInputBase, tagsInputItemTextBase, tagsInputRootBase, textareaBase, toLaTeX, toggleButtonVariants, toggleGroupRootVariants, tooltipArrowBase, tooltipContentBase, tooltipPositionerBase, unregisterImageInsertCallback, unregisterYouTubeInsertCallback, vstackBase, windowBodyBase, windowCloseTriggerBase, windowContentBase, windowControlBase, windowDragTriggerBase, windowHeaderBase, windowPositionerBase, windowResizeTriggerBase, windowStageTriggerBase, windowTitleBase, youtubeChapterButtonBase, youtubeChapterLabelBase, youtubeChapterTimeBase, youtubeChaptersBase, youtubeChaptersChevronBase, youtubeChaptersListBase, youtubeChaptersSummaryBase, youtubeDescriptionBase, youtubeFacadeBase, youtubePlayButtonBase, youtubePlayButtonInnerBase, youtubeRootBase, youtubeTitleBase };
package/dist/index.js CHANGED
@@ -949,7 +949,7 @@ var youtubeRootBase = "not-prose my-4";
949
949
  var youtubeTitleBase = "mb-2 text-lg font-semibold text-foreground";
950
950
  var youtubeFacadeBase = "group relative aspect-video w-full cursor-pointer overflow-hidden rounded-md border border-border bg-muted/40";
951
951
  var youtubePlayButtonBase = "absolute inset-0 flex items-center justify-center";
952
- var youtubePlayButtonInnerBase = "flex items-center justify-center text-red-600 drop-shadow-lg transition-transform group-hover:scale-105";
952
+ var youtubePlayButtonInnerBase = "flex items-center justify-center rounded-xl bg-red-600 px-4 py-2 text-white drop-shadow-lg transition-transform group-hover:scale-105";
953
953
  var youtubeDescriptionBase = "mt-2 text-sm text-muted-foreground";
954
954
  var youtubeChaptersBase = "group mt-3 rounded-lg border border-border bg-muted/40";
955
955
  var youtubeChaptersSummaryBase = "flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 text-sm font-medium [&::-webkit-details-marker]:hidden";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudvoyant/vortex-ui",
3
- "version": "0.17.0-rc.202609140923.2a6f21c",
3
+ "version": "0.18.0",
4
4
  "description": "vortex-ui shared component interfaces, cva variants, and theme",
5
5
  "license": "MIT",
6
6
  "type": "module",