@bcrumbs.net/inbox 0.0.44 → 0.0.45

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.

Potentially problematic release.


This version of @bcrumbs.net/inbox might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/inbox",
3
3
  "description": "Inbox widget for Bread Crumbs portals",
4
- "version": "0.0.44",
4
+ "version": "0.0.45",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-ui",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@bcrumbs.net/bc-shared": "^0.0.8",
28
- "@bcrumbs.net/bc-ui": "^0.0.11",
29
- "@bcrumbs.net/bc-api": "^0.0.45",
28
+ "@bcrumbs.net/bc-ui": "^0.0.12",
29
+ "@bcrumbs.net/bc-api": "^0.0.46",
30
30
  "@azure/storage-blob": "^12.25.0"
31
31
  },
32
32
  "module": "./index.esm.js",
@@ -0,0 +1,5 @@
1
+ interface CrumbySettingsLoaderProps {
2
+ rowCount?: number;
3
+ }
4
+ declare const CrumbySettingsLoader: ({ rowCount }: CrumbySettingsLoaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export default CrumbySettingsLoader;
@@ -0,0 +1,2 @@
1
+ declare const CrumbySettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default CrumbySettings;
@@ -43,7 +43,7 @@ export interface SourcesSummary {
43
43
  size: number;
44
44
  };
45
45
  }
