@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
@@ -1007,6 +1007,18 @@ var EmbedEvent;
1007
1007
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
1008
1008
  */
1009
1009
  EmbedEvent["FilterChanged"] = "filterChanged";
1010
+ /**
1011
+ * Emitted when a user click on Go button in Sage Embed
1012
+ *
1013
+ * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
1014
+ */
1015
+ EmbedEvent["SageEmbedQuery"] = "sageEmbedQuery";
1016
+ /**
1017
+ * Emitten when a user select data source in Sage Embed
1018
+ *
1019
+ * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
1020
+ */
1021
+ EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1010
1022
  })(EmbedEvent || (EmbedEvent = {}));
1011
1023
  /**
1012
1024
  * Event types that can be triggered by the host application
@@ -1037,6 +1049,7 @@ var HostEvent;
1037
1049
  * Triggers a search query in AppEmbed and SearchEmbed
1038
1050
  * deployments.
1039
1051
  * Includes the following properties:
1052
+ *
1040
1053
  * @param - dataSourceIds - The data source GUID to Search on
1041
1054
  * - Although an array, only a single source
1042
1055
  * is supported.
@@ -1055,6 +1068,7 @@ var HostEvent;
1055
1068
  /**
1056
1069
  * Triggers a drill on certain points of the specified column
1057
1070
  * Includes the following properties:
1071
+ *
1058
1072
  * @param - points - an object containing selectedPoints/clickedPoints
1059
1073
  * to drill to. For example, { selectedPoints: []}
1060
1074
  * @param - columnGuid - Optional. GUID of the column to drill
@@ -1119,18 +1133,19 @@ var HostEvent;
1119
1133
  */
1120
1134
  HostEvent["SetActiveTab"] = "SetActiveTab";
1121
1135
  /**
1122
- * Updates runtime filters applied on a Saved Answer or Liveboard. The
1123
- * runtime filters passed here are appended to the existing runtime
1124
- * filters.
1125
- * Pass an array of runtime filters with the following attributes:
1126
- * `columnName`
1127
- * _String_. The name of the column to filter on.
1128
- * `operator`
1129
- * Runtime filter operator to apply. For information,
1130
- * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
1131
- * `values`
1132
- * List of operands. Some operators such as EQ, LE allow a single value, whereas operators
1133
- * such as BW and IN accept multiple operands.
1136
+ * Updates runtime filters applied on a Saved Answer or Liveboard. The
1137
+ * runtime filters passed here are appended to the existing runtime
1138
+ * filters.
1139
+ * Pass an array of runtime filters with the following attributes:
1140
+ * `columnName`
1141
+ * _String_. The name of the column to filter on.
1142
+ * `operator`
1143
+ * Runtime filter operator to apply. For information,
1144
+ * see [Runtime filter operators](https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator).
1145
+ * `values`
1146
+ * List of operands. Some operators such as EQ, LE allow a single value, whereas
1147
+ * operators such as BW and IN accept multiple operands.
1148
+ *
1134
1149
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1135
1150
  * @example
1136
1151
  * ```js
@@ -1146,6 +1161,7 @@ var HostEvent;
1146
1161
  /**
1147
1162
  * Navigate to a specific page in the embedded application without reloading the page.
1148
1163
  * This is the same as calling `appEmbed.navigateToPage(path, true)`
1164
+ *
1149
1165
  * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
1150
1166
  * @example
1151
1167
  * ```js
@@ -1469,6 +1485,7 @@ var HostEvent;
1469
1485
  /**
1470
1486
  * Triggers the **SpotIQ analyze** action on visualization
1471
1487
  * or search.
1488
+ *
1472
1489
  * @param - Liveboard embed takes `vizId` as a
1473
1490
  * key. Can be left undefined when embedding Search or
1474
1491
  * visualization.
@@ -1508,6 +1525,7 @@ var HostEvent;
1508
1525
  /**
1509
1526
  * Triggers the **Download** > **PNG** action on
1510
1527
  * charts in the embedded view.
1528
+ *
1511
1529
  * @example
1512
1530
  * ```js
1513
1531
  * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
@@ -1541,6 +1559,7 @@ var HostEvent;
1541
1559
  /**
1542
1560
  * Triggers the **Download** > **XLSX** action on tables
1543
1561
  * in the embedded view.
1562
+ *
1544
1563
  * @example
1545
1564
  * ```js
1546
1565
  * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
@@ -1572,6 +1591,7 @@ var HostEvent;
1572
1591
  /**
1573
1592
  * Triggers the **Save** action on a Liveboard or Answer.
1574
1593
  * Saves the changes.
1594
+ *
1575
1595
  * @example
1576
1596
  * ```js
1577
1597
  * liveboardEmbed.trigger(HostEvent.Save)
@@ -1585,6 +1605,7 @@ var HostEvent;
1585
1605
  /**
1586
1606
  * Triggers the **Sync to Sheets** action on an embedded visualization or Answer
1587
1607
  * Sends data from an Answer or Liveboard visualization to a Google sheet.
1608
+ *
1588
1609
  * @param - an object with `vizId` as a key
1589
1610
  * @example
1590
1611
  * ```js
@@ -1601,6 +1622,7 @@ var HostEvent;
1601
1622
  * Triggers the **Sync to Other Apps** action on an embedded visualization or Answer
1602
1623
  * Sends data from an Answer or Liveboard visualization to third-party apps such
1603
1624
  * as Slack, Salesforce, Microsoft Teams, ServiceNow and so on.
1625
+ *
1604
1626
  * @param - an object with vizId as a key
1605
1627
  * @example
1606
1628
  * ```js
@@ -1617,6 +1639,7 @@ var HostEvent;
1617
1639
  * Triggers the **Manage pipelines** action on an embedded
1618
1640
  * visualization or Answer.
1619
1641
  * Allows users to manage ThoughtSpot Sync pipelines.
1642
+ *
1620
1643
  * @param - an object with `vizId` as a key
1621
1644
  * @example
1622
1645
  * ```js
@@ -1661,7 +1684,7 @@ var HostEvent;
1661
1684
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
1662
1685
  */
