@burdenoff/fe-libs 2026.525.2 → 2026.525.3
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/package.json +1 -1
- package/dist/button/Button.d.ts +0 -12
- package/dist/button/Button.d.ts.map +0 -1
- package/dist/button/index.d.ts +0 -3
- package/dist/button/index.d.ts.map +0 -1
- package/dist/button.d.ts +0 -2
- package/dist/chrome/AccountSwitcher.d.ts +0 -51
- package/dist/chrome/AccountSwitcher.d.ts.map +0 -1
- package/dist/chrome/AppShellLayout.d.ts +0 -67
- package/dist/chrome/AppShellLayout.d.ts.map +0 -1
- package/dist/chrome/AutoBreadcrumbs.d.ts +0 -22
- package/dist/chrome/AutoBreadcrumbs.d.ts.map +0 -1
- package/dist/chrome/Breadcrumb.d.ts +0 -47
- package/dist/chrome/Breadcrumb.d.ts.map +0 -1
- package/dist/chrome/Breadcrumbs.d.ts +0 -69
- package/dist/chrome/Breadcrumbs.d.ts.map +0 -1
- package/dist/chrome/CommandPalette.d.ts +0 -64
- package/dist/chrome/CommandPalette.d.ts.map +0 -1
- package/dist/chrome/ContextSwitcher.d.ts +0 -48
- package/dist/chrome/ContextSwitcher.d.ts.map +0 -1
- package/dist/chrome/DynamicFooter.d.ts +0 -21
- package/dist/chrome/DynamicFooter.d.ts.map +0 -1
- package/dist/chrome/Footer.d.ts +0 -128
- package/dist/chrome/Footer.d.ts.map +0 -1
- package/dist/chrome/FooterBar.d.ts +0 -79
- package/dist/chrome/FooterBar.d.ts.map +0 -1
- package/dist/chrome/GeographySwitcher.d.ts +0 -22
- package/dist/chrome/GeographySwitcher.d.ts.map +0 -1
- package/dist/chrome/GlobalSearch.d.ts +0 -49
- package/dist/chrome/GlobalSearch.d.ts.map +0 -1
- package/dist/chrome/HeaderBar.d.ts +0 -108
- package/dist/chrome/HeaderBar.d.ts.map +0 -1
- package/dist/chrome/LanguagePickerSheet.d.ts +0 -22
- package/dist/chrome/LanguagePickerSheet.d.ts.map +0 -1
- package/dist/chrome/LanguageSwitcher.d.ts +0 -23
- package/dist/chrome/LanguageSwitcher.d.ts.map +0 -1
- package/dist/chrome/NavLink.d.ts +0 -64
- package/dist/chrome/NavLink.d.ts.map +0 -1
- package/dist/chrome/NotificationCenter.d.ts +0 -16
- package/dist/chrome/NotificationCenter.d.ts.map +0 -1
- package/dist/chrome/PanelContainer.d.ts +0 -8
- package/dist/chrome/PanelContainer.d.ts.map +0 -1
- package/dist/chrome/PanelTabs.d.ts +0 -19
- package/dist/chrome/PanelTabs.d.ts.map +0 -1
- package/dist/chrome/PluginContextMenuTarget.d.ts +0 -8
- package/dist/chrome/PluginContextMenuTarget.d.ts.map +0 -1
- package/dist/chrome/PluginFooterStrip.d.ts +0 -3
- package/dist/chrome/PluginFooterStrip.d.ts.map +0 -1
- package/dist/chrome/PluginRoutes.d.ts +0 -9
- package/dist/chrome/PluginRoutes.d.ts.map +0 -1
- package/dist/chrome/PluginSettingsPage.d.ts +0 -3
- package/dist/chrome/PluginSettingsPage.d.ts.map +0 -1
- package/dist/chrome/PluginToolbar.d.ts +0 -9
- package/dist/chrome/PluginToolbar.d.ts.map +0 -1
- package/dist/chrome/PluginWidgetGrid.d.ts +0 -7
- package/dist/chrome/PluginWidgetGrid.d.ts.map +0 -1
- package/dist/chrome/ProductPickerSheet.d.ts +0 -24
- package/dist/chrome/ProductPickerSheet.d.ts.map +0 -1
- package/dist/chrome/ProductSideNav.d.ts +0 -22
- package/dist/chrome/ProductSideNav.d.ts.map +0 -1
- package/dist/chrome/ProductSwitcher.d.ts +0 -31
- package/dist/chrome/ProductSwitcher.d.ts.map +0 -1
- package/dist/chrome/ProfileSwitcher.d.ts +0 -49
- package/dist/chrome/ProfileSwitcher.d.ts.map +0 -1
- package/dist/chrome/ShortcutHelpDialog.d.ts +0 -33
- package/dist/chrome/ShortcutHelpDialog.d.ts.map +0 -1
- package/dist/chrome/SideNavigation.d.ts +0 -85
- package/dist/chrome/SideNavigation.d.ts.map +0 -1
- package/dist/chrome/Sidebar.d.ts +0 -108
- package/dist/chrome/Sidebar.d.ts.map +0 -1
- package/dist/chrome/StatusBar.d.ts +0 -3
- package/dist/chrome/StatusBar.d.ts.map +0 -1
- package/dist/chrome/Tabs.d.ts +0 -74
- package/dist/chrome/Tabs.d.ts.map +0 -1
- package/dist/chrome/index.d.ts +0 -108
- package/dist/chrome/index.d.ts.map +0 -1
- package/dist/chrome.d.ts +0 -2
- package/dist/config/eslint.config.d.ts +0 -12
- package/dist/config/eslint.config.d.ts.map +0 -1
- package/dist/config/index.d.ts +0 -19
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/prettier.config.d.ts +0 -7
- package/dist/config/prettier.config.d.ts.map +0 -1
- package/dist/form/Checkbox.d.ts +0 -60
- package/dist/form/Checkbox.d.ts.map +0 -1
- package/dist/form/Form.d.ts +0 -114
- package/dist/form/Form.d.ts.map +0 -1
- package/dist/form/FormDescription.d.ts +0 -33
- package/dist/form/FormDescription.d.ts.map +0 -1
- package/dist/form/FormField.d.ts +0 -96
- package/dist/form/FormField.d.ts.map +0 -1
- package/dist/form/FormLabel.d.ts +0 -41
- package/dist/form/FormLabel.d.ts.map +0 -1
- package/dist/form/FormMessage.d.ts +0 -35
- package/dist/form/FormMessage.d.ts.map +0 -1
- package/dist/form/Input.d.ts +0 -43
- package/dist/form/Input.d.ts.map +0 -1
- package/dist/form/Radio.d.ts +0 -99
- package/dist/form/Radio.d.ts.map +0 -1
- package/dist/form/Select.d.ts +0 -101
- package/dist/form/Select.d.ts.map +0 -1
- package/dist/form/Textarea.d.ts +0 -50
- package/dist/form/Textarea.d.ts.map +0 -1
- package/dist/form/index.d.ts +0 -24
- package/dist/form/index.d.ts.map +0 -1
- package/dist/form.d.ts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/shared/components/AccessDenied.d.ts +0 -117
- package/dist/shared/components/AccessDenied.d.ts.map +0 -1
- package/dist/shared/components/AppErrorBoundary.d.ts +0 -19
- package/dist/shared/components/AppErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/ConditionalShell.d.ts +0 -17
- package/dist/shared/components/ConditionalShell.d.ts.map +0 -1
- package/dist/shared/components/ContextConversationWidget.d.ts +0 -6
- package/dist/shared/components/ContextConversationWidget.d.ts.map +0 -1
- package/dist/shared/components/ErrorBoundary.d.ts +0 -19
- package/dist/shared/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/ErrorFallback.d.ts +0 -3
- package/dist/shared/components/ErrorFallback.d.ts.map +0 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +0 -7
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +0 -1
- package/dist/shared/components/LegalPage.d.ts +0 -19
- package/dist/shared/components/LegalPage.d.ts.map +0 -1
- package/dist/shared/components/LoadingFallback.d.ts +0 -31
- package/dist/shared/components/LoadingFallback.d.ts.map +0 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts +0 -20
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +0 -1
- package/dist/shared/components/PWAInstallBanner.d.ts +0 -14
- package/dist/shared/components/PWAInstallBanner.d.ts.map +0 -1
- package/dist/shared/components/PermissionGate.d.ts +0 -202
- package/dist/shared/components/PermissionGate.d.ts.map +0 -1
- package/dist/shared/components/ProductAccessGuard.d.ts +0 -8
- package/dist/shared/components/ProductAccessGuard.d.ts.map +0 -1
- package/dist/shared/components/QuotaMeter.d.ts +0 -30
- package/dist/shared/components/QuotaMeter.d.ts.map +0 -1
- package/dist/shared/components/RequireAuth.d.ts +0 -76
- package/dist/shared/components/RequireAuth.d.ts.map +0 -1
- package/dist/shared/components/SSORedirectGuard.d.ts +0 -49
- package/dist/shared/components/SSORedirectGuard.d.ts.map +0 -1
- package/dist/shared/components/SearchPage.d.ts +0 -24
- package/dist/shared/components/SearchPage.d.ts.map +0 -1
- package/dist/shared/components/index.d.ts +0 -25
- package/dist/shared/components/index.d.ts.map +0 -1
- package/dist/shared/config/authBridgeUrls.d.ts +0 -27
- package/dist/shared/config/authBridgeUrls.d.ts.map +0 -1
- package/dist/shared/config/eslint.config.d.ts +0 -12
- package/dist/shared/config/eslint.config.d.ts.map +0 -1
- package/dist/shared/config/gatewayUrls.d.ts +0 -44
- package/dist/shared/config/gatewayUrls.d.ts.map +0 -1
- package/dist/shared/config/index.d.ts +0 -71
- package/dist/shared/config/index.d.ts.map +0 -1
- package/dist/shared/config/prettier.config.d.ts +0 -7
- package/dist/shared/config/prettier.config.d.ts.map +0 -1
- package/dist/shared/config/products.d.ts +0 -56
- package/dist/shared/config/products.d.ts.map +0 -1
- package/dist/shared/config/shellRoutes.d.ts +0 -52
- package/dist/shared/config/shellRoutes.d.ts.map +0 -1
- package/dist/shared/events/index.d.ts +0 -591
- package/dist/shared/events/index.d.ts.map +0 -1
- package/dist/shared/events/metadata.d.ts +0 -7
- package/dist/shared/events/metadata.d.ts.map +0 -1
- package/dist/shared/events/sinks/BackendAuditSink.d.ts +0 -18
- package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts +0 -10
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/DevtoolsSink.d.ts +0 -10
- package/dist/shared/events/sinks/DevtoolsSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts +0 -14
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/RybbitSink.d.ts +0 -19
- package/dist/shared/events/sinks/RybbitSink.d.ts.map +0 -1
- package/dist/shared/events/sinks/index.d.ts +0 -6
- package/dist/shared/events/sinks/index.d.ts.map +0 -1
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +0 -47
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +0 -1
- package/dist/shared/feature-flags/FeatureGate.d.ts +0 -27
- package/dist/shared/feature-flags/FeatureGate.d.ts.map +0 -1
- package/dist/shared/feature-flags/index.d.ts +0 -38
- package/dist/shared/feature-flags/index.d.ts.map +0 -1
- package/dist/shared/feature-flags/types.d.ts +0 -121
- package/dist/shared/feature-flags/types.d.ts.map +0 -1
- package/dist/shared/feature-flags/useFeatureFlag.d.ts +0 -41
- package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +0 -1
- package/dist/shared/geography/GeographyProvider.d.ts +0 -40
- package/dist/shared/geography/GeographyProvider.d.ts.map +0 -1
- package/dist/shared/geography/countries.d.ts +0 -53
- package/dist/shared/geography/countries.d.ts.map +0 -1
- package/dist/shared/geography/index.d.ts +0 -5
- package/dist/shared/geography/index.d.ts.map +0 -1
- package/dist/shared/graphql/GatewayContext.d.ts +0 -55
- package/dist/shared/graphql/GatewayContext.d.ts.map +0 -1
- package/dist/shared/graphql/client.d.ts +0 -122
- package/dist/shared/graphql/client.d.ts.map +0 -1
- package/dist/shared/graphql/fetch.d.ts +0 -133
- package/dist/shared/graphql/fetch.d.ts.map +0 -1
- package/dist/shared/graphql/index.d.ts +0 -9
- package/dist/shared/graphql/index.d.ts.map +0 -1
- package/dist/shared/graphql/links/sse-link.d.ts +0 -48
- package/dist/shared/graphql/links/sse-link.d.ts.map +0 -1
- package/dist/shared/graphql/security.d.ts +0 -13
- package/dist/shared/graphql/security.d.ts.map +0 -1
- package/dist/shared/graphql/workspaceToken.d.ts +0 -13
- package/dist/shared/graphql/workspaceToken.d.ts.map +0 -1
- package/dist/shared/help/HelpButton.d.ts +0 -25
- package/dist/shared/help/HelpButton.d.ts.map +0 -1
- package/dist/shared/help/HelpPanel.d.ts +0 -10
- package/dist/shared/help/HelpPanel.d.ts.map +0 -1
- package/dist/shared/help/HelpProvider.d.ts +0 -40
- package/dist/shared/help/HelpProvider.d.ts.map +0 -1
- package/dist/shared/help/index.d.ts +0 -53
- package/dist/shared/help/index.d.ts.map +0 -1
- package/dist/shared/help/types.d.ts +0 -159
- package/dist/shared/help/types.d.ts.map +0 -1
- package/dist/shared/hooks/index.d.ts +0 -31
- package/dist/shared/hooks/index.d.ts.map +0 -1
- package/dist/shared/hooks/shell/index.d.ts +0 -22
- package/dist/shared/hooks/shell/index.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts +0 -50
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts +0 -23
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +0 -103
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useLanguages.d.ts +0 -43
- package/dist/shared/hooks/shell/useLanguages.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useNavRegistry.d.ts +0 -25
- package/dist/shared/hooks/shell/useNavRegistry.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useProductAccess.d.ts +0 -37
- package/dist/shared/hooks/shell/useProductAccess.d.ts.map +0 -1
- package/dist/shared/hooks/shell/useProducts.d.ts +0 -30
- package/dist/shared/hooks/shell/useProducts.d.ts.map +0 -1
- package/dist/shared/hooks/useAsync.d.ts +0 -151
- package/dist/shared/hooks/useAsync.d.ts.map +0 -1
- package/dist/shared/hooks/useBreakpoint.d.ts +0 -83
- package/dist/shared/hooks/useBreakpoint.d.ts.map +0 -1
- package/dist/shared/hooks/useCopyToClipboard.d.ts +0 -72
- package/dist/shared/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/dist/shared/hooks/useDebounce.d.ts +0 -26
- package/dist/shared/hooks/useDebounce.d.ts.map +0 -1
- package/dist/shared/hooks/useHasAnimated.d.ts +0 -10
- package/dist/shared/hooks/useHasAnimated.d.ts.map +0 -1
- package/dist/shared/hooks/useKeyPress.d.ts +0 -116
- package/dist/shared/hooks/useKeyPress.d.ts.map +0 -1
- package/dist/shared/hooks/useLocalStorage.d.ts +0 -41
- package/dist/shared/hooks/useLocalStorage.d.ts.map +0 -1
- package/dist/shared/hooks/useMediaQuery.d.ts +0 -35
- package/dist/shared/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/shared/hooks/useOnClickOutside.d.ts +0 -76
- package/dist/shared/hooks/useOnClickOutside.d.ts.map +0 -1
- package/dist/shared/hooks/usePWA.d.ts +0 -57
- package/dist/shared/hooks/usePWA.d.ts.map +0 -1
- package/dist/shared/hooks/usePrevious.d.ts +0 -157
- package/dist/shared/hooks/usePrevious.d.ts.map +0 -1
- package/dist/shared/hooks/useQuotaErrorToast.d.ts +0 -50
- package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +0 -1
- package/dist/shared/hooks/useRecordProductVisit.d.ts +0 -11
- package/dist/shared/hooks/useRecordProductVisit.d.ts.map +0 -1
- package/dist/shared/hooks/useReferralAttribution.d.ts +0 -2
- package/dist/shared/hooks/useReferralAttribution.d.ts.map +0 -1
- package/dist/shared/hooks/useSessionStorage.d.ts +0 -44
- package/dist/shared/hooks/useSessionStorage.d.ts.map +0 -1
- package/dist/shared/hooks/useThrottle.d.ts +0 -37
- package/dist/shared/hooks/useThrottle.d.ts.map +0 -1
- package/dist/shared/hooks/useToggle.d.ts +0 -152
- package/dist/shared/hooks/useToggle.d.ts.map +0 -1
- package/dist/shared/index.d.ts +0 -13
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/keyboard/globalShortcuts.d.ts +0 -58
- package/dist/shared/keyboard/globalShortcuts.d.ts.map +0 -1
- package/dist/shared/keyboard/index.d.ts +0 -40
- package/dist/shared/keyboard/index.d.ts.map +0 -1
- package/dist/shared/keyboard/types.d.ts +0 -85
- package/dist/shared/keyboard/types.d.ts.map +0 -1
- package/dist/shared/keyboard/useHotkeys.d.ts +0 -21
- package/dist/shared/keyboard/useHotkeys.d.ts.map +0 -1
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +0 -94
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/shared/keyboard/useShortcutHelp.d.ts +0 -27
- package/dist/shared/keyboard/useShortcutHelp.d.ts.map +0 -1
- package/dist/shared/keyboard/utils.d.ts +0 -72
- package/dist/shared/keyboard/utils.d.ts.map +0 -1
- package/dist/shared/logger/ConsoleTransport.d.ts +0 -22
- package/dist/shared/logger/ConsoleTransport.d.ts.map +0 -1
- package/dist/shared/logger/LogManager.d.ts +0 -75
- package/dist/shared/logger/LogManager.d.ts.map +0 -1
- package/dist/shared/logger/Logger.d.ts +0 -86
- package/dist/shared/logger/Logger.d.ts.map +0 -1
- package/dist/shared/logger/index.d.ts +0 -42
- package/dist/shared/logger/index.d.ts.map +0 -1
- package/dist/shared/logger/types.d.ts +0 -70
- package/dist/shared/logger/types.d.ts.map +0 -1
- package/dist/shared/logger/useLogger.d.ts +0 -29
- package/dist/shared/logger/useLogger.d.ts.map +0 -1
- package/dist/shared/motion/AnimatedCounter.d.ts +0 -16
- package/dist/shared/motion/AnimatedCounter.d.ts.map +0 -1
- package/dist/shared/motion/MotionCard.d.ts +0 -18
- package/dist/shared/motion/MotionCard.d.ts.map +0 -1
- package/dist/shared/motion/MotionCollapse.d.ts +0 -14
- package/dist/shared/motion/MotionCollapse.d.ts.map +0 -1
- package/dist/shared/motion/MotionFade.d.ts +0 -16
- package/dist/shared/motion/MotionFade.d.ts.map +0 -1
- package/dist/shared/motion/MotionItem.d.ts +0 -25
- package/dist/shared/motion/MotionItem.d.ts.map +0 -1
- package/dist/shared/motion/MotionList.d.ts +0 -28
- package/dist/shared/motion/MotionList.d.ts.map +0 -1
- package/dist/shared/motion/MotionPage.d.ts +0 -18
- package/dist/shared/motion/MotionPage.d.ts.map +0 -1
- package/dist/shared/motion/index.d.ts +0 -9
- package/dist/shared/motion/index.d.ts.map +0 -1
- package/dist/shared/motion/variants.d.ts +0 -70
- package/dist/shared/motion/variants.d.ts.map +0 -1
- package/dist/shared/native/bridge.d.ts +0 -3
- package/dist/shared/native/bridge.d.ts.map +0 -1
- package/dist/shared/native/consumers.d.ts +0 -9
- package/dist/shared/native/consumers.d.ts.map +0 -1
- package/dist/shared/native/hooks/index.d.ts +0 -12
- package/dist/shared/native/hooks/index.d.ts.map +0 -1
- package/dist/shared/native/hooks/useAppState.d.ts +0 -3
- package/dist/shared/native/hooks/useAppState.d.ts.map +0 -1
- package/dist/shared/native/hooks/useDeviceInfo.d.ts +0 -3
- package/dist/shared/native/hooks/useDeviceInfo.d.ts.map +0 -1
- package/dist/shared/native/hooks/useHaptics.d.ts +0 -8
- package/dist/shared/native/hooks/useHaptics.d.ts.map +0 -1
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts +0 -6
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts.map +0 -1
- package/dist/shared/native/hooks/useNativePlatform.d.ts +0 -10
- package/dist/shared/native/hooks/useNativePlatform.d.ts.map +0 -1
- package/dist/shared/native/hooks/useSafeArea.d.ts +0 -3
- package/dist/shared/native/hooks/useSafeArea.d.ts.map +0 -1
- package/dist/shared/native/hooks/useStatusBar.d.ts +0 -6
- package/dist/shared/native/hooks/useStatusBar.d.ts.map +0 -1
- package/dist/shared/native/index.d.ts +0 -6
- package/dist/shared/native/index.d.ts.map +0 -1
- package/dist/shared/native/platform.d.ts +0 -7
- package/dist/shared/native/platform.d.ts.map +0 -1
- package/dist/shared/native/types.d.ts +0 -62
- package/dist/shared/native/types.d.ts.map +0 -1
- package/dist/shared/pages/AiPage.d.ts +0 -14
- package/dist/shared/pages/AiPage.d.ts.map +0 -1
- package/dist/shared/pages/LegalPage.d.ts +0 -19
- package/dist/shared/pages/LegalPage.d.ts.map +0 -1
- package/dist/shared/pages/SearchPage.d.ts +0 -28
- package/dist/shared/pages/SearchPage.d.ts.map +0 -1
- package/dist/shared/pages/index.d.ts +0 -7
- package/dist/shared/pages/index.d.ts.map +0 -1
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts +0 -28
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +0 -1
- package/dist/shared/plugins/context.d.ts +0 -65
- package/dist/shared/plugins/context.d.ts.map +0 -1
- package/dist/shared/plugins/disposable.d.ts +0 -17
- package/dist/shared/plugins/disposable.d.ts.map +0 -1
- package/dist/shared/plugins/event-bus.d.ts +0 -112
- package/dist/shared/plugins/event-bus.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +0 -75
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +0 -59
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/index.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +0 -71
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +0 -25
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/index.d.ts +0 -6
- package/dist/shared/plugins/iframe-mount/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +0 -83
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +0 -136
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts +0 -3
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/types.d.ts +0 -64
- package/dist/shared/plugins/iframe-mount/types.d.ts.map +0 -1
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +0 -31
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +0 -1
- package/dist/shared/plugins/index.d.ts +0 -41
- package/dist/shared/plugins/index.d.ts.map +0 -1
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +0 -68
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts.map +0 -1
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts +0 -16
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/index.d.ts +0 -15
- package/dist/shared/plugins/registries/index.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts +0 -3
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +0 -1
- package/dist/shared/plugins/runtime.d.ts +0 -68
- package/dist/shared/plugins/runtime.d.ts.map +0 -1
- package/dist/shared/plugins/types.d.ts +0 -228
- package/dist/shared/plugins/types.d.ts.map +0 -1
- package/dist/shared/providers/AppShellProvider.d.ts +0 -96
- package/dist/shared/providers/AppShellProvider.d.ts.map +0 -1
- package/dist/shared/providers/MicrofrontendProvider.d.ts +0 -41
- package/dist/shared/providers/MicrofrontendProvider.d.ts.map +0 -1
- package/dist/shared/providers/index.d.ts +0 -12
- package/dist/shared/providers/index.d.ts.map +0 -1
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts +0 -88
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts +0 -45
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +0 -1
- package/dist/shared/providers/shell/AppShellContext.d.ts +0 -19
- package/dist/shared/providers/shell/AppShellContext.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts +0 -121
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthProvider.d.ts +0 -58
- package/dist/shared/providers/shell/AuthProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts +0 -22
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts +0 -56
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts +0 -20
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts +0 -31
- package/dist/shared/providers/shell/GatewayRouter.d.ts.map +0 -1
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +0 -46
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts +0 -65
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +0 -25
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts +0 -15
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts +0 -22
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/PermissionProvider.d.ts +0 -227
- package/dist/shared/providers/shell/PermissionProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts +0 -8
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts +0 -15
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +0 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +0 -107
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +0 -1
- package/dist/shared/providers/shell/ShellUiProvider.d.ts +0 -47
- package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/ThemeProvider.d.ts +0 -29
- package/dist/shared/providers/shell/ThemeProvider.d.ts.map +0 -1
- package/dist/shared/providers/shell/index.d.ts +0 -45
- package/dist/shared/providers/shell/index.d.ts.map +0 -1
- package/dist/shared/shims/assert.d.ts +0 -19
- package/dist/shared/shims/assert.d.ts.map +0 -1
- package/dist/shared/shims/index.d.ts +0 -25
- package/dist/shared/shims/index.d.ts.map +0 -1
- package/dist/shared/shims/process.d.ts +0 -20
- package/dist/shared/shims/process.d.ts.map +0 -1
- package/dist/shared/shims/use-sync-external-store-shim.d.ts +0 -7
- package/dist/shared/shims/use-sync-external-store-shim.d.ts.map +0 -1
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts +0 -17
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +0 -1
- package/dist/shared/shims/util.d.ts +0 -135
- package/dist/shared/shims/util.d.ts.map +0 -1
- package/dist/shared/tours/TourInitializer.d.ts +0 -6
- package/dist/shared/tours/TourInitializer.d.ts.map +0 -1
- package/dist/shared/tours/TourPlayer.d.ts +0 -49
- package/dist/shared/tours/TourPlayer.d.ts.map +0 -1
- package/dist/shared/tours/TourPlayerProvider.d.ts +0 -26
- package/dist/shared/tours/TourPlayerProvider.d.ts.map +0 -1
- package/dist/shared/tours/TourSpotlight.d.ts +0 -8
- package/dist/shared/tours/TourSpotlight.d.ts.map +0 -1
- package/dist/shared/tours/TourTooltip.d.ts +0 -7
- package/dist/shared/tours/TourTooltip.d.ts.map +0 -1
- package/dist/shared/tours/TourTrigger.d.ts +0 -15
- package/dist/shared/tours/TourTrigger.d.ts.map +0 -1
- package/dist/shared/tours/ToursContext.d.ts +0 -42
- package/dist/shared/tours/ToursContext.d.ts.map +0 -1
- package/dist/shared/tours/index.d.ts +0 -53
- package/dist/shared/tours/index.d.ts.map +0 -1
- package/dist/shared/tours/progress.d.ts +0 -7
- package/dist/shared/tours/progress.d.ts.map +0 -1
- package/dist/shared/tours/routeCatalog.d.ts +0 -42
- package/dist/shared/tours/routeCatalog.d.ts.map +0 -1
- package/dist/shared/tours/types.d.ts +0 -215
- package/dist/shared/tours/types.d.ts.map +0 -1
- package/dist/shared/tours/useTourPlayer.d.ts +0 -38
- package/dist/shared/tours/useTourPlayer.d.ts.map +0 -1
- package/dist/shared/types/index.d.ts +0 -185
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/shared/utils/apollo.d.ts +0 -26
- package/dist/shared/utils/apollo.d.ts.map +0 -1
- package/dist/shared/utils/appHelpers.d.ts +0 -34
- package/dist/shared/utils/appHelpers.d.ts.map +0 -1
- package/dist/shared/utils/authCookie.d.ts +0 -35
- package/dist/shared/utils/authCookie.d.ts.map +0 -1
- package/dist/shared/utils/authErrorHandling.d.ts +0 -65
- package/dist/shared/utils/authErrorHandling.d.ts.map +0 -1
- package/dist/shared/utils/cn.d.ts +0 -6
- package/dist/shared/utils/cn.d.ts.map +0 -1
- package/dist/shared/utils/format.d.ts +0 -98
- package/dist/shared/utils/format.d.ts.map +0 -1
- package/dist/shared/utils/gatewayFetchRewrite.d.ts +0 -53
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +0 -1
- package/dist/shared/utils/index.d.ts +0 -26
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/lazyWithRetry.d.ts +0 -43
- package/dist/shared/utils/lazyWithRetry.d.ts.map +0 -1
- package/dist/shared/utils/loggerInit.d.ts +0 -15
- package/dist/shared/utils/loggerInit.d.ts.map +0 -1
- package/dist/shared/utils/mockData.d.ts +0 -40
- package/dist/shared/utils/mockData.d.ts.map +0 -1
- package/dist/shared/utils/profileScopedStorage.d.ts +0 -42
- package/dist/shared/utils/profileScopedStorage.d.ts.map +0 -1
- package/dist/shared/utils/quotaErrors.d.ts +0 -37
- package/dist/shared/utils/quotaErrors.d.ts.map +0 -1
- package/dist/shared/utils/tokens.d.ts +0 -166
- package/dist/shared/utils/tokens.d.ts.map +0 -1
- package/dist/shared-components.d.ts +0 -2
- package/dist/shared-config.d.ts +0 -2
- package/dist/shared-events.d.ts +0 -2
- package/dist/shared-feature-flags.d.ts +0 -2
- package/dist/shared-geography.d.ts +0 -2
- package/dist/shared-graphql.d.ts +0 -2
- package/dist/shared-hooks-shell.d.ts +0 -2
- package/dist/shared-hooks.d.ts +0 -2
- package/dist/shared-keyboard.d.ts +0 -2
- package/dist/shared-logger.d.ts +0 -2
- package/dist/shared-motion.d.ts +0 -2
- package/dist/shared-native.d.ts +0 -2
- package/dist/shared-pages.d.ts +0 -2
- package/dist/shared-plugins.d.ts +0 -2
- package/dist/shared-providers-shell.d.ts +0 -2
- package/dist/shared-providers.d.ts +0 -2
- package/dist/shared-shims.d.ts +0 -2
- package/dist/shared-tours.d.ts +0 -2
- package/dist/shared-types.d.ts +0 -1
- package/dist/shared-utils.d.ts +0 -2
- package/dist/shared.d.ts +0 -2
- package/dist/storage/SaveToFilesButton.d.ts +0 -55
- package/dist/storage/SaveToFilesButton.d.ts.map +0 -1
- package/dist/storage/SaveToFilesDialog.d.ts +0 -13
- package/dist/storage/SaveToFilesDialog.d.ts.map +0 -1
- package/dist/storage/StorageFolderPicker.d.ts +0 -23
- package/dist/storage/StorageFolderPicker.d.ts.map +0 -1
- package/dist/storage/index.d.ts +0 -10
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/uploadBlob.d.ts +0 -21
- package/dist/storage/uploadBlob.d.ts.map +0 -1
- package/dist/storage/useSaveToFiles.d.ts +0 -17
- package/dist/storage/useSaveToFiles.d.ts.map +0 -1
- package/dist/tag/TagBadge.d.ts +0 -17
- package/dist/tag/TagBadge.d.ts.map +0 -1
- package/dist/tag/TagsWidget.d.ts +0 -103
- package/dist/tag/TagsWidget.d.ts.map +0 -1
- package/dist/tag/index.d.ts +0 -3
- package/dist/tag/index.d.ts.map +0 -1
- package/dist/tag.d.ts +0 -2
- package/dist/ui/accordion.d.ts +0 -8
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -15
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/badge.d.ts +0 -10
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/button.d.ts +0 -12
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/card.d.ts +0 -9
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/checkbox.d.ts +0 -5
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/command.d.ts +0 -19
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts +0 -16
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -28
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/index.d.ts +0 -25
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/input.d.ts +0 -5
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/label.d.ts +0 -5
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/popover.d.ts +0 -8
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/scroll-area.d.ts +0 -6
- package/dist/ui/scroll-area.d.ts.map +0 -1
- package/dist/ui/select.d.ts +0 -13
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/separator.d.ts +0 -5
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.d.ts +0 -14
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/skeleton.d.ts +0 -4
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/sonner.d.ts +0 -4
- package/dist/ui/sonner.d.ts.map +0 -1
- package/dist/ui/spinner.d.ts +0 -6
- package/dist/ui/spinner.d.ts.map +0 -1
- package/dist/ui/switch.d.ts +0 -5
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/table.d.ts +0 -11
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/tabs.d.ts +0 -8
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/textarea.d.ts +0 -5
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts +0 -7
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui.d.ts +0 -2
- package/dist/utils/cn.d.ts +0 -15
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common formatting utilities for the microfrontend architecture
|
|
3
|
-
*
|
|
4
|
-
* These utilities provide consistent formatting across all microfrontends
|
|
5
|
-
* for dates, currencies, numbers, and text.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Format a number as currency
|
|
9
|
-
* @param amount - The amount to format
|
|
10
|
-
* @param currency - The currency code (default: 'USD')
|
|
11
|
-
* @param locale - The locale for formatting (default: 'en-US')
|
|
12
|
-
*/
|
|
13
|
-
export declare function formatCurrency(amount: number, currency?: string, locale?: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Format currency in compact notation (e.g., $1.5M, $500K)
|
|
16
|
-
*/
|
|
17
|
-
export declare function formatCurrencyCompact(amount: number, currency?: string): string;
|
|
18
|
-
type DateFormat = 'short' | 'medium' | 'long';
|
|
19
|
-
/**
|
|
20
|
-
* Format a date string or Date object
|
|
21
|
-
* @param date - The date to format
|
|
22
|
-
* @param format - The format style: 'short', 'medium', or 'long'
|
|
23
|
-
* @param locale - The locale for formatting (default: 'en-US')
|
|
24
|
-
*/
|
|
25
|
-
export declare function formatDate(date: string | Date, format?: DateFormat, locale?: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* Format a date with time
|
|
28
|
-
* @param date - The date to format
|
|
29
|
-
* @param includeSeconds - Whether to include seconds
|
|
30
|
-
* @param locale - The locale for formatting
|
|
31
|
-
*/
|
|
32
|
-
export declare function formatDateTime(date: string | Date, includeSeconds?: boolean, locale?: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Format a date as relative time (e.g., "5 minutes ago")
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatRelativeTime(date: string | Date): string;
|
|
37
|
-
/**
|
|
38
|
-
* Format duration between two dates
|
|
39
|
-
*/
|
|
40
|
-
export declare function formatDuration(startDate: string | Date, endDate: string | Date): string;
|
|
41
|
-
/**
|
|
42
|
-
* Format time only (e.g., "3:45 PM")
|
|
43
|
-
*/
|
|
44
|
-
export declare function formatTime(date: string | Date, locale?: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* Format a number with optional decimal places
|
|
47
|
-
*/
|
|
48
|
-
export declare function formatNumber(value: number, decimals?: number, locale?: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* Format a number as a percentage
|
|
51
|
-
*/
|
|
52
|
-
export declare function formatPercentage(value: number, decimals?: number): string;
|
|
53
|
-
/**
|
|
54
|
-
* Format bytes to human readable format
|
|
55
|
-
*/
|
|
56
|
-
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
57
|
-
/**
|
|
58
|
-
* Format a number in compact notation (e.g., 1.5K, 2.3M)
|
|
59
|
-
*/
|
|
60
|
-
export declare function formatCompactNumber(value: number, locale?: string): string;
|
|
61
|
-
/**
|
|
62
|
-
* Format a number with ordinal suffix (e.g., 1st, 2nd, 3rd)
|
|
63
|
-
*/
|
|
64
|
-
export declare function formatOrdinal(n: number): string;
|
|
65
|
-
/**
|
|
66
|
-
* Truncate text to a maximum length with ellipsis
|
|
67
|
-
*/
|
|
68
|
-
export declare function truncateText(text: string, maxLength: number, ellipsis?: string): string;
|
|
69
|
-
/**
|
|
70
|
-
* Capitalize the first letter of a string
|
|
71
|
-
*/
|
|
72
|
-
export declare function capitalizeFirst(text: string): string;
|
|
73
|
-
/**
|
|
74
|
-
* Capitalize the first letter of each word
|
|
75
|
-
*/
|
|
76
|
-
export declare function capitalizeWords(text: string): string;
|
|
77
|
-
/**
|
|
78
|
-
* Convert a string to slug format
|
|
79
|
-
*/
|
|
80
|
-
export declare function slugify(text: string): string;
|
|
81
|
-
/**
|
|
82
|
-
* Convert a string to camelCase
|
|
83
|
-
*/
|
|
84
|
-
export declare function toCamelCase(text: string): string;
|
|
85
|
-
/**
|
|
86
|
-
* Convert a string to PascalCase
|
|
87
|
-
*/
|
|
88
|
-
export declare function toPascalCase(text: string): string;
|
|
89
|
-
/**
|
|
90
|
-
* Pluralize a word based on count
|
|
91
|
-
*/
|
|
92
|
-
export declare function pluralize(word: string, count: number, plural?: string): string;
|
|
93
|
-
/**
|
|
94
|
-
* Format a list of items with Oxford comma
|
|
95
|
-
*/
|
|
96
|
-
export declare function formatList(items: string[], conjunction?: string): string;
|
|
97
|
-
export {};
|
|
98
|
-
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/format.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,EAAE,MAAM,SAAU,GAAG,MAAM,CAOzF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAQ9E;AAMD,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,GAAE,UAAqB,EAC7B,MAAM,SAAU,GACf,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,cAAc,UAAQ,EACtB,MAAM,SAAU,GACf,MAAM,CAaR;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAmB9D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAevF;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,SAAU,GAAG,MAAM,CAGxE;AAMD;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,EAAE,MAAM,SAAU,GAAG,MAAM,CAKlF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAM/D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAU,GAAG,MAAM,CAK3E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/C;AAMD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,MAAM,CAGtF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMpD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO5C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAG9E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,WAAW,SAAQ,GAAG,MAAM,CAKvE"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gateway fetch rewrite — patches global fetch to route GraphQL requests
|
|
3
|
-
* to the correct gateway domain based on the current hostname.
|
|
4
|
-
*
|
|
5
|
-
* This is necessary because the app shell serves from one domain (e.g., app.burdenoff.com)
|
|
6
|
-
* but GraphQL requests need to go to separate gateway domains
|
|
7
|
-
* (e.g., graphql.burdenoff.com, graphqlworkspaces.burdenoff.com).
|
|
8
|
-
*
|
|
9
|
-
* @module @burdenoff/fe-libs/shared/utils/gatewayFetchRewrite
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // In main.tsx, before React renders:
|
|
14
|
-
* import { installGatewayFetchRewrite, resolveGatewayBases } from "@burdenoff/fe-libs/shared/utils";
|
|
15
|
-
*
|
|
16
|
-
* const bases = resolveGatewayBases();
|
|
17
|
-
* installGatewayFetchRewrite(bases);
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export interface GatewayBases {
|
|
21
|
-
globalBase: string;
|
|
22
|
-
workspaceBase: string;
|
|
23
|
-
}
|
|
24
|
-
export interface GatewayBaseMapping {
|
|
25
|
-
/** Hostname (lowercase) */
|
|
26
|
-
hostname: string;
|
|
27
|
-
/** Gateway bases for this hostname */
|
|
28
|
-
bases: GatewayBases;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Resolve gateway base URLs from the current hostname.
|
|
32
|
-
*
|
|
33
|
-
* @param extraMappings - Additional hostname → gateway base mappings (e.g., for product-specific domains)
|
|
34
|
-
* @param localDefaults - Override defaults for local development
|
|
35
|
-
*/
|
|
36
|
-
export declare function resolveGatewayBases(extraMappings?: GatewayBaseMapping[], localDefaults?: GatewayBases): GatewayBases;
|
|
37
|
-
/**
|
|
38
|
-
* Install a global fetch interceptor that rewrites GraphQL request URLs
|
|
39
|
-
* to the correct gateway domain based on the URL path.
|
|
40
|
-
*
|
|
41
|
-
* - `/global/graphql` → globalBase
|
|
42
|
-
* - `/workspaces/graphql` → workspaceBase
|
|
43
|
-
*
|
|
44
|
-
* @param bases - Gateway base URLs to rewrite to
|
|
45
|
-
*/
|
|
46
|
-
export declare function installGatewayFetchRewrite(bases: GatewayBases): void;
|
|
47
|
-
/**
|
|
48
|
-
* Suppress verbose console output in production/non-debug environments.
|
|
49
|
-
*
|
|
50
|
-
* @param envFlag - Environment variable name to check for verbose mode (default: "VITE_VERBOSE_CONSOLE")
|
|
51
|
-
*/
|
|
52
|
-
export declare function suppressConsole(envFlag?: string): void;
|
|
53
|
-
//# sourceMappingURL=gatewayFetchRewrite.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gatewayFetchRewrite.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/gatewayFetchRewrite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,KAAK,EAAE,YAAY,CAAC;CACrB;AAmID;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,kBAAkB,EAAE,EACpC,aAAa,CAAC,EAAE,YAAY,GAC3B,YAAY,CAad;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAqHpE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,SAAyB,GAAG,IAAI,CAQtE"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
|
-
/**
|
|
3
|
-
* Utility function to merge Tailwind CSS classes
|
|
4
|
-
* Combines clsx for conditional classes and tailwind-merge for deduplication
|
|
5
|
-
*/
|
|
6
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
7
|
-
export { createApolloClient } from './apollo';
|
|
8
|
-
export type { CreateApolloClientOptions } from './apollo';
|
|
9
|
-
export { statusTokens, trendTokens, progressTokens, categoryTokens, alertTokens, getStatusTokens, getStatusBadgeTokens, getTrendTokens, getProgressTokens, getCategoryTokens, getAlertTokens, } from './tokens';
|
|
10
|
-
export type { SemanticStatus } from './tokens';
|
|
11
|
-
export { formatCurrency, formatCurrencyCompact, formatDate, formatDateTime, formatRelativeTime, formatDuration, formatTime, formatNumber, formatPercentage, formatBytes, formatCompactNumber, formatOrdinal, truncateText, capitalizeFirst, capitalizeWords, slugify, toCamelCase, toPascalCase, pluralize, formatList, } from './format';
|
|
12
|
-
export { lazyWithRetry, isChunkLoadError } from './lazyWithRetry';
|
|
13
|
-
export { resolveGatewayBases, installGatewayFetchRewrite, suppressConsole, } from './gatewayFetchRewrite';
|
|
14
|
-
export type { GatewayBases, GatewayBaseMapping } from './gatewayFetchRewrite';
|
|
15
|
-
export { clearAuthSessionStorage, hasAuthGraphQLErrors, isAuthGraphQLError, isAuthNetworkError, attemptTokenRefresh, redirectToLogin, } from './authErrorHandling';
|
|
16
|
-
export type { GraphQLErrorLike, TokenRefreshConfig } from './authErrorHandling';
|
|
17
|
-
export { AppInitializer, useShellNavigate, useRegistryHelpers } from './appHelpers';
|
|
18
|
-
export type { AppInitializerProps } from './appHelpers';
|
|
19
|
-
export { initializeLogger, setUserContext, clearUserContext } from './loggerInit';
|
|
20
|
-
export type { InitLoggerOptions } from './loggerInit';
|
|
21
|
-
export { setSSoCookie, getSSoCookie, clearSSoCookie, setShellSsoCookies, readShellSsoCookie, clearShellSsoCookies, isSharedSsoCookieDomain, isTrustedSsoOrigin, } from './authCookie';
|
|
22
|
-
export type { ShellSsoCookieData } from './authCookie';
|
|
23
|
-
export { createProfileScopedStorage, getProfileScopedKey } from './profileScopedStorage';
|
|
24
|
-
export { QUOTA_EXHAUSTED_CODE, isQuotaExhaustedError, extractQuotaExhaustedExtensions, buildQuotaExhaustedMessage, } from './quotaErrors';
|
|
25
|
-
export type { QuotaExhaustedExtensions } from './quotaErrors';
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,eAAe,EACf,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGzF,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,+BAA+B,EAC/B,0BAA0B,GAC3B,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lazy import wrapper with automatic retry for failed dynamic imports.
|
|
3
|
-
*
|
|
4
|
-
* When Vite's dev server restarts or dependency optimizer re-optimizes,
|
|
5
|
-
* cached module URLs become stale. This wrapper:
|
|
6
|
-
* 1. Catches the failed import
|
|
7
|
-
* 2. Retries with increasing delays (gives Vite time to rebuild/re-optimize)
|
|
8
|
-
* 3. On final failure, surfaces the error to the nearest boundary so the user
|
|
9
|
-
* can choose whether to reload.
|
|
10
|
-
*
|
|
11
|
-
* @module @burdenoff/fe-libs/shared/utils/lazyWithRetry
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { lazyWithRetry } from "@burdenoff/fe-libs/shared/utils";
|
|
16
|
-
*
|
|
17
|
-
* const MyComponent = lazyWithRetry(() =>
|
|
18
|
-
* import("./MyComponent").then(m => ({ default: m.MyComponent }))
|
|
19
|
-
* );
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Check if an error is a chunk/module load failure.
|
|
24
|
-
* Covers both production chunk errors and Vite dev server 504 errors.
|
|
25
|
-
*/
|
|
26
|
-
export declare function isChunkLoadError(error: unknown): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Wrap React.lazy() with automatic retry for chunk load failures.
|
|
29
|
-
*
|
|
30
|
-
* Retry strategy:
|
|
31
|
-
* - Attempt 1: immediate
|
|
32
|
-
* - Attempt 2: after retryDelay (1.5s default)
|
|
33
|
-
* - Attempt 3: after retryDelay * 2 (3s default)
|
|
34
|
-
* - If all fail: throw so the error boundary can offer an explicit reload action
|
|
35
|
-
*
|
|
36
|
-
* @param factory - The dynamic import factory function
|
|
37
|
-
* @param maxRetries - Maximum number of retries before page reload (default: 2)
|
|
38
|
-
* @param retryDelay - Base delay in ms between retries (default: 1500)
|
|
39
|
-
*/
|
|
40
|
-
export declare function lazyWithRetry<T extends React.ComponentType<any>>(factory: () => Promise<{
|
|
41
|
-
default: T;
|
|
42
|
-
}>, maxRetries?: number, retryDelay?: number): import('react').LazyExoticComponent<T>;
|
|
43
|
-
//# sourceMappingURL=lazyWithRetry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lazyWithRetry.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/lazyWithRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYxD;AAED;;;;;;;;;;;;GAYG;AAEH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EAC9D,OAAO,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,EACtC,UAAU,SAAI,EACd,UAAU,SAAO,0CA8BlB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Logger initialization utility for app shells.
|
|
3
|
-
*
|
|
4
|
-
* @module @burdenoff/fe-libs/shared/utils/loggerInit
|
|
5
|
-
*/
|
|
6
|
-
export interface InitLoggerOptions {
|
|
7
|
-
/** App name for global context (e.g., "workspaces", "fluidgrids") */
|
|
8
|
-
appName: string;
|
|
9
|
-
/** Environment variable name for debug flag (default: "VITE_LOG_LEVEL_DEBUG") */
|
|
10
|
-
debugEnvVar?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function initializeLogger(options: InitLoggerOptions): void;
|
|
13
|
-
export declare function setUserContext(userId: string, organizationId?: string, workspaceId?: string): void;
|
|
14
|
-
export declare function clearUserContext(): void;
|
|
15
|
-
//# sourceMappingURL=loggerInit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loggerInit.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/loggerInit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,QA4B1D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,QAI3F;AAED,wBAAgB,gBAAgB,SAQ/B"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock data for development and testing.
|
|
3
|
-
*
|
|
4
|
-
* Provides realistic mock entities (organizations, workspaces, projects, products, languages)
|
|
5
|
-
* that can be used in dev harnesses and storybook.
|
|
6
|
-
*
|
|
7
|
-
* @module @burdenoff/fe-libs/shared/utils/mockData
|
|
8
|
-
*/
|
|
9
|
-
export declare const mockProducts: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
icon: string;
|
|
13
|
-
color: string;
|
|
14
|
-
url: string;
|
|
15
|
-
}[];
|
|
16
|
-
export declare const mockLanguages: {
|
|
17
|
-
code: string;
|
|
18
|
-
name: string;
|
|
19
|
-
nativeName: string;
|
|
20
|
-
flag: string;
|
|
21
|
-
}[];
|
|
22
|
-
export declare const mockOrganizations: {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
slug: string;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
}[];
|
|
28
|
-
export declare const mockWorkspaces: {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
organizationId: string;
|
|
32
|
-
slug: string;
|
|
33
|
-
}[];
|
|
34
|
-
export declare const mockProjects: {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
workspaceId: string;
|
|
38
|
-
slug: string;
|
|
39
|
-
}[];
|
|
40
|
-
//# sourceMappingURL=mockData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/mockData.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,YAAY;;;;;;GAoCxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;GAuDzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;GAmB7B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;GA2B1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;GAwDxB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Profile-Scoped Storage — Zustand persist adapter + helpers
|
|
3
|
-
*
|
|
4
|
-
* Dynamically prefixes localStorage keys with the active profile ID
|
|
5
|
-
* so that persisted UI state (tabs, filters, selections, etc.) is
|
|
6
|
-
* isolated per user account.
|
|
7
|
-
*
|
|
8
|
-
* Key format: bf-p-{profileId}-{baseName}
|
|
9
|
-
*
|
|
10
|
-
* Includes one-time migration: on first read, if the scoped key is
|
|
11
|
-
* missing but the legacy (un-prefixed) key exists, the value is
|
|
12
|
-
* copied to the scoped key and the legacy key is removed.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Returns the profile-scoped localStorage key for the given base key.
|
|
16
|
-
* Falls back to the bare key if no profile is active.
|
|
17
|
-
*
|
|
18
|
-
* Use this for raw `localStorage.getItem` / `localStorage.setItem` calls
|
|
19
|
-
* outside of zustand stores.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getProfileScopedKey(key: string): string;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a zustand persist-compatible storage that scopes localStorage
|
|
24
|
-
* keys by the active user profile.
|
|
25
|
-
*
|
|
26
|
-
* Usage:
|
|
27
|
-
* ```ts
|
|
28
|
-
* import { createProfileScopedStorage } from '@burdenoff/fe-libs/shared/utils';
|
|
29
|
-
*
|
|
30
|
-
* const useMyStore = create(
|
|
31
|
-
* persist(
|
|
32
|
-
* (set) => ({ ... }),
|
|
33
|
-
* {
|
|
34
|
-
* name: 'my-store-key',
|
|
35
|
-
* storage: createProfileScopedStorage(),
|
|
36
|
-
* }
|
|
37
|
-
* )
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare function createProfileScopedStorage(): import('zustand/middleware').PersistStorage<unknown, unknown> | undefined;
|
|
42
|
-
//# sourceMappingURL=profileScopedStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profileScopedStorage.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/profileScopedStorage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAuCH;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AA+CD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,8EAEzC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quota error detection utilities.
|
|
3
|
-
*
|
|
4
|
-
* Backend services return HTTP 429 with GraphQL error code `QUOTA_EXHAUSTED`
|
|
5
|
-
* (and extension fields like `field`, `quotaName`, `limitLeft`) when an
|
|
6
|
-
* `@usage`-annotated mutation exceeds its quota. Apollo Client surfaces this
|
|
7
|
-
* shape through one of three paths depending on whether the response was
|
|
8
|
-
* parsed as a network error or as GraphQL errors.
|
|
9
|
-
*
|
|
10
|
-
* See: ~/products/dev/platform/context/usage/HOW_TO_INTEGRATE_USAGE_MICROFE.md
|
|
11
|
-
*/
|
|
12
|
-
export declare const QUOTA_EXHAUSTED_CODE: "QUOTA_EXHAUSTED";
|
|
13
|
-
export interface QuotaExhaustedExtensions {
|
|
14
|
-
code: typeof QUOTA_EXHAUSTED_CODE;
|
|
15
|
-
field?: string;
|
|
16
|
-
quotaName?: string;
|
|
17
|
-
limitLeft?: number;
|
|
18
|
-
limit?: number;
|
|
19
|
-
used?: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns true if the given error is a `QUOTA_EXHAUSTED` response from any
|
|
23
|
-
* gateway path Apollo may surface it through.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isQuotaExhaustedError(err: unknown): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Extracts the QUOTA_EXHAUSTED extensions object from any Apollo error shape,
|
|
28
|
-
* or returns `null` if the error is not a quota-exhausted error.
|
|
29
|
-
*/
|
|
30
|
-
export declare function extractQuotaExhaustedExtensions(err: unknown): QuotaExhaustedExtensions | null;
|
|
31
|
-
/**
|
|
32
|
-
* Build a user-facing toast message for a quota-exhausted error. Uses
|
|
33
|
-
* `quotaName` (preferred) or `field` from the extensions when available, and
|
|
34
|
-
* falls back to a generic message otherwise.
|
|
35
|
-
*/
|
|
36
|
-
export declare function buildQuotaExhaustedMessage(ext: QuotaExhaustedExtensions | null): string;
|
|
37
|
-
//# sourceMappingURL=quotaErrors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaErrors.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/quotaErrors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,oBAAoB,EAAG,iBAA0B,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAyBD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAE3D;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,OAAO,GAAG,wBAAwB,GAAG,IAAI,CAqB7F;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,wBAAwB,GAAG,IAAI,GAAG,MAAM,CAMvF"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Semantic Design Tokens Utility
|
|
3
|
-
*
|
|
4
|
-
* Provides TypeScript mappings for semantic design tokens.
|
|
5
|
-
* These map to CSS custom properties defined in fe-libs/tokens.
|
|
6
|
-
*
|
|
7
|
-
* Token Reference (from fe-libs/tokens):
|
|
8
|
-
* - Status: --color-status-{success|warning|error|info}-{bg|bg-subtle|text|border}
|
|
9
|
-
* - Action: --color-action-{primary|secondary|danger}-{bg|bgHover|text}
|
|
10
|
-
* - Text: --color-text-{primary|secondary|muted}
|
|
11
|
-
* - Background: --color-bg-{canvas|surface|elevated|sunken}
|
|
12
|
-
*
|
|
13
|
-
* The app shell (e.g., fluidgrids-app) defines the actual CSS variable values,
|
|
14
|
-
* allowing each product to have its own theme while microfrontends remain consistent.
|
|
15
|
-
*/
|
|
16
|
-
export type SemanticStatus = 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary';
|
|
17
|
-
interface StatusTokenClasses {
|
|
18
|
-
/** Background for subtle/badge usage */
|
|
19
|
-
bg: string;
|
|
20
|
-
/** Text color */
|
|
21
|
-
text: string;
|
|
22
|
-
/** Border color */
|
|
23
|
-
border: string;
|
|
24
|
-
/** Dot/indicator color (solid) */
|
|
25
|
-
dot: string;
|
|
26
|
-
/** Icon color */
|
|
27
|
-
icon: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Semantic status color classes using design tokens
|
|
31
|
-
* These map to CSS custom properties defined in the app shell
|
|
32
|
-
*/
|
|
33
|
-
export declare const statusTokens: Record<SemanticStatus, StatusTokenClasses>;
|
|
34
|
-
/**
|
|
35
|
-
* Get status token classes for a given status
|
|
36
|
-
*/
|
|
37
|
-
export declare function getStatusTokens(status: SemanticStatus): StatusTokenClasses;
|
|
38
|
-
/**
|
|
39
|
-
* Get combined badge classes for a status
|
|
40
|
-
*/
|
|
41
|
-
export declare function getStatusBadgeTokens(status: SemanticStatus): string;
|
|
42
|
-
export declare const trendTokens: {
|
|
43
|
-
readonly positive: {
|
|
44
|
-
readonly text: "text-status-success-text";
|
|
45
|
-
readonly icon: "text-status-success-bg";
|
|
46
|
-
};
|
|
47
|
-
readonly negative: {
|
|
48
|
-
readonly text: "text-status-error-text";
|
|
49
|
-
readonly icon: "text-status-error-bg";
|
|
50
|
-
};
|
|
51
|
-
readonly neutral: {
|
|
52
|
-
readonly text: "text-status-neutral-text";
|
|
53
|
-
readonly icon: "text-status-neutral-text";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Get trend indicator classes
|
|
58
|
-
*/
|
|
59
|
-
export declare function getTrendTokens(isPositive: boolean | null): {
|
|
60
|
-
readonly text: "text-status-success-text";
|
|
61
|
-
readonly icon: "text-status-success-bg";
|
|
62
|
-
} | {
|
|
63
|
-
readonly text: "text-status-error-text";
|
|
64
|
-
readonly icon: "text-status-error-bg";
|
|
65
|
-
} | {
|
|
66
|
-
readonly text: "text-status-neutral-text";
|
|
67
|
-
readonly icon: "text-status-neutral-text";
|
|
68
|
-
};
|
|
69
|
-
export declare const progressTokens: {
|
|
70
|
-
healthy: {
|
|
71
|
-
bar: string;
|
|
72
|
-
track: string;
|
|
73
|
-
};
|
|
74
|
-
warning: {
|
|
75
|
-
bar: string;
|
|
76
|
-
track: string;
|
|
77
|
-
};
|
|
78
|
-
critical: {
|
|
79
|
-
bar: string;
|
|
80
|
-
track: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Get progress bar colors based on percentage
|
|
85
|
-
*/
|
|
86
|
-
export declare function getProgressTokens(percentage: number): {
|
|
87
|
-
bar: string;
|
|
88
|
-
track: string;
|
|
89
|
-
};
|
|
90
|
-
export declare const categoryTokens: {
|
|
91
|
-
plan: {
|
|
92
|
-
bg: string;
|
|
93
|
-
text: string;
|
|
94
|
-
border: string;
|
|
95
|
-
};
|
|
96
|
-
addon: {
|
|
97
|
-
bg: string;
|
|
98
|
-
text: string;
|
|
99
|
-
border: string;
|
|
100
|
-
};
|
|
101
|
-
credits: {
|
|
102
|
-
bg: string;
|
|
103
|
-
text: string;
|
|
104
|
-
border: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Get category badge classes
|
|
109
|
-
*/
|
|
110
|
-
export declare function getCategoryTokens(category: 'plan' | 'addon' | 'credits'): {
|
|
111
|
-
bg: string;
|
|
112
|
-
text: string;
|
|
113
|
-
border: string;
|
|
114
|
-
} | {
|
|
115
|
-
bg: string;
|
|
116
|
-
text: string;
|
|
117
|
-
border: string;
|
|
118
|
-
} | {
|
|
119
|
-
bg: string;
|
|
120
|
-
text: string;
|
|
121
|
-
border: string;
|
|
122
|
-
};
|
|
123
|
-
export declare const alertTokens: {
|
|
124
|
-
success: {
|
|
125
|
-
container: string;
|
|
126
|
-
text: string;
|
|
127
|
-
icon: string;
|
|
128
|
-
};
|
|
129
|
-
warning: {
|
|
130
|
-
container: string;
|
|
131
|
-
text: string;
|
|
132
|
-
icon: string;
|
|
133
|
-
};
|
|
134
|
-
error: {
|
|
135
|
-
container: string;
|
|
136
|
-
text: string;
|
|
137
|
-
icon: string;
|
|
138
|
-
};
|
|
139
|
-
info: {
|
|
140
|
-
container: string;
|
|
141
|
-
text: string;
|
|
142
|
-
icon: string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Get alert/banner classes
|
|
147
|
-
*/
|
|
148
|
-
export declare function getAlertTokens(type: 'success' | 'warning' | 'error' | 'info'): {
|
|
149
|
-
container: string;
|
|
150
|
-
text: string;
|
|
151
|
-
icon: string;
|
|
152
|
-
} | {
|
|
153
|
-
container: string;
|
|
154
|
-
text: string;
|
|
155
|
-
icon: string;
|
|
156
|
-
} | {
|
|
157
|
-
container: string;
|
|
158
|
-
text: string;
|
|
159
|
-
icon: string;
|
|
160
|
-
} | {
|
|
161
|
-
container: string;
|
|
162
|
-
text: string;
|
|
163
|
-
icon: string;
|
|
164
|
-
};
|
|
165
|
-
export {};
|
|
166
|
-
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9F,UAAU,kBAAkB;IAC1B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,cAAc,EAAE,kBAAkB,CA2CnE,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,kBAAkB,CAE1E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAGnE;AAMD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAad,CAAC;AAEX;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;;;;;;;;;EAGxD;AAMD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAa1B,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM;;;EAInD;AAMD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgB1B,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;;;;;;;;;;;;EAEvE;AAMD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBvB,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM;;;;;;;;;;;;;;;;EAE5E"}
|
package/dist/shared-config.d.ts
DELETED
package/dist/shared-events.d.ts
DELETED
package/dist/shared-graphql.d.ts
DELETED
package/dist/shared-hooks.d.ts
DELETED
package/dist/shared-logger.d.ts
DELETED
package/dist/shared-motion.d.ts
DELETED
package/dist/shared-native.d.ts
DELETED
package/dist/shared-pages.d.ts
DELETED
package/dist/shared-plugins.d.ts
DELETED
package/dist/shared-shims.d.ts
DELETED
package/dist/shared-tours.d.ts
DELETED
package/dist/shared-types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
package/dist/shared-utils.d.ts
DELETED
package/dist/shared.d.ts
DELETED