@bpinternal/integration-hub 0.7.0 → 0.8.0

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.
@@ -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, 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, 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;
@@ -152,4 +152,6 @@ export interface BotpressIntegrationHubProps {
152
152
  onDisable?: (integration: BotpressIntegrationHubItem) => void;
153
153
  onUpgrade?: (integration: BotpressIntegrationHubItem) => void;
154
154
  onError?: (error: Error) => void;
155
+ /** When true, persists the current view and selected integration to sessionStorage so the hub restores its position on reload. */
156
+ persistNavigationState?: boolean;
155
157
  }
@@ -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';