@thoughtspot/visual-embed-sdk 1.33.3 → 1.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +20 -6
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +3 -2
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +10 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/base.spec.js +13 -1
  9. package/cjs/src/embed/base.spec.js.map +1 -1
  10. package/cjs/src/embed/conversation.d.ts.map +1 -1
  11. package/cjs/src/embed/conversation.js +4 -0
  12. package/cjs/src/embed/conversation.js.map +1 -1
  13. package/cjs/src/embed/conversation.spec.js +13 -0
  14. package/cjs/src/embed/conversation.spec.js.map +1 -1
  15. package/cjs/src/embed/liveboard.js +1 -1
  16. package/cjs/src/embed/liveboard.js.map +1 -1
  17. package/cjs/src/embed/liveboard.spec.js +2 -2
  18. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  19. package/cjs/src/embed/search.js +1 -1
  20. package/cjs/src/embed/search.js.map +1 -1
  21. package/cjs/src/embed/search.spec.js +6 -6
  22. package/cjs/src/embed/search.spec.js.map +1 -1
  23. package/cjs/src/embed/ts-embed.spec.js +1 -1
  24. package/cjs/src/errors.d.ts +1 -0
  25. package/cjs/src/errors.d.ts.map +1 -1
  26. package/cjs/src/errors.js +10 -9
  27. package/cjs/src/errors.js.map +1 -1
  28. package/cjs/src/react/index.spec.js +1 -1
  29. package/cjs/src/react/index.spec.js.map +1 -1
  30. package/cjs/src/types.d.ts +34 -19
  31. package/cjs/src/types.d.ts.map +1 -1
  32. package/cjs/src/types.js +29 -14
  33. package/cjs/src/types.js.map +1 -1
  34. package/dist/{index-Ck3m4Sis.js → index-Cl8Rsh6W.js} +1 -1
  35. package/dist/src/embed/app.d.ts +20 -6
  36. package/dist/src/embed/app.d.ts.map +1 -1
  37. package/dist/src/embed/conversation.d.ts.map +1 -1
  38. package/dist/src/errors.d.ts +1 -0
  39. package/dist/src/errors.d.ts.map +1 -1
  40. package/dist/src/types.d.ts +34 -19
  41. package/dist/src/types.d.ts.map +1 -1
  42. package/dist/tsembed-react.es.js +50 -30
  43. package/dist/tsembed-react.js +49 -29
  44. package/dist/tsembed.es.js +50 -30
  45. package/dist/tsembed.js +49 -29
  46. package/dist/visual-embed-sdk-react-full.d.ts +54 -25
  47. package/dist/visual-embed-sdk-react.d.ts +54 -25
  48. package/dist/visual-embed-sdk.d.ts +54 -25
  49. package/lib/package.json +1 -1
  50. package/lib/src/embed/app.d.ts +20 -6
  51. package/lib/src/embed/app.d.ts.map +1 -1
  52. package/lib/src/embed/app.js +3 -2
  53. package/lib/src/embed/app.js.map +1 -1
  54. package/lib/src/embed/app.spec.js +10 -0
  55. package/lib/src/embed/app.spec.js.map +1 -1
  56. package/lib/src/embed/base.spec.js +13 -1
  57. package/lib/src/embed/base.spec.js.map +1 -1
  58. package/lib/src/embed/conversation.d.ts.map +1 -1
  59. package/lib/src/embed/conversation.js +4 -0
  60. package/lib/src/embed/conversation.js.map +1 -1
  61. package/lib/src/embed/conversation.spec.js +13 -0
  62. package/lib/src/embed/conversation.spec.js.map +1 -1
  63. package/lib/src/embed/liveboard.js +1 -1
  64. package/lib/src/embed/liveboard.js.map +1 -1
  65. package/lib/src/embed/liveboard.spec.js +2 -2
  66. package/lib/src/embed/liveboard.spec.js.map +1 -1
  67. package/lib/src/embed/search.js +1 -1
  68. package/lib/src/embed/search.js.map +1 -1
  69. package/lib/src/embed/search.spec.js +6 -6
  70. package/lib/src/embed/search.spec.js.map +1 -1
  71. package/lib/src/embed/ts-embed.spec.js +1 -1
  72. package/lib/src/errors.d.ts +1 -0
  73. package/lib/src/errors.d.ts.map +1 -1
  74. package/lib/src/errors.js +10 -9
  75. package/lib/src/errors.js.map +1 -1
  76. package/lib/src/react/index.spec.js +1 -1
  77. package/lib/src/react/index.spec.js.map +1 -1
  78. package/lib/src/types.d.ts +34 -19
  79. package/lib/src/types.d.ts.map +1 -1
  80. package/lib/src/types.js +29 -14
  81. package/lib/src/types.js.map +1 -1
  82. package/lib/src/visual-embed-sdk.d.ts +54 -25
  83. package/package.json +1 -1
  84. package/src/embed/app.spec.ts +15 -0
  85. package/src/embed/app.ts +23 -7
  86. package/src/embed/base.spec.ts +13 -1
  87. package/src/embed/conversation.spec.ts +16 -0
  88. package/src/embed/conversation.ts +4 -0
  89. package/src/embed/liveboard.spec.ts +2 -2
  90. package/src/embed/liveboard.ts +1 -1
  91. package/src/embed/search.spec.ts +6 -6
  92. package/src/embed/search.ts +1 -1
  93. package/src/embed/ts-embed.spec.ts +1 -1
  94. package/src/errors.ts +10 -9
  95. package/src/react/index.spec.tsx +1 -1
  96. package/src/types.ts +32 -17
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.4 */
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -1671,22 +1671,26 @@ var EmbedEvent;
1671
1671
  */
