@thoughtspot/visual-embed-sdk 1.36.9 → 1.37.0-temp-nav

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 (115) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +2 -1
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +1 -0
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/embed/app.d.ts +76 -0
  7. package/cjs/src/embed/app.d.ts.map +1 -1
  8. package/cjs/src/embed/app.js +18 -1
  9. package/cjs/src/embed/app.js.map +1 -1
  10. package/cjs/src/embed/app.spec.js +50 -0
  11. package/cjs/src/embed/app.spec.js.map +1 -1
  12. package/cjs/src/embed/liveboard.d.ts +2 -2
  13. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  14. package/cjs/src/embed/ts-embed.js +4 -1
  15. package/cjs/src/embed/ts-embed.js.map +1 -1
  16. package/cjs/src/index.d.ts.map +1 -1
  17. package/cjs/src/index.js +1 -0
  18. package/cjs/src/index.js.map +1 -1
  19. package/cjs/src/pages/embed-test.page.d.ts +8 -0
  20. package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
  21. package/cjs/src/pages/embed-test.page.js +20 -0
  22. package/cjs/src/pages/embed-test.page.js.map +1 -0
  23. package/cjs/src/pages/home.page.d.ts +6 -0
  24. package/cjs/src/pages/home.page.d.ts.map +1 -0
  25. package/cjs/src/pages/home.page.js +12 -0
  26. package/cjs/src/pages/home.page.js.map +1 -0
  27. package/cjs/src/pages/login.page.d.ts +15 -0
  28. package/cjs/src/pages/login.page.d.ts.map +1 -0
  29. package/cjs/src/pages/login.page.js +22 -0
  30. package/cjs/src/pages/login.page.js.map +1 -0
  31. package/cjs/src/react/index.d.ts.map +1 -1
  32. package/cjs/src/react/index.js +1 -0
  33. package/cjs/src/react/index.js.map +1 -1
  34. package/cjs/src/tests/auth.test.d.ts +1 -0
  35. package/cjs/src/tests/auth.test.d.ts.map +1 -0
  36. package/cjs/src/tests/auth.test.js +1 -0
  37. package/cjs/src/tests/auth.test.js.map +1 -0
  38. package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
  39. package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
  40. package/cjs/src/tests/e2e/auth.spec.js +54 -0
  41. package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
  42. package/cjs/src/types.d.ts +56 -13
  43. package/cjs/src/types.d.ts.map +1 -1
  44. package/cjs/src/types.js +39 -9
  45. package/cjs/src/types.js.map +1 -1
  46. package/cjs/src/utils/graphql/answerService/answerService.d.ts +35 -15
  47. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  48. package/cjs/src/utils/graphql/answerService/answerService.js +35 -15
  49. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  50. package/cjs/src/utils/processData.js +6 -4
  51. package/cjs/src/utils/processData.js.map +1 -1
  52. package/dist/index-Cj4BVGHL.js +7371 -0
  53. package/dist/{index-Dg18PU5Z.js → index-Fhk1V_Gw.js} +1 -0
  54. package/dist/src/auth.d.ts +2 -1
  55. package/dist/src/auth.d.ts.map +1 -1
  56. package/dist/src/embed/app.d.ts +76 -0
  57. package/dist/src/embed/app.d.ts.map +1 -1
  58. package/dist/src/embed/liveboard.d.ts +2 -2
  59. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  60. package/dist/src/index.d.ts.map +1 -1
  61. package/dist/src/react/index.d.ts.map +1 -1
  62. package/dist/src/types.d.ts +56 -13
  63. package/dist/src/types.d.ts.map +1 -1
  64. package/dist/src/utils/graphql/answerService/answerService.d.ts +35 -15
  65. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  66. package/dist/tsembed-react.es.js +107 -33
  67. package/dist/tsembed-react.js +106 -32
  68. package/dist/tsembed.es.js +107 -33
  69. package/dist/tsembed.js +106 -32
  70. package/dist/visual-embed-sdk-react-full.d.ts +171 -31
  71. package/dist/visual-embed-sdk-react.d.ts +171 -31
  72. package/dist/visual-embed-sdk.d.ts +171 -31
  73. package/lib/package.json +1 -1
  74. package/lib/src/auth.d.ts +2 -1
  75. package/lib/src/auth.d.ts.map +1 -1
  76. package/lib/src/auth.js +1 -0
  77. package/lib/src/auth.js.map +1 -1
  78. package/lib/src/embed/app.d.ts +76 -0
  79. package/lib/src/embed/app.d.ts.map +1 -1
  80. package/lib/src/embed/app.js +18 -1
  81. package/lib/src/embed/app.js.map +1 -1
  82. package/lib/src/embed/app.spec.js +50 -0
  83. package/lib/src/embed/app.spec.js.map +1 -1
  84. package/lib/src/embed/liveboard.d.ts +2 -2
  85. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  86. package/lib/src/embed/ts-embed.js +4 -1
  87. package/lib/src/embed/ts-embed.js.map +1 -1
  88. package/lib/src/index.d.ts.map +1 -1
  89. package/lib/src/index.js +1 -0
  90. package/lib/src/index.js.map +1 -1
  91. package/lib/src/react/index.d.ts.map +1 -1
  92. package/lib/src/react/index.js +1 -0
  93. package/lib/src/react/index.js.map +1 -1
  94. package/lib/src/types.d.ts +56 -13
  95. package/lib/src/types.d.ts.map +1 -1
  96. package/lib/src/types.js +39 -9
  97. package/lib/src/types.js.map +1 -1
  98. package/lib/src/utils/graphql/answerService/answerService.d.ts +35 -15
  99. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  100. package/lib/src/utils/graphql/answerService/answerService.js +35 -15
  101. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  102. package/lib/src/utils/processData.js +6 -4
  103. package/lib/src/utils/processData.js.map +1 -1
  104. package/lib/src/visual-embed-sdk.d.ts +171 -31
  105. package/package.json +1 -1
  106. package/src/auth.ts +2 -1
  107. package/src/embed/app.spec.ts +70 -0
  108. package/src/embed/app.ts +104 -0
  109. package/src/embed/liveboard.ts +2 -2
  110. package/src/embed/ts-embed.ts +4 -0
  111. package/src/index.ts +2 -0
  112. package/src/react/index.tsx +2 -0
  113. package/src/types.ts +55 -12
  114. package/src/utils/graphql/answerService/answerService.ts +35 -15
  115. package/src/utils/processData.ts +6 -6
