@thoughtspot/visual-embed-sdk 1.32.0 → 1.33.0-alpha.2

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 (143) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts.map +1 -1
  3. package/cjs/src/auth.js +6 -5
  4. package/cjs/src/auth.js.map +1 -1
  5. package/cjs/src/authToken.d.ts.map +1 -1
  6. package/cjs/src/authToken.js +5 -7
  7. package/cjs/src/authToken.js.map +1 -1
  8. package/cjs/src/embed/app.d.ts +12 -1
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +13 -4
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/app.spec.js +30 -0
  13. package/cjs/src/embed/app.spec.js.map +1 -1
  14. package/cjs/src/embed/base.d.ts.map +1 -1
  15. package/cjs/src/embed/base.js +2 -0
  16. package/cjs/src/embed/base.js.map +1 -1
  17. package/cjs/src/embed/search.d.ts +15 -1
  18. package/cjs/src/embed/search.d.ts.map +1 -1
  19. package/cjs/src/embed/search.js +6 -4
  20. package/cjs/src/embed/search.js.map +1 -1
  21. package/cjs/src/embed/search.spec.js +9 -9
  22. package/cjs/src/embed/search.spec.js.map +1 -1
  23. package/cjs/src/embed/ts-embed.d.ts +1 -1
  24. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  25. package/cjs/src/embed/ts-embed.js +10 -6
  26. package/cjs/src/embed/ts-embed.js.map +1 -1
  27. package/cjs/src/errors.d.ts +11 -0
  28. package/cjs/src/errors.d.ts.map +1 -1
  29. package/cjs/src/errors.js +11 -0
  30. package/cjs/src/errors.js.map +1 -1
  31. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  32. package/cjs/src/mixpanel-service.js +2 -1
  33. package/cjs/src/mixpanel-service.js.map +1 -1
  34. package/cjs/src/react/index.spec.js +1 -1
  35. package/cjs/src/react/index.spec.js.map +1 -1
  36. package/cjs/src/types.d.ts +155 -6
  37. package/cjs/src/types.d.ts.map +1 -1
  38. package/cjs/src/types.js +128 -3
  39. package/cjs/src/types.js.map +1 -1
  40. package/cjs/src/utils/processData.d.ts.map +1 -1
  41. package/cjs/src/utils/processData.js +2 -1
  42. package/cjs/src/utils/processData.js.map +1 -1
  43. package/cjs/src/utils/reporting.d.ts +16 -0
  44. package/cjs/src/utils/reporting.d.ts.map +1 -0
  45. package/cjs/src/utils/reporting.js +68 -0
  46. package/cjs/src/utils/reporting.js.map +1 -0
  47. package/cjs/src/utils/reporting.spec.d.ts +2 -0
  48. package/cjs/src/utils/reporting.spec.d.ts.map +1 -0
  49. package/cjs/src/utils/reporting.spec.js +76 -0
  50. package/cjs/src/utils/reporting.spec.js.map +1 -0
  51. package/dist/src/auth.d.ts.map +1 -1
  52. package/dist/src/authToken.d.ts.map +1 -1
  53. package/dist/src/embed/app.d.ts +12 -1
  54. package/dist/src/embed/app.d.ts.map +1 -1
  55. package/dist/src/embed/base.d.ts.map +1 -1
  56. package/dist/src/embed/search.d.ts +15 -1
  57. package/dist/src/embed/search.d.ts.map +1 -1
  58. package/dist/src/embed/ts-embed.d.ts +1 -1
  59. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  60. package/dist/src/errors.d.ts +11 -0
  61. package/dist/src/errors.d.ts.map +1 -1
  62. package/dist/src/mixpanel-service.d.ts.map +1 -1
  63. package/dist/src/types.d.ts +155 -6
  64. package/dist/src/types.d.ts.map +1 -1
  65. package/dist/src/utils/processData.d.ts.map +1 -1
  66. package/dist/src/utils/reporting.d.ts +16 -0
  67. package/dist/src/utils/reporting.d.ts.map +1 -0
  68. package/dist/src/utils/reporting.spec.d.ts +2 -0
  69. package/dist/src/utils/reporting.spec.d.ts.map +1 -0
  70. package/dist/tsembed-react.es.js +192 -38
  71. package/dist/tsembed-react.js +192 -38
  72. package/dist/tsembed.es.js +239 -39
  73. package/dist/tsembed.js +239 -39
  74. package/dist/visual-embed-sdk-react-full.d.ts +183 -9
  75. package/dist/visual-embed-sdk-react.d.ts +183 -9
  76. package/dist/visual-embed-sdk.d.ts +183 -9
  77. package/lib/package.json +1 -1
  78. package/lib/src/auth.d.ts.map +1 -1
  79. package/lib/src/auth.js +6 -5
  80. package/lib/src/auth.js.map +1 -1
  81. package/lib/src/authToken.d.ts.map +1 -1
  82. package/lib/src/authToken.js +5 -7
  83. package/lib/src/authToken.js.map +1 -1
  84. package/lib/src/embed/app.d.ts +12 -1
  85. package/lib/src/embed/app.d.ts.map +1 -1
  86. package/lib/src/embed/app.js +12 -3
  87. package/lib/src/embed/app.js.map +1 -1
  88. package/lib/src/embed/app.spec.js +31 -1
  89. package/lib/src/embed/app.spec.js.map +1 -1
  90. package/lib/src/embed/base.d.ts.map +1 -1
  91. package/lib/src/embed/base.js +2 -0
  92. package/lib/src/embed/base.js.map +1 -1
  93. package/lib/src/embed/search.d.ts +15 -1
  94. package/lib/src/embed/search.d.ts.map +1 -1
  95. package/lib/src/embed/search.js +6 -4
  96. package/lib/src/embed/search.js.map +1 -1
  97. package/lib/src/embed/search.spec.js +9 -9
  98. package/lib/src/embed/search.spec.js.map +1 -1
  99. package/lib/src/embed/ts-embed.d.ts +1 -1
  100. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  101. package/lib/src/embed/ts-embed.js +10 -6
  102. package/lib/src/embed/ts-embed.js.map +1 -1
  103. package/lib/src/errors.d.ts +11 -0
  104. package/lib/src/errors.d.ts.map +1 -1
  105. package/lib/src/errors.js +11 -0
  106. package/lib/src/errors.js.map +1 -1
  107. package/lib/src/mixpanel-service.d.ts.map +1 -1
  108. package/lib/src/mixpanel-service.js +2 -1
  109. package/lib/src/mixpanel-service.js.map +1 -1
  110. package/lib/src/react/index.spec.js +1 -1
  111. package/lib/src/react/index.spec.js.map +1 -1
  112. package/lib/src/types.d.ts +155 -6
  113. package/lib/src/types.d.ts.map +1 -1
  114. package/lib/src/types.js +128 -3
  115. package/lib/src/types.js.map +1 -1
  116. package/lib/src/utils/processData.d.ts.map +1 -1
  117. package/lib/src/utils/processData.js +2 -1
  118. package/lib/src/utils/processData.js.map +1 -1
  119. package/lib/src/utils/reporting.d.ts +16 -0
  120. package/lib/src/utils/reporting.d.ts.map +1 -0
  121. package/lib/src/utils/reporting.js +62 -0
  122. package/lib/src/utils/reporting.js.map +1 -0
  123. package/lib/src/utils/reporting.spec.d.ts +2 -0
  124. package/lib/src/utils/reporting.spec.d.ts.map +1 -0
  125. package/lib/src/utils/reporting.spec.js +74 -0
  126. package/lib/src/utils/reporting.spec.js.map +1 -0
  127. package/lib/src/visual-embed-sdk.d.ts +183 -9
  128. package/package.json +1 -1
  129. package/src/auth.ts +6 -5
  130. package/src/authToken.ts +5 -9
  131. package/src/embed/app.spec.ts +46 -0
  132. package/src/embed/app.ts +20 -3
  133. package/src/embed/base.ts +3 -1
  134. package/src/embed/search.spec.ts +9 -9
  135. package/src/embed/search.ts +21 -4
  136. package/src/embed/ts-embed.ts +13 -6
  137. package/src/errors.ts +11 -0
  138. package/src/mixpanel-service.ts +2 -1
  139. package/src/react/index.spec.tsx +1 -1
  140. package/src/types.ts +168 -13
  141. package/src/utils/processData.ts +2 -3
  142. package/src/utils/reporting.spec.ts +91 -0
  143. package/src/utils/reporting.ts +71 -0
