@thoughtspot/visual-embed-sdk 1.23.0 → 1.23.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 (60) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +1 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +1 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/base.d.ts +8 -0
  7. package/cjs/src/embed/base.d.ts.map +1 -1
  8. package/cjs/src/embed/base.js +8 -0
  9. package/cjs/src/embed/base.js.map +1 -1
  10. package/cjs/src/embed/sage.d.ts +14 -0
  11. package/cjs/src/embed/sage.d.ts.map +1 -1
  12. package/cjs/src/embed/sage.js +12 -3
  13. package/cjs/src/embed/sage.js.map +1 -1
  14. package/cjs/src/embed/sage.spec.js +1 -1
  15. package/cjs/src/embed/sage.spec.js.map +1 -1
  16. package/cjs/src/types.d.ts +364 -247
  17. package/cjs/src/types.d.ts.map +1 -1
  18. package/cjs/src/types.js +342 -241
  19. package/cjs/src/types.js.map +1 -1
  20. package/dist/src/embed/app.d.ts +1 -1
  21. package/dist/src/embed/app.d.ts.map +1 -1
  22. package/dist/src/embed/base.d.ts +8 -0
  23. package/dist/src/embed/base.d.ts.map +1 -1
  24. package/dist/src/embed/sage.d.ts +14 -0
  25. package/dist/src/embed/sage.d.ts.map +1 -1
  26. package/dist/src/types.d.ts +364 -247
  27. package/dist/src/types.d.ts.map +1 -1
  28. package/dist/tsembed-react.es.js +356 -246
  29. package/dist/tsembed-react.js +355 -245
  30. package/dist/tsembed.es.js +364 -246
  31. package/dist/tsembed.js +363 -245
  32. package/dist/visual-embed-sdk-react-full.d.ts +387 -248
  33. package/dist/visual-embed-sdk-react.d.ts +387 -248
  34. package/dist/visual-embed-sdk.d.ts +387 -248
  35. package/lib/package.json +1 -1
  36. package/lib/src/embed/app.d.ts +1 -1
  37. package/lib/src/embed/app.d.ts.map +1 -1
  38. package/lib/src/embed/app.js +1 -1
  39. package/lib/src/embed/app.js.map +1 -1
  40. package/lib/src/embed/base.d.ts +8 -0
  41. package/lib/src/embed/base.d.ts.map +1 -1
  42. package/lib/src/embed/base.js +8 -0
  43. package/lib/src/embed/base.js.map +1 -1
  44. package/lib/src/embed/sage.d.ts +14 -0
  45. package/lib/src/embed/sage.d.ts.map +1 -1
  46. package/lib/src/embed/sage.js +12 -3
  47. package/lib/src/embed/sage.js.map +1 -1
  48. package/lib/src/embed/sage.spec.js +1 -1
  49. package/lib/src/embed/sage.spec.js.map +1 -1
  50. package/lib/src/types.d.ts +364 -247
  51. package/lib/src/types.d.ts.map +1 -1
  52. package/lib/src/types.js +342 -241
  53. package/lib/src/types.js.map +1 -1
  54. package/lib/src/visual-embed-sdk.d.ts +387 -248
  55. package/package.json +1 -1
  56. package/src/embed/app.ts +1 -1
  57. package/src/embed/base.ts +8 -0
  58. package/src/embed/sage.spec.ts +1 -1
  59. package/src/embed/sage.ts +24 -2
  60. package/src/types.ts +351 -247
@@ -988,12 +988,25 @@
988
988
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
989
989
  */
990
990
  EmbedEvent["FilterChanged"] = "filterChanged";
