@thoughtspot/visual-embed-sdk 1.25.0-alpha.2 → 1.25.0-alpha.4

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.
Files changed (155) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +35 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +5 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +19 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts +37 -3
  9. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  10. package/cjs/src/embed/liveboard.js +11 -1
  11. package/cjs/src/embed/liveboard.js.map +1 -1
  12. package/cjs/src/embed/liveboard.spec.js +11 -0
  13. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  14. package/cjs/src/embed/sage.d.ts +45 -7
  15. package/cjs/src/embed/sage.d.ts.map +1 -1
  16. package/cjs/src/embed/sage.js +9 -3
  17. package/cjs/src/embed/sage.js.map +1 -1
  18. package/cjs/src/embed/sage.spec.js +85 -6
  19. package/cjs/src/embed/sage.spec.js.map +1 -1
  20. package/cjs/src/embed/search-bar.d.ts +1 -1
  21. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  22. package/cjs/src/embed/search-bar.js.map +1 -1
  23. package/cjs/src/embed/search.d.ts +1 -1
  24. package/cjs/src/embed/search.d.ts.map +1 -1
  25. package/cjs/src/embed/search.js.map +1 -1
  26. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  27. package/cjs/src/embed/ts-embed.js +1 -10
  28. package/cjs/src/embed/ts-embed.js.map +1 -1
  29. package/cjs/src/embed/ts-embed.spec.js +3 -3
  30. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  31. package/cjs/src/types.d.ts +23 -28
  32. package/cjs/src/types.d.ts.map +1 -1
  33. package/cjs/src/types.js +20 -5
  34. package/cjs/src/types.js.map +1 -1
  35. package/cjs/src/utils/graphql/answerService/answerService.d.ts +2 -1
  36. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  37. package/cjs/src/utils/graphql/answerService/answerService.js +3 -5
  38. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  39. package/cjs/src/utils/graphql/answerService/answerService.spec.js +1 -1
  40. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  41. package/cjs/src/utils/graphql/sourceService.d.ts.map +1 -1
  42. package/cjs/src/utils/graphql/sourceService.js +3 -1
  43. package/cjs/src/utils/graphql/sourceService.js.map +1 -1
  44. package/cjs/src/utils.js +2 -2
  45. package/cjs/src/utils.js.map +1 -1
  46. package/cjs/src/utils.spec.js +10 -0
  47. package/cjs/src/utils.spec.js.map +1 -1
  48. package/dist/src/embed/app.d.ts +35 -1
  49. package/dist/src/embed/app.d.ts.map +1 -1
  50. package/dist/src/embed/liveboard.d.ts +37 -3
  51. package/dist/src/embed/liveboard.d.ts.map +1 -1
  52. package/dist/src/embed/sage.d.ts +45 -7
  53. package/dist/src/embed/sage.d.ts.map +1 -1
  54. package/dist/src/embed/search-bar.d.ts +1 -1
  55. package/dist/src/embed/search-bar.d.ts.map +1 -1
  56. package/dist/src/embed/search.d.ts +1 -1
  57. package/dist/src/embed/search.d.ts.map +1 -1
  58. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  59. package/dist/src/types.d.ts +23 -28
  60. package/dist/src/types.d.ts.map +1 -1
  61. package/dist/src/utils/graphql/answerService/answerService.d.ts +2 -1
  62. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  63. package/dist/src/utils/graphql/sourceService.d.ts.map +1 -1
  64. package/dist/tsembed-react.es.js +55 -29
  65. package/dist/tsembed-react.js +55 -29
  66. package/dist/tsembed.es.js +55 -29
  67. package/dist/tsembed.js +55 -29
  68. package/dist/visual-embed-sdk-react-full.d.ts +144 -42
  69. package/dist/visual-embed-sdk-react.d.ts +144 -42
  70. package/dist/visual-embed-sdk.d.ts +144 -42
  71. package/lib/package.json +1 -1
  72. package/lib/src/embed/app.d.ts +35 -1
  73. package/lib/src/embed/app.d.ts.map +1 -1
  74. package/lib/src/embed/app.js +5 -1
  75. package/lib/src/embed/app.js.map +1 -1
  76. package/lib/src/embed/app.spec.js +19 -0
  77. package/lib/src/embed/app.spec.js.map +1 -1
  78. package/lib/src/embed/liveboard.d.ts +37 -3
  79. package/lib/src/embed/liveboard.d.ts.map +1 -1
  80. package/lib/src/embed/liveboard.js +11 -1
  81. package/lib/src/embed/liveboard.js.map +1 -1
  82. package/lib/src/embed/liveboard.spec.js +11 -0
  83. package/lib/src/embed/liveboard.spec.js.map +1 -1
  84. package/lib/src/embed/sage.d.ts +45 -7
  85. package/lib/src/embed/sage.d.ts.map +1 -1
  86. package/lib/src/embed/sage.js +9 -3
  87. package/lib/src/embed/sage.js.map +1 -1
  88. package/lib/src/embed/sage.spec.js +85 -6
  89. package/lib/src/embed/sage.spec.js.map +1 -1
  90. package/lib/src/embed/search-bar.d.ts +1 -1
  91. package/lib/src/embed/search-bar.d.ts.map +1 -1
  92. package/lib/src/embed/search-bar.js.map +1 -1
  93. package/lib/src/embed/search.d.ts +1 -1
  94. package/lib/src/embed/search.d.ts.map +1 -1
  95. package/lib/src/embed/search.js.map +1 -1
  96. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  97. package/lib/src/embed/ts-embed.js +1 -10
  98. package/lib/src/embed/ts-embed.js.map +1 -1
  99. package/lib/src/embed/ts-embed.spec.js +3 -3
  100. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  101. package/lib/src/types.d.ts +23 -28
  102. package/lib/src/types.d.ts.map +1 -1
  103. package/lib/src/types.js +20 -5
  104. package/lib/src/types.js.map +1 -1
  105. package/lib/src/utils/graphql/answerService/answerService.d.ts +2 -1
  106. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  107. package/lib/src/utils/graphql/answerService/answerService.js +3 -5
  108. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  109. package/lib/src/utils/graphql/answerService/answerService.spec.js +1 -1
  110. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  111. package/lib/src/utils/graphql/sourceService.d.ts.map +1 -1
  112. package/lib/src/utils/graphql/sourceService.js +3 -1
  113. package/lib/src/utils/graphql/sourceService.js.map +1 -1
  114. package/lib/src/utils.js +2 -2
  115. package/lib/src/utils.js.map +1 -1
  116. package/lib/src/utils.spec.js +10 -0
  117. package/lib/src/utils.spec.js.map +1 -1
  118. package/lib/src/visual-embed-sdk.d.ts +144 -42
  119. package/package.json +1 -1
  120. package/src/embed/app.spec.ts +29 -0
  121. package/src/embed/app.ts +43 -1
  122. package/src/embed/liveboard.spec.ts +16 -0
  123. package/src/embed/liveboard.ts +53 -3
  124. package/src/embed/sage.spec.ts +119 -6
  125. package/src/embed/sage.ts +63 -13
  126. package/src/embed/search-bar.tsx +11 -1
  127. package/src/embed/search.ts +5 -1
  128. package/src/embed/ts-embed.spec.ts +3 -3
  129. package/src/embed/ts-embed.ts +0 -12
  130. package/src/types.ts +21 -26
  131. package/src/utils/graphql/answerService/answerService.spec.ts +1 -1
  132. package/src/utils/graphql/answerService/answerService.ts +3 -5
  133. package/src/utils/graphql/sourceService.ts +4 -1
  134. package/src/utils.spec.ts +13 -0
  135. package/src/utils.ts +2 -2
  136. package/cjs/src/utils/answerService.d.ts +0 -10
  137. package/cjs/src/utils/answerService.d.ts.map +0 -1
  138. package/cjs/src/utils/answerService.js +0 -61
  139. package/cjs/src/utils/answerService.js.map +0 -1
  140. package/cjs/src/utils/answerService.spec.d.ts +0 -2
  141. package/cjs/src/utils/answerService.spec.d.ts.map +0 -1
  142. package/cjs/src/utils/answerService.spec.js +0 -31
  143. package/cjs/src/utils/answerService.spec.js.map +0 -1
  144. package/dist/src/utils/answerService.d.ts +0 -10
  145. package/dist/src/utils/answerService.d.ts.map +0 -1
  146. package/dist/src/utils/answerService.spec.d.ts +0 -2
  147. package/dist/src/utils/answerService.spec.d.ts.map +0 -1
  148. package/lib/src/utils/answerService.d.ts +0 -10
  149. package/lib/src/utils/answerService.d.ts.map +0 -1
  150. package/lib/src/utils/answerService.js +0 -57
  151. package/lib/src/utils/answerService.js.map +0 -1
  152. package/lib/src/utils/answerService.spec.d.ts +0 -2
  153. package/lib/src/utils/answerService.spec.d.ts.map +0 -1
  154. package/lib/src/utils/answerService.spec.js +0 -29
  155. package/lib/src/utils/answerService.spec.js.map +0 -1