@@ -623,6 +623,10 @@
623
623
  * @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
624
624
  */
625
625
  HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
626
+ /**
627
+ * @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
628
+ */
629
+ HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
626
630
  })(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
627
631
  (function (RuntimeFilterOp) {
628
632
  /**
@@ -1955,13 +1959,15 @@
1955
1959
  *
1956
1960
  * @example
1957
1961
  * ```js
1958
- * appEmbed.trigger(HostEvent.CreateMonitor)
1962
+ * searchEmbed.trigger(HostEvent.CreateMonitor)
1959
1963
  * ```
1960
1964
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1961
1965
  */
1962
1966
  HostEvent["CreateMonitor"] = "createMonitor";
1963
1967
  /**
1964
- * Trigger the **Manage alerts** action on a visualization
1968
+ * Trigger the **Manage alerts** action on a KPI chart
1969
+ * in a visualization or saved Answer.
1970
+ *
1965
1971
  * @param - an object with `vizId` as a key
1966
1972
  * @example
1967
1973
  * ```js
@@ -1969,6 +1975,16 @@
1969
1975
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1970
1976
  * })
1971
1977
  * ```
1978
+ *
1979
+ * @example
1980
+ * ```js
1981
+ * searchEmbed.trigger(HostEvent.ManageMonitor)
1982
+ * ```
1983
+ *
1984
+ * @example
1985
+ * ```js
1986
+ * vizEmbed.trigger(HostEvent.ManageMonitor)
1987
+ * ```
1972
1988
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1973
1989
  */
1974
1990
  HostEvent["ManageMonitor"] = "manageMonitor";
@@ -2546,6 +2562,8 @@
2546
2562
  Param["IsFullAppEmbed"] = "isFullAppEmbed";
2547
2563
  Param["IsOnBeforeGetVizDataInterceptEnabled"] = "isOnBeforeGetVizDataInterceptEnabled";
2548
2564
  Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
2565
+ Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
2566
+ Param["HomePageSearchBarMode"] = "homePageSearchBarMode";
2549
2567
  })(Param || (Param = {}));
2550
2568
  (function (Action) {
2551
2569
  /**
@@ -2668,6 +2686,7 @@
2668
2686
  */
2669
2687
  Action["ConfigureFilter"] = "configureFilter";
2670
2688
  Action["CollapseDataSources"] = "collapseDataSources";
2689
+ Action["CollapseDataPanel"] = "collapseDataPanel";
2671
2690
  /**
2672
2691
  * The **Choose sources** button on Search page.
2673
2692
  * Allows selecting data sources for search queries.
@@ -3063,12 +3082,15 @@
3063
3082
  * The Create alert action on KPI charts.
3064
3083
  * @example
3065
3084
  * ```js
3066
- * disabledActions: [Action.CreateMonitor ]
3085
+ * disabledActions: [Action.CreateMonitor]
3067
3086
  * ```
3068
3087
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3069
3088
  */
3070
3089
  Action["CreateMonitor"] = "createMonitor";
3071
3090
  /**
3091
+ * @deprecated
3092
+ * Reports errors
3093
+ *
3072
3094
  * @example
3073
3095
  * ```js
3074
3096
  * disabledActions: [Action.ReportError]
@@ -3293,35 +3315,84 @@
3293
3315
  */
3294
3316
  Action["RenameModalTitleDescription"] = "renameModalTitleDescription";
3295
3317
  /**
3318
+ *
3319
+ * @example
3320
+ * ```js
3321
+ * disabledActions: [Action.RequestVerification]
3322
+ * ```
3296
3323
  *
3297
3324
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3298
3325
  */
3299
3326
  Action["RequestVerification"] = "requestVerification";
3300
3327
  /**
3328
+ *
3329
+ * Allows users to mark a Liveboard as verified.
3330
+ *
3331
+ * @example
3332
+ * ```js
3333
+ * disabledActions: [Action.MarkAsVerified]
3334
+ * ```
3301
3335
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3302
3336
  */
3303
3337
  Action["MarkAsVerified"] = "markAsVerified";
3304
3338
  /**
3339
+ * The **Add Tab** action on a Liveboard.
3340
+ * Allows adding a new tab to a Liveboard view.
3341
+ *
3342
+ * @example
3343
+ * ```js
3344
+ * disabledActions: [Action.AddTab]
3345
+ * ```
3305
3346
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3306
3347
  */
3307
3348
  Action["AddTab"] = "addTab";
3308
3349
  /**
3350
+ *
3351
+ * Initiates contextual change analysis on KPI charts.
3352
+ *
3353
+ * @example
3354
+ * ```js
3355
+ * disabledActions: [Action.EnableContextualChangeAnalysis]
3356
+ * ```
3309
3357
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3310
3358
  */
3311
3359
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
3312
3360
  /**
3361
+ *
3362
+ * @example
3363
+ * ```js
3364
+ * disabledActions: [Action.ShowSageQuery]
3365
+ * ```
3366
+ *
3313
3367
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3314
3368
  */
3315
3369
  Action["ShowSageQuery"] = "showSageQuery";
3316
3370
  /**
3371
+ *
3372
+ * @example
3373
+ * ```js
3374
+ * disabledActions: [Action.EditSageAnswer]
3375
+ * ```
3317
3376
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3318
3377
  */
3319
3378
  Action["EditSageAnswer"] = "editSageAnswer";
3320
3379
  /**
3380
+ *
3381
+ * This action allows users to send feedback on AI-generated Answers.
3382
+ *
3383
+ * @example
3384
+ * ```js
3385
+ * disabledActions: [Action.SageAnswerFeedback]
3386
+ * ```
3321
3387
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3322
3388
  */
3323
3389
  Action["SageAnswerFeedback"] = "sageAnswerFeedback";
3324
3390
  /**
3391
+ *
3392
+ * @example
3393
+ * ```js
3394
+ * disabledActions: [Action.ModifySageAnswer]
3395
+ * ```
3325
3396
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3326
3397
  */
3327
3398
  Action["ModifySageAnswer"] = "modifySageAnswer";
@@ -3443,6 +3514,60 @@
3443
3514
  * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
3444
3515
  */
3445
3516
  Action["AIHighlights"] = "AIHighlights";
3517
+ /**
3518
+ * Action ID for edit schedule action on schedule on homepage
3519
+ * @example
3520
+ * ```js
3521
+ * disabledActions: [Action.EditScheduleHomepage]
3522
+ * ```
3523
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3524
+ */
3525
+ Action["EditScheduleHomepage"] = "editScheduleHomepage";
3526
+ /**
3527
+ * Action ID for pause schedule action on schedule on homepage
3528
+ * @example
3529
+ * ```js
3530
+ * disabledActions: [Action.PauseScheduleHomepage]
3531
+ * ```
3532
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3533
+ */
3534
+ Action["PauseScheduleHomepage"] = "pauseScheduleHomepage";
3535
+ /**
3536
+ * Action ID for view schedule run action on schedule on homepage
3537
+ * @example
3538
+ * ```js
3539
+ * disabledActions: [Action.ViewScheduleRunHomepage]
3540
+ * ```
3541
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3542
+ */
3543
+ Action["ViewScheduleRunHomepage"] = "viewScheduleRunHomepage";
3544
+ /**
3545
+ * Action ID for unsubscribe schedule action on schedule on homepage
3546
+ * @example
3547
+ * ```js
3548
+ * disabledActions: [Action.UnsubscribeScheduleHomepage]
3549
+ * ```
3550
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3551
+ */
3552
+ Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
3553
+ /**
3554
+ * Action ID for delete schedule action on schedule on homepage
3555
+ * @example
3556
+ * ```js
3557
+ * disabledActions: [Action.DeleteScheduleHomepage]
3558
+ * ```
3559
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3560
+ */
3561
+ Action["DeleteScheduleHomepage"] = "deleteScheduleHomepage";
3562
+ /**
3563
+ * The **Analyze CTA** action on KPI chart.
3564
+ * @example
3565
+ * ```js
3566
+ * disabledActions: [Action.KPIAnalysisCTA]
3567
+ * ```
3568
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3569
+ */
3570
+ Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3446
3571
  })(exports.Action || (exports.Action = {}));
3447
3572
  var PrefetchFeatures;
3448
3573
  (function (PrefetchFeatures) {
@@ -5806,6 +5931,25 @@
5806
5931
  }
5807
5932
  const logger = new Logger();
5808
5933
 
5934
+ const ERROR_MESSAGE = {
5935
+ INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
5936
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
5937
+ TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
5938
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
5939
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
5940
+ THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
5941
+ DUPLICATE_TOKEN_ERR: 'Duplicate token, please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
5942
+ SDK_NOT_INITIALIZED: 'SDK not initialized',
5943
+ SESSION_INFO_FAILED: 'Failed to get session info',
5944
+ INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
5945
+ MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
5946
+ PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
5947
+ SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
5948
+ CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
5949
+ CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please setup CSP Correctly for the Application to start working. You can know more about setting CSP Correctly here: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n In case you are still facing error, please read: https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
5950
+ MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
5951
+ };
5952
+
5809
5953
  const EndPoints = {
5810
5954
  AUTH_VERIFICATION: '/callosum/v1/session/info',
5811
5955
  SESSION_INFO: '/callosum/v1/session/info',
@@ -5919,9 +6063,6 @@
5919
6063
  });
5920
6064
  }
