@thoughtspot/visual-embed-sdk 1.33.8 → 1.33.10

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 (74) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/conversation.d.ts +27 -0
  3. package/cjs/src/embed/conversation.d.ts.map +1 -1
  4. package/cjs/src/embed/conversation.js +9 -1
  5. package/cjs/src/embed/conversation.js.map +1 -1
  6. package/cjs/src/embed/conversation.spec.js +24 -0
  7. package/cjs/src/embed/conversation.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts +36 -0
  9. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  10. package/cjs/src/embed/liveboard.js +10 -1
  11. package/cjs/src/embed/liveboard.js.map +1 -1
  12. package/cjs/src/embed/liveboard.spec.js +13 -0
  13. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  14. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  15. package/cjs/src/embed/ts-embed.js +5 -2
  16. package/cjs/src/embed/ts-embed.js.map +1 -1
  17. package/cjs/src/embed/ts-embed.spec.d.ts +2 -1
  18. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  19. package/cjs/src/embed/ts-embed.spec.js +158 -0
  20. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  21. package/cjs/src/types.d.ts +51 -3
  22. package/cjs/src/types.d.ts.map +1 -1
  23. package/cjs/src/types.js +41 -0
  24. package/cjs/src/types.js.map +1 -1
  25. package/dist/{index-CHqCPD_I.js → index-HiSgAoIA.js} +1 -1
  26. package/dist/src/embed/conversation.d.ts +27 -0
  27. package/dist/src/embed/conversation.d.ts.map +1 -1
  28. package/dist/src/embed/liveboard.d.ts +36 -0
  29. package/dist/src/embed/liveboard.d.ts.map +1 -1
  30. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  31. package/dist/src/embed/ts-embed.spec.d.ts +2 -1
  32. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  33. package/dist/src/types.d.ts +51 -3
  34. package/dist/src/types.d.ts.map +1 -1
  35. package/dist/tsembed-react.es.js +94 -12
  36. package/dist/tsembed-react.js +93 -11
  37. package/dist/tsembed.es.js +94 -12
  38. package/dist/tsembed.js +93 -11
  39. package/dist/visual-embed-sdk-react-full.d.ts +114 -3
  40. package/dist/visual-embed-sdk-react.d.ts +114 -3
  41. package/dist/visual-embed-sdk.d.ts +114 -3
  42. package/lib/package.json +1 -1
  43. package/lib/src/embed/conversation.d.ts +27 -0
  44. package/lib/src/embed/conversation.d.ts.map +1 -1
  45. package/lib/src/embed/conversation.js +8 -1
  46. package/lib/src/embed/conversation.js.map +1 -1
  47. package/lib/src/embed/conversation.spec.js +24 -0
  48. package/lib/src/embed/conversation.spec.js.map +1 -1
  49. package/lib/src/embed/liveboard.d.ts +36 -0
  50. package/lib/src/embed/liveboard.d.ts.map +1 -1
  51. package/lib/src/embed/liveboard.js +10 -1
  52. package/lib/src/embed/liveboard.js.map +1 -1
  53. package/lib/src/embed/liveboard.spec.js +13 -0
  54. package/lib/src/embed/liveboard.spec.js.map +1 -1
  55. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  56. package/lib/src/embed/ts-embed.js +5 -2
  57. package/lib/src/embed/ts-embed.js.map +1 -1
  58. package/lib/src/embed/ts-embed.spec.d.ts +2 -1
  59. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  60. package/lib/src/embed/ts-embed.spec.js +159 -2
  61. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  62. package/lib/src/types.d.ts +51 -3
  63. package/lib/src/types.d.ts.map +1 -1
  64. package/lib/src/types.js +41 -0
  65. package/lib/src/types.js.map +1 -1
  66. package/lib/src/visual-embed-sdk.d.ts +114 -3
  67. package/package.json +1 -1
  68. package/src/embed/conversation.spec.ts +34 -0
  69. package/src/embed/conversation.ts +36 -0
  70. package/src/embed/liveboard.spec.ts +17 -0
  71. package/src/embed/liveboard.ts +54 -0
  72. package/src/embed/ts-embed.spec.ts +219 -0
  73. package/src/embed/ts-embed.ts +6 -1
  74. package/src/types.ts +51 -0
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.10 */
2
2
  function _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -327,7 +327,7 @@ const removeStyleProperties = (element, styleProperties) => {
327
327
  element.style.removeProperty(styleProperty);
328
328
  });
329
329
  };
