@thoughtspot/visual-embed-sdk 1.44.4-HE-beta.1 → 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 (177) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts.map +1 -1
  3. package/cjs/src/embed/app.js.map +1 -1
  4. package/cjs/src/embed/conversation.d.ts +0 -7
  5. package/cjs/src/embed/conversation.d.ts.map +1 -1
  6. package/cjs/src/embed/conversation.js +0 -9
  7. package/cjs/src/embed/conversation.js.map +1 -1
  8. package/cjs/src/embed/hostEventClient/contracts.d.ts +3 -20
  9. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  10. package/cjs/src/embed/hostEventClient/contracts.js +1 -6
  11. package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
  12. package/cjs/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  13. package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  14. package/cjs/src/embed/hostEventClient/host-event-client.js +18 -18
  15. package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
  16. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +7 -7
  17. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  18. package/cjs/src/embed/liveboard.d.ts +3 -9
  19. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  20. package/cjs/src/embed/liveboard.js +2 -12
  21. package/cjs/src/embed/liveboard.js.map +1 -1
  22. package/cjs/src/embed/liveboard.spec.js +1 -1
  23. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  24. package/cjs/src/embed/sage.d.ts +0 -7
  25. package/cjs/src/embed/sage.d.ts.map +1 -1
  26. package/cjs/src/embed/sage.js +0 -9
  27. package/cjs/src/embed/sage.js.map +1 -1
  28. package/cjs/src/embed/search-bar.d.ts +0 -7
  29. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  30. package/cjs/src/embed/search-bar.js +0 -9
  31. package/cjs/src/embed/search-bar.js.map +1 -1
  32. package/cjs/src/embed/search.d.ts +0 -7
  33. package/cjs/src/embed/search.d.ts.map +1 -1
  34. package/cjs/src/embed/search.js +0 -9
  35. package/cjs/src/embed/search.js.map +1 -1
  36. package/cjs/src/embed/ts-embed.d.ts +2 -8
  37. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  38. package/cjs/src/embed/ts-embed.js +2 -17
  39. package/cjs/src/embed/ts-embed.js.map +1 -1
  40. package/cjs/src/embed/ts-embed.spec.js +16 -16
  41. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  42. package/cjs/src/index.d.ts +2 -2
  43. package/cjs/src/index.d.ts.map +1 -1
  44. package/cjs/src/index.js +2 -3
  45. package/cjs/src/index.js.map +1 -1
  46. package/cjs/src/types.d.ts +1 -42
  47. package/cjs/src/types.d.ts.map +1 -1
  48. package/cjs/src/types.js +1 -17
  49. package/cjs/src/types.js.map +1 -1
  50. package/cjs/src/utils/logger.spec.d.ts +5 -20
  51. package/cjs/src/utils/logger.spec.d.ts.map +1 -1
  52. package/cjs/src/utils/processTrigger.d.ts +2 -3
  53. package/cjs/src/utils/processTrigger.d.ts.map +1 -1
  54. package/cjs/src/utils/processTrigger.js +2 -4
  55. package/cjs/src/utils/processTrigger.js.map +1 -1
  56. package/cjs/src/utils.d.ts +1 -5
  57. package/cjs/src/utils.d.ts.map +1 -1
  58. package/cjs/src/utils.js +1 -8
  59. package/cjs/src/utils.js.map +1 -1
  60. package/dist/{index-CWQnMX2L.js → index-C5FAW929.js} +1 -1
  61. package/dist/src/embed/app.d.ts.map +1 -1
  62. package/dist/src/embed/conversation.d.ts +0 -7
  63. package/dist/src/embed/conversation.d.ts.map +1 -1
  64. package/dist/src/embed/hostEventClient/contracts.d.ts +3 -20
  65. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  66. package/dist/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  67. package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  68. package/dist/src/embed/liveboard.d.ts +3 -9
  69. package/dist/src/embed/liveboard.d.ts.map +1 -1
  70. package/dist/src/embed/sage.d.ts +0 -7
  71. package/dist/src/embed/sage.d.ts.map +1 -1
  72. package/dist/src/embed/search-bar.d.ts +0 -7
  73. package/dist/src/embed/search-bar.d.ts.map +1 -1
  74. package/dist/src/embed/search.d.ts +0 -7
  75. package/dist/src/embed/search.d.ts.map +1 -1
  76. package/dist/src/embed/ts-embed.d.ts +2 -8
  77. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  78. package/dist/src/index.d.ts +2 -2
  79. package/dist/src/index.d.ts.map +1 -1
  80. package/dist/src/types.d.ts +1 -42
  81. package/dist/src/types.d.ts.map +1 -1
  82. package/dist/src/utils/logger.spec.d.ts +5 -20
  83. package/dist/src/utils/logger.spec.d.ts.map +1 -1
  84. package/dist/src/utils/processTrigger.d.ts +2 -3
  85. package/dist/src/utils/processTrigger.d.ts.map +1 -1
  86. package/dist/src/utils.d.ts +1 -5
  87. package/dist/src/utils.d.ts.map +1 -1
  88. package/dist/tsembed-react.es.js +28 -117
  89. package/dist/tsembed-react.js +27 -116
  90. package/dist/tsembed.es.js +29 -118
  91. package/dist/tsembed.js +27 -116
  92. package/dist/visual-embed-sdk-react-full.d.ts +12 -105
  93. package/dist/visual-embed-sdk-react.d.ts +12 -105
  94. package/dist/visual-embed-sdk.d.ts +12 -105
  95. package/lib/package.json +1 -1
  96. package/lib/src/embed/app.d.ts.map +1 -1
  97. package/lib/src/embed/app.js.map +1 -1
  98. package/lib/src/embed/conversation.d.ts +0 -7
  99. package/lib/src/embed/conversation.d.ts.map +1 -1
  100. package/lib/src/embed/conversation.js +0 -9
  101. package/lib/src/embed/conversation.js.map +1 -1
  102. package/lib/src/embed/hostEventClient/contracts.d.ts +3 -20
  103. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  104. package/lib/src/embed/hostEventClient/contracts.js +0 -5
  105. package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
  106. package/lib/src/embed/hostEventClient/host-event-client.d.ts +8 -8
  107. package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
  108. package/lib/src/embed/hostEventClient/host-event-client.js +18 -18
  109. package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
  110. package/lib/src/embed/hostEventClient/host-event-client.spec.js +7 -7
  111. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  112. package/lib/src/embed/liveboard.d.ts +3 -9
  113. package/lib/src/embed/liveboard.d.ts.map +1 -1
  114. package/lib/src/embed/liveboard.js +2 -12
  115. package/lib/src/embed/liveboard.js.map +1 -1
  116. package/lib/src/embed/liveboard.spec.js +1 -1
  117. package/lib/src/embed/liveboard.spec.js.map +1 -1
  118. package/lib/src/embed/sage.d.ts +0 -7
  119. package/lib/src/embed/sage.d.ts.map +1 -1
  120. package/lib/src/embed/sage.js +0 -9
  121. package/lib/src/embed/sage.js.map +1 -1
  122. package/lib/src/embed/search-bar.d.ts +0 -7
  123. package/lib/src/embed/search-bar.d.ts.map +1 -1
  124. package/lib/src/embed/search-bar.js +0 -9
  125. package/lib/src/embed/search-bar.js.map +1 -1
  126. package/lib/src/embed/search.d.ts +0 -7
  127. package/lib/src/embed/search.d.ts.map +1 -1
  128. package/lib/src/embed/search.js +0 -9
  129. package/lib/src/embed/search.js.map +1 -1
  130. package/lib/src/embed/ts-embed.d.ts +2 -8
  131. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  132. package/lib/src/embed/ts-embed.js +2 -17
  133. package/lib/src/embed/ts-embed.js.map +1 -1
  134. package/lib/src/embed/ts-embed.spec.js +16 -16
  135. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  136. package/lib/src/index.d.ts +2 -2
  137. package/lib/src/index.d.ts.map +1 -1
  138. package/lib/src/index.js +2 -2
  139. package/lib/src/index.js.map +1 -1
  140. package/lib/src/types.d.ts +1 -42
  141. package/lib/src/types.d.ts.map +1 -1
  142. package/lib/src/types.js +0 -16
  143. package/lib/src/types.js.map +1 -1
  144. package/lib/src/utils/logger.spec.d.ts +5 -20
  145. package/lib/src/utils/logger.spec.d.ts.map +1 -1
  146. package/lib/src/utils/processTrigger.d.ts +2 -3
  147. package/lib/src/utils/processTrigger.d.ts.map +1 -1
  148. package/lib/src/utils/processTrigger.js +2 -4
  149. package/lib/src/utils/processTrigger.js.map +1 -1
  150. package/lib/src/utils.d.ts +1 -5
  151. package/lib/src/utils.d.ts.map +1 -1
  152. package/lib/src/utils.js +0 -6
  153. package/lib/src/utils.js.map +1 -1
  154. package/package.json +1 -1
  155. package/src/embed/app.ts +0 -1
  156. package/src/embed/conversation.ts +0 -11
  157. package/src/embed/hostEventClient/contracts.ts +4 -23
  158. package/src/embed/hostEventClient/host-event-client.spec.ts +1 -7
  159. package/src/embed/hostEventClient/host-event-client.ts +11 -22
  160. package/src/embed/liveboard.spec.ts +1 -1
  161. package/src/embed/liveboard.ts +4 -17
  162. package/src/embed/sage.ts +0 -11
  163. package/src/embed/search-bar.tsx +0 -11
  164. package/src/embed/search.ts +0 -11
  165. package/src/embed/ts-embed.spec.ts +5 -17
  166. package/src/embed/ts-embed.ts +3 -21
  167. package/src/index.ts +0 -2
  168. package/src/types.ts +0 -46
  169. package/src/utils/processTrigger.ts +3 -6
  170. package/src/utils.ts +0 -8
  171. package/dist/index-BFdRRz03.js +0 -7371
  172. package/dist/index-BUfrYJ3w.js +0 -7371
  173. package/dist/index-CI6s4VMY.js +0 -7371
  174. package/dist/index-CaW-1mu5.js +0 -7371
  175. package/dist/index-CcSgNJVi.js +0 -7371
  176. package/dist/index-Djtv-y7A.js +0 -7371
  177. package/dist/index-UY-4yjBN.js +0 -7371
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.4-HE-beta.1 */
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')) :
@@ -3250,15 +3250,6 @@
3250
3250
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3251
3251
  */