5921
6065
 
5922
- const DUPLICATE_TOKEN_ERR = 'Duplicate token, please issue a new token every time getAuthToken callback is called.'
5923
- + 'See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.';
5924
- const INVALID_TOKEN_ERR = 'Invalid token received form token callback or authToken endpoint.';
5925
6066
  let cachedAuthToken = null;
5926
6067
  // This method can be used to get the authToken using the embedConfig
5927
6068
  async function getAuthenticationToken(embedConfig) {
@@ -5952,7 +6093,7 @@
5952
6093
  await validateAuthToken(embedConfig, authToken);
5953
6094
  }
5954
6095
  catch (e) {
5955
- logger.error(`Received invalid token from getAuthToken callback or authToken endpoint. Error : ${e.message}`);
6096
+ logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
5956
6097
  throw e;
5957
6098
  }
5958
6099
  cachedAuthToken = authToken;
@@ -5974,12 +6115,12 @@
5974
6115
  if (cachedAuthToken && cachedAuthToken === authToken) {
5975
6116
  if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
5976
6117
  // eslint-disable-next-line no-alert
5977
- alert(DUPLICATE_TOKEN_ERR);
6118
+ alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
5978
6119
  }
5979
- throw new Error(DUPLICATE_TOKEN_ERR);
6120
+ throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
5980
6121
  }
