@thoughtspot/visual-embed-sdk 1.44.4 → 1.45.0

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 (135) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +33 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +10 -4
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +28 -7
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +10 -6
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js +12 -2
  11. package/cjs/src/embed/conversation.js.map +1 -1
  12. package/cjs/src/embed/conversation.spec.js +3 -0
  13. package/cjs/src/embed/conversation.spec.js.map +1 -1
  14. package/cjs/src/embed/embed.spec.js +1 -0
  15. package/cjs/src/embed/embed.spec.js.map +1 -1
  16. package/cjs/src/embed/liveboard.d.ts +32 -0
  17. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  18. package/cjs/src/embed/liveboard.js +10 -4
  19. package/cjs/src/embed/liveboard.js.map +1 -1
  20. package/cjs/src/embed/liveboard.spec.js +57 -33
  21. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  22. package/cjs/src/embed/pinboard.spec.js +1 -0
  23. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  24. package/cjs/src/embed/search.d.ts +1 -0
  25. package/cjs/src/embed/search.d.ts.map +1 -1
  26. package/cjs/src/embed/search.js +10 -2
  27. package/cjs/src/embed/search.js.map +1 -1
  28. package/cjs/src/embed/search.spec.js +12 -0
  29. package/cjs/src/embed/search.spec.js.map +1 -1
  30. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  31. package/cjs/src/embed/ts-embed.js +7 -3
  32. package/cjs/src/embed/ts-embed.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.spec.js +1 -0
  34. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  35. package/cjs/src/types.d.ts +236 -158
  36. package/cjs/src/types.d.ts.map +1 -1
  37. package/cjs/src/types.js +198 -125
  38. package/cjs/src/types.js.map +1 -1
  39. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  40. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  41. package/cjs/src/utils/graphql/answerService/answer-queries.js +0 -1
  42. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  43. package/cjs/src/utils/graphql/answerService/answerService.spec.js +0 -1
  44. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  45. package/cjs/src/utils/processTrigger.js +1 -1
  46. package/cjs/src/utils/processTrigger.js.map +1 -1
  47. package/cjs/src/utils/processTrigger.spec.js +12 -0
  48. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  49. package/dist/{index-C5FAW929.js → index-Dk-SLdNk.js} +1 -1
  50. package/dist/src/embed/app.d.ts +33 -1
  51. package/dist/src/embed/app.d.ts.map +1 -1
  52. package/dist/src/embed/conversation.d.ts +10 -6
  53. package/dist/src/embed/conversation.d.ts.map +1 -1
  54. package/dist/src/embed/liveboard.d.ts +32 -0
  55. package/dist/src/embed/liveboard.d.ts.map +1 -1
  56. package/dist/src/embed/search.d.ts +1 -0
  57. package/dist/src/embed/search.d.ts.map +1 -1
  58. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  59. package/dist/src/types.d.ts +236 -158
  60. package/dist/src/types.d.ts.map +1 -1
  61. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  62. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  63. package/dist/tsembed-react.es.js +251 -145
  64. package/dist/tsembed-react.js +250 -144
  65. package/dist/tsembed.es.js +251 -145
  66. package/dist/tsembed.js +250 -144
  67. package/dist/visual-embed-sdk-react-full.d.ts +303 -146
  68. package/dist/visual-embed-sdk-react.d.ts +303 -146
  69. package/dist/visual-embed-sdk.d.ts +308 -163
  70. package/lib/package.json +1 -1
  71. package/lib/src/embed/app.d.ts +33 -1
  72. package/lib/src/embed/app.d.ts.map +1 -1
  73. package/lib/src/embed/app.js +10 -4
  74. package/lib/src/embed/app.js.map +1 -1
  75. package/lib/src/embed/app.spec.js +28 -7
  76. package/lib/src/embed/app.spec.js.map +1 -1
  77. package/lib/src/embed/conversation.d.ts +10 -6
  78. package/lib/src/embed/conversation.d.ts.map +1 -1
  79. package/lib/src/embed/conversation.js +12 -2
  80. package/lib/src/embed/conversation.js.map +1 -1
  81. package/lib/src/embed/conversation.spec.js +3 -0
  82. package/lib/src/embed/conversation.spec.js.map +1 -1
  83. package/lib/src/embed/embed.spec.js +1 -0
  84. package/lib/src/embed/embed.spec.js.map +1 -1
  85. package/lib/src/embed/liveboard.d.ts +32 -0
  86. package/lib/src/embed/liveboard.d.ts.map +1 -1
  87. package/lib/src/embed/liveboard.js +10 -4
  88. package/lib/src/embed/liveboard.js.map +1 -1
  89. package/lib/src/embed/liveboard.spec.js +57 -33
  90. package/lib/src/embed/liveboard.spec.js.map +1 -1
  91. package/lib/src/embed/pinboard.spec.js +1 -0
  92. package/lib/src/embed/pinboard.spec.js.map +1 -1
  93. package/lib/src/embed/search.d.ts +1 -0
  94. package/lib/src/embed/search.d.ts.map +1 -1
  95. package/lib/src/embed/search.js +10 -2
  96. package/lib/src/embed/search.js.map +1 -1
  97. package/lib/src/embed/search.spec.js +12 -0
  98. package/lib/src/embed/search.spec.js.map +1 -1
  99. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  100. package/lib/src/embed/ts-embed.js +7 -3
  101. package/lib/src/embed/ts-embed.js.map +1 -1
  102. package/lib/src/embed/ts-embed.spec.js +1 -0
  103. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  104. package/lib/src/types.d.ts +236 -158
  105. package/lib/src/types.d.ts.map +1 -1
  106. package/lib/src/types.js +198 -125
  107. package/lib/src/types.js.map +1 -1
  108. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  109. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  110. package/lib/src/utils/graphql/answerService/answer-queries.js +0 -1
  111. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  112. package/lib/src/utils/graphql/answerService/answerService.spec.js +0 -1
  113. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  114. package/lib/src/utils/processTrigger.js +1 -1
  115. package/lib/src/utils/processTrigger.js.map +1 -1
  116. package/lib/src/utils/processTrigger.spec.js +12 -0
  117. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  118. package/package.json +1 -1
  119. package/src/embed/app.spec.ts +39 -7
  120. package/src/embed/app.ts +50 -6
  121. package/src/embed/conversation.spec.ts +3 -0
  122. package/src/embed/conversation.ts +22 -8
  123. package/src/embed/embed.spec.ts +1 -0
  124. package/src/embed/liveboard.spec.ts +77 -42
  125. package/src/embed/liveboard.ts +47 -5
  126. package/src/embed/pinboard.spec.ts +1 -0
  127. package/src/embed/search.spec.ts +16 -0
  128. package/src/embed/search.ts +12 -1
  129. package/src/embed/ts-embed.spec.ts +1 -0
  130. package/src/embed/ts-embed.ts +7 -3
  131. package/src/types.ts +263 -184
  132. package/src/utils/graphql/answerService/answer-queries.ts +0 -1
  133. package/src/utils/graphql/answerService/answerService.spec.ts +0 -1
  134. package/src/utils/processTrigger.spec.ts +18 -0
  135. package/src/utils/processTrigger.ts +1 -1
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.4 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.45.0 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -550,7 +550,11 @@
550
550
  exports.ListPageColumns = void 0;