@@ -177,9 +177,9 @@ const getFilterQuery = (runtimeFilters) => {
177
177
  const filters = runtimeFilters.map((filter, valueIndex) => {
178
178
  const index = valueIndex + 1;
179
179
  const filterExpr = [];
180
- filterExpr.push(`col${index}=${filter.columnName}`);
180
+ filterExpr.push(`col${index}=${encodeURIComponent(filter.columnName)}`);
181
181
  filterExpr.push(`op${index}=${filter.operator}`);
182
- filterExpr.push(filter.values.map((value) => `val${index}=${value}`).join('&'));
182
+ filterExpr.push(filter.values.map((value) => `val${index}=${encodeURIComponent(value)}`).join('&'));
183
183
  return filterExpr.join('&');
184
184
  });
185
185
  return `${filters.join('&')}`;
@@ -1192,11 +1192,11 @@ var HostEvent;
1192
1192
  * @param - execute - executes the existing / updated query
1193
1193
  * @example
1194
1194
  * ```js
1195
- * searchEmbed.trigger(HostEvent.Search, {
1196
- * searchQuery: "[sales] by [item type],
1197
- * dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
1198
- * execute: true
1199
- * })
1195
+ * searchembed.trigger(HostEvent.Search, {
1196
+ searchQuery: "[sales] by [item type]",
1197
+ dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
1198
+ execute: true
1199
+ });
1200
1200
  * ```
1201
1201
  */
1202
1202
  HostEvent["Search"] = "search";
@@ -1955,6 +1955,7 @@ var Param;
1955
1955
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
1956
1956
  Param["HideEurekaResults"] = "hideEurekaResults";
1957
1957
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
1958
+ Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
1958
1959
  Param["HideLiveboardHeader"] = "hideLiveboardHeader";
1959
1960
  Param["ShowLiveboardDescription"] = "showLiveboardDescription";
1960
1961
  Param["ShowLiveboardTitle"] = "showLiveboardTitle";
@@ -1967,6 +1968,10 @@ var Param;
1967
1968
  Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
1968
1969
  Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
1969
1970
  Param["PendoTrackingKey"] = "additionalPendoKey";
1971
+ Param["LiveboardHeaderSticky"] = "isLiveboardHeaderSticky";
1972
+ Param["IsProductTour"] = "isProductTour";
1973
+ Param["HideSearchBarTitle"] = "hideSearchBarTitle";
1974
+ Param["HideSageAnswerHeader"] = "hideSageAnswerHeader";
1970
1975
  })(Param || (Param = {}));
