@thoughtspot/visual-embed-sdk 1.45.3 → 1.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +2 -2
  3. package/cjs/src/auth.d.ts +35 -2
  4. package/cjs/src/auth.d.ts.map +1 -1
  5. package/cjs/src/auth.js +36 -3
  6. package/cjs/src/auth.js.map +1 -1
  7. package/cjs/src/embed/app.d.ts +1 -1
  8. package/cjs/src/embed/app.d.ts.map +1 -1
  9. package/cjs/src/embed/app.js +6 -6
  10. package/cjs/src/embed/app.js.map +1 -1
  11. package/cjs/src/embed/app.spec.js +87 -119
  12. package/cjs/src/embed/app.spec.js.map +1 -1
  13. package/cjs/src/embed/conversation.d.ts +1 -1
  14. package/cjs/src/embed/liveboard.d.ts +2 -2
  15. package/cjs/src/embed/liveboard.js +2 -2
  16. package/cjs/src/embed/search.d.ts +3 -2
  17. package/cjs/src/embed/search.d.ts.map +1 -1
  18. package/cjs/src/embed/search.js +3 -2
  19. package/cjs/src/embed/search.js.map +1 -1
  20. package/cjs/src/embed/ts-embed.d.ts +1 -1
  21. package/cjs/src/embed/ts-embed.js +1 -1
  22. package/cjs/src/react/index.d.ts +1 -1
  23. package/cjs/src/types.d.ts +408 -66
  24. package/cjs/src/types.d.ts.map +1 -1
  25. package/cjs/src/types.js +116 -52
  26. package/cjs/src/types.js.map +1 -1
  27. package/dist/{index-BuwECGdm.js → index-Vyh6Ha5f.js} +1 -1
  28. package/dist/src/auth.d.ts +35 -2
  29. package/dist/src/auth.d.ts.map +1 -1
  30. package/dist/src/embed/app.d.ts +1 -1
  31. package/dist/src/embed/app.d.ts.map +1 -1
  32. package/dist/src/embed/conversation.d.ts +1 -1
  33. package/dist/src/embed/liveboard.d.ts +2 -2
  34. package/dist/src/embed/search.d.ts +3 -2
  35. package/dist/src/embed/search.d.ts.map +1 -1
  36. package/dist/src/embed/ts-embed.d.ts +1 -1
  37. package/dist/src/react/index.d.ts +1 -1
  38. package/dist/src/types.d.ts +408 -66
  39. package/dist/src/types.d.ts.map +1 -1
  40. package/dist/tsembed-react.es.js +167 -69
  41. package/dist/tsembed-react.js +166 -68
  42. package/dist/tsembed.es.js +167 -69
  43. package/dist/tsembed.js +166 -68
  44. package/dist/visual-embed-sdk-react-full.d.ts +446 -71
  45. package/dist/visual-embed-sdk-react.d.ts +439 -67
  46. package/dist/visual-embed-sdk.d.ts +445 -70
  47. package/lib/package.json +2 -2
  48. package/lib/src/auth.d.ts +35 -2
  49. package/lib/src/auth.d.ts.map +1 -1
  50. package/lib/src/auth.js +36 -3
  51. package/lib/src/auth.js.map +1 -1
  52. package/lib/src/embed/app.d.ts +1 -1
  53. package/lib/src/embed/app.d.ts.map +1 -1
  54. package/lib/src/embed/app.js +6 -6
  55. package/lib/src/embed/app.js.map +1 -1
  56. package/lib/src/embed/app.spec.js +87 -119
  57. package/lib/src/embed/app.spec.js.map +1 -1
  58. package/lib/src/embed/conversation.d.ts +1 -1
  59. package/lib/src/embed/liveboard.d.ts +2 -2
  60. package/lib/src/embed/liveboard.js +2 -2
  61. package/lib/src/embed/search.d.ts +3 -2
  62. package/lib/src/embed/search.d.ts.map +1 -1
  63. package/lib/src/embed/search.js +3 -2
  64. package/lib/src/embed/search.js.map +1 -1
  65. package/lib/src/embed/ts-embed.d.ts +1 -1
  66. package/lib/src/embed/ts-embed.js +1 -1
  67. package/lib/src/react/index.d.ts +1 -1
  68. package/lib/src/types.d.ts +408 -66
  69. package/lib/src/types.d.ts.map +1 -1
  70. package/lib/src/types.js +116 -52
  71. package/lib/src/types.js.map +1 -1
  72. package/package.json +2 -2
  73. package/src/auth.ts +36 -3
  74. package/src/embed/app.spec.ts +171 -211
  75. package/src/embed/app.ts +16 -11
  76. package/src/embed/conversation.ts +1 -1
  77. package/src/embed/liveboard.ts +2 -2
  78. package/src/embed/search.ts +3 -2
  79. package/src/embed/ts-embed.ts +1 -1
  80. package/src/react/index.tsx +1 -1
  81. package/src/types.ts +409 -67
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.45.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.46.1 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -1339,65 +1339,67 @@
1339
1339
  EmbedEvent["Rename"] = "rename";