package/dist/tsembed.js CHANGED
@@ -1,4 +1,5 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.36.9 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.37.0-temp-nav */
2
+ 'use client';
2
3
  (function (global, factory) {
3
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
5
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -580,6 +581,18 @@
580
581
  * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
581
582
  */
582
583
  HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
584
+ /**
585
+ * Create new options in the insights left navigation,
586
+ * available when new navigation V3 is enabled.
587
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
588
+ */
589
+ HomeLeftNavItem["Create"] = "create";
590
+ /**
591
+ * Spotter option in the insights left navigation,
592
+ * available when new navigation V3 is enabled.
593
+ * @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
594
+ */
595
+ HomeLeftNavItem["Spotter"] = "spotter";
583
596
  })(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
584
597
  /**
585
598
  * A map of the supported runtime filter operations
@@ -685,8 +698,8 @@
685
698
  })(exports.HomepageModule || (exports.HomepageModule = {}));
686
699
  /**
687
700
  * List page columns that can be hidden.
688
- * **Note**: This option is applicable only in full app embedding.
689
- * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
701
+ * **Note**: This option is applicable to full app embedding only.
702
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
690
703
  */
691
704
  // eslint-disable-next-line no-shadow
692
705
  exports.ListPageColumns = void 0;
@@ -1739,7 +1752,7 @@
1739
1752
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1740
1753
  * })
1741
1754
  * ```
1742
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
1755
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
1743
1756
  */
1744
1757
  EmbedEvent["TableVizRendered"] = "TableVizRendered";
1745
1758
  /**
@@ -1752,12 +1765,12 @@
1752
1765
  * console.log('payload', payload);
1753
1766
  * })
1754
1767
  *```
1755
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1768
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1756
1769
  */
