@thoughtspot/visual-embed-sdk 1.24.0-alpha.3 → 1.24.0-alpha.5

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 (97) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/css-variables.d.ts +38 -0
  3. package/cjs/src/css-variables.d.ts.map +1 -1
  4. package/cjs/src/embed/app.d.ts +11 -0
  5. package/cjs/src/embed/app.d.ts.map +1 -1
  6. package/cjs/src/embed/app.js +2 -1
  7. package/cjs/src/embed/app.js.map +1 -1
  8. package/cjs/src/embed/app.spec.js +10 -0
  9. package/cjs/src/embed/app.spec.js.map +1 -1
  10. package/cjs/src/embed/base.d.ts +4 -1
  11. package/cjs/src/embed/base.d.ts.map +1 -1
  12. package/cjs/src/embed/base.js +4 -1
  13. package/cjs/src/embed/base.js.map +1 -1
  14. package/cjs/src/embed/search-bar.d.ts +6 -0
  15. package/cjs/src/embed/search-bar.d.ts.map +1 -1
  16. package/cjs/src/embed/search-bar.js +5 -2
  17. package/cjs/src/embed/search-bar.js.map +1 -1
  18. package/cjs/src/embed/search.d.ts +6 -1
  19. package/cjs/src/embed/search.d.ts.map +1 -1
  20. package/cjs/src/embed/search.js +5 -2
  21. package/cjs/src/embed/search.js.map +1 -1
  22. package/cjs/src/embed/search.spec.js +34 -0
  23. package/cjs/src/embed/search.spec.js.map +1 -1
  24. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  25. package/cjs/src/embed/ts-embed.js +4 -0
  26. package/cjs/src/embed/ts-embed.js.map +1 -1
  27. package/cjs/src/embed/ts-embed.spec.js +81 -1
  28. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  29. package/cjs/src/types.d.ts +82 -3
  30. package/cjs/src/types.d.ts.map +1 -1
  31. package/cjs/src/types.js +70 -2
  32. package/cjs/src/types.js.map +1 -1
  33. package/dist/src/css-variables.d.ts +38 -0
  34. package/dist/src/css-variables.d.ts.map +1 -1
  35. package/dist/src/embed/app.d.ts +11 -0
  36. package/dist/src/embed/app.d.ts.map +1 -1
  37. package/dist/src/embed/base.d.ts +4 -1
  38. package/dist/src/embed/base.d.ts.map +1 -1
  39. package/dist/src/embed/search-bar.d.ts +6 -0
  40. package/dist/src/embed/search-bar.d.ts.map +1 -1
  41. package/dist/src/embed/search.d.ts +6 -1
  42. package/dist/src/embed/search.d.ts.map +1 -1
  43. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  44. package/dist/src/types.d.ts +82 -3
  45. package/dist/src/types.d.ts.map +1 -1
  46. package/dist/tsembed-react.es.js +86 -7
  47. package/dist/tsembed-react.js +86 -7
  48. package/dist/tsembed.es.js +90 -8
  49. package/dist/tsembed.js +90 -8
  50. package/dist/visual-embed-sdk-react-full.d.ts +147 -5
  51. package/dist/visual-embed-sdk-react.d.ts +147 -5
  52. package/dist/visual-embed-sdk.d.ts +147 -5
  53. package/lib/package.json +1 -1
  54. package/lib/src/css-variables.d.ts +38 -0
  55. package/lib/src/css-variables.d.ts.map +1 -1
  56. package/lib/src/embed/app.d.ts +11 -0
  57. package/lib/src/embed/app.d.ts.map +1 -1
  58. package/lib/src/embed/app.js +2 -1
  59. package/lib/src/embed/app.js.map +1 -1
  60. package/lib/src/embed/app.spec.js +10 -0
  61. package/lib/src/embed/app.spec.js.map +1 -1
  62. package/lib/src/embed/base.d.ts +4 -1
  63. package/lib/src/embed/base.d.ts.map +1 -1
  64. package/lib/src/embed/base.js +4 -1
  65. package/lib/src/embed/base.js.map +1 -1
  66. package/lib/src/embed/search-bar.d.ts +6 -0
  67. package/lib/src/embed/search-bar.d.ts.map +1 -1
  68. package/lib/src/embed/search-bar.js +6 -3
  69. package/lib/src/embed/search-bar.js.map +1 -1
  70. package/lib/src/embed/search.d.ts +6 -1
  71. package/lib/src/embed/search.d.ts.map +1 -1
  72. package/lib/src/embed/search.js +5 -2
  73. package/lib/src/embed/search.js.map +1 -1
  74. package/lib/src/embed/search.spec.js +34 -0
  75. package/lib/src/embed/search.spec.js.map +1 -1
  76. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  77. package/lib/src/embed/ts-embed.js +4 -0
  78. package/lib/src/embed/ts-embed.js.map +1 -1
  79. package/lib/src/embed/ts-embed.spec.js +82 -2
  80. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  81. package/lib/src/types.d.ts +82 -3
  82. package/lib/src/types.d.ts.map +1 -1
  83. package/lib/src/types.js +69 -1
  84. package/lib/src/types.js.map +1 -1
  85. package/lib/src/visual-embed-sdk.d.ts +147 -5
  86. package/package.json +1 -1
  87. package/src/css-variables.ts +47 -0
  88. package/src/embed/app.spec.ts +15 -0
  89. package/src/embed/app.ts +13 -0
  90. package/src/embed/base.ts +4 -1
  91. package/src/embed/search-bar.tsx +19 -6
  92. package/src/embed/search.spec.ts +43 -0
  93. package/src/embed/search.ts +13 -2
  94. package/src/embed/ts-embed.spec.ts +92 -2
  95. package/src/embed/ts-embed.ts +3 -0
  96. package/src/types.ts +82 -1
  97. package/lib/src/.index.d.ts.swp +0 -0
