@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
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -442,7 +442,7 @@ const removeStyleProperties = (element, styleProperties) => {
442
442
  element.style.removeProperty(styleProperty);
443
443
  });
444
444
  };
445
- const isUndefined = (value) => value === undefined;
445
+ const isUndefined$1 = (value) => value === undefined;
446
446
  // Return if the value is a string, double or boolean.
447
447
  const getTypeFromValue = (value) => {
448
448
  if (typeof value === 'string') {
@@ -2657,6 +2657,14 @@ var HostEvent;
2657
2657
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
2658
2658
  */
2659
2659
  HostEvent["GetParameters"] = "GetParameters";
2660
+ /**
2661
+ * Triggers update of persoanlised view for a liveboard
2662
+ * ```js
2663
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2664
+ * ```
2665
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2666
+ */
2667
+ HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
2660
2668
  })(HostEvent || (HostEvent = {}));
2661
2669
  /**
2662
2670
  * The different visual modes that the data sources panel within
@@ -2734,6 +2742,8 @@ var Param;
2734
2742
  Param["IsSageEmbed"] = "isSageEmbed";
2735
2743
  Param["HideWorksheetSelector"] = "hideWorksheetSelector";
2736
2744
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
2745
+ Param["HideSourceSelection"] = "hideSourceSelection";
2746
+ Param["DisableSourceSelection"] = "disableSourceSelection";
2737
2747
  Param["HideEurekaResults"] = "hideEurekaResults";
2738
2748
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
2739
2749
  Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
@@ -2776,6 +2786,10 @@ var Param;
2776
2786
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2777
2787
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2778
2788
  Param["OverrideOrgId"] = "orgId";
2789
+ Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2790
+ Param["OauthPollingInterval"] = "oAuthPollingInterval";
2791
+ Param["IsForceRedirect"] = "isForceRedirect";
2792
+ Param["DataSourceId"] = "dataSourceId";
2779
2793
  })(Param || (Param = {}));
2780
2794
  /**
2781
2795
  * ThoughtSpot application pages include actions and menu commands
@@ -3827,6 +3841,33 @@ var Action;
3827
3841
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3828
3842
  */
3829
3843
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3844
+ /**
3845
+ * Action ID for hide/disable Preview data button in spotter
3846
+ * @example
3847
+ * ```js
3848
+ * hiddenAction: [Action.PreviewDataSpotter]
3849
+ * ```
3850
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3851
+ */
3852
+ Action["PreviewDataSpotter"] = "previewDataSpotter";
3853
+ /**
3854
+ * Action ID for hide/disable reset button in spotter
3855
+ * @example
3856
+ * ```js
3857
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3858
+ * ```
3859
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3860
+ */
3861
+ Action["ResetSpotterChat"] = "resetSpotterChat";
3862
+ /**
3863
+ * Action ID for hide/disable feedback in spotter
3864
+ * @example
3865
+ * ```js
3866
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3867
+ * ```
3868
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3869
+ */
3870
+ Action["SpotterFeedback"] = "spotterFeedback";
3830
3871
  })(Action || (Action = {}));
3831
3872
  var PrefetchFeatures;