3252
3252
  HostEvent["StartNewSpotterConversation"] = "StartNewSpotterConversation";
3253
- /**
3254
- * Get the current context of the embedded page.
3255
- * @example
3256
- * ```js
3257
- * const context = await liveboardEmbed.trigger(HostEvent.GetPageContext);
3258
- * ```
3259
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3260
- */
3261
- HostEvent["GetPageContext"] = "GetPageContext";
3262
3253
  })(exports.HostEvent || (exports.HostEvent = {}));
3263
3254
  /**
3264
3255
  * The different visual modes that the data sources panel within
@@ -4971,13 +4962,6 @@
4971
4962
  /** Failed to update embed parameters during pre-render */
4972
4963
  EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
4973
4964
  })(EmbedErrorCodes || (EmbedErrorCodes = {}));
4974
- var ContextType;
4975
- (function (ContextType) {
4976
- ContextType["Search"] = "search-answer";
4977
- ContextType["Liveboard"] = "liveboard";
4978
- ContextType["Answer"] = "answer";
4979
- ContextType["Spotter"] = "spotter";
4980
- })(ContextType || (ContextType = {}));
4981
4965
  /**
4982
4966
  * Enum for the type of API intercepted
4983
4967
  */
@@ -5564,12 +5548,6 @@
5564
5548
  return values[key] !== undefined ? String(values[key]) : match;
