@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/assets/ar/inbox.json +2 -1
- package/assets/en/inbox.json +2 -1
- package/index.cjs.js +7293 -986
- package/index.esm.js +7294 -987
- package/package.json +3 -3
- package/src/app/ai/components/CrumbySettings/CrumbySettingsLoader.d.ts +5 -0
- package/src/app/ai/pages/CrumbySettings.d.ts +2 -0
- package/src/app/ai/types/index.d.ts +1 -1
- package/src/app/billing/hooks/useTurnstile.d.ts +1 -1
- package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +1 -2
- package/src/app/contact/components/ContactFilterOptions.d.ts +5 -3
- package/src/app/contact/components/ImportProgressDialog.d.ts +4 -1
- package/src/app/contact/hooks/useExportClients.d.ts +12 -0
- package/src/app/generic/components/BCTurnstile.d.ts +47 -0
- package/src/app/{broadcast → generic}/components/MessagePreview.d.ts +4 -1
- package/src/app/generic/components/PreviewHeaderImage.d.ts +4 -0
- package/src/app/generic/components/TemplateParameterInputs.d.ts +1 -2
- package/src/app/generic/components/ToggleSetting.d.ts +8 -0
- package/src/app/inbox/components/NewDetails/TagsSelector.d.ts +4 -1
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +1 -0
- package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -0
- package/src/app/resources/hooks/useFBPagesHook.d.ts +1 -0
- package/src/app/resources/hooks/useInstagramHook.d.ts +1 -0
- package/src/app/resources/hooks/useWabaHook.d.ts +1 -0
- package/src/assets/locales/translations.d.ts +34 -0
- package/src/graphql.autogenerated.d.ts +1286 -1058
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.
|
|
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.
|
|
29
|
-
"@bcrumbs.net/bc-api": "^0.0.
|
|
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",
|
|
@@ -43,7 +43,7 @@ export interface SourcesSummary {
|
|
|
43
43
|
size: number;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export type SupportedFileType = '
|
|
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
|
|
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,
|
|
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
|
-
|
|
9
|
-
|
|
10
|
+
hasAppliedFilters?: boolean;
|
|
11
|
+
onClearFilters?: () => void;
|
|
10
12
|
}
|
|
11
|
-
declare const FilterOptions: ({ setSelectedTags, selectedTags, setSelectedStageId, selectedStageId, setFilterIsOpen, onApplyFilters,
|
|
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;
|
|
@@ -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,
|
|
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;
|
|
@@ -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;
|