@sovereignsquad/gds-core 3.9.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.
@@ -0,0 +1,1133 @@
1
+ import { ge as SemanticAction, gg as SemanticActionId, eb as GdsVocabularyPack, eO as MediaFit, eP as MediaPreviewAspectRatio, aW as GdsAccessGateContract, aU as GdsAccessGateAction, aX as GdsAccessGateEvent, cU as GdsNotificationMessage, cy as GdsLayoutTemplate, cW as GdsNotificationPolicy, cQ as GdsNotificationAuditEvent, fA as PublicFlowAction } from './AISearchCard-Bbnsd-yl.mjs';
2
+ export { A as AISearchCard, a as AISearchCardProps, b as AccentPanel, c as AccentPanelProps, d as AccentPanelVariant, e as AccentTone, f as AccessSummary, g as AccessSummaryProps, h as ActionBar, i as ActionBarAction, j as ActionBarIconAction, k as ActionBarProps, l as ActiveFilterChips, m as ActiveFilterChipsProps, n as ArticleShell, o as ArticleShellProps, p as AsyncSurface, q as AsyncSurfaceProps, r as AsyncSurfaceState, s as AuthShell, t as AuthShellProps, B as BOTTOM_TAB_HEIGHT, u as BOTTOM_TAB_MAX_ITEMS, v as BannerNotice, w as BannerNoticeProps, x as BodyText, y as BottomTabBar, z as BottomTabBarProps, C as BoundedPreviewSurface, D as BoundedPreviewSurfaceProps, E as BreadcrumbItem, F as BrowseSurface, G as BrowseSurfaceFilterChip, H as BrowseSurfaceProps, I as BrowseSurfaceScopeOption, J as BulkActionsBar, K as BulkActionsBarProps, L as CardTitle, M as ChartLegendItem, N as ChartTokenPanel, O as ChartTokenPanelProps, P as ChartTokenPanelState, Q as ChatInput, R as ChatMessage, S as ChatMessageModel, T as ChatRole, U as ChatThread, V as ChatThreadProps, W as ChoiceChip, X as ChoiceChipProps, Y as ClippedFlexChild, Z as ComboboxOption, _ as ConsumerDashboardGrid, $ as ConsumerDashboardGridProps, a0 as ConsumerSection, a1 as ConsumerSectionProps, a2 as CountBadge, a3 as CountBadgeProps, a4 as CreatorCssPolicy, a5 as CreatorCssSeverity, a6 as CreatorCssValidationIssue, a7 as CreatorThemeBoundary, a8 as CreatorThemeBoundaryProps, a9 as CreatorThemeDiagnostics, aa as CtaButtonGroup, ab as CtaButtonGroupProps, ac as DataToolbar, ad as DataToolbarFilterChip, ae as DataToolbarProps, af as DetailProfileShell, ag as DetailProfileShellProps, ah as DocsPageShell, ai as DocsPageShellProps, aj as EditorialCard, ak as EditorialCardProps, al as EditorialCardVariant, am as EditorialHero, an as EditorialHeroAction, ao as EditorialHeroMetaItem, ap as EditorialHeroProps, aq as EmptyState, ar as EmptyStateProps, as as EvidencePanel, at as EvidencePanelProps, au as EvidencePanelState, av as FeatureBand, aw as FeatureBandItem, ax as FeatureBandProps, ay as FilterChipGroup, az as FilterDrawer, aA as FilterDrawerMode, aB as FilterDrawerProps, aC as FitScoreChip, aD as FitScoreChipProps, aE as FitScoreDimension, aF as FloatingActionPlacement, aG as FloatingActionPlacementProps, aH as FoodCardAvailabilityState, aI as FoodCardMarker, aJ as FoodCardMediaRatio, aK as FoodCardMetadata, aL as FoodMenuCategory, aM as FoodMenuItem, aN as FoodMenuSection, aO as FoodMenuSectionProps, aP as FormField, aQ as FormFieldProps, aR as GdsAccessAdapter, aS as GdsAccessAdapterOptions, aT as GdsAccessEntitlement, aV as GdsAccessGateActionKind, aY as GdsAccessGateReason, aZ as GdsAccessGateState, a_ as GdsAccessSession, a$ as GdsAccessibilityEvidence, b0 as GdsAccessibilityEvidenceState, b1 as GdsAccessibilityEvidenceSummary, b2 as GdsAccessibilityEvidenceValidationResult, b3 as GdsAdminDashboardTemplate, b4 as GdsAdminDashboardTemplateProps, b5 as GdsAnalyticsTemplate, b6 as GdsAnalyticsTemplateProps, b7 as GdsAreaChart, b8 as GdsAtBrowserStatus, b9 as GdsBarChart, ba as GdsBenchmarkBarChart, bb as GdsBleed, bc as GdsBleedProps, bd as GdsBlockRenderer, be as GdsBorderRole, bf as GdsBox, bg as GdsBoxProps, bh as GdsBoxWithChildrenProps, bi as GdsBubbleChartConfig, bj as GdsCalendarHeatmapChart, bk as GdsCardContractOptions, bl as GdsCardDensity, bm as GdsCardInteractiveMode, bn as GdsCardResolvedContract, bo as GdsCardSize, bp as GdsCardVariant, bq as GdsCartesianChartConfig, br as GdsChart, bs as GdsChartAxis, bt as GdsChartBaseConfig, bu as GdsChartConfig, bv as GdsChartDatum, bw as GdsChartLegend, bx as GdsChartLegendItem, by as GdsChartProps, bz as GdsChartRendererAdapter, bA as GdsChartRendererContext, bB as GdsChartSetAType, bC as GdsChartSetBType, bD as GdsChartTooltip, bE as GdsChartType, bF as GdsChartTypeDefinition, bG as GdsChartValidationResult, bH as GdsCluster, bI as GdsClusterProps, bJ as GdsContainer, bK as GdsContainerProps, bL as GdsContentPattern, bM as GdsContentPatternCatalog, bN as GdsContentPatternId, bO as GdsCopyTemplate, bP as GdsCrudEditorTemplate, bQ as GdsCrudEditorTemplateProps, bR as GdsDesignComponentMap, bS as GdsDesignHandoffCatalog, bT as GdsDesignHandoffReport, bU as GdsDesignTokenMap, bV as GdsDirectionBoundary, bW as GdsDivergingBarChart, bX as GdsEmptyStateTemplate, bY as GdsEmptyStateTemplateProps, bZ as GdsErrorPageTemplate, b_ as GdsErrorPageTemplateProps, b$ as GdsFormatOptions, c0 as GdsFormattedCurrency, c1 as GdsFormattedCurrencyProps, c2 as GdsFormattedDate, c3 as GdsFormattedDateProps, c4 as GdsFormattedNumber, c5 as GdsFormattedNumberProps, c6 as GdsFunnelChartConfig, c7 as GdsGaugeChart, c8 as GdsGrid, c9 as GdsGridProps, ca as GdsHandoffStatus, cb as GdsHeatmapChartConfig, cc as GdsHistogramChart, cd as GdsI18nRuntimeEvent, ce as GdsI18nRuntimeEventType, cf as GdsIcon, cg as GdsIconA11yMode, ch as GdsIconCategory, ci as GdsIconKey, cj as GdsIconMetadata, ck as GdsIconName, cl as GdsIconProps, cm as GdsIconTone, cn as GdsIcons, co as GdsInline, cp as GdsInlineProps, cq as GdsKeyboardBehavior, cr as GdsKnownLimitation, cs as GdsLayoutAlign, ct as GdsLayoutBreakpoint, cu as GdsLayoutJustify, cv as GdsLayoutOverflow, cw as GdsLayoutPrimitiveBaseProps, cx as GdsLayoutSize, cz as GdsLayoutToken, cA as GdsLayoutWrap, cB as GdsLineChart, cC as GdsLocale, cD as GdsLocaleText, cE as GdsLocaleTextProps, cF as GdsLongitudinalChart, cG as GdsMaturityCapability, cH as GdsMaturityCapabilityArea, cI as GdsMaturityCapabilityStatus, cJ as GdsMaturityRadarChart, cK as GdsMediaFit, cL as GdsMediaFrame, cM as GdsMediaFrameProps, cN as GdsMessageSeverity, cO as GdsMissingKeyTracker, cP as GdsNotificationAction, cR as GdsNotificationAuditEventType, cS as GdsNotificationDedupePolicy, cT as GdsNotificationLivePolicy, cV as GdsNotificationPersistence, cX as GdsNotificationRetryPolicy, cY as GdsNotificationSeverity, cZ as GdsNotificationStatus, c_ as GdsOverflowFrame, c$ as GdsOverflowFrameProps, d0 as GdsOverflowPolicy, d1 as GdsOwnedContrastPropsInput, d2 as GdsOwnedContrastRole, d3 as GdsOwnedContrastTokens, d4 as GdsPageTemplateAction, d5 as GdsPageTemplateBaseProps, d6 as GdsPageTemplateCatalog, d7 as GdsPageTemplateConfig, d8 as GdsPageTemplateId, d9 as GdsPageTemplateSection, da as GdsPageTemplateState, db as GdsPageTemplateTelemetryEvent, dc as GdsPageTemplateTelemetryEventName, dd as GdsPartToWholeChartConfig, de as GdsPatternTelemetryEvent, df as GdsPlaceholderContract, dg as GdsPlural, dh as GdsPluralMessage, di as GdsPluralProps, dj as GdsPropAnnotation, dk as GdsPublicEventTemplate, dl as GdsPublicEventTemplateProps, dm as GdsRadarChart, dn as GdsRadarChartConfig, dp as GdsRadiusToken, dq as GdsRatingScale, dr as GdsRatingScaleProps, ds as GdsRelativeTime, dt as GdsRelativeTimeProps, du as GdsResourceManagerTemplate, dv as GdsResourceManagerTemplateProps, dw as GdsResponsiveChartFrame, dx as GdsResponsiveResolution, dy as GdsResponsiveValue, dz as GdsResponsiveVisibility, dA as GdsResponsiveVisibilityProps, dB as GdsSafeBox, dC as GdsSafeBoxProps, dD as GdsSafeStyleProps, dE as GdsScatterChartConfig, dF as GdsScreenReaderNote, dG as GdsSegmentedControl, dH as GdsSegmentedControlOption, dI as GdsSegmentedControlProps, dJ as GdsSelectionGroupProps, dK as GdsSelectionOption, dL as GdsSemanticBackground, dM as GdsSeriesTone, dN as GdsSettingsGroup, dO as GdsSettingsTemplate, dP as GdsSettingsTemplateProps, dQ as GdsSidebar, dR as GdsSidebarProps, dS as GdsSlider, dT as GdsSliderProps, dU as GdsSlopeChart, dV as GdsSparkline, dW as GdsSplit, dX as GdsSplitProps, dY as GdsStack, dZ as GdsStackProps, d_ as GdsStackedBarChart, d$ as GdsStyleContract, e0 as GdsSymmetryChart, e1 as GdsTaskPattern, e2 as GdsTaskState, e3 as GdsTaskStep, e4 as GdsTextExpansionFixture, e5 as GdsTextRoleProps, e6 as GdsTitleRoleProps, e7 as GdsTreemapChartConfig, e8 as GdsTypographyProps, e9 as GdsVisibilityValue, ea as GdsVocabulary, ec as GdsWcagMapping, ed as GdsWizardStep, ee as GdsWizardStepper, ef as GdsWizardStepperProps, eg as InlineAlert, eh as InlineAlertProps, ei as InlineEmphasis, ej as InlineText, ek as LabelTag, el as LabelTagProps, em as LabelTagTone, en as LabelText, eo as LayeredSurfaceSlot, ep as LayeredSurfaceSlotProps, eq as LayoutBlock, er as LayoutBlockType, es as LayoutRenderResult, et as LayoutSchema, eu as LayoutValidationIssue, ev as ListItemSection, ew as ListingCard, ex as ListingCardAffordance, ey as ListingCardMediaRatio, ez as ListingCardProps, eA as ListingFilterChip, eB as ListingMetadataRow, eC as MAX_LISTING_CARD_ACTIONS, eD as MapPanel, eE as MapPanelProps, eF as MeaningBadge, eG as MeaningBadgeProps, eH as MeaningVariant, eI as MediaCard, eJ as MediaCardAction, eK as MediaCardProps, eL as MediaField, eM as MediaFieldProps, eN as MediaFieldState, eQ as MediaPreviewCard, eR as MediaPreviewCardProps, eS as MediaPreviewMetadata, eT as MediaPreviewState, eU as MediaWithFallback, eV as MediaWithFallbackProps, eW as MetadataText, eX as MetricCard, eY as MetricCardProps, eZ as MissingDataPrompt, e_ as MissingDataPromptProps, e$ as MonospaceInputFrame, f0 as NotificationCenterView, f1 as NumberStepper, f2 as NumberStepperProps, f3 as NumericCell, f4 as OverflowContainer, f5 as OverflowContainerProps, f6 as PROVIDER_IDENTITY_REGISTRY, f7 as PageHeader, f8 as PageHeaderEyebrowVariant, f9 as PageHeaderProps, fa as PageTitle, fb as PeriodSelector, fc as PeriodSelectorOption, fd as PeriodSelectorProps, fe as PillBar, ff as PlaceholderPanel, fg as PlaceholderPanelProps, fh as PlaybackSurface, fi as PlaybackSurfaceProps, fj as PlaybackSurfaceState, fk as ProductCard, fl as ProductCardAction, fm as ProductCardMetaItem, fn as ProductCardProps, fo as ProgressCard, fp as ProgressCardProps, fq as ProviderIdentity, fr as ProviderIdentityButton, fs as ProviderIdentityButtonGroup, ft as ProviderIdentityButtonGroupProps, fu as ProviderIdentityButtonProps, fv as ProviderIdentityVariant, fw as PublicBrandFooter, fx as PublicBrandFooterClassNames, fy as PublicBrandFooterLayoutVariant, fz as PublicBrandFooterProps, fB as PublicFlowActionPriority, fC as PublicFlowShell, fD as PublicFlowShellProps, fE as PublicFlowStage, fF as PublicFlowStageStatus, fG as PublicFoodCard, fH as PublicFoodCardProps, fI as PublicNav, fJ as PublicNavItem, fK as PublicNavProps, fL as PublicProductCard, fM as PublicProductCardHelperKind, fN as PublicProductCardMetaItem, fO as PublicProductCardProps, fP as PublicProductCardState, fQ as PublicShell, fR as PublicShellBottomTabOptions, fS as PublicShellClassNames, fT as PublicShellHeaderVariant, fU as PublicShellMobileNavigationMode, fV as PublicShellProps, fW as PublicSiteFooter, fX as PublicSiteFooterProps, fY as ReferenceLinkGrid, fZ as ReferenceLinkGridItem, f_ as ReferenceLinkGridProps, f$ as ReferenceLocaleNotice, g0 as ReferenceLocaleNoticeProps, g1 as ReferenceSection, g2 as ReferenceSectionProps, g3 as ReportingSection, g4 as ReportingSectionProps, g5 as ReportingSectionState, g6 as ResultSummary, g7 as ResultSummaryProps, g8 as SearchableSelect, g9 as SearchableSelectProps, ga as SectionPanel, gb as SectionPanelProps, gc as SectionPanelTone, gd as SectionTitle, gf as SemanticActionDefinition, gh as SemanticChartFrame, gi as SemanticChartFrameProps, gj as SemanticChartProps, gk as SemanticInset, gl as SimpleDataTable, gm as SimpleDataTableProps, gn as SimpleTableColumn, go as SocialAuthButtons, gp as SocialAuthButtonsProps, gq as SocialAuthProviderId, gr as SocialAuthProviderOption, gs as SoftChipGroup, gt as SortMenu, gu as SortMenuProps, gv as SortOption, gw as StateBlock, gx as StateBlockProps, gy as StateBlockVariant, gz as StatsSection, gA as StatsSectionProps, gB as StatusBadge, gC as StatusBadgeProps, gD as StatusVariant, gE as StreamingIndicator, gF as SurfaceContentAlign, gG as SurfaceContentJustify, gH as SurfacePresentation, gI as SurfacePresentationProps, gJ as VisuallyHidden, gK as VocabularyResolver, gL as ar, gM as compareGdsLocaleString, gN as createGdsAccessAdapter, gO as createGdsAccessGateEvent, gP as createGdsAccessibilityEvidenceIndex, gQ as createGdsContentExpansionReport, gR as createGdsMissingKeyTracker, gS as createGdsNotificationAuditEvent, gT as createGdsNotificationId, gU as createGdsOwnedContrastTokens, gV as createGdsPageTemplateEvent, gW as createGdsStyleContract, gX as createGdsTextExpansionFixture, gY as createGdsVocabularyPack, gZ as de, g_ as en, g$ as es, h0 as formatGdsCurrency, h1 as formatGdsDate, h2 as formatGdsNumber, h3 as formatGdsPlural, h4 as formatGdsRelativeTime, h5 as fr, h6 as gdsCardDensityPaddingMap, h7 as gdsCardGapMap, h8 as gdsCardMediaRatioMap, h9 as gdsCardSizePaddingMap, ha as gdsCardTitleOrderMap, hb as gdsChartSetATypeRegistry, hc as gdsChartSetBTypeRegistry, hd as gdsChartTypeRegistry, he as gdsDefaultChartLegend, hf as gdsIconRegistry, hg as gdsIconToneColor, hh as gdsLocales, hi as gdsSeriesPalette, hj as gdsStyle, hk as generateGdsDesignHandoffReport, hl as getGdsAccessGateActionPriority, hm as getGdsAccessGateReasons, hn as getGdsAccessGateStates, ho as getGdsAccessibilityEvidence, hp as getGdsAccessibilityEvidenceSummary, hq as getGdsBlockTypes, hr as getGdsContentPattern, hs as getGdsContentPatterns, ht as getGdsCopyTemplate, hu as getGdsCopyTemplates, hv as getGdsDesignComponentMappings, hw as getGdsDesignTokenMappings, hx as getGdsIconKeys, hy as getGdsIconMetadata, hz as getGdsIconToneColor, hA as getGdsLayoutTemplate, hB as getGdsLayoutTemplates, hC as getGdsMaturityCapabilities, hD as getGdsMaturityCapability, hE as getGdsMaturitySummary, hF as getGdsMessages, hG as getGdsNotificationLivePolicy, hH as getGdsOwnedContrastProps, hI as getGdsPageTemplate, hJ as getGdsPageTemplates, hK as getGdsRecommendedMaturityCapabilities, hL as getGdsSeriesColor, hM as getGdsTaskPattern, hN as getGdsTaskPatterns, hO as getProviderIdentityLabel, hP as getProviderIdentityPolicy, hQ as getSemanticActionConfig, hR as getSemanticActionLabel, hS as getSupportedProviderIdentityIds, hT as he, hU as hu, hV as isGdsChartSetAType, hW as isGdsChartSetBType, hX as isGdsIconKey, hY as isPresentationMode, hZ as it, h_ as mergeGdsVocabularyPacks, h$ as normalizeGdsResponsiveValue, i0 as redactGdsAccessGateMetadata, i1 as registerGdsBlock, i2 as renderGdsCopyTemplate, i3 as renderGdsLayout, i4 as renderGdsLayoutWithDiagnostics, i5 as resolveAccentPanelStyles, i6 as resolveGdsAccessAdapterState, i7 as resolveGdsAccessState, i8 as resolveGdsCardContract, i9 as resolveGdsLayoutStyle, ia as resolveGdsLocale, ib as resolveGdsMessage, ic as resolveSemanticActionConfig, id as resolveSurfacePresentationStyles, ie as ru, ig as sortGdsAccessGateActions, ih as sortGdsLocaleStrings, ii as useGdsDirection, ij as validateCreatorCss, ik as validateGdsAccessGateContract, il as validateGdsAccessibilityEvidence, im as validateGdsChartData, io as validateGdsContentPatterns, ip as validateGdsCopyTemplate, iq as validateGdsDesignHandoffMappings, ir as validateGdsLayout, is as validateGdsPageTemplates, it as validateGdsTaskPatterns } from './AISearchCard-Bbnsd-yl.mjs';
3
+ import * as _mantine_core from '@mantine/core';
4
+ import { MantineThemeOverride, ButtonProps, MantineColor, MantineSpacing, MantineBreakpoint, NativeSelectProps, NavLinkProps, ModalProps, DrawerProps } from '@mantine/core';
5
+ export { Accordion, AccordionProps, ActionIcon, ActionIconProps, Anchor, AnchorProps, Badge, BadgeProps, Box, BoxProps, Button, ButtonProps, Center, CenterProps, Checkbox, CheckboxProps, Container, ContainerProps, Group, GroupProps, Loader, LoaderProps, Modal, ModalProps, MultiSelect, MultiSelectProps, NumberInput, NumberInputProps, PasswordInput, PasswordInputProps, Progress, ProgressProps, Radio, RadioProps, ScrollArea, ScrollAreaProps, Select, SelectProps, SimpleGrid, SimpleGridProps, Slider, SliderProps, Stack, StackProps, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, TextInput, TextInputProps, Textarea, TextareaProps, ThemeIcon, ThemeIconProps, Tooltip, TooltipProps } from '@mantine/core';
6
+ import * as react from 'react';
7
+ import react__default, { ReactNode } from 'react';
8
+ import { GdsThemePresetId, GdsFontLaneId } from '@sovereignsquad/gds-theme';
9
+ import '@tabler/icons-react';
10
+
11
+ interface ConfirmDialogProps {
12
+ opened: boolean;
13
+ onClose: () => void;
14
+ onConfirm: () => void;
15
+ title: string;
16
+ children: ReactNode;
17
+ confirmAction?: SemanticAction;
18
+ cancelAction?: SemanticAction;
19
+ isDanger?: boolean;
20
+ loading?: boolean;
21
+ }
22
+ /**
23
+ * Standardized destructive/confirmation dialog.
24
+ */
25
+ declare function ConfirmDialog({ opened, onClose, onConfirm, title, children, confirmAction, cancelAction, isDanger, loading, }: ConfirmDialogProps): react.JSX.Element;
26
+
27
+ interface ThemeToggleProps {
28
+ size?: 'sm' | 'md' | 'lg' | 'xl';
29
+ onColorSchemeChange?: (nextScheme: 'light' | 'dark') => void;
30
+ }
31
+ /**
32
+ * Standardized ThemeToggle component for switching between Light and Dark mode.
33
+ * Should be placed in the main application header/shell.
34
+ */
35
+ declare function ThemeToggle({ size, onColorSchemeChange }: ThemeToggleProps): react.JSX.Element;
36
+
37
+ type ThemePresetId = GdsThemePresetId;
38
+ type ThemeSchemeId = 'light' | 'dark' | 'auto';
39
+ interface ThemeExplorerSelection {
40
+ preset: ThemePresetId;
41
+ colorScheme: ThemeSchemeId;
42
+ theme: MantineThemeOverride;
43
+ fontLane?: GdsFontLaneId;
44
+ runtimeKey?: string;
45
+ brandPrimary?: string;
46
+ brandFlatSurfaces?: boolean;
47
+ brandEditorialSerif?: boolean;
48
+ }
49
+ declare function ReferenceThemeExplorer({ initialSelection, onSelectionChange, }: {
50
+ initialSelection?: ThemeExplorerSelection;
51
+ onSelectionChange?: (selection: ThemeExplorerSelection) => void;
52
+ }): react.JSX.Element;
53
+
54
+ interface SemanticButtonProps extends ButtonProps, Omit<react__default.ComponentPropsWithoutRef<'button'>, keyof ButtonProps | 'leftSection' | 'children'> {
55
+ action: SemanticActionId;
56
+ brandVariant?: 'primary' | 'secondary' | 'accent' | 'disabled';
57
+ loading?: boolean;
58
+ feedbackState?: 'success' | 'error' | null;
59
+ feedbackText?: string;
60
+ prerenderLabelOnly?: boolean;
61
+ vocabularyPacks?: GdsVocabularyPack[];
62
+ }
63
+ declare function SemanticButton({ action, brandVariant, loading, feedbackState, feedbackText, prerenderLabelOnly, vocabularyPacks, ...props }: SemanticButtonProps): react__default.JSX.Element;
64
+
65
+ interface GameBoardTileProps {
66
+ face: ReactNode;
67
+ revealed: boolean;
68
+ matched: boolean;
69
+ disabled: boolean;
70
+ onPress: () => void;
71
+ /** Mantine color token for revealed (non-matched) highlight, e.g. `violet.5` or product primary. */
72
+ highlightColor?: MantineColor;
73
+ }
74
+ /**
75
+ * Governed flip/select tile for memory-match and similar game boards.
76
+ * Respects prefers-reduced-motion; motion is local to the tile, not global theme hover defaults.
77
+ */
78
+ declare function GameBoardTile({ face, revealed, matched, disabled, onPress, highlightColor, }: GameBoardTileProps): react.JSX.Element;
79
+
80
+ interface ListingQueryState {
81
+ search: string;
82
+ sort: string;
83
+ filters: string[];
84
+ page: number;
85
+ pageSize: number;
86
+ selection: string[];
87
+ }
88
+ interface ListingStateConfig {
89
+ defaultSort?: string;
90
+ defaultPageSize?: number;
91
+ }
92
+ type ListingAction = {
93
+ type: 'set-search';
94
+ value: string;
95
+ } | {
96
+ type: 'set-sort';
97
+ value: string;
98
+ } | {
99
+ type: 'toggle-filter';
100
+ value: string;
101
+ } | {
102
+ type: 'clear-filters';
103
+ } | {
104
+ type: 'set-page';
105
+ value: number;
106
+ } | {
107
+ type: 'set-page-size';
108
+ value: number;
109
+ } | {
110
+ type: 'toggle-selection';
111
+ value: string;
112
+ } | {
113
+ type: 'clear-selection';
114
+ } | {
115
+ type: 'reset-query';
116
+ };
117
+ interface ListingStateValue {
118
+ state: ListingQueryState;
119
+ dispatch: (action: ListingAction) => void;
120
+ }
121
+ declare function listingQueryReducer(state: ListingQueryState, action: ListingAction): ListingQueryState;
122
+ declare function ListingProvider({ children, config, }: {
123
+ children: ReactNode;
124
+ config?: ListingStateConfig;
125
+ }): react.JSX.Element;
126
+ declare function useListingState(): ListingStateValue;
127
+
128
+ interface DiscoveryShellState {
129
+ opened: boolean;
130
+ open: () => void;
131
+ close: () => void;
132
+ toggle: () => void;
133
+ setOpened: (next: boolean) => void;
134
+ }
135
+ interface UseDiscoveryShellStateOptions {
136
+ defaultSidebarOpen?: boolean;
137
+ sidebarStorageKey?: string;
138
+ onSidebarOpenedChange?: (opened: boolean) => void;
139
+ }
140
+ declare function useDiscoveryShellState({ defaultSidebarOpen, sidebarStorageKey, onSidebarOpenedChange, }?: UseDiscoveryShellStateOptions): DiscoveryShellState;
141
+ interface DiscoveryShellProps {
142
+ header?: ReactNode;
143
+ sidebar: ReactNode;
144
+ footer?: ReactNode;
145
+ children: ReactNode;
146
+ mobileNavigationLabel?: string;
147
+ defaultSidebarOpen?: boolean;
148
+ sidebarStorageKey?: string;
149
+ sidebarOpened?: boolean;
150
+ onSidebarOpenedChange?: (opened: boolean) => void;
151
+ stickySidebar?: boolean;
152
+ desktopCollapsible?: boolean;
153
+ desktopNavigationLabel?: string;
154
+ sidebarWidth?: number | string;
155
+ headerHeight?: number | string;
156
+ shellPadding?: MantineSpacing | number;
157
+ collapseBreakpoint?: MantineBreakpoint;
158
+ closeMobileNavigationOnItemSelect?: boolean;
159
+ }
160
+ /**
161
+ * DiscoveryShell is the canonical sidebar-first application shell for GDS.
162
+ * It owns the responsive header, sidebar, and main-content layout contract.
163
+ */
164
+ declare function DiscoveryShell({ header, sidebar, footer, children, mobileNavigationLabel, defaultSidebarOpen, sidebarStorageKey, sidebarOpened, onSidebarOpenedChange, stickySidebar, desktopCollapsible, desktopNavigationLabel, sidebarWidth, headerHeight, shellPadding, collapseBreakpoint, closeMobileNavigationOnItemSelect, }: DiscoveryShellProps): react.JSX.Element;
165
+
166
+ interface DocsShellProps {
167
+ brand: ReactNode;
168
+ primaryNavigation?: ReactNode;
169
+ secondaryNavigation?: ReactNode;
170
+ headerContext?: ReactNode;
171
+ actions?: ReactNode;
172
+ mobileNavigation?: ReactNode;
173
+ mobileNavigationMode?: 'inline-collapse' | 'drawer';
174
+ footer?: ReactNode;
175
+ children: ReactNode;
176
+ contentWidth?: number | 'sm' | 'md' | 'lg' | 'xl' | 'full';
177
+ }
178
+ interface DocsHeaderActionSelectOption {
179
+ value: string;
180
+ label: string;
181
+ }
182
+ interface DocsHeaderActionSelectProps extends Omit<NativeSelectProps, 'data' | 'onChange'> {
183
+ label: string;
184
+ options: DocsHeaderActionSelectOption[];
185
+ onChange: (value: string) => void;
186
+ }
187
+ declare function DocsHeaderActionSelect({ label, options, value, onChange, ...props }: DocsHeaderActionSelectProps): react.JSX.Element;
188
+ declare function DocsShell({ brand, primaryNavigation, secondaryNavigation, headerContext, actions, mobileNavigation, mobileNavigationMode, footer, children, contentWidth, }: DocsShellProps): react.JSX.Element;
189
+
190
+ interface SidebarNavProps {
191
+ children: ReactNode;
192
+ ariaLabel?: string;
193
+ gap?: string | number;
194
+ }
195
+ interface SidebarNavSectionProps {
196
+ label?: ReactNode;
197
+ children: ReactNode;
198
+ pushToBottom?: boolean;
199
+ }
200
+ interface SidebarNavItemProps extends Omit<NavLinkProps, 'label' | 'leftSection' | 'description'> {
201
+ action?: SemanticActionId;
202
+ label?: ReactNode;
203
+ description?: ReactNode;
204
+ badge?: ReactNode;
205
+ icon?: ReactNode;
206
+ 'aria-label'?: string;
207
+ 'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
208
+ vocabularyPacks?: GdsVocabularyPack[];
209
+ }
210
+ declare function SidebarNav({ children, ariaLabel, gap }: SidebarNavProps): react.JSX.Element;
211
+ declare function SidebarNavSection({ label, children, pushToBottom }: SidebarNavSectionProps): react.JSX.Element;
212
+ declare const SidebarNavItem: (<C = "a">(props: _mantine_core.PolymorphicComponentProps<C, SidebarNavItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(SidebarNavItemProps & {
213
+ component?: any;
214
+ } & Omit<Omit<any, "ref">, "component" | keyof SidebarNavItemProps> & {
215
+ ref?: any;
216
+ renderRoot?: (props: any) => any;
217
+ }) | (SidebarNavItemProps & {
218
+ component: React.ElementType;
219
+ renderRoot?: (props: Record<string, any>) => any;
220
+ })>, never> & Record<string, never>;
221
+
222
+ interface DocsCodeBlockProps {
223
+ code: string;
224
+ language?: string;
225
+ title?: string;
226
+ withCopy?: boolean;
227
+ }
228
+ declare function DocsCodeBlock({ code, language, title, withCopy }: DocsCodeBlockProps): react.JSX.Element;
229
+
230
+ type ShareChannel = 'native' | 'copy' | 'mail' | 'message' | 'x' | 'facebook' | 'linkedin' | 'whatsapp' | 'telegram';
231
+ interface ShareButtonGroupProps {
232
+ url: string;
233
+ title?: string;
234
+ text?: string;
235
+ channels?: ShareChannel[];
236
+ compact?: boolean;
237
+ label?: ReactNode;
238
+ description?: ReactNode;
239
+ }
240
+ declare function ShareButtonGroup({ url, title, text, channels, compact, label, description, }: ShareButtonGroupProps): react.JSX.Element;
241
+
242
+ type UploadDropzoneState = 'idle' | 'drag-active' | 'selected' | 'upload-pending' | 'upload-failed' | 'unsupported-type' | 'too-large' | 'removed' | 'readonly';
243
+ interface UploadDropzoneProps {
244
+ title: string;
245
+ description?: string;
246
+ onFilesSelected?: (files: File[]) => void;
247
+ accept?: string;
248
+ acceptedTypesLabel?: string;
249
+ maxSizeLabel?: string;
250
+ multiple?: boolean;
251
+ actionLabel?: string;
252
+ mode?: 'panel' | 'inline';
253
+ state?: UploadDropzoneState;
254
+ selectedFiles?: string[];
255
+ error?: string;
256
+ policyText?: string;
257
+ progressValue?: number;
258
+ inputId?: string;
259
+ describedBy?: string;
260
+ invalid?: boolean;
261
+ required?: boolean;
262
+ retryAction?: ReactNode;
263
+ removeAction?: ReactNode;
264
+ readonly?: boolean;
265
+ }
266
+ declare function UploadDropzone({ title, description, onFilesSelected, accept, acceptedTypesLabel, maxSizeLabel, multiple, actionLabel, mode, state, selectedFiles, error, policyText, progressValue, inputId, describedBy, invalid, required, retryAction, removeAction, readonly, }: UploadDropzoneProps): react.JSX.Element;
267
+
268
+ type GdsAssetDisplayMode = MediaFit | 'crop';
269
+ type GdsAssetStatus = 'empty' | 'validating' | 'uploading' | 'processing' | 'ready' | 'failed' | 'retrying' | 'metadata-incomplete';
270
+ interface GdsAsset {
271
+ id: string;
272
+ url?: string;
273
+ thumbnailUrl?: string;
274
+ fileName: string;
275
+ mimeType: string;
276
+ size: number;
277
+ alt?: string;
278
+ caption?: string;
279
+ status: GdsAssetStatus;
280
+ displayMode?: GdsAssetDisplayMode;
281
+ }
282
+ interface GdsAltTextPolicy {
283
+ requireAlt?: boolean;
284
+ requireCaption?: boolean;
285
+ }
286
+ interface GdsAssetValidationPolicy extends GdsAltTextPolicy {
287
+ acceptedTypes?: string[];
288
+ maxSizeBytes?: number;
289
+ }
290
+ interface GdsAssetUploadRequest {
291
+ file: File;
292
+ signal?: AbortSignal;
293
+ onProgress?: (progress: number) => void;
294
+ }
295
+ interface GdsAssetAdapter {
296
+ upload: (request: GdsAssetUploadRequest) => Promise<GdsAsset>;
297
+ remove?: (assetId: string) => Promise<void> | void;
298
+ thumbnail?: (asset: GdsAsset) => Promise<string> | string;
299
+ }
300
+ interface GdsAssetQueueItem {
301
+ id: string;
302
+ fileName: string;
303
+ file?: File;
304
+ asset?: GdsAsset;
305
+ status: GdsAssetStatus;
306
+ progress: number;
307
+ error?: string;
308
+ }
309
+ interface GdsAssetEvent {
310
+ type: 'asset_selected' | 'validation_failed' | 'upload_started' | 'upload_failed' | 'upload_retry' | 'metadata_saved';
311
+ timestamp: number;
312
+ privacy: 'metadata-only';
313
+ message?: string;
314
+ }
315
+ interface UseGdsAssetUploadQueueConfig {
316
+ adapter: GdsAssetAdapter;
317
+ policy?: GdsAssetValidationPolicy;
318
+ onEvent?: (event: GdsAssetEvent) => void;
319
+ timeoutMs?: number;
320
+ }
321
+ interface GdsAssetUploadQueueController {
322
+ items: GdsAssetQueueItem[];
323
+ selectFiles: (files: File[]) => Promise<void>;
324
+ retry: (itemId: string) => Promise<void>;
325
+ remove: (itemId: string) => Promise<void>;
326
+ saveMetadata: (itemId: string, metadata: Pick<GdsAsset, 'alt' | 'caption' | 'displayMode'>) => void;
327
+ }
328
+ interface GdsAssetPreviewCardProps {
329
+ asset: GdsAsset;
330
+ aspectRatio?: MediaPreviewAspectRatio;
331
+ actions?: ReactNode;
332
+ }
333
+ interface GdsAssetManagerProps extends UseGdsAssetUploadQueueConfig {
334
+ title: string;
335
+ description?: string;
336
+ multiple?: boolean;
337
+ displayMode?: GdsAssetDisplayMode;
338
+ }
339
+ declare function createGdsAssetAdapter(): GdsAssetAdapter;
340
+ declare function validateGdsAsset(file: File, policy?: GdsAssetValidationPolicy): {
341
+ valid: boolean;
342
+ message: string;
343
+ } | {
344
+ valid: boolean;
345
+ message?: undefined;
346
+ };
347
+ declare function useGdsAssetUploadQueue({ adapter, policy, onEvent, timeoutMs, }: UseGdsAssetUploadQueueConfig): GdsAssetUploadQueueController;
348
+ declare function GdsAssetPreviewCard({ asset, aspectRatio }: GdsAssetPreviewCardProps): react.JSX.Element;
349
+ declare function GdsAssetManager({ title, description, adapter, policy, onEvent, timeoutMs, multiple, displayMode, }: GdsAssetManagerProps): react.JSX.Element;
350
+
351
+ type AccessRecoveryState = 'unauthenticated' | 'expired-session' | 'timeout' | 'forbidden' | 'missing' | 'unavailable';
352
+ interface AccessRecoveryAction {
353
+ action: SemanticAction;
354
+ onClick?: () => void;
355
+ loading?: boolean;
356
+ disabled?: boolean;
357
+ color?: string;
358
+ variant?: 'filled' | 'light' | 'outline' | 'subtle' | 'default';
359
+ }
360
+ interface AccessRecoveryPanelProps {
361
+ state: AccessRecoveryState;
362
+ title?: string;
363
+ description?: ReactNode;
364
+ primaryAction?: AccessRecoveryAction | null;
365
+ secondaryAction?: AccessRecoveryAction | null;
366
+ tertiaryAction?: AccessRecoveryAction | null;
367
+ onRetry?: () => void;
368
+ onSignIn?: () => void;
369
+ onBack?: () => void;
370
+ supportAction?: AccessRecoveryAction | null;
371
+ compact?: boolean;
372
+ }
373
+ declare function AccessRecoveryPanel({ state, title, description, primaryAction, secondaryAction, tertiaryAction, onRetry, onSignIn, onBack, supportAction, compact, }: AccessRecoveryPanelProps): react.JSX.Element;
374
+
375
+ interface GdsAccessGateProps extends GdsAccessGateContract {
376
+ preview: ReactNode;
377
+ protectedContent: ReactNode | (() => ReactNode);
378
+ lockedPlaceholder?: ReactNode;
379
+ metadata?: Record<string, unknown>;
380
+ onAction?: (action: GdsAccessGateAction) => void | Promise<void>;
381
+ onEvent?: (event: GdsAccessGateEvent) => void;
382
+ }
383
+ declare function GdsAccessGate({ id, state, reason, title, description, actions, entitlementLabel, teaserLabel, protectedContentPolicy, preview, protectedContent, lockedPlaceholder, metadata, onAction, onEvent, }: GdsAccessGateProps): react.JSX.Element;
384
+
385
+ type ValidationSeverity = 'blocking' | 'warning' | 'info';
386
+ interface ValidationIssue {
387
+ field: string;
388
+ message: string;
389
+ severity: ValidationSeverity;
390
+ }
391
+ type SubmitState = 'idle' | 'validating' | 'autosaving' | 'saved' | 'submitting' | 'optimistic' | 'success' | 'error' | 'restored';
392
+ interface FieldState {
393
+ value: unknown;
394
+ touched: boolean;
395
+ dirty: boolean;
396
+ }
397
+ interface FormSnapshot {
398
+ fields: Record<string, FieldState>;
399
+ issues: ValidationIssue[];
400
+ submitState: SubmitState;
401
+ submitError?: string;
402
+ }
403
+ type GdsFormAction = {
404
+ type: 'set-field';
405
+ field: string;
406
+ value: unknown;
407
+ } | {
408
+ type: 'touch-field';
409
+ field: string;
410
+ } | {
411
+ type: 'set-issues';
412
+ issues: ValidationIssue[];
413
+ } | {
414
+ type: 'set-submit-state';
415
+ submitState: SubmitState;
416
+ submitError?: string;
417
+ } | {
418
+ type: 'reset';
419
+ values?: Record<string, unknown>;
420
+ };
421
+ declare function gdsFormReducer(state: FormSnapshot, action: GdsFormAction): FormSnapshot;
422
+ type SyncValidator = (snapshot: FormSnapshot) => ValidationIssue[];
423
+ type AsyncValidator = (snapshot: FormSnapshot) => Promise<ValidationIssue[]>;
424
+ type SubmitHandler<TValues> = (values: TValues) => Promise<void>;
425
+ interface UseGdsFormConfig<TValues extends Record<string, unknown>> {
426
+ initialValues: TValues;
427
+ validate?: SyncValidator;
428
+ validateAsync?: AsyncValidator;
429
+ onSubmit: SubmitHandler<TValues>;
430
+ }
431
+ interface GdsDraftAdapter<TValues extends Record<string, unknown>> {
432
+ load: () => Promise<TValues | null> | TValues | null;
433
+ save: (values: TValues) => Promise<void> | void;
434
+ clear: () => Promise<void> | void;
435
+ }
436
+ interface GdsFormServerError {
437
+ field?: string;
438
+ message: string;
439
+ }
440
+ interface GdsFormOrchestrationEvent {
441
+ type: 'dirty_changed' | 'validation_failed' | 'autosave_succeeded' | 'submit_failed' | 'retry_succeeded' | 'draft_restored';
442
+ status: SubmitState;
443
+ timestamp: number;
444
+ privacy: 'metadata-only';
445
+ }
446
+ interface UseGdsFormOrchestrationConfig<TValues extends Record<string, unknown>> extends UseGdsFormConfig<TValues> {
447
+ draftAdapter?: GdsDraftAdapter<TValues>;
448
+ autosave?: boolean;
449
+ optimisticSubmit?: boolean;
450
+ mapServerErrors?: (error: unknown) => GdsFormServerError[];
451
+ onEvent?: (event: GdsFormOrchestrationEvent) => void;
452
+ }
453
+ interface GdsFormController<TValues extends Record<string, unknown>> {
454
+ snapshot: FormSnapshot;
455
+ setFieldValue: (field: keyof TValues & string, value: unknown) => void;
456
+ touchField: (field: keyof TValues & string) => void;
457
+ submit: () => Promise<boolean>;
458
+ retrySubmit: () => Promise<boolean>;
459
+ restoreDraft?: () => Promise<boolean>;
460
+ discardDraft?: () => Promise<void>;
461
+ autosaveDraft?: () => Promise<boolean>;
462
+ }
463
+ declare function createGdsDraftAdapter<TValues extends Record<string, unknown>>(storageKey: string, storage?: Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>): GdsDraftAdapter<TValues>;
464
+ declare function useGdsForm<TValues extends Record<string, unknown>>({ initialValues, validate, validateAsync, onSubmit, }: UseGdsFormConfig<TValues>): GdsFormController<TValues>;
465
+ declare function useGdsFormOrchestration<TValues extends Record<string, unknown>>({ initialValues, validate, validateAsync, onSubmit, draftAdapter, autosave, optimisticSubmit, mapServerErrors, onEvent, }: UseGdsFormOrchestrationConfig<TValues>): GdsFormController<TValues>;
466
+ declare function GdsFormProvider({ snapshot, children }: {
467
+ snapshot: FormSnapshot;
468
+ children: ReactNode;
469
+ }): react.JSX.Element;
470
+ declare function useGdsFormSnapshot(): FormSnapshot;
471
+ declare function FormErrorSummary({ title }: {
472
+ title?: ReactNode;
473
+ }): react.JSX.Element | null;
474
+ declare const GdsValidationSummary: typeof FormErrorSummary;
475
+ declare function ValidatedFieldMessage({ field }: {
476
+ field: string;
477
+ }): react.JSX.Element | null;
478
+
479
+ type GdsSchemaFieldType = 'text' | 'email' | 'url' | 'password' | 'number' | 'boolean' | 'select' | 'textarea' | 'date' | 'hidden' | 'conditional' | 'file-upload' | 'unsupported';
480
+ interface GdsFieldOption {
481
+ label: string;
482
+ value: string;
483
+ }
484
+ interface GdsFieldDescriptor {
485
+ name: string;
486
+ type: GdsSchemaFieldType;
487
+ label: string;
488
+ description?: string;
489
+ i18nKey: string;
490
+ required?: boolean;
491
+ hidden?: boolean;
492
+ condition?: string;
493
+ options?: GdsFieldOption[];
494
+ defaultValue?: unknown;
495
+ minLength?: number;
496
+ maxLength?: number;
497
+ min?: number;
498
+ max?: number;
499
+ pattern?: string;
500
+ accept?: string;
501
+ multiple?: boolean;
502
+ maxFileSizeBytes?: number;
503
+ maxFileSizeLabel?: string;
504
+ uploadActionLabel?: string;
505
+ uploadPolicyText?: string;
506
+ uploadState?: UploadDropzoneState;
507
+ uploadProgress?: number;
508
+ unsupportedReason?: string;
509
+ }
510
+ interface GdsFormSchema {
511
+ id: string;
512
+ title?: string;
513
+ description?: string;
514
+ fields: GdsFieldDescriptor[];
515
+ }
516
+ interface GdsSchemaAdapterResult {
517
+ schema?: GdsFormSchema;
518
+ issues: ValidationIssue[];
519
+ events: GdsSchemaFormEvent[];
520
+ }
521
+ interface GdsSchemaUploadResult {
522
+ [key: string]: unknown;
523
+ id?: string;
524
+ name?: string;
525
+ url?: string;
526
+ size?: number;
527
+ type?: string;
528
+ metadata?: Record<string, unknown>;
529
+ }
530
+ interface GdsSchemaUploadRequest {
531
+ field: GdsFieldDescriptor;
532
+ files: File[];
533
+ signal: AbortSignal;
534
+ onProgress: (progress: number) => void;
535
+ }
536
+ interface GdsSchemaUploadRemoveRequest {
537
+ field: GdsFieldDescriptor;
538
+ value: GdsSchemaUploadResult[];
539
+ signal: AbortSignal;
540
+ }
541
+ interface GdsSchemaUploadAdapter {
542
+ upload: (request: GdsSchemaUploadRequest) => Promise<GdsSchemaUploadResult | GdsSchemaUploadResult[]>;
543
+ remove?: (request: GdsSchemaUploadRemoveRequest) => Promise<void>;
544
+ }
545
+ interface GdsSchemaFormEvent {
546
+ type: 'schema_parse_failed' | 'unsupported_field' | 'generated_submit_failed' | 'upload_started' | 'upload_progress' | 'upload_succeeded' | 'upload_failed' | 'upload_cancelled' | 'upload_removed' | 'upload_retry_requested';
547
+ field?: string;
548
+ timestamp: number;
549
+ privacy: 'metadata-only';
550
+ message?: string;
551
+ }
552
+ type GdsFieldRenderer = (context: GdsFieldRendererContext) => ReactNode;
553
+ interface GdsFieldRendererContext {
554
+ field: GdsFieldDescriptor;
555
+ value: unknown;
556
+ setValue: (value: unknown) => void;
557
+ describedBy: string;
558
+ invalid: boolean;
559
+ }
560
+ type GdsFieldRendererMap = Partial<Record<GdsSchemaFieldType | string, GdsFieldRenderer>>;
561
+ interface CreateGdsFormFromSchemaOptions {
562
+ adapter: 'json-schema' | 'openapi' | 'zod';
563
+ id?: string;
564
+ schemaName?: string;
565
+ }
566
+ interface GdsSchemaFormProps<TValues extends Record<string, unknown> = Record<string, unknown>> {
567
+ schema: GdsFormSchema;
568
+ onSubmit: (values: TValues) => Promise<void> | void;
569
+ renderers?: GdsFieldRendererMap;
570
+ uploadAdapter?: GdsSchemaUploadAdapter;
571
+ onEvent?: (event: GdsSchemaFormEvent | GdsFormOrchestrationEvent) => void;
572
+ submitLabel?: string;
573
+ }
574
+ declare function jsonSchemaToGdsFormSchema(schema: Record<string, unknown>, options?: {
575
+ id?: string;
576
+ }): GdsSchemaAdapterResult;
577
+ declare function openApiToGdsFormSchema(document: Record<string, any>, options?: {
578
+ id?: string;
579
+ schemaName?: string;
580
+ }): GdsSchemaAdapterResult;
581
+ declare function zodToGdsFormSchema(zodSchema: unknown, options?: {
582
+ id?: string;
583
+ }): GdsSchemaAdapterResult;
584
+ declare function createGdsFormFromSchema(source: unknown, options: CreateGdsFormFromSchemaOptions): GdsSchemaAdapterResult;
585
+ interface FileUploadFieldProps {
586
+ id: string;
587
+ label: string;
588
+ field?: GdsFieldDescriptor;
589
+ value?: unknown;
590
+ describedBy?: string;
591
+ invalid?: boolean;
592
+ required?: boolean;
593
+ accept?: string;
594
+ multiple?: boolean;
595
+ maxFileSizeBytes?: number;
596
+ maxFileSizeLabel?: string;
597
+ actionLabel?: string;
598
+ policyText?: string;
599
+ state?: UploadDropzoneState;
600
+ progressValue?: number;
601
+ uploadAdapter?: GdsSchemaUploadAdapter;
602
+ onUploadEvent?: (event: GdsSchemaFormEvent) => void;
603
+ onChange?: (value: File[] | GdsSchemaUploadResult[]) => void;
604
+ }
605
+ declare function FileUploadField({ id, label, field, value, describedBy, invalid, required, accept, multiple, maxFileSizeBytes, maxFileSizeLabel, actionLabel, policyText, state, progressValue, uploadAdapter, onUploadEvent, onChange, }: FileUploadFieldProps): react.JSX.Element;
606
+ declare function GdsSchemaForm<TValues extends Record<string, unknown> = Record<string, unknown>>({ schema, onSubmit, renderers, uploadAdapter, onEvent, submitLabel, }: GdsSchemaFormProps<TValues>): react.JSX.Element;
607
+
608
+ type AdvancedTableDensity = 'compact' | 'comfortable';
609
+ type AdvancedSortDirection = 'asc' | 'desc';
610
+ interface AdvancedTableColumn<T extends Record<string, unknown>> {
611
+ key: string;
612
+ label: string;
613
+ sortable?: boolean;
614
+ width?: number | string;
615
+ render?: (row: T) => ReactNode;
616
+ sortAccessor?: (row: T) => string | number;
617
+ }
618
+ interface AdvancedDataTableProps<T extends Record<string, unknown>> {
619
+ rows: T[];
620
+ columns: AdvancedTableColumn<T>[];
621
+ rowId: (row: T, index: number) => string;
622
+ loading?: boolean;
623
+ error?: string | null;
624
+ density?: AdvancedTableDensity;
625
+ stickyHeader?: boolean;
626
+ stickyHeaderOffset?: number;
627
+ selectedRowIds?: string[];
628
+ onSelectedRowIdsChange?: (ids: string[]) => void;
629
+ sortBy?: string;
630
+ sortDirection?: AdvancedSortDirection;
631
+ onSortChange?: (columnKey: string, direction: AdvancedSortDirection) => void;
632
+ responsiveFallback?: 'stacked-cards' | 'none';
633
+ }
634
+ declare function AdvancedDataTable<T extends Record<string, unknown>>({ rows, columns, rowId, loading, error, density: densityProp, stickyHeader, stickyHeaderOffset, selectedRowIds, onSelectedRowIdsChange, sortBy: sortByProp, sortDirection: sortDirectionProp, onSortChange, responsiveFallback, }: AdvancedDataTableProps<T>): react.JSX.Element;
635
+
636
+ type GdsTableSortDirection = 'asc' | 'desc';
637
+ type GdsTableStatus = 'idle' | 'loading' | 'refreshing' | 'ready' | 'empty' | 'filtered-empty' | 'error' | 'partial' | 'exporting';
638
+ interface GdsTableColumn<T extends Record<string, unknown>> {
639
+ key: keyof T & string;
640
+ label: string;
641
+ sortable?: boolean;
642
+ filterable?: boolean;
643
+ hidden?: boolean;
644
+ width?: number | string;
645
+ interactive?: boolean;
646
+ render?: (row: T) => ReactNode;
647
+ accessor?: (row: T) => string | number | boolean | null | undefined;
648
+ mobilePriority?: number;
649
+ }
650
+ interface GdsTableQuery {
651
+ page: number;
652
+ pageSize: number;
653
+ search: string;
654
+ sortBy?: string;
655
+ sortDirection: GdsTableSortDirection;
656
+ filters: Record<string, string>;
657
+ }
658
+ interface GdsTableLoadResult<T extends Record<string, unknown>> {
659
+ rows: T[];
660
+ total: number;
661
+ partial?: boolean;
662
+ }
663
+ interface GdsTableDataAdapter<T extends Record<string, unknown>> {
664
+ mode: 'local' | 'remote';
665
+ load: (query: GdsTableQuery, signal?: AbortSignal) => Promise<GdsTableLoadResult<T>>;
666
+ }
667
+ interface GdsExportRequest<T extends Record<string, unknown>> {
668
+ query: GdsTableQuery;
669
+ selectedRowIds: string[];
670
+ rows: T[];
671
+ }
672
+ interface GdsTableEvent {
673
+ type: 'load_started' | 'load_failed' | 'filter_changed' | 'sort_changed' | 'selection_changed' | 'export_requested';
674
+ timestamp: number;
675
+ privacy: 'metadata-only';
676
+ message?: string;
677
+ }
678
+ interface UseGdsDataTableConfig<T extends Record<string, unknown>> {
679
+ columns: GdsTableColumn<T>[];
680
+ rowId: (row: T, index: number) => string;
681
+ adapter: GdsTableDataAdapter<T>;
682
+ initialQuery?: Partial<GdsTableQuery>;
683
+ onEvent?: (event: GdsTableEvent) => void;
684
+ onExport?: (request: GdsExportRequest<T>) => Promise<void> | void;
685
+ timeoutMs?: number;
686
+ virtualizedRowLimit?: number;
687
+ }
688
+ interface GdsDataTableController<T extends Record<string, unknown>> {
689
+ query: GdsTableQuery;
690
+ status: GdsTableStatus;
691
+ rows: T[];
692
+ visibleRows: T[];
693
+ total: number;
694
+ error?: string;
695
+ selectedRowIds: string[];
696
+ setSearch: (value: string) => void;
697
+ setSort: (columnKey: string) => void;
698
+ setPage: (page: number) => void;
699
+ setPageSize: (pageSize: number) => void;
700
+ setFilter: (columnKey: string, value: string) => void;
701
+ toggleRow: (id: string) => void;
702
+ toggleAllVisible: () => void;
703
+ clearSelection: () => void;
704
+ retry: () => void;
705
+ exportRows: () => Promise<void>;
706
+ }
707
+ interface GdsDataTableProps<T extends Record<string, unknown>> extends UseGdsDataTableConfig<T> {
708
+ caption?: string;
709
+ summary?: ReactNode;
710
+ exportLabel?: string;
711
+ retryLabel?: string;
712
+ mobileCards?: boolean;
713
+ }
714
+ declare function createGdsTableAdapter<T extends Record<string, unknown>>(rows: T[], columns: GdsTableColumn<T>[]): GdsTableDataAdapter<T>;
715
+ declare function serializeGdsTableQuery(query: GdsTableQuery): string;
716
+ declare function useGdsDataTable<T extends Record<string, unknown>>({ rowId, adapter, initialQuery, onEvent, onExport, timeoutMs, virtualizedRowLimit, }: UseGdsDataTableConfig<T>): GdsDataTableController<T>;
717
+ declare function GdsDataTable<T extends Record<string, unknown>>({ columns, rowId, adapter, initialQuery, onEvent, onExport, timeoutMs, virtualizedRowLimit, caption, summary, exportLabel, retryLabel, mobileCards, }: GdsDataTableProps<T>): react.JSX.Element;
718
+
719
+ type GdsResourceActionId = 'view' | 'create' | 'edit' | 'delete' | 'activate' | 'archive' | 'copy-preview';
720
+ type GdsResourceWorkflowState = 'loading-list' | 'empty' | 'ready' | 'detail-loading' | 'editing' | 'saving' | 'deleting' | 'activating' | 'permission-denied' | 'stale-data' | 'error';
721
+ interface GdsResourceRecord {
722
+ id: string;
723
+ title: string;
724
+ status?: string;
725
+ updatedAt?: string;
726
+ [key: string]: unknown;
727
+ }
728
+ interface GdsResourcePermission {
729
+ action: GdsResourceActionId;
730
+ allowed: boolean;
731
+ reason?: string;
732
+ }
733
+ interface GdsResourceActionResult<T extends GdsResourceRecord> {
734
+ resource?: T;
735
+ stale?: boolean;
736
+ copiedText?: string;
737
+ }
738
+ interface GdsResourceAdapter<T extends GdsResourceRecord> {
739
+ list: (signal?: AbortSignal) => Promise<T[]>;
740
+ detail?: (id: string, signal?: AbortSignal) => Promise<T | null>;
741
+ create?: (values: Partial<T>, idempotencyKey?: string) => Promise<T>;
742
+ update?: (id: string, values: Partial<T>, idempotencyKey?: string) => Promise<T>;
743
+ delete?: (id: string, idempotencyKey?: string) => Promise<void>;
744
+ activate?: (id: string, idempotencyKey?: string) => Promise<T>;
745
+ archive?: (id: string, idempotencyKey?: string) => Promise<T>;
746
+ copyPreview?: (id: string) => Promise<string>;
747
+ getPermissions?: (resource: T | null) => GdsResourcePermission[];
748
+ }
749
+ interface GdsResourceManagerEvent {
750
+ type: 'resource_loaded' | 'action_started' | 'action_failed' | 'action_completed' | 'permission_denied';
751
+ action?: GdsResourceActionId;
752
+ timestamp: number;
753
+ privacy: 'metadata-only';
754
+ message?: string;
755
+ }
756
+ interface UseGdsResourceManagerConfig<T extends GdsResourceRecord> {
757
+ adapter: GdsResourceAdapter<T>;
758
+ onEvent?: (event: GdsResourceManagerEvent) => void;
759
+ timeoutMs?: number;
760
+ confirmAction?: (action: GdsResourceActionId, resource: T | null) => Promise<boolean> | boolean;
761
+ }
762
+ interface GdsResourceManagerController<T extends GdsResourceRecord> {
763
+ resources: T[];
764
+ selectedResource: T | null;
765
+ state: GdsResourceWorkflowState;
766
+ error?: string;
767
+ permissions: GdsResourcePermission[];
768
+ loadList: () => void;
769
+ openDetail: (id: string) => Promise<T | null>;
770
+ closeDetail: () => void;
771
+ canRunAction: (action: GdsResourceActionId, resource?: T | null) => GdsResourcePermission;
772
+ runAction: (action: GdsResourceActionId, resource: T | null, values?: Partial<T>) => Promise<GdsResourceActionResult<T> | null>;
773
+ }
774
+ interface GdsResourceManagerProps<T extends GdsResourceRecord> extends UseGdsResourceManagerConfig<T> {
775
+ title: string;
776
+ description?: ReactNode;
777
+ columns?: GdsTableColumn<T>[];
778
+ emptyLabel?: string;
779
+ renderDetail?: (resource: T, controller: GdsResourceManagerController<T>) => ReactNode;
780
+ }
781
+ declare function createGdsResourceAdapter<T extends GdsResourceRecord>(initialResources: T[]): GdsResourceAdapter<T>;
782
+ declare function useGdsResourceManager<T extends GdsResourceRecord>({ adapter, onEvent, timeoutMs, confirmAction, }: UseGdsResourceManagerConfig<T>): GdsResourceManagerController<T>;
783
+ declare function GdsResourceManager<T extends GdsResourceRecord>({ title, description, adapter, columns, emptyLabel, renderDetail, onEvent, timeoutMs, confirmAction, }: GdsResourceManagerProps<T>): react.JSX.Element;
784
+
785
+ type GdsOverlayType = 'modal' | 'dialog' | 'drawer' | 'sheet' | 'popover' | 'command';
786
+ type OverlayKind = GdsOverlayType | 'tooltip';
787
+ type OverlayCloseReason = 'escape' | 'backdrop' | 'outside-click' | 'programmatic' | 'action' | 'route-change';
788
+ type GdsOverlayStatus = 'opening' | 'open' | 'nested' | 'closing' | 'blocked-close' | 'route-recovery' | 'mobile-fullscreen';
789
+ type GdsOverlayRoutePolicy = 'close' | 'preserve' | 'recover';
790
+ type GdsOverlayEventType = 'overlay_opened' | 'overlay_closed' | 'escape_close' | 'blocked_close' | 'route_recovered';
791
+ interface GdsOverlayPolicy {
792
+ closeOnEscape?: boolean;
793
+ closeOnOutsideClick?: boolean;
794
+ allowNested?: boolean;
795
+ routeChange?: GdsOverlayRoutePolicy;
796
+ mobileFullscreen?: boolean;
797
+ returnFocus?: boolean;
798
+ }
799
+ interface OverlayDescriptor {
800
+ id: string;
801
+ kind: OverlayKind;
802
+ title?: ReactNode;
803
+ description?: ReactNode;
804
+ invokerId?: string;
805
+ policy?: GdsOverlayPolicy;
806
+ status?: GdsOverlayStatus;
807
+ }
808
+ interface GdsOverlayStackItem extends OverlayDescriptor {
809
+ openedAt: number;
810
+ status: GdsOverlayStatus;
811
+ }
812
+ interface GdsOverlayEvent {
813
+ type: GdsOverlayEventType;
814
+ id: string;
815
+ kind: OverlayKind;
816
+ reason?: OverlayCloseReason;
817
+ status: GdsOverlayStatus;
818
+ timestamp: number;
819
+ privacy: 'metadata-only';
820
+ }
821
+ interface OverlayManagerValue {
822
+ stack: GdsOverlayStackItem[];
823
+ registerOverlay: (overlay: OverlayDescriptor) => void;
824
+ unregisterOverlay: (id: string, reason?: OverlayCloseReason) => void;
825
+ openOverlay: (overlay: OverlayDescriptor) => void;
826
+ closeOverlay: (id: string, reason?: OverlayCloseReason) => boolean;
827
+ isTopMost: (id: string) => boolean;
828
+ getOverlay: (id: string) => GdsOverlayStackItem | undefined;
829
+ requestClose: (id: string, reason: OverlayCloseReason) => OverlayCloseReason | null;
830
+ }
831
+ interface OverlayManagerProviderProps {
832
+ children: ReactNode;
833
+ defaultPolicy?: GdsOverlayPolicy;
834
+ singleOverlayMode?: boolean;
835
+ routeKey?: string | number;
836
+ onOverlayEvent?: (event: GdsOverlayEvent) => void;
837
+ }
838
+ declare function OverlayManagerProvider({ children, defaultPolicy, singleOverlayMode, routeKey, onOverlayEvent, }: OverlayManagerProviderProps): react.JSX.Element;
839
+ declare function useOverlayManager(): OverlayManagerValue;
840
+ interface GdsOverlaySurfaceBaseProps {
841
+ id: string;
842
+ opened: boolean;
843
+ onClose: () => void;
844
+ title: ReactNode;
845
+ description?: ReactNode;
846
+ children: ReactNode;
847
+ invokerId?: string;
848
+ policy?: GdsOverlayPolicy;
849
+ onBlockedClose?: (reason: OverlayCloseReason) => void;
850
+ }
851
+ type GdsModalProps = GdsOverlaySurfaceBaseProps & Omit<ModalProps, 'opened' | 'onClose' | 'title' | 'children' | 'trapFocus'>;
852
+ type GdsDrawerProps = GdsOverlaySurfaceBaseProps & Omit<DrawerProps, 'opened' | 'onClose' | 'title' | 'children' | 'trapFocus'>;
853
+ type GdsDialogProps = GdsModalProps;
854
+ type GdsSidePanelProps = GdsDrawerProps;
855
+ type GdsSheetProps = GdsDrawerProps;
856
+ declare function GdsModal({ id, opened, onClose, title, description, children, invokerId, policy, onBlockedClose, ...modalProps }: GdsModalProps): react.JSX.Element;
857
+ declare function GdsDrawer({ id, opened, onClose, title, description, children, invokerId, policy, onBlockedClose, ...drawerProps }: GdsDrawerProps): react.JSX.Element;
858
+ declare function GdsSheet(props: GdsSheetProps): react.JSX.Element;
859
+ declare function GdsDialog(props: GdsDialogProps): react.JSX.Element;
860
+ declare function GdsSidePanel(props: GdsSidePanelProps): react.JSX.Element;
861
+
862
+ interface ConfirmRequest {
863
+ id?: string;
864
+ title: string;
865
+ message: ReactNode;
866
+ targetName?: string;
867
+ consequence?: ReactNode;
868
+ confirmAction?: SemanticAction;
869
+ cancelAction?: SemanticAction;
870
+ danger?: boolean;
871
+ }
872
+ interface GdsConfirmApi {
873
+ confirm: (request: ConfirmRequest) => Promise<boolean>;
874
+ confirmDestructive: (request: ConfirmRequest & {
875
+ targetName: string;
876
+ }) => Promise<boolean>;
877
+ confirmAction: <TPayload = unknown>(request: GdsConfirmationRequest<TPayload>) => Promise<GdsDestructiveActionResult<TPayload>>;
878
+ }
879
+ type GdsRiskLevel = 'low' | 'medium' | 'high' | 'critical';
880
+ type GdsConfirmationStatus = 'idle' | 'open' | 'validating' | 'executing' | 'succeeded' | 'failed' | 'undoable' | 'cancelled';
881
+ type GdsConfirmationEventType = 'opened' | 'cancelled' | 'confirmed' | 'failed' | 'retry' | 'undo_started' | 'undo_completed';
882
+ interface GdsUndoPolicy<TPayload = unknown> {
883
+ windowMs: number;
884
+ label?: string;
885
+ onUndo: (payload: TPayload) => void | Promise<void>;
886
+ }
887
+ interface GdsConfirmationRequest<TPayload = unknown> extends ConfirmRequest {
888
+ payload: TPayload;
889
+ riskLevel?: GdsRiskLevel;
890
+ preview?: ReactNode;
891
+ validateTarget?: (payload: TPayload) => boolean | string | Promise<boolean | string>;
892
+ execute?: (payload: TPayload) => void | Promise<void>;
893
+ timeoutMs?: number;
894
+ retryable?: boolean;
895
+ undo?: GdsUndoPolicy<TPayload>;
896
+ }
897
+ interface GdsDestructiveActionResult<TPayload = unknown> {
898
+ status: GdsConfirmationStatus;
899
+ payload?: TPayload;
900
+ error?: string;
901
+ undoUntil?: number;
902
+ }
903
+ interface GdsConfirmationEvent {
904
+ type: GdsConfirmationEventType;
905
+ id: string;
906
+ riskLevel: GdsRiskLevel;
907
+ status: GdsConfirmationStatus;
908
+ timestamp: number;
909
+ privacy: 'metadata-only';
910
+ }
911
+ interface GdsConfirmProviderProps {
912
+ children: ReactNode;
913
+ defaultTimeoutMs?: number;
914
+ onConfirmationEvent?: (event: GdsConfirmationEvent) => void;
915
+ }
916
+ declare function GdsConfirmProvider({ children, defaultTimeoutMs, onConfirmationEvent, }: GdsConfirmProviderProps): react.JSX.Element;
917
+ declare function useGdsConfirm(): GdsConfirmApi;
918
+ interface GdsToastMessage extends Omit<GdsNotificationMessage, 'id' | 'severity'> {
919
+ id?: string;
920
+ }
921
+ interface GdsToastApi {
922
+ notifySuccess: (message: GdsToastMessage) => void;
923
+ notifyError: (message: GdsToastMessage & {
924
+ retry?: () => void | Promise<void>;
925
+ }) => void;
926
+ notifyActionComplete: (message: GdsToastMessage) => void;
927
+ }
928
+ declare function GdsToastProvider({ children }: {
929
+ children: ReactNode;
930
+ }): react.JSX.Element;
931
+ declare function useGdsToasts(): GdsToastApi;
932
+
933
+ interface CommandDef {
934
+ id: string;
935
+ label: string;
936
+ group?: string;
937
+ keywords?: string[];
938
+ shortcut?: string;
939
+ run: () => Promise<void> | void;
940
+ enabledWhen?: () => boolean;
941
+ }
942
+ declare function CommandRegistryProvider({ children }: {
943
+ children: ReactNode;
944
+ }): react.JSX.Element;
945
+ declare function useCommandLauncher(): {
946
+ open: () => void;
947
+ close: () => void;
948
+ registerCommands: (next: CommandDef[]) => void;
949
+ };
950
+ declare function CommandPalette({ opened, onClose }: {
951
+ opened: boolean;
952
+ onClose: () => void;
953
+ }): react.JSX.Element;
954
+
955
+ interface GdsLayoutTemplatePreviewProps {
956
+ templates?: GdsLayoutTemplate[];
957
+ initialTemplateId?: string;
958
+ title?: string;
959
+ description?: string;
960
+ }
961
+ declare function GdsLayoutTemplatePreview({ templates, initialTemplateId, title, description, }: GdsLayoutTemplatePreviewProps): react.JSX.Element;
962
+
963
+ interface GdsNotificationContextValue {
964
+ notifications: GdsNotificationMessage[];
965
+ notify: (message: GdsNotificationMessage, policy?: GdsNotificationPolicy) => string;
966
+ updateNotification: (id: string, patch: Partial<GdsNotificationMessage>) => void;
967
+ dismissNotification: (id: string) => void;
968
+ runAction: (id: string, actionId: string) => void;
969
+ runRetry: (id: string) => Promise<void>;
970
+ dismiss: (id: string) => void;
971
+ clear: () => void;
972
+ }
973
+ interface GdsNotificationProviderProps {
974
+ children: ReactNode;
975
+ disabled?: boolean;
976
+ defaultPolicy?: GdsNotificationPolicy;
977
+ onAuditEvent?: (event: GdsNotificationAuditEvent) => void;
978
+ }
979
+ declare function GdsNotificationProvider({ children, disabled, defaultPolicy, onAuditEvent, }: GdsNotificationProviderProps): react.JSX.Element;
980
+ declare function useGdsNotifications(): GdsNotificationContextValue;
981
+ declare function NotificationCenter({ title, emptyMessage, }: {
982
+ title?: ReactNode;
983
+ emptyMessage?: ReactNode;
984
+ }): react.JSX.Element;
985
+ declare const GdsNotificationCenter: typeof NotificationCenter;
986
+
987
+ declare const gdsOperationalEventTypes: readonly ["submit", "submit_success", "submit_error", "validation_error", "retry", "timeout", "upload_failure", "destructive_action", "user_cancel", "action_complete", "adapter_error", "payload_rejected"];
988
+ declare const gdsUxFailureReasons: readonly ["adapter_unavailable", "network_unavailable", "permission_denied", "validation_failed", "request_timeout", "upload_failed", "destructive_action_rejected", "user_cancelled", "payload_rejected", "unknown"];
989
+ type GdsOperationalEventType = (typeof gdsOperationalEventTypes)[number] | (string & {});
990
+ type GdsUxFailureReason = (typeof gdsUxFailureReasons)[number] | (string & {});
991
+ type GdsTelemetryOutcome = 'pending' | 'success' | 'error' | 'info' | 'cancelled' | 'timeout' | 'rejected';
992
+ type GdsTelemetryPayloadValue = string | number | boolean | null;
993
+ type GdsTelemetryPayload = Record<string, GdsTelemetryPayloadValue>;
994
+ interface GdsOperationalEvent {
995
+ component: string;
996
+ eventType: GdsOperationalEventType;
997
+ ts: number;
998
+ correlationId: string;
999
+ outcome?: GdsTelemetryOutcome;
1000
+ reason?: GdsUxFailureReason;
1001
+ actionId?: string;
1002
+ workflowId?: string;
1003
+ operationId?: string;
1004
+ attempt?: number;
1005
+ timeoutMs?: number;
1006
+ context?: GdsTelemetryPayload;
1007
+ payload?: GdsTelemetryPayload;
1008
+ }
1009
+ interface GdsUiEvent extends GdsOperationalEvent {
1010
+ }
1011
+ type GdsOperationalEventInput = Omit<GdsOperationalEvent, 'ts'> & {
1012
+ ts?: number;
1013
+ };
1014
+ type GdsTelemetrySink = (event: GdsOperationalEvent) => void | Promise<void>;
1015
+ interface GdsTelemetryAdapter {
1016
+ id: string;
1017
+ emit: GdsTelemetrySink;
1018
+ isAvailable?: () => boolean;
1019
+ flush?: () => void | Promise<void>;
1020
+ }
1021
+ interface GdsEventPayloadPolicy {
1022
+ redactKeys?: string[];
1023
+ rejectKeys?: string[];
1024
+ rejectUnsafePayload?: boolean;
1025
+ maxKeys?: number;
1026
+ maxStringLength?: number;
1027
+ onRejectedPayload?: (details: GdsRejectedPayloadDetails) => void;
1028
+ }
1029
+ interface GdsRejectedPayloadDetails {
1030
+ component: string;
1031
+ eventType: GdsOperationalEventType;
1032
+ correlationId: string;
1033
+ rejectedKeys: string[];
1034
+ }
1035
+ type GdsTelemetryDispatchStatus = 'emitted' | 'adapter-unavailable' | 'payload-rejected' | 'sampled-out' | 'sampling-disabled' | 'dropped';
1036
+ interface GdsTelemetryDispatchResult {
1037
+ status: GdsTelemetryDispatchStatus;
1038
+ event?: GdsOperationalEvent;
1039
+ rejectedKeys?: string[];
1040
+ }
1041
+ interface GdsTelemetryDispatchOptions {
1042
+ adapter?: GdsTelemetryAdapter;
1043
+ sink?: GdsTelemetrySink;
1044
+ sampleRate?: number;
1045
+ payloadPolicy?: GdsEventPayloadPolicy;
1046
+ onAdapterError?: (error: unknown, event: GdsOperationalEvent) => void;
1047
+ }
1048
+ interface GdsTelemetryAdapterOptions {
1049
+ id: string;
1050
+ emit: GdsTelemetrySink;
1051
+ isAvailable?: () => boolean;
1052
+ flush?: () => void | Promise<void>;
1053
+ timeoutMs?: number;
1054
+ retryAttempts?: number;
1055
+ retryDelayMs?: number;
1056
+ onError?: (error: unknown, event: GdsOperationalEvent) => void;
1057
+ }
1058
+ interface GdsTelemetryProviderProps {
1059
+ children: ReactNode;
1060
+ sink?: GdsTelemetrySink;
1061
+ adapter?: GdsTelemetryAdapter;
1062
+ sampleRate?: number;
1063
+ payloadPolicy?: GdsEventPayloadPolicy;
1064
+ onAdapterError?: (error: unknown, event: GdsOperationalEvent) => void;
1065
+ }
1066
+ interface GdsTelemetryContextValue {
1067
+ emit: (event: GdsOperationalEventInput) => GdsTelemetryDispatchResult;
1068
+ emitGdsEvent: (event: GdsOperationalEventInput) => GdsTelemetryDispatchResult;
1069
+ }
1070
+ declare function isGdsOperationalEventType(eventType: string): eventType is (typeof gdsOperationalEventTypes)[number];
1071
+ declare function createGdsTelemetryAdapter({ id, emit, isAvailable, flush, timeoutMs, retryAttempts, retryDelayMs, onError, }: GdsTelemetryAdapterOptions): GdsTelemetryAdapter;
1072
+ declare function emitGdsEvent({ adapter, sink, sampleRate, payloadPolicy, onAdapterError, }: GdsTelemetryDispatchOptions, event: GdsOperationalEventInput): GdsTelemetryDispatchResult;
1073
+ declare function GdsTelemetryProvider({ children, sink, adapter, sampleRate, payloadPolicy, onAdapterError, }: GdsTelemetryProviderProps): react.JSX.Element;
1074
+ declare function useGdsTelemetry(): GdsTelemetryContextValue;
1075
+
1076
+ type PublicCaptureStageId = 'identify' | 'consent' | 'capture' | 'accept' | 'cta' | 'restart' | 'share';
1077
+ type CaptureRuntimeState = 'idle' | 'loading' | 'ready' | 'permission-denied' | 'hardware-unavailable' | 'error' | 'complete';
1078
+ interface PublicCaptureFlowProps {
1079
+ stage: PublicCaptureStageId;
1080
+ state: CaptureRuntimeState;
1081
+ title?: ReactNode;
1082
+ description?: ReactNode;
1083
+ hardwareSurface?: ReactNode;
1084
+ body?: ReactNode;
1085
+ notice?: ReactNode;
1086
+ actions?: PublicFlowAction[];
1087
+ share?: ShareButtonGroupProps;
1088
+ exitAction?: ReactNode;
1089
+ }
1090
+ declare function PublicCaptureFlow({ stage, state, title, description, hardwareSurface, body, notice, actions, share, exitAction, }: PublicCaptureFlowProps): react.JSX.Element;
1091
+ declare function PublicIdentityStep({ children }: {
1092
+ children: ReactNode;
1093
+ }): react.JSX.Element;
1094
+ declare function PublicConsentStep({ consentText, control }: {
1095
+ consentText: ReactNode;
1096
+ control: ReactNode;
1097
+ }): react.JSX.Element;
1098
+ declare function PublicAcceptStep({ preview, actions }: {
1099
+ preview: ReactNode;
1100
+ actions?: ReactNode;
1101
+ }): react.JSX.Element;
1102
+ declare function PublicCtaStep({ children }: {
1103
+ children: ReactNode;
1104
+ }): react.JSX.Element;
1105
+ declare function PublicRestartStep({ children }: {
1106
+ children: ReactNode;
1107
+ }): react.JSX.Element;
1108
+ declare function PublicShareOverlay(props: ShareButtonGroupProps): react.JSX.Element;
1109
+
1110
+ type PlaybackControlState = 'loading' | 'ready' | 'playing' | 'paused' | 'empty' | 'error' | 'degraded';
1111
+ interface PlaybackControlsProps {
1112
+ state: PlaybackControlState;
1113
+ canGoNext?: boolean;
1114
+ canGoPrevious?: boolean;
1115
+ fullscreen?: boolean;
1116
+ onPlayPause?: () => void;
1117
+ onNext?: () => void;
1118
+ onPrevious?: () => void;
1119
+ onFullscreenChange?: (fullscreen: boolean) => void;
1120
+ onRestart?: () => void;
1121
+ reducedMotion?: boolean;
1122
+ }
1123
+ declare function usePlaybackKeyboardControls({ enabled, onPlayPause, onNext, onPrevious, onFullscreenToggle, }: {
1124
+ enabled?: boolean;
1125
+ onPlayPause?: () => void;
1126
+ onNext?: () => void;
1127
+ onPrevious?: () => void;
1128
+ onFullscreenToggle?: () => void;
1129
+ }): void;
1130
+ declare function PlaybackControls({ state, canGoNext, canGoPrevious, fullscreen, onPlayPause, onNext, onPrevious, onFullscreenChange, onRestart, }: PlaybackControlsProps): react.JSX.Element;
1131
+ declare function PlaybackOverlayControls(props: PlaybackControlsProps): react.JSX.Element;
1132
+
1133
+ export { type AccessRecoveryAction, AccessRecoveryPanel, type AccessRecoveryPanelProps, type AccessRecoveryState, AdvancedDataTable, type AdvancedDataTableProps, type AdvancedSortDirection, type AdvancedTableColumn, type AdvancedTableDensity, type CaptureRuntimeState, type CommandDef, CommandPalette, CommandRegistryProvider, ConfirmDialog, type ConfirmDialogProps, type ConfirmRequest, type CreateGdsFormFromSchemaOptions, DiscoveryShell, type DiscoveryShellProps, type DiscoveryShellState, DocsCodeBlock, type DocsCodeBlockProps, DocsHeaderActionSelect, type DocsHeaderActionSelectOption, type DocsHeaderActionSelectProps, DocsShell, type DocsShellProps, type FieldState, FileUploadField, type FileUploadFieldProps, FormErrorSummary, type FormSnapshot, GameBoardTile, type GameBoardTileProps, GdsAccessGate, GdsAccessGateAction, GdsAccessGateContract, GdsAccessGateEvent, type GdsAccessGateProps, type GdsAltTextPolicy, type GdsAsset, type GdsAssetAdapter, type GdsAssetDisplayMode, type GdsAssetEvent, GdsAssetManager, type GdsAssetManagerProps, GdsAssetPreviewCard, type GdsAssetPreviewCardProps, type GdsAssetQueueItem, type GdsAssetStatus, type GdsAssetUploadQueueController, type GdsAssetUploadRequest, type GdsAssetValidationPolicy, type GdsConfirmApi, GdsConfirmProvider, type GdsConfirmProviderProps, type GdsConfirmationEvent, type GdsConfirmationEventType, type GdsConfirmationRequest, type GdsConfirmationStatus, GdsDataTable, type GdsDataTableController, type GdsDataTableProps, type GdsDestructiveActionResult, GdsDialog, type GdsDialogProps, type GdsDraftAdapter, GdsDrawer, type GdsDrawerProps, type GdsEventPayloadPolicy, type GdsExportRequest, type GdsFieldDescriptor, type GdsFieldOption, type GdsFieldRenderer, type GdsFieldRendererContext, type GdsFieldRendererMap, type GdsFormOrchestrationEvent, GdsFormProvider, type GdsFormSchema, type GdsFormServerError, GdsLayoutTemplate, GdsLayoutTemplatePreview, type GdsLayoutTemplatePreviewProps, GdsModal, type GdsModalProps, GdsNotificationAuditEvent, GdsNotificationCenter, GdsNotificationMessage, GdsNotificationPolicy, GdsNotificationProvider, type GdsNotificationProviderProps, type GdsOperationalEvent, type GdsOperationalEventInput, type GdsOperationalEventType, type GdsOverlayEvent, type GdsOverlayEventType, type GdsOverlayPolicy, type GdsOverlayRoutePolicy, type GdsOverlayStackItem, type GdsOverlayStatus, type GdsOverlayType, type GdsRejectedPayloadDetails, type GdsResourceActionId, type GdsResourceActionResult, type GdsResourceAdapter, GdsResourceManager, type GdsResourceManagerController, type GdsResourceManagerEvent, type GdsResourceManagerProps, type GdsResourcePermission, type GdsResourceRecord, type GdsResourceWorkflowState, type GdsRiskLevel, type GdsSchemaAdapterResult, type GdsSchemaFieldType, GdsSchemaForm, type GdsSchemaFormEvent, type GdsSchemaFormProps, type GdsSchemaUploadAdapter, type GdsSchemaUploadRemoveRequest, type GdsSchemaUploadRequest, type GdsSchemaUploadResult, GdsSheet, type GdsSheetProps, GdsSidePanel, type GdsSidePanelProps, type GdsTableColumn, type GdsTableDataAdapter, type GdsTableEvent, type GdsTableLoadResult, type GdsTableQuery, type GdsTableSortDirection, type GdsTableStatus, type GdsTelemetryAdapter, type GdsTelemetryAdapterOptions, type GdsTelemetryDispatchOptions, type GdsTelemetryDispatchResult, type GdsTelemetryDispatchStatus, type GdsTelemetryOutcome, type GdsTelemetryPayload, type GdsTelemetryPayloadValue, GdsTelemetryProvider, type GdsTelemetryProviderProps, type GdsTelemetrySink, type GdsToastApi, type GdsToastMessage, GdsToastProvider, type GdsUiEvent, type GdsUndoPolicy, type GdsUxFailureReason, GdsValidationSummary, GdsVocabularyPack, type ListingAction, ListingProvider, type ListingQueryState, type ListingStateConfig, type ListingStateValue, MediaFit, MediaPreviewAspectRatio, NotificationCenter, type OverlayCloseReason, type OverlayDescriptor, type OverlayKind, OverlayManagerProvider, type OverlayManagerProviderProps, type PlaybackControlState, PlaybackControls, type PlaybackControlsProps, PlaybackOverlayControls, PublicAcceptStep, PublicCaptureFlow, type PublicCaptureFlowProps, type PublicCaptureStageId, PublicConsentStep, PublicCtaStep, PublicFlowAction, PublicIdentityStep, PublicRestartStep, PublicShareOverlay, ReferenceThemeExplorer, SemanticAction, SemanticActionId, SemanticButton, type SemanticButtonProps, ShareButtonGroup, type ShareButtonGroupProps, type ShareChannel, SidebarNav, SidebarNavItem, type SidebarNavItemProps, type SidebarNavProps, SidebarNavSection, type SidebarNavSectionProps, type SubmitState, type ThemeExplorerSelection, type ThemePresetId, type ThemeSchemeId, ThemeToggle, type ThemeToggleProps, UploadDropzone, type UploadDropzoneProps, type UploadDropzoneState, type UseDiscoveryShellStateOptions, type UseGdsAssetUploadQueueConfig, type UseGdsDataTableConfig, type UseGdsFormOrchestrationConfig, type UseGdsResourceManagerConfig, ValidatedFieldMessage, type ValidationIssue, type ValidationSeverity, createGdsAssetAdapter, createGdsDraftAdapter, createGdsFormFromSchema, createGdsResourceAdapter, createGdsTableAdapter, createGdsTelemetryAdapter, emitGdsEvent, gdsFormReducer, gdsOperationalEventTypes, gdsUxFailureReasons, isGdsOperationalEventType, jsonSchemaToGdsFormSchema, listingQueryReducer, openApiToGdsFormSchema, serializeGdsTableQuery, useCommandLauncher, useDiscoveryShellState, useGdsAssetUploadQueue, useGdsConfirm, useGdsDataTable, useGdsForm, useGdsFormOrchestration, useGdsFormSnapshot, useGdsNotifications, useGdsResourceManager, useGdsTelemetry, useGdsToasts, useListingState, useOverlayManager, usePlaybackKeyboardControls, validateGdsAsset, zodToGdsFormSchema };