@thoughtspot/visual-embed-sdk 1.44.3 → 1.44.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 (82) hide show
  1. package/README.md +1 -1
  2. package/cjs/package.json +1 -1
  3. package/cjs/src/embed/app.d.ts +44 -32
  4. package/cjs/src/embed/app.d.ts.map +1 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/liveboard.d.ts +1 -1
  7. package/cjs/src/embed/ts-embed.d.ts +1 -1
  8. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  9. package/cjs/src/embed/ts-embed.js +24 -6
  10. package/cjs/src/embed/ts-embed.js.map +1 -1
  11. package/cjs/src/embed/ts-embed.spec.js +145 -13
  12. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  13. package/cjs/src/errors.d.ts +1 -0
  14. package/cjs/src/errors.d.ts.map +1 -1
  15. package/cjs/src/errors.js +1 -0
  16. package/cjs/src/errors.js.map +1 -1
  17. package/cjs/src/index.d.ts +2 -2
  18. package/cjs/src/index.d.ts.map +1 -1
  19. package/cjs/src/index.js +4 -1
  20. package/cjs/src/index.js.map +1 -1
  21. package/cjs/src/types.d.ts +100 -44
  22. package/cjs/src/types.d.ts.map +1 -1
  23. package/cjs/src/types.js +74 -15
  24. package/cjs/src/types.js.map +1 -1
  25. package/cjs/src/utils.d.ts.map +1 -1
  26. package/cjs/src/utils.js +2 -1
  27. package/cjs/src/utils.js.map +1 -1
  28. package/dist/{index-D0n5LIka.js → index-C5FAW929.js} +1 -1
  29. package/dist/src/embed/app.d.ts +44 -32
  30. package/dist/src/embed/app.d.ts.map +1 -1
  31. package/dist/src/embed/liveboard.d.ts +1 -1
  32. package/dist/src/embed/ts-embed.d.ts +1 -1
  33. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  34. package/dist/src/errors.d.ts +1 -0
  35. package/dist/src/errors.d.ts.map +1 -1
  36. package/dist/src/index.d.ts +2 -2
  37. package/dist/src/index.d.ts.map +1 -1
  38. package/dist/src/types.d.ts +100 -44
  39. package/dist/src/types.d.ts.map +1 -1
  40. package/dist/src/utils.d.ts.map +1 -1
  41. package/dist/tsembed-react.es.js +104 -25
  42. package/dist/tsembed-react.js +103 -24
  43. package/dist/tsembed.es.js +105 -26
  44. package/dist/tsembed.js +130 -51
  45. package/dist/visual-embed-sdk-react-full.d.ts +140 -70
  46. package/dist/visual-embed-sdk-react.d.ts +146 -78
  47. package/dist/visual-embed-sdk.d.ts +193 -80
  48. package/lib/package.json +1 -1
  49. package/lib/src/embed/app.d.ts +44 -32
  50. package/lib/src/embed/app.d.ts.map +1 -1
  51. package/lib/src/embed/app.js.map +1 -1
  52. package/lib/src/embed/liveboard.d.ts +1 -1
  53. package/lib/src/embed/ts-embed.d.ts +1 -1
  54. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  55. package/lib/src/embed/ts-embed.js +24 -6
  56. package/lib/src/embed/ts-embed.js.map +1 -1
  57. package/lib/src/embed/ts-embed.spec.js +145 -13
  58. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  59. package/lib/src/errors.d.ts +1 -0
  60. package/lib/src/errors.d.ts.map +1 -1
  61. package/lib/src/errors.js +1 -0
  62. package/lib/src/errors.js.map +1 -1
  63. package/lib/src/index.d.ts +2 -2
  64. package/lib/src/index.d.ts.map +1 -1
  65. package/lib/src/index.js +2 -2
  66. package/lib/src/index.js.map +1 -1
  67. package/lib/src/types.d.ts +100 -44
  68. package/lib/src/types.d.ts.map +1 -1
  69. package/lib/src/types.js +74 -15
  70. package/lib/src/types.js.map +1 -1
  71. package/lib/src/utils.d.ts.map +1 -1
  72. package/lib/src/utils.js +2 -1
  73. package/lib/src/utils.js.map +1 -1
  74. package/package.json +1 -1
  75. package/src/embed/app.ts +44 -32
  76. package/src/embed/liveboard.ts +1 -1
  77. package/src/embed/ts-embed.spec.ts +190 -15
  78. package/src/embed/ts-embed.ts +24 -6
  79. package/src/errors.ts +1 -0
  80. package/src/index.ts +4 -0
  81. package/src/types.ts +100 -43
  82. package/src/utils.ts +2 -1
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.44.4 */
2
2
  'use client';
