@bcrumbs.net/inbox 0.0.64 → 0.0.65
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/assets/ar/inbox.json +37 -6
- package/assets/en/inbox.json +37 -6
- package/e2e/checkout/checkout.flows.d.ts +6 -0
- package/e2e/support/auth.d.ts +7 -3
- package/index.cjs.js +38317 -1108
- package/index.esm.js +38320 -1111
- package/package.json +1 -1
- package/src/app/ai/components/Crumby/CrumbyChatError.d.ts +9 -0
- package/src/app/ai/components/Crumby/CrumbyChatErrorBoundary.d.ts +13 -0
- package/src/app/ai/components/Crumby/CrumbyHeader.d.ts +9 -0
- package/src/app/ai/components/Crumby/CrumbyPageContext.d.ts +22 -0
- package/src/app/ai/components/Crumby/CrumbyRuntimeProvider.d.ts +9 -0
- package/src/app/ai/components/CrumbySettings/CrumbyEditsBanner.d.ts +14 -0
- package/src/app/ai/components/CrumbySettings/VoiceSettingsSection.d.ts +9 -0
- package/src/app/ai/components/playground/Button.d.ts +1 -1
- package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
- package/src/app/ai/components/sources/mediaTypeForFile.d.ts +8 -0
- package/src/app/ai/config/promptSettings.d.ts +31 -0
- package/src/app/ai/hooks/usePromptCopilot.d.ts +22 -0
- package/src/app/ai/tools/PromptEditorTool.d.ts +2 -0
- package/src/app/ai/types/index.d.ts +1 -1
- package/src/app/ai/utils/clientToolResubmit.d.ts +8 -0
- package/src/app/ai/utils/crumbyChatFetch.d.ts +15 -0
- package/src/app/auth/components/password-page/AuthPasswordPageLayout.d.ts +3 -1
- package/src/app/auth/components/password-page/PasswordSuccessView.d.ts +2 -1
- package/src/app/auth/config/authProvider.d.ts +20 -2
- package/src/app/auth/config/clerkAppearance.d.ts +51 -52
- package/src/app/auth/pages/Login.d.ts +1 -1
- package/src/app/auth/pages/Register.d.ts +1 -0
- package/src/app/billing/pages/GatewayWelcomePage.d.ts +4 -1
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +2 -1
- package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +3 -1
- package/src/app/dashboard/components/AgentCard.d.ts +2 -1
- package/src/app/dashboard/components/AgentsCard.d.ts +4 -2
- package/src/app/dashboard/components/BroadcastDashboard.d.ts +3 -1
- package/src/app/dashboard/components/ChatsByLifeCycleCard.d.ts +13 -0
- package/src/app/dashboard/components/DashboardFilters.d.ts +27 -0
- package/src/app/dashboard/components/DashboardPdfCaptureArea.d.ts +11 -0
- package/src/app/dashboard/components/DashboardPdfExportButton.d.ts +7 -0
- package/src/app/dashboard/components/DashboardPdfHeader.d.ts +11 -0
- package/src/app/dashboard/components/DashboardSections.d.ts +7 -2
- package/src/app/dashboard/components/InboxDashboard.d.ts +3 -1
- package/src/app/dashboard/hooks/useDashboardPdfMeta.d.ts +31 -0
- package/src/app/dashboard/hooks/useDashboardTabsPdfExport.d.ts +26 -0
- package/src/app/dashboard/utils/dashboardReportExports.d.ts +16 -1
- package/src/app/dashboard/utils/exportDashboardPdf.d.ts +19 -0
- package/src/app/dashboard/utils/lifecycleStages.d.ts +53 -0
- package/src/app/dashboard/utils/reportHelpers.d.ts +9 -0
- package/src/app/gatewayHome/components/ChecklistStep.d.ts +15 -0
- package/src/app/gatewayHome/components/CreditBalanceCard.d.ts +6 -0
- package/src/app/gatewayHome/components/MessageStats.d.ts +5 -0
- package/src/app/gatewayHome/components/SetupChecklist.d.ts +11 -0
- package/src/app/gatewayHome/components/console/QuickstartConsole.d.ts +11 -0
- package/src/app/gatewayHome/components/console/RunRequestBar.d.ts +15 -0
- package/src/app/gatewayHome/components/console/consoleStyles.d.ts +77 -0
- package/src/app/gatewayHome/components/steps/ApiKeyStepBody.d.ts +8 -0
- package/src/app/gatewayHome/components/steps/ChannelStepBody.d.ts +3 -0
- package/src/app/gatewayHome/components/steps/MetaStepBody.d.ts +6 -0
- package/src/app/gatewayHome/components/steps/WebhookStepBody.d.ts +7 -0
- package/src/app/gatewayHome/components/styles.d.ts +29 -0
- package/src/app/gatewayHome/config/constants.d.ts +22 -0
- package/src/app/gatewayHome/hooks/useGatewaySetup.d.ts +59 -0
- package/src/app/gatewayHome/hooks/useMessageStats.d.ts +17 -0
- package/src/app/gatewayHome/hooks/useQuickstartRequest.d.ts +31 -0
- package/src/app/gatewayHome/hooks/useSendableTemplates.d.ts +9 -0
- package/src/app/gatewayHome/pages/GatewayHomePage.d.ts +1 -0
- package/src/app/gatewayHome/types/index.d.ts +21 -0
- package/src/app/gatewayHome/utils/buildRequestBody.d.ts +7 -0
- package/src/app/gatewayHome/utils/buildSnippet.d.ts +9 -0
- package/src/app/gatewayHome/utils/sendTestMessage.d.ts +3 -0
- package/src/app/gatewayHome/utils/setupStorage.d.ts +8 -0
- package/src/app/gatewayHome/utils/templateHasParameters.d.ts +6 -0
- package/src/app/generic/components/HeaderImageInput.d.ts +3 -1
- package/src/app/generic/components/MessagePreview.d.ts +1 -1
- package/src/app/generic/components/PreviewHeaderDocument.d.ts +5 -0
- package/src/app/generic/utils/chunkErrorRecovery.d.ts +7 -0
- package/src/app/generic/utils/onesignal.d.ts +13 -0
- package/src/app/inbox/calls/useIncomingCallAlerts.d.ts +2 -0
- package/src/app/inbox/components/Calls/ActiveCallControls.d.ts +6 -0
- package/src/app/inbox/components/Calls/IncomingCallBanner.d.ts +6 -0
- package/src/app/inbox/components/Chat/QuickReplyEmpty.d.ts +5 -0
- package/src/app/inbox/components/Chat/QuickReplyPickerMenu.d.ts +2 -2
- package/src/app/inbox/components/NewDetails/ClientSection.d.ts +3 -1
- package/src/app/inbox/components/NewDetails/SuggestedAssignee.d.ts +7 -0
- package/src/app/inbox/components/NewDetails/SuggestedStage.d.ts +13 -0
- package/src/app/inbox/components/NewDetails/SuggestedTags.d.ts +18 -0
- package/src/app/inbox/components/NewDetails/SuggestionItems.d.ts +16 -0
- package/src/app/inbox/constants/index.d.ts +1 -0
- package/src/app/inbox/context/CallSession.d.ts +16 -0
- package/src/app/inbox/context/SuggestionsContext.d.ts +25 -0
- package/src/app/inbox/hooks/useAgentSuggestions.d.ts +20 -0
- package/src/app/inbox/hooks/useApplySuggestion.d.ts +18 -0
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +30 -0
- package/src/app/inbox/hooks/useIncomingCallAlerts.d.ts +2 -0
- package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
- package/src/app/inbox/hooks/useQuickReplyPicker.d.ts +5 -3
- package/src/app/inbox/pages/InboxPage.d.ts +1 -1
- package/src/app/inbox/utils/callUi.d.ts +25 -0
- package/src/app/inbox/utils/convSuggestions.d.ts +59 -0
- package/src/app/inbox/utils/convSuggestionsStorage.d.ts +20 -0
- package/src/app/inbox/utils/sounds.d.ts +2 -0
- package/src/app/layout/hooks/useCallsEnabled.d.ts +1 -0
- package/src/app/layout/hooks/useGatewayPlanEnabled.d.ts +5 -0
- package/src/app/layout/hooks/useWebchatEnabled.d.ts +5 -0
- package/src/app/managemnet/components/channels/ChannelItem.d.ts +2 -1
- package/src/app/managemnet/components/channels/ChannelSettingsDrawer.d.ts +15 -0
- package/src/app/managemnet/components/channels/ShareChannelLinkDialog.d.ts +11 -0
- package/src/app/managemnet/components/channels/WebChatSnippetBlock.d.ts +7 -0
- package/src/app/managemnet/config/webchat.d.ts +5 -0
- package/src/app/managemnet/pages/connectChannel/ConnectChannel.d.ts +2 -0
- package/src/app/managemnet/pages/generalSettings/NoiseFilterSettings.d.ts +8 -0
- package/src/app/managemnet/pages/generalSettings/noiseFilterConstants.d.ts +24 -0
- package/src/app/managemnet/utils/webChatSnippet.d.ts +2 -0
- package/src/app/onboarding/components/OnboardingView.d.ts +3 -1
- package/src/app/onboarding/components/useOnboardingChecklist.d.ts +12 -9
- package/src/app/onboarding/constants/workspaceProfileOptions.d.ts +30 -0
- package/src/app/onboarding/utils/onboardingApi.d.ts +23 -0
- package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +42 -49
- package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +6 -1
- package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +3 -1
- package/src/app/resources/components/Integrations/WebChat/index.d.ts +8 -0
- package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +1 -0
- package/src/app/resources/hooks/useFBPagesHook.d.ts +4 -2
- package/src/app/resources/hooks/useWabaHook.d.ts +5 -4
- package/src/app/resources/utils/channelSetupTracking.d.ts +21 -0
- package/src/app/resources/utils/facebookSdk.d.ts +11 -0
- package/src/app/subscriptions/components/NewSubscription/OnboardingStepper.d.ts +2 -2
- package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +2 -0
- package/src/app/subscriptions/components/NewSubscription/WorkspaceProfile.d.ts +18 -0
- package/src/app/subscriptions/components/NewSubscription/WorkspaceStepLayout.d.ts +5 -2
- package/src/app/subscriptions/hooks/useWorkspaceProfileSubmit.d.ts +12 -0
- package/src/app/subscriptions/utils/newWorkspaceContext.d.ts +8 -0
- package/src/assets/locales/translations.d.ts +319 -20
- package/src/config/constants.d.ts +1 -2
- package/src/graphql.autogenerated.d.ts +1907 -117
- package/src/testUtils/bcUiMock.d.ts +16 -0
- package/src/utils/colorPool.d.ts +1 -2
- package/src/utils/getActiveChannelList.d.ts +6 -1
- package/src/utils/globalHelper.d.ts +22 -0
- package/src/app/billing/pages/GuidePage.d.ts +0 -1
- package/src/app/contact/components/ImportProgressDialog.d.ts +0 -14
- package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +0 -11
- package/src/app/onboarding/utils/onboardingChecklistPersistence.d.ts +0 -18
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal stand-in for `@bcrumbs.net/bc-ui` in component tests. Workspace package aliases are not
|
|
3
|
+
* resolved by Jest, so specs mock bc-ui (virtually) with this module:
|
|
4
|
+
*
|
|
5
|
+
* jest.mock('@bcrumbs.net/bc-ui', () => require('../../../testUtils/bcUiMock'), { virtual: true });
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export declare const NewColors: Record<string, string>;
|
|
9
|
+
export declare const TextSizeRem: Record<string, string>;
|
|
10
|
+
export declare const LineHeightRem: Record<string, string>;
|
|
11
|
+
export declare const FontFamilyStack: Record<string, string>;
|
|
12
|
+
export declare const NewTextWeight: Record<string, string>;
|
|
13
|
+
export declare const InputStyle: () => {};
|
|
14
|
+
export declare const LabelStyle: () => {};
|
|
15
|
+
export declare const BCSkeleton: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const BCIcons: Record<string, React.FC>;
|
package/src/utils/colorPool.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function colorPool(id?: number): Color;
|
|
1
|
+
export declare function colorPool(id?: number): "#FF9900" | "#330033" | "#330066" | "#FF6600" | "#66FF66" | "#66CCFF" | "#9966FF" | "#FF66FF" | "#003333" | "#FF3300" | "#6666FF" | "#FF3366" | "#FFCC00" | "#CCFF00" | "#66FFFF" | "#9999FF" | "#CC66FF";
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { BCDropListOptionsType } from '@bcrumbs.net/bc-ui';
|
|
2
|
-
|
|
2
|
+
type ActiveChannelListOptions = {
|
|
3
|
+
/** Include BCWEBCHAT (website live chat); gated by the `webchat` PostHog flag. */
|
|
4
|
+
includeWebchat?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const getActiveChannelList: ({ includeWebchat }?: ActiveChannelListOptions) => BCDropListOptionsType[];
|
|
7
|
+
export {};
|
|
@@ -7,5 +7,27 @@ export declare const getCountryNames: (lang: string) => i18nCountries.LocalizedC
|
|
|
7
7
|
}>;
|
|
8
8
|
export declare const getLocalizedCountryName: (countryCode: string, lang: string) => string | undefined;
|
|
9
9
|
export declare const createTagsMap: (tags: Tag[]) => Record<string, string>;
|
|
10
|
+
/** Header and body can both use {{1}}. Scope header tokens so their values stay independent. */
|
|
11
|
+
export declare const HEADER_TEXT_PARAMETER_PREFIX = "header:";
|
|
12
|
+
export declare const COUPON_CODE_TOKEN = "coupon_code";
|
|
13
|
+
/** WhatsApp limit for the code of a COPY_CODE button. */
|
|
14
|
+
export declare const COUPON_CODE_MAX_LENGTH = 15;
|
|
15
|
+
export declare const buttonParameterId: (buttonIndex: number, token: string) => string;
|
|
16
|
+
export declare const parseButtonParameterId: (paramId: string) => {
|
|
17
|
+
buttonIndex: number;
|
|
18
|
+
token: string;
|
|
19
|
+
} | null;
|
|
20
|
+
export declare const templateParameterToken: (paramId: string) => string;
|
|
21
|
+
export declare const HEADER_IMAGE_PARAMETER = "header_image";
|
|
22
|
+
export declare const HEADER_DOCUMENT_PARAMETER = "header_document";
|
|
23
|
+
/**
|
|
24
|
+
* File name WhatsApp shows on a document header, taken from the last path segment of its URL.
|
|
25
|
+
* Portal uploads are stored as `<yyyy-mm-dd>_<name>`, so that date prefix is dropped.
|
|
26
|
+
*/
|
|
27
|
+
export declare const documentFileNameFromUrl: (url: string) => string;
|
|
28
|
+
/** Parameters of a single template button: URL variables, or the code of a COPY_CODE button. */
|
|
29
|
+
export declare const getButtonParameters: (button: any, buttonIndex: number) => string[];
|
|
10
30
|
export declare const getTemplateParameters: (component: any) => string[];
|
|
31
|
+
/** Builds the WhatsApp `components` payload for a template from the values entered in the portal. */
|
|
32
|
+
export declare const buildTemplateSubmissionComponents: (definitions: any[], parameterValues: Record<string, string>) => any[];
|
|
11
33
|
export declare const mapSavedComponentsToParameters: (savedComponents: any[], definitions: any[]) => Record<string, string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function GuidePage(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { JobStatus } from '../../../graphql.autogenerated';
|
|
2
|
-
type ImportProgressDialogProps = {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
progress: number;
|
|
5
|
-
status: JobStatus;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
rtl: boolean;
|
|
8
|
-
title?: string;
|
|
9
|
-
completedTitle?: string;
|
|
10
|
-
failedTitle?: string;
|
|
11
|
-
onCancel?: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const ImportProgressDialog: ({ isOpen, progress, status, onClose, rtl, title, completedTitle, failedTitle, onCancel, }: ImportProgressDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default ImportProgressDialog;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface EditChannelDialogProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
onSuccess: () => void;
|
|
5
|
-
channelId: string;
|
|
6
|
-
channelType: string;
|
|
7
|
-
channelTypeName: string;
|
|
8
|
-
rtl?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const EditChannelDialog: ({ isOpen, onClose, onSuccess, channelId, channelType, rtl }: EditChannelDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default EditChannelDialog;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Durable persistence for onboarding checklist data (state + dismissed flag).
|
|
3
|
-
*
|
|
4
|
-
* Backed by cookies on purpose: logout runs `auth.clearAllAppStorage()` which wipes
|
|
5
|
-
* localStorage/sessionStorage but NOT cookies, so progress and the "finished" flag
|
|
6
|
-
* survive a logout → login cycle (same browser).
|
|
7
|
-
*
|
|
8
|
-
* This is a temporary stand-in for a backend-owned onboarding record. When the backend
|
|
9
|
-
* returns the flag + progress, swap the implementation of `onboardingChecklistStore`
|
|
10
|
-
* (or its call sites) for the server-backed read/writes — the get/set/remove shape
|
|
11
|
-
* matches the localStorage util so the change stays local.
|
|
12
|
-
*/
|
|
13
|
-
/** Cookie-backed store mirroring the localStorage util's get/set/remove shape. */
|
|
14
|
-
export declare const onboardingChecklistStore: {
|
|
15
|
-
get(key: string): unknown;
|
|
16
|
-
set(key: string, value: unknown): void;
|
|
17
|
-
remove(key: string): void;
|
|
18
|
-
};
|