@@ -513,6 +513,17 @@ var AuthType;
513
513
  */
514
514
  AuthType["Basic"] = "Basic";
515
515
  })(AuthType || (AuthType = {}));
516
+ var HomeLeftNavItem;
517
+ (function (HomeLeftNavItem) {
518
+ HomeLeftNavItem["Home"] = "insights-home";
519
+ HomeLeftNavItem["Liveboards"] = "liveboards";
520
+ HomeLeftNavItem["Answers"] = "answers";
521
+ HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
522
+ HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
523
+ HomeLeftNavItem["Tutorials"] = "tutorials";
524
+ HomeLeftNavItem["Documentation"] = "documentation";
525
+ HomeLeftNavItem["Community"] = "community";
526
+ })(HomeLeftNavItem || (HomeLeftNavItem = {}));
516
527
  /**
517
528
  * A map of the supported runtime filter operations
518
529
  */
@@ -576,6 +587,37 @@ var RuntimeFilterOp;
576
587
  */
577
588
  RuntimeFilterOp["IN"] = "IN";
578
589
  })(RuntimeFilterOp || (RuntimeFilterOp = {}));
590
+ /**
591
+ * Home page module that can be hide
592
+ */
593
+ // eslint-disable-next-line no-shadow
594
+ var HomepageModule;
595
+ (function (HomepageModule) {
596
+ /**
597
+ * Search bar
598
+ */
599
+ HomepageModule["Search"] = "search";
600
+ /**
601
+ * kPI watchlist module
602
+ */
603
+ HomepageModule["Watchlist"] = "watchlist";
604
+ /**
605
+ * favorite objects
606
+ */
607
+ HomepageModule["Favorite"] = "favorite";
608
+ /**
609
+ * List of answers and liveboards
610
+ */
611
+ HomepageModule["MyLibrary"] = "mylibrary";
612
+ /**
613
+ * Trending list
614
+ */
615
+ HomepageModule["Trending"] = "trending";
616
+ /**
617
+ * Learning videos
618
+ */
619
+ HomepageModule["Learning"] = "learning";
620
+ })(HomepageModule || (HomepageModule = {}));
579
621
  /**
580
622
  * Event types emitted by the embedded ThoughtSpot application.
581
623
  *
@@ -1019,6 +1061,12 @@ var EmbedEvent;
1019
1061
  * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
1020
1062
  */