1663
1686
  HostEvent["UpdateFilters"] = "updateFilters";
1664
- /*
1687
+ /**
1665
1688
  * Get Tab for the current Liveboard.
1666
1689
  *
1667
1690
  * @example
@@ -1672,7 +1695,7 @@ var HostEvent;
1672
1695
  * );
1673
1696
  * })
1674
1697
  * ```
1675
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1698
+ * @version SDK: 1.26.0 | ThoughtSpot: 9.7.0.cl
1676
1699
  */
1677
1700
  HostEvent["GetTabs"] = "getTabs";
1678
1701
  /**
@@ -1686,7 +1709,7 @@ var HostEvent;
1686
1709
  * '430496d6-6903-4601-937e-2c691821af3c',
1687
1710
  * 'f547ec54-2a37-4516-a222-2b06719af726'])
1688
1711
  * ```
1689
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1712
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1690
1713
  */
1691
1714
  HostEvent["SetVisibleTabs"] = "SetPinboardVisibleTabs";
1692
1715
  /**
@@ -1700,7 +1723,7 @@ var HostEvent;
1700
1723
  * '630496d6-6903-4601-937e-2c691821af3c',
1701
1724
  * 'i547ec54-2a37-4516-a222-2b06719af726'])
1702
1725
  * ```
1703
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
1726
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
1704
1727
  */
1705
1728
  HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
1706
1729
  })(HostEvent || (HostEvent = {}));
@@ -1788,6 +1811,9 @@ var Param;
1788
1811
  Param["HiddenTabs"] = "hideTabs";
1789
1812
  Param["VisibleTabs"] = "visibleTabs";
1790
1813
  Param["HideTabPanel"] = "hideTabPanel";
1814
+ Param["HideSampleQuestions"] = "hideSampleQuestions";
1815
+ Param["WorksheetId"] = "worksheetId";
1816
+ Param["Query"] = "query,";
1791
1817
  })(Param || (Param = {}));
1792
1818
  /**
1793
1819
  * ThoughtSpot application pages include actions and menu commands
@@ -1796,6 +1822,7 @@ var Param;
1796
1822
  * specific actions in the embedded view, define the Action
1797
1823
  * enumeration members in the `disabledActions`, `visibleActions`,
1798
1824
  * or `hiddenActions` array.
1825
+ *
1799
1826
  * @example
1800
1827
  * ```js
1801
1828
  * const embed = new LiveboardEmbed('#embed-container', {
@@ -1814,7 +1841,6 @@ var Param;
1814
1841
  * hiddenActions: [Action.Edit, ActionAction.Explore],
1815
1842
  * })
1816
1843
  * ```
1817
-
1818
1844
  */
1819
1845
  // eslint-disable-next-line no-shadow
1820
1846
  var Action;
@@ -1822,6 +1848,7 @@ var Action;
1822
1848
  /**
1823
1849
  * The **Save** action on an Answer or Liveboard.
1824
1850
  * Allows users to save the changes.
1851
+ *
1825
1852
  * @example
1826
1853
  * ```js
1827
1854
  * disabledActions: [Action.SaveAsView]
@@ -1837,136 +1864,146 @@ var Action;
1837
1864
  */
1838
1865
  Action["SaveUntitled"] = "saveUntitled";
1839
1866
  /**
1840
- * The **Save as View** action on the Answer
1841
- * page. Saves an Answer as a View object.
1842
- *
1843
- * @example
1844
- * ```js
1845
- * disabledActions: [Action.SaveAsView]
1846
- * ```
1847
- */
1867
+ * The **Save as View** action on the Answer
1868
+ * page. Saves an Answer as a View object.
1869
+ *
1870
+ * @example
1871
+ * ```js
1872
+ * disabledActions: [Action.SaveAsView]
1873
+ * ```
1874
+ */
1848
1875
  Action["SaveAsView"] = "saveAsView";
1849
1876
  /**
1850
- * The **Make a copy** action on a Liveboard or Answer
1851
- * page.
1852
- * Creates a copy of the Liveboard, visualization,
1853
- * or Answer.
1854
- *
1855
- * @example
1856
- * ```js
1857
- * disabledActions: [Action.MakeACopy]
1858
- * ```
1859
- */
1877
+ * The **Make a copy** action on a Liveboard or Answer
1878
+ * page.
1879
+ * Creates a copy of the Liveboard, visualization,
1880
+ * or Answer.
1881
+ *
1882
+ * @example
1883
+ * ```js
1884
+ * disabledActions: [Action.MakeACopy]
1885
+ * ```
1886
+ */
1860
1887
  Action["MakeACopy"] = "makeACopy";
1861
1888
  /**
1862
- * The **Copy and Edit** action on a Liveboard.
1863
- * This action is now replaced with `Action.MakeACopy`.
1864
- *
1865
- * @example
1866
- * ```js
1867
- * disabledActions: [Action.EditACopy]
1868
- * ```
1869
- */
1889
+ * The **Copy and Edit** action on a Liveboard.
1890
+ * This action is now replaced with `Action.MakeACopy`.
1891
+ *
1892
+ * @example
1893
+ * ```js
1894
+ * disabledActions: [Action.EditACopy]
1895
+ * ```
1896
+ */
1870
1897
  Action["EditACopy"] = "editACopy";
