@thoughtspot/visual-embed-sdk 1.18.0 → 1.19.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -8
- package/README.md +1 -1
- package/dist/src/embed/search-bar.d.ts +7 -0
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +7 -4
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +31 -4
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed.es.js +43 -11
- package/dist/tsembed.js +43 -11
- package/lib/package.json +1 -8
- package/lib/src/embed/search-bar.d.ts +7 -0
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +6 -4
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +7 -4
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +4 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +16 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +5 -3
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +19 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +31 -4
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +27 -2
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +45 -8
- package/package.json +1 -8
- package/src/embed/search-bar.tsx +13 -4
- package/src/embed/search.spec.ts +19 -0
- package/src/embed/search.ts +11 -5
- package/src/embed/ts-embed.spec.ts +21 -1
- package/src/embed/ts-embed.ts +10 -3
- package/src/types.ts +30 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,14 +6,14 @@ This project follows Semantic Versioning.
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
8
|
### New Features
|
|
9
|
-
- Set of new Host events to drive interactions on the embed programatically
|
|
9
|
+
- Set of new Host events to drive interactions on the embed programatically
|
|
10
10
|
|
|
11
11
|
## 1.14.1 (08-31-2022)
|
|
12
12
|
- Fixed "not logged in" message showing up on "SearchEmbed" with AuthType.None.
|
|
13
13
|
|
|
14
14
|
## 1.14.0 (08-29-2022)
|
|
15
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.
|
|
16
|
+
- `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
|
|
17
17
|
|
|
18
18
|
## 1.13.0 (07-19-2022)
|
|
19
19
|
- Release to support TS version 8.5.0.cl
|
|
@@ -29,10 +29,6 @@ This project follows Semantic Versioning.
|
|
|
29
29
|
### Fixed
|
|
30
30
|
- Typescript build that was affecting some Angular project configurations
|
|
31
31
|
|
|
32
|
-
## 1.11.2 (06-10-2022)
|
|
33
|
-
### Fixed
|
|
34
|
-
- Typescript build that was affecting some Angular project configurations
|
|
35
|
-
|
|
36
32
|
## 1.11.1 (05-30-2022)
|
|
37
33
|
### Fixed
|
|
38
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.
|
|
@@ -81,12 +77,12 @@ This project follows Semantic Versioning.
|
|
|
81
77
|
|
|
82
78
|
## 1.9.3 (03-22-2022)
|
|
83
79
|
|
|
84
|
-
### New Features
|
|
80
|
+
### New Features
|
|
85
81
|
- `disableLoginRedirect` option in `EmbedConfig`
|
|
86
82
|
|
|
87
83
|
## 1.9.2 (03-17-2022)
|
|
88
84
|
|
|
89
|
-
### New Features
|
|
85
|
+
### New Features
|
|
90
86
|
- Ability to trigger events on React components
|
|
91
87
|
- Added new `useEmbedRef` hook, check README for usage.
|
|
92
88
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# ThoughtSpot Visual Embed SDK <br/> [](https://coveralls.io/github/ts-blink/embed-sdk?branch=main)  [](https://www.jsdelivr.com/package/npm/@thoughtspot/visual-embed-sdk)  [](https://openbase.com/js/@thoughtspot/visual-embed-sdk?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) 
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
SDK to embed ThoughtSpot into your web apps. You need
|
|
10
|
+
SDK to embed ThoughtSpot into your web apps. You need a ThoughtSpot account to use the SDK, [click here](https://www.thoughtspot.com/trial?tsref=trialtse) to start a trial.
|
|
11
11
|
|
|
12
12
|
* [Installation](#installation)
|
|
13
13
|
* [Live Playground](#live-playground)
|
|
@@ -4,8 +4,15 @@ import { SearchOptions } from './search';
|
|
|
4
4
|
export interface SearchBarViewConfig extends Omit<ViewConfig, 'disabledActions' | 'hiddenActions' | 'visibleActions' | 'disabledActionReason' | 'runtimeFilters' | 'showAlerts'> {
|
|
5
5
|
/**
|
|
6
6
|
* The array of data source GUIDs to set on load.
|
|
7
|
+
* Only a single dataSource supported currently.
|
|
8
|
+
* @deprecated Use dataSource instead
|
|
7
9
|
*/
|
|
8
10
|
dataSources?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* The array of data source GUIDs to set on load.
|
|
13
|
+
* @version: SDK: 1.19.0
|
|
14
|
+
*/
|
|
15
|
+
dataSource?: string;
|
|
9
16
|
/**
|
|
10
17
|
* Configuration for search options
|
|
11
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["search-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,UAAU,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,mBACb,SAAQ,IAAI,CACR,UAAU,EACR,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,CACjB;IACD
|
|
1
|
+
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["search-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,UAAU,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,mBACb,SAAQ,IAAI,CACR,UAAU,EACR,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,CACjB;IACD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,OAAO;IACvC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,mBAAmB,CAAC;gBAE9B,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB;IAKhE;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAqCpB;;OAEG;IACI,MAAM,IAAI,cAAc;CAOlC"}
|
|
@@ -44,10 +44,6 @@ export interface SearchViewConfig extends ViewConfig {
|
|
|
44
44
|
* using raw answer data.
|
|
45
45
|
*/
|
|
46
46
|
hideResults?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* If set to true, expands all the data sources panel.
|
|
49
|
-
*/
|
|
50
|
-
expandAllDataSource?: boolean;
|
|
51
47
|
/**
|
|
52
48
|
* If set to true, the Search Assist feature is enabled.
|
|
53
49
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
@@ -60,8 +56,15 @@ export interface SearchViewConfig extends ViewConfig {
|
|
|
60
56
|
forceTable?: boolean;
|
|
61
57
|
/**
|
|
62
58
|
* The array of data source GUIDs to set on load.
|
|
59
|
+
* Only a single dataSource supported currently.
|
|
60
|
+
* @deprecated Use dataSource instead
|
|
63
61
|
*/
|
|
64
62
|
dataSources?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* The array of data source GUIDs to set on load.
|
|
65
|
+
* @version: SDK: 1.19.0
|
|
66
|
+
*/
|
|
67
|
+
dataSource?: string;
|
|
65
68
|
/**
|
|
66
69
|
* The initial search query to load the answer with.
|
|
67
70
|
* @deprecated Use {@link searchOptions} instead
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEH,WAAW,EAEX,MAAM,EACN,UAAU,EAEb,MAAM,UAAU,CAAC;AAMlB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEH,WAAW,EAEX,MAAM,EACN,UAAU,EAEb,MAAM,UAAU,CAAC;AAMlB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,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AI,MAAM;CAsB/C;AAED;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,OAAO;IAChC,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;gBAErB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU;IAK5D;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG;IAKxC,EAAE,CACL,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,cAAiC,GAC3C,OAAO,OAAO,CAAC,SAAS;CAK9B"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -87,8 +87,10 @@ interface CustomStyles {
|
|
|
87
87
|
export interface CustomisationsInterface {
|
|
88
88
|
style?: CustomStyles;
|
|
89
89
|
content?: {
|
|
90
|
-
|
|
90
|
+
strings?: Record<string, any>;
|
|
91
|
+
[key: string]: any;
|
|
91
92
|
};
|
|
93
|
+
iconSpriteUrl?: string;
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* The configuration object for embedding ThoughtSpot content.
|
|
@@ -771,7 +773,9 @@ export declare enum EmbedEvent {
|
|
|
771
773
|
export declare enum HostEvent {
|
|
772
774
|
/**
|
|
773
775
|
* Trigger a search
|
|
774
|
-
* @param - dataSourceIds - The
|
|
776
|
+
* @param - dataSourceIds - The data source GUID to Search on
|
|
777
|
+
* - Although an array, only a single source
|
|
778
|
+
* is supported at this time.
|
|
775
779
|
* @param - searchQuery - The search query
|
|
776
780
|
* @example
|
|
777
781
|
* searchEmbed.trigger(HostEvent.Search, {
|
|
@@ -832,6 +836,28 @@ export declare enum HostEvent {
|
|
|
832
836
|
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
|
|
833
837
|
*/
|
|
834
838
|
Navigate = "Navigate",
|
|
839
|
+
/**
|
|
840
|
+
* Opens the filter panel for a particular column.
|
|
841
|
+
* Works with Search embed.
|
|
842
|
+
* @param - { columnId: string, name: string, type: INT64/CHAR/DATE, dataType: ATTRIBUTE/MEASURE }
|
|
843
|
+
* @example searchEmbed.trigger(HostEvent.OpenFilter, { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
|
|
844
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
845
|
+
*/
|
|
846
|
+
OpenFilter = "openFilter",
|
|
847
|
+
/**
|
|
848
|
+
* Adds the columns to the current Search.
|
|
849
|
+
* @param - { columnIds: string[] }
|
|
850
|
+
* @example searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
|
|
851
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
852
|
+
*/
|
|
853
|
+
AddColumns = "addColumns",
|
|
854
|
+
/**
|
|
855
|
+
* Removes a column from the current Search.
|
|
856
|
+
* @param - { columnId: string }
|
|
857
|
+
* @example - searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
|
|
858
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
859
|
+
*/
|
|
860
|
+
RemoveColumn = "removeColumn",
|
|
835
861
|
/**
|
|
836
862
|
* Gets the current pinboard content.
|
|
837
863
|
* @example liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
|
|
@@ -960,7 +986,7 @@ export declare enum HostEvent {
|
|
|
960
986
|
/**
|
|
961
987
|
* Get TML for the current search.
|
|
962
988
|
* @example searchEmbed.trigger(HostEvent.GetTML)
|
|
963
|
-
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
989
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
964
990
|
*/
|
|
965
991
|
GetTML = "getTML",
|
|
966
992
|
/**
|
|
@@ -1122,7 +1148,8 @@ export declare enum Param {
|
|
|
1122
1148
|
Locale = "locale",
|
|
1123
1149
|
CustomStyle = "customStyle",
|
|
1124
1150
|
ForceSAMLAutoRedirect = "forceSAMLAutoRedirect",
|
|
1125
|
-
AuthType = "authType"
|
|
1151
|
+
AuthType = "authType",
|
|
1152
|
+
IconSpriteUrl = "iconSprite"
|
|
1126
1153
|
}
|
|
1127
1154
|
/**
|
|
1128
1155
|
* The list of actions that can be performed on visual ThoughtSpot
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AAEH,oBAAY,QAAQ;IAChB;;OAEG;IACH,IAAI,SAAS;IACb;;;;OAIG;IACH,WAAW,gBAAgB;IAC3B;;;;OAIG;IACH,GAAG,aAAa;IAChB;;;;OAIG;IACH,IAAI,aAAa;IACjB;;;OAGG;IACH,YAAY,aAAa;IACzB;;;;OAIG;IACH,IAAI,aAAa;IACjB;;;OAGG;IACH,YAAY,aAAa;IACzB;;;;OAIG;IACH,UAAU,eAAe;IACzB;;;;OAIG;IACH,gBAAgB,eAAe;IAC/B;;;;;OAKG;IACH,KAAK,UAAU;CAClB;AAED,oBAAY,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/C,UAAU,kBAAkB;IACxB,SAAS,CAAC,EAAE;QACR,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;KAClC,CAAC;IAEF,cAAc,CAAC,EAAE;QACb,CAAC,QAAQ,EAAE,MAAM,GAAG;YAChB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;SACjC,CAAC;KACL,CAAC;CACL;AACD,UAAU,YAAY;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAClC;AACD,MAAM,WAAW,uBAAuB;IACpC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"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MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,GAAG,CAAC;CAC1D;AAED,oBAAY,gBAAgB;IACxB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;CACxB"}
|
package/dist/tsembed.es.js
CHANGED
|
@@ -625,7 +625,9 @@ var HostEvent;
|
|
|
625
625
|
(function (HostEvent) {
|
|
626
626
|
/**
|
|
627
627
|
* Trigger a search
|
|
628
|
-
* @param - dataSourceIds - The
|
|
628
|
+
* @param - dataSourceIds - The data source GUID to Search on
|
|
629
|
+
* - Although an array, only a single source
|
|
630
|
+
* is supported at this time.
|
|
629
631
|
* @param - searchQuery - The search query
|
|
630
632
|
* @example
|
|
631
633
|
* searchEmbed.trigger(HostEvent.Search, {
|
|
@@ -686,6 +688,28 @@ var HostEvent;
|
|
|
686
688
|
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
|
|
687
689
|
*/
|
|
688
690
|
HostEvent["Navigate"] = "Navigate";
|
|
691
|
+
/**
|
|
692
|
+
* Opens the filter panel for a particular column.
|
|
693
|
+
* Works with Search embed.
|
|
694
|
+
* @param - { columnId: string, name: string, type: INT64/CHAR/DATE, dataType: ATTRIBUTE/MEASURE }
|
|
695
|
+
* @example searchEmbed.trigger(HostEvent.OpenFilter, { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
|
|
696
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
697
|
+
*/
|
|
698
|
+
HostEvent["OpenFilter"] = "openFilter";
|
|
699
|
+
/**
|
|
700
|
+
* Adds the columns to the current Search.
|
|
701
|
+
* @param - { columnIds: string[] }
|
|
702
|
+
* @example searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
|
|
703
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
704
|
+
*/
|
|
705
|
+
HostEvent["AddColumns"] = "addColumns";
|
|
706
|
+
/**
|
|
707
|
+
* Removes a column from the current Search.
|
|
708
|
+
* @param - { columnId: string }
|
|
709
|
+
* @example - searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
|
|
710
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
711
|
+
*/
|
|
712
|
+
HostEvent["RemoveColumn"] = "removeColumn";
|
|
689
713
|
/**
|
|
690
714
|
* Gets the current pinboard content.
|
|
691
715
|
* @example liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
|
|
@@ -814,7 +838,7 @@ var HostEvent;
|
|
|
814
838
|
/**
|
|
815
839
|
* Get TML for the current search.
|
|
816
840
|
* @example searchEmbed.trigger(HostEvent.GetTML)
|
|
817
|
-
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
841
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
818
842
|
*/
|
|
819
843
|
HostEvent["GetTML"] = "getTML";
|
|
820
844
|
/**
|
|
@@ -982,6 +1006,7 @@ var Param;
|
|
|
982
1006
|
Param["ForceSAMLAutoRedirect"] = "forceSAMLAutoRedirect";
|
|
983
1007
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
984
1008
|
Param["AuthType"] = "authType";
|
|
1009
|
+
Param["IconSpriteUrl"] = "iconSprite";
|
|
985
1010
|
})(Param || (Param = {}));
|
|
986
1011
|
/**
|
|
987
1012
|
* The list of actions that can be performed on visual ThoughtSpot
|
|
@@ -9384,7 +9409,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
9384
9409
|
});
|
|
9385
9410
|
}
|
|
9386
9411
|
|
|
9387
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
9412
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.19.0-alpha.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":{"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 @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --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 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",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","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","@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":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.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};
|
|
9388
9413
|
|
|
9389
9414
|
/**
|
|
9390
9415
|
* Copyright (c) 2022
|
|
@@ -9405,9 +9430,7 @@ const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
|
9405
9430
|
* We cannot rename v1 event types to maintain backward compatibility
|
|
9406
9431
|
* @internal
|
|
9407
9432
|
*/
|
|
9408
|
-
const V1EventMap = {
|
|
9409
|
-
[EmbedEvent.Data]: [EmbedEvent.V1Data],
|
|
9410
|
-
};
|
|
9433
|
+
const V1EventMap = {};
|
|
9411
9434
|
/**
|
|
9412
9435
|
* Base class for embedding v2 experience
|
|
9413
9436
|
* Note: the v2 version of ThoughtSpot Blink is built on the new stack:
|
|
@@ -9587,6 +9610,10 @@ class TsEmbed {
|
|
|
9587
9610
|
if (Array.isArray(visibleActions)) {
|
|
9588
9611
|
queryParams[Param.VisibleActions] = visibleActions;
|
|
9589
9612
|
}
|
|
9613
|
+
const spriteUrl = customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl;
|
|
9614
|
+
if (spriteUrl) {
|
|
9615
|
+
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
9616
|
+
}
|
|
9590
9617
|
if (showAlerts !== undefined) {
|
|
9591
9618
|
queryParams[Param.ShowAlerts] = showAlerts;
|
|
9592
9619
|
}
|
|
@@ -10248,7 +10275,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
10248
10275
|
*/
|
|
10249
10276
|
getIFrameSrc(answerId, dataSources) {
|
|
10250
10277
|
var _a;
|
|
10251
|
-
const { hideResults,
|
|
10278
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, } = this.viewConfig;
|
|
10252
10279
|
const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
|
|
10253
10280
|
const queryParams = this.getBaseQueryParams();
|
|
10254
10281
|
queryParams[Param.HideActions] = [
|
|
@@ -10258,6 +10285,9 @@ class SearchEmbed extends TsEmbed {
|
|
|
10258
10285
|
if (dataSources && dataSources.length) {
|
|
10259
10286
|
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
10260
10287
|
}
|
|
10288
|
+
if (dataSource) {
|
|
10289
|
+
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
10290
|
+
}
|
|
10261
10291
|
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
10262
10292
|
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
10263
10293
|
if (searchOptions.executeSearch) {
|
|
@@ -10321,9 +10351,9 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
10321
10351
|
* loaded in the iframe
|
|
10322
10352
|
* @param dataSources A list of data source GUIDs
|
|
10323
10353
|
*/
|
|
10324
|
-
getIFrameSrc(
|
|
10354
|
+
getIFrameSrc() {
|
|
10325
10355
|
var _a;
|
|
10326
|
-
const { searchOptions } = this.viewConfig;
|
|
10356
|
+
const { searchOptions, dataSource, dataSources } = this.viewConfig;
|
|
10327
10357
|
const path = 'search-bar-embed';
|
|
10328
10358
|
const queryParams = this.getBaseQueryParams();
|
|
10329
10359
|
queryParams[Param.HideActions] = [
|
|
@@ -10332,6 +10362,9 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
10332
10362
|
if (dataSources && dataSources.length) {
|
|
10333
10363
|
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
10334
10364
|
}
|
|
10365
|
+
if (dataSource) {
|
|
10366
|
+
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
10367
|
+
}
|
|
10335
10368
|
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
10336
10369
|
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
10337
10370
|
if (searchOptions.executeSearch) {
|
|
@@ -10353,8 +10386,7 @@ class SearchBarEmbed extends TsEmbed {
|
|
|
10353
10386
|
*/
|
|
10354
10387
|
render() {
|
|
10355
10388
|
super.render();
|
|
10356
|
-
const
|
|
10357
|
-
const src = this.getIFrameSrc(dataSources);
|
|
10389
|
+
const src = this.getIFrameSrc();
|
|
10358
10390
|
this.renderIFrame(src, this.viewConfig.frameParams);
|
|
10359
10391
|
return this;
|
|
10360
10392
|
}
|
package/dist/tsembed.js
CHANGED
|
@@ -606,7 +606,9 @@
|
|
|
606
606
|
(function (HostEvent) {
|
|
607
607
|
/**
|
|
608
608
|
* Trigger a search
|
|
609
|
-
* @param - dataSourceIds - The
|
|
609
|
+
* @param - dataSourceIds - The data source GUID to Search on
|
|
610
|
+
* - Although an array, only a single source
|
|
611
|
+
* is supported at this time.
|
|
610
612
|
* @param - searchQuery - The search query
|
|
611
613
|
* @example
|
|
612
614
|
* searchEmbed.trigger(HostEvent.Search, {
|
|
@@ -667,6 +669,28 @@
|
|
|
667
669
|
* @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
|
|
668
670
|
*/
|
|
669
671
|
HostEvent["Navigate"] = "Navigate";
|
|
672
|
+
/**
|
|
673
|
+
* Opens the filter panel for a particular column.
|
|
674
|
+
* Works with Search embed.
|
|
675
|
+
* @param - { columnId: string, name: string, type: INT64/CHAR/DATE, dataType: ATTRIBUTE/MEASURE }
|
|
676
|
+
* @example searchEmbed.trigger(HostEvent.OpenFilter, { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
|
|
677
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
678
|
+
*/
|
|
679
|
+
HostEvent["OpenFilter"] = "openFilter";
|
|
680
|
+
/**
|
|
681
|
+
* Adds the columns to the current Search.
|
|
682
|
+
* @param - { columnIds: string[] }
|
|
683
|
+
* @example searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
|
|
684
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
685
|
+
*/
|
|
686
|
+
HostEvent["AddColumns"] = "addColumns";
|
|
687
|
+
/**
|
|
688
|
+
* Removes a column from the current Search.
|
|
689
|
+
* @param - { columnId: string }
|
|
690
|
+
* @example - searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
|
|
691
|
+
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
692
|
+
*/
|
|
693
|
+
HostEvent["RemoveColumn"] = "removeColumn";
|
|
670
694
|
/**
|
|
671
695
|
* Gets the current pinboard content.
|
|
672
696
|
* @example liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
|
|
@@ -795,7 +819,7 @@
|
|
|
795
819
|
/**
|
|
796
820
|
* Get TML for the current search.
|
|
797
821
|
* @example searchEmbed.trigger(HostEvent.GetTML)
|
|
798
|
-
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
822
|
+
* @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
|
|
799
823
|
*/
|
|
800
824
|
HostEvent["GetTML"] = "getTML";
|
|
801
825
|
/**
|
|
@@ -957,6 +981,7 @@
|
|
|
957
981
|
Param["ForceSAMLAutoRedirect"] = "forceSAMLAutoRedirect";
|
|
958
982
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
959
983
|
Param["AuthType"] = "authType";
|
|
984
|
+
Param["IconSpriteUrl"] = "iconSprite";
|
|
960
985
|
})(Param || (Param = {}));
|
|
961
986
|
(function (Action) {
|
|
962
987
|
Action["Save"] = "save";
|
|
@@ -9350,7 +9375,7 @@
|
|
|
9350
9375
|
});
|
|
9351
9376
|
}
|
|
9352
9377
|
|
|
9353
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.
|
|
9378
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.19.0-alpha.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":{"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 @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --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 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",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","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","@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":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.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};
|
|
9354
9379
|
|
|
9355
9380
|
/**
|
|
9356
9381
|
* Copyright (c) 2022
|
|
@@ -9371,9 +9396,7 @@
|
|
|
9371
9396
|
* We cannot rename v1 event types to maintain backward compatibility
|
|
9372
9397
|
* @internal
|
|
9373
9398
|
*/
|
|
9374
|
-
const V1EventMap = {
|
|
9375
|
-
[exports.EmbedEvent.Data]: [exports.EmbedEvent.V1Data],
|
|
9376
|
-
};
|
|
9399
|
+
const V1EventMap = {};
|
|
9377
9400
|
/**
|
|
9378
9401
|
* Base class for embedding v2 experience
|
|
9379
9402
|
* Note: the v2 version of ThoughtSpot Blink is built on the new stack:
|
|
@@ -9553,6 +9576,10 @@
|
|
|
9553
9576
|
if (Array.isArray(visibleActions)) {
|
|
9554
9577
|
queryParams[Param.VisibleActions] = visibleActions;
|
|
9555
9578
|
}
|
|
9579
|
+
const spriteUrl = customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl;
|
|
9580
|
+
if (spriteUrl) {
|
|
9581
|
+
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
9582
|
+
}
|
|
9556
9583
|
if (showAlerts !== undefined) {
|
|
9557
9584
|
queryParams[Param.ShowAlerts] = showAlerts;
|
|
9558
9585
|
}
|
|
@@ -10209,7 +10236,7 @@
|
|
|
10209
10236
|
*/
|
|
10210
10237
|
getIFrameSrc(answerId, dataSources) {
|
|
10211
10238
|
var _a;
|
|
10212
|
-
const { hideResults,
|
|
10239
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, } = this.viewConfig;
|
|
10213
10240
|
const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
|
|
10214
10241
|
const queryParams = this.getBaseQueryParams();
|
|
10215
10242
|
queryParams[Param.HideActions] = [
|
|
@@ -10219,6 +10246,9 @@
|
|
|
10219
10246
|
if (dataSources && dataSources.length) {
|
|
10220
10247
|
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
10221
10248
|
}
|
|
10249
|
+
if (dataSource) {
|
|
10250
|
+
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
10251
|
+
}
|
|
10222
10252
|
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
10223
10253
|
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
10224
10254
|
if (searchOptions.executeSearch) {
|
|
@@ -10282,9 +10312,9 @@
|
|
|
10282
10312
|
* loaded in the iframe
|
|
10283
10313
|
* @param dataSources A list of data source GUIDs
|
|
10284
10314
|
*/
|
|
10285
|
-
getIFrameSrc(
|
|
10315
|
+
getIFrameSrc() {
|
|
10286
10316
|
var _a;
|
|
10287
|
-
const { searchOptions } = this.viewConfig;
|
|
10317
|
+
const { searchOptions, dataSource, dataSources } = this.viewConfig;
|
|
10288
10318
|
const path = 'search-bar-embed';
|
|
10289
10319
|
const queryParams = this.getBaseQueryParams();
|
|
10290
10320
|
queryParams[Param.HideActions] = [
|
|
@@ -10293,6 +10323,9 @@
|
|
|
10293
10323
|
if (dataSources && dataSources.length) {
|
|
10294
10324
|
queryParams[Param.DataSources] = JSON.stringify(dataSources);
|
|
10295
10325
|
}
|
|
10326
|
+
if (dataSource) {
|
|
10327
|
+
queryParams[Param.DataSources] = `["${dataSource}"]`;
|
|
10328
|
+
}
|
|
10296
10329
|
if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
|
|
10297
10330
|
queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
|
|
10298
10331
|
if (searchOptions.executeSearch) {
|
|
@@ -10314,8 +10347,7 @@
|
|
|
10314
10347
|
*/
|
|
10315
10348
|
render() {
|
|
10316
10349
|
super.render();
|
|
10317
|
-
const
|
|
10318
|
-
const src = this.getIFrameSrc(dataSources);
|
|
10350
|
+
const src = this.getIFrameSrc();
|
|
10319
10351
|
this.renderIFrame(src, this.viewConfig.frameParams);
|
|
10320
10352
|
return this;
|
|
10321
10353
|
}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0-alpha.0",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -25,13 +25,6 @@
|
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"typesVersions": {
|
|
29
|
-
"*": {
|
|
30
|
-
"react": [
|
|
31
|
-
"./lib/src/react/index.d.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
28
|
"scripts": {
|
|
36
29
|
"lint": "eslint 'src/**'",
|
|
37
30
|
"lint:fix": "eslint 'src/**/*.*' --fix",
|
|
@@ -4,8 +4,15 @@ import { SearchOptions } from './search';
|
|
|
4
4
|
export interface SearchBarViewConfig extends Omit<ViewConfig, 'disabledActions' | 'hiddenActions' | 'visibleActions' | 'disabledActionReason' | 'runtimeFilters' | 'showAlerts'> {
|
|
5
5
|
/**
|
|
6
6
|
* The array of data source GUIDs to set on load.
|
|
7
|
+
* Only a single dataSource supported currently.
|
|
8
|
+
* @deprecated Use dataSource instead
|
|
7
9
|
*/
|
|
8
10
|
dataSources?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* The array of data source GUIDs to set on load.
|
|
13
|
+
* @version: SDK: 1.19.0
|
|
14
|
+
*/
|
|
15
|
+
dataSource?: string;
|
|
9
16
|
/**
|
|
10
17
|
* Configuration for search options
|
|
11
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../src/embed/search-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,UAAU,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,mBACb,SAAQ,IAAI,CACR,UAAU,EACR,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,CACjB;IACD
|
|
1
|
+
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../src/embed/search-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,UAAU,EAAE,MAAM,UAAU,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,mBACb,SAAQ,IAAI,CACR,UAAU,EACR,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,CACjB;IACD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,OAAO;IACvC;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,mBAAmB,CAAC;gBAE9B,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB;IAKhE;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAqCpB;;OAEG;IACI,MAAM,IAAI,cAAc;CAOlC"}
|