@thoughtspot/visual-embed-sdk 1.21.0-alpha.21 → 1.21.0-alpha.23

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 (38) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/sage-fullscreen.d.ts +3 -3
  3. package/cjs/src/embed/sage-fullscreen.d.ts.map +1 -1
  4. package/cjs/src/embed/sage-fullscreen.js.map +1 -1
  5. package/cjs/src/embed/sage.d.ts +3 -3
  6. package/cjs/src/embed/sage.d.ts.map +1 -1
  7. package/cjs/src/embed/sage.js.map +1 -1
  8. package/cjs/src/react/index.d.ts +8 -0
  9. package/cjs/src/react/index.d.ts.map +1 -1
  10. package/cjs/src/react/index.js +5 -1
  11. package/cjs/src/react/index.js.map +1 -1
  12. package/dist/src/embed/sage-fullscreen.d.ts +3 -3
  13. package/dist/src/embed/sage-fullscreen.d.ts.map +1 -1
  14. package/dist/src/embed/sage.d.ts +3 -3
  15. package/dist/src/embed/sage.d.ts.map +1 -1
  16. package/dist/src/react/index.d.ts +8 -0
  17. package/dist/src/react/index.d.ts.map +1 -1
  18. package/dist/tsembed-react.es.js +186 -32
  19. package/dist/tsembed-react.js +187 -31
  20. package/dist/tsembed.es.js +1 -1
  21. package/dist/tsembed.js +1 -1
  22. package/dist/visual-embed-sdk-react-full.d.ts +129 -123
  23. package/dist/visual-embed-sdk.d.ts +6 -6
  24. package/lib/package.json +1 -1
  25. package/lib/src/embed/sage-fullscreen.d.ts +3 -3
  26. package/lib/src/embed/sage-fullscreen.d.ts.map +1 -1
  27. package/lib/src/embed/sage-fullscreen.js.map +1 -1
  28. package/lib/src/embed/sage.d.ts +3 -3
  29. package/lib/src/embed/sage.d.ts.map +1 -1
  30. package/lib/src/embed/sage.js.map +1 -1
  31. package/lib/src/react/index.d.ts +8 -0
  32. package/lib/src/react/index.d.ts.map +1 -1
  33. package/lib/src/react/index.js +4 -0
  34. package/lib/src/react/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/embed/sage-fullscreen.ts +3 -3
  37. package/src/embed/sage.ts +3 -3
  38. package/src/react/index.tsx +18 -0
package/cjs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.21.0-alpha.21",
3
+ "version": "1.21.0-alpha.23",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -13,7 +13,7 @@ import { TsEmbed } from './ts-embed';
13
13
  *
14
14
  * @group Embed components
15
15
  */
