@paramms/chat-widget 1.0.29 → 1.0.31
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/dist/annotations.d.ts +11 -0
- package/dist/connection.d.ts +6 -0
- package/dist/core.d.ts +71 -0
- package/dist/core.js +146 -0
- package/dist/core.js.map +1 -0
- package/dist/e2e.js +1608 -0
- package/dist/e2e.js.map +1 -0
- package/dist/embed.js +4 -4
- package/dist/embed.js.map +1 -1
- package/dist/hooks.d.ts +43 -0
- package/dist/hooks.js +71 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.html +176 -0
- package/dist/index.js +545 -2058
- package/dist/index.js.map +1 -1
- package/dist/protocol/entities.d.ts +1 -0
- package/dist/protocol/frames.d.ts +2 -1
- package/package.json +14 -24
|
@@ -127,3 +127,4 @@ export interface Subject {
|
|
|
127
127
|
* single source of truth for "is this conversation finished?". */
|
|
128
128
|
export declare const TERMINAL_STATES: ReadonlySet<string>;
|
|
129
129
|
export declare function isTerminalState(state: string): boolean;
|
|
130
|
+
export type Channel = 'widget' | 'email' | 'sms' | 'whatsapp' | 'instagram' | 'kakao' | 'messenger' | 'line';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConnectionId, ConversationId, MessageId, ProfileId, SubjectId, UserId } from './ids.js';
|
|
2
|
-
import type { Conversation, Message, MessageContent, Subject, AnnotationStroke } from './entities.js';
|
|
2
|
+
import type { Channel, Conversation, Message, MessageContent, Subject, AnnotationStroke } from './entities.js';
|
|
3
3
|
import type { ManifestAction } from './actions.js';
|
|
4
4
|
export type ErrorCode = 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'BAD_REQUEST' | 'RATE_LIMITED' | 'PAYLOAD_TOO_LARGE' | 'CONFLICT' | 'INTERNAL';
|
|
5
5
|
export type ClientFrame = {
|
|
@@ -30,6 +30,7 @@ export type ClientFrame = {
|
|
|
30
30
|
clientMsgId: string;
|
|
31
31
|
content: MessageContent;
|
|
32
32
|
replyToId?: MessageId;
|
|
33
|
+
via?: Channel[];
|
|
33
34
|
} | {
|
|
34
35
|
type: 'sync';
|
|
35
36
|
conversationId: ConversationId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paramms/chat-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "Embeddable real-time chat widget for the Relay platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -15,29 +15,7 @@
|
|
|
15
15
|
"live-chat"
|
|
16
16
|
],
|
|
17
17
|
"files": [
|
|
18
|
-
"dist
|
|
19
|
-
"dist/index.js.map",
|
|
20
|
-
"dist/index.d.ts",
|
|
21
|
-
"dist/react.js",
|
|
22
|
-
"dist/react.js.map",
|
|
23
|
-
"dist/react.d.ts",
|
|
24
|
-
"dist/chatlist.js",
|
|
25
|
-
"dist/chatlist.js.map",
|
|
26
|
-
"dist/chatlist.d.ts",
|
|
27
|
-
"dist/uid.js",
|
|
28
|
-
"dist/uid.js.map",
|
|
29
|
-
"dist/uid.d.ts",
|
|
30
|
-
"dist/embed.js",
|
|
31
|
-
"dist/embed.js.map",
|
|
32
|
-
"dist/embed.d.ts",
|
|
33
|
-
"dist/store.d.ts",
|
|
34
|
-
"dist/connection.d.ts",
|
|
35
|
-
"dist/history.d.ts",
|
|
36
|
-
"dist/outbox.d.ts",
|
|
37
|
-
"dist/renderer.d.ts",
|
|
38
|
-
"dist/crypto.d.ts",
|
|
39
|
-
"dist/e2e.d.ts",
|
|
40
|
-
"dist/protocol"
|
|
18
|
+
"dist"
|
|
41
19
|
],
|
|
42
20
|
"type": "module",
|
|
43
21
|
"scripts": {
|
|
@@ -73,6 +51,18 @@
|
|
|
73
51
|
"./chatlist": {
|
|
74
52
|
"types": "./dist/chatlist.d.ts",
|
|
75
53
|
"default": "./dist/chatlist.js"
|
|
54
|
+
},
|
|
55
|
+
"./core": {
|
|
56
|
+
"types": "./dist/core.d.ts",
|
|
57
|
+
"default": "./dist/core.js"
|
|
58
|
+
},
|
|
59
|
+
"./hooks": {
|
|
60
|
+
"types": "./dist/hooks.d.ts",
|
|
61
|
+
"default": "./dist/hooks.js"
|
|
62
|
+
},
|
|
63
|
+
"./e2e": {
|
|
64
|
+
"types": "./dist/e2e.d.ts",
|
|
65
|
+
"default": "./dist/e2e.js"
|
|
76
66
|
}
|
|
77
67
|
},
|
|
78
68
|
"peerDependencies": {
|