551
551
  (function (ListPageColumns) {
552
552
  /**
553
- * Favourite
553
+ * Favorites
554
+ */
555
+ ListPageColumns["Favorites"] = "FAVOURITE";
556
+ /**
557
+ * @deprecated Use {@link ListPageColumns.Favorites} instead.
554
558
  */
555
559
  ListPageColumns["Favourite"] = "FAVOURITE";
556
560
  /**
@@ -569,6 +573,10 @@
569
573
  * Share
570
574
  */
571
575
  ListPageColumns["Share"] = "SHARE";
576
+ /**
577
+ * Verified badge/column
578
+ */
579
+ ListPageColumns["Verified"] = "VERIFIED";
572
580
  })(exports.ListPageColumns || (exports.ListPageColumns = {}));
573
581
  /**
574
582
  * Event types emitted by the embedded ThoughtSpot application.
@@ -785,7 +793,7 @@
785
793
  /**
786
794
  * An error has occurred. This event is fired for the following error types:
787
795
  *
788
- * `API` - API call failure error.
796
+ * `API` - API call failure.
789
797
  * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
790
798
  * mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
791
799
  * filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
@@ -1516,20 +1524,20 @@
1516
1524
  /**
1517
1525
  *
1518
1526
  * This event can be emitted to intercept search execution initiated by
1519
- * the users and implement the logic to allow or restrict search execution.
1520
- * You can can also show custom error text if the search query must be
1527
+ * users and implement logic to allow or restrict search execution.
1528
+ * You can also show custom error text if the search query must be
1521
1529
  * restricted due to your application or business requirements.
1522
1530
 
1523
1531
  * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1524
1532
  * for this embed event to get emitted.
1525
- * @param:payload The payload received from the embed related to the Data API call.
1526
- * @param:responder
1527
- * Contains elements that lets developers define whether ThoughtSpot
1528
- * should run the search, and if not, what error message
1529
- * should be shown to the user.
1533
+ * @param - Includes the following event listener parameters:
1534
+ * - `payload`: The payload received from the embed related to the Data API call.
1535
+ * - `responder`: Contains elements that let developers define whether ThoughtSpot
1536
+ * should run the search, and if not, what error message
1537
+ * should be shown to the user.
1530
1538
  *
1531
- * `execute` - When execute returns `true`, the search will be run.
1532
- * When execute returns `false`, the search will not be executed.
1539
+ * `execute` - When `execute` returns `true`, the search will be run.
1540
+ * When `execute` returns `false`, the search will not be executed.
1533
1541
  *
1534
1542
  * `error` - Developers can customize the error message text when `execute`
1535
1543
  * is `false` using the `errorText` and `errorDescription` parameters in responder.
@@ -1701,7 +1709,7 @@
1701
1709
  * console.log('payload', payload);
1702
1710
  * })
1703
1711
  * ```
1704
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1712
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1705
1713
  */