3
3
  import * as React from 'react';
4
4
  import React__default, { useRef, useCallback } from 'react';
@@ -350,57 +350,71 @@ var AuthType;
350
350
  })(AuthType || (AuthType = {}));
351
351
  /**
352
352
  *
353
- * This option does not apply to the classic homepage experience.
354
- * To access the updated modular homepage,
355
- * set `modularHomeExperience` to `true`
356
- * (available as Early Access feature in 9.12.5.cl).
353
+ * **Note**: This attribute is not supported in the classic (V1) homepage experience.
357
354
  *
358
355
  */
359
356
  var HomeLeftNavItem;
360
357
  (function (HomeLeftNavItem) {
361
358
  /**
359
+ * The *Search data* option in
360
+ * the *Insights* left navigation panel.
362
361
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
363
362
  */
364
363
  HomeLeftNavItem["SearchData"] = "search-data";
365
364
  /**
365
+ * The *Home* menu option in
366
+ * the *Insights* left navigation panel.
366
367
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
367
368
  */
368
369
  HomeLeftNavItem["Home"] = "insights-home";
369
370
  /**
371
+ * The *Liveboards* menu option in
372
+ * the *Insights* left navigation panel.
370
373
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
371
374
  */
372
375
  HomeLeftNavItem["Liveboards"] = "liveboards";
373
376
  /**
377
+ * The *Answers* menu option in
378
+ * the *Insights* left navigation panel.
374
379
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
375
380
  */
376
381
  HomeLeftNavItem["Answers"] = "answers";
377
382
  /**
383
+ * The *Monitor subscriptions* menu option in
384
+ * the *Insights* left navigation panel.
378
385
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
379
386
  */
380
387
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
381
388
  /**
389
+ * The *SpotIQ analysis* menu option in
390
+ * the *Insights* left navigation panel.
382
391
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
383
392
  */
384
393
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
385
394
  /**
395
+ * The *Liveboard schedules* menu option in
396
+ * the *Insights* left navigation panel.
386
397
  * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
387
398
  */
388
399
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
389
400
  /**
390
- * Create new options in the insights left navigation,
391
- * available when new navigation V3 is enabled.
401
+ * The create option in the *Insights*
402
+ * left navigation panel.
403
+ * Available in the V3 navigation experience.
392
404
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
393
405
  */
394
406
  HomeLeftNavItem["Create"] = "create";
395
407
  /**
396
- * Spotter option in the insights left navigation,
397
- * available when new navigation V3 is enabled.
408
+ * The *Spotter* menu option in the *Insights*
409
+ * left navigation panel.
410
+ * Available in the V3 navigation experience.
398
411
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
399
412
  */
400
413
  HomeLeftNavItem["Spotter"] = "spotter";
401
414
  /**
402
- * Favorites option in the insights left navigation,
403
- * available when new navigation V3 is enabled.
415
+ * The *Favorites* section in the *Insights*
416
+ * left navigation panel.
417
+ * Available in the V3 navigation experience.
404
418
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
405
419
  */
406
420
  HomeLeftNavItem["Favorites"] = "favorites";
@@ -472,10 +486,11 @@ var RuntimeFilterOp;
472
486
  RuntimeFilterOp["NOT_IN"] = "NOT_IN";
473
487
  })(RuntimeFilterOp || (RuntimeFilterOp = {}));
