@sesionario/blocks 1.14.0 → 1.16.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 +521 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -12
- package/dist/index.d.ts +132 -12
- package/dist/index.js +518 -69
- 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';
|
|
@@ -244,6 +245,121 @@ type LanguageSwitcherProps = {
|
|
|
244
245
|
};
|
|
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
|
|
|
248
|
+
type PlatformNavbarProps = {
|
|
249
|
+
/** Brand mark (isotype). Typically a link to the member app home. */
|
|
250
|
+
logo: ReactNode;
|
|
251
|
+
/** Optional control before the center (e.g. SidebarTrigger). */
|
|
252
|
+
leading?: ReactNode;
|
|
253
|
+
/** Flex-growing center slot (tabs, subtitle). Horizontally scrollable. */
|
|
254
|
+
center?: ReactNode;
|
|
255
|
+
/** Fixed right cluster (search, notifications, account menu). */
|
|
256
|
+
right?: ReactNode;
|
|
257
|
+
className?: string;
|
|
258
|
+
/** Inner row class (padding / max-width shell). */
|
|
259
|
+
innerClassName?: string;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Shared sticky top chrome: logo | optional leading | scrollable center | fixed right.
|
|
263
|
+
* Apps inject search, notifications, and the account menu into `right`.
|
|
264
|
+
*/
|
|
265
|
+
declare function PlatformNavbar({ logo, leading, center, right, className, innerClassName, }: PlatformNavbarProps): React.JSX.Element;
|
|
266
|
+
|
|
267
|
+
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
268
|
+
interface VerifiedProfessionalBadgeProps {
|
|
269
|
+
status: ProfessionalVerificationStatus;
|
|
270
|
+
size?: "sm" | "md";
|
|
271
|
+
/** Icon-only with title/aria-label when false (default). */
|
|
272
|
+
showLabel?: boolean;
|
|
273
|
+
className?: string;
|
|
274
|
+
}
|
|
275
|
+
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): React.JSX.Element | null;
|
|
276
|
+
|
|
277
|
+
type PlatformAccountMenuVariant = "platform" | "professional";
|
|
278
|
+
type PlatformAccountMenuUser = {
|
|
279
|
+
name: string;
|
|
280
|
+
email: string;
|
|
281
|
+
image?: string | null;
|
|
282
|
+
};
|
|
283
|
+
type PlatformAccountMenuOrg = {
|
|
284
|
+
id: string;
|
|
285
|
+
name: string;
|
|
286
|
+
slug: string;
|
|
287
|
+
};
|
|
288
|
+
type PlatformAccountMenuUrls = {
|
|
289
|
+
authAppUrl: string;
|
|
290
|
+
appUrl: string;
|
|
291
|
+
adminUrl: string;
|
|
292
|
+
backofficeUrl: string;
|
|
293
|
+
loginPath?: string;
|
|
294
|
+
accountPath?: string;
|
|
295
|
+
activityPath?: string;
|
|
296
|
+
professionalProfilePath?: string;
|
|
297
|
+
};
|
|
298
|
+
type PlatformAccountMenuLabels = {
|
|
299
|
+
accountMenu: string;
|
|
300
|
+
settingsMenu: string;
|
|
301
|
+
personalProfile: string;
|
|
302
|
+
activity: string;
|
|
303
|
+
professionalProfile: string;
|
|
304
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
305
|
+
mainApp: string;
|
|
306
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
307
|
+
orgManagement: string;
|
|
308
|
+
backoffice: string;
|
|
309
|
+
memberOrgs: string;
|
|
310
|
+
managementOrgs: string;
|
|
311
|
+
language: string;
|
|
312
|
+
theme: string;
|
|
313
|
+
themeLight: string;
|
|
314
|
+
themeDark: string;
|
|
315
|
+
themeSystem: string;
|
|
316
|
+
signIn: string;
|
|
317
|
+
signOut: string;
|
|
318
|
+
signingOut: string;
|
|
319
|
+
accountSettings: string;
|
|
320
|
+
};
|
|
321
|
+
type PlatformAccountMenuProps = {
|
|
322
|
+
variant?: PlatformAccountMenuVariant;
|
|
323
|
+
/** While session is resolving. */
|
|
324
|
+
isPending?: boolean;
|
|
325
|
+
user?: PlatformAccountMenuUser | null;
|
|
326
|
+
/** Platform admin (JWT role includes admin). Enables Backoffice link. */
|
|
327
|
+
isAdmin?: boolean;
|
|
328
|
+
verificationStatus?: ProfessionalVerificationStatus;
|
|
329
|
+
urls: PlatformAccountMenuUrls;
|
|
330
|
+
memberOrgs?: PlatformAccountMenuOrg[];
|
|
331
|
+
manageableOrgs?: PlatformAccountMenuOrg[];
|
|
332
|
+
languages?: Language[];
|
|
333
|
+
currentLanguage: string;
|
|
334
|
+
onLanguageChange: (key: string) => void;
|
|
335
|
+
labels?: Partial<PlatformAccountMenuLabels>;
|
|
336
|
+
onSignOut?: () => void | Promise<void>;
|
|
337
|
+
/** Optional extra items after the primary links (before language/theme). */
|
|
338
|
+
extraItems?: ReactNode;
|
|
339
|
+
/**
|
|
340
|
+
* Custom trigger (e.g. sidebar user button). When omitted, uses the
|
|
341
|
+
* default avatar (signed-in) or settings cog (guest).
|
|
342
|
+
*/
|
|
343
|
+
trigger?: ReactNode;
|
|
344
|
+
/** Dropdown content side (sidebar menus typically open to the right). */
|
|
345
|
+
contentSide?: "top" | "right" | "bottom" | "left";
|
|
346
|
+
contentAlign?: "start" | "center" | "end";
|
|
347
|
+
contentSideOffset?: number;
|
|
348
|
+
contentClassName?: string;
|
|
349
|
+
className?: string;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Cross-app account / settings menu. Guest trigger is a settings cog;
|
|
353
|
+
* signed-in trigger is the user avatar.
|
|
354
|
+
*/
|
|
355
|
+
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;
|
|
356
|
+
|
|
357
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
358
|
+
inset?: boolean;
|
|
359
|
+
variant?: "default" | "destructive";
|
|
360
|
+
}): React.JSX.Element;
|
|
361
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
362
|
+
|
|
247
363
|
interface AvatarEditorProps {
|
|
248
364
|
/** Current cropped image as data URL (controlled) */
|
|
249
365
|
value?: string | null;
|
|
@@ -643,6 +759,20 @@ declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | unde
|
|
|
643
759
|
|
|
644
760
|
declare function useMediaQuery(query: string): boolean;
|
|
645
761
|
|
|
762
|
+
type ScrollFadeXEdges = {
|
|
763
|
+
canScrollLeft: boolean;
|
|
764
|
+
canScrollRight: boolean;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* Edge-aware horizontal scroll fade: returns a ref + CSS vars for
|
|
768
|
+
* `scroll-fade-x-edges` (transparent = show fade on that edge).
|
|
769
|
+
*/
|
|
770
|
+
declare function useScrollFadeXEdges(enabled?: boolean): {
|
|
771
|
+
scrollerRef: RefObject<HTMLDivElement | null>;
|
|
772
|
+
fadeStyle: CSSProperties;
|
|
773
|
+
edges: ScrollFadeXEdges;
|
|
774
|
+
};
|
|
775
|
+
|
|
646
776
|
interface UseSearchHotkeyOptions {
|
|
647
777
|
/** Initial open state. Defaults to `false`. */
|
|
648
778
|
defaultOpen?: boolean;
|
|
@@ -865,16 +995,6 @@ interface MexicoMapProps {
|
|
|
865
995
|
}
|
|
866
996
|
declare function MexicoMap({ selected, onToggle, className }: MexicoMapProps): React.JSX.Element;
|
|
867
997
|
|
|
868
|
-
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
869
|
-
interface VerifiedProfessionalBadgeProps {
|
|
870
|
-
status: ProfessionalVerificationStatus;
|
|
871
|
-
size?: "sm" | "md";
|
|
872
|
-
/** Icon-only with title/aria-label when false (default). */
|
|
873
|
-
showLabel?: boolean;
|
|
874
|
-
className?: string;
|
|
875
|
-
}
|
|
876
|
-
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): React.JSX.Element | null;
|
|
877
|
-
|
|
878
998
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
879
999
|
|
|
880
1000
|
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1134,4 +1254,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1134
1254
|
|
|
1135
1255
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1136
1256
|
|
|
1137
|
-
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, 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 };
|
|
1257
|
+
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, 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, 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, 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';
|
|
@@ -244,6 +245,121 @@ type LanguageSwitcherProps = {
|
|
|
244
245
|
};
|
|
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
|
|
|
248
|
+
type PlatformNavbarProps = {
|
|
249
|
+
/** Brand mark (isotype). Typically a link to the member app home. */
|
|
250
|
+
logo: ReactNode;
|
|
251
|
+
/** Optional control before the center (e.g. SidebarTrigger). */
|
|
252
|
+
leading?: ReactNode;
|
|
253
|
+
/** Flex-growing center slot (tabs, subtitle). Horizontally scrollable. */
|
|
254
|
+
center?: ReactNode;
|
|
255
|
+
/** Fixed right cluster (search, notifications, account menu). */
|
|
256
|
+
right?: ReactNode;
|
|
257
|
+
className?: string;
|
|
258
|
+
/** Inner row class (padding / max-width shell). */
|
|
259
|
+
innerClassName?: string;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Shared sticky top chrome: logo | optional leading | scrollable center | fixed right.
|
|
263
|
+
* Apps inject search, notifications, and the account menu into `right`.
|
|
264
|
+
*/
|
|
265
|
+
declare function PlatformNavbar({ logo, leading, center, right, className, innerClassName, }: PlatformNavbarProps): React.JSX.Element;
|
|
266
|
+
|
|
267
|
+
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
268
|
+
interface VerifiedProfessionalBadgeProps {
|
|
269
|
+
status: ProfessionalVerificationStatus;
|
|
270
|
+
size?: "sm" | "md";
|
|
271
|
+
/** Icon-only with title/aria-label when false (default). */
|
|
272
|
+
showLabel?: boolean;
|
|
273
|
+
className?: string;
|
|
274
|
+
}
|
|
275
|
+
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): React.JSX.Element | null;
|
|
276
|
+
|
|
277
|
+
type PlatformAccountMenuVariant = "platform" | "professional";
|
|
278
|
+
type PlatformAccountMenuUser = {
|
|
279
|
+
name: string;
|
|
280
|
+
email: string;
|
|
281
|
+
image?: string | null;
|
|
282
|
+
};
|
|
283
|
+
type PlatformAccountMenuOrg = {
|
|
284
|
+
id: string;
|
|
285
|
+
name: string;
|
|
286
|
+
slug: string;
|
|
287
|
+
};
|
|
288
|
+
type PlatformAccountMenuUrls = {
|
|
289
|
+
authAppUrl: string;
|
|
290
|
+
appUrl: string;
|
|
291
|
+
adminUrl: string;
|
|
292
|
+
backofficeUrl: string;
|
|
293
|
+
loginPath?: string;
|
|
294
|
+
accountPath?: string;
|
|
295
|
+
activityPath?: string;
|
|
296
|
+
professionalProfilePath?: string;
|
|
297
|
+
};
|
|
298
|
+
type PlatformAccountMenuLabels = {
|
|
299
|
+
accountMenu: string;
|
|
300
|
+
settingsMenu: string;
|
|
301
|
+
personalProfile: string;
|
|
302
|
+
activity: string;
|
|
303
|
+
professionalProfile: string;
|
|
304
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
305
|
+
mainApp: string;
|
|
306
|
+
/** @deprecated Unused; kept so apps can pass labels without breaking. */
|
|
307
|
+
orgManagement: string;
|
|
308
|
+
backoffice: string;
|
|
309
|
+
memberOrgs: string;
|
|
310
|
+
managementOrgs: string;
|
|
311
|
+
language: string;
|
|
312
|
+
theme: string;
|
|
313
|
+
themeLight: string;
|
|
314
|
+
themeDark: string;
|
|
315
|
+
themeSystem: string;
|
|
316
|
+
signIn: string;
|
|
317
|
+
signOut: string;
|
|
318
|
+
signingOut: string;
|
|
319
|
+
accountSettings: string;
|
|
320
|
+
};
|
|
321
|
+
type PlatformAccountMenuProps = {
|
|
322
|
+
variant?: PlatformAccountMenuVariant;
|
|
323
|
+
/** While session is resolving. */
|
|
324
|
+
isPending?: boolean;
|
|
325
|
+
user?: PlatformAccountMenuUser | null;
|
|
326
|
+
/** Platform admin (JWT role includes admin). Enables Backoffice link. */
|
|
327
|
+
isAdmin?: boolean;
|
|
328
|
+
verificationStatus?: ProfessionalVerificationStatus;
|
|
329
|
+
urls: PlatformAccountMenuUrls;
|
|
330
|
+
memberOrgs?: PlatformAccountMenuOrg[];
|
|
331
|
+
manageableOrgs?: PlatformAccountMenuOrg[];
|
|
332
|
+
languages?: Language[];
|
|
333
|
+
currentLanguage: string;
|
|
334
|
+
onLanguageChange: (key: string) => void;
|
|
335
|
+
labels?: Partial<PlatformAccountMenuLabels>;
|
|
336
|
+
onSignOut?: () => void | Promise<void>;
|
|
337
|
+
/** Optional extra items after the primary links (before language/theme). */
|
|
338
|
+
extraItems?: ReactNode;
|
|
339
|
+
/**
|
|
340
|
+
* Custom trigger (e.g. sidebar user button). When omitted, uses the
|
|
341
|
+
* default avatar (signed-in) or settings cog (guest).
|
|
342
|
+
*/
|
|
343
|
+
trigger?: ReactNode;
|
|
344
|
+
/** Dropdown content side (sidebar menus typically open to the right). */
|
|
345
|
+
contentSide?: "top" | "right" | "bottom" | "left";
|
|
346
|
+
contentAlign?: "start" | "center" | "end";
|
|
347
|
+
contentSideOffset?: number;
|
|
348
|
+
contentClassName?: string;
|
|
349
|
+
className?: string;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Cross-app account / settings menu. Guest trigger is a settings cog;
|
|
353
|
+
* signed-in trigger is the user avatar.
|
|
354
|
+
*/
|
|
355
|
+
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;
|
|
356
|
+
|
|
357
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
358
|
+
inset?: boolean;
|
|
359
|
+
variant?: "default" | "destructive";
|
|
360
|
+
}): React.JSX.Element;
|
|
361
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
362
|
+
|
|
247
363
|
interface AvatarEditorProps {
|
|
248
364
|
/** Current cropped image as data URL (controlled) */
|
|
249
365
|
value?: string | null;
|
|
@@ -643,6 +759,20 @@ declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | unde
|
|
|
643
759
|
|
|
644
760
|
declare function useMediaQuery(query: string): boolean;
|
|
645
761
|
|
|
762
|
+
type ScrollFadeXEdges = {
|
|
763
|
+
canScrollLeft: boolean;
|
|
764
|
+
canScrollRight: boolean;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* Edge-aware horizontal scroll fade: returns a ref + CSS vars for
|
|
768
|
+
* `scroll-fade-x-edges` (transparent = show fade on that edge).
|
|
769
|
+
*/
|
|
770
|
+
declare function useScrollFadeXEdges(enabled?: boolean): {
|
|
771
|
+
scrollerRef: RefObject<HTMLDivElement | null>;
|
|
772
|
+
fadeStyle: CSSProperties;
|
|
773
|
+
edges: ScrollFadeXEdges;
|
|
774
|
+
};
|
|
775
|
+
|
|
646
776
|
interface UseSearchHotkeyOptions {
|
|
647
777
|
/** Initial open state. Defaults to `false`. */
|
|
648
778
|
defaultOpen?: boolean;
|
|
@@ -865,16 +995,6 @@ interface MexicoMapProps {
|
|
|
865
995
|
}
|
|
866
996
|
declare function MexicoMap({ selected, onToggle, className }: MexicoMapProps): React.JSX.Element;
|
|
867
997
|
|
|
868
|
-
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
869
|
-
interface VerifiedProfessionalBadgeProps {
|
|
870
|
-
status: ProfessionalVerificationStatus;
|
|
871
|
-
size?: "sm" | "md";
|
|
872
|
-
/** Icon-only with title/aria-label when false (default). */
|
|
873
|
-
showLabel?: boolean;
|
|
874
|
-
className?: string;
|
|
875
|
-
}
|
|
876
|
-
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): React.JSX.Element | null;
|
|
877
|
-
|
|
878
998
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
879
999
|
|
|
880
1000
|
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1134,4 +1254,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1134
1254
|
|
|
1135
1255
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1136
1256
|
|
|
1137
|
-
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, 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 };
|
|
1257
|
+
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, 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, 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, normalizeEmojiQuery, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|