@thoughtspot/visual-embed-sdk 1.35.0 → 1.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/cjs/package.json +15 -3
  2. package/cjs/src/embed/base.native.d.ts +1 -0
  3. package/cjs/src/embed/base.native.d.ts.map +1 -0
  4. package/cjs/src/embed/base.native.js +1 -0
  5. package/cjs/src/embed/base.native.js.map +1 -0
  6. package/cjs/src/embed/hello.d.ts +2 -0
  7. package/cjs/src/embed/hello.d.ts.map +1 -0
  8. package/cjs/src/embed/hello.js +6 -0
  9. package/cjs/src/embed/hello.js.map +1 -0
  10. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  11. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  12. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +104 -0
  13. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  14. package/cjs/src/native/LiveboardEmbed.d.ts +13 -0
  15. package/cjs/src/native/LiveboardEmbed.d.ts.map +1 -0
  16. package/cjs/src/native/LiveboardEmbed.js +146 -0
  17. package/cjs/src/native/LiveboardEmbed.js.map +1 -0
  18. package/cjs/src/native/commonUtils.d.ts +20 -0
  19. package/cjs/src/native/commonUtils.d.ts.map +1 -0
  20. package/cjs/src/native/commonUtils.js +175 -0
  21. package/cjs/src/native/commonUtils.js.map +1 -0
  22. package/cjs/src/native/commonUtils.spec.d.ts +2 -0
  23. package/cjs/src/native/commonUtils.spec.d.ts.map +1 -0
  24. package/cjs/src/native/commonUtils.spec.js +127 -0
  25. package/cjs/src/native/commonUtils.spec.js.map +1 -0
  26. package/cjs/src/native/embedConfig.d.ts +10 -0
  27. package/cjs/src/native/embedConfig.d.ts.map +1 -0
  28. package/cjs/src/native/embedConfig.js +12 -0
  29. package/cjs/src/native/embedConfig.js.map +1 -0
  30. package/cjs/src/native/index.d.ts +2 -0
  31. package/cjs/src/native/index.d.ts.map +1 -0
  32. package/cjs/src/native/index.js +7 -0
  33. package/cjs/src/native/index.js.map +1 -0
  34. package/cjs/src/native/types.d.ts +10 -0
  35. package/cjs/src/native/types.d.ts.map +1 -0
  36. package/cjs/src/native/types.js +3 -0
  37. package/cjs/src/native/types.js.map +1 -0
  38. package/cjs/src/parsers/filtersToRuntimeFilters.d.ts +6 -0
  39. package/cjs/src/parsers/filtersToRuntimeFilters.d.ts.map +1 -0
  40. package/cjs/src/parsers/filtersToRuntimeFilters.js +60 -0
  41. package/cjs/src/parsers/filtersToRuntimeFilters.js.map +1 -0
  42. package/cjs/src/parsers/filtersToRuntimeFilters.spec.d.ts +2 -0
  43. package/cjs/src/parsers/filtersToRuntimeFilters.spec.d.ts.map +1 -0
  44. package/cjs/src/parsers/filtersToRuntimeFilters.spec.js +205 -0
  45. package/cjs/src/parsers/filtersToRuntimeFilters.spec.js.map +1 -0
  46. package/cjs/src/parsers/index.d.ts +2 -0
  47. package/cjs/src/parsers/index.d.ts.map +1 -0
  48. package/cjs/src/parsers/index.js +6 -0
  49. package/cjs/src/parsers/index.js.map +1 -0
  50. package/cjs/src/parsers/index.spec.d.ts +2 -0
  51. package/cjs/src/parsers/index.spec.d.ts.map +1 -0
  52. package/cjs/src/parsers/index.spec.js +9 -0
  53. package/cjs/src/parsers/index.spec.js.map +1 -0
  54. package/cjs/src/react-native/Liveboard.d.ts +1 -0
  55. package/cjs/src/react-native/Liveboard.d.ts.map +1 -0
  56. package/cjs/src/react-native/Liveboard.js +1 -0
  57. package/cjs/src/react-native/Liveboard.js.map +1 -0
  58. package/cjs/src/utils/processData.spec.js +33 -0
  59. package/cjs/src/utils/processData.spec.js.map +1 -1
  60. package/cjs/src/utils.d.ts +15 -0
  61. package/cjs/src/utils.d.ts.map +1 -1
  62. package/cjs/src/utils.js +24 -3
  63. package/cjs/src/utils.js.map +1 -1
  64. package/cjs/src/utils.spec.js +132 -0
  65. package/cjs/src/utils.spec.js.map +1 -1
  66. package/dist/{index-A4UOqx43.js → index-BXczdQc7.js} +1 -1
  67. package/dist/index-Bh8kjZh8.js +7370 -0
  68. package/dist/src/embed/hello.d.ts +2 -0
  69. package/dist/src/embed/hello.d.ts.map +1 -0
  70. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  71. package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  72. package/dist/src/native/LiveboardEmbed.d.ts +13 -0
  73. package/dist/src/native/LiveboardEmbed.d.ts.map +1 -0
  74. package/dist/src/native/commonUtils.d.ts +20 -0
  75. package/dist/src/native/commonUtils.d.ts.map +1 -0
  76. package/dist/src/native/commonUtils.spec.d.ts +2 -0
  77. package/dist/src/native/commonUtils.spec.d.ts.map +1 -0
  78. package/dist/src/native/embedConfig.d.ts +10 -0
  79. package/dist/src/native/embedConfig.d.ts.map +1 -0
  80. package/dist/src/native/index.d.ts +2 -0
  81. package/dist/src/native/index.d.ts.map +1 -0
  82. package/dist/src/native/types.d.ts +10 -0
  83. package/dist/src/native/types.d.ts.map +1 -0
  84. package/dist/src/parsers/filtersToRuntimeFilters.d.ts +6 -0
  85. package/dist/src/parsers/filtersToRuntimeFilters.d.ts.map +1 -0
  86. package/dist/src/parsers/filtersToRuntimeFilters.spec.d.ts +2 -0
  87. package/dist/src/parsers/filtersToRuntimeFilters.spec.d.ts.map +1 -0
  88. package/dist/src/parsers/index.d.ts +2 -0
  89. package/dist/src/parsers/index.d.ts.map +1 -0
  90. package/dist/src/parsers/index.spec.d.ts +2 -0
  91. package/dist/src/parsers/index.spec.d.ts.map +1 -0
  92. package/dist/src/utils.d.ts +15 -0
  93. package/dist/src/utils.d.ts.map +1 -1
  94. package/dist/tsembed-parsers.es.js +3831 -0
  95. package/dist/tsembed-parsers.js +3840 -0
  96. package/dist/tsembed-react.es.js +3 -3
  97. package/dist/tsembed-react.js +2 -2
  98. package/dist/tsembed.es.js +3 -3
  99. package/dist/tsembed.js +2 -2
  100. package/lib/package.json +15 -3
  101. package/lib/src/embed/base.native.d.ts +1 -0
  102. package/lib/src/embed/base.native.d.ts.map +1 -0
  103. package/lib/src/embed/base.native.js +1 -0
  104. package/lib/src/embed/base.native.js.map +1 -0
  105. package/lib/src/embed/hello.d.ts +2 -0
  106. package/lib/src/embed/hello.d.ts.map +1 -0
  107. package/lib/src/embed/hello.js +2 -0
  108. package/lib/src/embed/hello.js.map +1 -0
  109. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  110. package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  111. package/lib/src/embed/searchEmbed-basic-auth.spec.js +101 -0
  112. package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  113. package/lib/src/native/LiveboardEmbed.d.ts +13 -0
  114. package/lib/src/native/LiveboardEmbed.d.ts.map +1 -0
  115. package/lib/src/native/LiveboardEmbed.js +141 -0
  116. package/lib/src/native/LiveboardEmbed.js.map +1 -0
  117. package/lib/src/native/commonUtils.d.ts +20 -0
  118. package/lib/src/native/commonUtils.d.ts.map +1 -0
  119. package/lib/src/native/commonUtils.js +169 -0
  120. package/lib/src/native/commonUtils.js.map +1 -0
  121. package/lib/src/native/commonUtils.spec.d.ts +2 -0
  122. package/lib/src/native/commonUtils.spec.d.ts.map +1 -0
  123. package/lib/src/native/commonUtils.spec.js +124 -0
  124. package/lib/src/native/commonUtils.spec.js.map +1 -0
  125. package/lib/src/native/embedConfig.d.ts +10 -0
  126. package/lib/src/native/embedConfig.d.ts.map +1 -0
  127. package/lib/src/native/embedConfig.js +7 -0
  128. package/lib/src/native/embedConfig.js.map +1 -0
  129. package/lib/src/native/index.d.ts +2 -0
  130. package/lib/src/native/index.d.ts.map +1 -0
  131. package/lib/src/native/index.js +2 -0
  132. package/lib/src/native/index.js.map +1 -0
  133. package/lib/src/native/types.d.ts +10 -0
  134. package/lib/src/native/types.d.ts.map +1 -0
  135. package/lib/src/native/types.js +2 -0
  136. package/lib/src/native/types.js.map +1 -0
  137. package/lib/src/parsers/filtersToRuntimeFilters.d.ts +6 -0
  138. package/lib/src/parsers/filtersToRuntimeFilters.d.ts.map +1 -0
  139. package/lib/src/parsers/filtersToRuntimeFilters.js +55 -0
  140. package/lib/src/parsers/filtersToRuntimeFilters.js.map +1 -0
  141. package/lib/src/parsers/filtersToRuntimeFilters.spec.d.ts +2 -0
  142. package/lib/src/parsers/filtersToRuntimeFilters.spec.d.ts.map +1 -0
  143. package/lib/src/parsers/filtersToRuntimeFilters.spec.js +203 -0
  144. package/lib/src/parsers/filtersToRuntimeFilters.spec.js.map +1 -0
  145. package/lib/src/parsers/index.d.ts +2 -0
  146. package/lib/src/parsers/index.d.ts.map +1 -0
  147. package/lib/src/parsers/index.js +2 -0
  148. package/lib/src/parsers/index.js.map +1 -0
  149. package/lib/src/parsers/index.spec.d.ts +2 -0
  150. package/lib/src/parsers/index.spec.d.ts.map +1 -0
  151. package/lib/src/parsers/index.spec.js +7 -0
  152. package/lib/src/parsers/index.spec.js.map +1 -0
  153. package/lib/src/react-native/Liveboard.d.ts +1 -0
  154. package/lib/src/react-native/Liveboard.d.ts.map +1 -0
  155. package/lib/src/react-native/Liveboard.js +1 -0
  156. package/lib/src/react-native/Liveboard.js.map +1 -0
  157. package/lib/src/utils/processData.spec.js +33 -0
  158. package/lib/src/utils/processData.spec.js.map +1 -1
  159. package/lib/src/utils.d.ts +15 -0
  160. package/lib/src/utils.d.ts.map +1 -1
  161. package/lib/src/utils.js +20 -2
  162. package/lib/src/utils.js.map +1 -1
  163. package/lib/src/utils.spec.js +133 -1
  164. package/lib/src/utils.spec.js.map +1 -1
  165. package/package.json +15 -3
  166. package/src/native/commonUtils.spec.tsx +161 -0
  167. package/src/native/commonUtils.ts +183 -0
  168. package/src/native/index.ts +1 -0
  169. package/src/native/types.ts +10 -0
  170. package/src/utils/processData.spec.ts +42 -0
  171. package/src/utils.spec.ts +147 -1
  172. package/src/utils.ts +25 -2
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.1 */
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
 
