@thoughtspot/visual-embed-sdk 1.19.0-alpha.9 → 1.19.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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/src/embed/base.d.ts.map +1 -1
  3. package/dist/src/embed/search.d.ts +4 -0
  4. package/dist/src/embed/search.d.ts.map +1 -1
  5. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  6. package/dist/src/index.d.ts +2 -2
  7. package/dist/src/index.d.ts.map +1 -1
  8. package/dist/src/types.d.ts +3 -65
  9. package/dist/src/types.d.ts.map +1 -1
  10. package/dist/src/utils.d.ts.map +1 -1
  11. package/dist/tsembed.es.js +7 -83
  12. package/dist/tsembed.js +6 -83
  13. package/lib/package.json +9 -2
  14. package/lib/src/auth.js +2 -2
  15. package/lib/src/auth.js.map +1 -1
  16. package/lib/src/auth.spec.js +1 -1
  17. package/lib/src/auth.spec.js.map +1 -1
  18. package/lib/src/embed/base.d.ts.map +1 -1
  19. package/lib/src/embed/base.js +0 -9
  20. package/lib/src/embed/base.js.map +1 -1
  21. package/lib/src/embed/base.spec.js +0 -17
  22. package/lib/src/embed/base.spec.js.map +1 -1
  23. package/lib/src/embed/search.d.ts +4 -0
  24. package/lib/src/embed/search.d.ts.map +1 -1
  25. package/lib/src/embed/search.js +1 -1
  26. package/lib/src/embed/search.js.map +1 -1
  27. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  28. package/lib/src/embed/ts-embed.js +1 -11
  29. package/lib/src/embed/ts-embed.js.map +1 -1
  30. package/lib/src/embed/ts-embed.spec.js +0 -13
  31. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  32. package/lib/src/index.d.ts +2 -2
  33. package/lib/src/index.d.ts.map +1 -1
  34. package/lib/src/index.js +2 -2
  35. package/lib/src/index.js.map +1 -1
  36. package/lib/src/types.d.ts +3 -65
  37. package/lib/src/types.d.ts.map +1 -1
  38. package/lib/src/types.js +1 -58
  39. package/lib/src/types.js.map +1 -1
  40. package/lib/src/utils.d.ts.map +1 -1
  41. package/lib/src/utils.js +1 -1
  42. package/lib/src/utils.js.map +1 -1
  43. package/lib/src/visual-embed-sdk.d.ts +9 -67
  44. package/package.json +9 -2
  45. package/src/auth.spec.ts +1 -1
  46. package/src/auth.ts +2 -2
  47. package/src/embed/base.spec.ts +0 -17
  48. package/src/embed/base.ts +0 -12
  49. package/src/embed/search.ts +5 -0
  50. package/src/embed/ts-embed.spec.ts +0 -13
  51. package/src/embed/ts-embed.ts +0 -10
  52. package/src/index.ts +1 -2
  53. package/src/types.ts +2 -63
  54. package/src/utils.ts +1 -4
  55. package/CHANGELOG.md +0 -126
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,cAA+B,EAAU,EAAE;IACtE,IAAI,cAAc,IAAI,cAAc,CAAC,MAAM,EAAE;QACzC,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YACtD,MAAM,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC;YAC7B,MAAM,UAAU,GAAG,EAAE,CAAC;YACtB,UAAU,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;YACpD,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YACjD,UAAU,CAAC,IAAI,CACX,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CACjE,CAAC;YAEF,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,CA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,CAAC,WAAW,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAW,EAAE,MAAW,EAAE,EAAE;IAClD,mHAAmH;IACnH,gDAAgD;IAChD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACnC,IAAI,MAAM,CAAC,GAAG,CAAC,YAAY,MAAM;YAC7B,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACvE;IAED,sCAAsC;IACtC,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
@@ -13,13 +13,13 @@ declare module '@thoughtspot/visual-embed-sdk' {
13
13
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14
14
  */
15
15
  import { AppEmbed, Page, AppViewConfig } from '@thoughtspot/visual-embed-sdk/embed/app';
16
- import { init, prefetch, logout, getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/base';
16
+ import { init, prefetch, logout } from '@thoughtspot/visual-embed-sdk/embed/base';
17
17
  import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
18
18
  import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
19
19
  import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
20
20
  import { AuthFailureType, AuthStatus, AuthEvent } from '@thoughtspot/visual-embed-sdk/auth';
21
21
  import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures } from '@thoughtspot/visual-embed-sdk/types';
22
- export { init, logout, prefetch, getEmbedConfig as getInitConfig, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, };
22
+ export { init, logout, prefetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, };
23
23
  }