1021
1063
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1064
+ /**
1065
+ * Emitten when a user updates a connection in Data tab
1066
+ *
1067
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
1068
+ */
1069
+ EmbedEvent["UpdateConnection"] = "updateConnection";
1022
1070
  })(EmbedEvent || (EmbedEvent = {}));
1023
1071
  /**
1024
1072
  * Event types that can be triggered by the host application
@@ -1829,6 +1877,7 @@ var Param;
1829
1877
  Param["HideSampleQuestions"] = "hideSampleQuestions";
1830
1878
  Param["WorksheetId"] = "worksheet";
1831
1879
  Param["Query"] = "query";
1880
+ Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
1832
1881
  Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
1833
1882
  })(Param || (Param = {}));
1834
1883
  /**
@@ -2334,7 +2383,7 @@ var Action;
2334
2383
  * disabledActions: [Action.QueryDetailsButtons]
2335
2384
  * ```
2336
2385
  */
2337
- Action["QueryDetailsButtons"] = "QueryDetailsButtons";
2386
+ Action["QueryDetailsButtons"] = "queryDetailsButtons";
2338
2387
  /**
2339
2388
  * The **Delete** action for Answers.
2340
2389
  *
@@ -2639,6 +2688,25 @@ var Action;
2639
2688
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2640
2689
  */
2641
2690
  Action["ModifySageAnswer"] = "modifySageAnswer";
2691
+ /**
2692
+ * The **Move to Tab** menu action on visualizations in liveboard edit mode.
2693
+ * Allows moving a visualization to a different tab.
2694
+ *
2695
+ * @example
2696
+ * ```js
2697
+ * disabledActions: [Action.MoveToTab]
2698
+ * ```
2699
+ */
2700
+ Action["MoveToTab"] = "onContainerMove";
2701
+ /**
2702
+ * The **Manage Alertsb** menu action on KPI visualizations.
2703
+ *
2704
+ * @example
2705
+ * ```js
2706
+ * disabledActions: [Action.ManageMonitor]
2707
+ * ```
2708
+ */
2709
+ Action["ManageMonitor"] = "ManageMonitor";
2642
2710
  })(Action || (Action = {}));
2643
2711
  // eslint-disable-next-line no-shadow
2644
2712
  var OperationType;
@@ -10253,7 +10321,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
10253
10321
  });
10254
10322
  }
10255
10323
 
10256
- var name="@thoughtspot/visual-embed-sdk";var version="1.24.0-alpha.3";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/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","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","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"40 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};
10324
+ var name="@thoughtspot/visual-embed-sdk";var version="1.24.0-alpha.5";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/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","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","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"40 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};
10257
10325
 
10258
10326
  /**
10259
10327
  * Copyright (c) 2022
@@ -10301,6 +10369,7 @@ class TsEmbed {
10301
10369
  * @param responder
10302
10370
  */
10303
10371
  this.appInitCb = async (_, responder) => {
10372
+ var _a, _b;
10304
10373
  let authToken = '';
10305
10374
  if (this.embedConfig.authType === AuthType.TrustedAuthTokenCookieless) {
10306
10375
  authToken = await getAuthenticaionToken(this.embedConfig);
@@ -10312,7 +10381,10 @@ class TsEmbed {
10312
10381
  customisations: getCustomisations(this.embedConfig, this.viewConfig),
10313
10382
  authToken,
10314
10383
  runtimeFilterParams: getRuntimeFilters(this.viewConfig.runtimeFilters),
10384
+ hiddenHomepageModules: this.viewConfig.hiddenHomepageModules || [],
10315
10385
  hostConfig: this.embedConfig.hostConfig,
10386
+ hiddenHomeLeftNavItems: ((_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.hiddenHomeLeftNavItems)
10387
+ ? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems : [],
10316
10388
  },
10317
10389
  });
10318
10390
  };