3832
3873
  (function (PrefetchFeatures) {
@@ -6226,7 +6267,7 @@ class Logger {
6226
6267
  canLog(logLevel) {
6227
6268
  if (logLevel === LogLevel.SILENT)
6228
6269
  return false;
6229
- if (!isUndefined(globalLogLevelOverride)) {
6270
+ if (!isUndefined$1(globalLogLevelOverride)) {
6230
6271
  return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
6231
6272
  }
6232
6273
  return compareLogLevels(this.logLevel, logLevel) >= 0;
@@ -7084,7 +7125,7 @@ class AnswerService {
7084
7125
  async getTML() {
7085
7126
  const { object } = await this.executeQuery(getAnswerTML, {});
7086
7127
  const edoc = object[0].edoc;
7087
- const YAML = await import('./index-CHqCPD_I.js');
7128
+ const YAML = await import('./index-HiSgAoIA.js');
7088
7129
  const parsedDoc = YAML.parse(edoc);
7089
7130
  return {
7090
7131
  answer: {
@@ -14483,7 +14524,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14483
14524
  });
14484
14525
  }
14485
14526
 
14486
- 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};
14527
+ 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};
14487
14528
 
14488
14529
  /**
14489
14530
  * Copyright (c) 2022
@@ -14607,7 +14648,7 @@ class TsEmbed {
14607
14648
  if (viewConfig.preRenderId) {
14608
14649
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
14609
14650
  allOtherKeys.forEach((key) => {
14610
- if (!isUndefined(viewConfig[key])
14651
+ if (!isUndefined$1(viewConfig[key])
14611
14652
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14612
14653
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14613
14654
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -14790,12 +14831,15 @@ class TsEmbed {
14790
14831
  if (this.embedConfig.currencyFormat) {
14791
14832
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14792
14833
  }
14793
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
14834
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
14794
14835
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
14795
14836
  const additionalFlags = {
14796
14837
  ...additionalFlagsFromInit,
14797
14838
  ...additionalFlagsFromView,
14798
14839
  };
14840
+ if (enableFlipTooltipToContextMenu) {
14841
+ queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
14842
+ }
14799
14843
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14800
14844
  this.handleError('You cannot have both hidden actions and visible actions');
14801
14845
  return queryParams;
@@ -14903,7 +14947,7 @@ class TsEmbed {
14903
14947
  iFrame.mozallowfullscreen = true;
14904
14948
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14905
14949
  // @ts-ignore
14906
- iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
14950
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
14907
14951
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
14908
14952
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
14909
14953
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -16228,7 +16272,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16228
16272
  getEmbedParams() {
16229
16273
  let params = {};
16230
16274
  params = this.getBaseQueryParams(params);
16231
- 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;
16275
+ 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;
16232
16276
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16233
16277
  || this.viewConfig.preventPinboardFilterRemoval;
16234
16278
  if (fullHeight === true) {
@@ -16271,6 +16315,15 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16271
16315
  if (enableAskSage) {
16272
16316
  params[Param.enableAskSage] = enableAskSage;
16273
16317
  }
16318
+ if (oAuthPollingInterval !== undefined) {
16319
+ params[Param.OauthPollingInterval] = oAuthPollingInterval;
16320
+ }
16321
+ if (isForceRedirect) {
16322
+ params[Param.IsForceRedirect] = isForceRedirect;
16323
+ }
16324
+ if (dataSourceId !== undefined) {
16325
+ params[Param.DataSourceId] = dataSourceId;
16326
+ }
16274
16327
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
16275
16328
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16276
16329
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -16343,7 +16396,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16343
16396
  beforePrerenderVisible() {
16344
16397
  var _a;
16345
16398
  const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
16346
- if (isUndefined(embedObj))
16399
+ if (isUndefined$1(embedObj))
16347
16400
  return;
16348
16401
  const showDifferentLib = this.viewConfig.liveboardId
16349
16402
  && embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
@@ -16353,7 +16406,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16353
16406
  }
16354
16407
  }
16355
16408
  handleRenderForPrerender() {
16356
- if (isUndefined(this.viewConfig.liveboardId)) {
16409
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
16357
16410
  this.prerenderGeneric();
16358
16411
  return;
16359
16412
  }
@@ -16439,6 +16492,29 @@ function getViewPropsAndListeners(props) {
16439
16492
  });
16440
16493
  }
16441
16494
 
16495
+ /**
16496
+ * Checks if `value` is `undefined`.
16497
+ *
16498
+ * @static
16499
+ * @since 0.1.0
16500
+ * @memberOf _
16501
+ * @category Lang
16502
+ * @param {*} value The value to check.
16503
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
16504
+ * @example
16505
+ *
16506
+ * _.isUndefined(void 0);
16507
+ * // => true
16508
+ *
16509
+ * _.isUndefined(null);
16510
+ * // => false
16511
+ */
16512
+ function isUndefined(value) {
16513
+ return value === undefined;
16514
+ }
16515
+
16516
+ var isUndefined_1 = isUndefined;
16517
+
16442
16518
  /**
16443
16519
  * Embed ThoughtSpot AI Conversation.
16444
16520
  * @group Embed components
@@ -16461,13 +16537,19 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16461
16537
  this.viewConfig = viewConfig;
16462
16538
  }
16463
16539
  getIframeSrc() {
16464
- const { worksheetId, searchOptions, } = this.viewConfig;
16540
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
16465
16541
  const path = 'insights/conv-assist';
16466
16542
  if (!worksheetId) {
16467
16543
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16468
16544
  }
16469
16545
  const queryParams = this.getBaseQueryParams();
16470
16546
  queryParams[Param.SpotterEnabled] = true;
16547
+ if (!isUndefined_1(disableSourceSelection)) {
16548
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
16549
+ }
16550
+ if (!isUndefined_1(hideSourceSelection)) {
16551
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
16552
+ }
16471
16553
  let query = '';
16472
16554
  const queryParamsString = getQueryParamString(queryParams, true);
16473
16555
  if (queryParamsString) {
@@ -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, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -464,7 +464,7 @@
464
464
  element.style.removeProperty(styleProperty);
465
465
  });
466
466
  };
467
- const isUndefined = (value) => value === undefined;
467
+ const isUndefined$1 = (value) => value === undefined;
468
468
  // Return if the value is a string, double or boolean.
469
469
  const getTypeFromValue = (value) => {
470
470
  if (typeof value === 'string') {
@@ -2679,6 +2679,14 @@
2679
2679
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
2680
2680
  */
2681
2681
  HostEvent["GetParameters"] = "GetParameters";
2682
+ /**
2683
+ * Triggers update of persoanlised view for a liveboard
2684
+ * ```js
2685
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
2686
+ * ```
2687
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2688
+ */
2689
+ HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
2682
2690
  })(exports.HostEvent || (exports.HostEvent = {}));
2683
2691
  /**
2684
2692
  * The different visual modes that the data sources panel within
@@ -2756,6 +2764,8 @@
2756
2764
  Param["IsSageEmbed"] = "isSageEmbed";
2757
2765
  Param["HideWorksheetSelector"] = "hideWorksheetSelector";
2758
2766
  Param["DisableWorksheetChange"] = "disableWorksheetChange";
2767
+ Param["HideSourceSelection"] = "hideSourceSelection";
2768
+ Param["DisableSourceSelection"] = "disableSourceSelection";
2759
2769
  Param["HideEurekaResults"] = "hideEurekaResults";
2760
2770
  Param["HideEurekaSuggestions"] = "hideEurekaSuggestions";
2761
2771
  Param["HideAutocompleteSuggestions"] = "hideAutocompleteSuggestions";
@@ -2798,6 +2808,10 @@
2798
2808
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2799
2809
  Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2800
2810
  Param["OverrideOrgId"] = "orgId";
2811
+ Param["EnableFlipTooltipToContextMenu"] = "flipTooltipToContextMenuEnabled";
2812
+ Param["OauthPollingInterval"] = "oAuthPollingInterval";
2813
+ Param["IsForceRedirect"] = "isForceRedirect";
2814
+ Param["DataSourceId"] = "dataSourceId";
2801
2815
  })(Param || (Param = {}));
2802
2816
  /**
2803
2817
  * ThoughtSpot application pages include actions and menu commands
@@ -3849,6 +3863,33 @@
3849
3863
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3850
3864
  */
3851
3865
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
3866
+ /**
3867
+ * Action ID for hide/disable Preview data button in spotter
3868
+ * @example
3869
+ * ```js
3870
+ * hiddenAction: [Action.PreviewDataSpotter]
3871
+ * ```
3872
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3873
+ */
3874
+ Action["PreviewDataSpotter"] = "previewDataSpotter";
3875
+ /**
3876
+ * Action ID for hide/disable reset button in spotter
3877
+ * @example
3878
+ * ```js
3879
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3880
+ * ```
3881
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3882
+ */
3883
+ Action["ResetSpotterChat"] = "resetSpotterChat";
3884
+ /**
3885
+ * Action ID for hide/disable feedback in spotter
3886
+ * @example
3887
+ * ```js
3888
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
3889
+ * ```
3890
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3891
+ */
3892
+ Action["SpotterFeedback"] = "spotterFeedback";
3852
3893
  })(exports.Action || (exports.Action = {}));
