@thoughtspot/visual-embed-sdk 1.22.0-alpha.6 → 1.22.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/sage.d.ts +7 -10
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +5 -5
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +2 -3
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +2 -2
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.d.ts +13 -0
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +13 -0
- package/cjs/src/react/index.js.map +1 -1
- package/dist/src/embed/sage.d.ts +7 -10
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +2 -2
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +13 -0
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +19 -6
- package/dist/tsembed-react.js +19 -6
- package/dist/tsembed.es.js +6 -6
- package/dist/tsembed.js +6 -6
- package/dist/visual-embed-sdk-react-full.d.ts +21 -11
- package/dist/visual-embed-sdk-react.d.ts +21 -11
- package/dist/visual-embed-sdk.d.ts +8 -11
- package/lib/package.json +1 -1
- package/lib/src/embed/sage.d.ts +7 -10
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +5 -5
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +2 -3
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +2 -2
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.d.ts +13 -0
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +13 -0
- package/lib/src/react/index.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/sage.spec.ts +2 -3
- package/src/embed/sage.ts +12 -16
- package/src/index.ts +2 -1
- package/src/react/all-types-export.ts +2 -0
- package/src/react/index.tsx +13 -0
package/cjs/package.json
CHANGED
package/cjs/src/embed/sage.d.ts
CHANGED
|
@@ -9,19 +9,16 @@
|
|
|
9
9
|
import { Action, DOMSelector, ViewConfig } from '../types';
|
|
10
10
|
import { V1Embed } from './ts-embed';
|
|
11
11
|
/**
|
|
12
|
-
* The configuration attributes for the embedded search view.
|
|
12
|
+
* The configuration attributes for the embedded Natural language search view. Based on
|
|
13
|
+
* GPT and LLM.
|
|
13
14
|
*
|
|
14
15
|
* @group Embed components
|
|
15
16
|
*/
|
|
16
17
|
export interface SageViewConfig extends ViewConfig {
|
|
17
18
|
/**
|
|
18
|
-
* If set to
|
|
19
|
+
* If set to true, object results are shown.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* primary flag to enable eureka(/sage) page embedding.
|
|
23
|
-
*/
|
|
24
|
-
isSageEmbed?: boolean;
|
|
21
|
+
showObjectResults?: boolean;
|
|
25
22
|
/**
|
|
26
23
|
* flag to disable changing worksheet. default false.
|
|
27
24
|
*/
|
|
@@ -31,14 +28,14 @@ export interface SageViewConfig extends ViewConfig {
|
|
|
31
28
|
*/
|
|
32
29
|
hideWorksheetSelector?: boolean;
|
|
33
30
|
/**
|
|
34
|
-
* If set to true, the
|
|
31
|
+
* If set to true, the object search suggestions are not shown
|
|
35
32
|
*
|
|
36
33
|
*/
|
|
37
|
-
|
|
34
|
+
showObjectSuggestions?: boolean;
|
|
38
35
|
}
|
|
39
36
|
export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
|
|
40
37
|
/**
|
|
41
|
-
* Embed ThoughtSpot search
|
|
38
|
+
* Embed ThoughtSpot LLM and GPT based natural language search component.
|
|
42
39
|
*
|
|
43
40
|
* @group Embed components
|
|
44
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UASjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;gBAGzB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAIhE;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAuBlC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
|
package/cjs/src/embed/sage.js
CHANGED
|
@@ -23,7 +23,7 @@ exports.HiddenActionItemByDefaultForSageEmbed = [
|
|
|
23
23
|
types_1.Action.Share,
|
|
24
24
|
];
|
|
25
25
|
/**
|
|
26
|
-
* Embed ThoughtSpot search
|
|
26
|
+
* Embed ThoughtSpot LLM and GPT based natural language search component.
|
|
27
27
|
*
|
|
28
28
|
* @group Embed components
|
|
29
29
|
*/
|
|
@@ -40,14 +40,14 @@ class SageEmbed extends ts_embed_1.V1Embed {
|
|
|
40
40
|
*/
|
|
41
41
|
getEmbedParams() {
|
|
42
42
|
var _a;
|
|
43
|
-
const {
|
|
43
|
+
const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
|
|
44
44
|
const params = {};
|
|
45
45
|
params[types_1.Param.EmbedApp] = true;
|
|
46
|
-
params[types_1.Param.HideEurekaResults] =
|
|
47
|
-
params[types_1.Param.IsSageEmbed] =
|
|
46
|
+
params[types_1.Param.HideEurekaResults] = !showObjectResults;
|
|
47
|
+
params[types_1.Param.IsSageEmbed] = true;
|
|
48
48
|
params[types_1.Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
49
49
|
params[types_1.Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
50
|
-
params[types_1.Param.HideEurekaSuggestions] =
|
|
50
|
+
params[types_1.Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
51
51
|
params[types_1.Param.HideActions] = [
|
|
52
52
|
...((_a = params[types_1.Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
53
53
|
...exports.HiddenActionItemByDefaultForSageEmbed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sage.js","sourceRoot":"","sources":["../../../src/embed/s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AC,WAAW,CAAC,GAAG;YACxB,GAAG,CAAC,MAAA,MAAM,CAAC,aAAK,CAAC,WAAW,CAAC,mCAAI,EAAE,CAAC;YACpC,GAAG,6CAAqC;SAC3C,CAAC;QAEF,OAAO,IAAA,2BAAmB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACK,YAAY;QAChB,MAAM,IAAI,GAAG,QAAQ,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;;;;OAIG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnED,8BAmEC"}
|
|
@@ -5,11 +5,10 @@ const index_1 = require("../index");
|
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const test_utils_1 = require("../test/test-utils");
|
|
7
7
|
const defaultConfig = {
|
|
8
|
-
|
|
9
|
-
isSageEmbed: true,
|
|
8
|
+
showObjectResults: true,
|
|
10
9
|
disableWorksheetChange: false,
|
|
11
10
|
hideWorksheetSelector: true,
|
|
12
|
-
|
|
11
|
+
showObjectSuggestions: false,
|
|
13
12
|
};
|
|
14
13
|
const thoughtSpotHost = 'tshost';
|
|
15
14
|
beforeAll(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sage.spec.js","sourceRoot":"","sources":["../../../src/embed/sage.spec.ts"],"names":[],"mappings":";;AAAA,iCAAmD;AACnD,oCAAgC;AAChC,oCAAoC;AACpC,mDAM4B;AAE5B,MAAM,aAAa,GAAmB;IAClC,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"sage.spec.js","sourceRoot":"","sources":["../../../src/embed/sage.spec.ts"],"names":[],"mappings":";;AAAA,iCAAmD;AACnD,oCAAgC;AAChC,oCAAoC;AACpC,mDAM4B;AAE5B,MAAM,aAAa,GAAmB;IAClC,iBAAiB,EAAE,IAAI;IACvB,sBAAsB,EAAE,KAAK;IAC7B,qBAAqB,EAAE,IAAI;IAC3B,qBAAqB,EAAE,KAAK;CAC/B,CAAC;AAEF,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEjC,SAAS,CAAC,GAAG,EAAE;IACX,IAAA,YAAI,EAAC;QACD,eAAe;QACf,QAAQ,EAAE,gBAAQ,CAAC,IAAI;KAC1B,CAAC,CAAC;IACH,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC/B,UAAU,CAAC,GAAG,EAAE;QACZ,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,IAAA,4BAAe,GAAE,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,SAAS,GAAG,IAAI,gBAAS,CAAC,IAAA,sBAAS,GAAE,EAAE,aAAa,CAAC,CAAC;QAC5D,SAAS,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAA,6BAAgB,EAAC,GAAG,EAAE;YACxB,IAAA,2BAAc,EACV,IAAA,yBAAY,GAAE,EACd,UAAU,eAAe,iQAAiQ,CAC7R,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/cjs/src/index.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
|
|
|
15
15
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from './auth';
|
|
16
16
|
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions } from './types';
|
|
17
17
|
import { CustomCssVariables } from './css-variables';
|
|
18
|
-
import { SageEmbed } from './embed/sage';
|
|
19
|
-
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, };
|
|
18
|
+
import { SageEmbed, SageViewConfig } from './embed/sage';
|
|
19
|
+
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, };
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/cjs/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EACH,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAChE,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACH,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAC3E,MAAM,QAAQ,CAAC;AAChB,OAAO,EACH,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EACH,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAChE,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAA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oot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,qCAA4D;AA8CxD,yFA9CK,cAAQ,OA8CL;AAMR,qFApDe,UAAI,OAoDf;AAnDR,uCAEsB;AA+BlB,qFAhCA,WAAI,OAgCA;AAEJ,yFAlCM,eAAQ,OAkCN;AADR,uFAjCgB,aAAM,OAiChB;AAIY,8FArCM,qBAAc,OAqCP;AAF/B,2FAnCwC,iBAAU,OAmCxC;AACV,0FApCoD,gBAAS,OAoCpD;AAlCb,iDAAuF;AAuCnF,8FAvCK,yBAAa,OAuCL;AACb,+FAxCyC,0BAAc,OAwCzC;AAvClB,2CAA+D;AAoC3D,4FApCK,oBAAW,OAoCL;AAnCf,mDAAyE;AAoCrE,+FApCK,2BAAc,OAoCL;AAnClB,iCAEgB;AAsCZ,gGAvCA,sBAAe,OAuCA;AACf,2FAxCiB,iBAAU,OAwCjB;AACV,0FAzC6B,gBAAS,OAyC7B;AATT,+FAhC0D,qBAAc,OAgC1D;AA9BlB,mCAmBiB;AAwBb,yFA1CA,gBAAQ,OA0CA;AAER,gGA1CA,uBAAe,OA0CA;AACf,2FA1CA,kBAAU,OA0CA;AACV,0FA1CA,iBAAS,OA0CA;AACT,qGA1CA,4BAAoB,OA0CA;AACpB,uFA1CA,cAAM,OA0CA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,qCAA4D;AA8CxD,yFA9CK,cAAQ,OA8CL;AAMR,qFApDe,UAAI,OAoDf;AAnDR,uCAEsB;AA+BlB,qFAhCA,WAAI,OAgCA;AAEJ,yFAlCM,eAAQ,OAkCN;AADR,uFAjCgB,aAAM,OAiChB;AAIY,8FArCM,qBAAc,OAqCP;AAF/B,2FAnCwC,iBAAU,OAmCxC;AACV,0FApCoD,gBAAS,OAoCpD;AAlCb,iDAAuF;AAuCnF,8FAvCK,yBAAa,OAuCL;AACb,+FAxCyC,0BAAc,OAwCzC;AAvClB,2CAA+D;AAoC3D,4FApCK,oBAAW,OAoCL;AAnCf,mDAAyE;AAoCrE,+FApCK,2BAAc,OAoCL;AAnClB,iCAEgB;AAsCZ,gGAvCA,sBAAe,OAuCA;AACf,2FAxCiB,iBAAU,OAwCjB;AACV,0FAzC6B,gBAAS,OAyC7B;AATT,+FAhC0D,qBAAc,OAgC1D;AA9BlB,mCAmBiB;AAwBb,yFA1CA,gBAAQ,OA0CA;AAER,gGA1CA,uBAAe,OA0CA;AACf,2FA1CA,kBAAU,OA0CA;AACV,0FA1CA,iBAAS,OA0CA;AACT,qGA1CA,4BAAoB,OA0CA;AACpB,uFA1CA,cAAM,OA0CA;AAQN,iGAhDA,wBAAgB,OAgDA;AAPhB,0GAhCA,iCAAyB,OAgCA;AA7B7B,uCAAyD;AAcrD,0FAdK,gBAAS,OAcL"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SearchEmbed, LiveboardEmbed, SearchBarEmbed, AppEmbed, useEmbedRef, } from './index';
|
|
2
|
-
export { init, logout, prefetch, getInitConfig, getSessionInfo, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, } from '../index';
|
|
1
|
+
export { SearchEmbed, LiveboardEmbed, SearchBarEmbed, AppEmbed, SageEmbed, useEmbedRef, } from './index';
|
|
2
|
+
export { init, logout, prefetch, getInitConfig, getSessionInfo, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, } from '../index';
|
|
3
3
|
//# sourceMappingURL=all-types-export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,UAAU,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrefetchFeatures = exports.Action = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = exports.Page = exports.AuthEvent = exports.AuthStatus = exports.AuthFailureType = exports.PinboardEmbed = exports.getSessionInfo = exports.getInitConfig = exports.prefetch = exports.logout = exports.init = exports.useEmbedRef = exports.AppEmbed = exports.SearchBarEmbed = exports.LiveboardEmbed = exports.SearchEmbed = void 0;
|
|
3
|
+
exports.PrefetchFeatures = exports.Action = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = exports.Page = exports.AuthEvent = exports.AuthStatus = exports.AuthFailureType = exports.PinboardEmbed = exports.getSessionInfo = exports.getInitConfig = exports.prefetch = exports.logout = exports.init = exports.useEmbedRef = exports.SageEmbed = exports.AppEmbed = exports.SearchBarEmbed = exports.LiveboardEmbed = exports.SearchEmbed = void 0;
|
|
4
4
|
var index_1 = require("./index");
|
|
5
5
|
Object.defineProperty(exports, "SearchEmbed", { enumerable: true, get: function () { return index_1.SearchEmbed; } });
|
|
6
6
|
Object.defineProperty(exports, "LiveboardEmbed", { enumerable: true, get: function () { return index_1.LiveboardEmbed; } });
|
|
7
7
|
Object.defineProperty(exports, "SearchBarEmbed", { enumerable: true, get: function () { return index_1.SearchBarEmbed; } });
|
|
8
8
|
Object.defineProperty(exports, "AppEmbed", { enumerable: true, get: function () { return index_1.AppEmbed; } });
|
|
9
|
+
Object.defineProperty(exports, "SageEmbed", { enumerable: true, get: function () { return index_1.SageEmbed; } });
|
|
9
10
|
Object.defineProperty(exports, "useEmbedRef", { enumerable: true, get: function () { return index_1.useEmbedRef; } });
|
|
10
11
|
var index_2 = require("../index");
|
|
11
12
|
Object.defineProperty(exports, "init", { enumerable: true, get: function () { return index_2.init; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.js","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"all-types-export.js","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":";;;AAAA,iCAOiB;AANb,oGAAA,WAAW,OAAA;AACX,uGAAA,cAAc,OAAA;AACd,uGAAA,cAAc,OAAA;AACd,iGAAA,QAAQ,OAAA;AACR,kGAAA,SAAS,OAAA;AACT,oGAAA,WAAW,OAAA;AAGf,kCAoCkB;AAnCd,6FAAA,IAAI,OAAA;AACJ,+FAAA,MAAM,OAAA;AACN,iGAAA,QAAQ,OAAA;AACR,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,sGAAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA;AACf,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AAET,QAAQ;AACR,6FAAA,IAAI,OAAA;AACJ,iGAAA,QAAQ,OAAA;AAER,wGAAA,eAAe,OAAA;AACf,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AACT,6GAAA,oBAAoB,OAAA;AACpB,+FAAA,MAAM,OAAA;AAON,yGAAA,gBAAgB,OAAA"}
|
package/cjs/src/react/index.d.ts
CHANGED
|
@@ -76,6 +76,19 @@ interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
|
|
|
76
76
|
export declare const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & React.RefAttributes<TsEmbed>>;
|
|
77
77
|
interface SageEmbedProps extends EmbedProps, SageViewConfig {
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* React component for LLM based search Sage embed.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* function Sage() {
|
|
85
|
+
* return <SageEmbed
|
|
86
|
+
* showObjectResults={true}
|
|
87
|
+
* ... other view config props or event listeners.
|
|
88
|
+
* />
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
79
92
|
export declare const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
|
|
80
93
|
/**
|
|
81
94
|
* Get a reference to the embed component to trigger events on the component.
|
|
@@ -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,EAA2B,cAAc,EAAE,MAAM,eAAe,CAAC;AACxE,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;;;;;;;;;;;;;;GAc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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,UAAU,cAAe,SAAQ,UAAU,EAAE,cAAc;CAAG;AAE9D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,gFAIT,CAAC;AAEd;;;;;;;;;;;;;;;;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"}
|
package/cjs/src/react/index.js
CHANGED
|
@@ -100,6 +100,19 @@ exports.PinboardEmbed = exports.LiveboardEmbed;
|
|
|
100
100
|
* ```
|
|
101
101
|
*/
|
|
102
102
|
exports.SearchBarEmbed = componentFactory(search_bar_1.SearchBarEmbed);
|
|
103
|
+
/**
|
|
104
|
+
* React component for LLM based search Sage embed.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```tsx
|
|
108
|
+
* function Sage() {
|
|
109
|
+
* return <SageEmbed
|
|
110
|
+
* showObjectResults={true}
|
|
111
|
+
* ... other view config props or event listeners.
|
|
112
|
+
* />
|
|
113
|
+
* }
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
103
116
|
exports.SageEmbed = componentFactory(sage_1.SageEmbed);
|
|
104
117
|
/**
|
|
105
118
|
* Get a reference to the embed component to trigger events on the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{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,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;AAInB;;;;;;;;;;;;GAYG;AACU,QAAA,SAAS,GAAG,gBAAgB,CAIvC,gBAAU,CAAC,CAAC;AAEd;;;;;;;;;;;;;;;;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"}
|
package/dist/src/embed/sage.d.ts
CHANGED
|
@@ -9,19 +9,16 @@
|
|
|
9
9
|
import { Action, DOMSelector, ViewConfig } from '../types';
|
|
10
10
|
import { V1Embed } from './ts-embed';
|
|
11
11
|
/**
|
|
12
|
-
* The configuration attributes for the embedded search view.
|
|
12
|
+
* The configuration attributes for the embedded Natural language search view. Based on
|
|
13
|
+
* GPT and LLM.
|
|
13
14
|
*
|
|
14
15
|
* @group Embed components
|
|
15
16
|
*/
|
|
16
17
|
export interface SageViewConfig extends ViewConfig {
|
|
17
18
|
/**
|
|
18
|
-
* If set to
|
|
19
|
+
* If set to true, object results are shown.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* primary flag to enable eureka(/sage) page embedding.
|
|
23
|
-
*/
|
|
24
|
-
isSageEmbed?: boolean;
|
|
21
|
+
showObjectResults?: boolean;
|
|
25
22
|
/**
|
|
26
23
|
* flag to disable changing worksheet. default false.
|
|
27
24
|
*/
|
|
@@ -31,14 +28,14 @@ export interface SageViewConfig extends ViewConfig {
|
|
|
31
28
|
*/
|
|
32
29
|
hideWorksheetSelector?: boolean;
|
|
33
30
|
/**
|
|
34
|
-
* If set to true, the
|
|
31
|
+
* If set to true, the object search suggestions are not shown
|
|
35
32
|
*
|
|
36
33
|
*/
|
|
37
|
-
|
|
34
|
+
showObjectSuggestions?: boolean;
|
|
38
35
|
}
|
|
39
36
|
export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
|
|
40
37
|
/**
|
|
41
|
-
* Embed ThoughtSpot search
|
|
38
|
+
* Embed ThoughtSpot LLM and GPT based natural language search component.
|
|
42
39
|
*
|
|
43
40
|
* @group Embed components
|
|
44
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAS,UAAU,EACzC,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,eAAO,MAAM,qCAAqC,UASjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;gBAGzB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAIhE;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAuBlC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
|
|
|
15
15
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from './auth';
|
|
16
16
|
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions } from './types';
|
|
17
17
|
import { CustomCssVariables } from './css-variables';
|
|
18
|
-
import { SageEmbed } from './embed/sage';
|
|
19
|
-
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, };
|
|
18
|
+
import { SageEmbed, SageViewConfig } from './embed/sage';
|
|
19
|
+
export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, };
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EACH,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAChE,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EACH,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAC3E,MAAM,QAAQ,CAAC;AAChB,OAAO,EACH,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBA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I,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACrB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SearchEmbed, LiveboardEmbed, SearchBarEmbed, AppEmbed, useEmbedRef, } from './index';
|
|
2
|
-
export { init, logout, prefetch, getInitConfig, getSessionInfo, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, } from '../index';
|
|
1
|
+
export { SearchEmbed, LiveboardEmbed, SearchBarEmbed, AppEmbed, SageEmbed, useEmbedRef, } from './index';
|
|
2
|
+
export { init, logout, prefetch, getInitConfig, getSessionInfo, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, } from '../index';
|
|
3
3
|
//# sourceMappingURL=all-types-export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,GACd,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACrB,MAAM,UAAU,CAAC"}
|
|
@@ -76,6 +76,19 @@ interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
|
|
|
76
76
|
export declare const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & React.RefAttributes<TsEmbed>>;
|
|
77
77
|
interface SageEmbedProps extends EmbedProps, SageViewConfig {
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* React component for LLM based search Sage embed.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* function Sage() {
|
|
85
|
+
* return <SageEmbed
|
|
86
|
+
* showObjectResults={true}
|
|
87
|
+
* ... other view config props or event listeners.
|
|
88
|
+
* />
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
79
92
|
export declare const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
|
|
80
93
|
/**
|
|
81
94
|
* Get a reference to the embed component to trigger events on the component.
|
|
@@ -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,EAA2B,cAAc,EAAE,MAAM,eAAe,CAAC;AACxE,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;CAA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;;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,UAAU,cAAe,SAAQ,UAAU,EAAE,cAAc;CAAG;AAE9D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,gFAIT,CAAC;AAEd;;;;;;;;;;;;;;;;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"}
|
package/dist/tsembed-react.es.js
CHANGED
|
@@ -26676,7 +26676,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
26676
26676
|
});
|
|
26677
26677
|
}
|
|
26678
26678
|
|
|
26679
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.22.0-alpha.
|
|
26679
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.22.0-alpha.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts && npm run bundle-dts-react && 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",tslib:"^2.5.3","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","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",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};
|
|
26680
26680
|
|
|
26681
26681
|
/**
|
|
26682
26682
|
* Copyright (c) 2022
|
|
@@ -27472,7 +27472,7 @@ const HiddenActionItemByDefaultForSageEmbed = [
|
|
|
27472
27472
|
Action.Share,
|
|
27473
27473
|
];
|
|
27474
27474
|
/**
|
|
27475
|
-
* Embed ThoughtSpot search
|
|
27475
|
+
* Embed ThoughtSpot LLM and GPT based natural language search component.
|
|
27476
27476
|
*
|
|
27477
27477
|
* @group Embed components
|
|
27478
27478
|
*/
|
|
@@ -27489,14 +27489,14 @@ class SageEmbed extends V1Embed {
|
|
|
27489
27489
|
*/
|
|
27490
27490
|
getEmbedParams() {
|
|
27491
27491
|
var _a;
|
|
27492
|
-
const {
|
|
27492
|
+
const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
|
|
27493
27493
|
const params = {};
|
|
27494
27494
|
params[Param.EmbedApp] = true;
|
|
27495
|
-
params[Param.HideEurekaResults] =
|
|
27496
|
-
params[Param.IsSageEmbed] =
|
|
27495
|
+
params[Param.HideEurekaResults] = !showObjectResults;
|
|
27496
|
+
params[Param.IsSageEmbed] = true;
|
|
27497
27497
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
27498
27498
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
27499
|
-
params[Param.HideEurekaSuggestions] =
|
|
27499
|
+
params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
27500
27500
|
params[Param.HideActions] = [
|
|
27501
27501
|
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
27502
27502
|
...HiddenActionItemByDefaultForSageEmbed,
|
|
@@ -28111,6 +28111,19 @@ const PinboardEmbed = LiveboardEmbed$1;
|
|
|
28111
28111
|
* ```
|
|
28112
28112
|
*/
|
|
28113
28113
|
const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
|
|
28114
|
+
/**
|
|
28115
|
+
* React component for LLM based search Sage embed.
|
|
28116
|
+
*
|
|
28117
|
+
* @example
|
|
28118
|
+
* ```tsx
|
|
28119
|
+
* function Sage() {
|
|
28120
|
+
* return <SageEmbed
|
|
28121
|
+
* showObjectResults={true}
|
|
28122
|
+
* ... other view config props or event listeners.
|
|
28123
|
+
* />
|
|
28124
|
+
* }
|
|
28125
|
+
* ```
|
|
28126
|
+
*/
|
|
28114
28127
|
const SageEmbed$1 = componentFactory(SageEmbed);
|
|
28115
28128
|
/**
|
|
28116
28129
|
* Get a reference to the embed component to trigger events on the component.
|
package/dist/tsembed-react.js
CHANGED
|
@@ -26614,7 +26614,7 @@
|
|
|
26614
26614
|
});
|
|
26615
26615
|
}
|
|
26616
26616
|
|
|
26617
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.22.0-alpha.
|
|
26617
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.22.0-alpha.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",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","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts && npm run bundle-dts-react && 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",tslib:"^2.5.3","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","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
26618
26618
|
|
|
26619
26619
|
/**
|
|
26620
26620
|
* Copyright (c) 2022
|
|
@@ -27410,7 +27410,7 @@
|
|
|
27410
27410
|
exports.Action.Share,
|
|
27411
27411
|
];
|
|
27412
27412
|
/**
|
|
27413
|
-
* Embed ThoughtSpot search
|
|
27413
|
+
* Embed ThoughtSpot LLM and GPT based natural language search component.
|
|
27414
27414
|
*
|
|
27415
27415
|
* @group Embed components
|
|
27416
27416
|
*/
|
|
@@ -27427,14 +27427,14 @@
|
|
|
27427
27427
|
*/
|
|
27428
27428
|
getEmbedParams() {
|
|
27429
27429
|
var _a;
|
|
27430
|
-
const {
|
|
27430
|
+
const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, } = this.viewConfig;
|
|
27431
27431
|
const params = {};
|
|
27432
27432
|
params[Param.EmbedApp] = true;
|
|
27433
|
-
params[Param.HideEurekaResults] =
|
|
27434
|
-
params[Param.IsSageEmbed] =
|
|
27433
|
+
params[Param.HideEurekaResults] = !showObjectResults;
|
|
27434
|
+
params[Param.IsSageEmbed] = true;
|
|
27435
27435
|
params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
|
|
27436
27436
|
params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
|
|
27437
|
-
params[Param.HideEurekaSuggestions] =
|
|
27437
|
+
params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
|
|
27438
27438
|
params[Param.HideActions] = [
|
|
27439
27439
|
...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
27440
27440
|
...HiddenActionItemByDefaultForSageEmbed,
|
|
@@ -28044,6 +28044,19 @@
|
|
|
28044
28044
|
* ```
|
|
28045
28045
|
*/
|
|
28046
28046
|
const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
|
|
28047
|
+
/**
|
|
28048
|
+
* React component for LLM based search Sage embed.
|
|
28049
|
+
*
|
|
28050
|
+
* @example
|
|
28051
|
+
* ```tsx
|
|
28052
|
+
* function Sage() {
|
|
28053
|
+
* return <SageEmbed
|
|
28054
|
+
* showObjectResults={true}
|
|
28055
|
+
* ... other view config props or event listeners.
|
|
28056
|
+
* />
|
|
28057
|
+
* }
|
|
28058
|
+
* ```
|
|
28059
|
+
*/
|
|
28047
28060
|
const SageEmbed$1 = componentFactory(SageEmbed);
|
|
28048
28061
|
/**
|
|
28049
28062
|
* Get a reference to the embed component to trigger events on the component.
|