@sesionario/blocks 1.21.0 → 1.22.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 +65 -30
- 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 +66 -32
- 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,13 +1655,13 @@ 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
|
+
"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),
|
|
@@ -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
|
}
|
|
@@ -2641,8 +2641,6 @@ function AvatarEditor({
|
|
|
2641
2641
|
canvas.width = displaySize;
|
|
2642
2642
|
canvas.height = displaySize;
|
|
2643
2643
|
ctx.clearRect(0, 0, displaySize, displaySize);
|
|
2644
|
-
ctx.fillStyle = "#1a1a2e";
|
|
2645
|
-
ctx.fillRect(0, 0, displaySize, displaySize);
|
|
2646
2644
|
ctx.save();
|
|
2647
2645
|
ctx.translate(displaySize / 2, displaySize / 2);
|
|
2648
2646
|
ctx.rotate(rotation * Math.PI / 180);
|
|
@@ -2664,28 +2662,6 @@ function AvatarEditor({
|
|
|
2664
2662
|
drawHeight
|
|
2665
2663
|
);
|
|
2666
2664
|
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
2665
|
const dataUrl = generateOutput();
|
|
2690
2666
|
if (dataUrl) {
|
|
2691
2667
|
onChange?.(dataUrl);
|
|
@@ -2791,6 +2767,8 @@ function AvatarEditor({
|
|
|
2791
2767
|
const gapSize = isLarge ? "gap-6" : "gap-4";
|
|
2792
2768
|
const controlGap = isLarge ? "gap-3" : "gap-2";
|
|
2793
2769
|
const sliderHeight = isLarge ? "[&_[role=slider]]:h-6 [&_[role=slider]]:w-6" : "";
|
|
2770
|
+
const guideRadius = size / 2 - 2;
|
|
2771
|
+
const guideCenter = size / 2;
|
|
2794
2772
|
return /* @__PURE__ */ jsxs(
|
|
2795
2773
|
"div",
|
|
2796
2774
|
{
|
|
@@ -2854,6 +2832,36 @@ function AvatarEditor({
|
|
|
2854
2832
|
onTouchEnd: handleMouseUp
|
|
2855
2833
|
}
|
|
2856
2834
|
),
|
|
2835
|
+
imageLoaded && /* @__PURE__ */ jsxs(
|
|
2836
|
+
"svg",
|
|
2837
|
+
{
|
|
2838
|
+
width: size,
|
|
2839
|
+
height: size,
|
|
2840
|
+
className: "pointer-events-none absolute inset-0",
|
|
2841
|
+
"aria-hidden": "true",
|
|
2842
|
+
children: [
|
|
2843
|
+
/* @__PURE__ */ jsx(
|
|
2844
|
+
"path",
|
|
2845
|
+
{
|
|
2846
|
+
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`,
|
|
2847
|
+
fill: "rgb(0 0 0 / 0.45)",
|
|
2848
|
+
fillRule: "evenodd"
|
|
2849
|
+
}
|
|
2850
|
+
),
|
|
2851
|
+
/* @__PURE__ */ jsx(
|
|
2852
|
+
"circle",
|
|
2853
|
+
{
|
|
2854
|
+
cx: guideCenter,
|
|
2855
|
+
cy: guideCenter,
|
|
2856
|
+
r: guideRadius,
|
|
2857
|
+
fill: "none",
|
|
2858
|
+
stroke: "hsl(var(--primary))",
|
|
2859
|
+
strokeWidth: "3"
|
|
2860
|
+
}
|
|
2861
|
+
)
|
|
2862
|
+
]
|
|
2863
|
+
}
|
|
2864
|
+
),
|
|
2857
2865
|
showGrid && imageLoaded && /* @__PURE__ */ jsx(
|
|
2858
2866
|
"div",
|
|
2859
2867
|
{
|
|
@@ -7301,6 +7309,32 @@ function PaymentIcon({
|
|
|
7301
7309
|
}
|
|
7302
7310
|
);
|
|
7303
7311
|
}
|
|
7312
|
+
var BrandX = forwardRef(function BrandX2({
|
|
7313
|
+
className,
|
|
7314
|
+
size = 24,
|
|
7315
|
+
"aria-label": ariaLabel,
|
|
7316
|
+
"aria-labelledby": ariaLabelledby,
|
|
7317
|
+
...props
|
|
7318
|
+
}, ref) {
|
|
7319
|
+
const labelled = Boolean(ariaLabel || ariaLabelledby);
|
|
7320
|
+
return /* @__PURE__ */ jsx(
|
|
7321
|
+
"svg",
|
|
7322
|
+
{
|
|
7323
|
+
ref,
|
|
7324
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7325
|
+
viewBox: "0 0 24 24",
|
|
7326
|
+
fill: "currentColor",
|
|
7327
|
+
...props,
|
|
7328
|
+
"aria-label": ariaLabel,
|
|
7329
|
+
"aria-labelledby": ariaLabelledby,
|
|
7330
|
+
"aria-hidden": labelled ? void 0 : true,
|
|
7331
|
+
width: size,
|
|
7332
|
+
height: size,
|
|
7333
|
+
className: cn("shrink-0", className),
|
|
7334
|
+
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" })
|
|
7335
|
+
}
|
|
7336
|
+
);
|
|
7337
|
+
});
|
|
7304
7338
|
function MessageGroup({ className, ...props }) {
|
|
7305
7339
|
return /* @__PURE__ */ jsx(
|
|
7306
7340
|
"div",
|
|
@@ -8631,6 +8665,6 @@ function useRealtimeChannel({
|
|
|
8631
8665
|
}, [enabled, reconnectDelayMs]);
|
|
8632
8666
|
}
|
|
8633
8667
|
|
|
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 };
|
|
8668
|
+
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
8669
|
//# sourceMappingURL=index.js.map
|
|
8636
8670
|
//# sourceMappingURL=index.js.map
|