5981
6122
  else {
5982
- throw new Error(INVALID_TOKEN_ERR);
6123
+ throw new Error(ERROR_MESSAGE.INVALID_TOKEN_ERROR);
5983
6124
  }
5984
6125
  };
5985
6126
  /**
@@ -6591,14 +6732,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
6591
6732
  return underlyingDataPoint;
6592
6733
  }
6593
6734
 
6594
- const ERROR_MESSAGE = {
6595
- INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
6596
- LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
6597
- TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
6598
- SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
6599
- SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
6600
- };
6601
-
6602
6735
  /**
6603
6736
  * Copyright (c) 2023
6604
6737
  *
@@ -12693,7 +12826,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
12693
12826
  function initMixpanel(sessionInfo) {
12694
12827
  var _a;
12695
12828
  if (!sessionInfo || !sessionInfo.mixpanelToken) {
12696
- logger.error('Mixpanel token not found in session info');
12829
+ logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
12697
12830
  return;
12698
12831
  }
12699
12832
  // On a public cluster the user is anonymous, so don't set the identify to
@@ -13059,6 +13192,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13059
13192
  }
13060
13193
  });
13061
13194
 
13195
+ var ReportType;
13196
+ (function (ReportType) {
13197
+ ReportType["CSP_VIOLATION"] = "csp-violation";
13198
+ ReportType["DEPRECATION"] = "deprecation";
13199
+ ReportType["INTERVENTION"] = "intervention";
13200
+ })(ReportType || (ReportType = {}));
13201
+
13062
13202
  /**
13063
13203
  *
13064
13204
  * @param url
@@ -13230,7 +13370,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13230
13370
  */
