@thoughtspot/visual-embed-sdk 1.44.2 → 1.44.4-HE-beta.1
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/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +44 -32
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +4 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +60 -0
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +7 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +9 -0
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +20 -3
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +6 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +8 -8
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +18 -18
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +7 -7
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +10 -4
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +12 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +1 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +7 -0
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +9 -0
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +7 -0
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +9 -0
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +7 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +9 -0
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +9 -3
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +41 -8
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +156 -24
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +2 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +2 -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 +5 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/types.d.ts +142 -45
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +91 -16
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/logger.spec.d.ts +20 -5
- package/cjs/src/utils/logger.spec.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +3 -2
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +4 -2
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils.d.ts +15 -4
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +38 -6
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +53 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/index-BFdRRz03.js +7371 -0
- package/dist/index-BUfrYJ3w.js +7371 -0
- package/dist/index-CI6s4VMY.js +7371 -0
- package/dist/{index-CSFjfTVk.js → index-CWQnMX2L.js} +1 -1
- package/dist/index-CaW-1mu5.js +7371 -0
- package/dist/index-CcSgNJVi.js +7371 -0
- package/dist/index-Djtv-y7A.js +7371 -0
- package/dist/index-UY-4yjBN.js +7371 -0
- package/dist/src/embed/app.d.ts +44 -32
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +7 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +20 -3
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +8 -8
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +10 -4
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +7 -0
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +7 -0
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +7 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +9 -3
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +2 -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/types.d.ts +142 -45
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/logger.spec.d.ts +20 -5
- package/dist/src/utils/logger.spec.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +3 -2
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils.d.ts +15 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +288 -95
- package/dist/tsembed-react.js +287 -94
- package/dist/tsembed.es.js +289 -96
- package/dist/tsembed.js +314 -121
- package/dist/visual-embed-sdk-react-full.d.ts +246 -83
- package/dist/visual-embed-sdk-react.d.ts +251 -90
- package/dist/visual-embed-sdk.d.ts +299 -93
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +44 -32
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +5 -1
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +61 -1
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +7 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +9 -0
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +20 -3
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +5 -0
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +8 -8
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +18 -18
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +7 -7
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +10 -4
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +12 -2
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +1 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +7 -0
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +9 -0
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +7 -0
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +9 -0
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +7 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +9 -0
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +9 -3
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +41 -8
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +156 -24
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +2 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +2 -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/types.d.ts +142 -45
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +90 -15
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/logger.spec.d.ts +20 -5
- package/lib/src/utils/logger.spec.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +3 -2
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +4 -2
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils.d.ts +15 -4
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +35 -5
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +54 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.ts +45 -32
- package/src/embed/base.spec.ts +79 -1
- package/src/embed/base.ts +5 -2
- package/src/embed/conversation.ts +11 -0
- package/src/embed/hostEventClient/contracts.ts +23 -4
- package/src/embed/hostEventClient/host-event-client.spec.ts +7 -1
- package/src/embed/hostEventClient/host-event-client.ts +22 -11
- package/src/embed/liveboard.spec.ts +1 -1
- package/src/embed/liveboard.ts +18 -5
- package/src/embed/sage.ts +11 -0
- package/src/embed/search-bar.tsx +11 -0
- package/src/embed/search.ts +11 -0
- package/src/embed/ts-embed.spec.ts +205 -18
- package/src/embed/ts-embed.ts +45 -9
- package/src/errors.ts +2 -0
- package/src/index.ts +6 -0
- package/src/types.ts +146 -43
- package/src/utils/processTrigger.ts +6 -3
- package/src/utils.spec.ts +78 -0
- package/src/utils.ts +35 -8
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.44.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.44.4-HE-beta.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -182,57 +182,71 @@ var AuthType;
|
|
|
182
182
|
})(AuthType || (AuthType = {}));
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
185
|
-
* This
|
|
186
|
-
* To access the updated modular homepage,
|
|
187
|
-
* set `modularHomeExperience` to `true`
|
|
188
|
-
* (available as Early Access feature in 9.12.5.cl).
|
|
185
|
+
* **Note**: This attribute is not supported in the classic (V1) homepage experience.
|
|
189
186
|
*
|
|
190
187
|
*/
|
|
191
188
|
var HomeLeftNavItem;
|
|
192
189
|
(function (HomeLeftNavItem) {
|
|
193
190
|
/**
|
|
191
|
+
* The *Search data* option in
|
|
192
|
+
* the *Insights* left navigation panel.
|
|
194
193
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
195
194
|
*/
|
|
196
195
|
HomeLeftNavItem["SearchData"] = "search-data";
|
|
197
196
|
/**
|
|
197
|
+
* The *Home* menu option in
|
|
198
|
+
* the *Insights* left navigation panel.
|
|
198
199
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
199
200
|
*/
|
|
200
201
|
HomeLeftNavItem["Home"] = "insights-home";
|
|
201
202
|
/**
|
|
203
|
+
* The *Liveboards* menu option in
|
|
204
|
+
* the *Insights* left navigation panel.
|
|
202
205
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
203
206
|
*/
|
|
204
207
|
HomeLeftNavItem["Liveboards"] = "liveboards";
|
|
205
208
|
/**
|
|
209
|
+
* The *Answers* menu option in
|
|
210
|
+
* the *Insights* left navigation panel.
|
|
206
211
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
207
212
|
*/
|
|
208
213
|
HomeLeftNavItem["Answers"] = "answers";
|
|
209
214
|
/**
|
|
215
|
+
* The *Monitor subscriptions* menu option in
|
|
216
|
+
* the *Insights* left navigation panel.
|
|
210
217
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
211
218
|
*/
|
|
212
219
|
HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
|
|
213
220
|
/**
|
|
221
|
+
* The *SpotIQ analysis* menu option in
|
|
222
|
+
* the *Insights* left navigation panel.
|
|
214
223
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
215
224
|
*/
|
|
216
225
|
HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
|
|
217
226
|
/**
|
|
227
|
+
* The *Liveboard schedules* menu option in
|
|
228
|
+
* the *Insights* left navigation panel.
|
|
218
229
|
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
219
230
|
*/
|
|
220
231
|
HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
|
|
221
232
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
233
|
+
* The create option in the *Insights*
|
|
234
|
+
* left navigation panel.
|
|
235
|
+
* Available in the V3 navigation experience.
|
|
224
236
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
225
237
|
*/
|
|
226
238
|
HomeLeftNavItem["Create"] = "create";
|
|
227
239
|
/**
|
|
228
|
-
* Spotter option in the
|
|
229
|
-
*
|
|
240
|
+
* The *Spotter* menu option in the *Insights*
|
|
241
|
+
* left navigation panel.
|
|
242
|
+
* Available in the V3 navigation experience.
|
|
230
243
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
231
244
|
*/
|
|
232
245
|
HomeLeftNavItem["Spotter"] = "spotter";
|
|
233
246
|
/**
|
|
234
|
-
* Favorites
|
|
235
|
-
*
|
|
247
|
+
* The *Favorites* section in the *Insights*
|
|
248
|
+
* left navigation panel.
|
|
249
|
+
* Available in the V3 navigation experience.
|
|
236
250
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
237
251
|
*/
|
|
238
252
|
HomeLeftNavItem["Favorites"] = "favorites";
|
|
@@ -304,10 +318,11 @@ var RuntimeFilterOp;
|
|
|
304
318
|
RuntimeFilterOp["NOT_IN"] = "NOT_IN";
|
|
305
319
|
})(RuntimeFilterOp || (RuntimeFilterOp = {}));
|
|
306
320
|
/**
|
|
307
|
-
* Home page
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
321
|
+
* Home page modules that can be hidden
|
|
322
|
+
* via `hiddenHomepageModules` and reordered via
|
|
323
|
+
* `reorderedHomepageModules`.
|
|
324
|
+
*
|
|
325
|
+
* **Note**: This option is not supported in the classic (v1) experience.
|
|
311
326
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
312
327
|
*/
|
|
313
328
|
var HomepageModule;
|
|
@@ -321,7 +336,7 @@ var HomepageModule;
|
|
|
321
336
|
*/
|
|
322
337
|
HomepageModule["Watchlist"] = "WATCHLIST";
|
|
323
338
|
/**
|
|
324
|
-
*
|
|
339
|
+
* Favorite module
|
|
325
340
|
*/
|
|
326
341
|
HomepageModule["Favorite"] = "FAVORITE";
|
|
327
342
|
/**
|
|
@@ -1477,6 +1492,28 @@ var EmbedEvent;
|
|
|
1477
1492
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1478
1493
|
*/
|
|
1479
1494
|
EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
1495
|
+
/**
|
|
1496
|
+
* Emitted when user opens up the Add to Coaching modal on any visualization in Spotter Embed.
|
|
1497
|
+
* @example
|
|
1498
|
+
* ```js
|
|
1499
|
+
* spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
|
|
1500
|
+
* console.log('payload', payload);
|
|
1501
|
+
* })
|
|
1502
|
+
*```
|
|
1503
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1504
|
+
*/
|
|
1505
|
+
EmbedEvent["AddToCoaching"] = "addToCoaching";
|
|
1506
|
+
/**
|
|
1507
|
+
* Emitted when user opens up the data model instructions modal in Spotter embed.
|
|
1508
|
+
* @example
|
|
1509
|
+
* ```js
|
|
1510
|
+
* spotterEmbed.on(EmbedEvent.DataModelInstructions, (payload) => {
|
|
1511
|
+
* console.log('payload', payload);
|
|
1512
|
+
* })
|
|
1513
|
+
* ```
|
|
1514
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1515
|
+
*/
|
|
1516
|
+
EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
1480
1517
|
/**
|
|
1481
1518
|
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
1482
1519
|
* @example
|
|
@@ -2901,6 +2938,26 @@ var HostEvent;
|
|
|
2901
2938
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
2902
2939
|
*/
|
|
2903
2940
|
HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
2941
|
+
/**
|
|
2942
|
+
* Opens the Add to Coaching modal from a visualization in Spotter Embed.
|
|
2943
|
+
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
2944
|
+
* @example
|
|
2945
|
+
* ```js
|
|
2946
|
+
* spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
|
|
2947
|
+
*
|
|
2948
|
+
*```
|
|
2949
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
2950
|
+
*/
|
|
2951
|
+
HostEvent["AddToCoaching"] = "addToCoaching";
|
|
2952
|
+
/**
|
|
2953
|
+
* Opens the data model instructions modal in Spotter Embed.
|
|
2954
|
+
* @example
|
|
2955
|
+
* ```js
|
|
2956
|
+
* spotterEmbed.trigger(HostEvent.DataModelInstructions);
|
|
2957
|
+
* ```
|
|
2958
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
2959
|
+
*/
|
|
2960
|
+
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
2904
2961
|
/**
|
|
2905
2962
|
* Resets the Spotter Embed Conversation.
|
|
2906
2963
|
* @example
|
|
@@ -3003,6 +3060,15 @@ var HostEvent;
|
|
|
3003
3060
|
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3004
3061
|
*/
|
|
3005
3062
|
HostEvent["StartNewSpotterConversation"] = "StartNewSpotterConversation";
|
|
3063
|
+
/**
|
|
3064
|
+
* Get the current context of the embedded page.
|
|
3065
|
+
* @example
|
|
3066
|
+
* ```js
|
|
3067
|
+
* const context = await liveboardEmbed.trigger(HostEvent.GetPageContext);
|
|
3068
|
+
* ```
|
|
3069
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
3070
|
+
*/
|
|
3071
|
+
HostEvent["GetPageContext"] = "GetPageContext";
|
|
3006
3072
|
})(HostEvent || (HostEvent = {}));
|
|
3007
3073
|
/**
|
|
3008
3074
|
* The different visual modes that the data sources panel within
|
|
@@ -4712,7 +4778,16 @@ var EmbedErrorCodes;
|
|
|
4712
4778
|
EmbedErrorCodes["HOST_EVENT_TYPE_UNDEFINED"] = "HOST_EVENT_TYPE_UNDEFINED";
|
|
4713
4779
|
/** Error parsing api intercept body */
|
|
4714
4780
|
EmbedErrorCodes["PARSING_API_INTERCEPT_BODY_ERROR"] = "PARSING_API_INTERCEPT_BODY_ERROR";
|
|
4781
|
+
/** Failed to update embed parameters during pre-render */
|
|
4782
|
+
EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
|
|
4715
4783
|
})(EmbedErrorCodes || (EmbedErrorCodes = {}));
|
|
4784
|
+
var ContextType;
|
|
4785
|
+
(function (ContextType) {
|
|
4786
|
+
ContextType["Search"] = "search-answer";
|
|
4787
|
+
ContextType["Liveboard"] = "liveboard";
|
|
4788
|
+
ContextType["Answer"] = "answer";
|
|
4789
|
+
ContextType["Spotter"] = "spotter";
|
|
4790
|
+
})(ContextType || (ContextType = {}));
|
|
4716
4791
|
/**
|
|
4717
4792
|
* Enum for the type of API intercepted
|
|
4718
4793
|
*/
|
|
@@ -4855,6 +4930,49 @@ merge.withOptions = (options, ...objects) => {
|
|
|
4855
4930
|
return result;
|
|
4856
4931
|
};
|
|
4857
4932
|
|
|
4933
|
+
const ERROR_MESSAGE = {
|
|
4934
|
+
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
4935
|
+
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a Model to get started',
|
|
4936
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
4937
|
+
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
4938
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
4939
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
4940
|
+
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
4941
|
+
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
4942
|
+
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
4943
|
+
SESSION_INFO_FAILED: 'Failed to get session information',
|
|
4944
|
+
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
4945
|
+
INVALID_TOKEN_TYPE_ERROR: 'Expected getAuthToken to return a string, but received a {invalidType}.',
|
|
4946
|
+
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
4947
|
+
PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
|
|
4948
|
+
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
4949
|
+
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
4950
|
+
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
4951
|
+
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
4952
|
+
RENDER_CALLED_BEFORE_INIT: 'Looks like render was called before calling init, the render won\'t start until init is called.\nFor more info check\n1. https://developers.thoughtspot.com/docs/Function_init#_init\n2.https://developers.thoughtspot.com/docs/getting-started#initSdk',
|
|
4953
|
+
SPOTTER_AGENT_NOT_INITIALIZED: 'SpotterAgent not initialized',
|
|
4954
|
+
OFFLINE_WARNING: 'Network not Detected. Embed is offline. Please reconnect and refresh',
|
|
4955
|
+
INIT_SDK_REQUIRED: 'You need to init the ThoughtSpot SDK module first',
|
|
4956
|
+
CONFLICTING_ACTIONS_CONFIG: 'You cannot have both hidden actions and visible actions',
|
|
4957
|
+
CONFLICTING_TABS_CONFIG: 'You cannot have both hidden Tabs and visible Tabs',
|
|
4958
|
+
RENDER_BEFORE_EVENTS_REQUIRED: 'Please call render before triggering events',
|
|
4959
|
+
HOST_EVENT_TYPE_UNDEFINED: 'Host event type is undefined',
|
|
4960
|
+
LOGIN_FAILED: 'Login failed',
|
|
4961
|
+
ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
|
|
4962
|
+
SSR_ENVIRONMENT_ERROR: 'SSR environment detected. This function cannot be called in SSR environment.',
|
|
4963
|
+
UPDATE_PARAMS_FAILED: 'Failed to update embed parameters',
|
|
4964
|
+
};
|
|
4965
|
+
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
4966
|
+
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
4967
|
+
MISSING_REQUIRED_FIELDS: (id, missingFields) => `Custom Action Validation Error for '${id}': Missing required fields: ${missingFields.join(', ')}`,
|
|
4968
|
+
UNSUPPORTED_TARGET: (id, targetType) => `Custom Action Validation Error for '${id}': Target type '${targetType}' is not supported`,
|
|
4969
|
+
INVALID_POSITION: (position, targetType, supportedPositions) => `Position '${position}' is not supported for ${targetType.toLowerCase()}-level custom actions. Supported positions: ${supportedPositions}`,
|
|
4970
|
+
INVALID_METADATA_IDS: (targetType, invalidIds, supportedIds) => `Invalid metadata IDs for ${targetType.toLowerCase()}-level custom actions: ${invalidIds.join(', ')}. Supported metadata IDs: ${supportedIds}`,
|
|
4971
|
+
INVALID_DATA_MODEL_IDS: (targetType, invalidIds, supportedIds) => `Invalid data model IDs for ${targetType.toLowerCase()}-level custom actions: ${invalidIds.join(', ')}. Supported data model IDs: ${supportedIds}`,
|
|
4972
|
+
INVALID_FIELDS: (targetType, invalidFields, supportedFields) => `Invalid fields for ${targetType.toLowerCase()}-level custom actions: ${invalidFields.join(', ')}. Supported fields: ${supportedFields}`,
|
|
4973
|
+
DUPLICATE_IDS: (id, duplicateNames, keptName) => `Duplicate custom action ID '${id}' found. Actions with names '${duplicateNames.join("', '")}' will be ignored. Keeping '${keptName}'.`,
|
|
4974
|
+
};
|
|
4975
|
+
|
|
4858
4976
|
/**
|
|
4859
4977
|
* Copyright (c) 2023
|
|
4860
4978
|
*
|
|
@@ -4968,7 +5086,8 @@ const isValidCssMargin = (value) => {
|
|
|
4968
5086
|
logger$3.error('Please provide a valid lazyLoadingMargin value (e.g., "10px")');
|
|
4969
5087
|
return false;
|
|
4970
5088
|
}
|
|
4971
|
-
// This pattern allows for an optional negative sign, and numbers
|
|
5089
|
+
// This pattern allows for an optional negative sign, and numbers
|
|
5090
|
+
// that can be integers or decimals (including leading dot).
|
|
4972
5091
|
const cssUnitPattern = /^-?(\d+(\.\d*)?|\.\d+)(px|em|rem|%|vh|vw)$/i;
|
|
4973
5092
|
const parts = value.trim().split(/\s+/);
|
|
4974
5093
|
if (parts.length > 4) {
|
|
@@ -5175,6 +5294,8 @@ const sdkWindowKey = '_tsEmbedSDK';
|
|
|
5175
5294
|
* @version SDK: 1.36.2 | ThoughtSpot: *
|
|
5176
5295
|
*/
|
|
5177
5296
|
function storeValueInWindow(key, value, options = {}) {
|
|
5297
|
+
if (isWindowUndefined())
|
|
5298
|
+
return value;
|
|
5178
5299
|
if (!window[sdkWindowKey]) {
|
|
5179
5300
|
window[sdkWindowKey] = {};
|
|
5180
5301
|
}
|
|
@@ -5185,11 +5306,16 @@ function storeValueInWindow(key, value, options = {}) {
|
|
|
5185
5306
|
return value;
|
|
5186
5307
|
}
|
|
5187
5308
|
/**
|
|
5188
|
-
* Retrieves a stored value from the global
|
|
5189
|
-
*
|
|
5190
|
-
*
|
|
5309
|
+
* Retrieves a stored value from the global
|
|
5310
|
+
* `window` object under the `_tsEmbedSDK` namespace.
|
|
5311
|
+
* Returns undefined in SSR environment.
|
|
5191
5312
|
*/
|
|
5192
|
-
const getValueFromWindow = (key) => {
|
|
5313
|
+
const getValueFromWindow = (key) => {
|
|
5314
|
+
var _a;
|
|
5315
|
+
if (isWindowUndefined())
|
|
5316
|
+
return undefined;
|
|
5317
|
+
return (_a = window === null || window === void 0 ? void 0 : window[sdkWindowKey]) === null || _a === void 0 ? void 0 : _a[key];
|
|
5318
|
+
};
|
|
5193
5319
|
/**
|
|
5194
5320
|
* Check if an array includes a string value
|
|
5195
5321
|
* @param arr - The array to check
|
|
@@ -5300,6 +5426,25 @@ const formatTemplate = (template, values) => {
|
|
|
5300
5426
|
return template.replace(/\{(\w+)\}/g, (match, key) => {
|
|
5301
5427
|
return values[key] !== undefined ? String(values[key]) : match;
|
|
5302
5428
|
});
|
|
5429
|
+
};
|
|
5430
|
+
const getHostEventsConfig = (viewConfig) => {
|
|
5431
|
+
return {
|
|
5432
|
+
shouldBypassPayloadValidation: viewConfig.shouldBypassPayloadValidation,
|
|
5433
|
+
useHostEventsV2: viewConfig.useHostEventsV2,
|
|
5434
|
+
};
|
|
5435
|
+
};
|
|
5436
|
+
/**
|
|
5437
|
+
* Check if the window is undefined
|
|
5438
|
+
* If the window is undefined, it means the code is running in a SSR environment.
|
|
5439
|
+
* @returns true if the window is undefined, false otherwise
|
|
5440
|
+
*
|
|
5441
|
+
*/
|
|
5442
|
+
const isWindowUndefined = () => {
|
|
5443
|
+
if (typeof window === 'undefined') {
|
|
5444
|
+
logger$3.error(ERROR_MESSAGE.SSR_ENVIRONMENT_ERROR);
|
|
5445
|
+
return true;
|
|
5446
|
+
}
|
|
5447
|
+
return false;
|
|
5303
5448
|
};
|
|
5304
5449
|
|
|
5305
5450
|
/**
|
|
@@ -7585,48 +7730,12 @@ var UIPassthroughEvent;
|
|
|
7585
7730
|
UIPassthroughEvent["GetAnswerConfig"] = "getAnswerPageConfig";
|
|
7586
7731
|
UIPassthroughEvent["GetLiveboardConfig"] = "getPinboardPageConfig";
|
|
7587
7732
|
UIPassthroughEvent["GetUnsavedAnswerTML"] = "getUnsavedAnswerTML";
|
|
7588
|
-
})(UIPassthroughEvent || (UIPassthroughEvent = {}));
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
7595
|
-
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
7596
|
-
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
7597
|
-
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
7598
|
-
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
7599
|
-
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
7600
|
-
SESSION_INFO_FAILED: 'Failed to get session information',
|
|
7601
|
-
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
7602
|
-
INVALID_TOKEN_TYPE_ERROR: 'Expected getAuthToken to return a string, but received a {invalidType}.',
|
|
7603
|
-
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
7604
|
-
PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
|
|
7605
|
-
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
7606
|
-
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
7607
|
-
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
7608
|
-
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
7609
|
-
RENDER_CALLED_BEFORE_INIT: 'Looks like render was called before calling init, the render won\'t start until init is called.\nFor more info check\n1. https://developers.thoughtspot.com/docs/Function_init#_init\n2.https://developers.thoughtspot.com/docs/getting-started#initSdk',
|
|
7610
|
-
SPOTTER_AGENT_NOT_INITIALIZED: 'SpotterAgent not initialized',
|
|
7611
|
-
OFFLINE_WARNING: 'Network not Detected. Embed is offline. Please reconnect and refresh',
|
|
7612
|
-
INIT_SDK_REQUIRED: 'You need to init the ThoughtSpot SDK module first',
|
|
7613
|
-
CONFLICTING_ACTIONS_CONFIG: 'You cannot have both hidden actions and visible actions',
|
|
7614
|
-
CONFLICTING_TABS_CONFIG: 'You cannot have both hidden Tabs and visible Tabs',
|
|
7615
|
-
RENDER_BEFORE_EVENTS_REQUIRED: 'Please call render before triggering events',
|
|
7616
|
-
HOST_EVENT_TYPE_UNDEFINED: 'Host event type is undefined',
|
|
7617
|
-
LOGIN_FAILED: 'Login failed',
|
|
7618
|
-
ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
|
|
7619
|
-
};
|
|
7620
|
-
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
7621
|
-
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
7622
|
-
MISSING_REQUIRED_FIELDS: (id, missingFields) => `Custom Action Validation Error for '${id}': Missing required fields: ${missingFields.join(', ')}`,
|
|
7623
|
-
UNSUPPORTED_TARGET: (id, targetType) => `Custom Action Validation Error for '${id}': Target type '${targetType}' is not supported`,
|
|
7624
|
-
INVALID_POSITION: (position, targetType, supportedPositions) => `Position '${position}' is not supported for ${targetType.toLowerCase()}-level custom actions. Supported positions: ${supportedPositions}`,
|
|
7625
|
-
INVALID_METADATA_IDS: (targetType, invalidIds, supportedIds) => `Invalid metadata IDs for ${targetType.toLowerCase()}-level custom actions: ${invalidIds.join(', ')}. Supported metadata IDs: ${supportedIds}`,
|
|
7626
|
-
INVALID_DATA_MODEL_IDS: (targetType, invalidIds, supportedIds) => `Invalid data model IDs for ${targetType.toLowerCase()}-level custom actions: ${invalidIds.join(', ')}. Supported data model IDs: ${supportedIds}`,
|
|
7627
|
-
INVALID_FIELDS: (targetType, invalidFields, supportedFields) => `Invalid fields for ${targetType.toLowerCase()}-level custom actions: ${invalidFields.join(', ')}. Supported fields: ${supportedFields}`,
|
|
7628
|
-
DUPLICATE_IDS: (id, duplicateNames, keptName) => `Duplicate custom action ID '${id}' found. Actions with names '${duplicateNames.join("', '")}' will be ignored. Keeping '${keptName}'.`,
|
|
7629
|
-
};
|
|
7733
|
+
})(UIPassthroughEvent || (UIPassthroughEvent = {}));
|
|
7734
|
+
var PageType;
|
|
7735
|
+
(function (PageType) {
|
|
7736
|
+
PageType["PAGE"] = "page";
|
|
7737
|
+
PageType["DIALOG"] = "dialog";
|
|
7738
|
+
})(PageType || (PageType = {}));
|
|
7630
7739
|
|
|
7631
7740
|
const EndPoints = {
|
|
7632
7741
|
AUTH_VERIFICATION: '/callosum/v1/session/info',
|
|
@@ -8525,7 +8634,7 @@ class AnswerService {
|
|
|
8525
8634
|
async getTML() {
|
|
8526
8635
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8527
8636
|
const edoc = object[0].edoc;
|
|
8528
|
-
const YAML = await import('./index-
|
|
8637
|
+
const YAML = await import('./index-CI6s4VMY.js');
|
|
8529
8638
|
const parsedDoc = YAML.parse(edoc);
|
|
8530
8639
|
return {
|
|
8531
8640
|
answer: {
|
|
@@ -17413,6 +17522,7 @@ const reload = (iFrame) => {
|
|
|
17413
17522
|
* @param message
|
|
17414
17523
|
* @param message.type
|
|
17415
17524
|
* @param message.data
|
|
17525
|
+
* @param message.context
|
|
17416
17526
|
* @param thoughtSpotHost
|
|
17417
17527
|
* @param channel
|
|
17418
17528
|
*/
|
|
@@ -17427,8 +17537,9 @@ const TRIGGER_TIMEOUT = 30000;
|
|
|
17427
17537
|
* @param messageType
|
|
17428
17538
|
* @param thoughtSpotHost
|
|
17429
17539
|
* @param data
|
|
17540
|
+
* @param context
|
|
17430
17541
|
*/
|
|
17431
|
-
function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
17542
|
+
function processTrigger(iFrame, messageType, thoughtSpotHost, data, context) {
|
|
17432
17543
|
return new Promise((res, rej) => {
|
|
17433
17544
|
var _a;
|
|
17434
17545
|
if (messageType === HostEvent.Reload) {
|
|
@@ -17462,7 +17573,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
17462
17573
|
channel.port1.close();
|
|
17463
17574
|
res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
|
|
17464
17575
|
}, TRIGGER_TIMEOUT);
|
|
17465
|
-
return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
|
|
17576
|
+
return postIframeMessage(iFrame, { type: messageType, data, context }, thoughtSpotHost, channel);
|
|
17466
17577
|
});
|
|
17467
17578
|
}
|
|
17468
17579
|
|
|
@@ -17583,6 +17694,8 @@ function backwardCompat(embedConfig) {
|
|
|
17583
17694
|
}
|
|
17584
17695
|
const initFlagKey = 'initFlagKey';
|
|
17585
17696
|
const createAndSetInitPromise = () => {
|
|
17697
|
+
if (isWindowUndefined())
|
|
17698
|
+
return;
|
|
17586
17699
|
const { promise: initPromise, resolve: initPromiseResolve,
|
|
17587
17700
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17588
17701
|
// @ts-ignore
|
|
@@ -17622,6 +17735,8 @@ const getIsInitCalled = () => { var _a; return !!((_a = getValueFromWindow(initF
|
|
|
17622
17735
|
*/
|
|
17623
17736
|
const init = (embedConfig) => {
|
|
17624
17737
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
17738
|
+
if (isWindowUndefined())
|
|
17739
|
+
return null;
|
|
17625
17740
|
sanity(embedConfig);
|
|
17626
17741
|
resetAllCachedServices();
|
|
17627
17742
|
embedConfig = setEmbedConfig(backwardCompat({
|
|
@@ -17957,7 +18072,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
17957
18072
|
return eventData;
|
|
17958
18073
|
}
|
|
17959
18074
|
|
|
17960
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.
|
|
18075
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.4-HE-beta.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
17961
18076
|
|
|
17962
18077
|
class HostEventClient {
|
|
17963
18078
|
constructor(iFrame) {
|
|
@@ -17969,16 +18084,16 @@ class HostEventClient {
|
|
|
17969
18084
|
* @param {any} data Data to send with the host event
|
|
17970
18085
|
* @returns {Promise<any>} - the response from the process trigger
|
|
17971
18086
|
*/
|
|
17972
|
-
async processTrigger(message, data) {
|
|
18087
|
+
async processTrigger(message, data, context) {
|
|
17973
18088
|
if (!this.iFrame) {
|
|
17974
18089
|
throw new Error('Iframe element is not set');
|
|
17975
18090
|
}
|
|
17976
18091
|
const thoughtspotHost = getEmbedConfig().thoughtSpotHost;
|
|
17977
|
-
return processTrigger(this.iFrame, message, thoughtspotHost, data);
|
|
18092
|
+
return processTrigger(this.iFrame, message, thoughtspotHost, data, context);
|
|
17978
18093
|
}
|
|
17979
|
-
async handleHostEventWithParam(apiName, parameters) {
|
|
18094
|
+
async handleHostEventWithParam(apiName, parameters, context) {
|
|
17980
18095
|
var _a, _b, _c, _d;
|
|
17981
|
-
const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
18096
|
+
const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters, context))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
17982
18097
|
if (!response) {
|
|
17983
18098
|
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
17984
18099
|
// eslint-disable-next-line no-throw-literal
|
|
@@ -17993,8 +18108,8 @@ class HostEventClient {
|
|
|
17993
18108
|
}
|
|
17994
18109
|
return { ...response.value };
|
|
17995
18110
|
}
|
|
17996
|
-
async hostEventFallback(hostEvent, data) {
|
|
17997
|
-
return this.processTrigger(hostEvent, data);
|
|
18111
|
+
async hostEventFallback(hostEvent, data, context) {
|
|
18112
|
+
return this.processTrigger(hostEvent, data, context);
|
|
17998
18113
|
}
|
|
17999
18114
|
/**
|
|
18000
18115
|
* Setter for the iframe element used for host events
|
|
@@ -18003,49 +18118,49 @@ class HostEventClient {
|
|
|
18003
18118
|
setIframeElement(iFrame) {
|
|
18004
18119
|
this.iFrame = iFrame;
|
|
18005
18120
|
}
|
|
18006
|
-
async triggerUIPassthroughApi(apiName, parameters) {
|
|
18121
|
+
async triggerUIPassthroughApi(apiName, parameters, context) {
|
|
18007
18122
|
const res = await this.processTrigger(HostEvent.UIPassthrough, {
|
|
18008
18123
|
type: apiName,
|
|
18009
18124
|
parameters,
|
|
18010
|
-
});
|
|
18125
|
+
}, context);
|
|
18011
18126
|
return res;
|
|
18012
18127
|
}
|
|
18013
|
-
async handlePinEvent(payload) {
|
|
18128
|
+
async handlePinEvent(payload, context) {
|
|
18014
18129
|
var _a, _b;
|
|
18015
18130
|
if (!payload || !('newVizName' in payload)) {
|
|
18016
|
-
return this.hostEventFallback(HostEvent.Pin, payload);
|
|
18131
|
+
return this.hostEventFallback(HostEvent.Pin, payload, context);
|
|
18017
18132
|
}
|
|
18018
18133
|
const formattedPayload = {
|
|
18019
18134
|
...payload,
|
|
18020
18135
|
pinboardId: (_a = payload.liveboardId) !== null && _a !== void 0 ? _a : payload.pinboardId,
|
|
18021
18136
|
newPinboardName: (_b = payload.newLiveboardName) !== null && _b !== void 0 ? _b : payload.newPinboardName,
|
|
18022
18137
|
};
|
|
18023
|
-
const data = await this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
|
|
18138
|
+
const data = await this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload, context);
|
|
18024
18139
|
return {
|
|
18025
18140
|
...data,
|
|
18026
18141
|
liveboardId: data.pinboardId,
|
|
18027
18142
|
};
|
|
18028
18143
|
}
|
|
18029
|
-
async handleSaveAnswerEvent(payload) {
|
|
18144
|
+
async handleSaveAnswerEvent(payload, context) {
|
|
18030
18145
|
var _a, _b, _c, _d;
|
|
18031
18146
|
if (!payload || !('name' in payload) || !('description' in payload)) {
|
|
18032
18147
|
// Save is the fallback for SaveAnswer
|
|
18033
|
-
return this.hostEventFallback(HostEvent.Save, payload);
|
|
18148
|
+
return this.hostEventFallback(HostEvent.Save, payload, context);
|
|
18034
18149
|
}
|
|
18035
|
-
const data = await this.handleHostEventWithParam(UIPassthroughEvent.SaveAnswer, payload);
|
|
18150
|
+
const data = await this.handleHostEventWithParam(UIPassthroughEvent.SaveAnswer, payload, context);
|
|
18036
18151
|
return {
|
|
18037
18152
|
...data,
|
|
18038
18153
|
answerId: (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.saveResponse) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.Answer__save) === null || _c === void 0 ? void 0 : _c.answer) === null || _d === void 0 ? void 0 : _d.id,
|
|
18039
18154
|
};
|
|
18040
18155
|
}
|
|
18041
|
-
async triggerHostEvent(hostEvent, payload) {
|
|
18156
|
+
async triggerHostEvent(hostEvent, payload, context) {
|
|
18042
18157
|
switch (hostEvent) {
|
|
18043
18158
|
case HostEvent.Pin:
|
|
18044
|
-
return this.handlePinEvent(payload);
|
|
18159
|
+
return this.handlePinEvent(payload, context);
|
|
18045
18160
|
case HostEvent.SaveAnswer:
|
|
18046
|
-
return this.handleSaveAnswerEvent(payload);
|
|
18161
|
+
return this.handleSaveAnswerEvent(payload, context);
|
|
18047
18162
|
default:
|
|
18048
|
-
return this.hostEventFallback(hostEvent, payload);
|
|
18163
|
+
return this.hostEventFallback(hostEvent, payload, context);
|
|
18049
18164
|
}
|
|
18050
18165
|
}
|
|
18051
18166
|
}
|
|
@@ -18680,6 +18795,7 @@ class TsEmbed {
|
|
|
18680
18795
|
hiddenListColumns: this.viewConfig.hiddenListColumns || [],
|
|
18681
18796
|
customActions: customActionsResult.actions,
|
|
18682
18797
|
...getInterceptInitData(this.viewConfig),
|
|
18798
|
+
...getHostEventsConfig(this.viewConfig),
|
|
18683
18799
|
};
|
|
18684
18800
|
return baseInitData;
|
|
18685
18801
|
}
|
|
@@ -18700,9 +18816,10 @@ class TsEmbed {
|
|
|
18700
18816
|
.join('/');
|
|
18701
18817
|
return `${basePath}#`;
|
|
18702
18818
|
}
|
|
18703
|
-
getUpdateEmbedParamsObject() {
|
|
18819
|
+
async getUpdateEmbedParamsObject() {
|
|
18704
18820
|
let queryParams = this.getEmbedParamsObject();
|
|
18705
|
-
|
|
18821
|
+
const appInitData = await this.getAppInitData();
|
|
18822
|
+
queryParams = { ...this.viewConfig, ...queryParams, ...appInitData };
|
|
18706
18823
|
return queryParams;
|
|
18707
18824
|
}
|
|
18708
18825
|
/**
|
|
@@ -19011,6 +19128,8 @@ class TsEmbed {
|
|
|
19011
19128
|
preRenderWrapper.id = preRenderIds.wrapper;
|
|
19012
19129
|
const initialPreRenderWrapperStyle = {
|
|
19013
19130
|
position: 'absolute',
|
|
19131
|
+
top: '0',
|
|
19132
|
+
left: '0',
|
|
19014
19133
|
width: '100vw',
|
|
19015
19134
|
height: '100vh',
|
|
19016
19135
|
};
|
|
@@ -19301,7 +19420,7 @@ class TsEmbed {
|
|
|
19301
19420
|
* @param {any} data The payload to send with the message
|
|
19302
19421
|
* @returns A promise that resolves with the response from the embedded app
|
|
19303
19422
|
*/
|
|
19304
|
-
async trigger(messageType, data = {}) {
|
|
19423
|
+
async trigger(messageType, data = {}, context) {
|
|
19305
19424
|
uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
|
|
19306
19425
|
if (!this.isRendered) {
|
|
19307
19426
|
this.handleError({
|
|
@@ -19328,7 +19447,7 @@ class TsEmbed {
|
|
|
19328
19447
|
return null;
|
|
19329
19448
|
}
|
|
19330
19449
|
// send an empty object, this is needed for liveboard default handlers
|
|
19331
|
-
return this.hostEventClient.triggerHostEvent(messageType, data);
|
|
19450
|
+
return this.hostEventClient.triggerHostEvent(messageType, data, context);
|
|
19332
19451
|
}
|
|
19333
19452
|
/**
|
|
19334
19453
|
* Triggers an event to the embedded app, skipping the UI flow.
|
|
@@ -19361,6 +19480,19 @@ class TsEmbed {
|
|
|
19361
19480
|
handleRenderForPrerender() {
|
|
19362
19481
|
return this.render();
|
|
19363
19482
|
}
|
|
19483
|
+
/**
|
|
19484
|
+
* Get the current context of the embedded TS component.
|
|
19485
|
+
* @returns The current context object containing the page type and object ids.
|
|
19486
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
19487
|
+
*/
|
|
19488
|
+
async getCurrentContext() {
|
|
19489
|
+
return new Promise((resolve) => {
|
|
19490
|
+
this.executeAfterEmbedContainerLoaded(async () => {
|
|
19491
|
+
const context = await this.trigger(HostEvent.GetPageContext, {});
|
|
19492
|
+
resolve(context);
|
|
19493
|
+
});
|
|
19494
|
+
});
|
|
19495
|
+
}
|
|
19364
19496
|
/**
|
|
19365
19497
|
* Creates the preRender shell
|
|
19366
19498
|
* @param showPreRenderByDefault - Show the preRender after render, hidden by default
|
|
@@ -19475,8 +19607,20 @@ class TsEmbed {
|
|
|
19475
19607
|
}
|
|
19476
19608
|
this.validatePreRenderViewConfig(this.viewConfig);
|
|
19477
19609
|
logger$3.debug('triggering UpdateEmbedParams', this.viewConfig);
|
|
19478
|
-
this.executeAfterEmbedContainerLoaded(() => {
|
|
19479
|
-
|
|
19610
|
+
this.executeAfterEmbedContainerLoaded(async () => {
|
|
19611
|
+
try {
|
|
19612
|
+
const params = await this.getUpdateEmbedParamsObject();
|
|
19613
|
+
this.trigger(HostEvent.UpdateEmbedParams, params);
|
|
19614
|
+
}
|
|
19615
|
+
catch (error) {
|
|
19616
|
+
logger$3.error(ERROR_MESSAGE.UPDATE_PARAMS_FAILED, error);
|
|
19617
|
+
this.handleError({
|
|
19618
|
+
errorType: ErrorDetailsTypes.API,
|
|
19619
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || ERROR_MESSAGE.UPDATE_PARAMS_FAILED,
|
|
19620
|
+
code: EmbedErrorCodes.UPDATE_PARAMS_FAILED,
|
|
19621
|
+
error: (error === null || error === void 0 ? void 0 : error.message) || error,
|
|
19622
|
+
});
|
|
19623
|
+
}
|
|
19480
19624
|
});
|
|
19481
19625
|
}
|
|
19482
19626
|
this.beforePrerenderVisible();
|
|
@@ -19496,7 +19640,7 @@ class TsEmbed {
|
|
|
19496
19640
|
this.resizeObserver.observe(this.el);
|
|
19497
19641
|
}
|
|
19498
19642
|
}
|
|
19499
|
-
removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events']);
|
|
19643
|
+
removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events', 'overflow']);
|
|
19500
19644
|
this.subscribeToEvents();
|
|
19501
19645
|
// Setup fullscreen change handler for prerendered components
|
|
19502
19646
|
if (this.iFrame) {
|
|
@@ -19539,7 +19683,10 @@ class TsEmbed {
|
|
|
19539
19683
|
opacity: '0',
|
|
19540
19684
|
pointerEvents: 'none',
|
|
19541
19685
|
zIndex: '-1000',
|
|
19542
|
-
position: 'absolute
|
|
19686
|
+
position: 'absolute',
|
|
19687
|
+
top: '0',
|
|
19688
|
+
left: '0',
|
|
19689
|
+
overflow: 'hidden',
|
|
19543
19690
|
};
|
|
19544
19691
|
setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
|
|
19545
19692
|
if (this.resizeObserver) {
|
|
@@ -20219,6 +20366,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
20219
20366
|
super(domSelector, viewConfig);
|
|
20220
20367
|
this.defaultHeight = 500;
|
|
20221
20368
|
this.sendFullHeightLazyLoadData = () => {
|
|
20369
|
+
console.log('sendFullHeightLazyLoadData', this.iFrame);
|
|
20222
20370
|
const data = calculateVisibleElementData(this.iFrame);
|
|
20223
20371
|
this.trigger(HostEvent.VisibleEmbedCoordinates, data);
|
|
20224
20372
|
};
|
|
@@ -20479,7 +20627,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
20479
20627
|
* @param {any} data The payload to send with the message
|
|
20480
20628
|
* @returns A promise that resolves with the response from the embedded app
|
|
20481
20629
|
*/
|
|
20482
|
-
trigger(messageType, data = {}) {
|
|
20630
|
+
trigger(messageType, data = {}, context) {
|
|
20483
20631
|
const dataWithVizId = data;
|
|
20484
20632
|
if (messageType === HostEvent.SetActiveTab) {
|
|
20485
20633
|
this.setActiveTab(data);
|
|
@@ -20488,7 +20636,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
20488
20636
|
if (typeof dataWithVizId === 'object' && this.viewConfig.vizId) {
|
|
20489
20637
|
dataWithVizId.vizId = this.viewConfig.vizId;
|
|
20490
20638
|
}
|
|
20491
|
-
return super.trigger(messageType, dataWithVizId);
|
|
20639
|
+
return super.trigger(messageType, dataWithVizId, context);
|
|
20492
20640
|
}
|
|
20493
20641
|
/**
|
|
20494
20642
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
@@ -20557,6 +20705,15 @@ class LiveboardEmbed extends V1Embed {
|
|
|
20557
20705
|
}
|
|
20558
20706
|
return url;
|
|
20559
20707
|
}
|
|
20708
|
+
/**
|
|
20709
|
+
* Get the current context of the embedded liveboard.
|
|
20710
|
+
* @returns The current context object containing the page type and object ids.
|
|
20711
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
20712
|
+
*/
|
|
20713
|
+
async getCurrentContext() {
|
|
20714
|
+
const context = await super.getCurrentContext();
|
|
20715
|
+
return context;
|
|
20716
|
+
}
|
|
20560
20717
|
}
|
|
20561
20718
|
/**
|
|
20562
20719
|
* @hidden
|
|
@@ -20737,6 +20894,15 @@ class SearchEmbed extends TsEmbed {
|
|
|
20737
20894
|
});
|
|
20738
20895
|
return this;
|
|
20739
20896
|
}
|
|
20897
|
+
/**
|
|
20898
|
+
* Get the current context of the embedded search.
|
|
20899
|
+
* @returns The current context object containing the page type and object ids.
|
|
20900
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
20901
|
+
*/
|
|
20902
|
+
async getCurrentContext() {
|
|
20903
|
+
const context = await super.getCurrentContext();
|
|
20904
|
+
return context;
|
|
20905
|
+
}
|
|
20740
20906
|
}
|
|
20741
20907
|
|
|
20742
20908
|
/**
|
|
@@ -20812,6 +20978,15 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
20812
20978
|
const defaultAppInitData = await super.getAppInitData();
|
|
20813
20979
|
return { ...defaultAppInitData, ...this.getSearchInitData() };
|
|
20814
20980
|
}
|
|
20981
|
+
/**
|
|
20982
|
+
* Get the current context of the embedded search bar.
|
|
20983
|
+
* @returns The current context object containing the page type and object ids.
|
|
20984
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
20985
|
+
*/
|
|
20986
|
+
async getCurrentContext() {
|
|
20987
|
+
const context = await super.getCurrentContext();
|
|
20988
|
+
return context;
|
|
20989
|
+
}
|
|
20815
20990
|
}
|
|
20816
20991
|
|
|
20817
20992
|
const createConversation = `
|
|
@@ -21441,6 +21616,15 @@ class SpotterEmbed extends TsEmbed {
|
|
|
21441
21616
|
await this.renderIFrame(src);
|
|
21442
21617
|
return this;
|
|
21443
21618
|
}
|
|
21619
|
+
/**
|
|
21620
|
+
* Get the current context of the embedded SpotterEmbed.
|
|
21621
|
+
* @returns The current context object containing the page type and object ids.
|
|
21622
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
21623
|
+
*/
|
|
21624
|
+
async getCurrentContext() {
|
|
21625
|
+
const context = await super.getCurrentContext();
|
|
21626
|
+
return context;
|
|
21627
|
+
}
|
|
21444
21628
|
}
|
|
21445
21629
|
/**
|
|
21446
21630
|
* Embed ThoughtSpot AI Conversation.
|
|
@@ -21547,6 +21731,15 @@ class SageEmbed extends V1Embed {
|
|
|
21547
21731
|
await this.renderV1Embed(src);
|
|
21548
21732
|
return this;
|
|
21549
21733
|
}
|
|
21734
|
+
/**
|
|
21735
|
+
* Get the current context of the embedded SageEmbed.
|
|
21736
|
+
* @returns The current context object containing the page type and object ids.
|
|
21737
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
21738
|
+
*/
|
|
21739
|
+
async getCurrentContext() {
|
|
21740
|
+
const context = await super.getCurrentContext();
|
|
21741
|
+
return context;
|
|
21742
|
+
}
|
|
21550
21743
|
}
|
|
21551
21744
|
|
|
21552
21745
|
const getAnswerSessionFromQuery = `
|
|
@@ -22071,4 +22264,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
22071
22264
|
return result;
|
|
22072
22265
|
};
|
|
22073
22266
|
|
|
22074
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|
|
22267
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ContextType, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|