@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,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keyboard Shortcuts Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for keyboard shortcut management system
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Platform-specific key definitions
|
|
8
|
+
* Allows defining different keys for each platform
|
|
9
|
+
*/
|
|
10
|
+
export interface PlatformKeys {
|
|
11
|
+
mac?: string[];
|
|
12
|
+
windows?: string[];
|
|
13
|
+
linux?: string[];
|
|
14
|
+
/** Fallback keys if platform-specific not defined */
|
|
15
|
+
default?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface KeyboardShortcut {
|
|
18
|
+
/** Unique identifier for this shortcut */
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* Key combination(s) that trigger this shortcut
|
|
22
|
+
* Can be a simple array: ['ctrl+k', 'cmd+k']
|
|
23
|
+
* Or platform-specific: { mac: ['cmd+k'], windows: ['ctrl+k'], linux: ['ctrl+k'] }
|
|
24
|
+
*
|
|
25
|
+
* For key sequences (like "g h" for "go home"):
|
|
26
|
+
* Use space-separated keys: ['g h', 'g w'] - press g, then h or w
|
|
27
|
+
* Sequences must be pressed within the sequence timeout (default 1000ms)
|
|
28
|
+
*/
|
|
29
|
+
keys: string[] | PlatformKeys;
|
|
30
|
+
/** Human-readable description */
|
|
31
|
+
description: string;
|
|
32
|
+
/** Category for grouping shortcuts (e.g., 'navigation', 'editing') */
|
|
33
|
+
category?: string;
|
|
34
|
+
/** Action to execute when shortcut is triggered */
|
|
35
|
+
action: () => void;
|
|
36
|
+
/** Whether this shortcut is enabled */
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
/** Whether this is a global shortcut (works everywhere) */
|
|
39
|
+
global?: boolean;
|
|
40
|
+
/** Disable on mobile/tablet devices */
|
|
41
|
+
disableOnMobile?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether this shortcut is a key sequence (e.g., "g h")
|
|
44
|
+
* If not specified, will be auto-detected based on space in key definition
|
|
45
|
+
*/
|
|
46
|
+
isSequence?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface ShortcutConfig {
|
|
49
|
+
shortcuts: KeyboardShortcut[];
|
|
50
|
+
enabled?: boolean;
|
|
51
|
+
preventDefault?: boolean;
|
|
52
|
+
stopPropagation?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface ShortcutContext {
|
|
55
|
+
registerShortcut: (shortcut: KeyboardShortcut) => void;
|
|
56
|
+
unregisterShortcut: (id: string) => void;
|
|
57
|
+
toggleShortcuts: (enabled: boolean) => void;
|
|
58
|
+
getShortcuts: () => KeyboardShortcut[];
|
|
59
|
+
}
|
|
60
|
+
export type ModifierKey = "ctrl" | "alt" | "shift" | "meta" | "cmd";
|
|
61
|
+
export type KeyCombination = string | string[];
|
|
62
|
+
export interface UseKeyboardShortcutsReturn {
|
|
63
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
64
|
+
}
|
|
65
|
+
export interface UseHotkeysReturn {
|
|
66
|
+
register: (key: string, callback: () => void) => void;
|
|
67
|
+
unregister: (key: string) => void;
|
|
68
|
+
}
|
|
69
|
+
export interface UseShortcutHelpReturn {
|
|
70
|
+
isHelpVisible: boolean;
|
|
71
|
+
showHelp: () => void;
|
|
72
|
+
hideHelp: () => void;
|
|
73
|
+
toggleHelp: () => void;
|
|
74
|
+
shortcuts: KeyboardShortcut[];
|
|
75
|
+
}
|
|
76
|
+
export type PlatformType = "mac" | "windows" | "linux" | "unknown";
|
|
77
|
+
export interface ParsedKeyCombo {
|
|
78
|
+
modifiers: Set<string>;
|
|
79
|
+
key: string;
|
|
80
|
+
}
|
|
81
|
+
/** Available modifier keys for shortcut definitions */
|
|
82
|
+
export declare const MODIFIER_KEYS: readonly ModifierKey[];
|
|
83
|
+
/** Available platform types */
|
|
84
|
+
export declare const PLATFORM_TYPES: readonly PlatformType[];
|
|
85
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;;;OAQG;IACH,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC;IAC9B,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACvD,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,gBAAgB,EAAE,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAG/C,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IACtD,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAGD,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,uDAAuD;AACvD,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAMtC,CAAC;AAEX,+BAA+B;AAC/B,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAKxC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseHotkeysReturn } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for dynamically registering hotkeys
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* const { register, unregister } = useHotkeys();
|
|
8
|
+
*
|
|
9
|
+
* useEffect(() => {
|
|
10
|
+
* register('ctrl+s', () => save());
|
|
11
|
+
* register('ctrl+p', () => print());
|
|
12
|
+
*
|
|
13
|
+
* return () => {
|
|
14
|
+
* unregister('ctrl+s');
|
|
15
|
+
* unregister('ctrl+p');
|
|
16
|
+
* };
|
|
17
|
+
* }, []);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function useHotkeys(enabled?: boolean): UseHotkeysReturn;
|
|
21
|
+
//# sourceMappingURL=useHotkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHotkeys.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/useHotkeys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,OAAO,UAAO,GAAG,gBAAgB,CAiC3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useKeyboardShortcuts as e } from "./useKeyboardShortcuts.js";
|
|
2
|
+
import { useCallback as t, useState as n } from "react";
|
|
3
|
+
//#region src/shared/keyboard/useHotkeys.ts
|
|
4
|
+
function r(r = !0) {
|
|
5
|
+
let [i, a] = n(/* @__PURE__ */ new Map()), o = t((e, t) => {
|
|
6
|
+
a((n) => {
|
|
7
|
+
let r = new Map(n);
|
|
8
|
+
return r.set(e, t), r;
|
|
9
|
+
});
|
|
10
|
+
}, []), s = t((e) => {
|
|
11
|
+
a((t) => {
|
|
12
|
+
let n = new Map(t);
|
|
13
|
+
return n.delete(e), n;
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return e(Array.from(i.entries()).map(([e, t]) => ({
|
|
17
|
+
id: e,
|
|
18
|
+
keys: [e],
|
|
19
|
+
description: "",
|
|
20
|
+
action: t
|
|
21
|
+
})), { enabled: r }), {
|
|
22
|
+
register: o,
|
|
23
|
+
unregister: s
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as useHotkeys };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { KeyboardShortcut, UseKeyboardShortcutsReturn, PlatformKeys } from './types';
|
|
2
|
+
export interface UseKeyboardShortcutsOptions {
|
|
3
|
+
/** Whether shortcuts are enabled */
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
/** Whether to prevent default browser behavior */
|
|
6
|
+
preventDefault?: boolean;
|
|
7
|
+
/** Whether to stop event propagation */
|
|
8
|
+
stopPropagation?: boolean;
|
|
9
|
+
/** Whether to ignore shortcuts in input fields */
|
|
10
|
+
ignoreInputFields?: boolean;
|
|
11
|
+
/** Enable shortcuts on tablet devices (default: false) */
|
|
12
|
+
enableOnTablet?: boolean;
|
|
13
|
+
/** Timeout for key sequences in milliseconds (default: 1000) */
|
|
14
|
+
sequenceTimeout?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Shortcut IDs that should always fire even inside input fields.
|
|
17
|
+
* Useful for global shortcuts like search (Cmd+K) or help (?).
|
|
18
|
+
* These bypass the ignoreInputFields check.
|
|
19
|
+
*/
|
|
20
|
+
globalShortcutIds?: string[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Hook for managing keyboard shortcuts with sequence support
|
|
24
|
+
*
|
|
25
|
+
* Features:
|
|
26
|
+
* - Platform-specific key definitions (Mac vs Windows/Linux)
|
|
27
|
+
* - Key sequence support (e.g., "g h" for "go home")
|
|
28
|
+
* - Automatic mobile/tablet detection and disabling
|
|
29
|
+
* - Input field detection (skip shortcuts in text inputs)
|
|
30
|
+
* - Configurable preventDefault and stopPropagation
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* const shortcuts = [
|
|
35
|
+
* {
|
|
36
|
+
* id: 'search',
|
|
37
|
+
* keys: { mac: ['cmd+k'], windows: ['ctrl+k'], linux: ['ctrl+k'] },
|
|
38
|
+
* description: 'Open search',
|
|
39
|
+
* action: () => openSearch(),
|
|
40
|
+
* },
|
|
41
|
+
* {
|
|
42
|
+
* id: 'go-home',
|
|
43
|
+
* keys: ['g h'], // Key sequence: press g, then h
|
|
44
|
+
* description: 'Go to home',
|
|
45
|
+
* action: () => navigate('/'),
|
|
46
|
+
* },
|
|
47
|
+
* {
|
|
48
|
+
* id: 'help',
|
|
49
|
+
* keys: ['?'], // Single key
|
|
50
|
+
* description: 'Show help',
|
|
51
|
+
* action: () => showHelp(),
|
|
52
|
+
* },
|
|
53
|
+
* ];
|
|
54
|
+
*
|
|
55
|
+
* useKeyboardShortcuts(shortcuts, {
|
|
56
|
+
* enabled: true,
|
|
57
|
+
* preventDefault: true,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function useKeyboardShortcuts(shortcuts?: KeyboardShortcut[], options?: UseKeyboardShortcutsOptions): UseKeyboardShortcutsReturn;
|
|
62
|
+
/**
|
|
63
|
+
* Hook for managing a single keyboard shortcut
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```tsx
|
|
67
|
+
* useKeyboardShortcut('ctrl+k', () => {
|
|
68
|
+
* openSearch();
|
|
69
|
+
* });
|
|
70
|
+
*
|
|
71
|
+
* // Platform-specific
|
|
72
|
+
* useKeyboardShortcut({ mac: ['cmd+k'], windows: ['ctrl+k'] }, () => {
|
|
73
|
+
* openSearch();
|
|
74
|
+
* });
|
|
75
|
+
*
|
|
76
|
+
* // Key sequence
|
|
77
|
+
* useKeyboardShortcut('g h', () => {
|
|
78
|
+
* navigate('/');
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function useKeyboardShortcut(keys: string | string[] | PlatformKeys, action: () => void, options?: Omit<UseKeyboardShortcutsOptions, "enabled"> & {
|
|
83
|
+
enabled?: boolean;
|
|
84
|
+
}): void;
|
|
85
|
+
/**
|
|
86
|
+
* Get the current platform type
|
|
87
|
+
* Useful for displaying platform-specific key labels in UI
|
|
88
|
+
*/
|
|
89
|
+
export { detectPlatform } from './utils';
|
|
90
|
+
/**
|
|
91
|
+
* Check if current device supports keyboard shortcuts
|
|
92
|
+
*/
|
|
93
|
+
export { shouldEnableKeyboardShortcuts, isMobileDevice, isTabletDevice, } from './utils';
|
|
94
|
+
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EACV,gBAAgB,EAChB,0BAA0B,EAC1B,YAAY,EACb,MAAM,SAAS,CAAC;AAUjB,MAAM,WAAW,2BAA2B;IAC1C,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0DAA0D;IAC1D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AA4CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,GAAE,gBAAgB,EAAO,EAClC,OAAO,GAAE,2BAAgC,GACxC,0BAA0B,CAiQ5B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,EACtC,MAAM,EAAE,MAAM,IAAI,EAClB,OAAO,GAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,GAAG;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,GACL,IAAI,CAYN;AAED;;;GAGG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,OAAO,EACL,6BAA6B,EAC7B,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { detectPlatform as e, matchesKeyCombo as t, normalizeKey as n, normalizePlatformCombo as r, shouldEnableKeyboardShortcuts as i, shouldIgnoreShortcut as a } from "./utils.js";
|
|
2
|
+
import { useCallback as o, useEffect as s, useMemo as c, useRef as l } from "react";
|
|
3
|
+
//#region src/shared/keyboard/useKeyboardShortcuts.ts
|
|
4
|
+
function u(t) {
|
|
5
|
+
if (Array.isArray(t)) return t;
|
|
6
|
+
switch (e()) {
|
|
7
|
+
case "mac": return t.mac || t.default || [];
|
|
8
|
+
case "windows": return t.windows || t.default || [];
|
|
9
|
+
case "linux": return t.linux || t.windows || t.default || [];
|
|
10
|
+
default: return t.default || t.windows || [];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function d(e) {
|
|
14
|
+
return e.includes(" ") && !e.includes("+");
|
|
15
|
+
}
|
|
16
|
+
function f(e) {
|
|
17
|
+
return e.split(" ").map((e) => e.trim().toLowerCase()).filter(Boolean);
|
|
18
|
+
}
|
|
19
|
+
function p(e = [], p = {}) {
|
|
20
|
+
let { enabled: m = !0, preventDefault: h = !0, stopPropagation: g = !0, ignoreInputFields: _ = !0, enableOnTablet: v = !1, sequenceTimeout: y = 1e3, globalShortcutIds: b = [] } = p, x = c(() => i({ enableOnTablet: v }), [v]), S = m && x, C = l(e), w = l([]), T = l(null);
|
|
21
|
+
s(() => {
|
|
22
|
+
C.current = e;
|
|
23
|
+
}, [e]);
|
|
24
|
+
let E = o(() => {
|
|
25
|
+
w.current = [], T.current &&= (clearTimeout(T.current), null);
|
|
26
|
+
}, []), D = o(() => {
|
|
27
|
+
T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
28
|
+
w.current = [];
|
|
29
|
+
}, y);
|
|
30
|
+
}, [y]), O = l(b);
|
|
31
|
+
s(() => {
|
|
32
|
+
O.current = b;
|
|
33
|
+
}, [b]);
|
|
34
|
+
let k = o((e) => {
|
|
35
|
+
if (!S) return;
|
|
36
|
+
let i = _ && a(e);
|
|
37
|
+
if (i && !(O.current.length > 0)) {
|
|
38
|
+
E();
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
let o = n(e.key), s = [...w.current, o], c;
|
|
42
|
+
if (i || (c = C.current.find((e) => e.enabled === !1 || e.disableOnMobile && !x ? !1 : u(e.keys).some((t) => {
|
|
43
|
+
if (d(t) || e.isSequence) {
|
|
44
|
+
let e = f(t);
|
|
45
|
+
return !!(s.length <= e.length && s.every((t, n) => t === e[n]) && s.length === e.length);
|
|
46
|
+
}
|
|
47
|
+
return !1;
|
|
48
|
+
}))), c) {
|
|
49
|
+
h && e.preventDefault(), g && e.stopPropagation(), E();
|
|
50
|
+
try {
|
|
51
|
+
c.action();
|
|
52
|
+
} catch (e) {
|
|
53
|
+
console.error(`Error executing shortcut "${c.id}":`, e);
|
|
54
|
+
}
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (!i && C.current.some((e) => e.enabled === !1 ? !1 : u(e.keys).some((t) => {
|
|
58
|
+
if (d(t) || e.isSequence) {
|
|
59
|
+
let e = f(t);
|
|
60
|
+
if (s.length < e.length) return s.every((t, n) => t === e[n]);
|
|
61
|
+
}
|
|
62
|
+
return !1;
|
|
63
|
+
}))) {
|
|
64
|
+
w.current = s, D(), h && e.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (E(), c = C.current.find((n) => n.enabled === !1 || n.disableOnMobile && !x || i && !O.current.includes(n.id) ? !1 : u(n.keys).some((i) => d(i) || n.isSequence ? !1 : t(e, r(i)))), c) {
|
|
68
|
+
h && e.preventDefault(), g && e.stopPropagation();
|
|
69
|
+
try {
|
|
70
|
+
c.action();
|
|
71
|
+
} catch (e) {
|
|
72
|
+
console.error(`Error executing shortcut "${c.id}":`, e);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}, [
|
|
76
|
+
S,
|
|
77
|
+
h,
|
|
78
|
+
g,
|
|
79
|
+
_,
|
|
80
|
+
x,
|
|
81
|
+
E,
|
|
82
|
+
D
|
|
83
|
+
]);
|
|
84
|
+
return s(() => {
|
|
85
|
+
if (S) return document.addEventListener("keydown", k), () => {
|
|
86
|
+
document.removeEventListener("keydown", k), E();
|
|
87
|
+
};
|
|
88
|
+
}, [
|
|
89
|
+
k,
|
|
90
|
+
S,
|
|
91
|
+
E
|
|
92
|
+
]), { handleKeyDown: k };
|
|
93
|
+
}
|
|
94
|
+
function m(e, t, n = {}) {
|
|
95
|
+
let r = typeof e == "string" ? [e] : e;
|
|
96
|
+
p([{
|
|
97
|
+
id: Array.isArray(r) ? r.join("|") : "platform-shortcut",
|
|
98
|
+
keys: r,
|
|
99
|
+
description: "",
|
|
100
|
+
action: t,
|
|
101
|
+
enabled: n.enabled !== !1
|
|
102
|
+
}], n);
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { m as useKeyboardShortcut, p as useKeyboardShortcuts };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KeyboardShortcut, UseShortcutHelpReturn } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for managing shortcut help dialog
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* const { isHelpVisible, showHelp, hideHelp, shortcuts } = useShortcutHelp(
|
|
8
|
+
* allShortcuts,
|
|
9
|
+
* { triggerKey: '?' }
|
|
10
|
+
* );
|
|
11
|
+
*
|
|
12
|
+
* return (
|
|
13
|
+
* <>
|
|
14
|
+
* {isHelpVisible && (
|
|
15
|
+
* <ShortcutHelpDialog shortcuts={shortcuts} onClose={hideHelp} />
|
|
16
|
+
* )}
|
|
17
|
+
* </>
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function useShortcutHelp(shortcuts: KeyboardShortcut[], options?: {
|
|
22
|
+
/** Key to trigger help dialog (default: '?') */
|
|
23
|
+
triggerKey?: string;
|
|
24
|
+
/** Whether to enable automatic help trigger */
|
|
25
|
+
autoTrigger?: boolean;
|
|
26
|
+
}): UseShortcutHelpReturn;
|
|
27
|
+
//# sourceMappingURL=useShortcutHelp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShortcutHelp.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/useShortcutHelp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGvE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,gBAAgB,EAAE,EAC7B,OAAO,GAAE;IACP,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CAClB,GACL,qBAAqB,CA2BvB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useKeyboardShortcut as e } from "./useKeyboardShortcuts.js";
|
|
2
|
+
import { useCallback as t, useState as n } from "react";
|
|
3
|
+
//#region src/shared/keyboard/useShortcutHelp.ts
|
|
4
|
+
function r(r, i = {}) {
|
|
5
|
+
let { triggerKey: a = "?", autoTrigger: o = !0 } = i, [s, c] = n(!1), l = t(() => {
|
|
6
|
+
c(!0);
|
|
7
|
+
}, []), u = t(() => {
|
|
8
|
+
c(!1);
|
|
9
|
+
}, []), d = t(() => {
|
|
10
|
+
c((e) => !e);
|
|
11
|
+
}, []);
|
|
12
|
+
return e(a, d, { enabled: o }), {
|
|
13
|
+
isHelpVisible: s,
|
|
14
|
+
showHelp: l,
|
|
15
|
+
hideHelp: u,
|
|
16
|
+
toggleHelp: d,
|
|
17
|
+
shortcuts: r
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as useShortcutHelp };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PlatformType, ParsedKeyCombo, PlatformKeys } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Detect the current platform
|
|
4
|
+
*/
|
|
5
|
+
export declare function detectPlatform(): PlatformType;
|
|
6
|
+
/**
|
|
7
|
+
* Detect if the device is mobile (phone or tablet)
|
|
8
|
+
*/
|
|
9
|
+
export declare function isMobileDevice(): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Check if device is a tablet (larger touch device)
|
|
12
|
+
*/
|
|
13
|
+
export declare function isTabletDevice(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Check if keyboard shortcuts should be enabled
|
|
16
|
+
* Disabled on mobile phones, optionally enabled on tablets
|
|
17
|
+
*/
|
|
18
|
+
export declare function shouldEnableKeyboardShortcuts(options?: {
|
|
19
|
+
enableOnTablet?: boolean;
|
|
20
|
+
}): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Check if current platform is Mac
|
|
23
|
+
*/
|
|
24
|
+
export declare function isMac(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Normalize key name (lowercase, handle aliases)
|
|
27
|
+
*/
|
|
28
|
+
export declare function normalizeKey(key: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Parse key combination string (e.g., 'ctrl+shift+k')
|
|
31
|
+
*/
|
|
32
|
+
export declare function parseKeyCombo(combo: string): ParsedKeyCombo;
|
|
33
|
+
/**
|
|
34
|
+
* Check if a keyboard event matches a key combination
|
|
35
|
+
*/
|
|
36
|
+
export declare function matchesKeyCombo(event: KeyboardEvent, combo: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Format key combination for display
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatKeyCombo(combo: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* Convert platform-specific combo to cross-platform
|
|
43
|
+
* Example: 'cmd+k' becomes 'ctrl+k' on Windows/Linux
|
|
44
|
+
*/
|
|
45
|
+
export declare function normalizePlatformCombo(combo: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* Check if element should ignore keyboard shortcuts
|
|
48
|
+
* (e.g., input fields, textareas, content-editable)
|
|
49
|
+
*/
|
|
50
|
+
export declare function shouldIgnoreShortcut(event: KeyboardEvent): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Get readable shortcut label
|
|
53
|
+
*/
|
|
54
|
+
export declare function getShortcutLabel(keys: string[]): string;
|
|
55
|
+
/**
|
|
56
|
+
* Resolve platform-specific keys and format for display
|
|
57
|
+
*/
|
|
58
|
+
export declare function getDisplayKeysForPlatform(keys: string[] | PlatformKeys): string;
|
|
59
|
+
/**
|
|
60
|
+
* Check if a key definition is a sequence (contains spaces, no +)
|
|
61
|
+
*/
|
|
62
|
+
export declare function isKeySequence(keyDef: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Format a key sequence for display
|
|
65
|
+
* "g h" -> "G then H"
|
|
66
|
+
*/
|
|
67
|
+
export declare function formatKeySequence(keyDef: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Format any shortcut (combo or sequence) for display
|
|
70
|
+
*/
|
|
71
|
+
export declare function formatShortcut(keyDef: string): string;
|
|
72
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/shared/keyboard/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1E;;GAEG;AACH,wBAAgB,cAAc,IAAI,YAAY,CA6B7C;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CA4BxC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAaxC;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,CAAC,EAAE;IACtD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAYV;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAsBhD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAqB3D;AA+BD;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CA2C5E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAsCpD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAWlE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAmBvD;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,GAC5B,MAAM,CAuBR;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKrD"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
//#region src/shared/keyboard/utils.ts
|
|
2
|
+
function e() {
|
|
3
|
+
if (typeof window > "u") return "unknown";
|
|
4
|
+
let e = navigator.userAgentData;
|
|
5
|
+
if (e?.platform) {
|
|
6
|
+
let t = e.platform.toLowerCase();
|
|
7
|
+
if (t === "macos" || t.includes("mac")) return "mac";
|
|
8
|
+
if (t === "windows" || t.includes("win")) return "windows";
|
|
9
|
+
if (t === "linux" || t.includes("linux")) return "linux";
|
|
10
|
+
}
|
|
11
|
+
let t = window.navigator.platform?.toLowerCase() ?? "", n = window.navigator.userAgent.toLowerCase();
|
|
12
|
+
return t.includes("mac") || n.includes("mac") ? "mac" : t.includes("win") || n.includes("win") ? "windows" : t.includes("linux") || n.includes("linux") ? "linux" : "unknown";
|
|
13
|
+
}
|
|
14
|
+
function t() {
|
|
15
|
+
if (typeof window > "u") return !1;
|
|
16
|
+
let e = window.navigator.userAgent.toLowerCase(), t = [
|
|
17
|
+
"android",
|
|
18
|
+
"webos",
|
|
19
|
+
"iphone",
|
|
20
|
+
"ipad",
|
|
21
|
+
"ipod",
|
|
22
|
+
"blackberry",
|
|
23
|
+
"iemobile",
|
|
24
|
+
"opera mini",
|
|
25
|
+
"mobile",
|
|
26
|
+
"tablet"
|
|
27
|
+
].some((t) => e.includes(t)), n = "ontouchstart" in window || navigator.maxTouchPoints > 0, r = window.innerWidth < 768;
|
|
28
|
+
return t || n && r;
|
|
29
|
+
}
|
|
30
|
+
function n() {
|
|
31
|
+
if (typeof window > "u") return !1;
|
|
32
|
+
let e = window.navigator.userAgent.toLowerCase(), t = e.includes("ipad") || e.includes("android") && !e.includes("mobile"), n = "ontouchstart" in window || navigator.maxTouchPoints > 0, r = window.innerWidth >= 768 && window.innerWidth < 1024;
|
|
33
|
+
return t || n && r;
|
|
34
|
+
}
|
|
35
|
+
function r(e) {
|
|
36
|
+
let { enableOnTablet: r = !1 } = e || {};
|
|
37
|
+
return !(t() && !n() || n() && !r);
|
|
38
|
+
}
|
|
39
|
+
function i() {
|
|
40
|
+
return e() === "mac";
|
|
41
|
+
}
|
|
42
|
+
function a(e) {
|
|
43
|
+
if (!e) return "";
|
|
44
|
+
let t = e.toLowerCase().trim();
|
|
45
|
+
return {
|
|
46
|
+
command: "meta",
|
|
47
|
+
cmd: "meta",
|
|
48
|
+
control: "ctrl",
|
|
49
|
+
option: "alt",
|
|
50
|
+
return: "enter",
|
|
51
|
+
escape: "esc",
|
|
52
|
+
delete: "backspace",
|
|
53
|
+
space: " ",
|
|
54
|
+
spacebar: " ",
|
|
55
|
+
up: "arrowup",
|
|
56
|
+
down: "arrowdown",
|
|
57
|
+
left: "arrowleft",
|
|
58
|
+
right: "arrowright"
|
|
59
|
+
}[t] || t;
|
|
60
|
+
}
|
|
61
|
+
function o(e) {
|
|
62
|
+
let t = e.toLowerCase().split("+").map((e) => e.trim()), n = /* @__PURE__ */ new Set(), r = "", i = new Set([
|
|
63
|
+
"ctrl",
|
|
64
|
+
"alt",
|
|
65
|
+
"shift",
|
|
66
|
+
"meta",
|
|
67
|
+
"cmd"
|
|
68
|
+
]);
|
|
69
|
+
for (let e of t) {
|
|
70
|
+
let t = a(e);
|
|
71
|
+
i.has(t) ? n.add(t === "cmd" ? "meta" : t) : r = t;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
modifiers: n,
|
|
75
|
+
key: r
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
var s = new Set([
|
|
79
|
+
"?",
|
|
80
|
+
"!",
|
|
81
|
+
"@",
|
|
82
|
+
"#",
|
|
83
|
+
"$",
|
|
84
|
+
"%",
|
|
85
|
+
"^",
|
|
86
|
+
"&",
|
|
87
|
+
"*",
|
|
88
|
+
"(",
|
|
89
|
+
")",
|
|
90
|
+
"_",
|
|
91
|
+
"+",
|
|
92
|
+
"{",
|
|
93
|
+
"}",
|
|
94
|
+
"|",
|
|
95
|
+
":",
|
|
96
|
+
"\"",
|
|
97
|
+
"<",
|
|
98
|
+
">",
|
|
99
|
+
"~"
|
|
100
|
+
]);
|
|
101
|
+
function c(e, t) {
|
|
102
|
+
let n = o(t);
|
|
103
|
+
if (a(e.key) !== n.key) return !1;
|
|
104
|
+
let r = /* @__PURE__ */ new Set();
|
|
105
|
+
e.ctrlKey && r.add("ctrl"), e.altKey && r.add("alt"), e.shiftKey && r.add("shift"), e.metaKey && r.add("meta");
|
|
106
|
+
let i = s.has(n.key), c = new Set(n.modifiers), l = new Set(r);
|
|
107
|
+
if (i && !c.has("shift") && l.has("shift") && l.delete("shift"), c.size !== l.size) return !1;
|
|
108
|
+
for (let e of c) if (!l.has(e)) return !1;
|
|
109
|
+
return !0;
|
|
110
|
+
}
|
|
111
|
+
function l(t) {
|
|
112
|
+
let n = o(t), r = e(), i = [];
|
|
113
|
+
n.modifiers.has("ctrl") && i.push(r === "mac" ? "⌃" : "Ctrl"), n.modifiers.has("alt") && i.push(r === "mac" ? "⌥" : "Alt"), n.modifiers.has("shift") && i.push(r === "mac" ? "⇧" : "Shift"), n.modifiers.has("meta") && i.push(r === "mac" ? "⌘" : "Win");
|
|
114
|
+
let a = {
|
|
115
|
+
" ": "Space",
|
|
116
|
+
enter: "↵",
|
|
117
|
+
esc: "Esc",
|
|
118
|
+
backspace: "⌫",
|
|
119
|
+
delete: "⌦",
|
|
120
|
+
tab: "⇥",
|
|
121
|
+
arrowup: "↑",
|
|
122
|
+
arrowdown: "↓",
|
|
123
|
+
arrowleft: "←",
|
|
124
|
+
arrowright: "→"
|
|
125
|
+
}[n.key] || n.key.toUpperCase();
|
|
126
|
+
return i.push(a), i.join(r === "mac" ? "" : "+");
|
|
127
|
+
}
|
|
128
|
+
function u(t) {
|
|
129
|
+
return e() === "mac" ? t.replace(/\bctrl\b/gi, "meta") : t.replace(/\b(meta|cmd)\b/gi, "ctrl");
|
|
130
|
+
}
|
|
131
|
+
function d(e) {
|
|
132
|
+
let t = e.target;
|
|
133
|
+
if (!t) return !1;
|
|
134
|
+
let n = t.tagName.toLowerCase();
|
|
135
|
+
return t.isContentEditable || n === "input" || n === "textarea" || n === "select";
|
|
136
|
+
}
|
|
137
|
+
function f(t) {
|
|
138
|
+
if (t.length === 0) return "";
|
|
139
|
+
if (t.length === 1) return l(t[0]);
|
|
140
|
+
let n = e();
|
|
141
|
+
for (let e of t) {
|
|
142
|
+
let t = u(e);
|
|
143
|
+
if (n === "mac" && t.includes("meta") || n !== "mac" && t.includes("ctrl")) return l(e);
|
|
144
|
+
}
|
|
145
|
+
return l(t[0]);
|
|
146
|
+
}
|
|
147
|
+
function p(t) {
|
|
148
|
+
let n = e(), r;
|
|
149
|
+
if (Array.isArray(t)) r = t;
|
|
150
|
+
else switch (n) {
|
|
151
|
+
case "mac":
|
|
152
|
+
r = t.mac || t.default || [];
|
|
153
|
+
break;
|
|
154
|
+
case "windows":
|
|
155
|
+
r = t.windows || t.default || [];
|
|
156
|
+
break;
|
|
157
|
+
case "linux":
|
|
158
|
+
r = t.linux || t.windows || t.default || [];
|
|
159
|
+
break;
|
|
160
|
+
default: r = t.default || t.windows || [];
|
|
161
|
+
}
|
|
162
|
+
return f(r);
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
export { e as detectPlatform, l as formatKeyCombo, p as getDisplayKeysForPlatform, f as getShortcutLabel, i as isMac, t as isMobileDevice, n as isTabletDevice, c as matchesKeyCombo, a as normalizeKey, u as normalizePlatformCombo, o as parseKeyCombo, r as shouldEnableKeyboardShortcuts, d as shouldIgnoreShortcut };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LogTransport, LogEntry, LogLevel } from './types';
|
|
2
|
+
export interface ConsoleTransportOptions {
|
|
3
|
+
level?: LogLevel;
|
|
4
|
+
useColors?: boolean;
|
|
5
|
+
useIcons?: boolean;
|
|
6
|
+
showTimestamp?: boolean;
|
|
7
|
+
showLogger?: boolean;
|
|
8
|
+
showContext?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class ConsoleTransport implements LogTransport {
|
|
11
|
+
readonly name = "console";
|
|
12
|
+
level: LogLevel;
|
|
13
|
+
private useColors;
|
|
14
|
+
private useIcons;
|
|
15
|
+
private showTimestamp;
|
|
16
|
+
private showLogger;
|
|
17
|
+
private showContext;
|
|
18
|
+
constructor(options?: ConsoleTransportOptions);
|
|
19
|
+
log(entry: LogEntry): void;
|
|
20
|
+
private getConsoleMethod;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ConsoleTransport.d.ts.map
|