991
+ /**
992
+ * Emitted when a user click on Go button in Sage Embed
993
+ *
994
+ * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
995
+ */
996
+ EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
997
+ /**
998
+ * Emitten when a user select data source in Sage Embed
999
+ *
1000
+ * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
1001
+ */
1002
+ EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
991
1003
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
992
1004
  (function (HostEvent) {
993
1005
  /**
994
1006
  * Triggers a search query in AppEmbed and SearchEmbed
995
1007
  * deployments.
996
1008
  * Includes the following properties:
1009
+ *
997
1010
  * @param - dataSourceIds - The data source GUID to Search on
998
1011
  * - Although an array, only a single source
999
1012
  * is supported.
@@ -1012,6 +1025,7 @@
1012
1025
  /**
1013
1026
  * Triggers a drill on certain points of the specified column
1014
1027
  * Includes the following properties:
1028
+ *
1015
1029
  * @param - points - an object containing selectedPoints/clickedPoints
1016
1030
  * to drill to. For example, { selectedPoints: []}
1017
1031
  * @param - columnGuid - Optional. GUID of the column to drill
@@ -1076,18 +1090,19 @@
1076
1090
  */
1077
1091
  HostEvent["SetActiveTab"] = "SetActiveTab";
1078
1092
  /**
1079
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
1080
- * runtime filters passed here are appended to the existing runtime
1081
- * filters.
1082
- * Pass an array of runtime filters with the following attributes:
1083
- * `columnName`
1084
- * _String_. The name of the column to filter on.
1085
- * `operator`
1086
- * Runtime filter operator to apply. For information,
1087
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
1088
- * `values`
1089
- * List of operands. Some operators such as EQ, LE allow a single value, whereas operators
1090
- * such as BW and IN accept multiple operands.
1093
+ * Updates runtime filters applied on a Saved Answer or Liveboard. The
1094
+ * runtime filters passed here are appended to the existing runtime
1095
+ * filters.
1096
+ * Pass an array of runtime filters with the following attributes:
1097
+ * `columnName`
1098
+ * _String_. The name of the column to filter on.
1099
+ * `operator`
1100
+ * Runtime filter operator to apply. For information,
1101
+ * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
1102
+ * `values`
1103
+ * List of operands. Some operators such as EQ, LE allow a single value, whereas
1104
+ * operators such as BW and IN accept multiple operands.
1105
+ *
1091
1106
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1092
1107
  * @example
1093
1108
  * ```js
@@ -1103,6 +1118,7 @@
1103
1118
  /**
1104
1119
  * Navigate to a specific page in the embedded application without reloading the page.
1105
1120
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
1121
+ *
1106
1122
  * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
1107
1123
  * @example
1108
1124
  * ```js
@@ -1426,6 +1442,7 @@
1426
1442
  /**
1427
1443
  * Triggers the **SpotIQ analyze** action on visualization
1428
1444
  * or search.
1445
+ *
1429
1446
  * @param - Liveboard embed takes `vizId` as a
1430
1447
  * key. Can be left undefined when embedding Search or
1431
1448
  * visualization.
@@ -1465,6 +1482,7 @@
1465
1482
  /**
1466
1483
  * Triggers the **Download** > **PNG** action on
1467
1484
  * charts in the embedded view.
1485
+ *
1468
1486
  * @example
1469
1487
  * ```js
1470
1488
  * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
@@ -1498,6 +1516,7 @@
1498
1516
  /**
1499
1517
  * Triggers the **Download** > **XLSX** action on tables
1500
1518
  * in the embedded view.
1519
+ *
1501
1520
  * @example
1502
1521
  * ```js
1503
1522
  * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
@@ -1529,6 +1548,7 @@
1529
1548
  /**
1530
1549
  * Triggers the **Save** action on a Liveboard or Answer.
1531
1550
  * Saves the changes.
1551
+ *
1532
1552
  * @example
1533
1553
  * ```js
1534
1554
  * liveboardEmbed.trigger(HostEvent.Save)
@@ -1542,6 +1562,7 @@
1542
1562
  /**
1543
1563
  * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
1544
1564
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
1565
+ *
1545
1566
  * @param - an object with `vizId` as a key
1546
1567
  * @example
1547
1568
  * ```js
@@ -1558,6 +1579,7 @@
1558
1579
  * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
1559
1580
  * Sends data from an Answer or Liveboard visualization to third-party apps such
1560
1581
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
1582
+ *
1561
1583
  * @param - an object with vizId as a key
1562
1584
  * @example
1563
1585
  * ```js
@@ -1574,6 +1596,7 @@
1574
1596
  * Triggers the **Manage pipelines** action on an embedded
1575
1597
  * visualization or Answer.
1576
1598
  * Allows users to manage ThoughtSpot Sync pipelines.
1599
+ *
1577
1600
  * @param - an object with `vizId` as a key
1578
1601
  * @example
1579
1602
  * ```js
@@ -1618,7 +1641,7 @@
1618
1641
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
1619
1642
  */
1620
1643
  HostEvent["UpdateFilters"] = "updateFilters";
1621
- /*
1644
+ /**
1622
1645
  * Get Tab for the current Liveboard.
1623
1646
  *
1624
1647
  * @example
@@ -1629,7 +1652,7 @@
1629
1652
  * );
1630
1653
  * })
1631
1654
  * ```
1632
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1655
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1633
1656
  */
1634
1657
  HostEvent["GetTabs"] = "getTabs";
1635
1658
  /**
@@ -1643,7 +1666,7 @@
1643
1666
  * '430496d6-6903-4601-937e-2c691821af3c',
1644
1667
  * 'f547ec54-2a37-4516-a222-2b06719af726'])
1645
1668
  * ```
1646
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1669
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1647
1670
  */
1648
1671
  HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
1649
1672
  /**
@@ -1657,7 +1680,7 @@
1657
1680
  * '630496d6-6903-4601-937e-2c691821af3c',
1658
1681
  * 'i547ec54-2a37-4516-a222-2b06719af726'])
1659
1682
  * ```
1660
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1683
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1661
1684
  */
1662
1685
  HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
1663
1686
  })(exports.HostEvent || (exports.HostEvent = {}));
@@ -1745,11 +1768,15 @@
1745
1768
  Param["HiddenTabs"] = "hideTabs";
1746
1769
  Param["VisibleTabs"] = "visibleTabs";
1747
1770
  Param["HideTabPanel"] = "hideTabPanel";
1771
+ Param["HideSampleQuestions"] = "hideSampleQuestions";
1772
+ Param["WorksheetId"] = "worksheetId";
1773
+ Param["Query"] = "query,";
1748
1774
  })(Param || (Param = {}));