13231
13371
  function notifyAuthSDKSuccess() {
13232
13372
  {
13233
- logger.error('SDK not initialized');
13373
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13234
13374
  return;
13235
13375
  }
13236
13376
  }
@@ -13239,7 +13379,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13239
13379
  */
13240
13380
  async function notifyAuthSuccess() {
13241
13381
  {
13242
- logger.error('SDK not initialized');
13382
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13243
13383
  return;
13244
13384
  }
13245
13385
  }
@@ -13249,7 +13389,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13249
13389
  */
13250
13390
  function notifyAuthFailure(failureType) {
13251
13391
  {
13252
- logger.error('SDK not initialized');
13392
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13253
13393
  return;
13254
13394
  }
13255
13395
  }
@@ -13258,7 +13398,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13258
13398
  */
13259
13399
  function notifyLogout() {
13260
13400
  {
13261
- logger.error('SDK not initialized');
13401
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13262
13402
  return;
13263
13403
  }
13264
13404
  }
@@ -13611,7 +13751,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13611
13751
  if (!ignoreNoCookieAccess) {
13612
13752
  if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
13613
13753
  // eslint-disable-next-line no-alert
13614
- alert('Third party cookie access is blocked on this browser, please allow third party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.');
13754
+ alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
13615
13755
  }