1340
1340
  /**
1341
1341
  *
1342
- * This event can be emitted to intercept search execution initiated by
1343
- * users and implement logic to allow or restrict search execution.
1344
- * You can also show custom error text if the search query must be
1345
- * restricted due to your application or business requirements.
1346
-
1347
- * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1348
- * for this embed event to get emitted.
1349
- * @param - Includes the following event listener parameters:
1350
- * - `payload`: The payload received from the embed related to the Data API call.
1351
- * - `responder`: Contains elements that let developers define whether ThoughtSpot
1352
- * should run the search, and if not, what error message
1353
- * should be shown to the user.
1342
+ * This event allows developers to intercept search execution
1343
+ * and implement logic that decides whether Search Data should return
1344
+ * data or block the search operation.
1354
1345
  *
1355
- * `execute` - When `execute` returns `true`, the search will be run.
1356
- * When `execute` returns `false`, the search will not be executed.
1346
+ * **Prerequisite**: Set`isOnBeforeGetVizDataInterceptEnabled` to `true`
1347
+ * to ensure that `EmbedEvent.OnBeforeGetVizDataIntercept` is emitted
1348
+ * when the embedding application user tries to run a search query.
1357
1349
  *
1358
- * `error` - Developers can customize the error message text when `execute`
1359
- * is `false` using the `errorText` and `errorDescription` parameters in responder.
1360
- *
1361
- * `errorText` - The error message text to be shown to the user.
1362
- * `errorDescription (ThoughtSpot: 10.15.0.cl and above)` - The error description to be shown to the user.
1350
+ * This framework applies only to `AppEmbed` and `SearchEmbed`.
1351
+ * @param - Includes the following parameters:
1352
+ * - `payload`: The payload received from the embed related to the Data API call.
1353
+ * - `responder`: Contains elements that let developers define whether ThoughtSpot
1354
+ * will run or block the search operation, and if blocked, which error message to provide.
1355
+ * - `execute` - When `execute` returns `true`, the search is run.
1356
+ * When `execute` returns `false`, the search is not executed.
1357
+ * - `error` - Developers can customize the user-facing error message when `execute`
1358
+ * is `false` by using the `error` parameters in `responder`.
1359
+ * - `errorText` - The error message text shown to the user.
1363
1360
  * @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
1364
1361
  * @example
1365
- *```js
1366
- * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
1367
- * (payload, responder) => {
1368
- * responder({
1369
- * data: {
1370
- * execute:false,
1371
- * error: {
1372
- * //Provide a custom error message to explain to your end user
1373
- * //why their search did not run
1374
- * errorText: "This search query cannot be run.
1375
- * Please contact your administrator for more details."
1376
- * }
1377
- * }})
1362
+ *
1363
+ * This example blocks search operation and returns a custom error message:
1364
+ * ```js
1365
+ * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
1366
+ * responder({
1367
+ * data: {
1368
+ * execute: false,
1369
+ * error: {
1370
+ * // Provide a custom error message to explain why the search did not run.
1371
+ * errorText: 'This search query cannot be run. Please contact your administrator for more details.',
1372
+ * },
1373
+ * },
1374
+ * });
1378
1375
  * })
1379
1376
  * ```
1377
+ * @example
1380
1378
  *
1381
- *```js
1382
- * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
1383
- * (payload, responder) => {
1384
- * const query = payload.data.data.answer.search_query
1385
- * responder({
1386
- * data: {
1387
- * // returns true as long as the query does not include
1388
- * // both the 'sales' AND the 'county' column
1389
- * execute: !(query.includes("sales")&&query.includes("county")),
1390
- * error: {
1391
- * //Provide a custom error message to explain to your end user
1392
- * // why their search did not run, and which searches are accepted by your custom logic.
1393
- * errorText: "Error Occurred",
1394
- * errorDescription: "You can't use this query :" + query + ".
1395
- * The 'sales' measures can never be used at the 'county' level.
1396
- * Please try another measure, or remove 'county' from your search."
1397
- * }
1398
- * }})
1379
+ * This example allows the search operation to run
1380
+ * unless the query contains both `sales` and `county`,
1381
+ * and returns a custom error message if the query is rejected:
1382
+ * ```js
1383
+ * embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
1384
+ * // Record the search query submitted by the end user.
1385
+ * const query = payload.data.data.answer.search_query;
1386
+ *
1387
+ * responder({
1388
+ * data: {
1389
+ * // Returns true as long as the query does not include both `sales` and `county`.
1390
+ * execute: !(query.includes('sales') && query.includes('county')),
1391
+ * error: {
1392
+ * // Provide a custom error message when the query is blocked by your logic.
1393
+ * errorText:
1394
+ * "You can't use this query: "
1395
+ * + query
1396
+ * + ". The 'sales' measure can never be used at the 'county' level. "
1397
+ * + "Please try another measure or remove 'county' from your search.",
1398
+ * },
1399
+ * },
1400
+ * });
1399
1401
  * })
1400
- *```
1402
+ * ```
1401
1403
  */
