@thoughtspot/visual-embed-sdk 1.33.2 → 1.33.3
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/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +5 -2
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.js +15 -3
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/css-variables.d.ts +2 -2
- package/cjs/src/embed/liveboard.d.ts +0 -3
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +0 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +0 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +0 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +7 -4
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +7 -4
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +0 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +0 -4
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +0 -4
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/cjs/src/utils.d.ts +1 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +13 -3
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +6 -6
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-CqrIh3Vj.js → index-Ck3m4Sis.js} +1 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +2 -2
- package/dist/src/embed/liveboard.d.ts +0 -3
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +0 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +7 -4
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +0 -4
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/src/utils.d.ts +1 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +26 -16
- package/dist/tsembed-react.js +25 -15
- package/dist/tsembed.es.js +26 -16
- package/dist/tsembed.js +25 -15
- package/dist/visual-embed-sdk-react-full.d.ts +9 -14
- package/dist/visual-embed-sdk-react.d.ts +9 -14
- package/dist/visual-embed-sdk.d.ts +9 -14
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +6 -3
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.js +15 -3
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/css-variables.d.ts +2 -2
- package/lib/src/embed/liveboard.d.ts +0 -3
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +0 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +0 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +0 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +7 -4
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +7 -4
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +0 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +0 -4
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +0 -4
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/utils.d.ts +1 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +11 -2
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +6 -6
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +9 -14
- package/package.json +1 -1
- package/src/auth.spec.ts +15 -3
- package/src/auth.ts +7 -3
- package/src/css-variables.ts +2 -2
- package/src/embed/liveboard.ts +0 -3
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +7 -4
- package/src/utils/processData.ts +0 -1
- package/src/utils/sessionInfoService.ts +0 -4
- package/src/utils.spec.ts +6 -6
- package/src/utils.ts +14 -2
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.3 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
|
|
@@ -282,6 +282,10 @@ const getCssDimension = (value) => {
|
|
|
282
282
|
}
|
|
283
283
|
return value;
|
|
284
284
|
};
|
|
285
|
+
const getSSOMarker = (markerId) => {
|
|
286
|
+
const encStringToAppend = encodeURIComponent(markerId);
|
|
287
|
+
return `tsSSOMarker=${encStringToAppend}`;
|
|
288
|
+
};
|
|
285
289
|
/**
|
|
286
290
|
* Append a string to a URL's hash fragment
|
|
287
291
|
* @param url A URL
|
|
@@ -290,12 +294,17 @@ const getCssDimension = (value) => {
|
|
|
290
294
|
const appendToUrlHash = (url, stringToAppend) => {
|
|
291
295
|
let outputUrl = url;
|
|
292
296
|
const encStringToAppend = encodeURIComponent(stringToAppend);
|
|
297
|
+
const marker = `tsSSOMarker=${encStringToAppend}`;
|
|
298
|
+
let splitAdder = '';
|
|
293
299
|
if (url.indexOf('#') >= 0) {
|
|
294
|
-
|
|
300
|
+
// If second half of hash contains a '?' already add a '&' instead of
|
|
301
|
+
// '?' which appends to query params.
|
|
302
|
+
splitAdder = url.split('#')[1].indexOf('?') >= 0 ? '&' : '?';
|
|
295
303
|
}
|
|
296
304
|
else {
|
|
297
|
-
|
|
305
|
+
splitAdder = '#?';
|
|
298
306
|
}
|
|
307
|
+
outputUrl = `${outputUrl}${splitAdder}${marker}`;
|
|
299
308
|
return outputUrl;
|
|
300
309
|
};
|
|
301
310
|
/**
|
|
@@ -2456,8 +2465,11 @@ var HostEvent;
|
|
|
2456
2465
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2457
2466
|
*
|
|
2458
2467
|
* `values` - An array of one or several values. The value definition on the
|
|
2459
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2460
|
-
*
|
|
2468
|
+
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2469
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
|
|
2470
|
+
* `type` - To update filters for date time, specify the date format type.
|
|
2471
|
+
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2472
|
+
*
|
|
2461
2473
|
* @example
|
|
2462
2474
|
* ```js
|
|
2463
2475
|
*
|
|
@@ -2587,7 +2599,7 @@ var HostEvent;
|
|
|
2587
2599
|
*/
|
|
2588
2600
|
HostEvent["AskSage"] = "AskSage";
|
|
2589
2601
|
/**
|
|
2590
|
-
* Trigger
|
|
2602
|
+
* Trigger cross filter update action on a Liveboard
|
|
2591
2603
|
* @example
|
|
2592
2604
|
* ```js
|
|
2593
2605
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -2602,7 +2614,7 @@ var HostEvent;
|
|
|
2602
2614
|
*/
|
|
2603
2615
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
2604
2616
|
/**
|
|
2605
|
-
* Trigger
|
|
2617
|
+
* Trigger reset action for a personalized Liveboard view.
|
|
2606
2618
|
* @example
|
|
2607
2619
|
* ```js
|
|
2608
2620
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -6367,7 +6379,6 @@ const getEmbedConfig = () => config;
|
|
|
6367
6379
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6368
6380
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6369
6381
|
* The interface for this method is the same as Web `Fetch`.
|
|
6370
|
-
*
|
|
6371
6382
|
* @param input
|
|
6372
6383
|
* @param init
|
|
6373
6384
|
* @example
|
|
@@ -6969,7 +6980,7 @@ class AnswerService {
|
|
|
6969
6980
|
async getTML() {
|
|
6970
6981
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6971
6982
|
const edoc = object[0].edoc;
|
|
6972
|
-
const YAML = await import('./index-
|
|
6983
|
+
const YAML = await import('./index-Ck3m4Sis.js');
|
|
6973
6984
|
const parsedDoc = YAML.parse(edoc);
|
|
6974
6985
|
return {
|
|
6975
6986
|
answer: {
|
|
@@ -13751,7 +13762,6 @@ let sessionInfo = null;
|
|
|
13751
13762
|
* Returns the session info object and caches it for future use.
|
|
13752
13763
|
* Once fetched the session info object is cached and returned from the cache on
|
|
13753
13764
|
* subsequent calls.
|
|
13754
|
-
*
|
|
13755
13765
|
* @example ```js
|
|
13756
13766
|
* const sessionInfo = await getSessionInfo();
|
|
13757
13767
|
* console.log(sessionInfo);
|
|
@@ -13770,7 +13780,6 @@ async function getSessionInfo() {
|
|
|
13770
13780
|
}
|
|
13771
13781
|
/**
|
|
13772
13782
|
* Processes the session info response and returns the session info object.
|
|
13773
|
-
*
|
|
13774
13783
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
13775
13784
|
* @returns {SessionInfo} The session info object.
|
|
13776
13785
|
* @example ```js
|
|
@@ -13943,7 +13952,7 @@ function getReleaseVersion() {
|
|
|
13943
13952
|
* Check if we are stuck at the SSO redirect URL
|
|
13944
13953
|
*/
|
|
13945
13954
|
function isAtSSORedirectUrl() {
|
|
13946
|
-
return window.location.href.indexOf(SSO_REDIRECTION_MARKER_GUID) >= 0;
|
|
13955
|
+
return window.location.href.indexOf(getSSOMarker(SSO_REDIRECTION_MARKER_GUID)) >= 0;
|
|
13947
13956
|
}
|
|
13948
13957
|
/**
|
|
13949
13958
|
* Remove the SSO redirect URL marker
|
|
@@ -13954,7 +13963,10 @@ function removeSSORedirectUrlMarker() {
|
|
|
13954
13963
|
// reload the page which we don't want. We'll live with adding an
|
|
13955
13964
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
13956
13965
|
// that creates an issue.
|
|
13957
|
-
|
|
13966
|
+
// Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
13967
|
+
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13968
|
+
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13969
|
+
window.location.hash = updatedHash;
|
|
13958
13970
|
}
|
|
13959
13971
|
/**
|
|
13960
13972
|
* Perform token based authentication
|
|
@@ -14227,7 +14239,6 @@ function processCustomAction(e, thoughtSpotHost) {
|
|
|
14227
14239
|
}
|
|
14228
14240
|
/**
|
|
14229
14241
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
14230
|
-
*
|
|
14231
14242
|
* @param e
|
|
14232
14243
|
* @returns {any}
|
|
14233
14244
|
*/
|
|
@@ -14368,7 +14379,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14368
14379
|
});
|
|
14369
14380
|
}
|
|
14370
14381
|
|
|
14371
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14382
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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","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",docgen:"typedoc --tsconfig tsconfig.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 | 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",dev:"vite -c vite.local.config.ts"};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.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":"^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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","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:"4.24.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",vite:"^5.3.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14372
14383
|
|
|
14373
14384
|
/**
|
|
14374
14385
|
* Copyright (c) 2022
|
|
@@ -16280,7 +16291,6 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
|
16280
16291
|
/**
|
|
16281
16292
|
* Returns the full url of the liveboard/viz which can be used to open
|
|
16282
16293
|
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
16283
|
-
*
|
|
16284
16294
|
* @returns url string
|
|
16285
16295
|
*/
|
|
16286
16296
|
getLiveboardUrl() {
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.3 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
@@ -304,6 +304,10 @@
|
|
|
304
304
|
}
|
|
305
305
|
return value;
|
|
306
306
|
};
|
|
307
|
+
const getSSOMarker = (markerId) => {
|
|
308
|
+
const encStringToAppend = encodeURIComponent(markerId);
|
|
309
|
+
return `tsSSOMarker=${encStringToAppend}`;
|
|
310
|
+
};
|
|
307
311
|
/**
|
|
308
312
|
* Append a string to a URL's hash fragment
|
|
309
313
|
* @param url A URL
|
|
@@ -312,12 +316,17 @@
|
|
|
312
316
|
const appendToUrlHash = (url, stringToAppend) => {
|
|
313
317
|
let outputUrl = url;
|
|
314
318
|
const encStringToAppend = encodeURIComponent(stringToAppend);
|
|
319
|
+
const marker = `tsSSOMarker=${encStringToAppend}`;
|
|
320
|
+
let splitAdder = '';
|
|
315
321
|
if (url.indexOf('#') >= 0) {
|
|
316
|
-
|
|
322
|
+
// If second half of hash contains a '?' already add a '&' instead of
|
|
323
|
+
// '?' which appends to query params.
|
|
324
|
+
splitAdder = url.split('#')[1].indexOf('?') >= 0 ? '&' : '?';
|
|
317
325
|
}
|
|
318
326
|
else {
|
|
319
|
-
|
|
327
|
+
splitAdder = '#?';
|
|
320
328
|
}
|
|
329
|
+
outputUrl = `${outputUrl}${splitAdder}${marker}`;
|
|
321
330
|
return outputUrl;
|
|
322
331
|
};
|
|
323
332
|
/**
|
|
@@ -2478,8 +2487,11 @@
|
|
|
2478
2487
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2479
2488
|
*
|
|
2480
2489
|
* `values` - An array of one or several values. The value definition on the
|
|
2481
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2482
|
-
*
|
|
2490
|
+
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2491
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
|
|
2492
|
+
* `type` - To update filters for date time, specify the date format type.
|
|
2493
|
+
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2494
|
+
*
|
|
2483
2495
|
* @example
|
|
2484
2496
|
* ```js
|
|
2485
2497
|
*
|
|
@@ -2609,7 +2621,7 @@
|
|
|
2609
2621
|
*/
|
|
2610
2622
|
HostEvent["AskSage"] = "AskSage";
|
|
2611
2623
|
/**
|
|
2612
|
-
* Trigger
|
|
2624
|
+
* Trigger cross filter update action on a Liveboard
|
|
2613
2625
|
* @example
|
|
2614
2626
|
* ```js
|
|
2615
2627
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -2624,7 +2636,7 @@
|
|
|
2624
2636
|
*/
|
|
2625
2637
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
2626
2638
|
/**
|
|
2627
|
-
* Trigger
|
|
2639
|
+
* Trigger reset action for a personalized Liveboard view.
|
|
2628
2640
|
* @example
|
|
2629
2641
|
* ```js
|
|
2630
2642
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -6389,7 +6401,6 @@
|
|
|
6389
6401
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6390
6402
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6391
6403
|
* The interface for this method is the same as Web `Fetch`.
|
|
6392
|
-
*
|
|
6393
6404
|
* @param input
|
|
6394
6405
|
* @param init
|
|
6395
6406
|
* @example
|
|
@@ -13773,7 +13784,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13773
13784
|
* Returns the session info object and caches it for future use.
|
|
13774
13785
|
* Once fetched the session info object is cached and returned from the cache on
|
|
13775
13786
|
* subsequent calls.
|
|
13776
|
-
*
|
|
13777
13787
|
* @example ```js
|
|
13778
13788
|
* const sessionInfo = await getSessionInfo();
|
|
13779
13789
|
* console.log(sessionInfo);
|
|
@@ -13792,7 +13802,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13792
13802
|
}
|
|
13793
13803
|
/**
|
|
13794
13804
|
* Processes the session info response and returns the session info object.
|
|
13795
|
-
*
|
|
13796
13805
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
13797
13806
|
* @returns {SessionInfo} The session info object.
|
|
13798
13807
|
* @example ```js
|
|
@@ -13965,7 +13974,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13965
13974
|
* Check if we are stuck at the SSO redirect URL
|
|
13966
13975
|
*/
|
|
13967
13976
|
function isAtSSORedirectUrl() {
|
|
13968
|
-
return window.location.href.indexOf(SSO_REDIRECTION_MARKER_GUID) >= 0;
|
|
13977
|
+
return window.location.href.indexOf(getSSOMarker(SSO_REDIRECTION_MARKER_GUID)) >= 0;
|
|
13969
13978
|
}
|
|
13970
13979
|
/**
|
|
13971
13980
|
* Remove the SSO redirect URL marker
|
|
@@ -13976,7 +13985,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13976
13985
|
// reload the page which we don't want. We'll live with adding an
|
|
13977
13986
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
13978
13987
|
// that creates an issue.
|
|
13979
|
-
|
|
13988
|
+
// Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
13989
|
+
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13990
|
+
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13991
|
+
window.location.hash = updatedHash;
|
|
13980
13992
|
}
|
|
13981
13993
|
/**
|
|
13982
13994
|
* Perform token based authentication
|
|
@@ -14249,7 +14261,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14249
14261
|
}
|
|
14250
14262
|
/**
|
|
14251
14263
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
14252
|
-
*
|
|
14253
14264
|
* @param e
|
|
14254
14265
|
* @returns {any}
|
|
14255
14266
|
*/
|
|
@@ -14390,7 +14401,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14390
14401
|
});
|
|
14391
14402
|
}
|
|
14392
14403
|
|
|
14393
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14404
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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","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",docgen:"typedoc --tsconfig tsconfig.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 | 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",dev:"vite -c vite.local.config.ts"};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.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":"^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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","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:"4.24.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",vite:"^5.3.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14394
14405
|
|
|
14395
14406
|
/**
|
|
14396
14407
|
* Copyright (c) 2022
|
|
@@ -16302,7 +16313,6 @@ query GetEurekaVizSnapshots(
|
|
|
16302
16313
|
/**
|
|
16303
16314
|
* Returns the full url of the liveboard/viz which can be used to open
|
|
16304
16315
|
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
16305
|
-
*
|
|
16306
16316
|
* @returns url string
|
|
16307
16317
|
*/
|
|
16308
16318
|
getLiveboardUrl() {
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.3 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -167,6 +167,10 @@ const getCssDimension = (value) => {
|
|
|
167
167
|
}
|
|
168
168
|
return value;
|
|
169
169
|
};
|
|
170
|
+
const getSSOMarker = (markerId) => {
|
|
171
|
+
const encStringToAppend = encodeURIComponent(markerId);
|
|
172
|
+
return `tsSSOMarker=${encStringToAppend}`;
|
|
173
|
+
};
|
|
170
174
|
/**
|
|
171
175
|
* Append a string to a URL's hash fragment
|
|
172
176
|
* @param url A URL
|
|
@@ -175,12 +179,17 @@ const getCssDimension = (value) => {
|
|
|
175
179
|
const appendToUrlHash = (url, stringToAppend) => {
|
|
176
180
|
let outputUrl = url;
|
|
177
181
|
const encStringToAppend = encodeURIComponent(stringToAppend);
|
|
182
|
+
const marker = `tsSSOMarker=${encStringToAppend}`;
|
|
183
|
+
let splitAdder = '';
|
|
178
184
|
if (url.indexOf('#') >= 0) {
|
|
179
|
-
|
|
185
|
+
// If second half of hash contains a '?' already add a '&' instead of
|
|
186
|
+
// '?' which appends to query params.
|
|
187
|
+
splitAdder = url.split('#')[1].indexOf('?') >= 0 ? '&' : '?';
|
|
180
188
|
}
|
|
181
189
|
else {
|
|
182
|
-
|
|
190
|
+
splitAdder = '#?';
|
|
183
191
|
}
|
|
192
|
+
outputUrl = `${outputUrl}${splitAdder}${marker}`;
|
|
184
193
|
return outputUrl;
|
|
185
194
|
};
|
|
186
195
|
/**
|
|
@@ -2341,8 +2350,11 @@ var HostEvent;
|
|
|
2341
2350
|
* see link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
|
|
2342
2351
|
*
|
|
2343
2352
|
* `values` - An array of one or several values. The value definition on the
|
|
2344
|
-
* data type you choose to filter on. For a complete list of supported data types,
|
|
2345
|
-
*
|
|
2353
|
+
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2354
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
|
|
2355
|
+
* `type` - To update filters for date time, specify the date format type.
|
|
2356
|
+
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2357
|
+
*
|
|
2346
2358
|
* @example
|
|
2347
2359
|
* ```js
|
|
2348
2360
|
*
|
|
@@ -2472,7 +2484,7 @@ var HostEvent;
|
|
|
2472
2484
|
*/
|
|
2473
2485
|
HostEvent["AskSage"] = "AskSage";
|
|
2474
2486
|
/**
|
|
2475
|
-
* Trigger
|
|
2487
|
+
* Trigger cross filter update action on a Liveboard
|
|
2476
2488
|
* @example
|
|
2477
2489
|
* ```js
|
|
2478
2490
|
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
@@ -2487,7 +2499,7 @@ var HostEvent;
|
|
|
2487
2499
|
*/
|
|
2488
2500
|
HostEvent["UpdateCrossFilter"] = "UpdateCrossFilter";
|
|
2489
2501
|
/**
|
|
2490
|
-
* Trigger
|
|
2502
|
+
* Trigger reset action for a personalized Liveboard view.
|
|
2491
2503
|
* @example
|
|
2492
2504
|
* ```js
|
|
2493
2505
|
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
@@ -6266,7 +6278,6 @@ const setEmbedConfig = (newConfig) => {
|
|
|
6266
6278
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6267
6279
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6268
6280
|
* The interface for this method is the same as Web `Fetch`.
|
|
6269
|
-
*
|
|
6270
6281
|
* @param input
|
|
6271
6282
|
* @param init
|
|
6272
6283
|
* @example
|
|
@@ -6868,7 +6879,7 @@ class AnswerService {
|
|
|
6868
6879
|
async getTML() {
|
|
6869
6880
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6870
6881
|
const edoc = object[0].edoc;
|
|
6871
|
-
const YAML = await import('./index-
|
|
6882
|
+
const YAML = await import('./index-Ck3m4Sis.js');
|
|
6872
6883
|
const parsedDoc = YAML.parse(edoc);
|
|
6873
6884
|
return {
|
|
6874
6885
|
answer: {
|
|
@@ -13708,7 +13719,6 @@ let sessionInfo = null;
|
|
|
13708
13719
|
* Returns the session info object and caches it for future use.
|
|
13709
13720
|
* Once fetched the session info object is cached and returned from the cache on
|
|
13710
13721
|
* subsequent calls.
|
|
13711
|
-
*
|
|
13712
13722
|
* @example ```js
|
|
13713
13723
|
* const sessionInfo = await getSessionInfo();
|
|
13714
13724
|
* console.log(sessionInfo);
|
|
@@ -13727,7 +13737,6 @@ async function getSessionInfo() {
|
|
|
13727
13737
|
}
|
|
13728
13738
|
/**
|
|
13729
13739
|
* Processes the session info response and returns the session info object.
|
|
13730
|
-
*
|
|
13731
13740
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
13732
13741
|
* @returns {SessionInfo} The session info object.
|
|
13733
13742
|
* @example ```js
|
|
@@ -13918,7 +13927,7 @@ function getReleaseVersion() {
|
|
|
13918
13927
|
* Check if we are stuck at the SSO redirect URL
|
|
13919
13928
|
*/
|
|
13920
13929
|
function isAtSSORedirectUrl() {
|
|
13921
|
-
return window.location.href.indexOf(SSO_REDIRECTION_MARKER_GUID) >= 0;
|
|
13930
|
+
return window.location.href.indexOf(getSSOMarker(SSO_REDIRECTION_MARKER_GUID)) >= 0;
|
|
13922
13931
|
}
|
|
13923
13932
|
/**
|
|
13924
13933
|
* Remove the SSO redirect URL marker
|
|
@@ -13929,7 +13938,10 @@ function removeSSORedirectUrlMarker() {
|
|
|
13929
13938
|
// reload the page which we don't want. We'll live with adding an
|
|
13930
13939
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
13931
13940
|
// that creates an issue.
|
|
13932
|
-
|
|
13941
|
+
// Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
13942
|
+
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13943
|
+
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
13944
|
+
window.location.hash = updatedHash;
|
|
13933
13945
|
}
|
|
13934
13946
|
/**
|
|
13935
13947
|
* Perform token based authentication
|
|
@@ -14462,7 +14474,6 @@ function processCustomAction(e, thoughtSpotHost) {
|
|
|
14462
14474
|
}
|
|
14463
14475
|
/**
|
|
14464
14476
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
14465
|
-
*
|
|
14466
14477
|
* @param e
|
|
14467
14478
|
* @returns {any}
|
|
14468
14479
|
*/
|
|
@@ -14603,7 +14614,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14603
14614
|
});
|
|
14604
14615
|
}
|
|
14605
14616
|
|
|
14606
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14617
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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","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",docgen:"typedoc --tsconfig tsconfig.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 | 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",dev:"vite -c vite.local.config.ts"};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.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":"^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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","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:"4.24.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",vite:"^5.3.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14607
14618
|
|
|
14608
14619
|
/**
|
|
14609
14620
|
* Copyright (c) 2022
|
|
@@ -16218,7 +16229,6 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16218
16229
|
/**
|
|
16219
16230
|
* Returns the full url of the liveboard/viz which can be used to open
|
|
16220
16231
|
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
16221
|
-
*
|
|
16222
16232
|
* @returns url string
|
|
16223
16233
|
*/
|
|
16224
16234
|
getLiveboardUrl() {
|