@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.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +33 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +28 -7
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +10 -6
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +12 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +3 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +1 -0
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +32 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +10 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +57 -33
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +1 -0
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +1 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +10 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +12 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +7 -3
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +1 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +236 -158
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +198 -125
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +0 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +0 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +1 -1
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +12 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/dist/{index-C5FAW929.js → index-Dk-SLdNk.js} +1 -1
- package/dist/src/embed/app.d.ts +33 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +10 -6
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +32 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +1 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +236 -158
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +251 -145
- package/dist/tsembed-react.js +250 -144
- package/dist/tsembed.es.js +251 -145
- package/dist/tsembed.js +250 -144
- package/dist/visual-embed-sdk-react-full.d.ts +303 -146
- package/dist/visual-embed-sdk-react.d.ts +303 -146
- package/dist/visual-embed-sdk.d.ts +308 -163
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +33 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +10 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +28 -7
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +10 -6
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +12 -2
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +3 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +1 -0
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +32 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +10 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +57 -33
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +1 -0
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +1 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +10 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +12 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +7 -3
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +1 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +236 -158
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +198 -125
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +0 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +0 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +12 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.spec.ts +39 -7
- package/src/embed/app.ts +50 -6
- package/src/embed/conversation.spec.ts +3 -0
- package/src/embed/conversation.ts +22 -8
- package/src/embed/embed.spec.ts +1 -0
- package/src/embed/liveboard.spec.ts +77 -42
- package/src/embed/liveboard.ts +47 -5
- package/src/embed/pinboard.spec.ts +1 -0
- package/src/embed/search.spec.ts +16 -0
- package/src/embed/search.ts +12 -1
- package/src/embed/ts-embed.spec.ts +1 -0
- package/src/embed/ts-embed.ts +7 -3
- package/src/types.ts +263 -184
- package/src/utils/graphql/answerService/answer-queries.ts +0 -1
- package/src/utils/graphql/answerService/answerService.spec.ts +0 -1
- package/src/utils/processTrigger.spec.ts +18 -0
- package/src/utils/processTrigger.ts +1 -1
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.45.0 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -528,7 +528,11 @@ var HomepageModule;
|
|
|
528
528
|
var ListPageColumns;
|
|
529
529
|
(function (ListPageColumns) {
|
|
530
530
|
/**
|
|
531
|
-
*
|
|
531
|
+
* Favorites
|
|
532
|
+
*/
|
|
533
|
+
ListPageColumns["Favorites"] = "FAVOURITE";
|
|
534
|
+
/**
|
|
535
|
+
* @deprecated Use {@link ListPageColumns.Favorites} instead.
|
|
532
536
|
*/
|
|
533
537
|
ListPageColumns["Favourite"] = "FAVOURITE";
|
|
534
538
|
/**
|
|
@@ -547,6 +551,10 @@ var ListPageColumns;
|
|
|
547
551
|
* Share
|
|
548
552
|
*/
|
|
549
553
|
ListPageColumns["Share"] = "SHARE";
|
|
554
|
+
/**
|
|
555
|
+
* Verified badge/column
|
|
556
|
+
*/
|
|
557
|
+
ListPageColumns["Verified"] = "VERIFIED";
|
|
550
558
|
})(ListPageColumns || (ListPageColumns = {}));
|
|
551
559
|
/**
|
|
552
560
|
* Event types emitted by the embedded ThoughtSpot application.
|
|
@@ -763,7 +771,7 @@ var EmbedEvent;
|
|
|
763
771
|
/**
|
|
764
772
|
* An error has occurred. This event is fired for the following error types:
|
|
765
773
|
*
|
|
766
|
-
* `API` - API call failure
|
|
774
|
+
* `API` - API call failure.
|
|
767
775
|
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
|
|
768
776
|
* mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
|
|
769
777
|
* filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
@@ -1494,20 +1502,20 @@ var EmbedEvent;
|
|
|
1494
1502
|
/**
|
|
1495
1503
|
*
|
|
1496
1504
|
* This event can be emitted to intercept search execution initiated by
|
|
1497
|
-
*
|
|
1498
|
-
* You can
|
|
1505
|
+
* users and implement logic to allow or restrict search execution.
|
|
1506
|
+
* You can also show custom error text if the search query must be
|
|
1499
1507
|
* restricted due to your application or business requirements.
|
|
1500
1508
|
|
|
1501
1509
|
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1502
1510
|
* for this embed event to get emitted.
|
|
1503
|
-
* @param
|
|
1504
|
-
*
|
|
1505
|
-
* Contains elements that
|
|
1506
|
-
*
|
|
1507
|
-
*
|
|
1511
|
+
* @param - Includes the following event listener parameters:
|
|
1512
|
+
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1513
|
+
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1514
|
+
* should run the search, and if not, what error message
|
|
1515
|
+
* should be shown to the user.
|
|
1508
1516
|
*
|
|
1509
|
-
* `execute` - When execute returns `true`, the search will be run.
|
|
1510
|
-
* When execute returns `false`, the search will not be executed.
|
|
1517
|
+
* `execute` - When `execute` returns `true`, the search will be run.
|
|
1518
|
+
* When `execute` returns `false`, the search will not be executed.
|
|
1511
1519
|
*
|
|
1512
1520
|
* `error` - Developers can customize the error message text when `execute`
|
|
1513
1521
|
* is `false` using the `errorText` and `errorDescription` parameters in responder.
|
|
@@ -1679,7 +1687,7 @@ var EmbedEvent;
|
|
|
1679
1687
|
* console.log('payload', payload);
|
|
1680
1688
|
* })
|
|
1681
1689
|
* ```
|
|
1682
|
-
* @version SDK: 1.
|
|
1690
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
1683
1691
|
*/
|
|
1684
1692
|
EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
1685
1693
|
/**
|
|
@@ -1898,14 +1906,14 @@ var HostEvent;
|
|
|
1898
1906
|
* the search query string.
|
|
1899
1907
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
1900
1908
|
* Includes the following properties:
|
|
1901
|
-
* @param -
|
|
1902
|
-
*
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1905
|
-
*
|
|
1909
|
+
* @param - Includes the following keys:
|
|
1910
|
+
* - `searchQuery`: Query string with search tokens.
|
|
1911
|
+
* - `dataSources`: Data source GUID to search on.
|
|
1912
|
+
* Although an array, only a single source is supported.
|
|
1913
|
+
* - `execute`: Executes search and updates the existing query.
|
|
1906
1914
|
* @example
|
|
1907
1915
|
* ```js
|
|
1908
|
-
*
|
|
1916
|
+
* searchEmbed.trigger(HostEvent.Search, {
|
|
1909
1917
|
searchQuery: "[sales] by [item type]",
|
|
1910
1918
|
dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
|
|
1911
1919
|
execute: true
|
|
@@ -1916,16 +1924,15 @@ var HostEvent;
|
|
|
1916
1924
|
/**
|
|
1917
1925
|
* Triggers a drill on certain points of the specified column
|
|
1918
1926
|
* Includes the following properties:
|
|
1919
|
-
* @param -
|
|
1920
|
-
*
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
* column.
|
|
1924
|
-
*
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
1927
|
+
* @param - Includes the following keys:
|
|
1928
|
+
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
1929
|
+
* to drill to. For example, `{ selectedPoints: [] }`.
|
|
1930
|
+
* - `columnGuid`: Optional. GUID of the column to drill by. If not provided,
|
|
1931
|
+
* it will auto drill by the configured column.
|
|
1932
|
+
* - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
|
|
1933
|
+
* on the most popular column.
|
|
1934
|
+
* - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
|
|
1935
|
+
* of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
|
|
1929
1936
|
* @example
|
|
1930
1937
|
* ```js
|
|
1931
1938
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -2018,14 +2025,12 @@ var HostEvent;
|
|
|
2018
2025
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
2019
2026
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
2020
2027
|
*
|
|
2021
|
-
* @param -
|
|
2022
|
-
* `columnName
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
2027
|
-
* `values` - List of operands. Some operators such as EQ and LE allow a
|
|
2028
|
-
* single value, whereas BW and IN accept multiple values.
|
|
2028
|
+
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
2029
|
+
* - `columnName`: Name of the column to filter on.
|
|
2030
|
+
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
2031
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2032
|
+
* - `values`: List of operands. Some operators such as EQ and LE allow a single
|
|
2033
|
+
* value, whereas BW and IN accept multiple values.
|
|
2029
2034
|
*
|
|
2030
2035
|
* **Note**: Updating runtime filters resets the ThoughtSpot
|
|
2031
2036
|
* object to its original state and applies new filter conditions.
|
|
@@ -2048,7 +2053,7 @@ var HostEvent;
|
|
|
2048
2053
|
/**
|
|
2049
2054
|
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
2050
2055
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`.
|
|
2051
|
-
* @param - `path` - the path to navigate to
|
|
2056
|
+
* @param - `path` - the path to navigate to go forward or back. The path value can
|
|
2052
2057
|
* be a number; for example, `1`, `-1`.
|
|
2053
2058
|
* @example
|
|
2054
2059
|
* ```js
|
|
@@ -2119,30 +2124,25 @@ var HostEvent;
|
|
|
2119
2124
|
* for the Answer that the user is currently on
|
|
2120
2125
|
* and a modal opens for Liveboard selection.
|
|
2121
2126
|
* To add an Answer or visualization to a Liveboard programmatically without
|
|
2122
|
-
*
|
|
2127
|
+
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
2123
2128
|
* the following parameters:
|
|
2124
2129
|
*
|
|
2125
|
-
* @param
|
|
2126
|
-
* `vizId
|
|
2127
|
-
*
|
|
2128
|
-
*
|
|
2129
|
-
*
|
|
2130
|
-
* `
|
|
2131
|
-
*
|
|
2132
|
-
*
|
|
2133
|
-
*
|
|
2134
|
-
*
|
|
2135
|
-
*
|
|
2136
|
-
*
|
|
2137
|
-
*
|
|
2138
|
-
*
|
|
2139
|
-
*
|
|
2140
|
-
*
|
|
2141
|
-
* `newLiveboardName` - Name string for the Liveboard.
|
|
2142
|
-
* Creates a new Liveboard object with the specified name.
|
|
2143
|
-
* @param
|
|
2144
|
-
* `newTabName` - Name of the tab. Adds a new tab Liveboard specified
|
|
2145
|
-
* in the code.
|
|
2130
|
+
* @param - Includes the following keys:
|
|
2131
|
+
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
|
|
2132
|
+
* Optional when pinning a new chart or table generated from a Search query.
|
|
2133
|
+
* **Required** in Spotter Embed.
|
|
2134
|
+
* - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
2135
|
+
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
2136
|
+
* - `tabId`: GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
|
|
2137
|
+
* specified in the code.
|
|
2138
|
+
* - `newVizName`: Name string for the Answer or visualization. If defined,
|
|
2139
|
+
* this parameter adds a new visualization object or creates a copy of the
|
|
2140
|
+
* Answer or visualization specified in `vizId`.
|
|
2141
|
+
* Required.
|
|
2142
|
+
* - `newLiveboardName`: Name string for the Liveboard.
|
|
2143
|
+
* Creates a new Liveboard object with the specified name.
|
|
2144
|
+
* - `newTabName`: Name of the tab. Adds a new tab Liveboard specified
|
|
2145
|
+
* in the code.
|
|
2146
2146
|
*
|
|
2147
2147
|
* @example
|
|
2148
2148
|
* ```js
|
|
@@ -2382,9 +2382,9 @@ var HostEvent;
|
|
|
2382
2382
|
* on a Liveboard.
|
|
2383
2383
|
*
|
|
2384
2384
|
* This event is not supported in visualization embed and search embed.
|
|
2385
|
-
* @param -
|
|
2386
|
-
*
|
|
2387
|
-
*
|
|
2385
|
+
* @param - Object parameter. Includes the following keys:
|
|
2386
|
+
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
2387
|
+
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
|
|
2388
2388
|
*
|
|
2389
2389
|
* @example
|
|
2390
2390
|
* ```js
|
|
@@ -2751,10 +2751,9 @@ var HostEvent;
|
|
|
2751
2751
|
HostEvent["GetFilters"] = "getFilters";
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Update one or several filters applied on a Liveboard.
|
|
2754
|
-
* @param -
|
|
2755
|
-
* filter operator, and values.
|
|
2756
|
-
*
|
|
2757
|
-
* and values for each.
|
|
2754
|
+
* @param - Includes the following keys:
|
|
2755
|
+
* - `filter`: A single filter object containing column name, filter operator, and values.
|
|
2756
|
+
* - `filters`: Multiple filter objects with column name, filter operator, and values for each.
|
|
2758
2757
|
*
|
|
2759
2758
|
* Each filter object must include the following attributes:
|
|
2760
2759
|
*
|
|
@@ -2880,8 +2879,9 @@ var HostEvent;
|
|
|
2880
2879
|
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
2881
2880
|
/**
|
|
2882
2881
|
* Updates the search query string for Natural Language Search operations.
|
|
2883
|
-
* @param -
|
|
2884
|
-
*
|
|
2882
|
+
* @param - Includes the following keys:
|
|
2883
|
+
* - `queryString`: Text string in Natural Language format.
|
|
2884
|
+
* - `executeSearch`: Boolean to execute search and update search query.
|
|
2885
2885
|
* @example
|
|
2886
2886
|
* ```js
|
|
2887
2887
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -2960,11 +2960,10 @@ var HostEvent;
|
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Triggers an action to update Parameter values on embedded
|
|
2962
2962
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
2963
|
-
* @param -
|
|
2964
|
-
*
|
|
2965
|
-
*
|
|
2966
|
-
*
|
|
2967
|
-
* use the `isVisibleToUser` attribute when applying an override.
|
|
2963
|
+
* @param - Includes the following keys for each item:
|
|
2964
|
+
* - `name`: Name of the parameter.
|
|
2965
|
+
* - `value`: The value to set for the parameter.
|
|
2966
|
+
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
2968
2967
|
*
|
|
2969
2968
|
* @example
|
|
2970
2969
|
* ```js
|
|
@@ -3022,11 +3021,10 @@ var HostEvent;
|
|
|
3022
3021
|
* If no parameters are specified, the save action is
|
|
3023
3022
|
* triggered with a modal to prompt users to
|
|
3024
3023
|
* add a name and description for the Answer.
|
|
3025
|
-
* @param -
|
|
3026
|
-
* and is required in Spotter embed.
|
|
3027
|
-
* Optional
|
|
3028
|
-
*
|
|
3029
|
-
* @param - `description` - Description text for the Answer.
|
|
3024
|
+
* @param - Includes the following keys:
|
|
3025
|
+
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
|
|
3026
|
+
* - `name`: Optional. Name string for the Answer.
|
|
3027
|
+
* - `description`: Optional. Description text for the Answer.
|
|
3030
3028
|
* @example
|
|
3031
3029
|
* ```js
|
|
3032
3030
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -3075,8 +3073,9 @@ var HostEvent;
|
|
|
3075
3073
|
/**
|
|
3076
3074
|
* Triggers a search operation with the search tokens specified in
|
|
3077
3075
|
* the search query string in spotter embed.
|
|
3078
|
-
* @param -
|
|
3079
|
-
*
|
|
3076
|
+
* @param - Includes the following keys:
|
|
3077
|
+
* - `query`: Text string in Natural Language format.
|
|
3078
|
+
* - `executeSearch`: Boolean to execute search and update search query.
|
|
3080
3079
|
* @example
|
|
3081
3080
|
* ```js
|
|
3082
3081
|
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
@@ -3123,7 +3122,7 @@ var HostEvent;
|
|
|
3123
3122
|
* ```js
|
|
3124
3123
|
* spotterEmbed.trigger(HostEvent.DataModelInstructions);
|
|
3125
3124
|
* ```
|
|
3126
|
-
* @version SDK: 1.
|
|
3125
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
3127
3126
|
*/
|
|
3128
3127
|
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
3129
3128
|
/**
|
|
@@ -3208,7 +3207,7 @@ var HostEvent;
|
|
|
3208
3207
|
*/
|
|
3209
3208
|
HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
|
|
3210
3209
|
/**
|
|
3211
|
-
* Triggered when the embed
|
|
3210
|
+
* Triggered when the embed needs to be destroyed. This is used to clean up any embed-related resources internally.
|
|
3212
3211
|
* @example
|
|
3213
3212
|
* ```js
|
|
3214
3213
|
* liveboardEmbed.trigger(HostEvent.DestroyEmbed);
|
|
@@ -3216,11 +3215,12 @@ var HostEvent;
|
|
|
3216
3215
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
3217
3216
|
*/
|
|
3218
3217
|
HostEvent["DestroyEmbed"] = "EmbedDestroyed";
|
|
3219
|
-
/**
|
|
3220
|
-
*
|
|
3221
|
-
*
|
|
3218
|
+
/**
|
|
3219
|
+
* Triggers a new conversation in Spotter embed.
|
|
3220
|
+
*
|
|
3222
3221
|
* This feature is available only when chat history is enabled on your ThoughtSpot instance.
|
|
3223
3222
|
* Contact your admin or ThoughtSpot Support to enable chat history on your instance.
|
|
3223
|
+
*
|
|
3224
3224
|
* @example
|
|
3225
3225
|
* ```js
|
|
3226
3226
|
* spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
|
|
@@ -3377,12 +3377,14 @@ var Param;
|
|
|
3377
3377
|
Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
|
|
3378
3378
|
Param["IsLazyLoadingForEmbedEnabled"] = "isLazyLoadingForEmbedEnabled";
|
|
3379
3379
|
Param["RootMarginForLazyLoad"] = "rootMarginForLazyLoad";
|
|
3380
|
-
Param["LiveboardXLSXCSVDownload"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
3381
3380
|
Param["isPNGInScheduledEmailsEnabled"] = "isPNGInScheduledEmailsEnabled";
|
|
3381
|
+
Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
3382
|
+
Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
|
|
3382
3383
|
Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
|
|
3383
3384
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
3384
3385
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
3385
3386
|
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
3387
|
+
Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
|
|
3386
3388
|
})(Param || (Param = {}));
|
|
3387
3389
|
/**
|
|
3388
3390
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3395,7 +3397,7 @@ var Param;
|
|
|
3395
3397
|
* ```js
|
|
3396
3398
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
3397
3399
|
* ... //other embed view config
|
|
3398
|
-
* visibleActions: [Action.Save, Action.Edit, Action.Present,
|
|
3400
|
+
* visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
|
|
3399
3401
|
* disabledActions: [Action.Download],
|
|
3400
3402
|
* //hiddenActions: [], // Set either this or visibleActions
|
|
3401
3403
|
* })
|
|
@@ -3406,10 +3408,10 @@ var Param;
|
|
|
3406
3408
|
* ... //other embed view config
|
|
3407
3409
|
* //visibleActions: [],
|
|
3408
3410
|
* disabledActions: [Action.Download],
|
|
3409
|
-
* hiddenActions: [Action.Edit,
|
|
3411
|
+
* hiddenActions: [Action.Edit, Action.Explore],
|
|
3410
3412
|
* })
|
|
3411
3413
|
* ```
|
|
3412
|
-
* See also link:https://developers.thoughtspot.com/docs/actions[
|
|
3414
|
+
* See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
|
|
3413
3415
|
*/
|
|
3414
3416
|
var Action;
|
|
3415
3417
|
(function (Action) {
|
|
@@ -3697,6 +3699,16 @@ var Action;
|
|
|
3697
3699
|
* ```
|
|
3698
3700
|
*/
|
|
3699
3701
|
Action["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
3702
|
+
/**
|
|
3703
|
+
* The **Download Liveboard** menu action on a Liveboard.
|
|
3704
|
+
* Allows downloading the entire Liveboard.
|
|
3705
|
+
* @example
|
|
3706
|
+
* ```js
|
|
3707
|
+
* disabledActions: [Action.DownloadLiveboard]
|
|
3708
|
+
* ```
|
|
3709
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
3710
|
+
*/
|
|
3711
|
+
Action["DownloadLiveboard"] = "downloadLiveboard";
|
|
3700
3712
|
/**
|
|
3701
3713
|
* @hidden
|
|
3702
3714
|
*/
|
|
@@ -3916,13 +3928,15 @@ var Action;
|
|
|
3916
3928
|
*/
|
|
3917
3929
|
Action["RequestAccess"] = "requestAccess";
|
|
3918
3930
|
/**
|
|
3919
|
-
*
|
|
3920
|
-
* Query details panel
|
|
3931
|
+
* Controls the display and availability of the **Query visualizer** and
|
|
3932
|
+
* **Query SQL** buttons in the Query details panel on the Answer page.
|
|
3921
3933
|
*
|
|
3922
|
-
* **Query visualizer** - Displays the tables
|
|
3923
|
-
*
|
|
3924
|
-
*
|
|
3925
|
-
*
|
|
3934
|
+
* **Query visualizer** - Displays the tables and filters used in the search query.
|
|
3935
|
+
* **Query SQL** - Displays the SQL statements used to retrieve data for the query.
|
|
3936
|
+
*
|
|
3937
|
+
* Note: This action ID only affects the visibility of the buttons within the
|
|
3938
|
+
* Query details panel. It does not control the visibility
|
|
3939
|
+
* of the query details icon on the Answer page.
|
|
3926
3940
|
* @example
|
|
3927
3941
|
* ```js
|
|
3928
3942
|
* disabledActions: [Action.QueryDetailsButtons]
|
|
@@ -4036,28 +4050,28 @@ var Action;
|
|
|
4036
4050
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
4037
4051
|
/**
|
|
4038
4052
|
* The **Sync to Slack** action on Liveboard visualizations.
|
|
4039
|
-
* Allows sending data to third-party apps Slack
|
|
4053
|
+
* Allows sending data to third-party apps like Slack.
|
|
4040
4054
|
* @example
|
|
4041
4055
|
* ```js
|
|
4042
4056
|
* disabledActions: [Action.SyncToSlack]
|
|
4043
4057
|
* ```
|
|
4044
|
-
* @version
|
|
4058
|
+
* @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
|
|
4045
4059
|
*/
|
|
4046
4060
|
Action["SyncToSlack"] = "syncToSlack";
|
|
4047
4061
|
/**
|
|
4048
4062
|
* The **Sync to Teams** action on Liveboard visualizations.
|
|
4049
|
-
* Allows sending data to third-party apps
|
|
4063
|
+
* Allows sending data to third-party apps like Microsoft Teams.
|
|
4050
4064
|
* @example
|
|
4051
4065
|
* ```js
|
|
4052
4066
|
* disabledActions: [Action.SyncToTeams]
|
|
4053
4067
|
* ```
|
|
4054
|
-
* @version
|
|
4068
|
+
* @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
|
|
4055
4069
|
*/
|
|
4056
4070
|
Action["SyncToTeams"] = "syncToTeams";
|
|
4057
4071
|
/**
|
|
4058
4072
|
* The **Remove** action that appears when cross filters are applied
|
|
4059
4073
|
* on a Liveboard.
|
|
4060
|
-
* Removes filters applied
|
|
4074
|
+
* Removes filters applied to a visualization.
|
|
4061
4075
|
* @example
|
|
4062
4076
|
* ```js
|
|
4063
4077
|
* disabledActions: [Action.RemoveCrossFilter]
|
|
@@ -4243,7 +4257,7 @@ var Action;
|
|
|
4243
4257
|
Action["AddTab"] = "addTab";
|
|
4244
4258
|
/**
|
|
4245
4259
|
*
|
|
4246
|
-
*Initiates contextual change analysis on KPI charts.
|
|
4260
|
+
* Initiates contextual change analysis on KPI charts.
|
|
4247
4261
|
* @example
|
|
4248
4262
|
* ```js
|
|
4249
4263
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -4253,7 +4267,7 @@ var Action;
|
|
|
4253
4267
|
Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
|
|
4254
4268
|
/**
|
|
4255
4269
|
* Action ID to hide or disable Iterative Change Analysis option
|
|
4256
|
-
*
|
|
4270
|
+
* in the contextual change analysis Insight charts context menu.
|
|
4257
4271
|
*
|
|
4258
4272
|
* @example
|
|
4259
4273
|
* ```js
|
|
@@ -4531,6 +4545,17 @@ var Action;
|
|
|
4531
4545
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
4532
4546
|
*/
|
|
4533
4547
|
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
4548
|
+
/**
|
|
4549
|
+
* The **Data model instructions** button on the Spotter interface.
|
|
4550
|
+
* Allows opening the data model instructions modal.
|
|
4551
|
+
*
|
|
4552
|
+
* @example
|
|
4553
|
+
* ```js
|
|
4554
|
+
* hiddenAction: [Action.DataModelInstructions]
|
|
4555
|
+
* ```
|
|
4556
|
+
* @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
|
|
4557
|
+
*/
|
|
4558
|
+
Action["DataModelInstructions"] = "DataModelInstructions";
|
|
4534
4559
|
/**
|
|
4535
4560
|
* The **Preview data** button on the Spotter interface.
|
|
4536
4561
|
* Allows previewing the data used for Spotter queries.
|
|
@@ -4616,12 +4641,11 @@ var Action;
|
|
|
4616
4641
|
*/
|
|
4617
4642
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4618
4643
|
/**
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
* contact ThoughtSpot Support.
|
|
4644
|
+
* Action ID to hide or disable the Coaching workflow in Spotter conversations.
|
|
4645
|
+
* When disabled, users cannot access **Add to Coaching** workflow in conversation.
|
|
4646
|
+
* The **Add to Coaching** feature allows adding reference questions and
|
|
4647
|
+
* business terms to improve Spotter’s responses. This feature is generally available
|
|
4648
|
+
* (GA) from version 26.2.0.cl and enabled by default on embed deployments.
|
|
4625
4649
|
* @example
|
|
4626
4650
|
* ```js
|
|
4627
4651
|
* hiddenAction: [Action.InConversationTraining]
|
|
@@ -4697,6 +4721,55 @@ var Action;
|
|
|
4697
4721
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
4698
4722
|
*/
|
|
4699
4723
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
4724
|
+
/**
|
|
4725
|
+
* The **Publish** action for Liveboards, Answers and Models.
|
|
4726
|
+
* Opens the publishing modal. It's a parent action for the
|
|
4727
|
+
* **Manage Publishing** and **Unpublish** actions if the object
|
|
4728
|
+
* is already published, otherwise appears standalone.
|
|
4729
|
+
* @example
|
|
4730
|
+
* ```js
|
|
4731
|
+
* hiddenActions: [Action.Publish]
|
|
4732
|
+
* disabledActions: [Action.Publish]
|
|
4733
|
+
* ```
|
|
4734
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4735
|
+
*/
|
|
4736
|
+
Action["Publish"] = "publish";
|
|
4737
|
+
/**
|
|
4738
|
+
* The **Manage Publishing** action for Liveboards, Answers and Models.
|
|
4739
|
+
* Opens the same publishing modal as the **Publish** action.
|
|
4740
|
+
* Appears as a child action to the **Publish** action if the
|
|
4741
|
+
* object is already published.
|
|
4742
|
+
* @example
|
|
4743
|
+
* ```js
|
|
4744
|
+
* hiddenActions: [Action.ManagePublishing]
|
|
4745
|
+
* disabledActions: [Action.ManagePublishing]
|
|
4746
|
+
* ```
|
|
4747
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4748
|
+
*/
|
|
4749
|
+
Action["ManagePublishing"] = "managePublishing";
|
|
4750
|
+
/**
|
|
4751
|
+
* The **Unpublish** action for Liveboards, Answers and Models.
|
|
4752
|
+
* Opens the unpublishing modal. Appears as a child action to
|
|
4753
|
+
* the **Publish** action if the object is already published.
|
|
4754
|
+
* @example
|
|
4755
|
+
* ```js
|
|
4756
|
+
* hiddenActions: [Action.Unpublish]
|
|
4757
|
+
* disabledActions: [Action.Unpublish]
|
|
4758
|
+
* ```
|
|
4759
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4760
|
+
*/
|
|
4761
|
+
Action["Unpublish"] = "unpublish";
|
|
4762
|
+
/**
|
|
4763
|
+
* The **Parameterize** action for Tables and Connections.
|
|
4764
|
+
* Opens the parameterization modal.
|
|
4765
|
+
* @example
|
|
4766
|
+
* ```js
|
|
4767
|
+
* hiddenActions: [Action.Parameterize]
|
|
4768
|
+
* disabledActions: [Action.Parameterize]
|
|
4769
|
+
* ```
|
|
4770
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4771
|
+
*/
|
|
4772
|
+
Action["Parameterize"] = "parameterise";
|
|
4700
4773
|
/**
|
|
4701
4774
|
* The **Move to Group** menu action on a Liveboard.
|
|
4702
4775
|
* Allows moving a visualization to a different group.
|
|
@@ -4737,6 +4810,18 @@ var Action;
|
|
|
4737
4810
|
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4738
4811
|
*/
|
|
4739
4812
|
Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
|
|
4813
|
+
/**
|
|
4814
|
+
* The **Include current period** checkbox for date filters.
|
|
4815
|
+
* Controls the visibility and availability of the option to include
|
|
4816
|
+
* the current time period in filter results.
|
|
4817
|
+
* @example
|
|
4818
|
+
* ```js
|
|
4819
|
+
* hiddenActions: [Action.IncludeCurrentPeriod]
|
|
4820
|
+
* disabledActions: [Action.IncludeCurrentPeriod]
|
|
4821
|
+
* ```
|
|
4822
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
|
|
4823
|
+
*/
|
|
4824
|
+
Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
|
|
4740
4825
|
})(Action || (Action = {}));
|
|
4741
4826
|
var PrefetchFeatures;
|
|
4742
4827
|
(function (PrefetchFeatures) {
|
|
@@ -4881,31 +4966,19 @@ var ErrorDetailsTypes;
|
|
|
4881
4966
|
ErrorDetailsTypes["NETWORK"] = "NETWORK";
|
|
4882
4967
|
})(ErrorDetailsTypes || (ErrorDetailsTypes = {}));
|
|
4883
4968
|
/**
|
|
4884
|
-
*
|
|
4885
|
-
*
|
|
4886
|
-
* These codes provide granular identification of errors that occur in embedded components.
|
|
4887
|
-
* They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
|
|
4888
|
-
* precise error handling and debugging.
|
|
4969
|
+
* Error codes for identifying specific issues in embedded ThoughtSpot components.
|
|
4889
4970
|
*
|
|
4890
|
-
*
|
|
4891
|
-
*
|
|
4892
|
-
* - **Liveboard ID missing**: Errors related to missing liveboard ID
|
|
4893
|
-
* - **Conflicting actions configuration**: Errors related to conflicting actions configuration
|
|
4894
|
-
* - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
|
|
4895
|
-
* - **Initialization error**: Errors related to initialization error
|
|
4896
|
-
* - **Network error**: Errors related to network error
|
|
4897
|
-
* - **Custom action validation**: Errors related to custom action validation
|
|
4898
|
-
* - **Login failed**: Errors related to login failed
|
|
4899
|
-
* - **Render not called**: Errors related to render not called
|
|
4900
|
-
* - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
|
|
4971
|
+
* Use these codes for precise error handling and debugging. Each code maps to a
|
|
4972
|
+
* distinct failure scenario, enabling targeted recovery strategies.
|
|
4901
4973
|
*
|
|
4902
4974
|
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
4903
4975
|
* @group Error Handling
|
|
4976
|
+
*
|
|
4904
4977
|
* @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
|
|
4905
4978
|
* @see {@link ErrorDetailsTypes} - General error type categories
|
|
4906
4979
|
*
|
|
4907
4980
|
* @example
|
|
4908
|
-
* Handle specific error codes
|
|
4981
|
+
* Handle specific error codes in the error event handler
|
|
4909
4982
|
*
|
|
4910
4983
|
* embed.on(EmbedEvent.Error, (error) => {
|
|
4911
4984
|
* if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
|
|
@@ -8394,7 +8467,6 @@ const addVizToLiveboard = `
|
|
|
8394
8467
|
const getSQLQuery = `
|
|
8395
8468
|
mutation GetSQLQuery($session: BachSessionIdInput!) {
|
|
8396
8469
|
Answer__getQuery(session: $session) {
|
|
8397
|
-
${bachSessionId}
|
|
8398
8470
|
sql
|
|
8399
8471
|
}
|
|
8400
8472
|
}
|
|
@@ -8722,7 +8794,7 @@ class AnswerService {
|
|
|
8722
8794
|
async getTML() {
|
|
8723
8795
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8724
8796
|
const edoc = object[0].edoc;
|
|
8725
|
-
const YAML = await import('./index-
|
|
8797
|
+
const YAML = await import('./index-Dk-SLdNk.js');
|
|
8726
8798
|
const parsedDoc = YAML.parse(edoc);
|
|
8727
8799
|
return {
|
|
8728
8800
|
answer: {
|
|
@@ -17620,7 +17692,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
17620
17692
|
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17621
17693
|
var _a;
|
|
17622
17694
|
channel.port1.close();
|
|
17623
|
-
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17695
|
+
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);
|
|
17624
17696
|
if (error) {
|
|
17625
17697
|
rej(error);
|
|
17626
17698
|
}
|
|
@@ -17979,7 +18051,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
17979
18051
|
return eventData;
|
|
17980
18052
|
}
|
|
17981
18053
|
|
|
17982
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
18054
|
+
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={".":{"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,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};
|
|
17983
18055
|
|
|
17984
18056
|
class HostEventClient {
|
|
17985
18057
|
constructor(iFrame) {
|
|
@@ -18471,8 +18543,8 @@ class TsEmbed {
|
|
|
18471
18543
|
this.eventHandlerMap = new Map();
|
|
18472
18544
|
this.isError = false;
|
|
18473
18545
|
this.viewConfig = {
|
|
18474
|
-
excludeRuntimeFiltersfromURL:
|
|
18475
|
-
excludeRuntimeParametersfromURL:
|
|
18546
|
+
excludeRuntimeFiltersfromURL: true,
|
|
18547
|
+
excludeRuntimeParametersfromURL: true,
|
|
18476
18548
|
...viewConfig,
|
|
18477
18549
|
};
|
|
18478
18550
|
this.registerAppInit();
|
|
@@ -19664,7 +19736,11 @@ class V1Embed extends TsEmbed {
|
|
|
19664
19736
|
* @hidden
|
|
19665
19737
|
*/
|
|
19666
19738
|
this.test__executeCallbacks = this.executeCallbacks;
|
|
19667
|
-
this.viewConfig = {
|
|
19739
|
+
this.viewConfig = {
|
|
19740
|
+
excludeRuntimeFiltersfromURL: true,
|
|
19741
|
+
excludeRuntimeParametersfromURL: true,
|
|
19742
|
+
...viewConfig,
|
|
19743
|
+
};
|
|
19668
19744
|
}
|
|
19669
19745
|
/**
|
|
19670
19746
|
* Render the app in an iframe and set up event handlers
|
|
@@ -19909,7 +19985,12 @@ const HiddenActionItemByDefaultForSearchEmbed = [
|
|
|
19909
19985
|
*/
|
|
19910
19986
|
let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
19911
19987
|
constructor(domSelector, viewConfig) {
|
|
19912
|
-
viewConfig
|
|
19988
|
+
viewConfig = {
|
|
19989
|
+
embedComponentType: 'SearchEmbed',
|
|
19990
|
+
excludeRuntimeFiltersfromURL: true,
|
|
19991
|
+
excludeRuntimeParametersfromURL: true,
|
|
19992
|
+
...viewConfig,
|
|
19993
|
+
};
|
|
19913
19994
|
super(domSelector, viewConfig);
|
|
19914
19995
|
}
|
|
19915
19996
|
/**
|
|
@@ -19943,7 +20024,7 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
|
19943
20024
|
}
|
|
19944
20025
|
getEmbedParamsObject() {
|
|
19945
20026
|
var _a;
|
|
19946
|
-
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;
|
|
20027
|
+
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;
|
|
19947
20028
|
const queryParams = this.getBaseQueryParams();
|
|
19948
20029
|
queryParams[Param.HideActions] = [
|
|
19949
20030
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -19978,6 +20059,9 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
|
19978
20059
|
if (!focusSearchBarOnRender) {
|
|
19979
20060
|
queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
|
|
19980
20061
|
}
|
|
20062
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20063
|
+
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20064
|
+
}
|
|
19981
20065
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
19982
20066
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
19983
20067
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -20232,7 +20316,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20232
20316
|
* embedded Liveboard or visualization.
|
|
20233
20317
|
*/
|
|
20234
20318
|
getEmbedParams() {
|
|
20235
|
-
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,
|
|
20319
|
+
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;
|
|
20236
20320
|
let params = {};
|
|
20237
20321
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
20238
20322
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -20301,12 +20385,15 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20301
20385
|
if (isLiveboardStylingAndGroupingEnabled !== undefined) {
|
|
20302
20386
|
params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
|
|
20303
20387
|
}
|
|
20304
|
-
if (liveboardXLSXCSVDownload !== undefined) {
|
|
20305
|
-
params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
|
|
20306
|
-
}
|
|
20307
20388
|
if (isPNGInScheduledEmailsEnabled !== undefined) {
|
|
20308
20389
|
params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
|
|
20309
20390
|
}
|
|
20391
|
+
if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
|
|
20392
|
+
params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
|
|
20393
|
+
}
|
|
20394
|
+
if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
|
|
20395
|
+
params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
|
|
20396
|
+
}
|
|
20310
20397
|
if (hideTagFilterChips !== undefined) {
|
|
20311
20398
|
params[Param.HideTagFilterChips] = hideTagFilterChips;
|
|
20312
20399
|
}
|
|
@@ -20316,6 +20403,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
|
20316
20403
|
if (isCentralizedLiveboardFilterUXEnabled != undefined) {
|
|
20317
20404
|
params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
|
|
20318
20405
|
}
|
|
20406
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20407
|
+
params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20408
|
+
}
|
|
20319
20409
|
this.defaultHeight = minimumHeight || this.defaultHeight;
|
|
20320
20410
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20321
20411
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
@@ -20671,7 +20761,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
20671
20761
|
getEmbedParamsObject() {
|
|
20672
20762
|
let params = {};
|
|
20673
20763
|
params = this.getBaseQueryParams(params);
|
|
20674
|
-
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,
|
|
20764
|
+
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;
|
|
20675
20765
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
20676
20766
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
20677
20767
|
if (fullHeight === true) {
|
|
@@ -20736,6 +20826,12 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
20736
20826
|
if (isPNGInScheduledEmailsEnabled !== undefined) {
|
|
20737
20827
|
params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
|
|
20738
20828
|
}
|
|
20829
|
+
if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
|
|
20830
|
+
params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
|
|
20831
|
+
}
|
|
20832
|
+
if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
|
|
20833
|
+
params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
|
|
20834
|
+
}
|
|
20739
20835
|
if (showSpotterLimitations !== undefined) {
|
|
20740
20836
|
params[Param.ShowSpotterLimitations] = showSpotterLimitations;
|
|
20741
20837
|
}
|
|
@@ -20745,6 +20841,9 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
20745
20841
|
if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
|
|
20746
20842
|
params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
|
|
20747
20843
|
}
|
|
20844
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20845
|
+
params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20846
|
+
}
|
|
20748
20847
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
20749
20848
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
20750
20849
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -20756,9 +20855,6 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
20756
20855
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20757
20856
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
20758
20857
|
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
20759
|
-
if (liveboardXLSXCSVDownload !== undefined) {
|
|
20760
|
-
params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
|
|
20761
|
-
}
|
|
20762
20858
|
getQueryParamString(params, true);
|
|
20763
20859
|
return params;
|
|
20764
20860
|
}
|
|
@@ -21485,7 +21581,12 @@ var isUndefined_1 = isUndefined;
|
|
|
21485
21581
|
*/
|
|
21486
21582
|
let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
21487
21583
|
constructor(container, viewConfig) {
|
|
21488
|
-
viewConfig
|
|
21584
|
+
viewConfig = {
|
|
21585
|
+
embedComponentType: 'conversation',
|
|
21586
|
+
excludeRuntimeFiltersfromURL: true,
|
|
21587
|
+
excludeRuntimeParametersfromURL: true,
|
|
21588
|
+
...viewConfig,
|
|
21589
|
+
};
|
|
21489
21590
|
super(container, viewConfig);
|
|
21490
21591
|
this.viewConfig = viewConfig;
|
|
21491
21592
|
}
|
|
@@ -21573,7 +21674,12 @@ let SpotterEmbed$1 = class SpotterEmbed extends TsEmbed {
|
|
|
21573
21674
|
*/
|
|
21574
21675
|
let ConversationEmbed$1 = class ConversationEmbed extends SpotterEmbed$1 {
|
|
21575
21676
|
constructor(container, viewConfig) {
|
|
21576
|
-
viewConfig
|
|
21677
|
+
viewConfig = {
|
|
21678
|
+
embedComponentType: 'conversation',
|
|
21679
|
+
excludeRuntimeFiltersfromURL: true,
|
|
21680
|
+
excludeRuntimeParametersfromURL: true,
|
|
21681
|
+
...viewConfig,
|
|
21682
|
+
};
|
|
21577
21683
|
super(container, viewConfig);
|
|
21578
21684
|
this.viewConfig = viewConfig;
|
|
21579
21685
|
}
|