1871
1898
  /**
1872
- * The **Copy link** menu action on a Liveboard visualization.
1873
- * Copies the visualization URL
1874
- * @example
1875
- * ```js
1876
- * disabledActions: [Action.CopyLink]
1877
- * ```
1878
- */
1899
+ * The **Copy link** menu action on a Liveboard visualization.
1900
+ * Copies the visualization URL
1901
+ *
1902
+ * @example
1903
+ * ```js
1904
+ * disabledActions: [Action.CopyLink]
1905
+ * ```
1906
+ */
1879
1907
  Action["CopyLink"] = "embedDocument";
1880
1908
  /**
1881
1909
  * @hidden
1882
1910
  */
1883
1911
  Action["ResetLayout"] = "resetLayout";
1884
1912
  /**
1885
- * The **Schedule** menu action on a Liveboard.
1886
- * Allows scheduling a Liveboard notification.
1887
- * @example
1888
- * ```js
1889
- * disabledActions: [Action.Schedule]
1890
- * ```
1891
- */
1913
+ * The **Schedule** menu action on a Liveboard.
1914
+ * Allows scheduling a Liveboard notification.
1915
+ *
1916
+ * @example
1917
+ * ```js
1918
+ * disabledActions: [Action.Schedule]
1919
+ * ```
1920
+ */
1892
1921
  Action["Schedule"] = "subscription";
1893
1922
  /**
1894
- * The **Manage schedules** menu action on a Liveboard.
1895
- * Allows users to manage scheduled Liveboard jobs.
1896
- * @example
1897
- * ```js
1898
- * disabledActions: [Action.SchedulesList]
1899
- * ```
1900
- */
1923
+ * The **Manage schedules** menu action on a Liveboard.
1924
+ * Allows users to manage scheduled Liveboard jobs.
1925
+ *
1926
+ * @example
1927
+ * ```js
1928
+ * disabledActions: [Action.SchedulesList]
1929
+ * ```
1930
+ */
1901
1931
  Action["SchedulesList"] = "schedule-list";
1902
1932
  /**
1903
- * The **Share** action on a Liveboard, Answer, or Worksheet.
1904
- * Allows users to share an object with other users and groups.
1905
- * @example
1906
- * ```js
1907
- * disabledActions: [Action.Share]
1908
- * ```
1909
- */
1933
+ * The **Share** action on a Liveboard, Answer, or Worksheet.
1934
+ * Allows users to share an object with other users and groups.
1935
+ *
1936
+ * @example
1937
+ * ```js
1938
+ * disabledActions: [Action.Share]
1939
+ * ```
1940
+ */
1910
1941
  Action["Share"] = "share";
1911
1942
  /**
1912
- * The **Add filter** action on a Liveboard and Search page.
1913
- * Allows adding filters to Answers and visualizations on a Liveboard.
1914
- * @example
1915
- * ```js
1916
- * disabledActions: [Action.AddFilter]
1917
- * ```
1918
- */
1943
+ * The **Add filter** action on a Liveboard and Search page.
1944
+ * Allows adding filters to Answers and visualizations on a Liveboard.
1945
+ *
1946
+ * @example
1947
+ * ```js
1948
+ * disabledActions: [Action.AddFilter]
1949
+ * ```
1950
+ */
1919
1951
  Action["AddFilter"] = "addFilter";
1920
1952
  /**
1921
- * Filter configuration options on a Liveboard and Search page.
1922
- * Allows configuring filter options when adding filters to a
1923
- * Liveboard or Answer.
1924
- * @example
1925
- * ```js
1926
- * disabledActions: [Action.ConfigureFilter]
1927
- * ```
1928
- */
1953
+ * Filter configuration options on a Liveboard and Search page.
1954
+ * Allows configuring filter options when adding filters to a
1955
+ * Liveboard or Answer.
1956
+ *
1957
+ * @example
1958
+ * ```js
1959
+ * disabledActions: [Action.ConfigureFilter]
1960
+ * ```
1961
+ */
1929
1962
  Action["ConfigureFilter"] = "configureFilter";
1930
1963
  Action["CollapseDataSources"] = "collapseDataSources";
1931
1964
  /**
1932
- * The **Choose sources** button on Search page.
1933
- * Allows selecting data sources for search queries.
1934
- * @example
1935
- * ```js
1936
- * disabledActions: [Action.ChooseDataSources]
1937
- * ```
1938
- */
1965
+ * The **Choose sources** button on Search page.
1966
+ * Allows selecting data sources for search queries.
1967
+ *
1968
+ * @example
1969
+ * ```js
1970
+ * disabledActions: [Action.ChooseDataSources]
1971
+ * ```
1972
+ */
1939
1973
  Action["ChooseDataSources"] = "chooseDataSources";
1940
1974
  /**
1941
- * The **Create formula** action on a Search or Answer page.
1942
- * Allows adding formulas to an Answer.
1943
- * @example
1944
- * ```js
1945
- * disabledActions: [Action.AddFormula]
1946
- * ```
1947
- */
1975
+ * The **Create formula** action on a Search or Answer page.
1976
+ * Allows adding formulas to an Answer.
1977
+ *
1978
+ * @example
1979
+ * ```js
1980
+ * disabledActions: [Action.AddFormula]
1981
+ * ```
1982
+ */
1948
1983
  Action["AddFormula"] = "addFormula";