1706
1714
  EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
1707
1715
  /**
@@ -1920,14 +1928,14 @@
1920
1928
  * the search query string.
1921
1929
  * Supported in `AppEmbed` and `SearchEmbed` deployments.
1922
1930
  * Includes the following properties:
1923
- * @param - `searchQuery` - query string with search tokens
1924
- * @param - `dataSources` - Data source GUID to Search on
1925
- * - Although an array, only a single source
1926
- * is supported.
1927
- * @param - `execute` - executes search and updates the existing query
1931
+ * @param - Includes the following keys:
1932
+ * - `searchQuery`: Query string with search tokens.
1933
+ * - `dataSources`: Data source GUID to search on.
1934
+ * Although an array, only a single source is supported.
1935
+ * - `execute`: Executes search and updates the existing query.
1928
1936
  * @example
1929
1937
  * ```js
1930
- * searchembed.trigger(HostEvent.Search, {
1938
+ * searchEmbed.trigger(HostEvent.Search, {
1931
1939
  searchQuery: "[sales] by [item type]",
1932
1940
  dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
1933
1941
  execute: true
@@ -1938,16 +1946,15 @@
1938
1946
  /**
1939
1947
  * Triggers a drill on certain points of the specified column
1940
1948
  * Includes the following properties:
1941
- * @param - points - an object containing selectedPoints/clickedPoints
1942
- * to drill to. For example, { selectedPoints: []}
1943
- * @param - columnGuid - Optional. GUID of the column to drill
1944
- * by. If not provided it will auto drill by the configured
1945
- * column.
1946
- * @param - autoDrillDown - Optional. If true, the drill down will be
1947
- * done automatically on the most popular column.
1948
- * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1949
- * in case of a Liveboard.
1950
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
1949
+ * @param - Includes the following keys:
1950
+ * - `points`: An object containing `selectedPoints` and/or `clickedPoint`
1951
+ * to drill to. For example, `{ selectedPoints: [] }`.
1952
+ * - `columnGuid`: Optional. GUID of the column to drill by. If not provided,
1953
+ * it will auto drill by the configured column.
1954
+ * - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
1955
+ * on the most popular column.
1956
+ * - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
1957
+ * of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
1951
1958
  * @example
1952
1959
  * ```js
1953
1960
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -2040,14 +2047,12 @@
2040
2047
  * and `AppEmbed` only. In full application embedding, this event updates
2041
2048
  * the runtime filters applied on the Liveboard and saved Answer objects.
2042
2049
  *
2043
- * @param - Pass an array of {@link RuntimeFilter} with the following attributes:
2044
- * `columnName` - _String_. The name of the column to filter on.
2045
- *
2046
- * `operator` - {@link RuntimeFilterOp} to apply. For more information,
2047
- * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
2048
- *
2049
- * `values` - List of operands. Some operators such as EQ and LE allow a
2050
- * single value, whereas BW and IN accept multiple values.
2050
+ * @param - Array of {@link RuntimeFilter} objects. Each item includes:
2051
+ * - `columnName`: Name of the column to filter on.
2052
+ * - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
2053
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
2054
+ * - `values`: List of operands. Some operators such as EQ and LE allow a single
2055
+ * value, whereas BW and IN accept multiple values.
2051
2056
  *
2052
2057
  * **Note**: Updating runtime filters resets the ThoughtSpot
2053
2058
  * object to its original state and applies new filter conditions.
@@ -2070,7 +2075,7 @@
2070
2075
  /**
2071
2076
  * Navigate to a specific page in the embedded ThoughtSpot application.
2072
2077
  * This is the same as calling `appEmbed.navigateToPage(path, true)`.
2073
- * @param - `path` - the path to navigate to to go forward or back. The path value can
2078
+ * @param - `path` - the path to navigate to go forward or back. The path value can
2074
2079
  * be a number; for example, `1`, `-1`.
2075
2080
  * @example
2076
2081
  * ```js
@@ -2141,30 +2146,25 @@
2141
2146
  * for the Answer that the user is currently on
2142
2147
  * and a modal opens for Liveboard selection.
2143
2148
  * To add an Answer or visualization to a Liveboard programmatically without
2144
- * showing requiring additional user input via *Pin to Liveboard* modal, define
2149
+ * requiring additional user input via the *Pin to Liveboard* modal, define
2145
2150
  * the following parameters:
2146
2151
  *
2147
- * @param
2148
- * `vizId`- GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
2149
- * Optional when pinning a new chart or table generated from a Search query.
2150
- * **Required** in Spotter Embed.
2151
- * @param
2152
- * `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
2153
- * specify the `newLiveboardName` parameter to create a new Liveboard.
2154
- * @param
2155
- * `tabId` - GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
2156
- * specified in the code.
2157
- * @param
2158
- * `newVizName` - Name string for the Answer or visualization. If defined,
2159
- * this parameter adds a new visualization object or creates a copy of the
2160
- * Answer or visualization specified in `vizId`.
2161
- * Required attribute.
2162
- * @param
2163
- * `newLiveboardName` - Name string for the Liveboard.
2164
- * Creates a new Liveboard object with the specified name.
2165
- * @param
2166
- * `newTabName` - Name of the tab. Adds a new tab Liveboard specified
2167
- * in the code.
2152
+ * @param - Includes the following keys:
2153
+ * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
2154
+ * Optional when pinning a new chart or table generated from a Search query.
2155
+ * **Required** in Spotter Embed.
2156
+ * - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
2157
+ * specify the `newLiveboardName` parameter to create a new Liveboard.
2158
+ * - `tabId`: GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
2159
+ * specified in the code.
2160
+ * - `newVizName`: Name string for the Answer or visualization. If defined,
2161
+ * this parameter adds a new visualization object or creates a copy of the
2162
+ * Answer or visualization specified in `vizId`.
2163
+ * Required.
2164
+ * - `newLiveboardName`: Name string for the Liveboard.
2165
+ * Creates a new Liveboard object with the specified name.
2166
+ * - `newTabName`: Name of the tab. Adds a new tab Liveboard specified
2167
+ * in the code.
2168
2168
  *
2169
2169
  * @example
2170
2170
  * ```js
@@ -2404,9 +2404,9 @@
2404
2404
  * on a Liveboard.
2405
2405
  *
2406
2406
  * This event is not supported in visualization embed and search embed.
2407
- * @param - object - To trigger the action for a specific visualization
2408
- * in Liveboard embed, pass in `vizId` as a key.
2409
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2407
+ * @param - Object parameter. Includes the following keys:
2408
+ * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
2409
+ * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
2410
2410
  *
2411
2411
  * @example
2412
2412
  * ```js
@@ -2773,10 +2773,9 @@
2773
2773
  HostEvent["GetFilters"] = "getFilters";
2774
2774
  /**
2775
2775
  * Update one or several filters applied on a Liveboard.
2776
- * @param - `filter`: a single filter object containing column name,
2777
- * filter operator, and values.
2778
- * @param - `filters`: multiple filter objects with column name, filter operator,
2779
- * and values for each.
2776
+ * @param - Includes the following keys:
2777
+ * - `filter`: A single filter object containing column name, filter operator, and values.
2778
+ * - `filters`: Multiple filter objects with column name, filter operator, and values for each.
2780
2779
  *
2781
2780
  * Each filter object must include the following attributes:
2782
2781
  *
@@ -2902,8 +2901,9 @@
2902
2901
  HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
2903
2902
  /**
2904
2903
  * Updates the search query string for Natural Language Search operations.
2905
- * @param - `queryString`: Text string in Natural Language format
2906
- * @param - `executeSearch`: Boolean to execute search and update search query
2904
+ * @param - Includes the following keys:
2905
+ * - `queryString`: Text string in Natural Language format.
2906
+ * - `executeSearch`: Boolean to execute search and update search query.
2907
2907
  * @example
2908
2908
  * ```js
2909
2909
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -2982,11 +2982,10 @@
2982
2982
  /**
2983
2983
  * Triggers an action to update Parameter values on embedded
2984
2984
  * Answers, Liveboard, and Spotter answer in Edit mode.
2985
- * @param - `name` - Name of the Parameter
2986
- * @param - `value` - The value to set for the Parameter.
2987
- *
2988
- * Optionally, to control the visibility of the Parameter chip,
2989
- * use the `isVisibleToUser` attribute when applying an override.
2985
+ * @param - Includes the following keys for each item:
2986
+ * - `name`: Name of the parameter.
2987
+ * - `value`: The value to set for the parameter.
2988
+ * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
2990
2989
  *
2991
2990
  * @example
2992
2991
  * ```js
@@ -3044,11 +3043,10 @@
3044
3043
  * If no parameters are specified, the save action is
3045
3044
  * triggered with a modal to prompt users to
3046
3045
  * add a name and description for the Answer.
3047
- * @param - `vizId` refers to the Answer ID in Spotter embed
3048
- * and is required in Spotter embed.
3049
- * Optional attributes to set Answer properties include:
3050
- * @param - `name` - Name string for the Answer.
3051
- * @param - `description` - Description text for the Answer.
3046
+ * @param - Includes the following keys:
3047
+ * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
3048
+ * - `name`: Optional. Name string for the Answer.
3049
+ * - `description`: Optional. Description text for the Answer.
3052
3050
  * @example
3053
3051
  * ```js
3054
3052
  * const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
@@ -3097,8 +3095,9 @@
3097
3095
  /**
3098
3096
  * Triggers a search operation with the search tokens specified in
3099
3097
  * the search query string in spotter embed.
3100
- * @param - `query`: Text string in Natural Language format
3101
- * @param - `executeSearch`: Boolean to execute search and update search query
3098
+ * @param - Includes the following keys:
3099
+ * - `query`: Text string in Natural Language format.
3100
+ * - `executeSearch`: Boolean to execute search and update search query.
3102
3101
  * @example
3103
3102
  * ```js
3104
3103
  * spotterEmbed.trigger(HostEvent.SpotterSearch, {
@@ -3145,7 +3144,7 @@
3145
3144
  * ```js
3146
3145
  * spotterEmbed.trigger(HostEvent.DataModelInstructions);
3147
3146
  * ```
3148
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3147
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
3149
3148
  */