5565
5549
  });
5566
5550
  };
5567
- const getHostEventsConfig = (viewConfig) => {
5568
- return {
5569
- shouldBypassPayloadValidation: viewConfig.shouldBypassPayloadValidation,
5570
- useHostEventsV2: viewConfig.useHostEventsV2,
5571
- };
5572
- };
5573
5551
  /**
5574
5552
  * Check if the window is undefined
5575
5553
  * If the window is undefined, it means the code is running in a SSR environment.
@@ -7867,12 +7845,7 @@
7867
7845
  UIPassthroughEvent["GetAnswerConfig"] = "getAnswerPageConfig";
7868
7846
  UIPassthroughEvent["GetLiveboardConfig"] = "getPinboardPageConfig";
7869
7847
  UIPassthroughEvent["GetUnsavedAnswerTML"] = "getUnsavedAnswerTML";
7870
- })(UIPassthroughEvent || (UIPassthroughEvent = {}));
7871
- var PageType;
7872
- (function (PageType) {
7873
- PageType["PAGE"] = "page";
7874
- PageType["DIALOG"] = "dialog";
7875
- })(PageType || (PageType = {}));
7848
+ })(UIPassthroughEvent || (UIPassthroughEvent = {}));
7876
7849
 
7877
7850
  const EndPoints = {
7878
7851
  AUTH_VERIFICATION: '/callosum/v1/session/info',
@@ -17633,7 +17606,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17633
17606
  * @param message
17634
17607
  * @param message.type
17635
17608
  * @param message.data
17636
- * @param message.context
17637
17609
  * @param thoughtSpotHost
17638
17610
  * @param channel
17639
17611
  */
