@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,821 @@
|
|
|
1
|
+
import { Button as e } from "../../ui/button.js";
|
|
2
|
+
import { useGatewayClient as t } from "../graphql/GatewayContext.js";
|
|
3
|
+
import "../../shared-graphql.js";
|
|
4
|
+
import { useAuth as n } from "../providers/shell/AuthProvider.js";
|
|
5
|
+
import { useActiveContext as r } from "../providers/shell/ActiveContextProvider.js";
|
|
6
|
+
import { Badge as i } from "../../ui/badge.js";
|
|
7
|
+
import { Card as a, CardContent as o, CardHeader as s, CardTitle as ee } from "../../ui/card.js";
|
|
8
|
+
import { Textarea as te } from "../../ui/textarea.js";
|
|
9
|
+
import "../../ui.js";
|
|
10
|
+
import { useI18n as ne } from "../providers/shell/I18nProvider.js";
|
|
11
|
+
import { usePageConversationContext as re } from "../providers/shell/PageConversationContextProvider.js";
|
|
12
|
+
import "../../shared-providers-shell.js";
|
|
13
|
+
import { useEffect as c, useMemo as l, useRef as ie, useState as u } from "react";
|
|
14
|
+
import { ChevronDown as ae, ChevronUp as oe, ExternalLink as se, Loader2 as ce, MessageCircle as le, Paperclip as ue, Pencil as de, Pin as fe, PinOff as pe, Reply as me, SendHorizontal as he, SmilePlus as ge, Trash2 as _e, X as ve } from "lucide-react";
|
|
15
|
+
import { Fragment as ye, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
16
|
+
import { gql as p } from "@apollo/client";
|
|
17
|
+
import { useMutation as m, useQuery as h, useSubscription as g } from "@apollo/client/react";
|
|
18
|
+
import { useNavigate as be } from "react-router-dom";
|
|
19
|
+
//#region src/shared/components/ContextConversationWidget.tsx
|
|
20
|
+
var xe = p`
|
|
21
|
+
mutation ContextConversationWidget_SendContextMessage(
|
|
22
|
+
$input: SendContextConversationMessageInput!
|
|
23
|
+
) {
|
|
24
|
+
sendContextMessage(input: $input) {
|
|
25
|
+
success
|
|
26
|
+
message {
|
|
27
|
+
id
|
|
28
|
+
conversationId
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`, Se = p`
|
|
33
|
+
query ContextConversationWidget_GetConversation($id: ID!) {
|
|
34
|
+
conversation(id: $id) {
|
|
35
|
+
id
|
|
36
|
+
title
|
|
37
|
+
description
|
|
38
|
+
settings
|
|
39
|
+
updatedAt
|
|
40
|
+
features {
|
|
41
|
+
threads
|
|
42
|
+
reactions
|
|
43
|
+
mentions
|
|
44
|
+
}
|
|
45
|
+
currentUserMembership {
|
|
46
|
+
unreadCount
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`, Ce = p`
|
|
51
|
+
query ContextConversationWidget_GetContextConversations($first: Int) {
|
|
52
|
+
conversations(first: $first) {
|
|
53
|
+
edges {
|
|
54
|
+
node {
|
|
55
|
+
id
|
|
56
|
+
settings
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`, _ = p`
|
|
62
|
+
query ContextConversationWidget_GetMessages(
|
|
63
|
+
$conversationId: ID!
|
|
64
|
+
$first: Int
|
|
65
|
+
) {
|
|
66
|
+
messages(conversationId: $conversationId, first: $first) {
|
|
67
|
+
edges {
|
|
68
|
+
node {
|
|
69
|
+
id
|
|
70
|
+
conversationId
|
|
71
|
+
type
|
|
72
|
+
status
|
|
73
|
+
content
|
|
74
|
+
authorId
|
|
75
|
+
authorType
|
|
76
|
+
parentMessageId
|
|
77
|
+
threadRootId
|
|
78
|
+
threadLevel
|
|
79
|
+
isEdited
|
|
80
|
+
editedAt
|
|
81
|
+
isPinned
|
|
82
|
+
createdAt
|
|
83
|
+
updatedAt
|
|
84
|
+
replyCount
|
|
85
|
+
permissions {
|
|
86
|
+
canEdit
|
|
87
|
+
canDelete
|
|
88
|
+
canReact
|
|
89
|
+
canReply
|
|
90
|
+
canPin
|
|
91
|
+
}
|
|
92
|
+
reactions {
|
|
93
|
+
id
|
|
94
|
+
emoji
|
|
95
|
+
userId
|
|
96
|
+
createdAt
|
|
97
|
+
}
|
|
98
|
+
attachments {
|
|
99
|
+
id
|
|
100
|
+
fileId
|
|
101
|
+
fileName
|
|
102
|
+
fileSize
|
|
103
|
+
mimeType
|
|
104
|
+
downloadUrl
|
|
105
|
+
thumbnail
|
|
106
|
+
width
|
|
107
|
+
height
|
|
108
|
+
duration
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`, we = p`
|
|
115
|
+
subscription ContextConversationWidget_MessageAdded($conversationId: ID!) {
|
|
116
|
+
messageAdded(conversationId: $conversationId) {
|
|
117
|
+
id
|
|
118
|
+
conversationId
|
|
119
|
+
type
|
|
120
|
+
status
|
|
121
|
+
content
|
|
122
|
+
authorId
|
|
123
|
+
authorType
|
|
124
|
+
parentMessageId
|
|
125
|
+
threadRootId
|
|
126
|
+
threadLevel
|
|
127
|
+
isEdited
|
|
128
|
+
editedAt
|
|
129
|
+
isPinned
|
|
130
|
+
createdAt
|
|
131
|
+
updatedAt
|
|
132
|
+
replyCount
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`, Te = p`
|
|
136
|
+
subscription ContextConversationWidget_MessageUpdated($conversationId: ID!) {
|
|
137
|
+
messageUpdated(conversationId: $conversationId) {
|
|
138
|
+
id
|
|
139
|
+
conversationId
|
|
140
|
+
content
|
|
141
|
+
isEdited
|
|
142
|
+
editedAt
|
|
143
|
+
updatedAt
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`, Ee = p`
|
|
147
|
+
subscription ContextConversationWidget_MessageDeleted($conversationId: ID!) {
|
|
148
|
+
messageDeleted(conversationId: $conversationId) {
|
|
149
|
+
messageId
|
|
150
|
+
conversationId
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`, De = p`
|
|
154
|
+
mutation ContextConversationWidget_EditMessage($input: EditMessageInput!) {
|
|
155
|
+
editMessage(input: $input) {
|
|
156
|
+
id
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`, Oe = p`
|
|
160
|
+
mutation ContextConversationWidget_DeleteMessage($id: ID!, $hard: Boolean) {
|
|
161
|
+
deleteMessage(id: $id, hard: $hard) {
|
|
162
|
+
success
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`, ke = p`
|
|
166
|
+
mutation ContextConversationWidget_AddReaction(
|
|
167
|
+
$messageId: ID!
|
|
168
|
+
$emoji: String!
|
|
169
|
+
) {
|
|
170
|
+
addReaction(messageId: $messageId, emoji: $emoji) {
|
|
171
|
+
id
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
`, Ae = p`
|
|
175
|
+
mutation ContextConversationWidget_RemoveReaction(
|
|
176
|
+
$messageId: ID!
|
|
177
|
+
$emoji: String!
|
|
178
|
+
) {
|
|
179
|
+
removeReaction(messageId: $messageId, emoji: $emoji) {
|
|
180
|
+
success
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`, je = p`
|
|
184
|
+
mutation ContextConversationWidget_PinMessage($messageId: ID!) {
|
|
185
|
+
pinMessage(messageId: $messageId) {
|
|
186
|
+
id
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`, Me = p`
|
|
190
|
+
mutation ContextConversationWidget_UnpinMessage($messageId: ID!) {
|
|
191
|
+
unpinMessage(messageId: $messageId) {
|
|
192
|
+
id
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`, Ne = p`
|
|
196
|
+
mutation ContextConversationWidget_InitiateUpload(
|
|
197
|
+
$input: InitiateUploadInput!
|
|
198
|
+
) {
|
|
199
|
+
initiateUpload(input: $input) {
|
|
200
|
+
uploadUrl
|
|
201
|
+
session {
|
|
202
|
+
id
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
`, Pe = p`
|
|
207
|
+
mutation ContextConversationWidget_CompleteUpload(
|
|
208
|
+
$input: CompleteUploadInput!
|
|
209
|
+
) {
|
|
210
|
+
completeUpload(input: $input) {
|
|
211
|
+
fileId
|
|
212
|
+
file {
|
|
213
|
+
id
|
|
214
|
+
name
|
|
215
|
+
mimeType
|
|
216
|
+
size
|
|
217
|
+
downloadUrl
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`, Fe = [
|
|
222
|
+
"👍",
|
|
223
|
+
"❤️",
|
|
224
|
+
"🎉",
|
|
225
|
+
"👀",
|
|
226
|
+
"✅"
|
|
227
|
+
], Ie = 5 * 1024 * 1024;
|
|
228
|
+
function v(e) {
|
|
229
|
+
return e.trim().toLowerCase().replace(/[^a-z0-9:_/-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
230
|
+
}
|
|
231
|
+
function y(e) {
|
|
232
|
+
if (typeof e != "string" || !e.trim()) return null;
|
|
233
|
+
try {
|
|
234
|
+
let t = typeof window < "u" ? window.location.origin : "http://local";
|
|
235
|
+
return v(new URL(e, t).pathname);
|
|
236
|
+
} catch {
|
|
237
|
+
return v(e.split(/[?#]/)[0] ?? e);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function b(e) {
|
|
241
|
+
return typeof e == "string" && e.trim() ? e : null;
|
|
242
|
+
}
|
|
243
|
+
function Le(e) {
|
|
244
|
+
if (!e || typeof e != "object" || Array.isArray(e)) return null;
|
|
245
|
+
let t = e.metadata;
|
|
246
|
+
if (!t || typeof t != "object" || Array.isArray(t)) return null;
|
|
247
|
+
let n = t.sourceContext;
|
|
248
|
+
return n && typeof n == "object" && !Array.isArray(n) ? n : null;
|
|
249
|
+
}
|
|
250
|
+
function Re(e, t) {
|
|
251
|
+
if (!e) return !1;
|
|
252
|
+
let n = b(e.product);
|
|
253
|
+
if (n && n !== t.product) return !1;
|
|
254
|
+
let r = b(e.widgetKey);
|
|
255
|
+
if (r && r !== t.widgetKey) return !1;
|
|
256
|
+
if (b(e.threadKey) === t.threadKey) return !0;
|
|
257
|
+
let i = b(e.entityType), a = b(e.entityId);
|
|
258
|
+
if (i && a && i === t.entityType && a === t.entityId) return !0;
|
|
259
|
+
let o = [y(e.pagePath), y(e.contextHref)].filter((e) => !!e), s = [y(t.pagePath), y(t.contextHref)].filter((e) => !!e);
|
|
260
|
+
return o.some((e) => s.includes(e));
|
|
261
|
+
}
|
|
262
|
+
function ze(e) {
|
|
263
|
+
if (typeof e == "string") return e;
|
|
264
|
+
if (e && typeof e == "object") {
|
|
265
|
+
let t = e;
|
|
266
|
+
if (typeof t.text == "string") return t.text;
|
|
267
|
+
if (typeof t.markdown == "string") return t.markdown;
|
|
268
|
+
if (typeof t.html == "string") return t.html;
|
|
269
|
+
}
|
|
270
|
+
return "";
|
|
271
|
+
}
|
|
272
|
+
function Be(e) {
|
|
273
|
+
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
274
|
+
}
|
|
275
|
+
function Ve(e) {
|
|
276
|
+
return new Date(e).toLocaleTimeString([], {
|
|
277
|
+
hour: "2-digit",
|
|
278
|
+
minute: "2-digit"
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
function x({ className: p, widgetKey: y }) {
|
|
282
|
+
let { t: x } = ne(), { workspaceId: S } = r(), C = n(), w = re(), T = t("workspace"), E = be(), [D, O] = u(null), [He, k] = u(null), [A, j] = u(""), [M, Ue] = u(() => typeof window < "u" ? window.innerWidth < 768 : !1), [N, P] = u(null), [F, I] = u(null), [L, R] = u(""), [z, We] = u(!1), [B, V] = u([]), [Ge, H] = u(null), [Ke, qe] = u([]), [Je, Ye] = u(!1), U = ie(null), Xe = ie(null), W = l(() => (e, t) => {
|
|
283
|
+
let n = x(e);
|
|
284
|
+
return n === e ? t : n;
|
|
285
|
+
}, [x]), G = C.user?.id ?? null, K = y ?? w.widgetKey ?? "default", q = T, J = l(() => {
|
|
286
|
+
let e = v(w.entityType && w.entityId ? `${w.entityType}:${w.entityId}` : w.pagePath || w.contextHref), t = v(K);
|
|
287
|
+
return {
|
|
288
|
+
...w,
|
|
289
|
+
widgetKey: K,
|
|
290
|
+
threadKey: `${w.product}:${S}:${e}:widget:${t}`
|
|
291
|
+
};
|
|
292
|
+
}, [
|
|
293
|
+
K,
|
|
294
|
+
w,
|
|
295
|
+
S
|
|
296
|
+
]);
|
|
297
|
+
c(() => {
|
|
298
|
+
O(null), k(null), P(null), I(null), R(""), H(null);
|
|
299
|
+
}, [J.threadKey]);
|
|
300
|
+
let [Ze] = m(De, { client: q }), [Qe] = m(Oe, { client: q }), [$e] = m(ke, { client: q }), [et] = m(Ae, { client: q }), [tt] = m(je, { client: q }), [nt] = m(Me, { client: q }), [rt] = m(Ne, { client: T }), [it] = m(Pe, { client: T }), Y = h(Se, {
|
|
301
|
+
client: q,
|
|
302
|
+
variables: { id: D },
|
|
303
|
+
skip: !D,
|
|
304
|
+
pollInterval: 3e5,
|
|
305
|
+
fetchPolicy: "cache-and-network"
|
|
306
|
+
}), at = h(Ce, {
|
|
307
|
+
client: q,
|
|
308
|
+
variables: { first: 100 },
|
|
309
|
+
skip: !S || !G || !!D,
|
|
310
|
+
fetchPolicy: "cache-and-network"
|
|
311
|
+
}), X = h(_, {
|
|
312
|
+
client: q,
|
|
313
|
+
variables: {
|
|
314
|
+
conversationId: D,
|
|
315
|
+
first: 100
|
|
316
|
+
},
|
|
317
|
+
skip: !D,
|
|
318
|
+
fetchPolicy: "cache-and-network"
|
|
319
|
+
});
|
|
320
|
+
g(we, {
|
|
321
|
+
client: q,
|
|
322
|
+
variables: { conversationId: D || "" },
|
|
323
|
+
skip: !D,
|
|
324
|
+
onData: ({ data: e, client: t }) => {
|
|
325
|
+
e.data?.messageAdded && t.refetchQueries({ include: [_] });
|
|
326
|
+
}
|
|
327
|
+
}), g(Te, {
|
|
328
|
+
client: q,
|
|
329
|
+
variables: { conversationId: D || "" },
|
|
330
|
+
skip: !D
|
|
331
|
+
}), g(Ee, {
|
|
332
|
+
client: q,
|
|
333
|
+
variables: { conversationId: D || "" },
|
|
334
|
+
skip: !D,
|
|
335
|
+
onData: ({ client: e }) => {
|
|
336
|
+
e.refetchQueries({ include: [_] });
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
let ot = (Y.data?.conversation?.settings ?? {}).metadata?.sourceContext, st = typeof ot?.contextHref == "string" ? ot.contextHref : J.contextHref, Z = l(() => (X.data?.messages?.edges ?? []).map((e) => {
|
|
340
|
+
let t = e.node;
|
|
341
|
+
return {
|
|
342
|
+
id: String(t.id ?? ""),
|
|
343
|
+
conversationId: String(t.conversationId ?? ""),
|
|
344
|
+
content: ze(t.content),
|
|
345
|
+
authorId: String(t.authorId ?? ""),
|
|
346
|
+
parentMessageId: t.parentMessageId ? String(t.parentMessageId) : void 0,
|
|
347
|
+
threadLevel: Number(t.threadLevel ?? 0),
|
|
348
|
+
replyCount: Number(t.replyCount ?? 0),
|
|
349
|
+
createdAt: String(t.createdAt ?? (/* @__PURE__ */ new Date()).toISOString()),
|
|
350
|
+
updatedAt: String(t.updatedAt ?? (/* @__PURE__ */ new Date()).toISOString()),
|
|
351
|
+
isEdited: !!t.isEdited,
|
|
352
|
+
isPinned: !!t.isPinned,
|
|
353
|
+
permissions: {
|
|
354
|
+
canEdit: !!t.permissions?.canEdit,
|
|
355
|
+
canDelete: !!t.permissions?.canDelete,
|
|
356
|
+
canReact: !!(t.permissions?.canReact ?? !0),
|
|
357
|
+
canReply: !!(t.permissions?.canReply ?? !0),
|
|
358
|
+
canPin: !!t.permissions?.canPin
|
|
359
|
+
},
|
|
360
|
+
reactions: (t.reactions ?? []).map((e) => ({
|
|
361
|
+
id: String(e.id ?? ""),
|
|
362
|
+
emoji: String(e.emoji ?? ""),
|
|
363
|
+
userId: String(e.userId ?? "")
|
|
364
|
+
})),
|
|
365
|
+
attachments: (t.attachments ?? []).map((e) => ({
|
|
366
|
+
id: String(e.id ?? ""),
|
|
367
|
+
fileId: String(e.fileId ?? ""),
|
|
368
|
+
fileName: String(e.fileName ?? e.fileId ?? "Attachment"),
|
|
369
|
+
fileSize: Number(e.fileSize ?? 0),
|
|
370
|
+
mimeType: String(e.mimeType ?? "application/octet-stream"),
|
|
371
|
+
downloadUrl: e.downloadUrl ? String(e.downloadUrl) : null,
|
|
372
|
+
thumbnail: e.thumbnail ? String(e.thumbnail) : null
|
|
373
|
+
}))
|
|
374
|
+
};
|
|
375
|
+
}), [X.data]);
|
|
376
|
+
c(() => {
|
|
377
|
+
if (D) return;
|
|
378
|
+
let e = (at.data?.conversations?.edges ?? []).find((e) => Re(Le(e.node?.settings), J)), t = e?.node?.id;
|
|
379
|
+
t && (O(t), k(b(Le(e.node?.settings)?.threadKey) ?? J.threadKey));
|
|
380
|
+
}, [
|
|
381
|
+
at.data,
|
|
382
|
+
D,
|
|
383
|
+
J
|
|
384
|
+
]);
|
|
385
|
+
let ct = l(() => {
|
|
386
|
+
let e = /* @__PURE__ */ new Map();
|
|
387
|
+
G && e.set(G, {
|
|
388
|
+
id: G,
|
|
389
|
+
label: C.user?.name || C.user?.email || G
|
|
390
|
+
});
|
|
391
|
+
for (let t of Z) e.has(t.authorId) || e.set(t.authorId, {
|
|
392
|
+
id: t.authorId,
|
|
393
|
+
label: t.authorId
|
|
394
|
+
});
|
|
395
|
+
return Array.from(e.values());
|
|
396
|
+
}, [
|
|
397
|
+
C.user?.email,
|
|
398
|
+
C.user?.name,
|
|
399
|
+
G,
|
|
400
|
+
Z
|
|
401
|
+
]), Q = l(() => A.match(/(^|\s)@([^\s@]*)$/)?.[2]?.toLowerCase() ?? null, [A]), lt = l(() => Q ? ct.filter((e) => `${e.label} ${e.id}`.toLowerCase().includes(Q)) : [], [Q, ct]), $ = l(() => {
|
|
402
|
+
let e = Y.data?.conversation?.features;
|
|
403
|
+
return {
|
|
404
|
+
threads: !!(e?.threads ?? !0),
|
|
405
|
+
reactions: !!(e?.reactions ?? !0),
|
|
406
|
+
mentions: !!(e?.mentions ?? !0)
|
|
407
|
+
};
|
|
408
|
+
}, [Y.data]);
|
|
409
|
+
if (c(() => {
|
|
410
|
+
Xe.current?.scrollIntoView({ behavior: "smooth" });
|
|
411
|
+
}, [Z.length, M]), !G) return null;
|
|
412
|
+
if (!S) return /* @__PURE__ */ f(a, {
|
|
413
|
+
className: p,
|
|
414
|
+
children: [/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(ee, {
|
|
415
|
+
className: "flex items-center gap-2 text-base",
|
|
416
|
+
children: [/* @__PURE__ */ d(le, { className: "h-4 w-4" }), W("conversationWidget.title", "Page conversation")]
|
|
417
|
+
}) }), /* @__PURE__ */ d(o, { children: /* @__PURE__ */ d("p", {
|
|
418
|
+
className: "text-sm text-muted-foreground",
|
|
419
|
+
children: W("conversationWidget.noWorkspace", "Select a workspace to enable contextual conversations on this page.")
|
|
420
|
+
}) })]
|
|
421
|
+
});
|
|
422
|
+
let ut = async (e) => {
|
|
423
|
+
if (!(!e || e.length === 0)) {
|
|
424
|
+
We(!0), H(null);
|
|
425
|
+
try {
|
|
426
|
+
let t = [];
|
|
427
|
+
for (let n of Array.from(e)) {
|
|
428
|
+
if (n.size > Ie) throw Error(`${n.name} exceeds the 5 MB widget upload limit.`);
|
|
429
|
+
let e = n.name.includes(".") ? n.name.split(".").pop() ?? "bin" : "bin", r = await rt({ variables: { input: {
|
|
430
|
+
fileName: n.name,
|
|
431
|
+
fileSize: n.size,
|
|
432
|
+
mimeType: n.type || "application/octet-stream",
|
|
433
|
+
extension: e,
|
|
434
|
+
visibility: "PRIVATE"
|
|
435
|
+
} } }), i = r.data?.initiateUpload?.uploadUrl, a = r.data?.initiateUpload?.session?.id;
|
|
436
|
+
if (!i || !a) throw Error(`Unable to create an upload session for ${n.name}`);
|
|
437
|
+
if (!(await fetch(i, {
|
|
438
|
+
method: "PUT",
|
|
439
|
+
body: n,
|
|
440
|
+
headers: { "Content-Type": n.type || "application/octet-stream" }
|
|
441
|
+
})).ok) throw Error(`Upload failed for ${n.name}`);
|
|
442
|
+
let o = (await it({ variables: { input: { sessionId: a } } })).data?.completeUpload;
|
|
443
|
+
if (!o?.fileId) throw Error(`Failed to finalize ${n.name}`);
|
|
444
|
+
t.push({
|
|
445
|
+
fileId: o.fileId,
|
|
446
|
+
fileName: o.file?.name ?? n.name,
|
|
447
|
+
fileSize: Number(o.file?.size ?? n.size),
|
|
448
|
+
mimeType: o.file?.mimeType ?? n.type,
|
|
449
|
+
downloadUrl: o.file?.downloadUrl ?? null
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
V((e) => [...e, ...t]);
|
|
453
|
+
} catch (e) {
|
|
454
|
+
H(e instanceof Error ? e.message : "File upload failed");
|
|
455
|
+
} finally {
|
|
456
|
+
We(!1), U.current && (U.current.value = "");
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}, dt = async () => {
|
|
460
|
+
if (!(!S || !A.trim())) {
|
|
461
|
+
H(null), Ye(!0);
|
|
462
|
+
try {
|
|
463
|
+
let e = await q.mutate({
|
|
464
|
+
mutation: xe,
|
|
465
|
+
errorPolicy: "none",
|
|
466
|
+
variables: { input: {
|
|
467
|
+
workspaceId: S,
|
|
468
|
+
sourceContext: {
|
|
469
|
+
...J,
|
|
470
|
+
threadKey: He ?? J.threadKey
|
|
471
|
+
},
|
|
472
|
+
content: { text: A.trim() },
|
|
473
|
+
type: "TEXT",
|
|
474
|
+
parentMessageId: N?.id,
|
|
475
|
+
mentionUserIds: Array.from(new Set(Ke)),
|
|
476
|
+
attachments: B.map((e) => ({
|
|
477
|
+
fileId: e.fileId,
|
|
478
|
+
fileName: e.fileName,
|
|
479
|
+
fileSize: e.fileSize,
|
|
480
|
+
mimeType: e.mimeType,
|
|
481
|
+
downloadUrl: e.downloadUrl
|
|
482
|
+
}))
|
|
483
|
+
} }
|
|
484
|
+
});
|
|
485
|
+
if (!e.data?.sendContextMessage?.success) throw Error("Failed to send message");
|
|
486
|
+
let t = e.data.sendContextMessage.message?.conversationId;
|
|
487
|
+
t && (O(String(t)), k(He ?? J.threadKey)), j(""), P(null), V([]), qe([]), D && (await X.refetch(), await Y.refetch());
|
|
488
|
+
} catch (e) {
|
|
489
|
+
H(e instanceof Error ? e.message : "Failed to send message");
|
|
490
|
+
} finally {
|
|
491
|
+
Ye(!1);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}, ft = (e) => {
|
|
495
|
+
j((t) => t.replace(/(^|\s)@([^\s@]*)$/, `$1@${e.label} `)), qe((t) => Array.from(new Set([...t, e.id])));
|
|
496
|
+
}, pt = async () => {
|
|
497
|
+
!F || !L.trim() || (await Ze({ variables: { input: {
|
|
498
|
+
id: F,
|
|
499
|
+
content: { text: L.trim() }
|
|
500
|
+
} } }), I(null), R(""), await X.refetch());
|
|
501
|
+
}, mt = async (e, t) => {
|
|
502
|
+
e.reactions.some((e) => e.emoji === t && e.userId === G) ? await et({ variables: {
|
|
503
|
+
messageId: e.id,
|
|
504
|
+
emoji: t
|
|
505
|
+
} }) : await $e({ variables: {
|
|
506
|
+
messageId: e.id,
|
|
507
|
+
emoji: t
|
|
508
|
+
} }), await X.refetch();
|
|
509
|
+
}, ht = async (e) => {
|
|
510
|
+
e.isPinned ? await nt({ variables: { messageId: e.id } }) : await tt({ variables: { messageId: e.id } }), await X.refetch();
|
|
511
|
+
};
|
|
512
|
+
return /* @__PURE__ */ f(a, {
|
|
513
|
+
className: p,
|
|
514
|
+
children: [/* @__PURE__ */ f(s, {
|
|
515
|
+
className: "space-y-3",
|
|
516
|
+
children: [/* @__PURE__ */ f("div", {
|
|
517
|
+
className: "flex flex-col gap-3 md:flex-row md:items-start md:justify-between",
|
|
518
|
+
children: [/* @__PURE__ */ f("div", {
|
|
519
|
+
className: "space-y-1",
|
|
520
|
+
children: [/* @__PURE__ */ f(ee, {
|
|
521
|
+
className: "flex items-center gap-2 text-base",
|
|
522
|
+
children: [/* @__PURE__ */ d(le, { className: "h-4 w-4" }), Y.data?.conversation?.title || w.contextTitle || W("conversationWidget.title", "Page conversation")]
|
|
523
|
+
}), /* @__PURE__ */ d("p", {
|
|
524
|
+
className: "text-sm text-muted-foreground truncate whitespace-nowrap overflow-hidden max-w-full",
|
|
525
|
+
title: w.entityType && w.entityId ? `${w.entityType} · ${w.entityId}` : w.pagePath,
|
|
526
|
+
children: w.entityType && w.entityId ? `${w.entityType} · ${w.entityId}` : w.pagePath
|
|
527
|
+
})]
|
|
528
|
+
}), /* @__PURE__ */ f("div", {
|
|
529
|
+
className: "flex flex-wrap items-center gap-2",
|
|
530
|
+
children: [
|
|
531
|
+
/* @__PURE__ */ f(e, {
|
|
532
|
+
type: "button",
|
|
533
|
+
variant: "outline",
|
|
534
|
+
size: "sm",
|
|
535
|
+
onClick: () => {
|
|
536
|
+
try {
|
|
537
|
+
let e = new URL(st);
|
|
538
|
+
E(`${e.pathname}${e.search}${e.hash}`);
|
|
539
|
+
} catch {
|
|
540
|
+
E(w.pagePath);
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
children: [/* @__PURE__ */ d(se, { className: "mr-2 h-4 w-4" }), W("conversationWidget.openContext", "Open context")]
|
|
544
|
+
}),
|
|
545
|
+
/* @__PURE__ */ d(e, {
|
|
546
|
+
type: "button",
|
|
547
|
+
variant: "outline",
|
|
548
|
+
size: "sm",
|
|
549
|
+
onClick: () => {
|
|
550
|
+
D && E(`/conversations/${D}`);
|
|
551
|
+
},
|
|
552
|
+
disabled: !D,
|
|
553
|
+
children: W("conversationWidget.openInbox", "Open in conversations")
|
|
554
|
+
}),
|
|
555
|
+
/* @__PURE__ */ d(e, {
|
|
556
|
+
type: "button",
|
|
557
|
+
variant: "ghost",
|
|
558
|
+
size: "icon",
|
|
559
|
+
onClick: () => Ue((e) => !e),
|
|
560
|
+
"aria-label": M ? W("conversationWidget.expand", "Expand page conversation") : W("conversationWidget.collapse", "Collapse page conversation"),
|
|
561
|
+
children: d(M ? ae : oe, { className: "h-4 w-4" })
|
|
562
|
+
})
|
|
563
|
+
]
|
|
564
|
+
})]
|
|
565
|
+
}), /* @__PURE__ */ f("div", {
|
|
566
|
+
className: "flex flex-wrap items-center gap-2",
|
|
567
|
+
children: [
|
|
568
|
+
/* @__PURE__ */ d(i, {
|
|
569
|
+
variant: "secondary",
|
|
570
|
+
children: J.widgetKey
|
|
571
|
+
}),
|
|
572
|
+
J.activeTab ? /* @__PURE__ */ d(i, {
|
|
573
|
+
variant: "outline",
|
|
574
|
+
children: J.activeTab
|
|
575
|
+
}) : null,
|
|
576
|
+
Y.data?.conversation?.currentUserMembership?.unreadCount ? /* @__PURE__ */ f(i, { children: [
|
|
577
|
+
Y.data.conversation.currentUserMembership.unreadCount,
|
|
578
|
+
" ",
|
|
579
|
+
"unread"
|
|
580
|
+
] }) : null
|
|
581
|
+
]
|
|
582
|
+
})]
|
|
583
|
+
}), !M && /* @__PURE__ */ f(o, {
|
|
584
|
+
className: "space-y-4",
|
|
585
|
+
children: [
|
|
586
|
+
Ge && /* @__PURE__ */ d("div", {
|
|
587
|
+
className: "rounded-md border border-destructive/20 bg-destructive/10 px-3 py-2 text-sm text-destructive",
|
|
588
|
+
children: Ge
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ d("div", {
|
|
591
|
+
className: "max-h-[24rem] overflow-y-auto rounded-lg border border-border bg-muted/20",
|
|
592
|
+
children: /* @__PURE__ */ f("div", {
|
|
593
|
+
className: "space-y-3 p-4",
|
|
594
|
+
children: [Z.length === 0 ? /* @__PURE__ */ d("div", {
|
|
595
|
+
className: "rounded-lg border border-dashed border-border bg-background/70 px-4 py-5 text-sm text-muted-foreground",
|
|
596
|
+
children: W("conversationWidget.empty", "No messages yet. Start the conversation in context.")
|
|
597
|
+
}) : Z.map((t) => {
|
|
598
|
+
let n = t.authorId === G;
|
|
599
|
+
return /* @__PURE__ */ d("div", {
|
|
600
|
+
className: `flex ${n ? "justify-end" : "justify-start"}`,
|
|
601
|
+
children: /* @__PURE__ */ f("div", {
|
|
602
|
+
className: `w-full max-w-[92%] rounded-xl border px-3 py-2 text-sm shadow-sm ${n ? "border-primary/20 bg-primary/5" : "border-border bg-background"}`,
|
|
603
|
+
children: [
|
|
604
|
+
/* @__PURE__ */ f("div", {
|
|
605
|
+
className: "mb-1 flex items-center justify-between gap-2",
|
|
606
|
+
children: [/* @__PURE__ */ f("div", {
|
|
607
|
+
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
608
|
+
children: [
|
|
609
|
+
/* @__PURE__ */ d("span", {
|
|
610
|
+
className: "font-medium text-foreground",
|
|
611
|
+
children: n ? W("conversationWidget.you", "You") : t.authorId
|
|
612
|
+
}),
|
|
613
|
+
/* @__PURE__ */ d("span", { children: Ve(t.createdAt) }),
|
|
614
|
+
t.isEdited ? /* @__PURE__ */ d("span", { children: W("conversationWidget.edited", "edited") }) : null,
|
|
615
|
+
t.isPinned ? /* @__PURE__ */ d(fe, { className: "h-3 w-3" }) : null
|
|
616
|
+
]
|
|
617
|
+
}), /* @__PURE__ */ d("div", {
|
|
618
|
+
className: "flex items-center gap-1",
|
|
619
|
+
children: $.reactions && t.permissions.canReact ? Fe.map((e) => {
|
|
620
|
+
let n = t.reactions.filter((t) => t.emoji === e).length;
|
|
621
|
+
return /* @__PURE__ */ f("button", {
|
|
622
|
+
type: "button",
|
|
623
|
+
className: `rounded-full px-2 py-1 text-xs transition-colors ${t.reactions.some((t) => t.emoji === e && t.userId === G) ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-muted/80"}`,
|
|
624
|
+
onClick: () => void mt(t, e),
|
|
625
|
+
children: [e, n > 0 ? ` ${n}` : ""]
|
|
626
|
+
}, `${t.id}-${e}`);
|
|
627
|
+
}) : null
|
|
628
|
+
})]
|
|
629
|
+
}),
|
|
630
|
+
F === t.id ? /* @__PURE__ */ f("div", {
|
|
631
|
+
className: "space-y-2",
|
|
632
|
+
children: [/* @__PURE__ */ d(te, {
|
|
633
|
+
value: L,
|
|
634
|
+
onChange: (e) => R(e.target.value),
|
|
635
|
+
rows: 3
|
|
636
|
+
}), /* @__PURE__ */ f("div", {
|
|
637
|
+
className: "flex items-center justify-end gap-2",
|
|
638
|
+
children: [/* @__PURE__ */ d(e, {
|
|
639
|
+
type: "button",
|
|
640
|
+
variant: "outline",
|
|
641
|
+
size: "sm",
|
|
642
|
+
onClick: () => I(null),
|
|
643
|
+
children: W("conversationWidget.cancel", "Cancel")
|
|
644
|
+
}), /* @__PURE__ */ d(e, {
|
|
645
|
+
type: "button",
|
|
646
|
+
size: "sm",
|
|
647
|
+
onClick: () => void pt(),
|
|
648
|
+
children: W("conversationWidget.save", "Save")
|
|
649
|
+
})]
|
|
650
|
+
})]
|
|
651
|
+
}) : /* @__PURE__ */ f(ye, { children: [t.parentMessageId ? /* @__PURE__ */ d("p", {
|
|
652
|
+
className: "mb-1 text-xs text-muted-foreground",
|
|
653
|
+
children: W("conversationWidget.replyingInThread", "Reply in thread")
|
|
654
|
+
}) : null, /* @__PURE__ */ d("p", {
|
|
655
|
+
className: "whitespace-pre-wrap break-words text-sm text-foreground",
|
|
656
|
+
children: t.content
|
|
657
|
+
})] }),
|
|
658
|
+
t.attachments.length > 0 ? /* @__PURE__ */ d("div", {
|
|
659
|
+
className: "mt-3 flex flex-col gap-2",
|
|
660
|
+
children: t.attachments.map((e) => /* @__PURE__ */ f("a", {
|
|
661
|
+
href: e.downloadUrl ?? "#",
|
|
662
|
+
target: e.downloadUrl ? "_blank" : void 0,
|
|
663
|
+
rel: e.downloadUrl ? "noreferrer" : void 0,
|
|
664
|
+
className: "flex items-center justify-between gap-2 rounded-md border border-border bg-muted/40 px-3 py-2 text-xs",
|
|
665
|
+
children: [/* @__PURE__ */ d("span", {
|
|
666
|
+
className: "truncate",
|
|
667
|
+
children: e.fileName
|
|
668
|
+
}), /* @__PURE__ */ d("span", {
|
|
669
|
+
className: "text-muted-foreground",
|
|
670
|
+
children: Be(e.fileSize)
|
|
671
|
+
})]
|
|
672
|
+
}, e.id))
|
|
673
|
+
}) : null,
|
|
674
|
+
/* @__PURE__ */ f("div", {
|
|
675
|
+
className: "mt-3 flex flex-wrap items-center gap-2 text-xs",
|
|
676
|
+
children: [
|
|
677
|
+
$.threads && t.permissions.canReply ? /* @__PURE__ */ f(e, {
|
|
678
|
+
type: "button",
|
|
679
|
+
variant: "ghost",
|
|
680
|
+
size: "sm",
|
|
681
|
+
onClick: () => P(t),
|
|
682
|
+
children: [/* @__PURE__ */ d(me, { className: "mr-2 h-3 w-3" }), W("conversationWidget.reply", "Reply")]
|
|
683
|
+
}) : null,
|
|
684
|
+
t.permissions.canEdit && F !== t.id ? /* @__PURE__ */ f(e, {
|
|
685
|
+
type: "button",
|
|
686
|
+
variant: "ghost",
|
|
687
|
+
size: "sm",
|
|
688
|
+
onClick: () => {
|
|
689
|
+
I(t.id), R(t.content);
|
|
690
|
+
},
|
|
691
|
+
children: [/* @__PURE__ */ d(de, { className: "mr-2 h-3 w-3" }), W("conversationWidget.edit", "Edit")]
|
|
692
|
+
}) : null,
|
|
693
|
+
t.permissions.canDelete ? /* @__PURE__ */ f(e, {
|
|
694
|
+
type: "button",
|
|
695
|
+
variant: "ghost",
|
|
696
|
+
size: "sm",
|
|
697
|
+
onClick: async () => {
|
|
698
|
+
await Qe({ variables: {
|
|
699
|
+
id: t.id,
|
|
700
|
+
hard: !1
|
|
701
|
+
} }), await X.refetch();
|
|
702
|
+
},
|
|
703
|
+
children: [/* @__PURE__ */ d(_e, { className: "mr-2 h-3 w-3" }), W("conversationWidget.delete", "Delete")]
|
|
704
|
+
}) : null,
|
|
705
|
+
t.permissions.canPin ? /* @__PURE__ */ f(e, {
|
|
706
|
+
type: "button",
|
|
707
|
+
variant: "ghost",
|
|
708
|
+
size: "sm",
|
|
709
|
+
onClick: () => void ht(t),
|
|
710
|
+
children: [t.isPinned ? /* @__PURE__ */ d(pe, { className: "mr-2 h-3 w-3" }) : /* @__PURE__ */ d(fe, { className: "mr-2 h-3 w-3" }), t.isPinned ? W("conversationWidget.unpin", "Unpin") : W("conversationWidget.pin", "Pin")]
|
|
711
|
+
}) : null
|
|
712
|
+
]
|
|
713
|
+
})
|
|
714
|
+
]
|
|
715
|
+
})
|
|
716
|
+
}, t.id);
|
|
717
|
+
}), /* @__PURE__ */ d("div", { ref: Xe })]
|
|
718
|
+
})
|
|
719
|
+
}),
|
|
720
|
+
N ? /* @__PURE__ */ f("div", {
|
|
721
|
+
className: "flex items-center justify-between gap-2 rounded-md border border-border bg-muted/40 px-3 py-2 text-sm",
|
|
722
|
+
children: [/* @__PURE__ */ f("div", {
|
|
723
|
+
className: "min-w-0",
|
|
724
|
+
children: [/* @__PURE__ */ f("p", {
|
|
725
|
+
className: "text-xs text-muted-foreground",
|
|
726
|
+
children: [
|
|
727
|
+
W("conversationWidget.replyingTo", "Replying to"),
|
|
728
|
+
" ",
|
|
729
|
+
N.authorId
|
|
730
|
+
]
|
|
731
|
+
}), /* @__PURE__ */ d("p", {
|
|
732
|
+
className: "truncate",
|
|
733
|
+
children: N.content
|
|
734
|
+
})]
|
|
735
|
+
}), /* @__PURE__ */ d(e, {
|
|
736
|
+
type: "button",
|
|
737
|
+
variant: "ghost",
|
|
738
|
+
size: "icon",
|
|
739
|
+
onClick: () => P(null),
|
|
740
|
+
children: /* @__PURE__ */ d(ve, { className: "h-4 w-4" })
|
|
741
|
+
})]
|
|
742
|
+
}) : null,
|
|
743
|
+
B.length > 0 ? /* @__PURE__ */ d("div", {
|
|
744
|
+
className: "flex flex-wrap gap-2",
|
|
745
|
+
children: B.map((e) => /* @__PURE__ */ f(i, {
|
|
746
|
+
variant: "secondary",
|
|
747
|
+
className: "gap-2 py-1.5",
|
|
748
|
+
children: [
|
|
749
|
+
/* @__PURE__ */ d(ue, { className: "h-3 w-3" }),
|
|
750
|
+
/* @__PURE__ */ d("span", {
|
|
751
|
+
className: "max-w-[14rem] truncate",
|
|
752
|
+
children: e.fileName
|
|
753
|
+
}),
|
|
754
|
+
/* @__PURE__ */ d("button", {
|
|
755
|
+
type: "button",
|
|
756
|
+
onClick: () => V((t) => t.filter((t) => t.fileId !== e.fileId)),
|
|
757
|
+
children: /* @__PURE__ */ d(ve, { className: "h-3 w-3" })
|
|
758
|
+
})
|
|
759
|
+
]
|
|
760
|
+
}, e.fileId))
|
|
761
|
+
}) : null,
|
|
762
|
+
/* @__PURE__ */ f("div", {
|
|
763
|
+
className: "space-y-3 rounded-lg border border-border bg-background/80 p-3",
|
|
764
|
+
children: [
|
|
765
|
+
/* @__PURE__ */ d(te, {
|
|
766
|
+
value: A,
|
|
767
|
+
onChange: (e) => j(e.target.value),
|
|
768
|
+
rows: 3,
|
|
769
|
+
placeholder: W("conversationWidget.placeholder", "Discuss this page in context…"),
|
|
770
|
+
className: "border-0 bg-transparent px-0 shadow-none focus-visible:ring-0"
|
|
771
|
+
}),
|
|
772
|
+
$.mentions && lt.length > 0 ? /* @__PURE__ */ f("div", {
|
|
773
|
+
className: "flex flex-wrap gap-2 rounded-md border border-border bg-muted/20 p-2",
|
|
774
|
+
children: [/* @__PURE__ */ d(ge, { className: "mt-0.5 h-4 w-4 text-muted-foreground" }), lt.map((t) => /* @__PURE__ */ f(e, {
|
|
775
|
+
type: "button",
|
|
776
|
+
variant: "outline",
|
|
777
|
+
size: "sm",
|
|
778
|
+
onClick: () => ft(t),
|
|
779
|
+
children: ["@", t.label]
|
|
780
|
+
}, t.id))]
|
|
781
|
+
}) : null,
|
|
782
|
+
/* @__PURE__ */ f("div", {
|
|
783
|
+
className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between",
|
|
784
|
+
children: [/* @__PURE__ */ f("div", {
|
|
785
|
+
className: "flex flex-wrap items-center gap-2",
|
|
786
|
+
children: [
|
|
787
|
+
/* @__PURE__ */ d("input", {
|
|
788
|
+
ref: U,
|
|
789
|
+
type: "file",
|
|
790
|
+
multiple: !0,
|
|
791
|
+
className: "hidden",
|
|
792
|
+
onChange: (e) => void ut(e.target.files)
|
|
793
|
+
}),
|
|
794
|
+
/* @__PURE__ */ f(e, {
|
|
795
|
+
type: "button",
|
|
796
|
+
variant: "outline",
|
|
797
|
+
size: "sm",
|
|
798
|
+
onClick: () => U.current?.click(),
|
|
799
|
+
disabled: z,
|
|
800
|
+
children: [z ? /* @__PURE__ */ d(ce, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ d(ue, { className: "mr-2 h-4 w-4" }), W("conversationWidget.attach", "Attach files")]
|
|
801
|
+
}),
|
|
802
|
+
$.mentions ? /* @__PURE__ */ d(i, {
|
|
803
|
+
variant: "outline",
|
|
804
|
+
children: W("conversationWidget.mentionsHint", "Type @ to mention participants")
|
|
805
|
+
}) : null
|
|
806
|
+
]
|
|
807
|
+
}), /* @__PURE__ */ f(e, {
|
|
808
|
+
type: "button",
|
|
809
|
+
onClick: () => void dt(),
|
|
810
|
+
disabled: Je || z || !A.trim(),
|
|
811
|
+
children: [Je ? /* @__PURE__ */ d(ce, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ d(he, { className: "mr-2 h-4 w-4" }), W("conversationWidget.send", "Send")]
|
|
812
|
+
})]
|
|
813
|
+
})
|
|
814
|
+
]
|
|
815
|
+
})
|
|
816
|
+
]
|
|
817
|
+
})]
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
//#endregion
|
|
821
|
+
export { x as ContextConversationWidget };
|