474
488
  /**
475
- * Home page module that can be hidden.
476
- * **Note**: This option does not apply to the classic homepage.
477
- * To access the updated modular homepage, set
478
- * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
489
+ * Home page modules that can be hidden
490
+ * via `hiddenHomepageModules` and reordered via
491
+ * `reorderedHomepageModules`.
492
+ *
493
+ * **Note**: This option is not supported in the classic (v1) experience.
479
494
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
480
495
  */
481
496
  var HomepageModule;
@@ -489,7 +504,7 @@ var HomepageModule;
489
504
  */
490
505
  HomepageModule["Watchlist"] = "WATCHLIST";
491
506
  /**
492
- * favorite objects
507
+ * Favorite module
493
508
  */
494
509
  HomepageModule["Favorite"] = "FAVORITE";
495
510
  /**
@@ -1645,6 +1660,28 @@ var EmbedEvent;
1645
1660
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1646
1661
  */
1647
1662
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
1663
+ /**
1664
+ * Emitted when user opens up the Add to Coaching modal on any visualization in Spotter Embed.
1665
+ * @example
1666
+ * ```js
1667
+ * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1668
+ * console.log('payload', payload);
1669
+ * })
1670
+ *```
1671
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1672
+ */
1673
+ EmbedEvent["AddToCoaching"] = "addToCoaching";
1674
+ /**
1675
+ * Emitted when user opens up the data model instructions modal in Spotter embed.
1676
+ * @example
1677
+ * ```js
1678
+ * spotterEmbed.on(EmbedEvent.DataModelInstructions, (payload) => {
1679
+ * console.log('payload', payload);
1680
+ * })
1681
+ * ```
1682
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1683
+ */
1684
+ EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
1648
1685
  /**
1649
1686
  * Emitted when the Spotter query is triggered in Spotter embed.
1650
1687
  * @example
@@ -3069,6 +3106,26 @@ var HostEvent;
3069
3106
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3070
3107
  */
3071
3108
  HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
3109
+ /**
3110
+ * Opens the Add to Coaching modal from a visualization in Spotter Embed.
3111
+ * @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
3112
+ * @example
3113
+ * ```js
3114
+ * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
3115
+ *
3116
+ *```
3117
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3118
+ */
3119
+ HostEvent["AddToCoaching"] = "addToCoaching";
3120
+ /**
3121
+ * Opens the data model instructions modal in Spotter Embed.
3122
+ * @example
3123
+ * ```js
3124
+ * spotterEmbed.trigger(HostEvent.DataModelInstructions);
3125
+ * ```
3126
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3127
+ */
3128
+ HostEvent["DataModelInstructions"] = "DataModelInstructions";
3072
3129
  /**
3073
3130
  * Resets the Spotter Embed Conversation.
3074
3131
  * @example
@@ -4880,6 +4937,8 @@ var EmbedErrorCodes;
4880
4937
  EmbedErrorCodes["HOST_EVENT_TYPE_UNDEFINED"] = "HOST_EVENT_TYPE_UNDEFINED";
4881
4938
  /** Error parsing api intercept body */
4882
4939
  EmbedErrorCodes["PARSING_API_INTERCEPT_BODY_ERROR"] = "PARSING_API_INTERCEPT_BODY_ERROR";
4940
+ /** Failed to update embed parameters during pre-render */
4941
+ EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
4883
4942
  })(EmbedErrorCodes || (EmbedErrorCodes = {}));