3150
3149
  HostEvent["DataModelInstructions"] = "DataModelInstructions";
3151
3150
  /**
@@ -3230,7 +3229,7 @@
3230
3229
  */
3231
3230
  HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
3232
3231
  /**
3233
- * Triggered when the embed is needed to be destroyed. This is used to clean up any embed related resources internally.
3232
+ * Triggered when the embed needs to be destroyed. This is used to clean up any embed-related resources internally.
3234
3233
  * @example
3235
3234
  * ```js
3236
3235
  * liveboardEmbed.trigger(HostEvent.DestroyEmbed);
@@ -3238,11 +3237,12 @@
3238
3237
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
3239
3238
  */
3240
3239
  HostEvent["DestroyEmbed"] = "EmbedDestroyed";
3241
- /** Triggers a create new conversation operation in spotter embed.
3242
- * @example
3243
- * ```js
3240
+ /**
3241
+ * Triggers a new conversation in Spotter embed.
3242
+ *
3244
3243
  * This feature is available only when chat history is enabled on your ThoughtSpot instance.
3245
3244
  * Contact your admin or ThoughtSpot Support to enable chat history on your instance.
3245
+ *
3246
3246
  * @example
3247
3247
  * ```js
3248
3248
  * spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
@@ -3399,12 +3399,14 @@
3399
3399
  Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
3400
3400
  Param["IsLazyLoadingForEmbedEnabled"] = "isLazyLoadingForEmbedEnabled";
3401
3401
  Param["RootMarginForLazyLoad"] = "rootMarginForLazyLoad";
3402
- Param["LiveboardXLSXCSVDownload"] = "isLiveboardXLSXCSVDownloadEnabled";
3403
3402
  Param["isPNGInScheduledEmailsEnabled"] = "isPNGInScheduledEmailsEnabled";
3403
+ Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
3404
+ Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
3404
3405
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
3405
3406
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3406
3407
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3407
3408
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3409
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3408
3410
  })(Param || (Param = {}));
3409
3411
  /**
3410
3412
  * ThoughtSpot application pages include actions and menu commands
@@ -3417,7 +3419,7 @@
3417
3419
  * ```js
3418
3420
  * const embed = new LiveboardEmbed('#tsEmbed', {
3419
3421
  * ... //other embed view config
3420
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3422
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3421
3423
  * disabledActions: [Action.Download],
3422
3424
  * //hiddenActions: [], // Set either this or visibleActions
3423
3425
  * })
@@ -3428,10 +3430,10 @@
3428
3430
  * ... //other embed view config
3429
3431
  * //visibleActions: [],
3430
3432
  * disabledActions: [Action.Download],
3431
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3433
+ * hiddenActions: [Action.Edit, Action.Explore],
3432
3434
  * })
3433
3435
  * ```
3434
- * See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
3436
+ * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
3435
3437
  */