@@ -7150,7 +7150,7 @@ class AnswerService {
7150
7150
  async getTML() {
7151
7151
  const { object } = await this.executeQuery(getAnswerTML, {});
7152
7152
  const edoc = object[0].edoc;
7153
- const YAML = await import('./index-A4UOqx43.js');
7153
+ const YAML = await import('./index-Bh8kjZh8.js');
7154
7154
  const parsedDoc = YAML.parse(edoc);
7155
7155
  return {
7156
7156
  answer: {
@@ -14551,7 +14551,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14551
14551
  });
14552
14552
  }
14553
14553
 
14554
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.0";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};
14554
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.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={".":{"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"},"./native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.d.ts"},"./lib/src/native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.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","react-native":"^0.76.3","react-native-webview":"^13.12.4","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-comment-length":"1.7.3","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
14555
14555
 
14556
14556
  /**
14557
14557
  * Copyright (c) 2022
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.1 */
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) :
@@ -14573,7 +14573,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14573
14573
  });
14574
14574
  }
14575
14575
 
14576
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.0";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};
14576
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.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"},"./native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.d.ts"},"./lib/src/native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.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","react-native":"^0.76.3","react-native-webview":"^13.12.4","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-comment-length":"1.7.3","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
14577
14577
 
14578
14578
  /**
14579
14579
  * Copyright (c) 2022
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.1 */
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) {
@@ -7049,7 +7049,7 @@ class AnswerService {
7049
7049
  async getTML() {
7050
7050
  const { object } = await this.executeQuery(getAnswerTML, {});
7051
7051
  const edoc = object[0].edoc;
7052
- const YAML = await import('./index-A4UOqx43.js');
7052
+ const YAML = await import('./index-Bh8kjZh8.js');
7053
7053
  const parsedDoc = YAML.parse(edoc);
7054
7054
  return {
7055
7055
  answer: {
@@ -14793,7 +14793,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
14793
14793
  });
14794
14794
  }
14795
14795
 
14796
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.0";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};
14796
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.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={".":{"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"},"./native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.d.ts"},"./lib/src/native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.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","react-native":"^0.76.3","react-native-webview":"^13.12.4","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-comment-length":"1.7.3","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
14797
14797
 
14798
14798
  /**
14799
14799
  * Copyright (c) 2022
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.35.0 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.35.1 */
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) :
@@ -14799,7 +14799,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14799
14799
  });