4884
4943
  /**
4885
4944
  * Enum for the type of API intercepted
@@ -5000,6 +5059,7 @@ const ERROR_MESSAGE = {
5000
5059
  LOGIN_FAILED: 'Login failed',
5001
5060
  ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
5002
5061
  SSR_ENVIRONMENT_ERROR: 'SSR environment detected. This function cannot be called in SSR environment.',
5062
+ UPDATE_PARAMS_FAILED: 'Failed to update embed parameters',
5003
5063
  };
5004
5064
  const CUSTOM_ACTIONS_ERROR_MESSAGE = {
5005
5065
  INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
@@ -5125,7 +5185,8 @@ const isValidCssMargin = (value) => {
5125
5185
  logger$3.error('Please provide a valid lazyLoadingMargin value (e.g., "10px")');
5126
5186
  return false;
5127
5187
  }
5128
- // This pattern allows for an optional negative sign, and numbers that can be integers or decimals (including leading dot).
5188
+ // This pattern allows for an optional negative sign, and numbers
5189
+ // that can be integers or decimals (including leading dot).
5129
5190
  const cssUnitPattern = /^-?(\d+(\.\d*)?|\.\d+)(px|em|rem|%|vh|vw)$/i;
5130
5191
  const parts = value.trim().split(/\s+/);
5131
5192
  if (parts.length > 4) {
@@ -8661,7 +8722,7 @@ class AnswerService {
8661
8722
  async getTML() {
8662
8723
  const { object } = await this.executeQuery(getAnswerTML, {});
8663
8724
  const edoc = object[0].edoc;
8664
- const YAML = await import('./index-D0n5LIka.js');
8725
+ const YAML = await import('./index-C5FAW929.js');
8665
8726
  const parsedDoc = YAML.parse(edoc);
8666
8727
  return {
8667
8728
  answer: {
@@ -17918,7 +17979,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
17918
17979
  return eventData;
17919
17980
  }
17920
17981
 
17921
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.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 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.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":"^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,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};
17982
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.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 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.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":"^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,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};
17922
17983
 
17923
17984
  class HostEventClient {
17924
17985
  constructor(iFrame) {
@@ -18661,9 +18722,10 @@ class TsEmbed {
18661
18722
  .join('/');
18662
18723
  return `${basePath}#`;
18663
18724
  }
18664
- getUpdateEmbedParamsObject() {
18725
+ async getUpdateEmbedParamsObject() {
18665
18726
  let queryParams = this.getEmbedParamsObject();
18666
- queryParams = { ...this.viewConfig, ...queryParams, ...this.getAppInitData() };
18727
+ const appInitData = await this.getAppInitData();
18728
+ queryParams = { ...this.viewConfig, ...queryParams, ...appInitData };
18667
18729
  return queryParams;
18668
18730
  }
18669
18731
  /**
@@ -18972,6 +19034,8 @@ class TsEmbed {
18972
19034
  preRenderWrapper.id = preRenderIds.wrapper;
18973
19035
  const initialPreRenderWrapperStyle = {
18974
19036
  position: 'absolute',
19037
+ top: '0',
19038
+ left: '0',
18975
19039
  width: '100vw',
18976
19040
  height: '100vh',
18977
19041
  };
@@ -19436,8 +19500,20 @@ class TsEmbed {
19436
19500
  }
19437
19501
  this.validatePreRenderViewConfig(this.viewConfig);
19438
19502
  logger$3.debug('triggering UpdateEmbedParams', this.viewConfig);
19439
- this.executeAfterEmbedContainerLoaded(() => {
19440
- this.trigger(HostEvent.UpdateEmbedParams, this.getUpdateEmbedParamsObject());
19503
+ this.executeAfterEmbedContainerLoaded(async () => {
19504
+ try {
19505
+ const params = await this.getUpdateEmbedParamsObject();
19506
+ this.trigger(HostEvent.UpdateEmbedParams, params);
19507
+ }
19508
+ catch (error) {
19509
+ logger$3.error(ERROR_MESSAGE.UPDATE_PARAMS_FAILED, error);
19510
+ this.handleError({
19511
+ errorType: ErrorDetailsTypes.API,
19512
+ message: (error === null || error === void 0 ? void 0 : error.message) || ERROR_MESSAGE.UPDATE_PARAMS_FAILED,
19513
+ code: EmbedErrorCodes.UPDATE_PARAMS_FAILED,
19514
+ error: (error === null || error === void 0 ? void 0 : error.message) || error,
19515
+ });
19516
+ }
19441
19517
  });
19442
19518
  }
19443
19519
  this.beforePrerenderVisible();
@@ -19457,7 +19533,7 @@ class TsEmbed {
19457
19533
  this.resizeObserver.observe(this.el);
19458
19534
  }
19459
19535
  }
19460
- removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events']);
19536
+ removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events', 'overflow']);
19461
19537
  this.subscribeToEvents();
19462
19538
  // Setup fullscreen change handler for prerendered components
19463
19539
  if (this.iFrame) {
@@ -19500,7 +19576,10 @@ class TsEmbed {
19500
19576
  opacity: '0',
19501
19577
  pointerEvents: 'none',
19502
19578
  zIndex: '-1000',
19503
- position: 'absolute ',
19579
+ position: 'absolute',
19580
+ top: '0',
19581
+ left: '0',
19582
+ overflow: 'hidden',
19504
19583
  };
19505
19584
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
19506
19585
  if (this.resizeObserver) {
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.3 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.44.4 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -372,57 +372,71 @@
372
372
  })(AuthType || (AuthType = {}));
373
373
  /**
374
374
  *
375
- * This option does not apply to the classic homepage experience.
376
- * To access the updated modular homepage,
377
- * set `modularHomeExperience` to `true`
378
- * (available as Early Access feature in 9.12.5.cl).
375
+ * **Note**: This attribute is not supported in the classic (V1) homepage experience.
379
376
  *
380
377
  */