1402
1404
  EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
1403
1405
  /**
@@ -4845,18 +4847,80 @@
4845
4847
  */
4846
4848
  exports.CustomActionsPosition = void 0;
4847
4849
  (function (CustomActionsPosition) {
4850
+ /**
4851
+ * Shows the action as a primary button
4852
+ * in the toolbar area of the embed.
4853
+ */
4848
4854
  CustomActionsPosition["PRIMARY"] = "PRIMARY";
4855
+ /**
4856
+ * Shows the action inside the "More" menu
4857
+ * (three-dot overflow menu).
4858
+ */
4849
4859
  CustomActionsPosition["MENU"] = "MENU";
4860
+ /**
4861
+ * Shows the action in the right-click
4862
+ * context menu. Only supported for
4863
+ * {@link CustomActionTarget.VIZ},
4864
+ * {@link CustomActionTarget.ANSWER}, and
4865
+ * {@link CustomActionTarget.SPOTTER} targets.
4866
+ */
4850
4867
  CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
4851
4868
  })(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
4852
4869
  /**
4853
- * Enum options to mention the target of the custom action.
4870
+ * Enum options to mention the target of the code-based custom action.
4871
+ * The target determines which type of ThoughtSpot object the action is
4872
+ * associated with, and also controls which positions and scoping options
4873
+ * are available.
4854
4874
  */
4855
4875
  exports.CustomActionTarget = void 0;
4856
4876
  (function (CustomActionTarget) {
4877
+ /**
4878
+ * Action applies at the Liveboard level.
4879
+ * Supported positions:
4880
+ * {@link CustomActionsPosition.PRIMARY},
4881
+ * {@link CustomActionsPosition.MENU}.
4882
+ * Can be scoped with
4883
+ * `metadataIds.liveboardIds`,
4884
+ * `orgIds`, and `groupIds`.
4885
+ */
4857
4886
  CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
4887
+ /**
4888
+ * Action applies to individual
4889
+ * visualizations (charts/tables).
4890
+ * Supported positions:
4891
+ * {@link CustomActionsPosition.PRIMARY},
4892
+ * {@link CustomActionsPosition.MENU},
4893
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4894
+ * Can be scoped with `metadataIds`
4895
+ * (answerIds, liveboardIds, vizIds),
4896
+ * `dataModelIds` (modelIds,
4897
+ * modelColumnNames), `orgIds`,
4898
+ * and `groupIds`.
4899
+ */
4858
4900
  CustomActionTarget["VIZ"] = "VIZ";
4901
+ /**
4902
+ * Action applies to saved or unsaved
4903
+ * Answers. Supported positions:
4904
+ * {@link CustomActionsPosition.PRIMARY},
4905
+ * {@link CustomActionsPosition.MENU},
4906
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4907
+ * Can be scoped with
4908
+ * `metadataIds.answerIds`,
4909
+ * `dataModelIds` (modelIds,
4910
+ * modelColumnNames), `orgIds`,
4911
+ * and `groupIds`.
4912
+ */
4859
4913
  CustomActionTarget["ANSWER"] = "ANSWER";
4914
+ /**
4915
+ * Action applies to Spotter
4916
+ * (AI-powered search).
4917
+ * Supported positions:
4918
+ * {@link CustomActionsPosition.MENU},
4919
+ * {@link CustomActionsPosition.CONTEXTMENU}.
4920
+ * Can be scoped with
4921
+ * `dataModelIds.modelIds`,
4922
+ * `orgIds`, and `groupIds`.
4923
+ */
4860
4924
  CustomActionTarget["SPOTTER"] = "SPOTTER";
4861
4925
  })(exports.CustomActionTarget || (exports.CustomActionTarget = {}));
4862
4926
  /**
@@ -17410,17 +17474,50 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17410
17474
  let releaseVersion = '';
17411
17475
  const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
17412
17476
  /**
17413
- * Enum for auth failure types. This is the parameter passed to the listner
17414
- * of {@link AuthStatus.FAILURE}.
17477
+ * Enum for auth failure types.
17478
+ * This value is passed to the listener for {@link AuthStatus.FAILURE}.
17415
17479
  * @group Authentication / Init
17416
17480
  */
17417
17481
  exports.AuthFailureType = void 0;
17418
17482
  (function (AuthFailureType) {
17483
+ /**
17484
+ * Authentication failed in the SDK authentication flow.
17485
+ *
17486
+ * Emitted when `init()` or auto-authentication cannot establish a logged-in session.
17487
+ * For example, this can happen because of an invalid token, an auth request failure,
17488
+ * or an auth promise rejection.
17489
+ */
17419
17490
  AuthFailureType["SDK"] = "SDK";
17491
+ /**
17492
+ * Browser cookie access is blocked for the embedded app.
17493
+ *
17494
+ * Emitted when the iframe reports that required cookies
17495
+ * cannot be read or sent, commonly due to third-party cookie restrictions.
17496
+ */
17420
17497
  AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
17498
+ /**
17499
+ * The current authentication token or session has expired.
17500
+ *
17501
+ * Emitted when the embed receives an auth-expiry signal and starts auth refresh handling.
17502
+ */
17421
17503
  AuthFailureType["EXPIRY"] = "EXPIRY";
17504
+ /**
17505
+ * A generic authentication failure that does not match a more specific type.
17506
+ *
17507
+ * Emitted as a fallback for app-reported auth failures in standard auth flows.
17508
+ */
17422
17509
  AuthFailureType["OTHER"] = "OTHER";
17510
+ /**
17511
+ * The user session timed out due to inactivity.
17512
+ *
17513
+ * Emitted when the app reports an idle-session timeout.
17514
+ */
17423
17515
  AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
17516
+ /**
17517
+ * The app reports that the user is unauthenticated.
17518
+ *
17519
+ * Used primarily to classify unauthenticated failures in Embedded SSO flows.
17520
+ */
17424
17521
  AuthFailureType["UNAUTHENTICATED_FAILURE"] = "UNAUTHENTICATED_FAILURE";
17425
17522
  })(exports.AuthFailureType || (exports.AuthFailureType = {}));
17426
17523
  /**
@@ -17589,7 +17686,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17589
17686
  // reload the page which we don't want. We'll live with adding an
17590
17687
  // unnecessary hash to the parent page URL until we find any use case where
17591
17688
  // that creates an issue.
17592
- // Replace any occurences of ?ssoMarker=guid or &ssoMarker=guid.
17689
+ // Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
17593
17690
  let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17594
17691
  updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
17595
17692
  window.location.hash = updatedHash;
@@ -18397,7 +18494,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18397
18494
  return eventData;
18398
18495
  }
18399
18496
 
18400
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
18497
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
18401
18498
 
18402
18499
  class HostEventClient {
18403
18500
  constructor(iFrame) {
@@ -18671,7 +18768,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18671
18768
  */
18672
18769
  const { version } = pkgInfo;
18673
18770
  /**
18674
- * Global prefix for all Thoughtspot postHash Params.
18771
+ * Global prefix for all ThoughtSpot postHash Params.
18675
18772
  */
18676
18773
  const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
18677
18774
  const TS_EMBED_ID = '_thoughtspot-embed';
@@ -20224,7 +20321,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20224
20321
  Page["Monitor"] = "monitor";
20225
20322
  })(exports.Page || (exports.Page = {}));
