@thoughtspot/visual-embed-sdk 1.40.0 → 1.40.1-alpha.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.
Files changed (51) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/liveboard.d.ts +2 -1
  3. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  4. package/cjs/src/embed/liveboard.js +13 -8
  5. package/cjs/src/embed/liveboard.js.map +1 -1
  6. package/cjs/src/embed/ts-embed.d.ts +7 -0
  7. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  8. package/cjs/src/embed/ts-embed.js +61 -7
  9. package/cjs/src/embed/ts-embed.js.map +1 -1
  10. package/cjs/src/types.d.ts +33 -64
  11. package/cjs/src/types.d.ts.map +1 -1
  12. package/cjs/src/types.js +33 -64
  13. package/cjs/src/types.js.map +1 -1
  14. package/dist/{index-CAEHQGLc.js → index-CmEQfuE3.js} +1 -1
  15. package/dist/index-D1pyb7RG.js +7371 -0
  16. package/dist/index-DeFzsyFF.js +7371 -0
  17. package/dist/index-Dpf0rd6w.js +7371 -0
  18. package/dist/index-UuEbsISo.js +7447 -0
  19. package/dist/index-e3Uw3YFO.js +7371 -0
  20. package/dist/src/embed/bodyless-conversation.d.ts +0 -4
  21. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  22. package/dist/src/react/index.d.ts +0 -2
  23. package/dist/src/react/index.d.ts.map +1 -1
  24. package/dist/src/types.d.ts +9 -253
  25. package/dist/src/types.d.ts.map +1 -1
  26. package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
  27. package/dist/tsembed-react.es.js +13 -267
  28. package/dist/tsembed-react.js +12 -266
  29. package/dist/tsembed.es.js +13 -267
  30. package/dist/tsembed.js +12 -266
  31. package/dist/visual-embed-sdk-react-full.d.ts +9 -259
  32. package/dist/visual-embed-sdk-react.d.ts +9 -259
  33. package/dist/visual-embed-sdk.d.ts +9 -257
  34. package/lib/package.json +1 -1
  35. package/lib/src/embed/liveboard.d.ts +2 -1
  36. package/lib/src/embed/liveboard.d.ts.map +1 -1
  37. package/lib/src/embed/liveboard.js +13 -8
  38. package/lib/src/embed/liveboard.js.map +1 -1
  39. package/lib/src/embed/ts-embed.d.ts +7 -0
  40. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  41. package/lib/src/embed/ts-embed.js +61 -7
  42. package/lib/src/embed/ts-embed.js.map +1 -1
  43. package/lib/src/types.d.ts +33 -64
  44. package/lib/src/types.d.ts.map +1 -1
  45. package/lib/src/types.js +33 -64
  46. package/lib/src/types.js.map +1 -1
  47. package/lib/src/visual-embed-sdk.d.ts +9 -257
  48. package/package.json +1 -2
  49. package/src/embed/liveboard.ts +14 -7
  50. package/src/embed/ts-embed.ts +84 -21
  51. package/src/types.ts +34 -64
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.40.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.39.2-alpha.3 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -1245,7 +1245,7 @@
1245
1245
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1246
1246
  * @example
1247
1247
  *```js
1248
- * liveboardEmbed.on(EmbedEvent.LiveboardInfo, payload => {
1248
+ * liveboardEmbed.on(EmbedEvent.AnswerChartSwitcher, payload => {
1249
1249
  * console.log('Liveboard details', payload);
1250
1250
  * })
1251
1251
  *```
@@ -1619,83 +1619,6 @@
1619
1619
  * @hidden
1620
1620
  */
1621
1621
  EmbedEvent["RequestVisibleEmbedCoordinates"] = "requestVisibleEmbedCoordinates";