24
24
 
25
25
  declare module '@thoughtspot/visual-embed-sdk/embed/app' {
@@ -355,6 +355,10 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
355
355
  * using raw answer data.
356
356
  */
357
357
  hideResults?: boolean;
358
+ /**
359
+ * If set to true, expands all the data sources panel.
360
+ */
361
+ expandAllDataSource?: boolean;
358
362
  /**
359
363
  * If set to true, the Search Assist feature is enabled.
360
364
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -901,11 +905,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
901
905
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
902
906
  */
903
907
  contextMenuTrigger?: ContextMenuTriggerOptions;
904
- /**
905
- * flag to override openNew tab context menu link
906
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
907
- */
908
- linkOverride?: boolean;
909
908
  }
910
909
  /**
911
910
  * MessagePayload: Embed event payload: message type, data and status (start/end)
@@ -1121,12 +1120,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1121
1120
  * @hidden
1122
1121
  */
1123
1122
  EmbedIframeCenter = "EmbedIframeCenter",
1124
- /**
1125
- * Emitted when the "Get Data" button in Search Bar embed
1126
- * is clicked.
1127
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
1128
- */
1129
- GetDataClick = "getDataClick",
1130
1123
  /**
1131
1124
  * Detects the route change.
1132
1125
  */
@@ -1352,12 +1345,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1352
1345
  * - Although an array, only a single source
1353
1346
  * is supported at this time.
1354
1347
  * @param - searchQuery - The search query
1355
- * @param - execute - execute the existing / updated query
1356
1348
  * @example
1357
1349
  * searchEmbed.trigger(HostEvent.Search, {
1358
1350
  * searchQuery: "[sales] by [item type],
1359
1351
  * "dataSourceIds: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
1360
- * "execute": true
1361
1352
  * })
1362
1353
  */
1363
1354
  Search = "search",
@@ -1563,7 +1554,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1563
1554
  /**
1564
1555
  * Get TML for the current search.
1565
1556
  * @example searchEmbed.trigger(HostEvent.GetTML)
1566
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
1557
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
1567
1558
  */
1568
1559
  GetTML = "getTML",
1569
1560
  /**
@@ -1734,8 +1725,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1734
1725
  ForceSAMLAutoRedirect = "forceSAMLAutoRedirect",
1735
1726
  AuthType = "authType",
1736
1727
  IconSpriteUrl = "iconSprite",
1737
- ContextMenuTrigger = "isContextMenuEnabledOnLeftClick",
1738
- LinkOverride = "linkOverride"
1728
+ ContextMenuTrigger = "isContextMenuEnabledOnLeftClick"
1739
1729
  }
1740
1730
  /**
1741
1731
  * The list of actions that can be performed on visual ThoughtSpot
@@ -1890,55 +1880,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1890
1880
  /**
1891
1881
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1892
1882
  */