3853
3894
  var PrefetchFeatures;
3854
3895
  (function (PrefetchFeatures) {
@@ -6248,7 +6289,7 @@
6248
6289
  canLog(logLevel) {
6249
6290
  if (logLevel === exports.LogLevel.SILENT)
6250
6291
  return false;
6251
- if (!isUndefined(globalLogLevelOverride)) {
6292
+ if (!isUndefined$1(globalLogLevelOverride)) {
6252
6293
  return compareLogLevels(globalLogLevelOverride, logLevel) >= 0;
6253
6294
  }
6254
6295
  return compareLogLevels(this.logLevel, logLevel) >= 0;
@@ -14505,7 +14546,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14505
14546
  });
14506
14547
  }
14507
14548
 
14508
- 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};
14549
+ 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};
14509
14550
 
14510
14551
  /**
14511
14552
  * Copyright (c) 2022
@@ -14629,7 +14670,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14629
14670
  if (viewConfig.preRenderId) {
14630
14671
  const allOtherKeys = Object.keys(viewConfig).filter((key) => !preRenderAllowedKeys.includes(key) && !key.startsWith('on'));
14631
14672
  allOtherKeys.forEach((key) => {
14632
- if (!isUndefined(viewConfig[key])
14673
+ if (!isUndefined$1(viewConfig[key])
14633
14674
  && !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
14634
14675
  logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
14635
14676
  + `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
@@ -14812,12 +14853,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14812
14853
  if (this.embedConfig.currencyFormat) {
14813
14854
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14814
14855
  }
14815
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
14856
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, enableFlipTooltipToContextMenu = false, } = this.viewConfig;
14816
14857
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
14817
14858
  const additionalFlags = {
14818
14859
  ...additionalFlagsFromInit,
14819
14860
  ...additionalFlagsFromView,
14820
14861
  };
14862
+ if (enableFlipTooltipToContextMenu) {
14863
+ queryParams[Param.EnableFlipTooltipToContextMenu] = enableFlipTooltipToContextMenu;
14864
+ }
14821
14865
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14822
14866
  this.handleError('You cannot have both hidden actions and visible actions');
14823
14867
  return queryParams;
@@ -14925,7 +14969,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14925
14969
  iFrame.mozallowfullscreen = true;
14926
14970
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14927
14971
  // @ts-ignore
14928
- iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
14972
+ iFrame.allow = 'clipboard-read; clipboard-write; fullscreen;';
14929
14973
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
14930
14974
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
14931
14975
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -16250,7 +16294,7 @@ query GetEurekaVizSnapshots(
16250
16294
  getEmbedParams() {
16251
16295
  let params = {};
16252
16296
  params = this.getBaseQueryParams(params);
16253
- 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;
16297
+ 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;
16254
16298
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16255
16299
  || this.viewConfig.preventPinboardFilterRemoval;
16256
16300
  if (fullHeight === true) {
@@ -16293,6 +16337,15 @@ query GetEurekaVizSnapshots(
16293
16337
  if (enableAskSage) {
16294
16338
  params[Param.enableAskSage] = enableAskSage;
16295
16339
  }
16340
+ if (oAuthPollingInterval !== undefined) {
16341
+ params[Param.OauthPollingInterval] = oAuthPollingInterval;
16342
+ }
16343
+ if (isForceRedirect) {
16344
+ params[Param.IsForceRedirect] = isForceRedirect;
16345
+ }
16346
+ if (dataSourceId !== undefined) {
16347
+ params[Param.DataSourceId] = dataSourceId;
16348
+ }
16296
16349
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
16297
16350
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
16298
16351
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -16365,7 +16418,7 @@ query GetEurekaVizSnapshots(
16365
16418
  beforePrerenderVisible() {
16366
16419
  var _a;
16367
16420
  const embedObj = (_a = this.insertedDomEl) === null || _a === void 0 ? void 0 : _a[this.embedNodeKey];
16368
- if (isUndefined(embedObj))
16421
+ if (isUndefined$1(embedObj))
16369
16422
  return;
16370
16423
  const showDifferentLib = this.viewConfig.liveboardId
16371
16424
  && embedObj.viewConfig.liveboardId !== this.viewConfig.liveboardId;
@@ -16375,7 +16428,7 @@ query GetEurekaVizSnapshots(
16375
16428
  }
16376
16429
  }
16377
16430
  handleRenderForPrerender() {
16378
- if (isUndefined(this.viewConfig.liveboardId)) {
16431
+ if (isUndefined$1(this.viewConfig.liveboardId)) {
16379
16432
  this.prerenderGeneric();
16380
16433
  return;
16381
16434
  }
@@ -16461,6 +16514,29 @@ query GetEurekaVizSnapshots(
16461
16514
  });
16462
16515
  }
16463
16516
 
16517
+ /**
16518
+ * Checks if `value` is `undefined`.
16519
+ *
16520
+ * @static
16521
+ * @since 0.1.0
16522
+ * @memberOf _
16523
+ * @category Lang
16524
+ * @param {*} value The value to check.
16525
+ * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
16526
+ * @example
16527
+ *
16528
+ * _.isUndefined(void 0);
16529
+ * // => true
16530
+ *
16531
+ * _.isUndefined(null);
16532
+ * // => false
16533
+ */
16534
+ function isUndefined(value) {
16535
+ return value === undefined;
16536
+ }
16537
+
16538
+ var isUndefined_1 = isUndefined;
16539
+
16464
16540
  /**
16465
16541
  * Embed ThoughtSpot AI Conversation.
16466
16542
  * @group Embed components
@@ -16483,13 +16559,19 @@ query GetEurekaVizSnapshots(
16483
16559
  this.viewConfig = viewConfig;
16484
16560
  }
16485
16561
  getIframeSrc() {
16486
- const { worksheetId, searchOptions, } = this.viewConfig;
16562
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
16487
16563
  const path = 'insights/conv-assist';
16488
16564
  if (!worksheetId) {
16489
16565
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16490
16566
  }
16491
16567
  const queryParams = this.getBaseQueryParams();
16492
16568
  queryParams[Param.SpotterEnabled] = true;
16569
+ if (!isUndefined_1(disableSourceSelection)) {
16570
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
16571
+ }
16572
+ if (!isUndefined_1(hideSourceSelection)) {
16573
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
16574
+ }
16493
16575
  let query = '';
16494
16576
  const queryParamsString = getQueryParamString(queryParams, true);
16495
16577
  if (queryParamsString) {