@sesionario/blocks 1.15.0 → 1.17.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 +285 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -4
- package/dist/index.d.ts +53 -4
- package/dist/index.js +283 -122
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, RefObject, CSSProperties } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
7
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
7
8
|
import { HlsConfig, RetryConfig, LoaderResponse } from 'hls.js';
|
|
8
9
|
import * as RPNInput from 'react-phone-number-input';
|
|
@@ -245,7 +246,7 @@ type LanguageSwitcherProps = {
|
|
|
245
246
|
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, variant, showIcon, align, side, }: LanguageSwitcherProps): React.JSX.Element;
|
|
246
247
|
|
|
247
248
|
type PlatformNavbarProps = {
|
|
248
|
-
/** Brand mark (isotype). Typically a link to the
|
|
249
|
+
/** Brand mark (isotype). Typically a link to the member app home. */
|
|
249
250
|
logo: ReactNode;
|
|
250
251
|
/** Optional control before the center (e.g. SidebarTrigger). */
|
|
251
252
|
leading?: ReactNode;
|
|
@@ -283,6 +284,10 @@ type PlatformAccountMenuOrg = {
|
|
|
283
284
|
id: string;
|
|
284
285
|
name: string;
|
|
285
286
|
slug: string;
|
|
287
|
+
logo?: string | null;
|
|
288
|
+
};
|
|
289
|
+
type MergedPlatformAccountOrg = PlatformAccountMenuOrg & {
|
|
290
|
+
canManage: boolean;
|
|
286
291
|
};
|
|
287
292
|
type PlatformAccountMenuUrls = {
|
|
288
293
|
authAppUrl: string;
|
|
@@ -300,11 +305,18 @@ type PlatformAccountMenuLabels = {
|
|
|
300
305
|
personalProfile: string;
|
|
301
306
|
activity: string;
|
|
302
307
|
professionalProfile: string;
|
|
308
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
303
309
|
mainApp: string;
|
|
310
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
304
311
|
orgManagement: string;
|
|
305
312
|
backoffice: string;
|
|
313
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
306
314
|
memberOrgs: string;
|
|
315
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
307
316
|
managementOrgs: string;
|
|
317
|
+
showMoreOrgs: string;
|
|
318
|
+
showLessOrgs: string;
|
|
319
|
+
manageOrg: string;
|
|
308
320
|
language: string;
|
|
309
321
|
theme: string;
|
|
310
322
|
themeLight: string;
|
|
@@ -315,6 +327,13 @@ type PlatformAccountMenuLabels = {
|
|
|
315
327
|
signingOut: string;
|
|
316
328
|
accountSettings: string;
|
|
317
329
|
};
|
|
330
|
+
/** Visible org rows before “Show more”. */
|
|
331
|
+
declare const PLATFORM_ACCOUNT_ORG_COLLAPSE_AT = 4;
|
|
332
|
+
/**
|
|
333
|
+
* Union member + manageable orgs by id (member order first, then manageable-only).
|
|
334
|
+
* `canManage` is true when the org appears in `manageableOrgs`.
|
|
335
|
+
*/
|
|
336
|
+
declare function mergePlatformAccountOrgs(memberOrgs: PlatformAccountMenuOrg[], manageableOrgs: PlatformAccountMenuOrg[]): MergedPlatformAccountOrg[];
|
|
318
337
|
type PlatformAccountMenuProps = {
|
|
319
338
|
variant?: PlatformAccountMenuVariant;
|
|
320
339
|
/** While session is resolving. */
|
|
@@ -333,13 +352,29 @@ type PlatformAccountMenuProps = {
|
|
|
333
352
|
onSignOut?: () => void | Promise<void>;
|
|
334
353
|
/** Optional extra items after the primary links (before language/theme). */
|
|
335
354
|
extraItems?: ReactNode;
|
|
355
|
+
/**
|
|
356
|
+
* Custom trigger (e.g. sidebar user button). When omitted, uses the
|
|
357
|
+
* default avatar (signed-in) or settings cog (guest).
|
|
358
|
+
*/
|
|
359
|
+
trigger?: ReactNode;
|
|
360
|
+
/** Dropdown content side (sidebar menus typically open to the right). */
|
|
361
|
+
contentSide?: "top" | "right" | "bottom" | "left";
|
|
362
|
+
contentAlign?: "start" | "center" | "end";
|
|
363
|
+
contentSideOffset?: number;
|
|
364
|
+
contentClassName?: string;
|
|
336
365
|
className?: string;
|
|
337
366
|
};
|
|
338
367
|
/**
|
|
339
368
|
* Cross-app account / settings menu. Guest trigger is a settings cog;
|
|
340
369
|
* signed-in trigger is the user avatar.
|
|
341
370
|
*/
|
|
342
|
-
declare function PlatformAccountMenu({ variant, isPending, user, isAdmin, verificationStatus, urls, memberOrgs, manageableOrgs, languages, currentLanguage, onLanguageChange, labels: labelsProp, onSignOut, extraItems, className, }: PlatformAccountMenuProps): React.JSX.Element;
|
|
371
|
+
declare function PlatformAccountMenu({ variant, isPending, user, isAdmin, verificationStatus, urls, memberOrgs, manageableOrgs, languages, currentLanguage, onLanguageChange, labels: labelsProp, onSignOut, extraItems, trigger: triggerProp, contentSide, contentAlign, contentSideOffset, contentClassName, className, }: PlatformAccountMenuProps): React.JSX.Element;
|
|
372
|
+
|
|
373
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
374
|
+
inset?: boolean;
|
|
375
|
+
variant?: "default" | "destructive";
|
|
376
|
+
}): React.JSX.Element;
|
|
377
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
343
378
|
|
|
344
379
|
interface AvatarEditorProps {
|
|
345
380
|
/** Current cropped image as data URL (controlled) */
|
|
@@ -740,6 +775,20 @@ declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | unde
|
|
|
740
775
|
|
|
741
776
|
declare function useMediaQuery(query: string): boolean;
|
|
742
777
|
|
|
778
|
+
type ScrollFadeXEdges = {
|
|
779
|
+
canScrollLeft: boolean;
|
|
780
|
+
canScrollRight: boolean;
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* Edge-aware horizontal scroll fade: returns a ref + CSS vars for
|
|
784
|
+
* `scroll-fade-x-edges` (transparent = show fade on that edge).
|
|
785
|
+
*/
|
|
786
|
+
declare function useScrollFadeXEdges(enabled?: boolean): {
|
|
787
|
+
scrollerRef: RefObject<HTMLDivElement | null>;
|
|
788
|
+
fadeStyle: CSSProperties;
|
|
789
|
+
edges: ScrollFadeXEdges;
|
|
790
|
+
};
|
|
791
|
+
|
|
743
792
|
interface UseSearchHotkeyOptions {
|
|
744
793
|
/** Initial open state. Defaults to `false`. */
|
|
745
794
|
defaultOpen?: boolean;
|
|
@@ -1221,4 +1270,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1221
1270
|
|
|
1222
1271
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1223
1272
|
|
|
1224
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, type DescribedPlaybackError, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiInput, type EmojiInputProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmojiTextarea, type EmojiTextareaProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, ExpandableText, type ExpandableTextProps, type FeatureEntry, type FindOrCreateConversationInput, type HlsPlayerMode, ImageLightbox, type ImageLightboxLabels, type ImageLightboxProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageComposer, type MessageComposerProps, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, type OpenThreadRequest, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, PlatformAccountMenu, type PlatformAccountMenuLabels, type PlatformAccountMenuOrg, type PlatformAccountMenuProps, type PlatformAccountMenuUrls, type PlatformAccountMenuUser, type PlatformAccountMenuVariant, PlatformNavbar, type PlatformNavbarProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type ProfessionalVerificationStatus, type QualityLevel, type RealtimeEvent, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, SearchablePicker, type SearchablePickerCreateOption, type SearchablePickerLabels, type SearchablePickerMultipleProps, type SearchablePickerPinned, type SearchablePickerProps, type SearchablePickerSingleProps, type SupportChatClient, type SupportConversation, type SupportMessage, type SupportMessengerItem, type SupportMessengerLabels, SupportMessengerProvider, type SupportMessengerProviderProps, type SupportMessengerTab, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseRealtimeChannelOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, type UseSupportConversationOptions, type UseSupportConversationResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fuzzyMatch, insertAtCaret, markerVariants, normalizeEmojiQuery, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
1273
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiInput, type EmojiInputProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmojiTextarea, type EmojiTextareaProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, ExpandableText, type ExpandableTextProps, type FeatureEntry, type FindOrCreateConversationInput, type HlsPlayerMode, ImageLightbox, type ImageLightboxLabels, type ImageLightboxProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, type MergedPlatformAccountOrg, Message, MessageAvatar, MessageComposer, type MessageComposerProps, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, type OpenThreadRequest, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PLATFORM_ACCOUNT_ORG_COLLAPSE_AT, PhoneInput, type PhoneInputProps, PlatformAccountMenu, type PlatformAccountMenuLabels, type PlatformAccountMenuOrg, type PlatformAccountMenuProps, type PlatformAccountMenuUrls, type PlatformAccountMenuUser, type PlatformAccountMenuVariant, PlatformNavbar, type PlatformNavbarProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type ProfessionalVerificationStatus, type QualityLevel, type RealtimeEvent, type ScrollFadeXEdges, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, SearchablePicker, type SearchablePickerCreateOption, type SearchablePickerLabels, type SearchablePickerMultipleProps, type SearchablePickerPinned, type SearchablePickerProps, type SearchablePickerSingleProps, type SupportChatClient, type SupportConversation, type SupportMessage, type SupportMessengerItem, type SupportMessengerLabels, SupportMessengerProvider, type SupportMessengerProviderProps, type SupportMessengerTab, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseRealtimeChannelOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, type UseSupportConversationOptions, type UseSupportConversationResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, RefObject, CSSProperties } from 'react';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
7
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
7
8
|
import { HlsConfig, RetryConfig, LoaderResponse } from 'hls.js';
|
|
8
9
|
import * as RPNInput from 'react-phone-number-input';
|
|
@@ -245,7 +246,7 @@ type LanguageSwitcherProps = {
|
|
|
245
246
|
declare function LanguageSwitcher({ languages: propLanguages, currentLanguage: propCurrentLanguage, onLanguageChange: propOnLanguageChange, labels, className, size, shape, variant, showIcon, align, side, }: LanguageSwitcherProps): React.JSX.Element;
|
|
246
247
|
|
|
247
248
|
type PlatformNavbarProps = {
|
|
248
|
-
/** Brand mark (isotype). Typically a link to the
|
|
249
|
+
/** Brand mark (isotype). Typically a link to the member app home. */
|
|
249
250
|
logo: ReactNode;
|
|
250
251
|
/** Optional control before the center (e.g. SidebarTrigger). */
|
|
251
252
|
leading?: ReactNode;
|
|
@@ -283,6 +284,10 @@ type PlatformAccountMenuOrg = {
|
|
|
283
284
|
id: string;
|
|
284
285
|
name: string;
|
|
285
286
|
slug: string;
|
|
287
|
+
logo?: string | null;
|
|
288
|
+
};
|
|
289
|
+
type MergedPlatformAccountOrg = PlatformAccountMenuOrg & {
|
|
290
|
+
canManage: boolean;
|
|
286
291
|
};
|
|
287
292
|
type PlatformAccountMenuUrls = {
|
|
288
293
|
authAppUrl: string;
|
|
@@ -300,11 +305,18 @@ type PlatformAccountMenuLabels = {
|
|
|
300
305
|
personalProfile: string;
|
|
301
306
|
activity: string;
|
|
302
307
|
professionalProfile: string;
|
|
308
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
303
309
|
mainApp: string;
|
|
310
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
304
311
|
orgManagement: string;
|
|
305
312
|
backoffice: string;
|
|
313
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
306
314
|
memberOrgs: string;
|
|
315
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
307
316
|
managementOrgs: string;
|
|
317
|
+
showMoreOrgs: string;
|
|
318
|
+
showLessOrgs: string;
|
|
319
|
+
manageOrg: string;
|
|
308
320
|
language: string;
|
|
309
321
|
theme: string;
|
|
310
322
|
themeLight: string;
|
|
@@ -315,6 +327,13 @@ type PlatformAccountMenuLabels = {
|
|
|
315
327
|
signingOut: string;
|
|
316
328
|
accountSettings: string;
|
|
317
329
|
};
|
|
330
|
+
/** Visible org rows before “Show more”. */
|
|
331
|
+
declare const PLATFORM_ACCOUNT_ORG_COLLAPSE_AT = 4;
|
|
332
|
+
/**
|
|
333
|
+
* Union member + manageable orgs by id (member order first, then manageable-only).
|
|
334
|
+
* `canManage` is true when the org appears in `manageableOrgs`.
|
|
335
|
+
*/
|
|
336
|
+
declare function mergePlatformAccountOrgs(memberOrgs: PlatformAccountMenuOrg[], manageableOrgs: PlatformAccountMenuOrg[]): MergedPlatformAccountOrg[];
|
|
318
337
|
type PlatformAccountMenuProps = {
|
|
319
338
|
variant?: PlatformAccountMenuVariant;
|
|
320
339
|
/** While session is resolving. */
|
|
@@ -333,13 +352,29 @@ type PlatformAccountMenuProps = {
|
|
|
333
352
|
onSignOut?: () => void | Promise<void>;
|
|
334
353
|
/** Optional extra items after the primary links (before language/theme). */
|
|
335
354
|
extraItems?: ReactNode;
|
|
355
|
+
/**
|
|
356
|
+
* Custom trigger (e.g. sidebar user button). When omitted, uses the
|
|
357
|
+
* default avatar (signed-in) or settings cog (guest).
|
|
358
|
+
*/
|
|
359
|
+
trigger?: ReactNode;
|
|
360
|
+
/** Dropdown content side (sidebar menus typically open to the right). */
|
|
361
|
+
contentSide?: "top" | "right" | "bottom" | "left";
|
|
362
|
+
contentAlign?: "start" | "center" | "end";
|
|
363
|
+
contentSideOffset?: number;
|
|
364
|
+
contentClassName?: string;
|
|
336
365
|
className?: string;
|
|
337
366
|
};
|
|
338
367
|
/**
|
|
339
368
|
* Cross-app account / settings menu. Guest trigger is a settings cog;
|
|
340
369
|
* signed-in trigger is the user avatar.
|
|
341
370
|
*/
|
|
342
|
-
declare function PlatformAccountMenu({ variant, isPending, user, isAdmin, verificationStatus, urls, memberOrgs, manageableOrgs, languages, currentLanguage, onLanguageChange, labels: labelsProp, onSignOut, extraItems, className, }: PlatformAccountMenuProps): React.JSX.Element;
|
|
371
|
+
declare function PlatformAccountMenu({ variant, isPending, user, isAdmin, verificationStatus, urls, memberOrgs, manageableOrgs, languages, currentLanguage, onLanguageChange, labels: labelsProp, onSignOut, extraItems, trigger: triggerProp, contentSide, contentAlign, contentSideOffset, contentClassName, className, }: PlatformAccountMenuProps): React.JSX.Element;
|
|
372
|
+
|
|
373
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
374
|
+
inset?: boolean;
|
|
375
|
+
variant?: "default" | "destructive";
|
|
376
|
+
}): React.JSX.Element;
|
|
377
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
343
378
|
|
|
344
379
|
interface AvatarEditorProps {
|
|
345
380
|
/** Current cropped image as data URL (controlled) */
|
|
@@ -740,6 +775,20 @@ declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | unde
|
|
|
740
775
|
|
|
741
776
|
declare function useMediaQuery(query: string): boolean;
|
|
742
777
|
|
|
778
|
+
type ScrollFadeXEdges = {
|
|
779
|
+
canScrollLeft: boolean;
|
|
780
|
+
canScrollRight: boolean;
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* Edge-aware horizontal scroll fade: returns a ref + CSS vars for
|
|
784
|
+
* `scroll-fade-x-edges` (transparent = show fade on that edge).
|
|
785
|
+
*/
|
|
786
|
+
declare function useScrollFadeXEdges(enabled?: boolean): {
|
|
787
|
+
scrollerRef: RefObject<HTMLDivElement | null>;
|
|
788
|
+
fadeStyle: CSSProperties;
|
|
789
|
+
edges: ScrollFadeXEdges;
|
|
790
|
+
};
|
|
791
|
+
|
|
743
792
|
interface UseSearchHotkeyOptions {
|
|
744
793
|
/** Initial open state. Defaults to `false`. */
|
|
745
794
|
defaultOpen?: boolean;
|
|
@@ -1221,4 +1270,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1221
1270
|
|
|
1222
1271
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1223
1272
|
|
|
1224
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, type DescribedPlaybackError, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiInput, type EmojiInputProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmojiTextarea, type EmojiTextareaProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, ExpandableText, type ExpandableTextProps, type FeatureEntry, type FindOrCreateConversationInput, type HlsPlayerMode, ImageLightbox, type ImageLightboxLabels, type ImageLightboxProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageComposer, type MessageComposerProps, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, type OpenThreadRequest, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, PlatformAccountMenu, type PlatformAccountMenuLabels, type PlatformAccountMenuOrg, type PlatformAccountMenuProps, type PlatformAccountMenuUrls, type PlatformAccountMenuUser, type PlatformAccountMenuVariant, PlatformNavbar, type PlatformNavbarProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type ProfessionalVerificationStatus, type QualityLevel, type RealtimeEvent, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, SearchablePicker, type SearchablePickerCreateOption, type SearchablePickerLabels, type SearchablePickerMultipleProps, type SearchablePickerPinned, type SearchablePickerProps, type SearchablePickerSingleProps, type SupportChatClient, type SupportConversation, type SupportMessage, type SupportMessengerItem, type SupportMessengerLabels, SupportMessengerProvider, type SupportMessengerProviderProps, type SupportMessengerTab, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseRealtimeChannelOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, type UseSupportConversationOptions, type UseSupportConversationResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fuzzyMatch, insertAtCaret, markerVariants, normalizeEmojiQuery, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
1273
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiInput, type EmojiInputProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmojiTextarea, type EmojiTextareaProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, ExpandableText, type ExpandableTextProps, type FeatureEntry, type FindOrCreateConversationInput, type HlsPlayerMode, ImageLightbox, type ImageLightboxLabels, type ImageLightboxProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, type MergedPlatformAccountOrg, Message, MessageAvatar, MessageComposer, type MessageComposerProps, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, type OpenThreadRequest, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PLATFORM_ACCOUNT_ORG_COLLAPSE_AT, PhoneInput, type PhoneInputProps, PlatformAccountMenu, type PlatformAccountMenuLabels, type PlatformAccountMenuOrg, type PlatformAccountMenuProps, type PlatformAccountMenuUrls, type PlatformAccountMenuUser, type PlatformAccountMenuVariant, PlatformNavbar, type PlatformNavbarProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type ProfessionalVerificationStatus, type QualityLevel, type RealtimeEvent, type ScrollFadeXEdges, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, SearchablePicker, type SearchablePickerCreateOption, type SearchablePickerLabels, type SearchablePickerMultipleProps, type SearchablePickerPinned, type SearchablePickerProps, type SearchablePickerSingleProps, type SupportChatClient, type SupportConversation, type SupportMessage, type SupportMessengerItem, type SupportMessengerLabels, SupportMessengerProvider, type SupportMessengerProviderProps, type SupportMessengerTab, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseRealtimeChannelOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, type UseSupportConversationOptions, type UseSupportConversationResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|