46
- export type SupportedFileType = 'PDF' | 'DOCX' | 'TXT' | 'MD' | 'CSV' | 'JSON' | 'XML';
46
+ export type SupportedFileType = 'TXT' | 'MD' | 'JSON' | 'HTML';
47
47
  export interface FileValidationResult {
48
48
  isValid: boolean;
49
49
  error?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { BCTurnstileRef } from '@bcrumbs.net/bc-ui';
2
+ import { BCTurnstileRef } from '../../generic/components/BCTurnstile';
3
3
  export interface UseTurnstileResult {
4
4
  /** The current turnstile token, or null if not verified */
5
5
  token: string | null;
@@ -10,7 +10,6 @@ interface BroadcastDetailsSectionProps {
10
10
  onParameterChange: (key: string, value: string) => void;
11
11
  loadingTemplateDetails?: boolean;
12
12
  requiredParameters?: string[];
13
- components?: any[];
14
13
  }
15
- declare const _default: React.MemoExoticComponent<({ renderField, renderDroplistField, templatesData, loadingTemplates, integrationsData, loadingIntegrations, parameterValues, onParameterChange, loadingTemplateDetails, requiredParameters, components, }: BroadcastDetailsSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
14
+ declare const _default: React.MemoExoticComponent<({ renderField, renderDroplistField, templatesData, loadingTemplates, integrationsData, loadingIntegrations, parameterValues, onParameterChange, loadingTemplateDetails, requiredParameters, }: BroadcastDetailsSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
16
15
  export default _default;
@@ -3,10 +3,12 @@ interface FilterOptionsProps {
3
3
  selectedTags: string[];
4
4
  setSelectedStageId: (stageId: string | undefined) => void;
5
5
  selectedStageId: string | undefined;
6
+ setSelectedAgentId: (agentId: string | undefined) => void;
7
+ selectedAgentId: string | undefined;
6
8
  setFilterIsOpen: (isOpen: boolean) => void;
7
9
  onApplyFilters?: () => void;
8
- selectedStatus: 'active' | 'archived';
9
- setSelectedStatus: (status: 'active' | 'archived') => void;
10
+ hasAppliedFilters?: boolean;
11
+ onClearFilters?: () => void;
10
12
  }
11
- declare const FilterOptions: ({ setSelectedTags, selectedTags, setSelectedStageId, selectedStageId, setFilterIsOpen, onApplyFilters, selectedStatus, setSelectedStatus, }: FilterOptionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ declare const FilterOptions: ({ setSelectedTags, selectedTags, setSelectedStageId, selectedStageId, setSelectedAgentId, selectedAgentId, setFilterIsOpen, onApplyFilters, hasAppliedFilters, onClearFilters, }: FilterOptionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
14
  export default FilterOptions;
@@ -5,6 +5,9 @@ type ImportProgressDialogProps = {
5
5
  status: JobStatus;
6
6
  onClose: () => void;
7
7
  rtl: boolean;
8
+ title?: string;
9
+ completedTitle?: string;
10
+ failedTitle?: string;
8
11
  };
9
- declare const ImportProgressDialog: ({ isOpen, progress, status, onClose, rtl }: ImportProgressDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ declare const ImportProgressDialog: ({ isOpen, progress, status, onClose, rtl, title, completedTitle, failedTitle, }: ImportProgressDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
13
  export default ImportProgressDialog;
@@ -0,0 +1,12 @@
1
+ type ExportStatus = 'idle' | 'exporting' | 'completed' | 'failed';
2
+ export interface UseExportClientsResult {
3
+ startExport: () => void;
4
+ cancelExport: () => void;
5
+ exportProgress: number;
6
+ exportStatus: ExportStatus;
7
+ isExporting: boolean;
8
+ progressDialogOpen: boolean;
9
+ closeProgressDialog: () => void;
10
+ }
11
+ export declare const useExportClients: () => UseExportClientsResult;
12
+ export {};
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ export type TurnstileTheme = 'light' | 'dark' | 'auto';
3
+ export type TurnstileSize = 'normal' | 'compact';
4
+ export interface BCTurnstileProps {
5
+ /** Cloudflare Turnstile site key */
6
+ siteKey: string;
7
+ /** Callback when verification succeeds */
8
+ onSuccess?: (token: string) => void;
9
+ /** Callback when verification fails */
10
+ onError?: (error?: string) => void;
11
+ /** Callback when token expires */
12
+ onExpire?: () => void;
13
+ /** Widget theme */
14
+ theme?: TurnstileTheme;
15
+ /** Widget size */
16
+ size?: TurnstileSize;
17
+ /** Additional class name */
18
+ className?: string;
19
+ /** Action identifier for analytics */
20
+ action?: string;
21
+ }
22
+ export interface BCTurnstileRef {
23
+ /** Reset the widget */
24
+ reset: () => void;
25
+ /** Get the current response token */
26
+ getResponse: () => string | undefined;
27
+ /** Execute the challenge (for invisible mode) */
28
+ execute: () => void;
29
+ }
30
+ /**
31
+ * BCTurnstile - Cloudflare Turnstile CAPTCHA component
32
+ *
33
+ * Usage:
34
+ * ```tsx
35
+ * const turnstileRef = useRef<BCTurnstileRef>(null);
36
+ * const [token, setToken] = useState<string | null>(null);
37
+ *
38
+ * <BCTurnstile
39
+ * ref={turnstileRef}
40
+ * siteKey="your-site-key"
41
+ * onSuccess={(token) => setToken(token)}
42
+ * onError={() => setToken(null)}
43
+ * />
44
+ * ```
45
+ */
46
+ export declare const BCTurnstile: import("react").ForwardRefExoticComponent<BCTurnstileProps & import("react").RefAttributes<BCTurnstileRef>>;
47
+ export default BCTurnstile;
@@ -1,8 +1,11 @@
1
1
  import React from 'react';
2
2
  interface MessageComponent {
3
3
  type: 'HEADER' | 'BODY' | 'BUTTONS' | 'FOOTER';
4
- format?: 'TEXT';
4
+ format?: 'TEXT' | 'IMAGE' | string;
5
5
  text?: string;
6
+ example?: {
7
+ header_handle?: string[];
8
+ };
6
9
  buttons?: Array<{
7
10
  type: string;
8
11
  text: string;
@@ -0,0 +1,4 @@
1
+ declare const PreviewHeaderImage: ({ src }: {
2
+ src: string;
3
+ }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
4
+ export default PreviewHeaderImage;
@@ -4,7 +4,6 @@ interface TemplateParameterInputsProps {
4
4
  parameterValues: Record<string, string>;
5
5
  onParameterChange: (key: string, value: string) => void;
6
6
  loading?: boolean;
7
- components?: any[];
8
7
  }
9
- declare const _default: React.MemoExoticComponent<({ parameters, parameterValues, onParameterChange, loading, components, }: TemplateParameterInputsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
8
+ declare const _default: React.MemoExoticComponent<({ parameters, parameterValues, onParameterChange, loading, }: TemplateParameterInputsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
10
9
  export default _default;
@@ -0,0 +1,8 @@
1
+ interface ToggleSettingProps {
2
+ label: string;
3
+ checked: boolean;
4
+ onCheckedChange: (checked: boolean) => void;
5
+ disabled?: boolean;
6
+ }
7
+ declare const ToggleSetting: ({ label, checked, onCheckedChange, disabled, }: ToggleSettingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export default ToggleSetting;
@@ -10,6 +10,9 @@ interface TagsSelectorProps {
10
10
  type: TagType;
11
11
  refetchTags: () => void;
12
12
  convEnded?: boolean;
13
+ usePortal?: boolean;
14
+ keepOpenOnSelect?: boolean;
15
+ loading?: boolean;
13
16
  }
14
- declare const TagsSelector: ({ handleTagSelect, availableTags, rtl, contactsTagsLoading, addedTags, handleTagRemove, type, refetchTags, convEnded, }: TagsSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
+ declare const TagsSelector: ({ handleTagSelect, availableTags, rtl, contactsTagsLoading, addedTags, handleTagRemove, type, refetchTags, convEnded, usePortal, keepOpenOnSelect, loading, }: TagsSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
15
18
  export default TagsSelector;
@@ -30,6 +30,7 @@ declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelect
30
30
  isAgent: boolean;
31
31
  agentId?: string | null | undefined;
32
32
  status?: import("../../../graphql.autogenerated").MessageStatus | null | undefined;
33
+ failedReason?: string | null | undefined;
33
34
  externalMessageId?: string | null | undefined;
34
35
  tags?: string[] | null | undefined;
35
36
  createdAt: any;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
+ import { IntegrationFlowComponentProps } from '../types';
4
+ export declare const Telegram: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
@@ -9,5 +9,6 @@ export interface FBPage {
9
9
  }
10
10
  declare function useFBPagesHook(scope: string): {
11
11
  login: (onResult: (fbUserAccessToken: string, pages: FBPage[]) => void) => void;
12
+ error: string | null;
12
13
  };
13
14
  export default useFBPagesHook;
@@ -1,5 +1,6 @@
1
1
  declare function useInstagramHook(): {
2
2
  login: (name: string) => void;
3
3
  code: string | undefined;
4
+ error: string | null;
4
5
  };
5
6
  export default useInstagramHook;
@@ -8,5 +8,6 @@ declare function useWabaHook(): {
8
8
  phoneId: undefined;
9
9
  wabaId: undefined;
10
10
  accessToken: undefined;
11
+ error: string | null;
11
12
  };
12
13
  export default useWabaHook;
@@ -326,6 +326,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
326
326
  emptyMessagePreviewTitle: string;
327
327
  emptyMessagePreviewSubtitle: string;
328
328
  templateSelection: string;
329
+ messageParameters: string;
329
330
  analysis: {
330
331
  deliveryRate: string;
331
332
  successfullyDelivered: string;
@@ -369,6 +370,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
369
370
  client: string;
370
371
  aiType: string;
371
372
  integrationName: string;
373
+ identifier: string;
372
374
  integrationStartWith: string;
373
375
  startWith_AI: string;
374
376
  startWith_AGENT: string;
@@ -401,6 +403,11 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
401
403
  FB_integration_cancelled: string;
402
404
  INSTA_integration_cancelled: string;
403
405
  WABA_integration_cancelled: string;
406
+ TELEGRAM_integration_cancelled: string;
407
+ telegramBotSetup: string;
408
+ telegramBotTokenDescription: string;
409
+ telegramBotTokenPlaceholder: string;
410
+ connect: string;
404
411
  creationSuccessfulMessage: string;
405
412
  loading: string;
406
413
  modify: string;
@@ -556,6 +563,9 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
556
563
  bodyParameter: string;
557
564
  messagePreviewContactSubtitle: string;
558
565
  messagePreviewDateLabel: string;
566
+ messageParameterPlaceholder: string;
567
+ unarchive: string;
568
+ headerImageURL: string;
559
569
  pwa: {
560
570
  installApp: string;
561
571
  addAppToHomeScreen: string;
@@ -593,6 +603,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
593
603
  from: string;
594
604
  to: string;
595
605
  apply: string;
606
+ clearFilters: string;
596
607
  namePlaceholder: string;
597
608
  surnamePlaceholder: string;
598
609
  emailPlaceholder: string;
@@ -626,6 +637,14 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
626
637
  of: string;
627
638
  moreErrors: string;
628
639
  contactDeleteTitle: string;
640
+ contactArchiveTitle: string;
641
+ contactUnarchiveTitle: string;
642
+ unarchive: string;
643
+ exportingClients: string;
644
+ exportCompleted: string;
645
+ exportFailed: string;
646
+ noContactsToExport: string;
647
+ selectedLifecycle: string;
629
648
  };
630
649
  management: {
631
650
  title: string;
@@ -650,6 +669,8 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
650
669
  endConvTimeNote: string;
651
670
  optOutKeyword: string;
652
671
  optOutKeywordNote: string;
672
+ autoUnarchiveOnMessage: string;
673
+ autoUnarchiveOnMessageNote: string;
653
674
  saved: string;
654
675
  durations: {
655
676
  "8_hours": string;
@@ -740,6 +761,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
740
761
  prompts: string;
741
762
  test_numbers: string;
742
763
  suggested_qs: string;
764
+ crumby_settings: string;
743
765
  playground: {
744
766
  welcomeMessage: string;
745
767
  askTheAIToAnalyzeYourData: string;
@@ -793,6 +815,16 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
793
815
  deleteConfirmTitle: string;
794
816
  deleteConfirmMessage: string;
795
817
  };
818
+ settings: {
819
+ title: string;
820
+ description: string;
821
+ askForName: string;
822
+ askForSurname: string;
823
+ askForEmail: string;
824
+ askForAddress: string;
825
+ askForCity: string;
826
+ saved: string;
827
+ };
796
828
  };
797
829
  files: {
798
830
  noData: string;
@@ -816,5 +848,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
816
848
  file_one: string;
817
849
  file_other: string;
818
850
  delete_confirmation: string;
851
+ archive_confirmation: string;
852
+ unarchive_confirmation: string;
819
853
  };
820
854
  }>, current?: string) => void;