16
- export interface SageFullscreenConfig extends ViewConfig {
16
+ export interface SageFullscreenViewConfig extends ViewConfig {
17
17
  /**
18
18
  * If set to true, the data sources panel is collapsed on load,
19
19
  * but can be expanded manually.
@@ -63,8 +63,8 @@ export declare class SageFullscreenEmbed extends TsEmbed {
63
63
  /**
64
64
  * The view configuration for the embedded ThoughtSpot sage fullscreen.
65
65
  */
66
- protected viewConfig: SageFullscreenConfig;
67
- constructor(domSelector: DOMSelector, viewConfig: SageFullscreenConfig);
66
+ protected viewConfig: SageFullscreenViewConfig;
67
+ constructor(domSelector: DOMSelector, viewConfig: SageFullscreenViewConfig);
68
68
  /**
69
69
  * Get the state of the data sources panel that the embedded
70
70
  * ThoughtSpot sage fullscreen will be initialized with.
@@ -1 +1 @@
1
- {"version":3,"file":"sage-fullscreen.d.ts","sourceRoot":"","sources":["../../../src/embed/sage-fullscreen.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEH,WAAW,EAEX,MAAM,EACN,UAAU,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACpD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC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AAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACvB,IAAA,qBAAc,GAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACvB,IACI,IAAA,iCAAyB,EACrB,IAAA,wBAAiB,GAAE,EACnB,IAAA,qBAAc,GAAE,CAAC,4BAA4B,CAChD,EACH;gBACE,KAAK,CAAC,sBAAa,CAAC,+BAA+B,CAAC,CAAC;aACxD;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3GD,kDA2GC"}
@@ -14,7 +14,7 @@ import { TsEmbed } from './ts-embed';
14
14
  *
15
15
  * @group Embed components
16
16
  */
17
- export interface NLSViewConfig extends ViewConfig {
17
+ export interface SageViewConfig extends ViewConfig {
18
18
  /**
19
19
  * If set to false, eureka results are hidden
20
20
  */
@@ -42,8 +42,8 @@ export declare class SageEmbed extends TsEmbed {
42
42
  /**
43
43
  * The view configuration for the embedded ThoughtSpot sage.
44
44
  */
45
- protected viewConfig: NLSViewConfig;
46
- constructor(domSelector: DOMSelector, viewConfig: NLSViewConfig);
45
+ protected viewConfig: SageViewConfig;
46
+ constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
47
47
  protected getEmbedParams(): string;
48
48
  /**
49
49
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC7C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,aAAa,CAAC;gBAExB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa;IAK/D,SAAS,CAAC,cAAc,IAAI,MAAM;IAgClC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,SAAS;CAiB7B"}
1
+ {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;gBAEzB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAKhE,SAAS,CAAC,cAAc,IAAI,MAAM;IAgClC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,SAAS;CAiB7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"sage.js","sourceRoot":"","sources":["../../../src/embed/sage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,CAAC;QACtB,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE,CAAC;QAE5D,OAAO,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IACzE,CAAC;IAED;;OAEG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACvB,IAAA,qBAAc,GAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YACvB,IACI,IAAA,iCAAyB,EACrB,IAAA,wBAAiB,GAAE,EACnB,IAAA,qBAAc,GAAE,CAAC,4BAA4B,CAChD,EACH;gBACE,KAAK,CAAC,sBAAa,CAAC,+BAA+B,CAAC,CAAC;aACxD;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA5ED,8BA4EC"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SearchBarViewConfig } from '../embed/search-bar';
3
+ import { SageViewConfig } from '../embed/sage';
4
+ import { SageFullscreenViewConfig } from '../embed/sage-fullscreen';
3
5
  import { SearchViewConfig } from '../embed/search';
4
6
  import { AppViewConfig } from '../embed/app';
5
7
  import { LiveboardViewConfig } from '../embed/liveboard';
@@ -73,6 +75,12 @@ interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
73
75
  * ```
74
76
  */
75
77
  export declare const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & React.RefAttributes<TsEmbed>>;
78
+ interface SageEmbedProps extends EmbedProps, SageViewConfig {
79
+ }
80
+ export declare const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
81
+ interface SageEmbedProps extends EmbedProps, SageFullscreenViewConfig {
82
+ }
83
+ export declare const SageFullscreenEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
76
84
  /**
77
85
  * Get a reference to the embed component to trigger events on the component.
78
86
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAqC,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAA+B,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAqC,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,UAAU,EAA4B,MAAM,QAAQ,CAAC;AA2D9D,UAAU,WAAY,SAAQ,UAAU,EAAE,gBAAgB;CAAG;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,6EAEvB,CAAC;AAEF,UAAU,QAAS,SAAQ,UAAU,EAAE,aAAa;CAAG;AAEvD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,0EAAyE,CAAC;AAE/F,UAAU,cAAe,SAAQ,UAAU,EAAE,mBAAmB;CAAG;AAEnE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,gFAIT,CAAC;AAEnB,eAAO,MAAM,aAAa,gFAAiB,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,UAAU,EAAE,mBAAmB;CAAG;AAExE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,qFAIT,CAAC;AAEnB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,QAAO,MAAM,gBAAgB,CAAC,OAAO,CAAgC,CAAC;AAE9F,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,IAAI,EACJ,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,E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O,MAAM,mBAAmB,gFAIT,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,QAAO,MAAM,gBAAgB,CAAC,OAAO,CAAgC,CAAC;AAE9F,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,IAAI,EACJ,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,MAAM,EACN,WAAW,GACd,MAAM,UAAU,CAAC"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Action = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.Page = exports.useEmbedRef = exports.SearchBarEmbed = exports.PinboardEmbed = exports.LiveboardEmbed = exports.AppEmbed = exports.SearchEmbed = void 0;
3
+ exports.Action = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.Page = exports.useEmbedRef = exports.SageFullscreenEmbed = exports.SageEmbed = exports.SearchBarEmbed = exports.PinboardEmbed = exports.LiveboardEmbed = exports.AppEmbed = exports.SearchEmbed = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const use_deep_compare_effect_1 = tslib_1.__importDefault(require("use-deep-compare-effect"));
7
7
  const utils_1 = require("../utils");
8
8
  const search_bar_1 = require("../embed/search-bar");
9
+ const sage_1 = require("../embed/sage");
10
+ const sage_fullscreen_1 = require("../embed/sage-fullscreen");
9
11
  const search_1 = require("../embed/search");
10
12
  const app_1 = require("../embed/app");
11
13
  const liveboard_1 = require("../embed/liveboard");
@@ -99,6 +101,8 @@ exports.PinboardEmbed = exports.LiveboardEmbed;
99
101
  * ```
100
102
  */
101
103
  exports.SearchBarEmbed = componentFactory(search_bar_1.SearchBarEmbed);
104
+ exports.SageEmbed = componentFactory(sage_1.SageEmbed);
105
+ exports.SageFullscreenEmbed = componentFactory(sage_fullscreen_1.SageFullscreenEmbed);
102
106
  /**
103
107
  * Get a reference to the embed component to trigger events on the component.
104
108
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,8FAA2D;AAC3D,oCAAqC;AACrC,oDAA6F;AAC7F,4CAAgF;AAChF,sCAAoE;AACpE,kDAA4F;AAI5F,iCAA8D;AAE9D,MAAM,gBAAgB,GAAG,CACrB,gBAAmB,EACrB,EAAE,CAAC,eAAK,CAAC,UAAU,CACjB,CAAC,KAAQ,EAAE,YAA6C,EAAE,EAAE;IACxD,MAAM,GAAG,GAAG,eAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,+BAAwB,EAGpD,UAAU,CAAC,CAAC;IAClB,IAAA,iCAAoB,EAAC,GAAG,EAAE;QACtB,MAAM,OAAO,GAAG,IAAI,gBAAgB,CAC5B,GAAI,CAAC,OAAO,EACZ,IAAA,iBAAS,EACL;YACI,eAAe,EAAE,UAAU,CAAC,eAAe;YAC3C,WAAW,EAAE;gBACT,KAAK,EAAE,UAAU,CAAC,eAAe;oBAC7B,CAAC,CAAC,SAAS,IAAI,EAAE;oBACjB,CAAC,CAAC,EAAE;aACX;SACJ,EACD,UAAU,CACb,CACR,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YACzC,OAAO,CAAC,EAAE,CACF,SAAuB,EACvB,SAAS,CAAC,SAAuB,CAAC,CACzC,CAAC;QACN,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,YAAY,EAAE;YACd,6CAA6C;YAC7C,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;SAClC;QACD,OAAO,GAAG,EAAE;Y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GAAG,EACR,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAC3B;QACR,CAAC,CAAC,sDACc,SAAS,EACrB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,GAClB,CACb,CAAC;AACN,CAAC,CACJ,CAAC;AAIF;;;;;;;;;;;;GAYG;AACU,QAAA,WAAW,GAAG,gBAAgB,CACvC,oBAAY,CACf,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACU,QAAA,QAAQ,GAAG,gBAAgB,CAA4C,cAAS,CAAC,CAAC;AAI/F;;;;;;;;;;;;;;GAcG;AACU,QAAA,cAAc,GAAG,gBAAgB,CAI5C,0BAAe,CAAC,CAAC;AAEN,QAAA,aAAa,GAAG,sBAAc,CAAC;AAI5C;;;;;;;;;;;;GAYG;AACU,QAAA,cAAc,GAAG,gBAAgB,CAI5C,2BAAe,CAAC,CAAC;AAIN,QAAA,SAAS,GAAG,gBAAgB,CAIvC,gBAAU,CAAC,CAAC;AAID,QAAA,mBAAmB,GAAG,gBAAgB,CAIjD,qCAAoB,CAAC,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,WAAW,GAAG,GAAoC,EAAE,CAAC,eAAK,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC;AAAjF,QAAA,WAAW,eAAsE;AAE9F,kCAWkB;AAPd,6FAAA,IAAI,OAAA;AAEJ,wGAAA,eAAe,OAAA;AACf,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AACT,+FAAA,MAAM,OAAA"}
@@ -13,7 +13,7 @@ import { TsEmbed } from './ts-embed';
13
13
  *
14
14
  * @group Embed components
15
15
  */
16
- export interface SageFullscreenConfig extends ViewConfig {
16
+ export interface SageFullscreenViewConfig extends ViewConfig {
17
17
  /**
18
18
  * If set to true, the data sources panel is collapsed on load,
19
19
  * but can be expanded manually.
@@ -63,8 +63,8 @@ export declare class SageFullscreenEmbed extends TsEmbed {
63
63
  /**
64
64
  * The view configuration for the embedded ThoughtSpot sage fullscreen.
65
65
  */
66
- protected viewConfig: SageFullscreenConfig;
67
- constructor(domSelector: DOMSelector, viewConfig: SageFullscreenConfig);
66
+ protected viewConfig: SageFullscreenViewConfig;
67
+ constructor(domSelector: DOMSelector, viewConfig: SageFullscreenViewConfig);
68
68
  /**
69
69
  * Get the state of the data sources panel that the embedded
70
70
  * ThoughtSpot sage fullscreen will be initialized with.
@@ -1 +1 @@
1
- {"version":3,"file":"sage-fullscreen.d.ts","sourceRoot":"","sources":["sage-fullscreen.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEH,WAAW,EAEX,MAAM,EACN,UAAU,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACpD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,+CAA+C,UAM3D,CAAC;AAEF;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,OAAO;IAC5C;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,oBAAoB,CAAC;gBAE/B,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,oBAAoB;IAKtE;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAYzB,SAAS,CAAC,cAAc,IAAI,MAAM;IA6ClC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,mBAAmB;CAkBvC"}
1
+ {"version":3,"file":"sage-fullscreen.d.ts","sourceRoot":"","sources":["sage-fullscreen.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEH,WAAW,EAEX,MAAM,EACN,UAAU,EACb,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IACxD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,+CAA+C,UAM3D,CAAC;AAEF;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,OAAO;IAC5C;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,wBAAwB,CAAC;gBAEnC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,wBAAwB;IAK1E;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAYzB,SAAS,CAAC,cAAc,IAAI,MAAM;IA6ClC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,mBAAmB;CAkBvC"}
@@ -14,7 +14,7 @@ import { TsEmbed } from './ts-embed';
14
14
  *
15
15
  * @group Embed components
16
16
  */
17
- export interface NLSViewConfig extends ViewConfig {
17
+ export interface SageViewConfig extends ViewConfig {
18
18
  /**
19
19
  * If set to false, eureka results are hidden
20
20
  */
@@ -42,8 +42,8 @@ export declare class SageEmbed extends TsEmbed {
42
42
  /**
43
43
  * The view configuration for the embedded ThoughtSpot sage.
44
44
  */
45
- protected viewConfig: NLSViewConfig;
46
- constructor(domSelector: DOMSelector, viewConfig: NLSViewConfig);
45
+ protected viewConfig: SageViewConfig;
46
+ constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
47
47
  protected getEmbedParams(): string;
48
48
  /**
49
49
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["sage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;GAIG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC7C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,aAAa,CAAC;gBAExB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa;IAK/D,SAAS,CAAC,cAAc,IAAI,MAAM;IAgClC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,SAAS;CAiB7B"}
1
+ {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["sage.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;gBAEzB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAKhE,SAAS,CAAC,cAAc,IAAI,MAAM;IAgClC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACI,MAAM,IAAI,SAAS;CAiB7B"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
2
  import { SearchBarViewConfig } from '../embed/search-bar';
3
+ import { SageViewConfig } from '../embed/sage';
4
+ import { SageFullscreenViewConfig } from '../embed/sage-fullscreen';
3
5
  import { SearchViewConfig } from '../embed/search';
4
6
  import { AppViewConfig } from '../embed/app';
5
7
  import { LiveboardViewConfig } from '../embed/liveboard';
@@ -73,6 +75,12 @@ interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
73
75
  * ```
74
76
  */
75
77
  export declare const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & React.RefAttributes<TsEmbed>>;
78
+ interface SageEmbedProps extends EmbedProps, SageViewConfig {
79
+ }
80
+ export declare const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
81
+ interface SageEmbedProps extends EmbedProps, SageFullscreenViewConfig {
82
+ }
83
+ export declare const SageFullscreenEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
76
84
  /**
77
85
  * Get a reference to the embed component to trigger events on the component.
78
86
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAqC,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAA+B,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAqC,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,UAAU,EAA4B,MAAM,QAAQ,CAAC;AA2D9D,UAAU,WAAY,SAAQ,UAAU,EAAE,gBAAgB;CAAG;AAE7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,6EAEvB,CAAC;AAEF,UAAU,QAAS,SAAQ,UAAU,EAAE,aAAa;CAAG;AAEvD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,0EAAyE,CAAC;AAE/F,UAAU,cAAe,SAAQ,UAAU,EAAE,mBAAmB;CAAG;AAEnE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,gFAIT,CAAC;AAEnB,eAAO,MAAM,aAAa,gFAAiB,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,UAAU,EAAE,mBAAmB;CAAG;AAExE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,qFAIT,CAAC;AAEnB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,QAAO,MAAM,gBAAgB,CAAC,OAAO,CAAgC,CAAC;AAE9F,OAAO,EACH,mBAAmB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,gFAIT,CAAC;AAEd,UAAU,cAAe,SAAQ,UAAU,EAAE,wBAAwB;CAAG;AAExE,eAAO,MAAM,mBAAmB,gFAIT,CAAC;AAExB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,QAAO,MAAM,gBAAgB,CAAC,OAAO,CAAgC,CAAC;AAE9F,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,IAAI,EACJ,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,MAAM,EACN,WAAW,GACd,MAAM,UAAU,CAAC"}
@@ -26662,7 +26662,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
26662
26662
  });
26663
26663
  }
26664
26664
 
26665
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.21";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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};
26665
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.23";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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};
26666
26666
 
26667
26667
  /**
26668
26668
  * Copyright (c) 2022
@@ -27428,6 +27428,188 @@ class SearchBarEmbed extends TsEmbed {
27428
27428
  }
27429
27429
  }
27430
27430
 
27431
+ /**
27432
+ * Copyright (c) 2022
27433
+ *
27434
+ * Embed ThoughtSpot Sage
27435
+ *
27436
+ * @summary TS Sage embed
27437
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27438
+ * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
27439
+ */
27440
+ const HiddenActionItemByDefaultForSageEmbed = [
27441
+ Action.Save,
27442
+ Action.Pin,
27443
+ ];
27444
+ /**
27445
+ * Embed ThoughtSpot search
27446
+ *
27447
+ * @group Embed components
27448
+ */
27449
+ class SageEmbed extends TsEmbed {
27450
+ constructor(domSelector, viewConfig) {
27451
+ super(domSelector);
27452
+ this.viewConfig = viewConfig;
27453
+ }
27454
+ getEmbedParams() {
27455
+ var _a, _b;
27456
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
27457
+ const queryParams = this.getBaseQueryParams();
27458
+ queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
27459
+ queryParams[Param.HideActions] = [
27460
+ ...((_b = queryParams[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
27461
+ ...HiddenActionItemByDefaultForSageEmbed,
27462
+ ];
27463
+ if (hideEurekaResults) {
27464
+ queryParams[Param.HideEurekaResults] = true;
27465
+ }
27466
+ if (isSageEmbed) {
27467
+ queryParams[Param.IsSageEmbed] = true;
27468
+ }
27469
+ if (disableWorksheetChange) {
27470
+ queryParams[Param.DisableWorksheetChange] = true;
27471
+ }
27472
+ if (hideWorksheetSelector) {
27473
+ queryParams[Param.HideWorksheetSelector] = true;
27474
+ }
27475
+ let query = '';
27476
+ const queryParamsString = getQueryParamString(queryParams, true);
27477
+ if (queryParamsString) {
27478
+ query = `?${queryParamsString}`;
27479
+ }
27480
+ return query;
27481
+ }
27482
+ /**
27483
+ * Construct the URL of the embedded ThoughtSpot sage to be
27484
+ * loaded in the iframe
27485
+ *
27486
+ * @returns iframe url
27487
+ */
27488
+ getIFrameSrc() {
27489
+ const path = 'eureka';
27490
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
27491
+ return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}`;
27492
+ }
27493
+ /**
27494
+ * Render the embedded ThoughtSpot Sage
27495
+ */
27496
+ render() {
27497
+ super.render();
27498
+ const src = this.getIFrameSrc();
27499
+ this.renderIFrame(src);
27500
+ getAuthPromise().then(() => {
27501
+ if (checkReleaseVersionInBeta(getReleaseVersion(), getEmbedConfig().suppressSageEmbedBetaWarning)) {
27502
+ alert(ERROR_MESSAGE.SAGE_EMBED_BETA_WARNING_MESSAGE);
27503
+ }
27504
+ });
27505
+ return this;
27506
+ }
27507
+ }
27508
+
27509
+ /**
27510
+ * Copyright (c) 2022
27511
+ *
27512
+ * Embed ThoughtSpot Sage fullscreen view
27513
+ *
27514
+ * @summary TS Sage embed
27515
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27516
+ */
27517
+ const HiddenActionItemByDefaultForSageFullscreenEmbed = [
27518
+ Action.EditACopy,
27519
+ Action.SaveAsView,
27520
+ Action.UpdateTML,
27521
+ Action.EditTML,
27522
+ Action.AnswerDelete,
27523
+ ];
27524
+ /**
27525
+ * Embed ThoughtSpot Sage
27526
+ *
27527
+ * @group Embed components
27528
+ */
27529
+ class SageFullscreenEmbed extends TsEmbed {
27530
+ constructor(domSelector, viewConfig) {
27531
+ super(domSelector);
27532
+ this.viewConfig = viewConfig;
27533
+ }
27534
+ /**
27535
+ * Get the state of the data sources panel that the embedded
27536
+ * ThoughtSpot sage fullscreen will be initialized with.
27537
+ */
27538
+ getDataSourceMode() {
27539
+ let dataSourceMode = DataSourceVisualMode.Expanded;
27540
+ if (this.viewConfig.collapseDataSources === true) {
27541
+ dataSourceMode = DataSourceVisualMode.Collapsed;
27542
+ }
27543
+ if (this.viewConfig.hideDataSources === true) {
27544
+ dataSourceMode = DataSourceVisualMode.Hidden;
27545
+ }
27546
+ return dataSourceMode;
27547
+ }
27548
+ getEmbedParams() {
27549
+ var _a;
27550
+ const { hideResults, enableSearchAssist, forceTable, runtimeFilters, dataSource, } = this.viewConfig;
27551
+ const queryParams = this.getBaseQueryParams();
27552
+ queryParams[Param.HideActions] = [
27553
+ ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
27554
+ ...HiddenActionItemByDefaultForSageFullscreenEmbed,
27555
+ ];
27556
+ /* the below parameters are not needed but
27557
+ reusing the parameters we have for saved answer page */
27558
+ if (dataSource) {
27559
+ queryParams[Param.DataSources] = `["${dataSource}"]`;
27560
+ }
27561
+ if (enableSearchAssist) {
27562
+ queryParams[Param.EnableSearchAssist] = true;
27563
+ }
27564
+ if (hideResults) {
27565
+ queryParams[Param.HideResult] = true;
27566
+ }
27567
+ if (forceTable) {
27568
+ queryParams[Param.ForceTable] = true;
27569
+ }
27570
+ queryParams[Param.DataSourceMode] = this.getDataSourceMode();
27571
+ queryParams[Param.UseLastSelectedDataSource] = false;
27572
+ queryParams[Param.searchEmbed] = true;
27573
+ let query = '';
27574
+ const queryParamsString = getQueryParamString(queryParams, true);
27575
+ if (queryParamsString) {
27576
+ query = `?${queryParamsString}`;
27577
+ }
27578
+ const filterQuery = getFilterQuery(runtimeFilters || []);
27579
+ if (filterQuery) {
27580
+ query += `&${filterQuery}`;
27581
+ }
27582
+ return query;
27583
+ }
27584
+ /**
27585
+ * Construct the URL of the embedded ThoughtSpot sage fullscreen to be
27586
+ * loaded in the iframe
27587
+ *
27588
+ * @param answerSessionId The answer session id of the ad hoc answer
27589
+ * @returns iframe url
27590
+ */
27591
+ getIFrameSrc(answerSessionId) {
27592
+ const answerPath = answerSessionId ? `ai-answer/${answerSessionId}` : 'answer';
27593
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
27594
+ return `${this.getRootIframeSrc()}/embed/${answerPath}${tsPostHashParams}`;
27595
+ }
27596
+ /**
27597
+ * Render the embedded ThoughtSpot sage fullscreen
27598
+ */
27599
+ render() {
27600
+ super.render();
27601
+ const { answerSessionId } = this.viewConfig;
27602
+ const src = this.getIFrameSrc(answerSessionId);
27603
+ this.renderIFrame(src);
27604
+ getAuthPromise().then(() => {
27605
+ if (checkReleaseVersionInBeta(getReleaseVersion(), getEmbedConfig().suppressSageEmbedBetaWarning)) {
27606
+ alert(ERROR_MESSAGE.SAGE_EMBED_BETA_WARNING_MESSAGE);
27607
+ }
27608
+ });
27609
+ return this;
27610
+ }
27611
+ }
27612
+
27431
27613
  /**
27432
27614
  * Copyright (c) 2022
27433
27615
  *
@@ -27923,36 +28105,6 @@ function getViewPropsAndListeners(props) {
27923
28105
  });
27924
28106
  }
27925
28107
 
27926
- /**
27927
- * Copyright (c) 2022
27928
- *
27929
- * Embed ThoughtSpot Sage
27930
- *
27931
- * @summary TS Sage embed
27932
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27933
- * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
27934
- */
27935
- const HiddenActionItemByDefaultForSageEmbed = [
27936
- Action.Save,
27937
- Action.Pin,
27938
- ];
27939
-
27940
- /**
27941
- * Copyright (c) 2022
27942
- *
27943
- * Embed ThoughtSpot Sage fullscreen view
27944
- *
27945
- * @summary TS Sage embed
27946
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27947
- */
27948
- const HiddenActionItemByDefaultForSageFullscreenEmbed = [
27949
- Action.EditACopy,
27950
- Action.SaveAsView,
27951
- Action.UpdateTML,
27952
- Action.EditTML,
27953
- Action.AnswerDelete,
27954
- ];
27955
-
27956
28108
  const componentFactory = (EmbedConstructor) => React.forwardRef((props, forwardedRef) => {
27957
28109
  const ref = React.useRef(null);
27958
28110
  const { className, ...embedProps } = props;
@@ -28042,6 +28194,8 @@ const PinboardEmbed = LiveboardEmbed$1;
28042
28194
  * ```
28043
28195
  */
28044
28196
  const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
28197
+ const SageEmbed$1 = componentFactory(SageEmbed);
28198
+ const SageFullscreenEmbed$1 = componentFactory(SageFullscreenEmbed);
28045
28199
  /**
28046
28200
  * Get a reference to the embed component to trigger events on the component.
28047
28201
  *
@@ -28061,4 +28215,4 @@ const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
28061
28215
  */
28062
28216
  const useEmbedRef = () => React.useRef(null);
28063
28217
 
28064
- export { Action, AppEmbed$1 as AppEmbed, EmbedEvent, HostEvent, LiveboardEmbed$1 as LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SearchBarEmbed$1 as SearchBarEmbed, SearchEmbed$1 as SearchEmbed, useEmbedRef };
28218
+ export { Action, AppEmbed$1 as AppEmbed, EmbedEvent, HostEvent, LiveboardEmbed$1 as LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SageEmbed$1 as SageEmbed, SageFullscreenEmbed$1 as SageFullscreenEmbed, SearchBarEmbed$1 as SearchBarEmbed, SearchEmbed$1 as SearchEmbed, useEmbedRef };