@@ -11020,7 +11092,7 @@ class SearchBarEmbed extends TsEmbed {
11020
11092
  */
11021
11093
  getIFrameSrc() {
11022
11094
  var _a;
11023
- const { searchOptions, dataSource, dataSources } = this.viewConfig;
11095
+ const { searchOptions, dataSource, dataSources, useLastSelectedSources = false, } = this.viewConfig;
11024
11096
  const path = 'search-bar-embed';
11025
11097
  const queryParams = this.getBaseQueryParams();
11026
11098
  queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
@@ -11036,7 +11108,10 @@ class SearchBarEmbed extends TsEmbed {
11036
11108
  queryParams[Param.executeSearch] = true;
11037
11109
  }
11038
11110
  }
11039
- queryParams[Param.UseLastSelectedDataSource] = false;
11111
+ queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
11112
+ if (dataSource || dataSources) {
11113
+ queryParams[Param.UseLastSelectedDataSource] = false;
11114
+ }
11040
11115
  queryParams[Param.searchEmbed] = true;
11041
11116
  let query = '';
11042
11117
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -11187,7 +11262,7 @@ class SearchEmbed extends TsEmbed {
11187
11262
  }
11188
11263
  getEmbedParams() {
11189
11264
  var _a;
11190
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, dataPanelV2 = false, } = this.viewConfig;
11265
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, dataPanelV2 = false, useLastSelectedSources = false, } = this.viewConfig;
11191
11266
  const queryParams = this.getBaseQueryParams();
11192
11267
  queryParams[Param.HideActions] = [
11193
11268
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -11216,7 +11291,10 @@ class SearchEmbed extends TsEmbed {
11216
11291
  }
11217
11292
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
11218
11293
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
11219
- queryParams[Param.UseLastSelectedDataSource] = false;
11294
+ queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
11295
+ if (dataSource || dataSources) {
11296
+ queryParams[Param.UseLastSelectedDataSource] = false;
11297
+ }
11220
11298
  queryParams[Param.searchEmbed] = true;
11221
11299
  let query = '';
11222
11300
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -11344,7 +11422,7 @@ class AppEmbed extends V1Embed {
11344
11422
  * embedded Liveboard or visualization.
11345
11423
  */
11346
11424
  getEmbedParams() {
11347
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, modularHomeExperience = false, } = this.viewConfig;
11425
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
11348
11426
  let params = {};
11349
11427
  params[Param.EmbedApp] = true;
11350
11428
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -11368,6 +11446,7 @@ class AppEmbed extends V1Embed {
11368
11446
  params[Param.EnableSearchAssist] = enableSearchAssist;
11369
11447
  }
11370
11448
  params[Param.DataPanelV2Enabled] = dataPanelV2;
11449
+ params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
11371
11450
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
11372
11451
  const queryParams = getQueryParamString(params, true);
11373
11452
  return queryParams;
@@ -521,6 +521,17 @@
521
521
  */
522
522
  AuthType["Basic"] = "Basic";
523
523
  })(AuthType || (AuthType = {}));