1672
1672
  EmbedEvent["Rename"] = "rename";
1673
1673
  /**
1674
- * Emitted if the user wants to intercept the search execution
1675
- * and implement logic to decide whether to run the search or not
1676
1674
  *
1677
- * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1675
+ * This event can be emitted to intercept search execution initiated by
1676
+ * the users and implement the logic to allow or restrict search execution.
1677
+ * You can can also show custom error text if the search query must be
1678
+ * restricted due to your application or business requirements.
1679
+
1680
+ * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1678
1681
  * for this embed event to get emitted.
1679
1682
  * @param: payload
1680
1683
  * @param: responder
1681
1684
  * Contains elements that lets developers define whether ThoughtSpot
1682
- * will run the search or not, and if not, which error message to provide.
1685
+ * should run the search, and if not, what error message
1686
+ * should be shown to the user.
1683
1687
  *
1684
- * execute: When execute returns true, the search will be run.
1685
- * When execute returns false, the search will not be executed.
1688
+ * execute: When execute returns `true`, the search will be run.
1689
+ * When execute returns `false`, the search will not be executed.
1686
1690
  *
1687
- * error: Developers can customize the user facing message when execute is
1688
- * set to false using the error parameter in responder
1689
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1691
+ * error: Developers can customize the error message text when `execute`
1692
+ * returns `false` using the error parameter in responder.
1693
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1690
1694
  * @example
1691
1695
  *```js
1692
1696
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1726,15 +1730,15 @@ var EmbedEvent;
1726
1730
  */
1727
1731
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1728
1732
  /**
1729
- * Emitted when parameter changes in an answer
1730
- * or liveboard
1733
+ * Emitted when parameter changes in an Answer
1734
+ * or Liveboard
1731
1735
  *
1732
1736
  * ```js
1733
1737
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1734
1738
  * console.log('payload', payload);
1735
1739
  * })
1736
1740
  *```
1737
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1741
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1738
1742
  */
1739
1743
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1740
1744
  })(EmbedEvent || (EmbedEvent = {}));
@@ -2466,7 +2470,8 @@ var HostEvent;
2466
2470
  *
2467
2471
  * `values` - An array of one or several values. The value definition on the
