@thoughtspot/visual-embed-sdk 1.29.2 → 1.30.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/authToken.d.ts +1 -1
- package/cjs/src/authToken.js +1 -1
- package/cjs/src/embed/app.d.ts +1 -4
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +6 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/search.d.ts +1 -5
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +4 -4
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +9 -18
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +21 -54
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +20 -47
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -2
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +2 -2
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +43 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.js +2 -1
- package/cjs/src/utils/graphql/graphql-request.js.map +1 -1
- package/dist/src/authToken.d.ts +1 -1
- package/dist/src/embed/app.d.ts +1 -4
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +1 -5
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/types.d.ts +21 -54
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -2
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +26 -53
- package/dist/tsembed-react.js +26 -53
- package/dist/tsembed.es.js +1563 -1590
- package/dist/tsembed.js +3139 -3166
- package/dist/visual-embed-sdk-react-full.d.ts +24 -64
- package/dist/visual-embed-sdk-react.d.ts +24 -64
- package/dist/visual-embed-sdk.d.ts +24 -64
- package/lib/package.json +1 -1
- package/lib/src/authToken.d.ts +1 -1
- package/lib/src/authToken.js +1 -1
- package/lib/src/embed/app.d.ts +1 -4
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +5 -5
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/search.d.ts +1 -5
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +5 -5
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +9 -18
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +21 -54
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +20 -47
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -2
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +2 -2
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +44 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/lib/src/utils/graphql/graphql-request.js +2 -1
- package/lib/src/utils/graphql/graphql-request.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +27 -67
- package/package.json +1 -1
- package/src/authToken.ts +1 -1
- package/src/embed/app.ts +14 -16
- package/src/embed/base.ts +14 -15
- package/src/embed/search.spec.ts +1 -2
- package/src/embed/search.ts +15 -21
- package/src/embed/ts-embed.spec.ts +24 -37
- package/src/types.ts +26 -60
- package/src/utils/graphql/answerService/answerService.spec.ts +53 -1
- package/src/utils/graphql/answerService/answerService.ts +2 -2
- package/src/utils/graphql/graphql-request.ts +2 -1
package/dist/tsembed-react.es.js
CHANGED
|
@@ -559,7 +559,6 @@ var AuthType;
|
|
|
559
559
|
* .then((data) => data.token);
|
|
560
560
|
* }
|
|
561
561
|
* });
|
|
562
|
-
* });
|
|
563
562
|
* ```
|
|
564
563
|
*/
|
|
565
564
|
AuthType["TrustedAuthToken"] = "AuthServer";
|
|
@@ -688,6 +687,10 @@ var RuntimeFilterOp;
|
|
|
688
687
|
* Is included in this list of values
|
|
689
688
|
*/
|
|
690
689
|
RuntimeFilterOp["IN"] = "IN";
|
|
690
|
+
/**
|
|
691
|
+
* Is not included in this list of values
|
|
692
|
+
*/
|
|
693
|
+
RuntimeFilterOp["NOT_IN"] = "NOT_IN";
|
|
691
694
|
})(RuntimeFilterOp || (RuntimeFilterOp = {}));
|
|
692
695
|
/**
|
|
693
696
|
* Home page module that can be hidden.
|
|
@@ -924,20 +927,14 @@ var EmbedEvent;
|
|
|
924
927
|
/**
|
|
925
928
|
* An error has occurred. This event is fired for the following error types:
|
|
926
929
|
*
|
|
927
|
-
* `API
|
|
928
|
-
*
|
|
929
|
-
* `
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
* `
|
|
933
|
-
*
|
|
934
|
-
* `NON_EXIST_FILTER`: Error due to a non-existent filter.
|
|
935
|
-
*
|
|
936
|
-
* `INVALID_DATE_VALUE`: Invalid date value error.
|
|
937
|
-
*
|
|
938
|
-
* `INVALID_OPERATOR`: Use of invalid operator during filter application.
|
|
930
|
+
* `API` - API call failure error.
|
|
931
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
|
|
932
|
+
* mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
|
|
933
|
+
* filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
934
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
935
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
939
936
|
*
|
|
940
|
-
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
937
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
941
938
|
* @returns error - An error object or message
|
|
942
939
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
943
940
|
* @example
|
|
@@ -1037,7 +1034,7 @@ var EmbedEvent;
|
|
|
1037
1034
|
/**
|
|
1038
1035
|
* Emitted when the embed does not have cookie access. This happens
|
|
1039
1036
|
* when Safari and other Web browsers block third-party cookies
|
|
1040
|
-
* are blocked by default.
|
|
1037
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
1041
1038
|
* @example
|
|
1042
1039
|
*```js
|
|
1043
1040
|
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
@@ -1076,7 +1073,7 @@ var EmbedEvent;
|
|
|
1076
1073
|
/**
|
|
1077
1074
|
* Emitted when the Liveboard shell loads.
|
|
1078
1075
|
* You can use this event as a hook to trigger
|
|
1079
|
-
*
|
|
1076
|
+
* other events on the rendered Liveboard.
|
|
1080
1077
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1081
1078
|
* @example
|
|
1082
1079
|
*```js
|
|
@@ -1127,7 +1124,7 @@ var EmbedEvent;
|
|
|
1127
1124
|
/**
|
|
1128
1125
|
* Emitted when the download action is triggered on an answer
|
|
1129
1126
|
*
|
|
1130
|
-
* **Note**:
|
|
1127
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1131
1128
|
* To fire an event when a download action is initiated on a chart or table,
|
|
1132
1129
|
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1133
1130
|
* or `EmbedEvent.DownloadAsXLSX`
|
|
@@ -1204,7 +1201,7 @@ var EmbedEvent;
|
|
|
1204
1201
|
* //emit when action starts
|
|
1205
1202
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1206
1203
|
* console.log('delete answer', payload)}, {start: true })
|
|
1207
|
-
* //
|
|
1204
|
+
* //trigger when action is completed
|
|
1208
1205
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1209
1206
|
* console.log('delete answer', payload)})
|
|
1210
1207
|
*```
|
|
@@ -1302,7 +1299,6 @@ var EmbedEvent;
|
|
|
1302
1299
|
/**
|
|
1303
1300
|
* Emitted when a user clicks the **Update TML** action on
|
|
1304
1301
|
* embedded Liveboard.
|
|
1305
|
-
*
|
|
1306
1302
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1307
1303
|
* @example
|
|
1308
1304
|
*```js
|
|
@@ -1314,7 +1310,6 @@ var EmbedEvent;
|
|
|
1314
1310
|
/**
|
|
1315
1311
|
* Emitted when a user clicks the **Edit TML** action
|
|
1316
1312
|
* on an embedded Liveboard.
|
|
1317
|
-
*
|
|
1318
1313
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1319
1314
|
* @example
|
|
1320
1315
|
*```js
|
|
@@ -1514,7 +1509,7 @@ var EmbedEvent;
|
|
|
1514
1509
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1515
1510
|
* @example
|
|
1516
1511
|
*```js
|
|
1517
|
-
* liveboardEmbed.
|
|
1512
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
1518
1513
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1519
1514
|
*```
|
|
1520
1515
|
*/
|
|
@@ -1547,13 +1542,6 @@ var EmbedEvent;
|
|
|
1547
1542
|
* })
|
|
1548
1543
|
*
|
|
1549
1544
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1550
|
-
* @example
|
|
1551
|
-
*
|
|
1552
|
-
*```js
|
|
1553
|
-
* LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
|
|
1554
|
-
* console.log('payload', payload);
|
|
1555
|
-
* })
|
|
1556
|
-
*```
|
|
1557
1545
|
*/
|
|
1558
1546
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1559
1547
|
/**
|
|
@@ -1793,8 +1781,8 @@ var HostEvent;
|
|
|
1793
1781
|
* _String_. The name of the column to filter on.
|
|
1794
1782
|
*
|
|
1795
1783
|
* `operator`
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1784
|
+
* Runtime filter operator to apply. For information,
|
|
1785
|
+
* see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
|
|
1798
1786
|
*
|
|
1799
1787
|
* `values`
|
|
1800
1788
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
@@ -1924,20 +1912,16 @@ var HostEvent;
|
|
|
1924
1912
|
/**
|
|
1925
1913
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
1926
1914
|
* Answer.
|
|
1927
|
-
*
|
|
1928
1915
|
* @example
|
|
1929
1916
|
* ```js
|
|
1930
1917
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
1931
1918
|
* ```
|
|
1932
|
-
*
|
|
1933
1919
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1934
1920
|
*/
|
|
1935
1921
|
HostEvent["ExportTML"] = "exportTSL";
|
|
1936
1922
|
/**
|
|
1937
1923
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
1938
1924
|
* saved Answers in the full application embedding.
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1941
1925
|
* @example
|
|
1942
1926
|
* ```js
|
|
1943
1927
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -1960,7 +1944,6 @@ var HostEvent;
|
|
|
1960
1944
|
*
|
|
1961
1945
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
1962
1946
|
* visualizations and Answers if the data is in tabular format.
|
|
1963
|
-
*
|
|
1964
1947
|
* @example
|
|
1965
1948
|
* ```js
|
|
1966
1949
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
@@ -2032,15 +2015,12 @@ var HostEvent;
|
|
|
2032
2015
|
* on a Liveboard.
|
|
2033
2016
|
*
|
|
2034
2017
|
* This event is not supported in visualization embed and search embed.
|
|
2035
|
-
*
|
|
2036
2018
|
* @param - object - To trigger the action for a specific visualization
|
|
2037
2019
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
2038
|
-
*
|
|
2039
2020
|
* @example
|
|
2040
2021
|
* ```js
|
|
2041
2022
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
2042
2023
|
* ```
|
|
2043
|
-
* @example
|
|
2044
2024
|
* ```js
|
|
2045
2025
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
2046
2026
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
@@ -2303,7 +2283,6 @@ var HostEvent;
|
|
|
2303
2283
|
/**
|
|
2304
2284
|
* Get details of filters applied on the Liveboard.
|
|
2305
2285
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
2306
|
-
*
|
|
2307
2286
|
* @example
|
|
2308
2287
|
* ```js
|
|
2309
2288
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -2330,7 +2309,6 @@ var HostEvent;
|
|
|
2330
2309
|
* `values` - An array of one or several values. The value definition on the
|
|
2331
2310
|
* data type you choose to filter on. For a complete list of supported data types,
|
|
2332
2311
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Developer Documentation].
|
|
2333
|
-
*
|
|
2334
2312
|
* @example
|
|
2335
2313
|
* ```js
|
|
2336
2314
|
*
|
|
@@ -2655,7 +2633,6 @@ var Action;
|
|
|
2655
2633
|
* The **Save as View** action on the Answer
|
|
2656
2634
|
* page. Saves an Answer as a View object in the full
|
|
2657
2635
|
* application embedding mode.
|
|
2658
|
-
*
|
|
2659
2636
|
* @example
|
|
2660
2637
|
* ```js
|
|
2661
2638
|
* disabledActions: [Action.SaveAsView]
|
|
@@ -2859,13 +2836,10 @@ var Action;
|
|
|
2859
2836
|
Action["DownloadAsPng"] = "downloadAsPng";
|
|
2860
2837
|
/**
|
|
2861
2838
|
*
|
|
2862
|
-
*
|
|
2863
|
-
*
|
|
2839
|
+
*The **Download PDF** action that downloads a Liveboard,
|
|
2840
|
+
*visualization, or Answer as a PDF file.
|
|
2864
2841
|
*
|
|
2865
2842
|
*
|
|
2866
|
-
* **NOTE**: The **Download** > **PDF** action is available on
|
|
2867
|
-
* visualizations and Answers if the data is in tabular format.
|
|
2868
|
-
*
|
|
2869
2843
|
***NOTE**: The **Download** > **PDF** action is available on
|
|
2870
2844
|
*visualizations and Answers if the data is in tabular format.
|
|
2871
2845
|
* @example
|
|
@@ -3115,7 +3089,6 @@ var Action;
|
|
|
3115
3089
|
/**
|
|
3116
3090
|
* The **Delete** action for Answers in the full application
|
|
3117
3091
|
* embedding mode.
|
|
3118
|
-
*
|
|
3119
3092
|
* @example
|
|
3120
3093
|
* ```js
|
|
3121
3094
|
* disabledActions: [Action.AnswerDelete]
|
|
@@ -5820,7 +5793,7 @@ function isEqual(value, other) {
|
|
|
5820
5793
|
|
|
5821
5794
|
var isEqual_1 = isEqual;
|
|
5822
5795
|
|
|
5823
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
5796
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.30.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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 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};
|
|
5824
5797
|
|
|
5825
5798
|
const logFunctions = {
|
|
5826
5799
|
[LogLevel.SILENT]: () => undefined,
|
|
@@ -6064,7 +6037,7 @@ const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
|
6064
6037
|
* ```js
|
|
6065
6038
|
* resetCachedAuthToken();
|
|
6066
6039
|
* ```
|
|
6067
|
-
* @version SDK: 1.28.
|
|
6040
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6068
6041
|
* @group Authentication / Init
|
|
6069
6042
|
*/
|
|
6070
6043
|
const resetCachedAuthToken = () => {
|
|
@@ -12624,7 +12597,7 @@ const DEFAULT_EMBED_HEIGHT = '100%';
|
|
|
12624
12597
|
async function graphqlQuery({ query, variables, thoughtSpotHost, isCompositeQuery = false, }) {
|
|
12625
12598
|
const operationName = getOperationNameFromQuery(query);
|
|
12626
12599
|
try {
|
|
12627
|
-
const response = await
|
|
12600
|
+
const response = await tokenizedFetch(`${thoughtSpotHost}/prism/?op=${operationName}`, {
|
|
12628
12601
|
method: 'POST',
|
|
12629
12602
|
headers: {
|
|
12630
12603
|
'content-type': 'application/json;charset=UTF-8',
|
|
@@ -12939,14 +12912,14 @@ class AnswerService {
|
|
|
12939
12912
|
* ```js
|
|
12940
12913
|
* embed.on(EmbedEvent.Data, async (e) => {
|
|
12941
12914
|
* const service = await embed.getAnswerService();
|
|
12942
|
-
* await service.
|
|
12915
|
+
* await service.addColumnsByName([
|
|
12943
12916
|
* "col name 1",
|
|
12944
12917
|
* "col name 2"
|
|
12945
12918
|
* ]);
|
|
12946
12919
|
* console.log(await service.fetchData());
|
|
12947
12920
|
* });
|
|
12948
12921
|
*/
|
|
12949
|
-
async
|
|
12922
|
+
async addColumnsByName(columnNames) {
|
|
12950
12923
|
const sourceDetail = await this.getSourceDetail();
|
|
12951
12924
|
const columnGuids = getGuidsFromColumnNames(sourceDetail, columnNames);
|
|
12952
12925
|
return this.addColumns([...columnGuids]);
|
|
@@ -14927,7 +14900,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
14927
14900
|
}
|
|
14928
14901
|
getEmbedParams() {
|
|
14929
14902
|
var _a;
|
|
14930
|
-
const { hideResults,
|
|
14903
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
14931
14904
|
/* eslint-disable-next-line max-len */
|
|
14932
14905
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
14933
14906
|
const queryParams = this.getBaseQueryParams();
|
package/dist/tsembed-react.js
CHANGED
|
@@ -567,7 +567,6 @@
|
|
|
567
567
|
* .then((data) => data.token);
|
|
568
568
|
* }
|
|
569
569
|
* });
|
|
570
|
-
* });
|
|
571
570
|
* ```
|
|
572
571
|
*/
|
|
573
572
|
AuthType["TrustedAuthToken"] = "AuthServer";
|
|
@@ -682,6 +681,10 @@
|
|
|
682
681
|
* Is included in this list of values
|
|
683
682
|
*/
|
|
684
683
|
RuntimeFilterOp["IN"] = "IN";
|
|
684
|
+
/**
|
|
685
|
+
* Is not included in this list of values
|
|
686
|
+
*/
|
|
687
|
+
RuntimeFilterOp["NOT_IN"] = "NOT_IN";
|
|
685
688
|
})(exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
|
|
686
689
|
(function (HomepageModule) {
|
|
687
690
|
/**
|
|
@@ -888,20 +891,14 @@
|
|
|
888
891
|
/**
|
|
889
892
|
* An error has occurred. This event is fired for the following error types:
|
|
890
893
|
*
|
|
891
|
-
* `API
|
|
892
|
-
*
|
|
893
|
-
* `
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
* `
|
|
897
|
-
*
|
|
898
|
-
* `NON_EXIST_FILTER`: Error due to a non-existent filter.
|
|
899
|
-
*
|
|
900
|
-
* `INVALID_DATE_VALUE`: Invalid date value error.
|
|
901
|
-
*
|
|
902
|
-
* `INVALID_OPERATOR`: Use of invalid operator during filter application.
|
|
894
|
+
* `API` - API call failure error.
|
|
895
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
|
|
896
|
+
* mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
|
|
897
|
+
* filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
898
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
899
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
903
900
|
*
|
|
904
|
-
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
901
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
905
902
|
* @returns error - An error object or message
|
|
906
903
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
907
904
|
* @example
|
|
@@ -1001,7 +998,7 @@
|
|
|
1001
998
|
/**
|
|
1002
999
|
* Emitted when the embed does not have cookie access. This happens
|
|
1003
1000
|
* when Safari and other Web browsers block third-party cookies
|
|
1004
|
-
* are blocked by default.
|
|
1001
|
+
* are blocked by default. `NoCookieAccess` can trigger
|
|
1005
1002
|
* @example
|
|
1006
1003
|
*```js
|
|
1007
1004
|
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
@@ -1040,7 +1037,7 @@
|
|
|
1040
1037
|
/**
|
|
1041
1038
|
* Emitted when the Liveboard shell loads.
|
|
1042
1039
|
* You can use this event as a hook to trigger
|
|
1043
|
-
*
|
|
1040
|
+
* other events on the rendered Liveboard.
|
|
1044
1041
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1045
1042
|
* @example
|
|
1046
1043
|
*```js
|
|
@@ -1091,7 +1088,7 @@
|
|
|
1091
1088
|
/**
|
|
1092
1089
|
* Emitted when the download action is triggered on an answer
|
|
1093
1090
|
*
|
|
1094
|
-
* **Note**:
|
|
1091
|
+
* **Note**: This event is deprecated in v1.21.0.
|
|
1095
1092
|
* To fire an event when a download action is initiated on a chart or table,
|
|
1096
1093
|
* use `EmbedEvent.DownloadAsPng`, `EmbedEvent.DownloadAsPDF`, `EmbedEvent.DownloadAsCSV`,
|
|
1097
1094
|
* or `EmbedEvent.DownloadAsXLSX`
|
|
@@ -1168,7 +1165,7 @@
|
|
|
1168
1165
|
* //emit when action starts
|
|
1169
1166
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1170
1167
|
* console.log('delete answer', payload)}, {start: true })
|
|
1171
|
-
* //
|
|
1168
|
+
* //trigger when action is completed
|
|
1172
1169
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
1173
1170
|
* console.log('delete answer', payload)})
|
|
1174
1171
|
*```
|
|
@@ -1266,7 +1263,6 @@
|
|
|
1266
1263
|
/**
|
|
1267
1264
|
* Emitted when a user clicks the **Update TML** action on
|
|
1268
1265
|
* embedded Liveboard.
|
|
1269
|
-
*
|
|
1270
1266
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1271
1267
|
* @example
|
|
1272
1268
|
*```js
|
|
@@ -1278,7 +1274,6 @@
|
|
|
1278
1274
|
/**
|
|
1279
1275
|
* Emitted when a user clicks the **Edit TML** action
|
|
1280
1276
|
* on an embedded Liveboard.
|
|
1281
|
-
*
|
|
1282
1277
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1283
1278
|
* @example
|
|
1284
1279
|
*```js
|
|
@@ -1478,7 +1473,7 @@
|
|
|
1478
1473
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1479
1474
|
* @example
|
|
1480
1475
|
*```js
|
|
1481
|
-
* liveboardEmbed.
|
|
1476
|
+
* liveboardEmbed.trigger(HostEvent.CrossFilterChanged, {
|
|
1482
1477
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1483
1478
|
*```
|
|
1484
1479
|
*/
|
|
@@ -1511,13 +1506,6 @@
|
|
|
1511
1506
|
* })
|
|
1512
1507
|
*
|
|
1513
1508
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.0.sw
|
|
1514
|
-
* @example
|
|
1515
|
-
*
|
|
1516
|
-
*```js
|
|
1517
|
-
* LiveboardEmbed.on(EmbedEvent.FilterChanged, (payload) => {
|
|
1518
|
-
* console.log('payload', payload);
|
|
1519
|
-
* })
|
|
1520
|
-
*```
|
|
1521
1509
|
*/
|
|
1522
1510
|
EmbedEvent["FilterChanged"] = "filterChanged";
|
|
1523
1511
|
/**
|
|
@@ -1734,8 +1722,8 @@
|
|
|
1734
1722
|
* _String_. The name of the column to filter on.
|
|
1735
1723
|
*
|
|
1736
1724
|
* `operator`
|
|
1737
|
-
*
|
|
1738
|
-
*
|
|
1725
|
+
* Runtime filter operator to apply. For information,
|
|
1726
|
+
* see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
|
|
1739
1727
|
*
|
|
1740
1728
|
* `values`
|
|
1741
1729
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
@@ -1865,20 +1853,16 @@
|
|
|
1865
1853
|
/**
|
|
1866
1854
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
1867
1855
|
* Answer.
|
|
1868
|
-
*
|
|
1869
1856
|
* @example
|
|
1870
1857
|
* ```js
|
|
1871
1858
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
1872
1859
|
* ```
|
|
1873
|
-
*
|
|
1874
1860
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1875
1861
|
*/
|
|
1876
1862
|
HostEvent["ExportTML"] = "exportTSL";
|
|
1877
1863
|
/**
|
|
1878
1864
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
1879
1865
|
* saved Answers in the full application embedding.
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
1866
|
* @example
|
|
1883
1867
|
* ```js
|
|
1884
1868
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -1901,7 +1885,6 @@
|
|
|
1901
1885
|
*
|
|
1902
1886
|
* **NOTE**: The **Download** > **PDF** action is available on
|
|
1903
1887
|
* visualizations and Answers if the data is in tabular format.
|
|
1904
|
-
*
|
|
1905
1888
|
* @example
|
|
1906
1889
|
* ```js
|
|
1907
1890
|
* liveboardEmbed.trigger(HostEvent.DownloadAsPdf)
|
|
@@ -1973,15 +1956,12 @@
|
|
|
1973
1956
|
* on a Liveboard.
|
|
1974
1957
|
*
|
|
1975
1958
|
* This event is not supported in visualization embed and search embed.
|
|
1976
|
-
*
|
|
1977
1959
|
* @param - object - To trigger the action for a specific visualization
|
|
1978
1960
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
1979
|
-
*
|
|
1980
1961
|
* @example
|
|
1981
1962
|
* ```js
|
|
1982
1963
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
1983
1964
|
* ```
|
|
1984
|
-
* @example
|
|
1985
1965
|
* ```js
|
|
1986
1966
|
* liveboardEmbed.trigger(HostEvent.Edit, {vizId:
|
|
1987
1967
|
* '730496d6-6903-4601-937e-2c691821af3c'})
|
|
@@ -2244,7 +2224,6 @@
|
|
|
2244
2224
|
/**
|
|
2245
2225
|
* Get details of filters applied on the Liveboard.
|
|
2246
2226
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
2247
|
-
*
|
|
2248
2227
|
* @example
|
|
2249
2228
|
* ```js
|
|
2250
2229
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -2271,7 +2250,6 @@
|
|
|
2271
2250
|
* `values` - An array of one or several values. The value definition on the
|
|
2272
2251
|
* data type you choose to filter on. For a complete list of supported data types,
|
|
2273
2252
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Developer Documentation].
|
|
2274
|
-
*
|
|
2275
2253
|
* @example
|
|
2276
2254
|
* ```js
|
|
2277
2255
|
*
|
|
@@ -2568,7 +2546,6 @@
|
|
|
2568
2546
|
* The **Save as View** action on the Answer
|
|
2569
2547
|
* page. Saves an Answer as a View object in the full
|
|
2570
2548
|
* application embedding mode.
|
|
2571
|
-
*
|
|
2572
2549
|
* @example
|
|
2573
2550
|
* ```js
|
|
2574
2551
|
* disabledActions: [Action.SaveAsView]
|
|
@@ -2772,13 +2749,10 @@
|
|
|
2772
2749
|
Action["DownloadAsPng"] = "downloadAsPng";
|
|
2773
2750
|
/**
|
|
2774
2751
|
*
|
|
2775
|
-
*
|
|
2776
|
-
*
|
|
2752
|
+
*The **Download PDF** action that downloads a Liveboard,
|
|
2753
|
+
*visualization, or Answer as a PDF file.
|
|
2777
2754
|
*
|
|
2778
2755
|
*
|
|
2779
|
-
* **NOTE**: The **Download** > **PDF** action is available on
|
|
2780
|
-
* visualizations and Answers if the data is in tabular format.
|
|
2781
|
-
*
|
|
2782
2756
|
***NOTE**: The **Download** > **PDF** action is available on
|
|
2783
2757
|
*visualizations and Answers if the data is in tabular format.
|
|
2784
2758
|
* @example
|
|
@@ -3028,7 +3002,6 @@
|
|
|
3028
3002
|
/**
|
|
3029
3003
|
* The **Delete** action for Answers in the full application
|
|
3030
3004
|
* embedding mode.
|
|
3031
|
-
*
|
|
3032
3005
|
* @example
|
|
3033
3006
|
* ```js
|
|
3034
3007
|
* disabledActions: [Action.AnswerDelete]
|
|
@@ -5732,7 +5705,7 @@
|
|
|
5732
5705
|
|
|
5733
5706
|
var isEqual_1 = isEqual;
|
|
5734
5707
|
|
|
5735
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
5708
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.30.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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 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};
|
|
5736
5709
|
|
|
5737
5710
|
const logFunctions = {
|
|
5738
5711
|
[exports.LogLevel.SILENT]: () => undefined,
|
|
@@ -5976,7 +5949,7 @@
|
|
|
5976
5949
|
* ```js
|
|
5977
5950
|
* resetCachedAuthToken();
|
|
5978
5951
|
* ```
|
|
5979
|
-
* @version SDK: 1.28.
|
|
5952
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
5980
5953
|
* @group Authentication / Init
|
|
5981
5954
|
*/
|
|
5982
5955
|
const resetCachedAuthToken = () => {
|
|
@@ -12536,7 +12509,7 @@
|
|
|
12536
12509
|
async function graphqlQuery({ query, variables, thoughtSpotHost, isCompositeQuery = false, }) {
|
|
12537
12510
|
const operationName = getOperationNameFromQuery(query);
|
|
12538
12511
|
try {
|
|
12539
|
-
const response = await
|
|
12512
|
+
const response = await tokenizedFetch(`${thoughtSpotHost}/prism/?op=${operationName}`, {
|
|
12540
12513
|
method: 'POST',
|
|
12541
12514
|
headers: {
|
|
12542
12515
|
'content-type': 'application/json;charset=UTF-8',
|
|
@@ -12851,14 +12824,14 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12851
12824
|
* ```js
|
|
12852
12825
|
* embed.on(EmbedEvent.Data, async (e) => {
|
|
12853
12826
|
* const service = await embed.getAnswerService();
|
|
12854
|
-
* await service.
|
|
12827
|
+
* await service.addColumnsByName([
|
|
12855
12828
|
* "col name 1",
|
|
12856
12829
|
* "col name 2"
|
|
12857
12830
|
* ]);
|
|
12858
12831
|
* console.log(await service.fetchData());
|
|
12859
12832
|
* });
|
|
12860
12833
|
*/
|
|
12861
|
-
async
|
|
12834
|
+
async addColumnsByName(columnNames) {
|
|
12862
12835
|
const sourceDetail = await this.getSourceDetail();
|
|
12863
12836
|
const columnGuids = getGuidsFromColumnNames(sourceDetail, columnNames);
|
|
12864
12837
|
return this.addColumns([...columnGuids]);
|
|
@@ -14839,7 +14812,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14839
14812
|
}
|
|
14840
14813
|
getEmbedParams() {
|
|
14841
14814
|
var _a;
|
|
14842
|
-
const { hideResults,
|
|
14815
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
14843
14816
|
/* eslint-disable-next-line max-len */
|
|
14844
14817
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
14845
14818
|
const queryParams = this.getBaseQueryParams();
|