524
+ var HomeLeftNavItem;
525
+ (function (HomeLeftNavItem) {
526
+ HomeLeftNavItem["Home"] = "insights-home";
527
+ HomeLeftNavItem["Liveboards"] = "liveboards";
528
+ HomeLeftNavItem["Answers"] = "answers";
529
+ HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
530
+ HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
531
+ HomeLeftNavItem["Tutorials"] = "tutorials";
532
+ HomeLeftNavItem["Documentation"] = "documentation";
533
+ HomeLeftNavItem["Community"] = "community";
534
+ })(HomeLeftNavItem || (HomeLeftNavItem = {}));
524
535
  (function (RuntimeFilterOp) {
525
536
  /**
526
537
  * Equals
@@ -579,6 +590,37 @@
579
590
  */
580
591
  RuntimeFilterOp["IN"] = "IN";
581
592
  })(exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
593
+ /**
594
+ * Home page module that can be hide
595
+ */
596
+ // eslint-disable-next-line no-shadow
597
+ var HomepageModule;
598
+ (function (HomepageModule) {
599
+ /**
600
+ * Search bar
601
+ */
602
+ HomepageModule["Search"] = "search";
603
+ /**
604
+ * kPI watchlist module
605
+ */
606
+ HomepageModule["Watchlist"] = "watchlist";
607
+ /**
608
+ * favorite objects
609
+ */
610
+ HomepageModule["Favorite"] = "favorite";
611
+ /**
612
+ * List of answers and liveboards
613
+ */
614
+ HomepageModule["MyLibrary"] = "mylibrary";
615
+ /**
616
+ * Trending list
617
+ */
618
+ HomepageModule["Trending"] = "trending";
619
+ /**
620
+ * Learning videos
621
+ */
622
+ HomepageModule["Learning"] = "learning";
623
+ })(HomepageModule || (HomepageModule = {}));
582
624
  (function (EmbedEvent) {
583
625
  /**
584
626
  * Rendering has initialized.
@@ -1000,6 +1042,12 @@
1000
1042
  * @version SDK : 1.27.0 | Thoughtspot: 9.7.0.cl
1001
1043
  */
1002
1044
  EmbedEvent["SageWorksheetUpdated"] = "sageWorksheetUpdated";
1045
+ /**
1046
+ * Emitten when a user updates a connection in Data tab
1047
+ *
1048
+ * @version SDK : 1.27.0 | Thoughtspot: 9.8.0.cl
1049
+ */
1050
+ EmbedEvent["UpdateConnection"] = "updateConnection";
1003
1051
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
1004
1052
  (function (HostEvent) {
1005
1053
  /**
@@ -1786,6 +1834,7 @@
1786
1834
  Param["HideSampleQuestions"] = "hideSampleQuestions";
1787
1835
  Param["WorksheetId"] = "worksheet";
1788
1836
  Param["Query"] = "query";
1837
+ Param["HideHomepageLeftNav"] = "hideHomepageLeftNav";
1789
1838
  Param["ModularHomeExperienceEnabled"] = "modularHomeExperience";
1790
1839
  })(Param || (Param = {}));
1791
1840
  (function (Action) {
@@ -2262,7 +2311,7 @@
2262
2311
  * disabledActions: [Action.QueryDetailsButtons]
2263
2312
  * ```
2264
2313
  */
2265
- Action["QueryDetailsButtons"] = "QueryDetailsButtons";
2314
+ Action["QueryDetailsButtons"] = "queryDetailsButtons";
2266
2315
  /**
2267
2316
  * The **Delete** action for Answers.
2268
2317
  *
@@ -2567,6 +2616,25 @@
2567
2616
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
2568
2617
  */
2569
2618
  Action["ModifySageAnswer"] = "modifySageAnswer";
2619
+ /**
2620
+ * The **Move to Tab** menu action on visualizations in liveboard edit mode.
2621
+ * Allows moving a visualization to a different tab.
2622
+ *
2623
+ * @example
2624
+ * ```js
2625
+ * disabledActions: [Action.MoveToTab]
2626
+ * ```
2627
+ */
2628
+ Action["MoveToTab"] = "onContainerMove";
2629
+ /**
2630
+ * The **Manage Alertsb** menu action on KPI visualizations.
2631
+ *
2632
+ * @example
2633
+ * ```js
2634
+ * disabledActions: [Action.ManageMonitor]
2635
+ * ```
2636
+ */
2637
+ Action["ManageMonitor"] = "ManageMonitor";
2570
2638
  })(exports.Action || (exports.Action = {}));
2571
2639
  // eslint-disable-next-line no-shadow
2572
2640
  var OperationType;
@@ -10181,7 +10249,7 @@
10181
10249
  });
10182
10250
  }
10183
10251
 
10184
- var name="@thoughtspot/visual-embed-sdk";var version="1.24.0-alpha.3";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/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","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","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"40 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};
10252
+ var name="@thoughtspot/visual-embed-sdk";var version="1.24.0-alpha.5";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",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",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"};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","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.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/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","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","fs-extra":"^10.0.0",gatsby:"3.13.1","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"6.7.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.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"};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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"40 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};
10185
10253
 