381
378
  exports.HomeLeftNavItem = void 0;
382
379
  (function (HomeLeftNavItem) {
383
380
  /**
381
+ * The *Search data* option in
382
+ * the *Insights* left navigation panel.
384
383
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
385
384
  */
386
385
  HomeLeftNavItem["SearchData"] = "search-data";
387
386
  /**
387
+ * The *Home* menu option in
388
+ * the *Insights* left navigation panel.
388
389
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
389
390
  */
390
391
  HomeLeftNavItem["Home"] = "insights-home";
391
392
  /**
393
+ * The *Liveboards* menu option in
394
+ * the *Insights* left navigation panel.
392
395
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
393
396
  */
394
397
  HomeLeftNavItem["Liveboards"] = "liveboards";
395
398
  /**
399
+ * The *Answers* menu option in
400
+ * the *Insights* left navigation panel.
396
401
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
397
402
  */
398
403
  HomeLeftNavItem["Answers"] = "answers";
399
404
  /**
405
+ * The *Monitor subscriptions* menu option in
406
+ * the *Insights* left navigation panel.
400
407
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
401
408
  */
402
409
  HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
403
410
  /**
411
+ * The *SpotIQ analysis* menu option in
412
+ * the *Insights* left navigation panel.
404
413
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
405
414
  */
406
415
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
407
416
  /**
417
+ * The *Liveboard schedules* menu option in
418
+ * the *Insights* left navigation panel.
408
419
  * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
409
420
  */
410
421
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
411
422
  /**
412
- * Create new options in the insights left navigation,
413
- * available when new navigation V3 is enabled.
423
+ * The create option in the *Insights*
424
+ * left navigation panel.
425
+ * Available in the V3 navigation experience.
414
426
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
415
427
  */
416
428
  HomeLeftNavItem["Create"] = "create";
417
429
  /**
418
- * Spotter option in the insights left navigation,
419
- * available when new navigation V3 is enabled.
430
+ * The *Spotter* menu option in the *Insights*
431
+ * left navigation panel.
432
+ * Available in the V3 navigation experience.
420
433
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
421
434
  */
422
435
  HomeLeftNavItem["Spotter"] = "spotter";
423
436
  /**
424
- * Favorites option in the insights left navigation,
425
- * available when new navigation V3 is enabled.
437
+ * The *Favorites* section in the *Insights*
438
+ * left navigation panel.
439
+ * Available in the V3 navigation experience.
426
440
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
427
441
  */
428
442
  HomeLeftNavItem["Favorites"] = "favorites";
@@ -494,10 +508,11 @@
494
508
  RuntimeFilterOp["NOT_IN"] = "NOT_IN";
495
509
  })(exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
496
510
  /**
497
- * Home page module that can be hidden.
498
- * **Note**: This option does not apply to the classic homepage.
499
- * To access the updated modular homepage, set
500
- * `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
511
+ * Home page modules that can be hidden
512
+ * via `hiddenHomepageModules` and reordered via
513
+ * `reorderedHomepageModules`.
514
+ *
515
+ * **Note**: This option is not supported in the classic (v1) experience.
501
516
  * @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
502
517
  */
503
518
  exports.HomepageModule = void 0;
@@ -511,7 +526,7 @@
511
526
  */
512
527
  HomepageModule["Watchlist"] = "WATCHLIST";
513
528
  /**
514
- * favorite objects
529
+ * Favorite module
515
530
  */
516
531
  HomepageModule["Favorite"] = "FAVORITE";
517
532
  /**
@@ -1667,6 +1682,28 @@
1667
1682
  * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
1668
1683
  */
1669
1684
  EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
1685
+ /**
1686
+ * Emitted when user opens up the Add to Coaching modal on any visualization in Spotter Embed.
1687
+ * @example
1688
+ * ```js
1689
+ * spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
1690
+ * console.log('payload', payload);
1691
+ * })
1692
+ *```
1693
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1694
+ */
1695
+ EmbedEvent["AddToCoaching"] = "addToCoaching";
1696
+ /**
1697
+ * Emitted when user opens up the data model instructions modal in Spotter embed.
1698
+ * @example
1699
+ * ```js
1700
+ * spotterEmbed.on(EmbedEvent.DataModelInstructions, (payload) => {
1701
+ * console.log('payload', payload);
1702
+ * })
1703
+ * ```
1704
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1705
+ */
1706
+ EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
1670
1707
  /**
1671
1708
  * Emitted when the Spotter query is triggered in Spotter embed.
1672
1709
  * @example
@@ -3091,6 +3128,26 @@
3091
3128
  * @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
3092
3129
  */
3093
3130
  HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
3131
+ /**
3132
+ * Opens the Add to Coaching modal from a visualization in Spotter Embed.
3133
+ * @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
3134
+ * @example
3135
+ * ```js
3136
+ * spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
3137
+ *
3138
+ *```
3139
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3140
+ */
3141
+ HostEvent["AddToCoaching"] = "addToCoaching";
3142
+ /**
3143
+ * Opens the data model instructions modal in Spotter Embed.
3144
+ * @example
3145
+ * ```js
3146
+ * spotterEmbed.trigger(HostEvent.DataModelInstructions);
3147
+ * ```
3148
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3149
+ */
3150
+ HostEvent["DataModelInstructions"] = "DataModelInstructions";
3094
3151
  /**
3095
3152
  * Resets the Spotter Embed Conversation.
3096
3153
  * @example
@@ -4902,6 +4959,8 @@
4902
4959
  EmbedErrorCodes["HOST_EVENT_TYPE_UNDEFINED"] = "HOST_EVENT_TYPE_UNDEFINED";
4903
4960
  /** Error parsing api intercept body */
4904
4961
  EmbedErrorCodes["PARSING_API_INTERCEPT_BODY_ERROR"] = "PARSING_API_INTERCEPT_BODY_ERROR";
4962
+ /** Failed to update embed parameters during pre-render */
4963
+ EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
4905
4964
  })(EmbedErrorCodes || (EmbedErrorCodes = {}));
