@bcrumbs.net/inbox 0.0.59 → 0.0.62

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.
Files changed (88) hide show
  1. package/assets/ar/inbox.json +16 -3
  2. package/assets/en/inbox.json +16 -3
  3. package/index.cjs.js +49121 -49385
  4. package/index.esm.js +49125 -49389
  5. package/package.json +4 -4
  6. package/playwright.config.d.ts +9 -0
  7. package/src/app/ai/components/Crumby/ChatView.d.ts +12 -0
  8. package/src/app/ai/components/Crumby/CrumbyComposer.d.ts +3 -0
  9. package/src/app/ai/components/Crumby/CrumbySendAction.d.ts +4 -0
  10. package/src/app/ai/components/Crumby/CrumbyWidget.d.ts +2 -0
  11. package/src/app/ai/components/Crumby/index.d.ts +1 -2
  12. package/src/app/ai/components/playground/Button.d.ts +1 -1
  13. package/src/app/ai/components/playground/ThreadMessages.d.ts +5 -1
  14. package/src/app/ai/components/playground/TooltipIconButton.d.ts +2 -2
  15. package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +3 -5
  16. package/src/app/auth/components/password-page/AuthPasswordPageLayout.d.ts +7 -0
  17. package/src/app/auth/components/password-page/ForgetPasswordFormView.d.ts +20 -0
  18. package/src/app/auth/components/password-page/PasswordFormView.d.ts +22 -0
  19. package/src/app/auth/components/password-page/PasswordSuccessView.d.ts +8 -0
  20. package/src/app/auth/hooks/useRoles.d.ts +1 -0
  21. package/src/app/auth/pages/Auth.style.d.ts +68 -0
  22. package/src/app/auth/pages/Forget.d.ts +0 -3
  23. package/src/app/auth/pages/Login.style.d.ts +1 -0
  24. package/src/app/auth/pages/Register.style.d.ts +5 -0
  25. package/src/app/auth/utils/avatar.d.ts +1 -0
  26. package/src/app/auth/utils/resetWorkspaceRoleState.d.ts +4 -0
  27. package/src/app/broadcast/components/BroadcastAnalysisContent.d.ts +3 -1
  28. package/src/app/broadcast/components/BroadcastAnalysisReciepients.d.ts +6 -1
  29. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +7 -1
  30. package/src/app/contact/components/ContactFilterOptions.d.ts +4 -1
  31. package/src/app/contact/components/ContactFormFields.d.ts +4 -1
  32. package/src/app/dashboard/components/AgentPerformanceCard.d.ts +2 -1
  33. package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +3 -1
  34. package/src/app/dashboard/components/DashboardExportButton.d.ts +8 -0
  35. package/src/app/dashboard/components/DashboardSections.d.ts +2 -1
  36. package/src/app/dashboard/components/OpenedChatsCard.d.ts +5 -1
  37. package/src/app/dashboard/components/TagPerformanceCard.d.ts +2 -1
  38. package/src/app/dashboard/utils/dashboardReportExports.d.ts +100 -0
  39. package/src/app/generic/components/PhoneDigitsInput.d.ts +7 -0
  40. package/src/app/generic/hooks/useResourceColumns.d.ts +3 -1
  41. package/src/app/inbox/components/Chat/ChatHeader.d.ts +2 -0
  42. package/src/app/inbox/components/Chat/NoConvSelected.d.ts +5 -0
  43. package/src/app/inbox/components/Chat/index.d.ts +4 -1
  44. package/src/app/inbox/components/NewDetails/ClientSection.d.ts +2 -1
  45. package/src/app/inbox/components/NewDetails/UserHeader.d.ts +2 -1
  46. package/src/app/inbox/components/NewDetails/index.d.ts +2 -1
  47. package/src/app/inbox/components/Shared/Inbox.d.ts +4 -1
  48. package/src/app/inbox/components/Shared/MobileChatDetailsSlider.d.ts +14 -0
  49. package/src/app/inbox/components/Shared/MobileDetailsSwipeHint.d.ts +9 -0
  50. package/src/app/inbox/components/Shared/MobileMenu.d.ts +2 -1
  51. package/src/app/inbox/hooks/useConvActions.d.ts +1 -0
  52. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +3 -0
  53. package/src/app/inbox/hooks/useStartedTimeAgo.d.ts +5 -0
  54. package/src/app/inbox/utils/convs.d.ts +8 -1
  55. package/src/app/inbox/utils/inboxAssignableAis.d.ts +11 -1
  56. package/src/app/layout/constants/index.d.ts +11 -10
  57. package/src/app/layout/hooks/useCrumbyEnabled.d.ts +18 -0
  58. package/src/app/layout/hooks/useCrumbyUpgradeAction.d.ts +10 -0
  59. package/src/app/managemnet/config/types.d.ts +2 -0
  60. package/src/app/onboarding/components/OnboardingStepDetail.d.ts +10 -0
  61. package/src/app/onboarding/components/OnboardingView.d.ts +19 -0
  62. package/src/app/onboarding/components/onboardingStepGuide.d.ts +11 -0
  63. package/src/app/onboarding/components/useOnboardingChecklist.d.ts +30 -0
  64. package/src/app/onboarding/utils/onboardingChecklistPersistence.d.ts +18 -0
  65. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +24 -2
  66. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +3 -1
  67. package/src/app/resources/components/ListResources/Utils.d.ts +1 -0
  68. package/src/app/subscriptions/components/NewSubscription/OnboardingStepper.d.ts +8 -0
  69. package/src/app/subscriptions/components/NewSubscription/SubscriptionFailed.d.ts +6 -0
  70. package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +1 -1
  71. package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +5 -2
  72. package/src/app/subscriptions/components/NewSubscription/WorkspaceStepLayout.d.ts +11 -0
  73. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +3 -1
  74. package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +1 -1
  75. package/src/app/subscriptions/pages/NewSubscription.d.ts +1 -1
  76. package/src/app/subscriptions/utils/newWorkspaceCheckout.d.ts +16 -0
  77. package/src/assets/locales/translations.d.ts +122 -1
  78. package/src/graphql.autogenerated.d.ts +557 -4
  79. package/src/graphql.billing.autogenerated.d.ts +2 -0
  80. package/src/lib/EmbeddedMobileMenu.d.ts +2 -1
  81. package/src/routes/PrivateRoutes.d.ts +1 -5
  82. package/src/utils/exportCsv.d.ts +8 -0
  83. package/src/utils/localStorage.d.ts +1 -0
  84. package/src/utils/textUtils.d.ts +2 -0
  85. package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +0 -2
  86. package/src/app/generic/hooks/WithMenuConfig.d.ts +0 -1
  87. package/src/app/layout/components/language/LanguageDropdown.d.ts +0 -9
  88. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +0 -3