1893
- RemoveCrossFilter = "context-menu-item-remove-cross-filter",
1894
- /**
1895
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1896
- */
1897
- AxisMenuAggregate = "axisMenuAggregate",
1898
- /**
1899
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1900
- */
1901
- AxisMenuTimeBucket = "axisMenuTimeBucket",
1902
- /**
1903
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1904
- */
1905
- AxisMenuFilter = "axisMenuFilter",
1906
- /**
1907
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1908
- */
1909
- AxisMenuConditionalFormat = "axisMenuConditionalFormat",
1910
- /**
1911
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1912
- */
1913
- AxisMenuSort = "axisMenuSort",
1914
- /**
1915
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1916
- */
1917
- AxisMenuGroup = "axisMenuGroup",
1918
- /**
1919
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1920
- */
1921
- AxisMenuPosition = "axisMenuPosition",
1922
- /**
1923
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1924
- */
1925
- AxisMenuRename = "axisMenuRename",
1926
- /**
1927
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1928
- */
1929
- AxisMenuEdit = "axisMenuEdit",
1930
- /**
1931
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1932
- */
1933
- AxisMenuNumberFormat = "axisMenuNumberFormat",
1934
- /**
1935
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1936
- */
1937
- AxisMenuTextWrapping = "axisMenuTextWrapping",
1938
- /**
1939
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1940
- */
1941
- AxisMenuRemove = "axisMenuRemove"
1883
+ RemoveCrossFilter = "context-menu-item-remove-cross-filter"
1942
1884
  }
1943
1885
  export interface SessionInterface {
1944
1886
  sessionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.19.0-alpha.9",
3
+ "version": "1.19.0",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -25,6 +25,13 @@
25
25
  ]
26
26
  }
27
27
  },
28
+ "typesVersions": {
29
+ "*": {
30
+ "react": [
31
+ "./lib/src/react/index.d.ts"
32
+ ]
33
+ }
34
+ },
28
35
  "scripts": {
29
36
  "lint": "eslint 'src/**'",
30
37
  "lint:fix": "eslint 'src/**/*.*' --fix",
@@ -112,7 +119,7 @@
112
119
  "jest": "^26.6.3",
113
120
  "jest-puppeteer": "^4.4.0",
114
121
  "jsdom": "^17.0.0",
115
- "node-sass": "^4.0.0",
122
+ "node-sass": "^6.0.0",
116
123
  "prettier": "2.1.2",
117
124
  "puppeteer": "^7.0.1",
118
125
  "react": "^16.14.0",
package/src/auth.spec.ts CHANGED
@@ -45,7 +45,7 @@ export const embedConfig: any = {
45
45
  },
46
46
  doSamlAuthNoRedirect: {
47
47
  thoughtSpotHost,
48
- inPopup: true,
48
+ noRedirect: true,
49
49
  authTriggerContainer: document.body,
50
50
  authTriggerText: 'auth',
51
51
  },
package/src/auth.ts CHANGED
@@ -332,7 +332,7 @@ const doSSOAuth = async (
332
332
  }
333
333
 
334
334
  const ssoURL = `${thoughtSpotHost}${ssoEndPoint}`;
335
- if (embedConfig.inPopup) {
335
+ if (embedConfig.noRedirect || embedConfig.inPopup) {
336
336
  await samlPopupFlow(
337
337
  ssoURL,
338
338
  embedConfig.authTriggerContainer,
@@ -349,7 +349,7 @@ export const doSamlAuth = async (embedConfig: EmbedConfig) => {
349
349
  const { thoughtSpotHost } = embedConfig;
350
350
  // redirect for SSO, when the SSO authentication is done, this page will be loaded
351
351
  // again and the same JS will execute again.
352
- const ssoRedirectUrl = embedConfig.inPopup
352
+ const ssoRedirectUrl = embedConfig.noRedirect
353
353
  ? `${thoughtSpotHost}/v2/#/embed/saml-complete`
354
354
  : getRedirectUrl(
355
355
  window.location.href,
@@ -204,23 +204,6 @@ describe('Base TS Embed', () => {
204
204
  });
205
205
  }).toThrowError();
206
206
  });
207
- test('config backward compat, should assign inPopup when noRedirect is set', () => {
208
- index.init({
209
- authType: index.AuthType.None,
210
- thoughtSpotHost,
211
- noRedirect: true,
212
- });
213
- expect(base.getEmbedConfig().inPopup).toBe(true);
214
- });
215
- test('config backward compat, should not override inPopup with noRedirect', () => {
216
- index.init({
217
- authType: index.AuthType.None,
218
- thoughtSpotHost,
219
- noRedirect: true,
220
- inPopup: false,
221
- });
222
- expect(base.getEmbedConfig().inPopup).toBe(false);
223
- });
224
207
  });