3436
3438
  exports.Action = void 0;
3437
3439
  (function (Action) {
@@ -3719,6 +3721,16 @@
3719
3721
  * ```
3720
3722
  */
3721
3723
  Action["DownloadAsXlsx"] = "downloadAsXLSX";
3724
+ /**
3725
+ * The **Download Liveboard** menu action on a Liveboard.
3726
+ * Allows downloading the entire Liveboard.
3727
+ * @example
3728
+ * ```js
3729
+ * disabledActions: [Action.DownloadLiveboard]
3730
+ * ```
3731
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
3732
+ */
3733
+ Action["DownloadLiveboard"] = "downloadLiveboard";
3722
3734
  /**
3723
3735
  * @hidden
3724
3736
  */
@@ -3938,13 +3950,15 @@
3938
3950
  */
3939
3951
  Action["RequestAccess"] = "requestAccess";
3940
3952
  /**
3941
- * The **Query visualizer** and **Query SQL** buttons in
3942
- * Query details panel of the Answer page.
3953
+ * Controls the display and availability of the **Query visualizer** and
3954
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3943
3955
  *
3944
- * **Query visualizer** - Displays the tables
3945
- * and filters used in a search query.
3946
- * **Query SQL** - Displays the SQL statements used
3947
- * in a search query to fetch data.
3956
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3957
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3958
+ *
3959
+ * Note: This action ID only affects the visibility of the buttons within the
3960
+ * Query details panel. It does not control the visibility
3961
+ * of the query details icon on the Answer page.
3948
3962
  * @example
3949
3963
  * ```js
3950
3964
  * disabledActions: [Action.QueryDetailsButtons]
@@ -4058,28 +4072,28 @@
4058
4072
  Action["CrossFilter"] = "context-menu-item-cross-filter";
4059
4073
  /**
4060
4074
  * The **Sync to Slack** action on Liveboard visualizations.
4061
- * Allows sending data to third-party apps Slack
4075
+ * Allows sending data to third-party apps like Slack.
4062
4076
  * @example
4063
4077
  * ```js
4064
4078
  * disabledActions: [Action.SyncToSlack]
4065
4079
  * ```
4066
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
4080
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
4067
4081
  */
4068
4082
  Action["SyncToSlack"] = "syncToSlack";
4069
4083
  /**
4070
4084
  * The **Sync to Teams** action on Liveboard visualizations.
4071
- * Allows sending data to third-party apps Team
4085
+ * Allows sending data to third-party apps like Microsoft Teams.
4072
4086
  * @example
4073
4087
  * ```js
4074
4088
  * disabledActions: [Action.SyncToTeams]
4075
4089
  * ```
4076
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
4090
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
4077
4091
  */
4078
4092
  Action["SyncToTeams"] = "syncToTeams";
4079
4093
  /**
4080
4094
  * The **Remove** action that appears when cross filters are applied
4081
4095
  * on a Liveboard.
4082
- * Removes filters applied o a visualization.
4096
+ * Removes filters applied to a visualization.
4083
4097
  * @example
4084
4098
  * ```js
4085
4099
  * disabledActions: [Action.RemoveCrossFilter]
@@ -4265,7 +4279,7 @@
4265
4279
  Action["AddTab"] = "addTab";
4266
4280
  /**
4267
4281
  *
4268
- *Initiates contextual change analysis on KPI charts.
4282
+ * Initiates contextual change analysis on KPI charts.
4269
4283
  * @example
4270
4284
  * ```js
4271
4285
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -4275,7 +4289,7 @@
4275
4289
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
4276
4290
  /**
4277
4291
  * Action ID to hide or disable Iterative Change Analysis option
4278
- * on contextual change analysis Inisght charts context menu
4292
+ * in the contextual change analysis Insight charts context menu.
4279
4293
  *
4280
4294
  * @example
4281
4295
  * ```js
@@ -4553,6 +4567,17 @@
4553
4567
  * @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
4554
4568
  */
4555
4569
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
4570
+ /**
4571
+ * The **Data model instructions** button on the Spotter interface.
4572
+ * Allows opening the data model instructions modal.
4573
+ *
4574
+ * @example
4575
+ * ```js
4576
+ * hiddenAction: [Action.DataModelInstructions]
4577
+ * ```
4578
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4579
+ */
4580
+ Action["DataModelInstructions"] = "DataModelInstructions";
4556
4581
  /**
4557
4582
  * The **Preview data** button on the Spotter interface.
4558
4583
  * Allows previewing the data used for Spotter queries.
@@ -4638,12 +4663,11 @@
4638
4663
  */
4639
4664
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4640
4665
  /**
4641
- * Action ID for hide or disable the
4642
- * Spotter in conversation training widget.
4643
- * The Add to Coaching feature is currently in beta
4644
- * and is disabled by default on embed deployments.
4645
- * To enable this feature on your instance,
4646
- * contact ThoughtSpot Support.
4666
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4667
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4668
+ * The **Add to Coaching** feature allows adding reference questions and
4669
+ * business terms to improve Spotter’s responses. This feature is generally available
4670
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4647
4671
  * @example
4648
4672
  * ```js
4649
4673
  * hiddenAction: [Action.InConversationTraining]
@@ -4719,6 +4743,55 @@
4719
4743
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4720
4744
  */
4721
4745
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4746
+ /**
4747
+ * The **Publish** action for Liveboards, Answers and Models.
4748
+ * Opens the publishing modal. It's a parent action for the
4749
+ * **Manage Publishing** and **Unpublish** actions if the object
4750
+ * is already published, otherwise appears standalone.
4751
+ * @example
4752
+ * ```js
4753
+ * hiddenActions: [Action.Publish]
4754
+ * disabledActions: [Action.Publish]
4755
+ * ```
4756
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4757
+ */
4758
+ Action["Publish"] = "publish";
4759
+ /**
4760
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4761
+ * Opens the same publishing modal as the **Publish** action.
4762
+ * Appears as a child action to the **Publish** action if the
4763
+ * object is already published.
4764
+ * @example
4765
+ * ```js
4766
+ * hiddenActions: [Action.ManagePublishing]
4767
+ * disabledActions: [Action.ManagePublishing]
4768
+ * ```
4769
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4770
+ */
4771
+ Action["ManagePublishing"] = "managePublishing";
4772
+ /**
4773
+ * The **Unpublish** action for Liveboards, Answers and Models.
4774
+ * Opens the unpublishing modal. Appears as a child action to
4775
+ * the **Publish** action if the object is already published.
4776
+ * @example
4777
+ * ```js
4778
+ * hiddenActions: [Action.Unpublish]
4779
+ * disabledActions: [Action.Unpublish]
4780
+ * ```
4781
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4782
+ */
4783
+ Action["Unpublish"] = "unpublish";
4784
+ /**
4785
+ * The **Parameterize** action for Tables and Connections.
4786
+ * Opens the parameterization modal.
4787
+ * @example
4788
+ * ```js
4789
+ * hiddenActions: [Action.Parameterize]
4790
+ * disabledActions: [Action.Parameterize]
4791
+ * ```
4792
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4793
+ */
4794
+ Action["Parameterize"] = "parameterise";
4722
4795
  /**
4723
4796
  * The **Move to Group** menu action on a Liveboard.
4724
4797
  * Allows moving a visualization to a different group.
@@ -4759,6 +4832,18 @@
4759
4832
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4760
4833
  */
4761
4834
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4835
+ /**
4836
+ * The **Include current period** checkbox for date filters.
4837
+ * Controls the visibility and availability of the option to include
4838
+ * the current time period in filter results.
4839
+ * @example
4840
+ * ```js
4841
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4842
+ * disabledActions: [Action.IncludeCurrentPeriod]
4843
+ * ```
4844
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4845
+ */
4846
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4762
4847
  })(exports.Action || (exports.Action = {}));
