@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,443 @@
|
|
|
1
|
+
import { useGatewayClient as e } from "../graphql/GatewayContext.js";
|
|
2
|
+
import "../../shared-graphql.js";
|
|
3
|
+
import { useAuth as t } from "../providers/shell/AuthProvider.js";
|
|
4
|
+
import { useActiveContext as n } from "../providers/shell/ActiveContextProvider.js";
|
|
5
|
+
import { useAppShell as r } from "../providers/shell/AppShellContext.js";
|
|
6
|
+
import { useLogger as i } from "../logger/useLogger.js";
|
|
7
|
+
import "../../shared-logger.js";
|
|
8
|
+
import { detectDeviceType as a } from "./types.js";
|
|
9
|
+
import { createContext as o, useCallback as s, useContext as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
10
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
11
|
+
import { gql as m } from "@apollo/client/core";
|
|
12
|
+
import { useLocation as h } from "react-router-dom";
|
|
13
|
+
//#region src/shared/tours/ToursContext.tsx
|
|
14
|
+
var g = m`
|
|
15
|
+
fragment ToursCoreFields on Tour {
|
|
16
|
+
id
|
|
17
|
+
context {
|
|
18
|
+
workspaceId
|
|
19
|
+
}
|
|
20
|
+
name
|
|
21
|
+
slug
|
|
22
|
+
description
|
|
23
|
+
productId
|
|
24
|
+
moduleId
|
|
25
|
+
pageId
|
|
26
|
+
status
|
|
27
|
+
isActive
|
|
28
|
+
triggerType
|
|
29
|
+
triggerConfig
|
|
30
|
+
mobileConfig
|
|
31
|
+
tabletConfig
|
|
32
|
+
desktopConfig
|
|
33
|
+
priority
|
|
34
|
+
displayOrder
|
|
35
|
+
}
|
|
36
|
+
`, _ = m`
|
|
37
|
+
fragment ToursStepFields on Tour {
|
|
38
|
+
steps {
|
|
39
|
+
id
|
|
40
|
+
tourId
|
|
41
|
+
title
|
|
42
|
+
content
|
|
43
|
+
stepOrder
|
|
44
|
+
targetSelector
|
|
45
|
+
placement
|
|
46
|
+
targetSelectorMobile
|
|
47
|
+
targetSelectorTablet
|
|
48
|
+
targetSelectorDesktop
|
|
49
|
+
customData
|
|
50
|
+
actions
|
|
51
|
+
requireInteraction
|
|
52
|
+
waitForSelector
|
|
53
|
+
waitForEvent
|
|
54
|
+
waitForTimeout
|
|
55
|
+
skipConditions
|
|
56
|
+
media {
|
|
57
|
+
id
|
|
58
|
+
position
|
|
59
|
+
mediaId
|
|
60
|
+
media {
|
|
61
|
+
id
|
|
62
|
+
name
|
|
63
|
+
type
|
|
64
|
+
cdnUrl
|
|
65
|
+
mimeType
|
|
66
|
+
altText
|
|
67
|
+
caption
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`, v = m`
|
|
73
|
+
${g}
|
|
74
|
+
${_}
|
|
75
|
+
query GetToursForContext($context: TourContextInput!) {
|
|
76
|
+
toursForContext(context: $context) {
|
|
77
|
+
...ToursCoreFields
|
|
78
|
+
myProgress {
|
|
79
|
+
id
|
|
80
|
+
status
|
|
81
|
+
}
|
|
82
|
+
...ToursStepFields
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`, y = m`
|
|
86
|
+
${g}
|
|
87
|
+
${_}
|
|
88
|
+
query GetToursForContextFallback($context: TourContextInput!) {
|
|
89
|
+
toursForContext(context: $context) {
|
|
90
|
+
...ToursCoreFields
|
|
91
|
+
...ToursStepFields
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
function b(e) {
|
|
96
|
+
let t = e instanceof Error || typeof e == "object" && e && "message" in e && typeof e.message == "string" ? e.message : "";
|
|
97
|
+
return t.includes("myProgress") ? t.includes("Cannot query field") || t.includes("Unknown field") : !1;
|
|
98
|
+
}
|
|
99
|
+
var x = m`
|
|
100
|
+
mutation StartTour($tourId: ID!, $userId: ID!, $deviceType: DeviceType) {
|
|
101
|
+
startTour(tourId: $tourId, userId: $userId, deviceType: $deviceType) {
|
|
102
|
+
id
|
|
103
|
+
tourId
|
|
104
|
+
userId
|
|
105
|
+
status
|
|
106
|
+
currentStepId
|
|
107
|
+
completedSteps
|
|
108
|
+
startedAt
|
|
109
|
+
completedAt
|
|
110
|
+
lastViewedAt
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`, S = m`
|
|
114
|
+
mutation CompleteTour($tourId: ID!, $userId: ID!) {
|
|
115
|
+
completeTour(tourId: $tourId, userId: $userId) {
|
|
116
|
+
id
|
|
117
|
+
tourId
|
|
118
|
+
userId
|
|
119
|
+
status
|
|
120
|
+
currentStepId
|
|
121
|
+
completedSteps
|
|
122
|
+
startedAt
|
|
123
|
+
completedAt
|
|
124
|
+
lastViewedAt
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`, ee = m`
|
|
128
|
+
mutation SkipTour($tourId: ID!, $userId: ID!) {
|
|
129
|
+
skipTour(tourId: $tourId, userId: $userId) {
|
|
130
|
+
id
|
|
131
|
+
tourId
|
|
132
|
+
userId
|
|
133
|
+
status
|
|
134
|
+
currentStepId
|
|
135
|
+
completedSteps
|
|
136
|
+
startedAt
|
|
137
|
+
completedAt
|
|
138
|
+
lastViewedAt
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
`, te = m`
|
|
142
|
+
mutation CompleteStep($tourId: ID!, $stepId: ID!, $userId: ID!) {
|
|
143
|
+
completeStep(tourId: $tourId, stepId: $stepId, userId: $userId) {
|
|
144
|
+
id
|
|
145
|
+
tourId
|
|
146
|
+
userId
|
|
147
|
+
status
|
|
148
|
+
currentStepId
|
|
149
|
+
completedSteps
|
|
150
|
+
startedAt
|
|
151
|
+
completedAt
|
|
152
|
+
lastViewedAt
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
`, ne = m`
|
|
156
|
+
mutation TrackTourEvent($input: RecordTourAnalyticsInput!) {
|
|
157
|
+
trackTourEvent(input: $input) {
|
|
158
|
+
id
|
|
159
|
+
tourId
|
|
160
|
+
eventType
|
|
161
|
+
stepId
|
|
162
|
+
stepOrder
|
|
163
|
+
timestamp
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`, C = [
|
|
167
|
+
"The client has been stopped",
|
|
168
|
+
"QueryManager stopped",
|
|
169
|
+
"This Apollo Client has been destroyed",
|
|
170
|
+
"aborted"
|
|
171
|
+
];
|
|
172
|
+
function re(e) {
|
|
173
|
+
if (!(e instanceof Error)) return !1;
|
|
174
|
+
let t = e.message;
|
|
175
|
+
return e.name === "InvariantError" || t.startsWith("Invariant Violation") ? C.some((e) => t.includes(e)) : !1;
|
|
176
|
+
}
|
|
177
|
+
function w(e, t) {
|
|
178
|
+
let n = e.split("/").filter(Boolean);
|
|
179
|
+
return n.length === 0 ? t : n[0];
|
|
180
|
+
}
|
|
181
|
+
function T() {
|
|
182
|
+
let e = a();
|
|
183
|
+
return e === "mobile" ? "MOBILE" : e === "tablet" ? "TABLET" : "DESKTOP";
|
|
184
|
+
}
|
|
185
|
+
function E() {
|
|
186
|
+
let e = "bf-tour-session-id";
|
|
187
|
+
try {
|
|
188
|
+
let t = sessionStorage.getItem(e);
|
|
189
|
+
if (t) return t;
|
|
190
|
+
let n = typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `tour-session-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
191
|
+
return sessionStorage.setItem(e, n), n;
|
|
192
|
+
} catch {
|
|
193
|
+
return `tour-session-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
function D(e, t, n, r) {
|
|
197
|
+
let i = e.split("/").filter(Boolean), a = r ? r(e) : w(e, n);
|
|
198
|
+
return i.length === 0 ? {
|
|
199
|
+
moduleId: t,
|
|
200
|
+
pageId: a
|
|
201
|
+
} : i[0] === t ? {
|
|
202
|
+
moduleId: t,
|
|
203
|
+
pageId: i[1] ?? n
|
|
204
|
+
} : {
|
|
205
|
+
moduleId: i[0],
|
|
206
|
+
pageId: a
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
var O = o(null);
|
|
210
|
+
function k({ children: a, defaultPageId: o = "home", getPageIdFromPath: c, disabled: m = !1 }) {
|
|
211
|
+
let g = h(), _ = e("global"), { workspaceId: C } = n(), { user: w } = t(), { productSlug: k } = r(), A = i("ToursContext"), j = C ?? void 0, M = m || g.pathname.startsWith("/devportal"), { moduleId: N, pageId: P } = u(() => D(g.pathname, k, o, c), [
|
|
212
|
+
o,
|
|
213
|
+
c,
|
|
214
|
+
g.pathname,
|
|
215
|
+
k
|
|
216
|
+
]), [F, I] = f([]), [L, R] = f(!1), [z, B] = f(null), V = d(void 0), H = d(!1), U = d(!0), W = d(0), G = d(!0);
|
|
217
|
+
l(() => (U.current = !0, () => {
|
|
218
|
+
U.current = !1;
|
|
219
|
+
}), []);
|
|
220
|
+
let K = s(async (e = !1) => {
|
|
221
|
+
if (M) {
|
|
222
|
+
U.current && (I([]), R(!1), B(null));
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
if (!_) return;
|
|
226
|
+
let t = A.child("fetch", {
|
|
227
|
+
productSlug: k,
|
|
228
|
+
moduleId: N,
|
|
229
|
+
pageId: P,
|
|
230
|
+
workspaceId: j
|
|
231
|
+
}), n = T(), r = [
|
|
232
|
+
k,
|
|
233
|
+
N,
|
|
234
|
+
P,
|
|
235
|
+
j,
|
|
236
|
+
n,
|
|
237
|
+
w?.id ?? "anonymous"
|
|
238
|
+
].join("::");
|
|
239
|
+
if (!e && H.current && V.current === r) return;
|
|
240
|
+
U.current && (R(!0), B(null));
|
|
241
|
+
let i = ++W.current;
|
|
242
|
+
try {
|
|
243
|
+
let e = { context: {
|
|
244
|
+
productId: k,
|
|
245
|
+
moduleId: N,
|
|
246
|
+
pageId: P,
|
|
247
|
+
workspaceId: j,
|
|
248
|
+
deviceType: n
|
|
249
|
+
} }, a = "network-only", o, s = G.current ? v : y;
|
|
250
|
+
try {
|
|
251
|
+
o = await _.query({
|
|
252
|
+
query: s,
|
|
253
|
+
variables: e,
|
|
254
|
+
fetchPolicy: a,
|
|
255
|
+
errorPolicy: "none"
|
|
256
|
+
});
|
|
257
|
+
let n = o.errors;
|
|
258
|
+
s === v && n?.some((e) => b(e)) && (G.current = !1, t.warn("[ToursContext] Gateway returned a Tour.myProgress validation error — falling back to query without progress chips until the backend field is published."), o = await _.query({
|
|
259
|
+
query: y,
|
|
260
|
+
variables: e,
|
|
261
|
+
fetchPolicy: a,
|
|
262
|
+
errorPolicy: "none"
|
|
263
|
+
}));
|
|
264
|
+
} catch (n) {
|
|
265
|
+
if (s === v && b(n)) G.current = !1, t.warn("[ToursContext] Gateway does not expose Tour.myProgress yet — falling back to query without progress chips until the backend field is published."), o = await _.query({
|
|
266
|
+
query: y,
|
|
267
|
+
variables: e,
|
|
268
|
+
fetchPolicy: a,
|
|
269
|
+
errorPolicy: "none"
|
|
270
|
+
});
|
|
271
|
+
else throw n;
|
|
272
|
+
}
|
|
273
|
+
let c = (o.data?.toursForContext ?? []).filter((e, t, n) => n.findIndex((t) => t.id === e.id) === t);
|
|
274
|
+
U.current && i === W.current && (I(c), V.current = r, H.current = !0);
|
|
275
|
+
} catch (e) {
|
|
276
|
+
if (!U.current || i !== W.current || re(e)) return;
|
|
277
|
+
let n = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch tours");
|
|
278
|
+
t.error("Failed to fetch tours for context", n), B(n), I([]);
|
|
279
|
+
} finally {
|
|
280
|
+
U.current && i === W.current && R(!1);
|
|
281
|
+
}
|
|
282
|
+
}, [
|
|
283
|
+
M,
|
|
284
|
+
_,
|
|
285
|
+
A,
|
|
286
|
+
N,
|
|
287
|
+
P,
|
|
288
|
+
k,
|
|
289
|
+
j,
|
|
290
|
+
w?.id
|
|
291
|
+
]), q = d(w?.id);
|
|
292
|
+
l(() => {
|
|
293
|
+
q.current !== w?.id && (q.current = w?.id, H.current = !1, V.current = void 0, U.current && I([]));
|
|
294
|
+
}, [w?.id]), l(() => {
|
|
295
|
+
K();
|
|
296
|
+
}, [K]);
|
|
297
|
+
let J = s(() => {
|
|
298
|
+
K(!0);
|
|
299
|
+
}, [K]), Y = u(() => F.filter((e) => e.isActive && e.steps?.length > 0).sort((e, t) => (t.priority ?? 0) - (e.priority ?? 0)), [F]), X = u(() => Y.find((e) => e.triggerType === "AUTO_FIRST_VISIT" || e.triggerType === "AUTO_ALWAYS") ?? null, [Y]), Z = s(async (e, t, n) => {
|
|
300
|
+
if (!(!_ || !w?.id)) try {
|
|
301
|
+
if (t === "started") {
|
|
302
|
+
await _.mutate({
|
|
303
|
+
mutation: x,
|
|
304
|
+
variables: {
|
|
305
|
+
tourId: e,
|
|
306
|
+
userId: w.id,
|
|
307
|
+
deviceType: T()
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (t === "completed") {
|
|
313
|
+
await _.mutate({
|
|
314
|
+
mutation: S,
|
|
315
|
+
variables: {
|
|
316
|
+
tourId: e,
|
|
317
|
+
userId: w.id
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
await _.mutate({
|
|
323
|
+
mutation: ee,
|
|
324
|
+
variables: {
|
|
325
|
+
tourId: e,
|
|
326
|
+
userId: w.id
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
} catch {}
|
|
330
|
+
}, [_, w?.id]), Q = s(async (e, t) => {
|
|
331
|
+
if (!(!_ || !w?.id || !t)) try {
|
|
332
|
+
await _.mutate({
|
|
333
|
+
mutation: te,
|
|
334
|
+
variables: {
|
|
335
|
+
tourId: e,
|
|
336
|
+
stepId: t,
|
|
337
|
+
userId: w.id
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
} catch {}
|
|
341
|
+
}, [_, w?.id]), $ = s(async (e, t, n) => {
|
|
342
|
+
if (!(!_ || !w?.id)) try {
|
|
343
|
+
await _.mutate({
|
|
344
|
+
mutation: ne,
|
|
345
|
+
variables: { input: {
|
|
346
|
+
tourId: t,
|
|
347
|
+
userId: w.id,
|
|
348
|
+
sessionId: E(),
|
|
349
|
+
eventType: e,
|
|
350
|
+
stepId: n?.stepId,
|
|
351
|
+
stepOrder: n?.stepOrder,
|
|
352
|
+
productId: k,
|
|
353
|
+
moduleId: N,
|
|
354
|
+
pageId: P,
|
|
355
|
+
deviceType: T(),
|
|
356
|
+
userAgent: typeof navigator < "u" ? navigator.userAgent : void 0,
|
|
357
|
+
duration: n?.duration,
|
|
358
|
+
metadata: n?.metadata,
|
|
359
|
+
context: j ? {
|
|
360
|
+
workspaceId: j,
|
|
361
|
+
productId: k,
|
|
362
|
+
moduleId: N,
|
|
363
|
+
pageId: P
|
|
364
|
+
} : {
|
|
365
|
+
productId: k,
|
|
366
|
+
moduleId: N,
|
|
367
|
+
pageId: P
|
|
368
|
+
}
|
|
369
|
+
} }
|
|
370
|
+
});
|
|
371
|
+
} catch {}
|
|
372
|
+
}, [
|
|
373
|
+
_,
|
|
374
|
+
N,
|
|
375
|
+
P,
|
|
376
|
+
k,
|
|
377
|
+
w?.id,
|
|
378
|
+
j
|
|
379
|
+
]), ie = u(() => ({
|
|
380
|
+
tours: F,
|
|
381
|
+
pageTours: Y,
|
|
382
|
+
loading: L,
|
|
383
|
+
error: z,
|
|
384
|
+
refetch: J,
|
|
385
|
+
trackProgress: Z,
|
|
386
|
+
recordStepCompletion: Q,
|
|
387
|
+
trackEvent: $,
|
|
388
|
+
autoStartTour: X,
|
|
389
|
+
moduleId: N,
|
|
390
|
+
pageId: P
|
|
391
|
+
}), [
|
|
392
|
+
F,
|
|
393
|
+
X,
|
|
394
|
+
z,
|
|
395
|
+
L,
|
|
396
|
+
N,
|
|
397
|
+
P,
|
|
398
|
+
Y,
|
|
399
|
+
Q,
|
|
400
|
+
J,
|
|
401
|
+
$,
|
|
402
|
+
Z
|
|
403
|
+
]);
|
|
404
|
+
return /* @__PURE__ */ p(O.Provider, {
|
|
405
|
+
value: ie,
|
|
406
|
+
children: a
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
function A() {
|
|
410
|
+
let e = c(O);
|
|
411
|
+
if (!e) throw Error("useToursContext must be used within a ToursProvider");
|
|
412
|
+
return e;
|
|
413
|
+
}
|
|
414
|
+
function j() {
|
|
415
|
+
return c(O) || {
|
|
416
|
+
tours: [],
|
|
417
|
+
pageTours: [],
|
|
418
|
+
loading: !1,
|
|
419
|
+
error: null,
|
|
420
|
+
refetch: () => {},
|
|
421
|
+
trackProgress: async () => {},
|
|
422
|
+
recordStepCompletion: async () => {},
|
|
423
|
+
trackEvent: async () => {},
|
|
424
|
+
autoStartTour: null,
|
|
425
|
+
moduleId: void 0,
|
|
426
|
+
pageId: void 0
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
function M() {
|
|
430
|
+
let e = A();
|
|
431
|
+
return {
|
|
432
|
+
tours: e.pageTours,
|
|
433
|
+
loading: e.loading,
|
|
434
|
+
error: e.error,
|
|
435
|
+
refetch: e.refetch,
|
|
436
|
+
trackProgress: e.trackProgress
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function N() {
|
|
440
|
+
return A().autoStartTour;
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
export { k as ToursProvider, N as useAutoStartTour, j as useSafeToursContext, M as useTours, A as useToursContext };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tour Player Module
|
|
3
|
+
* Provides components and hooks for displaying interactive product tours
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* import { TourPlayerProvider, TourPlayer, usePlayTour } from '@burdenoff/fe-libs/shared/tours';
|
|
8
|
+
*
|
|
9
|
+
* // Wrap your app with the provider
|
|
10
|
+
* function App() {
|
|
11
|
+
* return (
|
|
12
|
+
* <TourPlayerProvider
|
|
13
|
+
* onTourComplete={(tour) => console.log('Completed:', tour.name)}
|
|
14
|
+
* onTourSkip={(tour, step) => console.log('Skipped at step:', step)}
|
|
15
|
+
* >
|
|
16
|
+
* <YourApp />
|
|
17
|
+
* </TourPlayerProvider>
|
|
18
|
+
* );
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* // In your component, start a tour
|
|
22
|
+
* function SomeComponent() {
|
|
23
|
+
* const playTour = usePlayTour();
|
|
24
|
+
*
|
|
25
|
+
* const myTour = {
|
|
26
|
+
* id: 'welcome-tour',
|
|
27
|
+
* name: 'Welcome Tour',
|
|
28
|
+
* steps: [
|
|
29
|
+
* { id: 's1', title: 'Welcome', content: 'Welcome to our app!', targetSelector: '#header' },
|
|
30
|
+
* { id: 's2', title: 'Sidebar', content: 'This is the sidebar', targetSelector: '#sidebar' },
|
|
31
|
+
* ],
|
|
32
|
+
* };
|
|
33
|
+
*
|
|
34
|
+
* return <button onClick={() => playTour(myTour)}>Start Tour</button>;
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export { TourPlayerProvider, useTourPlayerContext, useStartTour, useStopTour, useIsTourPlaying, } from './TourPlayerProvider';
|
|
39
|
+
export { TourPlayer, usePlayTour, TourTriggerButton } from './TourPlayer';
|
|
40
|
+
export { TourSpotlight } from './TourSpotlight';
|
|
41
|
+
export { TourTooltip } from './TourTooltip';
|
|
42
|
+
export { useTourPlayer } from './useTourPlayer';
|
|
43
|
+
export type { Tour, TourStep, TourStepMedia, TourStatus, TourTriggerType, StepPlacement, MediaType, MediaPosition, DeviceType, TourPlayerState, TourPlayerActions, TourPlayerContextValue, TourPlayerProviderProps, TourTooltipProps, TourSpotlightProps, } from './types';
|
|
44
|
+
export { getResponsiveSelector, detectDeviceType } from './types';
|
|
45
|
+
export { ToursProvider, useToursContext, useSafeToursContext, useTours, useAutoStartTour, } from './ToursContext';
|
|
46
|
+
export type { ToursContextValue, ToursProviderProps } from './ToursContext';
|
|
47
|
+
export { TourTrigger } from './TourTrigger';
|
|
48
|
+
export { TourInitializer } from './TourInitializer';
|
|
49
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/tours/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAGH,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,eAAe,EACf,aAAa,EACb,SAAS,EACT,aAAa,EACb,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGlE,OAAO,EACL,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tour Player Types
|
|
3
|
+
* Defines types for the tour player component
|
|
4
|
+
*/
|
|
5
|
+
export type TourStatus = "DRAFT" | "PUBLISHED" | "ARCHIVED" | "SCHEDULED";
|
|
6
|
+
/**
|
|
7
|
+
* TourUserStatus — per-user progress states for a tour.
|
|
8
|
+
* Mirrors `enum TourUserStatus` in
|
|
9
|
+
* `global-tours-svc/prisma/schema/tours.prisma`. Keep these in sync with
|
|
10
|
+
* the backend when adding/removing values — the Tour.myProgress resolver
|
|
11
|
+
* returns the raw Prisma enum, so a client-side divergence surfaces as
|
|
12
|
+
* a silent string mismatch at render time (unknown statuses fall through
|
|
13
|
+
* to `null` in STATUS_CHIP_CONFIG) rather than a runtime error. Tracked
|
|
14
|
+
* in Linear BOFF-2233.
|
|
15
|
+
*/
|
|
16
|
+
export type TourUserStatus = "NOT_STARTED" | "IN_PROGRESS" | "COMPLETED" | "SKIPPED" | "DISMISSED";
|
|
17
|
+
/**
|
|
18
|
+
* Tour user progress (subset of backend TourUserProgress fields that the
|
|
19
|
+
* client actually uses to render chips + filters). Matches the selection
|
|
20
|
+
* set in `GET_TOURS_FOR_CONTEXT` on `Tour.myProgress` — add fields here
|
|
21
|
+
* AND to the query fragment when the client needs more of the progress
|
|
22
|
+
* row. Backend source of truth:
|
|
23
|
+
* `global-tours-svc/src/modules/tours/resolvers/tour/tour.type.ts`.
|
|
24
|
+
*/
|
|
25
|
+
export interface TourUserProgressSummary {
|
|
26
|
+
id: string;
|
|
27
|
+
status: TourUserStatus;
|
|
28
|
+
}
|
|
29
|
+
export type TourTriggerType = "MANUAL" | "AUTO_FIRST_VISIT" | "AUTO_ALWAYS" | "ON_EVENT" | "SCHEDULED";
|
|
30
|
+
export type StepPlacement = "AUTO" | "TOP" | "BOTTOM" | "LEFT" | "RIGHT" | "CENTER";
|
|
31
|
+
export type MediaType = "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT";
|
|
32
|
+
export type MediaPosition = "HEADER" | "INLINE" | "BODY" | "FOOTER";
|
|
33
|
+
/**
|
|
34
|
+
* Tour step for the player
|
|
35
|
+
*/
|
|
36
|
+
export interface TourStep {
|
|
37
|
+
id: string;
|
|
38
|
+
tourId: string;
|
|
39
|
+
title: string;
|
|
40
|
+
content: string;
|
|
41
|
+
stepOrder: number;
|
|
42
|
+
targetSelector?: string;
|
|
43
|
+
placement: StepPlacement;
|
|
44
|
+
targetSelectorMobile?: string;
|
|
45
|
+
targetSelectorTablet?: string;
|
|
46
|
+
targetSelectorDesktop?: string;
|
|
47
|
+
customData?: Record<string, unknown>;
|
|
48
|
+
actions?: Record<string, unknown>;
|
|
49
|
+
requireInteraction?: boolean;
|
|
50
|
+
waitForSelector?: string;
|
|
51
|
+
waitForEvent?: string;
|
|
52
|
+
waitForTimeout?: number;
|
|
53
|
+
skipConditions?: Record<string, unknown>;
|
|
54
|
+
media?: TourStepMedia[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Tour step media attachment
|
|
58
|
+
*/
|
|
59
|
+
export interface TourStepMedia {
|
|
60
|
+
id: string;
|
|
61
|
+
mediaId: string;
|
|
62
|
+
position: MediaPosition;
|
|
63
|
+
displayOrder: number;
|
|
64
|
+
media: {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
type: MediaType;
|
|
68
|
+
cdnUrl?: string;
|
|
69
|
+
mimeType: string;
|
|
70
|
+
altText?: string;
|
|
71
|
+
caption?: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Tour for the player
|
|
76
|
+
*/
|
|
77
|
+
export interface Tour {
|
|
78
|
+
id: string;
|
|
79
|
+
context?: {
|
|
80
|
+
workspaceId?: string;
|
|
81
|
+
userId?: string;
|
|
82
|
+
organizationId?: string;
|
|
83
|
+
projectId?: string;
|
|
84
|
+
productId?: string;
|
|
85
|
+
moduleId?: string;
|
|
86
|
+
pageId?: string;
|
|
87
|
+
};
|
|
88
|
+
name: string;
|
|
89
|
+
slug: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
productId: string;
|
|
92
|
+
moduleId?: string;
|
|
93
|
+
pageId?: string;
|
|
94
|
+
status: TourStatus;
|
|
95
|
+
isActive: boolean;
|
|
96
|
+
triggerType: TourTriggerType;
|
|
97
|
+
triggerConfig?: Record<string, unknown>;
|
|
98
|
+
mobileConfig?: Record<string, unknown>;
|
|
99
|
+
tabletConfig?: Record<string, unknown>;
|
|
100
|
+
desktopConfig?: Record<string, unknown>;
|
|
101
|
+
priority: number;
|
|
102
|
+
displayOrder: number;
|
|
103
|
+
steps: TourStep[];
|
|
104
|
+
/**
|
|
105
|
+
* Current authenticated user's progress for this tour, or null if they
|
|
106
|
+
* haven't interacted yet. Populated by the backend field resolver
|
|
107
|
+
* `Tour.myProgress` (TOUR-P2-020). Used by TourTrigger to render per-tour
|
|
108
|
+
* status chips inline in the dropdown.
|
|
109
|
+
*/
|
|
110
|
+
myProgress?: TourUserProgressSummary | null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Tour player state
|
|
114
|
+
*/
|
|
115
|
+
export interface TourPlayerState {
|
|
116
|
+
isPlaying: boolean;
|
|
117
|
+
currentTour: Tour | null;
|
|
118
|
+
currentStepIndex: number;
|
|
119
|
+
isPaused: boolean;
|
|
120
|
+
isCompleted: boolean;
|
|
121
|
+
isSkipped: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Tour player actions
|
|
125
|
+
*/
|
|
126
|
+
export interface TourPlayerActions {
|
|
127
|
+
startTour: (tour: Tour) => void;
|
|
128
|
+
stopTour: () => void;
|
|
129
|
+
nextStep: () => void;
|
|
130
|
+
previousStep: () => void;
|
|
131
|
+
goToStep: (index: number) => void;
|
|
132
|
+
pauseTour: () => void;
|
|
133
|
+
resumeTour: () => void;
|
|
134
|
+
skipTour: () => void;
|
|
135
|
+
completeTour: () => void;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Tour player context value
|
|
139
|
+
*/
|
|
140
|
+
export interface TourPlayerContextValue extends TourPlayerState, TourPlayerActions {
|
|
141
|
+
currentStep: TourStep | null;
|
|
142
|
+
totalSteps: number;
|
|
143
|
+
progress: number;
|
|
144
|
+
canGoNext: boolean;
|
|
145
|
+
canGoPrevious: boolean;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Tour player provider props
|
|
149
|
+
*/
|
|
150
|
+
export interface TourPlayerProviderProps {
|
|
151
|
+
children: React.ReactNode;
|
|
152
|
+
/**
|
|
153
|
+
* Callback when a tour starts
|
|
154
|
+
*/
|
|
155
|
+
onTourStart?: (tour: Tour) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Callback when a tour completes
|
|
158
|
+
*/
|
|
159
|
+
onTourComplete?: (tour: Tour) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Callback when a tour is skipped
|
|
162
|
+
*/
|
|
163
|
+
onTourSkip?: (tour: Tour, stepIndex: number) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Callback when a step changes
|
|
166
|
+
*/
|
|
167
|
+
onStepChange?: (tour: Tour, stepIndex: number) => void;
|
|
168
|
+
/**
|
|
169
|
+
* Callback when a step is completed before advancing or finishing
|
|
170
|
+
*/
|
|
171
|
+
onStepComplete?: (tour: Tour, stepIndex: number) => void;
|
|
172
|
+
/**
|
|
173
|
+
* Custom z-index for the overlay
|
|
174
|
+
*/
|
|
175
|
+
zIndex?: number;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Tour tooltip props
|
|
179
|
+
*/
|
|
180
|
+
export interface TourTooltipProps {
|
|
181
|
+
step: TourStep;
|
|
182
|
+
stepIndex: number;
|
|
183
|
+
totalSteps: number;
|
|
184
|
+
onNext: () => void;
|
|
185
|
+
onPrevious: () => void;
|
|
186
|
+
onSkip: () => void;
|
|
187
|
+
onComplete: () => void;
|
|
188
|
+
canGoNext: boolean;
|
|
189
|
+
canGoPrevious: boolean;
|
|
190
|
+
isLastStep: boolean;
|
|
191
|
+
placement: StepPlacement;
|
|
192
|
+
targetRect: DOMRect | null;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Tour spotlight props
|
|
196
|
+
*/
|
|
197
|
+
export interface TourSpotlightProps {
|
|
198
|
+
targetRect: DOMRect | null;
|
|
199
|
+
padding?: number;
|
|
200
|
+
borderRadius?: number;
|
|
201
|
+
zIndex?: number;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Device type for responsive selectors
|
|
205
|
+
*/
|
|
206
|
+
export type DeviceType = "mobile" | "tablet" | "desktop";
|
|
207
|
+
/**
|
|
208
|
+
* Get the appropriate selector based on device type
|
|
209
|
+
*/
|
|
210
|
+
export declare function getResponsiveSelector(step: TourStep, deviceType: DeviceType): string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Detect current device type based on screen width
|
|
213
|
+
*/
|
|
214
|
+
export declare function detectDeviceType(): DeviceType;
|
|
215
|
+
//# sourceMappingURL=types.d.ts.map
|