10186
10254
  /**
10187
10255
  * Copyright (c) 2022
@@ -10229,6 +10297,7 @@
10229
10297
  * @param responder
10230
10298
  */
10231
10299
  this.appInitCb = async (_, responder) => {
10300
+ var _a, _b;
10232
10301
  let authToken = '';
10233
10302
  if (this.embedConfig.authType === AuthType.TrustedAuthTokenCookieless) {
10234
10303
  authToken = await getAuthenticaionToken(this.embedConfig);
@@ -10240,7 +10309,10 @@
10240
10309
  customisations: getCustomisations(this.embedConfig, this.viewConfig),
10241
10310
  authToken,
10242
10311
  runtimeFilterParams: getRuntimeFilters(this.viewConfig.runtimeFilters),
10312
+ hiddenHomepageModules: this.viewConfig.hiddenHomepageModules || [],
10243
10313
  hostConfig: this.embedConfig.hostConfig,
10314
+ hiddenHomeLeftNavItems: ((_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.hiddenHomeLeftNavItems)
10315
+ ? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems : [],
10244
10316
  },
10245
10317
  });
10246
10318
  };
@@ -10948,7 +11020,7 @@
10948
11020
  */
10949
11021
  getIFrameSrc() {
10950
11022
  var _a;
10951
- const { searchOptions, dataSource, dataSources } = this.viewConfig;
11023
+ const { searchOptions, dataSource, dataSources, useLastSelectedSources = false, } = this.viewConfig;
10952
11024
  const path = 'search-bar-embed';
10953
11025
  const queryParams = this.getBaseQueryParams();
10954
11026
  queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
@@ -10964,7 +11036,10 @@
10964
11036
  queryParams[Param.executeSearch] = true;
10965
11037
  }
10966
11038
  }
10967
- queryParams[Param.UseLastSelectedDataSource] = false;
11039
+ queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
11040
+ if (dataSource || dataSources) {
11041
+ queryParams[Param.UseLastSelectedDataSource] = false;
11042
+ }
10968
11043
  queryParams[Param.searchEmbed] = true;
10969
11044
  let query = '';
10970
11045
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -11115,7 +11190,7 @@
11115
11190
  }
11116
11191
  getEmbedParams() {
11117
11192
  var _a;
11118
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, dataPanelV2 = false, } = this.viewConfig;
11193
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, dataPanelV2 = false, useLastSelectedSources = false, } = this.viewConfig;
11119
11194
  const queryParams = this.getBaseQueryParams();
11120
11195
  queryParams[Param.HideActions] = [
11121
11196
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -11144,7 +11219,10 @@
11144
11219
  }
11145
11220
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
11146
11221
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
11147
- queryParams[Param.UseLastSelectedDataSource] = false;
11222
+ queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
11223
+ if (dataSource || dataSources) {
11224
+ queryParams[Param.UseLastSelectedDataSource] = false;
11225
+ }
11148
11226
  queryParams[Param.searchEmbed] = true;
11149
11227
  let query = '';
11150
11228
  const queryParamsString = getQueryParamString(queryParams, true);
@@ -11267,7 +11345,7 @@
11267
11345
  * embedded Liveboard or visualization.
11268
11346
  */
11269
11347
  getEmbedParams() {
11270
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, modularHomeExperience = false, } = this.viewConfig;
11348
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideHomepageLeftNav = false, modularHomeExperience = false, } = this.viewConfig;
11271
11349
  let params = {};
11272
11350
  params[Param.EmbedApp] = true;
11273
11351
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -11291,6 +11369,7 @@
11291
11369
  params[Param.EnableSearchAssist] = enableSearchAssist;
11292
11370
  }
11293
11371
  params[Param.DataPanelV2Enabled] = dataPanelV2;
11372
+ params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
11294
11373
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
11295
11374
  const queryParams = getQueryParamString(params, true);
11296
11375
  return queryParams;