@sesionario/blocks 1.21.0 → 1.22.1
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 +69 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +70 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps, SVGProps } 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';
|
|
@@ -540,7 +540,7 @@ interface AvatarEditorProps {
|
|
|
540
540
|
size?: number;
|
|
541
541
|
/** Whether to show grid overlay by default */
|
|
542
542
|
showGrid?: boolean;
|
|
543
|
-
/**
|
|
543
|
+
/** Square output image size in pixels (width === height) */
|
|
544
544
|
outputSize?: number;
|
|
545
545
|
/** Output format */
|
|
546
546
|
outputFormat?: "png" | "jpeg" | "webp";
|
|
@@ -1232,6 +1232,16 @@ declare function paymentIconBrandFromStripe(brand: string | null | undefined): P
|
|
|
1232
1232
|
/** @deprecated Use `paymentIconBrandFromStripe`. */
|
|
1233
1233
|
declare const paymentTypeFromStripeBrand: typeof paymentIconBrandFromStripe;
|
|
1234
1234
|
|
|
1235
|
+
type BrandXProps = SVGProps<SVGSVGElement> & {
|
|
1236
|
+
/** Pixel size for both width and height. Defaults to 24 to match Lucide. */
|
|
1237
|
+
size?: number | string;
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* X (formerly Twitter) brand mark. Filled path with `currentColor` so it
|
|
1241
|
+
* inherits text color like Lucide icons. Not Lucide’s dismiss `X`.
|
|
1242
|
+
*/
|
|
1243
|
+
declare const BrandX: React.ForwardRefExoticComponent<Omit<BrandXProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
1244
|
+
|
|
1235
1245
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
1236
1246
|
|
|
1237
1247
|
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1491,4 +1501,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1491
1501
|
|
|
1492
1502
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1493
1503
|
|
|
1494
|
-
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, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, 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, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, 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, PaymentIcon, type PaymentIconFormat, type PaymentIconProps, 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 UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, 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, formatPaymentCardBrand, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
1504
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, BrandX, type BrandXProps, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, 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, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, 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, PaymentIcon, type PaymentIconFormat, type PaymentIconProps, 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 UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, 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, formatPaymentCardBrand, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps, SVGProps } 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';
|
|
@@ -540,7 +540,7 @@ interface AvatarEditorProps {
|
|
|
540
540
|
size?: number;
|
|
541
541
|
/** Whether to show grid overlay by default */
|
|
542
542
|
showGrid?: boolean;
|
|
543
|
-
/**
|
|
543
|
+
/** Square output image size in pixels (width === height) */
|
|
544
544
|
outputSize?: number;
|
|
545
545
|
/** Output format */
|
|
546
546
|
outputFormat?: "png" | "jpeg" | "webp";
|
|
@@ -1232,6 +1232,16 @@ declare function paymentIconBrandFromStripe(brand: string | null | undefined): P
|
|
|
1232
1232
|
/** @deprecated Use `paymentIconBrandFromStripe`. */
|
|
1233
1233
|
declare const paymentTypeFromStripeBrand: typeof paymentIconBrandFromStripe;
|
|
1234
1234
|
|
|
1235
|
+
type BrandXProps = SVGProps<SVGSVGElement> & {
|
|
1236
|
+
/** Pixel size for both width and height. Defaults to 24 to match Lucide. */
|
|
1237
|
+
size?: number | string;
|
|
1238
|
+
};
|
|
1239
|
+
/**
|
|
1240
|
+
* X (formerly Twitter) brand mark. Filled path with `currentColor` so it
|
|
1241
|
+
* inherits text color like Lucide icons. Not Lucide’s dismiss `X`.
|
|
1242
|
+
*/
|
|
1243
|
+
declare const BrandX: React.ForwardRefExoticComponent<Omit<BrandXProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
1244
|
+
|
|
1235
1245
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
1236
1246
|
|
|
1237
1247
|
declare function MessageGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -1491,4 +1501,4 @@ declare function useRealtimeChannel({ getWsUrl, onEvent, enabled, reconnectDelay
|
|
|
1491
1501
|
|
|
1492
1502
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1493
1503
|
|
|
1494
|
-
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, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, 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, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, 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, PaymentIcon, type PaymentIconFormat, type PaymentIconProps, 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 UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, 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, formatPaymentCardBrand, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
1504
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, type BlocksLanguage, BrandX, type BrandXProps, Bubble, BubbleContent, BubbleGroup, BubbleReactions, type ChatListMessage, ChatMessageList, type ChatMessageListProps, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type ConversationKind, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, DropdownMenuItem, DropdownMenuSeparator, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, 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, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, 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, PaymentIcon, type PaymentIconFormat, type PaymentIconProps, 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 UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, 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, formatPaymentCardBrand, fuzzyMatch, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React7 from 'react';
|
|
3
|
-
import { createContext, useContext, useState, useRef, useId, useEffect, useCallback, useLayoutEffect, useMemo } from 'react';
|
|
3
|
+
import { createContext, forwardRef, useContext, useState, useRef, useId, useEffect, useCallback, useLayoutEffect, useMemo } from 'react';
|
|
4
4
|
import { ChevronsUpDown, CheckIcon, Smile, SearchIcon, Search, Clock, Flag, Hash, Lightbulb, Trophy, Plane, Apple, Leaf, Hand, Loader2, AlertTriangle, Inbox, X, ChevronLeft, ChevronRight, Monitor, Sun, Moon, Building2, Check, Plus, Languages, BadgeCheck, Settings, User, Activity, LogOut, LogIn, Upload, Move, ZoomOut, ZoomIn, RotateCcw, RotateCw, Grid3X3, RefreshCw, Pencil, Play, AlertCircle, VolumeX, Pause, Volume1, Volume2, PictureInPicture2, Minimize, Maximize, ArrowDownIcon, MessageCircleDashedIcon, MessageCircle, ChevronUp, ChevronDown, XIcon, ChevronRightIcon, CircleIcon } from 'lucide-react';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -1655,17 +1655,17 @@ function TenantAvatar({
|
|
|
1655
1655
|
logo,
|
|
1656
1656
|
size = "md"
|
|
1657
1657
|
}) {
|
|
1658
|
-
const sizeClass = size === "sm" ? "size-6
|
|
1658
|
+
const sizeClass = size === "sm" ? "size-6" : "size-8";
|
|
1659
1659
|
const textClass = size === "sm" ? "text-xs" : "text-sm";
|
|
1660
1660
|
return /* @__PURE__ */ jsx(
|
|
1661
1661
|
"div",
|
|
1662
1662
|
{
|
|
1663
1663
|
className: cn(
|
|
1664
|
-
"flex shrink-0 items-center justify-center overflow-hidden font-medium",
|
|
1664
|
+
"relative flex shrink-0 items-center justify-center overflow-hidden rounded-full font-medium",
|
|
1665
1665
|
sizeClass
|
|
1666
1666
|
),
|
|
1667
1667
|
style: logo ? void 0 : avatarFallbackStyle(name),
|
|
1668
|
-
children: logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: "", className: "
|
|
1668
|
+
children: logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: "", className: "absolute -inset-px object-cover" }) : /* @__PURE__ */ jsx("span", { className: textClass, children: getInitials(name) })
|
|
1669
1669
|
}
|
|
1670
1670
|
);
|
|
1671
1671
|
}
|
|
@@ -1682,7 +1682,7 @@ function SwitcherSkeleton({
|
|
|
1682
1682
|
"pointer-events-none flex size-8 items-center justify-center rounded-md",
|
|
1683
1683
|
className
|
|
1684
1684
|
),
|
|
1685
|
-
children: /* @__PURE__ */ jsx("div", { className: "size-8 shrink-0 animate-pulse rounded-
|
|
1685
|
+
children: /* @__PURE__ */ jsx("div", { className: "size-8 shrink-0 animate-pulse rounded-full bg-muted" })
|
|
1686
1686
|
}
|
|
1687
1687
|
);
|
|
1688
1688
|
}
|
|
@@ -1695,7 +1695,7 @@ function SwitcherSkeleton({
|
|
|
1695
1695
|
className
|
|
1696
1696
|
),
|
|
1697
1697
|
children: [
|
|
1698
|
-
/* @__PURE__ */ jsx("div", { className: "size-8 shrink-0 animate-pulse rounded-
|
|
1698
|
+
/* @__PURE__ */ jsx("div", { className: "size-8 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
1699
1699
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
1700
1700
|
/* @__PURE__ */ jsx("div", { className: "h-4 w-24 animate-pulse rounded bg-muted" }),
|
|
1701
1701
|
/* @__PURE__ */ jsx("div", { className: "h-3 w-16 animate-pulse rounded bg-muted" })
|
|
@@ -1738,7 +1738,7 @@ function OrgSwitcher({
|
|
|
1738
1738
|
triggerClassNameProp
|
|
1739
1739
|
),
|
|
1740
1740
|
children: [
|
|
1741
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-
|
|
1741
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-full bg-muted", children: /* @__PURE__ */ jsx(Building2, { className: "size-4 text-muted-foreground" }) }),
|
|
1742
1742
|
!collapsed ? /* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: labels.empty }) }) : null
|
|
1743
1743
|
]
|
|
1744
1744
|
}
|
|
@@ -1755,7 +1755,7 @@ function OrgSwitcher({
|
|
|
1755
1755
|
className
|
|
1756
1756
|
),
|
|
1757
1757
|
children: [
|
|
1758
|
-
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-
|
|
1758
|
+
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-full bg-muted", children: /* @__PURE__ */ jsx(Building2, { className: "size-4 text-muted-foreground" }) }),
|
|
1759
1759
|
!collapsed ? /* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-muted-foreground", children: labels.empty }) }) : null
|
|
1760
1760
|
]
|
|
1761
1761
|
}
|
|
@@ -2192,14 +2192,7 @@ function MenuAvatar({
|
|
|
2192
2192
|
"relative flex shrink-0 overflow-hidden rounded-full",
|
|
2193
2193
|
sizeClass
|
|
2194
2194
|
),
|
|
2195
|
-
children: image ? /* @__PURE__ */ jsx(
|
|
2196
|
-
"img",
|
|
2197
|
-
{
|
|
2198
|
-
src: image,
|
|
2199
|
-
alt: "",
|
|
2200
|
-
className: "aspect-square size-full object-cover"
|
|
2201
|
-
}
|
|
2202
|
-
) : /* @__PURE__ */ jsx(
|
|
2195
|
+
children: image ? /* @__PURE__ */ jsx("img", { src: image, alt: "", className: "absolute -inset-px object-cover" }) : /* @__PURE__ */ jsx(
|
|
2203
2196
|
"span",
|
|
2204
2197
|
{
|
|
2205
2198
|
className: "flex size-full items-center justify-center text-xs font-semibold",
|
|
@@ -2641,8 +2634,6 @@ function AvatarEditor({
|
|
|
2641
2634
|
canvas.width = displaySize;
|
|
2642
2635
|
canvas.height = displaySize;
|
|
2643
2636
|
ctx.clearRect(0, 0, displaySize, displaySize);
|
|
2644
|
-
ctx.fillStyle = "#1a1a2e";
|
|
2645
|
-
ctx.fillRect(0, 0, displaySize, displaySize);
|
|
2646
2637
|
ctx.save();
|
|
2647
2638
|
ctx.translate(displaySize / 2, displaySize / 2);
|
|
2648
2639
|
ctx.rotate(rotation * Math.PI / 180);
|
|
@@ -2664,28 +2655,6 @@ function AvatarEditor({
|
|
|
2664
2655
|
drawHeight
|
|
2665
2656
|
);
|
|
2666
2657
|
ctx.restore();
|
|
2667
|
-
ctx.globalCompositeOperation = "destination-in";
|
|
2668
|
-
ctx.beginPath();
|
|
2669
|
-
ctx.arc(
|
|
2670
|
-
displaySize / 2,
|
|
2671
|
-
displaySize / 2,
|
|
2672
|
-
displaySize / 2 - 4,
|
|
2673
|
-
0,
|
|
2674
|
-
Math.PI * 2
|
|
2675
|
-
);
|
|
2676
|
-
ctx.fill();
|
|
2677
|
-
ctx.globalCompositeOperation = "source-over";
|
|
2678
|
-
ctx.strokeStyle = "hsl(var(--primary))";
|
|
2679
|
-
ctx.lineWidth = 3;
|
|
2680
|
-
ctx.beginPath();
|
|
2681
|
-
ctx.arc(
|
|
2682
|
-
displaySize / 2,
|
|
2683
|
-
displaySize / 2,
|
|
2684
|
-
displaySize / 2 - 2,
|
|
2685
|
-
0,
|
|
2686
|
-
Math.PI * 2
|
|
2687
|
-
);
|
|
2688
|
-
ctx.stroke();
|
|
2689
2658
|
const dataUrl = generateOutput();
|
|
2690
2659
|
if (dataUrl) {
|
|
2691
2660
|
onChange?.(dataUrl);
|
|
@@ -2791,6 +2760,8 @@ function AvatarEditor({
|
|
|
2791
2760
|
const gapSize = isLarge ? "gap-6" : "gap-4";
|
|
2792
2761
|
const controlGap = isLarge ? "gap-3" : "gap-2";
|
|
2793
2762
|
const sliderHeight = isLarge ? "[&_[role=slider]]:h-6 [&_[role=slider]]:w-6" : "";
|
|
2763
|
+
const guideRadius = size / 2 - 2;
|
|
2764
|
+
const guideCenter = size / 2;
|
|
2794
2765
|
return /* @__PURE__ */ jsxs(
|
|
2795
2766
|
"div",
|
|
2796
2767
|
{
|
|
@@ -2854,6 +2825,36 @@ function AvatarEditor({
|
|
|
2854
2825
|
onTouchEnd: handleMouseUp
|
|
2855
2826
|
}
|
|
2856
2827
|
),
|
|
2828
|
+
imageLoaded && /* @__PURE__ */ jsxs(
|
|
2829
|
+
"svg",
|
|
2830
|
+
{
|
|
2831
|
+
width: size,
|
|
2832
|
+
height: size,
|
|
2833
|
+
className: "pointer-events-none absolute inset-0",
|
|
2834
|
+
"aria-hidden": "true",
|
|
2835
|
+
children: [
|
|
2836
|
+
/* @__PURE__ */ jsx(
|
|
2837
|
+
"path",
|
|
2838
|
+
{
|
|
2839
|
+
d: `M0 0H${size}V${size}H0Z M${guideCenter - guideRadius} ${guideCenter}a${guideRadius} ${guideRadius} 0 1 0 ${guideRadius * 2} 0a${guideRadius} ${guideRadius} 0 1 0 ${-guideRadius * 2} 0`,
|
|
2840
|
+
fill: "rgb(0 0 0 / 0.45)",
|
|
2841
|
+
fillRule: "evenodd"
|
|
2842
|
+
}
|
|
2843
|
+
),
|
|
2844
|
+
/* @__PURE__ */ jsx(
|
|
2845
|
+
"circle",
|
|
2846
|
+
{
|
|
2847
|
+
cx: guideCenter,
|
|
2848
|
+
cy: guideCenter,
|
|
2849
|
+
r: guideRadius,
|
|
2850
|
+
fill: "none",
|
|
2851
|
+
stroke: "hsl(var(--primary))",
|
|
2852
|
+
strokeWidth: "3"
|
|
2853
|
+
}
|
|
2854
|
+
)
|
|
2855
|
+
]
|
|
2856
|
+
}
|
|
2857
|
+
),
|
|
2857
2858
|
showGrid && imageLoaded && /* @__PURE__ */ jsx(
|
|
2858
2859
|
"div",
|
|
2859
2860
|
{
|
|
@@ -3403,14 +3404,14 @@ function AvatarEditorDialog({
|
|
|
3403
3404
|
/* @__PURE__ */ jsx(
|
|
3404
3405
|
"div",
|
|
3405
3406
|
{
|
|
3406
|
-
className: "w-full h-full rounded-full overflow-hidden bg-muted border-2 border-border flex items-center justify-center",
|
|
3407
|
+
className: "relative w-full h-full rounded-full overflow-hidden bg-muted border-2 border-border flex items-center justify-center",
|
|
3407
3408
|
style: { width: displaySize, height: displaySize },
|
|
3408
3409
|
children: value ? /* @__PURE__ */ jsx(
|
|
3409
3410
|
"img",
|
|
3410
3411
|
{
|
|
3411
3412
|
src: value || "/placeholder.svg",
|
|
3412
3413
|
alt: "Avatar",
|
|
3413
|
-
className: "
|
|
3414
|
+
className: "absolute -inset-px object-cover"
|
|
3414
3415
|
}
|
|
3415
3416
|
) : /* @__PURE__ */ jsxs(
|
|
3416
3417
|
"div",
|
|
@@ -7301,6 +7302,32 @@ function PaymentIcon({
|
|
|
7301
7302
|
}
|
|
7302
7303
|
);
|
|
7303
7304
|
}
|
|
7305
|
+
var BrandX = forwardRef(function BrandX2({
|
|
7306
|
+
className,
|
|
7307
|
+
size = 24,
|
|
7308
|
+
"aria-label": ariaLabel,
|
|
7309
|
+
"aria-labelledby": ariaLabelledby,
|
|
7310
|
+
...props
|
|
7311
|
+
}, ref) {
|
|
7312
|
+
const labelled = Boolean(ariaLabel || ariaLabelledby);
|
|
7313
|
+
return /* @__PURE__ */ jsx(
|
|
7314
|
+
"svg",
|
|
7315
|
+
{
|
|
7316
|
+
ref,
|
|
7317
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7318
|
+
viewBox: "0 0 24 24",
|
|
7319
|
+
fill: "currentColor",
|
|
7320
|
+
...props,
|
|
7321
|
+
"aria-label": ariaLabel,
|
|
7322
|
+
"aria-labelledby": ariaLabelledby,
|
|
7323
|
+
"aria-hidden": labelled ? void 0 : true,
|
|
7324
|
+
width: size,
|
|
7325
|
+
height: size,
|
|
7326
|
+
className: cn("shrink-0", className),
|
|
7327
|
+
children: /* @__PURE__ */ jsx("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z" })
|
|
7328
|
+
}
|
|
7329
|
+
);
|
|
7330
|
+
});
|
|
7304
7331
|
function MessageGroup({ className, ...props }) {
|
|
7305
7332
|
return /* @__PURE__ */ jsx(
|
|
7306
7333
|
"div",
|
|
@@ -8631,6 +8658,6 @@ function useRealtimeChannel({
|
|
|
8631
8658
|
}, [enabled, reconnectDelayMs]);
|
|
8632
8659
|
}
|
|
8633
8660
|
|
|
8634
|
-
export { AvatarEditor, AvatarEditorDialog, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ChatMessageList, ConfirmDestructiveDialog, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, DropdownMenuItem, DropdownMenuSeparator, EditableSection, EmojiInput, EmojiPicker, EmojiPickerPopover, EmojiTextarea, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, ExpandableText, FeedVideoPlayer, FieldMessage, ImageLightbox, LanguageContext, LanguageSwitcher, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageComposer, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, OrgSwitcher, PLATFORM_ACCOUNT_ORG_COLLAPSE_AT, PaymentIcon, PhoneInput, PlatformAccountMenu, PlatformNavbar, SearchCommand, SearchablePicker, SupportMessengerProvider, ThemeSwitcher, VerifiedProfessionalBadge, VideoPlayer, avatarFallbackStyle, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, formatPaymentCardBrand, fuzzyMatch, getAvatarColors, getInitials, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
8661
|
+
export { AvatarEditor, AvatarEditorDialog, BrandX, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ChatMessageList, ConfirmDestructiveDialog, DEFAULT_EDITABLE_SECTION_LABELS, DataList, DataListItem, DropdownMenuItem, DropdownMenuSeparator, EditableSection, EmojiInput, EmojiPicker, EmojiPickerPopover, EmojiTextarea, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, ErrorState, ExpandableText, FeedVideoPlayer, FieldMessage, ImageLightbox, LanguageContext, LanguageSwitcher, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageComposer, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MexicoMap, OrgSwitcher, PLATFORM_ACCOUNT_ORG_COLLAPSE_AT, PaymentIcon, PhoneInput, PlatformAccountMenu, PlatformNavbar, SearchCommand, SearchablePicker, SupportMessengerProvider, ThemeSwitcher, VerifiedProfessionalBadge, VideoPlayer, avatarFallbackStyle, bubbleVariants, cn, createLiveHlsConfig, createSupportChatClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, formatPaymentCardBrand, fuzzyMatch, getAvatarColors, getInitials, insertAtCaret, markerVariants, mergePlatformAccountOrgs, normalizeEmojiQuery, normalizePaymentCardBrand, paymentIconBrandFromStripe, paymentTypeFromStripeBrand, shouldRetryLiveEdge404, useDebouncedValue, useDebouncedValueStrict, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery2 as useMediaQuery, usePlaybackStats, useRealtimeChannel, useScrollFadeXEdges, useSearchHotkey, useSupportConversation, useSupportMessenger, useSupportMessengerOptional };
|
|
8635
8662
|
//# sourceMappingURL=index.js.map
|
|
8636
8663
|
//# sourceMappingURL=index.js.map
|