1949
1984
  /**
1950
- * The **Add parameter** action on a Liveboard or Answer.
1951
- * Allows adding Parameters to a Liveboard or Answer.
1952
- * @example
1953
- * ```js
1954
- * disabledActions: [Action.AddParameter]
1955
- * ```
1956
- */
1985
+ * The **Add parameter** action on a Liveboard or Answer.
1986
+ * Allows adding Parameters to a Liveboard or Answer.
1987
+ *
1988
+ * @example
1989
+ * ```js
1990
+ * disabledActions: [Action.AddParameter]
1991
+ * ```
1992
+ */
1957
1993
  Action["AddParameter"] = "addParameter";
1958
1994
  /**
1959
1995
  * @hidden
1960
1996
  */
1961
1997
  Action["SearchOnTop"] = "searchOnTop";
1962
1998
  /**
1963
- * The **SpotIQ analyze** menu action on a visualization or
1964
- * Answer page.
1965
- * @example
1966
- * ```js
1967
- * disabledActions: [Action.SpotIQAnalyze]
1968
- * ```
1969
- */
1999
+ * The **SpotIQ analyze** menu action on a visualization or
2000
+ * Answer page.
2001
+ *
2002
+ * @example
2003
+ * ```js
2004
+ * disabledActions: [Action.SpotIQAnalyze]
2005
+ * ```
2006
+ */
1970
2007
  Action["SpotIQAnalyze"] = "spotIQAnalyze";
1971
2008
  /**
1972
2009
  * @hidden
@@ -1982,89 +2019,98 @@ var Action;
1982
2019
  */
1983
2020
  Action["ReplaySearch"] = "replaySearch";
1984
2021
  /**
1985
- * The **Show underlying data** menu action on a visualization or
1986
- * Answer page.
1987
- * @example
1988
- * ```js
1989
- * disabledActions: [Action.ShowUnderlyingData]
1990
- * ```
1991
- */
2022
+ * The **Show underlying data** menu action on a visualization or
2023
+ * Answer page.
2024
+ *
2025
+ * @example
2026
+ * ```js
2027
+ * disabledActions: [Action.ShowUnderlyingData]
2028
+ * ```
2029
+ */
1992
2030
  Action["ShowUnderlyingData"] = "showUnderlyingData";
1993
2031
  /**
1994
- * The **Download** menu action on Liveboard visualizations
1995
- * and Answers.
1996
- * Allows downloading a visualization or Answer.
1997
- * @example
1998
- * ```js
1999
- * disabledActions: [Action.DownloadAsPng]
2000
- * ```
2001
- */
2032
+ * The **Download** menu action on Liveboard visualizations
2033
+ * and Answers.
2034
+ * Allows downloading a visualization or Answer.
2035
+ *
2036
+ * @example
2037
+ * ```js
2038
+ * disabledActions: [Action.DownloadAsPng]
2039
+ * ```
2040
+ */
2002
2041
  Action["Download"] = "download";
2003
2042
  /**
2004
- * The **Download** > **PNG** menu action for charts on a Liveboard
2005
- * or Answer page.
2006
- * Downloads a visualization or Answer as a PNG file.
2007
- * @example
2008
- * ```js
2009
- * disabledActions: [Action.DownloadAsPng]
2010
- * ```
2011
- */
2043
+ * The **Download** > **PNG** menu action for charts on a Liveboard
2044
+ * or Answer page.
2045
+ * Downloads a visualization or Answer as a PNG file.
2046
+ *
2047
+ * @example
2048
+ * ```js
2049
+ * disabledActions: [Action.DownloadAsPng]
2050
+ * ```
2051
+ */
2012
2052
  Action["DownloadAsPng"] = "downloadAsPng";
2013
2053
  /**
2014
- * The **Download** > **PDF** menu action on a Liveboard.
2015
- * Downloads a visualization or Answer as a PDF file.
2016
- * @example
2017
- * ```js
2018
- * disabledActions: [Action.DownloadAsPdf]
2019
- * ```
2020
- */
2054
+ * The **Download** > **PDF** menu action on a Liveboard.
2055
+ * Downloads a visualization or Answer as a PDF file.
2056
+ *
2057
+ * @example
2058
+ * ```js
2059
+ * disabledActions: [Action.DownloadAsPdf]
2060
+ * ```
2061
+ */
2021
2062
  Action["DownloadAsPdf"] = "downloadAsPdf";
2022
2063
  /**
2023
- * The **Download** > **CSV** menu action for tables on a Liveboard
2024
- * or Answer page.
2025
- * Downloads a visualization or Answer in the XLSX format.
2026
- * @example
2027
- * ```js
2028
- * disabledActions: [Action.DownloadAsCsv]
2029
- * ```
2030
- */
2064
+ * The **Download** > **CSV** menu action for tables on a Liveboard
2065
+ * or Answer page.
2066
+ * Downloads a visualization or Answer in the XLSX format.
2067
+ *
2068
+ * @example
2069
+ * ```js
2070
+ * disabledActions: [Action.DownloadAsCsv]
2071
+ * ```
2072
+ */
2031
2073
  Action["DownloadAsCsv"] = "downloadAsCSV";
2032
2074
  /**
2033
- * The **Download** > **XLSX** menu action for tables on a Liveboard
2034
- * or Answer page.
2035
- * Downloads a visualization or Answer in the XLSX format.
2036
- * @example
2037
- * ```js
2038
- * disabledActions: [Action.DownloadAsXlsx]
2039
- * ```
2040
- */
2075
+ * The **Download** > **XLSX** menu action for tables on a Liveboard
2076
+ * or Answer page.
2077
+ * Downloads a visualization or Answer in the XLSX format.
2078
+ *
2079
+ * @example
2080
+ * ```js
2081
+ * disabledActions: [Action.DownloadAsXlsx]
2082
+ * ```
2083
+ */
2041
2084
  Action["DownloadAsXlsx"] = "downloadAsXLSX";
