@burdenoff/fe-libs 2026.510.126
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/README.md +65 -0
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/button/Button.d.ts +12 -0
- package/dist/button/Button.d.ts.map +1 -0
- package/dist/button/Button.js +39 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button.d.ts +2 -0
- package/dist/button.js +2 -0
- package/dist/chrome/AccountSwitcher.d.ts +51 -0
- package/dist/chrome/AccountSwitcher.d.ts.map +1 -0
- package/dist/chrome/AccountSwitcher.js +221 -0
- package/dist/chrome/AppShellLayout.d.ts +67 -0
- package/dist/chrome/AppShellLayout.d.ts.map +1 -0
- package/dist/chrome/AppShellLayout.js +32 -0
- package/dist/chrome/AutoBreadcrumbs.d.ts +22 -0
- package/dist/chrome/AutoBreadcrumbs.d.ts.map +1 -0
- package/dist/chrome/AutoBreadcrumbs.js +84 -0
- package/dist/chrome/Breadcrumb.d.ts +47 -0
- package/dist/chrome/Breadcrumb.d.ts.map +1 -0
- package/dist/chrome/Breadcrumbs.d.ts +69 -0
- package/dist/chrome/Breadcrumbs.d.ts.map +1 -0
- package/dist/chrome/Breadcrumbs.js +78 -0
- package/dist/chrome/CommandPalette.d.ts +64 -0
- package/dist/chrome/CommandPalette.d.ts.map +1 -0
- package/dist/chrome/CommandPalette.js +189 -0
- package/dist/chrome/ContextSwitcher.d.ts +48 -0
- package/dist/chrome/ContextSwitcher.d.ts.map +1 -0
- package/dist/chrome/ContextSwitcher.js +393 -0
- package/dist/chrome/DynamicFooter.d.ts +21 -0
- package/dist/chrome/DynamicFooter.d.ts.map +1 -0
- package/dist/chrome/DynamicFooter.js +142 -0
- package/dist/chrome/Footer.d.ts +128 -0
- package/dist/chrome/Footer.d.ts.map +1 -0
- package/dist/chrome/Footer.js +211 -0
- package/dist/chrome/FooterBar.d.ts +79 -0
- package/dist/chrome/FooterBar.d.ts.map +1 -0
- package/dist/chrome/FooterBar.js +84 -0
- package/dist/chrome/GeographySwitcher.d.ts +22 -0
- package/dist/chrome/GeographySwitcher.d.ts.map +1 -0
- package/dist/chrome/GeographySwitcher.js +162 -0
- package/dist/chrome/GlobalSearch.d.ts +49 -0
- package/dist/chrome/GlobalSearch.d.ts.map +1 -0
- package/dist/chrome/GlobalSearch.js +489 -0
- package/dist/chrome/HeaderBar.d.ts +108 -0
- package/dist/chrome/HeaderBar.d.ts.map +1 -0
- package/dist/chrome/HeaderBar.js +141 -0
- package/dist/chrome/LanguagePickerSheet.d.ts +22 -0
- package/dist/chrome/LanguagePickerSheet.d.ts.map +1 -0
- package/dist/chrome/LanguagePickerSheet.js +57 -0
- package/dist/chrome/LanguageSwitcher.d.ts +23 -0
- package/dist/chrome/LanguageSwitcher.d.ts.map +1 -0
- package/dist/chrome/LanguageSwitcher.js +94 -0
- package/dist/chrome/NavLink.d.ts +64 -0
- package/dist/chrome/NavLink.d.ts.map +1 -0
- package/dist/chrome/NavLink.js +46 -0
- package/dist/chrome/NotificationCenter.d.ts +16 -0
- package/dist/chrome/NotificationCenter.d.ts.map +1 -0
- package/dist/chrome/NotificationCenter.js +697 -0
- package/dist/chrome/PanelContainer.d.ts +8 -0
- package/dist/chrome/PanelContainer.d.ts.map +1 -0
- package/dist/chrome/PanelContainer.js +83 -0
- package/dist/chrome/PanelTabs.d.ts +19 -0
- package/dist/chrome/PanelTabs.d.ts.map +1 -0
- package/dist/chrome/PanelTabs.js +41 -0
- package/dist/chrome/PluginContextMenuTarget.d.ts +8 -0
- package/dist/chrome/PluginContextMenuTarget.d.ts.map +1 -0
- package/dist/chrome/PluginContextMenuTarget.js +71 -0
- package/dist/chrome/PluginFooterStrip.d.ts +3 -0
- package/dist/chrome/PluginFooterStrip.d.ts.map +1 -0
- package/dist/chrome/PluginFooterStrip.js +55 -0
- package/dist/chrome/PluginRoutes.d.ts +9 -0
- package/dist/chrome/PluginRoutes.d.ts.map +1 -0
- package/dist/chrome/PluginRoutes.js +19 -0
- package/dist/chrome/PluginSettingsPage.d.ts +3 -0
- package/dist/chrome/PluginSettingsPage.d.ts.map +1 -0
- package/dist/chrome/PluginSettingsPage.js +57 -0
- package/dist/chrome/PluginToolbar.d.ts +9 -0
- package/dist/chrome/PluginToolbar.d.ts.map +1 -0
- package/dist/chrome/PluginToolbar.js +40 -0
- package/dist/chrome/PluginWidgetGrid.d.ts +7 -0
- package/dist/chrome/PluginWidgetGrid.d.ts.map +1 -0
- package/dist/chrome/PluginWidgetGrid.js +37 -0
- package/dist/chrome/ProductPickerSheet.d.ts +24 -0
- package/dist/chrome/ProductPickerSheet.d.ts.map +1 -0
- package/dist/chrome/ProductPickerSheet.js +75 -0
- package/dist/chrome/ProductSideNav.d.ts +22 -0
- package/dist/chrome/ProductSideNav.d.ts.map +1 -0
- package/dist/chrome/ProductSideNav.js +51 -0
- package/dist/chrome/ProductSwitcher.d.ts +29 -0
- package/dist/chrome/ProductSwitcher.d.ts.map +1 -0
- package/dist/chrome/ProductSwitcher.js +86 -0
- package/dist/chrome/ProfileSwitcher.d.ts +49 -0
- package/dist/chrome/ProfileSwitcher.d.ts.map +1 -0
- package/dist/chrome/ProfileSwitcher.js +226 -0
- package/dist/chrome/ShortcutHelpDialog.d.ts +33 -0
- package/dist/chrome/ShortcutHelpDialog.d.ts.map +1 -0
- package/dist/chrome/ShortcutHelpDialog.js +122 -0
- package/dist/chrome/SideNavigation.d.ts +85 -0
- package/dist/chrome/SideNavigation.d.ts.map +1 -0
- package/dist/chrome/SideNavigation.js +320 -0
- package/dist/chrome/Sidebar.d.ts +108 -0
- package/dist/chrome/Sidebar.d.ts.map +1 -0
- package/dist/chrome/Sidebar.js +104 -0
- package/dist/chrome/StatusBar.d.ts +3 -0
- package/dist/chrome/StatusBar.d.ts.map +1 -0
- package/dist/chrome/StatusBar.js +55 -0
- package/dist/chrome/Tabs.d.ts +74 -0
- package/dist/chrome/Tabs.d.ts.map +1 -0
- package/dist/chrome/Tabs.js +55 -0
- package/dist/chrome/index.d.ts +108 -0
- package/dist/chrome/index.d.ts.map +1 -0
- package/dist/chrome.d.ts +2 -0
- package/dist/chrome.js +34 -0
- package/dist/config/eslint.config.d.ts +12 -0
- package/dist/config/eslint.config.d.ts.map +1 -0
- package/dist/config/index.d.ts +19 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/prettier.config.d.ts +7 -0
- package/dist/config/prettier.config.d.ts.map +1 -0
- package/dist/form/Checkbox.d.ts +60 -0
- package/dist/form/Checkbox.d.ts.map +1 -0
- package/dist/form/Checkbox.js +18 -0
- package/dist/form/Form.d.ts +114 -0
- package/dist/form/Form.d.ts.map +1 -0
- package/dist/form/Form.js +32 -0
- package/dist/form/FormDescription.d.ts +33 -0
- package/dist/form/FormDescription.d.ts.map +1 -0
- package/dist/form/FormDescription.js +17 -0
- package/dist/form/FormField.d.ts +96 -0
- package/dist/form/FormField.d.ts.map +1 -0
- package/dist/form/FormField.js +50 -0
- package/dist/form/FormLabel.d.ts +41 -0
- package/dist/form/FormLabel.d.ts.map +1 -0
- package/dist/form/FormLabel.js +24 -0
- package/dist/form/FormMessage.d.ts +35 -0
- package/dist/form/FormMessage.d.ts.map +1 -0
- package/dist/form/FormMessage.js +20 -0
- package/dist/form/Input.d.ts +43 -0
- package/dist/form/Input.d.ts.map +1 -0
- package/dist/form/Input.js +13 -0
- package/dist/form/Radio.d.ts +99 -0
- package/dist/form/Radio.d.ts.map +1 -0
- package/dist/form/Radio.js +24 -0
- package/dist/form/Select.d.ts +101 -0
- package/dist/form/Select.d.ts.map +1 -0
- package/dist/form/Select.js +69 -0
- package/dist/form/Textarea.d.ts +50 -0
- package/dist/form/Textarea.d.ts.map +1 -0
- package/dist/form/Textarea.js +12 -0
- package/dist/form/index.d.ts +24 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form.d.ts +2 -0
- package/dist/form.js +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +8 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +51 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +91 -0
- package/dist/node_modules/bail/index.js +6 -0
- package/dist/node_modules/comma-separated-tokens/index.js +7 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +5 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +40 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +253 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +36 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +90 -0
- package/dist/node_modules/is-plain-obj/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +557 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +103 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +56 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +18 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +59 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +35 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +11 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +108 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +24 -0
- package/dist/node_modules/micromark/lib/constructs.js +80 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +177 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +34 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +102 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +25 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +86 -0
- package/dist/node_modules/micromark/lib/parse.js +29 -0
- package/dist/node_modules/micromark/lib/postprocess.js +8 -0
- package/dist/node_modules/micromark/lib/preprocess.js +32 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +114 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +38 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +29 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +89 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +47 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +60 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +67 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +141 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +100 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +158 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +78 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-factory-destination/index.js +26 -0
- package/dist/node_modules/micromark-factory-label/index.js +20 -0
- package/dist/node_modules/micromark-factory-space/index.js +14 -0
- package/dist/node_modules/micromark-factory-title/index.js +24 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +24 -0
- package/dist/node_modules/micromark-util-chunked/index.js +11 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +8 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +26 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +7 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +17 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +9 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +11 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +18 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +35 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +57 -0
- package/dist/node_modules/property-information/index.js +26 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +31 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +316 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +562 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +14 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +18 -0
- package/dist/node_modules/property-information/lib/util/info.js +9 -0
- package/dist/node_modules/property-information/lib/util/merge.js +9 -0
- package/dist/node_modules/property-information/lib/util/schema.js +9 -0
- package/dist/node_modules/property-information/lib/util/types.js +16 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +15 -0
- package/dist/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/node_modules/react-error-boundary/dist/react-error-boundary.js +58 -0
- package/dist/node_modules/react-markdown/lib/index.js +140 -0
- package/dist/node_modules/remark-parse/lib/index.js +16 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +19 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +18 -0
- package/dist/node_modules/style-to-object/cjs/index.js +23 -0
- package/dist/node_modules/trim-lines/index.js +21 -0
- package/dist/node_modules/trough/lib/index.js +50 -0
- package/dist/node_modules/unified/lib/callable-instance.js +9 -0
- package/dist/node_modules/unified/lib/index.js +161 -0
- package/dist/node_modules/unist-util-is/lib/index.js +47 -0
- package/dist/node_modules/unist-util-position/lib/index.js +22 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +12 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +36 -0
- package/dist/node_modules/vfile/lib/index.js +89 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +99 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +31 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +6 -0
- package/dist/node_modules/vfile-message/lib/index.js +24 -0
- package/dist/node_modules/web-vitals/dist/web-vitals.js +238 -0
- package/dist/shared/components/AccessDenied.d.ts +117 -0
- package/dist/shared/components/AccessDenied.d.ts.map +1 -0
- package/dist/shared/components/AccessDenied.js +129 -0
- package/dist/shared/components/AppErrorBoundary.d.ts +19 -0
- package/dist/shared/components/AppErrorBoundary.d.ts.map +1 -0
- package/dist/shared/components/AppErrorBoundary.js +221 -0
- package/dist/shared/components/ConditionalShell.d.ts +17 -0
- package/dist/shared/components/ConditionalShell.d.ts.map +1 -0
- package/dist/shared/components/ConditionalShell.js +16 -0
- package/dist/shared/components/ContextConversationWidget.d.ts +6 -0
- package/dist/shared/components/ContextConversationWidget.d.ts.map +1 -0
- package/dist/shared/components/ContextConversationWidget.js +821 -0
- package/dist/shared/components/ErrorBoundary.d.ts +19 -0
- package/dist/shared/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/shared/components/ErrorBoundary.js +90 -0
- package/dist/shared/components/ErrorFallback.d.ts +3 -0
- package/dist/shared/components/ErrorFallback.d.ts.map +1 -0
- package/dist/shared/components/ErrorFallback.js +46 -0
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +7 -0
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -0
- package/dist/shared/components/KeyboardHelpDialogWrapper.js +14 -0
- package/dist/shared/components/LegalPage.d.ts +19 -0
- package/dist/shared/components/LegalPage.d.ts.map +1 -0
- package/dist/shared/components/LoadingFallback.d.ts +31 -0
- package/dist/shared/components/LoadingFallback.d.ts.map +1 -0
- package/dist/shared/components/LoadingFallback.js +46 -0
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts +20 -0
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +1 -0
- package/dist/shared/components/MicrofrontendErrorBoundary.js +19 -0
- package/dist/shared/components/PWAInstallBanner.d.ts +14 -0
- package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -0
- package/dist/shared/components/PWAInstallBanner.js +113 -0
- package/dist/shared/components/PermissionGate.d.ts +202 -0
- package/dist/shared/components/PermissionGate.d.ts.map +1 -0
- package/dist/shared/components/PermissionGate.js +41 -0
- package/dist/shared/components/ProductAccessGuard.d.ts +8 -0
- package/dist/shared/components/ProductAccessGuard.d.ts.map +1 -0
- package/dist/shared/components/QuotaMeter.d.ts +30 -0
- package/dist/shared/components/QuotaMeter.d.ts.map +1 -0
- package/dist/shared/components/QuotaMeter.js +47 -0
- package/dist/shared/components/RequireAuth.d.ts +76 -0
- package/dist/shared/components/RequireAuth.d.ts.map +1 -0
- package/dist/shared/components/RequireAuth.js +90 -0
- package/dist/shared/components/SSORedirectGuard.d.ts +56 -0
- package/dist/shared/components/SSORedirectGuard.d.ts.map +1 -0
- package/dist/shared/components/SSORedirectGuard.js +134 -0
- package/dist/shared/components/SearchPage.d.ts +24 -0
- package/dist/shared/components/SearchPage.d.ts.map +1 -0
- package/dist/shared/components/index.d.ts +25 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/config/authBridgeUrls.d.ts +27 -0
- package/dist/shared/config/authBridgeUrls.d.ts.map +1 -0
- package/dist/shared/config/authBridgeUrls.js +21 -0
- package/dist/shared/config/eslint.config.d.ts +12 -0
- package/dist/shared/config/eslint.config.d.ts.map +1 -0
- package/dist/shared/config/gatewayUrls.d.ts +34 -0
- package/dist/shared/config/gatewayUrls.d.ts.map +1 -0
- package/dist/shared/config/gatewayUrls.js +23 -0
- package/dist/shared/config/index.d.ts +71 -0
- package/dist/shared/config/index.d.ts.map +1 -0
- package/dist/shared/config/prettier.config.d.ts +7 -0
- package/dist/shared/config/prettier.config.d.ts.map +1 -0
- package/dist/shared/config/products.d.ts +42 -0
- package/dist/shared/config/products.d.ts.map +1 -0
- package/dist/shared/config/products.js +67 -0
- package/dist/shared/config/shellRoutes.d.ts +52 -0
- package/dist/shared/config/shellRoutes.d.ts.map +1 -0
- package/dist/shared/config/shellRoutes.js +179 -0
- package/dist/shared/events/index.d.ts +407 -0
- package/dist/shared/events/index.d.ts.map +1 -0
- package/dist/shared/events/metadata.d.ts +7 -0
- package/dist/shared/events/metadata.d.ts.map +1 -0
- package/dist/shared/events/metadata.js +22 -0
- package/dist/shared/events/sinks/BackendAuditSink.d.ts +18 -0
- package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +1 -0
- package/dist/shared/events/sinks/BackendAuditSink.js +50 -0
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts +10 -0
- package/dist/shared/events/sinks/BroadcastChannelSink.d.ts.map +1 -0
- package/dist/shared/events/sinks/BroadcastChannelSink.js +20 -0
- package/dist/shared/events/sinks/DevtoolsSink.d.ts +10 -0
- package/dist/shared/events/sinks/DevtoolsSink.d.ts.map +1 -0
- package/dist/shared/events/sinks/DevtoolsSink.js +18 -0
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts +14 -0
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts.map +1 -0
- package/dist/shared/events/sinks/OtelBrowserSink.js +92 -0
- package/dist/shared/events/sinks/RybbitSink.d.ts +18 -0
- package/dist/shared/events/sinks/RybbitSink.d.ts.map +1 -0
- package/dist/shared/events/sinks/RybbitSink.js +85 -0
- package/dist/shared/events/sinks/index.d.ts +6 -0
- package/dist/shared/events/sinks/index.d.ts.map +1 -0
- package/dist/shared/events/sinks/index.js +5 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +47 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +1 -0
- package/dist/shared/feature-flags/FeatureFlagProvider.js +110 -0
- package/dist/shared/feature-flags/FeatureGate.d.ts +27 -0
- package/dist/shared/feature-flags/FeatureGate.d.ts.map +1 -0
- package/dist/shared/feature-flags/FeatureGate.js +10 -0
- package/dist/shared/feature-flags/index.d.ts +38 -0
- package/dist/shared/feature-flags/index.d.ts.map +1 -0
- package/dist/shared/feature-flags/types.d.ts +121 -0
- package/dist/shared/feature-flags/types.d.ts.map +1 -0
- package/dist/shared/feature-flags/useFeatureFlag.d.ts +41 -0
- package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +1 -0
- package/dist/shared/feature-flags/useFeatureFlag.js +27 -0
- package/dist/shared/geography/GeographyProvider.d.ts +40 -0
- package/dist/shared/geography/GeographyProvider.d.ts.map +1 -0
- package/dist/shared/geography/GeographyProvider.js +171 -0
- package/dist/shared/geography/countries.d.ts +53 -0
- package/dist/shared/geography/countries.d.ts.map +1 -0
- package/dist/shared/geography/countries.js +2650 -0
- package/dist/shared/geography/index.d.ts +5 -0
- package/dist/shared/geography/index.d.ts.map +1 -0
- package/dist/shared/graphql/GatewayContext.d.ts +55 -0
- package/dist/shared/graphql/GatewayContext.d.ts.map +1 -0
- package/dist/shared/graphql/GatewayContext.js +28 -0
- package/dist/shared/graphql/client.d.ts +122 -0
- package/dist/shared/graphql/client.d.ts.map +1 -0
- package/dist/shared/graphql/client.js +308 -0
- package/dist/shared/graphql/fetch.d.ts +133 -0
- package/dist/shared/graphql/fetch.d.ts.map +1 -0
- package/dist/shared/graphql/fetch.js +323 -0
- package/dist/shared/graphql/index.d.ts +9 -0
- package/dist/shared/graphql/index.d.ts.map +1 -0
- package/dist/shared/graphql/links/sse-link.d.ts +48 -0
- package/dist/shared/graphql/links/sse-link.d.ts.map +1 -0
- package/dist/shared/graphql/links/sse-link.js +88 -0
- package/dist/shared/graphql/security.d.ts +13 -0
- package/dist/shared/graphql/security.d.ts.map +1 -0
- package/dist/shared/graphql/security.js +84 -0
- package/dist/shared/graphql/workspaceToken.d.ts +13 -0
- package/dist/shared/graphql/workspaceToken.d.ts.map +1 -0
- package/dist/shared/graphql/workspaceToken.js +33 -0
- package/dist/shared/help/HelpButton.d.ts +25 -0
- package/dist/shared/help/HelpButton.d.ts.map +1 -0
- package/dist/shared/help/HelpPanel.d.ts +10 -0
- package/dist/shared/help/HelpPanel.d.ts.map +1 -0
- package/dist/shared/help/HelpProvider.d.ts +40 -0
- package/dist/shared/help/HelpProvider.d.ts.map +1 -0
- package/dist/shared/help/index.d.ts +53 -0
- package/dist/shared/help/index.d.ts.map +1 -0
- package/dist/shared/help/types.d.ts +159 -0
- package/dist/shared/help/types.d.ts.map +1 -0
- package/dist/shared/hooks/index.d.ts +30 -0
- package/dist/shared/hooks/index.d.ts.map +1 -0
- package/dist/shared/hooks/shell/index.d.ts +22 -0
- package/dist/shared/hooks/shell/index.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts +50 -0
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts +23 -0
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useFooterRegistry.js +16 -0
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +103 -0
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useGlobalSearch.js +232 -0
- package/dist/shared/hooks/shell/useLanguages.d.ts +36 -0
- package/dist/shared/hooks/shell/useLanguages.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useLanguages.js +165 -0
- package/dist/shared/hooks/shell/useNavRegistry.d.ts +25 -0
- package/dist/shared/hooks/shell/useNavRegistry.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useNavRegistry.js +10 -0
- package/dist/shared/hooks/shell/useProductAccess.d.ts +37 -0
- package/dist/shared/hooks/shell/useProductAccess.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useProducts.d.ts +30 -0
- package/dist/shared/hooks/shell/useProducts.d.ts.map +1 -0
- package/dist/shared/hooks/shell/useProducts.js +97 -0
- package/dist/shared/hooks/useAsync.d.ts +151 -0
- package/dist/shared/hooks/useAsync.d.ts.map +1 -0
- package/dist/shared/hooks/useAsync.js +39 -0
- package/dist/shared/hooks/useBreakpoint.d.ts +83 -0
- package/dist/shared/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/shared/hooks/useBreakpoint.js +32 -0
- package/dist/shared/hooks/useCopyToClipboard.d.ts +72 -0
- package/dist/shared/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/shared/hooks/useCopyToClipboard.js +26 -0
- package/dist/shared/hooks/useDebounce.d.ts +26 -0
- package/dist/shared/hooks/useDebounce.d.ts.map +1 -0
- package/dist/shared/hooks/useDebounce.js +15 -0
- package/dist/shared/hooks/useHasAnimated.d.ts +10 -0
- package/dist/shared/hooks/useHasAnimated.d.ts.map +1 -0
- package/dist/shared/hooks/useHasAnimated.js +16 -0
- package/dist/shared/hooks/useKeyPress.d.ts +116 -0
- package/dist/shared/hooks/useKeyPress.d.ts.map +1 -0
- package/dist/shared/hooks/useKeyPress.js +31 -0
- package/dist/shared/hooks/useLocalStorage.d.ts +41 -0
- package/dist/shared/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/shared/hooks/useLocalStorage.js +33 -0
- package/dist/shared/hooks/useMediaQuery.d.ts +35 -0
- package/dist/shared/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/shared/hooks/useMediaQuery.js +14 -0
- package/dist/shared/hooks/useOnClickOutside.d.ts +76 -0
- package/dist/shared/hooks/useOnClickOutside.d.ts.map +1 -0
- package/dist/shared/hooks/useOnClickOutside.js +25 -0
- package/dist/shared/hooks/usePWA.d.ts +57 -0
- package/dist/shared/hooks/usePWA.d.ts.map +1 -0
- package/dist/shared/hooks/usePWA.js +68 -0
- package/dist/shared/hooks/usePrevious.d.ts +157 -0
- package/dist/shared/hooks/usePrevious.d.ts.map +1 -0
- package/dist/shared/hooks/usePrevious.js +22 -0
- package/dist/shared/hooks/useQuotaErrorToast.d.ts +50 -0
- package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +1 -0
- package/dist/shared/hooks/useQuotaErrorToast.js +32 -0
- package/dist/shared/hooks/useReferralAttribution.d.ts +2 -0
- package/dist/shared/hooks/useReferralAttribution.d.ts.map +1 -0
- package/dist/shared/hooks/useReferralAttribution.js +113 -0
- package/dist/shared/hooks/useSessionStorage.d.ts +44 -0
- package/dist/shared/hooks/useSessionStorage.d.ts.map +1 -0
- package/dist/shared/hooks/useSessionStorage.js +33 -0
- package/dist/shared/hooks/useThrottle.d.ts +37 -0
- package/dist/shared/hooks/useThrottle.d.ts.map +1 -0
- package/dist/shared/hooks/useThrottle.js +11 -0
- package/dist/shared/hooks/useToggle.d.ts +152 -0
- package/dist/shared/hooks/useToggle.d.ts.map +1 -0
- package/dist/shared/hooks/useToggle.js +38 -0
- package/dist/shared/index.d.ts +13 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/keyboard/globalShortcuts.d.ts +58 -0
- package/dist/shared/keyboard/globalShortcuts.d.ts.map +1 -0
- package/dist/shared/keyboard/globalShortcuts.js +79 -0
- package/dist/shared/keyboard/index.d.ts +40 -0
- package/dist/shared/keyboard/index.d.ts.map +1 -0
- package/dist/shared/keyboard/types.d.ts +85 -0
- package/dist/shared/keyboard/types.d.ts.map +1 -0
- package/dist/shared/keyboard/types.js +15 -0
- package/dist/shared/keyboard/useHotkeys.d.ts +21 -0
- package/dist/shared/keyboard/useHotkeys.d.ts.map +1 -0
- package/dist/shared/keyboard/useHotkeys.js +27 -0
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +94 -0
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/shared/keyboard/useKeyboardShortcuts.js +105 -0
- package/dist/shared/keyboard/useShortcutHelp.d.ts +27 -0
- package/dist/shared/keyboard/useShortcutHelp.d.ts.map +1 -0
- package/dist/shared/keyboard/useShortcutHelp.js +21 -0
- package/dist/shared/keyboard/utils.d.ts +72 -0
- package/dist/shared/keyboard/utils.d.ts.map +1 -0
- package/dist/shared/keyboard/utils.js +165 -0
- package/dist/shared/logger/ConsoleTransport.d.ts +22 -0
- package/dist/shared/logger/ConsoleTransport.d.ts.map +1 -0
- package/dist/shared/logger/ConsoleTransport.js +60 -0
- package/dist/shared/logger/LogManager.d.ts +75 -0
- package/dist/shared/logger/LogManager.d.ts.map +1 -0
- package/dist/shared/logger/LogManager.js +82 -0
- package/dist/shared/logger/Logger.d.ts +86 -0
- package/dist/shared/logger/Logger.d.ts.map +1 -0
- package/dist/shared/logger/Logger.js +100 -0
- package/dist/shared/logger/index.d.ts +42 -0
- package/dist/shared/logger/index.d.ts.map +1 -0
- package/dist/shared/logger/types.d.ts +70 -0
- package/dist/shared/logger/types.d.ts.map +1 -0
- package/dist/shared/logger/types.js +6 -0
- package/dist/shared/logger/useLogger.d.ts +29 -0
- package/dist/shared/logger/useLogger.d.ts.map +1 -0
- package/dist/shared/logger/useLogger.js +11 -0
- package/dist/shared/motion/AnimatedCounter.d.ts +16 -0
- package/dist/shared/motion/AnimatedCounter.d.ts.map +1 -0
- package/dist/shared/motion/AnimatedCounter.js +24 -0
- package/dist/shared/motion/MotionCard.d.ts +18 -0
- package/dist/shared/motion/MotionCard.d.ts.map +1 -0
- package/dist/shared/motion/MotionCard.js +38 -0
- package/dist/shared/motion/MotionCollapse.d.ts +14 -0
- package/dist/shared/motion/MotionCollapse.d.ts.map +1 -0
- package/dist/shared/motion/MotionCollapse.js +22 -0
- package/dist/shared/motion/MotionFade.d.ts +16 -0
- package/dist/shared/motion/MotionFade.d.ts.map +1 -0
- package/dist/shared/motion/MotionFade.js +22 -0
- package/dist/shared/motion/MotionItem.d.ts +25 -0
- package/dist/shared/motion/MotionItem.d.ts.map +1 -0
- package/dist/shared/motion/MotionItem.js +46 -0
- package/dist/shared/motion/MotionList.d.ts +28 -0
- package/dist/shared/motion/MotionList.d.ts.map +1 -0
- package/dist/shared/motion/MotionList.js +32 -0
- package/dist/shared/motion/MotionPage.d.ts +18 -0
- package/dist/shared/motion/MotionPage.d.ts.map +1 -0
- package/dist/shared/motion/MotionPage.js +36 -0
- package/dist/shared/motion/index.d.ts +9 -0
- package/dist/shared/motion/index.d.ts.map +1 -0
- package/dist/shared/motion/variants.d.ts +70 -0
- package/dist/shared/motion/variants.d.ts.map +1 -0
- package/dist/shared/motion/variants.js +267 -0
- package/dist/shared/native/bridge.d.ts +3 -0
- package/dist/shared/native/bridge.d.ts.map +1 -0
- package/dist/shared/native/bridge.js +6 -0
- package/dist/shared/native/consumers.d.ts +9 -0
- package/dist/shared/native/consumers.d.ts.map +1 -0
- package/dist/shared/native/consumers.js +49 -0
- package/dist/shared/native/hooks/index.d.ts +12 -0
- package/dist/shared/native/hooks/index.d.ts.map +1 -0
- package/dist/shared/native/hooks/index.js +7 -0
- package/dist/shared/native/hooks/useAppState.d.ts +3 -0
- package/dist/shared/native/hooks/useAppState.d.ts.map +1 -0
- package/dist/shared/native/hooks/useAppState.js +17 -0
- package/dist/shared/native/hooks/useDeviceInfo.d.ts +3 -0
- package/dist/shared/native/hooks/useDeviceInfo.d.ts.map +1 -0
- package/dist/shared/native/hooks/useDeviceInfo.js +23 -0
- package/dist/shared/native/hooks/useHaptics.d.ts +8 -0
- package/dist/shared/native/hooks/useHaptics.d.ts.map +1 -0
- package/dist/shared/native/hooks/useHaptics.js +12 -0
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts +6 -0
- package/dist/shared/native/hooks/useNativeKeyboard.d.ts.map +1 -0
- package/dist/shared/native/hooks/useNativeKeyboard.js +28 -0
- package/dist/shared/native/hooks/useNativePlatform.d.ts +10 -0
- package/dist/shared/native/hooks/useNativePlatform.d.ts.map +1 -0
- package/dist/shared/native/hooks/useNativePlatform.js +14 -0
- package/dist/shared/native/hooks/useSafeArea.d.ts +3 -0
- package/dist/shared/native/hooks/useSafeArea.d.ts.map +1 -0
- package/dist/shared/native/hooks/useSafeArea.js +35 -0
- package/dist/shared/native/hooks/useStatusBar.d.ts +6 -0
- package/dist/shared/native/hooks/useStatusBar.d.ts.map +1 -0
- package/dist/shared/native/hooks/useStatusBar.js +9 -0
- package/dist/shared/native/index.d.ts +6 -0
- package/dist/shared/native/index.d.ts.map +1 -0
- package/dist/shared/native/platform.d.ts +7 -0
- package/dist/shared/native/platform.d.ts.map +1 -0
- package/dist/shared/native/platform.js +20 -0
- package/dist/shared/native/types.d.ts +62 -0
- package/dist/shared/native/types.d.ts.map +1 -0
- package/dist/shared/pages/AiPage.d.ts +14 -0
- package/dist/shared/pages/AiPage.d.ts.map +1 -0
- package/dist/shared/pages/AiPage.js +78 -0
- package/dist/shared/pages/LegalPage.d.ts +19 -0
- package/dist/shared/pages/LegalPage.d.ts.map +1 -0
- package/dist/shared/pages/LegalPage.js +172 -0
- package/dist/shared/pages/SearchPage.d.ts +28 -0
- package/dist/shared/pages/SearchPage.d.ts.map +1 -0
- package/dist/shared/pages/SearchPage.js +1144 -0
- package/dist/shared/pages/index.d.ts +7 -0
- package/dist/shared/pages/index.d.ts.map +1 -0
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts +28 -0
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +1 -0
- package/dist/shared/plugins/PluginRuntimeProvider.js +78 -0
- package/dist/shared/plugins/context.d.ts +65 -0
- package/dist/shared/plugins/context.d.ts.map +1 -0
- package/dist/shared/plugins/context.js +84 -0
- package/dist/shared/plugins/disposable.d.ts +17 -0
- package/dist/shared/plugins/disposable.d.ts.map +1 -0
- package/dist/shared/plugins/disposable.js +16 -0
- package/dist/shared/plugins/event-bus.d.ts +112 -0
- package/dist/shared/plugins/event-bus.d.ts.map +1 -0
- package/dist/shared/plugins/event-bus.js +45 -0
- package/dist/shared/plugins/index.d.ts +40 -0
- package/dist/shared/plugins/index.d.ts.map +1 -0
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +68 -0
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts.map +1 -0
- package/dist/shared/plugins/panels/usePanelManagerStore.js +140 -0
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts +16 -0
- package/dist/shared/plugins/registries/createContributionRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/createContributionRegistry.js +15 -0
- package/dist/shared/plugins/registries/index.d.ts +15 -0
- package/dist/shared/plugins/registries/index.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useCommandRegistry.js +5 -0
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useContextMenuRegistry.js +5 -0
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/usePanelRegistry.js +5 -0
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useRouteRegistry.js +5 -0
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useSettingsRegistry.js +5 -0
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useStatusBarRegistry.js +5 -0
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useToolbarRegistry.js +5 -0
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts +3 -0
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +1 -0
- package/dist/shared/plugins/registries/useWidgetRegistry.js +5 -0
- package/dist/shared/plugins/runtime.d.ts +68 -0
- package/dist/shared/plugins/runtime.d.ts.map +1 -0
- package/dist/shared/plugins/runtime.js +148 -0
- package/dist/shared/plugins/types.d.ts +228 -0
- package/dist/shared/plugins/types.d.ts.map +1 -0
- package/dist/shared/providers/AppShellProvider.d.ts +96 -0
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -0
- package/dist/shared/providers/AppShellProvider.js +436 -0
- package/dist/shared/providers/MicrofrontendProvider.d.ts +41 -0
- package/dist/shared/providers/MicrofrontendProvider.d.ts.map +1 -0
- package/dist/shared/providers/index.d.ts +12 -0
- package/dist/shared/providers/index.d.ts.map +1 -0
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts +88 -0
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/ActiveContextProvider.js +181 -0
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts +45 -0
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +1 -0
- package/dist/shared/providers/shell/ActiveContextStorage.js +61 -0
- package/dist/shared/providers/shell/AppShellContext.d.ts +19 -0
- package/dist/shared/providers/shell/AppShellContext.d.ts.map +1 -0
- package/dist/shared/providers/shell/AppShellContext.js +20 -0
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts +121 -0
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +1 -0
- package/dist/shared/providers/shell/AuthBridgeClient.js +187 -0
- package/dist/shared/providers/shell/AuthProvider.d.ts +58 -0
- package/dist/shared/providers/shell/AuthProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/AuthProvider.js +391 -0
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts +22 -0
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/AuthTokenProvider.js +125 -0
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts +56 -0
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/ContextManagerProvider.js +41 -0
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts +20 -0
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/FeatureFlagsProvider.js +58 -0
- package/dist/shared/providers/shell/GatewayRouter.d.ts +31 -0
- package/dist/shared/providers/shell/GatewayRouter.d.ts.map +1 -0
- package/dist/shared/providers/shell/GatewayRouter.js +27 -0
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +46 -0
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/GlobalUiProvider.js +99 -0
- package/dist/shared/providers/shell/I18nProvider.d.ts +65 -0
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/I18nProvider.js +149 -0
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +25 -0
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/MultiGatewayProvider.js +146 -0
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts +15 -0
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/ObservabilityProvider.js +35 -0
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts +22 -0
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/PageConversationContextProvider.js +68 -0
- package/dist/shared/providers/shell/PermissionProvider.d.ts +227 -0
- package/dist/shared/providers/shell/PermissionProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/PermissionProvider.js +173 -0
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts +8 -0
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +1 -0
- package/dist/shared/providers/shell/ProfileGeographyBridge.js +14 -0
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts +15 -0
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +1 -0
- package/dist/shared/providers/shell/ProfileI18nBridge.js +57 -0
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +107 -0
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -0
- package/dist/shared/providers/shell/ProfileStorageManager.js +184 -0
- package/dist/shared/providers/shell/ShellUiProvider.d.ts +47 -0
- package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/ShellUiProvider.js +89 -0
- package/dist/shared/providers/shell/ThemeProvider.d.ts +29 -0
- package/dist/shared/providers/shell/ThemeProvider.d.ts.map +1 -0
- package/dist/shared/providers/shell/ThemeProvider.js +68 -0
- package/dist/shared/providers/shell/index.d.ts +45 -0
- package/dist/shared/providers/shell/index.d.ts.map +1 -0
- package/dist/shared/shims/assert.d.ts +19 -0
- package/dist/shared/shims/assert.d.ts.map +1 -0
- package/dist/shared/shims/assert.js +15 -0
- package/dist/shared/shims/index.d.ts +25 -0
- package/dist/shared/shims/index.d.ts.map +1 -0
- package/dist/shared/shims/process.d.ts +20 -0
- package/dist/shared/shims/process.d.ts.map +1 -0
- package/dist/shared/shims/process.js +13 -0
- package/dist/shared/shims/use-sync-external-store-shim.d.ts +7 -0
- package/dist/shared/shims/use-sync-external-store-shim.d.ts.map +1 -0
- package/dist/shared/shims/use-sync-external-store-shim.js +2 -0
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts +17 -0
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +1 -0
- package/dist/shared/shims/use-sync-external-store-with-selector.js +39 -0
- package/dist/shared/shims/util.d.ts +135 -0
- package/dist/shared/shims/util.d.ts.map +1 -0
- package/dist/shared/shims/util.js +176 -0
- package/dist/shared/tours/TourInitializer.d.ts +6 -0
- package/dist/shared/tours/TourInitializer.d.ts.map +1 -0
- package/dist/shared/tours/TourInitializer.js +35 -0
- package/dist/shared/tours/TourPlayer.d.ts +49 -0
- package/dist/shared/tours/TourPlayer.d.ts.map +1 -0
- package/dist/shared/tours/TourPlayer.js +57 -0
- package/dist/shared/tours/TourPlayerProvider.d.ts +26 -0
- package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -0
- package/dist/shared/tours/TourPlayerProvider.js +120 -0
- package/dist/shared/tours/TourSpotlight.d.ts +8 -0
- package/dist/shared/tours/TourSpotlight.d.ts.map +1 -0
- package/dist/shared/tours/TourSpotlight.js +78 -0
- package/dist/shared/tours/TourTooltip.d.ts +7 -0
- package/dist/shared/tours/TourTooltip.d.ts.map +1 -0
- package/dist/shared/tours/TourTooltip.js +272 -0
- package/dist/shared/tours/TourTrigger.d.ts +6 -0
- package/dist/shared/tours/TourTrigger.d.ts.map +1 -0
- package/dist/shared/tours/TourTrigger.js +236 -0
- package/dist/shared/tours/ToursContext.d.ts +41 -0
- package/dist/shared/tours/ToursContext.d.ts.map +1 -0
- package/dist/shared/tours/ToursContext.js +443 -0
- package/dist/shared/tours/index.d.ts +49 -0
- package/dist/shared/tours/index.d.ts.map +1 -0
- package/dist/shared/tours/types.d.ts +215 -0
- package/dist/shared/tours/types.d.ts.map +1 -0
- package/dist/shared/tours/types.js +16 -0
- package/dist/shared/tours/useTourPlayer.d.ts +38 -0
- package/dist/shared/tours/useTourPlayer.d.ts.map +1 -0
- package/dist/shared/tours/useTourPlayer.js +238 -0
- package/dist/shared/types/index.d.ts +185 -0
- package/dist/shared/types/index.d.ts.map +1 -0
- package/dist/shared/utils/apollo.d.ts +13 -0
- package/dist/shared/utils/apollo.d.ts.map +1 -0
- package/dist/shared/utils/apollo.js +68 -0
- package/dist/shared/utils/appHelpers.d.ts +34 -0
- package/dist/shared/utils/appHelpers.d.ts.map +1 -0
- package/dist/shared/utils/appHelpers.js +54 -0
- package/dist/shared/utils/authCookie.d.ts +35 -0
- package/dist/shared/utils/authCookie.d.ts.map +1 -0
- package/dist/shared/utils/authCookie.js +86 -0
- package/dist/shared/utils/authErrorHandling.d.ts +65 -0
- package/dist/shared/utils/authErrorHandling.d.ts.map +1 -0
- package/dist/shared/utils/authErrorHandling.js +75 -0
- package/dist/shared/utils/cn.d.ts +6 -0
- package/dist/shared/utils/cn.d.ts.map +1 -0
- package/dist/shared/utils/format.d.ts +98 -0
- package/dist/shared/utils/format.d.ts.map +1 -0
- package/dist/shared/utils/format.js +135 -0
- package/dist/shared/utils/gatewayFetchRewrite.d.ts +53 -0
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +1 -0
- package/dist/shared/utils/gatewayFetchRewrite.js +130 -0
- package/dist/shared/utils/index.d.ts +26 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/lazyWithRetry.d.ts +43 -0
- package/dist/shared/utils/lazyWithRetry.d.ts.map +1 -0
- package/dist/shared/utils/lazyWithRetry.js +25 -0
- package/dist/shared/utils/loggerInit.d.ts +15 -0
- package/dist/shared/utils/loggerInit.d.ts.map +1 -0
- package/dist/shared/utils/loggerInit.js +44 -0
- package/dist/shared/utils/mockData.d.ts +40 -0
- package/dist/shared/utils/mockData.d.ts.map +1 -0
- package/dist/shared/utils/profileScopedStorage.d.ts +42 -0
- package/dist/shared/utils/profileScopedStorage.d.ts.map +1 -0
- package/dist/shared/utils/profileScopedStorage.js +55 -0
- package/dist/shared/utils/quotaErrors.d.ts +37 -0
- package/dist/shared/utils/quotaErrors.d.ts.map +1 -0
- package/dist/shared/utils/quotaErrors.js +21 -0
- package/dist/shared/utils/tokens.d.ts +166 -0
- package/dist/shared/utils/tokens.d.ts.map +1 -0
- package/dist/shared/utils/tokens.js +133 -0
- package/dist/shared-components.d.ts +2 -0
- package/dist/shared-components.js +15 -0
- package/dist/shared-config.d.ts +2 -0
- package/dist/shared-config.js +30 -0
- package/dist/shared-events.d.ts +2 -0
- package/dist/shared-events.js +132 -0
- package/dist/shared-feature-flags.d.ts +2 -0
- package/dist/shared-feature-flags.js +4 -0
- package/dist/shared-geography.d.ts +2 -0
- package/dist/shared-geography.js +3 -0
- package/dist/shared-graphql.d.ts +2 -0
- package/dist/shared-graphql.js +8 -0
- package/dist/shared-hooks-shell.d.ts +2 -0
- package/dist/shared-hooks-shell.js +15 -0
- package/dist/shared-hooks.d.ts +2 -0
- package/dist/shared-hooks.js +39 -0
- package/dist/shared-keyboard.d.ts +2 -0
- package/dist/shared-keyboard.js +7 -0
- package/dist/shared-logger.d.ts +2 -0
- package/dist/shared-logger.js +6 -0
- package/dist/shared-motion.d.ts +2 -0
- package/dist/shared-motion.js +9 -0
- package/dist/shared-native.d.ts +2 -0
- package/dist/shared-native.js +12 -0
- package/dist/shared-pages.d.ts +2 -0
- package/dist/shared-pages.js +4 -0
- package/dist/shared-plugins.d.ts +2 -0
- package/dist/shared-plugins.js +15 -0
- package/dist/shared-providers-shell.d.ts +2 -0
- package/dist/shared-providers-shell.js +25 -0
- package/dist/shared-providers.d.ts +2 -0
- package/dist/shared-providers.js +12 -0
- package/dist/shared-shims.d.ts +2 -0
- package/dist/shared-shims.js +6 -0
- package/dist/shared-tours.d.ts +2 -0
- package/dist/shared-tours.js +10 -0
- package/dist/shared-types.d.ts +1 -0
- package/dist/shared-types.js +0 -0
- package/dist/shared-utils.d.ts +2 -0
- package/dist/shared-utils.js +19 -0
- package/dist/shared.d.ts +2 -0
- package/dist/shared.js +103 -0
- package/dist/storage/StorageFolderPicker.d.ts +23 -0
- package/dist/storage/StorageFolderPicker.d.ts.map +1 -0
- package/dist/storage/index.d.ts +3 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/tag/TagBadge.d.ts +17 -0
- package/dist/tag/TagBadge.d.ts.map +1 -0
- package/dist/tag/TagBadge.js +51 -0
- package/dist/tag/TagsWidget.d.ts +103 -0
- package/dist/tag/TagsWidget.d.ts.map +1 -0
- package/dist/tag/TagsWidget.js +283 -0
- package/dist/tag/index.d.ts +3 -0
- package/dist/tag/index.d.ts.map +1 -0
- package/dist/tag.d.ts +2 -0
- package/dist/tag.js +3 -0
- package/dist/ui/accordion.d.ts +8 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +43 -0
- package/dist/ui/alert-dialog.d.ts +15 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +81 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +24 -0
- package/dist/ui/button.d.ts +12 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +45 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +42 -0
- package/dist/ui/checkbox.d.ts +5 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +20 -0
- package/dist/ui/command.d.ts +19 -0
- package/dist/ui/command.d.ts.map +1 -0
- package/dist/ui/command.js +85 -0
- package/dist/ui/dialog.d.ts +16 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +86 -0
- package/dist/ui/dropdown-menu.d.ts +28 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +72 -0
- package/dist/ui/index.d.ts +25 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/input.d.ts +5 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +13 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +14 -0
- package/dist/ui/popover.d.ts +8 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +35 -0
- package/dist/ui/scroll-area.d.ts +6 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/scroll-area.js +36 -0
- package/dist/ui/select.d.ts +13 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +69 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +16 -0
- package/dist/ui/sheet.d.ts +14 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +81 -0
- package/dist/ui/skeleton.d.ts +4 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +12 -0
- package/dist/ui/sonner.d.ts +4 -0
- package/dist/ui/sonner.d.ts.map +1 -0
- package/dist/ui/sonner.js +28 -0
- package/dist/ui/spinner.d.ts +6 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +18 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +19 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +57 -0
- package/dist/ui/tabs.d.ts +8 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +35 -0
- package/dist/ui/textarea.d.ts +5 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +12 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +14 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.js +25 -0
- package/dist/utils/cn.d.ts +15 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +8 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +13 -0
- package/package.json +376 -0
- package/shared/config/eslint.config.d.mts +10 -0
- package/shared/config/eslint.config.mjs +53 -0
- package/shared/config/prettier.config.d.mts +5 -0
- package/shared/config/prettier.config.mjs +18 -0
- package/shared/config/tsconfig.base.json +23 -0
- package/src/shared/shims/assert.ts +54 -0
- package/src/shared/shims/index.ts +27 -0
- package/src/shared/shims/process.ts +24 -0
- package/src/shared/shims/use-sync-external-store-shim.ts +15 -0
- package/src/shared/shims/use-sync-external-store-with-selector.ts +112 -0
- package/src/shared/shims/util.ts +229 -0
- package/src/shared/styles/app-shell.css +298 -0
- package/src/shared/styles/index.css +213 -0
- package/src/shared/tokens/build/brands/fluidgrids.css +6 -0
- package/src/shared/tokens/build/brands/healthybowl.css +6 -0
- package/src/shared/tokens/build/brands/tenant.css +6 -0
- package/src/shared/tokens/build/brands/vibecontrols.css +6 -0
- package/src/shared/tokens/build/brands/workspaces.css +6 -0
- package/src/shared/tokens/build/foundation.css +175 -0
- package/src/shared/tokens/build/semantic.css +301 -0
- package/src/shared/tokens/build/tailwind.preset.js +211 -0
- package/src/shared/tokens/tokens.css +22 -0
- package/src/vite/index.ts +49 -0
- package/src/vite/mfe.config.ts +176 -0
- package/src/vite/plugins.ts +311 -0
- package/src/vite/shell.config.ts +233 -0
- package/src/vite/types.ts +176 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useAuth as e } from "./AuthProvider.js";
|
|
2
|
+
import { useActiveContext as t } from "./ActiveContextProvider.js";
|
|
3
|
+
import { createContext as n, useContext as r, useMemo as i } from "react";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/shared/providers/shell/ContextManagerProvider.tsx
|
|
6
|
+
var o = n(null);
|
|
7
|
+
function s({ children: n }) {
|
|
8
|
+
let r = e(), s = t(), c = i(() => ({
|
|
9
|
+
userId: r.user?.id ?? null,
|
|
10
|
+
user: r.user,
|
|
11
|
+
accessToken: r.tokens?.accessToken ?? null,
|
|
12
|
+
workspaceToken: r.workspaceToken ?? null,
|
|
13
|
+
isAuthenticated: r.isAuthenticated,
|
|
14
|
+
activeProfileId: r.activeProfileId ?? null,
|
|
15
|
+
organizationId: s.organizationId,
|
|
16
|
+
workspaceId: s.workspaceId,
|
|
17
|
+
projectId: s.projectId,
|
|
18
|
+
tenantId: s.tenantId
|
|
19
|
+
}), [
|
|
20
|
+
r.user,
|
|
21
|
+
r.tokens,
|
|
22
|
+
r.workspaceToken,
|
|
23
|
+
r.isAuthenticated,
|
|
24
|
+
r.activeProfileId,
|
|
25
|
+
s.organizationId,
|
|
26
|
+
s.workspaceId,
|
|
27
|
+
s.projectId,
|
|
28
|
+
s.tenantId
|
|
29
|
+
]);
|
|
30
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
31
|
+
value: c,
|
|
32
|
+
children: n
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function c() {
|
|
36
|
+
let e = r(o);
|
|
37
|
+
if (!e) throw Error("useContextManager must be used within a ContextManagerProvider. Ensure ContextManagerProvider is placed after AuthProvider and ActiveContextProvider in the provider tree.");
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as ContextManagerProvider, c as useContextManager };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FeatureFlags {
|
|
3
|
+
[key: string]: boolean | string | number;
|
|
4
|
+
}
|
|
5
|
+
export interface FeatureFlagsContextValue {
|
|
6
|
+
flags: FeatureFlags;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isEnabled: (flag: string) => boolean;
|
|
9
|
+
getFlag: <T = boolean | string | number>(flag: string, defaultValue?: T) => T;
|
|
10
|
+
refreshFlags: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface FeatureFlagsProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
initialFlags?: FeatureFlags;
|
|
15
|
+
fetchFlags?: () => Promise<FeatureFlags>;
|
|
16
|
+
refreshInterval?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function FeatureFlagsProvider({ children, initialFlags, fetchFlags, refreshInterval, }: FeatureFlagsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function useFeatureFlags(): FeatureFlagsContextValue;
|
|
20
|
+
//# sourceMappingURL=FeatureFlagsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureFlagsProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/FeatureFlagsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAC9E,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAMD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,YAAiB,EACjB,UAAU,EACV,eAAe,GAChB,EAAE,yBAAyB,2CAqE3B;AAED,wBAAgB,eAAe,6BAQ9B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/providers/shell/FeatureFlagsProvider.tsx
|
|
4
|
+
var s = e(null);
|
|
5
|
+
function c({ children: e, initialFlags: n = {}, fetchFlags: c, refreshInterval: l }) {
|
|
6
|
+
let [u, d] = a(n), [f, p] = a(!1), m = t(async () => {
|
|
7
|
+
if (c) {
|
|
8
|
+
p(!0);
|
|
9
|
+
try {
|
|
10
|
+
d(await c());
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.error("Failed to fetch feature flags:", e);
|
|
13
|
+
} finally {
|
|
14
|
+
p(!1);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, [c]), h = t((e) => !!u[e], [u]), g = t((e, t) => {
|
|
18
|
+
let n = u[e];
|
|
19
|
+
return n === void 0 && t !== void 0 ? t : n;
|
|
20
|
+
}, [u]);
|
|
21
|
+
r(() => {
|
|
22
|
+
c && m();
|
|
23
|
+
}, [c, m]), r(() => {
|
|
24
|
+
if (!l || !c) return;
|
|
25
|
+
let e = setInterval(() => {
|
|
26
|
+
m();
|
|
27
|
+
}, l);
|
|
28
|
+
return () => clearInterval(e);
|
|
29
|
+
}, [
|
|
30
|
+
l,
|
|
31
|
+
c,
|
|
32
|
+
m
|
|
33
|
+
]);
|
|
34
|
+
let _ = i(() => ({
|
|
35
|
+
flags: u,
|
|
36
|
+
isLoading: f,
|
|
37
|
+
isEnabled: h,
|
|
38
|
+
getFlag: g,
|
|
39
|
+
refreshFlags: m
|
|
40
|
+
}), [
|
|
41
|
+
u,
|
|
42
|
+
f,
|
|
43
|
+
h,
|
|
44
|
+
g,
|
|
45
|
+
m
|
|
46
|
+
]);
|
|
47
|
+
return /* @__PURE__ */ o(s.Provider, {
|
|
48
|
+
value: _,
|
|
49
|
+
children: e
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function l() {
|
|
53
|
+
let e = n(s);
|
|
54
|
+
if (!e) throw Error("useFeatureFlags must be used within a FeatureFlagsProvider");
|
|
55
|
+
return e;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { c as FeatureFlagsProvider, l as useFeatureFlags };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Gateway } from '../../graphql';
|
|
3
|
+
export interface GatewayRouteProps {
|
|
4
|
+
/** Target gateway for this route */
|
|
5
|
+
gateway: Gateway;
|
|
6
|
+
/** Child components (microfrontend) */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* GatewayRoute - Wraps children with appropriate Apollo client.
|
|
11
|
+
* Use this to wrap microfrontend routes that need a specific gateway.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GatewayRoute({ gateway, children, }: GatewayRouteProps): ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* Get gateway for a microfrontend from a gateway map.
|
|
16
|
+
*
|
|
17
|
+
* @param key - Microfrontend key
|
|
18
|
+
* @param gatewayMap - Map of microfrontend keys to gateway types
|
|
19
|
+
* @param defaultGateway - Default gateway if key is not found
|
|
20
|
+
*/
|
|
21
|
+
export declare function getMicrofrontendGateway<T extends string>(key: T, gatewayMap: Record<T, Gateway>, defaultGateway?: Gateway): Gateway;
|
|
22
|
+
/**
|
|
23
|
+
* Higher-order component to wrap a component with gateway-specific Apollo client.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* const BillingWithGateway = withGateway('global')(BillingRoot);
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function withGateway(gateway: Gateway): <P extends object>(Component: React.ComponentType<P>) => (props: P) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=GatewayRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayRouter.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/GatewayRouter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,KAAK,OAAO,EAAoB,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,GAAG,YAAY,CAIlC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,GAAG,EAAE,CAAC,EACN,UAAU,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EAC9B,cAAc,GAAE,OAAqB,GACpC,OAAO,CAET;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,IACzB,CAAC,SAAS,MAAM,EAAE,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAC1B,OAAO,CAAC,6CAQnD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useGatewayClient as e } from "../../graphql/GatewayContext.js";
|
|
2
|
+
import "../../../shared-graphql.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import { ApolloProvider as n } from "@apollo/client/react";
|
|
6
|
+
//#region src/shared/providers/shell/GatewayRouter.tsx
|
|
7
|
+
function r({ gateway: r, children: i }) {
|
|
8
|
+
return /* @__PURE__ */ t(n, {
|
|
9
|
+
client: e(r),
|
|
10
|
+
children: i
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function i(e, t, n = "workspace") {
|
|
14
|
+
return t[e] ?? n;
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
return function(n) {
|
|
18
|
+
return function(i) {
|
|
19
|
+
return /* @__PURE__ */ t(r, {
|
|
20
|
+
gateway: e,
|
|
21
|
+
children: /* @__PURE__ */ t(n, { ...i })
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as GatewayRoute, i as getMicrofrontendGateway, a as withGateway };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ToastType = "info" | "success" | "warning" | "error";
|
|
3
|
+
export type NotificationType = "info" | "success" | "warning" | "error";
|
|
4
|
+
export interface Toast {
|
|
5
|
+
id: string;
|
|
6
|
+
type: ToastType;
|
|
7
|
+
message: string;
|
|
8
|
+
duration?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface Notification {
|
|
11
|
+
id: string;
|
|
12
|
+
type: NotificationType;
|
|
13
|
+
title: string;
|
|
14
|
+
message: string;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
read: boolean;
|
|
17
|
+
actionUrl?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GlobalUiContextValue {
|
|
20
|
+
toasts: Toast[];
|
|
21
|
+
notifications: Notification[];
|
|
22
|
+
isGlobalSearchOpen: boolean;
|
|
23
|
+
isKeyboardHelpOpen: boolean;
|
|
24
|
+
showToast: (message: string, type?: ToastType, duration?: number) => void;
|
|
25
|
+
dismissToast: (id: string) => void;
|
|
26
|
+
addNotification: (notification: Omit<Notification, "id" | "timestamp" | "read">) => void;
|
|
27
|
+
markNotificationRead: (id: string) => void;
|
|
28
|
+
markAllNotificationsRead: () => void;
|
|
29
|
+
clearNotifications: () => void;
|
|
30
|
+
openGlobalSearch: () => void;
|
|
31
|
+
closeGlobalSearch: () => void;
|
|
32
|
+
toggleGlobalSearch: () => void;
|
|
33
|
+
openKeyboardHelp: () => void;
|
|
34
|
+
closeKeyboardHelp: () => void;
|
|
35
|
+
toggleKeyboardHelp: () => void;
|
|
36
|
+
openSearch: () => void;
|
|
37
|
+
unreadCount: number;
|
|
38
|
+
}
|
|
39
|
+
export interface GlobalUiProviderProps {
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
maxToasts?: number;
|
|
42
|
+
defaultToastDuration?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare function GlobalUiProvider({ children, maxToasts, defaultToastDuration, }: GlobalUiProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function useGlobalUi(): GlobalUiContextValue;
|
|
46
|
+
//# sourceMappingURL=GlobalUiProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalUiProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/GlobalUiProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAExE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,EAAE,CACf,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,WAAW,GAAG,MAAM,CAAC,KAC1D,IAAI,CAAC;IACV,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAE/B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAa,EACb,oBAA2B,GAC5B,EAAE,qBAAqB,2CA2IvB;AAED,wBAAgB,WAAW,yBAM1B"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { createContext as e, useCallback as t, useContext as n, useMemo as r, useState as i } from "react";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/providers/shell/GlobalUiProvider.tsx
|
|
4
|
+
var o = e(null);
|
|
5
|
+
function s({ children: e, maxToasts: n = 5, defaultToastDuration: s = 5e3 }) {
|
|
6
|
+
let [c, l] = i([]), [u, d] = i([]), [f, p] = i(!1), [m, h] = i(!1), g = t((e, t = "info", r = s) => {
|
|
7
|
+
let i = `toast-${Date.now()}-${Math.random()}`, a = {
|
|
8
|
+
id: i,
|
|
9
|
+
type: t,
|
|
10
|
+
message: e,
|
|
11
|
+
duration: r
|
|
12
|
+
};
|
|
13
|
+
l((e) => [...e, a].slice(-n)), r > 0 && setTimeout(() => {
|
|
14
|
+
l((e) => e.filter((e) => e.id !== i));
|
|
15
|
+
}, r);
|
|
16
|
+
}, [n, s]), _ = t((e) => {
|
|
17
|
+
l((t) => t.filter((t) => t.id !== e));
|
|
18
|
+
}, []), v = t((e) => {
|
|
19
|
+
let t = {
|
|
20
|
+
...e,
|
|
21
|
+
id: `notification-${Date.now()}-${Math.random()}`,
|
|
22
|
+
timestamp: Date.now(),
|
|
23
|
+
read: !1
|
|
24
|
+
};
|
|
25
|
+
d((e) => [t, ...e]);
|
|
26
|
+
}, []), y = t((e) => {
|
|
27
|
+
d((t) => t.map((t) => t.id === e ? {
|
|
28
|
+
...t,
|
|
29
|
+
read: !0
|
|
30
|
+
} : t));
|
|
31
|
+
}, []), b = t(() => {
|
|
32
|
+
d((e) => e.map((e) => ({
|
|
33
|
+
...e,
|
|
34
|
+
read: !0
|
|
35
|
+
})));
|
|
36
|
+
}, []), x = t(() => {
|
|
37
|
+
d([]);
|
|
38
|
+
}, []), S = t(() => {
|
|
39
|
+
p(!0);
|
|
40
|
+
}, []), C = t(() => {
|
|
41
|
+
p(!1);
|
|
42
|
+
}, []), w = t(() => {
|
|
43
|
+
p((e) => !e);
|
|
44
|
+
}, []), T = t(() => {
|
|
45
|
+
h(!0);
|
|
46
|
+
}, []), E = t(() => {
|
|
47
|
+
h(!1);
|
|
48
|
+
}, []), D = t(() => {
|
|
49
|
+
h((e) => !e);
|
|
50
|
+
}, []), O = r(() => u.filter((e) => !e.read).length, [u]), k = r(() => ({
|
|
51
|
+
toasts: c,
|
|
52
|
+
notifications: u,
|
|
53
|
+
isGlobalSearchOpen: f,
|
|
54
|
+
isKeyboardHelpOpen: m,
|
|
55
|
+
showToast: g,
|
|
56
|
+
dismissToast: _,
|
|
57
|
+
addNotification: v,
|
|
58
|
+
markNotificationRead: y,
|
|
59
|
+
markAllNotificationsRead: b,
|
|
60
|
+
clearNotifications: x,
|
|
61
|
+
openGlobalSearch: S,
|
|
62
|
+
closeGlobalSearch: C,
|
|
63
|
+
toggleGlobalSearch: w,
|
|
64
|
+
openKeyboardHelp: T,
|
|
65
|
+
closeKeyboardHelp: E,
|
|
66
|
+
toggleKeyboardHelp: D,
|
|
67
|
+
openSearch: S,
|
|
68
|
+
unreadCount: O
|
|
69
|
+
}), [
|
|
70
|
+
c,
|
|
71
|
+
u,
|
|
72
|
+
f,
|
|
73
|
+
m,
|
|
74
|
+
g,
|
|
75
|
+
_,
|
|
76
|
+
v,
|
|
77
|
+
y,
|
|
78
|
+
b,
|
|
79
|
+
x,
|
|
80
|
+
S,
|
|
81
|
+
C,
|
|
82
|
+
w,
|
|
83
|
+
T,
|
|
84
|
+
E,
|
|
85
|
+
D,
|
|
86
|
+
O
|
|
87
|
+
]);
|
|
88
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
89
|
+
value: k,
|
|
90
|
+
children: e
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function c() {
|
|
94
|
+
let e = n(o);
|
|
95
|
+
if (!e) throw Error("useGlobalUi must be used within a GlobalUiProvider");
|
|
96
|
+
return e;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { s as GlobalUiProvider, c as useGlobalUi };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type Locale = "en" | "es" | "fr" | "de" | "ja" | "zh" | "ta" | "hi";
|
|
3
|
+
export interface TranslationDictionary {
|
|
4
|
+
[key: string]: string | TranslationDictionary;
|
|
5
|
+
}
|
|
6
|
+
export interface I18nContextValue {
|
|
7
|
+
locale: Locale;
|
|
8
|
+
translations: TranslationDictionary;
|
|
9
|
+
setLocale: (locale: Locale) => void;
|
|
10
|
+
t: (key: string, fallbackOrParams?: string | Record<string, string | number>, params?: Record<string, string | number>) => string;
|
|
11
|
+
/** Whether translations are currently being fetched */
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
/** Error message if translation fetch failed */
|
|
14
|
+
error: string | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Function to fetch translations for a specific locale.
|
|
18
|
+
* Used when dynamic API-based translations are enabled.
|
|
19
|
+
*/
|
|
20
|
+
export type FetchTranslationsFn = (locale: Locale) => Promise<TranslationDictionary>;
|
|
21
|
+
export interface I18nProviderProps {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
defaultLocale?: Locale;
|
|
24
|
+
/**
|
|
25
|
+
* Static translations (used as fallback or when fetchTranslations is not provided)
|
|
26
|
+
*/
|
|
27
|
+
translations?: Record<Locale, TranslationDictionary>;
|
|
28
|
+
storageKey?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Active profile ID for profile-scoped locale storage.
|
|
31
|
+
* When provided, locale is also read from / written to bf-p-{profileId}-locale.
|
|
32
|
+
* Profile-scoped locale takes priority over the global storageKey on init.
|
|
33
|
+
*/
|
|
34
|
+
profileId?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Optional function to fetch translations dynamically from an API.
|
|
37
|
+
* When provided, translations will be fetched on mount and locale change.
|
|
38
|
+
* Static translations prop is used as fallback during loading or on error.
|
|
39
|
+
*/
|
|
40
|
+
fetchTranslations?: FetchTranslationsFn;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show children during initial translation fetch.
|
|
43
|
+
* Default: true (show children with fallback translations while loading)
|
|
44
|
+
*/
|
|
45
|
+
showChildrenWhileLoading?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Custom loading component to show while fetching translations.
|
|
48
|
+
* Only used when showChildrenWhileLoading is false.
|
|
49
|
+
*/
|
|
50
|
+
loadingComponent?: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
export declare function I18nProvider({ children, defaultLocale, translations: staticTranslations, storageKey, profileId, fetchTranslations, showChildrenWhileLoading, loadingComponent, }: I18nProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare function useI18n(): I18nContextValue;
|
|
54
|
+
/**
|
|
55
|
+
* Clear the global translation cache.
|
|
56
|
+
* Call this to force a refetch of translations on the next component mount.
|
|
57
|
+
* Useful for development, testing, or when the user explicitly wants to refresh translations.
|
|
58
|
+
*/
|
|
59
|
+
export declare function clearTranslationCache(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Check if translations have been attempted for a locale.
|
|
62
|
+
* Useful for debugging.
|
|
63
|
+
*/
|
|
64
|
+
export declare function isTranslationAttempted(locale: Locale): boolean;
|
|
65
|
+
//# sourceMappingURL=I18nProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/I18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3E,MAAM,WAAW,qBAAqB;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,qBAAqB,CAAC;CAC/C;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,CAAC,EAAE,CACD,GAAG,EAAE,MAAM,EACX,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAAC;IACZ,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEpC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AA8HD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,aAAoB,EACpB,YAAY,EAAE,kBAAyC,EACvD,UAA+B,EAC/B,SAAS,EACT,iBAAiB,EACjB,wBAA+B,EAC/B,gBAAgB,GACjB,EAAE,iBAAiB,2CA2NnB;AAED,wBAAgB,OAAO,qBAMtB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE9D"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
2
|
+
import { Fragment as s, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/providers/shell/I18nProvider.tsx
|
|
4
|
+
var l = e(null), u = {
|
|
5
|
+
en: {},
|
|
6
|
+
es: {},
|
|
7
|
+
fr: {},
|
|
8
|
+
de: {},
|
|
9
|
+
ja: {},
|
|
10
|
+
zh: {},
|
|
11
|
+
ta: {},
|
|
12
|
+
hi: {}
|
|
13
|
+
}, d = {
|
|
14
|
+
attempted: /* @__PURE__ */ new Set(),
|
|
15
|
+
translations: {},
|
|
16
|
+
version: 0,
|
|
17
|
+
clear() {
|
|
18
|
+
this.attempted.clear(), this.translations = {}, this.version++;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function f(e, t, n) {
|
|
22
|
+
if (typeof window > "u") return n;
|
|
23
|
+
if (e) {
|
|
24
|
+
let t = localStorage.getItem(`bf-p-${e}-locale`);
|
|
25
|
+
if (t) return t;
|
|
26
|
+
}
|
|
27
|
+
return localStorage.getItem(t) || n;
|
|
28
|
+
}
|
|
29
|
+
function p(e, t) {
|
|
30
|
+
if (!e) return;
|
|
31
|
+
let n = t.split("."), r = e;
|
|
32
|
+
for (let e of n) if (typeof r == "object" && r && e in r) r = r[e];
|
|
33
|
+
else return;
|
|
34
|
+
return typeof r == "string" ? r : void 0;
|
|
35
|
+
}
|
|
36
|
+
function m(e) {
|
|
37
|
+
return typeof e == "object" && !!e;
|
|
38
|
+
}
|
|
39
|
+
function h(e, t) {
|
|
40
|
+
if (!e && !t) return {};
|
|
41
|
+
if (!e) return { ...t ?? {} };
|
|
42
|
+
if (!t) return { ...e };
|
|
43
|
+
let n = { ...e };
|
|
44
|
+
for (let [e, r] of Object.entries(t)) {
|
|
45
|
+
let t = n[e];
|
|
46
|
+
if (typeof r == "string") {
|
|
47
|
+
n[e] = r;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
n[e] = h(m(t) ? t : void 0, r);
|
|
51
|
+
}
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
function g({ children: e, defaultLocale: n = "en", translations: m = u, storageKey: g = "burdenoff-locale", profileId: _, fetchTranslations: v, showChildrenWhileLoading: y = !0, loadingComponent: b }) {
|
|
55
|
+
let [x, S] = o(() => f(_, g, n)), [C, w] = o({}), [T, E] = o(!!v), [D, O] = o(null), k = a(/* @__PURE__ */ new Set()), A = a(d.version), j = i(() => {
|
|
56
|
+
let e = { ...m };
|
|
57
|
+
for (let [t, n] of Object.entries(C)) if (n && Object.keys(n).length > 0) {
|
|
58
|
+
let r = t;
|
|
59
|
+
e[r] = h(m[r], n);
|
|
60
|
+
}
|
|
61
|
+
return e;
|
|
62
|
+
}, [m, C]), M = t(async (e) => {
|
|
63
|
+
if (v) {
|
|
64
|
+
if (A.current !== d.version && (k.current.clear(), A.current = d.version), d.attempted.has(e)) {
|
|
65
|
+
let t = d.translations[e];
|
|
66
|
+
t && Object.keys(t).length > 0 && w((n) => !n[e] || Object.keys(n[e]).length === 0 ? {
|
|
67
|
+
...n,
|
|
68
|
+
[e]: t
|
|
69
|
+
} : n);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (!k.current.has(e)) {
|
|
73
|
+
k.current.add(e), E(!0), O(null);
|
|
74
|
+
try {
|
|
75
|
+
let t = await v(e);
|
|
76
|
+
t && Object.keys(t).length > 0 && (d.attempted.add(e), d.translations[e] = t), w((n) => ({
|
|
77
|
+
...n,
|
|
78
|
+
[e]: t
|
|
79
|
+
}));
|
|
80
|
+
} catch (t) {
|
|
81
|
+
console.error(`[I18nProvider] Failed to fetch translations for ${e}:`, t), O(t instanceof Error ? t.message : "Failed to fetch translations");
|
|
82
|
+
} finally {
|
|
83
|
+
k.current.delete(e), E(!1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, [v]);
|
|
88
|
+
r(() => {
|
|
89
|
+
v && (d.attempted.has(x) && d.translations[x] && Object.keys(d.translations[x]).length > 0 || M(x));
|
|
90
|
+
}, [
|
|
91
|
+
v,
|
|
92
|
+
x,
|
|
93
|
+
M
|
|
94
|
+
]), r(() => {
|
|
95
|
+
let e = f(_, g, n);
|
|
96
|
+
S(e), document.documentElement.setAttribute("lang", e);
|
|
97
|
+
}, [
|
|
98
|
+
_,
|
|
99
|
+
g,
|
|
100
|
+
n
|
|
101
|
+
]);
|
|
102
|
+
let N = t((e) => {
|
|
103
|
+
S(e), localStorage.setItem(g, e), _ && localStorage.setItem(`bf-p-${_}-locale`, e), document.documentElement.setAttribute("lang", e);
|
|
104
|
+
}, [g, _]), P = t((e, t, r) => {
|
|
105
|
+
let i, a;
|
|
106
|
+
if (typeof t == "string") i = t, a = r;
|
|
107
|
+
else if (t && typeof t == "object") {
|
|
108
|
+
let { defaultValue: e, ...n } = t;
|
|
109
|
+
typeof e == "string" ? i = e : typeof e == "number" && (i = String(e)), a = n;
|
|
110
|
+
}
|
|
111
|
+
let o = p(j[x], e) ?? (x === n ? void 0 : p(j[n], e)) ?? (n === "en" ? void 0 : p(j.en, e)) ?? i ?? e;
|
|
112
|
+
return a ? Object.entries(a).reduce((e, [t, n]) => e.replace(`{{${t}}}`, String(n)), o) : o;
|
|
113
|
+
}, [
|
|
114
|
+
x,
|
|
115
|
+
j,
|
|
116
|
+
n
|
|
117
|
+
]), F = i(() => ({
|
|
118
|
+
locale: x,
|
|
119
|
+
translations: j[x] || {},
|
|
120
|
+
setLocale: N,
|
|
121
|
+
t: P,
|
|
122
|
+
isLoading: T,
|
|
123
|
+
error: D
|
|
124
|
+
}), [
|
|
125
|
+
x,
|
|
126
|
+
j,
|
|
127
|
+
N,
|
|
128
|
+
P,
|
|
129
|
+
T,
|
|
130
|
+
D
|
|
131
|
+
]);
|
|
132
|
+
return T && !y && b ? /* @__PURE__ */ c(s, { children: b }) : /* @__PURE__ */ c(l.Provider, {
|
|
133
|
+
value: F,
|
|
134
|
+
children: e
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function _() {
|
|
138
|
+
let e = n(l);
|
|
139
|
+
if (!e) throw Error("useI18n must be used within an I18nProvider");
|
|
140
|
+
return e;
|
|
141
|
+
}
|
|
142
|
+
function v() {
|
|
143
|
+
d.clear();
|
|
144
|
+
}
|
|
145
|
+
function y(e) {
|
|
146
|
+
return d.attempted.has(e);
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { g as I18nProvider, v as clearTranslationCache, y as isTranslationAttempted, _ as useI18n };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Gateway } from '../../graphql';
|
|
3
|
+
export interface MultiGatewayProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Base URL for workspace gateway */
|
|
6
|
+
workspaceBaseUrl?: string;
|
|
7
|
+
/** Base URL for global gateway */
|
|
8
|
+
globalBaseUrl?: string;
|
|
9
|
+
/** Organization ID getter for x-org-id header (global gateway) */
|
|
10
|
+
organizationId?: () => string | null;
|
|
11
|
+
/** Default gateway for the app (used by top-level ApolloProvider) */
|
|
12
|
+
defaultGateway?: Gateway;
|
|
13
|
+
/** Enable debug logging */
|
|
14
|
+
debug?: boolean;
|
|
15
|
+
/** Enable subscriptions */
|
|
16
|
+
enableSubscriptions?: boolean;
|
|
17
|
+
/** Callback when authentication error occurs */
|
|
18
|
+
onAuthError?: () => void;
|
|
19
|
+
/** Callback when network error occurs */
|
|
20
|
+
onNetworkError?: (error: Error) => void;
|
|
21
|
+
/** Callback to attempt token refresh on 401 */
|
|
22
|
+
onRefreshToken?: () => Promise<boolean>;
|
|
23
|
+
}
|
|
24
|
+
export declare function MultiGatewayProvider({ children, workspaceBaseUrl, globalBaseUrl, organizationId, defaultGateway, debug, enableSubscriptions, onAuthError, onNetworkError, onRefreshToken, }: MultiGatewayProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=MultiGatewayProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiGatewayProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/MultiGatewayProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhF,OAAO,EAGL,KAAK,OAAO,EAEb,MAAM,eAAe,CAAC;AAIvB,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACrC,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,cAA4B,EAC5B,KAAa,EACb,mBAA2B,EAC3B,WAAW,EACX,cAAc,EACd,cAAc,GACf,EAAE,yBAAyB,2CAmN3B"}
|