225
208
 
226
209
  describe('Base without init', () => {
package/src/embed/base.ts CHANGED
@@ -123,17 +123,6 @@ function sanity(embedConfig: EmbedConfig) {
123
123
  }
124
124
  }
125
125
 
126
- function backwardCompat(embedConfig: EmbedConfig): EmbedConfig {
127
- const newConfig = { ...embedConfig };
128
- if (
129
- embedConfig.noRedirect !== undefined &&
130
- embedConfig.inPopup === undefined
131
- ) {
132
- newConfig.inPopup = embedConfig.noRedirect;
133
- }
134
- return newConfig;
135
- }
136
-
137
126
  /**
138
127
  * Initializes the Visual Embed SDK globally and perform
139
128
  * authentication if applicable.
@@ -151,7 +140,6 @@ export const init = (embedConfig: EmbedConfig): EventEmitter => {
151
140
  ...embedConfig,
152
141
  thoughtSpotHost: getThoughtSpotHost(embedConfig),
153
142
  };
154
- config = backwardCompat(config);
155
143
  const authEE = new EventEmitter();
156
144
  setAuthEE(authEE);
157
145
  handleAuth();
@@ -63,6 +63,10 @@ export interface SearchViewConfig extends ViewConfig {
63
63
  * using raw answer data.
64
64
  */
65
65
  hideResults?: boolean;
66
+ /**
67
+ * If set to true, expands all the data sources panel.
68
+ */
69
+ expandAllDataSource?: boolean;
66
70
  /**
67
71
  * If set to true, the Search Assist feature is enabled.
68
72
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -154,6 +158,7 @@ export class SearchEmbed extends TsEmbed {
154
158
  private getIFrameSrc(answerId: string, dataSources?: string[]) {
155
159
  const {
156
160
  hideResults,
161
+ expandAllDataSource,
157
162
  enableSearchAssist,
158
163
  forceTable,
159
164
  searchOptions,
@@ -666,19 +666,6 @@ describe('Unit test case for ts embed', () => {
666
666
  await appEmbed.render();
667
667
  expect(getRootEl().nextSibling).toBe(getIFrameEl());
668
668
  });
669
- it('Should remove existing embed when rerendering', async () => {
670
- const appEmbed = new AppEmbed(getRootEl(), {
671
- frameParams: {
672
- width: '100%',
673
- height: '100%',
674
- },
675
- insertAsSibling: true,
676
- });
677
- await appEmbed.render();
678
- expect(getRootEl().nextSibling).toBe(getIFrameEl());
679
- await appEmbed.render();
680
- expect(getRootEl().nextSibling.nextSibling).not.toBe(getIFrameEl());
681
- });
682
669
  xit('Sets the forceSAMLAutoRedirect param', async (done) => {
683
670
  jest.spyOn(baseInstance, 'getAuthPromise').mockResolvedValue(true);
684
671
  init({
@@ -51,7 +51,6 @@ const { version } = pkgInfo;
51
51
  * Global prefix for all Thoughtspot postHash Params.
52
52
  */
53
53
  export const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
54
- const TS_EMBED_ID = '_thoughtspot-embed';
55
54
 
56
55
  /**
57
56
  * The event id map from v2 event names to v1 event id
@@ -299,7 +298,6 @@ export class TsEmbed {
299
298
  locale,
300
299
  customizations,
301
300
  contextMenuTrigger,
302
- linkOverride,
303
301
  } = this.viewConfig;
304
302
 
305
303
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
@@ -360,9 +358,6 @@ export class TsEmbed {
360
358
  if (additionalFlags && additionalFlags.constructor.name === 'Object') {
361
359
  Object.assign(queryParams, additionalFlags);
362
360
  }
363
- if (linkOverride) {
364
- queryParams[Param.LinkOverride] = linkOverride;
365
- }
366
361
  return queryParams;
367
362
  }
368
363
 
@@ -447,7 +442,6 @@ export class TsEmbed {
447
442
  this.iFrame || document.createElement('iframe');
448
443
 
449
444
  this.iFrame.src = url;
450
- this.iFrame.id = TS_EMBED_ID;
451
445
 
452
446
  // according to screenfull.js documentation
453
447
  // allowFullscreen, webkitallowfullscreen and mozallowfullscreen must be true
@@ -525,13 +519,9 @@ export class TsEmbed {
525
519
  if (typeof child === 'string') {
526
520
  const div = document.createElement('div');
527
521
  div.innerHTML = child;
528
- div.id = TS_EMBED_ID;
529
522
  // eslint-disable-next-line no-param-reassign
530
523
  child = div;
531
524
  }
532
- if (this.el.nextElementSibling?.id === TS_EMBED_ID) {
533
- this.el.nextElementSibling.remove();
534
- }
535
525
  this.el.parentElement.insertBefore(child, this.el.nextSibling);
536
526
  } else if (typeof child === 'string') {
537
527
  this.el.innerHTML = child;
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import { AppEmbed, Page, AppViewConfig } from './embed/app';
12
- import { init, prefetch, logout, getEmbedConfig } from './embed/base';
12
+ import { init, prefetch, logout } from './embed/base';
13
13
  import {
14
14
  PinboardEmbed,
15
15
  LiveboardViewConfig,
@@ -34,7 +34,6 @@ export {
34
34
  init,
35
35
  logout,
36
36
  prefetch,
37
- getEmbedConfig as getInitConfig,
38
37
  SearchEmbed,
39
38
  SearchBarEmbed,
40
39
  PinboardEmbed,
package/src/types.ts CHANGED
@@ -251,6 +251,7 @@ export interface EmbedConfig {
251
251
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw*
252
252
  */
253
253
  suppressSearchEmbedBetaWarning?: boolean;
254
+
254
255
  /**
255
256
  * Custom style params for embed Config.
256
257
  *
@@ -377,11 +378,6 @@ export interface ViewConfig {
377
378
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
378
379
  */
379
380
  contextMenuTrigger?: ContextMenuTriggerOptions;
380
- /**
381
- * flag to override openNew tab context menu link
382
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
383
- */
384
- linkOverride?: boolean;
385
381
  }
