@thoughtspot/visual-embed-sdk 1.28.3 → 1.28.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/cjs/package.json +2 -1
  2. package/cjs/src/embed/app.d.ts +38 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +7 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +10 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts +16 -0
  9. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  10. package/cjs/src/embed/liveboard.js +8 -3
  11. package/cjs/src/embed/liveboard.js.map +1 -1
  12. package/cjs/src/embed/liveboard.spec.js +61 -4
  13. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  14. package/cjs/src/embed/sage.d.ts +4 -4
  15. package/cjs/src/embed/sage.d.ts.map +1 -1
  16. package/cjs/src/embed/sage.js +2 -18
  17. package/cjs/src/embed/sage.js.map +1 -1
  18. package/cjs/src/embed/sage.spec.js +20 -31
  19. package/cjs/src/embed/sage.spec.js.map +1 -1
  20. package/cjs/src/embed/search.d.ts +22 -0
  21. package/cjs/src/embed/search.d.ts.map +1 -1
  22. package/cjs/src/embed/search.js +3 -1
  23. package/cjs/src/embed/search.js.map +1 -1
  24. package/cjs/src/embed/search.spec.js +2 -1
  25. package/cjs/src/embed/search.spec.js.map +1 -1
  26. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  27. package/cjs/src/embed/ts-embed.js +9 -0
  28. package/cjs/src/embed/ts-embed.js.map +1 -1
  29. package/cjs/src/embed/ts-embed.spec.js +18 -0
  30. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  31. package/cjs/src/errors.js +1 -1
  32. package/cjs/src/errors.js.map +1 -1
  33. package/cjs/src/react/index.spec.js +1 -1
  34. package/cjs/src/react/index.spec.js.map +1 -1
  35. package/cjs/src/types.d.ts +86 -5
  36. package/cjs/src/types.d.ts.map +1 -1
  37. package/cjs/src/types.js +67 -4
  38. package/cjs/src/types.js.map +1 -1
  39. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  40. package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  41. package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
  42. package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
  43. package/cjs/src/utils/sessionInfoService.d.ts +66 -0
  44. package/cjs/src/utils/sessionInfoService.d.ts.map +1 -0
  45. package/cjs/src/utils/sessionInfoService.js +92 -0
  46. package/cjs/src/utils/sessionInfoService.js.map +1 -0
  47. package/dist/src/embed/app.d.ts +38 -0
  48. package/dist/src/embed/app.d.ts.map +1 -1
  49. package/dist/src/embed/liveboard.d.ts +16 -0
  50. package/dist/src/embed/liveboard.d.ts.map +1 -1
  51. package/dist/src/embed/sage.d.ts +4 -4
  52. package/dist/src/embed/sage.d.ts.map +1 -1
  53. package/dist/src/embed/search.d.ts +22 -0
  54. package/dist/src/embed/search.d.ts.map +1 -1
  55. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  56. package/dist/src/types.d.ts +86 -5
  57. package/dist/src/types.d.ts.map +1 -1
  58. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  59. package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  60. package/dist/src/utils/sessionInfoService.d.ts +66 -0
  61. package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
  62. package/dist/tsembed-react.es.js +97 -28
  63. package/dist/tsembed-react.js +97 -28
  64. package/dist/tsembed.es.js +97 -28
  65. package/dist/tsembed.js +97 -28
  66. package/dist/visual-embed-sdk-react-full.d.ts +165 -8
  67. package/dist/visual-embed-sdk-react.d.ts +165 -8
  68. package/dist/visual-embed-sdk.d.ts +165 -8
  69. package/lib/package.json +2 -1
  70. package/lib/src/embed/app.d.ts +38 -0
  71. package/lib/src/embed/app.d.ts.map +1 -1
  72. package/lib/src/embed/app.js +7 -1
  73. package/lib/src/embed/app.js.map +1 -1
  74. package/lib/src/embed/app.spec.js +10 -0
  75. package/lib/src/embed/app.spec.js.map +1 -1
  76. package/lib/src/embed/liveboard.d.ts +16 -0
  77. package/lib/src/embed/liveboard.d.ts.map +1 -1
  78. package/lib/src/embed/liveboard.js +8 -3
  79. package/lib/src/embed/liveboard.js.map +1 -1
  80. package/lib/src/embed/liveboard.spec.js +61 -4
  81. package/lib/src/embed/liveboard.spec.js.map +1 -1
  82. package/lib/src/embed/sage.d.ts +4 -4
  83. package/lib/src/embed/sage.d.ts.map +1 -1
  84. package/lib/src/embed/sage.js +2 -18
  85. package/lib/src/embed/sage.js.map +1 -1
  86. package/lib/src/embed/sage.spec.js +20 -31
  87. package/lib/src/embed/sage.spec.js.map +1 -1
  88. package/lib/src/embed/search.d.ts +22 -0
  89. package/lib/src/embed/search.d.ts.map +1 -1
  90. package/lib/src/embed/search.js +3 -1
  91. package/lib/src/embed/search.js.map +1 -1
  92. package/lib/src/embed/search.spec.js +2 -1
  93. package/lib/src/embed/search.spec.js.map +1 -1
  94. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  95. package/lib/src/embed/ts-embed.js +9 -0
  96. package/lib/src/embed/ts-embed.js.map +1 -1
  97. package/lib/src/embed/ts-embed.spec.js +18 -0
  98. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  99. package/lib/src/errors.js +1 -1
  100. package/lib/src/errors.js.map +1 -1
  101. package/lib/src/react/index.spec.js +1 -1
  102. package/lib/src/react/index.spec.js.map +1 -1
  103. package/lib/src/types.d.ts +86 -5
  104. package/lib/src/types.d.ts.map +1 -1
  105. package/lib/src/types.js +67 -4
  106. package/lib/src/types.js.map +1 -1
  107. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
  108. package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
  109. package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
  110. package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
  111. package/lib/src/utils/sessionInfoService.d.ts +66 -0
  112. package/lib/src/utils/sessionInfoService.d.ts.map +1 -0
  113. package/lib/src/utils/sessionInfoService.js +85 -0
  114. package/lib/src/utils/sessionInfoService.js.map +1 -0
  115. package/lib/src/visual-embed-sdk.d.ts +166 -9
  116. package/package.json +2 -1
  117. package/src/embed/app.spec.ts +15 -0
  118. package/src/embed/app.ts +48 -0
  119. package/src/embed/liveboard.spec.ts +82 -9
  120. package/src/embed/liveboard.ts +26 -2
  121. package/src/embed/sage.spec.ts +20 -35
  122. package/src/embed/sage.ts +4 -21
  123. package/src/embed/search.spec.ts +2 -1
  124. package/src/embed/search.ts +26 -0
  125. package/src/embed/ts-embed.spec.ts +22 -0
  126. package/src/embed/ts-embed.ts +9 -0
  127. package/src/errors.ts +1 -1
  128. package/src/react/index.spec.tsx +1 -1
  129. package/src/types.ts +85 -4
