@bpinternal/integration-hub 0.7.0 → 0.8.1

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.
@@ -66,6 +66,7 @@ export interface IntegrationHubFilterMenuLabels {
66
66
  export interface IntegrationHubBodyProps<TIntegration extends IntegrationHubItem> {
67
67
  isOpen?: boolean;
68
68
  view: IntegrationHubView;
69
+ header?: ReactNode;
69
70
  searchInput: string;
70
71
  searchTerm?: string;
71
72
  onSearchInputChange: (value: string) => void;
@@ -1,2 +1,2 @@
1
1
  import type { IntegrationHubBodyProps, IntegrationHubItem } from '../core/types.js';
2
- export declare const IntegrationHubBody: <TIntegration extends IntegrationHubItem>({ isOpen, view, searchInput, searchTerm, onSearchInputChange, selectedCategory: controlledSelectedCategory, onSelectedCategoryChange, selectedIntegrationId, hubIntegrations, sidebarIntegrations, installedIntegrations, isHubLoading, isInstalledLoading, filterMenu, categories, bannerSlides, bannerIconUrl, onBannerClick, onCategoryClick, noResultsDocumentationLink, renderIntegrationCard, renderInstalledIntegrations, renderIntegrationDetails, noResultsContent }: IntegrationHubBodyProps<TIntegration>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const IntegrationHubBody: <TIntegration extends IntegrationHubItem>({ isOpen, view, header, searchInput, searchTerm, onSearchInputChange, selectedCategory: controlledSelectedCategory, onSelectedCategoryChange, selectedIntegrationId, hubIntegrations, sidebarIntegrations, installedIntegrations, isHubLoading, isInstalledLoading, filterMenu, categories, bannerSlides, bannerIconUrl, onBannerClick, onCategoryClick, noResultsDocumentationLink, renderIntegrationCard, renderInstalledIntegrations, renderIntegrationDetails, noResultsContent }: IntegrationHubBodyProps<TIntegration>) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { BotpressIntegrationHubProps } from './botpressTypes.js';
2
- export declare const BotpressIntegrationHubScreen: ({ client, workspaceId, botId, initialView, categories, bannerSlides, bannerIconUrl, noResultsDocumentationLink, disableInstallation, hasWriteAccess, transformIntegrationPatch, categoryResolver, filterMenuLabels, defaultVisibility, defaultVerification, defaultSortMethod, renderConfigurationForm, renderConnectionsContent, oauthTemplateData, renderDetailPanel, renderNotifications, onShare, onInstall, onUninstall, onEnable, onDisable, onUpgrade, onError }: BotpressIntegrationHubProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const BotpressIntegrationHub: ({ client, workspaceId, botId, initialView, categories, bannerSlides, bannerIconUrl, noResultsDocumentationLink, disableInstallation, hasWriteAccess, transformIntegrationPatch, categoryResolver, filterMenuLabels, defaultVisibility, defaultVerification, defaultSortMethod, renderConfigurationForm, renderConnectionsContent, oauthTemplateData, renderDetailPanel, renderNotifications, onShare, onInstall, onUninstall, onEnable, onDisable, onUpgrade, onError }: BotpressIntegrationHubProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BotpressIntegrationHubScreen: ({ client, workspaceId, botId, headerTitle, headerIconUrl, initialView, categories, bannerSlides, bannerIconUrl, noResultsDocumentationLink, disableInstallation, hasWriteAccess, transformIntegrationPatch, categoryResolver, filterMenuLabels, defaultVisibility, defaultVerification, defaultSortMethod, renderConfigurationForm, renderConnectionsContent, oauthTemplateData, renderDetailPanel, renderNotifications, onShare, onInstall, onUninstall, onEnable, onDisable, onUpgrade, onError, persistNavigationState }: BotpressIntegrationHubProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const BotpressIntegrationHub: ({ client, workspaceId, botId, headerTitle, headerIconUrl, initialView, categories, bannerSlides, bannerIconUrl, noResultsDocumentationLink, disableInstallation, hasWriteAccess, transformIntegrationPatch, categoryResolver, filterMenuLabels, defaultVisibility, defaultVerification, defaultSortMethod, renderConfigurationForm, renderConnectionsContent, oauthTemplateData, renderDetailPanel, renderNotifications, onShare, onInstall, onUninstall, onEnable, onDisable, onUpgrade, onError, persistNavigationState }: BotpressIntegrationHubProps) => import("react/jsx-runtime").JSX.Element;
@@ -127,6 +127,8 @@ export interface BotpressIntegrationHubProps {
127
127
  client: IntegrationHubClient;
128
128
  workspaceId: string;
129
129
  botId: string;
130
+ headerTitle?: string;
131
+ headerIconUrl?: string;
130
132
  initialView?: IntegrationHubView;
131
133
  categories?: readonly IntegrationHubCategory[];
132
134
  bannerSlides?: readonly IntegrationHubBannerSlide[];
@@ -152,4 +154,6 @@ export interface BotpressIntegrationHubProps {
152
154
  onDisable?: (integration: BotpressIntegrationHubItem) => void;
153
155
  onUpgrade?: (integration: BotpressIntegrationHubItem) => void;
154
156
  onError?: (error: Error) => void;
157
+ /** When true, persists the current view and selected integration to sessionStorage so the hub restores its position on reload. */
158
+ persistNavigationState?: boolean;
155
159
  }
@@ -4,6 +4,7 @@ export { IntegrationStaticZuiConfigurationForm } from './IntegrationStaticZuiCon
4
4
  export { IntegrationReadmeContent, useIntegrationReadme } from '../details/IntegrationReadmeContent.js';
5
5
  export { useBotpressIntegrationHub, useIntegrationHub } from './useBotpressIntegrationHub.js';
6
6
  export { useBotpressIntegrationDetails, useIntegrationDetails } from './useBotpressIntegrationDetails.js';
7
+ export { usePersistedNavigationState } from './usePersistedNavigationState.js';
7
8
  export { fetchOAuthAuthorizationUrl, getWebhookIdFromUrl, openOAuthPopup } from './botpressOAuth.js';
8
9
  export type { IntegrationOAuthButtonProps } from './IntegrationOAuthButton.js';
9
10
  export type { IntegrationStaticZuiConfigurationFormProps } from './IntegrationStaticZuiConfigurationForm.js';