@digilogiclabs/saas-factory-ui 2.9.0 → 2.9.2
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.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +81 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -23
- package/dist/index.mjs.map +1 -1
- package/dist/web/index.d.mts +12 -1
- package/dist/web/index.d.ts +12 -1
- package/dist/web/index.js +81 -23
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.mjs +81 -23
- package/dist/web/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/web/index.d.mts
CHANGED
|
@@ -5317,6 +5317,8 @@ interface PolyhedronFace {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
interface DiePolyhedron {
|
|
5319
5319
|
faces: PolyhedronFace[];
|
|
5320
|
+
/** Antipodal face index per face, or -1 (tetrahedron has none). */
|
|
5321
|
+
opposite: number[];
|
|
5320
5322
|
/** Max centroid→outline distance across faces (unit scale). */
|
|
5321
5323
|
faceRadius: number;
|
|
5322
5324
|
/** Min centroid→edge distance across faces — sizes the numerals. */
|
|
@@ -5324,6 +5326,15 @@ interface DiePolyhedron {
|
|
|
5324
5326
|
}
|
|
5325
5327
|
/** Exported for tests: geometry invariants are asserted directly. */
|
|
5326
5328
|
declare function buildPolyhedron(sides: Exclude<DiceSides, 6>): DiePolyhedron;
|
|
5329
|
+
/**
|
|
5330
|
+
* Deal a fresh set of face values for one roll: the rolled value on the
|
|
5331
|
+
* viewer face, its antipode keeping the sides+1 sum, and the remaining
|
|
5332
|
+
* values shuffled across the other faces (in opposite-sum pairs on
|
|
5333
|
+
* solids that have them). Purely visual — the recorded outcome is what
|
|
5334
|
+
* the viewer face shows, and the die still shows every value exactly
|
|
5335
|
+
* once. Exported for tests.
|
|
5336
|
+
*/
|
|
5337
|
+
declare function dealFaceValues(geo: DiePolyhedron, sides: Exclude<DiceSides, 6>, rolled: number): number[];
|
|
5327
5338
|
declare function DiceRoller({ count, sides, theme, darkMode, size, minSize, responsive, autoRoll, onRoll, trigger, label, iconEmoji, showHistory, historyMax, initialHistory, rollRef, arenaHeight: arenaHeightProp, hideResults, className, style, ariaLabel, }: DiceRollerProps): ReactNode;
|
|
5328
5339
|
declare namespace DiceRoller {
|
|
5329
5340
|
var displayName: string;
|
|
@@ -7099,4 +7110,4 @@ declare class OptimizedStateManager {
|
|
|
7099
7110
|
}
|
|
7100
7111
|
declare const stateManager: OptimizedStateManager;
|
|
7101
7112
|
|
|
7102
|
-
export { ANIMATION_DURATION, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type ActivityType, type AdvancedAudioTrack, AdvancedPlayer, type AdvancedPlayerProps, Alert, AlertDescription, AlertTitle, AnalyticsDashboard, AnimatedSectionTitle, type AnimatedSectionTitleProps, type AnimationTokens, Breadcrumbs as AppBreadcrumbs, AppShell, AudioFeed, type AudioFeedProps, AudioPlayer, type AudioPlayerProps, SearchWithFilters as AudioSearch, type AudioTrack, type AudioTrackCardData, AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BarChart, type BarChart3IconBand, type BarChartProps, type BaseAccordionItemProps, type BaseAccordionProps, type BaseBreadcrumbsProps, type BaseChartProps, type BaseComponentProps, type BaseEmptyStateProps, type BaseSliderProps, type BaseSwitchProps, type BaseTextareaProps, type BaseTheme, type BorderRadiusScale, BracketGenerator, type BracketGeneratorProps, type BracketMatch, type BracketMatchRenderContext, type BracketParticipant, type BracketResumeMatch, type BracketSeedingStrategy, type BracketSize, type BracketState, type BracketThemeColors, type BracketThemePreset, BrandLoader, type BrandLoaderGradient, type BrandLoaderMode, type BrandLoaderPath, type BrandLoaderProps, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs$1 as Breadcrumbs, type BreadcrumbsProps$1 as BreadcrumbsProps, type BugReportPayload, BugReporter, type BugReporterProps, Button, type ButtonVariants, type CTAAction, CTACluster, type CTAClusterProps, type CacheStrategy, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chart, type ChartDataPoint$1 as ChartDataPoint, type ChartProps, type ChartSeries, Checkbox, type CoinCustomTheme, CoinFlipper, type CoinFlipperProps, type CoinResult, type CoinTheme, type CoinThemePreset, type CoinTrigger, CollaborativePlaylist, type CollaborativePlaylistData, type CollaborativePlaylistProps, type Collaborator, type CollaboratorRole, type Column$1 as Column, CommandPalette, type Comment, type CommentData, CommentSystem, type CommentSystemProps, type CommentUser, type ComponentProps, type ComponentSize, type ComponentVariant, Container$1 as Container, ConversionKPI, type CrossfadeMode, D6_FACE_PLACEMENTS, DashboardGrid, DashboardLayout, DashboardWidget, type DashboardWidgetProps, DataGrid, type DataGridProps, type DataItem, DataTable, type Column as DataTableColumn, type DataTableProps, type DateFilter, type Delimiter, Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, type DiceCount, type DiceCustomTheme, DiceRoller, type DiceRollerProps, type DiceSides, type DiceTheme, type DiceThemePreset, type DiceTrigger, type DiePolyhedron, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, type DurationFilter, DynamicHeroBanner, EmptyState, type EmptyStateProps, EnhancedScrollToTop, type EnhancedScrollToTopProps, type EnvConfig, ErrorAnimation, ErrorBoundary, type ErrorBoundaryProps, ErrorFallback, type ErrorFallbackProps, type ExportOptions, type ExportService, FLOW_TREE_CSS, FLOW_TREE_ICON_NAMES, FeatureGrid, type FeatureGridProps, FeatureHighlight, type FeatureItem, type FeedFilter, type FeedItem, type FeedSortOrder, type FeedbackCategory, FilterChip, type FilterChipProps, type FilterConfig, FilterableGrid, type FilterableGridApplyMode, type FilterableGridCategory, type FilterableGridCategoryNavProps, type FilterableGridFilter, type FilterableGridFilterOption, type FilterableGridLabels, type FilterableGridLayout, type FilterableGridProps, type FilterableGridQuickTab, type FilterableGridRenderCardContext, type FilterableGridSectionOrder, type FilterableGridSort, type FilterableGridState, FixedAudioBar, type FixedAudioBarProps, FlowTree, type FlowTreeAction, type FlowTreeDetail, FlowTreeIcon, type FlowTreeIconName, type FlowTreeIconProps, type FlowTreeIconValue, type FlowTreeImageIcon, type FlowTreeLayoutOptions, type FlowTreeMetaRow, type FlowTreeNode, type FlowTreeProps, type FlowTreeTier, Form, FormBuilder, type FormBuilderProps, FormDescription, type FormField, FormGroup, FormLabel, FormMessage, FormProgress, type FormProps, type FormSchema, FormSection, GameTimer, type GameTimerCustomTheme, type GameTimerHandle, type GameTimerLap, type GameTimerMode, type GameTimerProps, type GameTimerTheme, type GameTimerThemePreset, type GenreFilter, type GlassmorphismTokens, GradientBorderCard, type GradientBorderCardProps, Grid$1 as Grid, GridItem, HamburgerIcon, type HamburgerIconProps, Header, HeaderActions, HeaderBrand, HeaderContainer, HeaderDesktopNav, HeaderMobileTrigger, HeaderNavLink, Hero, type HeroBannerCta, type HeroBannerCtaVariant, type HeroBannerCustomTheme, type HeroBannerImageFilter, type HeroBannerMouseEffect, type HeroBannerProps, type HeroBannerSlide, type HeroBannerStat, type HeroBannerStatsBackground, type HeroBannerStatsLayout, type HeroBannerStatsPosition, type HeroBannerStatsSize, type HeroBannerTextAlign, type HeroBannerThemePreset, type HeroBannerTransition, HeroCTA, HeroContent, type HeroProps, HeroSubtitle, HeroTitle, ImageCropDropZone, type ImageCropDropZoneProps, type ImageCropFormat, ImageCropModal, type ImageCropModalProps, type ImageCropOutput, ImageCropper, type ImageCropperHandle, type ImageCropperProps, InfoAnimation, Input, type InputVariants, type IntersectionObserverOptions, KPIDashboard, type KPIData, KPIWidget, type KPIWidgetProps, Label, LavaLamp, type LavaLampProps, LazyImage, type LazyImagePlaceholder, type LazyImageProps, LineChart, type LineChartProps, type LoadingOverlayApi, type LoadingOverlayContextValue, LoadingOverlayProvider, type LoadingOverlayProviderProps, LoadingSpinner, LogoCloud, type LogoCloudProps, type LogoItem, MobileContainer, type MobileContainerProps, MobileContent, MobileEmailInput, MobileForm, MobileFormActions, MobileFormField, MobileFormGroup, type MobileFormProps, MobileFormSection, MobileGrid, MobileHero, type MobileHeroProps, MobileNavButton, MobileNavContent, MobileNavDrawer, MobileNavFooter, MobileNavHeader, MobileNavLink, MobileNavOverlay, MobileNavTrigger, MobileNavigation, MobileOTPInput, MobilePage, MobilePhoneInput, MobileSection, MobileSticky, Modal, type NativeComponentProps, Container as NativeContainer, Grid as NativeGrid, Section as NativeSection, type NativeStyle, Pagination as NavigationPagination, Stepper as NavigationStepper, Tabs as NavigationTabs, NetworkAwareContent, type NetworkAwareContentProps, type NetworkInfo, type NetworkSpeed, type NetworkType, NewsTicker, type NewsTickerFilter, type NewsTickerFilterOption, type NewsTickerProps, type NewsTickerSort, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationType, type NotificationUser, TrackCard as NowPlayingCard, OSS_LOGO_GRADIENT, OSS_LOGO_PATHS, OSS_LOGO_TRANSFORM, OSS_LOGO_VIEWBOX, OfflineWrapper, type OfflineWrapperProps, Onboarding, OptimizedStateManager, type OptimizedStoreOptions, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, PageTransition, type PageTransitionDirection, type PageTransitionProps, type PageTransitionType, Pagination$1 as Pagination, type PaginationConfig, PaginationInfo, type PaginationInfoProps, type PaginationProps$1 as PaginationProps, type ParseRosterOptions, type ParsedTable, type PerformanceMetrics, type PieChartProps, PillToggle, type PillToggleMultiProps, type PillToggleOption, type PillToggleProps, type PillToggleSingleProps, Platform, type PlatformConfig, type PlatformSelect, type PlatformSelectMultiple, type PlatformType, type PlaybackQuality, type PlaybackState, type PlaylistActivity, PlaylistBuilder, type PlaylistBuilderProps, PlaylistBuilder as PlaylistCard, type PlaylistData, PlaylistBuilder as PlaylistSidebar, type PlaylistTrack, type PlaylistVisibility, type PolyhedronFace, Preloader, type PreloaderProps, PremiumCard, PremiumCardContent, PremiumCardFooter, PremiumCardHeader, type PremiumCardProps, PricingHero, type PricingHeroProps, type PricingPlan, Progress, ProgressiveImage, type ProgressiveImageProps, type ProgressiveImageStrategy, type ProgressiveImageTransition, PullToRefresh, type PullToRefreshProps, PulseIndicator, type PulseIndicatorProps, type PulseStatus, QuickForm, ROSTER_IMPORT_MAX_BYTES, type RandomPlayerIntensity, type RandomPlayerMode, type RandomPlayerParticipant, RandomPlayerPicker, type RandomPlayerPickerProps, type RandomPlayerPlaceholderMode, type RandomPlayerTheme, type RandomPlayerThemeColors, type RandomPlayerThemePreset, type RandomPlayerTrigger, type RefreshState, type RepeatMode, type ResponsiveColumns, ResponsiveFlex, ResponsiveGrid, type ResponsiveGridProps, ResponsiveHeader, type ResponsiveHeaderProps, RevenueKPI, RosterFileTooLargeError, RosterImport, type RosterImportInfo, type RosterImportLabels, type RosterImportProps, type RoundRobinCustomTheme, type RoundRobinLabels, type RoundRobinMatchup, type RoundRobinRound, RoundRobinScheduler, type RoundRobinSchedulerProps, type RoundRobinTheme, type RoundRobinThemePreset, SafeAreaWrapper, Scoreboard, type ScoreboardCustomTheme, type ScoreboardLabels, type ScoreboardProps, type ScoreboardRoundSnapshot, type ScoreboardTeam, type ScoreboardTheme, type ScoreboardThemePreset, ScrollProgressBar, type ScrollProgressBarProps, ScrollProgressLine, type ScrollProgressLineProps, ScrollToTop, type ScrollToTopProps, type SearchCategory, type SearchFilters, type SearchResult, type SearchSortBy, type SearchSuggestion, SearchWithFilters, type SearchWithFiltersProps, Section$1 as Section, SectionBlock, type SectionBlockProps, SectionLabel, type SectionLabelProps, SectionTitle, SectionedListEditor, type SectionedListEditorProps, type SectionedListSection, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionConfig, SettingsLayout, type ShareOption, Sidebar, SimpleHero, SimpleResponsiveHeader, type Size, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonText, Slider, type SliderProps, type SocialAction, SocialActions, type SocialActionsProps, type SocialLinks, type SortConfig, type SpacingScale, Stack, StepProgress, type StepProgressProps, StepWizard, type StepWizardProps, type StepWizardStep, SuccessAnimation, type SuccessAnimationProps, SuccessCheckmark, type SwipeAction, SwipeableCard, type SwipeableCardProps, Switch, type SwitchProps, THEME_COLORS, type TabItem$1 as TabItem, TabNavigation, type TabNavigationProps, Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, TagInput, type TagInputProps, type TeamColorSwatch, TeamGenerator, type TeamGeneratorCustomTheme, type TeamGeneratorLabels, type TeamGeneratorProps, type TeamGeneratorTheme, type TeamGeneratorThemePreset, Textarea, type TextareaProps, type Theme, type ThemeColors, ThemeProvider, ThemeToggle, type ThemeToggleProps, TiltCard, type TiltCardAspectRatio, type TiltCardProps, type TiltCardStat, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, ToastIcon, type ToastIconProps, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$1 as TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TouchInput, type TouchInputProps, Tour, Tooltip as TourTooltip, type Track, TrackCard, type TrackCardProps, AudioFeed as TrackList, type TrendingSection, type TrendingTrack, TrendingTracks, type TrendingTracksProps, type TutorialAction, TutorialEmbed, type TutorialEmbedProps, TutorialGallery, type TutorialGalleryProps, type TutorialMedia, type TutorialMetadata, TutorialSequence, type TutorialSequenceProps, type TutorialStep, type UseIntersectionObserverResult, type UsePerformanceObserverOptions, UserProfile, type UserProfileData, type UserProfileProps, type UserStats, UsersKPI, VARIANT_ICONS, type Variant, type VideoAuthor, type VideoChapter, VideoPlayer, type VideoPlayerProps, type VideoQuality, type VideoSubtitle, type VideoTrack, VirtualScrollList, type VirtualScrollListProps, type VirtualizationConfig, type VirtualizedItem, type VisualizerType, WarningAnimation, type WaveformData, WaveformPlayer, type WaveformPlayerProps, type WebComponentProps, type WebStyle, WelcomeModal, Z_INDEX, accordionVariants, animationPresets, audioAppTabs, audioPlayerVariants, breadcrumbsVariants, buildPolyhedron, cn, commonValidators, containerVariants, contentVariants, createDataStore, createFormStore, createOptimizedStore, cssAnimations, d6LandingRotation, dailyTrendingConfig, detectAuthProvider, detectDelimiter, detectHeader, disableScroll, durations, emptyStateVariants, enableScroll, extractRoster, fadeInOut, formVariants, formatCurrency, formatDate, formatNumber, genreChartsConfigs, getConfig, getEnvInfo, getEnvVar, getScrollbarWidth, gridVariants, hamburgerVariants, headerVariants, heroVariants, inputVariants, isBrowser, isExpo, isNative, isWeb, labelVariants, musicAppTabs, nativeConfig, parseRoster, parseTable, podcastAppTabs, readRosterFile, scaleInOut, slideUp, sliderVariants, stateManager, stickyActionsVariants, switchVariants, textareaVariants, theme, themes, timingFunctions, toast, toastVariants, useAnimationTokens, useCache, useClickOutside, useCustomPerformanceTracking, useDebouncedCallback, useEscapeKey, useGlassmorphism, useInfiniteScroll, useIntersectionObserver, useLazyLoad, useLoadingOverlay, useLoadingOverlayApi, useLoadingOverlayVisible, useLockBody, useMediaQuery, useMobileNavigation, useMounted, useNetworkInfo, useOfflineState, useOptimizedMemo, useOptimizedStoreSelector, usePerformanceObserver, useRenderPerformanceTracking, useTheme, useThrottledCallback, useToast, useVirtualization, useVisibilityTracking, validateEmail, validateEnvConfig, validatePassword, videoPlayerVariants, webAnimations, webConfig, weeklyChartsConfig, withNetworkAware, withPageTransition };
|
|
7113
|
+
export { ANIMATION_DURATION, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type ActivityType, type AdvancedAudioTrack, AdvancedPlayer, type AdvancedPlayerProps, Alert, AlertDescription, AlertTitle, AnalyticsDashboard, AnimatedSectionTitle, type AnimatedSectionTitleProps, type AnimationTokens, Breadcrumbs as AppBreadcrumbs, AppShell, AudioFeed, type AudioFeedProps, AudioPlayer, type AudioPlayerProps, SearchWithFilters as AudioSearch, type AudioTrack, type AudioTrackCardData, AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BarChart, type BarChart3IconBand, type BarChartProps, type BaseAccordionItemProps, type BaseAccordionProps, type BaseBreadcrumbsProps, type BaseChartProps, type BaseComponentProps, type BaseEmptyStateProps, type BaseSliderProps, type BaseSwitchProps, type BaseTextareaProps, type BaseTheme, type BorderRadiusScale, BracketGenerator, type BracketGeneratorProps, type BracketMatch, type BracketMatchRenderContext, type BracketParticipant, type BracketResumeMatch, type BracketSeedingStrategy, type BracketSize, type BracketState, type BracketThemeColors, type BracketThemePreset, BrandLoader, type BrandLoaderGradient, type BrandLoaderMode, type BrandLoaderPath, type BrandLoaderProps, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs$1 as Breadcrumbs, type BreadcrumbsProps$1 as BreadcrumbsProps, type BugReportPayload, BugReporter, type BugReporterProps, Button, type ButtonVariants, type CTAAction, CTACluster, type CTAClusterProps, type CacheStrategy, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chart, type ChartDataPoint$1 as ChartDataPoint, type ChartProps, type ChartSeries, Checkbox, type CoinCustomTheme, CoinFlipper, type CoinFlipperProps, type CoinResult, type CoinTheme, type CoinThemePreset, type CoinTrigger, CollaborativePlaylist, type CollaborativePlaylistData, type CollaborativePlaylistProps, type Collaborator, type CollaboratorRole, type Column$1 as Column, CommandPalette, type Comment, type CommentData, CommentSystem, type CommentSystemProps, type CommentUser, type ComponentProps, type ComponentSize, type ComponentVariant, Container$1 as Container, ConversionKPI, type CrossfadeMode, D6_FACE_PLACEMENTS, DashboardGrid, DashboardLayout, DashboardWidget, type DashboardWidgetProps, DataGrid, type DataGridProps, type DataItem, DataTable, type Column as DataTableColumn, type DataTableProps, type DateFilter, type Delimiter, Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, type DiceCount, type DiceCustomTheme, DiceRoller, type DiceRollerProps, type DiceSides, type DiceTheme, type DiceThemePreset, type DiceTrigger, type DiePolyhedron, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, type DurationFilter, DynamicHeroBanner, EmptyState, type EmptyStateProps, EnhancedScrollToTop, type EnhancedScrollToTopProps, type EnvConfig, ErrorAnimation, ErrorBoundary, type ErrorBoundaryProps, ErrorFallback, type ErrorFallbackProps, type ExportOptions, type ExportService, FLOW_TREE_CSS, FLOW_TREE_ICON_NAMES, FeatureGrid, type FeatureGridProps, FeatureHighlight, type FeatureItem, type FeedFilter, type FeedItem, type FeedSortOrder, type FeedbackCategory, FilterChip, type FilterChipProps, type FilterConfig, FilterableGrid, type FilterableGridApplyMode, type FilterableGridCategory, type FilterableGridCategoryNavProps, type FilterableGridFilter, type FilterableGridFilterOption, type FilterableGridLabels, type FilterableGridLayout, type FilterableGridProps, type FilterableGridQuickTab, type FilterableGridRenderCardContext, type FilterableGridSectionOrder, type FilterableGridSort, type FilterableGridState, FixedAudioBar, type FixedAudioBarProps, FlowTree, type FlowTreeAction, type FlowTreeDetail, FlowTreeIcon, type FlowTreeIconName, type FlowTreeIconProps, type FlowTreeIconValue, type FlowTreeImageIcon, type FlowTreeLayoutOptions, type FlowTreeMetaRow, type FlowTreeNode, type FlowTreeProps, type FlowTreeTier, Form, FormBuilder, type FormBuilderProps, FormDescription, type FormField, FormGroup, FormLabel, FormMessage, FormProgress, type FormProps, type FormSchema, FormSection, GameTimer, type GameTimerCustomTheme, type GameTimerHandle, type GameTimerLap, type GameTimerMode, type GameTimerProps, type GameTimerTheme, type GameTimerThemePreset, type GenreFilter, type GlassmorphismTokens, GradientBorderCard, type GradientBorderCardProps, Grid$1 as Grid, GridItem, HamburgerIcon, type HamburgerIconProps, Header, HeaderActions, HeaderBrand, HeaderContainer, HeaderDesktopNav, HeaderMobileTrigger, HeaderNavLink, Hero, type HeroBannerCta, type HeroBannerCtaVariant, type HeroBannerCustomTheme, type HeroBannerImageFilter, type HeroBannerMouseEffect, type HeroBannerProps, type HeroBannerSlide, type HeroBannerStat, type HeroBannerStatsBackground, type HeroBannerStatsLayout, type HeroBannerStatsPosition, type HeroBannerStatsSize, type HeroBannerTextAlign, type HeroBannerThemePreset, type HeroBannerTransition, HeroCTA, HeroContent, type HeroProps, HeroSubtitle, HeroTitle, ImageCropDropZone, type ImageCropDropZoneProps, type ImageCropFormat, ImageCropModal, type ImageCropModalProps, type ImageCropOutput, ImageCropper, type ImageCropperHandle, type ImageCropperProps, InfoAnimation, Input, type InputVariants, type IntersectionObserverOptions, KPIDashboard, type KPIData, KPIWidget, type KPIWidgetProps, Label, LavaLamp, type LavaLampProps, LazyImage, type LazyImagePlaceholder, type LazyImageProps, LineChart, type LineChartProps, type LoadingOverlayApi, type LoadingOverlayContextValue, LoadingOverlayProvider, type LoadingOverlayProviderProps, LoadingSpinner, LogoCloud, type LogoCloudProps, type LogoItem, MobileContainer, type MobileContainerProps, MobileContent, MobileEmailInput, MobileForm, MobileFormActions, MobileFormField, MobileFormGroup, type MobileFormProps, MobileFormSection, MobileGrid, MobileHero, type MobileHeroProps, MobileNavButton, MobileNavContent, MobileNavDrawer, MobileNavFooter, MobileNavHeader, MobileNavLink, MobileNavOverlay, MobileNavTrigger, MobileNavigation, MobileOTPInput, MobilePage, MobilePhoneInput, MobileSection, MobileSticky, Modal, type NativeComponentProps, Container as NativeContainer, Grid as NativeGrid, Section as NativeSection, type NativeStyle, Pagination as NavigationPagination, Stepper as NavigationStepper, Tabs as NavigationTabs, NetworkAwareContent, type NetworkAwareContentProps, type NetworkInfo, type NetworkSpeed, type NetworkType, NewsTicker, type NewsTickerFilter, type NewsTickerFilterOption, type NewsTickerProps, type NewsTickerSort, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationType, type NotificationUser, TrackCard as NowPlayingCard, OSS_LOGO_GRADIENT, OSS_LOGO_PATHS, OSS_LOGO_TRANSFORM, OSS_LOGO_VIEWBOX, OfflineWrapper, type OfflineWrapperProps, Onboarding, OptimizedStateManager, type OptimizedStoreOptions, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, PageTransition, type PageTransitionDirection, type PageTransitionProps, type PageTransitionType, Pagination$1 as Pagination, type PaginationConfig, PaginationInfo, type PaginationInfoProps, type PaginationProps$1 as PaginationProps, type ParseRosterOptions, type ParsedTable, type PerformanceMetrics, type PieChartProps, PillToggle, type PillToggleMultiProps, type PillToggleOption, type PillToggleProps, type PillToggleSingleProps, Platform, type PlatformConfig, type PlatformSelect, type PlatformSelectMultiple, type PlatformType, type PlaybackQuality, type PlaybackState, type PlaylistActivity, PlaylistBuilder, type PlaylistBuilderProps, PlaylistBuilder as PlaylistCard, type PlaylistData, PlaylistBuilder as PlaylistSidebar, type PlaylistTrack, type PlaylistVisibility, type PolyhedronFace, Preloader, type PreloaderProps, PremiumCard, PremiumCardContent, PremiumCardFooter, PremiumCardHeader, type PremiumCardProps, PricingHero, type PricingHeroProps, type PricingPlan, Progress, ProgressiveImage, type ProgressiveImageProps, type ProgressiveImageStrategy, type ProgressiveImageTransition, PullToRefresh, type PullToRefreshProps, PulseIndicator, type PulseIndicatorProps, type PulseStatus, QuickForm, ROSTER_IMPORT_MAX_BYTES, type RandomPlayerIntensity, type RandomPlayerMode, type RandomPlayerParticipant, RandomPlayerPicker, type RandomPlayerPickerProps, type RandomPlayerPlaceholderMode, type RandomPlayerTheme, type RandomPlayerThemeColors, type RandomPlayerThemePreset, type RandomPlayerTrigger, type RefreshState, type RepeatMode, type ResponsiveColumns, ResponsiveFlex, ResponsiveGrid, type ResponsiveGridProps, ResponsiveHeader, type ResponsiveHeaderProps, RevenueKPI, RosterFileTooLargeError, RosterImport, type RosterImportInfo, type RosterImportLabels, type RosterImportProps, type RoundRobinCustomTheme, type RoundRobinLabels, type RoundRobinMatchup, type RoundRobinRound, RoundRobinScheduler, type RoundRobinSchedulerProps, type RoundRobinTheme, type RoundRobinThemePreset, SafeAreaWrapper, Scoreboard, type ScoreboardCustomTheme, type ScoreboardLabels, type ScoreboardProps, type ScoreboardRoundSnapshot, type ScoreboardTeam, type ScoreboardTheme, type ScoreboardThemePreset, ScrollProgressBar, type ScrollProgressBarProps, ScrollProgressLine, type ScrollProgressLineProps, ScrollToTop, type ScrollToTopProps, type SearchCategory, type SearchFilters, type SearchResult, type SearchSortBy, type SearchSuggestion, SearchWithFilters, type SearchWithFiltersProps, Section$1 as Section, SectionBlock, type SectionBlockProps, SectionLabel, type SectionLabelProps, SectionTitle, SectionedListEditor, type SectionedListEditorProps, type SectionedListSection, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionConfig, SettingsLayout, type ShareOption, Sidebar, SimpleHero, SimpleResponsiveHeader, type Size, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonText, Slider, type SliderProps, type SocialAction, SocialActions, type SocialActionsProps, type SocialLinks, type SortConfig, type SpacingScale, Stack, StepProgress, type StepProgressProps, StepWizard, type StepWizardProps, type StepWizardStep, SuccessAnimation, type SuccessAnimationProps, SuccessCheckmark, type SwipeAction, SwipeableCard, type SwipeableCardProps, Switch, type SwitchProps, THEME_COLORS, type TabItem$1 as TabItem, TabNavigation, type TabNavigationProps, Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, TagInput, type TagInputProps, type TeamColorSwatch, TeamGenerator, type TeamGeneratorCustomTheme, type TeamGeneratorLabels, type TeamGeneratorProps, type TeamGeneratorTheme, type TeamGeneratorThemePreset, Textarea, type TextareaProps, type Theme, type ThemeColors, ThemeProvider, ThemeToggle, type ThemeToggleProps, TiltCard, type TiltCardAspectRatio, type TiltCardProps, type TiltCardStat, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, ToastIcon, type ToastIconProps, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$1 as TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TouchInput, type TouchInputProps, Tour, Tooltip as TourTooltip, type Track, TrackCard, type TrackCardProps, AudioFeed as TrackList, type TrendingSection, type TrendingTrack, TrendingTracks, type TrendingTracksProps, type TutorialAction, TutorialEmbed, type TutorialEmbedProps, TutorialGallery, type TutorialGalleryProps, type TutorialMedia, type TutorialMetadata, TutorialSequence, type TutorialSequenceProps, type TutorialStep, type UseIntersectionObserverResult, type UsePerformanceObserverOptions, UserProfile, type UserProfileData, type UserProfileProps, type UserStats, UsersKPI, VARIANT_ICONS, type Variant, type VideoAuthor, type VideoChapter, VideoPlayer, type VideoPlayerProps, type VideoQuality, type VideoSubtitle, type VideoTrack, VirtualScrollList, type VirtualScrollListProps, type VirtualizationConfig, type VirtualizedItem, type VisualizerType, WarningAnimation, type WaveformData, WaveformPlayer, type WaveformPlayerProps, type WebComponentProps, type WebStyle, WelcomeModal, Z_INDEX, accordionVariants, animationPresets, audioAppTabs, audioPlayerVariants, breadcrumbsVariants, buildPolyhedron, cn, commonValidators, containerVariants, contentVariants, createDataStore, createFormStore, createOptimizedStore, cssAnimations, d6LandingRotation, dailyTrendingConfig, dealFaceValues, detectAuthProvider, detectDelimiter, detectHeader, disableScroll, durations, emptyStateVariants, enableScroll, extractRoster, fadeInOut, formVariants, formatCurrency, formatDate, formatNumber, genreChartsConfigs, getConfig, getEnvInfo, getEnvVar, getScrollbarWidth, gridVariants, hamburgerVariants, headerVariants, heroVariants, inputVariants, isBrowser, isExpo, isNative, isWeb, labelVariants, musicAppTabs, nativeConfig, parseRoster, parseTable, podcastAppTabs, readRosterFile, scaleInOut, slideUp, sliderVariants, stateManager, stickyActionsVariants, switchVariants, textareaVariants, theme, themes, timingFunctions, toast, toastVariants, useAnimationTokens, useCache, useClickOutside, useCustomPerformanceTracking, useDebouncedCallback, useEscapeKey, useGlassmorphism, useInfiniteScroll, useIntersectionObserver, useLazyLoad, useLoadingOverlay, useLoadingOverlayApi, useLoadingOverlayVisible, useLockBody, useMediaQuery, useMobileNavigation, useMounted, useNetworkInfo, useOfflineState, useOptimizedMemo, useOptimizedStoreSelector, usePerformanceObserver, useRenderPerformanceTracking, useTheme, useThrottledCallback, useToast, useVirtualization, useVisibilityTracking, validateEmail, validateEnvConfig, validatePassword, videoPlayerVariants, webAnimations, webConfig, weeklyChartsConfig, withNetworkAware, withPageTransition };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -5317,6 +5317,8 @@ interface PolyhedronFace {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
interface DiePolyhedron {
|
|
5319
5319
|
faces: PolyhedronFace[];
|
|
5320
|
+
/** Antipodal face index per face, or -1 (tetrahedron has none). */
|
|
5321
|
+
opposite: number[];
|
|
5320
5322
|
/** Max centroid→outline distance across faces (unit scale). */
|
|
5321
5323
|
faceRadius: number;
|
|
5322
5324
|
/** Min centroid→edge distance across faces — sizes the numerals. */
|
|
@@ -5324,6 +5326,15 @@ interface DiePolyhedron {
|
|
|
5324
5326
|
}
|
|
5325
5327
|
/** Exported for tests: geometry invariants are asserted directly. */
|
|
5326
5328
|
declare function buildPolyhedron(sides: Exclude<DiceSides, 6>): DiePolyhedron;
|
|
5329
|
+
/**
|
|
5330
|
+
* Deal a fresh set of face values for one roll: the rolled value on the
|
|
5331
|
+
* viewer face, its antipode keeping the sides+1 sum, and the remaining
|
|
5332
|
+
* values shuffled across the other faces (in opposite-sum pairs on
|
|
5333
|
+
* solids that have them). Purely visual — the recorded outcome is what
|
|
5334
|
+
* the viewer face shows, and the die still shows every value exactly
|
|
5335
|
+
* once. Exported for tests.
|
|
5336
|
+
*/
|
|
5337
|
+
declare function dealFaceValues(geo: DiePolyhedron, sides: Exclude<DiceSides, 6>, rolled: number): number[];
|
|
5327
5338
|
declare function DiceRoller({ count, sides, theme, darkMode, size, minSize, responsive, autoRoll, onRoll, trigger, label, iconEmoji, showHistory, historyMax, initialHistory, rollRef, arenaHeight: arenaHeightProp, hideResults, className, style, ariaLabel, }: DiceRollerProps): ReactNode;
|
|
5328
5339
|
declare namespace DiceRoller {
|
|
5329
5340
|
var displayName: string;
|
|
@@ -7099,4 +7110,4 @@ declare class OptimizedStateManager {
|
|
|
7099
7110
|
}
|
|
7100
7111
|
declare const stateManager: OptimizedStateManager;
|
|
7101
7112
|
|
|
7102
|
-
export { ANIMATION_DURATION, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type ActivityType, type AdvancedAudioTrack, AdvancedPlayer, type AdvancedPlayerProps, Alert, AlertDescription, AlertTitle, AnalyticsDashboard, AnimatedSectionTitle, type AnimatedSectionTitleProps, type AnimationTokens, Breadcrumbs as AppBreadcrumbs, AppShell, AudioFeed, type AudioFeedProps, AudioPlayer, type AudioPlayerProps, SearchWithFilters as AudioSearch, type AudioTrack, type AudioTrackCardData, AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BarChart, type BarChart3IconBand, type BarChartProps, type BaseAccordionItemProps, type BaseAccordionProps, type BaseBreadcrumbsProps, type BaseChartProps, type BaseComponentProps, type BaseEmptyStateProps, type BaseSliderProps, type BaseSwitchProps, type BaseTextareaProps, type BaseTheme, type BorderRadiusScale, BracketGenerator, type BracketGeneratorProps, type BracketMatch, type BracketMatchRenderContext, type BracketParticipant, type BracketResumeMatch, type BracketSeedingStrategy, type BracketSize, type BracketState, type BracketThemeColors, type BracketThemePreset, BrandLoader, type BrandLoaderGradient, type BrandLoaderMode, type BrandLoaderPath, type BrandLoaderProps, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs$1 as Breadcrumbs, type BreadcrumbsProps$1 as BreadcrumbsProps, type BugReportPayload, BugReporter, type BugReporterProps, Button, type ButtonVariants, type CTAAction, CTACluster, type CTAClusterProps, type CacheStrategy, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chart, type ChartDataPoint$1 as ChartDataPoint, type ChartProps, type ChartSeries, Checkbox, type CoinCustomTheme, CoinFlipper, type CoinFlipperProps, type CoinResult, type CoinTheme, type CoinThemePreset, type CoinTrigger, CollaborativePlaylist, type CollaborativePlaylistData, type CollaborativePlaylistProps, type Collaborator, type CollaboratorRole, type Column$1 as Column, CommandPalette, type Comment, type CommentData, CommentSystem, type CommentSystemProps, type CommentUser, type ComponentProps, type ComponentSize, type ComponentVariant, Container$1 as Container, ConversionKPI, type CrossfadeMode, D6_FACE_PLACEMENTS, DashboardGrid, DashboardLayout, DashboardWidget, type DashboardWidgetProps, DataGrid, type DataGridProps, type DataItem, DataTable, type Column as DataTableColumn, type DataTableProps, type DateFilter, type Delimiter, Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, type DiceCount, type DiceCustomTheme, DiceRoller, type DiceRollerProps, type DiceSides, type DiceTheme, type DiceThemePreset, type DiceTrigger, type DiePolyhedron, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, type DurationFilter, DynamicHeroBanner, EmptyState, type EmptyStateProps, EnhancedScrollToTop, type EnhancedScrollToTopProps, type EnvConfig, ErrorAnimation, ErrorBoundary, type ErrorBoundaryProps, ErrorFallback, type ErrorFallbackProps, type ExportOptions, type ExportService, FLOW_TREE_CSS, FLOW_TREE_ICON_NAMES, FeatureGrid, type FeatureGridProps, FeatureHighlight, type FeatureItem, type FeedFilter, type FeedItem, type FeedSortOrder, type FeedbackCategory, FilterChip, type FilterChipProps, type FilterConfig, FilterableGrid, type FilterableGridApplyMode, type FilterableGridCategory, type FilterableGridCategoryNavProps, type FilterableGridFilter, type FilterableGridFilterOption, type FilterableGridLabels, type FilterableGridLayout, type FilterableGridProps, type FilterableGridQuickTab, type FilterableGridRenderCardContext, type FilterableGridSectionOrder, type FilterableGridSort, type FilterableGridState, FixedAudioBar, type FixedAudioBarProps, FlowTree, type FlowTreeAction, type FlowTreeDetail, FlowTreeIcon, type FlowTreeIconName, type FlowTreeIconProps, type FlowTreeIconValue, type FlowTreeImageIcon, type FlowTreeLayoutOptions, type FlowTreeMetaRow, type FlowTreeNode, type FlowTreeProps, type FlowTreeTier, Form, FormBuilder, type FormBuilderProps, FormDescription, type FormField, FormGroup, FormLabel, FormMessage, FormProgress, type FormProps, type FormSchema, FormSection, GameTimer, type GameTimerCustomTheme, type GameTimerHandle, type GameTimerLap, type GameTimerMode, type GameTimerProps, type GameTimerTheme, type GameTimerThemePreset, type GenreFilter, type GlassmorphismTokens, GradientBorderCard, type GradientBorderCardProps, Grid$1 as Grid, GridItem, HamburgerIcon, type HamburgerIconProps, Header, HeaderActions, HeaderBrand, HeaderContainer, HeaderDesktopNav, HeaderMobileTrigger, HeaderNavLink, Hero, type HeroBannerCta, type HeroBannerCtaVariant, type HeroBannerCustomTheme, type HeroBannerImageFilter, type HeroBannerMouseEffect, type HeroBannerProps, type HeroBannerSlide, type HeroBannerStat, type HeroBannerStatsBackground, type HeroBannerStatsLayout, type HeroBannerStatsPosition, type HeroBannerStatsSize, type HeroBannerTextAlign, type HeroBannerThemePreset, type HeroBannerTransition, HeroCTA, HeroContent, type HeroProps, HeroSubtitle, HeroTitle, ImageCropDropZone, type ImageCropDropZoneProps, type ImageCropFormat, ImageCropModal, type ImageCropModalProps, type ImageCropOutput, ImageCropper, type ImageCropperHandle, type ImageCropperProps, InfoAnimation, Input, type InputVariants, type IntersectionObserverOptions, KPIDashboard, type KPIData, KPIWidget, type KPIWidgetProps, Label, LavaLamp, type LavaLampProps, LazyImage, type LazyImagePlaceholder, type LazyImageProps, LineChart, type LineChartProps, type LoadingOverlayApi, type LoadingOverlayContextValue, LoadingOverlayProvider, type LoadingOverlayProviderProps, LoadingSpinner, LogoCloud, type LogoCloudProps, type LogoItem, MobileContainer, type MobileContainerProps, MobileContent, MobileEmailInput, MobileForm, MobileFormActions, MobileFormField, MobileFormGroup, type MobileFormProps, MobileFormSection, MobileGrid, MobileHero, type MobileHeroProps, MobileNavButton, MobileNavContent, MobileNavDrawer, MobileNavFooter, MobileNavHeader, MobileNavLink, MobileNavOverlay, MobileNavTrigger, MobileNavigation, MobileOTPInput, MobilePage, MobilePhoneInput, MobileSection, MobileSticky, Modal, type NativeComponentProps, Container as NativeContainer, Grid as NativeGrid, Section as NativeSection, type NativeStyle, Pagination as NavigationPagination, Stepper as NavigationStepper, Tabs as NavigationTabs, NetworkAwareContent, type NetworkAwareContentProps, type NetworkInfo, type NetworkSpeed, type NetworkType, NewsTicker, type NewsTickerFilter, type NewsTickerFilterOption, type NewsTickerProps, type NewsTickerSort, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationType, type NotificationUser, TrackCard as NowPlayingCard, OSS_LOGO_GRADIENT, OSS_LOGO_PATHS, OSS_LOGO_TRANSFORM, OSS_LOGO_VIEWBOX, OfflineWrapper, type OfflineWrapperProps, Onboarding, OptimizedStateManager, type OptimizedStoreOptions, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, PageTransition, type PageTransitionDirection, type PageTransitionProps, type PageTransitionType, Pagination$1 as Pagination, type PaginationConfig, PaginationInfo, type PaginationInfoProps, type PaginationProps$1 as PaginationProps, type ParseRosterOptions, type ParsedTable, type PerformanceMetrics, type PieChartProps, PillToggle, type PillToggleMultiProps, type PillToggleOption, type PillToggleProps, type PillToggleSingleProps, Platform, type PlatformConfig, type PlatformSelect, type PlatformSelectMultiple, type PlatformType, type PlaybackQuality, type PlaybackState, type PlaylistActivity, PlaylistBuilder, type PlaylistBuilderProps, PlaylistBuilder as PlaylistCard, type PlaylistData, PlaylistBuilder as PlaylistSidebar, type PlaylistTrack, type PlaylistVisibility, type PolyhedronFace, Preloader, type PreloaderProps, PremiumCard, PremiumCardContent, PremiumCardFooter, PremiumCardHeader, type PremiumCardProps, PricingHero, type PricingHeroProps, type PricingPlan, Progress, ProgressiveImage, type ProgressiveImageProps, type ProgressiveImageStrategy, type ProgressiveImageTransition, PullToRefresh, type PullToRefreshProps, PulseIndicator, type PulseIndicatorProps, type PulseStatus, QuickForm, ROSTER_IMPORT_MAX_BYTES, type RandomPlayerIntensity, type RandomPlayerMode, type RandomPlayerParticipant, RandomPlayerPicker, type RandomPlayerPickerProps, type RandomPlayerPlaceholderMode, type RandomPlayerTheme, type RandomPlayerThemeColors, type RandomPlayerThemePreset, type RandomPlayerTrigger, type RefreshState, type RepeatMode, type ResponsiveColumns, ResponsiveFlex, ResponsiveGrid, type ResponsiveGridProps, ResponsiveHeader, type ResponsiveHeaderProps, RevenueKPI, RosterFileTooLargeError, RosterImport, type RosterImportInfo, type RosterImportLabels, type RosterImportProps, type RoundRobinCustomTheme, type RoundRobinLabels, type RoundRobinMatchup, type RoundRobinRound, RoundRobinScheduler, type RoundRobinSchedulerProps, type RoundRobinTheme, type RoundRobinThemePreset, SafeAreaWrapper, Scoreboard, type ScoreboardCustomTheme, type ScoreboardLabels, type ScoreboardProps, type ScoreboardRoundSnapshot, type ScoreboardTeam, type ScoreboardTheme, type ScoreboardThemePreset, ScrollProgressBar, type ScrollProgressBarProps, ScrollProgressLine, type ScrollProgressLineProps, ScrollToTop, type ScrollToTopProps, type SearchCategory, type SearchFilters, type SearchResult, type SearchSortBy, type SearchSuggestion, SearchWithFilters, type SearchWithFiltersProps, Section$1 as Section, SectionBlock, type SectionBlockProps, SectionLabel, type SectionLabelProps, SectionTitle, SectionedListEditor, type SectionedListEditorProps, type SectionedListSection, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionConfig, SettingsLayout, type ShareOption, Sidebar, SimpleHero, SimpleResponsiveHeader, type Size, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonText, Slider, type SliderProps, type SocialAction, SocialActions, type SocialActionsProps, type SocialLinks, type SortConfig, type SpacingScale, Stack, StepProgress, type StepProgressProps, StepWizard, type StepWizardProps, type StepWizardStep, SuccessAnimation, type SuccessAnimationProps, SuccessCheckmark, type SwipeAction, SwipeableCard, type SwipeableCardProps, Switch, type SwitchProps, THEME_COLORS, type TabItem$1 as TabItem, TabNavigation, type TabNavigationProps, Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, TagInput, type TagInputProps, type TeamColorSwatch, TeamGenerator, type TeamGeneratorCustomTheme, type TeamGeneratorLabels, type TeamGeneratorProps, type TeamGeneratorTheme, type TeamGeneratorThemePreset, Textarea, type TextareaProps, type Theme, type ThemeColors, ThemeProvider, ThemeToggle, type ThemeToggleProps, TiltCard, type TiltCardAspectRatio, type TiltCardProps, type TiltCardStat, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, ToastIcon, type ToastIconProps, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$1 as TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TouchInput, type TouchInputProps, Tour, Tooltip as TourTooltip, type Track, TrackCard, type TrackCardProps, AudioFeed as TrackList, type TrendingSection, type TrendingTrack, TrendingTracks, type TrendingTracksProps, type TutorialAction, TutorialEmbed, type TutorialEmbedProps, TutorialGallery, type TutorialGalleryProps, type TutorialMedia, type TutorialMetadata, TutorialSequence, type TutorialSequenceProps, type TutorialStep, type UseIntersectionObserverResult, type UsePerformanceObserverOptions, UserProfile, type UserProfileData, type UserProfileProps, type UserStats, UsersKPI, VARIANT_ICONS, type Variant, type VideoAuthor, type VideoChapter, VideoPlayer, type VideoPlayerProps, type VideoQuality, type VideoSubtitle, type VideoTrack, VirtualScrollList, type VirtualScrollListProps, type VirtualizationConfig, type VirtualizedItem, type VisualizerType, WarningAnimation, type WaveformData, WaveformPlayer, type WaveformPlayerProps, type WebComponentProps, type WebStyle, WelcomeModal, Z_INDEX, accordionVariants, animationPresets, audioAppTabs, audioPlayerVariants, breadcrumbsVariants, buildPolyhedron, cn, commonValidators, containerVariants, contentVariants, createDataStore, createFormStore, createOptimizedStore, cssAnimations, d6LandingRotation, dailyTrendingConfig, detectAuthProvider, detectDelimiter, detectHeader, disableScroll, durations, emptyStateVariants, enableScroll, extractRoster, fadeInOut, formVariants, formatCurrency, formatDate, formatNumber, genreChartsConfigs, getConfig, getEnvInfo, getEnvVar, getScrollbarWidth, gridVariants, hamburgerVariants, headerVariants, heroVariants, inputVariants, isBrowser, isExpo, isNative, isWeb, labelVariants, musicAppTabs, nativeConfig, parseRoster, parseTable, podcastAppTabs, readRosterFile, scaleInOut, slideUp, sliderVariants, stateManager, stickyActionsVariants, switchVariants, textareaVariants, theme, themes, timingFunctions, toast, toastVariants, useAnimationTokens, useCache, useClickOutside, useCustomPerformanceTracking, useDebouncedCallback, useEscapeKey, useGlassmorphism, useInfiniteScroll, useIntersectionObserver, useLazyLoad, useLoadingOverlay, useLoadingOverlayApi, useLoadingOverlayVisible, useLockBody, useMediaQuery, useMobileNavigation, useMounted, useNetworkInfo, useOfflineState, useOptimizedMemo, useOptimizedStoreSelector, usePerformanceObserver, useRenderPerformanceTracking, useTheme, useThrottledCallback, useToast, useVirtualization, useVisibilityTracking, validateEmail, validateEnvConfig, validatePassword, videoPlayerVariants, webAnimations, webConfig, weeklyChartsConfig, withNetworkAware, withPageTransition };
|
|
7113
|
+
export { ANIMATION_DURATION, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type ActivityType, type AdvancedAudioTrack, AdvancedPlayer, type AdvancedPlayerProps, Alert, AlertDescription, AlertTitle, AnalyticsDashboard, AnimatedSectionTitle, type AnimatedSectionTitleProps, type AnimationTokens, Breadcrumbs as AppBreadcrumbs, AppShell, AudioFeed, type AudioFeedProps, AudioPlayer, type AudioPlayerProps, SearchWithFilters as AudioSearch, type AudioTrack, type AudioTrackCardData, AuthLayout, Avatar, AvatarFallback, AvatarImage, Badge, BarChart, type BarChart3IconBand, type BarChartProps, type BaseAccordionItemProps, type BaseAccordionProps, type BaseBreadcrumbsProps, type BaseChartProps, type BaseComponentProps, type BaseEmptyStateProps, type BaseSliderProps, type BaseSwitchProps, type BaseTextareaProps, type BaseTheme, type BorderRadiusScale, BracketGenerator, type BracketGeneratorProps, type BracketMatch, type BracketMatchRenderContext, type BracketParticipant, type BracketResumeMatch, type BracketSeedingStrategy, type BracketSize, type BracketState, type BracketThemeColors, type BracketThemePreset, BrandLoader, type BrandLoaderGradient, type BrandLoaderMode, type BrandLoaderPath, type BrandLoaderProps, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs$1 as Breadcrumbs, type BreadcrumbsProps$1 as BreadcrumbsProps, type BugReportPayload, BugReporter, type BugReporterProps, Button, type ButtonVariants, type CTAAction, CTACluster, type CTAClusterProps, type CacheStrategy, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Chart, type ChartDataPoint$1 as ChartDataPoint, type ChartProps, type ChartSeries, Checkbox, type CoinCustomTheme, CoinFlipper, type CoinFlipperProps, type CoinResult, type CoinTheme, type CoinThemePreset, type CoinTrigger, CollaborativePlaylist, type CollaborativePlaylistData, type CollaborativePlaylistProps, type Collaborator, type CollaboratorRole, type Column$1 as Column, CommandPalette, type Comment, type CommentData, CommentSystem, type CommentSystemProps, type CommentUser, type ComponentProps, type ComponentSize, type ComponentVariant, Container$1 as Container, ConversionKPI, type CrossfadeMode, D6_FACE_PLACEMENTS, DashboardGrid, DashboardLayout, DashboardWidget, type DashboardWidgetProps, DataGrid, type DataGridProps, type DataItem, DataTable, type Column as DataTableColumn, type DataTableProps, type DateFilter, type Delimiter, Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, type DiceCount, type DiceCustomTheme, DiceRoller, type DiceRollerProps, type DiceSides, type DiceTheme, type DiceThemePreset, type DiceTrigger, type DiePolyhedron, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, type DurationFilter, DynamicHeroBanner, EmptyState, type EmptyStateProps, EnhancedScrollToTop, type EnhancedScrollToTopProps, type EnvConfig, ErrorAnimation, ErrorBoundary, type ErrorBoundaryProps, ErrorFallback, type ErrorFallbackProps, type ExportOptions, type ExportService, FLOW_TREE_CSS, FLOW_TREE_ICON_NAMES, FeatureGrid, type FeatureGridProps, FeatureHighlight, type FeatureItem, type FeedFilter, type FeedItem, type FeedSortOrder, type FeedbackCategory, FilterChip, type FilterChipProps, type FilterConfig, FilterableGrid, type FilterableGridApplyMode, type FilterableGridCategory, type FilterableGridCategoryNavProps, type FilterableGridFilter, type FilterableGridFilterOption, type FilterableGridLabels, type FilterableGridLayout, type FilterableGridProps, type FilterableGridQuickTab, type FilterableGridRenderCardContext, type FilterableGridSectionOrder, type FilterableGridSort, type FilterableGridState, FixedAudioBar, type FixedAudioBarProps, FlowTree, type FlowTreeAction, type FlowTreeDetail, FlowTreeIcon, type FlowTreeIconName, type FlowTreeIconProps, type FlowTreeIconValue, type FlowTreeImageIcon, type FlowTreeLayoutOptions, type FlowTreeMetaRow, type FlowTreeNode, type FlowTreeProps, type FlowTreeTier, Form, FormBuilder, type FormBuilderProps, FormDescription, type FormField, FormGroup, FormLabel, FormMessage, FormProgress, type FormProps, type FormSchema, FormSection, GameTimer, type GameTimerCustomTheme, type GameTimerHandle, type GameTimerLap, type GameTimerMode, type GameTimerProps, type GameTimerTheme, type GameTimerThemePreset, type GenreFilter, type GlassmorphismTokens, GradientBorderCard, type GradientBorderCardProps, Grid$1 as Grid, GridItem, HamburgerIcon, type HamburgerIconProps, Header, HeaderActions, HeaderBrand, HeaderContainer, HeaderDesktopNav, HeaderMobileTrigger, HeaderNavLink, Hero, type HeroBannerCta, type HeroBannerCtaVariant, type HeroBannerCustomTheme, type HeroBannerImageFilter, type HeroBannerMouseEffect, type HeroBannerProps, type HeroBannerSlide, type HeroBannerStat, type HeroBannerStatsBackground, type HeroBannerStatsLayout, type HeroBannerStatsPosition, type HeroBannerStatsSize, type HeroBannerTextAlign, type HeroBannerThemePreset, type HeroBannerTransition, HeroCTA, HeroContent, type HeroProps, HeroSubtitle, HeroTitle, ImageCropDropZone, type ImageCropDropZoneProps, type ImageCropFormat, ImageCropModal, type ImageCropModalProps, type ImageCropOutput, ImageCropper, type ImageCropperHandle, type ImageCropperProps, InfoAnimation, Input, type InputVariants, type IntersectionObserverOptions, KPIDashboard, type KPIData, KPIWidget, type KPIWidgetProps, Label, LavaLamp, type LavaLampProps, LazyImage, type LazyImagePlaceholder, type LazyImageProps, LineChart, type LineChartProps, type LoadingOverlayApi, type LoadingOverlayContextValue, LoadingOverlayProvider, type LoadingOverlayProviderProps, LoadingSpinner, LogoCloud, type LogoCloudProps, type LogoItem, MobileContainer, type MobileContainerProps, MobileContent, MobileEmailInput, MobileForm, MobileFormActions, MobileFormField, MobileFormGroup, type MobileFormProps, MobileFormSection, MobileGrid, MobileHero, type MobileHeroProps, MobileNavButton, MobileNavContent, MobileNavDrawer, MobileNavFooter, MobileNavHeader, MobileNavLink, MobileNavOverlay, MobileNavTrigger, MobileNavigation, MobileOTPInput, MobilePage, MobilePhoneInput, MobileSection, MobileSticky, Modal, type NativeComponentProps, Container as NativeContainer, Grid as NativeGrid, Section as NativeSection, type NativeStyle, Pagination as NavigationPagination, Stepper as NavigationStepper, Tabs as NavigationTabs, NetworkAwareContent, type NetworkAwareContentProps, type NetworkInfo, type NetworkSpeed, type NetworkType, NewsTicker, type NewsTickerFilter, type NewsTickerFilterOption, type NewsTickerProps, type NewsTickerSort, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationType, type NotificationUser, TrackCard as NowPlayingCard, OSS_LOGO_GRADIENT, OSS_LOGO_PATHS, OSS_LOGO_TRANSFORM, OSS_LOGO_VIEWBOX, OfflineWrapper, type OfflineWrapperProps, Onboarding, OptimizedStateManager, type OptimizedStoreOptions, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, PageTransition, type PageTransitionDirection, type PageTransitionProps, type PageTransitionType, Pagination$1 as Pagination, type PaginationConfig, PaginationInfo, type PaginationInfoProps, type PaginationProps$1 as PaginationProps, type ParseRosterOptions, type ParsedTable, type PerformanceMetrics, type PieChartProps, PillToggle, type PillToggleMultiProps, type PillToggleOption, type PillToggleProps, type PillToggleSingleProps, Platform, type PlatformConfig, type PlatformSelect, type PlatformSelectMultiple, type PlatformType, type PlaybackQuality, type PlaybackState, type PlaylistActivity, PlaylistBuilder, type PlaylistBuilderProps, PlaylistBuilder as PlaylistCard, type PlaylistData, PlaylistBuilder as PlaylistSidebar, type PlaylistTrack, type PlaylistVisibility, type PolyhedronFace, Preloader, type PreloaderProps, PremiumCard, PremiumCardContent, PremiumCardFooter, PremiumCardHeader, type PremiumCardProps, PricingHero, type PricingHeroProps, type PricingPlan, Progress, ProgressiveImage, type ProgressiveImageProps, type ProgressiveImageStrategy, type ProgressiveImageTransition, PullToRefresh, type PullToRefreshProps, PulseIndicator, type PulseIndicatorProps, type PulseStatus, QuickForm, ROSTER_IMPORT_MAX_BYTES, type RandomPlayerIntensity, type RandomPlayerMode, type RandomPlayerParticipant, RandomPlayerPicker, type RandomPlayerPickerProps, type RandomPlayerPlaceholderMode, type RandomPlayerTheme, type RandomPlayerThemeColors, type RandomPlayerThemePreset, type RandomPlayerTrigger, type RefreshState, type RepeatMode, type ResponsiveColumns, ResponsiveFlex, ResponsiveGrid, type ResponsiveGridProps, ResponsiveHeader, type ResponsiveHeaderProps, RevenueKPI, RosterFileTooLargeError, RosterImport, type RosterImportInfo, type RosterImportLabels, type RosterImportProps, type RoundRobinCustomTheme, type RoundRobinLabels, type RoundRobinMatchup, type RoundRobinRound, RoundRobinScheduler, type RoundRobinSchedulerProps, type RoundRobinTheme, type RoundRobinThemePreset, SafeAreaWrapper, Scoreboard, type ScoreboardCustomTheme, type ScoreboardLabels, type ScoreboardProps, type ScoreboardRoundSnapshot, type ScoreboardTeam, type ScoreboardTheme, type ScoreboardThemePreset, ScrollProgressBar, type ScrollProgressBarProps, ScrollProgressLine, type ScrollProgressLineProps, ScrollToTop, type ScrollToTopProps, type SearchCategory, type SearchFilters, type SearchResult, type SearchSortBy, type SearchSuggestion, SearchWithFilters, type SearchWithFiltersProps, Section$1 as Section, SectionBlock, type SectionBlockProps, SectionLabel, type SectionLabelProps, SectionTitle, SectionedListEditor, type SectionedListEditorProps, type SectionedListSection, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionConfig, SettingsLayout, type ShareOption, Sidebar, SimpleHero, SimpleResponsiveHeader, type Size, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonText, Slider, type SliderProps, type SocialAction, SocialActions, type SocialActionsProps, type SocialLinks, type SortConfig, type SpacingScale, Stack, StepProgress, type StepProgressProps, StepWizard, type StepWizardProps, type StepWizardStep, SuccessAnimation, type SuccessAnimationProps, SuccessCheckmark, type SwipeAction, SwipeableCard, type SwipeableCardProps, Switch, type SwitchProps, THEME_COLORS, type TabItem$1 as TabItem, TabNavigation, type TabNavigationProps, Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, TagInput, type TagInputProps, type TeamColorSwatch, TeamGenerator, type TeamGeneratorCustomTheme, type TeamGeneratorLabels, type TeamGeneratorProps, type TeamGeneratorTheme, type TeamGeneratorThemePreset, Textarea, type TextareaProps, type Theme, type ThemeColors, ThemeProvider, ThemeToggle, type ThemeToggleProps, TiltCard, type TiltCardAspectRatio, type TiltCardProps, type TiltCardStat, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, ToastIcon, type ToastIconProps, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Tooltip$1 as Tooltip, TooltipContent, type TooltipProps$1 as TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, TouchInput, type TouchInputProps, Tour, Tooltip as TourTooltip, type Track, TrackCard, type TrackCardProps, AudioFeed as TrackList, type TrendingSection, type TrendingTrack, TrendingTracks, type TrendingTracksProps, type TutorialAction, TutorialEmbed, type TutorialEmbedProps, TutorialGallery, type TutorialGalleryProps, type TutorialMedia, type TutorialMetadata, TutorialSequence, type TutorialSequenceProps, type TutorialStep, type UseIntersectionObserverResult, type UsePerformanceObserverOptions, UserProfile, type UserProfileData, type UserProfileProps, type UserStats, UsersKPI, VARIANT_ICONS, type Variant, type VideoAuthor, type VideoChapter, VideoPlayer, type VideoPlayerProps, type VideoQuality, type VideoSubtitle, type VideoTrack, VirtualScrollList, type VirtualScrollListProps, type VirtualizationConfig, type VirtualizedItem, type VisualizerType, WarningAnimation, type WaveformData, WaveformPlayer, type WaveformPlayerProps, type WebComponentProps, type WebStyle, WelcomeModal, Z_INDEX, accordionVariants, animationPresets, audioAppTabs, audioPlayerVariants, breadcrumbsVariants, buildPolyhedron, cn, commonValidators, containerVariants, contentVariants, createDataStore, createFormStore, createOptimizedStore, cssAnimations, d6LandingRotation, dailyTrendingConfig, dealFaceValues, detectAuthProvider, detectDelimiter, detectHeader, disableScroll, durations, emptyStateVariants, enableScroll, extractRoster, fadeInOut, formVariants, formatCurrency, formatDate, formatNumber, genreChartsConfigs, getConfig, getEnvInfo, getEnvVar, getScrollbarWidth, gridVariants, hamburgerVariants, headerVariants, heroVariants, inputVariants, isBrowser, isExpo, isNative, isWeb, labelVariants, musicAppTabs, nativeConfig, parseRoster, parseTable, podcastAppTabs, readRosterFile, scaleInOut, slideUp, sliderVariants, stateManager, stickyActionsVariants, switchVariants, textareaVariants, theme, themes, timingFunctions, toast, toastVariants, useAnimationTokens, useCache, useClickOutside, useCustomPerformanceTracking, useDebouncedCallback, useEscapeKey, useGlassmorphism, useInfiniteScroll, useIntersectionObserver, useLazyLoad, useLoadingOverlay, useLoadingOverlayApi, useLoadingOverlayVisible, useLockBody, useMediaQuery, useMobileNavigation, useMounted, useNetworkInfo, useOfflineState, useOptimizedMemo, useOptimizedStoreSelector, usePerformanceObserver, useRenderPerformanceTracking, useTheme, useThrottledCallback, useToast, useVirtualization, useVisibilityTracking, validateEmail, validateEnvConfig, validatePassword, videoPlayerVariants, webAnimations, webConfig, weeklyChartsConfig, withNetworkAware, withPageTransition };
|
package/dist/web/index.js
CHANGED
|
@@ -508,6 +508,7 @@ __export(index_exports, {
|
|
|
508
508
|
cssAnimations: () => cssAnimations,
|
|
509
509
|
d6LandingRotation: () => d6LandingRotation,
|
|
510
510
|
dailyTrendingConfig: () => dailyTrendingConfig,
|
|
511
|
+
dealFaceValues: () => dealFaceValues,
|
|
511
512
|
detectAuthProvider: () => detectAuthProvider,
|
|
512
513
|
detectDelimiter: () => detectDelimiter,
|
|
513
514
|
detectHeader: () => detectHeader,
|
|
@@ -30544,10 +30545,44 @@ function buildPolyhedron(sides) {
|
|
|
30544
30545
|
})
|
|
30545
30546
|
);
|
|
30546
30547
|
const faceInradius = Math.min(...built.map((f) => edgeDist(f.pts)));
|
|
30547
|
-
const
|
|
30548
|
+
const opposite = built.map((_, i) => oppOf(i));
|
|
30549
|
+
const result = {
|
|
30550
|
+
faces: built,
|
|
30551
|
+
opposite,
|
|
30552
|
+
faceRadius,
|
|
30553
|
+
faceInradius
|
|
30554
|
+
};
|
|
30548
30555
|
polyhedronCache.set(sides, result);
|
|
30549
30556
|
return result;
|
|
30550
30557
|
}
|
|
30558
|
+
function dealFaceValues(geo, sides, rolled) {
|
|
30559
|
+
const n = geo.faces.length;
|
|
30560
|
+
const out = new Array(n).fill(0);
|
|
30561
|
+
const used = /* @__PURE__ */ new Set([rolled]);
|
|
30562
|
+
out[0] = rolled;
|
|
30563
|
+
const opp0 = geo.opposite[0];
|
|
30564
|
+
if (opp0 >= 0) {
|
|
30565
|
+
out[opp0] = sides + 1 - rolled;
|
|
30566
|
+
used.add(sides + 1 - rolled);
|
|
30567
|
+
}
|
|
30568
|
+
const values = [];
|
|
30569
|
+
for (let v = 1; v <= sides; v++) if (!used.has(v)) values.push(v);
|
|
30570
|
+
for (let i = values.length - 1; i > 0; i--) {
|
|
30571
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
30572
|
+
[values[i], values[j]] = [values[j], values[i]];
|
|
30573
|
+
}
|
|
30574
|
+
for (let fi = 1; fi < n; fi++) {
|
|
30575
|
+
if (out[fi] !== 0) continue;
|
|
30576
|
+
const v = values.shift();
|
|
30577
|
+
out[fi] = v;
|
|
30578
|
+
const o = geo.opposite[fi];
|
|
30579
|
+
if (o >= 0 && out[o] === 0) {
|
|
30580
|
+
out[o] = sides + 1 - v;
|
|
30581
|
+
values.splice(values.indexOf(sides + 1 - v), 1);
|
|
30582
|
+
}
|
|
30583
|
+
}
|
|
30584
|
+
return out;
|
|
30585
|
+
}
|
|
30551
30586
|
function formatDieValue(v, sides) {
|
|
30552
30587
|
return sides > 8 && (v === 6 || v === 9) ? `${v}.` : String(v);
|
|
30553
30588
|
}
|
|
@@ -30733,7 +30768,7 @@ function DiceRoller({
|
|
|
30733
30768
|
const dieWrapperRefs = (0, import_react69.useRef)([]);
|
|
30734
30769
|
const cubeRefs = (0, import_react69.useRef)([]);
|
|
30735
30770
|
const shadowRefs = (0, import_react69.useRef)([]);
|
|
30736
|
-
const
|
|
30771
|
+
const faceTextRefs = (0, import_react69.useRef)([]);
|
|
30737
30772
|
const currentPositionsRef = (0, import_react69.useRef)(null);
|
|
30738
30773
|
const rollingRef = (0, import_react69.useRef)(false);
|
|
30739
30774
|
const dieSetters = (0, import_react69.useRef)([]);
|
|
@@ -30763,14 +30798,16 @@ function DiceRoller({
|
|
|
30763
30798
|
}
|
|
30764
30799
|
return shadowSetters.current[i];
|
|
30765
30800
|
};
|
|
30766
|
-
const
|
|
30767
|
-
const
|
|
30768
|
-
if (!
|
|
30769
|
-
|
|
30770
|
-
|
|
30801
|
+
const faceTextSetters = (0, import_react69.useRef)([]);
|
|
30802
|
+
const getFaceTextSetter = (i, fi) => {
|
|
30803
|
+
if (!faceTextSetters.current[i]) faceTextSetters.current[i] = [];
|
|
30804
|
+
if (!faceTextSetters.current[i][fi]) {
|
|
30805
|
+
faceTextSetters.current[i][fi] = (el) => {
|
|
30806
|
+
if (!faceTextRefs.current[i]) faceTextRefs.current[i] = [];
|
|
30807
|
+
faceTextRefs.current[i][fi] = el;
|
|
30771
30808
|
};
|
|
30772
30809
|
}
|
|
30773
|
-
return
|
|
30810
|
+
return faceTextSetters.current[i][fi];
|
|
30774
30811
|
};
|
|
30775
30812
|
const sheenGradientId = (0, import_react69.useId)();
|
|
30776
30813
|
const timersRef = (0, import_react69.useRef)([]);
|
|
@@ -30970,22 +31007,48 @@ function DiceRoller({
|
|
|
30970
31007
|
}, capturedStep * stepMs);
|
|
30971
31008
|
timersRef.current.push(timer);
|
|
30972
31009
|
}
|
|
31010
|
+
let dealtAll = null;
|
|
31011
|
+
const writeDealtValues = () => {
|
|
31012
|
+
if (!dealtAll) return;
|
|
31013
|
+
for (let i = 0; i < clampedCount; i++) {
|
|
31014
|
+
const texts = faceTextRefs.current[i];
|
|
31015
|
+
const dealt = dealtAll[i];
|
|
31016
|
+
if (!texts || !dealt) continue;
|
|
31017
|
+
for (let fi = 0; fi < dealt.length; fi++) {
|
|
31018
|
+
const el = texts[fi];
|
|
31019
|
+
if (el) el.textContent = formatDieValue(dealt[fi], sides);
|
|
31020
|
+
}
|
|
31021
|
+
}
|
|
31022
|
+
};
|
|
30973
31023
|
if (sides !== 6) {
|
|
30974
|
-
const
|
|
30975
|
-
|
|
31024
|
+
const geo = buildPolyhedron(sides);
|
|
31025
|
+
dealtAll = vals.map(
|
|
31026
|
+
(v) => dealFaceValues(geo, sides, v)
|
|
31027
|
+
);
|
|
31028
|
+
const finalAt = Math.floor(TUMBLE_MS * 0.72);
|
|
31029
|
+
const flickerTicks = 6;
|
|
31030
|
+
const flickerStep = Math.max(
|
|
31031
|
+
50,
|
|
31032
|
+
Math.floor((finalAt - 60) / flickerTicks)
|
|
31033
|
+
);
|
|
30976
31034
|
for (let f = 1; f <= flickerTicks; f++) {
|
|
30977
31035
|
const t = setTimeout(() => {
|
|
30978
31036
|
for (let i = 0; i < clampedCount; i++) {
|
|
30979
|
-
const
|
|
30980
|
-
if (
|
|
30981
|
-
|
|
30982
|
-
|
|
30983
|
-
|
|
30984
|
-
|
|
31037
|
+
const texts = faceTextRefs.current[i];
|
|
31038
|
+
if (!texts) continue;
|
|
31039
|
+
for (const el of texts) {
|
|
31040
|
+
if (el)
|
|
31041
|
+
el.textContent = formatDieValue(
|
|
31042
|
+
Math.floor(Math.random() * sides) + 1,
|
|
31043
|
+
sides
|
|
31044
|
+
);
|
|
31045
|
+
}
|
|
30985
31046
|
}
|
|
30986
31047
|
}, f * flickerStep);
|
|
30987
31048
|
timersRef.current.push(t);
|
|
30988
31049
|
}
|
|
31050
|
+
const finalTimer = setTimeout(writeDealtValues, finalAt);
|
|
31051
|
+
timersRef.current.push(finalTimer);
|
|
30989
31052
|
}
|
|
30990
31053
|
requestAnimationFrame(() => {
|
|
30991
31054
|
requestAnimationFrame(() => {
|
|
@@ -31007,12 +31070,7 @@ function DiceRoller({
|
|
|
31007
31070
|
});
|
|
31008
31071
|
});
|
|
31009
31072
|
const settleTimer = setTimeout(() => {
|
|
31010
|
-
|
|
31011
|
-
for (let i = 0; i < clampedCount; i++) {
|
|
31012
|
-
const el = numeralRefs.current[i];
|
|
31013
|
-
if (el) el.textContent = formatDieValue(vals[i], sides);
|
|
31014
|
-
}
|
|
31015
|
-
}
|
|
31073
|
+
writeDealtValues();
|
|
31016
31074
|
setResults(vals);
|
|
31017
31075
|
setRolling(false);
|
|
31018
31076
|
rollingRef.current = false;
|
|
@@ -31243,7 +31301,7 @@ function DiceRoller({
|
|
|
31243
31301
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
31244
31302
|
"text",
|
|
31245
31303
|
{
|
|
31246
|
-
ref:
|
|
31304
|
+
ref: getFaceTextSetter(d, fi),
|
|
31247
31305
|
x: S / 2,
|
|
31248
31306
|
y: S / 2,
|
|
31249
31307
|
textAnchor: "middle",
|