@bcrumbs.net/inbox 0.0.49 → 0.0.51
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/index.cjs.js +516 -395
- package/index.esm.js +518 -397
- package/package.json +3 -3
- package/src/app/ai/components/sources/TextEditorSkeleton.d.ts +3 -0
- package/src/app/ai/components/sources/TextSnippetEditor.d.ts +9 -0
- package/src/app/ai/components/sources/TextTable.d.ts +15 -0
- package/src/app/ai/components/sources/index.d.ts +2 -0
- package/src/app/ai/hooks/useCrumbyRatingAi.d.ts +17 -0
- package/src/app/ai/hooks/useTextColumns.d.ts +17 -0
- package/src/app/ai/pages/TextPage.d.ts +3 -0
- package/src/app/ai/types/index.d.ts +10 -0
- package/src/app/contact/config/contactForm.d.ts +21 -0
- package/src/app/managemnet/components/CreateApiKey.d.ts +4 -1
- package/src/assets/locales/translations.d.ts +41 -0
- package/src/config/azure.d.ts +4 -0
- package/src/config/constants.d.ts +1 -1
- package/src/graphql.autogenerated.d.ts +733 -423
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.51",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"react": "^18.0.0",
|
|
15
15
|
"react-dom": "^18.0.0",
|
|
16
|
-
"@radix-ui/themes": "^3.
|
|
17
|
-
"@radix-ui/react-icons": "^1.
|
|
16
|
+
"@radix-ui/themes": "^3.3.0",
|
|
17
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
18
18
|
"i18next": "^21.0.0",
|
|
19
19
|
"react-i18next": "^11.0.0",
|
|
20
20
|
"i18next-http-backend": "^1.0.0",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextItem } from '../../types';
|
|
3
|
+
interface TextSnippetEditorProps {
|
|
4
|
+
snippet: TextItem | null;
|
|
5
|
+
onSaved: () => void;
|
|
6
|
+
onCancelEdit: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TextSnippetEditor: React.FC<TextSnippetEditorProps>;
|
|
9
|
+
export default TextSnippetEditor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextItem } from '../../types';
|
|
3
|
+
interface TextTableProps {
|
|
4
|
+
snippets: TextItem[];
|
|
5
|
+
selectedIds: string[];
|
|
6
|
+
onSelect: (id: string, selected: boolean) => void;
|
|
7
|
+
onSelectAll: (selected: boolean) => void;
|
|
8
|
+
onDelete: (id: string) => void;
|
|
9
|
+
onBulkDelete: (ids: string[]) => void;
|
|
10
|
+
onEdit: (snippet: TextItem) => void;
|
|
11
|
+
clearSelection: () => void;
|
|
12
|
+
bulkDeleting?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const TextTable: React.FC<TextTableProps>;
|
|
15
|
+
export default TextTable;
|
|
@@ -3,3 +3,5 @@ export { default as FileTable } from './FileTable';
|
|
|
3
3
|
export { default as StorageQuota } from './StorageQuota';
|
|
4
4
|
export { default as UploadProgress } from './UploadProgress';
|
|
5
5
|
export { default as FileUploadsContainer } from './FileUploadsContainer';
|
|
6
|
+
export { default as TextSnippetEditor } from './TextSnippetEditor';
|
|
7
|
+
export { default as TextTable } from './TextTable';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ai } from '../../../graphql.autogenerated';
|
|
2
|
+
interface UseCrumbyRatingAiOptions {
|
|
3
|
+
/** Optional list of AIs to check for existing BC_AI. If not provided, the hook will still work but won't check for existing AIs. */
|
|
4
|
+
aiList?: Ai[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Hook to get or create a CrumbyRating AI (BC_AI type).
|
|
8
|
+
* Checks if a BC_AI already exists in the provided list, and if not, creates one.
|
|
9
|
+
* @param options - Configuration options
|
|
10
|
+
* @returns Object with `getOrCreateCrumbyRatingAi` function, `loading` state, and `existingBcAi`
|
|
11
|
+
*/
|
|
12
|
+
declare const useCrumbyRatingAi: ({ aiList }?: UseCrumbyRatingAiOptions) => {
|
|
13
|
+
getOrCreateCrumbyRatingAi: () => Promise<string | null>;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
existingBcAi: Ai | undefined;
|
|
16
|
+
};
|
|
17
|
+
export default useCrumbyRatingAi;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CustomColumn, TableAction } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
interface GetTextColumnsParams {
|
|
3
|
+
allSelected: boolean;
|
|
4
|
+
selectedIds?: string[];
|
|
5
|
+
onSelectAll: (selectAll: boolean) => void;
|
|
6
|
+
onSelect: (id: string, selected: boolean) => void;
|
|
7
|
+
onDelete: (id: string) => void;
|
|
8
|
+
onEdit: (row: any) => void;
|
|
9
|
+
onSortChange: (field: string) => void;
|
|
10
|
+
currentSortField?: string;
|
|
11
|
+
currentSortDirection?: 'asc' | 'desc';
|
|
12
|
+
}
|
|
13
|
+
export declare const useTextColumns: ({ allSelected, selectedIds, onSelectAll, onSelect, onDelete, onEdit, onSortChange, currentSortField, currentSortDirection, }: GetTextColumnsParams) => {
|
|
14
|
+
columns: CustomColumn[];
|
|
15
|
+
actions: TableAction[];
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -62,3 +62,13 @@ export interface FileTableFilters {
|
|
|
62
62
|
to?: Date;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
+
export interface TextItem {
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
size: number;
|
|
69
|
+
workspaceId: number;
|
|
70
|
+
createdAt?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface TextTableFilters {
|
|
73
|
+
search: string;
|
|
74
|
+
}
|
|
@@ -11,6 +11,12 @@ export declare enum FormFields {
|
|
|
11
11
|
defaultAgentId = "defaultAgentId"
|
|
12
12
|
}
|
|
13
13
|
export declare const FORM_INIT: {
|
|
14
|
+
name: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
surname: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
14
20
|
email: {
|
|
15
21
|
value: string;
|
|
16
22
|
validations: {
|
|
@@ -23,4 +29,19 @@ export declare const FORM_INIT: {
|
|
|
23
29
|
validationType: BCValidationTypes;
|
|
24
30
|
}[];
|
|
25
31
|
};
|
|
32
|
+
address: {
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
country: {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
city: {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
stage: {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
defaultAgentId: {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
26
47
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
interface CreateApiKeyProps {
|
|
2
|
-
onSuccess?: (
|
|
2
|
+
onSuccess?: (payload: {
|
|
3
|
+
apiKeyToken: string;
|
|
4
|
+
workspaceId?: number | null;
|
|
5
|
+
}) => void;
|
|
3
6
|
onCancel?: () => void;
|
|
4
7
|
}
|
|
5
8
|
declare const CreateApiKey: ({ onSuccess, onCancel }: CreateApiKeyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -308,6 +308,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
308
308
|
cancel: string;
|
|
309
309
|
loadingMore: string;
|
|
310
310
|
broadcastInfoDescription: string;
|
|
311
|
+
broadcastComplianceGuide: string;
|
|
311
312
|
editBroadcast: string;
|
|
312
313
|
save: string;
|
|
313
314
|
selectClientStage: string;
|
|
@@ -382,6 +383,8 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
382
383
|
defaultAI: string;
|
|
383
384
|
defaultAgent: string;
|
|
384
385
|
startWith_countrySettings: string;
|
|
386
|
+
enableRating: string;
|
|
387
|
+
enableRating_description: string;
|
|
385
388
|
integrationType: string;
|
|
386
389
|
whatsAppChannel: string;
|
|
387
390
|
broadcastName: string;
|
|
@@ -452,6 +455,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
452
455
|
anyEvent: string;
|
|
453
456
|
incomingMessage: string;
|
|
454
457
|
outgoingMessage: string;
|
|
458
|
+
messageUpdated: string;
|
|
455
459
|
endingConv: string;
|
|
456
460
|
newConv: string;
|
|
457
461
|
newClient: string;
|
|
@@ -716,9 +720,17 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
716
720
|
addNewApiKey: string;
|
|
717
721
|
label: string;
|
|
718
722
|
labelPlaceholder: string;
|
|
723
|
+
linkedAgent: string;
|
|
724
|
+
noLinkedAgent: string;
|
|
725
|
+
agentLinkNote: string;
|
|
719
726
|
searchPlaceholder: string;
|
|
720
727
|
noApiKeys: string;
|
|
721
728
|
loadingMoreText: string;
|
|
729
|
+
generatedTokenTitle: string;
|
|
730
|
+
generatedTokenWarning: string;
|
|
731
|
+
workspaceIdLabel: string;
|
|
732
|
+
copyToken: string;
|
|
733
|
+
copyDetails: string;
|
|
722
734
|
};
|
|
723
735
|
webhook: {
|
|
724
736
|
title: string;
|
|
@@ -792,6 +804,35 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
792
804
|
totalSize: string;
|
|
793
805
|
sources: string;
|
|
794
806
|
};
|
|
807
|
+
snippets: {
|
|
808
|
+
pageTitle: string;
|
|
809
|
+
pageSubtitle: string;
|
|
810
|
+
addTextSnippet: string;
|
|
811
|
+
editingMode: string;
|
|
812
|
+
titleLabel: string;
|
|
813
|
+
titlePlaceholder: string;
|
|
814
|
+
bodyLabel: string;
|
|
815
|
+
loadingContent: string;
|
|
816
|
+
characters: string;
|
|
817
|
+
addSnippetButton: string;
|
|
818
|
+
updateSnippet: string;
|
|
819
|
+
textSources: string;
|
|
820
|
+
noSnippets: string;
|
|
821
|
+
snippetTitle: string;
|
|
822
|
+
size: string;
|
|
823
|
+
deleteSnippet: string;
|
|
824
|
+
deleteSnippetConfirm: string;
|
|
825
|
+
snippetCreated: string;
|
|
826
|
+
snippetAddedSuccess: string;
|
|
827
|
+
snippetUpdated: string;
|
|
828
|
+
snippetUpdatedSuccess: string;
|
|
829
|
+
titleRequired: string;
|
|
830
|
+
bodyRequired: string;
|
|
831
|
+
signatureError: string;
|
|
832
|
+
fetchError: string;
|
|
833
|
+
bulkDeleteTitle: string;
|
|
834
|
+
bulkDeleteDescription: string;
|
|
835
|
+
};
|
|
795
836
|
testNumbers: {
|
|
796
837
|
title: string;
|
|
797
838
|
subtitle: string;
|
|
@@ -8,4 +8,4 @@ export declare const HELPDESK_URL = "https://docs.bcrumbs.net/";
|
|
|
8
8
|
export declare const CHANGELOG_URL = "https://bcrumbs.featurebase.app/changelog";
|
|
9
9
|
export declare const FEEDBACK_URL = "https://bcrumbs.featurebase.app/";
|
|
10
10
|
export declare const ROADMAP_URL = "https://bcrumbs.featurebase.app/roadmap";
|
|
11
|
-
export declare const SUPPORT_PHONE = "
|
|
11
|
+
export declare const SUPPORT_PHONE = "905301749170";
|