386
382
 
387
383
  /**
@@ -616,12 +612,6 @@ export enum EmbedEvent {
616
612
  * @hidden
617
613
  */
618
614
  EmbedIframeCenter = 'EmbedIframeCenter',
619
- /**
620
- * Emitted when the "Get Data" button in Search Bar embed
621
- * is clicked.
622
- * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
623
- */
624
- GetDataClick = 'getDataClick',
625
615
  /**
626
616
  * Detects the route change.
627
617
  */
@@ -849,12 +839,10 @@ export enum HostEvent {
849
839
  * - Although an array, only a single source
850
840
  * is supported at this time.
851
841
  * @param - searchQuery - The search query
852
- * @param - execute - execute the existing / updated query
853
842
  * @example
854
843
  * searchEmbed.trigger(HostEvent.Search, {
855
844
  * searchQuery: "[sales] by [item type],
856
845
  * "dataSourceIds: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
857
- * "execute": true
858
846
  * })
859
847
  */
860
848
  Search = 'search',
@@ -1060,7 +1048,7 @@ export enum HostEvent {
1060
1048
  /**
1061
1049
  * Get TML for the current search.
1062
1050
  * @example searchEmbed.trigger(HostEvent.GetTML)
1063
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
1051
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
1064
1052
  */
1065
1053
  GetTML = 'getTML',
1066
1054
  /**
@@ -1237,7 +1225,6 @@ export enum Param {
1237
1225
  AuthType = 'authType',
1238
1226
  IconSpriteUrl = 'iconSprite',
1239
1227
  ContextMenuTrigger = 'isContextMenuEnabledOnLeftClick',
1240
- LinkOverride = 'linkOverride',
1241
1228
  }
1242
1229
 
1243
1230
  /**
@@ -1395,54 +1382,6 @@ export enum Action {
1395
1382
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1396
1383
  */
1397
1384
  RemoveCrossFilter = 'context-menu-item-remove-cross-filter',
1398
- /**
1399
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1400
- */
1401
- AxisMenuAggregate = 'axisMenuAggregate',
1402
- /**
1403
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1404
- */
1405
- AxisMenuTimeBucket = 'axisMenuTimeBucket',
1406
- /**
1407
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1408
- */
1409
- AxisMenuFilter = 'axisMenuFilter',
1410
- /**
1411
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1412
- */
1413
- AxisMenuConditionalFormat = 'axisMenuConditionalFormat',
1414
- /**
1415
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1416
- */
1417
- AxisMenuSort = 'axisMenuSort',
1418
- /**
1419
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1420
- */
1421
- AxisMenuGroup = 'axisMenuGroup',
1422
- /**
1423
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1424
- */
1425
- AxisMenuPosition = 'axisMenuPosition',
1426
- /**
1427
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1428
- */
1429
- AxisMenuRename = 'axisMenuRename',
1430
- /**
1431
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1432
- */
1433
- AxisMenuEdit = 'axisMenuEdit',
1434
- /**
1435
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1436
- */
1437
- AxisMenuNumberFormat = 'axisMenuNumberFormat',
1438
- /**
1439
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1440
- */
1441
- AxisMenuTextWrapping = 'axisMenuTextWrapping',
1442
- /**
1443
- * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1444
- */
1445
- AxisMenuRemove = 'axisMenuRemove',
1446
1385
  }
1447
1386
 
1448
1387
  export interface SessionInterface {
package/src/utils.ts CHANGED
@@ -225,10 +225,7 @@ export const deepMerge = (target: any, source: any) => {
225
225
  // eslint-disable-next-line no-restricted-syntax
226
226
  for (const key of Object.keys(source)) {
227
227
  if (source[key] instanceof Object)
228
- Object.assign(
229
- source[key],
230
- deepMerge(target[key] || {}, source[key]),
231
- );
228
+ Object.assign(source[key], deepMerge(target[key], source[key]));
232
229
  }
233
230
 
234
231
  // Join `target` and modified `source`
package/CHANGELOG.md DELETED
@@ -1,126 +0,0 @@
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
- This project follows Semantic Versioning.
5
-
6
- ## Unreleased
7
-
8
- ### New Features
9
- - Set of new Host events to drive interactions on the embed programatically
10
-
11
- ## 1.14.1 (08-31-2022)
12
- - Fixed "not logged in" message showing up on "SearchEmbed" with AuthType.None.
13
-
14
- ## 1.14.0 (08-29-2022)
15
- - [AuthType.AuthServer] Now uses `POST` call to log the user in using the bearer token.
16
- - `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
17
-
18
- ## 1.13.0 (07-19-2022)
19
- - Release to support TS version 8.5.0.cl
20
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)
21
- ## 1.12.1 (06-21-2022)
22
- ### Fixed
23
- - Search embed beta warning check for TS cloud releases
24
- ## 1.12.0 (06-21-2022)
25
- - Release to support TS version 8.4.0.cl
26
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)
27
-
28
- ## 1.11.2 (06-10-2022)
29
- ### Fixed
30
- - Typescript build that was affecting some Angular project configurations
31
-
32
- ## 1.11.1 (05-30-2022)
33
- ### Fixed
34
- - Whitelabeling - new [action](https://developers.thoughtspot.com/docs/typedoc/enums/Action.html#ReportError) for the ability to turn off TS specific error reporting by end users.
35
-
36
- ## 1.11.0 (05-20-2022)
37
- - Release to support TS version 8.3.0.cl
38
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)
39
-
40
- ## 1.10.4 (05-06-2022)
41
- ### New Features
42
- - Config option `detectCookieAccessSlow` when doing Basic|AuthServer auth. [Ref doc](https://developers.thoughtspot.com/docs/typedoc/interfaces/EmbedConfig.html#detectCookieAccessSlow)
43
-
44
- ## 1.10.3 (05-04-2022)
45
- ### Fixed
46
- - `logout` method works consistently on multiple TS releases
47
-
48
- ## 1.10.2 (05-01-2022)
49
- ### New features
50
- - Ability to configure `redirectPath` on the origin when using SSO auth. [Ref doc](https://developers.thoughtspot.com/docs/typedoc/interfaces/EmbedConfig.html#redirectPath)
51
-
52
- ## 1.10.1 (05-01-2022)
53
-
54
- ### New features
55
- - `logout` method exposed from the SDK. This can be used to log the user out. [Ref doc](https://developers.thoughtspot.com/docs/typedoc/modules.html#logout)
56
-
57
- ### Updated
58
- - When login fails the user is presented with a `Not logged in` message, which is configurable using `loginFailedMessage` property on `init`. [Ref doc](https://developers.thoughtspot.com/docs/typedoc/interfaces/EmbedConfig.html#loginFailedMessage)
59
- - `init` now returns a event emitter which can be used to listen to Login `failures` and `success`. [Ref doc](https://developers.thoughtspot.com/docs/typedoc/modules.html#init)
60
-
61
- ## 1.10.0 (04-22-2022)
62
-
63
- - Release to support TS version 8.2.0.cl
64
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)
65
-
66
- ## 1.9.5 (04-06-2022)
67
-
68
- ### New Features
69
- - `locale` param to set Locale/language for the embedded view.
70
-
71
-
72
- ## 1.9.4 (04-06-2022)
73
-
74
- ### Fixed
75
- - [React] `className` should be forwarded to the iframe container div.
76
-
77
-
78
- ## 1.9.3 (03-22-2022)
79
-
80
- ### New Features
81
- - `disableLoginRedirect` option in `EmbedConfig`
82
-
83
- ## 1.9.2 (03-17-2022)
84
-
85
- ### New Features
86
- - Ability to trigger events on React components
87
- - Added new `useEmbedRef` hook, check README for usage.
88
-
89
- ### Fixed
90
-
91
- - Typings for `on*` event handlers for React components
92
-
93
-
94
- ## 1.9.1 (03-15-2022)
95
-
96
- ### New Features
97
-
98
- - `visibleVizs` option in the `LiveboardEmbed`
99
- - `LiveboardRendered` new `EmbedEvent` emitted when a liveboard completes rendering.
100
-
101
-
102
- ## 1.9.0
103
-
104
- - Release to support TS version 8.1.0.cl
105
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)
106
-
107
-
108
- ## 1.8.1
109
-
110
- ### Bug fix
111
-
112
- - `authEndpoint` in AuthServer authentication scheme was failing because of a missing `await`.
113
-
114
- ## 1.8.0
115
-
116
- ### Breaking Changes
117
-
118
- - `autoLogin` option in `init` method is now by default `false` instead of `true`.
119
-
120
- ### New Features
121
-
122
- - `init` method now returns the `authPromise` which resolves when auth is complete.
123
-
124
- ## 1.7.0 (and earlier)
125
-
126
- - Please check the full list of changes [here](https://developers.thoughtspot.com/docs/?pageid=embed-sdk-changelog)