@bcrumbs.net/inbox 0.0.10 → 0.0.20
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 +2 -1
- package/assets/en/inbox.json +2 -1
- package/index.cjs.js +5647 -5365
- package/index.esm.js +5645 -5371
- package/package.json +3 -6
- package/src/app/generic/components/Containers.d.ts +5 -0
- package/src/app/generic/components/Navs.d.ts +5 -0
- package/src/app/inbox/components/Chat/index.d.ts +3 -1
- package/src/app/inbox/components/Shared/Inbox.d.ts +17 -0
- package/src/app/inbox/constants/index.d.ts +1 -0
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +7 -0
- package/src/graphql.autogenerated.d.ts +87 -0
- package/src/lib/inbox.d.ts +1 -0
- package/src/lib/index.d.ts +1 -1
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.20",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -25,12 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@bcrumbs.net/bc-shared": "^0.0.5",
|
|
27
27
|
"@bcrumbs.net/bc-ui": "^0.0.2",
|
|
28
|
-
"@bcrumbs.net/bc-api": "^0.0.
|
|
28
|
+
"@bcrumbs.net/bc-api": "^0.0.41",
|
|
29
29
|
"@azure/storage-blob": "^12.25.0"
|
|
30
30
|
},
|
|
31
31
|
"module": "./index.esm.js",
|
|
32
|
-
"main": "./index.cjs.js"
|
|
33
|
-
"files": [
|
|
34
|
-
"./"
|
|
35
|
-
]
|
|
32
|
+
"main": "./index.cjs.js"
|
|
36
33
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FillContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Nav: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -3,6 +3,8 @@ interface Props {
|
|
|
3
3
|
selectedConv?: Conversation;
|
|
4
4
|
onConvEnd?: () => void;
|
|
5
5
|
agents?: Agent[];
|
|
6
|
+
logo?: string;
|
|
7
|
+
rtl: boolean;
|
|
6
8
|
}
|
|
7
|
-
declare const Chat: ({ selectedConv, onConvEnd, agents }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const Chat: ({ selectedConv, onConvEnd, agents, logo, rtl }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
10
|
export default Chat;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const defaultSelectedConvId: any;
|
|
3
|
+
export declare const MobileWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const MobileContent: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const InboxNoSelectionContainer: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type MobileViews = 'convList' | 'chat' | 'details';
|
|
13
|
+
export declare const MobileMenu: ({ embeddedMode, activePage, setActivePage }: {
|
|
14
|
+
embeddedMode?: boolean;
|
|
15
|
+
activePage: MobileViews;
|
|
16
|
+
setActivePage: (page: MobileViews) => void;
|
|
17
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -24,10 +24,17 @@ declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelect
|
|
|
24
24
|
content: string;
|
|
25
25
|
type: import("../../../graphql.autogenerated").MessageType;
|
|
26
26
|
isAgent: boolean;
|
|
27
|
+
agentId?: string | null | undefined;
|
|
27
28
|
status?: import("../../../graphql.autogenerated").MessageStatus | null | undefined;
|
|
28
29
|
externalMessageId?: string | null | undefined;
|
|
29
30
|
tags?: string[] | null | undefined;
|
|
30
31
|
createdAt: any;
|
|
32
|
+
context?: {
|
|
33
|
+
__typename?: "MessageContext" | undefined;
|
|
34
|
+
replyToId?: string | null | undefined;
|
|
35
|
+
replyToContent: string;
|
|
36
|
+
replyToType: import("../../../graphql.autogenerated").MessageType;
|
|
37
|
+
} | null | undefined;
|
|
31
38
|
}[] | null | undefined;
|
|
32
39
|
client?: {
|
|
33
40
|
__typename?: "ConversationClient" | undefined;
|
|
@@ -578,7 +578,9 @@ export declare const MediaType: {
|
|
|
578
578
|
export type MediaType = typeof MediaType[keyof typeof MediaType];
|
|
579
579
|
export type Message = {
|
|
580
580
|
__typename?: 'Message';
|
|
581
|
+
agentId?: Maybe<Scalars['ID']['output']>;
|
|
581
582
|
content: Scalars['String']['output'];
|
|
583
|
+
context?: Maybe<MessageContext>;
|
|
582
584
|
createdAt: Scalars['DateTime']['output'];
|
|
583
585
|
externalMessageId?: Maybe<Scalars['String']['output']>;
|
|
584
586
|
isAgent: Scalars['Boolean']['output'];
|
|
@@ -587,15 +589,23 @@ export type Message = {
|
|
|
587
589
|
tags?: Maybe<Array<Scalars['String']['output']>>;
|
|
588
590
|
type: MessageType;
|
|
589
591
|
};
|
|
592
|
+
export type MessageContext = {
|
|
593
|
+
__typename?: 'MessageContext';
|
|
594
|
+
replyToContent: Scalars['String']['output'];
|
|
595
|
+
replyToId?: Maybe<Scalars['ID']['output']>;
|
|
596
|
+
replyToType: MessageType;
|
|
597
|
+
};
|
|
590
598
|
export type MessageDto = {
|
|
591
599
|
__typename?: 'MessageDTO';
|
|
592
600
|
clientId?: Maybe<Scalars['ID']['output']>;
|
|
593
601
|
content: Scalars['String']['output'];
|
|
602
|
+
context?: Maybe<Scalars['JSON']['output']>;
|
|
594
603
|
conversationId?: Maybe<Scalars['ID']['output']>;
|
|
595
604
|
createdAt: Scalars['String']['output'];
|
|
596
605
|
debug?: Maybe<Scalars['Boolean']['output']>;
|
|
597
606
|
externalClientId: Scalars['String']['output'];
|
|
598
607
|
externalClientInfo?: Maybe<Scalars['JSON']['output']>;
|
|
608
|
+
externalContext?: Maybe<Scalars['JSON']['output']>;
|
|
599
609
|
externalConversationId?: Maybe<Scalars['String']['output']>;
|
|
600
610
|
externalMessageId?: Maybe<Scalars['String']['output']>;
|
|
601
611
|
integrationId: Scalars['ID']['output'];
|
|
@@ -1312,10 +1322,17 @@ export type ConversationFragment = {
|
|
|
1312
1322
|
content: string;
|
|
1313
1323
|
type: MessageType;
|
|
1314
1324
|
isAgent: boolean;
|
|
1325
|
+
agentId?: string | null;
|
|
1315
1326
|
status?: MessageStatus | null;
|
|
1316
1327
|
externalMessageId?: string | null;
|
|
1317
1328
|
tags?: Array<string> | null;
|
|
1318
1329
|
createdAt: any;
|
|
1330
|
+
context?: {
|
|
1331
|
+
__typename?: 'MessageContext';
|
|
1332
|
+
replyToId?: string | null;
|
|
1333
|
+
replyToContent: string;
|
|
1334
|
+
replyToType: MessageType;
|
|
1335
|
+
} | null;
|
|
1319
1336
|
}> | null;
|
|
1320
1337
|
client?: {
|
|
1321
1338
|
__typename?: 'ConversationClient';
|
|
@@ -1337,10 +1354,17 @@ export type MessageFragment = {
|
|
|
1337
1354
|
content: string;
|
|
1338
1355
|
type: MessageType;
|
|
1339
1356
|
isAgent: boolean;
|
|
1357
|
+
agentId?: string | null;
|
|
1340
1358
|
status?: MessageStatus | null;
|
|
1341
1359
|
externalMessageId?: string | null;
|
|
1342
1360
|
tags?: Array<string> | null;
|
|
1343
1361
|
createdAt: any;
|
|
1362
|
+
context?: {
|
|
1363
|
+
__typename?: 'MessageContext';
|
|
1364
|
+
replyToId?: string | null;
|
|
1365
|
+
replyToContent: string;
|
|
1366
|
+
replyToType: MessageType;
|
|
1367
|
+
} | null;
|
|
1344
1368
|
};
|
|
1345
1369
|
export type TagFragment = {
|
|
1346
1370
|
__typename?: 'Tag';
|
|
@@ -1370,10 +1394,17 @@ export type AddMessageMutation = {
|
|
|
1370
1394
|
content: string;
|
|
1371
1395
|
type: MessageType;
|
|
1372
1396
|
isAgent: boolean;
|
|
1397
|
+
agentId?: string | null;
|
|
1373
1398
|
status?: MessageStatus | null;
|
|
1374
1399
|
externalMessageId?: string | null;
|
|
1375
1400
|
tags?: Array<string> | null;
|
|
1376
1401
|
createdAt: any;
|
|
1402
|
+
context?: {
|
|
1403
|
+
__typename?: 'MessageContext';
|
|
1404
|
+
replyToId?: string | null;
|
|
1405
|
+
replyToContent: string;
|
|
1406
|
+
replyToType: MessageType;
|
|
1407
|
+
} | null;
|
|
1377
1408
|
};
|
|
1378
1409
|
};
|
|
1379
1410
|
export type AgentQueryVariables = Exact<{
|
|
@@ -1448,10 +1479,17 @@ export type AssignConvMutation = {
|
|
|
1448
1479
|
content: string;
|
|
1449
1480
|
type: MessageType;
|
|
1450
1481
|
isAgent: boolean;
|
|
1482
|
+
agentId?: string | null;
|
|
1451
1483
|
status?: MessageStatus | null;
|
|
1452
1484
|
externalMessageId?: string | null;
|
|
1453
1485
|
tags?: Array<string> | null;
|
|
1454
1486
|
createdAt: any;
|
|
1487
|
+
context?: {
|
|
1488
|
+
__typename?: 'MessageContext';
|
|
1489
|
+
replyToId?: string | null;
|
|
1490
|
+
replyToContent: string;
|
|
1491
|
+
replyToType: MessageType;
|
|
1492
|
+
} | null;
|
|
1455
1493
|
}> | null;
|
|
1456
1494
|
client?: {
|
|
1457
1495
|
__typename?: 'ConversationClient';
|
|
@@ -1615,10 +1653,17 @@ export type ConvsQuery = {
|
|
|
1615
1653
|
content: string;
|
|
1616
1654
|
type: MessageType;
|
|
1617
1655
|
isAgent: boolean;
|
|
1656
|
+
agentId?: string | null;
|
|
1618
1657
|
status?: MessageStatus | null;
|
|
1619
1658
|
externalMessageId?: string | null;
|
|
1620
1659
|
tags?: Array<string> | null;
|
|
1621
1660
|
createdAt: any;
|
|
1661
|
+
context?: {
|
|
1662
|
+
__typename?: 'MessageContext';
|
|
1663
|
+
replyToId?: string | null;
|
|
1664
|
+
replyToContent: string;
|
|
1665
|
+
replyToType: MessageType;
|
|
1666
|
+
} | null;
|
|
1622
1667
|
}> | null;
|
|
1623
1668
|
client?: {
|
|
1624
1669
|
__typename?: 'ConversationClient';
|
|
@@ -1754,10 +1799,17 @@ export type EndConvMutation = {
|
|
|
1754
1799
|
content: string;
|
|
1755
1800
|
type: MessageType;
|
|
1756
1801
|
isAgent: boolean;
|
|
1802
|
+
agentId?: string | null;
|
|
1757
1803
|
status?: MessageStatus | null;
|
|
1758
1804
|
externalMessageId?: string | null;
|
|
1759
1805
|
tags?: Array<string> | null;
|
|
1760
1806
|
createdAt: any;
|
|
1807
|
+
context?: {
|
|
1808
|
+
__typename?: 'MessageContext';
|
|
1809
|
+
replyToId?: string | null;
|
|
1810
|
+
replyToContent: string;
|
|
1811
|
+
replyToType: MessageType;
|
|
1812
|
+
} | null;
|
|
1761
1813
|
}> | null;
|
|
1762
1814
|
client?: {
|
|
1763
1815
|
__typename?: 'ConversationClient';
|
|
@@ -1813,10 +1865,17 @@ export type MessagesQuery = {
|
|
|
1813
1865
|
content: string;
|
|
1814
1866
|
type: MessageType;
|
|
1815
1867
|
isAgent: boolean;
|
|
1868
|
+
agentId?: string | null;
|
|
1816
1869
|
status?: MessageStatus | null;
|
|
1817
1870
|
externalMessageId?: string | null;
|
|
1818
1871
|
tags?: Array<string> | null;
|
|
1819
1872
|
createdAt: any;
|
|
1873
|
+
context?: {
|
|
1874
|
+
__typename?: 'MessageContext';
|
|
1875
|
+
replyToId?: string | null;
|
|
1876
|
+
replyToContent: string;
|
|
1877
|
+
replyToType: MessageType;
|
|
1878
|
+
} | null;
|
|
1820
1879
|
}> | null;
|
|
1821
1880
|
pageInfo?: {
|
|
1822
1881
|
__typename?: 'PageInfo';
|
|
@@ -1919,10 +1978,17 @@ export type PatchConvMutation = {
|
|
|
1919
1978
|
content: string;
|
|
1920
1979
|
type: MessageType;
|
|
1921
1980
|
isAgent: boolean;
|
|
1981
|
+
agentId?: string | null;
|
|
1922
1982
|
status?: MessageStatus | null;
|
|
1923
1983
|
externalMessageId?: string | null;
|
|
1924
1984
|
tags?: Array<string> | null;
|
|
1925
1985
|
createdAt: any;
|
|
1986
|
+
context?: {
|
|
1987
|
+
__typename?: 'MessageContext';
|
|
1988
|
+
replyToId?: string | null;
|
|
1989
|
+
replyToContent: string;
|
|
1990
|
+
replyToType: MessageType;
|
|
1991
|
+
} | null;
|
|
1926
1992
|
}> | null;
|
|
1927
1993
|
client?: {
|
|
1928
1994
|
__typename?: 'ConversationClient';
|
|
@@ -1967,10 +2033,17 @@ export type StartConvMutation = {
|
|
|
1967
2033
|
content: string;
|
|
1968
2034
|
type: MessageType;
|
|
1969
2035
|
isAgent: boolean;
|
|
2036
|
+
agentId?: string | null;
|
|
1970
2037
|
status?: MessageStatus | null;
|
|
1971
2038
|
externalMessageId?: string | null;
|
|
1972
2039
|
tags?: Array<string> | null;
|
|
1973
2040
|
createdAt: any;
|
|
2041
|
+
context?: {
|
|
2042
|
+
__typename?: 'MessageContext';
|
|
2043
|
+
replyToId?: string | null;
|
|
2044
|
+
replyToContent: string;
|
|
2045
|
+
replyToType: MessageType;
|
|
2046
|
+
} | null;
|
|
1974
2047
|
}> | null;
|
|
1975
2048
|
client?: {
|
|
1976
2049
|
__typename?: 'ConversationClient';
|
|
@@ -2038,10 +2111,17 @@ export type TagConvMutation = {
|
|
|
2038
2111
|
content: string;
|
|
2039
2112
|
type: MessageType;
|
|
2040
2113
|
isAgent: boolean;
|
|
2114
|
+
agentId?: string | null;
|
|
2041
2115
|
status?: MessageStatus | null;
|
|
2042
2116
|
externalMessageId?: string | null;
|
|
2043
2117
|
tags?: Array<string> | null;
|
|
2044
2118
|
createdAt: any;
|
|
2119
|
+
context?: {
|
|
2120
|
+
__typename?: 'MessageContext';
|
|
2121
|
+
replyToId?: string | null;
|
|
2122
|
+
replyToContent: string;
|
|
2123
|
+
replyToType: MessageType;
|
|
2124
|
+
} | null;
|
|
2045
2125
|
}> | null;
|
|
2046
2126
|
client?: {
|
|
2047
2127
|
__typename?: 'ConversationClient';
|
|
@@ -2125,10 +2205,17 @@ export type UntagConvMutation = {
|
|
|
2125
2205
|
content: string;
|
|
2126
2206
|
type: MessageType;
|
|
2127
2207
|
isAgent: boolean;
|
|
2208
|
+
agentId?: string | null;
|
|
2128
2209
|
status?: MessageStatus | null;
|
|
2129
2210
|
externalMessageId?: string | null;
|
|
2130
2211
|
tags?: Array<string> | null;
|
|
2131
2212
|
createdAt: any;
|
|
2213
|
+
context?: {
|
|
2214
|
+
__typename?: 'MessageContext';
|
|
2215
|
+
replyToId?: string | null;
|
|
2216
|
+
replyToContent: string;
|
|
2217
|
+
replyToType: MessageType;
|
|
2218
|
+
} | null;
|
|
2132
2219
|
}> | null;
|
|
2133
2220
|
client?: {
|
|
2134
2221
|
__typename?: 'ConversationClient';
|
package/src/lib/inbox.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Conversation } from '../graphql.autogenerated';
|
|
3
3
|
import { ConvsFilters } from '../app/inbox/utils/convs';
|
|
4
4
|
export type InboxProps = {
|
|
5
|
+
logo?: string;
|
|
5
6
|
rtl?: boolean;
|
|
6
7
|
onConversationChange?: (conversation: Conversation) => void;
|
|
7
8
|
initialFilters?: ConvsFilters;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Inbox } from './inbox';
|
|
2
2
|
export { auth } from '@bcrumbs.net/bc-shared';
|
|
3
3
|
export { ThemeProvider, useThemeContext } from '../context/themeContext';
|
|
4
|
-
export { dconfigClient, coreClient, botClient, dqueryClient } from '@bcrumbs.net/bc-api';
|
|
4
|
+
export { dconfigClient, coreClient, botClient, dqueryClient, setErrorHandler, getErrorHandler, } from '@bcrumbs.net/bc-api';
|