2042
2085
  /**
2043
2086
  * @hidden
2044
2087
  */
2045
2088
  Action["DownloadTrace"] = "downloadTrace";
2046
2089
  /**
2047
- * The **Export TML** menu action on Liveboard, Answers
2048
- * Worksheets and Data Connections page.
2049
- * Exports an object as a TML file.
2050
- * @example
2051
- * ```js
2052
- * disabledActions: [Action.ExportTML]
2053
- * ```
2054
- */
2090
+ * The **Export TML** menu action on Liveboard, Answers
2091
+ * Worksheets and Data Connections page.
2092
+ * Exports an object as a TML file.
2093
+ *
2094
+ * @example
2095
+ * ```js
2096
+ * disabledActions: [Action.ExportTML]
2097
+ * ```
2098
+ */
2055
2099
  Action["ExportTML"] = "exportTSL";
2056
2100
  /**
2057
- * The **Import TML** menu action for Liveboards and Answers.
2058
- * Imports TML representation of ThoughtSpot objects.
2059
- * @example
2060
- * ```js
2061
- * disabledActions: [Action.ImportTML]
2062
- * ```
2063
- */
2101
+ * The **Import TML** menu action for Liveboards and Answers.
2102
+ * Imports TML representation of ThoughtSpot objects.
2103
+ *
2104
+ * @example
2105
+ * ```js
2106
+ * disabledActions: [Action.ImportTML]
2107
+ * ```
2108
+ */
2064
2109
  Action["ImportTML"] = "importTSL";
2065
2110
  /**
2066
2111
  * The **Update TML** menu action for Liveboards and Answers.
2067
2112
  * Update TML representation of ThoughtSpot objects.
2113
+ *
2068
2114
  * @example
2069
2115
  * ```js
2070
2116
  * disabledActions: [Action.UpdateTML]
@@ -2074,6 +2120,7 @@ var Action;
2074
2120
  /**
2075
2121
  * The **Edit TML** menu action for Liveboards and Answers.
2076
2122
  * Opens the TML editor.
2123
+ *
2077
2124
  * @example
2078
2125
  * ```js
2079
2126
  * disabledActions: [Action.EditTML]
@@ -2081,50 +2128,55 @@ var Action;
2081
2128
  */
2082
2129
  Action["EditTML"] = "editTSL";
2083
2130
  /**
2084
- * The **Present** menu action for Liveboards and Answers.
2085
- * Allows presenting a Liveboard or visualization in
2086
- * slideshow mode.
2087
- * @example
2088
- * ```js
2089
- * disabledActions: [Action.Present]
2090
- * ```
2091
- */
2131
+ * The **Present** menu action for Liveboards and Answers.
2132
+ * Allows presenting a Liveboard or visualization in
2133
+ * slideshow mode.
2134
+ *
2135
+ * @example
2136
+ * ```js
2137
+ * disabledActions: [Action.Present]
2138
+ * ```
2139
+ */
2092
2140
  Action["Present"] = "present";
2093
2141
  /**
2094
- * The tile resize options in the visualization menu.
2095
- * Allows switching between different preset layouts.
2096
- * @example
2097
- * ```js
2098
- * disabledActions: [Action.ToggleSize]
2099
- * ```
2100
- */
2142
+ * The tile resize options in the visualization menu.
2143
+ * Allows switching between different preset layouts.
2144
+ *
2145
+ * @example
2146
+ * ```js
2147
+ * disabledActions: [Action.ToggleSize]
2148
+ * ```
2149
+ */
2101
2150
  Action["ToggleSize"] = "toggleSize";
2102
2151
  /**
2103
- * The *Edit* action on the Liveboard page and in the
2104
- * visualization menu.
2105
- * Opens a Liveboard or visualization in edit mode.
2106
- * @example
2107
- * ```js
2108
- * disabledActions: [Action.Edit]
2109
- * ```
2110
- */
2152
+ * The *Edit* action on the Liveboard page and in the
2153
+ * visualization menu.
2154
+ * Opens a Liveboard or visualization in edit mode.
2155
+ *
2156
+ * @example
2157
+ * ```js
2158
+ * disabledActions: [Action.Edit]
2159
+ * ```
2160
+ */
2111
2161
  Action["Edit"] = "edit";
2112
2162
  /**
2113
- * The text edit option for Liveboard and visualization titles.
2114
- * @example
2115
- * ```js
2116
- * disabledActions: [Action.EditTitle]
2117
- * ```
2118
- */
2163
+ * The text edit option for Liveboard and visualization titles.
2164
+ *
2165
+ * @example
2166
+ * ```js
2167
+ * disabledActions: [Action.EditTitle]
2168
+ * ```
2169
+ */
2119
2170
  Action["EditTitle"] = "editTitle";
2120
2171
  /**
2121
- * The **Delete** menu action on Liveboards and visualizations.
2122
- * Deletes a Liveboard or a visualization from a Liveboard.
2123
- * @example
2124
- * ```js
2125
- * disabledActions: [Action.Remove]
2126
- * ```
2127
- */
2172
+ * The **Delete** menu action on Liveboards and visualizations.
2173
+ * Deletes a Liveboard or a visualization from a Liveboard.
2174
+ *
2175
+ * @example
2176
+ * ```js
2177
+ * disabledActions: [Action.Remove]
2178
+ * ```
2179
+ */
2128
2180
  Action["Remove"] = "delete";
2129
2181
  /**
2130
2182
  * @hidden
@@ -2147,15 +2199,16 @@ var Action;
2147
2199
  */
2148
2200
  Action["PinboardInfo"] = "pinboardInfo";