@@ -2527,6 +2527,13 @@
2527
2527
  Param["ClientLogLevel"] = "clientLogLevel";
2528
2528
  Param["OverrideNativeConsole"] = "overrideConsoleLogs";
2529
2529
  Param["enableAskSage"] = "enableAskSage";
2530
+ Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
2531
+ Param["EnableCustomColumnGroups"] = "enableCustomColumnGroups";
2532
+ Param["DateFormatLocale"] = "dateFormatLocale";
2533
+ Param["NumberFormatLocale"] = "numberFormatLocale";
2534
+ Param["CurrencyFormat"] = "currencyFormat";
2535
+ Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
2536
+ Param["IsFullAppEmbed"] = "isFullAppEmbed";
2530
2537
  })(Param || (Param = {}));
2531
2538
  (function (Action) {
2532
2539
  /**
@@ -2635,6 +2642,18 @@
2635
2642
  * ```
2636
2643
  */
2637
2644
  Action["AddFilter"] = "addFilter";
2645
+ /**
2646
+ * The **Add Data Panel Objects** action on the data panel v2.
2647
+ * Allows to show action menu to add different objects (like
2648
+ * formulas, parameters) in data panel v2.
2649
+ *
2650
+ * @example
2651
+ * ```js
2652
+ * disabledActions: [Action.AddDataPanelObjects]
2653
+ * ```
2654
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2655
+ */
2656
+ Action["AddDataPanelObjects"] = "addDataPanelObjects";
2638
2657
  /**
2639
2658
  * Filter configuration options on a Liveboard and Search page.
2640
2659
  * Allows configuring filter options when adding filters to a
@@ -2677,6 +2696,28 @@
2677
2696
  * ```
2678
2697
  */
2679
2698
  Action["AddParameter"] = "addParameter";
2699
+ /**
2700
+ * The **Add Column Set** action on a Answer.
2701
+ * Allows adding column sets to a Answer.
2702
+ *
2703
+ * @example
2704
+ * ```js
2705
+ * disabledActions: [Action.AddColumnSet]
2706
+ * ```
2707
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2708
+ */
2709
+ Action["AddColumnSet"] = "addSimpleCohort";
2710
+ /**
2711
+ * The **Add Query Set** action on a Answer.
2712
+ * Allows adding query sets to a Answer.
2713
+ *
2714
+ * @example
2715
+ * ```js
2716
+ * disabledActions: [Action.AddQuerySet]
2717
+ * ```
2718
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2719
+ */
2720
+ Action["AddQuerySet"] = "addAdvancedCohort";
2680
2721
  /**
2681
2722
  * @hidden
2682
2723
  */
@@ -3108,6 +3149,28 @@
3108
3149
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
3109
3150
  */
3110
3151
  Action["CrossFilter"] = "context-menu-item-cross-filter";
3152
+ /**
3153
+ * The **Sync to Slack** action on Liveboard visualizations.
3154
+ * Allows sending data to third-party apps Slack
3155
+ *
3156
+ * @example
3157
+ * ```js
3158
+ * disabledActions: [Action.SyncToSlack]
3159
+ * ```
3160
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
3161
+ */
3162
+ Action["SyncToSlack"] = "syncToSlack";
3163
+ /**
3164
+ * The **Sync to Teams** action on Liveboard visualizations.
3165
+ * Allows sending data to third-party apps Team
3166
+ *
3167
+ * @example
3168
+ * ```js
3169
+ * disabledActions: [Action.SyncToTeams]
3170
+ * ```
3171
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
3172
+ */
3173
+ Action["SyncToTeams"] = "syncToTeams";
3111
3174
  /**
3112
3175
  * The **Remove** action that appears when cross filters are applied
3113
3176
  * on a Liveboard.
@@ -3410,15 +3473,15 @@
3410
3473
  */
3411
3474
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
3412
3475
  /**
3413
- * The **Copy KPI Link** menu action on KPI watchlist.
3476
+ * The **Organise Favourites** action on Homepage Favourite Module.
3414
3477
  *
3415
3478
  * @example
3416
3479
  * ```js
3417
- * disabledActions: [Action.CopyKpiLink]
3480
+ * disabledActions: [Action.OrganiseFavourites]
3418
3481
  * ```
3419
- * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3482
+ * @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
3420
3483
  */
3421
- Action["CopyKpiLink"] = "copyKpiLink";
3484
+ Action["OrganiseFavourites"] = "organiseFavourites";
3422
3485
  /**
3423
3486
  * Action ID for AI Highlights button
3424
3487
  *
@@ -5731,7 +5794,7 @@
5731
5794
 
5732
5795
  var isEqual_1 = isEqual;
5733
5796
 
5734
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.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":"^46.9.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-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:"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:"45 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};
5797
+ var name="@thoughtspot/visual-embed-sdk";var version="1.28.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --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":"^46.9.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-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:"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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 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};
5735
5798
 
5736
5799
  /**
5737
5800
  * Checks if `value` is `undefined`.
@@ -12503,7 +12566,7 @@
12503
12566
 
12504
12567
  const ERROR_MESSAGE = {
12505
12568
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
12506
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please provide either liveboardId or pinboardId',
12569
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
12507
12570
  TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
12508
12571
  SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
12509
12572
  SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
@@ -13873,6 +13936,15 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13873
13936
  if (this.embedConfig.pendoTrackingKey) {
13874
13937
  queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
13875
13938
  }
13939
+ if (this.embedConfig.numberFormatLocale) {
13940
+ queryParams[Param.NumberFormatLocale] = this.embedConfig.numberFormatLocale;
13941
+ }
13942
+ if (this.embedConfig.dateFormatLocale) {
13943
+ queryParams[Param.DateFormatLocale] = this.embedConfig.dateFormatLocale;
13944
+ }
13945
+ if (this.embedConfig.currencyFormat) {
13946
+ queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
13947
+ }
13876
13948
  const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
13877
13949
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
13878
13950
  this.handleError('You cannot have both hidden actions and visible actions');
@@ -14677,16 +14749,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14677
14749
  * @summary TS Sage embed
14678
14750
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
14679
14751
  */
14680
- const HiddenActionItemByDefaultForSageEmbed = [
14681
- exports.Action.Save,
14682
- exports.Action.Pin,
14683
- exports.Action.EditACopy,
14684
- exports.Action.SaveAsView,
14685
- exports.Action.UpdateTML,
14686
- exports.Action.EditTML,
14687
- exports.Action.AnswerDelete,
14688
- exports.Action.Share,
14689
- ];
14690
14752
  /**
14691
14753
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
14692
14754
  *
@@ -14706,8 +14768,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14706
14768
  * @returns {string} query string
14707
14769
  */
14708
14770
  getEmbedParams() {
14709
- var _a;
14710
- const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
14771
+ const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
14711
14772
  const params = this.getBaseQueryParams();
14712
14773
  params[Param.EmbedApp] = true;
14713
14774
  params[Param.IsSageEmbed] = true;
@@ -14720,12 +14781,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14720
14781
  }
14721
14782
  params[Param.HideSampleQuestions] = !!hideSampleQuestions;
14722
14783
  params[Param.IsProductTour] = !!isProductTour;
14723
- params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
14724
14784
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
14725
- params[Param.HideActions] = [
14726
- ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
14727
- ...HiddenActionItemByDefaultForSageEmbed,
14728
- ];
14729
14785
  return getQueryParamString(params, true);
14730
14786
  }
14731
14787
  /**
@@ -14807,7 +14863,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14807
14863
  }
14808
14864
  getEmbedParams() {
14809
14865
  var _a;
14810
- const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
14866
+ const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, } = this.viewConfig;
14811
14867
  const queryParams = this.getBaseQueryParams();
14812
14868
  queryParams[Param.HideActions] = [
14813
14869
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -14844,6 +14900,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14844
14900
  queryParams[Param.UseLastSelectedDataSource] = false;
14845
14901
  }
14846
14902
  queryParams[Param.searchEmbed] = true;
14903
+ queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
14904
+ queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
14847
14905
  let query = '';
14848
14906
  const queryParamsString = getQueryParamString(queryParams, true);
14849
14907
  if (queryParamsString) {
@@ -14971,7 +15029,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14971
15029
  * embedded Liveboard or visualization.
14972
15030
  */
14973
15031
  getEmbedParams() {
14974
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
15032
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, } = this.viewConfig;
14975
15033
  let params = {};
14976
15034
  params[Param.EmbedApp] = true;
14977
15035
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -14982,6 +15040,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14982
15040
  params[Param.ShowLiveboardTitle] = showLiveboardTitle;
14983
15041
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
14984
15042
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15043
+ params[Param.IsFullAppEmbed] = true;
14985
15044
  params = this.getBaseQueryParams(params);
14986
15045
  if (fullHeight === true) {
14987
15046
  params[Param.fullHeight] = true;
@@ -14998,12 +15057,17 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14998
15057
  if (enableSearchAssist !== undefined) {
14999
15058
  params[Param.EnableSearchAssist] = enableSearchAssist;
15000
15059
  }
15060
+ if (enable2ColumnLayout !== undefined) {
15061
+ params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
15062
+ }
15001
15063
  if (enableAskSage) {
15002
15064
  params[Param.enableAskSage] = enableAskSage;
15003
15065
  }
15004
15066
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15005
15067
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
15006
15068
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
15069
+ params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15070
+ params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15007
15071
  const queryParams = getQueryParamString(params, true);
15008
15072
  return queryParams;
15009
15073
  }
@@ -15152,9 +15216,11 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15152
15216
  responder({ type: exports.EmbedEvent.EmbedIframeCenter, data: obj });
15153
15217
  };