@@ -639,6 +639,7 @@ export type SubscriptionPlan = {
639
639
  paymentMethodId?: Maybe<Scalars['Int']['output']>;
640
640
  plan?: Maybe<Plan>;
641
641
  planId: Scalars['Int']['output'];
642
+ polarSubscriptionId?: Maybe<Scalars['String']['output']>;
642
643
  promoType?: Maybe<Scalars['String']['output']>;
643
644
  promoValue?: Maybe<Scalars['Float']['output']>;
644
645
  reactivationDate?: Maybe<Scalars['DateTime']['output']>;
@@ -1027,6 +1028,7 @@ export type SubscriptionQuery = {
1027
1028
  workspaceId: number;
1028
1029
  status?: SubscriptionStatus | null;
1029
1030
  stripeCustomerId?: string | null;
1031
+ polarSubscriptionId?: string | null;
1030
1032
  freeCredits: number;
1031
1033
  planId: number;
1032
1034
  term: Term;
@@ -3,7 +3,8 @@ export type { MobileViews };
3
3
  export type EmbeddedMobileMenuProps = {
4
4
  activePage: MobileViews;
5
5
  setActivePage: (page: MobileViews) => void;
6
+ /** @deprecated Details is opened via swipe; kept for call-site compatibility. */
6
7
  hideDetails?: boolean;
7
8
  };
8
9
  /** Bottom nav for embedded inbox — no dashboard tab, no react-router. */
9
- export declare const EmbeddedMobileMenu: ({ activePage, setActivePage, hideDetails }: EmbeddedMobileMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const EmbeddedMobileMenu: ({ activePage, setActivePage }: EmbeddedMobileMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,6 +1,2 @@
1
1
  import React from 'react';
2
- interface PrivateRoutesProps {
3
- isCrumbyEnabled?: string | boolean | undefined;
4
- }
5
- export declare const PrivateRoutes: React.FC<PrivateRoutesProps>;
6
- export {};
2
+ export declare const PrivateRoutes: React.FC;
@@ -0,0 +1,8 @@
1
+ /** Escape a CSV cell for RFC 4180 (commas, quotes, newlines). */
2
+ export declare function escapeCSVValue(value: string): string;
3
+ export type CsvCell = string | number | null | undefined;
4
+ /**
5
+ * Build a UTF-8 CSV string (with BOM) and trigger a browser download.
6
+ * Headers are written as the first row; each data row must match header length.
7
+ */
8
+ export declare function downloadCsv(filename: string, headers: string[], rows: CsvCell[][]): void;
@@ -4,6 +4,7 @@ export declare const LOCAL_STORAGE_ITEMS: {
4
4
  SELECTED_CLIENT_ID: string;
5
5
  SELECTED_CONV_FILTER: string;
6
6
  };
7
+ export declare const SHOWCASE_LOCAL_STORAGE_CHANGED_EVENT = "showcase-local-storage-changed";
7
8
  declare const _default: {
8
9
  get(key: string): any;
9
10
  set(key: string, value: unknown): void;
@@ -13,3 +13,5 @@ export declare function truncateParagraph(pargraph: string, count?: number): str
13
13
  * @returns Sanitized phone number or undefined if input is null/undefined
14
14
  */
15
15
  export declare function sanitizePhone(phone: string | null | undefined): string | undefined;
16
+ /** Keep only numeric digits from a phone input value. */
17
+ export declare function digitsOnly(value: string): string;
@@ -1,2 +0,0 @@
1
- declare const BroadcastTargetingComplianceNotice: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
- export default BroadcastTargetingComplianceNotice;
@@ -1 +0,0 @@
1
- export declare const withMenuConfig: (Component: any) => (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { DropdownListItemType, DropdownListItemValue } from '@bcrumbs.net/bc-ui';
2
- import React, { PropsWithChildren } from 'react';
3
- export type AccountSettingsProps = {
4
- itemClicked: (e: DropdownListItemValue) => void;
5
- itemsList: DropdownListItemType[];
6
- dropdownIsVisible: boolean;
7
- setDropdownIsVisible: React.Dispatch<React.SetStateAction<boolean>>;
8
- };
9
- export declare function LanguageDropdown({ itemsList, itemClicked, dropdownIsVisible, setDropdownIsVisible }: PropsWithChildren<AccountSettingsProps>): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const OnboardingChecklistWidget: () => import("react").ReactPortal | null;
3
- export default OnboardingChecklistWidget;