1971
1976
  /**
1972
1977
  * ThoughtSpot application pages include actions and menu commands
@@ -2805,6 +2810,16 @@ var Action;
2805
2810
  * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2806
2811
  */
2807
2812
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
2813
+ /**
2814
+ * Action ID for Liveboard Users ( Recently Visited / social proof )
2815
+ *
2816
+ * @example
2817
+ * ```js
2818
+ * disabledActions: [Action.LiveboardUsers]
2819
+ * ```
2820
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2821
+ */
2822
+ Action["LiveboardUsers"] = "liveboardUsers";
2808
2823
  })(Action || (Action = {}));
2809
2824
  var PrefetchFeatures;
2810
2825
  (function (PrefetchFeatures) {
@@ -10294,7 +10309,9 @@ async function getSourceDetail(thoughtSpotHost, sourceId) {
10294
10309
  thoughtSpotHost,
10295
10310
  });
10296
10311
  const souceDetails = details[0];
10297
- sourceDetailCache.set(sourceId, souceDetails);
10312
+ if (details) {
10313
+ sourceDetailCache.set(sourceId, souceDetails);
10314
+ }
10298
10315
  return souceDetails;
10299
10316
  }
10300
10317
 
@@ -10440,13 +10457,11 @@ class AnswerService {
10440
10457
  *
10441
10458
  * @param userLocale
10442
10459
  * @param omitInfo Omit the download Info on top of the CSV
10460
+ * @param includeInfo
10443
10461
  * @returns Response
10444
10462
  */
10445
- async fetchCSVBlob(userLocale = 'en-us', omitInfo = false) {
10446
- if (omitInfo) {
10447
- console.warn('omitInfo not supported yet.');
10448
- }
10449
- const fetchUrl = `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&omitInfo=${omitInfo}`;
10463
+ async fetchCSVBlob(userLocale = 'en-us', includeInfo = false) {
10464
+ const fetchUrl = `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
10450
10465
  return fetch(fetchUrl, {
10451
10466
  credentials: 'include',
10452
10467
  });
@@ -10704,7 +10719,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
10704
10719
  });
10705
10720
  }
10706
10721
 
10707
- var name="@thoughtspot/visual-embed-sdk";var version="1.25.0-alpha.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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,"size-limit":[{path:"dist/tsembed.js",limit:"40 kB"}],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};
10722
+ var name="@thoughtspot/visual-embed-sdk";var version="1.25.0-alpha.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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,"size-limit":[{path:"dist/tsembed.js",limit:"40 kB"}],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};
10708
10723
 
10709
10724
  /**
10710
10725
  * Copyright (c) 2022
@@ -10953,7 +10968,7 @@ class TsEmbed {
10953
10968
  if (this.embedConfig.pendoTrackingKey) {
10954
10969
  queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
10955
10970
  }
10956
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, } = this.viewConfig;
10971
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
10957
10972
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
10958
10973
  this.handleError('You cannot have both hidden actions and visible actions');
10959
10974
  return queryParams;
@@ -11014,15 +11029,6 @@ class TsEmbed {
11014
11029
  if (insertInToSlide) {
11015
11030
  queryParams[Param.ShowInsertToSlide] = insertInToSlide;
11016
11031
  }
11017
- if (hideLiveboardHeader) {
11018
- queryParams[Param.HideLiveboardHeader] = hideLiveboardHeader;
11019
- }
11020
- if (showLiveboardDescription) {
11021
- queryParams[Param.ShowLiveboardDescription] = showLiveboardDescription;
11022
- }
11023
- if (showLiveboardTitle) {
11024
- queryParams[Param.ShowLiveboardTitle] = showLiveboardTitle;
11025
- }
11026
11032
  return queryParams;
11027
11033
  }
11028
11034
  /**
@@ -11565,15 +11571,21 @@ class SageEmbed extends V1Embed {
11565
11571
  */
11566
11572
  getEmbedParams() {
11567
11573
  var _a;
11568
- const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, } = this.viewConfig;
11574
+ const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
11569
11575
  const params = this.getBaseQueryParams();
11570
11576
  params[Param.EmbedApp] = true;
11571
- params[Param.HideEurekaResults] = !showObjectResults;
11572
11577
  params[Param.IsSageEmbed] = true;
11573
11578
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
11574
11579
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
11575
- params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
11580
+ params[Param.HideEurekaSuggestions] = !!hideAutocompleteSuggestions;
11581
+ if (showObjectSuggestions) {
11582
+ params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
11583
+ // support backwards compatibility
11584
+ }
11576
11585
  params[Param.HideSampleQuestions] = !!hideSampleQuestions;
11586
+ params[Param.IsProductTour] = !!isProductTour;
11587
+ params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
11588
+ params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
11577
11589
  params[Param.HideActions] = [
11578
11590
  ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
11579
11591
  ...HiddenActionItemByDefaultForSageEmbed,
@@ -11823,13 +11835,17 @@ class AppEmbed extends V1Embed {
11823
11835
  * embedded Liveboard or visualization.
11824
11836
  */
11825
11837
  getEmbedParams() {
11826
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
11838
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, } = this.viewConfig;
11827
11839
  let params = {};
11828
11840
  params[Param.EmbedApp] = true;
11829
11841
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
11830
11842
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
11831
11843
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
11832
11844
  params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
11845
+ params[Param.HideLiveboardHeader] = hideLiveboardHeader;
11846
+ params[Param.ShowLiveboardTitle] = showLiveboardTitle;
11847
+ params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
11848
+ params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
11833
11849
  params = this.getBaseQueryParams(params);
11834
11850
  if (fullHeight === true) {
11835
11851
  params[Param.fullHeight] = true;
@@ -12014,7 +12030,7 @@ class LiveboardEmbed extends V1Embed {
12014
12030
  let params = {};
12015
12031
  params[Param.EmbedApp] = true;
12016
12032
  params = this.getBaseQueryParams(params);
12017
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, runtimeParameters, } = this.viewConfig;
12033
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, runtimeParameters, isLiveboardHeaderSticky = true, } = this.viewConfig;
12018
12034
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
12019
12035
  || this.viewConfig.preventPinboardFilterRemoval;
12020
12036
  if (fullHeight === true) {
@@ -12042,6 +12058,16 @@ class LiveboardEmbed extends V1Embed {
12042
12058
  if (hideTabPanel) {
12043
12059
  params[Param.HideTabPanel] = hideTabPanel;
12044
12060
  }
12061
+ if (hideLiveboardHeader) {
12062
+ params[Param.HideLiveboardHeader] = hideLiveboardHeader;
12063
+ }
12064
+ if (showLiveboardDescription) {
12065
+ params[Param.ShowLiveboardDescription] = showLiveboardDescription;
12066
+ }
12067
+ if (showLiveboardTitle) {
12068
+ params[Param.ShowLiveboardTitle] = showLiveboardTitle;
12069
+ }
12070
+ params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
12045
12071
  let queryParams = getQueryParamString(params, true);
12046
12072
  const parameterQuery = getRuntimeParameters(runtimeParameters || []);
12047
12073
  if (parameterQuery)
@@ -185,9 +185,9 @@
185
185
  const filters = runtimeFilters.map((filter, valueIndex) => {
186
186
  const index = valueIndex + 1;
187
187
  const filterExpr = [];
188
- filterExpr.push(`col${index}=${filter.columnName}`);
188
+ filterExpr.push(`col${index}=${encodeURIComponent(filter.columnName)}`);
189
189
  filterExpr.push(`op${index}=${filter.operator}`);
190
- filterExpr.push(filter.values.map((value) => `val${index}=${value}`).join('&'));
190
+ filterExpr.push(filter.values.map((value) => `val${index}=${encodeURIComponent(value)}`).join('&'));
191
191
  return filterExpr.join('&');
192
192
  });
193
193
  return `${filters.join('&')}`;
@@ -1143,11 +1143,11 @@
1143
1143
  * @param - execute - executes the existing / updated query
1144
1144
  * @example
1145
1145
  * ```js
1146
- * searchEmbed.trigger(HostEvent.Search, {
1147
- * searchQuery: "[sales] by [item type],
1148
- * dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
1149
- * execute: true
1150
- * })
1146
+ * searchembed.trigger(HostEvent.Search, {
1147
+ searchQuery: "[sales] by [item type]",
1148
+ dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
1149
+ execute: true
1150
+ });
1151
1151
  * ```
1152
1152
  */
1153
1153
  HostEvent["Search"] = "search";
@@ -1906,6 +1906,7 @@
1906
1906
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
1907
1907
  Param["HideEurekaResults"] = "hideEurekaResults";
1908
1908
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
1909
+ Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
1909
1910
  Param["HideLiveboardHeader"] = "hideLiveboardHeader";
1910
1911
  Param["ShowLiveboardDescription"] = "showLiveboardDescription";
1911
1912
  Param["ShowLiveboardTitle"] = "showLiveboardTitle";
@@ -1918,6 +1919,10 @@
1918
1919
  Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
1919
1920
  Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
1920
1921
  Param["PendoTrackingKey"] = "additionalPendoKey";
1922
+ Param["LiveboardHeaderSticky"] = "isLiveboardHeaderSticky";
1923
+ Param["IsProductTour"] = "isProductTour";
1924
+ Param["HideSearchBarTitle"] = "hideSearchBarTitle";
1925
+ Param["HideSageAnswerHeader"] = "hideSageAnswerHeader";
1921
1926
  })(Param || (Param = {}));
1922
1927
  (function (Action) {
1923
1928
  /**
@@ -2727,6 +2732,16 @@
2727
2732
  * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2728
2733
  */
2729
2734
  Action["PersonalisedViewsDropdown"] = "personalisedViewsDropdown";
2735
+ /**
2736
+ * Action ID for Liveboard Users ( Recently Visited / social proof )
2737
+ *
2738
+ * @example
2739
+ * ```js
2740
+ * disabledActions: [Action.LiveboardUsers]
2741
+ * ```
2742
+ * @version SDK : 1.26.0 | Thoughtspot: 9.7.0.cl
2743
+ */
2744
+ Action["LiveboardUsers"] = "liveboardUsers";
2730
2745
  })(exports.Action || (exports.Action = {}));
2731
2746
  var PrefetchFeatures;
2732
2747
  (function (PrefetchFeatures) {
@@ -10216,7 +10231,9 @@
10216
10231
  thoughtSpotHost,
10217
10232
  });
10218
10233
  const souceDetails = details[0];
10219
- sourceDetailCache.set(sourceId, souceDetails);
10234
+ if (details) {
10235
+ sourceDetailCache.set(sourceId, souceDetails);
10236
+ }
10220
10237
  return souceDetails;
10221
10238
  }
10222
10239
 
@@ -10362,13 +10379,11 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
10362
10379
  *
10363
10380
  * @param userLocale
10364
10381
  * @param omitInfo Omit the download Info on top of the CSV
10382
+ * @param includeInfo
10365
10383
  * @returns Response
10366
10384
  */
10367
- async fetchCSVBlob(userLocale = 'en-us', omitInfo = false) {
10368
- if (omitInfo) {
10369
- console.warn('omitInfo not supported yet.');
10370
- }
10371
- const fetchUrl = `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&omitInfo=${omitInfo}`;
10385
+ async fetchCSVBlob(userLocale = 'en-us', includeInfo = false) {
10386
+ const fetchUrl = `${this.thoughtSpotHost}/prism/download/answer/csv?sessionId=${this.session.sessionId}&genNo=${this.session.genNo}&userLocale=${userLocale}&exportFileName=data&hideCsvHeader=${!includeInfo}`;
10372
10387
  return fetch(fetchUrl, {
10373
10388
  credentials: 'include',
10374
10389
  });
@@ -10626,7 +10641,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
10626
10641
  });
10627
10642
  }
10628
10643
 
10629
- var name="@thoughtspot/visual-embed-sdk";var version="1.25.0-alpha.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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,"size-limit":[{path:"dist/tsembed.js",limit:"40 kB"}],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};
10644
+ var name="@thoughtspot/visual-embed-sdk";var version="1.25.0-alpha.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",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,"size-limit":[{path:"dist/tsembed.js",limit:"40 kB"}],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};
10630
10645
 
10631
10646
  /**
10632
10647
  * Copyright (c) 2022
@@ -10875,7 +10890,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
10875
10890
  if (this.embedConfig.pendoTrackingKey) {
10876
10891
  queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
10877
10892
  }
10878
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, } = this.viewConfig;
10893
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
10879
10894
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
10880
10895
  this.handleError('You cannot have both hidden actions and visible actions');
10881
10896
  return queryParams;
@@ -10936,15 +10951,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
10936
10951
  if (insertInToSlide) {
10937
10952
  queryParams[Param.ShowInsertToSlide] = insertInToSlide;
10938
10953
  }
10939
- if (hideLiveboardHeader) {
10940
- queryParams[Param.HideLiveboardHeader] = hideLiveboardHeader;
10941
- }
10942
- if (showLiveboardDescription) {
10943
- queryParams[Param.ShowLiveboardDescription] = showLiveboardDescription;
10944
- }
10945
- if (showLiveboardTitle) {
10946
- queryParams[Param.ShowLiveboardTitle] = showLiveboardTitle;
10947
- }
10948
10954
  return queryParams;
10949
10955
  }
10950
10956
  /**
@@ -11487,15 +11493,21 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
11487
11493
  */
11488
11494
  getEmbedParams() {
11489
11495
  var _a;
11490
- const { showObjectResults, disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, } = this.viewConfig;
11496
+ const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
11491
11497
  const params = this.getBaseQueryParams();
11492
11498
  params[Param.EmbedApp] = true;
11493
- params[Param.HideEurekaResults] = !showObjectResults;
11494
11499
  params[Param.IsSageEmbed] = true;
11495
11500
  params[Param.DisableWorksheetChange] = !!disableWorksheetChange;
11496
11501
  params[Param.HideWorksheetSelector] = !!hideWorksheetSelector;
11497
- params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
11502
+ params[Param.HideEurekaSuggestions] = !!hideAutocompleteSuggestions;
11503
+ if (showObjectSuggestions) {
11504
+ params[Param.HideEurekaSuggestions] = !showObjectSuggestions;
11505
+ // support backwards compatibility
11506
+ }
11498
11507
  params[Param.HideSampleQuestions] = !!hideSampleQuestions;
11508
+ params[Param.IsProductTour] = !!isProductTour;
11509
+ params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
11510
+ params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
11499
11511
  params[Param.HideActions] = [
11500
11512
  ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
11501
11513
  ...HiddenActionItemByDefaultForSageEmbed,
@@ -11740,13 +11752,17 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
11740
11752
  * embedded Liveboard or visualization.
11741
11753
  */
11742
11754
  getEmbedParams() {
11743
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
11755
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, } = this.viewConfig;
11744
11756
  let params = {};
11745
11757
  params[Param.EmbedApp] = true;
11746
11758
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
11747
11759
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
11748
11760
  params[Param.HideApplicationSwitcher] = !!hideApplicationSwitcher;
11749
11761
  params[Param.HideOrgSwitcher] = !!hideOrgSwitcher;
11762
+ params[Param.HideLiveboardHeader] = hideLiveboardHeader;
11763
+ params[Param.ShowLiveboardTitle] = showLiveboardTitle;
11764
+ params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
11765
+ params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
11750
11766
  params = this.getBaseQueryParams(params);
11751
11767
  if (fullHeight === true) {
11752
11768
  params[Param.fullHeight] = true;
@@ -11931,7 +11947,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
11931
11947
  let params = {};
11932
11948
  params[Param.EmbedApp] = true;
11933
11949
  params = this.getBaseQueryParams(params);
11934
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, runtimeParameters, } = this.viewConfig;
11950
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, runtimeParameters, isLiveboardHeaderSticky = true, } = this.viewConfig;
11935
11951
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
11936
11952
  || this.viewConfig.preventPinboardFilterRemoval;
11937
11953
  if (fullHeight === true) {
@@ -11959,6 +11975,16 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
11959
11975
  if (hideTabPanel) {
11960
11976
  params[Param.HideTabPanel] = hideTabPanel;
11961
11977
  }
11978
+ if (hideLiveboardHeader) {
11979
+ params[Param.HideLiveboardHeader] = hideLiveboardHeader;
11980
+ }
11981
+ if (showLiveboardDescription) {
11982
+ params[Param.ShowLiveboardDescription] = showLiveboardDescription;
11983
+ }
11984
+ if (showLiveboardTitle) {
11985
+ params[Param.ShowLiveboardTitle] = showLiveboardTitle;
11986
+ }
11987
+ params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
11962
11988
  let queryParams = getQueryParamString(params, true);
11963
11989
  const parameterQuery = getRuntimeParameters(runtimeParameters || []);
11964
11990
  if (parameterQuery)