4763
4848
  var PrefetchFeatures;
4764
4849
  (function (PrefetchFeatures) {
@@ -4903,31 +4988,19 @@
4903
4988
  ErrorDetailsTypes["NETWORK"] = "NETWORK";
4904
4989
  })(ErrorDetailsTypes || (ErrorDetailsTypes = {}));
4905
4990
  /**
4906
- * Specific error codes for embedded component errors.
4907
- *
4908
- * These codes provide granular identification of errors that occur in embedded components.
4909
- * They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
4910
- * precise error handling and debugging.
4991
+ * Error codes for identifying specific issues in embedded ThoughtSpot components.
4911
4992
  *
4912
- * The codes are organized into categories:
4913
- * - **Worksheet ID not found or does not exist**: Errors related to applying or updating filters
4914
- * - **Liveboard ID missing**: Errors related to missing liveboard ID
4915
- * - **Conflicting actions configuration**: Errors related to conflicting actions configuration
4916
- * - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
4917
- * - **Initialization error**: Errors related to initialization error
4918
- * - **Network error**: Errors related to network error
4919
- * - **Custom action validation**: Errors related to custom action validation
4920
- * - **Login failed**: Errors related to login failed
4921
- * - **Render not called**: Errors related to render not called
4922
- * - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
4993
+ * Use these codes for precise error handling and debugging. Each code maps to a
4994
+ * distinct failure scenario, enabling targeted recovery strategies.
4923
4995
  *
4924
4996
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
4925
4997
  * @group Error Handling
4998
+ *
4926
4999
  * @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
4927
5000
  * @see {@link ErrorDetailsTypes} - General error type categories
4928
5001
  *
4929
5002
  * @example
4930
- * Handle specific error codes
5003
+ * Handle specific error codes in the error event handler
4931
5004
  *
4932
5005
  * embed.on(EmbedEvent.Error, (error) => {
4933
5006
  * if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
@@ -8416,7 +8489,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
8416
8489
  const getSQLQuery = `
8417
8490
  mutation GetSQLQuery($session: BachSessionIdInput!) {
8418
8491
  Answer__getQuery(session: $session) {
8419
- ${bachSessionId}
8420
8492
  sql
8421
8493
  }
8422
8494
  }
@@ -17642,7 +17714,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17642
17714
  channel.port1.onmessage = ({ data: responseData }) => {
17643
17715
  var _a;
17644
17716
  channel.port1.close();
17645
- const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17717
+ const error = (responseData === null || responseData === void 0 ? void 0 : responseData.error) || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17646
17718
  if (error) {
17647
17719
  rej(error);
17648
17720
  }
@@ -18001,7 +18073,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18001
18073
  return eventData;
18002
18074
  }
18003
18075
 
18004
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
18076
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"32 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
18005
18077
 
18006
18078
  class HostEventClient {
18007
18079
  constructor(iFrame) {
@@ -18493,8 +18565,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18493
18565
  this.eventHandlerMap = new Map();
18494
18566
  this.isError = false;
18495
18567
  this.viewConfig = {
18496
- excludeRuntimeFiltersfromURL: false,
18497
- excludeRuntimeParametersfromURL: false,
18568
+ excludeRuntimeFiltersfromURL: true,
18569
+ excludeRuntimeParametersfromURL: true,
18498
18570
  ...viewConfig,
18499
18571
  };
18500
18572
  this.registerAppInit();
@@ -19686,7 +19758,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19686
19758
  * @hidden
19687
19759
  */