2149
2201
  /**
2150
- * The **Show Liveboard details** menu action on a Liveboard.
2151
- * Displays details such as the name, description, and
2152
- * author of the Liveboard, and timestamp of Liveboard creation
2153
- * and update.
2154
- * @example
2155
- * ```js
2156
- * disabledActions: [Action.LiveboardInfo]
2157
- * ```
2158
- */
2202
+ * The **Show Liveboard details** menu action on a Liveboard.
2203
+ * Displays details such as the name, description, and
2204
+ * author of the Liveboard, and timestamp of Liveboard creation
2205
+ * and update.
2206
+ *
2207
+ * @example
2208
+ * ```js
2209
+ * disabledActions: [Action.LiveboardInfo]
2210
+ * ```
2211
+ */
2159
2212
  Action["LiveboardInfo"] = "pinboardInfo";
2160
2213
  /**
2161
2214
  * @hidden
@@ -2166,13 +2219,14 @@ var Action;
2166
2219
  */
2167
2220
  Action["DownloadEmbraceQueries"] = "downloadEmbraceQueries";
2168
2221
  /**
2169
- * The **Pin** menu action on an Answer or
2170
- * Search results page.
2171
- * @example
2172
- * ```js
2173
- * disabledActions: [Action.Pin]
2174
- * ```
2175
- */
2222
+ * The **Pin** menu action on an Answer or
2223
+ * Search results page.
2224
+ *
2225
+ * @example
2226
+ * ```js
2227
+ * disabledActions: [Action.Pin]
2228
+ * ```
2229
+ */
2176
2230
  Action["Pin"] = "pin";
2177
2231
  /**
2178
2232
  * @hidden
@@ -2180,6 +2234,7 @@ var Action;
2180
2234
  Action["AnalysisInfo"] = "analysisInfo";
2181
2235
  /**
2182
2236
  * The **Schedule** menu action on a Liveboard.
2237
+ *
2183
2238
  * @example
2184
2239
  * ```js
2185
2240
  * disabledActions: [Action.Subscription]
@@ -2187,25 +2242,28 @@ var Action;
2187
2242
  */
2188
2243
  Action["Subscription"] = "subscription";
2189
2244
  /**
2190
- * The **Explore** action on Liveboard visualizations
2191
- * @example
2192
- * ```js
2193
- * disabledActions: [Action.Explore]
2194
- * ```
2195
- */
2245
+ * The **Explore** action on Liveboard visualizations
2246
+ *
2247
+ * @example
2248
+ * ```js
2249
+ * disabledActions: [Action.Explore]
2250
+ * ```
2251
+ */
2196
2252
  Action["Explore"] = "explore";
2197
2253
  /**
2198
- * The action to include data points on a drilled-down Answer
2199
- * or visualization
2200
- * @example
2201
- * ```js
2202
- * disabledActions: [Action.DrillInclude]
2203
- * ```
2204
- */
2254
+ * The action to include data points on a drilled-down Answer
2255
+ * or visualization
2256
+ *
2257
+ * @example
2258
+ * ```js
2259
+ * disabledActions: [Action.DrillInclude]
2260
+ * ```
2261
+ */
2205
2262
  Action["DrillInclude"] = "context-menu-item-include";
