@thoughtspot/visual-embed-sdk 1.21.0-sage.0 → 1.21.0-sage.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/cjs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.21.0-sage.0",
3
+ "version": "1.21.0-sage.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -30,6 +30,31 @@ export interface SageViewConfig extends ViewConfig {
30
30
  * flag to hide worksheet selector. default false.
31
31
  */
32
32
  hideWorksheetSelector?: boolean;
33
+ /**
34
+ * If true, the main navigation bar within the ThoughtSpot app
35
+ * is displayed. By default, the navigation bar is hidden.
36
+ */
37
+ showPrimaryNavbar?: boolean;
38
+ /**
39
+ * If true, help and profile buttons will hide on NavBar. By default,
40
+ * they are shown.
41
+ */
42
+ disableProfileAndHelp?: boolean;
43
+ /**
44
+ * If true, application switcher button will hide on NavBar. By default,
45
+ * they are shown.
46
+ */
47
+ hideApplicationSwitcher?: boolean;
48
+ /**
49
+ * If true, org switcher button will hide on NavBar. By default,
50
+ * they are shown.
51
+ */
52
+ hideOrgSwitcher?: boolean;
53
+ /**
54
+ * If set to true, the embedded object container dynamically resizes
55
+ * according to the height of the pages which support fullHeight mode.
56
+ *
57
+ */
33
58
  fullHeight?: boolean;
34
59
  }
35
60
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAqC,UAAU,EACrE,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,UAA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OAAO,CAAC;IAC5B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAC,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,qCAAqC,UAQjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;IAErC,OAAO,CAAC,aAAa,CAAO;gBAGhB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAShE;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IA0ClC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB,CAExB;IAEF,OAAO,CAAC,iBAAiB,CAGvB;IAEF,OAAO,CAAC,mCAAmC,CAIzC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
@@ -15,6 +15,11 @@ const ts_embed_1 = require("./ts-embed");
15
15
  exports.HiddenActionItemByDefaultForSageEmbed = [
16
16
  types_1.Action.Save,
17
17
  types_1.Action.Pin,
18
+ types_1.Action.EditACopy,
19
+ types_1.Action.SaveAsView,
20
+ types_1.Action.UpdateTML,
21
+ types_1.Action.EditTML,
22
+ types_1.Action.AnswerDelete,
18
23
  ];
19
24
  /**
20
25
  * Embed ThoughtSpot search
@@ -58,14 +63,21 @@ class SageEmbed extends ts_embed_1.V1Embed {
58
63
  */