19688
19760
  this.test__executeCallbacks = this.executeCallbacks;
19689
- this.viewConfig = { excludeRuntimeFiltersfromURL: false, ...viewConfig };
19761
+ this.viewConfig = {
19762
+ excludeRuntimeFiltersfromURL: true,
19763
+ excludeRuntimeParametersfromURL: true,
19764
+ ...viewConfig,
19765
+ };
19690
19766
  }
19691
19767
  /**
19692
19768
  * Render the app in an iframe and set up event handlers
@@ -19931,7 +20007,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19931
20007
  */
19932
20008
  let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
19933
20009
  constructor(domSelector, viewConfig) {
19934
- viewConfig.embedComponentType = 'SearchEmbed';
20010
+ viewConfig = {
20011
+ embedComponentType: 'SearchEmbed',
20012
+ excludeRuntimeFiltersfromURL: true,
20013
+ excludeRuntimeParametersfromURL: true,
20014
+ ...viewConfig,
20015
+ };
19935
20016
  super(domSelector, viewConfig);
19936
20017
  }
19937
20018
  /**
@@ -19965,7 +20046,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19965
20046
  }
19966
20047
  getEmbedParamsObject() {
19967
20048
  var _a;
19968
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
20049
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
19969
20050
  const queryParams = this.getBaseQueryParams();
19970
20051
  queryParams[Param.HideActions] = [
19971
20052
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -20000,6 +20081,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20000
20081
  if (!focusSearchBarOnRender) {
20001
20082
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
20002
20083
  }
20084
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20085
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20086
+ }
20003
20087
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
20004
20088
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
20005
20089
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
@@ -20254,7 +20338,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20254
20338
  * embedded Liveboard or visualization.
20255
20339
  */
