@thoughtspot/visual-embed-sdk 1.39.2 → 1.39.3
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 +19 -15
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +23 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +56 -8
- 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 +0 -17
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +12 -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 +262 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +228 -2
- 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.spec.js +25 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CmEQfuE3.js → index-ZrE8YYq8.js} +1 -1
- package/dist/src/embed/app.d.ts +19 -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 +0 -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 +262 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +385 -71
- package/dist/tsembed-react.js +385 -69
- package/dist/tsembed.es.js +303 -24
- package/dist/tsembed.js +301 -22
- package/dist/visual-embed-sdk-react-full.d.ts +386 -72
- package/dist/visual-embed-sdk-react.d.ts +386 -72
- package/dist/visual-embed-sdk.d.ts +314 -53
- 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 +19 -15
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +22 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +58 -10
- 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 +0 -17
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +12 -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 +262 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +228 -2
- 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.spec.js +26 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +315 -54
- package/package.json +1 -1
- package/src/config.spec.ts +11 -0
- package/src/embed/app.spec.ts +90 -23
- package/src/embed/app.ts +27 -15
- 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 +5 -4
- package/src/embed/liveboard.ts +2 -22
- 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 +301 -44
- package/src/utils/global-styles.ts +1 -1
- package/src/utils/graphql/nlsService/conversation-service.ts +7 -1
- package/src/utils.spec.ts +29 -0
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.39.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.39.3 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -659,6 +659,12 @@
|
|
|
659
659
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
660
660
|
*/
|
|
661
661
|
HomeLeftNavItem["Spotter"] = "spotter";
|
|
662
|
+
/**
|
|
663
|
+
* Favorites option in the insights left navigation,
|
|
664
|
+
* available when new navigation V3 is enabled.
|
|
665
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
666
|
+
*/
|
|
667
|
+
HomeLeftNavItem["Favorites"] = "favorites";
|
|
662
668
|
})(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
|
|
663
669
|
/**
|
|
664
670
|
* A map of the supported runtime filter operations
|
|
@@ -1845,6 +1851,83 @@
|
|
|
1845
1851
|
* @version SDK : 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
1846
1852
|
*/
|
|
1847
1853
|
EmbedEvent["ExitPresentMode"] = "exitPresentMode";
|
|
1854
|
+
/**
|
|
1855
|
+
* Emitted when spotter response is text data
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```js
|
|
1858
|
+
* spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
|
|
1859
|
+
* console.log('payload', payload);
|
|
1860
|
+
* })
|
|
1861
|
+
*```
|
|
1862
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1863
|
+
*/
|
|
1864
|
+
EmbedEvent["SpotterData"] = "SpotterData";
|
|
1865
|
+
/**
|
|
1866
|
+
* Emitted when user opens up the worksheet preview modal in spotter embed.
|
|
1867
|
+
* @example
|
|
1868
|
+
* ```js
|
|
1869
|
+
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
|
|
1870
|
+
* console.log('payload', payload);
|
|
1871
|
+
* })
|
|
1872
|
+
*```
|
|
1873
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1874
|
+
*/
|
|
1875
|
+
EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
1876
|
+
/**
|
|
1877
|
+
* Emitted when the spotter query is triggered in spotter embed.
|
|
1878
|
+
* @example
|
|
1879
|
+
* ```js
|
|
1880
|
+
* spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
|
|
1881
|
+
* console.log('payload', payload);
|
|
1882
|
+
* })
|
|
1883
|
+
*```
|
|
1884
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1885
|
+
*/
|
|
1886
|
+
EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
|
|
1887
|
+
/**
|
|
1888
|
+
* Emitted when the last spotter query is edited in spotter embed.
|
|
1889
|
+
* @example
|
|
1890
|
+
* ```js
|
|
1891
|
+
* spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
|
|
1892
|
+
* console.log('payload', payload);
|
|
1893
|
+
* })
|
|
1894
|
+
*```
|
|
1895
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1896
|
+
*/
|
|
1897
|
+
EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
|
|
1898
|
+
/**
|
|
1899
|
+
* Emitted when the last spotter query is deleted in spotter embed.
|
|
1900
|
+
* @example
|
|
1901
|
+
* ```js
|
|
1902
|
+
* spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
|
|
1903
|
+
* console.log('payload', payload);
|
|
1904
|
+
* })
|
|
1905
|
+
*```
|
|
1906
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1907
|
+
*/
|
|
1908
|
+
EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
|
|
1909
|
+
/**
|
|
1910
|
+
* Emitted when the coversation is reset in spotter embed.
|
|
1911
|
+
* @example
|
|
1912
|
+
* ```js
|
|
1913
|
+
* spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
|
|
1914
|
+
* console.log('payload', payload);
|
|
1915
|
+
* })
|
|
1916
|
+
*```
|
|
1917
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1918
|
+
*/
|
|
1919
|
+
EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
|
|
1920
|
+
/**
|
|
1921
|
+
* Emitted when the *Spotter* is initialized.
|
|
1922
|
+
* @example
|
|
1923
|
+
* ```js
|
|
1924
|
+
* spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
|
|
1925
|
+
* console.log('payload', payload);
|
|
1926
|
+
* })
|
|
1927
|
+
*```
|
|
1928
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
1929
|
+
*/
|
|
1930
|
+
EmbedEvent["SpotterInit"] = "SpotterInit";
|
|
1848
1931
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1849
1932
|
/**
|
|
1850
1933
|
* Event types that can be triggered by the host application
|
|
@@ -2135,6 +2218,7 @@
|
|
|
2135
2218
|
* @param
|
|
2136
2219
|
* `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
|
|
2137
2220
|
* Optional when pinning a new chart or table generated from a Search query.
|
|
2221
|
+
* **Required** in Spotter Embed.
|
|
2138
2222
|
* @param
|
|
2139
2223
|
* `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
2140
2224
|
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
@@ -2182,6 +2266,12 @@
|
|
|
2182
2266
|
* ```js
|
|
2183
2267
|
* appEmbed.trigger(HostEvent.Pin)
|
|
2184
2268
|
* ```
|
|
2269
|
+
* @example
|
|
2270
|
+
* ```js
|
|
2271
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
|
|
2272
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
2273
|
+
* });
|
|
2274
|
+
* ```
|
|
2185
2275
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2186
2276
|
*/
|
|
2187
2277
|
HostEvent["Pin"] = "pin";
|
|
@@ -2275,6 +2365,12 @@
|
|
|
2275
2365
|
* ```js
|
|
2276
2366
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
2277
2367
|
* ```
|
|
2368
|
+
* @example
|
|
2369
|
+
* ```js
|
|
2370
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
|
|
2371
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
2372
|
+
* });
|
|
2373
|
+
* ```
|
|
2278
2374
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2279
2375
|
*/
|
|
2280
2376
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -2347,6 +2443,7 @@
|
|
|
2347
2443
|
* This event is not supported in visualization embed and search embed.
|
|
2348
2444
|
* @param - object - To trigger the action for a specific visualization
|
|
2349
2445
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
2446
|
+
* **Required** in Spotter embed.
|
|
2350
2447
|
* @example
|
|
2351
2448
|
* ```js
|
|
2352
2449
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -2355,6 +2452,12 @@
|
|
|
2355
2452
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
2356
2453
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2357
2454
|
* ```
|
|
2455
|
+
* @example
|
|
2456
|
+
* ```js
|
|
2457
|
+
* const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
|
|
2458
|
+
* vizId:'730496d6-6903-4601-937e-2c691821af3c'
|
|
2459
|
+
* });
|
|
2460
|
+
* ```
|
|
2358
2461
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2359
2462
|
*/
|
|
2360
2463
|
HostEvent["Edit"] = "edit";
|
|
@@ -2402,6 +2505,16 @@
|
|
|
2402
2505
|
* );
|
|
2403
2506
|
* })
|
|
2404
2507
|
* ```
|
|
2508
|
+
* @example
|
|
2509
|
+
* ```js
|
|
2510
|
+
* spotterEmbed.trigger(HostEvent.GetTML, {
|
|
2511
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2512
|
+
* }).then((tml) => {
|
|
2513
|
+
* console.log(
|
|
2514
|
+
* tml.answer.search_query // TML representation of the search query
|
|
2515
|
+
* );
|
|
2516
|
+
* })
|
|
2517
|
+
* ```
|
|
2405
2518
|
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
2406
2519
|
* @important
|
|
2407
2520
|
*/
|
|
@@ -2489,7 +2602,12 @@
|
|
|
2489
2602
|
* vizEmbed.trigger(HostEvent.DownloadAsPng)
|
|
2490
2603
|
*
|
|
2491
2604
|
* searchEmbed.trigger(HostEvent.DownloadAsPng)
|
|
2605
|
+
*
|
|
2606
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsPng, {
|
|
2607
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
2608
|
+
* })
|
|
2492
2609
|
* ```
|
|
2610
|
+
*
|
|
2493
2611
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
|
|
2494
2612
|
*/
|
|
2495
2613
|
HostEvent["DownloadAsPng"] = "downloadAsPng";
|
|
@@ -2507,6 +2625,11 @@
|
|
|
2507
2625
|
* ```js
|
|
2508
2626
|
* searchEmbed.trigger(HostEvent.DownloadAsCsv)
|
|
2509
2627
|
* ```
|
|
2628
|
+
* ```js
|
|
2629
|
+
* spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
|
|
2630
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
2631
|
+
* })
|
|
2632
|
+
* ```
|
|
2510
2633
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2511
2634
|
*/
|
|
2512
2635
|
HostEvent["DownloadAsCsv"] = "downloadAsCSV";
|
|
@@ -2524,6 +2647,11 @@
|
|
|
2524
2647
|
* ```js
|
|
2525
2648
|
* searchEmbed.trigger(HostEvent.DownloadAsXlsx)
|
|
2526
2649
|
* ```
|
|
2650
|
+
* ```js
|
|
2651
|
+
* spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
|
|
2652
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
2653
|
+
* })
|
|
2654
|
+
* ```
|
|
2527
2655
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2528
2656
|
*/
|
|
2529
2657
|
HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
@@ -2543,6 +2671,7 @@
|
|
|
2543
2671
|
/**
|
|
2544
2672
|
* Trigger the **Save** action on a Liveboard or Answer.
|
|
2545
2673
|
* Saves the changes.
|
|
2674
|
+
* @param - `vizId` is required in Spotter Embed.
|
|
2546
2675
|
* @example
|
|
2547
2676
|
* ```js
|
|
2548
2677
|
* liveboardEmbed.trigger(HostEvent.Save)
|
|
@@ -2550,6 +2679,11 @@
|
|
|
2550
2679
|
* ```js
|
|
2551
2680
|
* searchEmbed.trigger(HostEvent.Save)
|
|
2552
2681
|
* ```
|
|
2682
|
+
* ```js
|
|
2683
|
+
* spotterEmbed.trigger(HostEvent.Save, {
|
|
2684
|
+
* vizId:"730496d6-6903-4601-937e-2c691821af3c"
|
|
2685
|
+
* })
|
|
2686
|
+
* ```
|
|
2553
2687
|
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
|
|
2554
2688
|
*/
|
|
2555
2689
|
HostEvent["Save"] = "save";
|
|
@@ -2833,7 +2967,7 @@
|
|
|
2833
2967
|
HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
|
|
2834
2968
|
/**
|
|
2835
2969
|
* Triggers an action to update Parameter values on embedded
|
|
2836
|
-
* Answers and
|
|
2970
|
+
* Answers, Liveboard and Spotter answer in Edit mode.
|
|
2837
2971
|
*
|
|
2838
2972
|
* @example
|
|
2839
2973
|
* ```js
|
|
@@ -2852,6 +2986,13 @@
|
|
|
2852
2986
|
* console.log('parameters', parameter);
|
|
2853
2987
|
* });
|
|
2854
2988
|
*```
|
|
2989
|
+
*```js
|
|
2990
|
+
* spotterEmbed.trigger(HostEvent.GetParameters, {
|
|
2991
|
+
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2992
|
+
* }).then((parameter) => {
|
|
2993
|
+
* console.log('parameters', parameter);
|
|
2994
|
+
* });
|
|
2995
|
+
*```
|
|
2855
2996
|
* @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
|
|
2856
2997
|
*/
|
|
2857
2998
|
HostEvent["GetParameters"] = "GetParameters";
|
|
@@ -2919,6 +3060,64 @@
|
|
|
2919
3060
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2920
3061
|
*/
|
|
2921
3062
|
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
3063
|
+
/**
|
|
3064
|
+
* Triggers a search operation with the search tokens specified in
|
|
3065
|
+
* the search query string in spotter embed.
|
|
3066
|
+
* @param - `queryString`: Text string in Natural Language format
|
|
3067
|
+
* @param - `executeSearch`: Boolean to execute search and update search query
|
|
3068
|
+
* @example
|
|
3069
|
+
* ```js
|
|
3070
|
+
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
3071
|
+
* query: 'revenue per year',
|
|
3072
|
+
* executeSearch: true,
|
|
3073
|
+
* })
|
|
3074
|
+
* ```
|
|
3075
|
+
*/
|
|
3076
|
+
HostEvent["SpotterSearch"] = "SpotterSearch";
|
|
3077
|
+
/**
|
|
3078
|
+
* Edits the last prompt in spotter embed.
|
|
3079
|
+
* @param - `query`: Text string
|
|
3080
|
+
* @example
|
|
3081
|
+
* ```js
|
|
3082
|
+
* spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
|
|
3083
|
+
* ```
|
|
3084
|
+
*/
|
|
3085
|
+
HostEvent["EditLastPrompt"] = "EditLastPrompt";
|
|
3086
|
+
/**
|
|
3087
|
+
* Opens the Worksheet preview modal in Spotter Embed.
|
|
3088
|
+
* @example
|
|
3089
|
+
* ```js
|
|
3090
|
+
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
|
|
3091
|
+
* ```
|
|
3092
|
+
*/
|
|
3093
|
+
HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
3094
|
+
/**
|
|
3095
|
+
* Resets the Spotter Embed Conversation.
|
|
3096
|
+
* @example
|
|
3097
|
+
* ```js
|
|
3098
|
+
* spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
|
|
3099
|
+
* ```
|
|
3100
|
+
*/
|
|
3101
|
+
HostEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
|
|
3102
|
+
/**
|
|
3103
|
+
* Deletes the last prompt in spotter embed.
|
|
3104
|
+
* @example
|
|
3105
|
+
* ```js
|
|
3106
|
+
* spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
|
|
3107
|
+
* ```
|
|
3108
|
+
*/
|
|
3109
|
+
HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
|
|
3110
|
+
/**
|
|
3111
|
+
* Toggle the visualization to chart or table view.
|
|
3112
|
+
* @param - `vizId ` In Spotter Embed, vizId is required.
|
|
3113
|
+
* @example
|
|
3114
|
+
* ```js
|
|
3115
|
+
* spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
|
|
3116
|
+
* vizId:"'b535c760-8bbe-4e6f-bb26-af56b4129a1e'"
|
|
3117
|
+
* });
|
|
3118
|
+
*```
|
|
3119
|
+
*/
|
|
3120
|
+
HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
|
|
2922
3121
|
/**
|
|
2923
3122
|
* @hidden
|
|
2924
3123
|
* Trigger exit from presentation mode when user exits fullscreen.
|
|
@@ -2929,6 +3128,16 @@
|
|
|
2929
3128
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
2930
3129
|
*/
|
|
2931
3130
|
HostEvent["ExitPresentMode"] = "exitPresentMode";
|
|
3131
|
+
/**
|
|
3132
|
+
* Trigger the *Ask Sage* action for visualizations
|
|
3133
|
+
* @example
|
|
3134
|
+
* ```js
|
|
3135
|
+
* liveboardEmbed.trigger(HostEvent.AskSpotter,
|
|
3136
|
+
* {containerId:'730496d6-6903-4601-937e-2c691821af3c'})
|
|
3137
|
+
* ```
|
|
3138
|
+
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
3139
|
+
*/
|
|
3140
|
+
HostEvent["AskSpotter"] = "askSpotter";
|
|
2932
3141
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
2933
3142
|
/**
|
|
2934
3143
|
* The different visual modes that the data sources panel within
|
|
@@ -3034,6 +3243,7 @@
|
|
|
3034
3243
|
Param["Query"] = "query";
|
|
3035
3244
|
Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
|
|
3036
3245
|
Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
|
|
3246
|
+
Param["ListPageVersion"] = "listpageVersion";
|
|
3037
3247
|
Param["PendoTrackingKey"] = "additionalPendoKey";
|
|
3038
3248
|
Param["LiveboardHeaderSticky"] = "isLiveboardHeaderSticky";
|
|
3039
3249
|
Param["IsProductTour"] = "isProductTour";
|
|
@@ -3068,7 +3278,7 @@
|
|
|
3068
3278
|
Param["DataSourceId"] = "dataSourceId";
|
|
3069
3279
|
Param["preAuthCache"] = "preAuthCache";
|
|
3070
3280
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
3071
|
-
Param["CoverAndFilterOptionInPDF"] = "
|
|
3281
|
+
Param["CoverAndFilterOptionInPDF"] = "arePdfCoverFilterPageCheckboxesEnabled";
|
|
3072
3282
|
Param["PrimaryAction"] = "primaryAction";
|
|
3073
3283
|
Param["isSpotterAgentEmbed"] = "isSpotterAgentEmbed";
|
|
3074
3284
|
Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
|
|
@@ -4294,6 +4504,22 @@
|
|
|
4294
4504
|
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4295
4505
|
*/
|
|
4296
4506
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4507
|
+
/**
|
|
4508
|
+
* Action ID for hide or disable the
|
|
4509
|
+
* Spotter in conversation training widget.
|
|
4510
|
+
* The Add to Coaching feature is currently in beta
|
|
4511
|
+
* and is disabled by default on embed deployments.
|
|
4512
|
+
* To enable this feature on your instance,
|
|
4513
|
+
* contact ThoughtSpot Support.
|
|
4514
|
+
* @example
|
|
4515
|
+
* ```js
|
|
4516
|
+
* hiddenAction: [Action.InConversationTraining]
|
|
4517
|
+
* disabledActions: [Action.InConversationTraining]
|
|
4518
|
+
*
|
|
4519
|
+
* ```
|
|
4520
|
+
* @version SDK: 1.39.0 | ThoughtSpot Cloud: 10.10.0.cl
|
|
4521
|
+
*/
|
|
4522
|
+
Action["InConversationTraining"] = "InConversationTraining";
|
|
4297
4523
|
})(exports.Action || (exports.Action = {}));
|
|
4298
4524
|
exports.PrefetchFeatures = void 0;
|
|
4299
4525
|
(function (PrefetchFeatures) {
|
|
@@ -6760,6 +6986,7 @@
|
|
|
6760
6986
|
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',
|
|
6761
6987
|
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
6762
6988
|
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',
|
|
6989
|
+
SPOTTER_AGENT_NOT_INITIALIZED: 'SpotterAgent not initialized',
|
|
6763
6990
|
};
|
|
6764
6991
|
|
|
6765
6992
|
const EndPoints = {
|
|
@@ -6967,13 +7194,14 @@
|
|
|
6967
7194
|
*
|
|
6968
7195
|
* @example
|
|
6969
7196
|
* ```js
|
|
7197
|
+
* import { getInitConfig } from '@thoughtspot/visual-embed-sdk';
|
|
7198
|
+
* // Call the getInitConfig method to retrieve the embed configuration
|
|
6970
7199
|
* const config = getInitConfig();
|
|
7200
|
+
* // Log the configuration settings
|
|
6971
7201
|
* console.log(config);
|
|
6972
7202
|
* ```
|
|
6973
|
-
*
|
|
6974
|
-
*
|
|
6975
|
-
* Returns the `EmbedConfig` object, which
|
|
6976
|
-
* contains the configuration settings used to
|
|
7203
|
+
* Returns the link:https://developers.thoughtspot.com/docs/Interface_EmbedConfig[EmbedConfig]
|
|
7204
|
+
* object, which contains the configuration settings used to
|
|
6977
7205
|
* initialize the SDK, including the following:
|
|
6978
7206
|
*
|
|
6979
7207
|
* - `thoughtSpotHost` - ThoughtSpot host URL
|
|
@@ -6982,9 +7210,10 @@
|
|
|
6982
7210
|
* - `customizations` - Style, text, and icon customization settings
|
|
6983
7211
|
* that were applied during the SDK initialization.
|
|
6984
7212
|
*
|
|
6985
|
-
*
|
|
6986
|
-
*
|
|
7213
|
+
* The following JSON output shows the embed configuration
|
|
7214
|
+
* settings returned from the code in the previous example:
|
|
6987
7215
|
*
|
|
7216
|
+
* @example
|
|
6988
7217
|
* ```json
|
|
6989
7218
|
* {
|
|
6990
7219
|
* "thoughtSpotHost": "https://{ThoughtSpot-Host}",
|
|
@@ -7006,7 +7235,7 @@
|
|
|
7006
7235
|
* "authTriggerContainer": "#your-own-div"
|
|
7007
7236
|
* }
|
|
7008
7237
|
* ```
|
|
7009
|
-
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.
|
|
7238
|
+
* @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw, and later
|
|
7010
7239
|
* @group Global methods
|
|
7011
7240
|
*/
|
|
7012
7241
|
const getEmbedConfig = () => getValueFromWindow(configKey) || {};
|
|
@@ -15548,7 +15777,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15548
15777
|
return e;
|
|
15549
15778
|
}
|
|
15550
15779
|
|
|
15551
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.
|
|
15780
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.3";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$1={".":{"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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.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 | coveralls","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":"^8.2.6","@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":"^22.2.3","@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",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","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$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
|
|
15552
15781
|
|
|
15553
15782
|
/**
|
|
15554
15783
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -17042,6 +17271,22 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17042
17271
|
*/
|
|
17043
17272
|
HomePage["Modular"] = "v2";
|
|
17044
17273
|
})(exports.HomePage || (exports.HomePage = {}));
|
|
17274
|
+
/**
|
|
17275
|
+
* Define the version of the list page
|
|
17276
|
+
* @version SDK: 1.40.0 | ThoughtSpot: 10.12.0.cl
|
|
17277
|
+
*/
|
|
17278
|
+
exports.ListPage = void 0;
|
|
17279
|
+
(function (ListPage) {
|
|
17280
|
+
/**
|
|
17281
|
+
* List (v2) is the traditional List Experience.
|
|
17282
|
+
* It serves as the foundational version of the list page.
|
|
17283
|
+
*/
|
|
17284
|
+
ListPage["List"] = "v2";
|
|
17285
|
+
/**
|
|
17286
|
+
* ListWithUXChanges (v3) introduces the new updated list page with UX changes.
|
|
17287
|
+
*/
|
|
17288
|
+
ListPage["ListWithUXChanges"] = "v3";
|
|
17289
|
+
})(exports.ListPage || (exports.ListPage = {}));
|
|
17045
17290
|
/**
|
|
17046
17291
|
* Embeds full ThoughtSpot experience in a host application.
|
|
17047
17292
|
* @group Embed components
|
|
@@ -17098,7 +17343,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17098
17343
|
getEmbedParams() {
|
|
17099
17344
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
17100
17345
|
/* eslint-disable-next-line max-len */
|
|
17101
|
-
dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
|
|
17346
|
+
dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
|
|
17102
17347
|
let params = {};
|
|
17103
17348
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
17104
17349
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -17114,6 +17359,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17114
17359
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
17115
17360
|
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
17116
17361
|
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
17362
|
+
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
17117
17363
|
params = this.getBaseQueryParams(params);
|
|
17118
17364
|
if (hideObjectSearch) {
|
|
17119
17365
|
params[Param.HideObjectSearch] = !!hideObjectSearch;
|
|
@@ -17184,6 +17430,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17184
17430
|
if (discoveryExperience.homePage === exports.HomePage.Modular) {
|
|
17185
17431
|
params[Param.ModularHomeExperienceEnabled] = true;
|
|
17186
17432
|
}
|
|
17433
|
+
// listPageVersion v3 will enable the new list page
|
|
17434
|
+
if (discoveryExperience.listPageVersion === exports.ListPage.ListWithUXChanges) {
|
|
17435
|
+
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
|
|
17436
|
+
}
|
|
17187
17437
|
}
|
|
17188
17438
|
const queryParams = getQueryParamString(params, true);
|
|
17189
17439
|
return queryParams;
|
|
@@ -17321,7 +17571,7 @@ query GetEurekaVizSnapshots(
|
|
|
17321
17571
|
return;
|
|
17322
17572
|
}
|
|
17323
17573
|
const previewStyles = `
|
|
17324
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css">
|
|
17574
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css" integrity="sha384-PvEsKa6emq5KYa9mf+Q7eYF5C2OCacYzZ+hBngp21NA4o1A9iU9smnytEmqUFbEZ" crossorigin="anonymous">
|
|
17325
17575
|
<style id="ts-preview-style">
|
|
17326
17576
|
.ts-viz-preview-loader {
|
|
17327
17577
|
position: absolute;
|
|
@@ -17433,7 +17683,7 @@ query GetEurekaVizSnapshots(
|
|
|
17433
17683
|
getEmbedParams() {
|
|
17434
17684
|
let params = {};
|
|
17435
17685
|
params = this.getBaseQueryParams(params);
|
|
17436
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
|
|
17686
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, } = this.viewConfig;
|
|
17437
17687
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
17438
17688
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
17439
17689
|
if (fullHeight === true) {
|
|
@@ -17485,9 +17735,6 @@ query GetEurekaVizSnapshots(
|
|
|
17485
17735
|
if (dataSourceId !== undefined) {
|
|
17486
17736
|
params[Param.DataSourceId] = dataSourceId;
|
|
17487
17737
|
}
|
|
17488
|
-
if (coverAndFilterOptionInPDF !== undefined) {
|
|
17489
|
-
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
17490
|
-
}
|
|
17491
17738
|
if (isLiveboardStylingAndGroupingEnabled !== undefined) {
|
|
17492
17739
|
params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
|
|
17493
17740
|
}
|
|
@@ -17498,6 +17745,7 @@ query GetEurekaVizSnapshots(
|
|
|
17498
17745
|
params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
|
|
17499
17746
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
17500
17747
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
17748
|
+
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
17501
17749
|
const queryParams = getQueryParamString(params, true);
|
|
17502
17750
|
return queryParams;
|
|
17503
17751
|
}
|
|
@@ -18256,7 +18504,13 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
18256
18504
|
});
|
|
18257
18505
|
const data = responses[0].data;
|
|
18258
18506
|
return {
|
|
18259
|
-
|
|
18507
|
+
convId: this.conversationId,
|
|
18508
|
+
messageId: responses[0].msgId,
|
|
18509
|
+
data: {
|
|
18510
|
+
...data.asstRespData.nlsAnsData.sageQuerySuggestions[0],
|
|
18511
|
+
convId: this.conversationId,
|
|
18512
|
+
messageId: responses[0].msgId,
|
|
18513
|
+
},
|
|
18260
18514
|
error: null,
|
|
18261
18515
|
};
|
|
18262
18516
|
}
|
|
@@ -18282,7 +18536,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
18282
18536
|
}
|
|
18283
18537
|
getIframeSrc() {
|
|
18284
18538
|
var _a;
|
|
18285
|
-
const { sessionId, genNo, acSessionId, acGenNo, } = this.viewConfig;
|
|
18539
|
+
const { sessionId, genNo, acSessionId, acGenNo, convId, messageId, } = this.viewConfig;
|
|
18286
18540
|
const path = 'conv-assist-answer';
|
|
18287
18541
|
const queryParams = this.getBaseQueryParams();
|
|
18288
18542
|
queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
|
|
@@ -18297,6 +18551,8 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
18297
18551
|
genNo,
|
|
18298
18552
|
acSessionId,
|
|
18299
18553
|
acGenNo,
|
|
18554
|
+
convId,
|
|
18555
|
+
messageId,
|
|
18300
18556
|
});
|
|
18301
18557
|
return `${this.getEmbedBasePath(query)}/embed/${path}${tsPostHashParams}`;
|
|
18302
18558
|
}
|
|
@@ -18338,11 +18594,10 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
18338
18594
|
return { error };
|
|
18339
18595
|
}
|
|
18340
18596
|
const container = document.createElement('div');
|
|
18341
|
-
if (this.viewConfig.containerClassName) {
|
|
18342
|
-
container.className = this.viewConfig.containerClassName;
|
|
18343
|
-
}
|
|
18344
18597
|
const embed = new ConversationMessage(container, {
|
|
18345
18598
|
...this.viewConfig,
|
|
18599
|
+
convId: data.convId,
|
|
18600
|
+
messageId: data.messageId,
|
|
18346
18601
|
sessionId: data.sessionId,
|
|
18347
18602
|
genNo: data.genNo,
|
|
18348
18603
|
acSessionId: data.stateKey.transactionId,
|
|
@@ -18351,6 +18606,30 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
18351
18606
|
await embed.render();
|
|
18352
18607
|
return { container, viz: embed };
|
|
18353
18608
|
}
|
|
18609
|
+
/**
|
|
18610
|
+
* Send a message to the conversation service and return only the data.
|
|
18611
|
+
* @param userMessage - The message to send to the conversation service.
|
|
18612
|
+
* @returns The data from the conversation service.
|
|
18613
|
+
*/
|
|
18614
|
+
async sendMessageData(userMessage) {
|
|
18615
|
+
try {
|
|
18616
|
+
const { data, error } = await this.conversationService.sendMessage(userMessage);
|
|
18617
|
+
if (error) {
|
|
18618
|
+
return { error };
|
|
18619
|
+
}
|
|
18620
|
+
return { data: {
|
|
18621
|
+
convId: data.convId,
|
|
18622
|
+
messageId: data.messageId,
|
|
18623
|
+
sessionId: data.sessionId,
|
|
18624
|
+
genNo: data.genNo,
|
|
18625
|
+
acSessionId: data.stateKey.transactionId,
|
|
18626
|
+
acGenNo: data.stateKey.generationNumber,
|
|
18627
|
+
} };
|
|
18628
|
+
}
|
|
18629
|
+
catch (error) {
|
|
18630
|
+
return { error: error };
|
|
18631
|
+
}
|
|
18632
|
+
}
|
|
18354
18633
|
}
|
|
18355
18634
|
/**
|
|
18356
18635
|
* Create a conversation embed, which can be integrated inside
|