@thoughtspot/visual-embed-sdk 1.14.1 → 1.15.0-searchbar.1

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 CHANGED
@@ -8,6 +8,9 @@ This project follows Semantic Versioning.
8
8
  ### New Features
9
9
  - Set of new Host events to drive interactions on the embed programatically
10
10
 
11
+ ## 1.14.1 (08-31-2022)
12
+ - Fixed "not logged in" message showing up on "SearchEmbed" with AuthType.None.
13
+
11
14
  ## 1.14.0 (08-29-2022)
12
15
  - [AuthType.AuthServer] Now uses `POST` call to log the user in using the bearer token.
13
16
  - `liveboardV2` flag on `LiveboardEmbed` to try out the LiveboardV2 experience.
@@ -26,10 +29,6 @@ This project follows Semantic Versioning.
26
29
  ### Fixed
27
30
  - Typescript build that was affecting some Angular project configurations
28
31
 
29
- ## 1.11.2 (06-10-2022)
30
- ### Fixed
31
- - Typescript build that was affecting some Angular project configurations
32
-
33
32
  ## 1.11.1 (05-30-2022)
34
33
  ### Fixed
35
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.
@@ -78,12 +77,12 @@ This project follows Semantic Versioning.
78
77
 
79
78
  ## 1.9.3 (03-22-2022)
80
79
 
81
- ### New Features
80
+ ### New Features
82
81
  - `disableLoginRedirect` option in `EmbedConfig`
83
82
 
84
83
  ## 1.9.2 (03-17-2022)
85
84
 
86
- ### New Features
85
+ ### New Features
87
86
  - Ability to trigger events on React components
88
87
  - Added new `useEmbedRef` hook, check README for usage.
89
88
 
@@ -0,0 +1,40 @@
1
+ import { TsEmbed, ViewConfig } from './ts-embed';
2
+ import { SearchOptions } from './search';
3
+ export interface SearchBarViewConfig extends ViewConfig {
4
+ /**
5
+ * If set to true, hides the data sources panel.
6
+ */
7
+ hideDataSources?: boolean;
8
+ /**
9
+ * The array of data source GUIDs to set on load.
10
+ */
11
+ dataSources?: string[];
12
+ /**
13
+ * Configuration for search options
14
+ */
15
+ searchOptions?: SearchOptions;
16
+ }
17
+ /**
18
+ * Embed ThoughtSpot search bar
19
+ *
20
+ * @Category Search Embed
21
+ * @version: unreleased version
22
+ * @hidden
23
+ */
24
+ export declare class SearchBarEmbed extends TsEmbed {
25
+ /**
26
+ * The view configuration for the embedded ThoughtSpot search bar.
27
+ */
28
+ protected viewConfig: SearchBarViewConfig;
29
+ constructor(domSelector: string, viewConfig: SearchBarViewConfig);
30
+ /**
31
+ * Construct the URL of the embedded ThoughtSpot search to be
32
+ * loaded in the iframe
33
+ * @param dataSources A list of data source GUIDs
34
+ */
35
+ private getIFrameSrc;
36
+ /**
37
+ * Render the embedded ThoughtSpot search
38
+ */
39
+ render(): SearchBarEmbed;
40
+ }
@@ -11,7 +11,7 @@ import { ViewConfig, TsEmbed } from './ts-embed';
11
11
  /**
12
12
  * Configuration for search options
13
13
  */
14
- interface SearchOptions {
14
+ export interface SearchOptions {
15
15
  /**
16
16
  * The tml string to load the answer
17
17
  */
@@ -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
@@ -105,4 +101,3 @@ export declare class SearchEmbed extends TsEmbed {
105
101
  */
106
102
  render(): SearchEmbed;
107
103
  }
108
- export {};
@@ -11,6 +11,7 @@ import { AppEmbed, Page, AppViewConfig } from './embed/app';
11
11
  import { init, prefetch, logout } from './embed/base';
12
12
  import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
13
13
  import { SearchEmbed, SearchViewConfig } from './embed/search';
14
+ import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
14
15
  import { AuthFailureType, AuthStatus } from './auth';
15
16
  import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from './types';
16
- export { init, logout, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
17
+ export { init, logout, prefetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, };
@@ -15,10 +15,6 @@ export declare enum AuthType {
15
15
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
16
16
  */
17
17
  None = "None",
18
- /**
19
- * No authentication on the SDK. Passthrough to the embedded App.
20
- */
21
- Passthrough = "None",
22
18
  /**
23
19
  * SSO using SAML
24
20
  * @deprecated Use {@link SAML} instead
@@ -162,10 +162,6 @@ var AuthType;
162
162
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
163
163
  */
164
164
  AuthType["None"] = "None";
165
- /**
166
- * No authentication on the SDK. Passthrough to the embedded App.
167
- */
168
- AuthType["Passthrough"] = "None";
169
165
  /**
170
166
  * SSO using SAML
171
167
  * @deprecated Use {@link SAML} instead
@@ -8013,7 +8009,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
8013
8009
  });
8014
8010
  }
8015
8011
 
8016
- var name="@thoughtspot/visual-embed-sdk";var version="1.14.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/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","html-react-parser":"^1.4.12","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.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
8012
+ var name="@thoughtspot/visual-embed-sdk";var version="1.15.0-searchbar.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/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","html-react-parser":"^1.4.12","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.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
8017
8013
 
8018
8014
  /**
8019
8015
  * Copyright (c) 2022
@@ -8871,7 +8867,7 @@ class SearchEmbed extends TsEmbed {
8871
8867
  */
8872
8868
  getIFrameSrc(answerId, dataSources) {
8873
8869
  var _a;
8874
- const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
8870
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
8875
8871
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
8876
8872
  const queryParams = this.getBaseQueryParams();
8877
8873
  queryParams[Param.HideActions] = [
@@ -8924,4 +8920,60 @@ class SearchEmbed extends TsEmbed {
8924
8920
  }
8925
8921
  }
8926
8922
 
8927
- export { Action, AppEmbed, AuthFailureType, AuthStatus, AuthType, DataSourceVisualMode, EmbedEvent, HostEvent, LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SearchEmbed, init, logout$1 as logout, prefetch };
8923
+ /**
8924
+ * Embed ThoughtSpot search bar
8925
+ *
8926
+ * @Category Search Embed
8927
+ * @version: unreleased version
8928
+ * @hidden
8929
+ */
8930
+ class SearchBarEmbed extends TsEmbed {
8931
+ constructor(domSelector, viewConfig) {
8932
+ super(domSelector);
8933
+ this.viewConfig = viewConfig;
8934
+ }
8935
+ /**
8936
+ * Construct the URL of the embedded ThoughtSpot search to be
8937
+ * loaded in the iframe
8938
+ * @param dataSources A list of data source GUIDs
8939
+ */
8940
+ getIFrameSrc(dataSources) {
8941
+ var _a;
8942
+ const { searchOptions } = this.viewConfig;
8943
+ const path = 'search-bar-embed';
8944
+ const queryParams = this.getBaseQueryParams();
8945
+ queryParams[Param.HideActions] = [
8946
+ ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
8947
+ ];
8948
+ if (dataSources && dataSources.length) {
8949
+ queryParams[Param.DataSources] = JSON.stringify(dataSources);
8950
+ }
8951
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
8952
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
8953
+ if (searchOptions.executeSearch) {
8954
+ queryParams[Param.executeSearch] = true;
8955
+ }
8956
+ }
8957
+ queryParams[Param.UseLastSelectedDataSource] = false;
8958
+ queryParams[Param.searchEmbed] = true;
8959
+ let query = '';
8960
+ const queryParamsString = getQueryParamString(queryParams, true);
8961
+ if (queryParamsString) {
8962
+ query = `?${queryParamsString}`;
8963
+ }
8964
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
8965
+ return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
8966
+ }
8967
+ /**
8968
+ * Render the embedded ThoughtSpot search
8969
+ */
8970
+ render() {
8971
+ super.render();
8972
+ const { dataSources } = this.viewConfig;
8973
+ const src = this.getIFrameSrc(dataSources);
8974
+ this.renderIFrame(src, this.viewConfig.frameParams);
8975
+ return this;
8976
+ }
8977
+ }
8978
+
8979
+ export { Action, AppEmbed, AuthFailureType, AuthStatus, AuthType, DataSourceVisualMode, EmbedEvent, HostEvent, LiveboardEmbed, Page, PinboardEmbed, RuntimeFilterOp, SearchBarEmbed, SearchEmbed, init, logout$1 as logout, prefetch };
package/dist/tsembed.js CHANGED
@@ -162,10 +162,6 @@
162
162
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
163
163
  */
164
164
  AuthType["None"] = "None";
165
- /**
166
- * No authentication on the SDK. Passthrough to the embedded App.
167
- */
168
- AuthType["Passthrough"] = "None";
169
165
  /**
170
166
  * SSO using SAML
171
167
  * @deprecated Use {@link SAML} instead
@@ -7980,7 +7976,7 @@
7980
7976
  });
7981
7977
  }
7982
7978
 
7983
- var name="@thoughtspot/visual-embed-sdk";var version="1.14.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/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","html-react-parser":"^1.4.12","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.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
7979
+ var name="@thoughtspot/visual-embed-sdk";var version="1.15.0-searchbar.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/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","html-react-parser":"^1.4.12","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.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
7984
7980
 
7985
7981
  /**
7986
7982
  * Copyright (c) 2022
@@ -8833,7 +8829,7 @@
8833
8829
  */
8834
8830
  getIFrameSrc(answerId, dataSources) {
8835
8831
  var _a;
8836
- const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
8832
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
8837
8833
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
8838
8834
  const queryParams = this.getBaseQueryParams();
8839
8835
  queryParams[Param.HideActions] = [
@@ -8886,9 +8882,66 @@
8886
8882
  }
8887
8883
  }
8888
8884
 
8885
+ /**
8886
+ * Embed ThoughtSpot search bar
8887
+ *
8888
+ * @Category Search Embed
8889
+ * @version: unreleased version
8890
+ * @hidden
8891
+ */
8892
+ class SearchBarEmbed extends TsEmbed {
8893
+ constructor(domSelector, viewConfig) {
8894
+ super(domSelector);
8895
+ this.viewConfig = viewConfig;
8896
+ }
8897
+ /**
8898
+ * Construct the URL of the embedded ThoughtSpot search to be
8899
+ * loaded in the iframe
8900
+ * @param dataSources A list of data source GUIDs
8901
+ */
8902
+ getIFrameSrc(dataSources) {
8903
+ var _a;
8904
+ const { searchOptions } = this.viewConfig;
8905
+ const path = 'search-bar-embed';
8906
+ const queryParams = this.getBaseQueryParams();
8907
+ queryParams[Param.HideActions] = [
8908
+ ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
8909
+ ];
8910
+ if (dataSources && dataSources.length) {
8911
+ queryParams[Param.DataSources] = JSON.stringify(dataSources);
8912
+ }
8913
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
8914
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
8915
+ if (searchOptions.executeSearch) {
8916
+ queryParams[Param.executeSearch] = true;
8917
+ }
8918
+ }
8919
+ queryParams[Param.UseLastSelectedDataSource] = false;
8920
+ queryParams[Param.searchEmbed] = true;
8921
+ let query = '';
8922
+ const queryParamsString = getQueryParamString(queryParams, true);
8923
+ if (queryParamsString) {
8924
+ query = `?${queryParamsString}`;
8925
+ }
8926
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
8927
+ return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
8928
+ }
8929
+ /**
8930
+ * Render the embedded ThoughtSpot search
8931
+ */
8932
+ render() {
8933
+ super.render();
8934
+ const { dataSources } = this.viewConfig;
8935
+ const src = this.getIFrameSrc(dataSources);
8936
+ this.renderIFrame(src, this.viewConfig.frameParams);
8937
+ return this;
8938
+ }
8939
+ }
8940
+
8889
8941
  exports.AppEmbed = AppEmbed;
8890
8942
  exports.LiveboardEmbed = LiveboardEmbed;
8891
8943
  exports.PinboardEmbed = PinboardEmbed;
8944
+ exports.SearchBarEmbed = SearchBarEmbed;
8892
8945
  exports.SearchEmbed = SearchEmbed;
8893
8946
  exports.init = init;
8894
8947
  exports.logout = logout$1;
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.14.1",
3
+ "version": "1.15.0-searchbar.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -0,0 +1,40 @@
1
+ import { TsEmbed, ViewConfig } from './ts-embed';
2
+ import { SearchOptions } from './search';
3
+ export interface SearchBarViewConfig extends ViewConfig {
4
+ /**
5
+ * If set to true, hides the data sources panel.
6
+ */
7
+ hideDataSources?: boolean;
8
+ /**
9
+ * The array of data source GUIDs to set on load.
10
+ */
11
+ dataSources?: string[];
12
+ /**
13
+ * Configuration for search options
14
+ */
15
+ searchOptions?: SearchOptions;
16
+ }
17
+ /**
18
+ * Embed ThoughtSpot search bar
19
+ *
20
+ * @Category Search Embed
21
+ * @version: unreleased version
22
+ * @hidden
23
+ */
24
+ export declare class SearchBarEmbed extends TsEmbed {
25
+ /**
26
+ * The view configuration for the embedded ThoughtSpot search bar.
27
+ */
28
+ protected viewConfig: SearchBarViewConfig;
29
+ constructor(domSelector: string, viewConfig: SearchBarViewConfig);
30
+ /**
31
+ * Construct the URL of the embedded ThoughtSpot search to be
32
+ * loaded in the iframe
33
+ * @param dataSources A list of data source GUIDs
34
+ */
35
+ private getIFrameSrc;
36
+ /**
37
+ * Render the embedded ThoughtSpot search
38
+ */
39
+ render(): SearchBarEmbed;
40
+ }
@@ -0,0 +1,59 @@
1
+ import { Param } from '../types';
2
+ import { getQueryParamString } from '../utils';
3
+ import { TsEmbed } from './ts-embed';
4
+ /**
5
+ * Embed ThoughtSpot search bar
6
+ *
7
+ * @Category Search Embed
8
+ * @version: unreleased version
9
+ * @hidden
10
+ */
11
+ export class SearchBarEmbed extends TsEmbed {
12
+ constructor(domSelector, viewConfig) {
13
+ super(domSelector);
14
+ this.viewConfig = viewConfig;
15
+ }
16
+ /**
17
+ * Construct the URL of the embedded ThoughtSpot search to be
18
+ * loaded in the iframe
19
+ * @param dataSources A list of data source GUIDs
20
+ */
21
+ getIFrameSrc(dataSources) {
22
+ var _a;
23
+ const { searchOptions } = this.viewConfig;
24
+ const path = 'search-bar-embed';
25
+ const queryParams = this.getBaseQueryParams();
26
+ queryParams[Param.HideActions] = [
27
+ ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
28
+ ];
29
+ if (dataSources && dataSources.length) {
30
+ queryParams[Param.DataSources] = JSON.stringify(dataSources);
31
+ }
32
+ if (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.searchTokenString) {
33
+ queryParams[Param.searchTokenString] = encodeURIComponent(searchOptions.searchTokenString);
34
+ if (searchOptions.executeSearch) {
35
+ queryParams[Param.executeSearch] = true;
36
+ }
37
+ }
38
+ queryParams[Param.UseLastSelectedDataSource] = false;
39
+ queryParams[Param.searchEmbed] = true;
40
+ let query = '';
41
+ const queryParamsString = getQueryParamString(queryParams, true);
42
+ if (queryParamsString) {
43
+ query = `?${queryParamsString}`;
44
+ }
45
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
46
+ return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
47
+ }
48
+ /**
49
+ * Render the embedded ThoughtSpot search
50
+ */
51
+ render() {
52
+ super.render();
53
+ const { dataSources } = this.viewConfig;
54
+ const src = this.getIFrameSrc(dataSources);
55
+ this.renderIFrame(src, this.viewConfig.frameParams);
56
+ return this;
57
+ }
58
+ }
59
+ //# sourceMappingURL=search-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-bar.js","sourceRoot":"","sources":["../../../src/embed/search-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,EAAU,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAc,MAAM,YAAY,CAAC;AAkBjD;;;;;;GAMG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO;IAMvC,YAAY,WAAmB,EAAE,UAA+B;QAC5D,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACK,YAAY,CAAC,WAAsB;;QACvC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1C,MAAM,IAAI,GAAG,kBAAkB,CAAC;QAChC,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE9C,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG;YAC7B,GAAG,CAAC,MAAA,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,mCAAI,EAAE,CAAC;SAC5C,CAAC;QAEF,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,EAAE;YACnC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;SAChE;QACD,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,iBAAiB,EAAE;YAClC,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG,kBAAkB,CACrD,aAAa,CAAC,iBAAiB,CAClC,CAAC;YAEF,IAAI,aAAa,CAAC,aAAa,EAAE;gBAC7B,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;aAC3C;SACJ;QAED,WAAW,CAAC,KAAK,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC;QACrD,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;QACtC,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjE,IAAI,iBAAiB,EAAE;YACnB,KAAK,GAAG,IAAI,iBAAiB,EAAE,CAAC;SACnC;QACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE,CAAC;QAE5D,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,gBAAgB,EAAE,CAAC;IACxE,CAAC;IAED;;OAEG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;QAExC,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -11,7 +11,7 @@ import { ViewConfig, TsEmbed } from './ts-embed';
11
11
  /**
12
12
  * Configuration for search options
13
13
  */
14
- interface SearchOptions {
14
+ export interface SearchOptions {
15
15
  /**
16
16
  * The tml string to load the answer
17
17
  */
@@ -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
@@ -105,4 +101,3 @@ export declare class SearchEmbed extends TsEmbed {
105
101
  */
106
102
  render(): SearchEmbed;
107
103
  }
108
- export {};
@@ -51,7 +51,7 @@ export class SearchEmbed extends TsEmbed {
51
51
  */
52
52
  getIFrameSrc(answerId, dataSources) {
53
53
  var _a;
54
- const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
54
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, } = this.viewConfig;
55
55
  const answerPath = answerId ? `saved-answer/${answerId}` : 'answer';
56
56
  const queryParams = this.getBaseQueryParams();
57
57
  queryParams[Param.HideActions] = [
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/embed/search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,oBAAoB,EAAe,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAc,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAwE5C,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACnD,MAAM,CAAC,SAAS;IAChB,MAAM,CAAC,UAAU;IAC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C,gCAAgC,CAAC,CAAC;aACzD;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -11,6 +11,7 @@ import { AppEmbed, Page, AppViewConfig } from './embed/app';
11
11
  import { init, prefetch, logout } from './embed/base';
12
12
  import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/liveboard';
13
13
  import { SearchEmbed, SearchViewConfig } from './embed/search';
14
+ import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
14
15
  import { AuthFailureType, AuthStatus } from './auth';
15
16
  import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from './types';
16
- export { init, logout, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
17
+ export { init, logout, prefetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, };
package/lib/src/index.js CHANGED
@@ -11,9 +11,10 @@ import { AppEmbed, Page } from './embed/app';
11
11
  import { init, prefetch, logout } from './embed/base';
12
12
  import { PinboardEmbed, LiveboardEmbed, } from './embed/liveboard';
13
13
  import { SearchEmbed } from './embed/search';
14
+ import { SearchBarEmbed } from './embed/search-bar';
14
15
  import { AuthFailureType, AuthStatus } from './auth';
15
16
  import { AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, } from './types';
16
- export { init, logout, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus,
17
+ export { init, logout, prefetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus,
17
18
  // types
18
19
  Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, };
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACH,aAAa,EAEb,cAAc,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EACH,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAET,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,eAAe,EACf,UAAU;AACV,QAAQ;AACR,IAAI,EACJ,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAKT,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACH,aAAa,EAEb,cAAc,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAuB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EACH,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAET,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,EACd,QAAQ,EACR,eAAe,EACf,UAAU;AACV,QAAQ;AACR,IAAI,EACJ,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,GAMT,CAAC"}
@@ -15,10 +15,6 @@ export declare enum AuthType {
15
15
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
16
16
  */
17
17
  None = "None",
18
- /**
19
- * No authentication on the SDK. Passthrough to the embedded App.
20
- */
21
- Passthrough = "None",
22
18
  /**
23
19
  * SSO using SAML
24
20
  * @deprecated Use {@link SAML} instead
package/lib/src/types.js CHANGED
@@ -17,10 +17,6 @@ export var AuthType;
17
17
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
18
18
  */
19
19
  AuthType["None"] = "None";
20
- /**
21
- * No authentication on the SDK. Passthrough to the embedded App.
22
- */
23
- AuthType["Passthrough"] = "None";
24
20
  /**
25
21
  * SSO using SAML
26
22
  * @deprecated Use {@link SAML} instead
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,QAiCX;AAjCD,WAAY,QAAQ;IAChB;;OAEG;IACH,yBAAa,CAAA;IACb;;OAEG;IACH,gCAAoB,CAAA;IACpB;;;OAGG;IACH,4BAAgB,CAAA;IAChB;;OAE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ACrC,sEAAqD,CAAA;AACzD,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
@@ -16,9 +16,10 @@ declare module '@thoughtspot/visual-embed-sdk' {
16
16
  import { init, prefetch, logout } from '@thoughtspot/visual-embed-sdk/embed/base';
17
17
  import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
18
18
  import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
19
+ import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
19
20
  import { AuthFailureType, AuthStatus } from '@thoughtspot/visual-embed-sdk/auth';
20
21
  import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
21
- export { init, logout, prefetch, SearchEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, LiveboardViewConfig, AppViewConfig, };
22
+ export { init, logout, prefetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, AuthFailureType, AuthStatus, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, };
22
23
  }
23
24
 
24
25
  declare module '@thoughtspot/visual-embed-sdk/embed/app' {
@@ -322,7 +323,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
322
323
  /**
323
324
  * Configuration for search options
324
325
  */
325
- interface SearchOptions {
326
+ export interface SearchOptions {
326
327
  /**
327
328
  * The tml string to load the answer
328
329
  */
@@ -355,10 +356,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
355
356
  * using raw answer data.
356
357
  */
357
358
  hideResults?: boolean;
358
- /**
359
- * If set to true, expands all the data sources panel.
360
- */
361
- expandAllDataSource?: boolean;
362
359
  /**
363
360
  * If set to true, the Search Assist feature is enabled.
364
361
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -404,7 +401,43 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
404
401
  */
405
402
  render(): SearchEmbed;
406
403
  }
407
- export {};
404
+ }
405
+
406
+ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
407
+ import { TsEmbed, ViewConfig } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
408
+ import { SearchOptions } from '@thoughtspot/visual-embed-sdk/embed/search';
409
+ export interface SearchBarViewConfig extends ViewConfig {
410
+ /**
411
+ * If set to true, hides the data sources panel.
412
+ */
413
+ hideDataSources?: boolean;
414
+ /**
415
+ * The array of data source GUIDs to set on load.
416
+ */
417
+ dataSources?: string[];
418
+ /**
419
+ * Configuration for search options
420
+ */
421
+ searchOptions?: SearchOptions;
422
+ }
423
+ /**
424
+ * Embed ThoughtSpot search bar
425
+ *
426
+ * @Category Search Embed
427
+ * @version: unreleased version
428
+ * @hidden
429
+ */
430
+ export class SearchBarEmbed extends TsEmbed {
431
+ /**
432
+ * The view configuration for the embedded ThoughtSpot search bar.
433
+ */
434
+ protected viewConfig: SearchBarViewConfig;
435
+ constructor(domSelector: string, viewConfig: SearchBarViewConfig);
436
+ /**
437
+ * Render the embedded ThoughtSpot search
438
+ */
439
+ render(): SearchBarEmbed;
440
+ }
408
441
  }
409
442
 
410
443
  declare module '@thoughtspot/visual-embed-sdk/auth' {
@@ -492,10 +525,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
492
525
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
493
526
  */
494
527
  None = "None",
495
- /**
496
- * No authentication on the SDK. Passthrough to the embedded App.
497
- */
498
- Passthrough = "None",
499
528
  /**
500
529
  * SSO using SAML
501
530
  * @deprecated Use {@link SAML} instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.14.1",
3
+ "version": "1.15.0-searchbar.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -0,0 +1,89 @@
1
+ import { DOMSelector, Param, Action } from '../types';
2
+ import { getQueryParamString } from '../utils';
3
+ import { TsEmbed, ViewConfig } from './ts-embed';
4
+ import { SearchOptions } from './search';
5
+
6
+ export interface SearchBarViewConfig extends ViewConfig {
7
+ /**
8
+ * If set to true, hides the data sources panel.
9
+ */
10
+ hideDataSources?: boolean;
11
+ /**
12
+ * The array of data source GUIDs to set on load.
13
+ */
14
+ dataSources?: string[];
15
+ /**
16
+ * Configuration for search options
17
+ */
18
+ searchOptions?: SearchOptions;
19
+ }
20
+
21
+ /**
22
+ * Embed ThoughtSpot search bar
23
+ *
24
+ * @Category Search Embed
25
+ * @version: unreleased version
26
+ * @hidden
27
+ */
28
+ export class SearchBarEmbed extends TsEmbed {
29
+ /**
30
+ * The view configuration for the embedded ThoughtSpot search bar.
31
+ */
32
+ protected viewConfig: SearchBarViewConfig;
33
+
34
+ constructor(domSelector: string, viewConfig: SearchBarViewConfig) {
35
+ super(domSelector);
36
+ this.viewConfig = viewConfig;
37
+ }
38
+
39
+ /**
40
+ * Construct the URL of the embedded ThoughtSpot search to be
41
+ * loaded in the iframe
42
+ * @param dataSources A list of data source GUIDs
43
+ */
44
+ private getIFrameSrc(dataSources?: string[]) {
45
+ const { searchOptions } = this.viewConfig;
46
+ const path = 'search-bar-embed';
47
+ const queryParams = this.getBaseQueryParams();
48
+
49
+ queryParams[Param.HideActions] = [
50
+ ...(queryParams[Param.HideActions] ?? []),
51
+ ];
52
+
53
+ if (dataSources && dataSources.length) {
54
+ queryParams[Param.DataSources] = JSON.stringify(dataSources);
55
+ }
56
+ if (searchOptions?.searchTokenString) {
57
+ queryParams[Param.searchTokenString] = encodeURIComponent(
58
+ searchOptions.searchTokenString,
59
+ );
60
+
61
+ if (searchOptions.executeSearch) {
62
+ queryParams[Param.executeSearch] = true;
63
+ }
64
+ }
65
+
66
+ queryParams[Param.UseLastSelectedDataSource] = false;
67
+ queryParams[Param.searchEmbed] = true;
68
+ let query = '';
69
+ const queryParamsString = getQueryParamString(queryParams, true);
70
+ if (queryParamsString) {
71
+ query = `?${queryParamsString}`;
72
+ }
73
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
74
+
75
+ return `${this.getEmbedBasePath(query)}/${path}${tsPostHashParams}`;
76
+ }
77
+
78
+ /**
79
+ * Render the embedded ThoughtSpot search
80
+ */
81
+ public render(): SearchBarEmbed {
82
+ super.render();
83
+ const { dataSources } = this.viewConfig;
84
+
85
+ const src = this.getIFrameSrc(dataSources);
86
+ this.renderIFrame(src, this.viewConfig.frameParams);
87
+ return this;
88
+ }
89
+ }
@@ -18,7 +18,7 @@ import { getReleaseVersion } from '../auth';
18
18
  /**
19
19
  * Configuration for search options
20
20
  */
21
- interface SearchOptions {
21
+ export interface SearchOptions {
22
22
  /**
23
23
  * The tml string to load the answer
24
24
  */
@@ -52,10 +52,6 @@ export interface SearchViewConfig extends ViewConfig {
52
52
  * using raw answer data.
53
53
  */
54
54
  hideResults?: boolean;
55
- /**
56
- * If set to true, expands all the data sources panel.
57
- */
58
- expandAllDataSource?: boolean;
59
55
  /**
60
56
  * If set to true, the Search Assist feature is enabled.
61
57
  * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
@@ -134,7 +130,6 @@ export class SearchEmbed extends TsEmbed {
134
130
  private getIFrameSrc(answerId: string, dataSources?: string[]) {
135
131
  const {
136
132
  hideResults,
137
- expandAllDataSource,
138
133
  enableSearchAssist,
139
134
  forceTable,
140
135
  searchOptions,
package/src/index.ts CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  LiveboardEmbed,
17
17
  } from './embed/liveboard';
18
18
  import { SearchEmbed, SearchViewConfig } from './embed/search';
19
+ import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
19
20
  import { AuthFailureType, AuthStatus } from './auth';
20
21
  import {
21
22
  AuthType,
@@ -33,6 +34,7 @@ export {
33
34
  logout,
34
35
  prefetch,
35
36
  SearchEmbed,
37
+ SearchBarEmbed,
36
38
  PinboardEmbed,
37
39
  LiveboardEmbed,
38
40
  AppEmbed,
@@ -49,6 +51,7 @@ export {
49
51
  Action,
50
52
  EmbedConfig,
51
53
  SearchViewConfig,
54
+ SearchBarViewConfig,
52
55
  LiveboardViewConfig,
53
56
  AppViewConfig,
54
57
  };
package/src/types.ts CHANGED
@@ -17,10 +17,6 @@ export enum AuthType {
17
17
  * No authentication on the SDK. Passthrough to the embedded App. Alias for `Passthrough`.
18
18
  */
19
19
  None = 'None',
20
- /**
21
- * No authentication on the SDK. Passthrough to the embedded App.
22
- */
23
- Passthrough = 'None',
24
20
  /**
25
21
  * SSO using SAML
26
22
  * @deprecated Use {@link SAML} instead
@@ -214,7 +210,6 @@ export interface EmbedConfig {
214
210
  * @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw*
215
211
  */
216
212
  suppressSearchEmbedBetaWarning?: boolean;
217
-
218
213
  /**
219
214
  * Custom style params for embed Config.
220
215
  *