330
- const isUndefined = (value) => value === undefined;
330
+ const isUndefined$1 = (value) => value === undefined;
331
331
  // Return if the value is a string, double or boolean.
332
332
  const getTypeFromValue = (value) => {
333
333
  if (typeof value === 'string') {
@@ -2542,6 +2542,14 @@ var HostEvent;
2542
2542
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
2543
2543
  */
2544
2544
  HostEvent["GetParameters"] = "GetParameters";
2545
+ /**
2546
+ * Triggers update of persoanlised view for a liveboard
2547
+ * ```js
2548
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2549
+ * ```
2550
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2551
+ */
2552
+ HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
2545
2553
  })(HostEvent || (HostEvent = {}));
2546
2554
  /**
2547
2555
  * The different visual modes that the data sources panel within
@@ -2619,6 +2627,8 @@ var Param;
2619
2627
  Param["IsSageEmbed"] = "isSageEmbed";
2620
2628
  Param["HideWorksheetSelector"] = "hideWorksheetSelector";
2621
2629
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
2630
+ Param["HideSourceSelection"] = "hideSourceSelection";
2631
+ Param["DisableSourceSelection"] = "disableSourceSelection";
2622
2632
  Param["HideEurekaResults"] = "hideEurekaResults";
2623
2633
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
2624
2634
  Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
@@ -2661,6 +2671,10 @@ var Param;
2661
2671
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2662
2672
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2663
2673
  Param["OverrideOrgId"] = "orgId";
2674
+ Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2675
+ Param["OauthPollingInterval"] = "oAuthPollingInterval";
2676
+ Param["IsForceRedirect"] = "isForceRedirect";
2677
+ Param["DataSourceId"] = "dataSourceId";
2664
2678
  })(Param || (Param = {}));
2665
2679
  /**
2666
2680
  * ThoughtSpot application pages include actions and menu commands
@@ -3712,6 +3726,33 @@ var Action;
3712
3726
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3713
3727
  */
3714
3728
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3729
+ /**
3730
+ * Action ID for hide/disable Preview data button in spotter
3731
+ * @example
3732
+ * ```js
3733
+ * hiddenAction: [Action.PreviewDataSpotter]
3734
+ * ```
3735
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3736
+ */
3737
+ Action["PreviewDataSpotter"] = "previewDataSpotter";
3738
+ /**
3739
+ * Action ID for hide/disable reset button in spotter
3740
+ * @example
3741
+ * ```js
3742
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3743
+ * ```
3744
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3745
+ */
3746
+ Action["ResetSpotterChat"] = "resetSpotterChat";
3747
+ /**
3748
+ * Action ID for hide/disable feedback in spotter
3749
+ * @example
3750
+ * ```js
3751
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3752
+ * ```
3753
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3754
+ */
3755
+ Action["SpotterFeedback"] = "spotterFeedback";
3715
3756
  })(Action || (Action = {}));
3716
3757
  var PrefetchFeatures;