14800
14800
  }
14801
14801
 
14802
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.0";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};
14802
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.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"},"./native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.d.ts"},"./lib/src/native":{"import":"./lib/src/native/index.js",require:"./cjs/src/native/index.js",types:"./lib/src/native/index.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","react-native":"^0.76.3","react-native-webview":"^13.12.4","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-comment-length":"1.7.3","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"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};
14803
14803
 
14804
14804
  /**
14805
14805
  * Copyright (c) 2022
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -26,6 +26,16 @@
26
26
  "import": "./lib/src/react/all-types-export.js",
27
27
  "require": "./cjs/src/react/all-types-export.js",
28
28
  "types": "./lib/src/react/all-types-export.d.ts"
29
+ },
30
+ "./native": {
31
+ "import": "./lib/src/native/index.js",
32
+ "require": "./cjs/src/native/index.js",
33
+ "types": "./lib/src/native/index.d.ts"
34
+ },
35
+ "./lib/src/native": {
36
+ "import": "./lib/src/native/index.js",
37
+ "require": "./cjs/src/native/index.js",
38
+ "types": "./lib/src/native/index.d.ts"
29
39
  }
30
40
  },
31
41
  "typesVersions": {
@@ -76,6 +86,8 @@
76
86
  "html-react-parser": "^1.4.12",
77
87
  "lodash": "^4.17.21",
78
88
  "mixpanel-browser": "2.47.0",
89
+ "react-native": "^0.76.3",
90
+ "react-native-webview": "^13.12.4",
79
91
  "ts-deepmerge": "^6.0.2",
80
92
  "tslib": "^2.5.3",
81
93
  "use-deep-compare-effect": "^1.8.1",
@@ -112,11 +124,11 @@
112
124
  "eslint-config-airbnb-base": "^14.2.0",
113
125
  "eslint-config-prettier": "^6.15.0",
114
126
  "eslint-import-resolver-typescript": "^2.3.0",
127
+ "eslint-plugin-comment-length": "1.7.3",
115
128
  "eslint-plugin-import": "^2.22.1",
129
+ "eslint-plugin-jsdoc": "^46.9.0",
116
130
  "eslint-plugin-prettier": "^3.1.4",
117
131
  "eslint-plugin-react-hooks": "^4.2.0",
118
- "eslint-plugin-comment-length": "1.7.3",
119
- "eslint-plugin-jsdoc": "^46.9.0",
120
132
  "fs-extra": "^10.0.0",
121
133
  "gh-pages": "^3.1.0",
122
134
  "highlight.js": "^10.6.0",
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=base.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.native.d.ts","sourceRoot":"","sources":["../../../src/embed/base.native.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=base.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.native.js","sourceRoot":"","sources":["../../../src/embed/base.native.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const sayHelloWorld: () => string;
2
+ //# sourceMappingURL=hello.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hello.d.ts","sourceRoot":"","sources":["../../../src/embed/hello.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,QAAO,MAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export const sayHelloWorld = () => "1312";
2
+ //# sourceMappingURL=hello.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hello.js","sourceRoot":"","sources":["../../../src/embed/hello.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,GAAW,EAAE,CAAC,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=searchEmbed-basic-auth.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchEmbed-basic-auth.spec.d.ts","sourceRoot":"","sources":["../../../src/embed/searchEmbed-basic-auth.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,101 @@
1
+ import { SearchEmbed } from './search';
2
+ import * as baseInstance from './base';
3
+ import * as authService from '../utils/authService';
4
+ import * as authInstance from '../auth';
5
+ import * as config from '../config';
6
+ import * as embedConfigInstance from './embedConfig';
7
+ import { init } from '../index';
8
+ import { AuthType } from '../types';
9
+ import { getDocumentBody, getRootEl } from '../test/test-utils';
10
+ import { mockSessionInfo } from '../auth.spec';
11
+ const thoughtSpotHost = 'tshost';
12
+ init({
13
+ thoughtSpotHost,
14
+ authType: AuthType.Basic,
15
+ username: 'tsadmin',
16
+ password: 'admin',
17
+ });
18
+ describe('Search embed tests when authType is Basic', () => {
19
+ /**
20
+ *
21
+ * @param version
22
+ */
23
+ function setupVersion(version) {
24
+ jest.spyOn(window, 'addEventListener').mockImplementation((event, handler, options) => {
25
+ handler({
26
+ data: {
27
+ type: 'xyz',
28
+ },
29
+ ports: [3000],
30
+ source: null,
31
+ });
32
+ });
33
+ jest.spyOn(authService, 'fetchSessionInfoService').mockImplementation(async () => ({
34
+ json: () => ({
35
+ ...mockSessionInfo,
36
+ releaseVersion: version,
37
+ }),
38
+ status: 200,
39
+ }));
40
+ jest.spyOn(authInstance, 'getReleaseVersion').mockReturnValue(version);
41
+ }
42
+ beforeEach(() => {
43
+ document.body.innerHTML = getDocumentBody();
44
+ jest.spyOn(baseInstance, 'getAuthPromise').mockResolvedValue(true);
45
+ });
46
+ afterEach(() => {
47
+ jest.clearAllMocks();
48
+ });
49
+ test('when releaseVersion is empty', async () => {
50
+ setupVersion('');
51
+ const mockAlert = spyOn(window, 'alert');
52
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
53
+ await searchEmbed.render();
54
+ expect(mockAlert).not.toBeCalled();
55
+ });
56
+ test("when releaseVersion is '7.0.1.cl' ", async () => {
57
+ setupVersion('7.0.1.cl');
58
+ const mockAlert = jest.spyOn(window, 'alert');
59
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
60
+ await searchEmbed.render();
61
+ expect(mockAlert).not.toBeCalled();
62
+ });
63
+ test('when releaseVersion is above 8.4.0.sw', async () => {
64
+ setupVersion('8.4.0.sw');
65
+ const mockAlert = jest.spyOn(window, 'alert');
66
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
67
+ await searchEmbed.render();
68
+ expect(mockAlert).not.toBeCalled();
69
+ });
70
+ test('releaseVersion is above 8.4.0.sw', async () => {
71
+ setupVersion('8.8.0.sw');
72
+ jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
73
+ const mockAlert = jest.spyOn(window, 'alert');
74
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
75
+ await searchEmbed.render();
76
+ expect(mockAlert).not.toBeCalled();
77
+ });
78
+ test('Alert should not appear when suppressSearchEmbedBetaWarning is true and releaseVersion is ts7.dec.cl', async () => {
79
+ setupVersion('ts7.dec.cl');
80
+ jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
81
+ jest.spyOn(embedConfigInstance, 'getEmbedConfig').mockReturnValue({
82
+ suppressSearchEmbedBetaWarning: true,
83
+ });
84
+ const mockAlert = jest.spyOn(window, 'alert');
85
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
86
+ await searchEmbed.render();
87
+ expect(mockAlert).not.toBeCalled();
88
+ });
89
+ test('Alert should not appear when suppressSearchEmbedBetaWarning is true and releaseVersion is 8.4.0.sw', async () => {
90
+ setupVersion('8.4.0.sw');
91
+ jest.spyOn(config, 'getThoughtSpotHost').mockImplementation(() => 'http://tshost');
92
+ jest.spyOn(embedConfigInstance, 'getEmbedConfig').mockReturnValue({
93
+ suppressSearchEmbedBetaWarning: true,
94
+ });
95
+ const mockAlert = jest.spyOn(window, 'alert');
96
+ const searchEmbed = new SearchEmbed(getRootEl(), {});
97
+ await searchEmbed.render();
98
+ expect(mockAlert).not.toBeCalled();
99
+ });
100
+ });
101
+ //# sourceMappingURL=searchEmbed-basic-auth.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchEmbed-basic-auth.spec.js","sourceRoot":"","sources":["../../../src/embed/searchEmbed-basic-auth.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,IAAI,CAAC;IACD,eAAe;IACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;IACxB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,OAAO;CACpB,CAAC,CAAC;AAEH,QAAQ,CAAC,2CAA2C,EAAE,GAAG,EAAE;IACvD;;;OAGG;IACH,SAAS,YAAY,CAAC,OAAe;QACjC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;YAClF,OAAO,CAAC;gBACJ,IAAI,EAAE;oBACF,IAAI,EAAE,KAAK;iBACd;gBACD,KAAK,EAA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
5
+ };
6
+ export declare enum Param {
7
+ Version = "sdkVersion"
8
+ }
9
+ export type QueryParams = {
10
+ [key: string]: string | boolean | number;
11
+ };
12
+ export declare const LiveboardEmbed: React.FC<LiveboardEmbedProps>;
13
+ //# sourceMappingURL=LiveboardEmbed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveboardEmbed.d.ts","sourceRoot":"","sources":["../../../src/native/LiveboardEmbed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAS3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,oBAAY,KAAK;IACb,OAAO,eAAe;CACzB;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAC5C,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkKxD,CAAC"}
@@ -0,0 +1,141 @@
1
+ import React, { useEffect, useRef, useState } from "react";
2
+ import { Text, View, StyleSheet } from "react-native";
3
+ import WebView from "react-native-webview";
4
+ import { getEmbedConfig } from "./embedConfig";
5
+ import { embedConfig } from "src/auth.spec";
6
+ import pkgInfo from '../../package.json';
7
+ import { getEncodedQueryParamsString, serializeParam, paramToString } from "src/utils";
8
+ const { version } = pkgInfo;
9
+ export var Param;
10
+ (function (Param) {
11
+ Param["Version"] = "sdkVersion";
12
+ })(Param || (Param = {}));
13
+ export const LiveboardEmbed = ({ liveboardId, getToken }) => {
14
+ const webViewRef = useRef(null);
15
+ const [embedUrl, setEmbedUrl] = useState("");
16
+ const [webViewLoaded, setWebViewLoaded] = useState(false);
17
+ const getEmbedParamsString = () => {
18
+ const queryparamsH = getBaseQueryParams();
19
+ return getQueryParamString(queryparamsH);
20
+ };
21
+ const getEmbedBasePath = (query) => {
22
+ let queryString = (query.startsWith('?')) ? query : `?${query}`;
23
+ queryString = `?base64UrlEncodedFlags=${getEncodedQueryParamsString(queryString.substr(1))}`;
24
+ const basePath = [embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.host, queryString]
25
+ .filter((x) => x.length > 0)
26
+ .join('/');
27
+ return `${basePath}#`;
28
+ };
29
+ const getRootWebViewSrc = () => {
30
+ const query = getEmbedParamsString();
31
+ return getEmbedBasePath(query);
32
+ };
33
+ const getQueryParamString = (queryParams, shouldSerializeParamValues = false) => {
34
+ const qp = [];
35
+ const params = Object.keys(queryParams);
36
+ params.forEach((key) => {
37
+ const val = queryParams[key];
38
+ if (val !== undefined) {
39
+ const serializedValue = shouldSerializeParamValues
40
+ ? serializeParam(val)
41
+ : paramToString(val);
42
+ qp.push(`${key}=${serializedValue}`);
43
+ }
44
+ });
45
+ if (qp.length) {
46
+ return qp.join('&');
47
+ }
48
+ return null;
49
+ };
50
+ const getBaseQueryParams = (queryParams = {}) => {
51
+ var _a;
52
+ let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
53
+ if (hostAppUrl.includes('localhost') || hostAppUrl.includes('127.0.0.1')) {
54
+ hostAppUrl = 'local-host';
55
+ }
56
+ queryParams[Param.Version] = version;
57
+ return queryParams;
58
+ };
59
+ const handleAppInit = async () => {
60
+ const authToken = await getToken();
61
+ const initPayload = {
62
+ type: "appInit",
63
+ data: {
64
+ host: embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.host,
65
+ authToken,
66
+ },
67
+ };
68
+ const jsCode = `
69
+ window.postMessage(${JSON.stringify(initPayload)});
70
+ `;
71
+ if (webViewRef.current && webViewLoaded) {
72
+ webViewRef.current.injectJavaScript(jsCode);
73
+ }
74
+ };
75
+ // Generate embed URL
76
+ const constructEmbedUrl = async () => {
77
+ const embedConfig = getEmbedConfig();
78
+ const host = (embedConfig === null || embedConfig === void 0 ? void 0 : embedConfig.host) || "";
79
+ const url = `${host}/?authType=AuthServerCookieless#/embed/liveboard/${liveboardId}`;
80
+ setEmbedUrl(url);
81
+ };
82
+ // Handle messages from the WebView
83
+ const handleOnMessage = (event) => {
84
+ try {
85
+ const message = JSON.parse(event.nativeEvent.data);
86
+ switch (message.type) {
87
+ case "AppInit":
88
+ handleAppInit();
89
+ break;
90
+ case "AuthExpiry" || "ThoughtspotAuthExpired":
91
+ handleAuthExpiry();
92
+ break;
93
+ case "CustomEvent":
94
+ console.log("Custom event received:", message.data);
95
+ break;
96
+ default:
97
+ console.warn("Unhandled message type:", message.type);
98
+ }
99
+ }
100
+ catch (error) {
101
+ console.error("Failed to handle message from WebView:", error);
102
+ }
103
+ };
104
+ // Handle auth token expiry
105
+ const handleAuthExpiry = async () => {
106
+ var _a;
107
+ const authToken = await getToken();
108
+ const payload = {
109
+ type: "AuthExpiry",
110
+ data: { authToken },
111
+ };
112
+ (_a = webViewRef.current) === null || _a === void 0 ? void 0 : _a.injectJavaScript(`
113
+ window.postMessage(${JSON.stringify(payload)}, "*");
114
+ `);
115
+ };
116
+ useEffect(() => {
117
+ constructEmbedUrl();
118
+ }, []);
119
+ if (!embedUrl) {
120
+ return (React.createElement(View, { style: styles.loadingContainer },
121
+ React.createElement(Text, null, "Loading Liveboard...")));
122
+ }
123
+ return (React.createElement(WebView, { ref: webViewRef, source: { uri: embedUrl }, style: styles.webview, onMessage: handleOnMessage, onLoadStart: () => console.log('WebView load started'), injectedJavaScriptBeforeContentLoaded: `
124
+ window.ReactNativeWebView = {
125
+ postMessage: function(data) {
126
+ window.postMessage(data, '*');
127
+ }
128
+ };
129
+ `, onLoad: () => setWebViewLoaded(true), javaScriptEnabled: true, domStorageEnabled: true, cacheEnabled: false, originWhitelist: ["*"], onHttpError: (event) => console.log("HTTP Error: ", event.nativeEvent), onError: (event) => console.error("WebView Error: ", event.nativeEvent) }));
130
+ };
131
+ const styles = StyleSheet.create({
132
+ webview: {
133
+ flex: 1,
134
+ },
135
+ loadingContainer: {
136
+ flex: 1,
137
+ justifyContent: "center",
138
+ alignItems: "center",
139
+ },
140
+ });
141
+ //# sourceMappingURL=LiveboardEmbed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveboardEmbed.js","sourceRoot":"","sources":["../../../src/native/LiveboardEmbed.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,OAAgC,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACvF,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AAO5B,MAAM,CAAN,IAAY,KAEX;AAFD,WAAY,KAAK;IACb,+BAAsB,CAAA;AAC1B,CAAC,EAFW,KAAK,KAAL,KAAK,QAEhB;AAOD,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzF,MAAM,UAAU,GAAG,MAAM,CAAU,IAAI,CAAC,CAAC;IACzC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAEnE,MAAM,oBAAoB,GAAG,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;QAC1C,OAAO,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAC3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,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB;YAClC,oBAAC,IAAI,+BAA4B,CAC5B,CACR,CAAC;KACH;IAED,OAAO,CACL,oBAAC,OAAO,IACN,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EACzB,KAAK,EAAE,MAAM,CAAC,OAAO,EACrB,SAAS,EAAE,eAAe,EAC1B,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EACtD,qCAAqC,EAAE;;;;;;OAMtC,EACD,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EACpC,iBAAiB,QACjB,iBAAiB,QACjB,YAAY,EAAE,KAAK,EACnB,eAAe,EAAE,CAAC,GAAG,CAAC,EACtB,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC,EACtE,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC,WAAW,CAAC,GACvE,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;KACR;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { WebViewConfig } from './types';
2
+ /**
3
+ * This method constructs the webview URL with given config.
4
+ * @param config To get the webviewURL pass the necessary config options.
5
+ * host: string;
6
+ * authType: AuthType;
7
+ * liveboardId: string;
8
+ * getAuthToken: () => Promise<string>;
9
+ * These four are necessary arguments.
10
+ * @returns The Promise for WebView URL.
11
+ */
12
+ export declare const getWebViewUrl: (config: WebViewConfig) => Promise<string>;
13
+ /**
14
+ * setting up message handling for the message replies to TS instances.
15
+ * @param config The webview config
16
+ * @param event The message event from the WebView.
17
+ * @param WebViewRef Ref to use and inject javascript
18
+ */
19
+ export declare const setupWebViewMessageHandler: (config: WebViewConfig, event: any, webViewRef: any) => Promise<void>;
20
+ //# sourceMappingURL=commonUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonUtils.d.ts","sourceRoot":"","sources":["../../../src/native/commonUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,WAAkB,aAAa,KAAG,QAAQ,MAAM,CA+BzE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,WAC3B,aAAa,SACd,GAAG,cACE,GAAG,kBA2ElB,CAAC"}