2206
2263
  /**
2207
2264
  * The action to exclude data points on a drilled-down Answer
2208
2265
  * or visualization
2266
+ *
2209
2267
  * @example
2210
2268
  * ```js
2211
2269
  * disabledActions: [Action.DrillInclude]
@@ -2216,6 +2274,7 @@ var Action;
2216
2274
  * The **Copy to clipboard** menu action on tables in an Answer
2217
2275
  * or Liveboard.
2218
2276
  * Copies the selected data point.
2277
+ *
2219
2278
  * @example
2220
2279
  * ```js
2221
2280
  * disabledActions: [Action.CopyToClipboard]
@@ -2233,6 +2292,7 @@ var Action;
2233
2292
  * The **Drill down** menu action on Answers and Liveboard
2234
2293
  * visualizations.
2235
2294
  * Allows drilling down to a specific data point on a chart or table.
2295
+ *
2236
2296
  * @example
2237
2297
  * ```js
2238
2298
  * disabledActions: [Action.DrillDown]
@@ -2242,6 +2302,7 @@ var Action;
2242
2302
  /**
2243
2303
  * The request access action on Liveboards.
2244
2304
  * Allows users with view permissions to request edit access to a Liveboard.
2305
+ *
2245
2306
  * @example
2246
2307
  * ```js
2247
2308
  * disabledActions: [Action.RequestAccess]
@@ -2251,6 +2312,7 @@ var Action;
2251
2312
  /**
2252
2313
  * The **Query visualizer** and **Query SQL** buttons in Query details panel
2253
2314
  * of the Answer page
2315
+ *
2254
2316
  * @example
2255
2317
  * ```js
2256
2318
  * disabledActions: [Action.QueryDetailsButtons]
@@ -2259,6 +2321,7 @@ var Action;
2259
2321
  Action["QueryDetailsButtons"] = "QueryDetailsButtons";
2260
2322
  /**
2261
2323
  * The **Delete** action for Answers.
2324
+ *
2262
2325
  * @example
2263
2326
  * ```js
2264
2327
  * disabledActions: [Action.AnswerDelete]
@@ -2268,6 +2331,7 @@ var Action;
2268
2331
  Action["AnswerDelete"] = "onDeleteAnswer";
2269
2332
  /**
2270
2333
  * The Chart switcher icon on Answer and visualization pages.
2334
+ *
2271
2335
  * @example
2272
2336
  * ```js
2273
2337
  * disabledActions: [Action.AnswerChartSwitcher]
@@ -2277,6 +2341,7 @@ var Action;
2277
2341
  Action["AnswerChartSwitcher"] = "answerChartSwitcher";
2278
2342
  /**
2279
2343
  * Favorites icon (*) on Answers, Liveboard, and Data pages
2344
+ *
2280
2345
  * @example
2281
2346
  * ```js
2282
2347
  * disabledActions: [Action.AddToFavorites]
@@ -2286,6 +2351,7 @@ var Action;
2286
2351
  Action["AddToFavorites"] = "addToFavorites";
2287
2352
  /**
2288
2353
  * The edit icon on Liveboards (Classic experience).
2354
+ *
2289
2355
  * @example
2290
2356
  * ```js
2291
2357
  * disabledActions: [Action.EditDetails]
@@ -2295,6 +2361,7 @@ var Action;
2295
2361
  Action["EditDetails"] = "editDetails";
2296
2362
  /**
2297
2363
  * The Create alert action on KPI charts.
2364
+ *
2298
2365
  * @example
2299
2366
  * ```js
2300
2367
  * disabledActions: [Action.CreateMonitor ]
@@ -2313,6 +2380,7 @@ var Action;
2313
2380
  /**
2314
2381
  * The **Sync to sheets** action on Answers and Liveboard visualizations.
2315
2382
  * Allows sending data to a Google Sheet.
2383
+ *
2316
2384
  * @example
2317
2385
  * ```js
2318
2386
  * disabledActions: [Action.SyncToSheets]
@@ -2324,6 +2392,7 @@ var Action;
2324
2392
  * The **Sync to other apps** action on Answers and Liveboard visualizations.
2325
2393
  * Allows sending data to third-party apps like Slack, Salesforce,
2326
2394
  * Microsoft Teams, and so on.
2395
+ *
2327
2396
  * @example
2328
2397
  * ```js
2329
2398
  * disabledActions: [Action.SyncToOtherApps]
@@ -2334,6 +2403,7 @@ var Action;
2334
2403
  /**
2335
2404
  * The **Manage pipelines** action on Answers and Liveboard visualizations.
2336
2405
  * Allows users to manage data sync pipelines to third-party apps.
2406
+ *
2337
2407
  * @example
2338
2408
  * ```js
2339
2409
  * disabledActions: [Action.SyncToOtherApps]
@@ -2344,6 +2414,7 @@ var Action;
2344
2414
  /**
2345
2415
  * The **Filter** action on Liveboard visualizations.
2346
2416
  * Allows users to apply cross-filters on a Liveboard.
2417
+ *
2347
2418
  * @example
2348
2419
  * ```js
2349
2420
  * disabledActions: [Action.CrossFilter]
@@ -2355,6 +2426,7 @@ var Action;
2355
2426
  * The **Remove** action that appears when cross filters are applied
2356
2427
  * on a Liveboard.
2357
2428
  * Removes filters applied o a visualization.
2429
+ *
2358
2430
  * @example
2359
2431
  * ```js
2360
2432
  * disabledActions: [Action.RemoveCrossFilter]
@@ -2366,6 +2438,7 @@ var Action;
2366
2438
  * The **Aggregate** option in the chart axis or the
2367
2439
  * table column customization menu.
2368
2440
  * Provides aggregation options to analyze the data on a chart or table.
2441
+ *
2369
2442
  * @example
2370
2443
  * ```js
2371
2444
  * disabledActions: [Action.AxisMenuAggregate]
@@ -2377,6 +2450,7 @@ var Action;
2377
2450
  * The **Time bucket** option in the chart axis or table column
2378
2451
  * customization menu.
2379
2452
  * Allows defining time metric for date comparison.
2453
+ *
2380
2454
  * @example
2381
2455
  * ```js
2382
2456
  * disabledActions: [Action.AxisMenuTimeBucket]
@@ -2387,6 +2461,7 @@ var Action;
2387
2461
  /**
2388
2462
  * The **Filter** action in the chart axis or table column
2389
2463
  * customization menu.
2464
+ *
2390
2465
  * @example
2391
2466
  * ```js
2392
2467
  * disabledActions: [Action.AxisMenuFilter]
@@ -2398,6 +2473,7 @@ var Action;
2398
2473
  * The **Conditional formatting** action on chart or table.
2399
2474
  * Allows adding rules for conditional formatting of data
2400
2475
  * points on a chart or table.
2476
+ *
2401
2477
  * @example
2402
2478
  * ```js
2403
2479
  * disabledActions: [Action.AxisMenuConditionalFormat]
@@ -2409,6 +2485,7 @@ var Action;
2409
2485
  * The **Sort** menu action on a table or chart axis
2410
2486
  * Sorts data in ascending or descending order.
2411
2487
  * Allows adding, editing, or removing filters.
2488
+ *
2412
2489
  * @example
2413
2490
  * ```js
2414
2491
  * disabledActions: [Action.AxisMenuConditionalFormat]
@@ -2421,6 +2498,7 @@ var Action;
2421
2498
  * customization menu.
2422
2499
  * Allows grouping data points if the axes use the same
2423
2500
  * unit of measurement and a similar scale.
2501
+ *
2424
2502
  * @example
2425
2503
  * ```js
2426
2504
  * disabledActions: [Action.AxisMenuGroup]
@@ -2432,6 +2510,7 @@ var Action;
2432
2510
  * The **Position** option in the axis customization menu.
2433
2511
  * Allows changing the position of the axis to the
2434
2512
  * left or right side of the chart.
2513
+ *
2435
2514
  * @example
2436
2515
  * ```js
2437
2516
  * disabledActions: [Action.AxisMenuPosition]
@@ -2442,6 +2521,7 @@ var Action;
2442
2521
  /**
2443
2522
  * The **Rename** option in the chart axis or table column customization menu.
2444
2523
  * Renames the axis label on a chart or the column header on a table.
2524
+ *
2445
2525
  * @example
2446
2526
  * ```js
2447
2527
  * disabledActions: [Action.AxisMenuRename]
@@ -2453,6 +2533,7 @@ var Action;
2453
2533
  * The **Edit** action in the axis customization menu.
2454
2534
  * Allows editing the axis name, position, minimum and maximum values,
2455
2535
  * and format of a column.
2536
+ *
2456
2537
  * @example
2457
2538
  * ```js
2458
2539
  * disabledActions: [Action.AxisMenuEdit]
@@ -2463,6 +2544,7 @@ var Action;
2463
2544
  /**
2464
2545
  * The **Number format** action to customize the format of
2465
2546
  * the data labels on a chart or table.
2547
+ *
2466
2548
  * @example
2467
2549
  * ```js
2468
2550
  * disabledActions: [Action.AxisMenuNumberFormat]
@@ -2473,6 +2555,7 @@ var Action;
2473
2555
  /**
2474
2556
  * The **Text wrapping** action on a table.
2475
2557
  * Wraps or clips column text on a table.
2558
+ *
2476
2559
  * @example
2477
2560
  * ```js
2478
2561
  * disabledActions: [Action.AxisMenuTextWrapping]
@@ -2485,6 +2568,7 @@ var Action;
2485
2568
  * customization menu.
2486
2569
  * Removes the data labels from a chart or the column of a
2487
2570
  * table visualization.
2571
+ *
2488
2572
  * @example
2489
2573
  * ```js
2490
2574
  * disabledActions: [Action.AxisMenuRemove]
@@ -2499,6 +2583,7 @@ var Action;
2499
2583
  /**
2500
2584
  * The **Rename** menu action on Liveboards and visualizations.
2501
2585
  * Allows renaming a Liveboard or visualization.
2586
+ *
2502
2587
  * @example
2503
2588
  * ```js
2504
2589
  * disabledActions: [Action.RenameModalTitleDescription]
@@ -2515,13 +2600,29 @@ var Action;
2515
2600
  */