1622
- /**
1623
- * Emitted when Spotter response is text data
1624
- * @example
1625
- * ```js
1626
- * spotterEmbed.on(EmbedEvent.SpotterData, (payload) => {
1627
- * console.log('payload', payload);
1628
- * })
1629
- *```
1630
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1631
- */
1632
- EmbedEvent["SpotterData"] = "SpotterData";
1633
- /**
1634
- * Emitted when user opens up the worksheet preview modal in Spotter embed.
1635
- * @example
1636
- * ```js
1637
- * spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
1638
- * console.log('payload', payload);
1639
- * })
1640
- *```
1641
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1642
- */
1643
- EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
1644
- /**
1645
- * Emitted when the Spotter query is triggered in Spotter embed.
1646
- * @example
1647
- * ```js
1648
- * spotterEmbed.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
1649
- * console.log('payload', payload);
1650
- * })
1651
- *```
1652
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1653
- */
1654
- EmbedEvent["SpotterQueryTriggered"] = "SpotterQueryTriggered";
1655
- /**
1656
- * Emitted when the last Spotter query is edited in Spotter embed.
1657
- * @example
1658
- * ```js
1659
- * spotterEmbed.on(EmbedEvent.LastPromptEdited, (payload) => {
1660
- * console.log('payload', payload);
1661
- * })
1662
- *```
1663
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1664
- */
1665
- EmbedEvent["LastPromptEdited"] = "LastPromptEdited";
1666
- /**
1667
- * Emitted when the last Spotter query is deleted in Spotter embed.
1668
- * @example
1669
- * ```js
1670
- * spotterEmbed.on(EmbedEvent.LastPromptDeleted, (payload) => {
1671
- * console.log('payload', payload);
1672
- * })
1673
- *```
1674
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1675
- */
1676
- EmbedEvent["LastPromptDeleted"] = "LastPromptDeleted";
1677
- /**
1678
- * Emitted when the coversation is reset in spotter embed.
1679
- * @example
1680
- * ```js
1681
- * spotterEmbed.on(EmbedEvent.ResetSpotterConversation, (payload) => {
1682
- * console.log('payload', payload);
1683
- * })
1684
- *```
1685
- * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1686
- */
1687
- EmbedEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
1688
- /**
1689
- * Emitted when the *Spotter* is initialized.
1690
- * @example
1691
- * ```js
1692
- * spotterEmbed.on(EmbedEvent.SpotterInit, (payload) => {
1693
- * console.log('payload', payload);
1694
- * })
1695
- *```
1696
- * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
1697
- */
1698
- EmbedEvent["SpotterInit"] = "spotterInit";
1699
1622
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1700
1623
  /**
1701
1624
  * Event types that can be triggered by the host application
@@ -1713,7 +1636,7 @@
1713
1636
  * // create the liveboard embed.
1714
1637
  *
1715
1638
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
1716
- * { columnName: 'state', operator: RuntimeFilterOp.EQ, values: ["california"]}
1639
+ * { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
1717
1640
  * ]);
1718
1641
  * ```
1719
1642
  * @example
@@ -1785,7 +1708,6 @@
1785
1708
  * done automatically on the most popular column.
1786
1709
  * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1787
1710
  * in case of a Liveboard.
1788
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
1789
1711
  * @example
1790
1712
  * ```js
1791
1713
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -1924,12 +1846,12 @@
1924
1846
  * Works with Search and Liveboard embed.
1925
1847
  * @param - { columnId: string,
1926
1848
  * name: string,
1927
- * type: ATTRIBUTE/MEASURE,
1928
- * dataType: INT64/CHAR/DATE }
1849
+ * type: INT64/CHAR/DATE,
1850
+ * dataType: ATTRIBUTE/MEASURE }
1929
1851
  * @example
1930
1852
  * ```js
1931
1853
  * searchEmbed.trigger(HostEvent.OpenFilter,
1932
- * {column: { columnId: '<column-GUID>', name: 'column name', type: 'ATTRIBUTE', dataType: 'INT64'}})
1854
+ * {column: { columnId: '<column-GUID>', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE'}})
1933
1855
  * ```
1934
1856
  * @example
1935
1857
  * ```js
@@ -1987,7 +1909,6 @@
1987
1909
  * @param
1988
1910
  * `vizId`- GUID of the saved Answer or visualization to pin to a Liveboard.
1989
1911
  * Optional when pinning a new chart or table generated from a Search query.
1990
- * **Required** in Spotter Embed.
1991
1912
  * @param
1992
1913
  * `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
1993
1914
  * specify the `newLiveboardName` parameter to create a new Liveboard.
@@ -2035,12 +1956,6 @@
2035
1956
  * ```js
2036
1957
  * appEmbed.trigger(HostEvent.Pin)
2037
1958
  * ```
2038
- * @example
2039
- * ```js
2040
- * const pinResponse = await spotterEmbed.trigger(HostEvent.Pin, {
2041
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2042
- * });
2043
- * ```
2044
1959
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2045
1960
  */