2468
2472
  * data type you choose to filter on. For a complete list of supported data types, see
2469
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
2473
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
2474
+ *
2470
2475
  * `type` - To update filters for date time, specify the date format type.
2471
2476
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
2472
2477
  *
@@ -2760,6 +2765,7 @@ var Param;
2760
2765
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2761
2766
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2762
2767
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2768
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2763
2769
  })(Param || (Param = {}));
2764
2770
  /**
2765
2771
  * ThoughtSpot application pages include actions and menu commands
@@ -3731,7 +3737,7 @@ var Action;
3731
3737
  */
3732
3738
  Action["AIHighlights"] = "AIHighlights";
3733
3739
  /**
3734
- * Action ID for edit schedule action on schedule on homepage
3740
+ * Action ID for edit the schedule action on schedule on homepage
3735
3741
  * @example
3736
3742
  * ```js
3737
3743
  * disabledActions: [Action.EditScheduleHomepage]
@@ -3793,6 +3799,15 @@ var Action;
3793
3799
  * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3794
3800
  */
3795
3801
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3802
+ /**
3803
+ * Action ID for disabling chip reorder in Answer and Liveboard
3804
+ * @example
3805
+ * ```js
3806
+ * const disabledActions = [Action.DisableChipReorder]
3807
+ * ```
3808
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3809
+ */
3810
+ Action["DisableChipReorder"] = "disableChipReorder";
3796
3811
  })(Action || (Action = {}));
3797
3812
  var PrefetchFeatures;