1757
1770
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1758
1771
  /**
1759
1772
  * Emitted when a user creates a Model.
1760
- * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1773
+ * @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
1761
1774
  */
1762
1775
  EmbedEvent["CreateModel"] = "createModel";
1763
1776
  })(exports.EmbedEvent || (exports.EmbedEvent = {}));
@@ -2201,7 +2214,7 @@
2201
2214
  * ```js
2202
2215
  * liveboardEmbed.trigger(HostEvent.Remove)
2203
2216
  * ```
2204
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2217
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2205
2218
  */
2206
2219
  HostEvent["Remove"] = "delete";
2207
2220
  /**
@@ -2662,8 +2675,17 @@
2662
2675
  /**
2663
2676
  * Get the Answer session for a Search or
2664
2677
  * Liveboard visualization.
2678
+ *
2679
+ * Note: This event is not typically used directly. Instead, use the
2680
+ * `getAnswerService()` method on the embed instance to get an AnswerService
2681
+ * object that provides a more convenient interface for working with answers.
2682
+ *
2665
2683
  * @example
2666
2684
  * ```js
2685
+ * // Preferred way to get an AnswerService
2686
+ * const service = await embed.getAnswerService();
2687
+ *
2688
+ * // Alternative direct usage (not recommended)
2667
2689
  * const {session} = await embed.trigger(
2668
2690
  * HostEvent.GetAnswerSession, {
2669
2691
  * vizId: '123', // For Liveboard Visualization.
@@ -2671,6 +2693,10 @@
2671
2693
  * ```
2672
2694
  * @example
2673
2695
  * ```js
2696
+ * // Preferred way to get an AnswerService
2697
+ * const service = await embed.getAnswerService();
2698
+ *
2699
+ * // Alternative direct usage (not recommended)
2674
2700
  * const {session} = await embed.trigger( HostEvent.GetAnswerSession )
2675
2701
  * ```
2676
2702
  * @version SDK: 1.26.0 | ThoughtSpot: 9.10.0.cl, 10.1.0.sw
@@ -2796,7 +2822,7 @@
2796
2822
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2797
2823
  * })
2798
2824
  * ```
2799
- * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2825
+ * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
2800
2826
  */
2801
2827
  HostEvent["TransformTableVizData"] = "TransformTableVizData";
2802
2828
  })(exports.HostEvent || (exports.HostEvent = {}));
@@ -2879,6 +2905,10 @@
2879
2905
  Param["ShowInsertToSlide"] = "insertInToSlide";
2880
2906
  Param["PrimaryNavHidden"] = "primaryNavHidden";
2881
2907
  Param["HideProfleAndHelp"] = "profileAndHelpInNavBarHidden";
2908
+ Param["NavigationVersion"] = "navigationVersion";
2909
+ Param["HideHamburger"] = "hideHamburger";
2910
+ Param["HideObjectSearch"] = "hideObjectSearch";
2911
+ Param["HideNotification"] = "hideNotification";
2882
2912
  Param["HideApplicationSwitcher"] = "applicationSwitcherHidden";
2883
2913
  Param["HideOrgSwitcher"] = "orgSwitcherHidden";
2884
2914
  Param["IsSageEmbed"] = "isSageEmbed";
@@ -2935,6 +2965,7 @@
2935
2965
  Param["preAuthCache"] = "preAuthCache";
2936
2966
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2937
2967
  Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
2968
+ Param["PrimaryAction"] = "primaryAction";
2938
2969
  })(Param || (Param = {}));
2939
2970
  /**
2940
2971
  * ThoughtSpot application pages include actions and menu commands
@@ -4143,7 +4174,7 @@
4143
4174
  * ```js
4144
4175
  * hiddenAction: [Action.ColumnRename]
4145
4176
  * ```
4146
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4177
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4147
4178
  */
4148
4179
  Action["ColumnRename"] = "columnRename";
4149
4180
  /**
@@ -4153,7 +4184,7 @@
4153
4184
  * ```js
4154
4185
  * hiddenAction: [Action.CoverAndFilterOptionInPDF]
4155
4186
  * ```
4156
- * @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
4187
+ * @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
4157
4188
  */