1749
1775
  (function (Action) {
1750
1776
  /**
1751
1777
  * The **Save** action on an Answer or Liveboard.
1752
1778
  * Allows users to save the changes.
1779
+ *
1753
1780
  * @example
1754
1781
  * ```js
1755
1782
  * disabledActions: [Action.SaveAsView]
@@ -1765,136 +1792,146 @@
1765
1792
  */
1766
1793
  Action["SaveUntitled"] = "saveUntitled";
1767
1794
  /**
1768
- * The **Save as View** action on the Answer
1769
- * page. Saves an Answer as a View object.
1770
- *
1771
- * @example
1772
- * ```js
1773
- * disabledActions: [Action.SaveAsView]
1774
- * ```
1775
- */
1795
+ * The **Save as View** action on the Answer
1796
+ * page. Saves an Answer as a View object.
1797
+ *
1798
+ * @example
1799
+ * ```js
1800
+ * disabledActions: [Action.SaveAsView]
1801
+ * ```
1802
+ */
1776
1803
  Action["SaveAsView"] = "saveAsView";
1777
1804
  /**
1778
- * The **Make a copy** action on a Liveboard or Answer
1779
- * page.
1780
- * Creates a copy of the Liveboard, visualization,
1781
- * or Answer.
1782
- *
1783
- * @example
1784
- * ```js
1785
- * disabledActions: [Action.MakeACopy]
1786
- * ```
1787
- */
1805
+ * The **Make a copy** action on a Liveboard or Answer
1806
+ * page.
1807
+ * Creates a copy of the Liveboard, visualization,
1808
+ * or Answer.
1809
+ *
1810
+ * @example
1811
+ * ```js
1812
+ * disabledActions: [Action.MakeACopy]
1813
+ * ```
1814
+ */
1788
1815
  Action["MakeACopy"] = "makeACopy";
1789
1816
  /**
1790
- * The **Copy and Edit** action on a Liveboard.
1791
- * This action is now replaced with `Action.MakeACopy`.
1792
- *
1793
- * @example
1794
- * ```js
1795
- * disabledActions: [Action.EditACopy]
1796
- * ```
1797
- */
1817
+ * The **Copy and Edit** action on a Liveboard.
1818
+ * This action is now replaced with `Action.MakeACopy`.
1819
+ *
1820
+ * @example
1821
+ * ```js
1822
+ * disabledActions: [Action.EditACopy]
1823
+ * ```
1824
+ */
1798
1825
  Action["EditACopy"] = "editACopy";
1799
1826
  /**
1800
- * The **Copy link** menu action on a Liveboard visualization.
1801
- * Copies the visualization URL
1802
- * @example
1803
- * ```js
1804
- * disabledActions: [Action.CopyLink]
1805
- * ```
1806
- */
1827
+ * The **Copy link** menu action on a Liveboard visualization.
1828
+ * Copies the visualization URL
1829
+ *
1830
+ * @example
1831
+ * ```js
1832
+ * disabledActions: [Action.CopyLink]
1833
+ * ```
1834
+ */
1807
1835
  Action["CopyLink"] = "embedDocument";
1808
1836
  /**
1809
1837
  * @hidden
1810
1838
  */
1811
1839
  Action["ResetLayout"] = "resetLayout";
1812
1840
  /**
1813
- * The **Schedule** menu action on a Liveboard.
1814
- * Allows scheduling a Liveboard notification.
1815
- * @example
1816
- * ```js
1817
- * disabledActions: [Action.Schedule]
1818
- * ```
1819
- */
1841
+ * The **Schedule** menu action on a Liveboard.
1842
+ * Allows scheduling a Liveboard notification.
1843
+ *
1844
+ * @example
1845
+ * ```js
1846
+ * disabledActions: [Action.Schedule]
1847
+ * ```
1848
+ */
1820
1849
  Action["Schedule"] = "subscription";
1821
1850
  /**
1822
- * The **Manage schedules** menu action on a Liveboard.
1823
- * Allows users to manage scheduled Liveboard jobs.
1824
- * @example
1825
- * ```js
1826
- * disabledActions: [Action.SchedulesList]
1827
- * ```
1828
- */
1851
+ * The **Manage schedules** menu action on a Liveboard.
1852
+ * Allows users to manage scheduled Liveboard jobs.
1853
+ *
1854
+ * @example
1855
+ * ```js
1856
+ * disabledActions: [Action.SchedulesList]
1857
+ * ```
1858
+ */
1829
1859
  Action["SchedulesList"] = "schedule-list";
1830
1860
  /**
1831
- * The **Share** action on a Liveboard, Answer, or Worksheet.
1832
- * Allows users to share an object with other users and groups.
1833
- * @example
1834
- * ```js
1835
- * disabledActions: [Action.Share]
1836
- * ```
1837
- */
1861
+ * The **Share** action on a Liveboard, Answer, or Worksheet.
1862
+ * Allows users to share an object with other users and groups.
1863
+ *
1864
+ * @example
1865
+ * ```js
1866
+ * disabledActions: [Action.Share]
1867
+ * ```
1868
+ */
1838
1869
  Action["Share"] = "share";
1839
1870
  /**
1840
- * The **Add filter** action on a Liveboard and Search page.
1841
- * Allows adding filters to Answers and visualizations on a Liveboard.
1842
- * @example
1843
- * ```js
1844
- * disabledActions: [Action.AddFilter]
1845
- * ```
1846
- */
1871
+ * The **Add filter** action on a Liveboard and Search page.
1872
+ * Allows adding filters to Answers and visualizations on a Liveboard.
1873
+ *
1874
+ * @example
1875
+ * ```js
1876
+ * disabledActions: [Action.AddFilter]
1877
+ * ```
1878
+ */
1847
1879
  Action["AddFilter"] = "addFilter";
1848
1880
  /**
1849
- * Filter configuration options on a Liveboard and Search page.
1850
- * Allows configuring filter options when adding filters to a
1851
- * Liveboard or Answer.
1852
- * @example
1853
- * ```js
1854
- * disabledActions: [Action.ConfigureFilter]
1855
- * ```
1856
- */
1881
+ * Filter configuration options on a Liveboard and Search page.
1882
+ * Allows configuring filter options when adding filters to a
1883
+ * Liveboard or Answer.
1884
+ *
1885
+ * @example
1886
+ * ```js
1887
+ * disabledActions: [Action.ConfigureFilter]
1888
+ * ```
1889
+ */
1857
1890
  Action["ConfigureFilter"] = "configureFilter";
1858
1891
  Action["CollapseDataSources"] = "collapseDataSources";
1859
1892
  /**
1860
- * The **Choose sources** button on Search page.
1861
- * Allows selecting data sources for search queries.
1862
- * @example
1863
- * ```js
1864
- * disabledActions: [Action.ChooseDataSources]
1865
- * ```
1866
- */
1893
+ * The **Choose sources** button on Search page.
1894
+ * Allows selecting data sources for search queries.
1895
+ *
1896
+ * @example
1897
+ * ```js
1898
+ * disabledActions: [Action.ChooseDataSources]
1899
+ * ```
1900
+ */
1867
1901
  Action["ChooseDataSources"] = "chooseDataSources";
1868
1902
  /**
1869
- * The **Create formula** action on a Search or Answer page.
1870
- * Allows adding formulas to an Answer.
1871
- * @example
1872
- * ```js
1873
- * disabledActions: [Action.AddFormula]
1874
- * ```
1875
- */
1903
+ * The **Create formula** action on a Search or Answer page.
1904
+ * Allows adding formulas to an Answer.
1905
+ *
1906
+ * @example
1907
+ * ```js
1908
+ * disabledActions: [Action.AddFormula]
1909
+ * ```
1910
+ */
1876
1911
  Action["AddFormula"] = "addFormula";
1877
1912
  /**
1878
- * The **Add parameter** action on a Liveboard or Answer.
1879
- * Allows adding Parameters to a Liveboard or Answer.
1880
- * @example
1881
- * ```js
1882
- * disabledActions: [Action.AddParameter]
1883
- * ```
1884
- */
1913
+ * The **Add parameter** action on a Liveboard or Answer.
1914
+ * Allows adding Parameters to a Liveboard or Answer.
1915
+ *
1916
+ * @example
1917
+ * ```js
1918
+ * disabledActions: [Action.AddParameter]
1919
+ * ```
1920
+ */
1885
1921
  Action["AddParameter"] = "addParameter";
1886
1922
  /**
1887
1923
  * @hidden
1888
1924
  */
1889
1925
  Action["SearchOnTop"] = "searchOnTop";
1890
1926
  /**
1891
- * The **SpotIQ analyze** menu action on a visualization or
1892
- * Answer page.
1893
- * @example
1894
- * ```js
1895
- * disabledActions: [Action.SpotIQAnalyze]
1896
- * ```
1897
- */
1927
+ * The **SpotIQ analyze** menu action on a visualization or
1928
+ * Answer page.
1929
+ *
1930
+ * @example
1931
+ * ```js
1932
+ * disabledActions: [Action.SpotIQAnalyze]
1933
+ * ```
1934
+ */
1898
1935
  Action["SpotIQAnalyze"] = "spotIQAnalyze";
1899
1936
  /**
1900
1937
  * @hidden
@@ -1910,89 +1947,98 @@
1910
1947
  */
1911
1948
  Action["ReplaySearch"] = "replaySearch";
1912
1949
  /**
1913
- * The **Show underlying data** menu action on a visualization or
1914
- * Answer page.
1915
- * @example
1916
- * ```js
1917
- * disabledActions: [Action.ShowUnderlyingData]
1918
- * ```
1919
- */
1950
+ * The **Show underlying data** menu action on a visualization or
1951
+ * Answer page.
1952
+ *
1953
+ * @example
1954
+ * ```js
1955
+ * disabledActions: [Action.ShowUnderlyingData]
1956
+ * ```
1957
+ */
1920
1958
  Action["ShowUnderlyingData"] = "showUnderlyingData";
1921
1959
  /**
1922
- * The **Download** menu action on Liveboard visualizations
1923
- * and Answers.
1924
- * Allows downloading a visualization or Answer.
1925
- * @example
1926
- * ```js
1927
- * disabledActions: [Action.DownloadAsPng]
1928
- * ```
1929
- */
1960
+ * The **Download** menu action on Liveboard visualizations
1961
+ * and Answers.
1962
+ * Allows downloading a visualization or Answer.
1963
+ *
1964
+ * @example
1965
+ * ```js
1966
+ * disabledActions: [Action.DownloadAsPng]
1967
+ * ```
1968
+ */
1930
1969
  Action["Download"] = "download";
1931
1970
  /**
1932
- * The **Download** > **PNG** menu action for charts on a Liveboard
1933
- * or Answer page.
1934
- * Downloads a visualization or Answer as a PNG file.
1935
- * @example
1936
- * ```js
1937
- * disabledActions: [Action.DownloadAsPng]
1938
- * ```
1939
- */
1971
+ * The **Download** > **PNG** menu action for charts on a Liveboard
1972
+ * or Answer page.
1973
+ * Downloads a visualization or Answer as a PNG file.
1974
+ *
1975
+ * @example
1976
+ * ```js
1977
+ * disabledActions: [Action.DownloadAsPng]
1978
+ * ```
1979
+ */
1940
1980
  Action["DownloadAsPng"] = "downloadAsPng";
1941
1981
  /**
1942
- * The **Download** > **PDF** menu action on a Liveboard.
1943
- * Downloads a visualization or Answer as a PDF file.
1944
- * @example
1945
- * ```js
1946
- * disabledActions: [Action.DownloadAsPdf]
1947
- * ```
1948
- */
1982
+ * The **Download** > **PDF** menu action on a Liveboard.
1983
+ * Downloads a visualization or Answer as a PDF file.
1984
+ *
1985
+ * @example
1986
+ * ```js
1987
+ * disabledActions: [Action.DownloadAsPdf]
1988
+ * ```
1989
+ */
1949
1990
  Action["DownloadAsPdf"] = "downloadAsPdf";
1950
1991
  /**
1951
- * The **Download** > **CSV** menu action for tables on a Liveboard
1952
- * or Answer page.
1953
- * Downloads a visualization or Answer in the XLSX format.
1954
- * @example
1955
- * ```js
1956
- * disabledActions: [Action.DownloadAsCsv]
1957
- * ```
1958
- */
1992
+ * The **Download** > **CSV** menu action for tables on a Liveboard
1993
+ * or Answer page.
1994
+ * Downloads a visualization or Answer in the XLSX format.
1995
+ *
1996
+ * @example
1997
+ * ```js
1998
+ * disabledActions: [Action.DownloadAsCsv]
1999
+ * ```
2000
+ */
1959
2001
  Action["DownloadAsCsv"] = "downloadAsCSV";
1960
2002
  /**
1961
- * The **Download** > **XLSX** menu action for tables on a Liveboard
1962
- * or Answer page.
1963
- * Downloads a visualization or Answer in the XLSX format.
1964
- * @example
1965
- * ```js
1966
- * disabledActions: [Action.DownloadAsXlsx]
1967
- * ```
1968
- */
2003
+ * The **Download** > **XLSX** menu action for tables on a Liveboard
2004
+ * or Answer page.
2005
+ * Downloads a visualization or Answer in the XLSX format.
2006
+ *
2007
+ * @example
2008
+ * ```js
2009
+ * disabledActions: [Action.DownloadAsXlsx]
2010
+ * ```
2011
+ */
1969
2012
  Action["DownloadAsXlsx"] = "downloadAsXLSX";
1970
2013
  /**
1971
2014
  * @hidden
1972
2015
  */
1973
2016
  Action["DownloadTrace"] = "downloadTrace";
1974
2017
  /**
1975
- * The **Export TML** menu action on Liveboard, Answers
1976
- * Worksheets and Data Connections page.
1977
- * Exports an object as a TML file.
1978
- * @example
1979
- * ```js
1980
- * disabledActions: [Action.ExportTML]
1981
- * ```
1982
- */
2018
+ * The **Export TML** menu action on Liveboard, Answers
2019
+ * Worksheets and Data Connections page.
2020
+ * Exports an object as a TML file.
2021
+ *
2022
+ * @example
2023
+ * ```js
2024
+ * disabledActions: [Action.ExportTML]
2025
+ * ```
2026
+ */
1983
2027
  Action["ExportTML"] = "exportTSL";
1984
2028
  /**
1985
- * The **Import TML** menu action for Liveboards and Answers.
1986
- * Imports TML representation of ThoughtSpot objects.
1987
- * @example
1988
- * ```js
1989
- * disabledActions: [Action.ImportTML]
1990
- * ```
1991
- */
2029
+ * The **Import TML** menu action for Liveboards and Answers.
2030
+ * Imports TML representation of ThoughtSpot objects.
2031
+ *
2032
+ * @example
2033
+ * ```js
2034
+ * disabledActions: [Action.ImportTML]
2035
+ * ```
2036
+ */
1992
2037
  Action["ImportTML"] = "importTSL";
1993
2038
  /**
1994
2039
  * The **Update TML** menu action for Liveboards and Answers.
1995
2040
  * Update TML representation of ThoughtSpot objects.
2041
+ *
1996
2042
  * @example
1997
2043
  * ```js
1998
2044
  * disabledActions: [Action.UpdateTML]
@@ -2002,6 +2048,7 @@
2002
2048
  /**
2003
2049
  * The **Edit TML** menu action for Liveboards and Answers.
2004
2050
  * Opens the TML editor.
2051
+ *
2005
2052
  * @example
2006
2053
  * ```js
2007
2054
  * disabledActions: [Action.EditTML]
@@ -2009,50 +2056,55 @@
2009
2056
  */
2010
2057
  Action["EditTML"] = "editTSL";
2011
2058
  /**
2012
- * The **Present** menu action for Liveboards and Answers.
2013
- * Allows presenting a Liveboard or visualization in
2014
- * slideshow mode.
2015
- * @example
2016
- * ```js
2017
- * disabledActions: [Action.Present]
2018
- * ```
2019
- */
2059
+ * The **Present** menu action for Liveboards and Answers.
2060
+ * Allows presenting a Liveboard or visualization in
2061
+ * slideshow mode.
2062
+ *
2063
+ * @example
2064
+ * ```js
2065
+ * disabledActions: [Action.Present]
2066
+ * ```
2067
+ */
2020
2068
  Action["Present"] = "present";
2021
2069
  /**
2022
- * The tile resize options in the visualization menu.
2023
- * Allows switching between different preset layouts.
2024
- * @example
2025
- * ```js
2026
- * disabledActions: [Action.ToggleSize]
2027
- * ```
2028
- */
2070
+ * The tile resize options in the visualization menu.
2071
+ * Allows switching between different preset layouts.
2072
+ *
2073
+ * @example
2074
+ * ```js
2075
+ * disabledActions: [Action.ToggleSize]
2076
+ * ```
2077
+ */
2029
2078
  Action["ToggleSize"] = "toggleSize";
2030
2079
  /**
2031
- * The *Edit* action on the Liveboard page and in the
2032
- * visualization menu.
2033
- * Opens a Liveboard or visualization in edit mode.
2034
- * @example
2035
- * ```js
2036
- * disabledActions: [Action.Edit]
2037
- * ```
2038
- */
2080
+ * The *Edit* action on the Liveboard page and in the
2081
+ * visualization menu.
2082
+ * Opens a Liveboard or visualization in edit mode.
2083
+ *
2084
+ * @example
2085
+ * ```js
2086
+ * disabledActions: [Action.Edit]
2087
+ * ```
2088
+ */
2039
2089
  Action["Edit"] = "edit";
2040
2090
  /**
2041
- * The text edit option for Liveboard and visualization titles.
2042
- * @example
2043
- * ```js
2044
- * disabledActions: [Action.EditTitle]
2045
- * ```
2046
- */
2091
+ * The text edit option for Liveboard and visualization titles.
2092
+ *
2093
+ * @example
2094
+ * ```js
2095
+ * disabledActions: [Action.EditTitle]
2096
+ * ```
2097
+ */
2047
2098
  Action["EditTitle"] = "editTitle";
2048
2099
  /**
2049
- * The **Delete** menu action on Liveboards and visualizations.
2050
- * Deletes a Liveboard or a visualization from a Liveboard.
2051
- * @example
2052
- * ```js
2053
- * disabledActions: [Action.Remove]
2054
- * ```
2055
- */
2100
+ * The **Delete** menu action on Liveboards and visualizations.
2101
+ * Deletes a Liveboard or a visualization from a Liveboard.
2102
+ *
2103
+ * @example
2104
+ * ```js
2105
+ * disabledActions: [Action.Remove]
2106
+ * ```
2107
+ */
2056
2108
  Action["Remove"] = "delete";
2057
2109
  /**
2058
2110
  * @hidden
@@ -2075,15 +2127,16 @@
2075
2127
  */
2076
2128
  Action["PinboardInfo"] = "pinboardInfo";
2077
2129
  /**
2078
- * The **Show Liveboard details** menu action on a Liveboard.
2079
- * Displays details such as the name, description, and
2080
- * author of the Liveboard, and timestamp of Liveboard creation
2081
- * and update.
2082
- * @example
2083
- * ```js
2084
- * disabledActions: [Action.LiveboardInfo]
2085
- * ```
2086
- */
2130
+ * The **Show Liveboard details** menu action on a Liveboard.
2131
+ * Displays details such as the name, description, and
2132
+ * author of the Liveboard, and timestamp of Liveboard creation
2133
+ * and update.
2134
+ *
2135
+ * @example
2136
+ * ```js
2137
+ * disabledActions: [Action.LiveboardInfo]
2138
+ * ```
2139
+ */
2087
2140
  Action["LiveboardInfo"] = "pinboardInfo";
2088
2141
  /**
2089
2142
  * @hidden
@@ -2094,13 +2147,14 @@
2094
2147
  */
2095
2148
  Action["DownloadEmbraceQueries"] = "downloadEmbraceQueries";
2096
2149
  /**
2097
- * The **Pin** menu action on an Answer or
2098
- * Search results page.
2099
- * @example
2100
- * ```js
2101
- * disabledActions: [Action.Pin]
2102
- * ```
2103
- */
2150
+ * The **Pin** menu action on an Answer or
2151
+ * Search results page.
2152
+ *
2153
+ * @example
2154
+ * ```js
2155
+ * disabledActions: [Action.Pin]
2156
+ * ```
2157
+ */
2104
2158
  Action["Pin"] = "pin";
2105
2159
  /**
2106
2160
  * @hidden
@@ -2108,6 +2162,7 @@
2108
2162
  Action["AnalysisInfo"] = "analysisInfo";
2109
2163
  /**
2110
2164
  * The **Schedule** menu action on a Liveboard.
2165
+ *
2111
2166
  * @example
2112
2167
  * ```js
2113
2168
  * disabledActions: [Action.Subscription]
@@ -2115,25 +2170,28 @@
2115
2170
  */
2116
2171
  Action["Subscription"] = "subscription";
2117
2172
  /**
2118
- * The **Explore** action on Liveboard visualizations
2119
- * @example
2120
- * ```js
2121
- * disabledActions: [Action.Explore]
2122
- * ```
2123
- */
2173
+ * The **Explore** action on Liveboard visualizations
2174
+ *
2175
+ * @example
2176
+ * ```js
2177
+ * disabledActions: [Action.Explore]
2178
+ * ```
2179
+ */
2124
2180
  Action["Explore"] = "explore";
2125
2181
  /**
2126
- * The action to include data points on a drilled-down Answer
2127
- * or visualization
2128
- * @example
2129
- * ```js
2130
- * disabledActions: [Action.DrillInclude]
2131
- * ```
2132
- */
2182
+ * The action to include data points on a drilled-down Answer
2183
+ * or visualization
2184
+ *
2185
+ * @example
2186
+ * ```js
2187
+ * disabledActions: [Action.DrillInclude]
2188
+ * ```
2189
+ */
2133
2190
  Action["DrillInclude"] = "context-menu-item-include";
2134
2191
  /**
2135
2192
  * The action to exclude data points on a drilled-down Answer
2136
2193
  * or visualization
2194
+ *
2137
2195
  * @example
2138
2196
  * ```js
2139
2197
  * disabledActions: [Action.DrillInclude]
@@ -2144,6 +2202,7 @@
2144
2202
  * The **Copy to clipboard** menu action on tables in an Answer
2145
2203
  * or Liveboard.
2146
2204
  * Copies the selected data point.
2205
+ *
2147
2206
  * @example
2148
2207
  * ```js
2149
2208
  * disabledActions: [Action.CopyToClipboard]
@@ -2161,6 +2220,7 @@
2161
2220
  * The **Drill down** menu action on Answers and Liveboard
2162
2221
  * visualizations.
2163
2222
  * Allows drilling down to a specific data point on a chart or table.
2223
+ *
2164
2224
  * @example
2165
2225
  * ```js
2166
2226
  * disabledActions: [Action.DrillDown]
@@ -2170,6 +2230,7 @@
2170
2230
  /**
2171
2231
  * The request access action on Liveboards.
2172
2232
  * Allows users with view permissions to request edit access to a Liveboard.
2233
+ *
2173
2234
  * @example
2174
2235
  * ```js
2175
2236
  * disabledActions: [Action.RequestAccess]
@@ -2179,6 +2240,7 @@
2179
2240
  /**
2180
2241
  * The **Query visualizer** and **Query SQL** buttons in Query details panel
2181
2242
  * of the Answer page
2243
+ *
2182
2244
  * @example
2183
2245
  * ```js
2184
2246
  * disabledActions: [Action.QueryDetailsButtons]
@@ -2187,6 +2249,7 @@
2187
2249
  Action["QueryDetailsButtons"] = "QueryDetailsButtons";
2188
2250
  /**
2189
2251
  * The **Delete** action for Answers.
2252
+ *
2190
2253
  * @example
2191
2254
  * ```js
2192
2255
  * disabledActions: [Action.AnswerDelete]
@@ -2196,6 +2259,7 @@
2196
2259
  Action["AnswerDelete"] = "onDeleteAnswer";
2197
2260
  /**
2198
2261
  * The Chart switcher icon on Answer and visualization pages.
2262
+ *
2199
2263
  * @example
2200
2264
  * ```js
2201
2265
  * disabledActions: [Action.AnswerChartSwitcher]
@@ -2205,6 +2269,7 @@
2205
2269
  Action["AnswerChartSwitcher"] = "answerChartSwitcher";
2206
2270
  /**
2207
2271
  * Favorites icon (*) on Answers, Liveboard, and Data pages
2272
+ *
2208
2273
  * @example
2209
2274
  * ```js
2210
2275
  * disabledActions: [Action.AddToFavorites]
@@ -2214,6 +2279,7 @@
2214
2279
  Action["AddToFavorites"] = "addToFavorites";
2215
2280
  /**
2216
2281
  * The edit icon on Liveboards (Classic experience).
2282
+ *
2217
2283
  * @example
2218
2284
  * ```js
2219
2285
  * disabledActions: [Action.EditDetails]
@@ -2223,6 +2289,7 @@
2223
2289
  Action["EditDetails"] = "editDetails";
2224
2290
  /**
2225
2291
  * The Create alert action on KPI charts.
2292
+ *
2226
2293
  * @example
2227
2294
  * ```js
2228
2295
  * disabledActions: [Action.CreateMonitor ]
@@ -2241,6 +2308,7 @@
2241
2308
  /**
2242
2309
  * The **Sync to sheets** action on Answers and Liveboard visualizations.
2243
2310
  * Allows sending data to a Google Sheet.
2311
+ *
2244
2312
  * @example
2245
2313
  * ```js
2246
2314
  * disabledActions: [Action.SyncToSheets]
@@ -2252,6 +2320,7 @@
2252
2320
  * The **Sync to other apps** action on Answers and Liveboard visualizations.
2253
2321
  * Allows sending data to third-party apps like Slack, Salesforce,
2254
2322
  * Microsoft Teams, and so on.
2323
+ *
2255
2324
  * @example
2256
2325
  * ```js
2257
2326
  * disabledActions: [Action.SyncToOtherApps]
@@ -2262,6 +2331,7 @@
2262
2331
  /**
2263
2332
  * The **Manage pipelines** action on Answers and Liveboard visualizations.
2264
2333
  * Allows users to manage data sync pipelines to third-party apps.
2334
+ *
2265
2335
  * @example
2266
2336
  * ```js
2267
2337
  * disabledActions: [Action.SyncToOtherApps]
@@ -2272,6 +2342,7 @@
2272
2342
  /**
2273
2343
  * The **Filter** action on Liveboard visualizations.
2274
2344
  * Allows users to apply cross-filters on a Liveboard.
2345
+ *
2275
2346
  * @example
2276
2347
  * ```js
2277
2348
  * disabledActions: [Action.CrossFilter]
@@ -2283,6 +2354,7 @@
2283
2354
  * The **Remove** action that appears when cross filters are applied
2284
2355
  * on a Liveboard.
2285
2356
  * Removes filters applied o a visualization.
2357
+ *
2286
2358
  * @example
2287
2359
  * ```js
2288
2360
  * disabledActions: [Action.RemoveCrossFilter]
@@ -2294,6 +2366,7 @@
2294
2366
  * The **Aggregate** option in the chart axis or the
2295
2367
  * table column customization menu.
2296
2368
  * Provides aggregation options to analyze the data on a chart or table.
2369
+ *
2297
2370
  * @example
2298
2371
  * ```js
2299
2372
  * disabledActions: [Action.AxisMenuAggregate]
@@ -2305,6 +2378,7 @@
2305
2378
  * The **Time bucket** option in the chart axis or table column
2306
2379
  * customization menu.
2307
2380
  * Allows defining time metric for date comparison.
2381
+ *
2308
2382
  * @example
2309
2383
  * ```js
2310
2384
  * disabledActions: [Action.AxisMenuTimeBucket]
@@ -2315,6 +2389,7 @@
2315
2389
  /**
2316
2390
  * The **Filter** action in the chart axis or table column
2317
2391
  * customization menu.
2392
+ *
2318
2393
  * @example
2319
2394
  * ```js
2320
2395
  * disabledActions: [Action.AxisMenuFilter]
@@ -2326,6 +2401,7 @@
2326
2401
  * The **Conditional formatting** action on chart or table.
2327
2402
  * Allows adding rules for conditional formatting of data
2328
2403
  * points on a chart or table.
2404
+ *
2329
2405
  * @example
2330
2406
  * ```js
2331
2407
  * disabledActions: [Action.AxisMenuConditionalFormat]
@@ -2337,6 +2413,7 @@
2337
2413
  * The **Sort** menu action on a table or chart axis
2338
2414
  * Sorts data in ascending or descending order.
2339
2415
  * Allows adding, editing, or removing filters.
2416
+ *
2340
2417
  * @example
2341
2418
  * ```js
2342
2419
  * disabledActions: [Action.AxisMenuConditionalFormat]
@@ -2349,6 +2426,7 @@
2349
2426
  * customization menu.
2350
2427
  * Allows grouping data points if the axes use the same
2351
2428
  * unit of measurement and a similar scale.
2429
+ *
2352
2430
  * @example
2353
2431
  * ```js
2354
2432
  * disabledActions: [Action.AxisMenuGroup]
@@ -2360,6 +2438,7 @@
2360
2438
  * The **Position** option in the axis customization menu.
2361
2439
  * Allows changing the position of the axis to the
2362
2440
  * left or right side of the chart.
2441
+ *
2363
2442
  * @example
2364
2443
  * ```js
2365
2444
  * disabledActions: [Action.AxisMenuPosition]
@@ -2370,6 +2449,7 @@
2370
2449
  /**
2371
2450
  * The **Rename** option in the chart axis or table column customization menu.
2372
2451
  * Renames the axis label on a chart or the column header on a table.
2452
+ *
2373
2453
  * @example
2374
2454
  * ```js
2375
2455
  * disabledActions: [Action.AxisMenuRename]
@@ -2381,6 +2461,7 @@
2381
2461
  * The **Edit** action in the axis customization menu.
2382
2462
  * Allows editing the axis name, position, minimum and maximum values,
2383
2463
  * and format of a column.
2464
+ *
2384
2465
  * @example
2385
2466
  * ```js
2386
2467
  * disabledActions: [Action.AxisMenuEdit]
@@ -2391,6 +2472,7 @@
2391
2472
  /**
2392
2473
  * The **Number format** action to customize the format of
2393
2474
  * the data labels on a chart or table.
2475
+ *
2394
2476
  * @example
2395
2477
  * ```js
2396
2478
  * disabledActions: [Action.AxisMenuNumberFormat]
@@ -2401,6 +2483,7 @@
2401
2483
  /**
2402
2484
  * The **Text wrapping** action on a table.
2403
2485
  * Wraps or clips column text on a table.
2486
+ *
2404
2487
  * @example
2405
2488
  * ```js
2406
2489
  * disabledActions: [Action.AxisMenuTextWrapping]
@@ -2413,6 +2496,7 @@
2413
2496
  * customization menu.
2414
2497
  * Removes the data labels from a chart or the column of a
2415
2498
  * table visualization.
2499
+ *
2416
2500
  * @example
2417
2501
  * ```js
2418
2502
  * disabledActions: [Action.AxisMenuRemove]
@@ -2427,6 +2511,7 @@
2427
2511
  /**
2428
2512
  * The **Rename** menu action on Liveboards and visualizations.
2429
2513
  * Allows renaming a Liveboard or visualization.
2514
+ *
2430
2515
  * @example
2431
2516
  * ```js
2432
2517
  * disabledActions: [Action.RenameModalTitleDescription]
@@ -2443,13 +2528,29 @@
2443
2528
  */
2444
2529
  Action["MarkAsVerified"] = "markAsVerified";
2445
2530
  /**
2446
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
2531
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2447
2532
  */
2448
2533
  Action["AddTab"] = "addTab";
2449
2534
  /**
2450
2535
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
2451
2536
  */
2452
2537
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
2538
+ /**
2539
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2540
+ */
2541
+ Action["ShowSageQuery"] = "showSageQuery";
2542
+ /**
2543
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2544
+ */
2545
+ Action["EditSageAnswer"] = "editSageAnswer";
2546
+ /**
2547
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2548
+ */
2549
+ Action["SageAnswerFeedback"] = "sageAnswerFeedback";
2550
+ /**
2551
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2552
+ */
2553
+ Action["ModifySageAnswer"] = "modifySageAnswer";
2453
2554
  })(exports.Action || (exports.Action = {}));