20256
20340
  getEmbedParams() {
20257
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, } = this.viewConfig;
20341
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20258
20342
  let params = {};
20259
20343
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20260
20344
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20323,12 +20407,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20323
20407
  if (isLiveboardStylingAndGroupingEnabled !== undefined) {
20324
20408
  params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
20325
20409
  }
20326
- if (liveboardXLSXCSVDownload !== undefined) {
20327
- params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
20328
- }
20329
20410
  if (isPNGInScheduledEmailsEnabled !== undefined) {
20330
20411
  params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
20331
20412
  }
20413
+ if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
20414
+ params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
20415
+ }
20416
+ if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
20417
+ params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
20418
+ }
20332
20419
  if (hideTagFilterChips !== undefined) {
20333
20420
  params[Param.HideTagFilterChips] = hideTagFilterChips;
20334
20421
  }
@@ -20338,6 +20425,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20338
20425
  if (isCentralizedLiveboardFilterUXEnabled != undefined) {
20339
20426
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20340
20427
  }
20428
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20429
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20430
+ }
20341
20431
  this.defaultHeight = minimumHeight || this.defaultHeight;
20342
20432
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20343
20433
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20693,7 +20783,7 @@ query GetEurekaVizSnapshots(
20693
20783
  getEmbedParamsObject() {
20694
20784
  let params = {};
20695
20785
  params = this.getBaseQueryParams(params);
20696
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, liveboardXLSXCSVDownload, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, } = this.viewConfig;
20786
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20697
20787
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20698
20788
  || this.viewConfig.preventPinboardFilterRemoval;
20699
20789
  if (fullHeight === true) {
@@ -20758,6 +20848,12 @@ query GetEurekaVizSnapshots(
20758
20848
  if (isPNGInScheduledEmailsEnabled !== undefined) {
20759
20849
  params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
20760
20850
  }
20851
+ if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
20852
+ params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
20853
+ }
20854
+ if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
20855
+ params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
20856
+ }
20761
20857
  if (showSpotterLimitations !== undefined) {
20762
20858
  params[Param.ShowSpotterLimitations] = showSpotterLimitations;
20763
20859
  }
@@ -20767,6 +20863,9 @@ query GetEurekaVizSnapshots(
20767
20863
  if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
20768
20864
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20769
20865
  }
20866
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20867
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20868
+ }
20770
20869
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
20771
20870
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
20772
20871
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -20778,9 +20877,6 @@ query GetEurekaVizSnapshots(
20778
20877
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20779
20878
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
20780
20879
  params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
20781
- if (liveboardXLSXCSVDownload !== undefined) {
20782
- params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
20783
- }
20784
20880
  getQueryParamString(params, true);
20785
20881
  return params;
20786
20882
  }
@@ -21507,7 +21603,12 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21507
21603
  */
21508
21604
  let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
21509
21605
  constructor(container, viewConfig) {
21510
- viewConfig.embedComponentType = 'conversation';
21606
+ viewConfig = {
21607
+ embedComponentType: 'conversation',
21608
+ excludeRuntimeFiltersfromURL: true,
21609
+ excludeRuntimeParametersfromURL: true,
21610
+ ...viewConfig,
21611
+ };
21511
21612
  super(container, viewConfig);
21512
21613
  this.viewConfig = viewConfig;
21513
21614
  }
@@ -21595,7 +21696,12 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21595
21696
  */
21596
21697
  let ConversationEmbed$1 = class ConversationEmbed extends SpotterEmbed$1 {
21597
21698
  constructor(container, viewConfig) {
21598
- viewConfig.embedComponentType = 'conversation';
21699
+ viewConfig = {
21700
+ embedComponentType: 'conversation',
21701
+ excludeRuntimeFiltersfromURL: true,
21702
+ excludeRuntimeParametersfromURL: true,
21703
+ ...viewConfig,
21704
+ };
21599
21705
  super(container, viewConfig);
21600
21706
  this.viewConfig = viewConfig;
21601
21707
  }