2046
1961
  HostEvent["Pin"] = "pin";
@@ -2105,21 +2020,12 @@
2105
2020
  * Trigger the **Download PDF** action on an embedded Liveboard,
2106
2021
  * visualization or Answer.
2107
2022
  *
2108
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2109
- *
2110
2023
  * **NOTE**: The **Download** > **PDF** action is available on
2111
2024
  * visualizations and Answers if the data is in tabular format.
2112
2025
  * @example
2113
2026
  * ```js
2114
2027
  * liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
2115
2028
  * ```
2116
- * @example
2117
- * ```js
2118
- * spotterEmbed.trigger(HostEvent.DownloadAsPdf, {
2119
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2120
- * });
2121
- * ```
2122
- *
2123
2029
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2124
2030
  */
2125
2031
  HostEvent["DownloadAsPdf"] = "downloadAsPdf";
@@ -2143,12 +2049,6 @@
2143
2049
  * ```js
2144
2050
  * searchEmbed.trigger(HostEvent.MakeACopy)
2145
2051
  * ```
2146
- * @example
2147
- * ```js
2148
- * const pinResponse = await spotterEmbed.trigger(HostEvent.MakeACopy, {
2149
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2150
- * });
2151
- * ```
2152
2052
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2153
2053
  */
2154
2054
  HostEvent["MakeACopy"] = "makeACopy";
@@ -2221,8 +2121,6 @@
2221
2121
  * This event is not supported in visualization embed and search embed.
2222
2122
  * @param - object - To trigger the action for a specific visualization
2223
2123
  * in Liveboard embed, pass in `vizId` as a key.
2224
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2225
- *
2226
2124
  * @example
2227
2125
  * ```js
2228
2126
  * liveboardEmbed.trigger(HostEvent.Edit)
@@ -2231,18 +2129,6 @@
2231
2129
  * liveboardEmbed.trigger(HostEvent.Edit, {vizId:
2232
2130
  * '730496d6-6903-4601-937e-2c691821af3c'})
2233
2131
  * ```
2234
- * @example
2235
- * ```js
2236
- * const pinResponse = await spotterEmbed.trigger(HostEvent.Edit, {
2237
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2238
- * });
2239
- * ```
2240
- * @example
2241
- * ```js
2242
- * const editResponse = await spotterEmbed.trigger(HostEvent.Edit, {
2243
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2244
- * });
2245
- * ```
2246
2132
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
2247
2133
  */
2248
2134
  HostEvent["Edit"] = "edit";
@@ -2290,16 +2176,6 @@
2290
2176
  * );
2291
2177
  * })
2292
2178
  * ```
2293
- * @example
2294
- * ```js
2295
- * spotterEmbed.trigger(HostEvent.GetTML, {
2296
- * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2297
- * }).then((tml) => {
2298
- * console.log(
2299
- * tml.answer.search_query // TML representation of the search query
2300
- * );
2301
- * })
2302
- * ```
2303
2179
  * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1.sw
2304
2180
  * @important
2305
2181
  */
@@ -2363,7 +2239,6 @@
2363
2239
  /**
2364
2240
  * Trigger the **Download** action on charts in
2365
2241
  * the embedded view.
2366
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2367
2242
  * @example
2368
2243
  * ```js
