@thoughtspot/visual-embed-sdk 1.21.0-react.5 → 1.21.0-react.7
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/base.d.ts +1 -0
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +25 -25
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +14 -4
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.d.ts +6 -6
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js.map +1 -1
- package/dist/src/embed/base.d.ts +1 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +6 -6
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +24 -13
- package/dist/tsembed-react.js +24 -13
- package/dist/tsembed.es.js +38 -27
- package/dist/tsembed.js +38 -27
- package/dist/visual-embed-sdk-react-full.d.ts +7 -6
- package/dist/visual-embed-sdk.d.ts +1 -0
- package/lib/package.json +1 -1
- package/lib/src/embed/base.d.ts +1 -0
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +25 -24
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +14 -4
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.d.ts +6 -6
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/base.ts +26 -26
- package/src/mixpanel-service.ts +15 -4
- package/src/react/index.tsx +11 -11
package/dist/tsembed-react.js
CHANGED
|
@@ -7882,6 +7882,7 @@
|
|
|
7882
7882
|
'default': mixpanel_cjs
|
|
7883
7883
|
}));
|
|
7884
7884
|
|
|
7885
|
+
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
7885
7886
|
const MIXPANEL_EVENT = {
|
|
7886
7887
|
VISUAL_SDK_RENDER_START: 'visual-sdk-render-start',
|
|
7887
7888
|
VISUAL_SDK_CALLED_INIT: 'visual-sdk-called-init',
|
|
@@ -7904,7 +7905,7 @@
|
|
|
7904
7905
|
eventQueue.push({ eventId, eventProps });
|
|
7905
7906
|
return;
|
|
7906
7907
|
}
|
|
7907
|
-
|
|
7908
|
+
mixpanelLib.track(eventId, eventProps);
|
|
7908
7909
|
}
|
|
7909
7910
|
/**
|
|
7910
7911
|
*
|
|
@@ -7932,11 +7933,20 @@
|
|
|
7932
7933
|
const token = sessionInfo.mixpanelToken;
|
|
7933
7934
|
try {
|
|
7934
7935
|
if (token) {
|
|
7935
|
-
|
|
7936
|
+
mixpanelLib.init(token);
|
|
7936
7937
|
if (!isPublicCluster) {
|
|
7937
7938
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
7938
|
-
const mixpanelIdentify =
|
|
7939
|
-
|
|
7939
|
+
// const { mixpanelLib, mixpanelIdentify } = (mixpanel.identify)
|
|
7940
|
+
// ? {
|
|
7941
|
+
// mixpanelLib: mixpanel,
|
|
7942
|
+
// mixpanelIdentify: mixpanel.identify
|
|
7943
|
+
// }
|
|
7944
|
+
// : {
|
|
7945
|
+
// mixpanelLib: mixpanel.default,
|
|
7946
|
+
// mixpanelIdentify: mixpanel.default.identify
|
|
7947
|
+
// };
|
|
7948
|
+
// mixpanelIdentify.call(mixpanelLib, sessionInfo.userGUID);
|
|
7949
|
+
mixpanelLib.identify(sessionInfo.userGUID);
|
|
7940
7950
|
}
|
|
7941
7951
|
isMixpanelInitialized = true;
|
|
7942
7952
|
emptyQueue();
|
|
@@ -26330,12 +26340,13 @@
|
|
|
26330
26340
|
};
|
|
26331
26341
|
|
|
26332
26342
|
/* eslint-disable camelcase */
|
|
26333
|
-
|
|
26343
|
+
let config = {};
|
|
26334
26344
|
const CONFIG_DEFAULTS = {
|
|
26335
26345
|
loginFailedMessage: 'Not logged in',
|
|
26336
26346
|
authTriggerText: 'Authorize',
|
|
26337
26347
|
authType: AuthType.None,
|
|
26338
26348
|
};
|
|
26349
|
+
let authPromise;
|
|
26339
26350
|
/**
|
|
26340
26351
|
* Gets the configuration embed was initialized with.
|
|
26341
26352
|
*
|
|
@@ -26343,14 +26354,14 @@
|
|
|
26343
26354
|
* @version SDK: 1.19.0 | ThoughtSpot: *
|
|
26344
26355
|
* @group Global methods
|
|
26345
26356
|
*/
|
|
26346
|
-
const getEmbedConfig = () =>
|
|
26347
|
-
const getAuthPromise = () =>
|
|
26357
|
+
const getEmbedConfig = () => config;
|
|
26358
|
+
const getAuthPromise = () => authPromise;
|
|
26348
26359
|
/**
|
|
26349
26360
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
26350
26361
|
*/
|
|
26351
26362
|
const handleAuth = () => {
|
|
26352
|
-
|
|
26353
|
-
|
|
26363
|
+
authPromise = authenticate(config);
|
|
26364
|
+
authPromise.then((isLoggedIn) => {
|
|
26354
26365
|
if (!isLoggedIn) {
|
|
26355
26366
|
notifyAuthFailure(AuthFailureType.SDK);
|
|
26356
26367
|
}
|
|
@@ -26360,7 +26371,7 @@
|
|
|
26360
26371
|
}, () => {
|
|
26361
26372
|
notifyAuthFailure(AuthFailureType.SDK);
|
|
26362
26373
|
});
|
|
26363
|
-
return
|
|
26374
|
+
return authPromise;
|
|
26364
26375
|
};
|
|
26365
26376
|
const hostUrlToFeatureUrl = {
|
|
26366
26377
|
[PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
|
|
@@ -26372,7 +26383,7 @@
|
|
|
26372
26383
|
*
|
|
26373
26384
|
*/
|
|
26374
26385
|
function disableAutoLogin() {
|
|
26375
|
-
|
|
26386
|
+
config.autoLogin = false;
|
|
26376
26387
|
}
|
|
26377
26388
|
let renderQueue = Promise.resolve();
|
|
26378
26389
|
/**
|
|
@@ -26382,7 +26393,7 @@
|
|
|
26382
26393
|
* @param fn The function being registered
|
|
26383
26394
|
*/
|
|
26384
26395
|
const renderInQueue = (fn) => {
|
|
26385
|
-
const { queueMultiRenders = false } =
|
|
26396
|
+
const { queueMultiRenders = false } = config;
|
|
26386
26397
|
if (queueMultiRenders) {
|
|
26387
26398
|
renderQueue = renderQueue.then(() => new Promise((res) => fn(res)));
|
|
26388
26399
|
return renderQueue;
|
|
@@ -26605,7 +26616,7 @@
|
|
|
26605
26616
|
});
|
|
26606
26617
|
}
|
|
26607
26618
|
|
|
26608
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.
|
|
26619
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.7";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"}};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":"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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","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":"^40.1.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","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","@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","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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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","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,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};
|
|
26609
26620
|
|
|
26610
26621
|
/**
|
|
26611
26622
|
* Copyright (c) 2022
|
package/dist/tsembed.es.js
CHANGED
|
@@ -7785,6 +7785,7 @@ var mixpanel$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE
|
|
|
7785
7785
|
'default': mixpanel_cjs
|
|
7786
7786
|
}));
|
|
7787
7787
|
|
|
7788
|
+
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
7788
7789
|
const MIXPANEL_EVENT = {
|
|
7789
7790
|
VISUAL_SDK_RENDER_START: 'visual-sdk-render-start',
|
|
7790
7791
|
VISUAL_SDK_CALLED_INIT: 'visual-sdk-called-init',
|
|
@@ -7807,7 +7808,7 @@ function uploadMixpanelEvent(eventId, eventProps = {}) {
|
|
|
7807
7808
|
eventQueue.push({ eventId, eventProps });
|
|
7808
7809
|
return;
|
|
7809
7810
|
}
|
|
7810
|
-
|
|
7811
|
+
mixpanelLib.track(eventId, eventProps);
|
|
7811
7812
|
}
|
|
7812
7813
|
/**
|
|
7813
7814
|
*
|
|
@@ -7835,11 +7836,20 @@ function initMixpanel(sessionInfo) {
|
|
|
7835
7836
|
const token = sessionInfo.mixpanelToken;
|
|
7836
7837
|
try {
|
|
7837
7838
|
if (token) {
|
|
7838
|
-
|
|
7839
|
+
mixpanelLib.init(token);
|
|
7839
7840
|
if (!isPublicCluster) {
|
|
7840
7841
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
7841
|
-
const mixpanelIdentify =
|
|
7842
|
-
|
|
7842
|
+
// const { mixpanelLib, mixpanelIdentify } = (mixpanel.identify)
|
|
7843
|
+
// ? {
|
|
7844
|
+
// mixpanelLib: mixpanel,
|
|
7845
|
+
// mixpanelIdentify: mixpanel.identify
|
|
7846
|
+
// }
|
|
7847
|
+
// : {
|
|
7848
|
+
// mixpanelLib: mixpanel.default,
|
|
7849
|
+
// mixpanelIdentify: mixpanel.default.identify
|
|
7850
|
+
// };
|
|
7851
|
+
// mixpanelIdentify.call(mixpanelLib, sessionInfo.userGUID);
|
|
7852
|
+
mixpanelLib.identify(sessionInfo.userGUID);
|
|
7843
7853
|
}
|
|
7844
7854
|
isMixpanelInitialized = true;
|
|
7845
7855
|
emptyQueue();
|
|
@@ -27031,12 +27041,13 @@ const authenticate = async (embedConfig) => {
|
|
|
27031
27041
|
};
|
|
27032
27042
|
|
|
27033
27043
|
/* eslint-disable camelcase */
|
|
27034
|
-
|
|
27044
|
+
let config = {};
|
|
27035
27045
|
const CONFIG_DEFAULTS = {
|
|
27036
27046
|
loginFailedMessage: 'Not logged in',
|
|
27037
27047
|
authTriggerText: 'Authorize',
|
|
27038
27048
|
authType: AuthType.None,
|
|
27039
27049
|
};
|
|
27050
|
+
let authPromise;
|
|
27040
27051
|
/**
|
|
27041
27052
|
* Gets the configuration embed was initialized with.
|
|
27042
27053
|
*
|
|
@@ -27044,14 +27055,14 @@ const CONFIG_DEFAULTS = {
|
|
|
27044
27055
|
* @version SDK: 1.19.0 | ThoughtSpot: *
|
|
27045
27056
|
* @group Global methods
|
|
27046
27057
|
*/
|
|
27047
|
-
const getEmbedConfig = () =>
|
|
27048
|
-
const getAuthPromise = () =>
|
|
27058
|
+
const getEmbedConfig = () => config;
|
|
27059
|
+
const getAuthPromise = () => authPromise;
|
|
27049
27060
|
/**
|
|
27050
27061
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
27051
27062
|
*/
|
|
27052
27063
|
const handleAuth = () => {
|
|
27053
|
-
|
|
27054
|
-
|
|
27064
|
+
authPromise = authenticate(config);
|
|
27065
|
+
authPromise.then((isLoggedIn) => {
|
|
27055
27066
|
if (!isLoggedIn) {
|
|
27056
27067
|
notifyAuthFailure(AuthFailureType.SDK);
|
|
27057
27068
|
}
|
|
@@ -27061,7 +27072,7 @@ const handleAuth = () => {
|
|
|
27061
27072
|
}, () => {
|
|
27062
27073
|
notifyAuthFailure(AuthFailureType.SDK);
|
|
27063
27074
|
});
|
|
27064
|
-
return
|
|
27075
|
+
return authPromise;
|
|
27065
27076
|
};
|
|
27066
27077
|
const hostUrlToFeatureUrl = {
|
|
27067
27078
|
[PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
|
|
@@ -27086,7 +27097,7 @@ const prefetch = (url, prefetchFeatures) => {
|
|
|
27086
27097
|
}
|
|
27087
27098
|
else {
|
|
27088
27099
|
const features = prefetchFeatures || [PrefetchFeatures.FullApp];
|
|
27089
|
-
let hostUrl = url ||
|
|
27100
|
+
let hostUrl = url || config.thoughtSpotHost;
|
|
27090
27101
|
hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
|
|
27091
27102
|
uniq_1(features.map((feature) => hostUrlToFeatureUrl[feature](hostUrl))).forEach((prefetchUrl, index) => {
|
|
27092
27103
|
const iFrame = document.createElement('iframe');
|
|
@@ -27152,26 +27163,26 @@ function backwardCompat(embedConfig) {
|
|
|
27152
27163
|
const init = (embedConfig) => {
|
|
27153
27164
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
27154
27165
|
sanity(embedConfig);
|
|
27155
|
-
|
|
27166
|
+
config = {
|
|
27156
27167
|
...CONFIG_DEFAULTS,
|
|
27157
27168
|
...embedConfig,
|
|
27158
27169
|
thoughtSpotHost: getThoughtSpotHost(embedConfig),
|
|
27159
27170
|
};
|
|
27160
|
-
|
|
27171
|
+
config = backwardCompat(config);
|
|
27161
27172
|
const authEE = new eventemitter3();
|
|
27162
27173
|
setAuthEE(authEE);
|
|
27163
27174
|
handleAuth();
|
|
27164
27175
|
uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_CALLED_INIT, {
|
|
27165
|
-
authType:
|
|
27166
|
-
host:
|
|
27176
|
+
authType: config.authType,
|
|
27177
|
+
host: config.thoughtSpotHost,
|
|
27167
27178
|
usedCustomizationSheet: ((_b = (_a = embedConfig.customizations) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.customCSSUrl) != null,
|
|
27168
27179
|
usedCustomizationVariables: ((_e = (_d = (_c = embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.customCSS) === null || _e === void 0 ? void 0 : _e.variables) != null,
|
|
27169
27180
|
usedCustomizationRules: ((_h = (_g = (_f = embedConfig.customizations) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.customCSS) === null || _h === void 0 ? void 0 : _h.rules_UNSTABLE) != null,
|
|
27170
27181
|
usedCustomizationStrings: !!((_k = (_j = embedConfig.customizations) === null || _j === void 0 ? void 0 : _j.content) === null || _k === void 0 ? void 0 : _k.strings),
|
|
27171
27182
|
usedCustomizationIconSprite: !!((_l = embedConfig.customizations) === null || _l === void 0 ? void 0 : _l.iconSpriteUrl),
|
|
27172
27183
|
});
|
|
27173
|
-
if (
|
|
27174
|
-
prefetch(
|
|
27184
|
+
if (config.callPrefetch) {
|
|
27185
|
+
prefetch(config.thoughtSpotHost);
|
|
27175
27186
|
}
|
|
27176
27187
|
return authEE;
|
|
27177
27188
|
};
|
|
@@ -27179,7 +27190,7 @@ const init = (embedConfig) => {
|
|
|
27179
27190
|
*
|
|
27180
27191
|
*/
|
|
27181
27192
|
function disableAutoLogin() {
|
|
27182
|
-
|
|
27193
|
+
config.autoLogin = false;
|
|
27183
27194
|
}
|
|
27184
27195
|
/**
|
|
27185
27196
|
* Logs out from ThoughtSpot. This also sets the autoLogin flag to false, to
|
|
@@ -27197,7 +27208,7 @@ const logout$1 = (doNotDisableAutoLogin = false) => {
|
|
|
27197
27208
|
if (!doNotDisableAutoLogin) {
|
|
27198
27209
|
disableAutoLogin();
|
|
27199
27210
|
}
|
|
27200
|
-
return logout(
|
|
27211
|
+
return logout(config).then((isLoggedIn) => {
|
|
27201
27212
|
notifyLogout();
|
|
27202
27213
|
return isLoggedIn;
|
|
27203
27214
|
});
|
|
@@ -27210,7 +27221,7 @@ let renderQueue = Promise.resolve();
|
|
|
27210
27221
|
* @param fn The function being registered
|
|
27211
27222
|
*/
|
|
27212
27223
|
const renderInQueue = (fn) => {
|
|
27213
|
-
const { queueMultiRenders = false } =
|
|
27224
|
+
const { queueMultiRenders = false } = config;
|
|
27214
27225
|
if (queueMultiRenders) {
|
|
27215
27226
|
renderQueue = renderQueue.then(() => new Promise((res) => fn(res)));
|
|
27216
27227
|
return renderQueue;
|
|
@@ -27219,16 +27230,16 @@ const renderInQueue = (fn) => {
|
|
|
27219
27230
|
return fn(() => { }); // eslint-disable-line @typescript-eslint/no-empty-function
|
|
27220
27231
|
};
|
|
27221
27232
|
const executeTML = async (data) => {
|
|
27222
|
-
const { thoughtSpotHost, authType } =
|
|
27233
|
+
const { thoughtSpotHost, authType } = config;
|
|
27223
27234
|
try {
|
|
27224
|
-
sanity(
|
|
27235
|
+
sanity(config);
|
|
27225
27236
|
}
|
|
27226
27237
|
catch (err) {
|
|
27227
27238
|
return Promise.reject(err);
|
|
27228
27239
|
}
|
|
27229
27240
|
let authToken = '';
|
|
27230
27241
|
if (authType === AuthType.TrustedAuthTokenCookieless) {
|
|
27231
|
-
authToken = await getAuthenticaionToken(
|
|
27242
|
+
authToken = await getAuthenticaionToken(config);
|
|
27232
27243
|
}
|
|
27233
27244
|
const headers = {
|
|
27234
27245
|
'Content-Type': 'application/json',
|
|
@@ -27259,9 +27270,9 @@ const executeTML = async (data) => {
|
|
|
27259
27270
|
});
|
|
27260
27271
|
};
|
|
27261
27272
|
const exportTML = async (data) => {
|
|
27262
|
-
const { thoughtSpotHost, authType } =
|
|
27273
|
+
const { thoughtSpotHost, authType } = config;
|
|
27263
27274
|
try {
|
|
27264
|
-
sanity(
|
|
27275
|
+
sanity(config);
|
|
27265
27276
|
}
|
|
27266
27277
|
catch (err) {
|
|
27267
27278
|
return Promise.reject(err);
|
|
@@ -27274,7 +27285,7 @@ const exportTML = async (data) => {
|
|
|
27274
27285
|
};
|
|
27275
27286
|
let authToken = '';
|
|
27276
27287
|
if (authType === AuthType.TrustedAuthTokenCookieless) {
|
|
27277
|
-
authToken = await getAuthenticaionToken(
|
|
27288
|
+
authToken = await getAuthenticaionToken(config);
|
|
27278
27289
|
}
|
|
27279
27290
|
const headers = {
|
|
27280
27291
|
'Content-Type': 'application/json',
|
|
@@ -27514,7 +27525,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
27514
27525
|
});
|
|
27515
27526
|
}
|
|
27516
27527
|
|
|
27517
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.
|
|
27528
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.7";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"}};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":"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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","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":"^40.1.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","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","@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","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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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","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,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};
|
|
27518
27529
|
|
|
27519
27530
|
/**
|
|
27520
27531
|
* Copyright (c) 2022
|
package/dist/tsembed.js
CHANGED
|
@@ -7702,6 +7702,7 @@
|
|
|
7702
7702
|
'default': mixpanel_cjs
|
|
7703
7703
|
}));
|
|
7704
7704
|
|
|
7705
|
+
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
7705
7706
|
const MIXPANEL_EVENT = {
|
|
7706
7707
|
VISUAL_SDK_RENDER_START: 'visual-sdk-render-start',
|
|
7707
7708
|
VISUAL_SDK_CALLED_INIT: 'visual-sdk-called-init',
|
|
@@ -7724,7 +7725,7 @@
|
|
|
7724
7725
|
eventQueue.push({ eventId, eventProps });
|
|
7725
7726
|
return;
|
|
7726
7727
|
}
|
|
7727
|
-
|
|
7728
|
+
mixpanelLib.track(eventId, eventProps);
|
|
7728
7729
|
}
|
|
7729
7730
|
/**
|
|
7730
7731
|
*
|
|
@@ -7752,11 +7753,20 @@
|
|
|
7752
7753
|
const token = sessionInfo.mixpanelToken;
|
|
7753
7754
|
try {
|
|
7754
7755
|
if (token) {
|
|
7755
|
-
|
|
7756
|
+
mixpanelLib.init(token);
|
|
7756
7757
|
if (!isPublicCluster) {
|
|
7757
7758
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
7758
|
-
const mixpanelIdentify =
|
|
7759
|
-
|
|
7759
|
+
// const { mixpanelLib, mixpanelIdentify } = (mixpanel.identify)
|
|
7760
|
+
// ? {
|
|
7761
|
+
// mixpanelLib: mixpanel,
|
|
7762
|
+
// mixpanelIdentify: mixpanel.identify
|
|
7763
|
+
// }
|
|
7764
|
+
// : {
|
|
7765
|
+
// mixpanelLib: mixpanel.default,
|
|
7766
|
+
// mixpanelIdentify: mixpanel.default.identify
|
|
7767
|
+
// };
|
|
7768
|
+
// mixpanelIdentify.call(mixpanelLib, sessionInfo.userGUID);
|
|
7769
|
+
mixpanelLib.identify(sessionInfo.userGUID);
|
|
7760
7770
|
}
|
|
7761
7771
|
isMixpanelInitialized = true;
|
|
7762
7772
|
emptyQueue();
|
|
@@ -26929,12 +26939,13 @@
|
|
|
26929
26939
|
};
|
|
26930
26940
|
|
|
26931
26941
|
/* eslint-disable camelcase */
|
|
26932
|
-
|
|
26942
|
+
let config = {};
|
|
26933
26943
|
const CONFIG_DEFAULTS = {
|
|
26934
26944
|
loginFailedMessage: 'Not logged in',
|
|
26935
26945
|
authTriggerText: 'Authorize',
|
|
26936
26946
|
authType: exports.AuthType.None,
|
|
26937
26947
|
};
|
|
26948
|
+
let authPromise;
|
|
26938
26949
|
/**
|
|
26939
26950
|
* Gets the configuration embed was initialized with.
|
|
26940
26951
|
*
|
|
@@ -26942,14 +26953,14 @@
|
|
|
26942
26953
|
* @version SDK: 1.19.0 | ThoughtSpot: *
|
|
26943
26954
|
* @group Global methods
|
|
26944
26955
|
*/
|
|
26945
|
-
const getEmbedConfig = () =>
|
|
26946
|
-
const getAuthPromise = () =>
|
|
26956
|
+
const getEmbedConfig = () => config;
|
|
26957
|
+
const getAuthPromise = () => authPromise;
|
|
26947
26958
|
/**
|
|
26948
26959
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
26949
26960
|
*/
|
|
26950
26961
|
const handleAuth = () => {
|
|
26951
|
-
|
|
26952
|
-
|
|
26962
|
+
authPromise = authenticate(config);
|
|
26963
|
+
authPromise.then((isLoggedIn) => {
|
|
26953
26964
|
if (!isLoggedIn) {
|
|
26954
26965
|
notifyAuthFailure(exports.AuthFailureType.SDK);
|
|
26955
26966
|
}
|
|
@@ -26959,7 +26970,7 @@
|
|
|
26959
26970
|
}, () => {
|
|
26960
26971
|
notifyAuthFailure(exports.AuthFailureType.SDK);
|
|
26961
26972
|
});
|
|
26962
|
-
return
|
|
26973
|
+
return authPromise;
|
|
26963
26974
|
};
|
|
26964
26975
|
const hostUrlToFeatureUrl = {
|
|
26965
26976
|
[exports.PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
|
|
@@ -26984,7 +26995,7 @@
|
|
|
26984
26995
|
}
|
|
26985
26996
|
else {
|
|
26986
26997
|
const features = prefetchFeatures || [exports.PrefetchFeatures.FullApp];
|
|
26987
|
-
let hostUrl = url ||
|
|
26998
|
+
let hostUrl = url || config.thoughtSpotHost;
|
|
26988
26999
|
hostUrl = hostUrl[hostUrl.length - 1] === '/' ? hostUrl : `${hostUrl}/`;
|
|
26989
27000
|
uniq_1(features.map((feature) => hostUrlToFeatureUrl[feature](hostUrl))).forEach((prefetchUrl, index) => {
|
|
26990
27001
|
const iFrame = document.createElement('iframe');
|
|
@@ -27050,26 +27061,26 @@
|
|
|
27050
27061
|
const init = (embedConfig) => {
|
|
27051
27062
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
27052
27063
|
sanity(embedConfig);
|
|
27053
|
-
|
|
27064
|
+
config = {
|
|
27054
27065
|
...CONFIG_DEFAULTS,
|
|
27055
27066
|
...embedConfig,
|
|
27056
27067
|
thoughtSpotHost: getThoughtSpotHost(embedConfig),
|
|
27057
27068
|
};
|
|
27058
|
-
|
|
27069
|
+
config = backwardCompat(config);
|
|
27059
27070
|
const authEE = new eventemitter3();
|
|
27060
27071
|
setAuthEE(authEE);
|
|
27061
27072
|
handleAuth();
|
|
27062
27073
|
uploadMixpanelEvent(MIXPANEL_EVENT.VISUAL_SDK_CALLED_INIT, {
|
|
27063
|
-
authType:
|
|
27064
|
-
host:
|
|
27074
|
+
authType: config.authType,
|
|
27075
|
+
host: config.thoughtSpotHost,
|
|
27065
27076
|
usedCustomizationSheet: ((_b = (_a = embedConfig.customizations) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.customCSSUrl) != null,
|
|
27066
27077
|
usedCustomizationVariables: ((_e = (_d = (_c = embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.customCSS) === null || _e === void 0 ? void 0 : _e.variables) != null,
|
|
27067
27078
|
usedCustomizationRules: ((_h = (_g = (_f = embedConfig.customizations) === null || _f === void 0 ? void 0 : _f.style) === null || _g === void 0 ? void 0 : _g.customCSS) === null || _h === void 0 ? void 0 : _h.rules_UNSTABLE) != null,
|
|
27068
27079
|
usedCustomizationStrings: !!((_k = (_j = embedConfig.customizations) === null || _j === void 0 ? void 0 : _j.content) === null || _k === void 0 ? void 0 : _k.strings),
|
|
27069
27080
|
usedCustomizationIconSprite: !!((_l = embedConfig.customizations) === null || _l === void 0 ? void 0 : _l.iconSpriteUrl),
|
|
27070
27081
|
});
|
|
27071
|
-
if (
|
|
27072
|
-
prefetch(
|
|
27082
|
+
if (config.callPrefetch) {
|
|
27083
|
+
prefetch(config.thoughtSpotHost);
|
|
27073
27084
|
}
|
|
27074
27085
|
return authEE;
|
|
27075
27086
|
};
|
|
@@ -27077,7 +27088,7 @@
|
|
|
27077
27088
|
*
|
|
27078
27089
|
*/
|
|
27079
27090
|
function disableAutoLogin() {
|
|
27080
|
-
|
|
27091
|
+
config.autoLogin = false;
|
|
27081
27092
|
}
|
|
27082
27093
|
/**
|
|
27083
27094
|
* Logs out from ThoughtSpot. This also sets the autoLogin flag to false, to
|
|
@@ -27095,7 +27106,7 @@
|
|
|
27095
27106
|
if (!doNotDisableAutoLogin) {
|
|
27096
27107
|
disableAutoLogin();
|
|
27097
27108
|
}
|
|
27098
|
-
return logout(
|
|
27109
|
+
return logout(config).then((isLoggedIn) => {
|
|
27099
27110
|
notifyLogout();
|
|
27100
27111
|
return isLoggedIn;
|
|
27101
27112
|
});
|
|
@@ -27108,7 +27119,7 @@
|
|
|
27108
27119
|
* @param fn The function being registered
|
|
27109
27120
|
*/
|
|
27110
27121
|
const renderInQueue = (fn) => {
|
|
27111
|
-
const { queueMultiRenders = false } =
|
|
27122
|
+
const { queueMultiRenders = false } = config;
|
|
27112
27123
|
if (queueMultiRenders) {
|
|
27113
27124
|
renderQueue = renderQueue.then(() => new Promise((res) => fn(res)));
|
|
27114
27125
|
return renderQueue;
|
|
@@ -27117,16 +27128,16 @@
|
|
|
27117
27128
|
return fn(() => { }); // eslint-disable-line @typescript-eslint/no-empty-function
|
|
27118
27129
|
};
|
|
27119
27130
|
const executeTML = async (data) => {
|
|
27120
|
-
const { thoughtSpotHost, authType } =
|
|
27131
|
+
const { thoughtSpotHost, authType } = config;
|
|
27121
27132
|
try {
|
|
27122
|
-
sanity(
|
|
27133
|
+
sanity(config);
|
|
27123
27134
|
}
|
|
27124
27135
|
catch (err) {
|
|
27125
27136
|
return Promise.reject(err);
|
|
27126
27137
|
}
|
|
27127
27138
|
let authToken = '';
|
|
27128
27139
|
if (authType === exports.AuthType.TrustedAuthTokenCookieless) {
|
|
27129
|
-
authToken = await getAuthenticaionToken(
|
|
27140
|
+
authToken = await getAuthenticaionToken(config);
|
|
27130
27141
|
}
|
|
27131
27142
|
const headers = {
|
|
27132
27143
|
'Content-Type': 'application/json',
|
|
@@ -27157,9 +27168,9 @@
|
|
|
27157
27168
|
});
|
|
27158
27169
|
};
|
|
27159
27170
|
const exportTML = async (data) => {
|
|
27160
|
-
const { thoughtSpotHost, authType } =
|
|
27171
|
+
const { thoughtSpotHost, authType } = config;
|
|
27161
27172
|
try {
|
|
27162
|
-
sanity(
|
|
27173
|
+
sanity(config);
|
|
27163
27174
|
}
|
|
27164
27175
|
catch (err) {
|
|
27165
27176
|
return Promise.reject(err);
|
|
@@ -27172,7 +27183,7 @@
|
|
|
27172
27183
|
};
|
|
27173
27184
|
let authToken = '';
|
|
27174
27185
|
if (authType === exports.AuthType.TrustedAuthTokenCookieless) {
|
|
27175
|
-
authToken = await getAuthenticaionToken(
|
|
27186
|
+
authToken = await getAuthenticaionToken(config);
|
|
27176
27187
|
}
|
|
27177
27188
|
const headers = {
|
|
27178
27189
|
'Content-Type': 'application/json',
|
|
@@ -27412,7 +27423,7 @@
|
|
|
27412
27423
|
});
|
|
27413
27424
|
}
|
|
27414
27425
|
|
|
27415
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.
|
|
27426
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-react.7";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"}};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":"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",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","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":"^40.1.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","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","@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","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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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","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,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};
|
|
27416
27427
|
|
|
27417
27428
|
/**
|
|
27418
27429
|
* Copyright (c) 2022
|