4906
4965
  /**
4907
4966
  * Enum for the type of API intercepted
@@ -5022,6 +5081,7 @@
5022
5081
  LOGIN_FAILED: 'Login failed',
5023
5082
  ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
5024
5083
  SSR_ENVIRONMENT_ERROR: 'SSR environment detected. This function cannot be called in SSR environment.',
5084
+ UPDATE_PARAMS_FAILED: 'Failed to update embed parameters',
5025
5085
  };
5026
5086
  const CUSTOM_ACTIONS_ERROR_MESSAGE = {
5027
5087
  INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
@@ -5147,7 +5207,8 @@
5147
5207
  logger$3.error('Please provide a valid lazyLoadingMargin value (e.g., "10px")');
5148
5208
  return false;
5149
5209
  }
5150
- // This pattern allows for an optional negative sign, and numbers that can be integers or decimals (including leading dot).
5210
+ // This pattern allows for an optional negative sign, and numbers
5211
+ // that can be integers or decimals (including leading dot).
5151
5212
  const cssUnitPattern = /^-?(\d+(\.\d*)?|\.\d+)(px|em|rem|%|vh|vw)$/i;
5152
5213
  const parts = value.trim().split(/\s+/);
5153
5214
  if (parts.length > 4) {
@@ -17940,7 +18001,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17940
18001
  return eventData;
17941
18002
  }
17942
18003
 
17943
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.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.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":"^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};
18004
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.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 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.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":"^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};
17944
18005
 
17945
18006
  class HostEventClient {
17946
18007
  constructor(iFrame) {
@@ -18683,9 +18744,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18683
18744
  .join('/');
18684
18745
  return `${basePath}#`;
18685
18746
  }
18686
- getUpdateEmbedParamsObject() {
18747
+ async getUpdateEmbedParamsObject() {
18687
18748
  let queryParams = this.getEmbedParamsObject();
18688
- queryParams = { ...this.viewConfig, ...queryParams, ...this.getAppInitData() };
18749
+ const appInitData = await this.getAppInitData();
18750
+ queryParams = { ...this.viewConfig, ...queryParams, ...appInitData };
18689
18751
  return queryParams;
18690
18752
  }
18691
18753
  /**
@@ -18994,6 +19056,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18994
19056
  preRenderWrapper.id = preRenderIds.wrapper;
18995
19057
  const initialPreRenderWrapperStyle = {
18996
19058
  position: 'absolute',
19059
+ top: '0',
19060
+ left: '0',
18997
19061
  width: '100vw',
18998
19062
  height: '100vh',
18999
19063
  };
@@ -19458,8 +19522,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19458
19522
  }
19459
19523
  this.validatePreRenderViewConfig(this.viewConfig);
19460
19524
  logger$3.debug('triggering UpdateEmbedParams', this.viewConfig);
19461
- this.executeAfterEmbedContainerLoaded(() => {
19462
- this.trigger(exports.HostEvent.UpdateEmbedParams, this.getUpdateEmbedParamsObject());
19525
+ this.executeAfterEmbedContainerLoaded(async () => {
19526
+ try {
19527
+ const params = await this.getUpdateEmbedParamsObject();
19528
+ this.trigger(exports.HostEvent.UpdateEmbedParams, params);
19529
+ }
19530
+ catch (error) {
19531
+ logger$3.error(ERROR_MESSAGE.UPDATE_PARAMS_FAILED, error);
19532
+ this.handleError({
19533
+ errorType: ErrorDetailsTypes.API,
19534
+ message: (error === null || error === void 0 ? void 0 : error.message) || ERROR_MESSAGE.UPDATE_PARAMS_FAILED,
19535
+ code: EmbedErrorCodes.UPDATE_PARAMS_FAILED,
19536
+ error: (error === null || error === void 0 ? void 0 : error.message) || error,
19537
+ });
19538
+ }
19463
19539
  });
19464
19540
  }
19465
19541
  this.beforePrerenderVisible();
@@ -19479,7 +19555,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19479
19555
  this.resizeObserver.observe(this.el);
19480
19556
  }
19481
19557
  }
19482
- removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events']);
19558
+ removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events', 'overflow']);
19483
19559
  this.subscribeToEvents();
19484
19560
  // Setup fullscreen change handler for prerendered components
19485
19561
  if (this.iFrame) {
@@ -19522,7 +19598,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19522
19598
  opacity: '0',
19523
19599
  pointerEvents: 'none',
19524
19600
  zIndex: '-1000',
19525
- position: 'absolute ',
19601
+ position: 'absolute',
19602
+ top: '0',
19603
+ left: '0',
19604
+ overflow: 'hidden',
19526
19605
  };
19527
19606
  setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
19528
19607
  if (this.resizeObserver) {