2454
2555
  // eslint-disable-next-line no-shadow
2455
2556
  var OperationType;
@@ -27253,7 +27354,7 @@
27253
27354
  });
27254
27355
  }
27255
27356
 
27256
- var name="@thoughtspot/visual-embed-sdk";var version="1.23.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/index.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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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","@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/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.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","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,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};
27357
+ var name="@thoughtspot/visual-embed-sdk";var version="1.23.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$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/index.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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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","@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/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.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","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,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};
27257
27358
 
27258
27359
  /**
27259
27360
  * Copyright (c) 2022
@@ -28086,14 +28187,15 @@
28086
28187
  */
28087
28188
  getEmbedParams() {
28088
28189
  var _a;
28089
- const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
28090
- const params = {};
28190
+ const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, } = this.viewConfig;
28191
+ const params = this.getBaseQueryParams();
28091
28192
  params[Param.EmbedApp] = true;
28092
28193
  params[Param.HideEurekaResults] = !showObjectResults;
28093
28194
  params[Param.IsSageEmbed] = true;
28094
28195
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
28095
28196
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
28096
28197
  params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
28198
+ params[Param.HideSampleQuestions] = !hideSampleQuestions;
28097
28199
  params[Param.HideActions] = [
28098
28200
  ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
28099
28201
  ...HiddenActionItemByDefaultForSageEmbed,
@@ -28108,8 +28210,16 @@
28108
28210
  */
28109
28211
  getIFrameSrc() {
28110
28212
  const path = 'eureka';
28213
+ const postHashObj = {};
28111
28214
  const tsPostHashParams = this.getThoughtSpotPostUrlParams();
28112
- return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}`;
28215
+ if (this.viewConfig.searchQuery)
28216
+ postHashObj[Param.Query] = this.viewConfig.searchQuery;
28217
+ if (this.viewConfig.dataSource)
28218
+ postHashObj[Param.WorksheetId] = this.viewConfig.dataSource;
28219
+ let sagePostHashParams = new URLSearchParams(postHashObj).toString();
28220
+ if (sagePostHashParams)
28221
+ sagePostHashParams = `${tsPostHashParams ? '&' : '?'}${sagePostHashParams}`;
28222
+ return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}${sagePostHashParams}`;
28113
28223
  }
28114
28224
  /**
28115
28225
  * Render the embedded ThoughtSpot Sage
@@ -28273,7 +28383,7 @@
28273
28383
  /**
28274
28384
  * SpotIQ listing page
28275
28385
  */
28276
- Page["SpotIQ"] = "spotiq";
28386
+ Page["SpotIQ"] = "insights";
28277
28387
  })(exports.Page || (exports.Page = {}));
28278
28388
  /**
28279
28389
  * Embeds full ThoughtSpot experience in a host application.