4158
4189
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4159
4190
  })(exports.Action || (exports.Action = {}));
@@ -7172,29 +7203,49 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
7172
7203
  OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
7173
7204
  })(OperationType || (OperationType = {}));
7174
7205
  /**
7175
- * Class representing the answer service provided with the
7176
- * custom action payload. This service could be used to run
7177
- * graphql queries in the context of the answer on which the
7178
- * custom action was triggered.
7206
+ * AnswerService provides a simple way to work with ThoughtSpot Answers.
7207
+ *
7208
+ * This service allows you to interact with ThoughtSpot Answers programmatically,
7209
+ * making it easy to customize visualizations, filter data, and extract insights
7210
+ * directly from your application.
7211
+ *
7212
+ * You can use this service to:
7213
+ * - Add or remove columns from Answers (`addColumns`, `removeColumns`, `addColumnsByName`)
7214
+ * - Apply filters to Answers (`addFilter`)
7215
+ * - Get data from Answers in different formats (JSON, CSV, PNG) (`fetchData`, `fetchCSVBlob`, `fetchPNGBlob`)
7216
+ * - Get data for specific points in visualizations (`getUnderlyingDataForPoint`)
7217
+ * - Run custom queries (`executeQuery`)
7218
+ * - Add visualizations to liveboards (`addDisplayedVizToLiveboard`)
7219
+ *
7179
7220
  * @example
7180
7221
  * ```js
7181
- * embed.on(EmbedEvent.CustomAction, e => {
7182
- * const underlying = await e.answerService.getUnderlyingDataForPoint([
7183
- * 'col name 1'
7184
- * ]);
7185
- * const data = await underlying.fetchData(0, 100);
7186
- * })
7222
+ * // Get the answer service
7223
+ * embed.on(EmbedEvent.Data, async (e) => {
7224
+ * const service = await embed.getAnswerService();
7225
+ *
7226
+ * // Add columns to the answer
7227
+ * await service.addColumnsByName(["Sales", "Region"]);
7228
+ *
7229
+ * // Get the data
7230
+ * const data = await service.fetchData();
7231
+ * console.log(data);
7232
+ * });
7187
7233
  * ```
7234
+ *
7188
7235
  * @example
7189
7236
  * ```js
7190
- * embed.on(EmbedEvent.Data, async (e) => {
7191
- * const service = await embed.getAnswerService();
7192
- * await service.addColumns([
7193
- * "<column guid>"
7237
+ * // Get data for a point in a visualization
7238
+ * embed.on(EmbedEvent.CustomAction, async (e) => {
7239
+ * const underlying = await e.answerService.getUnderlyingDataForPoint([
7240
+ * 'Product Name',
7241
+ * 'Sales Amount'
7194
7242
  * ]);
7195
- * console.log(await service.fetchData());
7243
+ *
7244
+ * const data = await underlying.fetchData(0, 100);
7245
+ * console.log(data);
7196
7246
  * });
7197
7247
  * ```
7248
+ *
7198
7249
  * @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
7199
7250
  * @group Events
7200
7251
  */
@@ -14470,6 +14521,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
14470
14521
  AuthFailureType["EXPIRY"] = "EXPIRY";
14471
14522
  AuthFailureType["OTHER"] = "OTHER";
14472
14523
  AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
14524
+ AuthFailureType["UNAUTHENTICATED_FAILURE"] = "UNAUTHENTICATED_FAILURE";
14473
14525
  })(exports.AuthFailureType || (exports.AuthFailureType = {}));
14474
14526
  /**
14475
14527
  * Enum for auth status emitted by the emitter returned from {@link init}.
@@ -15249,15 +15301,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15249
15301
  * @param containerEl
15250
15302
  */
15251
15303
  function processAuthFailure(e, containerEl) {
15304
+ var _a;
15252
15305
  const { loginFailedMessage, authType, disableLoginFailurePage, autoLogin, } = getEmbedConfig();
15253
- if (autoLogin
15254
- && (authType === exports.AuthType.TrustedAuthToken
15255
- || authType === exports.AuthType.TrustedAuthTokenCookieless)) {
15306
+ const isEmbeddedSSO = authType === exports.AuthType.EmbeddedSSO;
15307
+ const isTrustedAuth = authType === exports.AuthType.TrustedAuthToken || authType === exports.AuthType.TrustedAuthTokenCookieless;
15308
+ const isEmbeddedSSOInfoFailure = isEmbeddedSSO && ((_a = e === null || e === void 0 ? void 0 : e.data) === null || _a === void 0 ? void 0 : _a.type) === exports.AuthFailureType.UNAUTHENTICATED_FAILURE;
15309
+ if (autoLogin && isTrustedAuth) {
15256
15310
  // eslint-disable-next-line no-param-reassign
15257
15311
  containerEl.innerHTML = loginFailedMessage;
15258
15312
  notifyAuthFailure(exports.AuthFailureType.IDLE_SESSION_TIMEOUT);
15259
15313
  }
15260
- else if (authType !== exports.AuthType.None && !disableLoginFailurePage) {
15314
+ else if (authType !== exports.AuthType.None && !disableLoginFailurePage && !isEmbeddedSSOInfoFailure) {
15261
15315
  // eslint-disable-next-line no-param-reassign
15262
15316
  containerEl.innerHTML = loginFailedMessage;
15263
15317
  notifyAuthFailure(exports.AuthFailureType.OTHER);
@@ -15302,7 +15356,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15302
15356
  return e;
15303
15357
  }
15304
15358
 
15305
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15359
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.0-temp-nav";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^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","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15306
15360
 
15307
15361
  /**
15308
15362
  * Reloads the ThoughtSpot iframe.
@@ -15839,7 +15893,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15839
15893
  if (this.embedConfig.currencyFormat) {
15840
15894
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15841
15895
  }
15842
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
15896
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
15843
15897
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15844
15898
  const additionalFlags = {
15845
15899
  ...additionalFlagsFromInit,
@@ -15853,6 +15907,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15853
15907
  this.handleError('You cannot have both hidden Tabs and visible Tabs');
15854
15908
  return queryParams;
15855
15909
  }
15910
+ if (primaryAction) {
15911
+ queryParams[Param.PrimaryAction] = primaryAction;
15912
+ }
15856
15913
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
15857
15914
  queryParams[Param.DisableActions] = disabledActions;
15858
15915
  }
@@ -16745,7 +16802,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16745
16802
  * embedded Liveboard or visualization.
16746
16803
  */
16747
16804
  getEmbedParams() {
16748
- 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, isOnBeforeGetVizDataInterceptEnabled = false,
16805
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, modularHomeExperienceV3 = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
16749
16806
  /* eslint-disable-next-line max-len */
16750
16807
  dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, } = this.viewConfig;
16751
16808
  let params = {};
@@ -16764,6 +16821,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16764
16821
  params[Param.HideIrrelevantFiltersInTab] = hideIrrelevantChipsInLiveboardTabs;
16765
16822
  params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
16766
16823
  params = this.getBaseQueryParams(params);
16824
+ if (hideObjectSearch) {
16825
+ params[Param.HideObjectSearch] = !!hideObjectSearch;
16826
+ }
16827
+ if (hideHamburger) {
16828
+ params[Param.HideHamburger] = !!hideHamburger;
16829
+ }
16830
+ if (hideNotification) {
16831
+ params[Param.HideNotification] = !!hideNotification;
16832
+ }
16767
16833
  if (fullHeight === true) {
16768
16834
  params[Param.fullHeight] = true;
16769
16835
  }
@@ -16811,6 +16877,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
16811
16877
  /* eslint-disable-next-line max-len */
16812
16878
  params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
16813
16879
  }
16880
+ if (modularHomeExperienceV3) {
16881
+ if (modularHomeExperienceV3.enabled) {
16882
+ params[Param.NavigationVersion] = 'v3';
16883
+ }
16884
+ if (modularHomeExperienceV3.homePage === 'v2') {
16885
+ params[Param.ModularHomeExperienceEnabled] = true;
16886
+ }
16887
+ }
16814
16888
  const queryParams = getQueryParamString(params, true);
16815
16889
  return queryParams;
16816
16890
  }