15154
15218
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
15155
- if (!data.data.currentPath.startsWith('/embed/viz/')) {
15156
- this.setIFrameHeight(this.defaultHeight);
15219
+ if (data.data.currentPath.startsWith('/embed/viz/')
15220
+ || data.data.currentPath.startsWith('/embed/insights/viz/')) {
15221
+ return;
15157
15222
  }
15223
+ this.setIFrameHeight(this.defaultHeight);
15158
15224
  };
15159
15225
  if (this.viewConfig.fullHeight === true) {
15160
15226
  this.on(exports.EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
@@ -15170,7 +15236,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15170
15236
  let params = {};
15171
15237
  params[Param.EmbedApp] = true;
15172
15238
  params = this.getBaseQueryParams(params);
15173
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
15239
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
15174
15240
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
15175
15241
  || this.viewConfig.preventPinboardFilterRemoval;
15176
15242
  if (fullHeight === true) {
@@ -15195,6 +15261,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15195
15261
  if (liveboardV2 !== undefined) {
15196
15262
  params[Param.LiveboardV2Enabled] = liveboardV2;
15197
15263
  }
15264
+ if (enable2ColumnLayout !== undefined) {
15265
+ params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
15266
+ }
15198
15267
  if (hideTabPanel) {
15199
15268
  params[Param.HideTabPanel] = hideTabPanel;
15200
15269
  }
@@ -2168,6 +2168,13 @@ var Param;
2168
2168
  Param["ClientLogLevel"] = "clientLogLevel";
2169
2169
  Param["OverrideNativeConsole"] = "overrideConsoleLogs";
2170
2170
  Param["enableAskSage"] = "enableAskSage";
2171
+ Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
2172
+ Param["EnableCustomColumnGroups"] = "enableCustomColumnGroups";
2173
+ Param["DateFormatLocale"] = "dateFormatLocale";
2174
+ Param["NumberFormatLocale"] = "numberFormatLocale";
2175
+ Param["CurrencyFormat"] = "currencyFormat";
2176
+ Param["Enable2ColumnLayout"] = "enable2ColumnLayout";
2177
+ Param["IsFullAppEmbed"] = "isFullAppEmbed";
2171
2178
  })(Param || (Param = {}));
2172
2179
  /**
2173
2180
  * ThoughtSpot application pages include actions and menu commands
@@ -2305,6 +2312,18 @@ var Action;
2305
2312
  * ```
2306
2313
  */
2307
2314
  Action["AddFilter"] = "addFilter";
2315
+ /**
2316
+ * The **Add Data Panel Objects** action on the data panel v2.
2317
+ * Allows to show action menu to add different objects (like
2318
+ * formulas, parameters) in data panel v2.
2319
+ *
2320
+ * @example
2321
+ * ```js
2322
+ * disabledActions: [Action.AddDataPanelObjects]
2323
+ * ```
2324
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2325
+ */
2326
+ Action["AddDataPanelObjects"] = "addDataPanelObjects";
2308
2327
  /**
2309
2328
  * Filter configuration options on a Liveboard and Search page.
2310
2329
  * Allows configuring filter options when adding filters to a
@@ -2347,6 +2366,28 @@ var Action;
2347
2366
  * ```
2348
2367
  */
2349
2368
  Action["AddParameter"] = "addParameter";
2369
+ /**
2370
+ * The **Add Column Set** action on a Answer.
2371
+ * Allows adding column sets to a Answer.
2372
+ *
2373
+ * @example
2374
+ * ```js
2375
+ * disabledActions: [Action.AddColumnSet]
2376
+ * ```
2377
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2378
+ */
2379
+ Action["AddColumnSet"] = "addSimpleCohort";
2380
+ /**
2381
+ * The **Add Query Set** action on a Answer.
2382
+ * Allows adding query sets to a Answer.
2383
+ *
2384
+ * @example
2385
+ * ```js
2386
+ * disabledActions: [Action.AddQuerySet]
2387
+ * ```
2388
+ * @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
2389
+ */
2390
+ Action["AddQuerySet"] = "addAdvancedCohort";
2350
2391
  /**
2351
2392
  * @hidden
2352
2393
  */
@@ -2778,6 +2819,28 @@ var Action;
2778
2819
  * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
2779
2820
  */
2780
2821
  Action["CrossFilter"] = "context-menu-item-cross-filter";
2822
+ /**
2823
+ * The **Sync to Slack** action on Liveboard visualizations.
2824
+ * Allows sending data to third-party apps Slack
2825
+ *
2826
+ * @example
2827
+ * ```js
2828
+ * disabledActions: [Action.SyncToSlack]
2829
+ * ```
2830
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
2831
+ */
2832
+ Action["SyncToSlack"] = "syncToSlack";
2833
+ /**
2834
+ * The **Sync to Teams** action on Liveboard visualizations.
2835
+ * Allows sending data to third-party apps Team
2836
+ *
2837
+ * @example
2838
+ * ```js
2839
+ * disabledActions: [Action.SyncToTeams]
2840
+ * ```
2841
+ * @version @version SDK : 1.32.0 | Thoughtspot: 10.1.0.cl
2842
+ */
2843
+ Action["SyncToTeams"] = "syncToTeams";
2781
2844
  /**
2782
2845
  * The **Remove** action that appears when cross filters are applied
2783
2846
  * on a Liveboard.
@@ -3080,15 +3143,15 @@ var Action;
3080
3143
  */
3081
3144
  Action["RemoveFromWatchlist"] = "removeFromWatchlist";
3082
3145
  /**
3083
- * The **Copy KPI Link** menu action on KPI watchlist.
3146
+ * The **Organise Favourites** action on Homepage Favourite Module.
3084
3147
  *
3085
3148
  * @example
3086
3149
  * ```js
3087
- * disabledActions: [Action.CopyKpiLink]
3150
+ * disabledActions: [Action.OrganiseFavourites]
3088
3151
  * ```
3089
- * @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
3152
+ * @version SDK : 1.32.0 | Thoughtspot: 10.0.0.cl
3090
3153
  */
3091
- Action["CopyKpiLink"] = "copyKpiLink";
3154
+ Action["OrganiseFavourites"] = "organiseFavourites";
3092
3155
  /**
3093
3156
  * Action ID for AI Highlights button
3094
3157
  *
@@ -5820,7 +5883,7 @@ function isEqual(value, other) {
5820
5883
 
5821
5884
  var isEqual_1 = isEqual;
5822
5885
 
5823
- var name="@thoughtspot/visual-embed-sdk";var version="1.28.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":"^46.9.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-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:"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:"45 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};
5886
+ var name="@thoughtspot/visual-embed-sdk";var version="1.28.4";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --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":"^46.9.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-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:"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","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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"45 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};
5824
5887
 
5825
5888
  const EndPoints = {
5826
5889
  AUTH_VERIFICATION: '/callosum/v1/session/info',
@@ -12545,7 +12608,7 @@ const authenticate = async (embedConfig) => {
12545
12608
 
12546
12609
  const ERROR_MESSAGE = {
12547
12610
  INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
12548
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please provide either liveboardId or pinboardId',
12611
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
12549
12612
  TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
12550
12613
  SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
12551
12614
  SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
@@ -14370,6 +14433,15 @@ class TsEmbed {
14370
14433
  if (this.embedConfig.pendoTrackingKey) {
14371
14434
  queryParams[Param.PendoTrackingKey] = this.embedConfig.pendoTrackingKey;
14372
14435
  }
14436
+ if (this.embedConfig.numberFormatLocale) {
14437
+ queryParams[Param.NumberFormatLocale] = this.embedConfig.numberFormatLocale;
14438
+ }
14439
+ if (this.embedConfig.dateFormatLocale) {
14440
+ queryParams[Param.DateFormatLocale] = this.embedConfig.dateFormatLocale;
14441
+ }
14442
+ if (this.embedConfig.currencyFormat) {
14443
+ queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14444
+ }
14373
14445
  const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
14374
14446
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14375
14447
  this.handleError('You cannot have both hidden actions and visible actions');
@@ -15193,7 +15265,7 @@ class AppEmbed extends V1Embed {
15193
15265
  * embedded Liveboard or visualization.
15194
15266
  */
15195
15267
  getEmbedParams() {
15196
- const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
15268
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, } = this.viewConfig;
15197
15269
  let params = {};
15198
15270
  params[Param.EmbedApp] = true;
15199
15271
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15204,6 +15276,7 @@ class AppEmbed extends V1Embed {
15204
15276
  params[Param.ShowLiveboardTitle] = showLiveboardTitle;
15205
15277
  params[Param.ShowLiveboardDescription] = !!showLiveboardDescription;
15206
15278
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
15279
+ params[Param.IsFullAppEmbed] = true;
15207
15280
  params = this.getBaseQueryParams(params);
15208
15281
  if (fullHeight === true) {
15209
15282
  params[Param.fullHeight] = true;
@@ -15220,12 +15293,17 @@ class AppEmbed extends V1Embed {
15220
15293
  if (enableSearchAssist !== undefined) {
15221
15294
  params[Param.EnableSearchAssist] = enableSearchAssist;
15222
15295
  }
15296
+ if (enable2ColumnLayout !== undefined) {
15297
+ params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
15298
+ }
15223
15299
  if (enableAskSage) {
15224
15300
  params[Param.enableAskSage] = enableAskSage;
15225
15301
  }
15226
15302
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15227
15303
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
15228
15304
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
15305
+ params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15306
+ params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15229
15307
  const queryParams = getQueryParamString(params, true);
15230
15308
  return queryParams;
15231
15309
  }
@@ -15374,9 +15452,11 @@ class LiveboardEmbed extends V1Embed {
15374
15452
  responder({ type: EmbedEvent.EmbedIframeCenter, data: obj });
15375
15453
  };
15376
15454
  this.setIframeHeightForNonEmbedLiveboard = (data) => {
15377
- if (!data.data.currentPath.startsWith('/embed/viz/')) {
15378
- this.setIFrameHeight(this.defaultHeight);
15455
+ if (data.data.currentPath.startsWith('/embed/viz/')
15456
+ || data.data.currentPath.startsWith('/embed/insights/viz/')) {
15457
+ return;
15379
15458
  }
15459
+ this.setIFrameHeight(this.defaultHeight);
15380
15460
  };
15381
15461
  if (this.viewConfig.fullHeight === true) {
15382
15462
  this.on(EmbedEvent.RouteChange, this.setIframeHeightForNonEmbedLiveboard);
@@ -15392,7 +15472,7 @@ class LiveboardEmbed extends V1Embed {
15392
15472
  let params = {};
15393
15473
  params[Param.EmbedApp] = true;
15394
15474
  params = this.getBaseQueryParams(params);
15395
- const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, } = this.viewConfig;
15475
+ const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
15396
15476
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
15397
15477
  || this.viewConfig.preventPinboardFilterRemoval;
15398
15478
  if (fullHeight === true) {
@@ -15417,6 +15497,9 @@ class LiveboardEmbed extends V1Embed {
15417
15497
  if (liveboardV2 !== undefined) {
15418
15498
  params[Param.LiveboardV2Enabled] = liveboardV2;
15419
15499
  }
15500
+ if (enable2ColumnLayout !== undefined) {
15501
+ params[Param.Enable2ColumnLayout] = enable2ColumnLayout;
15502
+ }
15420
15503
  if (hideTabPanel) {
15421
15504
  params[Param.HideTabPanel] = hideTabPanel;
15422
15505
  }
@@ -15579,7 +15662,7 @@ class SearchEmbed extends TsEmbed {
15579
15662
  }
15580
15663
  getEmbedParams() {
15581
15664
  var _a;
15582
- const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, } = this.viewConfig;
15665
+ const { hideResults, expandAllDataSource, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, } = this.viewConfig;
15583
15666
  const queryParams = this.getBaseQueryParams();
15584
15667
  queryParams[Param.HideActions] = [
15585
15668
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -15616,6 +15699,8 @@ class SearchEmbed extends TsEmbed {
15616
15699
  queryParams[Param.UseLastSelectedDataSource] = false;
15617
15700
  }
15618
15701
  queryParams[Param.searchEmbed] = true;
15702
+ queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15703
+ queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15619
15704
  let query = '';
15620
15705
  const queryParamsString = getQueryParamString(queryParams, true);
15621
15706
  if (queryParamsString) {
@@ -15729,16 +15814,6 @@ class SearchBarEmbed extends TsEmbed {
15729
15814
  * @summary TS Sage embed
15730
15815
  * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
15731
15816
  */
15732
- const HiddenActionItemByDefaultForSageEmbed = [
15733
- Action.Save,
15734
- Action.Pin,
15735
- Action.EditACopy,
15736
- Action.SaveAsView,
15737
- Action.UpdateTML,
15738
- Action.EditTML,
15739
- Action.AnswerDelete,
15740
- Action.Share,
15741
- ];
15742
15817
  /**
15743
15818
  * Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
15744
15819
  *
@@ -15758,8 +15833,7 @@ class SageEmbed extends V1Embed {
15758
15833
  * @returns {string} query string
15759
15834
  */
15760
15835
  getEmbedParams() {
15761
- var _a;
15762
- const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSearchBarTitle, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
15836
+ const { disableWorksheetChange, hideWorksheetSelector, showObjectSuggestions, hideSampleQuestions, isProductTour, hideSageAnswerHeader, hideAutocompleteSuggestions, } = this.viewConfig;
15763
15837
  const params = this.getBaseQueryParams();
15764
15838
  params[Param.EmbedApp] = true;
15765
15839
  params[Param.IsSageEmbed] = true;
@@ -15772,12 +15846,7 @@ class SageEmbed extends V1Embed {
15772
15846
  }
15773
15847
  params[Param.HideSampleQuestions] = !!hideSampleQuestions;
15774
15848
  params[Param.IsProductTour] = !!isProductTour;
15775
- params[Param.HideSearchBarTitle] = !!hideSearchBarTitle;
15776
15849
  params[Param.HideSageAnswerHeader] = !!hideSageAnswerHeader;
15777
- params[Param.HideActions] = [
15778
- ...((_a = params[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
15779
- ...HiddenActionItemByDefaultForSageEmbed,
15780
- ];
15781
15850
  return getQueryParamString(params, true);
15782
15851
  }
15783
15852
  /**