2369
2244
  * liveboardEmbed.trigger(HostEvent.Download, {vizId:
@@ -2372,11 +2247,6 @@
2372
2247
  * ```js
2373
2248
  * embed.trigger(HostEvent.Download)
2374
2249
  * ```
2375
- * ```js
2376
- * spotterEmbed.trigger(HostEvent.Download, {
2377
- * vizId:'730496d6-6903-4601-937e-2c691821af3c'
2378
- * });
2379
- * ```
2380
2250
  * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl ,9.4.1.sw
2381
2251
  * Use {@link DownloadAsPng}
2382
2252
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
@@ -2393,19 +2263,13 @@
2393
2263
  * vizEmbed.trigger(HostEvent.DownloadAsPng)
2394
2264
  *
2395
2265
  * searchEmbed.trigger(HostEvent.DownloadAsPng)
2396
- *
2397
- * spotterEmbed.trigger(HostEvent.DownloadAsPng, {
2398
- * vizId:"730496d6-6903-4601-937e-2c691821af3c"
2399
- * })
2400
2266
  * ```
2401
- *
2402
2267
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1.sw
2403
2268
  */
2404
2269
  HostEvent["DownloadAsPng"] = "downloadAsPng";
2405
2270
  /**
2406
2271
  * Trigger the **Download** > **CSV** action on tables in
2407
2272
  * the embedded view.
2408
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2409
2273
  * @example
2410
2274
  * ```js
2411
2275
  * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
@@ -2417,18 +2281,12 @@
2417
2281
  * ```js
2418
2282
  * searchEmbed.trigger(HostEvent.DownloadAsCsv)
2419
2283
  * ```
2420
- * ```js
2421
- * spotterEmbed.trigger(HostEvent.DownloadAsCsv, {
2422
- * vizId:"730496d6-6903-4601-937e-2c691821af3c"
2423
- * })
2424
- * ```
2425
2284
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2426
2285
  */
2427
2286
  HostEvent["DownloadAsCsv"] = "downloadAsCSV";
2428
2287
  /**
2429
2288
  * Trigger the **Download** > **XLSX** action on tables
2430
2289
  * in the embedded view.
2431
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2432
2290
  * @example
2433
2291
  * ```js
2434
2292
  * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
@@ -2440,11 +2298,6 @@
2440
2298
  * ```js
2441
2299
  * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
2442
2300
  * ```
2443
- * ```js
2444
- * spotterEmbed.trigger(HostEvent.downloadAsXLSX, {
2445
- * vizId:"730496d6-6903-4601-937e-2c691821af3c"
2446
- * })
2447
- * ```
2448
2301
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2449
2302
  */
2450
2303
  HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
@@ -2464,7 +2317,6 @@
2464
2317
  /**
2465
2318
  * Trigger the **Save** action on a Liveboard or Answer.
2466
2319
  * Saves the changes.
2467
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2468
2320
  * @example
2469
2321
  * ```js
2470
2322
  * liveboardEmbed.trigger(HostEvent.Save)
@@ -2472,11 +2324,6 @@
2472
2324
  * ```js
2473
2325
  * searchEmbed.trigger(HostEvent.Save)
2474
2326
  * ```
2475
- * ```js
2476
- * spotterEmbed.trigger(HostEvent.Save, {
2477
- * vizId:"730496d6-6903-4601-937e-2c691821af3c"
2478
- * })
2479
- * ```
2480
2327
  * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1.sw
2481
2328
  */
2482
2329
  HostEvent["Save"] = "save";
@@ -2760,7 +2607,7 @@
2760
2607
  HostEvent["ResetLiveboardPersonalisedView"] = "ResetLiveboardPersonalisedView";
2761
2608
  /**
2762
2609
  * Triggers an action to update Parameter values on embedded
2763
- * Answers, Liveboard and Spotter answer in Edit mode.
2610
+ * Answers and Liveboard.
2764
2611
  *
2765
2612
  * @example
2766
2613
  * ```js
@@ -2774,19 +2621,11 @@
2774
2621
  HostEvent["UpdateParameters"] = "UpdateParameters";
2775
2622
  /**
2776
2623
  * Triggers GetParameters to fetch the runtime Parameters.
2777
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2778
2624
  * ```js
2779
2625
  * liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
2780
2626
  * console.log('parameters', parameter);
2781
2627
  * });
2782
2628
  *```
2783
- *```js
2784
- * spotterEmbed.trigger(HostEvent.GetParameters, {
2785
- * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2786
- * }).then((parameter) => {
2787
- * console.log('parameters', parameter);
2788
- * });
2789
- *```
2790
2629
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl, 10.1.0.sw
2791
2630
  */
2792
2631
  HostEvent["GetParameters"] = "GetParameters";
@@ -2818,7 +2657,7 @@
2818
2657
  * @param - optional attributes to set Answer properties.
2819
2658
  * `name` - Name string for the Answer.
2820
2659
  * `description` - Description text for the Answer.
2821
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2660
+ *
2822
2661
  * @example
2823
2662
  * ```js
2824
2663
  * const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
@@ -2826,14 +2665,6 @@
2826
2665
  * description: "Total sales by states in MidWest"
2827
2666
  * });
2828
2667
  * ```
2829
- * @example
2830
- * ```js
2831
- * const saveAnswerResponse = await spotterEmbed.trigger(HostEvent.SaveAnswer, {
2832
- * vizId: '730496d6-6903-4601-937e-2c691821af3c',
2833
- * name: "Sales by states",
2834
- * description: "Total sales by states in MidWest"
2835
- * });
2836
- * ```
2837
2668
  * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2838
2669
  */
2839
2670
  HostEvent["SaveAnswer"] = "saveAnswer";
@@ -2862,70 +2693,6 @@
2862
2693
  * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
2863
2694
  */
2864
2695
  HostEvent["TransformTableVizData"] = "TransformTableVizData";
2865
- /**
2866
- * Triggers a search operation with the search tokens specified in
2867
- * the search query string in spotter embed.
2868
- * @param - `query`: Text string in Natural Language format
2869
- * @param - `executeSearch`: Boolean to execute search and update search query
2870
- * @example
2871
- * ```js
2872
- * spotterEmbed.trigger(HostEvent.SpotterSearch, {
2873
- * query: 'revenue per year',
2874
- * executeSearch: true,
2875
- * })
2876
- * ```
2877
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2878
- */
2879
- HostEvent["SpotterSearch"] = "SpotterSearch";
2880
- /**
2881
- * Edits the last prompt in spotter embed.
2882
- * @param - `query`: Text string
2883
- * @example
2884
- * ```js
2885
- * spotterEmbed.trigger(HostEvent.EditLastPrompt, "revenue per year");
2886
- * ```
2887
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2888
- */
2889
- HostEvent["EditLastPrompt"] = "EditLastPrompt";
2890
- /**
2891
- * Opens the Worksheet preview modal in Spotter Embed.
2892
- * @example
2893
- * ```js
2894
- * spotterEmbed.trigger(HostEvent.PreviewSpotterData);
2895
- * ```
2896
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2897
- */
2898
- HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
2899
- /**
2900
- * Resets the Spotter Embed Conversation.
2901
- * @example
2902
- * ```js
2903
- * spotterEmbed.trigger(HostEvent.ResetSpotterConversation);
2904
- * ```
2905
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2906
- */
2907
- HostEvent["ResetSpotterConversation"] = "ResetSpotterConversation";
2908
- /**
2909
- * Deletes the last prompt in spotter embed.
2910
- * @example
2911
- * ```js
2912
- * spotterEmbed.trigger(HostEvent.DeleteLastPrompt);
2913
- * ```
2914
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2915
- */
2916
- HostEvent["DeleteLastPrompt"] = "DeleteLastPrompt";
2917
- /**
2918
- * Toggle the visualization to chart or table view.
2919
- * @param - `vizId ` refers to the answer id in spotter Embed, it is required in spotter Embed.
2920
- * @example
2921
- * ```js
2922
- * spotterEmbed.trigger(HostEvent.AnswerChartSwitcher, {
2923
- * vizId:'b535c760-8bbe-4e6f-bb26-af56b4129a1e'
2924
- * });
2925
- *```
2926
- * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
2927
- */
2928
- HostEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
2929
2696
  /**
2930
2697
  * @hidden
2931
2698
  * Trigger exit from presentation mode when user exits fullscreen.
@@ -2949,17 +2716,6 @@
2949
2716
  * @hidden
2950
2717
  */
2951
2718
  HostEvent["VisibleEmbedCoordinates"] = "visibleEmbedCoordinates";
2952
- /**
2953
- * Trigger the *Ask Spotter* action for visualizations
2954
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2955
- * @example
2956
- * ```js
2957
- * spotterEmbed.trigger(HostEvent.AskSpotter,
2958
- * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
2959
- * ```
2960
- * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
2961
- */
2962
- HostEvent["AskSpotter"] = "AskSpotter";
2963
2719
  })(exports.HostEvent || (exports.HostEvent = {}));
