@bcrumbs.net/inbox 0.0.51 → 0.0.55
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 +20 -3
- package/assets/en/inbox.json +22 -5
- package/index.cjs.js +3955 -1472
- package/index.esm.js +3958 -1477
- package/package.json +4 -4
- package/src/app/ai/components/Crumby/index.d.ts +2 -0
- package/src/app/ai/components/CrumbySettings/AutoTagRulesSection.d.ts +14 -0
- package/src/app/ai/components/CrumbySettings/tagRuleUtils.d.ts +28 -0
- package/src/app/ai/components/playground/Thread.d.ts +5 -1
- package/src/app/ai/components/playground/ThreadWelcome.d.ts +4 -1
- package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
- package/src/app/ai/pages/AiPreferencesPrompts.d.ts +2 -0
- package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +2 -1
- package/src/app/auth/components/UserAvatar/index.d.ts +2 -1
- package/src/app/auth/pages/CheckAuth.d.ts +10 -0
- package/src/app/auth/pages/Forget.d.ts +1 -3
- package/src/app/auth/pages/Login.d.ts +2 -12
- package/src/app/auth/pages/Password.d.ts +0 -1
- package/src/app/auth/pages/Profile.d.ts +0 -1
- package/src/app/auth/pages/Register.d.ts +2 -13
- package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +1 -1
- package/src/app/auth/redux/actions/logoutAction.d.ts +2 -2
- package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
- package/src/app/auth/redux/actions/resetPasswordAction.d.ts +2 -2
- package/src/app/auth/redux/auth.types.d.ts +6 -2
- package/src/app/billing/components/NotAccessible.d.ts +10 -0
- package/src/app/billing/components/Timeline.d.ts +20 -0
- package/src/app/billing/components/checkout/AddNewPaymentCard.d.ts +6 -0
- package/src/app/billing/components/checkout/CheckoutSummary.d.ts +20 -0
- package/src/app/billing/components/checkout/ExceedPaymentUpdateTriesModal.d.ts +8 -0
- package/src/app/billing/components/checkout/ExistingCardPayment.d.ts +10 -0
- package/src/app/billing/components/checkout/PaymentForm.d.ts +11 -0
- package/src/app/billing/components/checkout/PaymentFormExp.d.ts +9 -0
- package/src/app/billing/components/checkout/PaymentMethod.d.ts +8 -0
- package/src/app/billing/components/checkout/PaymentMethodCard.d.ts +9 -0
- package/src/app/billing/components/checkout/PaywithCredits.d.ts +9 -0
- package/src/app/billing/components/invoices/BCLogo.d.ts +5 -0
- package/src/app/billing/components/invoices/Invoice.d.ts +5 -0
- package/src/app/billing/components/planStyles.d.ts +9 -0
- package/src/app/billing/components/styles.d.ts +21 -0
- package/src/app/billing/components/subscription/PlanDetail.d.ts +11 -0
- package/src/app/billing/components/subscription/SubscriptionPausedWarning.d.ts +3 -0
- package/src/app/billing/components/transactions/TransactionHistoryTable.d.ts +15 -0
- package/src/app/billing/context/SubscriptionContext.d.ts +8 -1
- package/src/app/billing/hooks/useGetPaidToday.d.ts +9 -0
- package/src/app/billing/hooks/usePendingPayments.d.ts +51 -0
- package/src/app/billing/hooks/useSetupPayment.d.ts +15 -0
- package/src/app/billing/hooks/useSetupPaymentMethod.d.ts +12 -0
- package/src/app/billing/pages/checkout.d.ts +2 -0
- package/src/app/billing/pages/done.d.ts +1 -0
- package/src/app/billing/pages/invoice.d.ts +1 -0
- package/src/app/billing/pages/invoices.d.ts +2 -0
- package/src/app/billing/pages/payment.d.ts +1 -0
- package/src/app/billing/utils/getStripe.d.ts +3 -0
- package/src/app/billing/utils/openArticleModal.d.ts +1 -0
- package/src/app/billing/utils/paymentProvider.d.ts +3 -0
- package/src/app/billing/utils/pendingPlanPurchaseStorage.d.ts +10 -0
- package/src/app/billing/utils/stripeUtils.d.ts +2 -0
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +6 -1
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +5 -1
- package/src/app/broadcast/components/BroadcastInfoHeader.d.ts +2 -1
- package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +2 -0
- package/src/app/broadcast/components/WorkspaceBroadcastAnalysisRecipients.d.ts +7 -0
- package/src/app/broadcast/hooks/useExportWorkspaceBroadcastDelivery.d.ts +6 -0
- package/src/app/broadcast/pages/WorkspaceBroadcastDeliveryReportPage.d.ts +2 -0
- package/src/app/broadcast/utils/helper.d.ts +4 -0
- package/src/app/contact/components/ContactFormFields.d.ts +2 -1
- package/src/app/contact/config/contactForm.d.ts +4 -0
- package/src/app/dashboard/components/AgentCard.d.ts +11 -0
- package/src/app/dashboard/components/AgentPerformanceCard.d.ts +9 -0
- package/src/app/dashboard/components/AgentsCard.d.ts +9 -0
- package/src/app/dashboard/components/AgentsCardSkeleton.d.ts +2 -0
- package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +11 -0
- package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +10 -0
- package/src/app/dashboard/components/BroadcastDashboard.d.ts +6 -0
- package/src/app/dashboard/components/BroadcastDashboardStatsCards.d.ts +14 -0
- package/src/app/dashboard/components/BroadcastRecipientsCard.d.ts +8 -0
- package/src/app/dashboard/components/BroadcastStatusDistributionCard.d.ts +6 -0
- package/src/app/dashboard/components/ConversationAnalyticsCard.d.ts +11 -0
- package/src/app/dashboard/components/DashboardSections.d.ts +24 -0
- package/src/app/dashboard/components/DashboardStatsCards.d.ts +10 -0
- package/src/app/dashboard/components/InboxDashboard.d.ts +10 -0
- package/src/app/dashboard/components/OpenedChatsCard.d.ts +8 -0
- package/src/app/dashboard/pages/DashboardNewPage.d.ts +2 -0
- package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +19 -0
- package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
- package/src/app/dashboard/utils/dateHelpers.d.ts +24 -0
- package/src/app/generic/components/HeaderImageInput.d.ts +9 -0
- package/src/app/generic/components/MessagePreview.d.ts +3 -1
- package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
- package/src/app/generic/components/PreviewHeaderImage.d.ts +2 -1
- package/src/app/generic/components/TemplateParameterInputs.d.ts +2 -1
- package/src/app/generic/components/ToggleSetting.d.ts +3 -2
- package/src/app/generic/hooks/useGetProviderIcon.d.ts +2 -1
- package/src/app/generic/utils/logout.d.ts +1 -1
- package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -3
- package/src/app/inbox/components/Chat/ChatHeader.d.ts +5 -1
- package/src/app/inbox/components/Chat/NoResultsFound.d.ts +3 -0
- package/src/app/inbox/components/Chat/index.d.ts +4 -1
- package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +17 -0
- package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +6 -2
- package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
- package/src/app/inbox/components/NewDetails/ChatDetails.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ChatDetailsAndTimeline.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ClientInfo.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ConversationOverview.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/EditClientInfo.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/index.d.ts +3 -2
- package/src/app/inbox/components/Shared/Inbox.d.ts +9 -7
- package/src/app/inbox/components/Shared/MobileActionSheet.d.ts +9 -0
- package/src/app/inbox/components/Shared/MobileMenu.d.ts +8 -0
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +7 -0
- package/src/app/inbox/components/Shared/mobileMenuStyles.d.ts +20 -0
- package/src/app/inbox/constants/index.d.ts +1 -1
- package/src/app/inbox/hooks/useConversationById.d.ts +8 -0
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
- package/src/app/inbox/hooks/useInboxAssignableAis.d.ts +3 -0
- package/src/app/inbox/hooks/useMyAgent.d.ts +8 -0
- package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
- package/src/app/inbox/utils/convs.d.ts +14 -5
- package/src/app/inbox/utils/inboxAssignableAis.d.ts +10 -0
- package/src/app/inbox/utils/mobileInboxStyles.d.ts +6 -0
- package/src/app/layout/components/CommandPalette.d.ts +16 -0
- package/src/app/layout/components/Header.d.ts +3 -5
- package/src/app/layout/constants/index.d.ts +24 -2
- package/src/app/layout/constants/subMenu.d.ts +34 -4
- package/src/app/layout/context/EmbeddedInboxContext.d.ts +3 -0
- package/src/app/layout/context/MobileInboxNavContext.d.ts +9 -0
- package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
- package/src/app/layout/hooks/useMobileInboxVersion.d.ts +1 -3
- package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
- package/src/app/managemnet/components/CreateQuickReply.d.ts +8 -0
- package/src/app/managemnet/components/channels/AddChannelDialog.d.ts +10 -0
- package/src/app/managemnet/components/channels/ChannelItem.d.ts +11 -0
- package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +15 -0
- package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +11 -0
- package/src/app/managemnet/config/quickReplyDefinition.d.ts +4 -0
- package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
- package/src/app/managemnet/pages/quickReplies/index.d.ts +2 -0
- package/src/app/onboarding/components/OnboardingChecklistGuideContent.d.ts +8 -0
- package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -0
- package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +43 -0
- package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +24 -0
- package/src/app/resources/components/Integrations/Custom/index.d.ts +7 -0
- package/src/app/resources/components/Integrations/Facebook/NoPagesFoundPopup.d.ts +2 -1
- package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +2 -1
- package/src/app/resources/components/Integrations/Facebook/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -2
- package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/WaGupshup/index.d.ts +7 -0
- package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -1
- package/src/app/subscriptions/components/Plans/PlanCard.d.ts +10 -23
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +8 -4
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +1 -9
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionPlanLabel.d.ts +8 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfileCard.d.ts +14 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsageCard.d.ts +7 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +3 -3
- package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +4 -1
- package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +3 -1
- package/src/app/subscriptions/components/SubscriptionsList.d.ts +1 -0
- package/src/app/subscriptions/constants/Plans.d.ts +9 -6
- package/src/app/subscriptions/pages/Upgrade.d.ts +6 -9
- package/src/assets/locales/translations.d.ts +354 -5
- package/src/config/azure.d.ts +2 -0
- package/src/environments/types.d.ts +3 -0
- package/src/graphql.autogenerated.d.ts +2179 -1225
- package/src/graphql.billing.autogenerated.d.ts +683 -7
- package/src/lib/EmbeddedMobileMenu.d.ts +9 -0
- package/src/lib/conversation-chat.d.ts +11 -0
- package/src/lib/index.d.ts +4 -0
- package/src/main.d.ts +2 -0
- package/src/utils/formatFailureReason.d.ts +5 -0
- package/src/utils/globalHelper.d.ts +3 -0
- package/src/utils/integration.d.ts +6 -0
- package/src/utils/localStorage.d.ts +2 -0
- package/src/utils/textUtils.d.ts +3 -1
- package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +0 -4
- package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +0 -4
- package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +0 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const ONBOARDING_CHECKLIST_STORAGE_PREFIX = "showcase_onboarding_checklist";
|
|
2
|
+
export declare const ONBOARDING_CHECKLIST_UPDATED_EVENT = "showcase-onboarding-checklist-updated";
|
|
3
|
+
export declare const ONBOARDING_CHECKLIST_TTL_MS: number;
|
|
4
|
+
export type OnboardingChecklistStepId = 'workspace' | 'invite' | 'channel' | 'firstMessage' | 'uploadFile' | 'testAi';
|
|
5
|
+
export type OnboardingChecklistState = {
|
|
6
|
+
startedAt: string;
|
|
7
|
+
completed: Record<OnboardingChecklistStepId, boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare const ONBOARDING_CHECKLIST_STEP_IDS: OnboardingChecklistStepId[];
|
|
10
|
+
/** Last checklist steps; only shown when Crumby / workspace AI is enabled */
|
|
11
|
+
export declare const ONBOARDING_CHECKLIST_CRUMBY_STEP_IDS: OnboardingChecklistStepId[];
|
|
12
|
+
export declare function getApplicableOnboardingChecklistStepIds(isCrumbyEnabled: boolean): OnboardingChecklistStepId[];
|
|
13
|
+
export declare function isOnboardingChecklistCompleteForCrumbySetting(state: OnboardingChecklistState, isCrumbyEnabled: boolean): boolean;
|
|
14
|
+
export declare function getOnboardingChecklistStorageKey(userId: string | number): string;
|
|
15
|
+
export declare function getOnboardingChecklistPendingKey(userId: string | number): string;
|
|
16
|
+
/** One-shot: open checklist popover after sign-in (session tab only). */
|
|
17
|
+
export declare const ONBOARDING_CHECKLIST_SESSION_AUTOPEN_KEY = "showcase_onboarding_checklist_session_autopen";
|
|
18
|
+
export declare function clearOnboardingChecklistSessionAutopen(): void;
|
|
19
|
+
export declare function shouldOpenOnboardingChecklistFromSession(): boolean;
|
|
20
|
+
export declare function createDefaultOnboardingChecklistState(): OnboardingChecklistState;
|
|
21
|
+
export declare function parseOnboardingChecklistState(value: unknown): OnboardingChecklistState | null;
|
|
22
|
+
/**
|
|
23
|
+
* Call after a successful sign-in. If the user has no active checklist yet, sets a short-lived
|
|
24
|
+
* pending flag so the layout widget can create `startedAt` only on the first load after login
|
|
25
|
+
* (not for sessions that never went through sign-in in this browser).
|
|
26
|
+
*/
|
|
27
|
+
export declare function notifyOnboardingChecklistAfterSignIn(userId: string | number): void;
|
|
28
|
+
/**
|
|
29
|
+
* Parsed checklist from storage, or null if missing or past TTL.
|
|
30
|
+
* Use this to cheaply skip heavy work (e.g. scanning all inbox messages) when the step is already done
|
|
31
|
+
* or there is no active checklist.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getActiveOnboardingChecklistState(userId: string | number | null | undefined): OnboardingChecklistState | null;
|
|
34
|
+
export type MarkOnboardingChecklistStepOptions = {
|
|
35
|
+
/** When already loaded (e.g. after a gate check), avoids a second localStorage read. */
|
|
36
|
+
knownActiveState?: OnboardingChecklistState;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Marks a checklist step done when the user performs the real action (persists + notifies widget).
|
|
40
|
+
* No-op if there is no checklist, it is expired, or the step is already complete.
|
|
41
|
+
*/
|
|
42
|
+
export declare function markOnboardingChecklistStepComplete(userId: string | number | null | undefined, stepId: OnboardingChecklistStepId, options?: MarkOnboardingChecklistStepOptions): void;
|
|
43
|
+
export declare function tryMarkOnboardingChecklistStepFromAuth(stepId: OnboardingChecklistStepId): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FieldGroup: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const HelperText: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export interface ChannelDialogLayoutProps {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
channelName: string;
|
|
14
|
+
setChannelName: (name: string) => void;
|
|
15
|
+
channelTypeName: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
extraFields?: React.ReactNode;
|
|
18
|
+
videoUrl?: string;
|
|
19
|
+
supportUrl?: string;
|
|
20
|
+
onNext: () => void;
|
|
21
|
+
isNextDisabled: boolean;
|
|
22
|
+
rtl?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ChannelDialogLayout: ({ isOpen, onClose, channelName, setChannelName, channelTypeName, icon, extraFields, videoUrl, supportUrl, onNext, isNextDisabled, rtl, }: ChannelDialogLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
|
+
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const CustomChannel: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
2
2
|
import { FBPage } from '../../../hooks/useFBPagesHook';
|
|
3
|
-
export declare function PagePickerPopup({ onClose, setInitialValues, token, pages, }: {
|
|
3
|
+
export declare function PagePickerPopup({ onClose, setInitialValues, token, pages, rtl, }: {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
setInitialValues: (initialResource: Partial<IntegrationWithSecrets>) => void;
|
|
6
6
|
token?: string;
|
|
7
7
|
pages: FBPage[];
|
|
8
|
+
rtl?: boolean;
|
|
8
9
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
3
|
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
-
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const FacebookMessanger: React.FC<Props>;
|
|
5
7
|
export declare const FacebookMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
|
|
6
8
|
export declare const InstaMessanger: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
|
|
7
9
|
export declare const InstaMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
3
|
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
-
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const Instagram: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { IntegrationWithSecrets, IntegrationType } from '../../../../graphql.autogenerated';
|
|
2
3
|
import { IntegrationFlowComponentProps } from './types';
|
|
3
|
-
interface
|
|
4
|
+
export interface ChannelFlowExtendedProps {
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
channelName: string;
|
|
7
|
+
setChannelName: (name: string) => void;
|
|
8
|
+
channelTypeName: string;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
rtl?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface RenderCorrectIntegrationFlowProps extends IntegrationFlowComponentProps<IntegrationWithSecrets>, ChannelFlowExtendedProps {
|
|
4
13
|
type: IntegrationType;
|
|
5
14
|
}
|
|
6
|
-
export declare const RenderCorrectIntegrationFlow: ({ type, setInitialValues, cancel, }: RenderCorrectIntegrationFlowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export declare const RenderCorrectIntegrationFlow: ({ type, setInitialValues, cancel, isOpen, channelName, setChannelName, channelTypeName, icon, rtl, }: RenderCorrectIntegrationFlowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
7
16
|
export declare const RenderCorrectIntegrationFlowCancelledMessage: ({ type, tryAgain, }: {
|
|
8
17
|
type: IntegrationType;
|
|
9
18
|
tryAgain: () => void;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
3
|
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
-
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const Telegram: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
|
+
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const WaGupshup: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
3
3
|
import { IntegrationFlowComponentProps } from '../types';
|
|
4
|
-
|
|
4
|
+
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
|
+
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
|
+
export declare const WhatsApp: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Color } from '@bcrumbs.net/bc-ui';
|
|
3
|
-
import { PlanFrequency } from '../../constants/Plans';
|
|
4
1
|
export type PlanCardProps = {
|
|
5
|
-
accountId: string;
|
|
6
|
-
upgrading?: boolean;
|
|
7
|
-
onActionClick?: () => void;
|
|
8
|
-
available?: boolean;
|
|
9
|
-
current?: boolean;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
frequency: PlanFrequency;
|
|
12
|
-
planCode: string;
|
|
13
2
|
name: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
borderColor?: Color;
|
|
24
|
-
boxBorderColor?: Color;
|
|
3
|
+
price: number;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
features: string[];
|
|
6
|
+
isCurrent: boolean;
|
|
7
|
+
isPopular?: boolean;
|
|
8
|
+
onChoose: () => void;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
processing?: boolean;
|
|
11
|
+
available?: boolean;
|
|
25
12
|
};
|
|
26
|
-
export declare function PlanCard({
|
|
13
|
+
export declare function PlanCard({ name, price, subtitle, features, isCurrent, isPopular, onChoose, loading, processing, available, }: PlanCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { PlanTypes } from '../../constants/Plans';
|
|
2
|
+
import { PlanType, Term } from '../../../../graphql.billing.autogenerated';
|
|
2
3
|
type ShowcasePlansProps = {
|
|
3
|
-
onPlanPicked: (plan: PlanTypes) => void;
|
|
4
|
+
onPlanPicked: (plan: PlanTypes, term: Term, includeAi: boolean) => void;
|
|
4
5
|
disableFreePlan?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
currentPlanType?: PlanType | null;
|
|
7
|
+
/** The billing term the user is currently subscribed to */
|
|
8
|
+
currentTerm?: Term | null;
|
|
9
|
+
processing?: boolean;
|
|
10
|
+
loadingPlanType?: PlanType | null;
|
|
7
11
|
};
|
|
8
|
-
export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan,
|
|
12
|
+
export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan, currentPlanType, currentTerm, processing, loadingPlanType, }: ShowcasePlansProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
13
|
export default ShowcasePlans;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
isEditing: boolean;
|
|
3
|
-
onEdit: () => void;
|
|
4
|
-
onSave: () => void;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
onCancel: () => void;
|
|
7
|
-
disabledSave: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const SubscriptionHeader: ({ isEditing, onEdit, onSave, onCancel, loading, disabledSave, }: SubscriptionHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const SubscriptionHeader: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
2
|
export default SubscriptionHeader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SubscriptionStatus } from '../../../../graphql.billing.autogenerated';
|
|
2
|
+
type SubscriptionPlanLabelProps = {
|
|
3
|
+
planLabel: string;
|
|
4
|
+
status?: SubscriptionStatus | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function SubscriptionPlanLabel({ planLabel, status }: SubscriptionPlanLabelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function isSubscriptionCancelled(status?: SubscriptionStatus | null): boolean;
|
|
8
|
+
export {};
|
|
@@ -13,6 +13,7 @@ type SubscriptionProfileRouteProps = {
|
|
|
13
13
|
onNameChange?: (name: string) => void;
|
|
14
14
|
handleUpdateCompany?: (name: string) => Promise<void>;
|
|
15
15
|
disabledSave: boolean;
|
|
16
|
+
usersCount: number;
|
|
16
17
|
};
|
|
17
18
|
export declare const SubscriptionProfile: ({ isEditing, disabledSave, ...props }: SubscriptionProfileRouteProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
19
|
declare const _default: any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type SubscriptionProfileCardProps = {
|
|
2
|
+
workspaceId?: string | number;
|
|
3
|
+
subscriptionCreateDate: string;
|
|
4
|
+
isEditing: boolean;
|
|
5
|
+
onEdit: () => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
onNameChange?: (name: string) => void;
|
|
10
|
+
handleUpdateCompany?: (name: string) => Promise<void>;
|
|
11
|
+
disabledSave: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const SubscriptionProfileCard: ({ subscriptionCreateDate, isEditing, onEdit, onCancel, loading, name, onNameChange, handleUpdateCompany, disabledSave, workspaceId: workspaceIdProp, }: SubscriptionProfileCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default SubscriptionProfileCard;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type SubscriptionUsageCardProps = {
|
|
2
|
+
subscriptionType: string;
|
|
3
|
+
usersCount: number;
|
|
4
|
+
workspaceId?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const SubscriptionUsageCard: ({ subscriptionType, usersCount, workspaceId }: SubscriptionUsageCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SubscriptionUsageCard;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const companyUsersQueryOptions: any;
|
|
2
1
|
type SubscriptionProfileRouteProps = {
|
|
3
|
-
|
|
2
|
+
/** Company / workspace id from membership (REST); used for invite/remove context switching, not for core GraphQL Int `workspaceId`. */
|
|
3
|
+
subscriptionId?: number | string;
|
|
4
4
|
users: any[];
|
|
5
5
|
refetchUsers: any;
|
|
6
6
|
loadingUsers: boolean;
|
|
7
|
-
inviteUser: (email: string) => Promise<unknown>;
|
|
7
|
+
inviteUser: (companyId: number, email: string) => Promise<unknown>;
|
|
8
8
|
removeUserFromCompany: (companyId: number, userId: string) => Promise<unknown>;
|
|
9
9
|
};
|
|
10
10
|
export declare const SubscriptionUsers: (props: SubscriptionProfileRouteProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { FooterItemsProps, HeaderItemsProps, DropdownListItemType } from '@bcrumbs.net/bc-ui';
|
|
2
3
|
export type SwitcherProps = {
|
|
3
4
|
items: DropdownListItemType[];
|
|
@@ -13,5 +14,7 @@ export type SwitcherProps = {
|
|
|
13
14
|
hidden: boolean;
|
|
14
15
|
}) => void;
|
|
15
16
|
isLoading: boolean;
|
|
17
|
+
compact?: boolean;
|
|
18
|
+
workspaceLogo?: React.ReactNode;
|
|
16
19
|
};
|
|
17
|
-
export declare function Switcher({ items, title, headerItems, footerItems, width, name, maxVisibleItems, addPlanWord, isLoading, plan, onDropdownStateChange, }: SwitcherProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function Switcher({ items, title, headerItems, footerItems, width, name, maxVisibleItems, addPlanWord, isLoading, plan, onDropdownStateChange, compact, workspaceLogo, }: SwitcherProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -11,18 +11,21 @@ export declare enum PlanTypes {
|
|
|
11
11
|
FREE = "free",
|
|
12
12
|
BASIC = "basic",
|
|
13
13
|
PREMIUM = "premium",
|
|
14
|
-
|
|
14
|
+
BUSINESS = "business",
|
|
15
|
+
AUTOMATE = "automate",
|
|
16
|
+
AUTOMATE_PLUS = "automate_plus",
|
|
17
|
+
AUTOMATE_MAX = "automate_max",
|
|
15
18
|
CUSTOM = "custom"
|
|
16
19
|
}
|
|
17
|
-
export declare const PlanCodes: {
|
|
18
|
-
[key in PlanTypes]: string;
|
|
19
|
-
};
|
|
20
20
|
export declare const PlanPrices: {
|
|
21
21
|
[key in PlanTypes]: number;
|
|
22
22
|
};
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const PlanConversationsLimits: {
|
|
24
24
|
[key in PlanTypes]: number;
|
|
25
25
|
};
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const PlanCampaignsLimits: {
|
|
27
|
+
[key in PlanTypes]: number;
|
|
28
|
+
};
|
|
29
|
+
export declare const PlanUsersLimits: {
|
|
27
30
|
[key in PlanTypes]: number;
|
|
28
31
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
refetchCompanies: any;
|
|
4
|
-
loadingCompanies: boolean;
|
|
5
|
-
match: any;
|
|
6
|
-
history: any;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react-redux").ConnectedComponent<({ router }: {
|
|
7
3
|
router: any;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element, {
|
|
5
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
6
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
7
|
+
}>;
|
|
11
8
|
export default _default;
|