@@ -17648,9 +17620,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17648
17620
  * @param messageType
17649
17621
  * @param thoughtSpotHost
17650
17622
  * @param data
17651
- * @param context
17652
17623
  */
17653
- function processTrigger(iFrame, messageType, thoughtSpotHost, data, context) {
17624
+ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
17654
17625
  return new Promise((res, rej) => {
17655
17626
  var _a;
17656
17627
  if (messageType === exports.HostEvent.Reload) {
@@ -17684,7 +17655,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17684
17655
  channel.port1.close();
17685
17656
  res(new Error(ERROR_MESSAGE.TRIGGER_TIMED_OUT));
17686
17657
  }, TRIGGER_TIMEOUT);
17687
- return postIframeMessage(iFrame, { type: messageType, data, context }, thoughtSpotHost, channel);
17658
+ return postIframeMessage(iFrame, { type: messageType, data }, thoughtSpotHost, channel);
17688
17659
  });
17689
17660
  }
17690
17661
 
@@ -18030,7 +18001,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18030
18001
  return eventData;
18031
18002
  }
18032
18003
 
18033
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.4-HE-beta.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","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};
18034
18005
 
18035
18006
  class HostEventClient {
18036
18007
  constructor(iFrame) {
@@ -18042,16 +18013,16 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18042
18013
  * @param {any} data Data to send with the host event
18043
18014
  * @returns {Promise<any>} - the response from the process trigger
18044
18015
  */
18045
- async processTrigger(message, data, context) {
18016
+ async processTrigger(message, data) {
18046
18017
  if (!this.iFrame) {
18047
18018
  throw new Error('Iframe element is not set');
18048
18019
  }
18049
18020
  const thoughtspotHost = getEmbedConfig().thoughtSpotHost;
18050
- return processTrigger(this.iFrame, message, thoughtspotHost, data, context);
18021
+ return processTrigger(this.iFrame, message, thoughtspotHost, data);
18051
18022
  }
18052
- async handleHostEventWithParam(apiName, parameters, context) {
18023
+ async handleHostEventWithParam(apiName, parameters) {
18053
18024
  var _a, _b, _c, _d;
18054
- const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters, context))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
18025
+ const response = (_b = (_a = (await this.triggerUIPassthroughApi(apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
18055
18026
  if (!response) {
18056
18027
  const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
18057
18028
  // eslint-disable-next-line no-throw-literal
@@ -18066,8 +18037,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18066
18037
  }
18067
18038
  return { ...response.value };
18068
18039
  }
18069
- async hostEventFallback(hostEvent, data, context) {
18070
- return this.processTrigger(hostEvent, data, context);
18040
+ async hostEventFallback(hostEvent, data) {
18041
+ return this.processTrigger(hostEvent, data);
18071
18042
  }
18072
18043
  /**
18073
18044
  * Setter for the iframe element used for host events
@@ -18076,49 +18047,49 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18076
18047
  setIframeElement(iFrame) {
18077
18048
  this.iFrame = iFrame;
18078
18049
  }
18079
- async triggerUIPassthroughApi(apiName, parameters, context) {
18050
+ async triggerUIPassthroughApi(apiName, parameters) {
18080
18051
  const res = await this.processTrigger(exports.HostEvent.UIPassthrough, {
18081
18052
  type: apiName,
18082
18053
  parameters,
18083
- }, context);
18054
+ });
18084
18055
  return res;
18085
18056
  }
18086
- async handlePinEvent(payload, context) {
18057
+ async handlePinEvent(payload) {
18087
18058
  var _a, _b;
18088
18059
  if (!payload || !('newVizName' in payload)) {
18089
- return this.hostEventFallback(exports.HostEvent.Pin, payload, context);
18060
+ return this.hostEventFallback(exports.HostEvent.Pin, payload);
18090
18061
  }
18091
18062
  const formattedPayload = {
18092
18063
  ...payload,
18093
18064
  pinboardId: (_a = payload.liveboardId) !== null && _a !== void 0 ? _a : payload.pinboardId,
18094
18065
  newPinboardName: (_b = payload.newLiveboardName) !== null && _b !== void 0 ? _b : payload.newPinboardName,
18095
18066
  };
18096
- const data = await this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload, context);
18067
+ const data = await this.handleHostEventWithParam(UIPassthroughEvent.PinAnswerToLiveboard, formattedPayload);
18097
18068
  return {
18098
18069
  ...data,
18099
18070
  liveboardId: data.pinboardId,
18100
18071
  };
18101
18072
  }
18102
- async handleSaveAnswerEvent(payload, context) {
18073
+ async handleSaveAnswerEvent(payload) {
18103
18074
  var _a, _b, _c, _d;
18104
18075
  if (!payload || !('name' in payload) || !('description' in payload)) {
18105
18076
  // Save is the fallback for SaveAnswer
18106
- return this.hostEventFallback(exports.HostEvent.Save, payload, context);
18077
+ return this.hostEventFallback(exports.HostEvent.Save, payload);
18107
18078
  }
18108
- const data = await this.handleHostEventWithParam(UIPassthroughEvent.SaveAnswer, payload, context);
18079
+ const data = await this.handleHostEventWithParam(UIPassthroughEvent.SaveAnswer, payload);
18109
18080
  return {
18110
18081
  ...data,
18111
18082
  answerId: (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.saveResponse) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.Answer__save) === null || _c === void 0 ? void 0 : _c.answer) === null || _d === void 0 ? void 0 : _d.id,
18112
18083
  };
18113
18084
  }
18114
- async triggerHostEvent(hostEvent, payload, context) {
18085
+ async triggerHostEvent(hostEvent, payload) {
18115
18086
  switch (hostEvent) {
18116
18087
  case exports.HostEvent.Pin:
18117
- return this.handlePinEvent(payload, context);
18088
+ return this.handlePinEvent(payload);
18118
18089
  case exports.HostEvent.SaveAnswer:
18119
- return this.handleSaveAnswerEvent(payload, context);
18090
+ return this.handleSaveAnswerEvent(payload);
18120
18091
  default:
18121
- return this.hostEventFallback(hostEvent, payload, context);
18092
+ return this.hostEventFallback(hostEvent, payload);
18122
18093
  }
18123
18094
  }
18124
18095
  }
@@ -18753,7 +18724,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18753
18724
  hiddenListColumns: this.viewConfig.hiddenListColumns || [],
18754
18725
  customActions: customActionsResult.actions,
18755
18726
  ...getInterceptInitData(this.viewConfig),
18756
- ...getHostEventsConfig(this.viewConfig),
18757
18727
  };
18758
18728
  return baseInitData;
18759
18729
  }
@@ -19378,7 +19348,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19378
19348
  * @param {any} data The payload to send with the message
19379
19349
  * @returns A promise that resolves with the response from the embedded app
19380
19350
  */
19381
- async trigger(messageType, data = {}, context) {
19351
+ async trigger(messageType, data = {}) {
19382
19352
  uploadMixpanelEvent(`${MIXPANEL_EVENT.VISUAL_SDK_TRIGGER}-${messageType}`);
19383
19353
  if (!this.isRendered) {
19384
19354
  this.handleError({
@@ -19405,7 +19375,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19405
19375
  return null;
19406
19376
  }
19407
19377
  // send an empty object, this is needed for liveboard default handlers
19408
- return this.hostEventClient.triggerHostEvent(messageType, data, context);
19378
+ return this.hostEventClient.triggerHostEvent(messageType, data);
19409
19379
  }
19410
19380
  /**
19411
19381
  * Triggers an event to the embedded app, skipping the UI flow.
@@ -19438,19 +19408,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19438
19408
  handleRenderForPrerender() {
19439
19409
  return this.render();
19440
19410
  }
19441
- /**
19442
- * Get the current context of the embedded TS component.
19443
- * @returns The current context object containing the page type and object ids.
19444
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
19445
- */
19446
- async getCurrentContext() {
19447
- return new Promise((resolve) => {
19448
- this.executeAfterEmbedContainerLoaded(async () => {
19449
- const context = await this.trigger(exports.HostEvent.GetPageContext, {});
19450
- resolve(context);
19451
- });
19452
- });
19453
- }
19454
19411
  /**
19455
19412
  * Creates the preRender shell
19456
19413
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -19851,15 +19808,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19851
19808
  const defaultAppInitData = await super.getAppInitData();
19852
19809
  return { ...defaultAppInitData, ...this.getSearchInitData() };
19853
19810
  }
19854
- /**
19855
- * Get the current context of the embedded search bar.
19856
- * @returns The current context object containing the page type and object ids.
19857
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
19858
- */
19859
- async getCurrentContext() {
19860
- const context = await super.getCurrentContext();
19861
- return context;
19862
- }
19863
19811
  };
19864
19812
 
19865
19813
  /**
@@ -19942,15 +19890,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19942
19890
  await this.renderV1Embed(src);
19943
19891
  return this;
19944
19892
  }
19945
- /**
19946
- * Get the current context of the embedded SageEmbed.
19947
- * @returns The current context object containing the page type and object ids.
19948
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
19949
- */
19950
- async getCurrentContext() {
19951
- const context = await super.getCurrentContext();
19952
- return context;
19953
- }
19954
19893
  };
19955
19894
 
19956
19895
  /**
@@ -20126,15 +20065,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20126
20065
  });
20127
20066
  return this;
20128
20067
  }
20129
- /**
20130
- * Get the current context of the embedded search.
20131
- * @returns The current context object containing the page type and object ids.
20132
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
20133
- */
20134
- async getCurrentContext() {
20135
- const context = await super.getCurrentContext();
20136
- return context;
20137
- }
20138
20068
  };
20139
20069
 
20140
20070
  /**
@@ -20683,7 +20613,6 @@ query GetEurekaVizSnapshots(
20683
20613
  super(domSelector, viewConfig);
20684
20614
  this.defaultHeight = 500;
20685
20615
  this.sendFullHeightLazyLoadData = () => {
20686
- console.log('sendFullHeightLazyLoadData', this.iFrame);
20687
20616
  const data = calculateVisibleElementData(this.iFrame);
20688
20617
  this.trigger(exports.HostEvent.VisibleEmbedCoordinates, data);
20689
20618
  };
@@ -20944,7 +20873,7 @@ query GetEurekaVizSnapshots(
20944
20873
  * @param {any} data The payload to send with the message
20945
20874
  * @returns A promise that resolves with the response from the embedded app
20946
20875
  */
20947
- trigger(messageType, data = {}, context) {
20876
+ trigger(messageType, data = {}) {
20948
20877
  const dataWithVizId = data;
20949
20878
  if (messageType === exports.HostEvent.SetActiveTab) {
20950
20879
  this.setActiveTab(data);
@@ -20953,7 +20882,7 @@ query GetEurekaVizSnapshots(
20953
20882
  if (typeof dataWithVizId === 'object' && this.viewConfig.vizId) {
20954
20883
  dataWithVizId.vizId = this.viewConfig.vizId;
20955
20884
  }
20956
- return super.trigger(messageType, dataWithVizId, context);
20885
+ return super.trigger(messageType, dataWithVizId);
20957
20886
  }
20958
20887
  /**
20959
20888
  * Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
@@ -21022,15 +20951,6 @@ query GetEurekaVizSnapshots(
21022
20951
  }
21023
20952
  return url;
21024
20953
  }
21025
- /**
21026
- * Get the current context of the embedded liveboard.
21027
- * @returns The current context object containing the page type and object ids.
21028
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
21029
- */
21030
- async getCurrentContext() {
21031
- const context = await super.getCurrentContext();
21032
- return context;
21033
- }
21034
20954
  };
21035
20955
 
21036
20956
  const createConversation = `
@@ -21655,15 +21575,6 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
21655
21575
  await this.renderIFrame(src);
21656
21576
  return this;
21657
21577
  }
21658
- /**
21659
- * Get the current context of the embedded SpotterEmbed.
21660
- * @returns The current context object containing the page type and object ids.
21661
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
21662
- */
21663
- async getCurrentContext() {
21664
- const context = await super.getCurrentContext();
21665
- return context;
21666
- }
21667
21578
  };
21668
21579
  /**
21669
21580
  * Embed ThoughtSpot AI Conversation.