59
64
  getEmbedParams() {
60
65
  var _a, _b;
61
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
66
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
62
67
  const params = {};
63
68
  params[types_1.Param.EmbedApp] = true;
69
+ params[types_1.Param.PrimaryNavHidden] = !showPrimaryNavbar;
70
+ params[types_1.Param.HideProfleAndHelp] = !!disableProfileAndHelp;
71
+ params[types_1.Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
72
+ params[types_1.Param.HideOrgSwitcher] = !!hideOrgSwitcher;
64
73
  params[types_1.Param.HideActions] = [...((_a = params[types_1.Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
65
74
  params[types_1.Param.HideActions] = [
66
75
  ...((_b = params[types_1.Param.HideActions]) !== null && _b !== void 0 ? _b : []),
67
76
  ...exports.HiddenActionItemByDefaultForSageEmbed,
68
77
  ];
78
+ if (fullHeight === true) {
79
+ params[types_1.Param.fullHeight] = true;
80
+ }
69
81
  if (hideEurekaResults) {
70
82
  params[types_1.Param.HideEurekaResults] = true;
71
83
  }
@@ -78,12 +90,7 @@ class SageEmbed extends ts_embed_1.V1Embed {
78
90
  if (hideWorksheetSelector) {
79
91
  params[types_1.Param.HideWorksheetSelector] = true;
80
92
  }
81
- const queryParamsString = (0, utils_1.getQueryParamString)(params, true);
82
- let query = '';
83
- if (queryParamsString) {
84
- query = `?${queryParamsString}`;
85
- }
86
- return query;
93
+ return (0, utils_1.getQueryParamString)(params, true);
87
94
  }
88
95
  /**
89
96
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -1 +1 @@
1
- {"version":3,"file":"sage.js","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,oCAEkB;AAClB,oCAA+C;AAC/C,yCAAqC;AA0BxB,QAAA,qCAAqC,GAAG;IACjD,cAAM,CAAC,IAAI;IACX,cAAM,CAAC,GAAG;CACb,CAAC;AACF;;;;GAIG;AACH,MAAa,SAAU,SAAQ,kBAAO;IASlC,kDAAkD;IAClD,YAAY,WAAwB,EAAE,UAA0B;QAC5D,KAAK,CA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AAA,MAAM,CAAC,aAAK,CAAC,WAAW,CAAC,mCAAI,EAAE,CAAC;YACpC,GAAG,6CAAqC;SAC3C,CAAC;QACF,IAAI,UAAU,KAAK,IAAI,EAAE;YACrB,MAAM,CAAC,aAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;SACnC;QACD,IAAI,iBAAiB,EAAE;YACnB,MAAM,CAAC,aAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;SAC1C;QACD,IAAI,WAAW,EAAE;YACb,MAAM,CAAC,aAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;SACpC;QACD,IAAI,sBAAsB,EAAE;YACxB,MAAM,CAAC,aAAK,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;SAC/C;QACD,IAAI,qBAAqB,EAAE;YACvB,MAAM,CAAC,aAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;SAC9C;QACD,OAAO,IAAA,2BAAmB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAuBD;;;;;OAKG;IACK,YAAY;QAChB,MAAM,IAAI,GAAG,QAAQ,CAAC;QACtB,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE,CAAC;QAE5D,OAAO,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAlHD,8BAkHC"}
@@ -30,6 +30,31 @@ export interface SageViewConfig extends ViewConfig {
30
30
  * flag to hide worksheet selector. default false.
31
31
  */
32
32
  hideWorksheetSelector?: boolean;
33
+ /**
34
+ * If true, the main navigation bar within the ThoughtSpot app
35
+ * is displayed. By default, the navigation bar is hidden.
36
+ */
37
+ showPrimaryNavbar?: boolean;
38
+ /**
39
+ * If true, help and profile buttons will hide on NavBar. By default,
40
+ * they are shown.
41
+ */
42
+ disableProfileAndHelp?: boolean;
43
+ /**
44
+ * If true, application switcher button will hide on NavBar. By default,
45
+ * they are shown.
46
+ */
47
+ hideApplicationSwitcher?: boolean;
48
+ /**
49
+ * If true, org switcher button will hide on NavBar. By default,
50
+ * they are shown.
51
+ */
52
+ hideOrgSwitcher?: boolean;
53
+ /**
54
+ * If set to true, the embedded object container dynamically resizes
55
+ * according to the height of the pages which support fullHeight mode.
56
+ *
57
+ */
33
58
  fullHeight?: boolean;
34
59
  }
35
60
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAqC,UAAU,EACrE,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAC,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;IAErC,OAAO,CAAC,aAAa,CAAO;gBAGhB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAShE;;;;;OAKG;IACH,SAA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C;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB,CAExB;IAEF,OAAO,CAAC,iBAAiB,CAGvB;IAEF,OAAO,CAAC,mCAAmC,CAIzC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
@@ -26662,7 +26662,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
26662
26662
  });
26663
26663
  }
26664
26664
 
26665
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
26665
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
26666
26666
 
26667
26667
  /**
26668
26668
  * Copyright (c) 2022
@@ -27449,6 +27449,11 @@ class SearchBarEmbed extends TsEmbed {
27449
27449
  const HiddenActionItemByDefaultForSageEmbed = [
27450
27450
  Action.Save,
27451
27451
  Action.Pin,
27452
+ Action.EditACopy,
27453
+ Action.SaveAsView,
27454
+ Action.UpdateTML,
27455
+ Action.EditTML,
27456
+ Action.AnswerDelete,
27452
27457
  ];
27453
27458
  /**
27454
27459
  * Embed ThoughtSpot search
@@ -27492,14 +27497,21 @@ class SageEmbed extends V1Embed {
27492
27497
  */
27493
27498
  getEmbedParams() {
27494
27499
  var _a, _b;
27495
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
27500
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
27496
27501
  const params = {};
27497
27502
  params[Param.EmbedApp] = true;
27503
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
27504
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
27505
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
27506
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
27498
27507
  params[Param.HideActions] = [...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
27499
27508
  params[Param.HideActions] = [
27500
27509
  ...((_b = params[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
27501
27510
  ...HiddenActionItemByDefaultForSageEmbed,
27502
27511
  ];
27512
+ if (fullHeight === true) {
27513
+ params[Param.fullHeight] = true;
27514
+ }
27503
27515
  if (hideEurekaResults) {
27504
27516
  params[Param.HideEurekaResults] = true;
27505
27517
  }
@@ -27512,12 +27524,7 @@ class SageEmbed extends V1Embed {
27512
27524
  if (hideWorksheetSelector) {
27513
27525
  params[Param.HideWorksheetSelector] = true;
27514
27526
  }
27515
- const queryParamsString = getQueryParamString(params, true);
27516
- let query = '';
27517
- if (queryParamsString) {
27518
- query = `?${queryParamsString}`;
27519
- }
27520
- return query;
27527
+ return getQueryParamString(params, true);
27521
27528
  }
27522
27529
  /**
27523
27530
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -26600,7 +26600,7 @@
26600
26600
  });
26601
26601
  }
26602
26602
 
26603
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
26603
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
26604
26604
 
26605
26605
  /**
26606
26606
  * Copyright (c) 2022
@@ -27387,6 +27387,11 @@
27387
27387
  const HiddenActionItemByDefaultForSageEmbed = [
27388
27388
  exports.Action.Save,
27389
27389
  exports.Action.Pin,
27390
+ exports.Action.EditACopy,
27391
+ exports.Action.SaveAsView,
27392
+ exports.Action.UpdateTML,
27393
+ exports.Action.EditTML,
27394
+ exports.Action.AnswerDelete,
27390
27395
  ];
27391
27396
  /**
27392
27397
  * Embed ThoughtSpot search
@@ -27430,14 +27435,21 @@
27430
27435
  */
27431
27436
  getEmbedParams() {
27432
27437
  var _a, _b;
27433
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
27438
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
27434
27439
  const params = {};
27435
27440
  params[Param.EmbedApp] = true;
27441
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
27442
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
27443
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
27444
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
27436
27445
  params[Param.HideActions] = [...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
27437
27446
  params[Param.HideActions] = [
27438
27447
  ...((_b = params[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
27439
27448
  ...HiddenActionItemByDefaultForSageEmbed,
27440
27449
  ];
27450
+ if (fullHeight === true) {
27451
+ params[Param.fullHeight] = true;
27452
+ }
27441
27453
  if (hideEurekaResults) {
27442
27454
  params[Param.HideEurekaResults] = true;
27443
27455
  }
@@ -27450,12 +27462,7 @@
27450
27462
  if (hideWorksheetSelector) {
27451
27463
  params[Param.HideWorksheetSelector] = true;
27452
27464
  }
27453
- const queryParamsString = getQueryParamString(params, true);
27454
- let query = '';
27455
- if (queryParamsString) {
27456
- query = `?${queryParamsString}`;
27457
- }
27458
- return query;
27465
+ return getQueryParamString(params, true);
27459
27466
  }
27460
27467
  /**
27461
27468
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -27509,7 +27509,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
27509
27509
  });
27510
27510
  }
27511
27511
 
27512
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
27512
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
27513
27513
 
27514
27514
  /**
27515
27515
  * Copyright (c) 2022
@@ -28776,6 +28776,11 @@ class SearchBarEmbed extends TsEmbed {
28776
28776
  const HiddenActionItemByDefaultForSageEmbed = [
28777
28777
  Action.Save,
28778
28778
  Action.Pin,
28779
+ Action.EditACopy,
28780
+ Action.SaveAsView,
28781
+ Action.UpdateTML,
28782
+ Action.EditTML,
28783
+ Action.AnswerDelete,
28779
28784
  ];
28780
28785
  /**
28781
28786
  * Embed ThoughtSpot search
@@ -28819,14 +28824,21 @@ class SageEmbed extends V1Embed {
28819
28824
  */
28820
28825
  getEmbedParams() {
28821
28826
  var _a, _b;
28822
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
28827
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
28823
28828
  const params = {};
28824
28829
  params[Param.EmbedApp] = true;
28830
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
28831
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
28832
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
28833
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
28825
28834
  params[Param.HideActions] = [...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
28826
28835
  params[Param.HideActions] = [
28827
28836
  ...((_b = params[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
28828
28837
  ...HiddenActionItemByDefaultForSageEmbed,
28829
28838
  ];
28839
+ if (fullHeight === true) {
28840
+ params[Param.fullHeight] = true;
28841
+ }
28830
28842
  if (hideEurekaResults) {
28831
28843
  params[Param.HideEurekaResults] = true;
28832
28844
  }
@@ -28839,12 +28851,7 @@ class SageEmbed extends V1Embed {
28839
28851
  if (hideWorksheetSelector) {
28840
28852
  params[Param.HideWorksheetSelector] = true;
28841
28853
  }
28842
- const queryParamsString = getQueryParamString(params, true);
28843
- let query = '';
28844
- if (queryParamsString) {
28845
- query = `?${queryParamsString}`;
28846
- }
28847
- return query;
28854
+ return getQueryParamString(params, true);
28848
28855
  }
28849
28856
  /**
28850
28857
  * Construct the URL of the embedded ThoughtSpot sage to be
package/dist/tsembed.js CHANGED
@@ -27407,7 +27407,7 @@
27407
27407
  });
27408
27408
  }
27409
27409
 
27410
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
27410
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-sage.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/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
27411
27411
 
27412
27412
  /**
27413
27413
  * Copyright (c) 2022
@@ -28669,6 +28669,11 @@
28669
28669
  const HiddenActionItemByDefaultForSageEmbed = [
28670
28670
  exports.Action.Save,
28671
28671
  exports.Action.Pin,
28672
+ exports.Action.EditACopy,
28673
+ exports.Action.SaveAsView,
28674
+ exports.Action.UpdateTML,
28675
+ exports.Action.EditTML,
28676
+ exports.Action.AnswerDelete,
28672
28677
  ];
28673
28678
  /**
28674
28679
  * Embed ThoughtSpot search
@@ -28712,14 +28717,21 @@
28712
28717
  */
28713
28718
  getEmbedParams() {
28714
28719
  var _a, _b;
28715
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
28720
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
28716
28721
  const params = {};
28717
28722
  params[Param.EmbedApp] = true;
28723
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
28724
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
28725
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
28726
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
28718
28727
  params[Param.HideActions] = [...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
28719
28728
  params[Param.HideActions] = [
28720
28729
  ...((_b = params[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
28721
28730
  ...HiddenActionItemByDefaultForSageEmbed,
28722
28731
  ];
28732
+ if (fullHeight === true) {
28733
+ params[Param.fullHeight] = true;
28734
+ }
28723
28735
  if (hideEurekaResults) {
28724
28736
  params[Param.HideEurekaResults] = true;
28725
28737
  }
@@ -28732,12 +28744,7 @@
28732
28744
  if (hideWorksheetSelector) {
28733
28745
  params[Param.HideWorksheetSelector] = true;
28734
28746
  }
28735
- const queryParamsString = getQueryParamString(params, true);
28736
- let query = '';
28737
- if (queryParamsString) {
28738
- query = `?${queryParamsString}`;
28739
- }
28740
- return query;
28747
+ return getQueryParamString(params, true);
28741
28748
  }
28742
28749
  /**
28743
28750
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -177,6 +177,31 @@ export interface SageViewConfig extends ViewConfig {
177
177
  * flag to hide worksheet selector. default false.
178
178
  */
179
179
  hideWorksheetSelector?: boolean;
180
+ /**
181
+ * If true, the main navigation bar within the ThoughtSpot app
182
+ * is displayed. By default, the navigation bar is hidden.
183
+ */
184
+ showPrimaryNavbar?: boolean;
185
+ /**
186
+ * If true, help and profile buttons will hide on NavBar. By default,
187
+ * they are shown.
188
+ */
189
+ disableProfileAndHelp?: boolean;
190
+ /**
191
+ * If true, application switcher button will hide on NavBar. By default,
192
+ * they are shown.
193
+ */
194
+ hideApplicationSwitcher?: boolean;
195
+ /**
196
+ * If true, org switcher button will hide on NavBar. By default,
197
+ * they are shown.
198
+ */
199
+ hideOrgSwitcher?: boolean;
200
+ /**
201
+ * If set to true, the embedded object container dynamically resizes
202
+ * according to the height of the pages which support fullHeight mode.
203
+ *
204
+ */
180
205
  fullHeight?: boolean;
181
206
  }
182
207
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
@@ -2814,6 +2814,31 @@ export interface SageViewConfig extends ViewConfig {
2814
2814
  * flag to hide worksheet selector. default false.
2815
2815
  */
2816
2816
  hideWorksheetSelector?: boolean;
2817
+ /**
2818
+ * If true, the main navigation bar within the ThoughtSpot app
2819
+ * is displayed. By default, the navigation bar is hidden.
2820
+ */
2821
+ showPrimaryNavbar?: boolean;
2822
+ /**
2823
+ * If true, help and profile buttons will hide on NavBar. By default,
2824
+ * they are shown.
2825
+ */
2826
+ disableProfileAndHelp?: boolean;
2827
+ /**
2828
+ * If true, application switcher button will hide on NavBar. By default,
2829
+ * they are shown.
2830
+ */
2831
+ hideApplicationSwitcher?: boolean;
2832
+ /**
2833
+ * If true, org switcher button will hide on NavBar. By default,
2834
+ * they are shown.
2835
+ */
2836
+ hideOrgSwitcher?: boolean;
2837
+ /**
2838
+ * If set to true, the embedded object container dynamically resizes
2839
+ * according to the height of the pages which support fullHeight mode.
2840
+ *
2841
+ */
2817
2842
  fullHeight?: boolean;
2818
2843
  }
2819
2844
  export const HiddenActionItemByDefaultForSageEmbed: Action[];
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.21.0-sage.0",
3
+ "version": "1.21.0-sage.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -30,6 +30,31 @@ export interface SageViewConfig extends ViewConfig {
30
30
  * flag to hide worksheet selector. default false.
31
31
  */
32
32
  hideWorksheetSelector?: boolean;
33
+ /**
34
+ * If true, the main navigation bar within the ThoughtSpot app
35
+ * is displayed. By default, the navigation bar is hidden.
36
+ */
37
+ showPrimaryNavbar?: boolean;
38
+ /**
39
+ * If true, help and profile buttons will hide on NavBar. By default,
40
+ * they are shown.
41
+ */
42
+ disableProfileAndHelp?: boolean;
43
+ /**
44
+ * If true, application switcher button will hide on NavBar. By default,
45
+ * they are shown.
46
+ */
47
+ hideApplicationSwitcher?: boolean;
48
+ /**
49
+ * If true, org switcher button will hide on NavBar. By default,
50
+ * they are shown.
51
+ */
52
+ hideOrgSwitcher?: boolean;
53
+ /**
54
+ * If set to true, the embedded object container dynamically resizes
55
+ * according to the height of the pages which support fullHeight mode.
56
+ *
57
+ */
33
58
  fullHeight?: boolean;
34
59
  }
35
60
  export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
@@ -1 +1 @@
1
- {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACH,MAAM,EAAE,WAAW,EAAqC,UAAU,EACrE,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAC,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,qCAAqC,UAGjD,CAAC;AACF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC;IAErC,OAAO,CAAC,aAAa,CAAO;gBAGhB,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc;IAShE;;;;;OAKG;IACH,SAAS,CAAC,cAAc,IAAI,MAAM;IAgClC;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB,CAExB;IAEF,OAAO,CAAC,iBAAiB,CAGvB;IAEF,OAAO,CAAC,mCAAmC,CAIzC;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAOpB;;;;OAIG;IACI,MAAM,IAAI,SAAS;CAQ7B"}
1
+ {"version":3,"file":"sage.d.ts","sourceRoot":"","sources":["../../../src/embed/sage.ts"],"names":[],"mappings":"AA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action.Pin,
15
+ Action.EditACopy,
16
+ Action.SaveAsView,
17
+ Action.UpdateTML,
18
+ Action.EditTML,
19
+ Action.AnswerDelete,
15
20
  ];
16
21
  /**
17
22
  * Embed ThoughtSpot search
@@ -55,14 +60,21 @@ export class SageEmbed extends V1Embed {
55
60
  */
56
61
  getEmbedParams() {
57
62
  var _a, _b;
58
- const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
63
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, fullHeight, } = this.viewConfig;
59
64
  const params = {};
60
65
  params[Param.EmbedApp] = true;
66
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
67
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
68
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
69
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
61
70
  params[Param.HideActions] = [...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
62
71
  params[Param.HideActions] = [
63
72
  ...((_b = params[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
64
73
  ...HiddenActionItemByDefaultForSageEmbed,
65
74
  ];
75
+ if (fullHeight === true) {
76
+ params[Param.fullHeight] = true;
77
+ }
66
78
  if (hideEurekaResults) {
67
79
  params[Param.HideEurekaResults] = true;
68
80
  }
@@ -75,12 +87,7 @@ export class SageEmbed extends V1Embed {
75
87
  if (hideWorksheetSelector) {
76
88
  params[Param.HideWorksheetSelector] = true;
77
89
  }
78
- const queryParamsString = getQueryParamString(params, true);
79
- let query = '';
80
- if (queryParamsString) {
81
- query = `?${queryParamsString}`;
82
- }
83
- return query;
90
+ return getQueryParamString(params, true);
84
91
  }
85
92
  /**
86
93
  * Construct the URL of the embedded ThoughtSpot sage to be
@@ -1 +1 @@
1
- {"version":3,"file":"sage.js","sourceRoot":"","sources":["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G,QAAQ,CAAC;QACtB,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE,CAAC;QAE5D,OAAO,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IACzE,CAAC;IAED;;;;OAIG;IACI,MAAM;QACT,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QAExB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.21.0-sage.0",
3
+ "version": "1.21.0-sage.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
package/src/embed/sage.ts CHANGED
@@ -35,11 +35,41 @@ export interface SageViewConfig extends ViewConfig {
35
35
  * flag to hide worksheet selector. default false.
36
36
  */
37
37
  hideWorksheetSelector?: boolean,
38
+ /**
39
+ * If true, the main navigation bar within the ThoughtSpot app
40
+ * is displayed. By default, the navigation bar is hidden.
41
+ */
42
+ showPrimaryNavbar?: boolean;
43
+ /**
44
+ * If true, help and profile buttons will hide on NavBar. By default,
45
+ * they are shown.
46
+ */
47
+ disableProfileAndHelp?: boolean;
48
+ /**
49
+ * If true, application switcher button will hide on NavBar. By default,
50
+ * they are shown.
51
+ */
52
+ hideApplicationSwitcher?: boolean;
53
+ /**
54
+ * If true, org switcher button will hide on NavBar. By default,
55
+ * they are shown.
56
+ */
57
+ hideOrgSwitcher?: boolean;
58
+ /**
59
+ * If set to true, the embedded object container dynamically resizes
60
+ * according to the height of the pages which support fullHeight mode.
61
+ *
62
+ */
38
63
  fullHeight?:boolean;
39
64
  }
40
65
  export const HiddenActionItemByDefaultForSageEmbed = [
41
66
  Action.Save,
42
67
  Action.Pin,
68
+ Action.EditACopy,
69
+ Action.SaveAsView,
70
+ Action.UpdateTML,
71
+ Action.EditTML,
72
+ Action.AnswerDelete,
43
73
  ];
44
74
  /**
45
75
  * Embed ThoughtSpot search
@@ -73,16 +103,31 @@ export class SageEmbed extends V1Embed {
73
103
  */
74
104
  protected getEmbedParams(): string {
75
105
  const {
76
- hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector,
106
+ hideEurekaResults,
107
+ isSageEmbed,
108
+ disableWorksheetChange,
109
+ hideWorksheetSelector,
110
+ showPrimaryNavbar,
111
+ disableProfileAndHelp,
112
+ hideApplicationSwitcher,
113
+ hideOrgSwitcher,
114
+ fullHeight,
77
115
  } = this.viewConfig;
78
116
 
79
117
  const params = {};
80
118
  params[Param.EmbedApp] = true;
119
+ params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
120
+ params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
121
+ params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
122
+ params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
81
123
  params[Param.HideActions] = [...(params[Param.HideActions] ?? [])];
82
124
  params[Param.HideActions] = [
83
125
  ...(params[Param.HideActions] ?? []),
84
126
  ...HiddenActionItemByDefaultForSageEmbed,
85
127
  ];
128
+ if (fullHeight === true) {
129
+ params[Param.fullHeight] = true;
130
+ }
86
131
  if (hideEurekaResults) {
87
132
  params[Param.HideEurekaResults] = true;
88
133
  }
@@ -95,12 +140,7 @@ export class SageEmbed extends V1Embed {
95
140
  if (hideWorksheetSelector) {
96
141
  params[Param.HideWorksheetSelector] = true;
97
142
  }
98
- const queryParamsString = getQueryParamString(params, true);
99
- let query = '';
100
- if (queryParamsString) {
101
- query = `?${queryParamsString}`;
102
- }
103
- return query;
143
+ return getQueryParamString(params, true);
104
144
  }
105
145
 
106
146
  /**