@bcrumbs.net/inbox 0.0.25 → 0.0.28
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/assets/ar/inbox.json +162 -151
- package/assets/en/inbox.json +163 -152
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +185 -100
- package/index.esm.d.ts +1 -1
- package/index.esm.js +187 -102
- package/package.json +2 -2
- package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +2 -1
- package/src/app/auth/components/UserAvatar/index.d.ts +2 -0
- package/src/app/auth/redux/actions/loginAction.d.ts +8 -0
- package/src/app/auth/redux/actions/registerAction.d.ts +8 -0
- package/src/app/auth/utils/formatNameFromEmail.d.ts +1 -0
- package/src/app/contact/components/AddContact.d.ts +7 -0
- package/src/app/contact/components/ContactFilterOptions.d.ts +10 -0
- package/src/app/contact/components/ContactLifeCycleFilterOptions.d.ts +5 -0
- package/src/app/contact/config/contactDefinition.d.ts +4 -0
- package/src/app/contact/config/contactLifeCycleDefinition.d.ts +4 -0
- package/src/app/contact/pages/contact/index.d.ts +2 -0
- package/src/app/contact/pages/contactLifeCycle/index.d.ts +2 -0
- package/src/app/contact/types.d.ts +62 -0
- package/src/app/generic/components/Containers.d.ts +12 -0
- package/src/app/generic/hooks/useGetProviderIcon.d.ts +4 -0
- package/src/app/generic/hooks/usePaginatedQuery.d.ts +20 -0
- package/src/app/generic/hooks/useResourceColumns.d.ts +19 -0
- package/src/app/generic/hooks/useSort.d.ts +7 -0
- package/src/app/inbox/components/NewConvList/ChatTypeSwitcher.d.ts +6 -0
- package/src/app/inbox/components/NewConvList/ConvList.d.ts +17 -0
- package/src/app/inbox/components/NewConvList/ConversationItem.d.ts +17 -0
- package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +9 -0
- package/src/app/inbox/components/NewConvList/index.d.ts +12 -0
- package/src/app/inbox/constants/index.d.ts +0 -1
- package/src/app/inbox/hooks/useConvFilter.d.ts +15 -0
- package/src/app/inbox/utils/convs.d.ts +2 -0
- package/src/app/layout/components/Header.d.ts +1 -2
- package/src/app/layout/constants/index.d.ts +11 -2
- package/src/app/layout/hooks/useMobileInboxVersion.d.ts +6 -0
- package/src/app/resources/config/types.d.ts +3 -0
- package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +2 -6
- package/src/app/subscriptions/constants/Plans.d.ts +2 -1
- package/src/assets/locales/translations.d.ts +48 -0
- package/src/config/constants.d.ts +1 -1
- package/src/graphql.autogenerated.d.ts +90 -0
- package/src/utils/localStorage.d.ts +1 -0
- package/src/utils/textUtils.d.ts +1 -0
- package/src/app/layout/components/language/LanguageIcon.d.ts +0 -2
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.28",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"graphql": "15.4.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bcrumbs.net/bc-shared": "^0.0.
|
|
26
|
+
"@bcrumbs.net/bc-shared": "^0.0.6",
|
|
27
27
|
"@bcrumbs.net/bc-ui": "^0.0.5",
|
|
28
28
|
"@bcrumbs.net/bc-api": "^0.0.42",
|
|
29
29
|
"@azure/storage-blob": "^12.25.0"
|
|
@@ -7,5 +7,6 @@ export type AccountSettingsProps = {
|
|
|
7
7
|
itemClicked: (e: DropdownListItemValue) => void;
|
|
8
8
|
itemsList: DropdownListItemType[];
|
|
9
9
|
dataTestid?: string;
|
|
10
|
+
userInfo?: any;
|
|
10
11
|
};
|
|
11
|
-
export declare function AccountSettingsDropdown({ url, itemsList, itemClicked, text, color, dataTestid, }: PropsWithChildren<AccountSettingsProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function AccountSettingsDropdown({ url, itemsList, itemClicked, text, color, dataTestid, userInfo }: PropsWithChildren<AccountSettingsProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type AccountWrapperProps = {
|
|
2
2
|
size?: number;
|
|
3
3
|
textSize?: number;
|
|
4
|
+
rtl?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export type UserAvatarProps = {
|
|
6
7
|
userInfo: {
|
|
@@ -9,6 +10,7 @@ export type UserAvatarProps = {
|
|
|
9
10
|
AccessFailedCount: number;
|
|
10
11
|
Id: string;
|
|
11
12
|
UserName: string;
|
|
13
|
+
Role?: string;
|
|
12
14
|
};
|
|
13
15
|
onLogout: () => void;
|
|
14
16
|
};
|
|
@@ -26,6 +26,14 @@ export declare function checkIfUserIsAuthenticated(time?: string, source?: strin
|
|
|
26
26
|
user: {
|
|
27
27
|
id: string;
|
|
28
28
|
username: string;
|
|
29
|
+
role: string;
|
|
30
|
+
} | {
|
|
31
|
+
id: string;
|
|
32
|
+
email: string;
|
|
33
|
+
username: string;
|
|
34
|
+
lastLogin: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
modifiedAt: string;
|
|
29
37
|
} | null;
|
|
30
38
|
source: string | undefined;
|
|
31
39
|
};
|
|
@@ -19,5 +19,13 @@ export declare function checkIfUserIsRegistered(time?: string): {
|
|
|
19
19
|
user: {
|
|
20
20
|
id: string;
|
|
21
21
|
username: string;
|
|
22
|
+
role: string;
|
|
23
|
+
} | {
|
|
24
|
+
id: string;
|
|
25
|
+
email: string;
|
|
26
|
+
username: string;
|
|
27
|
+
lastLogin: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
modifiedAt: string;
|
|
22
30
|
} | null;
|
|
23
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatNameFromEmail: (email?: string) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface AddContactProps {
|
|
2
|
+
setAddContactIsOpen: (isOpen: boolean) => void;
|
|
3
|
+
addContactIsOpen: boolean;
|
|
4
|
+
onContactCreated?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const AddContact: ({ setAddContactIsOpen, addContactIsOpen, onContactCreated }: AddContactProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AddContact;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface FilterOptionsProps {
|
|
2
|
+
setSelectedTags: (tags: string[]) => void;
|
|
3
|
+
selectedTags: string[];
|
|
4
|
+
setSelectedStageId: (stageId: string | undefined) => void;
|
|
5
|
+
selectedStageId: string | undefined;
|
|
6
|
+
setFilterIsOpen: (isOpen: boolean) => void;
|
|
7
|
+
onApplyFilters?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const FilterOptions: ({ setSelectedTags, selectedTags, setSelectedStageId, selectedStageId, setFilterIsOpen, onApplyFilters, }: FilterOptionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default FilterOptions;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
import { ModelFieldsTypes } from '@bcrumbs.net/bc-api';
|
|
4
|
+
export interface BackendField<T> {
|
|
5
|
+
field: keyof T;
|
|
6
|
+
i18Key?: string;
|
|
7
|
+
type: ModelFieldsTypes;
|
|
8
|
+
options?: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
subFields?: BackendField<T>[];
|
|
13
|
+
cssClass?: string;
|
|
14
|
+
CustomHeaderComponent?: React.FC<any>;
|
|
15
|
+
CustomRowComponent?: React.FC<any>;
|
|
16
|
+
sortable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface BackendCallDefinition<T> {
|
|
19
|
+
fields?: BackendField<T>[];
|
|
20
|
+
type: 'query' | 'lazyQuery' | 'mutation';
|
|
21
|
+
isPaginated?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface BackendQueryDefinition<T> extends BackendCallDefinition<T> {
|
|
24
|
+
reactHook: (options: Apollo.QueryHookOptions<any, any> & ({
|
|
25
|
+
variables: any;
|
|
26
|
+
skip?: boolean;
|
|
27
|
+
} | {
|
|
28
|
+
skip: boolean;
|
|
29
|
+
})) => Apollo.QueryResult<any, any>;
|
|
30
|
+
queryName: string;
|
|
31
|
+
type: 'query';
|
|
32
|
+
}
|
|
33
|
+
export interface BackendLazyQueryDefinition<T> extends BackendCallDefinition<T> {
|
|
34
|
+
reactHook: (options: Apollo.LazyQueryHookOptions<any, any> & ({
|
|
35
|
+
variables: any;
|
|
36
|
+
skip?: boolean;
|
|
37
|
+
} | {
|
|
38
|
+
skip: boolean;
|
|
39
|
+
})) => Apollo.LazyQueryResultTuple<any, any>;
|
|
40
|
+
queryName: string;
|
|
41
|
+
type: 'lazyQuery';
|
|
42
|
+
}
|
|
43
|
+
export interface CustomComponentProps<T> {
|
|
44
|
+
resourceDef: ResourceDefinition<T>;
|
|
45
|
+
itemId?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface BackendMutationDefinition<T> extends BackendCallDefinition<T> {
|
|
48
|
+
component?: React.FC<CustomComponentProps<T>>;
|
|
49
|
+
reactHook: (options: Apollo.MutationHookOptions<any, any>) => Apollo.MutationTuple<any, any, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
50
|
+
type: 'mutation';
|
|
51
|
+
}
|
|
52
|
+
export interface ResourceDefinition<T> {
|
|
53
|
+
name: string;
|
|
54
|
+
i18Key: string;
|
|
55
|
+
orderField?: keyof T;
|
|
56
|
+
listQuery: BackendLazyQueryDefinition<T> | BackendQueryDefinition<T>;
|
|
57
|
+
getQuery?: BackendQueryDefinition<T>;
|
|
58
|
+
createMutation?: BackendMutationDefinition<T>;
|
|
59
|
+
patchMutation?: BackendMutationDefinition<T>;
|
|
60
|
+
deleteMutation?: Omit<BackendMutationDefinition<T>, 'fields'>;
|
|
61
|
+
client?: Apollo.ApolloClient<Apollo.NormalizedCacheObject>;
|
|
62
|
+
}
|
|
@@ -3,3 +3,15 @@ export declare const FillContainer: import("@emotion/styled").StyledComponent<{
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const FilterContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const ModalTitle: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
|
+
export declare const ResourceTitle: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface PaginationOptions {
|
|
2
|
+
limit?: number;
|
|
3
|
+
workspaceId?: string;
|
|
4
|
+
additionalVariables?: Record<string, any>;
|
|
5
|
+
searchQuery?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
stageId?: string;
|
|
8
|
+
}
|
|
9
|
+
interface UsePaginatedQueryResult<T> {
|
|
10
|
+
items: T[];
|
|
11
|
+
hasMore: boolean;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
error: any;
|
|
14
|
+
loadMoreItems?: () => void;
|
|
15
|
+
refetch: () => void;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
loadingMore: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const usePaginatedQuery: <T = any>(resourceDef: any, options?: PaginationOptions) => UsePaginatedQueryResult<T>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CellContext } from '@tanstack/react-table';
|
|
2
|
+
import { CustomColumn, TableAction } from '@bcrumbs.net/bc-ui';
|
|
3
|
+
import { ResourceDefinition } from '../../resources/config';
|
|
4
|
+
interface GetResourceColumnsParams {
|
|
5
|
+
resourceDef: ResourceDefinition<any>;
|
|
6
|
+
onSortChange?: (field: string) => void;
|
|
7
|
+
customHeaderProps?: any;
|
|
8
|
+
customRowProps?: any;
|
|
9
|
+
otherActions?: TableAction[];
|
|
10
|
+
handlePatchResource?: (row: CellContext<any, any>) => void;
|
|
11
|
+
handleDeleteResource?: (row: CellContext<any, any>) => void;
|
|
12
|
+
currentSortField?: string;
|
|
13
|
+
currentSortDirection?: 'asc' | 'desc';
|
|
14
|
+
}
|
|
15
|
+
export declare const useResourceColumns: ({ resourceDef, onSortChange, customHeaderProps, customRowProps, otherActions, handlePatchResource, handleDeleteResource, currentSortField, currentSortDirection, }: GetResourceColumnsParams) => {
|
|
16
|
+
columns: CustomColumn[];
|
|
17
|
+
actions: TableAction[];
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface ChatTypeSwitcherProps {
|
|
2
|
+
chatType: string;
|
|
3
|
+
setChatType: (chatType: string) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const ChatTypeSwitcher: ({ chatType, setChatType }: ChatTypeSwitcherProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ChatTypeSwitcher;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
import { Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
import { ConvsFilters } from '../../utils/convs';
|
|
4
|
+
interface ConvListProps {
|
|
5
|
+
convs: Conversation[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
conversationTags: Tag[];
|
|
8
|
+
clientTags: Tag[];
|
|
9
|
+
clientStages: Tag[];
|
|
10
|
+
convStages: Tag[];
|
|
11
|
+
agents: Agent[];
|
|
12
|
+
filters: ConvsFilters;
|
|
13
|
+
setFilters: (filters: ConvsFilters) => void;
|
|
14
|
+
DropdownActions: ActionItem[];
|
|
15
|
+
}
|
|
16
|
+
declare const ConvList: ({ convs, loading, conversationTags, clientTags, clientStages, convStages, agents, filters, setFilters, DropdownActions, }: ConvListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default ConvList;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
2
|
+
import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
3
|
+
import { ConvsFilters } from '../../utils/convs';
|
|
4
|
+
interface ConversationItemProps {
|
|
5
|
+
conv: Conversation;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
conversationTags: Tag[];
|
|
8
|
+
clientTags: Tag[];
|
|
9
|
+
clientStages: Tag[];
|
|
10
|
+
convStages: Tag[];
|
|
11
|
+
agents: Agent[];
|
|
12
|
+
filters: ConvsFilters;
|
|
13
|
+
setFilters: (filters: ConvsFilters) => void;
|
|
14
|
+
DropdownActions: ActionItem[];
|
|
15
|
+
}
|
|
16
|
+
declare const ConversationItem: ({ conv, isActive, conversationTags, clientTags, clientStages, convStages, agents, filters, setFilters, DropdownActions, }: ConversationItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default ConversationItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
interface HeaderSectionProps {
|
|
3
|
+
searchQuery: string;
|
|
4
|
+
setSearchQuery: (value: string) => void;
|
|
5
|
+
agentsMenu: ActionItem[];
|
|
6
|
+
lifeCycleMenu: ActionItem[];
|
|
7
|
+
}
|
|
8
|
+
declare const HeaderSection: ({ searchQuery, setSearchQuery, agentsMenu, lifeCycleMenu }: HeaderSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default HeaderSection;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
2
|
+
interface NewConvListProps {
|
|
3
|
+
agents: Agent[];
|
|
4
|
+
convStages: Tag[];
|
|
5
|
+
convs: Conversation[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
conversationTags: Tag[];
|
|
8
|
+
clientTags: Tag[];
|
|
9
|
+
clientStages: Tag[];
|
|
10
|
+
}
|
|
11
|
+
declare const NewConvList: ({ agents, convStages, convs, loading, conversationTags, clientTags, clientStages, }: NewConvListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default NewConvList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Agent, Tag } from '../../../graphql.autogenerated';
|
|
2
|
+
import { ConvsFilters } from '../utils/convs';
|
|
3
|
+
import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
4
|
+
declare const useConvFilter: ({ filters, setFilters, agents, convStages, myAgent, }: {
|
|
5
|
+
filters: ConvsFilters;
|
|
6
|
+
setFilters: (filters: ConvsFilters) => void;
|
|
7
|
+
agents: Agent[];
|
|
8
|
+
convStages: Tag[];
|
|
9
|
+
myAgent: Agent | undefined;
|
|
10
|
+
}) => {
|
|
11
|
+
DropdownActions: ActionItem[];
|
|
12
|
+
getAgentsMenu: (addSeparatorAtLast?: boolean) => ActionItem[];
|
|
13
|
+
getLifeCycleMenu: (addSeparatorAtLast?: boolean) => ActionItem[];
|
|
14
|
+
};
|
|
15
|
+
export default useConvFilter;
|
|
@@ -9,3 +9,5 @@ export type ConvsFilters = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function getNumOfNewClientMessages(messages: Maybe<Message[]> | undefined): number;
|
|
11
11
|
export declare function getLastMessage(messages: Maybe<Message[]> | undefined): Message;
|
|
12
|
+
export declare function truncateParagraph(paragraph: string, count?: number): string;
|
|
13
|
+
export declare function formatSeconds(value: number): string;
|
|
@@ -10,8 +10,7 @@ export declare const Separator: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
declare function Header({ onLogout
|
|
13
|
+
declare function Header({ onLogout }: {
|
|
14
14
|
onLogout: () => void;
|
|
15
|
-
mobileInboxVersion: boolean;
|
|
16
15
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
16
|
export default Header;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import { Permission } from '@bcrumbs.net/bc-shared';
|
|
1
2
|
export declare const BCMainNavigation: {
|
|
2
|
-
leftLinks: {
|
|
3
|
+
leftLinks: ({
|
|
3
4
|
label: string;
|
|
4
5
|
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
6
|
link: string;
|
|
6
7
|
action: string;
|
|
7
|
-
|
|
8
|
+
requiredPermissions?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
link: string;
|
|
13
|
+
action: string;
|
|
14
|
+
requiredPermissions: Permission[];
|
|
15
|
+
})[];
|
|
8
16
|
leftBottomLinks: {
|
|
9
17
|
label: string;
|
|
10
18
|
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -12,3 +20,4 @@ export declare const BCMainNavigation: {
|
|
|
12
20
|
action: string;
|
|
13
21
|
}[];
|
|
14
22
|
};
|
|
23
|
+
export declare const MOBILE_DIMENSION = 767;
|
|
@@ -11,6 +11,9 @@ export interface BackendField<T> {
|
|
|
11
11
|
}[];
|
|
12
12
|
subFields?: BackendField<T>[];
|
|
13
13
|
cssClass?: string;
|
|
14
|
+
CustomHeaderComponent?: React.FC<any>;
|
|
15
|
+
CustomRowComponent?: React.FC<any>;
|
|
16
|
+
sortable?: boolean;
|
|
14
17
|
}
|
|
15
18
|
export interface BackendCallDefinition<T> {
|
|
16
19
|
fields?: BackendField<T>[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FooterItemsProps, HeaderItemsProps, DropdownListItemType, Color } from '@bcrumbs.net/bc-ui';
|
|
1
|
+
import { FooterItemsProps, HeaderItemsProps, DropdownListItemType } from '@bcrumbs.net/bc-ui';
|
|
3
2
|
export type SwitcherProps = {
|
|
4
3
|
items: DropdownListItemType[];
|
|
5
4
|
title?: string;
|
|
@@ -7,9 +6,6 @@ export type SwitcherProps = {
|
|
|
7
6
|
footerItems?: FooterItemsProps[] | null;
|
|
8
7
|
width?: number;
|
|
9
8
|
name?: string;
|
|
10
|
-
img?: string;
|
|
11
|
-
iconContent?: ReactElement;
|
|
12
|
-
bgColor: Color;
|
|
13
9
|
maxVisibleItems?: number;
|
|
14
10
|
plan?: string | null;
|
|
15
11
|
addPlanWord?: boolean;
|
|
@@ -18,4 +14,4 @@ export type SwitcherProps = {
|
|
|
18
14
|
}) => void;
|
|
19
15
|
isLoading: boolean;
|
|
20
16
|
};
|
|
21
|
-
export declare function Switcher({ items, title, headerItems, footerItems, width, name,
|
|
17
|
+
export declare function Switcher({ items, title, headerItems, footerItems, width, name, maxVisibleItems, addPlanWord, isLoading, plan, onDropdownStateChange, }: SwitcherProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -104,6 +104,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
104
104
|
terms: string;
|
|
105
105
|
};
|
|
106
106
|
subscriptions: {
|
|
107
|
+
planName: string;
|
|
107
108
|
subscriptions: string;
|
|
108
109
|
settings: string;
|
|
109
110
|
sortByName: string;
|
|
@@ -294,6 +295,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
294
295
|
startWith_AGENT: string;
|
|
295
296
|
startWith_AI_BY_COUNTRY_CODE: string;
|
|
296
297
|
startWith_AGENT_BY_COUNTRY_CODE: string;
|
|
298
|
+
startWith_AUTO: string;
|
|
297
299
|
countryCode: string;
|
|
298
300
|
defaultAI: string;
|
|
299
301
|
defaultAgent: string;
|
|
@@ -367,6 +369,9 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
367
369
|
broadcast: string;
|
|
368
370
|
launch: string;
|
|
369
371
|
messageTemplate: string;
|
|
372
|
+
version: string;
|
|
373
|
+
contactLifeCycle: string;
|
|
374
|
+
contact: string;
|
|
370
375
|
};
|
|
371
376
|
dashboard: {
|
|
372
377
|
dashboardOverview: string;
|
|
@@ -444,4 +449,47 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
444
449
|
retry: string;
|
|
445
450
|
checking: string;
|
|
446
451
|
};
|
|
452
|
+
contact: {
|
|
453
|
+
addNewContact: string;
|
|
454
|
+
searchPlaceholder: string;
|
|
455
|
+
export: string;
|
|
456
|
+
name: string;
|
|
457
|
+
surname: string;
|
|
458
|
+
email: string;
|
|
459
|
+
phone: string;
|
|
460
|
+
address: string;
|
|
461
|
+
createDate: string;
|
|
462
|
+
tags: string;
|
|
463
|
+
loadingMoreText: string;
|
|
464
|
+
filterContent: string;
|
|
465
|
+
category: string;
|
|
466
|
+
status: string;
|
|
467
|
+
from: string;
|
|
468
|
+
to: string;
|
|
469
|
+
apply: string;
|
|
470
|
+
namePlaceholder: string;
|
|
471
|
+
surnamePlaceholder: string;
|
|
472
|
+
emailPlaceholder: string;
|
|
473
|
+
group: string;
|
|
474
|
+
groupPlaceholder: string;
|
|
475
|
+
cancel: string;
|
|
476
|
+
save: string;
|
|
477
|
+
externalClientId: string;
|
|
478
|
+
externalClientIdPlaceholder: string;
|
|
479
|
+
stage: string;
|
|
480
|
+
noTagsAvailable: string;
|
|
481
|
+
noStagesAvailable: string;
|
|
482
|
+
title: string;
|
|
483
|
+
noContacts: string;
|
|
484
|
+
};
|
|
485
|
+
contactLifeCycle: {
|
|
486
|
+
searchPlaceholder: string;
|
|
487
|
+
export: string;
|
|
488
|
+
filterContent: string;
|
|
489
|
+
from: string;
|
|
490
|
+
to: string;
|
|
491
|
+
apply: string;
|
|
492
|
+
title: string;
|
|
493
|
+
noContactLifecycle: string;
|
|
494
|
+
};
|
|
447
495
|
}>, current?: string) => void;
|
|
@@ -8,4 +8,4 @@ export declare const HELPDESK_URL = "https://bcrumbs.featurebase.app/help";
|
|
|
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 = "19179638971";
|