13616
13756
  // eslint-disable-next-line no-param-reassign
13617
13757
  containerEl.innerHTML = loginFailedMessage;
@@ -13727,7 +13867,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13727
13867
  });
13728
13868
  }
13729
13869
 
13730
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs",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",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","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",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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
13870
+ var name="@thoughtspot/visual-embed-sdk";var version="1.33.0-alpha.2";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",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","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",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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
13731
13871
 
13732
13872
  /**
13733
13873
  * Copyright (c) 2022
@@ -13825,7 +13965,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13825
13965
  });
13826
13966
  }
13827
13967
  catch (e) {
13828
- logger.error(`Received invalid token. Error : ${e === null || e === void 0 ? void 0 : e.message}`);
13968
+ logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
13829
13969
  processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
13830
13970
  }
13831
13971
  }
@@ -14033,7 +14173,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14033
14173
  if (this.embedConfig.currencyFormat) {
14034
14174
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14035
14175
  }
14036
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
14176
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
14037
14177
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14038
14178
  this.handleError('You cannot have both hidden actions and visible actions');
14039
14179
  return queryParams;
@@ -14094,6 +14234,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14094
14234
  if (insertInToSlide) {
14095
14235
  queryParams[Param.ShowInsertToSlide] = insertInToSlide;
14096
14236
  }
14237
+ if (disableRedirectionLinksInNewTab) {
14238
+ queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
14239
+ }
14097
14240
  queryParams[Param.OverrideNativeConsole] = true;
14098
14241
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
14099
14242
  return queryParams;
@@ -14138,7 +14281,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14138
14281
  iFrame.mozallowfullscreen = true;
14139
14282
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14140
14283
  // @ts-ignore
14141
- iFrame.allow = 'clipboard-read; clipboard-write';
14284
+ iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
14142
14285
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
14143
14286
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
14144
14287
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -14521,7 +14664,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14521
14664
  */
