@thoughtspot/visual-embed-sdk 1.17.0 → 1.17.2-customcss

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.
@@ -18,7 +18,7 @@ export interface SearchBarViewConfig extends ViewConfig {
18
18
  * Embed ThoughtSpot search bar
19
19
  *
20
20
  * @Category Search Embed
21
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
21
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
22
22
  */
23
23
  export declare class SearchBarEmbed extends TsEmbed {
24
24
  /**
@@ -98,6 +98,13 @@ export interface ViewConfig {
98
98
  additionalFlags?: {
99
99
  [key: string]: string | number | boolean;
100
100
  };
101
+ /**
102
+ * Dynamic CSS Url to be injected in the loaded application.
103
+ * You would also need to set `style-src` in the CSP settings.
104
+ * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
105
+ * @default ''
106
+ */
107
+ customCssUrl?: string;
101
108
  }
102
109
  /**
103
110
  * Base class for embedding v2 experience
@@ -714,8 +714,8 @@ export declare enum HostEvent {
714
714
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
715
715
  * @example
716
716
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
717
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
718
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
717
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
718
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
719
719
  * ])
720
720
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
721
721
  */
@@ -850,7 +850,7 @@ export declare enum HostEvent {
850
850
  /**
851
851
  * Get TML for the current search.
852
852
  * @example searchEmbed.trigger(HostEvent.GetTML)
853
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
853
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
854
854
  */
855
855
  GetTML = "getTML",
856
856
  /**
@@ -858,7 +858,7 @@ export declare enum HostEvent {
858
858
  * @example
859
859
  * liveboardEmbed.trigger(HostEvent.Share)
860
860
  * searchEmbed.trigger(HostEvent.Share)
861
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
861
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
862
862
  */
863
863
  Share = "share",
864
864
  /**
@@ -866,7 +866,7 @@ export declare enum HostEvent {
866
866
  * @example
867
867
  * liveboardEmbed.trigger(HostEvent.Save)
868
868
  * searchEmbed.trigger(HostEvent.Save)
869
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
869
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
870
870
  */
871
871
  Save = "save"
872
872
  }
@@ -656,8 +656,8 @@ var HostEvent;
656
656
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
657
657
  * @example
658
658
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
659
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
660
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
659
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
660
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
661
661
  * ])
662
662
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
663
663
  */
@@ -792,7 +792,7 @@ var HostEvent;
792
792
  /**
793
793
  * Get TML for the current search.
794
794
  * @example searchEmbed.trigger(HostEvent.GetTML)
795
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
795
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
796
796
  */
797
797
  HostEvent["GetTML"] = "getTML";
798
798
  /**
@@ -800,7 +800,7 @@ var HostEvent;
800
800
  * @example
801
801
  * liveboardEmbed.trigger(HostEvent.Share)
802
802
  * searchEmbed.trigger(HostEvent.Share)
803
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
803
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
804
804
  */
805
805
  HostEvent["Share"] = "share";
806
806
  /**
@@ -808,7 +808,7 @@ var HostEvent;
808
808
  * @example
809
809
  * liveboardEmbed.trigger(HostEvent.Save)
810
810
  * searchEmbed.trigger(HostEvent.Save)
811
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
811
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
812
812
  */
813
813
  HostEvent["Save"] = "save";
814
814
  })(HostEvent || (HostEvent = {}));
@@ -9022,7 +9022,7 @@ function sanity(embedConfig) {
9022
9022
  if (!embedConfig.username) {
9023
9023
  throw new Error('Username not provided with Trusted auth');
9024
9024
  }
9025
- if (!embedConfig.authEndpoint ||
9025
+ if (!embedConfig.authEndpoint &&
9026
9026
  typeof embedConfig.getAuthToken !== 'function') {
9027
9027
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
9028
9028
  }
@@ -9276,7 +9276,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
9276
9276
  });
9277
9277
  }
9278
9278
 
9279
- var name="@thoughtspot/visual-embed-sdk";var version="1.17.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":"./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 --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.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};
9279
+ var name="@thoughtspot/visual-embed-sdk";var version="1.17.2-customcss";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 --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.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};
9280
9280
 
9281
9281
  /**
9282
9282
  * Copyright (c) 2022
@@ -9450,18 +9450,22 @@ class TsEmbed {
9450
9450
  this.embedConfig.autoLogin === true) {
9451
9451
  queryParams[Param.DisableLoginRedirect] = true;
9452
9452
  }
9453
- // TODO remove this
9454
- if (this.embedConfig.customCssUrl) {
9455
- queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
9456
- }
9457
9453
  if (this.embedConfig.authType === AuthType.EmbeddedSSO) {
9458
9454
  queryParams[Param.ForceSAMLAutoRedirect] = true;
9459
9455
  }
9460
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, } = this.viewConfig;
9456
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, customCssUrl, } = this.viewConfig;
9461
9457
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
9462
9458
  this.handleError('You cannot have both hidden actions and visible actions');
9463
9459
  return queryParams;
9464
9460
  }
9461
+ // TODO remove this
9462
+ if (this.embedConfig.customCssUrl) {
9463
+ queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
9464
+ }
9465
+ // If you need to override customCSS URL for a specific embed liveboard
9466
+ if (customCssUrl) {
9467
+ queryParams[Param.CustomCSSUrl] = customCssUrl;
9468
+ }
9465
9469
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
9466
9470
  queryParams[Param.DisableActions] = disabledActions;
9467
9471
  }
@@ -10193,7 +10197,7 @@ class SearchEmbed extends TsEmbed {
10193
10197
  * Embed ThoughtSpot search bar
10194
10198
  *
10195
10199
  * @Category Search Embed
10196
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
10200
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
10197
10201
  */
10198
10202
  class SearchBarEmbed extends TsEmbed {
10199
10203
  constructor(domSelector, viewConfig) {
package/dist/tsembed.js CHANGED
@@ -637,8 +637,8 @@
637
637
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
638
638
  * @example
639
639
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
640
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
641
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
640
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
641
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
642
642
  * ])
643
643
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
644
644
  */
@@ -773,7 +773,7 @@
773
773
  /**
774
774
  * Get TML for the current search.
775
775
  * @example searchEmbed.trigger(HostEvent.GetTML)
776
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
776
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
777
777
  */
778
778
  HostEvent["GetTML"] = "getTML";
779
779
  /**
@@ -781,7 +781,7 @@
781
781
  * @example
782
782
  * liveboardEmbed.trigger(HostEvent.Share)
783
783
  * searchEmbed.trigger(HostEvent.Share)
784
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
784
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
785
785
  */
786
786
  HostEvent["Share"] = "share";
787
787
  /**
@@ -789,7 +789,7 @@
789
789
  * @example
790
790
  * liveboardEmbed.trigger(HostEvent.Save)
791
791
  * searchEmbed.trigger(HostEvent.Save)
792
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
792
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
793
793
  */
794
794
  HostEvent["Save"] = "save";
795
795
  })(exports.HostEvent || (exports.HostEvent = {}));
@@ -8988,7 +8988,7 @@
8988
8988
  if (!embedConfig.username) {
8989
8989
  throw new Error('Username not provided with Trusted auth');
8990
8990
  }
8991
- if (!embedConfig.authEndpoint ||
8991
+ if (!embedConfig.authEndpoint &&
8992
8992
  typeof embedConfig.getAuthToken !== 'function') {
8993
8993
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
8994
8994
  }
@@ -9242,7 +9242,7 @@
9242
9242
  });
9243
9243
  }
9244
9244
 
9245
- var name="@thoughtspot/visual-embed-sdk";var version="1.17.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":"./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 --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.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};
9245
+ var name="@thoughtspot/visual-embed-sdk";var version="1.17.2-customcss";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 --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.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};
9246
9246
 
9247
9247
  /**
9248
9248
  * Copyright (c) 2022
@@ -9416,18 +9416,22 @@
9416
9416
  this.embedConfig.autoLogin === true) {
9417
9417
  queryParams[Param.DisableLoginRedirect] = true;
9418
9418
  }
9419
- // TODO remove this
9420
- if (this.embedConfig.customCssUrl) {
9421
- queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
9422
- }
9423
9419
  if (this.embedConfig.authType === exports.AuthType.EmbeddedSSO) {
9424
9420
  queryParams[Param.ForceSAMLAutoRedirect] = true;
9425
9421
  }
9426
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, } = this.viewConfig;
9422
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, customCssUrl, } = this.viewConfig;
9427
9423
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
9428
9424
  this.handleError('You cannot have both hidden actions and visible actions');
9429
9425
  return queryParams;
9430
9426
  }
9427
+ // TODO remove this
9428
+ if (this.embedConfig.customCssUrl) {
9429
+ queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
9430
+ }
9431
+ // If you need to override customCSS URL for a specific embed liveboard
9432
+ if (customCssUrl) {
9433
+ queryParams[Param.CustomCSSUrl] = customCssUrl;
9434
+ }
9431
9435
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
9432
9436
  queryParams[Param.DisableActions] = disabledActions;
9433
9437
  }
@@ -10154,7 +10158,7 @@
10154
10158
  * Embed ThoughtSpot search bar
10155
10159
  *
10156
10160
  * @Category Search Embed
10157
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
10161
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
10158
10162
  */
10159
10163
  class SearchBarEmbed extends TsEmbed {
10160
10164
  constructor(domSelector, viewConfig) {
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.17.0",
3
+ "version": "1.17.2-customcss",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -109,7 +109,7 @@ function sanity(embedConfig) {
109
109
  if (!embedConfig.username) {
110
110
  throw new Error('Username not provided with Trusted auth');
111
111
  }
112
- if (!embedConfig.authEndpoint ||
112
+ if (!embedConfig.authEndpoint &&
113
113
  typeof embedConfig.getAuthToken !== 'function') {
114
114
  throw new Error('Trusted auth should provide either authEndpoint or getAuthToken');
115
115
  }
@@ -18,7 +18,7 @@ export interface SearchBarViewConfig extends ViewConfig {
18
18
  * Embed ThoughtSpot search bar
19
19
  *
20
20
  * @Category Search Embed
21
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
21
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
22
22
  */
23
23
  export declare class SearchBarEmbed extends TsEmbed {
24
24
  /**
@@ -5,7 +5,7 @@ import { TsEmbed } from './ts-embed';
5
5
  * Embed ThoughtSpot search bar
6
6
  *
7
7
  * @Category Search Embed
8
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
8
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
9
9
  */
10
10
  export class SearchBarEmbed extends TsEmbed {
11
11
  constructor(domSelector, viewConfig) {
@@ -98,6 +98,13 @@ export interface ViewConfig {
98
98
  additionalFlags?: {
99
99
  [key: string]: string | number | boolean;
100
100
  };
101
+ /**
102
+ * Dynamic CSS Url to be injected in the loaded application.
103
+ * You would also need to set `style-src` in the CSP settings.
104
+ * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
105
+ * @default ''
106
+ */
107
+ customCssUrl?: string;
101
108
  }
102
109
  /**
103
110
  * Base class for embedding v2 experience
@@ -178,18 +178,22 @@ export class TsEmbed {
178
178
  this.embedConfig.autoLogin === true) {
179
179
  queryParams[Param.DisableLoginRedirect] = true;
180
180
  }
181
- // TODO remove this
182
- if (this.embedConfig.customCssUrl) {
183
- queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
184
- }
185
181
  if (this.embedConfig.authType === AuthType.EmbeddedSSO) {
186
182
  queryParams[Param.ForceSAMLAutoRedirect] = true;
187
183
  }
188
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, } = this.viewConfig;
184
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, showAlerts, additionalFlags, locale, customCssUrl, } = this.viewConfig;
189
185
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
190
186
  this.handleError('You cannot have both hidden actions and visible actions');
191
187
  return queryParams;
192
188
  }
189
+ // TODO remove this
190
+ if (this.embedConfig.customCssUrl) {
191
+ queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
192
+ }
193
+ // If you need to override customCSS URL for a specific embed liveboard
194
+ if (customCssUrl) {
195
+ queryParams[Param.CustomCSSUrl] = customCssUrl;
196
+ }
193
197
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
194
198
  queryParams[Param.DisableActions] = disabledActions;
195
199
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ts-embed.js","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,2BAA2B,EAC3B,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,UAAU,GACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,QAAQ,EAGR,UAAU,EAEV,MAAM,EAEN,KAAK,GAKR,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAA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AQ,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACJ"}
@@ -714,8 +714,8 @@ export declare enum HostEvent {
714
714
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
715
715
  * @example
716
716
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
717
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
718
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
717
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
718
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
719
719
  * ])
720
720
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
721
721
  */
@@ -850,7 +850,7 @@ export declare enum HostEvent {
850
850
  /**
851
851
  * Get TML for the current search.
852
852
  * @example searchEmbed.trigger(HostEvent.GetTML)
853
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
853
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
854
854
  */
855
855
  GetTML = "getTML",
856
856
  /**
@@ -858,7 +858,7 @@ export declare enum HostEvent {
858
858
  * @example
859
859
  * liveboardEmbed.trigger(HostEvent.Share)
860
860
  * searchEmbed.trigger(HostEvent.Share)
861
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
861
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
862
862
  */
863
863
  Share = "share",
864
864
  /**
@@ -866,7 +866,7 @@ export declare enum HostEvent {
866
866
  * @example
867
867
  * liveboardEmbed.trigger(HostEvent.Save)
868
868
  * searchEmbed.trigger(HostEvent.Save)
869
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
869
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
870
870
  */
871
871
  Save = "save"
872
872
  }
package/lib/src/types.js CHANGED
@@ -501,8 +501,8 @@ export var HostEvent;
501
501
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
502
502
  * @example
503
503
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
504
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
505
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
504
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
505
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
506
506
  * ])
507
507
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
508
508
  */
@@ -637,7 +637,7 @@ export var HostEvent;
637
637
  /**
638
638
  * Get TML for the current search.
639
639
  * @example searchEmbed.trigger(HostEvent.GetTML)
640
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
640
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
641
641
  */
642
642
  HostEvent["GetTML"] = "getTML";
643
643
  /**
@@ -645,7 +645,7 @@ export var HostEvent;
645
645
  * @example
646
646
  * liveboardEmbed.trigger(HostEvent.Share)
647
647
  * searchEmbed.trigger(HostEvent.Share)
648
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
648
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
649
649
  */
650
650
  HostEvent["Share"] = "share";
651
651
  /**
@@ -653,7 +653,7 @@ export var HostEvent;
653
653
  * @example
654
654
  * liveboardEmbed.trigger(HostEvent.Save)
655
655
  * searchEmbed.trigger(HostEvent.Save)
656
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
656
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
657
657
  */
658
658
  HostEvent["Save"] = "save";
659
659
  })(HostEvent || (HostEvent = {}));
@@ -430,7 +430,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
430
430
  * Embed ThoughtSpot search bar
431
431
  *
432
432
  * @Category Search Embed
433
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
433
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
434
434
  */
435
435
  export class SearchBarEmbed extends TsEmbed {
436
436
  /**
@@ -1229,8 +1229,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1229
1229
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
1230
1230
  * @example
1231
1231
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
1232
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
1233
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
1232
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
1233
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
1234
1234
  * ])
1235
1235
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1236
1236
  */
@@ -1365,7 +1365,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1365
1365
  /**
1366
1366
  * Get TML for the current search.
1367
1367
  * @example searchEmbed.trigger(HostEvent.GetTML)
1368
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
1368
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
1369
1369
  */
1370
1370
  GetTML = "getTML",
1371
1371
  /**
@@ -1373,7 +1373,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1373
1373
  * @example
1374
1374
  * liveboardEmbed.trigger(HostEvent.Share)
1375
1375
  * searchEmbed.trigger(HostEvent.Share)
1376
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
1376
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
1377
1377
  */
1378
1378
  Share = "share",
1379
1379
  /**
@@ -1381,7 +1381,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
1381
1381
  * @example
1382
1382
  * liveboardEmbed.trigger(HostEvent.Save)
1383
1383
  * searchEmbed.trigger(HostEvent.Save)
1384
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
1384
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
1385
1385
  */
1386
1386
  Save = "save"
1387
1387
  }
@@ -1715,6 +1715,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
1715
1715
  additionalFlags?: {
1716
1716
  [key: string]: string | number | boolean;
1717
1717
  };
1718
+ /**
1719
+ * Dynamic CSS Url to be injected in the loaded application.
1720
+ * You would also need to set `style-src` in the CSP settings.
1721
+ * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
1722
+ * @default ''
1723
+ */
1724
+ customCssUrl?: string;
1718
1725
  }
1719
1726
  /**
1720
1727
  * Base class for embedding v2 experience
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.17.0",
3
+ "version": "1.17.2-customcss",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
package/src/embed/base.ts CHANGED
@@ -134,7 +134,7 @@ function sanity(embedConfig: EmbedConfig) {
134
134
  }
135
135
 
136
136
  if (
137
- !embedConfig.authEndpoint ||
137
+ !embedConfig.authEndpoint &&
138
138
  typeof embedConfig.getAuthToken !== 'function'
139
139
  ) {
140
140
  throw new Error(
@@ -22,7 +22,7 @@ export interface SearchBarViewConfig extends ViewConfig {
22
22
  * Embed ThoughtSpot search bar
23
23
  *
24
24
  * @Category Search Embed
25
- * @version: SDK: 1.17.0 | ThoughtSpot: 8.10.0
25
+ * @version: SDK: 1.17.0 | ThoughtSpot 8.10.0.cl, 9.0.1-sw
26
26
  */
27
27
  export class SearchBarEmbed extends TsEmbed {
28
28
  /**
@@ -148,6 +148,13 @@ export interface ViewConfig {
148
148
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
149
149
  */
150
150
  additionalFlags?: { [key: string]: string | number | boolean };
151
+ /**
152
+ * Dynamic CSS Url to be injected in the loaded application.
153
+ * You would also need to set `style-src` in the CSP settings.
154
+ * @version SDK: 1.17.2 | ThoughtSpot: 8.4.1-sw, 8.4.0.cl
155
+ * @default ''
156
+ */
157
+ customCssUrl?: string;
151
158
  }
152
159
 
153
160
  /**
@@ -369,10 +376,6 @@ export class TsEmbed {
369
376
  ) {
370
377
  queryParams[Param.DisableLoginRedirect] = true;
371
378
  }
372
- // TODO remove this
373
- if (this.embedConfig.customCssUrl) {
374
- queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
375
- }
376
379
  if (this.embedConfig.authType === AuthType.EmbeddedSSO) {
377
380
  queryParams[Param.ForceSAMLAutoRedirect] = true;
378
381
  }
@@ -385,6 +388,7 @@ export class TsEmbed {
385
388
  showAlerts,
386
389
  additionalFlags,
387
390
  locale,
391
+ customCssUrl,
388
392
  } = this.viewConfig;
389
393
 
390
394
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
@@ -394,6 +398,16 @@ export class TsEmbed {
394
398
  return queryParams;
395
399
  }
396
400
 
401
+ // TODO remove this
402
+ if (this.embedConfig.customCssUrl) {
403
+ queryParams[Param.CustomCSSUrl] = this.embedConfig.customCssUrl;
404
+ }
405
+
406
+ // If you need to override customCSS URL for a specific embed liveboard
407
+ if (customCssUrl) {
408
+ queryParams[Param.CustomCSSUrl] = customCssUrl;
409
+ }
410
+
397
411
  if (disabledActions?.length) {
398
412
  queryParams[Param.DisableActions] = disabledActions;
399
413
  }
package/src/types.ts CHANGED
@@ -286,7 +286,7 @@ export type MessageOptions = {
286
286
  export type MessageCallback = (
287
287
  /* payload: Message payload contain type, data and status */
288
288
  payload: MessagePayload,
289
- /* responder: Messsage callback function triggered when embed event initiated */
289
+ /* responder: Message callback function triggered when embed event initiated */
290
290
  responder?: (data: any) => void,
291
291
  ) => void;
292
292
  /**
@@ -754,8 +754,8 @@ export enum HostEvent {
754
754
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
755
755
  * @example
756
756
  * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
757
- * {columnName: "state",operator: "EQ",values: ["michigan"]},
758
- * {columnName: "item type",operator: "EQ",values: ["Jackets"]}
757
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
758
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
759
759
  * ])
760
760
  * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
761
761
  */
@@ -890,7 +890,7 @@ export enum HostEvent {
890
890
  /**
891
891
  * Get TML for the current search.
892
892
  * @example searchEmbed.trigger(HostEvent.GetTML)
893
- * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl
893
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
894
894
  */
895
895
  GetTML = 'getTML',
896
896
  /**
@@ -898,7 +898,7 @@ export enum HostEvent {
898
898
  * @example
899
899
  * liveboardEmbed.trigger(HostEvent.Share)
900
900
  * searchEmbed.trigger(HostEvent.Share)
901
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
901
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
902
902
  */
903
903
  Share = 'share',
904
904
  /**
@@ -906,7 +906,7 @@ export enum HostEvent {
906
906
  * @example
907
907
  * liveboardEmbed.trigger(HostEvent.Save)
908
908
  * searchEmbed.trigger(HostEvent.Save)
909
- * @version SDK: 1.18.0 | Thoughtspot: 9.0.0.cl
909
+ * @version SDK: 1.19.0 | Thoughtspot: 9.0.0.cl, 9.0.1-sw
910
910
  */
911
911
  Save = 'save',
912
912
  }