3798
3813
  (function (PrefetchFeatures) {
@@ -6159,20 +6174,21 @@ const logger$3 = new Logger();
6159
6174
 
6160
6175
  const ERROR_MESSAGE = {
6161
6176
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6162
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6163
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6164
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6165
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6166
- THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6167
- DUPLICATE_TOKEN_ERR: 'Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6177
+ SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
6178
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
6179
+ TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
6180
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
6181
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
6182
+ THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6183
+ DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6168
6184
  SDK_NOT_INITIALIZED: 'SDK not initialized',
6169
- SESSION_INFO_FAILED: 'Failed to get session info',
6185
+ SESSION_INFO_FAILED: 'Failed to get session information',
6170
6186
  INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
6171
6187
  MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
6172
- PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
6188
+ PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
6173
6189
  SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
6174
6190
  CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
6175
- CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6191
+ CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6176
6192
  MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
6177
6193
  };
6178
6194
 
@@ -6980,7 +6996,7 @@ class AnswerService {
6980
6996
  async getTML() {
6981
6997
  const { object } = await this.executeQuery(getAnswerTML, {});
6982
6998
  const edoc = object[0].edoc;
6983
- const YAML = await import('./index-Ck3m4Sis.js');
6999
+ const YAML = await import('./index-Cl8Rsh6W.js');
6984
7000
  const parsedDoc = YAML.parse(edoc);
6985
7001
  return {
6986
7002
  answer: {
@@ -14379,7 +14395,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14379
14395
  });
14380
14396
  }
14381
14397
 
14382
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",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","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};
14398
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",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","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};
14383
14399
 
14384
14400
  /**
14385
14401
  * Copyright (c) 2022
@@ -15603,7 +15619,7 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
15603
15619
  }
15604
15620
  getEmbedParams() {
15605
15621
  var _a;
15606
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15622
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15607
15623
  /* eslint-disable-next-line max-len */
15608
15624
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15609
15625
  const queryParams = this.getBaseQueryParams();
@@ -15820,9 +15836,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
15820
15836
  * embedded Liveboard or visualization.
15821
15837
  */
15822
15838
  getEmbedParams() {
15823
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15839
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15824
15840
  /* eslint-disable-next-line max-len */
15825
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15841
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15826
15842
  let params = {};
15827
15843
  params[Param.EmbedApp] = true;
15828
15844
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15837,6 +15853,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
15837
15853
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15838
15854
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15839
15855
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15856
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15840
15857
  params = this.getBaseQueryParams(params);
15841
15858
  if (fullHeight === true) {
15842
15859
  params[Param.fullHeight] = true;
@@ -16115,7 +16132,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
16115
16132
  let params = {};
16116
16133
  params[Param.EmbedApp] = true;
16117
16134
  params = this.getBaseQueryParams(params);
16118
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
16135
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16119
16136
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16120
16137
  || this.viewConfig.preventPinboardFilterRemoval;
16121
16138
  if (fullHeight === true) {
@@ -16348,6 +16365,9 @@ let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
16348
16365
  getIframeSrc() {
16349
16366
  const { worksheetId, searchOptions, } = this.viewConfig;
16350
16367
  const path = 'insights/conv-assist';
16368
+ if (!worksheetId) {
16369
+ this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16370
+ }
16351
16371
  const queryParams = this.getBaseQueryParams();
16352
16372
  queryParams[Param.SpotterEnabled] = true;
16353
16373
  let query = '';
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.33.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.33.4 */
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) :
@@ -1693,22 +1693,26 @@
1693
1693
  */
1694
1694
  EmbedEvent["Rename"] = "rename";
1695
1695
  /**
1696
- * Emitted if the user wants to intercept the search execution
1697
- * and implement logic to decide whether to run the search or not
1698
1696
  *
1699
- * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
1697
+ * This event can be emitted to intercept search execution initiated by
1698
+ * the users and implement the logic to allow or restrict search execution.
1699
+ * You can can also show custom error text if the search query must be
1700
+ * restricted due to your application or business requirements.
1701
+
1702
+ * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1700
1703
  * for this embed event to get emitted.
1701
1704
  * @param: payload
1702
1705
  * @param: responder
1703
1706
  * Contains elements that lets developers define whether ThoughtSpot
1704
- * will run the search or not, and if not, which error message to provide.
1707
+ * should run the search, and if not, what error message
1708
+ * should be shown to the user.
1705
1709
  *
1706
- * execute: When execute returns true, the search will be run.
1707
- * When execute returns false, the search will not be executed.
1710
+ * execute: When execute returns `true`, the search will be run.
1711
+ * When execute returns `false`, the search will not be executed.
1708
1712
  *
1709
- * error: Developers can customize the user facing message when execute is
1710
- * set to false using the error parameter in responder
1711
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1713
+ * error: Developers can customize the error message text when `execute`
1714
+ * returns `false` using the error parameter in responder.
1715
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1712
1716
  * @example
1713
1717
  *```js
1714
1718
  * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
@@ -1748,15 +1752,15 @@
1748
1752
  */
1749
1753
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1750
1754
  /**
1751
- * Emitted when parameter changes in an answer
1752
- * or liveboard
1755
+ * Emitted when parameter changes in an Answer
1756
+ * or Liveboard
1753
1757
  *
1754
1758
  * ```js
1755
1759
  * liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
1756
1760
  * console.log('payload', payload);
1757
1761
  * })
1758
1762
  *```
1759
- * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
1763
+ * @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
1760
1764
  */
1761
1765
  EmbedEvent["ParameterChanged"] = "parameterChanged";
1762
1766
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -2488,7 +2492,8 @@
2488
2492
  *
2489
2493
  * `values` - An array of one or several values. The value definition on the
2490
2494
  * data type you choose to filter on. For a complete list of supported data types, see
2491
- * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
2495
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
2496
+ *
2492
2497
  * `type` - To update filters for date time, specify the date format type.
2493
2498
  * For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
2494
2499
  *
@@ -2782,6 +2787,7 @@
2782
2787
  Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
2783
2788
  Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
2784
2789
  Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
2790
+ Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
2785
2791
  })(Param || (Param = {}));
2786
2792
  /**
2787
2793
  * ThoughtSpot application pages include actions and menu commands
@@ -3753,7 +3759,7 @@
3753
3759
  */
3754
3760
  Action["AIHighlights"] = "AIHighlights";
3755
3761
  /**
3756
- * Action ID for edit schedule action on schedule on homepage
3762
+ * Action ID for edit the schedule action on schedule on homepage
3757
3763
  * @example
3758
3764
  * ```js
3759
3765
  * disabledActions: [Action.EditScheduleHomepage]
@@ -3815,6 +3821,15 @@
3815
3821
  * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3816
3822
  */
3817
3823
  Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3824
+ /**
3825
+ * Action ID for disabling chip reorder in Answer and Liveboard
3826
+ * @example
3827
+ * ```js
3828
+ * const disabledActions = [Action.DisableChipReorder]
3829
+ * ```
3830
+ * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
3831
+ */
3832
+ Action["DisableChipReorder"] = "disableChipReorder";
3818
3833
  })(exports.Action || (exports.Action = {}));
3819
3834
  var PrefetchFeatures;
3820
3835
  (function (PrefetchFeatures) {
@@ -6181,20 +6196,21 @@
6181
6196
 
6182
6197
  const ERROR_MESSAGE = {
6183
6198
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6184
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6185
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6186
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6187
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6188
- THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6189
- DUPLICATE_TOKEN_ERR: 'Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6199
+ SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
6200
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
6201
+ TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
6202
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
6203
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
6204
+ THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
6205
+ DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
6190
6206
  SDK_NOT_INITIALIZED: 'SDK not initialized',
6191
- SESSION_INFO_FAILED: 'Failed to get session info',
6207
+ SESSION_INFO_FAILED: 'Failed to get session information',
6192
6208
  INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
6193
6209
  MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
6194
- PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
6210
+ PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
6195
6211
  SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
6196
6212
  CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
6197
- CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6213
+ CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
6198
6214
  MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
6199
6215
  };
6200
6216
 
@@ -14401,7 +14417,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14401
14417
  });
14402
14418
  }
14403
14419
 
14404
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.3";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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",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","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};
14420
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",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","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};
14405
14421
 
14406
14422
  /**
14407
14423
  * Copyright (c) 2022
@@ -15625,7 +15641,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15625
15641
  }
15626
15642
  getEmbedParams() {
15627
15643
  var _a;
15628
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15644
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15629
15645
  /* eslint-disable-next-line max-len */
15630
15646
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
15631
15647
  const queryParams = this.getBaseQueryParams();
@@ -15842,9 +15858,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15842
15858
  * embedded Liveboard or visualization.
15843
15859
  */
15844
15860
  getEmbedParams() {
15845
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15861
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15846
15862
  /* eslint-disable-next-line max-len */
15847
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
15863
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
15848
15864
  let params = {};
15849
15865
  params[Param.EmbedApp] = true;
15850
15866
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15859,6 +15875,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15859
15875
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
15860
15876
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
15861
15877
  params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
15878
+ params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
15862
15879
  params = this.getBaseQueryParams(params);
15863
15880
  if (fullHeight === true) {
15864
15881
  params[Param.fullHeight] = true;
@@ -16137,7 +16154,7 @@ query GetEurekaVizSnapshots(
16137
16154
  let params = {};
16138
16155
  params[Param.EmbedApp] = true;
16139
16156
  params = this.getBaseQueryParams(params);
16140
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
16157
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
16141
16158
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
16142
16159
  || this.viewConfig.preventPinboardFilterRemoval;
16143
16160
  if (fullHeight === true) {
@@ -16370,6 +16387,9 @@ query GetEurekaVizSnapshots(
16370
16387
  getIframeSrc() {
16371
16388
  const { worksheetId, searchOptions, } = this.viewConfig;
16372
16389
  const path = 'insights/conv-assist';
16390
+ if (!worksheetId) {
16391
+ this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
16392
+ }
16373
16393
  const queryParams = this.getBaseQueryParams();
16374
16394
  queryParams[Param.SpotterEnabled] = true;
16375
16395
  let query = '';