14522
14665
  preRender(showPreRenderByDefault = false) {
14523
14666
  if (!this.viewConfig.preRenderId) {
14524
- logger.error('PreRender id is required for preRender');
14667
+ logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
14525
14668
  return this;
14526
14669
  }
14527
14670
  this.isPreRendered = true;
@@ -14594,7 +14737,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14594
14737
  */
14595
14738
  showPreRender() {
14596
14739
  if (!this.viewConfig.preRenderId) {
14597
- logger.error('PreRender id is required for preRender');
14740
+ logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
14598
14741
  return;
14599
14742
  }
14600
14743
  if (!this.isPreRenderAvailable()) {
@@ -14636,7 +14779,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14636
14779
  */
14637
14780
  syncPreRenderStyle() {
14638
14781
  if (!this.isPreRenderAvailable() || !this.el) {
14639
- logger.error('PreRender should be called before using syncPreRenderStyle');
14782
+ logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
14640
14783
  return;
14641
14784
  }
14642
14785
  const elBoundingClient = this.el.getBoundingClientRect();
@@ -14940,7 +15083,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14940
15083
  */
14941
15084
  getDataSourceMode() {
14942
15085
  let dataSourceMode = DataSourceVisualMode.Expanded;
14943
- if (this.viewConfig.collapseDataSources === true) {
15086
+ if (this.viewConfig.collapseDataSources === true
15087
+ || this.viewConfig.collapseDataPanel === true) {
14944
15088
  dataSourceMode = DataSourceVisualMode.Collapsed;
14945
15089
  }
14946
15090
  if (this.viewConfig.hideDataSources === true) {
@@ -14950,9 +15094,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14950
15094
  }
14951
15095
  getEmbedParams() {
14952
15096
  var _a;
14953
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15097
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
14954
15098
  /* eslint-disable-next-line max-len */
14955
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
15099
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
14956
15100
  const queryParams = this.getBaseQueryParams();
14957
15101
  queryParams[Param.HideActions] = [
14958
15102
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -14996,7 +15140,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14996
15140
  queryParams[Param.UseLastSelectedDataSource] = false;
14997
15141
  }
14998
15142
  queryParams[Param.searchEmbed] = true;
14999
- queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15143
+ /* eslint-disable-next-line max-len */
15144
+ queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15000
15145
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15001
15146
  if (dataPanelCustomGroupsAccordionInitialState
15002
15147
  === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
@@ -15111,6 +15256,12 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15111
15256
  */
15112
15257
  DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
15113
15258
  })(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
15259
+ var HomePageSearchBarMode;
15260
+ (function (HomePageSearchBarMode) {
15261
+ HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
15262
+ HomePageSearchBarMode["AI_ANSWER"] = "aiAnswer";
15263
+ HomePageSearchBarMode["NONE"] = "none";
15264
+ })(HomePageSearchBarMode || (HomePageSearchBarMode = {}));
15114
15265
  /**
15115
15266
  * Embeds full ThoughtSpot experience in a host application.
15116
15267
  * @group Embed components
@@ -15151,9 +15302,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15151
15302
  * embedded Liveboard or visualization.
15152
15303
  */
15153
15304
  getEmbedParams() {
15154
- 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,
15305
+ const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
15155
15306
  /* eslint-disable-next-line max-len */
15156
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, } = this.viewConfig;
15307
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
15157
15308
  let params = {};
15158
15309
  params[Param.EmbedApp] = true;
15159
15310
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15191,10 +15342,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15191
15342
  /* eslint-disable-next-line max-len */
15192
15343
  params[Param.IsOnBeforeGetVizDataInterceptEnabled] = isOnBeforeGetVizDataInterceptEnabled;
15193
15344
  }
15345
+ if (homePageSearchBarMode) {
15346
+ params[Param.HomePageSearchBarMode] = homePageSearchBarMode;
15347
+ }
15194
15348
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15195
15349
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
15196
15350
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
15197
- params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15351
+ params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15198
15352
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15199
15353
  if (dataPanelCustomGroupsAccordionInitialState
15200
15354
  === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL