@thoughtspot/visual-embed-sdk 1.35.8 → 1.35.9

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 (77) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
  3. package/cjs/src/utils/graphql/nlsService/conversation-service.js +2 -0
  4. package/cjs/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
  5. package/dist/{index-BBBimG1x.js → index-VzrsEH43.js} +1 -1
  6. package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
  7. package/dist/tsembed-react.es.js +3 -3
  8. package/dist/tsembed-react.js +2 -2
  9. package/dist/tsembed.es.js +5 -3
  10. package/dist/tsembed.js +4 -2
  11. package/lib/package.json +1 -1
  12. package/lib/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -1
  13. package/lib/src/utils/graphql/nlsService/conversation-service.js +2 -0
  14. package/lib/src/utils/graphql/nlsService/conversation-service.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/utils/graphql/nlsService/conversation-service.ts +2 -0
  17. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  18. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  19. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +0 -104
  20. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  21. package/cjs/src/hostEventsTypeMapping.d.ts +0 -2
  22. package/cjs/src/hostEventsTypeMapping.d.ts.map +0 -1
  23. package/cjs/src/hostEventsTypeMapping.js +0 -4
  24. package/cjs/src/hostEventsTypeMapping.js.map +0 -1
  25. package/cjs/src/utils/embedApi/contracts.d.ts +0 -101
  26. package/cjs/src/utils/embedApi/contracts.d.ts.map +0 -1
  27. package/cjs/src/utils/embedApi/contracts.js +0 -17
  28. package/cjs/src/utils/embedApi/contracts.js.map +0 -1
  29. package/cjs/src/utils/embedApi/embedApiClient.d.ts +0 -12
  30. package/cjs/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  31. package/cjs/src/utils/embedApi/embedApiClient.js +0 -46
  32. package/cjs/src/utils/embedApi/embedApiClient.js.map +0 -1
  33. package/cjs/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  34. package/cjs/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  35. package/cjs/src/utils/embedApi/processEmbedApi.js +0 -18
  36. package/cjs/src/utils/embedApi/processEmbedApi.js.map +0 -1
  37. package/dist/index-BGnxP5NY.js +0 -7370
  38. package/dist/index-CENLvayL.js +0 -7370
  39. package/dist/index-CbltIawo.js +0 -7370
  40. package/dist/index-CoQfqaHj.js +0 -7370
  41. package/dist/index-CzwzS0P4.js +0 -7370
  42. package/dist/index-DFwi_pV_.js +0 -7370
  43. package/dist/index-DOIjN0N_.js +0 -7370
  44. package/dist/index-DYBx8SuE.js +0 -7370
  45. package/dist/index-DaLHJaLd.js +0 -7370
  46. package/dist/index-DnJX-gN2.js +0 -7370
  47. package/dist/index-nWevLycs.js +0 -7370
  48. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  49. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  50. package/dist/src/hostEventsTypeMapping.d.ts +0 -2
  51. package/dist/src/hostEventsTypeMapping.d.ts.map +0 -1
  52. package/dist/src/utils/embedApi/contracts.d.ts +0 -101
  53. package/dist/src/utils/embedApi/contracts.d.ts.map +0 -1
  54. package/dist/src/utils/embedApi/embedApiClient.d.ts +0 -12
  55. package/dist/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  56. package/dist/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  57. package/dist/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  58. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
  59. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
  60. package/lib/src/embed/searchEmbed-basic-auth.spec.js +0 -101
  61. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
  62. package/lib/src/hostEventsTypeMapping.d.ts +0 -2
  63. package/lib/src/hostEventsTypeMapping.d.ts.map +0 -1
  64. package/lib/src/hostEventsTypeMapping.js +0 -2
  65. package/lib/src/hostEventsTypeMapping.js.map +0 -1
  66. package/lib/src/utils/embedApi/contracts.d.ts +0 -101
  67. package/lib/src/utils/embedApi/contracts.d.ts.map +0 -1
  68. package/lib/src/utils/embedApi/contracts.js +0 -14
  69. package/lib/src/utils/embedApi/contracts.js.map +0 -1
  70. package/lib/src/utils/embedApi/embedApiClient.d.ts +0 -12
  71. package/lib/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
  72. package/lib/src/utils/embedApi/embedApiClient.js +0 -42
  73. package/lib/src/utils/embedApi/embedApiClient.js.map +0 -1
  74. package/lib/src/utils/embedApi/processEmbedApi.d.ts +0 -9
  75. package/lib/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
  76. package/lib/src/utils/embedApi/processEmbedApi.js +0 -14
  77. package/lib/src/utils/embedApi/processEmbedApi.js.map +0 -1
package/cjs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.35.8",
3
+ "version": "1.35.9",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
1
+ {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAoC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
@@ -38,12 +38,14 @@ class Conversation {
38
38
  const { responses } = await this.executeQuery(queries.sendMessage, {
39
39
  params: {
40
40
  convId: this.conversationId,
41
+ headers: [],
41
42
  msg: {
42
43
  data: {
43
44
  userCmdData: {
44
45
  cmdText: userMessage,
45
46
  nlsData: {
46
47
  worksheetId: this.worksheetId,
48
+ questionType: 'ANSWER_SPEC_GENERATION',
47
49
  },
48
50
  },
49
51
  },
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":";;;;AAAA,wDAAkD;AAClD,wEAAkD;AAElD,MAAa,YAAY;IAKrB,YAAoB,eAAuB,EAAU,WAAmB;QAApD,oBAAe,GAAf,eAAe,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAQ;QAFhE,eAAU,GAAwB,IAAI,CAAC;QAG3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;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EAAE,KAAK,EAAE,CAAC;SACpB;IACL,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,SAAc;QACnD,OAAO,IAAA,8BAAY,EAAC;YAChB,KAAK;YACL,SAAS;YACT,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,KAAK;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AA7ED,oCA6EC"}
1
+ {"version":3,"file":"conversation-service.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":";;;;AAAA,wDAAkD;AAClD,wEAAkD;AAElD,MAAa,YAAY;IAKrB,YAAoB,eAAuB,EAAU,WAAmB;QAApD,oBAAe,GAAf,eAAe,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAQ;QAFhE,eAAU,GAAwB,IAAI,CAAC;QAG3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACnD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;IACjC,CAAC;IAED,kBAAkB;QACd,OAAO,IAAI,CAAC,YAAY,CACpB,OAAO,CAAC,kBAAkB,EAC1B;YACI,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,cAAc,EAAE;wBACZ,SAAS,EAAE;4BACP,WAAW,EAAE,IAAI,CAAC,WAAW;yBAChC;qBACJ;oBACD,IAAI,EAAE,cAAc;iBACvB;gBACD,QAAQ,EAAE;oBACN,SAAS,EAAE,GAAG,IAAI,CAAC,eAAe,QAAQ;iBAC7C;aACJ;SACJ,CACJ,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,WAAmB;QACxC,MAAM,IAAI,CAAC,UAAU,CAAC;QAEtB,IAAI;YACA,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,YAAY,CACzC,OAAO,CAAC,WAAW,EACnB;gBACI,MAAM,EAAE;oBACJ,MAAM,EAAE,IAAI,CAAC,cAAc;oBAC3B,OAAO,EAAE,EAAE;oBACX,GAAG,EAAE;wBACD,IAAI,EAAE;4BACF,WAAW,EAAE;gCACT,OAAO,EAAE,WAAW;gCACpB,OAAO,EAAE;oCACL,WAAW,EAAE,IAAI,CAAC,WAAW;oCAC7B,YAAY,EAAE,wBAAwB;iCACzC;6BACJ;yBACJ;wBACD,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE;wBAC1B,IAAI,EAAE,cAAc;qBACvB;iBACJ;aACJ,CACJ,CAAC;YACF,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/B,OAAO;gBACH,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBAC1D,KAAK,EAAE,IAAI;aACd,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,EAAE,KAAK,EAAE,CAAC;SACpB;IACL,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,SAAc;QACnD,OAAO,IAAA,8BAAY,EAAC;YAChB,KAAK;YACL,SAAS;YACT,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,KAAK;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AA/ED,oCA+EC"}
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.4 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.9 */
2
2
  const ALIAS = Symbol.for('yaml.alias');
3
3
  const DOC = Symbol.for('yaml.document');
4
4
  const MAP = Symbol.for('yaml.map');
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
1
+ {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAoC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.9 */
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -7159,7 +7159,7 @@ class AnswerService {
7159
7159
  async getTML() {
7160
7160
  const { object } = await this.executeQuery(getAnswerTML, {});
7161
7161
  const edoc = object[0].edoc;
7162
- const YAML = await import('./index-BGnxP5NY.js');
7162
+ const YAML = await import('./index-VzrsEH43.js');
7163
7163
  const parsedDoc = YAML.parse(edoc);
7164
7164
  return {
7165
7165
  answer: {
@@ -14502,7 +14502,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
14502
14502
  return e;
14503
14503
  }
14504
14504
 
14505
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14505
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14506
14506
 
14507
14507
  /**
14508
14508
  * Reloads the ThoughtSpot iframe.
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.9 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -14524,7 +14524,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14524
14524
  return e;
14525
14525
  }
14526
14526
 
14527
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
14527
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14528
14528
 
14529
14529
  /**
14530
14530
  * Reloads the ThoughtSpot iframe.
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.9 */
2
2
  function _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -7058,7 +7058,7 @@ class AnswerService {
7058
7058
  async getTML() {
7059
7059
  const { object } = await this.executeQuery(getAnswerTML, {});
7060
7060
  const edoc = object[0].edoc;
7061
- const YAML = await import('./index-BGnxP5NY.js');
7061
+ const YAML = await import('./index-VzrsEH43.js');
7062
7062
  const parsedDoc = YAML.parse(edoc);
7063
7063
  return {
7064
7064
  answer: {
@@ -14744,7 +14744,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
14744
14744
  return e;
14745
14745
  }
14746
14746
 
14747
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14747
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14748
14748
 
14749
14749
  /**
14750
14750
  * Reloads the ThoughtSpot iframe.
@@ -17193,12 +17193,14 @@ class Conversation {
17193
17193
  const { responses } = await this.executeQuery(sendMessage, {
17194
17194
  params: {
17195
17195
  convId: this.conversationId,
17196
+ headers: [],
17196
17197
  msg: {
17197
17198
  data: {
17198
17199
  userCmdData: {
17199
17200
  cmdText: userMessage,
17200
17201
  nlsData: {
17201
17202
  worksheetId: this.worksheetId,
17203
+ questionType: 'ANSWER_SPEC_GENERATION',
17202
17204
  },
17203
17205
  },
17204
17206
  },
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.9 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -14750,7 +14750,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14750
14750
  return e;
14751
14751
  }
14752
14752
 
14753
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14753
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
14754
14754
 
14755
14755
  /**
14756
14756
  * Reloads the ThoughtSpot iframe.
@@ -17199,12 +17199,14 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17199
17199
  const { responses } = await this.executeQuery(sendMessage, {
17200
17200
  params: {
17201
17201
  convId: this.conversationId,
17202
+ headers: [],
17202
17203
  msg: {
17203
17204
  data: {
17204
17205
  userCmdData: {
17205
17206
  cmdText: userMessage,
17206
17207
  nlsData: {
17207
17208
  worksheetId: this.worksheetId,
17209
+ questionType: 'ANSWER_SPEC_GENERATION',
17208
17210
  },
17209
17211
  },
17210
17212
  },
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.35.8",
3
+ "version": "1.35.9",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAkC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
1
+ {"version":3,"file":"conversation-service.d.ts","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAKT,OAAO,CAAC,eAAe;IAAU,OAAO,CAAC,WAAW;IAJhE,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAA6B;gBAE3B,eAAe,EAAE,MAAM,EAAU,WAAW,EAAE,MAAM;IAIlE,IAAI;IAKV,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IAqBrB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAoC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG;CAQ1D"}
@@ -34,12 +34,14 @@ export class Conversation {
34
34
  const { responses } = await this.executeQuery(queries.sendMessage, {
35
35
  params: {
36
36
  convId: this.conversationId,
37
+ headers: [],
37
38
  msg: {
38
39
  data: {
39
40
  userCmdData: {
40
41
  cmdText: userMessage,
41
42
  nlsData: {
42
43
  worksheetId: this.worksheetId,
44
+ questionType: 'ANSWER_SPEC_GENERATION',
43
45
  },
44
46
  },
45
47
  },
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAElD,MAAM,OAAO,YAAY;IAKrB,YAAoB,eAAuB,EAAU,WAAmB;QAApD,oBAAe,GAAf,eAAe,CAAQ;QAAU,gBAAW,GAAX,WAAW,CAAQ;QAFhE,eAAU,GAAwB,IAAI,CAAC;QAG3C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACnD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;IACjC,CAAC;IAED,kBAAkB;QACd,OAAO,IAAI,CAAC,YAAY,CACpB,OAAO,CAAC,kBAAkB,EAC1B;YACI,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,cAAc,EAAE;wBACZ,SAAS,EAAE;4BACP,WAAW,EAAE,IAAI,CAAC,WAAW;yBAChC;qBACJ;oBACD,IAAI,EAAE,cAAc;iBACvB;gBACD,QAAQ,EAAE;oBACN,SAAS,EAAE,GAAG,IAAI,CAAC,eAAe,QAAQ;iBAC7C;aACJ;SACJ,CACJ,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,WAAmB;QACxC,MAAM,IAAI,CAAC,UAAU,CAAC;QAEtB,IAAI;YACA,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,YAAY,CACzC,OAAO,CAAC,WAAW,EACnB;gBACI,MAAM,EAAE;oBACJ,MAAM,EAAE,IAAI,CAAC,cAAc;oBAC3B,GAAG,EAAE;wBACD,IAAI,EAAE;4BACF,WAAW,EAAE;gCACT,OAAO,EAAE,WAAW;gCACpB,OAAO,EAAE;oCACL,WAAW,EAAE,IAAI,CAAC,WAAW;iCAChC;6BACJ;yBACJ;wBACD,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE;wBAC1B,IAAI,EAAE,cAAc;qBACvB;iBACJ;aACJ,CACJ,CAAC;YACF,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC/B,OAAO;gBACH,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBAC1D,KAAK,EAAE,IAAI;aACd,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,EAAE,KAAK,EAAE,CAAC;SACpB;IACL,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,SAAc;QACnD,OAAO,YAAY,CAAC;YAChB,KAAK;YACL,SAAS;YACT,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,KAAK;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ"}
1
+ {"version":3,"file":"conversation-service.js","sourceRoot":"","sources":["../../../../../src/utils/graphql/nlsService/conversation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAElD,MAAM,OAAO,YAAY;IAKrB,YAAoB,eAAuB,EAAU,WAAmB;QAApD,oBAAe,GAAf,eAAe,CAAQ;QAAU,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;YAC/B,OAAO;gBACH,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;gBAC1D,KAAK,EAAE,IAAI;aACd,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,OAAO,EAAE,KAAK,EAAE,CAAC;SACpB;IACL,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,SAAc;QACnD,OAAO,YAAY,CAAC;YAChB,KAAK;YACL,SAAS;YACT,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,KAAK;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.35.8",
3
+ "version": "1.35.9",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -45,12 +45,14 @@ export class Conversation {
45
45
  {
46
46
  params: {
47
47
  convId: this.conversationId,
48
+ headers: [],
48
49
  msg: {
49
50
  data: {
50
51
  userCmdData: {
51
52
  cmdText: userMessage,
52
53
  nlsData: {
53
54
  worksheetId: this.worksheetId,
55
+ questionType: 'ANSWER_SPEC_GENERATION',
54
56
  },
55
57
  },
56
58
  },
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=searchEmbed-basic-auth.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"searchEmbed-basic-auth.spec.d.ts","sourceRoot":"","sources":["../../../src/embed/searchEmbed-basic-auth.spec.ts"],"names":[],"mappings":""}
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const search_1 = require("./search");
5
- const baseInstance = tslib_1.__importStar(require("./base"));
6
- const authService = tslib_1.__importStar(require("../utils/authService"));
7
- const authInstance = tslib_1.__importStar(require("../auth"));
8
- const config = tslib_1.__importStar(require("../config"));
9
- const embedConfigInstance = tslib_1.__importStar(require("./embedConfig"));
10
- const index_1 = require("../index");
11
- const types_1 = require("../types");
12
- const test_utils_1 = require("../test/test-utils");
13
- const auth_spec_1 = require("../auth.spec");
14
- const thoughtSpotHost = 'tshost';
15
- (0, index_1.init)({
16
- thoughtSpotHost,
17
- authType: types_1.AuthType.Basic,
18
- username: 'tsadmin',
19
- password: 'admin',
20
- });
21
- describe('Search embed tests when authType is Basic', () => {
22
- /**
23
- *
24
- * @param version
25
- */
26
- function setupVersion(version) {
27
- jest.spyOn(window, 'addEventListener').mockImplementation((event, handler, options) => {
28
- handler({
29
- data: {
30
- type: 'xyz',
31
- },
32
- ports: [3000],
33
- source: null,
34
- });
35
- });
36
- jest.spyOn(authService, 'fetchSessionInfoService').mockImplementation(async () => ({
37
- json: () => ({
38
- ...auth_spec_1.mockSessionInfo,
39
- releaseVersion: version,
40
- }),
41
- status: 200,
42
- }));
43
- jest.spyOn(authInstance, 'getReleaseVersion').mockReturnValue(version);
44
- }
45
- beforeEach(() => {
46
- document.body.innerHTML = (0, test_utils_1.getDocumentBody)();
47
- jest.spyOn(baseInstance, 'getAuthPromise').mockResolvedValue(true);
48
- });
49
- afterEach(() => {
50
- jest.clearAllMocks();
51
- });
52
- test('when releaseVersion is empty', async () => {
53
- setupVersion('');
54
- const mockAlert = spyOn(window, 'alert');
55
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
56
- await searchEmbed.render();
57
- expect(mockAlert).not.toBeCalled();
58
- });
59
- test("when releaseVersion is '7.0.1.cl' ", async () => {
60
- setupVersion('7.0.1.cl');
61
- const mockAlert = jest.spyOn(window, 'alert');
62
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
63
- await searchEmbed.render();
64
- expect(mockAlert).not.toBeCalled();
65
- });
66
- test('when releaseVersion is above 8.4.0.sw', async () => {
67
- setupVersion('8.4.0.sw');
68
- const mockAlert = jest.spyOn(window, 'alert');
69
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
70
- await searchEmbed.render();
71
- expect(mockAlert).not.toBeCalled();
72
- });
73
- test('releaseVersion is above 8.4.0.sw', async () => {
74
- setupVersion('8.8.0.sw');
75
- jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
76
- const mockAlert = jest.spyOn(window, 'alert');
77
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
78
- await searchEmbed.render();
79
- expect(mockAlert).not.toBeCalled();
80
- });
81
- test('Alert should not appear when suppressSearchEmbedBetaWarning is true and releaseVersion is ts7.dec.cl', async () => {
82
- setupVersion('ts7.dec.cl');
83
- jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
84
- jest.spyOn(embedConfigInstance, 'getEmbedConfig').mockReturnValue({
85
- suppressSearchEmbedBetaWarning: true,
86
- });
87
- const mockAlert = jest.spyOn(window, 'alert');
88
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
89
- await searchEmbed.render();
90
- expect(mockAlert).not.toBeCalled();
91
- });
92
- test('Alert should not appear when suppressSearchEmbedBetaWarning is true and releaseVersion is 8.4.0.sw', async () => {
93
- setupVersion('8.4.0.sw');
94
- jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
95
- jest.spyOn(embedConfigInstance, 'getEmbedConfig').mockReturnValue({
96
- suppressSearchEmbedBetaWarning: true,
97
- });
98
- const mockAlert = jest.spyOn(window, 'alert');
99
- const searchEmbed = new search_1.SearchEmbed((0, test_utils_1.getRootEl)(), {});
100
- await searchEmbed.render();
101
- expect(mockAlert).not.toBeCalled();
102
- });
103
- });
104
- //# sourceMappingURL=searchEmbed-basic-auth.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"searchEmbed-basic-auth.spec.js","sourceRoot":"","sources":["../../../src/embed/searchEmbed-basic-auth.spec.ts"],"names":[],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E;QAClH,YAAY,CAAC,UAAU,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;QACnF,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,CAAC,eAAe,CAAC;YAC9D,8BAA8B,EAAE,IAAI;SACvC,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC9C,MAAM,WAAW,GAAG,IAAI,oBAAW,CAAC,IAAA,sBAAS,GAAE,EAAE,EAAE,CAAC,CAAC;QACrD,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=hostEventsTypeMapping.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostEventsTypeMapping.d.ts","sourceRoot":"","sources":["../../src/hostEventsTypeMapping.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const types_1 = require("./types");
4
- //# sourceMappingURL=hostEventsTypeMapping.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostEventsTypeMapping.js","sourceRoot":"","sources":["../../src/hostEventsTypeMapping.ts"],"names":[],"mappings":";;AAAA,mCAAoC"}
@@ -1,101 +0,0 @@
1
- import { HostEvent } from '../../types';
2
- export declare enum EmbedApiEvent {
3
- addVizToPinboard = "addVizToPinboard",
4
- saveAnswer = "saveAnswer",
5
- getA3AnalysisColumns = "getA3AnalysisColumns",
6
- getPinboardTabInfo = "getPinboardTabInfo",
7
- getDiscoverabilityStatus = "getDiscoverabilityStatus",
8
- getAvailableEmbedApis = "getAvailableEmbedApis",
9
- getAnswerPageConfig = "getAnswerPageConfig",
10
- getPinboardPageConfig = "getPinboardPageConfig",
11
- embedApiEventNotFound = "embedApiEventNotFound"
12
- }
13
- export type EmbedApiContractBase = {
14
- [EmbedApiEvent.addVizToPinboard]: {
15
- request: {
16
- vizId?: string;
17
- newVizName: string;
18
- newVizDescription?: string;
19
- pinboardId?: string;
20
- tabId?: string;
21
- newPinboardName?: string;
22
- newTabName?: string;
23
- pinFromStore?: boolean;
24
- };
25
- response: {
26
- pinboardId: string extends string ? null : string;
27
- tabId: string;
28
- vizId: string;
29
- errors?: any;
30
- };
31
- };
32
- [EmbedApiEvent.saveAnswer]: {
33
- request: {
34
- name: string;
35
- description: string;
36
- vizId: string;
37
- isDiscoverable?: boolean;
38
- };
39
- response: any;
40
- };
41
- [EmbedApiEvent.getA3AnalysisColumns]: {
42
- request: {
43
- vizId: string;
44
- };
45
- response: {
46
- data?: any;
47
- errors?: any;
48
- };
49
- };
50
- [EmbedApiEvent.getPinboardTabInfo]: {
51
- request: any;
52
- response: any;
53
- };
54
- [EmbedApiEvent.getDiscoverabilityStatus]: {
55
- request: any;
56
- response: {
57
- shouldShowDiscoverability: boolean;
58
- isDiscoverabilityCheckboxUnselectedPerOrg: boolean;
59
- };
60
- };
61
- [EmbedApiEvent.getAvailableEmbedApis]: {
62
- request: any;
63
- response: {
64
- keys: string[];
65
- };
66
- };
67
- [EmbedApiEvent.getAnswerPageConfig]: {
68
- request: {
69
- vizId: string;
70
- };
71
- response: any;
72
- };
73
- [EmbedApiEvent.getPinboardPageConfig]: {
74
- request: any;
75
- response: any;
76
- };
77
- [EmbedApiEvent.embedApiEventNotFound]: {
78
- request: any;
79
- response: any;
80
- };
81
- };
82
- export type EmbedApiRequest<T extends keyof EmbedApiContractBase> = EmbedApiContractBase[T]['request'];
83
- export type EmbedApiResponse<T extends keyof EmbedApiContractBase> = EmbedApiContractBase[T]['response'];
84
- export type EmbedApiArrayResponse<ApiName extends keyof EmbedApiContractBase> = Promise<Array<{
85
- redId?: string;
86
- value?: EmbedApiResponse<ApiName>;
87
- error?: any;
88
- }>>;
89
- export type EmbedApiHostEventMapping = {
90
- [HostEvent.Pin]: EmbedApiEvent.addVizToPinboard;
91
- 'hostEventNotMapped': EmbedApiEvent.embedApiEventNotFound;
92
- };
93
- export type FlattenType<T> = T extends infer R ? {
94
- [K in keyof R]: R[K];
95
- } : never;
96
- export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? FlattenType<EmbedApiRequest<EmbedApiHostEventMapping[HostEventT]>> : any;
97
- export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? {
98
- value?: EmbedApiResponse<EmbedApiHostEventMapping[HostEventT]>;
99
- error?: any;
100
- } : any;
101
- //# sourceMappingURL=contracts.d.ts.map