@thoughtspot/visual-embed-sdk 1.39.2 → 1.40.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/cjs/package.json +1 -1
- package/cjs/src/config.spec.js +9 -0
- package/cjs/src/config.spec.js.map +1 -1
- package/cjs/src/embed/app.d.ts +75 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +69 -9
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +378 -15
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +23 -7
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +31 -5
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.spec.js +8 -190
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +28 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +9 -7
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +9 -7
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +56 -17
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +48 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +218 -11
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +1 -0
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +3 -2
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +73 -20
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +79 -42
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +438 -100
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +331 -13
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +296 -8
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/global-styles.js +1 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.js +7 -1
- package/cjs/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +2 -1
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils.d.ts +6 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +23 -3
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +237 -1
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CmEQfuE3.js → index-CAEHQGLc.js} +1 -1
- package/dist/src/embed/app.d.ts +75 -15
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +23 -7
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +9 -7
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +56 -17
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +73 -20
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +331 -13
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/dist/src/utils.d.ts +6 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +568 -87
- package/dist/tsembed-react.js +568 -85
- package/dist/tsembed.es.js +486 -40
- package/dist/tsembed.js +484 -38
- package/dist/visual-embed-sdk-react-full.d.ts +545 -79
- package/dist/visual-embed-sdk-react.d.ts +545 -79
- package/dist/visual-embed-sdk.d.ts +473 -60
- package/lib/package.json +1 -1
- package/lib/src/config.spec.js +9 -0
- package/lib/src/config.spec.js.map +1 -1
- package/lib/src/embed/app.d.ts +75 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +69 -9
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +380 -17
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +23 -7
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +30 -5
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.spec.js +9 -191
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +30 -2
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +9 -7
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +9 -7
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +56 -17
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +49 -5
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +218 -11
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +1 -0
- package/lib/src/errors.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.d.ts +73 -20
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +79 -43
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +441 -103
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +331 -13
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +296 -8
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/global-styles.js +1 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.js +7 -1
- package/lib/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
- package/lib/src/utils/processTrigger.js +2 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils.d.ts +6 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +21 -2
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +238 -2
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +474 -61
- package/package.json +1 -1
- package/src/config.spec.ts +11 -0
- package/src/embed/app.spec.ts +486 -30
- package/src/embed/app.ts +133 -27
- package/src/embed/bodyless-conversation.spec.ts +9 -203
- package/src/embed/bodyless-conversation.ts +34 -10
- package/src/embed/conversation.spec.ts +40 -2
- package/src/embed/embedConfig.ts +10 -8
- package/src/embed/liveboard.spec.ts +259 -5
- package/src/embed/liveboard.ts +98 -27
- package/src/errors.ts +1 -0
- package/src/index.ts +2 -0
- package/src/react/all-types-export.ts +2 -1
- package/src/react/index.spec.tsx +558 -157
- package/src/react/index.tsx +117 -51
- package/src/types.ts +368 -50
- package/src/utils/global-styles.ts +1 -1
- package/src/utils/graphql/nlsService/conversation-service.ts +7 -1
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils.spec.ts +279 -2
- package/src/utils.ts +28 -2
|
@@ -3,7 +3,7 @@ import { TsEmbed } from './ts-embed';
|
|
|
3
3
|
import { Conversation as ConversationService } from '../utils/graphql/nlsService/conversation-service';
|
|
4
4
|
import { getEmbedConfig } from './embedConfig';
|
|
5
5
|
import { getQueryParamString } from '../utils';
|
|
6
|
-
class ConversationMessage extends TsEmbed {
|
|
6
|
+
export class ConversationMessage extends TsEmbed {
|
|
7
7
|
constructor(container, viewConfig) {
|
|
8
8
|
viewConfig.embedComponentType = 'bodyless-conversation';
|
|
9
9
|
super(container, viewConfig);
|
|
@@ -11,7 +11,7 @@ class ConversationMessage extends TsEmbed {
|
|
|
11
11
|
}
|
|
12
12
|
getIframeSrc() {
|
|
13
13
|
var _a;
|
|
14
|
-
const { sessionId, genNo, acSessionId, acGenNo, } = this.viewConfig;
|
|
14
|
+
const { sessionId, genNo, acSessionId, acGenNo, convId, messageId, } = this.viewConfig;
|
|
15
15
|
const path = 'conv-assist-answer';
|
|
16
16
|
const queryParams = this.getBaseQueryParams();
|
|
17
17
|
queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
|
|
@@ -26,6 +26,8 @@ class ConversationMessage extends TsEmbed {
|
|
|
26
26
|
genNo,
|
|
27
27
|
acSessionId,
|
|
28
28
|
acGenNo,
|
|
29
|
+
convId,
|
|
30
|
+
messageId,
|
|
29
31
|
});
|
|
30
32
|
return `${this.getEmbedBasePath(query)}/embed/${path}${tsPostHashParams}`;
|
|
31
33
|
}
|
|
@@ -67,11 +69,10 @@ export class SpotterAgentEmbed {
|
|
|
67
69
|
return { error };
|
|
68
70
|
}
|
|
69
71
|
const container = document.createElement('div');
|
|
70
|
-
if (this.viewConfig.containerClassName) {
|
|
71
|
-
container.className = this.viewConfig.containerClassName;
|
|
72
|
-
}
|
|
73
72
|
const embed = new ConversationMessage(container, {
|
|
74
73
|
...this.viewConfig,
|
|
74
|
+
convId: data.convId,
|
|
75
|
+
messageId: data.messageId,
|
|
75
76
|
sessionId: data.sessionId,
|
|
76
77
|
genNo: data.genNo,
|
|
77
78
|
acSessionId: data.stateKey.transactionId,
|
|
@@ -80,6 +81,30 @@ export class SpotterAgentEmbed {
|
|
|
80
81
|
await embed.render();
|
|
81
82
|
return { container, viz: embed };
|
|
82
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Send a message to the conversation service and return only the data.
|
|
86
|
+
* @param userMessage - The message to send to the conversation service.
|
|
87
|
+
* @returns The data from the conversation service.
|
|
88
|
+
*/
|
|
89
|
+
async sendMessageData(userMessage) {
|
|
90
|
+
try {
|
|
91
|
+
const { data, error } = await this.conversationService.sendMessage(userMessage);
|
|
92
|
+
if (error) {
|
|
93
|
+
return { error };
|
|
94
|
+
}
|
|
95
|
+
return { data: {
|
|
96
|
+
convId: data.convId,
|
|
97
|
+
messageId: data.messageId,
|
|
98
|
+
sessionId: data.sessionId,
|
|
99
|
+
genNo: data.genNo,
|
|
100
|
+
acSessionId: data.stateKey.transactionId,
|
|
101
|
+
acGenNo: data.stateKey.generationNumber,
|
|
102
|
+
} };
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
return { error: error };
|
|
106
|
+
}
|
|
107
|
+
}
|
|
83
108
|
}
|
|
84
109
|
/**
|
|
85
110
|
* Create a conversation embed, which can be integrated inside
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyless-conversation.js","sourceRoot":"","sources":["../../../src/embed/bodyless-conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,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AgentEmbed } from './bodyless-conversation';
|
|
2
|
+
import { SpotterAgentEmbed, ConversationMessage } from './bodyless-conversation';
|
|
3
3
|
import * as authInstance from '../auth';
|
|
4
4
|
import { init } from '../index';
|
|
5
5
|
import { Action, AuthType } from '../types';
|
|
@@ -117,7 +117,7 @@ describe('SpotterAgentEmbed', () => {
|
|
|
117
117
|
const errorResult = await spotterEmbed.sendMessage('userMessage');
|
|
118
118
|
expect(errorResult.error instanceof Error).toBeTruthy();
|
|
119
119
|
});
|
|
120
|
-
test('should
|
|
120
|
+
test('should handle hideActions parameter correctly', async () => {
|
|
121
121
|
fetchMock.mockResponses(JSON.stringify({
|
|
122
122
|
data: {
|
|
123
123
|
ConvAssist__createConversation: {
|
|
@@ -202,205 +202,23 @@ describe('SpotterAgentEmbed', () => {
|
|
|
202
202
|
}));
|
|
203
203
|
const viewConfig = {
|
|
204
204
|
worksheetId: 'worksheetId',
|
|
205
|
-
|
|
205
|
+
hiddenActions: [Action.Download, Action.Save], // This should trigger the HideActions branch
|
|
206
206
|
};
|
|
207
207
|
const spotterAgentEmbed = new SpotterAgentEmbed(viewConfig);
|
|
208
208
|
const result = await spotterAgentEmbed.sendMessage('userMessage');
|
|
209
|
-
// Verify
|
|
210
|
-
expect(result.container.className).toBe('custom-conversation-container');
|
|
211
|
-
// Also verify the iframe src is correct
|
|
209
|
+
// Verify the iframe src contains the hideActions parameter
|
|
212
210
|
const iframeSrc = getIFrameSrc(result.container);
|
|
213
|
-
|
|
214
|
-
sessionId: 'sessionId',
|
|
215
|
-
genNo: 2,
|
|
216
|
-
acSessionId: 'transactionId',
|
|
217
|
-
acGenNo: 1,
|
|
218
|
-
});
|
|
211
|
+
expect(iframeSrc).toContain('hideAction');
|
|
219
212
|
});
|
|
220
|
-
test('should
|
|
221
|
-
fetchMock.mockResponses(JSON.stringify({
|
|
222
|
-
data: {
|
|
223
|
-
ConvAssist__createConversation: {
|
|
224
|
-
convId: 'conversationId',
|
|
225
|
-
initialCtx: {
|
|
226
|
-
type: 'TS_ANSWER',
|
|
227
|
-
tsAnsCtx: {
|
|
228
|
-
sessionId: 'sessionId',
|
|
229
|
-
genNo: 1,
|
|
230
|
-
stateKey: {
|
|
231
|
-
transactionId: 'transactionId',
|
|
232
|
-
generationNumber: 1,
|
|
233
|
-
},
|
|
234
|
-
worksheet: {
|
|
235
|
-
worksheetId: 'worksheetId',
|
|
236
|
-
worksheetName: 'GTM',
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
}), JSON.stringify({
|
|
243
|
-
data: {
|
|
244
|
-
ConvAssist__sendMessage: {
|
|
245
|
-
responses: [
|
|
246
|
-
{
|
|
247
|
-
msgId: 'msgId',
|
|
248
|
-
data: {
|
|
249
|
-
asstRespData: {
|
|
250
|
-
tool: 'TS_NLS',
|
|
251
|
-
asstRespText: '',
|
|
252
|
-
nlsAnsData: {
|
|
253
|
-
sageQuerySuggestions: [
|
|
254
|
-
{
|
|
255
|
-
llmReasoning: {
|
|
256
|
-
assumptions: 'You want the total [COL|sales] for [COL|item_type] [VAL|jackets] for [VAL|this year].',
|
|
257
|
-
clarifications: '',
|
|
258
|
-
interpretation: '',
|
|
259
|
-
__typename: 'eureka_SageQuerySuggestion_LLMReasoning',
|
|
260
|
-
},
|
|
261
|
-
tokens: [
|
|
262
|
-
'sum sales',
|
|
263
|
-
"item type = 'jackets'",
|
|
264
|
-
"date = 'this year'",
|
|
265
|
-
],
|
|
266
|
-
tmlTokens: [
|
|
267
|
-
'sum [sales]',
|
|
268
|
-
"[date] = [date].'this year'",
|
|
269
|
-
"[item type] = [item type].'jackets'",
|
|
270
|
-
],
|
|
271
|
-
worksheetId: 'worksheetId',
|
|
272
|
-
description: '',
|
|
273
|
-
title: '',
|
|
274
|
-
cached: false,
|
|
275
|
-
sqlQuery: "SELECT SUM(sales) FROM __Sample_Retail_Apparel WHERE item_type = 'jackets' AND date = _this_year();",
|
|
276
|
-
sessionId: 'sessionId',
|
|
277
|
-
genNo: 2,
|
|
278
|
-
formulaInfo: [],
|
|
279
|
-
tmlPhrases: [],
|
|
280
|
-
stateKey: {
|
|
281
|
-
transactionId: 'transactionId',
|
|
282
|
-
generationNumber: 1,
|
|
283
|
-
__typename: 'sage_auto_complete_v2_ACStateKey',
|
|
284
|
-
},
|
|
285
|
-
__typename: 'eureka_SageQuerySuggestion',
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
responseType: 'ANSWER',
|
|
289
|
-
__typename: 'convassist_nls_tool_NLSToolAsstRespData',
|
|
290
|
-
},
|
|
291
|
-
__typename: 'convassist_AsstResponseData',
|
|
292
|
-
},
|
|
293
|
-
__typename: 'convassist_MessageData',
|
|
294
|
-
},
|
|
295
|
-
type: 'ASST_RESPONSE',
|
|
296
|
-
__typename: 'convassist_MessagePayload',
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
__typename: 'convassist_SendMessageResponse',
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
}));
|
|
213
|
+
test('should have sendMessageData method', () => {
|
|
303
214
|
const viewConfig = {
|
|
304
215
|
worksheetId: 'worksheetId',
|
|
305
|
-
// No containerClassName provided
|
|
306
216
|
};
|
|
307
217
|
const spotterAgentEmbed = new SpotterAgentEmbed(viewConfig);
|
|
308
|
-
|
|
309
|
-
// Verify that the container has no class name (empty string)
|
|
310
|
-
expect(result.container.className).toBe('');
|
|
218
|
+
expect(typeof spotterAgentEmbed.sendMessageData).toBe('function');
|
|
311
219
|
});
|
|
312
|
-
test('should
|
|
313
|
-
|
|
314
|
-
data: {
|
|
315
|
-
ConvAssist__createConversation: {
|
|
316
|
-
convId: 'conversationId',
|
|
317
|
-
initialCtx: {
|
|
318
|
-
type: 'TS_ANSWER',
|
|
319
|
-
tsAnsCtx: {
|
|
320
|
-
sessionId: 'sessionId',
|
|
321
|
-
genNo: 1,
|
|
322
|
-
stateKey: {
|
|
323
|
-
transactionId: 'transactionId',
|
|
324
|
-
generationNumber: 1,
|
|
325
|
-
},
|
|
326
|
-
worksheet: {
|
|
327
|
-
worksheetId: 'worksheetId',
|
|
328
|
-
worksheetName: 'GTM',
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
}), JSON.stringify({
|
|
335
|
-
data: {
|
|
336
|
-
ConvAssist__sendMessage: {
|
|
337
|
-
responses: [
|
|
338
|
-
{
|
|
339
|
-
msgId: 'msgId',
|
|
340
|
-
data: {
|
|
341
|
-
asstRespData: {
|
|
342
|
-
tool: 'TS_NLS',
|
|
343
|
-
asstRespText: '',
|
|
344
|
-
nlsAnsData: {
|
|
345
|
-
sageQuerySuggestions: [
|
|
346
|
-
{
|
|
347
|
-
llmReasoning: {
|
|
348
|
-
assumptions: 'You want the total [COL|sales] for [COL|item_type] [VAL|jackets] for [VAL|this year].',
|
|
349
|
-
clarifications: '',
|
|
350
|
-
interpretation: '',
|
|
351
|
-
__typename: 'eureka_SageQuerySuggestion_LLMReasoning',
|
|
352
|
-
},
|
|
353
|
-
tokens: [
|
|
354
|
-
'sum sales',
|
|
355
|
-
"item type = 'jackets'",
|
|
356
|
-
"date = 'this year'",
|
|
357
|
-
],
|
|
358
|
-
tmlTokens: [
|
|
359
|
-
'sum [sales]',
|
|
360
|
-
"[date] = [date].'this year'",
|
|
361
|
-
"[item type] = [item type].'jackets'",
|
|
362
|
-
],
|
|
363
|
-
worksheetId: 'worksheetId',
|
|
364
|
-
description: '',
|
|
365
|
-
title: '',
|
|
366
|
-
cached: false,
|
|
367
|
-
sqlQuery: "SELECT SUM(sales) FROM __Sample_Retail_Apparel WHERE item_type = 'jackets' AND date = _this_year();",
|
|
368
|
-
sessionId: 'sessionId',
|
|
369
|
-
genNo: 2,
|
|
370
|
-
formulaInfo: [],
|
|
371
|
-
tmlPhrases: [],
|
|
372
|
-
stateKey: {
|
|
373
|
-
transactionId: 'transactionId',
|
|
374
|
-
generationNumber: 1,
|
|
375
|
-
__typename: 'sage_auto_complete_v2_ACStateKey',
|
|
376
|
-
},
|
|
377
|
-
__typename: 'eureka_SageQuerySuggestion',
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
responseType: 'ANSWER',
|
|
381
|
-
__typename: 'convassist_nls_tool_NLSToolAsstRespData',
|
|
382
|
-
},
|
|
383
|
-
__typename: 'convassist_AsstResponseData',
|
|
384
|
-
},
|
|
385
|
-
__typename: 'convassist_MessageData',
|
|
386
|
-
},
|
|
387
|
-
type: 'ASST_RESPONSE',
|
|
388
|
-
__typename: 'convassist_MessagePayload',
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
__typename: 'convassist_SendMessageResponse',
|
|
392
|
-
},
|
|
393
|
-
},
|
|
394
|
-
}));
|
|
395
|
-
const viewConfig = {
|
|
396
|
-
worksheetId: 'worksheetId',
|
|
397
|
-
hiddenActions: [Action.Download, Action.Save], // This should trigger the HideActions branch
|
|
398
|
-
};
|
|
399
|
-
const spotterAgentEmbed = new SpotterAgentEmbed(viewConfig);
|
|
400
|
-
const result = await spotterAgentEmbed.sendMessage('userMessage');
|
|
401
|
-
// Verify the iframe src contains the hideActions parameter
|
|
402
|
-
const iframeSrc = getIFrameSrc(result.container);
|
|
403
|
-
expect(iframeSrc).toContain('hideAction');
|
|
220
|
+
test('should export ConversationMessage class', () => {
|
|
221
|
+
expect(typeof ConversationMessage).toBe('function');
|
|
404
222
|
});
|
|
405
223
|
});
|
|
406
224
|
//# sourceMappingURL=bodyless-conversation.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyless-conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/bodyless-conversation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAA+B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"bodyless-conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/bodyless-conversation.spec.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AE,MAAM,CAAC,IAAI,CAAC,EAAE,6CAA6C;SAC/F,CAAC;QAEF,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAElE,2DAA2D;QAC3D,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACjD,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,UAAU,GAAgC;YAC5C,WAAW,EAAE,aAAa;SAC7B,CAAC;QAEF,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,CAAC,OAAO,iBAAiB,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpotterEmbed, } from './conversation';
|
|
2
2
|
import * as authInstance from '../auth';
|
|
3
|
-
import { init } from '../index';
|
|
4
|
-
import { AuthType } from '../types';
|
|
3
|
+
import { Action, init } from '../index';
|
|
4
|
+
import { AuthType, Param } from '../types';
|
|
5
5
|
import { getDocumentBody, getIFrameSrc, getRootEl, defaultParamsWithoutHiddenActions as defaultParams, expectUrlMatchesWithParams, } from '../test/test-utils';
|
|
6
6
|
import { ERROR_MESSAGE } from '../errors';
|
|
7
7
|
const thoughtSpotHost = 'tshost';
|
|
@@ -98,5 +98,33 @@ describe('ConversationEmbed', () => {
|
|
|
98
98
|
await conversationEmbed.render();
|
|
99
99
|
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true&enableDataPanelV2=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
|
|
100
100
|
});
|
|
101
|
+
it('should render the conversation embed with hidden actions of InConversationTraining if set', async () => {
|
|
102
|
+
const viewConfig = {
|
|
103
|
+
worksheetId: 'worksheetId',
|
|
104
|
+
searchOptions: {
|
|
105
|
+
searchQuery: 'searchQuery',
|
|
106
|
+
},
|
|
107
|
+
dataPanelV2: true,
|
|
108
|
+
hiddenActions: [Action.InConversationTraining]
|
|
109
|
+
};
|
|
110
|
+
const conversationEmbed = new SpotterEmbed(getRootEl(), viewConfig);
|
|
111
|
+
await conversationEmbed.render();
|
|
112
|
+
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&hideAction=[%22${Action.ReportError}%22,%22${Action.InConversationTraining}%22]&isSpotterExperienceEnabled=true&enableDataPanelV2=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
|
|
113
|
+
});
|
|
114
|
+
it('should render the conversation embed with disabled actions of InConversationTraining if set', async () => {
|
|
115
|
+
const disabledReason = 'testing disabled reason';
|
|
116
|
+
const viewConfig = {
|
|
117
|
+
worksheetId: 'worksheetId',
|
|
118
|
+
searchOptions: {
|
|
119
|
+
searchQuery: 'searchQuery',
|
|
120
|
+
},
|
|
121
|
+
dataPanelV2: true,
|
|
122
|
+
disabledActions: [Action.InConversationTraining],
|
|
123
|
+
disabledActionReason: disabledReason,
|
|
124
|
+
};
|
|
125
|
+
const conversationEmbed = new SpotterEmbed(getRootEl(), viewConfig);
|
|
126
|
+
await conversationEmbed.render();
|
|
127
|
+
expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&${Param.DisableActions}=[%22${Action.InConversationTraining}%22]&${Param.DisableActionReason}=${disabledReason}&isSpotterExperienceEnabled=true&enableDataPanelV2=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
|
|
128
|
+
});
|
|
101
129
|
});
|
|
102
130
|
//# sourceMappingURL=conversation.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/conversation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,GAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/conversation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,GAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EACH,eAAe,EACf,YAAY,EACZ,SAAS,EACT,iCAAiC,IAAI,aAAa,EAClD,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEjC,SAAS,CAAC,GAAG,EAAE;IACX,IAAI,CAAC;QACD,eAAe;QACf,QAAQ,EAAE,QAAQ,CAAC,IAAI;KAC1B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3F,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvB,QAAQ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jD,MAAM,UAAU,GAA2B;YACvC,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE;gBACX,WAAW,EAAE,aAAa;aAC7B;YACD,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC;YAChD,oBAAoB,EAAE,cAAc;SACvC,CAAC;QAEF,MAAM,iBAAiB,GAAG,IAAI,YAAY,CAAC,SAAS,EAAE,EAAE,UAAU,CAAC,CAAC;QACpE,MAAM,iBAAiB,CAAC,MAAM,EAAE,CAAC;QACjC,0BAA0B,CACtB,YAAY,EAAE,EACd,UAAU,eAAe,QAAQ,aAAa,IAAI,KAAK,CAAC,cAAc,QAAQ,MAAM,CAAC,sBAAsB,QAAQ,KAAK,CAAC,mBAAmB,IAAI,cAAc,6HAA6H,CAC9R,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -6,13 +6,14 @@ import { EmbedConfig } from '../types';
|
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```js
|
|
9
|
+
* import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
|
|
10
|
+
* // Call the getInitConfig method to retrieve the embed configuration
|
|
9
11
|
* const config = getInitConfig();
|
|
12
|
+
* // Log the configuration settings
|
|
10
13
|
* console.log(config);
|
|
11
14
|
* ```
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Returns the `EmbedConfig` object, which
|
|
15
|
-
* contains the configuration settings used to
|
|
15
|
+
* Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
|
|
16
|
+
* object, which contains the configuration settings used to
|
|
16
17
|
* initialize the SDK, including the following:
|
|
17
18
|
*
|
|
18
19
|
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
@@ -21,9 +22,10 @@ import { EmbedConfig } from '../types';
|
|
|
21
22
|
* - `customizations` - Style, text, and icon customization settings
|
|
22
23
|
* that were applied during the SDK initialization.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* The following JSON output shows the embed configuration
|
|
26
|
+
* settings returned from the code in the previous example:
|
|
26
27
|
*
|
|
28
|
+
* @example
|
|
27
29
|
* ```json
|
|
28
30
|
* {
|
|
29
31
|
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
@@ -45,7 +47,7 @@ import { EmbedConfig } from '../types';
|
|
|
45
47
|
* "authTriggerContainer": "#your-own-div"
|
|
46
48
|
* }
|
|
47
49
|
* ```
|
|
48
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.
|
|
50
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
49
51
|
* @group Global methods
|
|
50
52
|
*/
|
|
51
53
|
export declare const getEmbedConfig: () => EmbedConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC
|
|
1
|
+
{"version":3,"file":"embedConfig.d.ts","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,eAAO,MAAM,cAAc,QAAO,WAA2D,CAAC;AAE9F;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,cAAe,WAAW,QAGpD,CAAC"}
|
|
@@ -7,13 +7,14 @@ const configKey = 'embedConfig';
|
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```js
|
|
10
|
+
* import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
|
|
11
|
+
* // Call the getInitConfig method to retrieve the embed configuration
|
|
10
12
|
* const config = getInitConfig();
|
|
13
|
+
* // Log the configuration settings
|
|
11
14
|
* console.log(config);
|
|
12
15
|
* ```
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* Returns the `EmbedConfig` object, which
|
|
16
|
-
* contains the configuration settings used to
|
|
16
|
+
* Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
|
|
17
|
+
* object, which contains the configuration settings used to
|
|
17
18
|
* initialize the SDK, including the following:
|
|
18
19
|
*
|
|
19
20
|
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
@@ -22,9 +23,10 @@ const configKey = 'embedConfig';
|
|
|
22
23
|
* - `customizations` - Style, text, and icon customization settings
|
|
23
24
|
* that were applied during the SDK initialization.
|
|
24
25
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
26
|
+
* The following JSON output shows the embed configuration
|
|
27
|
+
* settings returned from the code in the previous example:
|
|
27
28
|
*
|
|
29
|
+
* @example
|
|
28
30
|
* ```json
|
|
29
31
|
* {
|
|
30
32
|
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
@@ -46,7 +48,7 @@ const configKey = 'embedConfig';
|
|
|
46
48
|
* "authTriggerContainer": "#your-own-div"
|
|
47
49
|
* }
|
|
48
50
|
* ```
|
|
49
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.
|
|
51
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
50
52
|
* @group Global methods
|
|
51
53
|
*/
|
|
52
54
|
export const getEmbedConfig = () => getValueFromWindow(configKey) || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedConfig.js","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGlE,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC
|
|
1
|
+
{"version":3,"file":"embedConfig.js","sourceRoot":"","sources":["../../../src/embed/embedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGlE,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAgB,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,IAAK,EAAU,CAAC;AAE9F;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAsB,EAAE,EAAE;IACrD,kBAAkB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACzC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACzC,CAAC,CAAC"}
|
|
@@ -248,23 +248,6 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
248
248
|
* })
|
|
249
249
|
*/
|
|
250
250
|
dataSourceId?: string;
|
|
251
|
-
/**
|
|
252
|
-
* This flag is for show/hide checkboxes for include or exclude
|
|
253
|
-
* cover page and filters in the Liveboard PDF.
|
|
254
|
-
*
|
|
255
|
-
* Supported embed types: `LiveboardEmbed`
|
|
256
|
-
* @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
|
|
257
|
-
* @default true
|
|
258
|
-
* Supported embed types: `LiveboardEmbed`
|
|
259
|
-
* @example
|
|
260
|
-
* ```js
|
|
261
|
-
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
262
|
-
* ... //other embed view config
|
|
263
|
-
* coverAndFilterOptionInPDF: false,
|
|
264
|
-
* })
|
|
265
|
-
* ```
|
|
266
|
-
*/
|
|
267
|
-
coverAndFilterOptionInPDF?: boolean;
|
|
268
251
|
/**
|
|
269
252
|
* The list of tab IDs to hide from the embedded.
|
|
270
253
|
* This Tabs will be hidden from their respective LBs.
|
|
@@ -320,6 +303,46 @@ export interface LiveboardViewConfig extends BaseViewConfig, LiveboardOtherViewC
|
|
|
320
303
|
* ```
|
|
321
304
|
*/
|
|
322
305
|
isLiveboardStylingAndGroupingEnabled?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* This flag is used to enable the full height lazy load data.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```js
|
|
311
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
312
|
+
* // ...other options
|
|
313
|
+
* fullHeight: true,
|
|
314
|
+
* lazyLoadingForFullHeight: true,
|
|
315
|
+
* })
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* @type {boolean}
|
|
319
|
+
* @default false
|
|
320
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
321
|
+
*/
|
|
322
|
+
lazyLoadingForFullHeight?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* The margin to be used for lazy loading.
|
|
325
|
+
*
|
|
326
|
+
* For example, if the margin is set to '10px',
|
|
327
|
+
* the visualization will be loaded 10px before the its top edge is visible in the
|
|
328
|
+
* viewport.
|
|
329
|
+
*
|
|
330
|
+
* The format is similar to CSS margin.
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* ```js
|
|
334
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
335
|
+
* // ...other options
|
|
336
|
+
* fullHeight: true,
|
|
337
|
+
* lazyLoadingForFullHeight: true,
|
|
338
|
+
* // Using 0px, the visualization will be only loaded when its visible in the viewport.
|
|
339
|
+
* lazyLoadingMargin: '0px',
|
|
340
|
+
* })
|
|
341
|
+
* ```
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @version SDK: 1.40.0 | ThoughtSpot:10.12.0.cl
|
|
344
|
+
*/
|
|
345
|
+
lazyLoadingMargin?: string;
|
|
323
346
|
}
|
|
324
347
|
/**
|
|
325
348
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -346,6 +369,14 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
346
369
|
*/
|
|
347
370
|
protected getEmbedParams(): string;
|
|
348
371
|
private getIframeSuffixSrc;
|
|
372
|
+
private sendFullHeightLazyLoadData;
|
|
373
|
+
/**
|
|
374
|
+
* This is a handler for the RequestVisibleEmbedCoordinates event.
|
|
375
|
+
* It is used to send the visible coordinates data to the host application.
|
|
376
|
+
* @param data The event payload
|
|
377
|
+
* @param responder The responder function
|
|
378
|
+
*/
|
|
379
|
+
private requestVisibleEmbedCoordinatesHandler;
|
|
349
380
|
/**
|
|
350
381
|
* Construct the URL of the embedded ThoughtSpot Liveboard or visualization
|
|
351
382
|
* to be loaded within the iFrame.
|
|
@@ -370,6 +401,14 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
370
401
|
* @returns A promise that resolves with the response from the embedded app
|
|
371
402
|
*/
|
|
372
403
|
trigger<HostEventT extends HostEvent, PayloadT>(messageType: HostEventT, data?: TriggerPayload<PayloadT, HostEventT>): Promise<TriggerResponse<PayloadT, HostEventT>>;
|
|
404
|
+
/**
|
|
405
|
+
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
406
|
+
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
407
|
+
*/
|
|
408
|
+
destroy(): void;
|
|
409
|
+
private postRender;
|
|
410
|
+
private registerLazyLoadEvents;
|
|
411
|
+
private unregisterLazyLoadEvents;
|
|
373
412
|
/**
|
|
374
413
|
* Render an embedded ThoughtSpot Liveboard or visualization
|
|
375
414
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboard.d.ts","sourceRoot":"","sources":["../../../src/embed/liveboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAKH,WAAW,EACX,SAAS,EACT,+BAA+B,IAAI,wBAAwB,EAC3D,cAAc,EACd,2BAA2B,EAC9B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,OAAO,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