@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.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
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -366,7 +366,11 @@
|
|
|
366
366
|
exports.ListPageColumns = void 0;
|
|
367
367
|
(function (ListPageColumns) {
|
|
368
368
|
/**
|
|
369
|
-
*
|
|
369
|
+
* Favorites
|
|
370
|
+
*/
|
|
371
|
+
ListPageColumns["Favorites"] = "FAVOURITE";
|
|
372
|
+
/**
|
|
373
|
+
* @deprecated Use {@link ListPageColumns.Favorites} instead.
|
|
370
374
|
*/
|
|
371
375
|
ListPageColumns["Favourite"] = "FAVOURITE";
|
|
372
376
|
/**
|
|
@@ -385,6 +389,10 @@
|
|
|
385
389
|
* Share
|
|
386
390
|
*/
|
|
387
391
|
ListPageColumns["Share"] = "SHARE";
|
|
392
|
+
/**
|
|
393
|
+
* Verified badge/column
|
|
394
|
+
*/
|
|
395
|
+
ListPageColumns["Verified"] = "VERIFIED";
|
|
388
396
|
})(exports.ListPageColumns || (exports.ListPageColumns = {}));
|
|
389
397
|
/**
|
|
390
398
|
* Event types emitted by the embedded ThoughtSpot application.
|
|
@@ -601,7 +609,7 @@
|
|
|
601
609
|
/**
|
|
602
610
|
* An error has occurred. This event is fired for the following error types:
|
|
603
611
|
*
|
|
604
|
-
* `API` - API call failure
|
|
612
|
+
* `API` - API call failure.
|
|
605
613
|
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
|
|
606
614
|
* mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
|
|
607
615
|
* filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
@@ -1332,20 +1340,20 @@
|
|
|
1332
1340
|
/**
|
|
1333
1341
|
*
|
|
1334
1342
|
* This event can be emitted to intercept search execution initiated by
|
|
1335
|
-
*
|
|
1336
|
-
* You can
|
|
1343
|
+
* users and implement logic to allow or restrict search execution.
|
|
1344
|
+
* You can also show custom error text if the search query must be
|
|
1337
1345
|
* restricted due to your application or business requirements.
|
|
1338
1346
|
|
|
1339
1347
|
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1340
1348
|
* for this embed event to get emitted.
|
|
1341
|
-
* @param
|
|
1342
|
-
*
|
|
1343
|
-
* Contains elements that
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1349
|
+
* @param - Includes the following event listener parameters:
|
|
1350
|
+
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1351
|
+
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1352
|
+
* should run the search, and if not, what error message
|
|
1353
|
+
* should be shown to the user.
|
|
1346
1354
|
*
|
|
1347
|
-
* `execute` - When execute returns `true`, the search will be run.
|
|
1348
|
-
* When execute returns `false`, the search will not be executed.
|
|
1355
|
+
* `execute` - When `execute` returns `true`, the search will be run.
|
|
1356
|
+
* When `execute` returns `false`, the search will not be executed.
|
|
1349
1357
|
*
|
|
1350
1358
|
* `error` - Developers can customize the error message text when `execute`
|
|
1351
1359
|
* is `false` using the `errorText` and `errorDescription` parameters in responder.
|
|
@@ -1517,7 +1525,7 @@
|
|
|
1517
1525
|
* console.log('payload', payload);
|
|
1518
1526
|
* })
|
|
1519
1527
|
* ```
|
|
1520
|
-
* @version SDK: 1.
|
|
1528
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
1521
1529
|
*/
|
|
1522
1530
|
EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
1523
1531
|
/**
|
|
@@ -1736,14 +1744,14 @@
|
|
|
1736
1744
|
* the search query string.
|
|
1737
1745
|
* Supported in `AppEmbed` and `SearchEmbed` deployments.
|
|
1738
1746
|
* Includes the following properties:
|
|
1739
|
-
* @param -
|
|
1740
|
-
*
|
|
1741
|
-
*
|
|
1742
|
-
*
|
|
1743
|
-
*
|
|
1747
|
+
* @param - Includes the following keys:
|
|
1748
|
+
* - `searchQuery`: Query string with search tokens.
|
|
1749
|
+
* - `dataSources`: Data source GUID to search on.
|
|
1750
|
+
* Although an array, only a single source is supported.
|
|
1751
|
+
* - `execute`: Executes search and updates the existing query.
|
|
1744
1752
|
* @example
|
|
1745
1753
|
* ```js
|
|
1746
|
-
*
|
|
1754
|
+
* searchEmbed.trigger(HostEvent.Search, {
|
|
1747
1755
|
searchQuery: "[sales] by [item type]",
|
|
1748
1756
|
dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
|
|
1749
1757
|
execute: true
|
|
@@ -1754,16 +1762,15 @@
|
|
|
1754
1762
|
/**
|
|
1755
1763
|
* Triggers a drill on certain points of the specified column
|
|
1756
1764
|
* Includes the following properties:
|
|
1757
|
-
* @param -
|
|
1758
|
-
*
|
|
1759
|
-
*
|
|
1760
|
-
*
|
|
1761
|
-
* column.
|
|
1762
|
-
*
|
|
1763
|
-
*
|
|
1764
|
-
*
|
|
1765
|
-
*
|
|
1766
|
-
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
1765
|
+
* @param - Includes the following keys:
|
|
1766
|
+
* - `points`: An object containing `selectedPoints` and/or `clickedPoint`
|
|
1767
|
+
* to drill to. For example, `{ selectedPoints: [] }`.
|
|
1768
|
+
* - `columnGuid`: Optional. GUID of the column to drill by. If not provided,
|
|
1769
|
+
* it will auto drill by the configured column.
|
|
1770
|
+
* - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
|
|
1771
|
+
* on the most popular column.
|
|
1772
|
+
* - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
|
|
1773
|
+
* of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
|
|
1767
1774
|
* @example
|
|
1768
1775
|
* ```js
|
|
1769
1776
|
* searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
|
|
@@ -1856,14 +1863,12 @@
|
|
|
1856
1863
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
1857
1864
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
1858
1865
|
*
|
|
1859
|
-
* @param -
|
|
1860
|
-
* `columnName
|
|
1861
|
-
*
|
|
1862
|
-
*
|
|
1863
|
-
*
|
|
1864
|
-
*
|
|
1865
|
-
* `values` - List of operands. Some operators such as EQ and LE allow a
|
|
1866
|
-
* single value, whereas BW and IN accept multiple values.
|
|
1866
|
+
* @param - Array of {@link RuntimeFilter} objects. Each item includes:
|
|
1867
|
+
* - `columnName`: Name of the column to filter on.
|
|
1868
|
+
* - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
|
|
1869
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
1870
|
+
* - `values`: List of operands. Some operators such as EQ and LE allow a single
|
|
1871
|
+
* value, whereas BW and IN accept multiple values.
|
|
1867
1872
|
*
|
|
1868
1873
|
* **Note**: Updating runtime filters resets the ThoughtSpot
|
|
1869
1874
|
* object to its original state and applies new filter conditions.
|
|
@@ -1886,7 +1891,7 @@
|
|
|
1886
1891
|
/**
|
|
1887
1892
|
* Navigate to a specific page in the embedded ThoughtSpot application.
|
|
1888
1893
|
* This is the same as calling `appEmbed.navigateToPage(path, true)`.
|
|
1889
|
-
* @param - `path` - the path to navigate to
|
|
1894
|
+
* @param - `path` - the path to navigate to go forward or back. The path value can
|
|
1890
1895
|
* be a number; for example, `1`, `-1`.
|
|
1891
1896
|
* @example
|
|
1892
1897
|
* ```js
|
|
@@ -1957,30 +1962,25 @@
|
|
|
1957
1962
|
* for the Answer that the user is currently on
|
|
1958
1963
|
* and a modal opens for Liveboard selection.
|
|
1959
1964
|
* To add an Answer or visualization to a Liveboard programmatically without
|
|
1960
|
-
*
|
|
1965
|
+
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
1961
1966
|
* the following parameters:
|
|
1962
1967
|
*
|
|
1963
|
-
* @param
|
|
1964
|
-
* `vizId
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
1967
|
-
*
|
|
1968
|
-
* `
|
|
1969
|
-
*
|
|
1970
|
-
*
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
1973
|
-
*
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
*
|
|
1979
|
-
* `newLiveboardName` - Name string for the Liveboard.
|
|
1980
|
-
* Creates a new Liveboard object with the specified name.
|
|
1981
|
-
* @param
|
|
1982
|
-
* `newTabName` - Name of the tab. Adds a new tab Liveboard specified
|
|
1983
|
-
* in the code.
|
|
1968
|
+
* @param - Includes the following keys:
|
|
1969
|
+
* - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
|
|
1970
|
+
* Optional when pinning a new chart or table generated from a Search query.
|
|
1971
|
+
* **Required** in Spotter Embed.
|
|
1972
|
+
* - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
|
|
1973
|
+
* specify the `newLiveboardName` parameter to create a new Liveboard.
|
|
1974
|
+
* - `tabId`: GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
|
|
1975
|
+
* specified in the code.
|
|
1976
|
+
* - `newVizName`: Name string for the Answer or visualization. If defined,
|
|
1977
|
+
* this parameter adds a new visualization object or creates a copy of the
|
|
1978
|
+
* Answer or visualization specified in `vizId`.
|
|
1979
|
+
* Required.
|
|
1980
|
+
* - `newLiveboardName`: Name string for the Liveboard.
|
|
1981
|
+
* Creates a new Liveboard object with the specified name.
|
|
1982
|
+
* - `newTabName`: Name of the tab. Adds a new tab Liveboard specified
|
|
1983
|
+
* in the code.
|
|
1984
1984
|
*
|
|
1985
1985
|
* @example
|
|
1986
1986
|
* ```js
|
|
@@ -2220,9 +2220,9 @@
|
|
|
2220
2220
|
* on a Liveboard.
|
|
2221
2221
|
*
|
|
2222
2222
|
* This event is not supported in visualization embed and search embed.
|
|
2223
|
-
* @param -
|
|
2224
|
-
*
|
|
2225
|
-
*
|
|
2223
|
+
* @param - Object parameter. Includes the following keys:
|
|
2224
|
+
* - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
|
|
2225
|
+
* pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
|
|
2226
2226
|
*
|
|
2227
2227
|
* @example
|
|
2228
2228
|
* ```js
|
|
@@ -2589,10 +2589,9 @@
|
|
|
2589
2589
|
HostEvent["GetFilters"] = "getFilters";
|
|
2590
2590
|
/**
|
|
2591
2591
|
* Update one or several filters applied on a Liveboard.
|
|
2592
|
-
* @param -
|
|
2593
|
-
* filter operator, and values.
|
|
2594
|
-
*
|
|
2595
|
-
* and values for each.
|
|
2592
|
+
* @param - Includes the following keys:
|
|
2593
|
+
* - `filter`: A single filter object containing column name, filter operator, and values.
|
|
2594
|
+
* - `filters`: Multiple filter objects with column name, filter operator, and values for each.
|
|
2596
2595
|
*
|
|
2597
2596
|
* Each filter object must include the following attributes:
|
|
2598
2597
|
*
|
|
@@ -2718,8 +2717,9 @@
|
|
|
2718
2717
|
HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
|
|
2719
2718
|
/**
|
|
2720
2719
|
* Updates the search query string for Natural Language Search operations.
|
|
2721
|
-
* @param -
|
|
2722
|
-
*
|
|
2720
|
+
* @param - Includes the following keys:
|
|
2721
|
+
* - `queryString`: Text string in Natural Language format.
|
|
2722
|
+
* - `executeSearch`: Boolean to execute search and update search query.
|
|
2723
2723
|
* @example
|
|
2724
2724
|
* ```js
|
|
2725
2725
|
* sageEmbed.trigger(HostEvent.UpdateSageQuery, {
|
|
@@ -2798,11 +2798,10 @@
|
|
|
2798
2798
|
/**
|
|
2799
2799
|
* Triggers an action to update Parameter values on embedded
|
|
2800
2800
|
* Answers, Liveboard, and Spotter answer in Edit mode.
|
|
2801
|
-
* @param -
|
|
2802
|
-
*
|
|
2803
|
-
*
|
|
2804
|
-
*
|
|
2805
|
-
* use the `isVisibleToUser` attribute when applying an override.
|
|
2801
|
+
* @param - Includes the following keys for each item:
|
|
2802
|
+
* - `name`: Name of the parameter.
|
|
2803
|
+
* - `value`: The value to set for the parameter.
|
|
2804
|
+
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
2806
2805
|
*
|
|
2807
2806
|
* @example
|
|
2808
2807
|
* ```js
|
|
@@ -2860,11 +2859,10 @@
|
|
|
2860
2859
|
* If no parameters are specified, the save action is
|
|
2861
2860
|
* triggered with a modal to prompt users to
|
|
2862
2861
|
* add a name and description for the Answer.
|
|
2863
|
-
* @param -
|
|
2864
|
-
* and is required in Spotter embed.
|
|
2865
|
-
* Optional
|
|
2866
|
-
*
|
|
2867
|
-
* @param - `description` - Description text for the Answer.
|
|
2862
|
+
* @param - Includes the following keys:
|
|
2863
|
+
* - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
|
|
2864
|
+
* - `name`: Optional. Name string for the Answer.
|
|
2865
|
+
* - `description`: Optional. Description text for the Answer.
|
|
2868
2866
|
* @example
|
|
2869
2867
|
* ```js
|
|
2870
2868
|
* const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
|
|
@@ -2913,8 +2911,9 @@
|
|
|
2913
2911
|
/**
|
|
2914
2912
|
* Triggers a search operation with the search tokens specified in
|
|
2915
2913
|
* the search query string in spotter embed.
|
|
2916
|
-
* @param -
|
|
2917
|
-
*
|
|
2914
|
+
* @param - Includes the following keys:
|
|
2915
|
+
* - `query`: Text string in Natural Language format.
|
|
2916
|
+
* - `executeSearch`: Boolean to execute search and update search query.
|
|
2918
2917
|
* @example
|
|
2919
2918
|
* ```js
|
|
2920
2919
|
* spotterEmbed.trigger(HostEvent.SpotterSearch, {
|
|
@@ -2961,7 +2960,7 @@
|
|
|
2961
2960
|
* ```js
|
|
2962
2961
|
* spotterEmbed.trigger(HostEvent.DataModelInstructions);
|
|
2963
2962
|
* ```
|
|
2964
|
-
* @version SDK: 1.
|
|
2963
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
2965
2964
|
*/
|
|
2966
2965
|
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
2967
2966
|
/**
|
|
@@ -3046,7 +3045,7 @@
|
|
|
3046
3045
|
*/
|
|
3047
3046
|
HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
|
|
3048
3047
|
/**
|
|
3049
|
-
* Triggered when the embed
|
|
3048
|
+
* Triggered when the embed needs to be destroyed. This is used to clean up any embed-related resources internally.
|
|
3050
3049
|
* @example
|
|
3051
3050
|
* ```js
|
|
3052
3051
|
* liveboardEmbed.trigger(HostEvent.DestroyEmbed);
|
|
@@ -3054,11 +3053,12 @@
|
|
|
3054
3053
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
3055
3054
|
*/
|
|
3056
3055
|
HostEvent["DestroyEmbed"] = "EmbedDestroyed";
|
|
3057
|
-
/**
|
|
3058
|
-
*
|
|
3059
|
-
*
|
|
3056
|
+
/**
|
|
3057
|
+
* Triggers a new conversation in Spotter embed.
|
|
3058
|
+
*
|
|
3060
3059
|
* This feature is available only when chat history is enabled on your ThoughtSpot instance.
|
|
3061
3060
|
* Contact your admin or ThoughtSpot Support to enable chat history on your instance.
|
|
3061
|
+
*
|
|
3062
3062
|
* @example
|
|
3063
3063
|
* ```js
|
|
3064
3064
|
* spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
|
|
@@ -3215,12 +3215,14 @@
|
|
|
3215
3215
|
Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
|
|
3216
3216
|
Param["IsLazyLoadingForEmbedEnabled"] = "isLazyLoadingForEmbedEnabled";
|
|
3217
3217
|
Param["RootMarginForLazyLoad"] = "rootMarginForLazyLoad";
|
|
3218
|
-
Param["LiveboardXLSXCSVDownload"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
3219
3218
|
Param["isPNGInScheduledEmailsEnabled"] = "isPNGInScheduledEmailsEnabled";
|
|
3219
|
+
Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
|
|
3220
|
+
Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
|
|
3220
3221
|
Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
|
|
3221
3222
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
3222
3223
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
3223
3224
|
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
3225
|
+
Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
|
|
3224
3226
|
})(Param || (Param = {}));
|
|
3225
3227
|
/**
|
|
3226
3228
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3233,7 +3235,7 @@
|
|
|
3233
3235
|
* ```js
|
|
3234
3236
|
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
3235
3237
|
* ... //other embed view config
|
|
3236
|
-
* visibleActions: [Action.Save, Action.Edit, Action.Present,
|
|
3238
|
+
* visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
|
|
3237
3239
|
* disabledActions: [Action.Download],
|
|
3238
3240
|
* //hiddenActions: [], // Set either this or visibleActions
|
|
3239
3241
|
* })
|
|
@@ -3244,10 +3246,10 @@
|
|
|
3244
3246
|
* ... //other embed view config
|
|
3245
3247
|
* //visibleActions: [],
|
|
3246
3248
|
* disabledActions: [Action.Download],
|
|
3247
|
-
* hiddenActions: [Action.Edit,
|
|
3249
|
+
* hiddenActions: [Action.Edit, Action.Explore],
|
|
3248
3250
|
* })
|
|
3249
3251
|
* ```
|
|
3250
|
-
* See also link:https://developers.thoughtspot.com/docs/actions[
|
|
3252
|
+
* See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
|
|
3251
3253
|
*/
|
|
3252
3254
|
exports.Action = void 0;
|
|
3253
3255
|
(function (Action) {
|
|
@@ -3535,6 +3537,16 @@
|
|
|
3535
3537
|
* ```
|
|
3536
3538
|
*/
|
|
3537
3539
|
Action["DownloadAsXlsx"] = "downloadAsXLSX";
|
|
3540
|
+
/**
|
|
3541
|
+
* The **Download Liveboard** menu action on a Liveboard.
|
|
3542
|
+
* Allows downloading the entire Liveboard.
|
|
3543
|
+
* @example
|
|
3544
|
+
* ```js
|
|
3545
|
+
* disabledActions: [Action.DownloadLiveboard]
|
|
3546
|
+
* ```
|
|
3547
|
+
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
3548
|
+
*/
|
|
3549
|
+
Action["DownloadLiveboard"] = "downloadLiveboard";
|
|
3538
3550
|
/**
|
|
3539
3551
|
* @hidden
|
|
3540
3552
|
*/
|
|
@@ -3754,13 +3766,15 @@
|
|
|
3754
3766
|
*/
|
|
3755
3767
|
Action["RequestAccess"] = "requestAccess";
|
|
3756
3768
|
/**
|
|
3757
|
-
*
|
|
3758
|
-
* Query details panel
|
|
3769
|
+
* Controls the display and availability of the **Query visualizer** and
|
|
3770
|
+
* **Query SQL** buttons in the Query details panel on the Answer page.
|
|
3759
3771
|
*
|
|
3760
|
-
* **Query visualizer** - Displays the tables
|
|
3761
|
-
*
|
|
3762
|
-
*
|
|
3763
|
-
*
|
|
3772
|
+
* **Query visualizer** - Displays the tables and filters used in the search query.
|
|
3773
|
+
* **Query SQL** - Displays the SQL statements used to retrieve data for the query.
|
|
3774
|
+
*
|
|
3775
|
+
* Note: This action ID only affects the visibility of the buttons within the
|
|
3776
|
+
* Query details panel. It does not control the visibility
|
|
3777
|
+
* of the query details icon on the Answer page.
|
|
3764
3778
|
* @example
|
|
3765
3779
|
* ```js
|
|
3766
3780
|
* disabledActions: [Action.QueryDetailsButtons]
|
|
@@ -3874,28 +3888,28 @@
|
|
|
3874
3888
|
Action["CrossFilter"] = "context-menu-item-cross-filter";
|
|
3875
3889
|
/**
|
|
3876
3890
|
* The **Sync to Slack** action on Liveboard visualizations.
|
|
3877
|
-
* Allows sending data to third-party apps Slack
|
|
3891
|
+
* Allows sending data to third-party apps like Slack.
|
|
3878
3892
|
* @example
|
|
3879
3893
|
* ```js
|
|
3880
3894
|
* disabledActions: [Action.SyncToSlack]
|
|
3881
3895
|
* ```
|
|
3882
|
-
* @version
|
|
3896
|
+
* @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
|
|
3883
3897
|
*/
|
|
3884
3898
|
Action["SyncToSlack"] = "syncToSlack";
|
|
3885
3899
|
/**
|
|
3886
3900
|
* The **Sync to Teams** action on Liveboard visualizations.
|
|
3887
|
-
* Allows sending data to third-party apps
|
|
3901
|
+
* Allows sending data to third-party apps like Microsoft Teams.
|
|
3888
3902
|
* @example
|
|
3889
3903
|
* ```js
|
|
3890
3904
|
* disabledActions: [Action.SyncToTeams]
|
|
3891
3905
|
* ```
|
|
3892
|
-
* @version
|
|
3906
|
+
* @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
|
|
3893
3907
|
*/
|
|
3894
3908
|
Action["SyncToTeams"] = "syncToTeams";
|
|
3895
3909
|
/**
|
|
3896
3910
|
* The **Remove** action that appears when cross filters are applied
|
|
3897
3911
|
* on a Liveboard.
|
|
3898
|
-
* Removes filters applied
|
|
3912
|
+
* Removes filters applied to a visualization.
|
|
3899
3913
|
* @example
|
|
3900
3914
|
* ```js
|
|
3901
3915
|
* disabledActions: [Action.RemoveCrossFilter]
|
|
@@ -4081,7 +4095,7 @@
|
|
|
4081
4095
|
Action["AddTab"] = "addTab";
|
|
4082
4096
|
/**
|
|
4083
4097
|
*
|
|
4084
|
-
*Initiates contextual change analysis on KPI charts.
|
|
4098
|
+
* Initiates contextual change analysis on KPI charts.
|
|
4085
4099
|
* @example
|
|
4086
4100
|
* ```js
|
|
4087
4101
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -4091,7 +4105,7 @@
|
|
|
4091
4105
|
Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
|
|
4092
4106
|
/**
|
|
4093
4107
|
* Action ID to hide or disable Iterative Change Analysis option
|
|
4094
|
-
*
|
|
4108
|
+
* in the contextual change analysis Insight charts context menu.
|
|
4095
4109
|
*
|
|
4096
4110
|
* @example
|
|
4097
4111
|
* ```js
|
|
@@ -4369,6 +4383,17 @@
|
|
|
4369
4383
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
4370
4384
|
*/
|
|
4371
4385
|
Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
|
|
4386
|
+
/**
|
|
4387
|
+
* The **Data model instructions** button on the Spotter interface.
|
|
4388
|
+
* Allows opening the data model instructions modal.
|
|
4389
|
+
*
|
|
4390
|
+
* @example
|
|
4391
|
+
* ```js
|
|
4392
|
+
* hiddenAction: [Action.DataModelInstructions]
|
|
4393
|
+
* ```
|
|
4394
|
+
* @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
|
|
4395
|
+
*/
|
|
4396
|
+
Action["DataModelInstructions"] = "DataModelInstructions";
|
|
4372
4397
|
/**
|
|
4373
4398
|
* The **Preview data** button on the Spotter interface.
|
|
4374
4399
|
* Allows previewing the data used for Spotter queries.
|
|
@@ -4454,12 +4479,11 @@
|
|
|
4454
4479
|
*/
|
|
4455
4480
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4456
4481
|
/**
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
* contact ThoughtSpot Support.
|
|
4482
|
+
* Action ID to hide or disable the Coaching workflow in Spotter conversations.
|
|
4483
|
+
* When disabled, users cannot access **Add to Coaching** workflow in conversation.
|
|
4484
|
+
* The **Add to Coaching** feature allows adding reference questions and
|
|
4485
|
+
* business terms to improve Spotter’s responses. This feature is generally available
|
|
4486
|
+
* (GA) from version 26.2.0.cl and enabled by default on embed deployments.
|
|
4463
4487
|
* @example
|
|
4464
4488
|
* ```js
|
|
4465
4489
|
* hiddenAction: [Action.InConversationTraining]
|
|
@@ -4535,6 +4559,55 @@
|
|
|
4535
4559
|
* @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
|
|
4536
4560
|
*/
|
|
4537
4561
|
Action["LiveboardStylePanel"] = "liveboardStylePanel";
|
|
4562
|
+
/**
|
|
4563
|
+
* The **Publish** action for Liveboards, Answers and Models.
|
|
4564
|
+
* Opens the publishing modal. It's a parent action for the
|
|
4565
|
+
* **Manage Publishing** and **Unpublish** actions if the object
|
|
4566
|
+
* is already published, otherwise appears standalone.
|
|
4567
|
+
* @example
|
|
4568
|
+
* ```js
|
|
4569
|
+
* hiddenActions: [Action.Publish]
|
|
4570
|
+
* disabledActions: [Action.Publish]
|
|
4571
|
+
* ```
|
|
4572
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4573
|
+
*/
|
|
4574
|
+
Action["Publish"] = "publish";
|
|
4575
|
+
/**
|
|
4576
|
+
* The **Manage Publishing** action for Liveboards, Answers and Models.
|
|
4577
|
+
* Opens the same publishing modal as the **Publish** action.
|
|
4578
|
+
* Appears as a child action to the **Publish** action if the
|
|
4579
|
+
* object is already published.
|
|
4580
|
+
* @example
|
|
4581
|
+
* ```js
|
|
4582
|
+
* hiddenActions: [Action.ManagePublishing]
|
|
4583
|
+
* disabledActions: [Action.ManagePublishing]
|
|
4584
|
+
* ```
|
|
4585
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4586
|
+
*/
|
|
4587
|
+
Action["ManagePublishing"] = "managePublishing";
|
|
4588
|
+
/**
|
|
4589
|
+
* The **Unpublish** action for Liveboards, Answers and Models.
|
|
4590
|
+
* Opens the unpublishing modal. Appears as a child action to
|
|
4591
|
+
* the **Publish** action if the object is already published.
|
|
4592
|
+
* @example
|
|
4593
|
+
* ```js
|
|
4594
|
+
* hiddenActions: [Action.Unpublish]
|
|
4595
|
+
* disabledActions: [Action.Unpublish]
|
|
4596
|
+
* ```
|
|
4597
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4598
|
+
*/
|
|
4599
|
+
Action["Unpublish"] = "unpublish";
|
|
4600
|
+
/**
|
|
4601
|
+
* The **Parameterize** action for Tables and Connections.
|
|
4602
|
+
* Opens the parameterization modal.
|
|
4603
|
+
* @example
|
|
4604
|
+
* ```js
|
|
4605
|
+
* hiddenActions: [Action.Parameterize]
|
|
4606
|
+
* disabledActions: [Action.Parameterize]
|
|
4607
|
+
* ```
|
|
4608
|
+
* @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4609
|
+
*/
|
|
4610
|
+
Action["Parameterize"] = "parameterise";
|
|
4538
4611
|
/**
|
|
4539
4612
|
* The **Move to Group** menu action on a Liveboard.
|
|
4540
4613
|
* Allows moving a visualization to a different group.
|
|
@@ -4575,6 +4648,18 @@
|
|
|
4575
4648
|
* @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
|
|
4576
4649
|
*/
|
|
4577
4650
|
Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
|
|
4651
|
+
/**
|
|
4652
|
+
* The **Include current period** checkbox for date filters.
|
|
4653
|
+
* Controls the visibility and availability of the option to include
|
|
4654
|
+
* the current time period in filter results.
|
|
4655
|
+
* @example
|
|
4656
|
+
* ```js
|
|
4657
|
+
* hiddenActions: [Action.IncludeCurrentPeriod]
|
|
4658
|
+
* disabledActions: [Action.IncludeCurrentPeriod]
|
|
4659
|
+
* ```
|
|
4660
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
|
|
4661
|
+
*/
|
|
4662
|
+
Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
|
|
4578
4663
|
})(exports.Action || (exports.Action = {}));
|
|
4579
4664
|
exports.PrefetchFeatures = void 0;
|
|
4580
4665
|
(function (PrefetchFeatures) {
|
|
@@ -4719,31 +4804,19 @@
|
|
|
4719
4804
|
ErrorDetailsTypes["NETWORK"] = "NETWORK";
|
|
4720
4805
|
})(exports.ErrorDetailsTypes || (exports.ErrorDetailsTypes = {}));
|
|
4721
4806
|
/**
|
|
4722
|
-
*
|
|
4723
|
-
*
|
|
4724
|
-
* These codes provide granular identification of errors that occur in embedded components.
|
|
4725
|
-
* They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
|
|
4726
|
-
* precise error handling and debugging.
|
|
4807
|
+
* Error codes for identifying specific issues in embedded ThoughtSpot components.
|
|
4727
4808
|
*
|
|
4728
|
-
*
|
|
4729
|
-
*
|
|
4730
|
-
* - **Liveboard ID missing**: Errors related to missing liveboard ID
|
|
4731
|
-
* - **Conflicting actions configuration**: Errors related to conflicting actions configuration
|
|
4732
|
-
* - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
|
|
4733
|
-
* - **Initialization error**: Errors related to initialization error
|
|
4734
|
-
* - **Network error**: Errors related to network error
|
|
4735
|
-
* - **Custom action validation**: Errors related to custom action validation
|
|
4736
|
-
* - **Login failed**: Errors related to login failed
|
|
4737
|
-
* - **Render not called**: Errors related to render not called
|
|
4738
|
-
* - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
|
|
4809
|
+
* Use these codes for precise error handling and debugging. Each code maps to a
|
|
4810
|
+
* distinct failure scenario, enabling targeted recovery strategies.
|
|
4739
4811
|
*
|
|
4740
4812
|
* @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
|
|
4741
4813
|
* @group Error Handling
|
|
4814
|
+
*
|
|
4742
4815
|
* @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
|
|
4743
4816
|
* @see {@link ErrorDetailsTypes} - General error type categories
|
|
4744
4817
|
*
|
|
4745
4818
|
* @example
|
|
4746
|
-
* Handle specific error codes
|
|
4819
|
+
* Handle specific error codes in the error event handler
|
|
4747
4820
|
*
|
|
4748
4821
|
* embed.on(EmbedEvent.Error, (error) => {
|
|
4749
4822
|
* if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
|
|
@@ -8285,7 +8358,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
8285
8358
|
const getSQLQuery = `
|
|
8286
8359
|
mutation GetSQLQuery($session: BachSessionIdInput!) {
|
|
8287
8360
|
Answer__getQuery(session: $session) {
|
|
8288
|
-
${bachSessionId}
|
|
8289
8361
|
sql
|
|
8290
8362
|
}
|
|
8291
8363
|
}
|
|
@@ -17537,7 +17609,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17537
17609
|
channel.port1.onmessage = ({ data: responseData }) => {
|
|
17538
17610
|
var _a;
|
|
17539
17611
|
channel.port1.close();
|
|
17540
|
-
const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
|
|
17612
|
+
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);
|
|
17541
17613
|
if (error) {
|
|
17542
17614
|
rej(error);
|
|
17543
17615
|
}
|
|
@@ -18049,7 +18121,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18049
18121
|
return eventData;
|
|
18050
18122
|
}
|
|
18051
18123
|
|
|
18052
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
18124
|
+
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};
|
|
18053
18125
|
|
|
18054
18126
|
class HostEventClient {
|
|
18055
18127
|
constructor(iFrame) {
|
|
@@ -18541,8 +18613,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18541
18613
|
this.eventHandlerMap = new Map();
|
|
18542
18614
|
this.isError = false;
|
|
18543
18615
|
this.viewConfig = {
|
|
18544
|
-
excludeRuntimeFiltersfromURL:
|
|
18545
|
-
excludeRuntimeParametersfromURL:
|
|
18616
|
+
excludeRuntimeFiltersfromURL: true,
|
|
18617
|
+
excludeRuntimeParametersfromURL: true,
|
|
18546
18618
|
...viewConfig,
|
|
18547
18619
|
};
|
|
18548
18620
|
this.registerAppInit();
|
|
@@ -19734,7 +19806,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19734
19806
|
* @hidden
|
|
19735
19807
|
*/
|
|
19736
19808
|
this.test__executeCallbacks = this.executeCallbacks;
|
|
19737
|
-
this.viewConfig = {
|
|
19809
|
+
this.viewConfig = {
|
|
19810
|
+
excludeRuntimeFiltersfromURL: true,
|
|
19811
|
+
excludeRuntimeParametersfromURL: true,
|
|
19812
|
+
...viewConfig,
|
|
19813
|
+
};
|
|
19738
19814
|
}
|
|
19739
19815
|
/**
|
|
19740
19816
|
* Render the app in an iframe and set up event handlers
|
|
@@ -19970,7 +20046,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19970
20046
|
* embedded Liveboard or visualization.
|
|
19971
20047
|
*/
|
|
19972
20048
|
getEmbedParams() {
|
|
19973
|
-
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 = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false,
|
|
20049
|
+
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 = exports.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;
|
|
19974
20050
|
let params = {};
|
|
19975
20051
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
19976
20052
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -20039,12 +20115,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20039
20115
|
if (isLiveboardStylingAndGroupingEnabled !== undefined) {
|
|
20040
20116
|
params[Param.IsLiveboardStylingAndGroupingEnabled] = isLiveboardStylingAndGroupingEnabled;
|
|
20041
20117
|
}
|
|
20042
|
-
if (liveboardXLSXCSVDownload !== undefined) {
|
|
20043
|
-
params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
|
|
20044
|
-
}
|
|
20045
20118
|
if (isPNGInScheduledEmailsEnabled !== undefined) {
|
|
20046
20119
|
params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
|
|
20047
20120
|
}
|
|
20121
|
+
if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
|
|
20122
|
+
params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
|
|
20123
|
+
}
|
|
20124
|
+
if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
|
|
20125
|
+
params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
|
|
20126
|
+
}
|
|
20048
20127
|
if (hideTagFilterChips !== undefined) {
|
|
20049
20128
|
params[Param.HideTagFilterChips] = hideTagFilterChips;
|
|
20050
20129
|
}
|
|
@@ -20054,6 +20133,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20054
20133
|
if (isCentralizedLiveboardFilterUXEnabled != undefined) {
|
|
20055
20134
|
params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
|
|
20056
20135
|
}
|
|
20136
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20137
|
+
params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20138
|
+
}
|
|
20057
20139
|
this.defaultHeight = minimumHeight || this.defaultHeight;
|
|
20058
20140
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20059
20141
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
@@ -20409,7 +20491,7 @@ query GetEurekaVizSnapshots(
|
|
|
20409
20491
|
getEmbedParamsObject() {
|
|
20410
20492
|
let params = {};
|
|
20411
20493
|
params = this.getBaseQueryParams(params);
|
|
20412
|
-
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,
|
|
20494
|
+
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;
|
|
20413
20495
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
20414
20496
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
20415
20497
|
if (fullHeight === true) {
|
|
@@ -20474,6 +20556,12 @@ query GetEurekaVizSnapshots(
|
|
|
20474
20556
|
if (isPNGInScheduledEmailsEnabled !== undefined) {
|
|
20475
20557
|
params[Param.isPNGInScheduledEmailsEnabled] = isPNGInScheduledEmailsEnabled;
|
|
20476
20558
|
}
|
|
20559
|
+
if (isLiveboardXLSXCSVDownloadEnabled !== undefined) {
|
|
20560
|
+
params[Param.isLiveboardXLSXCSVDownloadEnabled] = isLiveboardXLSXCSVDownloadEnabled;
|
|
20561
|
+
}
|
|
20562
|
+
if (isGranularXLSXCSVSchedulesEnabled !== undefined) {
|
|
20563
|
+
params[Param.isGranularXLSXCSVSchedulesEnabled] = isGranularXLSXCSVSchedulesEnabled;
|
|
20564
|
+
}
|
|
20477
20565
|
if (showSpotterLimitations !== undefined) {
|
|
20478
20566
|
params[Param.ShowSpotterLimitations] = showSpotterLimitations;
|
|
20479
20567
|
}
|
|
@@ -20483,6 +20571,9 @@ query GetEurekaVizSnapshots(
|
|
|
20483
20571
|
if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
|
|
20484
20572
|
params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
|
|
20485
20573
|
}
|
|
20574
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20575
|
+
params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20576
|
+
}
|
|
20486
20577
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
20487
20578
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
20488
20579
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -20494,9 +20585,6 @@ query GetEurekaVizSnapshots(
|
|
|
20494
20585
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20495
20586
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
20496
20587
|
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
20497
|
-
if (liveboardXLSXCSVDownload !== undefined) {
|
|
20498
|
-
params[Param.LiveboardXLSXCSVDownload] = !!liveboardXLSXCSVDownload;
|
|
20499
|
-
}
|
|
20500
20588
|
getQueryParamString(params, true);
|
|
20501
20589
|
return params;
|
|
20502
20590
|
}
|
|
@@ -20713,7 +20801,12 @@ query GetEurekaVizSnapshots(
|
|
|
20713
20801
|
*/
|
|
20714
20802
|
class SearchEmbed extends TsEmbed {
|
|
20715
20803
|
constructor(domSelector, viewConfig) {
|
|
20716
|
-
viewConfig
|
|
20804
|
+
viewConfig = {
|
|
20805
|
+
embedComponentType: 'SearchEmbed',
|
|
20806
|
+
excludeRuntimeFiltersfromURL: true,
|
|
20807
|
+
excludeRuntimeParametersfromURL: true,
|
|
20808
|
+
...viewConfig,
|
|
20809
|
+
};
|
|
20717
20810
|
super(domSelector, viewConfig);
|
|
20718
20811
|
}
|
|
20719
20812
|
/**
|
|
@@ -20747,7 +20840,7 @@ query GetEurekaVizSnapshots(
|
|
|
20747
20840
|
}
|
|
20748
20841
|
getEmbedParamsObject() {
|
|
20749
20842
|
var _a;
|
|
20750
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
20843
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
|
|
20751
20844
|
const queryParams = this.getBaseQueryParams();
|
|
20752
20845
|
queryParams[Param.HideActions] = [
|
|
20753
20846
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -20782,6 +20875,9 @@ query GetEurekaVizSnapshots(
|
|
|
20782
20875
|
if (!focusSearchBarOnRender) {
|
|
20783
20876
|
queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
|
|
20784
20877
|
}
|
|
20878
|
+
if (isThisPeriodInDateFiltersEnabled !== undefined) {
|
|
20879
|
+
queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
|
|
20880
|
+
}
|
|
20785
20881
|
queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
20786
20882
|
queryParams[Param.DataSourceMode] = this.getDataSourceMode();
|
|
20787
20883
|
queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
|
|
@@ -21483,7 +21579,12 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
21483
21579
|
*/
|
|
21484
21580
|
class SpotterEmbed extends TsEmbed {
|
|
21485
21581
|
constructor(container, viewConfig) {
|
|
21486
|
-
viewConfig
|
|
21582
|
+
viewConfig = {
|
|
21583
|
+
embedComponentType: 'conversation',
|
|
21584
|
+
excludeRuntimeFiltersfromURL: true,
|
|
21585
|
+
excludeRuntimeParametersfromURL: true,
|
|
21586
|
+
...viewConfig,
|
|
21587
|
+
};
|
|
21487
21588
|
super(container, viewConfig);
|
|
21488
21589
|
this.viewConfig = viewConfig;
|
|
21489
21590
|
}
|
|
@@ -21571,7 +21672,12 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
21571
21672
|
*/
|
|
21572
21673
|
class ConversationEmbed extends SpotterEmbed {
|
|
21573
21674
|
constructor(container, viewConfig) {
|
|
21574
|
-
viewConfig
|
|
21675
|
+
viewConfig = {
|
|
21676
|
+
embedComponentType: 'conversation',
|
|
21677
|
+
excludeRuntimeFiltersfromURL: true,
|
|
21678
|
+
excludeRuntimeParametersfromURL: true,
|
|
21679
|
+
...viewConfig,
|
|
21680
|
+
};
|
|
21575
21681
|
super(container, viewConfig);
|
|
21576
21682
|
this.viewConfig = viewConfig;
|
|
21577
21683
|
}
|