@sovereignsquad/gds-core 6.10.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AISearchCard.js +97 -0
- package/dist/AISearchCard.mjs +73 -0
- package/dist/AccentPanel.js +94 -0
- package/dist/AccentPanel.mjs +69 -0
- package/dist/AccessRecoveryPanel.js +164 -0
- package/dist/AccessRecoveryPanel.mjs +140 -0
- package/dist/AccessSummary.js +57 -0
- package/dist/AccessSummary.mjs +33 -0
- package/dist/AccessibilityEvidence.js +131 -0
- package/dist/AccessibilityEvidence.mjs +104 -0
- package/dist/ActionBar.js +84 -0
- package/dist/ActionBar.mjs +60 -0
- package/dist/AdvancedDataTable.client.js +204 -0
- package/dist/AdvancedDataTable.client.mjs +180 -0
- package/dist/ArticleShell.js +43 -0
- package/dist/ArticleShell.mjs +19 -0
- package/dist/AsyncSurface.js +156 -0
- package/dist/AsyncSurface.mjs +132 -0
- package/dist/AuthShell.js +72 -0
- package/dist/AuthShell.mjs +48 -0
- package/dist/BottomTabBar.js +152 -0
- package/dist/BottomTabBar.mjs +128 -0
- package/dist/BottomTabBar.shared.js +31 -0
- package/dist/BottomTabBar.shared.mjs +6 -0
- package/dist/BoundedPreviewSurface.js +54 -0
- package/dist/BoundedPreviewSurface.mjs +30 -0
- package/dist/BrowseSelection.client.js +50 -0
- package/dist/BrowseSelection.client.mjs +26 -0
- package/dist/BrowseSurface.js +151 -0
- package/dist/BrowseSurface.mjs +127 -0
- package/dist/CardContracts.js +97 -0
- package/dist/CardContracts.mjs +68 -0
- package/dist/ChartTokenPanel.js +102 -0
- package/dist/ChartTokenPanel.mjs +78 -0
- package/dist/ChatSurface.js +217 -0
- package/dist/ChatSurface.mjs +190 -0
- package/dist/ChoiceChip.js +257 -0
- package/dist/ChoiceChip.mjs +230 -0
- package/dist/CommandPalette.client.js +129 -0
- package/dist/CommandPalette.client.mjs +103 -0
- package/dist/ConfirmDialog.js +65 -0
- package/dist/ConfirmDialog.mjs +41 -0
- package/dist/ConsumerDashboardGrid.js +35 -0
- package/dist/ConsumerDashboardGrid.mjs +11 -0
- package/dist/ConsumerSection.js +38 -0
- package/dist/ConsumerSection.mjs +14 -0
- package/dist/CreatorTheme.js +146 -0
- package/dist/CreatorTheme.mjs +120 -0
- package/dist/CtaButtonGroup.js +38 -0
- package/dist/CtaButtonGroup.mjs +14 -0
- package/dist/DataToolbar.js +63 -0
- package/dist/DataToolbar.mjs +39 -0
- package/dist/DetailFactsTable.js +134 -0
- package/dist/DetailFactsTable.mjs +110 -0
- package/dist/DetailFactsTable.shared.js +41 -0
- package/dist/DetailFactsTable.shared.mjs +16 -0
- package/dist/DetailProfileShell.js +52 -0
- package/dist/DetailProfileShell.mjs +28 -0
- package/dist/DiscoveryShell.js +189 -0
- package/dist/DiscoveryShell.mjs +164 -0
- package/dist/DocsCodeBlock.js +67 -0
- package/dist/DocsCodeBlock.mjs +43 -0
- package/dist/DocsCodeDisclosure.js +74 -0
- package/dist/DocsCodeDisclosure.mjs +50 -0
- package/dist/DocsPageShell.js +55 -0
- package/dist/DocsPageShell.mjs +31 -0
- package/dist/DocsShell.js +205 -0
- package/dist/DocsShell.mjs +180 -0
- package/dist/EditorialCard.js +140 -0
- package/dist/EditorialCard.mjs +116 -0
- package/dist/EditorialHero.js +247 -0
- package/dist/EditorialHero.mjs +223 -0
- package/dist/EmptyState.js +37 -0
- package/dist/EmptyState.mjs +13 -0
- package/dist/EvidencePanel.js +85 -0
- package/dist/EvidencePanel.mjs +61 -0
- package/dist/FeatureBand.js +90 -0
- package/dist/FeatureBand.mjs +66 -0
- package/dist/FeedbackRuntime.client.js +264 -0
- package/dist/FeedbackRuntime.client.mjs +237 -0
- package/dist/FilterDrawer.js +67 -0
- package/dist/FilterDrawer.mjs +43 -0
- package/dist/FitScoreChip.js +72 -0
- package/dist/FitScoreChip.mjs +48 -0
- package/dist/FoodMenuSection.js +79 -0
- package/dist/FoodMenuSection.mjs +55 -0
- package/dist/FormField.js +37 -0
- package/dist/FormField.mjs +13 -0
- package/dist/GameBoardTile.js +63 -0
- package/dist/GameBoardTile.mjs +39 -0
- package/dist/GdsAccentContrastMatrix.js +102 -0
- package/dist/GdsAccentContrastMatrix.mjs +85 -0
- package/dist/GdsAccessGate.js +226 -0
- package/dist/GdsAccessGate.mjs +204 -0
- package/dist/GdsAccessGateRuntime.js +236 -0
- package/dist/GdsAccessGateRuntime.mjs +203 -0
- package/dist/GdsAccessibilitySystemReference.js +78 -0
- package/dist/GdsAccessibilitySystemReference.mjs +54 -0
- package/dist/GdsAssetManager.client.js +208 -0
- package/dist/GdsAssetManager.client.mjs +180 -0
- package/dist/GdsBadge.js +115 -0
- package/dist/GdsBadge.mjs +91 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.mts +35 -0
- package/dist/GdsBadge.shared-D2Cs4eos.d.ts +35 -0
- package/dist/GdsBadge.shared.js +42 -0
- package/dist/GdsBadge.shared.mjs +16 -0
- package/dist/GdsBadgeStack.js +58 -0
- package/dist/GdsBadgeStack.mjs +33 -0
- package/dist/GdsBreadcrumbs.js +42 -0
- package/dist/GdsBreadcrumbs.mjs +18 -0
- package/dist/GdsBulkActionBar.js +73 -0
- package/dist/GdsBulkActionBar.mjs +49 -0
- package/dist/GdsButtonFeedbackReference.js +289 -0
- package/dist/GdsButtonFeedbackReference.mjs +273 -0
- package/dist/GdsChart.js +169 -0
- package/dist/GdsChart.mjs +145 -0
- package/dist/GdsChart.shared.js +247 -0
- package/dist/GdsChart.shared.mjs +215 -0
- package/dist/GdsColorSystemReference.js +116 -0
- package/dist/GdsColorSystemReference.mjs +100 -0
- package/dist/GdsCompareButton.js +79 -0
- package/dist/GdsCompareButton.mjs +55 -0
- package/dist/GdsContentDesign.js +371 -0
- package/dist/GdsContentDesign.mjs +339 -0
- package/dist/GdsCountBadge.js +70 -0
- package/dist/GdsCountBadge.mjs +46 -0
- package/dist/GdsDataTable.client.js +412 -0
- package/dist/GdsDataTable.client.mjs +385 -0
- package/dist/GdsDateInput.client.js +116 -0
- package/dist/GdsDateInput.client.mjs +90 -0
- package/dist/GdsDensity.js +46 -0
- package/dist/GdsDensity.mjs +20 -0
- package/dist/GdsDensitySpacingSystemReference.js +70 -0
- package/dist/GdsDensitySpacingSystemReference.mjs +52 -0
- package/dist/GdsDesignHandoff.js +250 -0
- package/dist/GdsDesignHandoff.mjs +222 -0
- package/dist/GdsDesignRuleProfilePanel.js +80 -0
- package/dist/GdsDesignRuleProfilePanel.mjs +61 -0
- package/dist/GdsForm.client.js +303 -0
- package/dist/GdsForm.client.mjs +271 -0
- package/dist/GdsFormControls.js +193 -0
- package/dist/GdsFormControls.mjs +166 -0
- package/dist/GdsGeneratedAvatar.js +86 -0
- package/dist/GdsGeneratedAvatar.mjs +65 -0
- package/dist/GdsGeneratedAvatar.shared.js +34 -0
- package/dist/GdsGeneratedAvatar.shared.mjs +10 -0
- package/dist/GdsGeneratedHero.js +277 -0
- package/dist/GdsGeneratedHero.mjs +256 -0
- package/dist/GdsGeneratedMark.js +90 -0
- package/dist/GdsGeneratedMark.mjs +66 -0
- package/dist/GdsGeneratedThumbnail.js +301 -0
- package/dist/GdsGeneratedThumbnail.mjs +280 -0
- package/dist/GdsI18nRuntime.js +83 -0
- package/dist/GdsI18nRuntime.mjs +52 -0
- package/dist/GdsI18nRuntime.shared.js +232 -0
- package/dist/GdsI18nRuntime.shared.mjs +198 -0
- package/dist/GdsIconBadge.js +60 -0
- package/dist/GdsIconBadge.mjs +36 -0
- package/dist/GdsIconSystemReference.js +128 -0
- package/dist/GdsIconSystemReference.mjs +104 -0
- package/dist/GdsInlineLink.js +42 -0
- package/dist/{chunk-W5O2JSVK.mjs → GdsInlineLink.mjs} +1 -3
- package/dist/GdsLogoLockup.js +131 -0
- package/dist/GdsLogoLockup.mjs +107 -0
- package/dist/GdsMap.client.js +395 -0
- package/dist/GdsMap.client.mjs +358 -0
- package/dist/GdsMapBasemapWash.js +51 -0
- package/dist/GdsMapBasemapWash.mjs +25 -0
- package/dist/GdsMapFilterRail.js +84 -0
- package/dist/GdsMapFilterRail.mjs +60 -0
- package/dist/GdsMapPinBadge.js +95 -0
- package/dist/{chunk-NTNVQZJU.mjs → GdsMapPinBadge.mjs} +12 -30
- package/dist/GdsMapPinBadge.shared.js +43 -0
- package/dist/GdsMapPinBadge.shared.mjs +14 -0
- package/dist/GdsMapPinPreviewCard.js +134 -0
- package/dist/GdsMapPinPreviewCard.mjs +110 -0
- package/dist/GdsMessageThread.js +92 -0
- package/dist/GdsMessageThread.mjs +68 -0
- package/dist/GdsMeter.js +46 -0
- package/dist/GdsMeter.mjs +22 -0
- package/dist/GdsMotionSystemReference.js +124 -0
- package/dist/GdsMotionSystemReference.mjs +106 -0
- package/dist/GdsNotificationBell.js +78 -0
- package/dist/GdsNotificationBell.mjs +54 -0
- package/dist/GdsPageTemplateFrame.js +178 -0
- package/dist/GdsPageTemplateFrame.mjs +150 -0
- package/dist/GdsPageTemplates.client.js +129 -0
- package/dist/GdsPageTemplates.client.mjs +104 -0
- package/dist/GdsPageTemplates.js +279 -0
- package/dist/GdsPageTemplates.mjs +247 -0
- package/dist/GdsPageTemplates.shared.js +331 -0
- package/dist/GdsPageTemplates.shared.mjs +303 -0
- package/dist/GdsPictogramSystemReference.js +288 -0
- package/dist/GdsPictogramSystemReference.mjs +264 -0
- package/dist/GdsPinSystemReference.js +164 -0
- package/dist/GdsPinSystemReference.mjs +147 -0
- package/dist/GdsPrimitives.js +84 -0
- package/dist/GdsPrimitives.mjs +62 -0
- package/dist/GdsRatingDisplay.js +61 -0
- package/dist/GdsRatingDisplay.mjs +37 -0
- package/dist/GdsReleaseNotes.client.js +126 -0
- package/dist/GdsReleaseNotes.client.mjs +102 -0
- package/dist/GdsRemovableTag.js +61 -0
- package/dist/GdsRemovableTag.mjs +37 -0
- package/dist/GdsResourceManager.client.js +280 -0
- package/dist/GdsResourceManager.client.mjs +254 -0
- package/dist/GdsRichTextEditor.client.js +146 -0
- package/dist/GdsRichTextEditor.client.mjs +112 -0
- package/dist/GdsSavedIndicator.js +62 -0
- package/dist/GdsSavedIndicator.mjs +38 -0
- package/dist/GdsSchemaForm.client.js +679 -0
- package/dist/GdsSchemaForm.client.mjs +650 -0
- package/dist/GdsShapeElevationSystemReference.js +140 -0
- package/dist/GdsShapeElevationSystemReference.mjs +125 -0
- package/dist/GdsShapeScope.js +44 -0
- package/dist/GdsShapeScope.mjs +19 -0
- package/dist/GdsTableScrollContainer.js +46 -0
- package/dist/GdsTableScrollContainer.mjs +22 -0
- package/dist/GdsThreadList.js +118 -0
- package/dist/GdsThreadList.mjs +94 -0
- package/dist/GdsTour.client.js +399 -0
- package/dist/GdsTour.client.mjs +380 -0
- package/dist/GdsTreeView.js +194 -0
- package/dist/GdsTreeView.mjs +170 -0
- package/dist/GdsTypographySystemReference.js +77 -0
- package/dist/GdsTypographySystemReference.mjs +57 -0
- package/dist/GdsViewToggle.js +48 -0
- package/dist/GdsViewToggle.mjs +24 -0
- package/dist/GdsViewportFrame.js +61 -0
- package/dist/GdsViewportFrame.mjs +37 -0
- package/dist/HeroSearchPanel.client.js +135 -0
- package/dist/HeroSearchPanel.client.mjs +109 -0
- package/dist/KanbanBoard.client.js +400 -0
- package/dist/KanbanBoard.client.mjs +382 -0
- package/dist/LayoutBlocks.js +331 -0
- package/dist/LayoutBlocks.mjs +301 -0
- package/dist/LayoutPrimitives.js +501 -0
- package/dist/LayoutPrimitives.mjs +465 -0
- package/dist/LayoutTemplatePreview.client.js +172 -0
- package/dist/LayoutTemplatePreview.client.mjs +151 -0
- package/dist/ListingCard.js +397 -0
- package/dist/ListingCard.mjs +373 -0
- package/dist/ListingCard.shared.js +49 -0
- package/dist/ListingCard.shared.mjs +18 -0
- package/dist/ListingPrimitives.js +116 -0
- package/dist/ListingPrimitives.mjs +89 -0
- package/dist/ListingState.client.js +98 -0
- package/dist/ListingState.client.mjs +72 -0
- package/dist/MapPanel.js +93 -0
- package/dist/MapPanel.mjs +69 -0
- package/dist/MaturityCapabilities.js +211 -0
- package/dist/MaturityCapabilities.mjs +184 -0
- package/dist/MeaningBadge.js +65 -0
- package/dist/MeaningBadge.mjs +41 -0
- package/dist/MediaCard.js +61 -0
- package/dist/MediaCard.mjs +37 -0
- package/dist/MediaField.js +117 -0
- package/dist/MediaField.mjs +93 -0
- package/dist/MediaPreviewCard.js +90 -0
- package/dist/MediaPreviewCard.mjs +66 -0
- package/dist/MediaWithFallback.js +112 -0
- package/dist/MediaWithFallback.mjs +88 -0
- package/dist/MetricCard.js +60 -0
- package/dist/MetricCard.mjs +36 -0
- package/dist/Notifications.client.js +301 -0
- package/dist/Notifications.client.mjs +273 -0
- package/dist/Notifications.js +220 -0
- package/dist/Notifications.mjs +194 -0
- package/dist/Notifications.shared.js +52 -0
- package/dist/Notifications.shared.mjs +26 -0
- package/dist/NumberStepper.js +124 -0
- package/dist/NumberStepper.mjs +100 -0
- package/dist/OverlayManager.client.js +300 -0
- package/dist/OverlayManager.client.mjs +270 -0
- package/dist/OwnedContrastSurface.js +83 -0
- package/dist/OwnedContrastSurface.mjs +58 -0
- package/dist/PageHeader.js +48 -0
- package/dist/PageHeader.mjs +24 -0
- package/dist/{PartnerDiscovery-pdJmaKwq.d.ts → PartnerDiscovery-BUwzROQc.d.mts} +37 -35
- package/dist/{PartnerDiscovery-Dy3YnO02.d.mts → PartnerDiscovery-DmIj5bAw.d.ts} +37 -35
- package/dist/PartnerDiscovery.js +629 -0
- package/dist/{chunk-PCG34VRY.mjs → PartnerDiscovery.mjs} +19 -106
- package/dist/PartnerDiscovery.shared.js +116 -0
- package/dist/PartnerDiscovery.shared.mjs +84 -0
- package/dist/PeriodSelector.js +69 -0
- package/dist/PeriodSelector.mjs +45 -0
- package/dist/PlaceholderPanel.js +59 -0
- package/dist/PlaceholderPanel.mjs +35 -0
- package/dist/PlaybackControls.client.js +91 -0
- package/dist/PlaybackControls.client.mjs +65 -0
- package/dist/PlaybackSurface.js +107 -0
- package/dist/PlaybackSurface.mjs +83 -0
- package/dist/ProductCard.js +75 -0
- package/dist/ProductCard.mjs +51 -0
- package/dist/ProgressCard.js +58 -0
- package/dist/ProgressCard.mjs +34 -0
- package/dist/ProviderCTA.js +104 -0
- package/dist/ProviderCTA.mjs +80 -0
- package/dist/ProviderIdentityButtons.js +221 -0
- package/dist/ProviderIdentityButtons.mjs +192 -0
- package/dist/PublicBrandFooter.js +70 -0
- package/dist/PublicBrandFooter.mjs +46 -0
- package/dist/PublicCaptureFlow.js +125 -0
- package/dist/PublicCaptureFlow.mjs +95 -0
- package/dist/PublicFlowShell.js +128 -0
- package/dist/PublicFlowShell.mjs +104 -0
- package/dist/PublicFoodCard.js +153 -0
- package/dist/PublicFoodCard.mjs +129 -0
- package/dist/PublicNav.js +51 -0
- package/dist/PublicNav.mjs +27 -0
- package/dist/PublicProductCard.js +145 -0
- package/dist/PublicProductCard.mjs +121 -0
- package/dist/PublicShell.js +168 -0
- package/dist/PublicShell.mjs +144 -0
- package/dist/PublicSiteFooter.js +35 -0
- package/dist/PublicSiteFooter.mjs +11 -0
- package/dist/{QuickStartCard-BqbYrKRY.d.ts → QuickStartCard-CYKhDjvS.d.ts} +805 -161
- package/dist/{QuickStartCard-lE9kMqH8.d.mts → QuickStartCard-DT2GgJrP.d.mts} +805 -161
- package/dist/QuickStartCard.js +85 -0
- package/dist/QuickStartCard.mjs +60 -0
- package/dist/ReferenceLinkGrid.js +66 -0
- package/dist/ReferenceLinkGrid.mjs +42 -0
- package/dist/ReferenceLocaleNotice.js +32 -0
- package/dist/ReferenceLocaleNotice.mjs +8 -0
- package/dist/ReferenceSection.js +58 -0
- package/dist/ReferenceSection.mjs +34 -0
- package/dist/ReferenceThemeExplorer.copy.js +1209 -0
- package/dist/ReferenceThemeExplorer.copy.mjs +1184 -0
- package/dist/ReferenceThemeExplorer.js +801 -0
- package/dist/ReferenceThemeExplorer.mjs +802 -0
- package/dist/ReportingSection.js +72 -0
- package/dist/ReportingSection.mjs +48 -0
- package/dist/SafeStyles.js +303 -0
- package/dist/SafeStyles.mjs +274 -0
- package/dist/SearchableSelect.js +195 -0
- package/dist/SearchableSelect.mjs +171 -0
- package/dist/SectionPanel.js +96 -0
- package/dist/SectionPanel.mjs +72 -0
- package/dist/SemanticButton.js +326 -0
- package/dist/SemanticButton.mjs +296 -0
- package/dist/SemanticCharts.js +120 -0
- package/dist/SemanticCharts.mjs +77 -0
- package/dist/ShareButtonGroup.js +117 -0
- package/dist/ShareButtonGroup.mjs +93 -0
- package/dist/SidebarNav.js +92 -0
- package/dist/SidebarNav.mjs +66 -0
- package/dist/SimpleDataTable.js +59 -0
- package/dist/SimpleDataTable.mjs +35 -0
- package/dist/SocialAuthButtons.js +71 -0
- package/dist/SocialAuthButtons.mjs +49 -0
- package/dist/StateBlock.js +118 -0
- package/dist/StateBlock.mjs +95 -0
- package/dist/StatsSection.js +63 -0
- package/dist/StatsSection.mjs +39 -0
- package/dist/StatusBadge.js +94 -0
- package/dist/StatusBadge.mjs +68 -0
- package/dist/StyleUtilities.js +123 -0
- package/dist/StyleUtilities.mjs +91 -0
- package/dist/SurfacePresentation.js +63 -0
- package/dist/SurfacePresentation.mjs +38 -0
- package/dist/TaskPatterns.js +206 -0
- package/dist/TaskPatterns.mjs +180 -0
- package/dist/Telemetry.client.js +273 -0
- package/dist/Telemetry.client.mjs +243 -0
- package/dist/ThemeToggle.js +53 -0
- package/dist/{chunk-ZFGYQSNR.mjs → ThemeToggle.mjs} +3 -7
- package/dist/TrustLayer.client.js +184 -0
- package/dist/TrustLayer.client.mjs +158 -0
- package/dist/TrustLayer.js +94 -0
- package/dist/TrustLayer.mjs +68 -0
- package/dist/TrustLayer.shared.js +37 -0
- package/dist/TrustLayer.shared.mjs +13 -0
- package/dist/Typography.js +68 -0
- package/dist/Typography.mjs +37 -0
- package/dist/UploadDropzone.js +144 -0
- package/dist/UploadDropzone.mjs +120 -0
- package/dist/badge-shapes.js +75 -0
- package/dist/badge-shapes.mjs +44 -0
- package/dist/breakpoints.js +34 -0
- package/dist/breakpoints.mjs +10 -0
- package/dist/category-registry.js +33 -0
- package/dist/category-registry.mjs +9 -0
- package/dist/chart-colors.js +73 -0
- package/dist/chart-colors.mjs +44 -0
- package/dist/chart-primitives.js +169 -0
- package/dist/chart-primitives.mjs +144 -0
- package/dist/client.d.mts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +378 -23797
- package/dist/client.mjs +161 -959
- package/dist/dom-phrase-translation.js +130 -0
- package/dist/dom-phrase-translation.mjs +104 -0
- package/dist/generated-art-engine.js +119 -0
- package/dist/generated-art-engine.mjs +93 -0
- package/dist/generated-art-svg.js +263 -0
- package/dist/generated-art-svg.mjs +238 -0
- package/dist/generated-brand-badge.js +160 -0
- package/dist/generated-brand-badge.mjs +136 -0
- package/dist/generated-design-rule-coverage.js +54 -0
- package/dist/generated-design-rule-coverage.mjs +30 -0
- package/dist/icons.js +371 -0
- package/dist/{chunk-J66ITCXC.mjs → icons.mjs} +22 -15
- package/dist/index.d.mts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +448 -26709
- package/dist/index.mjs +192 -3008
- package/dist/locales/ar.js +477 -0
- package/dist/{chunk-7NNKXZFF.mjs → locales/ar.mjs} +3 -5
- package/dist/locales/de.js +477 -0
- package/dist/{chunk-TVGDH5O5.mjs → locales/de.mjs} +1 -3
- package/dist/locales/en.js +477 -0
- package/dist/{chunk-D65VHUXK.mjs → locales/en.mjs} +1 -3
- package/dist/locales/es.js +477 -0
- package/dist/{chunk-J4TSXITU.mjs → locales/es.mjs} +1 -3
- package/dist/locales/fr.js +477 -0
- package/dist/{chunk-Z6XXK57E.mjs → locales/fr.mjs} +1 -3
- package/dist/locales/he.js +477 -0
- package/dist/{chunk-YASVRGKJ.mjs → locales/he.mjs} +2 -4
- package/dist/locales/hu.js +477 -0
- package/dist/{chunk-CWMDWMYL.mjs → locales/hu.mjs} +1 -3
- package/dist/locales/index.js +83 -0
- package/dist/locales/index.mjs +45 -0
- package/dist/locales/it.js +477 -0
- package/dist/{chunk-V5WUGRFL.mjs → locales/it.mjs} +2 -4
- package/dist/locales/ja.js +477 -0
- package/dist/{chunk-XL7MGQJ4.mjs → locales/ja.mjs} +2 -4
- package/dist/locales/ko.js +477 -0
- package/dist/{chunk-PLJT4I7B.mjs → locales/ko.mjs} +1 -3
- package/dist/locales/lazy/all.js +23 -5449
- package/dist/locales/lazy/all.mjs +12 -39
- package/dist/locales/lazy/ar.js +3 -919
- package/dist/locales/lazy/ar.mjs +2 -9
- package/dist/locales/lazy/de.js +3 -919
- package/dist/locales/lazy/de.mjs +2 -9
- package/dist/locales/lazy/es.js +3 -919
- package/dist/locales/lazy/es.mjs +2 -9
- package/dist/locales/lazy/fr.js +3 -919
- package/dist/locales/lazy/fr.mjs +2 -9
- package/dist/locales/lazy/he.js +3 -919
- package/dist/locales/lazy/he.mjs +2 -9
- package/dist/locales/lazy/hu.js +3 -919
- package/dist/locales/lazy/hu.mjs +2 -9
- package/dist/locales/lazy/index.js +3 -477
- package/dist/locales/lazy/index.mjs +1 -5
- package/dist/locales/lazy/it.js +3 -919
- package/dist/locales/lazy/it.mjs +2 -9
- package/dist/locales/lazy/ja.js +3 -919
- package/dist/locales/lazy/ja.mjs +2 -9
- package/dist/locales/lazy/ko.js +3 -919
- package/dist/locales/lazy/ko.mjs +2 -9
- package/dist/locales/lazy/registry.js +47 -0
- package/dist/{chunk-TD3JPMMO.mjs → locales/lazy/registry.mjs} +6 -11
- package/dist/locales/lazy/ru.js +3 -919
- package/dist/locales/lazy/ru.mjs +2 -9
- package/dist/locales/lazy/zh.js +3 -919
- package/dist/locales/lazy/zh.mjs +2 -9
- package/dist/locales/ru.js +477 -0
- package/dist/{chunk-RBXAJJB2.mjs → locales/ru.mjs} +1 -3
- package/dist/locales/zh.js +477 -0
- package/dist/{chunk-V6SP5O4D.mjs → locales/zh.mjs} +1 -3
- package/dist/map-tile-policy.js +55 -0
- package/dist/map-tile-policy.mjs +29 -0
- package/dist/map.d.mts +1 -3
- package/dist/map.d.ts +1 -3
- package/dist/map.js +6 -749
- package/dist/map.mjs +2 -389
- package/dist/pictograms.js +112 -0
- package/dist/pictograms.mjs +88 -0
- package/dist/pictograms.shared.js +262 -0
- package/dist/pictograms.shared.mjs +226 -0
- package/dist/reference-theme-explorer.js +3 -10401
- package/dist/reference-theme-explorer.mjs +1 -2008
- package/dist/rich-text-editor.js +3 -450
- package/dist/rich-text-editor.mjs +1 -115
- package/dist/server.d.mts +6 -5
- package/dist/server.d.ts +6 -5
- package/dist/server.js +304 -18097
- package/dist/server.mjs +120 -1122
- package/dist/useGdsDomPhraseTranslation.client.js +49 -0
- package/dist/useGdsDomPhraseTranslation.client.mjs +25 -0
- package/dist/vocabulary.js +166 -0
- package/dist/vocabulary.mjs +137 -0
- package/package.json +5 -5
- package/dist/GdsBadge-j_kQnIL0.d.mts +0 -417
- package/dist/GdsBadge-j_kQnIL0.d.ts +0 -417
- package/dist/chunk-LTNPECWV.mjs +0 -6676
- package/dist/chunk-MO5TLIIB.mjs +0 -8311
- package/dist/chunk-PJR3OJJD.mjs +0 -2468
- package/dist/chunk-SPPTDVJC.mjs +0 -211
- package/dist/chunk-SV3VL3GG.mjs +0 -246
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var GdsPageTemplates_shared_exports = {};
|
|
20
|
+
__export(GdsPageTemplates_shared_exports, {
|
|
21
|
+
createGdsPageTemplateEvent: () => createGdsPageTemplateEvent,
|
|
22
|
+
getGdsPageTemplate: () => getGdsPageTemplate,
|
|
23
|
+
getGdsPageTemplates: () => getGdsPageTemplates,
|
|
24
|
+
templateConfigs: () => templateConfigs,
|
|
25
|
+
validateGdsPageTemplates: () => validateGdsPageTemplates
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(GdsPageTemplates_shared_exports);
|
|
28
|
+
const allTemplateStates = [
|
|
29
|
+
"loading",
|
|
30
|
+
"empty",
|
|
31
|
+
"ready",
|
|
32
|
+
"error",
|
|
33
|
+
"retrying",
|
|
34
|
+
"saving",
|
|
35
|
+
"permission-denied",
|
|
36
|
+
"not-found"
|
|
37
|
+
];
|
|
38
|
+
const templateConfigs = [
|
|
39
|
+
{
|
|
40
|
+
id: "admin-dashboard",
|
|
41
|
+
title: "Admin dashboard template",
|
|
42
|
+
description: "Operational overview with metrics, sections, loading, empty, error, and retry states.",
|
|
43
|
+
packageName: "@sovereignsquad/gds-core",
|
|
44
|
+
requiredData: ["metrics", "sections", "operator permission"],
|
|
45
|
+
requiredStates: allTemplateStates,
|
|
46
|
+
taskPatterns: ["review-submission", "bulk-approve"],
|
|
47
|
+
componentContracts: ["PageHeader", "MetricCard", "SectionPanel", "AsyncSurface"],
|
|
48
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
49
|
+
accessibility: ["main landmark", "single h1", "status copy", "keyboard reachable actions"],
|
|
50
|
+
edgeCases: ["no metrics", "long localized title", "permission denied", "stale loader"],
|
|
51
|
+
rollback: "Keep the previous product route while adopting this additive template export.",
|
|
52
|
+
guidance: {
|
|
53
|
+
do: [
|
|
54
|
+
"Pass `metrics` as `MetricCard` props, one numeric KPI each.",
|
|
55
|
+
"Pass `onRetry` so the error and retrying states offer a retry action."
|
|
56
|
+
],
|
|
57
|
+
dont: [
|
|
58
|
+
'Do not publish the page without metrics; it shows a "No metrics yet" block instead.',
|
|
59
|
+
"Do not put identifiers, categories or placeholders in a metric `value`."
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "settings",
|
|
65
|
+
title: "Settings template",
|
|
66
|
+
description: "Grouped settings surface with save, disabled, saving, and permission states.",
|
|
67
|
+
packageName: "@sovereignsquad/gds-core",
|
|
68
|
+
requiredData: ["setting groups", "save permission", "dirty state"],
|
|
69
|
+
requiredStates: allTemplateStates,
|
|
70
|
+
taskPatterns: ["confirm-destructive-action"],
|
|
71
|
+
componentContracts: ["PageHeader", "SectionPanel", "StatusBadge", "AsyncSurface"],
|
|
72
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
73
|
+
accessibility: ["labelled groups", "save state copy", "error recovery", "keyboard submit path"],
|
|
74
|
+
edgeCases: ["missing group", "disabled save", "server validation failure"],
|
|
75
|
+
rollback: "Consumers can keep route-local settings pages until migration is complete.",
|
|
76
|
+
guidance: {
|
|
77
|
+
do: [
|
|
78
|
+
"Give each group an `id`, a `title` and its `fields`; each group is its own panel with an `h2`.",
|
|
79
|
+
"Put the save action in `actions` and set its `loading` while saving."
|
|
80
|
+
],
|
|
81
|
+
dont: [
|
|
82
|
+
'Do not pass an empty `groups` list for a page that has settings; it shows a "No settings available" block.',
|
|
83
|
+
"Do not put a destructive action among the settings fields; use the crud-editor template's destructive zone."
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "resource-manager",
|
|
89
|
+
title: "Resource manager template",
|
|
90
|
+
description: "List/detail resource surface for CRUD, preview, delete, and recovery workflows.",
|
|
91
|
+
packageName: "@sovereignsquad/gds-core",
|
|
92
|
+
requiredData: ["rows", "columns", "resource actions", "permission result"],
|
|
93
|
+
requiredStates: allTemplateStates,
|
|
94
|
+
taskPatterns: ["create-resource", "copy-public-link", "publish-toggle", "confirm-destructive-action"],
|
|
95
|
+
componentContracts: ["GdsDataTable", "SimpleDataTable", "DetailProfileShell", "SectionPanel"],
|
|
96
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
97
|
+
accessibility: ["table headers", "named row actions", "detail heading", "retry action"],
|
|
98
|
+
edgeCases: ["empty resources", "not found detail", "permission denied", "stale rows"],
|
|
99
|
+
rollback: "Adopt per resource type; no persistence contract is hardcoded into the template.",
|
|
100
|
+
guidance: {
|
|
101
|
+
do: [
|
|
102
|
+
"Pass `getRowKey` so each row keeps a stable key when the list changes.",
|
|
103
|
+
"Pass `detail` for the selected resource; large screens then show the list and the detail side by side."
|
|
104
|
+
],
|
|
105
|
+
dont: [
|
|
106
|
+
"Do not use it for folders or bulk actions on a selection; use the asset-manager template.",
|
|
107
|
+
"Do not omit `columns`; the table renders only the columns it is given."
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "crud-editor",
|
|
113
|
+
title: "CRUD editor template",
|
|
114
|
+
description: "Edit surface that composes governed forms, summaries, saving states, and destructive zones.",
|
|
115
|
+
packageName: "@sovereignsquad/gds-core",
|
|
116
|
+
requiredData: ["form contract", "submit action", "validation state"],
|
|
117
|
+
requiredStates: allTemplateStates,
|
|
118
|
+
taskPatterns: ["create-resource", "confirm-destructive-action"],
|
|
119
|
+
componentContracts: ["GdsSchemaForm", "GdsValidationSummary", "SectionPanel", "AsyncSurface"],
|
|
120
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
121
|
+
accessibility: ["form labels", "validation summary", "status announcements", "destructive confirmation boundary"],
|
|
122
|
+
edgeCases: ["server validation", "dirty draft restore", "permission denied", "save timeout"],
|
|
123
|
+
rollback: "Keep existing editor routes beside this template until schema/form adapters are ready.",
|
|
124
|
+
guidance: {
|
|
125
|
+
do: [
|
|
126
|
+
'Pass the form as `form`; it renders in the "Editor" panel.',
|
|
127
|
+
'Put delete and other irreversible actions in `destructiveZone`, a separate "Destructive actions" panel.'
|
|
128
|
+
],
|
|
129
|
+
dont: [
|
|
130
|
+
"Do not put irreversible actions in the page `actions` next to save.",
|
|
131
|
+
"Do not use it for a list of records; use the resource-manager template."
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: "analytics",
|
|
137
|
+
title: "Analytics template",
|
|
138
|
+
description: "Reporting page with metrics, chart slot, table fallback, empty data, and retry states.",
|
|
139
|
+
packageName: "@sovereignsquad/gds-core",
|
|
140
|
+
requiredData: ["period", "metrics", "chart or table data"],
|
|
141
|
+
requiredStates: allTemplateStates,
|
|
142
|
+
taskPatterns: ["review-submission"],
|
|
143
|
+
componentContracts: ["MetricCard", "PeriodSelector", "GdsAreaChart", "GdsLineChart", "GdsDataTable", "SimpleDataTable", "StateBlock"],
|
|
144
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
145
|
+
accessibility: ["non-color-only data summary", "table fallback", "heading hierarchy", "empty data copy", "chart summaries and data tables for every chart"],
|
|
146
|
+
edgeCases: ["analytics no data", "partial data", "single data point", "large values", "right-to-left locale", "chart adapter unavailable", "long period labels"],
|
|
147
|
+
rollback: "Keep vendor-specific analytics behind the chart/table slots.",
|
|
148
|
+
guidance: {
|
|
149
|
+
do: [
|
|
150
|
+
"Pass `rows` and `columns`, or `table`: the table is the accessible alternative to the chart and renders without one.",
|
|
151
|
+
"Pass several charts as `charts`; two or more share two columns on large screens."
|
|
152
|
+
],
|
|
153
|
+
dont: [
|
|
154
|
+
"Do not pass `chart` and `charts` together; when `charts` has items, `chart` is not rendered.",
|
|
155
|
+
"Do not leave the data only in the chart."
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "public-event",
|
|
161
|
+
title: "Public event template",
|
|
162
|
+
description: "Public event page with hero media slot, event metadata, registration, and no-media recovery.",
|
|
163
|
+
packageName: "@sovereignsquad/gds-core",
|
|
164
|
+
requiredData: ["event title", "date/time", "registration state"],
|
|
165
|
+
requiredStates: allTemplateStates,
|
|
166
|
+
taskPatterns: ["copy-public-link"],
|
|
167
|
+
componentContracts: ["PublicShell", "MediaCard", "ShareButtonGroup", "StateBlock"],
|
|
168
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
169
|
+
accessibility: ["public main landmark", "event time text", "media alternative slot", "named CTA"],
|
|
170
|
+
edgeCases: ["public event no media", "registration closed", "not found", "timezone copy"],
|
|
171
|
+
rollback: "Adopt per public route without changing event storage or registration adapters.",
|
|
172
|
+
guidance: {
|
|
173
|
+
do: [
|
|
174
|
+
"Pass `when` already formatted for the reader's locale; the template renders it as given.",
|
|
175
|
+
"Pass the sign-up control as `registration`; a divider separates it from `details`."
|
|
176
|
+
],
|
|
177
|
+
dont: [
|
|
178
|
+
"Do not repeat the date and place in `details`; `when` and `location` render in the event header row.",
|
|
179
|
+
'Do not treat `media` as required; without it the page shows a "No image" block and stays readable.'
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "error-page",
|
|
185
|
+
title: "Error page template",
|
|
186
|
+
description: "Semantic error, not-found, and permission-denied page with explicit recovery actions.",
|
|
187
|
+
packageName: "@sovereignsquad/gds-core",
|
|
188
|
+
requiredData: ["error class", "recovery action availability"],
|
|
189
|
+
requiredStates: ["error", "permission-denied", "not-found", "retrying"],
|
|
190
|
+
taskPatterns: ["confirm-destructive-action"],
|
|
191
|
+
componentContracts: ["StateBlock", "AsyncSurface", "StatusBadge"],
|
|
192
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
193
|
+
accessibility: ["main landmark", "semantic heading", "recovery action label", "status text"],
|
|
194
|
+
edgeCases: ["retry unavailable", "permission denied", "unknown route"],
|
|
195
|
+
rollback: "Replace route error pages one at a time; no routing adapter is required.",
|
|
196
|
+
guidance: {
|
|
197
|
+
do: [
|
|
198
|
+
"Set `state` to `not-found`, `permission-denied` or `error`; `permission-denied` uses the permission state block.",
|
|
199
|
+
"Pass `recovery` or `onRetry` so the page offers a way forward."
|
|
200
|
+
],
|
|
201
|
+
dont: [
|
|
202
|
+
"Do not use it for an error inside one section; set that page template's `state` or use `StateBlock`.",
|
|
203
|
+
"Do not leave `title` empty unless the state's default title fits; the state supplies it when `title` is empty."
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "empty-state-page",
|
|
209
|
+
title: "Empty state page template",
|
|
210
|
+
description: "First-run or no-results page with actionable copy, status, and optional illustration slot.",
|
|
211
|
+
packageName: "@sovereignsquad/gds-core",
|
|
212
|
+
requiredData: ["empty reason", "primary recovery action"],
|
|
213
|
+
requiredStates: ["empty", "permission-denied", "not-found"],
|
|
214
|
+
taskPatterns: ["create-resource"],
|
|
215
|
+
componentContracts: ["EmptyState", "StateBlock", "PageHeader"],
|
|
216
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked"],
|
|
217
|
+
accessibility: ["single h1", "specific empty reason", "keyboard reachable recovery", "no color-only meaning"],
|
|
218
|
+
edgeCases: ["empty no action", "permission denied", "not found"],
|
|
219
|
+
rollback: "Replace blank pages and static placeholders route by route when recovery actions are ready.",
|
|
220
|
+
guidance: {
|
|
221
|
+
do: [
|
|
222
|
+
"Put the first step, such as creating the first item, in `actions`.",
|
|
223
|
+
"Pass an `illustration` only when it adds meaning; it renders above the heading."
|
|
224
|
+
],
|
|
225
|
+
dont: [
|
|
226
|
+
"Do not use it for one empty section inside a page; use `StateBlock`.",
|
|
227
|
+
"Do not omit `description` when the next step is not obvious from the title."
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: "asset-manager",
|
|
233
|
+
title: "Asset manager template",
|
|
234
|
+
description: "Dense file or asset screen with a folder tree, toolbar, bulk actions, a table/grid of items, upload and item detail.",
|
|
235
|
+
packageName: "@sovereignsquad/gds-core",
|
|
236
|
+
requiredData: ["folder tree", "items in the open folder", "selection"],
|
|
237
|
+
requiredStates: allTemplateStates,
|
|
238
|
+
taskPatterns: ["create-resource", "confirm-destructive-action"],
|
|
239
|
+
componentContracts: ["GdsTreeView", "DataToolbar", "GdsBulkActionBar", "GdsViewToggle", "AdvancedDataTable", "GdsAssetManager", "GdsShapeScope"],
|
|
240
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
241
|
+
accessibility: ["folder tree follows the tree pattern", "keyboard path tree, toolbar, bulk actions, layout toggle, items", "selection count announced", "labelled layout toggle"],
|
|
242
|
+
edgeCases: ["empty folder", "nothing selected", "thousands of items", "upload failure", "folder load error", "permission denied"],
|
|
243
|
+
rollback: "Keep the existing resource screen beside this template; the slots accept the current table and upload components.",
|
|
244
|
+
guidance: {
|
|
245
|
+
do: [
|
|
246
|
+
"Pass both `table` and `grid` to get the layout toggle; with only one there is no toggle.",
|
|
247
|
+
"Pass `bulkActions` with the current `selectedCount`; the bar shows only while it is above zero."
|
|
248
|
+
],
|
|
249
|
+
dont: [
|
|
250
|
+
"Do not import it from the `/server` entry; it is a client component.",
|
|
251
|
+
"Do not wrap `tree` in your own `nav`; the template already wraps it in a labelled `nav`."
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
id: "workspace-inbox",
|
|
257
|
+
title: "Workspace inbox template",
|
|
258
|
+
description: "Inbox with workspace navigation, a thread list and a conversation pane; list then detail on narrow viewports.",
|
|
259
|
+
packageName: "@sovereignsquad/gds-core",
|
|
260
|
+
requiredData: ["threads", "open thread", "messages of the open thread"],
|
|
261
|
+
requiredStates: allTemplateStates,
|
|
262
|
+
taskPatterns: ["review-submission"],
|
|
263
|
+
componentContracts: ["SidebarNav", "GdsThreadList", "GdsMessageThread", "StateBlock"],
|
|
264
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
265
|
+
accessibility: ["labelled navigation, list and conversation regions", "focus moves to the conversation heading when it opens on a narrow viewport", "back action returns to the list", "messages carry sender and time"],
|
|
266
|
+
edgeCases: ["empty inbox", "no conversation selected", "conversation loading", "conversation load error", "long thread", "narrow viewport"],
|
|
267
|
+
rollback: "Adopt per inbox route; the thread list and conversation slots accept existing components.",
|
|
268
|
+
guidance: {
|
|
269
|
+
do: [
|
|
270
|
+
"Set `hasSelection` and `detailTitle` when a conversation opens; on a narrow viewport the conversation replaces the list and its heading takes focus.",
|
|
271
|
+
"Pass `onBack` to clear the selection; the narrow-viewport back action calls it.",
|
|
272
|
+
"Give the `GdsThreadList` `stateTitleOrder={2}` so its loading, empty and error titles follow the page `h1`."
|
|
273
|
+
],
|
|
274
|
+
dont: [
|
|
275
|
+
"Do not pass `detail` without `hasSelection`; the pane asks for a selection until it is set.",
|
|
276
|
+
"Do not import it from the `/server` entry; it is a client component."
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
];
|
|
281
|
+
function cloneTemplateConfig(config) {
|
|
282
|
+
return {
|
|
283
|
+
...config,
|
|
284
|
+
requiredData: [...config.requiredData],
|
|
285
|
+
requiredStates: [...config.requiredStates],
|
|
286
|
+
taskPatterns: [...config.taskPatterns],
|
|
287
|
+
componentContracts: [...config.componentContracts],
|
|
288
|
+
telemetryEvents: [...config.telemetryEvents],
|
|
289
|
+
accessibility: [...config.accessibility],
|
|
290
|
+
edgeCases: [...config.edgeCases],
|
|
291
|
+
...config.guidance ? { guidance: { do: [...config.guidance.do], dont: [...config.guidance.dont] } } : {}
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function getGdsPageTemplates() {
|
|
295
|
+
return templateConfigs.map(cloneTemplateConfig);
|
|
296
|
+
}
|
|
297
|
+
function getGdsPageTemplate(id) {
|
|
298
|
+
const template = templateConfigs.find((item) => item.id === id);
|
|
299
|
+
return template ? cloneTemplateConfig(template) : void 0;
|
|
300
|
+
}
|
|
301
|
+
function validateGdsPageTemplates(templates = templateConfigs) {
|
|
302
|
+
const failures = [];
|
|
303
|
+
const ids = /* @__PURE__ */ new Set();
|
|
304
|
+
for (const template of templates) {
|
|
305
|
+
if (ids.has(template.id)) failures.push(`Duplicate page template id: ${template.id}`);
|
|
306
|
+
ids.add(template.id);
|
|
307
|
+
if (!template.telemetryEvents.includes("page_view")) failures.push(`${template.id} must expose page_view telemetry.`);
|
|
308
|
+
if (!template.telemetryEvents.includes("state_visible")) failures.push(`${template.id} must expose state_visible telemetry.`);
|
|
309
|
+
if (!template.accessibility.length) failures.push(`${template.id} must define accessibility guidance.`);
|
|
310
|
+
if (!template.edgeCases.length) failures.push(`${template.id} must define edge-case guidance.`);
|
|
311
|
+
if (!template.componentContracts.length) failures.push(`${template.id} must define component contracts.`);
|
|
312
|
+
if (template.guidance && (!template.guidance.do.length || !template.guidance.dont.length)) failures.push(`${template.id} guidance must list at least one do and one don't.`);
|
|
313
|
+
}
|
|
314
|
+
return failures;
|
|
315
|
+
}
|
|
316
|
+
function createGdsPageTemplateEvent(templateId, state, name = "state_visible", options = {}) {
|
|
317
|
+
return {
|
|
318
|
+
name,
|
|
319
|
+
templateId,
|
|
320
|
+
state,
|
|
321
|
+
...options
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
325
|
+
0 && (module.exports = {
|
|
326
|
+
createGdsPageTemplateEvent,
|
|
327
|
+
getGdsPageTemplate,
|
|
328
|
+
getGdsPageTemplates,
|
|
329
|
+
templateConfigs,
|
|
330
|
+
validateGdsPageTemplates
|
|
331
|
+
});
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
const allTemplateStates = [
|
|
2
|
+
"loading",
|
|
3
|
+
"empty",
|
|
4
|
+
"ready",
|
|
5
|
+
"error",
|
|
6
|
+
"retrying",
|
|
7
|
+
"saving",
|
|
8
|
+
"permission-denied",
|
|
9
|
+
"not-found"
|
|
10
|
+
];
|
|
11
|
+
const templateConfigs = [
|
|
12
|
+
{
|
|
13
|
+
id: "admin-dashboard",
|
|
14
|
+
title: "Admin dashboard template",
|
|
15
|
+
description: "Operational overview with metrics, sections, loading, empty, error, and retry states.",
|
|
16
|
+
packageName: "@sovereignsquad/gds-core",
|
|
17
|
+
requiredData: ["metrics", "sections", "operator permission"],
|
|
18
|
+
requiredStates: allTemplateStates,
|
|
19
|
+
taskPatterns: ["review-submission", "bulk-approve"],
|
|
20
|
+
componentContracts: ["PageHeader", "MetricCard", "SectionPanel", "AsyncSurface"],
|
|
21
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
22
|
+
accessibility: ["main landmark", "single h1", "status copy", "keyboard reachable actions"],
|
|
23
|
+
edgeCases: ["no metrics", "long localized title", "permission denied", "stale loader"],
|
|
24
|
+
rollback: "Keep the previous product route while adopting this additive template export.",
|
|
25
|
+
guidance: {
|
|
26
|
+
do: [
|
|
27
|
+
"Pass `metrics` as `MetricCard` props, one numeric KPI each.",
|
|
28
|
+
"Pass `onRetry` so the error and retrying states offer a retry action."
|
|
29
|
+
],
|
|
30
|
+
dont: [
|
|
31
|
+
'Do not publish the page without metrics; it shows a "No metrics yet" block instead.',
|
|
32
|
+
"Do not put identifiers, categories or placeholders in a metric `value`."
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "settings",
|
|
38
|
+
title: "Settings template",
|
|
39
|
+
description: "Grouped settings surface with save, disabled, saving, and permission states.",
|
|
40
|
+
packageName: "@sovereignsquad/gds-core",
|
|
41
|
+
requiredData: ["setting groups", "save permission", "dirty state"],
|
|
42
|
+
requiredStates: allTemplateStates,
|
|
43
|
+
taskPatterns: ["confirm-destructive-action"],
|
|
44
|
+
componentContracts: ["PageHeader", "SectionPanel", "StatusBadge", "AsyncSurface"],
|
|
45
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
46
|
+
accessibility: ["labelled groups", "save state copy", "error recovery", "keyboard submit path"],
|
|
47
|
+
edgeCases: ["missing group", "disabled save", "server validation failure"],
|
|
48
|
+
rollback: "Consumers can keep route-local settings pages until migration is complete.",
|
|
49
|
+
guidance: {
|
|
50
|
+
do: [
|
|
51
|
+
"Give each group an `id`, a `title` and its `fields`; each group is its own panel with an `h2`.",
|
|
52
|
+
"Put the save action in `actions` and set its `loading` while saving."
|
|
53
|
+
],
|
|
54
|
+
dont: [
|
|
55
|
+
'Do not pass an empty `groups` list for a page that has settings; it shows a "No settings available" block.',
|
|
56
|
+
"Do not put a destructive action among the settings fields; use the crud-editor template's destructive zone."
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "resource-manager",
|
|
62
|
+
title: "Resource manager template",
|
|
63
|
+
description: "List/detail resource surface for CRUD, preview, delete, and recovery workflows.",
|
|
64
|
+
packageName: "@sovereignsquad/gds-core",
|
|
65
|
+
requiredData: ["rows", "columns", "resource actions", "permission result"],
|
|
66
|
+
requiredStates: allTemplateStates,
|
|
67
|
+
taskPatterns: ["create-resource", "copy-public-link", "publish-toggle", "confirm-destructive-action"],
|
|
68
|
+
componentContracts: ["GdsDataTable", "SimpleDataTable", "DetailProfileShell", "SectionPanel"],
|
|
69
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
70
|
+
accessibility: ["table headers", "named row actions", "detail heading", "retry action"],
|
|
71
|
+
edgeCases: ["empty resources", "not found detail", "permission denied", "stale rows"],
|
|
72
|
+
rollback: "Adopt per resource type; no persistence contract is hardcoded into the template.",
|
|
73
|
+
guidance: {
|
|
74
|
+
do: [
|
|
75
|
+
"Pass `getRowKey` so each row keeps a stable key when the list changes.",
|
|
76
|
+
"Pass `detail` for the selected resource; large screens then show the list and the detail side by side."
|
|
77
|
+
],
|
|
78
|
+
dont: [
|
|
79
|
+
"Do not use it for folders or bulk actions on a selection; use the asset-manager template.",
|
|
80
|
+
"Do not omit `columns`; the table renders only the columns it is given."
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "crud-editor",
|
|
86
|
+
title: "CRUD editor template",
|
|
87
|
+
description: "Edit surface that composes governed forms, summaries, saving states, and destructive zones.",
|
|
88
|
+
packageName: "@sovereignsquad/gds-core",
|
|
89
|
+
requiredData: ["form contract", "submit action", "validation state"],
|
|
90
|
+
requiredStates: allTemplateStates,
|
|
91
|
+
taskPatterns: ["create-resource", "confirm-destructive-action"],
|
|
92
|
+
componentContracts: ["GdsSchemaForm", "GdsValidationSummary", "SectionPanel", "AsyncSurface"],
|
|
93
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
94
|
+
accessibility: ["form labels", "validation summary", "status announcements", "destructive confirmation boundary"],
|
|
95
|
+
edgeCases: ["server validation", "dirty draft restore", "permission denied", "save timeout"],
|
|
96
|
+
rollback: "Keep existing editor routes beside this template until schema/form adapters are ready.",
|
|
97
|
+
guidance: {
|
|
98
|
+
do: [
|
|
99
|
+
'Pass the form as `form`; it renders in the "Editor" panel.',
|
|
100
|
+
'Put delete and other irreversible actions in `destructiveZone`, a separate "Destructive actions" panel.'
|
|
101
|
+
],
|
|
102
|
+
dont: [
|
|
103
|
+
"Do not put irreversible actions in the page `actions` next to save.",
|
|
104
|
+
"Do not use it for a list of records; use the resource-manager template."
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: "analytics",
|
|
110
|
+
title: "Analytics template",
|
|
111
|
+
description: "Reporting page with metrics, chart slot, table fallback, empty data, and retry states.",
|
|
112
|
+
packageName: "@sovereignsquad/gds-core",
|
|
113
|
+
requiredData: ["period", "metrics", "chart or table data"],
|
|
114
|
+
requiredStates: allTemplateStates,
|
|
115
|
+
taskPatterns: ["review-submission"],
|
|
116
|
+
componentContracts: ["MetricCard", "PeriodSelector", "GdsAreaChart", "GdsLineChart", "GdsDataTable", "SimpleDataTable", "StateBlock"],
|
|
117
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
118
|
+
accessibility: ["non-color-only data summary", "table fallback", "heading hierarchy", "empty data copy", "chart summaries and data tables for every chart"],
|
|
119
|
+
edgeCases: ["analytics no data", "partial data", "single data point", "large values", "right-to-left locale", "chart adapter unavailable", "long period labels"],
|
|
120
|
+
rollback: "Keep vendor-specific analytics behind the chart/table slots.",
|
|
121
|
+
guidance: {
|
|
122
|
+
do: [
|
|
123
|
+
"Pass `rows` and `columns`, or `table`: the table is the accessible alternative to the chart and renders without one.",
|
|
124
|
+
"Pass several charts as `charts`; two or more share two columns on large screens."
|
|
125
|
+
],
|
|
126
|
+
dont: [
|
|
127
|
+
"Do not pass `chart` and `charts` together; when `charts` has items, `chart` is not rendered.",
|
|
128
|
+
"Do not leave the data only in the chart."
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "public-event",
|
|
134
|
+
title: "Public event template",
|
|
135
|
+
description: "Public event page with hero media slot, event metadata, registration, and no-media recovery.",
|
|
136
|
+
packageName: "@sovereignsquad/gds-core",
|
|
137
|
+
requiredData: ["event title", "date/time", "registration state"],
|
|
138
|
+
requiredStates: allTemplateStates,
|
|
139
|
+
taskPatterns: ["copy-public-link"],
|
|
140
|
+
componentContracts: ["PublicShell", "MediaCard", "ShareButtonGroup", "StateBlock"],
|
|
141
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
142
|
+
accessibility: ["public main landmark", "event time text", "media alternative slot", "named CTA"],
|
|
143
|
+
edgeCases: ["public event no media", "registration closed", "not found", "timezone copy"],
|
|
144
|
+
rollback: "Adopt per public route without changing event storage or registration adapters.",
|
|
145
|
+
guidance: {
|
|
146
|
+
do: [
|
|
147
|
+
"Pass `when` already formatted for the reader's locale; the template renders it as given.",
|
|
148
|
+
"Pass the sign-up control as `registration`; a divider separates it from `details`."
|
|
149
|
+
],
|
|
150
|
+
dont: [
|
|
151
|
+
"Do not repeat the date and place in `details`; `when` and `location` render in the event header row.",
|
|
152
|
+
'Do not treat `media` as required; without it the page shows a "No image" block and stays readable.'
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: "error-page",
|
|
158
|
+
title: "Error page template",
|
|
159
|
+
description: "Semantic error, not-found, and permission-denied page with explicit recovery actions.",
|
|
160
|
+
packageName: "@sovereignsquad/gds-core",
|
|
161
|
+
requiredData: ["error class", "recovery action availability"],
|
|
162
|
+
requiredStates: ["error", "permission-denied", "not-found", "retrying"],
|
|
163
|
+
taskPatterns: ["confirm-destructive-action"],
|
|
164
|
+
componentContracts: ["StateBlock", "AsyncSurface", "StatusBadge"],
|
|
165
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
166
|
+
accessibility: ["main landmark", "semantic heading", "recovery action label", "status text"],
|
|
167
|
+
edgeCases: ["retry unavailable", "permission denied", "unknown route"],
|
|
168
|
+
rollback: "Replace route error pages one at a time; no routing adapter is required.",
|
|
169
|
+
guidance: {
|
|
170
|
+
do: [
|
|
171
|
+
"Set `state` to `not-found`, `permission-denied` or `error`; `permission-denied` uses the permission state block.",
|
|
172
|
+
"Pass `recovery` or `onRetry` so the page offers a way forward."
|
|
173
|
+
],
|
|
174
|
+
dont: [
|
|
175
|
+
"Do not use it for an error inside one section; set that page template's `state` or use `StateBlock`.",
|
|
176
|
+
"Do not leave `title` empty unless the state's default title fits; the state supplies it when `title` is empty."
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "empty-state-page",
|
|
182
|
+
title: "Empty state page template",
|
|
183
|
+
description: "First-run or no-results page with actionable copy, status, and optional illustration slot.",
|
|
184
|
+
packageName: "@sovereignsquad/gds-core",
|
|
185
|
+
requiredData: ["empty reason", "primary recovery action"],
|
|
186
|
+
requiredStates: ["empty", "permission-denied", "not-found"],
|
|
187
|
+
taskPatterns: ["create-resource"],
|
|
188
|
+
componentContracts: ["EmptyState", "StateBlock", "PageHeader"],
|
|
189
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked"],
|
|
190
|
+
accessibility: ["single h1", "specific empty reason", "keyboard reachable recovery", "no color-only meaning"],
|
|
191
|
+
edgeCases: ["empty no action", "permission denied", "not found"],
|
|
192
|
+
rollback: "Replace blank pages and static placeholders route by route when recovery actions are ready.",
|
|
193
|
+
guidance: {
|
|
194
|
+
do: [
|
|
195
|
+
"Put the first step, such as creating the first item, in `actions`.",
|
|
196
|
+
"Pass an `illustration` only when it adds meaning; it renders above the heading."
|
|
197
|
+
],
|
|
198
|
+
dont: [
|
|
199
|
+
"Do not use it for one empty section inside a page; use `StateBlock`.",
|
|
200
|
+
"Do not omit `description` when the next step is not obvious from the title."
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
id: "asset-manager",
|
|
206
|
+
title: "Asset manager template",
|
|
207
|
+
description: "Dense file or asset screen with a folder tree, toolbar, bulk actions, a table/grid of items, upload and item detail.",
|
|
208
|
+
packageName: "@sovereignsquad/gds-core",
|
|
209
|
+
requiredData: ["folder tree", "items in the open folder", "selection"],
|
|
210
|
+
requiredStates: allTemplateStates,
|
|
211
|
+
taskPatterns: ["create-resource", "confirm-destructive-action"],
|
|
212
|
+
componentContracts: ["GdsTreeView", "DataToolbar", "GdsBulkActionBar", "GdsViewToggle", "AdvancedDataTable", "GdsAssetManager", "GdsShapeScope"],
|
|
213
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
214
|
+
accessibility: ["folder tree follows the tree pattern", "keyboard path tree, toolbar, bulk actions, layout toggle, items", "selection count announced", "labelled layout toggle"],
|
|
215
|
+
edgeCases: ["empty folder", "nothing selected", "thousands of items", "upload failure", "folder load error", "permission denied"],
|
|
216
|
+
rollback: "Keep the existing resource screen beside this template; the slots accept the current table and upload components.",
|
|
217
|
+
guidance: {
|
|
218
|
+
do: [
|
|
219
|
+
"Pass both `table` and `grid` to get the layout toggle; with only one there is no toggle.",
|
|
220
|
+
"Pass `bulkActions` with the current `selectedCount`; the bar shows only while it is above zero."
|
|
221
|
+
],
|
|
222
|
+
dont: [
|
|
223
|
+
"Do not import it from the `/server` entry; it is a client component.",
|
|
224
|
+
"Do not wrap `tree` in your own `nav`; the template already wraps it in a labelled `nav`."
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "workspace-inbox",
|
|
230
|
+
title: "Workspace inbox template",
|
|
231
|
+
description: "Inbox with workspace navigation, a thread list and a conversation pane; list then detail on narrow viewports.",
|
|
232
|
+
packageName: "@sovereignsquad/gds-core",
|
|
233
|
+
requiredData: ["threads", "open thread", "messages of the open thread"],
|
|
234
|
+
requiredStates: allTemplateStates,
|
|
235
|
+
taskPatterns: ["review-submission"],
|
|
236
|
+
componentContracts: ["SidebarNav", "GdsThreadList", "GdsMessageThread", "StateBlock"],
|
|
237
|
+
telemetryEvents: ["page_view", "state_visible", "action_clicked", "retry_requested"],
|
|
238
|
+
accessibility: ["labelled navigation, list and conversation regions", "focus moves to the conversation heading when it opens on a narrow viewport", "back action returns to the list", "messages carry sender and time"],
|
|
239
|
+
edgeCases: ["empty inbox", "no conversation selected", "conversation loading", "conversation load error", "long thread", "narrow viewport"],
|
|
240
|
+
rollback: "Adopt per inbox route; the thread list and conversation slots accept existing components.",
|
|
241
|
+
guidance: {
|
|
242
|
+
do: [
|
|
243
|
+
"Set `hasSelection` and `detailTitle` when a conversation opens; on a narrow viewport the conversation replaces the list and its heading takes focus.",
|
|
244
|
+
"Pass `onBack` to clear the selection; the narrow-viewport back action calls it.",
|
|
245
|
+
"Give the `GdsThreadList` `stateTitleOrder={2}` so its loading, empty and error titles follow the page `h1`."
|
|
246
|
+
],
|
|
247
|
+
dont: [
|
|
248
|
+
"Do not pass `detail` without `hasSelection`; the pane asks for a selection until it is set.",
|
|
249
|
+
"Do not import it from the `/server` entry; it is a client component."
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
];
|
|
254
|
+
function cloneTemplateConfig(config) {
|
|
255
|
+
return {
|
|
256
|
+
...config,
|
|
257
|
+
requiredData: [...config.requiredData],
|
|
258
|
+
requiredStates: [...config.requiredStates],
|
|
259
|
+
taskPatterns: [...config.taskPatterns],
|
|
260
|
+
componentContracts: [...config.componentContracts],
|
|
261
|
+
telemetryEvents: [...config.telemetryEvents],
|
|
262
|
+
accessibility: [...config.accessibility],
|
|
263
|
+
edgeCases: [...config.edgeCases],
|
|
264
|
+
...config.guidance ? { guidance: { do: [...config.guidance.do], dont: [...config.guidance.dont] } } : {}
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function getGdsPageTemplates() {
|
|
268
|
+
return templateConfigs.map(cloneTemplateConfig);
|
|
269
|
+
}
|
|
270
|
+
function getGdsPageTemplate(id) {
|
|
271
|
+
const template = templateConfigs.find((item) => item.id === id);
|
|
272
|
+
return template ? cloneTemplateConfig(template) : void 0;
|
|
273
|
+
}
|
|
274
|
+
function validateGdsPageTemplates(templates = templateConfigs) {
|
|
275
|
+
const failures = [];
|
|
276
|
+
const ids = /* @__PURE__ */ new Set();
|
|
277
|
+
for (const template of templates) {
|
|
278
|
+
if (ids.has(template.id)) failures.push(`Duplicate page template id: ${template.id}`);
|
|
279
|
+
ids.add(template.id);
|
|
280
|
+
if (!template.telemetryEvents.includes("page_view")) failures.push(`${template.id} must expose page_view telemetry.`);
|
|
281
|
+
if (!template.telemetryEvents.includes("state_visible")) failures.push(`${template.id} must expose state_visible telemetry.`);
|
|
282
|
+
if (!template.accessibility.length) failures.push(`${template.id} must define accessibility guidance.`);
|
|
283
|
+
if (!template.edgeCases.length) failures.push(`${template.id} must define edge-case guidance.`);
|
|
284
|
+
if (!template.componentContracts.length) failures.push(`${template.id} must define component contracts.`);
|
|
285
|
+
if (template.guidance && (!template.guidance.do.length || !template.guidance.dont.length)) failures.push(`${template.id} guidance must list at least one do and one don't.`);
|
|
286
|
+
}
|
|
287
|
+
return failures;
|
|
288
|
+
}
|
|
289
|
+
function createGdsPageTemplateEvent(templateId, state, name = "state_visible", options = {}) {
|
|
290
|
+
return {
|
|
291
|
+
name,
|
|
292
|
+
templateId,
|
|
293
|
+
state,
|
|
294
|
+
...options
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
export {
|
|
298
|
+
createGdsPageTemplateEvent,
|
|
299
|
+
getGdsPageTemplate,
|
|
300
|
+
getGdsPageTemplates,
|
|
301
|
+
templateConfigs,
|
|
302
|
+
validateGdsPageTemplates
|
|
303
|
+
};
|