@thoughtspot/visual-embed-sdk 1.8.0-plugins.5 → 1.9.0-alpha.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/CHANGELOG.md +13 -0
- package/dist/src/embed/base.d.ts +4 -2
- package/dist/src/embed/ts-embed.d.ts +1 -9
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types.d.ts +7 -25
- package/dist/tsembed.es.js +6 -31
- package/dist/tsembed.js +6 -31
- package/lib/package.json +2 -2
- package/lib/src/embed/base.d.ts +4 -2
- package/lib/src/embed/base.js +4 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -9
- package/lib/src/embed/ts-embed.js +0 -13
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/types.d.ts +7 -25
- package/lib/src/types.js +0 -17
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.js +1 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +14 -37
- package/package.json +2 -2
- package/src/embed/base.ts +6 -2
- package/src/embed/ts-embed.ts +0 -23
- package/src/index.ts +0 -2
- package/src/types.ts +6 -28
- package/src/utils/processData.ts +1 -1
- package/src/utils/plugin.ts +0 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Please find the comprehensive list of changes for ThoughtSpot releases and SDK [here](https://developers.thoughtspot.com/docs/?pageid=whats-new)
|
|
4
|
+
|
|
5
|
+
## 1.8.0
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- `autoLogin` option in `init` method is now by default `false` instead of `true`.
|
|
10
|
+
|
|
11
|
+
## 1.7.0 (and earlier)
|
|
12
|
+
|
|
13
|
+
- Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=whats-new)
|
package/dist/src/embed/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare let authPromise: Promise<void>;
|
|
|
3
3
|
/**
|
|
4
4
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
5
5
|
*/
|
|
6
|
-
export declare const handleAuth: () => void
|
|
6
|
+
export declare const handleAuth: () => Promise<void>;
|
|
7
7
|
export declare const getEmbedConfig: () => EmbedConfig;
|
|
8
8
|
export declare const getAuthPromise: () => Promise<void>;
|
|
9
9
|
/**
|
|
@@ -16,8 +16,10 @@ export declare const prefetch: (url?: string) => void;
|
|
|
16
16
|
* authentication if applicable.
|
|
17
17
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
18
18
|
* authentication mechanism and so on.
|
|
19
|
+
*
|
|
20
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
19
21
|
*/
|
|
20
|
-
export declare const init: (embedConfig: EmbedConfig) => void
|
|
22
|
+
export declare const init: (embedConfig: EmbedConfig) => Promise<void>;
|
|
21
23
|
/**
|
|
22
24
|
* Renders functions in a queue, resolves to next function only after the callback next is called
|
|
23
25
|
* @param fn The function being registered
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @summary Base classes
|
|
7
7
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
8
8
|
*/
|
|
9
|
-
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig
|
|
9
|
+
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig } from '../types';
|
|
10
10
|
export interface LayoutConfig {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -76,13 +76,6 @@ export interface ViewConfig {
|
|
|
76
76
|
additionalFlags?: {
|
|
77
77
|
[key: string]: string | number | boolean;
|
|
78
78
|
};
|
|
79
|
-
/**
|
|
80
|
-
* Provide a list of plugins, the plugins are executed in the order
|
|
81
|
-
* provided below,
|
|
82
|
-
*
|
|
83
|
-
* @version alpha
|
|
84
|
-
*/
|
|
85
|
-
plugins?: Plugin[];
|
|
86
79
|
}
|
|
87
80
|
/**
|
|
88
81
|
* Base class for embedding v2 experience
|
|
@@ -128,7 +121,6 @@ export declare class TsEmbed {
|
|
|
128
121
|
*/
|
|
129
122
|
private shouldEncodeUrlQueryParams;
|
|
130
123
|
constructor(domSelector: DOMSelector, viewConfig?: ViewConfig);
|
|
131
|
-
private registerPlugins;
|
|
132
124
|
/**
|
|
133
125
|
* Gets a reference to the root DOM node where
|
|
134
126
|
* the embedded content will appear.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ import { AppEmbed, Page, AppViewConfig } from './embed/app';
|
|
|
11
11
|
import { init, prefetch } from './embed/base';
|
|
12
12
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
|
|
13
13
|
import { SearchEmbed, SearchViewConfig } from './embed/search';
|
|
14
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig
|
|
15
|
-
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig,
|
|
14
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from './types';
|
|
15
|
+
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
|
package/dist/src/types.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export interface EmbedConfig {
|
|
|
64
64
|
* and returns a Promise that resolves to the `auth token` string.
|
|
65
65
|
* For trusted authentication, the `authEndpoint` or `getAuthToken`
|
|
66
66
|
* attribute is required.
|
|
67
|
+
*
|
|
68
|
+
* It is advisable to fetch a new token inside this method and not
|
|
69
|
+
* reuse and older issued token, as because when auth expires this is
|
|
70
|
+
* called again and if it is called with an older token the authentication
|
|
71
|
+
* will not succeed.
|
|
67
72
|
*/
|
|
68
73
|
getAuthToken?: () => Promise<string>;
|
|
69
74
|
/**
|
|
@@ -104,7 +109,7 @@ export interface EmbedConfig {
|
|
|
104
109
|
suppressNoCookieAccessAlert?: boolean;
|
|
105
110
|
/**
|
|
106
111
|
* Re-login when session expires with the previous login options
|
|
107
|
-
* @default
|
|
112
|
+
* @default false
|
|
108
113
|
*/
|
|
109
114
|
autoLogin?: boolean;
|
|
110
115
|
/**
|
|
@@ -274,24 +279,12 @@ export declare enum EmbedEvent {
|
|
|
274
279
|
* @return data - The answer or Liveboard data
|
|
275
280
|
*/
|
|
276
281
|
CustomAction = "customAction",
|
|
277
|
-
/**
|
|
278
|
-
* A click has been triggered on table/chart
|
|
279
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
280
|
-
* @version 1.10.0
|
|
281
|
-
*/
|
|
282
|
-
VizPointClick = "vizPointClick",
|
|
283
282
|
/**
|
|
284
283
|
* A double click has been triggered on table/chart
|
|
285
284
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
286
285
|
* @version 1.5.0 or later
|
|
287
286
|
*/
|
|
288
287
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
289
|
-
/**
|
|
290
|
-
* Event troggered when rendering a chart, call the supplied
|
|
291
|
-
* callback with the config overrides.
|
|
292
|
-
* @version 1.10.0
|
|
293
|
-
*/
|
|
294
|
-
GetVizConfigOverrides = "getVizConfigOverrides",
|
|
295
288
|
/**
|
|
296
289
|
* An error has occurred.
|
|
297
290
|
* @return error - An error object or message
|
|
@@ -397,12 +390,7 @@ export declare enum HostEvent {
|
|
|
397
390
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
398
391
|
* @version 1.8.0 or later
|
|
399
392
|
*/
|
|
400
|
-
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
401
|
-
/**
|
|
402
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
403
|
-
* @verion 1.10.0
|
|
404
|
-
*/
|
|
405
|
-
HighlightPoint = "HighlightPoint"
|
|
393
|
+
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
406
394
|
}
|
|
407
395
|
/**
|
|
408
396
|
* The different visual modes that the data sources panel within
|
|
@@ -554,9 +542,3 @@ export declare enum OperationType {
|
|
|
554
542
|
export interface AnswerServiceType {
|
|
555
543
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
556
544
|
}
|
|
557
|
-
export interface Plugin {
|
|
558
|
-
name: string;
|
|
559
|
-
handlers: {
|
|
560
|
-
[key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
|
|
561
|
-
};
|
|
562
|
-
}
|
package/dist/tsembed.es.js
CHANGED
|
@@ -271,24 +271,12 @@ var EmbedEvent;
|
|
|
271
271
|
* @return data - The answer or Liveboard data
|
|
272
272
|
*/
|
|
273
273
|
EmbedEvent["CustomAction"] = "customAction";
|
|
274
|
-
/**
|
|
275
|
-
* A click has been triggered on table/chart
|
|
276
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
277
|
-
* @version 1.10.0
|
|
278
|
-
*/
|
|
279
|
-
EmbedEvent["VizPointClick"] = "vizPointClick";
|
|
280
274
|
/**
|
|
281
275
|
* A double click has been triggered on table/chart
|
|
282
276
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
283
277
|
* @version 1.5.0 or later
|
|
284
278
|
*/
|
|
285
279
|
EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
|
|
286
|
-
/**
|
|
287
|
-
* Event troggered when rendering a chart, call the supplied
|
|
288
|
-
* callback with the config overrides.
|
|
289
|
-
* @version 1.10.0
|
|
290
|
-
*/
|
|
291
|
-
EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
|
|
292
280
|
/**
|
|
293
281
|
* An error has occurred.
|
|
294
282
|
* @return error - An error object or message
|
|
@@ -397,11 +385,6 @@ var HostEvent;
|
|
|
397
385
|
* @version 1.8.0 or later
|
|
398
386
|
*/
|
|
399
387
|
HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
|
|
400
|
-
/**
|
|
401
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
402
|
-
* @verion 1.10.0
|
|
403
|
-
*/
|
|
404
|
-
HostEvent["HighlightPoint"] = "HighlightPoint";
|
|
405
388
|
})(HostEvent || (HostEvent = {}));
|
|
406
389
|
/**
|
|
407
390
|
* The different visual modes that the data sources panel within
|
|
@@ -8738,6 +8721,7 @@ const handleAuth = () => {
|
|
|
8738
8721
|
thoughtSpotHost: getThoughtSpotHost(config),
|
|
8739
8722
|
};
|
|
8740
8723
|
authPromise = authenticate(authConfig);
|
|
8724
|
+
return authPromise;
|
|
8741
8725
|
};
|
|
8742
8726
|
const getEmbedConfig = () => config;
|
|
8743
8727
|
const getAuthPromise = () => authPromise;
|
|
@@ -8765,6 +8749,8 @@ const prefetch = (url) => {
|
|
|
8765
8749
|
* authentication if applicable.
|
|
8766
8750
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
8767
8751
|
* authentication mechanism and so on.
|
|
8752
|
+
*
|
|
8753
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
8768
8754
|
*/
|
|
8769
8755
|
const init = (embedConfig) => {
|
|
8770
8756
|
config = embedConfig;
|
|
@@ -8776,6 +8762,7 @@ const init = (embedConfig) => {
|
|
|
8776
8762
|
if (config.callPrefetch) {
|
|
8777
8763
|
prefetch(config.thoughtSpotHost);
|
|
8778
8764
|
}
|
|
8765
|
+
return authPromise;
|
|
8779
8766
|
};
|
|
8780
8767
|
let renderQueue = Promise.resolve();
|
|
8781
8768
|
/**
|
|
@@ -8870,7 +8857,7 @@ function processAuthInit(e) {
|
|
|
8870
8857
|
};
|
|
8871
8858
|
}
|
|
8872
8859
|
function processAuthExpire(e) {
|
|
8873
|
-
const { autoLogin =
|
|
8860
|
+
const { autoLogin = false } = getEmbedConfig(); // Set default to false
|
|
8874
8861
|
if (autoLogin) {
|
|
8875
8862
|
handleAuth();
|
|
8876
8863
|
}
|
|
@@ -8912,7 +8899,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
8912
8899
|
}
|
|
8913
8900
|
}
|
|
8914
8901
|
|
|
8915
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
8902
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.9.0-alpha.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/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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 @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; 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","mixpanel-browser":"^2.41.0"};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","@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.1.0","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":"4.1.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":"^4.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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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,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};
|
|
8916
8903
|
|
|
8917
8904
|
/**
|
|
8918
8905
|
* Copyright (c) 2022
|
|
@@ -8955,7 +8942,6 @@ class TsEmbed {
|
|
|
8955
8942
|
this.isError = false;
|
|
8956
8943
|
this.viewConfig = viewConfig;
|
|
8957
8944
|
this.shouldEncodeUrlQueryParams = this.embedConfig.shouldEncodeUrlQueryParams;
|
|
8958
|
-
this.registerPlugins(viewConfig === null || viewConfig === void 0 ? void 0 : viewConfig.plugins);
|
|
8959
8945
|
if (!this.embedConfig.suppressNoCookieAccessAlert) {
|
|
8960
8946
|
this.on(EmbedEvent.NoCookieAccess, () => {
|
|
8961
8947
|
// eslint-disable-next-line no-alert
|
|
@@ -8963,17 +8949,6 @@ class TsEmbed {
|
|
|
8963
8949
|
});
|
|
8964
8950
|
}
|
|
8965
8951
|
}
|
|
8966
|
-
registerPlugins(plugins) {
|
|
8967
|
-
if (!plugins) {
|
|
8968
|
-
return;
|
|
8969
|
-
}
|
|
8970
|
-
plugins.forEach((plugin) => {
|
|
8971
|
-
Object.keys(plugin.handlers).forEach((eventName) => {
|
|
8972
|
-
const listener = plugin.handlers[eventName];
|
|
8973
|
-
this.on(eventName, listener);
|
|
8974
|
-
});
|
|
8975
|
-
});
|
|
8976
|
-
}
|
|
8977
8952
|
/**
|
|
8978
8953
|
* Gets a reference to the root DOM node where
|
|
8979
8954
|
* the embedded content will appear.
|
package/dist/tsembed.js
CHANGED
|
@@ -261,24 +261,12 @@
|
|
|
261
261
|
* @return data - The answer or Liveboard data
|
|
262
262
|
*/
|
|
263
263
|
EmbedEvent["CustomAction"] = "customAction";
|
|
264
|
-
/**
|
|
265
|
-
* A click has been triggered on table/chart
|
|
266
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
267
|
-
* @version 1.10.0
|
|
268
|
-
*/
|
|
269
|
-
EmbedEvent["VizPointClick"] = "vizPointClick";
|
|
270
264
|
/**
|
|
271
265
|
* A double click has been triggered on table/chart
|
|
272
266
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
273
267
|
* @version 1.5.0 or later
|
|
274
268
|
*/
|
|
275
269
|
EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
|
|
276
|
-
/**
|
|
277
|
-
* Event troggered when rendering a chart, call the supplied
|
|
278
|
-
* callback with the config overrides.
|
|
279
|
-
* @version 1.10.0
|
|
280
|
-
*/
|
|
281
|
-
EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
|
|
282
270
|
/**
|
|
283
271
|
* An error has occurred.
|
|
284
272
|
* @return error - An error object or message
|
|
@@ -378,11 +366,6 @@
|
|
|
378
366
|
* @version 1.8.0 or later
|
|
379
367
|
*/
|
|
380
368
|
HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
|
|
381
|
-
/**
|
|
382
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
383
|
-
* @verion 1.10.0
|
|
384
|
-
*/
|
|
385
|
-
HostEvent["HighlightPoint"] = "HighlightPoint";
|
|
386
369
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
387
370
|
(function (DataSourceVisualMode) {
|
|
388
371
|
/**
|
|
@@ -8707,6 +8690,7 @@
|
|
|
8707
8690
|
thoughtSpotHost: getThoughtSpotHost(config),
|
|
8708
8691
|
};
|
|
8709
8692
|
authPromise = authenticate(authConfig);
|
|
8693
|
+
return authPromise;
|
|
8710
8694
|
};
|
|
8711
8695
|
const getEmbedConfig = () => config;
|
|
8712
8696
|
const getAuthPromise = () => authPromise;
|
|
@@ -8734,6 +8718,8 @@
|
|
|
8734
8718
|
* authentication if applicable.
|
|
8735
8719
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
8736
8720
|
* authentication mechanism and so on.
|
|
8721
|
+
*
|
|
8722
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
8737
8723
|
*/
|
|
8738
8724
|
const init = (embedConfig) => {
|
|
8739
8725
|
config = embedConfig;
|
|
@@ -8745,6 +8731,7 @@
|
|
|
8745
8731
|
if (config.callPrefetch) {
|
|
8746
8732
|
prefetch(config.thoughtSpotHost);
|
|
8747
8733
|
}
|
|
8734
|
+
return authPromise;
|
|
8748
8735
|
};
|
|
8749
8736
|
let renderQueue = Promise.resolve();
|
|
8750
8737
|
/**
|
|
@@ -8839,7 +8826,7 @@
|
|
|
8839
8826
|
};
|
|
8840
8827
|
}
|
|
8841
8828
|
function processAuthExpire(e) {
|
|
8842
|
-
const { autoLogin =
|
|
8829
|
+
const { autoLogin = false } = getEmbedConfig(); // Set default to false
|
|
8843
8830
|
if (autoLogin) {
|
|
8844
8831
|
handleAuth();
|
|
8845
8832
|
}
|
|
@@ -8881,7 +8868,7 @@
|
|
|
8881
8868
|
}
|
|
8882
8869
|
}
|
|
8883
8870
|
|
|
8884
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
8871
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.9.0-alpha.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/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",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 @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",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","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; 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","mixpanel-browser":"^2.41.0"};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","@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.1.0","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":"4.1.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":"^4.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-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","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,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};
|
|
8885
8872
|
|
|
8886
8873
|
/**
|
|
8887
8874
|
* Copyright (c) 2022
|
|
@@ -8924,7 +8911,6 @@
|
|
|
8924
8911
|
this.isError = false;
|
|
8925
8912
|
this.viewConfig = viewConfig;
|
|
8926
8913
|
this.shouldEncodeUrlQueryParams = this.embedConfig.shouldEncodeUrlQueryParams;
|
|
8927
|
-
this.registerPlugins(viewConfig === null || viewConfig === void 0 ? void 0 : viewConfig.plugins);
|
|
8928
8914
|
if (!this.embedConfig.suppressNoCookieAccessAlert) {
|
|
8929
8915
|
this.on(exports.EmbedEvent.NoCookieAccess, () => {
|
|
8930
8916
|
// eslint-disable-next-line no-alert
|
|
@@ -8932,17 +8918,6 @@
|
|
|
8932
8918
|
});
|
|
8933
8919
|
}
|
|
8934
8920
|
}
|
|
8935
|
-
registerPlugins(plugins) {
|
|
8936
|
-
if (!plugins) {
|
|
8937
|
-
return;
|
|
8938
|
-
}
|
|
8939
|
-
plugins.forEach((plugin) => {
|
|
8940
|
-
Object.keys(plugin.handlers).forEach((eventName) => {
|
|
8941
|
-
const listener = plugin.handlers[eventName];
|
|
8942
|
-
this.on(eventName, listener);
|
|
8943
|
-
});
|
|
8944
|
-
});
|
|
8945
|
-
}
|
|
8946
8921
|
/**
|
|
8947
8922
|
* Gets a reference to the root DOM node where
|
|
8948
8923
|
* the embedded content will appear.
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-alpha.0",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",
|
|
35
35
|
"posttest": "cat ./coverage/lcov.info | coveralls",
|
|
36
36
|
"prepublishOnly": "npm run test; npm run tsc; npm run bundle-dts; npm run build",
|
|
37
|
-
"publish-dev": "npm publish --tag
|
|
37
|
+
"publish-dev": "npm publish --tag dev",
|
|
38
38
|
"publish-prod": "npm publish --tag latest"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/lib/src/embed/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare let authPromise: Promise<void>;
|
|
|
3
3
|
/**
|
|
4
4
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
5
5
|
*/
|
|
6
|
-
export declare const handleAuth: () => void
|
|
6
|
+
export declare const handleAuth: () => Promise<void>;
|
|
7
7
|
export declare const getEmbedConfig: () => EmbedConfig;
|
|
8
8
|
export declare const getAuthPromise: () => Promise<void>;
|
|
9
9
|
/**
|
|
@@ -16,8 +16,10 @@ export declare const prefetch: (url?: string) => void;
|
|
|
16
16
|
* authentication if applicable.
|
|
17
17
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
18
18
|
* authentication mechanism and so on.
|
|
19
|
+
*
|
|
20
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
19
21
|
*/
|
|
20
|
-
export declare const init: (embedConfig: EmbedConfig) => void
|
|
22
|
+
export declare const init: (embedConfig: EmbedConfig) => Promise<void>;
|
|
21
23
|
/**
|
|
22
24
|
* Renders functions in a queue, resolves to next function only after the callback next is called
|
|
23
25
|
* @param fn The function being registered
|
package/lib/src/embed/base.js
CHANGED
|
@@ -21,6 +21,7 @@ export const handleAuth = () => {
|
|
|
21
21
|
thoughtSpotHost: getThoughtSpotHost(config),
|
|
22
22
|
};
|
|
23
23
|
authPromise = authenticate(authConfig);
|
|
24
|
+
return authPromise;
|
|
24
25
|
};
|
|
25
26
|
export const getEmbedConfig = () => config;
|
|
26
27
|
export const getAuthPromise = () => authPromise;
|
|
@@ -48,6 +49,8 @@ export const prefetch = (url) => {
|
|
|
48
49
|
* authentication if applicable.
|
|
49
50
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
50
51
|
* authentication mechanism and so on.
|
|
52
|
+
*
|
|
53
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
51
54
|
*/
|
|
52
55
|
export const init = (embedConfig) => {
|
|
53
56
|
config = embedConfig;
|
|
@@ -59,6 +62,7 @@ export const init = (embedConfig) => {
|
|
|
59
62
|
if (config.callPrefetch) {
|
|
60
63
|
prefetch(config.thoughtSpotHost);
|
|
61
64
|
}
|
|
65
|
+
return authPromise;
|
|
62
66
|
};
|
|
63
67
|
let renderQueue = Promise.resolve();
|
|
64
68
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/embed/base.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C;;;;;;;GAOG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1E,IAAI,MAAM,GAAG,EAAiB,CAAC;AAE/B,MAAM,CAAC,IAAI,WAA0B,CAAC;AAEtC;;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edEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig
|
|
9
|
+
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig } from '../types';
|
|
10
10
|
export interface LayoutConfig {
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -76,13 +76,6 @@ export interface ViewConfig {
|
|
|
76
76
|
additionalFlags?: {
|
|
77
77
|
[key: string]: string | number | boolean;
|
|
78
78
|
};
|
|
79
|
-
/**
|
|
80
|
-
* Provide a list of plugins, the plugins are executed in the order
|
|
81
|
-
* provided below,
|
|
82
|
-
*
|
|
83
|
-
* @version alpha
|
|
84
|
-
*/
|
|
85
|
-
plugins?: Plugin[];
|
|
86
79
|
}
|
|
87
80
|
/**
|
|
88
81
|
* Base class for embedding v2 experience
|
|
@@ -128,7 +121,6 @@ export declare class TsEmbed {
|
|
|
128
121
|
*/
|
|
129
122
|
private shouldEncodeUrlQueryParams;
|
|
130
123
|
constructor(domSelector: DOMSelector, viewConfig?: ViewConfig);
|
|
131
|
-
private registerPlugins;
|
|
132
124
|
/**
|
|
133
125
|
* Gets a reference to the root DOM node where
|
|
134
126
|
* the embedded content will appear.
|
|
@@ -12,7 +12,6 @@ import { EmbedEvent, Param, } from '../types';
|
|
|
12
12
|
import { uploadMixpanelEvent, MIXPANEL_EVENT } from '../mixpanel-service';
|
|
13
13
|
import { getProcessData } from '../utils/processData';
|
|
14
14
|
import { processTrigger } from '../utils/processTrigger';
|
|
15
|
-
// eslint-disable-next-line import/no-cycle
|
|
16
15
|
import pkgInfo from '../../package.json';
|
|
17
16
|
import { getAuthPromise, getEmbedConfig, renderInQueue } from './base';
|
|
18
17
|
const { version } = pkgInfo;
|
|
@@ -48,7 +47,6 @@ export class TsEmbed {
|
|
|
48
47
|
this.isError = false;
|
|
49
48
|
this.viewConfig = viewConfig;
|
|
50
49
|
this.shouldEncodeUrlQueryParams = this.embedConfig.shouldEncodeUrlQueryParams;
|
|
51
|
-
this.registerPlugins(viewConfig === null || viewConfig === void 0 ? void 0 : viewConfig.plugins);
|
|
52
50
|
if (!this.embedConfig.suppressNoCookieAccessAlert) {
|
|
53
51
|
this.on(EmbedEvent.NoCookieAccess, () => {
|
|
54
52
|
// eslint-disable-next-line no-alert
|
|
@@ -56,17 +54,6 @@ export class TsEmbed {
|
|
|
56
54
|
});
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
|
-
registerPlugins(plugins) {
|
|
60
|
-
if (!plugins) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
plugins.forEach((plugin) => {
|
|
64
|
-
Object.keys(plugin.handlers).forEach((eventName) => {
|
|
65
|
-
const listener = plugin.handlers[eventName];
|
|
66
|
-
this.on(eventName, listener);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
57
|
/**
|
|
71
58
|
* Gets a reference to the root DOM node where
|
|
72
59
|
* the embedded content will appear.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-embed.js","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,2BAA2B,EAC3B,eAAe,EACf,YAAY,GACf,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAGH,UAAU,EAIV,KAAK,GAGR,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,2CAA2C;AAC3C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM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|
import { init, prefetch } from './embed/base';
|
|
12
12
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
|
|
13
13
|
import { SearchEmbed, SearchViewConfig } from './embed/search';
|
|
14
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig
|
|
15
|
-
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig,
|
|
14
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from './types';
|
|
15
|
+
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
|
package/lib/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACH,aAAa,EAEb,cAAc,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EACH,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACH,aAAa,EAEb,cAAc,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EACH,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAET,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ;AACR,QAAQ;AACR,IAAI,EACJ,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAKT,CAAC"}
|
package/lib/src/types.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export interface EmbedConfig {
|
|
|
64
64
|
* and returns a Promise that resolves to the `auth token` string.
|
|
65
65
|
* For trusted authentication, the `authEndpoint` or `getAuthToken`
|
|
66
66
|
* attribute is required.
|
|
67
|
+
*
|
|
68
|
+
* It is advisable to fetch a new token inside this method and not
|
|
69
|
+
* reuse and older issued token, as because when auth expires this is
|
|
70
|
+
* called again and if it is called with an older token the authentication
|
|
71
|
+
* will not succeed.
|
|
67
72
|
*/
|
|
68
73
|
getAuthToken?: () => Promise<string>;
|
|
69
74
|
/**
|
|
@@ -104,7 +109,7 @@ export interface EmbedConfig {
|
|
|
104
109
|
suppressNoCookieAccessAlert?: boolean;
|
|
105
110
|
/**
|
|
106
111
|
* Re-login when session expires with the previous login options
|
|
107
|
-
* @default
|
|
112
|
+
* @default false
|
|
108
113
|
*/
|
|
109
114
|
autoLogin?: boolean;
|
|
110
115
|
/**
|
|
@@ -274,24 +279,12 @@ export declare enum EmbedEvent {
|
|
|
274
279
|
* @return data - The answer or Liveboard data
|
|
275
280
|
*/
|
|
276
281
|
CustomAction = "customAction",
|
|
277
|
-
/**
|
|
278
|
-
* A click has been triggered on table/chart
|
|
279
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
280
|
-
* @version 1.10.0
|
|
281
|
-
*/
|
|
282
|
-
VizPointClick = "vizPointClick",
|
|
283
282
|
/**
|
|
284
283
|
* A double click has been triggered on table/chart
|
|
285
284
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
286
285
|
* @version 1.5.0 or later
|
|
287
286
|
*/
|
|
288
287
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
289
|
-
/**
|
|
290
|
-
* Event troggered when rendering a chart, call the supplied
|
|
291
|
-
* callback with the config overrides.
|
|
292
|
-
* @version 1.10.0
|
|
293
|
-
*/
|
|
294
|
-
GetVizConfigOverrides = "getVizConfigOverrides",
|
|
295
288
|
/**
|
|
296
289
|
* An error has occurred.
|
|
297
290
|
* @return error - An error object or message
|
|
@@ -397,12 +390,7 @@ export declare enum HostEvent {
|
|
|
397
390
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
398
391
|
* @version 1.8.0 or later
|
|
399
392
|
*/
|
|
400
|
-
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
401
|
-
/**
|
|
402
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
403
|
-
* @verion 1.10.0
|
|
404
|
-
*/
|
|
405
|
-
HighlightPoint = "HighlightPoint"
|
|
393
|
+
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
406
394
|
}
|
|
407
395
|
/**
|
|
408
396
|
* The different visual modes that the data sources panel within
|
|
@@ -554,9 +542,3 @@ export declare enum OperationType {
|
|
|
554
542
|
export interface AnswerServiceType {
|
|
555
543
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
556
544
|
}
|
|
557
|
-
export interface Plugin {
|
|
558
|
-
name: string;
|
|
559
|
-
handlers: {
|
|
560
|
-
[key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
|
|
561
|
-
};
|
|
562
|
-
}
|
package/lib/src/types.js
CHANGED
|
@@ -159,24 +159,12 @@ export var EmbedEvent;
|
|
|
159
159
|
* @return data - The answer or Liveboard data
|
|
160
160
|
*/
|
|
161
161
|
EmbedEvent["CustomAction"] = "customAction";
|
|
162
|
-
/**
|
|
163
|
-
* A click has been triggered on table/chart
|
|
164
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
165
|
-
* @version 1.10.0
|
|
166
|
-
*/
|
|
167
|
-
EmbedEvent["VizPointClick"] = "vizPointClick";
|
|
168
162
|
/**
|
|
169
163
|
* A double click has been triggered on table/chart
|
|
170
164
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
171
165
|
* @version 1.5.0 or later
|
|
172
166
|
*/
|
|
173
167
|
EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
|
|
174
|
-
/**
|
|
175
|
-
* Event troggered when rendering a chart, call the supplied
|
|
176
|
-
* callback with the config overrides.
|
|
177
|
-
* @version 1.10.0
|
|
178
|
-
*/
|
|
179
|
-
EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
|
|
180
168
|
/**
|
|
181
169
|
* An error has occurred.
|
|
182
170
|
* @return error - An error object or message
|
|
@@ -285,11 +273,6 @@ export var HostEvent;
|
|
|
285
273
|
* @version 1.8.0 or later
|
|
286
274
|
*/
|
|
287
275
|
HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
|
|
288
|
-
/**
|
|
289
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
290
|
-
* @verion 1.10.0
|
|
291
|
-
*/
|
|
292
|
-
HostEvent["HighlightPoint"] = "HighlightPoint";
|
|
293
276
|
})(HostEvent || (HostEvent = {}));
|
|
294
277
|
/**
|
|
295
278
|
* The different visual modes that the data sources panel within
|
package/lib/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,QAwBX;AAxBD,WAAY,QAAQ;IAChB;;OAEG;IACH,yBAAa,CAAA;IACb;;OAEG;IACH,4BAAgB,CAAA;IAChB;;OAEG;IACH,6BAAiB,CAAA;IACjB;;OAEG;IACH,qCAAyB,CAAA;IACzB;;;;;OAKG;IACH,2BAAe,CAAA;AACnB,CAAC,EAxBW,QAAQ,KAAR,QAAQ,QAwBnB;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,QAwBX;AAxBD,WAAY,QAAQ;IAChB;;OAEG;IACH,yBAAa,CAAA;IACb;;OAEG;IACH,4BAAgB,CAAA;IAChB;;OAEG;IACH,6BAAiB,CAAA;IACjB;;OAEG;IACH,qCAAyB,CAAA;IACzB;;;;;OAKG;IACH,2BAAe,CAAA;AACnB,CAAC,EAxBW,QAAQ,KAAR,QAAQ,QAwBnB;AA2HD;;GAEG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,eAyDX;AAzDD,WAAY,eAAe;IACvB;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,wCAAqB,CAAA;IACrB;;OAEG;IACH,8CAA2B,CAAA;IAC3B;;OAEG;IACH,0CAAuB,CAAA;IACvB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;AACb,CAAC,EAzDW,eAAe,KAAf,eAAe,QAyD1B;AAs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B"}
|
|
@@ -30,7 +30,7 @@ function processAuthInit(e) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
function processAuthExpire(e) {
|
|
33
|
-
const { autoLogin =
|
|
33
|
+
const { autoLogin = false } = getEmbedConfig(); // Set default to false
|
|
34
34
|
if (autoLogin) {
|
|
35
35
|
handleAuth();
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processData.js","sourceRoot":"","sources":["../../../src/utils/processData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,UAAU,mBAAmB,CAAC,CAAM,EAAE,eAAuB;;IAC/D,IACI;QACI,aAAa,CAAC,gBAAgB;QAC9B,aAAa,CAAC,wBAAwB;KACzC,CAAC,QAAQ,CAAC,MAAA,CAAC,CAAC,IAAI,0CAAE,SAAS,CAAC,EAC/B;QACE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC;QAC7C,MAAM,aAAa,GAAG,wBAAwB,CAC1C,OAAO,EACP,KAAK,EACL,SAAS,EACT,eAAe,CAClB,CAAC;QACF,OAAO;YACH,GAAG,CAAC;YACJ,aAAa;SAChB,CAAC;KACL;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAED,SAAS,eAAe,CAAC,CAAM;;IAC3B,0CAA0C;IAC1C,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEpB,gEAAgE;IAChE,OAAO;QACH,GAAG,CAAC;QACJ,IAAI,EAAE;YACF,QAAQ,EAAE,CAAA,MAAA,CAAC,CAAC,IAAI,0CAAE,QAAQ,M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IAC7B,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,cAAc,EAAE,CAAC,CAAC,uBAAuB;IACvE,IAAI,SAAS,EAAE;QACX,UAAU,EAAE,CAAC;KAChB;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAED,MAAM,UAAU,cAAc,CAC1B,IAAgB,EAChB,CAAM,EACN,eAAuB;IAEvB,QAAQ,IAAI,EAAE;QACV,KAAK,UAAU,CAAC,YAAY;YACxB,OAAO,mBAAmB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;QACnD,KAAK,UAAU,CAAC,QAAQ;YACpB,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;QAC9B,KAAK,UAAU,CAAC,UAAU;YACtB,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC;QAChC,QAAQ;KACX;IACD,OAAO,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -14,8 +14,8 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
14
14
|
import { init, prefetch } from '@thoughtspot/visual-embed-sdk/embed/base';
|
|
15
15
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
|
|
16
16
|
import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
|
|
17
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig
|
|
18
|
-
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig,
|
|
17
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
18
|
+
export { init, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
@@ -125,7 +125,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
125
125
|
/**
|
|
126
126
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
127
127
|
*/
|
|
128
|
-
export const handleAuth: () => void
|
|
128
|
+
export const handleAuth: () => Promise<void>;
|
|
129
129
|
export const getEmbedConfig: () => EmbedConfig;
|
|
130
130
|
export const getAuthPromise: () => Promise<void>;
|
|
131
131
|
/**
|
|
@@ -138,8 +138,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
138
138
|
* authentication if applicable.
|
|
139
139
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
140
140
|
* authentication mechanism and so on.
|
|
141
|
+
*
|
|
142
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
141
143
|
*/
|
|
142
|
-
export const init: (embedConfig: EmbedConfig) => void
|
|
144
|
+
export const init: (embedConfig: EmbedConfig) => Promise<void>;
|
|
143
145
|
/**
|
|
144
146
|
* Renders functions in a queue, resolves to next function only after the callback next is called
|
|
145
147
|
* @param fn The function being registered
|
|
@@ -381,6 +383,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
381
383
|
* and returns a Promise that resolves to the `auth token` string.
|
|
382
384
|
* For trusted authentication, the `authEndpoint` or `getAuthToken`
|
|
383
385
|
* attribute is required.
|
|
386
|
+
*
|
|
387
|
+
* It is advisable to fetch a new token inside this method and not
|
|
388
|
+
* reuse and older issued token, as because when auth expires this is
|
|
389
|
+
* called again and if it is called with an older token the authentication
|
|
390
|
+
* will not succeed.
|
|
384
391
|
*/
|
|
385
392
|
getAuthToken?: () => Promise<string>;
|
|
386
393
|
/**
|
|
@@ -421,7 +428,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
421
428
|
suppressNoCookieAccessAlert?: boolean;
|
|
422
429
|
/**
|
|
423
430
|
* Re-login when session expires with the previous login options
|
|
424
|
-
* @default
|
|
431
|
+
* @default false
|
|
425
432
|
*/
|
|
426
433
|
autoLogin?: boolean;
|
|
427
434
|
/**
|
|
@@ -591,24 +598,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
591
598
|
* @return data - The answer or Liveboard data
|
|
592
599
|
*/
|
|
593
600
|
CustomAction = "customAction",
|
|
594
|
-
/**
|
|
595
|
-
* A click has been triggered on table/chart
|
|
596
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
597
|
-
* @version 1.10.0
|
|
598
|
-
*/
|
|
599
|
-
VizPointClick = "vizPointClick",
|
|
600
601
|
/**
|
|
601
602
|
* A double click has been triggered on table/chart
|
|
602
603
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
603
604
|
* @version 1.5.0 or later
|
|
604
605
|
*/
|
|
605
606
|
VizPointDoubleClick = "vizPointDoubleClick",
|
|
606
|
-
/**
|
|
607
|
-
* Event troggered when rendering a chart, call the supplied
|
|
608
|
-
* callback with the config overrides.
|
|
609
|
-
* @version 1.10.0
|
|
610
|
-
*/
|
|
611
|
-
GetVizConfigOverrides = "getVizConfigOverrides",
|
|
612
607
|
/**
|
|
613
608
|
* An error has occurred.
|
|
614
609
|
* @return error - An error object or message
|
|
@@ -714,12 +709,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
714
709
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
715
710
|
* @version 1.8.0 or later
|
|
716
711
|
*/
|
|
717
|
-
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
718
|
-
/**
|
|
719
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
720
|
-
* @verion 1.10.0
|
|
721
|
-
*/
|
|
722
|
-
HighlightPoint = "HighlightPoint"
|
|
712
|
+
UpdateRuntimeFilters = "UpdateRuntimeFilters"
|
|
723
713
|
}
|
|
724
714
|
/**
|
|
725
715
|
* The different visual modes that the data sources panel within
|
|
@@ -871,12 +861,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
871
861
|
export interface AnswerServiceType {
|
|
872
862
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
873
863
|
}
|
|
874
|
-
export interface Plugin {
|
|
875
|
-
name: string;
|
|
876
|
-
handlers: {
|
|
877
|
-
[key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
864
|
}
|
|
881
865
|
|
|
882
866
|
declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
@@ -888,7 +872,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
888
872
|
* @summary Base classes
|
|
889
873
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
890
874
|
*/
|
|
891
|
-
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig
|
|
875
|
+
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, Action, RuntimeFilter, EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
892
876
|
export interface LayoutConfig {
|
|
893
877
|
}
|
|
894
878
|
/**
|
|
@@ -958,13 +942,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
958
942
|
additionalFlags?: {
|
|
959
943
|
[key: string]: string | number | boolean;
|
|
960
944
|
};
|
|
961
|
-
/**
|
|
962
|
-
* Provide a list of plugins, the plugins are executed in the order
|
|
963
|
-
* provided below,
|
|
964
|
-
*
|
|
965
|
-
* @version alpha
|
|
966
|
-
*/
|
|
967
|
-
plugins?: Plugin[];
|
|
968
945
|
}
|
|
969
946
|
/**
|
|
970
947
|
* Base class for embedding v2 experience
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-alpha.0",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",
|
|
35
35
|
"posttest": "cat ./coverage/lcov.info | coveralls",
|
|
36
36
|
"prepublishOnly": "npm run test; npm run tsc; npm run bundle-dts; npm run build",
|
|
37
|
-
"publish-dev": "npm publish --tag
|
|
37
|
+
"publish-dev": "npm publish --tag dev",
|
|
38
38
|
"publish-prod": "npm publish --tag latest"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/src/embed/base.ts
CHANGED
|
@@ -19,12 +19,13 @@ export let authPromise: Promise<void>;
|
|
|
19
19
|
/**
|
|
20
20
|
* Perform authentication on the ThoughtSpot app as applicable.
|
|
21
21
|
*/
|
|
22
|
-
export const handleAuth = (): void => {
|
|
22
|
+
export const handleAuth = (): Promise<void> => {
|
|
23
23
|
const authConfig = {
|
|
24
24
|
...config,
|
|
25
25
|
thoughtSpotHost: getThoughtSpotHost(config),
|
|
26
26
|
};
|
|
27
27
|
authPromise = authenticate(authConfig);
|
|
28
|
+
return authPromise;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
export const getEmbedConfig = (): EmbedConfig => config;
|
|
@@ -55,8 +56,10 @@ export const prefetch = (url?: string): void => {
|
|
|
55
56
|
* authentication if applicable.
|
|
56
57
|
* @param embedConfig The configuration object containing ThoughtSpot host,
|
|
57
58
|
* authentication mechanism and so on.
|
|
59
|
+
*
|
|
60
|
+
* @returns authPromise Promise which resolves when authentication is complete.
|
|
58
61
|
*/
|
|
59
|
-
export const init = (embedConfig: EmbedConfig): void => {
|
|
62
|
+
export const init = (embedConfig: EmbedConfig): Promise<void> => {
|
|
60
63
|
config = embedConfig;
|
|
61
64
|
handleAuth();
|
|
62
65
|
|
|
@@ -68,6 +71,7 @@ export const init = (embedConfig: EmbedConfig): void => {
|
|
|
68
71
|
if (config.callPrefetch) {
|
|
69
72
|
prefetch(config.thoughtSpotHost);
|
|
70
73
|
}
|
|
74
|
+
return authPromise;
|
|
71
75
|
};
|
|
72
76
|
|
|
73
77
|
let renderQueue: Promise<any> = Promise.resolve();
|
package/src/embed/ts-embed.ts
CHANGED
|
@@ -28,12 +28,10 @@ import {
|
|
|
28
28
|
RuntimeFilter,
|
|
29
29
|
Param,
|
|
30
30
|
EmbedConfig,
|
|
31
|
-
Plugin,
|
|
32
31
|
} from '../types';
|
|
33
32
|
import { uploadMixpanelEvent, MIXPANEL_EVENT } from '../mixpanel-service';
|
|
34
33
|
import { getProcessData } from '../utils/processData';
|
|
35
34
|
import { processTrigger } from '../utils/processTrigger';
|
|
36
|
-
// eslint-disable-next-line import/no-cycle
|
|
37
35
|
import pkgInfo from '../../package.json';
|
|
38
36
|
import { getAuthPromise, getEmbedConfig, renderInQueue } from './base';
|
|
39
37
|
|
|
@@ -119,13 +117,6 @@ export interface ViewConfig {
|
|
|
119
117
|
* @version 1.8.0
|
|
120
118
|
*/
|
|
121
119
|
additionalFlags?: { [key: string]: string | number | boolean };
|
|
122
|
-
/**
|
|
123
|
-
* Provide a list of plugins, the plugins are executed in the order
|
|
124
|
-
* provided below,
|
|
125
|
-
*
|
|
126
|
-
* @version alpha
|
|
127
|
-
*/
|
|
128
|
-
plugins?: Plugin[];
|
|
129
120
|
}
|
|
130
121
|
|
|
131
122
|
/**
|
|
@@ -194,8 +185,6 @@ export class TsEmbed {
|
|
|
194
185
|
this.isError = false;
|
|
195
186
|
this.viewConfig = viewConfig;
|
|
196
187
|
this.shouldEncodeUrlQueryParams = this.embedConfig.shouldEncodeUrlQueryParams;
|
|
197
|
-
this.registerPlugins(viewConfig?.plugins);
|
|
198
|
-
|
|
199
188
|
if (!this.embedConfig.suppressNoCookieAccessAlert) {
|
|
200
189
|
this.on(EmbedEvent.NoCookieAccess, () => {
|
|
201
190
|
// eslint-disable-next-line no-alert
|
|
@@ -206,18 +195,6 @@ export class TsEmbed {
|
|
|
206
195
|
}
|
|
207
196
|
}
|
|
208
197
|
|
|
209
|
-
private registerPlugins(plugins: Plugin[]) {
|
|
210
|
-
if (!plugins) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
plugins.forEach((plugin) => {
|
|
214
|
-
Object.keys(plugin.handlers).forEach((eventName: EmbedEvent) => {
|
|
215
|
-
const listener = plugin.handlers[eventName];
|
|
216
|
-
this.on(eventName, listener);
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
|
|
221
198
|
/**
|
|
222
199
|
* Gets a reference to the root DOM node where
|
|
223
200
|
* the embedded content will appear.
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -68,6 +68,11 @@ export interface EmbedConfig {
|
|
|
68
68
|
* and returns a Promise that resolves to the `auth token` string.
|
|
69
69
|
* For trusted authentication, the `authEndpoint` or `getAuthToken`
|
|
70
70
|
* attribute is required.
|
|
71
|
+
*
|
|
72
|
+
* It is advisable to fetch a new token inside this method and not
|
|
73
|
+
* reuse and older issued token, as because when auth expires this is
|
|
74
|
+
* called again and if it is called with an older token the authentication
|
|
75
|
+
* will not succeed.
|
|
71
76
|
*/
|
|
72
77
|
getAuthToken?: () => Promise<string>;
|
|
73
78
|
/**
|
|
@@ -114,7 +119,7 @@ export interface EmbedConfig {
|
|
|
114
119
|
|
|
115
120
|
/**
|
|
116
121
|
* Re-login when session expires with the previous login options
|
|
117
|
-
* @default
|
|
122
|
+
* @default false
|
|
118
123
|
*/
|
|
119
124
|
autoLogin?: boolean;
|
|
120
125
|
|
|
@@ -295,27 +300,12 @@ export enum EmbedEvent {
|
|
|
295
300
|
* @return data - The answer or Liveboard data
|
|
296
301
|
*/
|
|
297
302
|
CustomAction = 'customAction',
|
|
298
|
-
/**
|
|
299
|
-
* A click has been triggered on table/chart
|
|
300
|
-
* @return ContextMenuInputPoints - data point that is double clicked
|
|
301
|
-
* @version 1.10.0
|
|
302
|
-
*/
|
|
303
|
-
VizPointClick = 'vizPointClick',
|
|
304
|
-
|
|
305
303
|
/**
|
|
306
304
|
* A double click has been triggered on table/chart
|
|
307
305
|
* @return ContextMenuInputPoints - data point that is double clicked
|
|
308
306
|
* @version 1.5.0 or later
|
|
309
307
|
*/
|
|
310
308
|
VizPointDoubleClick = 'vizPointDoubleClick',
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Event troggered when rendering a chart, call the supplied
|
|
314
|
-
* callback with the config overrides.
|
|
315
|
-
* @version 1.10.0
|
|
316
|
-
*/
|
|
317
|
-
GetVizConfigOverrides = 'getVizConfigOverrides',
|
|
318
|
-
|
|
319
309
|
/**
|
|
320
310
|
* An error has occurred.
|
|
321
311
|
* @return error - An error object or message
|
|
@@ -424,11 +414,6 @@ export enum HostEvent {
|
|
|
424
414
|
* @version 1.8.0 or later
|
|
425
415
|
*/
|
|
426
416
|
UpdateRuntimeFilters = 'UpdateRuntimeFilters',
|
|
427
|
-
/**
|
|
428
|
-
* Highlight the point in the chart defined by the InputPoint passed.
|
|
429
|
-
* @verion 1.10.0
|
|
430
|
-
*/
|
|
431
|
-
HighlightPoint = 'HighlightPoint',
|
|
432
417
|
}
|
|
433
418
|
|
|
434
419
|
/**
|
|
@@ -587,10 +572,3 @@ export enum OperationType {
|
|
|
587
572
|
export interface AnswerServiceType {
|
|
588
573
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
589
574
|
}
|
|
590
|
-
|
|
591
|
-
export interface Plugin {
|
|
592
|
-
name: string;
|
|
593
|
-
handlers: {
|
|
594
|
-
[key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
|
|
595
|
-
};
|
|
596
|
-
}
|
package/src/utils/processData.ts
CHANGED
|
@@ -39,7 +39,7 @@ function processAuthInit(e: any) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
function processAuthExpire(e: any) {
|
|
42
|
-
const { autoLogin =
|
|
42
|
+
const { autoLogin = false } = getEmbedConfig(); // Set default to false
|
|
43
43
|
if (autoLogin) {
|
|
44
44
|
handleAuth();
|
|
45
45
|
}
|
package/src/utils/plugin.ts
DELETED