@bcrumbs.net/inbox 0.0.60 → 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 (72) hide show
  1. package/assets/ar/inbox.json +16 -3
  2. package/assets/en/inbox.json +15 -2
  3. package/index.cjs.js +49055 -49383
  4. package/index.esm.js +49059 -49387
  5. package/package.json +4 -4
  6. package/playwright.config.d.ts +9 -0
  7. package/src/app/ai/components/Crumby/CrumbyComposer.d.ts +1 -1
  8. package/src/app/ai/components/playground/Button.d.ts +1 -1
  9. package/src/app/ai/components/playground/ThreadMessages.d.ts +5 -1
  10. package/src/app/ai/components/playground/TooltipIconButton.d.ts +2 -2
  11. package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +3 -5
  12. package/src/app/auth/hooks/useRoles.d.ts +1 -0
  13. package/src/app/auth/pages/Auth.style.d.ts +68 -0
  14. package/src/app/auth/pages/Login.style.d.ts +1 -0
  15. package/src/app/auth/pages/Register.style.d.ts +5 -0
  16. package/src/app/auth/utils/avatar.d.ts +1 -0
  17. package/src/app/auth/utils/resetWorkspaceRoleState.d.ts +4 -0
  18. package/src/app/broadcast/components/BroadcastAnalysisContent.d.ts +3 -1
  19. package/src/app/broadcast/components/BroadcastAnalysisReciepients.d.ts +6 -1
  20. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +7 -1
  21. package/src/app/contact/components/ContactFilterOptions.d.ts +4 -1
  22. package/src/app/contact/components/ContactFormFields.d.ts +4 -1
  23. package/src/app/dashboard/components/AgentPerformanceCard.d.ts +2 -1
  24. package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +3 -1
  25. package/src/app/dashboard/components/DashboardExportButton.d.ts +8 -0
  26. package/src/app/dashboard/components/DashboardSections.d.ts +2 -1
  27. package/src/app/dashboard/components/OpenedChatsCard.d.ts +5 -1
  28. package/src/app/dashboard/components/TagPerformanceCard.d.ts +2 -1
  29. package/src/app/dashboard/utils/dashboardReportExports.d.ts +100 -0
  30. package/src/app/generic/components/PhoneDigitsInput.d.ts +7 -0
  31. package/src/app/generic/hooks/useResourceColumns.d.ts +3 -1
  32. package/src/app/inbox/components/Chat/ChatHeader.d.ts +2 -0
  33. package/src/app/inbox/components/Chat/NoConvSelected.d.ts +5 -0
  34. package/src/app/inbox/components/Chat/index.d.ts +4 -1
  35. package/src/app/inbox/components/NewDetails/ClientSection.d.ts +2 -1
  36. package/src/app/inbox/components/NewDetails/UserHeader.d.ts +2 -1
  37. package/src/app/inbox/components/NewDetails/index.d.ts +2 -1
  38. package/src/app/inbox/components/Shared/Inbox.d.ts +4 -1
  39. package/src/app/inbox/components/Shared/MobileChatDetailsSlider.d.ts +14 -0
  40. package/src/app/inbox/components/Shared/MobileDetailsSwipeHint.d.ts +9 -0
  41. package/src/app/inbox/components/Shared/MobileMenu.d.ts +2 -1
  42. package/src/app/inbox/hooks/useConvActions.d.ts +1 -0
  43. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +3 -0
  44. package/src/app/inbox/hooks/useStartedTimeAgo.d.ts +5 -0
  45. package/src/app/inbox/utils/convs.d.ts +8 -1
  46. package/src/app/inbox/utils/inboxAssignableAis.d.ts +11 -1
  47. package/src/app/layout/constants/index.d.ts +10 -10
  48. package/src/app/layout/hooks/useCrumbyEnabled.d.ts +18 -0
  49. package/src/app/layout/hooks/useCrumbyUpgradeAction.d.ts +10 -0
  50. package/src/app/managemnet/config/types.d.ts +2 -0
  51. package/src/app/onboarding/utils/onboardingChecklistPersistence.d.ts +18 -0
  52. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +10 -1
  53. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +3 -1
  54. package/src/app/resources/components/ListResources/Utils.d.ts +1 -0
  55. package/src/app/subscriptions/components/NewSubscription/OnboardingStepper.d.ts +8 -0
  56. package/src/app/subscriptions/components/NewSubscription/SubscriptionFailed.d.ts +6 -0
  57. package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +1 -1
  58. package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +5 -2
  59. package/src/app/subscriptions/components/NewSubscription/WorkspaceStepLayout.d.ts +11 -0
  60. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +3 -1
  61. package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +1 -1
  62. package/src/app/subscriptions/pages/NewSubscription.d.ts +1 -1
  63. package/src/app/subscriptions/utils/newWorkspaceCheckout.d.ts +16 -0
  64. package/src/assets/locales/translations.d.ts +78 -0
  65. package/src/graphql.autogenerated.d.ts +511 -1
  66. package/src/lib/EmbeddedMobileMenu.d.ts +2 -1
  67. package/src/routes/PrivateRoutes.d.ts +1 -5
  68. package/src/utils/exportCsv.d.ts +8 -0
  69. package/src/utils/textUtils.d.ts +2 -0
  70. package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +0 -2
  71. package/src/app/generic/hooks/WithMenuConfig.d.ts +0 -1
  72. package/src/app/layout/components/language/LanguageDropdown.d.ts +0 -9
@@ -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;
@@ -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;