3717
3758
  (function (PrefetchFeatures) {
@@ -3840,7 +3881,7 @@ class Logger {
3840
3881
  canLog(logLevel) {
3841
3882
  if (logLevel === LogLevel.SILENT)
3842
3883
  return false;
3843
- if (!isUndefined(globalLogLevelOverride)) {
3884
+ if (!isUndefined$1(globalLogLevelOverride)) {
3844
3885
  return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
3845
3886
  }
3846
3887
  return compareLogLevels(this.logLevel, logLevel) >= 0;
@@ -6983,7 +7024,7 @@ class AnswerService {
6983
7024
  async getTML() {
6984
7025
  const { object } = await this.executeQuery(getAnswerTML, {});
6985
7026
  const edoc = object[0].edoc;
6986
- const YAML = await import('./index-CHqCPD_I.js');
7027
+ const YAML = await import('./index-HiSgAoIA.js');
6987
7028
  const parsedDoc = YAML.parse(edoc);
6988
7029
  return {
6989
7030
  answer: {
@@ -14725,7 +14766,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14725
14766
  });
14726
14767
  }
14727
14768
 
14728
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.8";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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.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:"4.24.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",vite:"^5.3.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","embedded","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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14769
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.10";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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.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:"4.24.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",vite:"^5.3.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","embedded","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$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14729
14770
 
14730
14771
  /**
14731
14772
  * Copyright (c) 2022
@@ -14849,7 +14890,7 @@ class TsEmbed {
14849
14890
  if (viewConfig.preRenderId) {
14850
14891
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
14851
14892
  allOtherKeys.forEach((key) => {
14852
- if (!isUndefined(viewConfig[key])
14893
+ if (!isUndefined$1(viewConfig[key])
14853
14894
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14854
14895
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14855
14896
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -15032,12 +15073,15 @@ class TsEmbed {
15032
15073
  if (this.embedConfig.currencyFormat) {
15033
15074
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15034
15075
  }
15035
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15076
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
15036
15077
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15037
15078
  const additionalFlags = {
15038
15079
  ...additionalFlagsFromInit,
15039
15080
  ...additionalFlagsFromView,
15040
15081
  };
15082
+ if (enableFlipTooltipToContextMenu) {
15083
+ queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
15084
+ }
15041
15085
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
15042
15086
  this.handleError('You cannot have both hidden actions and visible actions');
15043
15087
  return queryParams;
@@ -15145,7 +15189,7 @@ class TsEmbed {
15145
15189
  iFrame.mozallowfullscreen = true;
15146
15190
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15147
15191
  // @ts-ignore
15148
- iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
15192
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
15149
15193
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
15150
15194
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
15151
15195
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -16173,7 +16217,7 @@ class LiveboardEmbed extends V1Embed {
16173
16217
  getEmbedParams() {
16174
16218
  let params = {};
16175
16219
  params = this.getBaseQueryParams(params);
16176
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16220
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
16177
16221
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16178
16222
  || this.viewConfig.preventPinboardFilterRemoval;
16179
16223
  if (fullHeight === true) {
@@ -16216,6 +16260,15 @@ class LiveboardEmbed extends V1Embed {
16216
16260
  if (enableAskSage) {
16217
16261
  params[Param.enableAskSage] = enableAskSage;
16218
16262
  }
16263
+ if (oAuthPollingInterval !== undefined) {
16264
+ params[Param.OauthPollingInterval] = oAuthPollingInterval;
16265
+ }
16266
+ if (isForceRedirect) {
16267
+ params[Param.IsForceRedirect] = isForceRedirect;
16268
+ }
16269
+ if (dataSourceId !== undefined) {
16270
+ params[Param.DataSourceId] = dataSourceId;
16271
+ }
16219
16272
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
16220
16273
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16221
16274
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -16288,7 +16341,7 @@ class LiveboardEmbed extends V1Embed {
16288
16341
  beforePrerenderVisible() {
16289
16342
  var _a;
16290
16343
  const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
16291
- if (isUndefined(embedObj))
16344
+ if (isUndefined$1(embedObj))
16292
16345
  return;
16293
16346
  const showDifferentLib = this.viewConfig.liveboardId
16294
16347
  && embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
@@ -16298,7 +16351,7 @@ class LiveboardEmbed extends V1Embed {
16298
16351
  }
16299
16352
  }
16300
16353
  handleRenderForPrerender() {
16301
- if (isUndefined(this.viewConfig.liveboardId)) {
16354
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
16302
16355
  this.prerenderGeneric();
16303
16356
  return;
16304
16357
  }
@@ -17043,6 +17096,29 @@ class BodylessConversation {
17043
17096
  }
17044
17097
  }
17045
17098
 
17099
+ /**
17100
+ * Checks if `value` is `undefined`.
17101
+ *
17102
+ * @static
17103
+ * @since 0.1.0
17104
+ * @memberOf _
17105
+ * @category Lang
17106
+ * @param {*} value The value to check.
17107
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
17108
+ * @example
17109
+ *
17110
+ * _.isUndefined(void 0);
17111
+ * // => true
17112
+ *
17113
+ * _.isUndefined(null);
17114
+ * // => false
17115
+ */
17116
+ function isUndefined(value) {
17117
+ return value === undefined;
17118
+ }
17119
+
17120
+ var isUndefined_1 = isUndefined;
17121
+
17046
17122
  /**
17047
17123
  * Embed ThoughtSpot AI Conversation.
17048
17124
  * @group Embed components
@@ -17065,13 +17141,19 @@ class ConversationEmbed extends TsEmbed {
17065
17141
  this.viewConfig = viewConfig;
17066
17142
  }
17067
17143
  getIframeSrc() {
17068
- const { worksheetId, searchOptions, } = this.viewConfig;
17144
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
17069
17145
  const path = 'insights/conv-assist';
17070
17146
  if (!worksheetId) {
17071
17147
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
17072
17148
  }
17073
17149
  const queryParams = this.getBaseQueryParams();
17074
17150
  queryParams[Param.SpotterEnabled] = true;
17151
+ if (!isUndefined_1(disableSourceSelection)) {
17152
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
17153
+ }
17154
+ if (!isUndefined_1(hideSourceSelection)) {
17155
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
17156
+ }
17075
17157
  let query = '';
17076
17158
  const queryParamsString = getQueryParamString(queryParams, true);
17077
17159
  if (queryParamsString) {
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.10 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -333,7 +333,7 @@
333
333
  element.style.removeProperty(styleProperty);
334
334
  });
335
335
  };
336
- const isUndefined = (value) => value === undefined;
336
+ const isUndefined$1 = (value) => value === undefined;
337
337
  // Return if the value is a string, double or boolean.
338
338
  const getTypeFromValue = (value) => {
339
339
  if (typeof value === 'string') {
@@ -2548,6 +2548,14 @@
2548
2548
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
2549
2549
  */
2550
2550
  HostEvent["GetParameters"] = "GetParameters";
2551
+ /**
2552
+ * Triggers update of persoanlised view for a liveboard
2553
+ * ```js
2554
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2555
+ * ```
2556
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2557
+ */
2558
+ HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
2551
2559
  })(exports.HostEvent || (exports.HostEvent = {}));
2552
2560
  /**
2553
2561
  * The different visual modes that the data sources panel within
@@ -2625,6 +2633,8 @@
2625
2633
  Param["IsSageEmbed"] = "isSageEmbed";
2626
2634
  Param["HideWorksheetSelector"] = "hideWorksheetSelector";
2627
2635
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
2636
+ Param["HideSourceSelection"] = "hideSourceSelection";
2637
+ Param["DisableSourceSelection"] = "disableSourceSelection";
2628
2638
  Param["HideEurekaResults"] = "hideEurekaResults";
2629
2639
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
2630
2640
  Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
@@ -2667,6 +2677,10 @@
2667
2677
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2668
2678
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2669
2679
  Param["OverrideOrgId"] = "orgId";
2680
+ Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2681
+ Param["OauthPollingInterval"] = "oAuthPollingInterval";
2682
+ Param["IsForceRedirect"] = "isForceRedirect";
2683
+ Param["DataSourceId"] = "dataSourceId";
2670
2684
  })(Param || (Param = {}));
2671
2685
  /**
2672
2686
  * ThoughtSpot application pages include actions and menu commands
@@ -3718,6 +3732,33 @@
3718
3732
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3719
3733
  */
3720
3734
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3735
+ /**
3736
+ * Action ID for hide/disable Preview data button in spotter
3737
+ * @example
3738
+ * ```js
3739
+ * hiddenAction: [Action.PreviewDataSpotter]
3740
+ * ```
3741
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3742
+ */
3743
+ Action["PreviewDataSpotter"] = "previewDataSpotter";
3744
+ /**
3745
+ * Action ID for hide/disable reset button in spotter
3746
+ * @example
3747
+ * ```js
3748
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3749
+ * ```
3750
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3751
+ */
3752
+ Action["ResetSpotterChat"] = "resetSpotterChat";
3753
+ /**
3754
+ * Action ID for hide/disable feedback in spotter
3755
+ * @example
3756
+ * ```js
3757
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3758
+ * ```
3759
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3760
+ */
3761
+ Action["SpotterFeedback"] = "spotterFeedback";
3721
3762
  })(exports.Action || (exports.Action = {}));
3722
3763
  exports.PrefetchFeatures = void 0;
3723
3764
  (function (PrefetchFeatures) {
@@ -3846,7 +3887,7 @@
3846
3887
  canLog(logLevel) {
3847
3888
  if (logLevel === exports.LogLevel.SILENT)
3848
3889
  return false;
3849
- if (!isUndefined(globalLogLevelOverride)) {
3890
+ if (!isUndefined$1(globalLogLevelOverride)) {
3850
3891
  return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
3851
3892
  }
3852
3893
  return compareLogLevels(this.logLevel, logLevel) >= 0;
@@ -14731,7 +14772,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14731
14772
  });
14732
14773
  }
14733
14774
 
14734
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.8";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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.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:"4.24.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",vite:"^5.3.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","embedded","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$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14775
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.10";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","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",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",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",dev:"vite -c vite.local.config.ts"};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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.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/lodash":"^4.17.0","@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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.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:"4.24.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",vite:"^5.3.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","embedded","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$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
14735
14776
 
14736
14777
  /**
14737
14778
  * Copyright (c) 2022
@@ -14855,7 +14896,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14855
14896
  if (viewConfig.preRenderId) {
14856
14897
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
14857
14898
  allOtherKeys.forEach((key) => {
14858
- if (!isUndefined(viewConfig[key])
14899
+ if (!isUndefined$1(viewConfig[key])
14859
14900
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14860
14901
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14861
14902
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -15038,12 +15079,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15038
15079
  if (this.embedConfig.currencyFormat) {
15039
15080
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15040
15081
  }
15041
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15082
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
15042
15083
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15043
15084
  const additionalFlags = {
15044
15085
  ...additionalFlagsFromInit,
15045
15086
  ...additionalFlagsFromView,
15046
15087
  };
15088
+ if (enableFlipTooltipToContextMenu) {
15089
+ queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
15090
+ }
15047
15091
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
15048
15092
  this.handleError('You cannot have both hidden actions and visible actions');
15049
15093
  return queryParams;
@@ -15151,7 +15195,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15151
15195
  iFrame.mozallowfullscreen = true;
15152
15196
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15153
15197
  // @ts-ignore
15154
- iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
15198
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
15155
15199
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
15156
15200
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
15157
15201
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -16179,7 +16223,7 @@ query GetEurekaVizSnapshots(
16179
16223
  getEmbedParams() {
16180
16224
  let params = {};
16181
16225
  params = this.getBaseQueryParams(params);
16182
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16226
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
16183
16227
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16184
16228
  || this.viewConfig.preventPinboardFilterRemoval;
16185
16229
  if (fullHeight === true) {
@@ -16222,6 +16266,15 @@ query GetEurekaVizSnapshots(
16222
16266
  if (enableAskSage) {
16223
16267
  params[Param.enableAskSage] = enableAskSage;
16224
16268
  }
16269
+ if (oAuthPollingInterval !== undefined) {
16270
+ params[Param.OauthPollingInterval] = oAuthPollingInterval;
16271
+ }
16272
+ if (isForceRedirect) {
16273
+ params[Param.IsForceRedirect] = isForceRedirect;
16274
+ }
16275
+ if (dataSourceId !== undefined) {
16276
+ params[Param.DataSourceId] = dataSourceId;
16277
+ }
16225
16278
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
16226
16279
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16227
16280
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -16294,7 +16347,7 @@ query GetEurekaVizSnapshots(
16294
16347
  beforePrerenderVisible() {
16295
16348
  var _a;
16296
16349
  const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
16297
- if (isUndefined(embedObj))
16350
+ if (isUndefined$1(embedObj))
16298
16351
  return;
16299
16352
  const showDifferentLib = this.viewConfig.liveboardId
16300
16353
  && embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
@@ -16304,7 +16357,7 @@ query GetEurekaVizSnapshots(
16304
16357
  }
16305
16358
  }
16306
16359
  handleRenderForPrerender() {
16307
- if (isUndefined(this.viewConfig.liveboardId)) {
16360
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
16308
16361
  this.prerenderGeneric();
16309
16362
  return;
16310
16363
  }
@@ -17049,6 +17102,29 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17049
17102
  }
17050
17103
  }
17051
17104
 
17105
+ /**
17106
+ * Checks if `value` is `undefined`.
17107
+ *
17108
+ * @static
17109
+ * @since 0.1.0
17110
+ * @memberOf _
17111
+ * @category Lang
17112
+ * @param {*} value The value to check.
17113
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
17114
+ * @example
17115
+ *
17116
+ * _.isUndefined(void 0);
17117
+ * // => true
17118
+ *
17119
+ * _.isUndefined(null);
17120
+ * // => false
17121
+ */
17122
+ function isUndefined(value) {
17123
+ return value === undefined;
17124
+ }
17125
+
17126
+ var isUndefined_1 = isUndefined;
17127
+
17052
17128
  /**
17053
17129
  * Embed ThoughtSpot AI Conversation.
17054
17130
  * @group Embed components
@@ -17071,13 +17147,19 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17071
17147
  this.viewConfig = viewConfig;
17072
17148
  }
17073
17149
  getIframeSrc() {
17074
- const { worksheetId, searchOptions, } = this.viewConfig;
17150
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
17075
17151
  const path = 'insights/conv-assist';
17076
17152
  if (!worksheetId) {
17077
17153
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
17078
17154
  }
17079
17155
  const queryParams = this.getBaseQueryParams();
17080
17156
  queryParams[Param.SpotterEnabled] = true;
17157
+ if (!isUndefined_1(disableSourceSelection)) {
17158
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
17159
+ }
17160
+ if (!isUndefined_1(hideSourceSelection)) {
17161
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
17162
+ }
17081
17163
  let query = '';
17082
17164
  const queryParamsString = getQueryParamString(queryParams, true);
17083
17165
  if (queryParamsString) {