2516
2601
  Action["MarkAsVerified"] = "markAsVerified";
2517
2602
  /**
2518
- * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
2603
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2519
2604
  */
2520
2605
  Action["AddTab"] = "addTab";
2521
2606
  /**
2522
2607
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
2523
2608
  */
2524
2609
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
2610
+ /**
2611
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2612
+ */
2613
+ Action["ShowSageQuery"] = "showSageQuery";
2614
+ /**
2615
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2616
+ */
2617
+ Action["EditSageAnswer"] = "editSageAnswer";
2618
+ /**
2619
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2620
+ */
2621
+ Action["SageAnswerFeedback"] = "sageAnswerFeedback";
2622
+ /**
2623
+ * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2624
+ */
2625
+ Action["ModifySageAnswer"] = "modifySageAnswer";
2525
2626
  })(Action || (Action = {}));
2526
2627
  // eslint-disable-next-line no-shadow
2527
2628
  var OperationType;
@@ -27325,7 +27426,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
27325
27426
  });
27326
27427
  }
27327
27428
 
27328
- 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={".":{"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,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};
27429
+ 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={".":{"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,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};
27329
27430
 
27330
27431
  /**
27331
27432
  * Copyright (c) 2022
@@ -28158,14 +28259,15 @@ class SageEmbed extends V1Embed {
28158
28259
  */
28159
28260
  getEmbedParams() {
28160
28261
  var _a;
28161
- const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
28162
- const params = {};
28262
+ const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, } = this.viewConfig;
28263
+ const params = this.getBaseQueryParams();
28163
28264
  params[Param.EmbedApp] = true;
28164
28265
  params[Param.HideEurekaResults] = !showObjectResults;
28165
28266
  params[Param.IsSageEmbed] = true;
28166
28267
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
28167
28268
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
28168
28269
  params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
28270
+ params[Param.HideSampleQuestions] = !hideSampleQuestions;
28169
28271
  params[Param.HideActions] = [
28170
28272
  ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
28171
28273
  ...HiddenActionItemByDefaultForSageEmbed,
@@ -28180,8 +28282,16 @@ class SageEmbed extends V1Embed {
28180
28282
  */
28181
28283
  getIFrameSrc() {
28182
28284
  const path = 'eureka';
28285
+ const postHashObj = {};
28183
28286
  const tsPostHashParams = this.getThoughtSpotPostUrlParams();
28184
- return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}`;
28287
+ if (this.viewConfig.searchQuery)
28288
+ postHashObj[Param.Query] = this.viewConfig.searchQuery;
28289
+ if (this.viewConfig.dataSource)
28290
+ postHashObj[Param.WorksheetId] = this.viewConfig.dataSource;
28291
+ let sagePostHashParams = new URLSearchParams(postHashObj).toString();
28292
+ if (sagePostHashParams)
28293
+ sagePostHashParams = `${tsPostHashParams ? '&' : '?'}${sagePostHashParams}`;
28294
+ return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}${sagePostHashParams}`;
28185
28295
  }
28186
28296
  /**
28187
28297
  * Render the embedded ThoughtSpot Sage
@@ -28350,7 +28460,7 @@ var Page;
28350
28460
  /**
28351
28461
  * SpotIQ listing page
28352
28462
  */
28353
- Page["SpotIQ"] = "spotiq";
28463
+ Page["SpotIQ"] = "insights";
28354
28464
  })(Page || (Page = {}));
28355
28465
  /**
28356
28466
  * Embeds full ThoughtSpot experience in a host application.