2964
2720
  /**
2965
2721
  * The different visual modes that the data sources panel within
@@ -15823,7 +15579,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15823
15579
  return e;
15824
15580
  }
15825
15581
 
15826
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.40.0";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};
15582
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.39.2-alpha.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};
15827
15583
 
15828
15584
  /**
15829
15585
  * Reloads the ThoughtSpot iframe.
@@ -17985,7 +17741,7 @@ query GetEurekaVizSnapshots(
17985
17741
  return;
17986
17742
  }
17987
17743
  const previewStyles = `
17988
- <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">
17744
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@32.0.2/styles/ag-grid.min.css">
17989
17745
  <style id="ts-preview-style">
17990
17746
  .ts-viz-preview-loader {
17991
17747
  position: absolute;
@@ -18711,11 +18467,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18711
18467
  return {
18712
18468
  convId: this.conversationId,
18713
18469
  messageId: responses[0].msgId,
18714
- data: {
18715
- ...data.asstRespData.nlsAnsData.sageQuerySuggestions[0],
18716
- convId: this.conversationId,
18717
- messageId: responses[0].msgId,
18718
- },
18470
+ data: data.asstRespData.nlsAnsData.sageQuerySuggestions[0],
18719
18471
  error: null,
18720
18472
  };
18721
18473
  }
@@ -18741,7 +18493,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18741
18493
  }
18742
18494
  getIframeSrc() {
18743
18495
  var _a;
18744
- const { sessionId, genNo, acSessionId, acGenNo, convId, messageId, } = this.viewConfig;
18496
+ const { sessionId, genNo, acSessionId, acGenNo, } = this.viewConfig;
18745
18497
  const path = 'conv-assist-answer';
18746
18498
  const queryParams = this.getBaseQueryParams();
18747
18499
  queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
@@ -18756,8 +18508,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18756
18508
  genNo,
18757
18509
  acSessionId,
18758
18510
  acGenNo,
18759
- convId,
18760
- messageId,
18761
18511
  });
18762
18512
  return `${this.getEmbedBasePath(query)}/embed/${path}${tsPostHashParams}`;
18763
18513
  }
@@ -18801,8 +18551,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18801
18551
  const container = document.createElement('div');
18802
18552
  const embed = new ConversationMessage$1(container, {
18803
18553
  ...this.viewConfig,
18804
- convId: data.convId,
18805
- messageId: data.messageId,
18806
18554
  sessionId: data.sessionId,
18807
18555
  genNo: data.genNo,
18808
18556
  acSessionId: data.stateKey.transactionId,
@@ -18823,8 +18571,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
18823
18571
  return { error };
18824
18572
  }
18825
18573
  return { data: {
18826
- convId: data.convId,
18827
- messageId: data.messageId,
18828
18574
  sessionId: data.sessionId,
18829
18575
  genNo: data.genNo,
18830
18576
  acSessionId: data.stateKey.transactionId,