@servicetitan/titan-chat-ui 2.1.2 → 3.0.0
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/CHANGELOG.md +12 -0
- package/dist/components/chat/__tests-cy__/chat-messages.test.js +3 -5
- package/dist/components/chat/__tests-cy__/chat-messages.test.js.map +1 -1
- package/dist/components/chat/__tests-cy__/chat.test.js +2 -4
- package/dist/components/chat/__tests-cy__/chat.test.js.map +1 -1
- package/dist/components/chat/chat-error.d.ts.map +1 -1
- package/dist/components/chat/chat-error.js +1 -1
- package/dist/components/chat/chat-error.js.map +1 -1
- package/dist/components/chat/chat-input-file.d.ts.map +1 -1
- package/dist/components/chat/chat-input-file.js +1 -1
- package/dist/components/chat/chat-input-file.js.map +1 -1
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +1 -1
- package/dist/components/chat/chat-input.js.map +1 -1
- package/dist/components/chat/chat-log.d.ts +1 -1
- package/dist/components/chat/chat-log.d.ts.map +1 -1
- package/dist/components/chat/chat-log.js +1 -1
- package/dist/components/chat/chat-log.js.map +1 -1
- package/dist/components/chat/chat-message-template-agent.d.ts +1 -1
- package/dist/components/chat/chat-message-template-agent.d.ts.map +1 -1
- package/dist/components/chat/chat-message-template-agent.js +1 -1
- package/dist/components/chat/chat-message-template-agent.js.map +1 -1
- package/dist/components/chat/chat-message-template-user.d.ts +1 -1
- package/dist/components/chat/chat-message-template-user.d.ts.map +1 -1
- package/dist/components/chat/chat-message-template-user.js +1 -2
- package/dist/components/chat/chat-message-template-user.js.map +1 -1
- package/dist/components/chat/chat-message-typing.d.ts.map +1 -1
- package/dist/components/chat/chat-message-typing.js +1 -1
- package/dist/components/chat/chat-message-typing.js.map +1 -1
- package/dist/components/chat/chat-message.d.ts +1 -1
- package/dist/components/chat/chat-message.d.ts.map +1 -1
- package/dist/components/chat/chat-message.js +1 -1
- package/dist/components/chat/chat-message.js.map +1 -1
- package/dist/components/chat/chat-messages.d.ts +1 -1
- package/dist/components/chat/chat-messages.d.ts.map +1 -1
- package/dist/components/chat/chat-messages.js +1 -1
- package/dist/components/chat/chat-messages.js.map +1 -1
- package/dist/components/chat/chat-notifications.d.ts.map +1 -1
- package/dist/components/chat/chat-notifications.js +1 -1
- package/dist/components/chat/chat-notifications.js.map +1 -1
- package/dist/components/chat/chat-timer.d.ts.map +1 -1
- package/dist/components/chat/chat-timer.js +1 -1
- package/dist/components/chat/chat-timer.js.map +1 -1
- package/dist/components/chat/chat.d.ts +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/chat/chat.js +1 -1
- package/dist/components/chat/chat.js.map +1 -1
- package/dist/components/message-content/message-content-file.d.ts +1 -1
- package/dist/components/message-content/message-content-file.d.ts.map +1 -1
- package/dist/components/message-content/message-content-file.js +1 -1
- package/dist/components/message-content/message-content-file.js.map +1 -1
- package/dist/components/message-content/message-content-text.d.ts +1 -1
- package/dist/components/message-content/message-content-text.d.ts.map +1 -1
- package/dist/components/message-content/message-content-text.js.map +1 -1
- package/dist/components/messages/__tests-cy__/message-agent.test.js +2 -2
- package/dist/components/messages/__tests-cy__/message-agent.test.js.map +1 -1
- package/dist/components/messages/__tests-cy__/message-system.test.js +1 -1
- package/dist/components/messages/__tests-cy__/message-system.test.js.map +1 -1
- package/dist/components/messages/__tests-cy__/message-timeout.test.js +1 -1
- package/dist/components/messages/__tests-cy__/message-timeout.test.js.map +1 -1
- package/dist/components/messages/__tests-cy__/message-typing.test.js +2 -2
- package/dist/components/messages/__tests-cy__/message-typing.test.js.map +1 -1
- package/dist/components/messages/__tests-cy__/message-user.test.js +1 -1
- package/dist/components/messages/__tests-cy__/message-user.test.js.map +1 -1
- package/dist/components/messages/message-avatar.d.ts +1 -1
- package/dist/components/messages/message-avatar.d.ts.map +1 -1
- package/dist/components/messages/message-avatar.js +1 -2
- package/dist/components/messages/message-avatar.js.map +1 -1
- package/dist/components/messages/message-footer.d.ts.map +1 -1
- package/dist/components/messages/message-footer.js +1 -1
- package/dist/components/messages/message-footer.js.map +1 -1
- package/dist/components/messages/use-avatar-props.d.ts +1 -1
- package/dist/components/messages/use-avatar-props.d.ts.map +1 -1
- package/dist/components/messages/use-avatar-props.js +1 -2
- package/dist/components/messages/use-avatar-props.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/stores/__tests__/chat-input.store.test.js +1 -1
- package/dist/stores/__tests__/chat-input.store.test.js.map +1 -1
- package/package.json +5 -6
- package/src/components/chat/__tests-cy__/chat-messages.test.tsx +4 -6
- package/src/components/chat/__tests-cy__/chat.test.tsx +6 -6
- package/src/components/chat/chat-error.tsx +1 -1
- package/src/components/chat/chat-input-file.tsx +1 -1
- package/src/components/chat/chat-input.tsx +1 -1
- package/src/components/chat/chat-log.tsx +1 -2
- package/src/components/chat/chat-message-template-agent.tsx +1 -2
- package/src/components/chat/chat-message-template-user.tsx +5 -2
- package/src/components/chat/chat-message-typing.tsx +1 -1
- package/src/components/chat/chat-message.tsx +5 -5
- package/src/components/chat/chat-messages.tsx +1 -2
- package/src/components/chat/chat-notifications.tsx +1 -1
- package/src/components/chat/chat-timer.tsx +1 -1
- package/src/components/chat/chat.tsx +1 -2
- package/src/components/message-content/message-content-file.tsx +1 -1
- package/src/components/message-content/message-content-text.tsx +1 -1
- package/src/components/messages/__tests-cy__/message-agent.test.tsx +2 -2
- package/src/components/messages/__tests-cy__/message-system.test.tsx +1 -1
- package/src/components/messages/__tests-cy__/message-timeout.test.tsx +1 -1
- package/src/components/messages/__tests-cy__/message-typing.test.tsx +2 -2
- package/src/components/messages/__tests-cy__/message-user.test.tsx +1 -1
- package/src/components/messages/message-avatar.tsx +1 -2
- package/src/components/messages/message-footer.tsx +1 -1
- package/src/components/messages/use-avatar-props.tsx +1 -2
- package/src/index.ts +1 -3
- package/src/stores/__tests__/chat-input.store.test.ts +1 -1
- package/tsconfig.json +7 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/models/__mocks__/support-chat.mock.d.ts +0 -9
- package/dist/models/__mocks__/support-chat.mock.d.ts.map +0 -1
- package/dist/models/__mocks__/support-chat.mock.js +0 -82
- package/dist/models/__mocks__/support-chat.mock.js.map +0 -1
- package/dist/models/chat-customizations.d.ts +0 -37
- package/dist/models/chat-customizations.d.ts.map +0 -1
- package/dist/models/chat-customizations.js +0 -2
- package/dist/models/chat-customizations.js.map +0 -1
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -4
- package/dist/models/index.js.map +0 -1
- package/dist/models/support-chat.d.ts +0 -76
- package/dist/models/support-chat.d.ts.map +0 -1
- package/dist/models/support-chat.js +0 -75
- package/dist/models/support-chat.js.map +0 -1
- package/dist/stores/__mocks-cy__/chat-ui.store.mock.d.ts +0 -71
- package/dist/stores/__mocks-cy__/chat-ui.store.mock.d.ts.map +0 -1
- package/dist/stores/__mocks-cy__/chat-ui.store.mock.js +0 -304
- package/dist/stores/__mocks-cy__/chat-ui.store.mock.js.map +0 -1
- package/dist/stores/__tests__/chat-ui.store.test.d.ts +0 -2
- package/dist/stores/__tests__/chat-ui.store.test.d.ts.map +0 -1
- package/dist/stores/__tests__/chat-ui.store.test.js +0 -424
- package/dist/stores/__tests__/chat-ui.store.test.js.map +0 -1
- package/dist/stores/chat-ui-backend-echo.store.d.ts +0 -13
- package/dist/stores/chat-ui-backend-echo.store.d.ts.map +0 -1
- package/dist/stores/chat-ui-backend-echo.store.js +0 -115
- package/dist/stores/chat-ui-backend-echo.store.js.map +0 -1
- package/dist/stores/chat-ui-backend.store.d.ts +0 -6
- package/dist/stores/chat-ui-backend.store.d.ts.map +0 -1
- package/dist/stores/chat-ui-backend.store.js +0 -3
- package/dist/stores/chat-ui-backend.store.js.map +0 -1
- package/dist/stores/chat-ui.store.d.ts +0 -153
- package/dist/stores/chat-ui.store.d.ts.map +0 -1
- package/dist/stores/chat-ui.store.js +0 -683
- package/dist/stores/chat-ui.store.js.map +0 -1
- package/dist/stores/index.d.ts +0 -3
- package/dist/stores/index.d.ts.map +0 -1
- package/dist/stores/index.js +0 -3
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/__tests__/text-utils.test.d.ts +0 -2
- package/dist/utils/__tests__/text-utils.test.d.ts.map +0 -1
- package/dist/utils/__tests__/text-utils.test.js +0 -59
- package/dist/utils/__tests__/text-utils.test.js.map +0 -1
- package/dist/utils/test-utils.d.ts +0 -5
- package/dist/utils/test-utils.d.ts.map +0 -1
- package/dist/utils/test-utils.js +0 -17
- package/dist/utils/test-utils.js.map +0 -1
- package/dist/utils/text-utils.d.ts +0 -6
- package/dist/utils/text-utils.d.ts.map +0 -1
- package/dist/utils/text-utils.js +0 -33
- package/dist/utils/text-utils.js.map +0 -1
- package/src/models/__mocks__/support-chat.mock.ts +0 -105
- package/src/models/chat-customizations.ts +0 -45
- package/src/models/index.ts +0 -3
- package/src/models/support-chat.ts +0 -117
- package/src/stores/__mocks-cy__/chat-ui.store.mock.ts +0 -113
- package/src/stores/__tests__/chat-ui.store.test.ts +0 -531
- package/src/stores/chat-ui-backend-echo.store.ts +0 -98
- package/src/stores/chat-ui-backend.store.ts +0 -10
- package/src/stores/chat-ui.store.ts +0 -539
- package/src/stores/index.ts +0 -10
- package/src/utils/__tests__/text-utils.test.ts +0 -70
- package/src/utils/test-utils.ts +0 -22
- package/src/utils/text-utils.ts +0 -36
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
import { ChatMessageState, ChatParticipantIcon, ChatRunState, } from '../../models';
|
|
2
|
-
import { symbolAgent, symbolUser } from '../chat-ui.store';
|
|
3
|
-
export class ChatUiStoreMock {
|
|
4
|
-
constructor() {
|
|
5
|
-
Object.defineProperty(this, "scrollCounter", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true,
|
|
9
|
-
value: 0
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(this, "isFilePickerEnabled", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(this, "isStarting", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: false
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(this, "isStarted", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: true
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(this, "isAgentTyping", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true,
|
|
33
|
-
value: false
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(this, "status", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true,
|
|
39
|
-
value: ChatRunState.Started
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(this, "file", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true,
|
|
44
|
-
writable: true,
|
|
45
|
-
value: undefined
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(this, "participants", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: {
|
|
52
|
-
[symbolAgent]: {
|
|
53
|
-
isAgent: true,
|
|
54
|
-
name: 'Agent',
|
|
55
|
-
icon: ChatParticipantIcon.Bot,
|
|
56
|
-
},
|
|
57
|
-
[symbolUser]: {
|
|
58
|
-
isAgent: false,
|
|
59
|
-
name: 'User',
|
|
60
|
-
icon: ChatParticipantIcon.Initials,
|
|
61
|
-
},
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(this, "messages", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true,
|
|
67
|
-
writable: true,
|
|
68
|
-
value: [
|
|
69
|
-
{
|
|
70
|
-
type: 'welcome',
|
|
71
|
-
id: 'messageid',
|
|
72
|
-
state: ChatMessageState.Delivered,
|
|
73
|
-
timestamp: new Date(),
|
|
74
|
-
message: 'Hi there! I’m ServiceTitan Bot, a chatbot powered by Titan Intelligence designed to answer your questions about using ServiceTitan. I’m here to help you, but I’m still learning, so I might not have all the answers yet. Do you have a question?',
|
|
75
|
-
participant: {
|
|
76
|
-
isAgent: true,
|
|
77
|
-
name: 'Agent',
|
|
78
|
-
icon: ChatParticipantIcon.Bot,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: 'message',
|
|
83
|
-
id: 'messageid2',
|
|
84
|
-
state: ChatMessageState.Delivered,
|
|
85
|
-
timestamp: new Date(),
|
|
86
|
-
message: 'How to create a form?',
|
|
87
|
-
participant: {
|
|
88
|
-
isAgent: false,
|
|
89
|
-
name: 'User',
|
|
90
|
-
icon: ChatParticipantIcon.Initials,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
]
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(this, "sendMessageRetry", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
configurable: true,
|
|
98
|
-
writable: true,
|
|
99
|
-
value: cy.stub()
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(this, "sendMessageText", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
configurable: true,
|
|
104
|
-
writable: true,
|
|
105
|
-
value: cy.stub()
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(this, "setFile", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
configurable: true,
|
|
110
|
-
writable: true,
|
|
111
|
-
value: cy.stub()
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(this, "triggerScroll", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
configurable: true,
|
|
116
|
-
writable: true,
|
|
117
|
-
value: cy.stub()
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(this, "addMessage", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
configurable: true,
|
|
122
|
-
writable: true,
|
|
123
|
-
value: cy.stub()
|
|
124
|
-
});
|
|
125
|
-
Object.defineProperty(this, "off", {
|
|
126
|
-
enumerable: true,
|
|
127
|
-
configurable: true,
|
|
128
|
-
writable: true,
|
|
129
|
-
value: cy.stub()
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(this, "on", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
configurable: true,
|
|
134
|
-
writable: true,
|
|
135
|
-
value: cy.stub()
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(this, "resetError", {
|
|
138
|
-
enumerable: true,
|
|
139
|
-
configurable: true,
|
|
140
|
-
writable: true,
|
|
141
|
-
value: cy.stub()
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(this, "reset", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
configurable: true,
|
|
146
|
-
writable: true,
|
|
147
|
-
value: cy.stub()
|
|
148
|
-
});
|
|
149
|
-
Object.defineProperty(this, "resetFile", {
|
|
150
|
-
enumerable: true,
|
|
151
|
-
configurable: true,
|
|
152
|
-
writable: true,
|
|
153
|
-
value: cy.stub()
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(this, "setAgentTyping", {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
configurable: true,
|
|
158
|
-
writable: true,
|
|
159
|
-
value: cy.stub()
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(this, "setChatError", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
configurable: true,
|
|
164
|
-
writable: true,
|
|
165
|
-
value: cy.stub()
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(this, "setError", {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
configurable: true,
|
|
170
|
-
writable: true,
|
|
171
|
-
value: cy.stub()
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(this, "setFilePickerEnabled", {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
configurable: true,
|
|
176
|
-
writable: true,
|
|
177
|
-
value: cy.stub()
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(this, "setMessageState", {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
configurable: true,
|
|
182
|
-
writable: true,
|
|
183
|
-
value: cy.stub()
|
|
184
|
-
});
|
|
185
|
-
Object.defineProperty(this, "addMessageWelcome", {
|
|
186
|
-
enumerable: true,
|
|
187
|
-
configurable: true,
|
|
188
|
-
writable: true,
|
|
189
|
-
value: cy.stub()
|
|
190
|
-
});
|
|
191
|
-
Object.defineProperty(this, "setCustomizationContext", {
|
|
192
|
-
enumerable: true,
|
|
193
|
-
configurable: true,
|
|
194
|
-
writable: true,
|
|
195
|
-
value: cy.stub()
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(this, "chasitorTyping", {
|
|
198
|
-
enumerable: true,
|
|
199
|
-
configurable: true,
|
|
200
|
-
writable: true,
|
|
201
|
-
value: cy.stub()
|
|
202
|
-
});
|
|
203
|
-
Object.defineProperty(this, "configure", {
|
|
204
|
-
enumerable: true,
|
|
205
|
-
configurable: true,
|
|
206
|
-
writable: true,
|
|
207
|
-
value: cy.stub()
|
|
208
|
-
});
|
|
209
|
-
Object.defineProperty(this, "run", {
|
|
210
|
-
enumerable: true,
|
|
211
|
-
configurable: true,
|
|
212
|
-
writable: true,
|
|
213
|
-
value: cy.stub()
|
|
214
|
-
});
|
|
215
|
-
Object.defineProperty(this, "recover", {
|
|
216
|
-
enumerable: true,
|
|
217
|
-
configurable: true,
|
|
218
|
-
writable: true,
|
|
219
|
-
value: cy.stub()
|
|
220
|
-
});
|
|
221
|
-
Object.defineProperty(this, "destroy", {
|
|
222
|
-
enumerable: true,
|
|
223
|
-
configurable: true,
|
|
224
|
-
writable: true,
|
|
225
|
-
value: cy.stub()
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(this, "setAgentIcon", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
configurable: true,
|
|
230
|
-
writable: true,
|
|
231
|
-
value: cy.stub()
|
|
232
|
-
});
|
|
233
|
-
Object.defineProperty(this, "setAgentName", {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
configurable: true,
|
|
236
|
-
writable: true,
|
|
237
|
-
value: cy.stub()
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(this, "setIncomingSound", {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
configurable: true,
|
|
242
|
-
writable: true,
|
|
243
|
-
value: cy.stub()
|
|
244
|
-
});
|
|
245
|
-
Object.defineProperty(this, "setMessages", {
|
|
246
|
-
enumerable: true,
|
|
247
|
-
configurable: true,
|
|
248
|
-
writable: true,
|
|
249
|
-
value: cy.stub()
|
|
250
|
-
});
|
|
251
|
-
Object.defineProperty(this, "setStatus", {
|
|
252
|
-
enumerable: true,
|
|
253
|
-
configurable: true,
|
|
254
|
-
writable: true,
|
|
255
|
-
value: cy.stub()
|
|
256
|
-
});
|
|
257
|
-
Object.defineProperty(this, "setTimer", {
|
|
258
|
-
enumerable: true,
|
|
259
|
-
configurable: true,
|
|
260
|
-
writable: true,
|
|
261
|
-
value: cy.stub()
|
|
262
|
-
});
|
|
263
|
-
Object.defineProperty(this, "restartTimers", {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
configurable: true,
|
|
266
|
-
writable: true,
|
|
267
|
-
value: cy.stub()
|
|
268
|
-
});
|
|
269
|
-
Object.defineProperty(this, "restart", {
|
|
270
|
-
enumerable: true,
|
|
271
|
-
configurable: true,
|
|
272
|
-
writable: true,
|
|
273
|
-
value: cy.stub()
|
|
274
|
-
});
|
|
275
|
-
Object.defineProperty(this, "cancelChat", {
|
|
276
|
-
enumerable: true,
|
|
277
|
-
configurable: true,
|
|
278
|
-
writable: true,
|
|
279
|
-
value: cy.stub()
|
|
280
|
-
});
|
|
281
|
-
Object.defineProperty(this, "endChat", {
|
|
282
|
-
enumerable: true,
|
|
283
|
-
configurable: true,
|
|
284
|
-
writable: true,
|
|
285
|
-
value: cy.stub()
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
get user() {
|
|
289
|
-
return this.participants[symbolUser];
|
|
290
|
-
}
|
|
291
|
-
get agent() {
|
|
292
|
-
return this.participants[symbolAgent];
|
|
293
|
-
}
|
|
294
|
-
get isEnded() {
|
|
295
|
-
return false;
|
|
296
|
-
}
|
|
297
|
-
get isError() {
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
get customizations() {
|
|
301
|
-
return {};
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
//# sourceMappingURL=chat-ui.store.mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-ui.store.mock.js","sourceRoot":"","sources":["../../../src/stores/__mocks-cy__/chat-ui.store.mock.ts"],"names":[],"mappings":"AACA,OAAO,EASH,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,GAEf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAqC,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9F,MAAM,OAAO,eAAe;IAA5B;QACI;;;;mBAAgB,CAAC;WAAC;QAClB;;;;mBAAsB,IAAI;WAAC;QAC3B;;;;mBAAa,KAAK;WAAC;QACnB;;;;mBAAY,IAAI;WAAC;QACjB;;;;mBAAgB,KAAK;WAAC;QACtB;;;;mBAAS,YAAY,CAAC,OAAO;WAAC;QAC9B;;;;mBAAO,SAAS;WAAC;QACjB;;;;mBAAe;gBACX,CAAC,WAAW,CAAC,EAAE;oBACX,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,mBAAmB,CAAC,GAAG;iBAChC;gBACD,CAAC,UAAU,CAAC,EAAE;oBACV,OAAO,EAAE,KAAK;oBACd,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,mBAAmB,CAAC,QAAQ;iBACrC;aACJ;WAAC;QAgBF;;;;mBAAmC;gBAC/B;oBACI,IAAI,EAA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