20226
20323
  /**
20227
- * Define the initial state os column custom group accordions
20324
+ * Define the initial state of column custom group accordions
20228
20325
  * in data panel v2.
20229
20326
  */
20230
20327
  exports.DataPanelCustomColumnGroupsAccordionState = void 0;
@@ -20503,6 +20600,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20503
20600
  else {
20504
20601
  params[Param.DataPanelCustomGroupsAccordionInitialState] = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
20505
20602
  }
20603
+ if (modularHomeExperience !== undefined) {
20604
+ params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
20605
+ }
20506
20606
  // Set navigation to v2 by default to avoid problems like the app
20507
20607
  // switcher (9-dot menu) not showing when v3 navigation is turned on
20508
20608
  // at the cluster level.
@@ -20512,9 +20612,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20512
20612
  // Set homePageVersion to v2 by default to reset the LD flag value
20513
20613
  // for the homepageVersion.
20514
20614
  params[Param.HomepageVersion] = 'v2';
20515
- // Set listpageVersion to v2 by default to reset the LD flag value
20516
- // for the listpageVersion.
20517
- params[Param.ListPageVersion] = exports.ListPage.List;
20518
20615
  if (discoveryExperience) {
20519
20616
  // primaryNavbarVersion v3 will enabled the new left navigation
20520
20617
  if (discoveryExperience.primaryNavbarVersion === exports.PrimaryNavbarVersion.Sliding) {
@@ -20533,8 +20630,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20533
20630
  if (discoveryExperience.homePage === exports.HomePage.ModularWithStylingChanges) {
20534
20631
  params[Param.HomepageVersion] = exports.HomePage.ModularWithStylingChanges;
20535
20632
  }
20536
- // listPageVersion v3 will enable the new list page
20537
- if (discoveryExperience.listPageVersion === exports.ListPage.ListWithUXChanges) {
20633
+ // listPageVersion can be changed to v2 or v3
20634
+ if (discoveryExperience.listPageVersion !== undefined) {
20538
20635
  params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
20539
20636
  }
20540
20637
  }
@@ -20737,8 +20834,8 @@ query GetEurekaVizSnapshots(
20737
20834
  * Copyright (c) 2022
20738
20835
  *
20739
20836
  * Embed a ThoughtSpot Liveboard or visualization
20740
- * https://developers.thoughtspot.com/docs/?pageid=embed-pinboard
20741
- * https://developers.thoughtspot.com/docs/?pageid=embed-a-viz
20837
+ * https://developers.thoughtspot.com/docs/embed-liveboard
20838
+ * https://developers.thoughtspot.com/docs/embed-a-viz
20742
20839
  * @summary Liveboard & visualization embed
20743
20840
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
20744
20841
  */
@@ -21145,12 +21242,13 @@ query GetEurekaVizSnapshots(
21145
21242
  /**
21146
21243
  * Copyright (c) 2022
21147
21244
  *
21148
- * Embed ThoughtSpot search or a saved answer
21245
+ * Embed ThoughtSpot search or a saved answer.
21246
+ * https://developers.thoughtspot.com/docs/search-embed
21149
21247
  * @summary Search embed
21150
21248
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
21151
21249
  */
21152
21250
  /**
21153
- * Define the initial state os column custom group accordions
21251
+ * Define the initial state of column custom group accordions
21154
21252
  * in data panel v2.
21155
21253
  */
21156
21254
  var DataPanelCustomColumnGroupsAccordionState;