@thoughtspot/visual-embed-sdk 1.32.0 → 1.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) 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 +1 -0
  9. package/cjs/src/embed/app.d.ts.map +1 -1
  10. package/cjs/src/embed/app.js +2 -2
  11. package/cjs/src/embed/app.js.map +1 -1
  12. package/cjs/src/embed/base.d.ts.map +1 -1
  13. package/cjs/src/embed/base.js +2 -0
  14. package/cjs/src/embed/base.js.map +1 -1
  15. package/cjs/src/embed/search.d.ts +14 -0
  16. package/cjs/src/embed/search.d.ts.map +1 -1
  17. package/cjs/src/embed/search.js +5 -3
  18. package/cjs/src/embed/search.js.map +1 -1
  19. package/cjs/src/embed/ts-embed.d.ts +1 -1
  20. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  21. package/cjs/src/embed/ts-embed.js +10 -6
  22. package/cjs/src/embed/ts-embed.js.map +1 -1
  23. package/cjs/src/errors.d.ts +11 -0
  24. package/cjs/src/errors.d.ts.map +1 -1
  25. package/cjs/src/errors.js +11 -0
  26. package/cjs/src/errors.js.map +1 -1
  27. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  28. package/cjs/src/mixpanel-service.js +2 -1
  29. package/cjs/src/mixpanel-service.js.map +1 -1
  30. package/cjs/src/react/index.spec.js +1 -1
  31. package/cjs/src/react/index.spec.js.map +1 -1
  32. package/cjs/src/types.d.ts +167 -6
  33. package/cjs/src/types.d.ts.map +1 -1
  34. package/cjs/src/types.js +140 -3
  35. package/cjs/src/types.js.map +1 -1
  36. package/cjs/src/utils/processData.d.ts.map +1 -1
  37. package/cjs/src/utils/processData.js +2 -1
  38. package/cjs/src/utils/processData.js.map +1 -1
  39. package/cjs/src/utils/reporting.d.ts +16 -0
  40. package/cjs/src/utils/reporting.d.ts.map +1 -0
  41. package/cjs/src/utils/reporting.js +68 -0
  42. package/cjs/src/utils/reporting.js.map +1 -0
  43. package/cjs/src/utils/reporting.spec.d.ts +2 -0
  44. package/cjs/src/utils/reporting.spec.d.ts.map +1 -0
  45. package/cjs/src/utils/reporting.spec.js +76 -0
  46. package/cjs/src/utils/reporting.spec.js.map +1 -0
  47. package/dist/src/auth.d.ts.map +1 -1
  48. package/dist/src/authToken.d.ts.map +1 -1
  49. package/dist/src/embed/app.d.ts +1 -0
  50. package/dist/src/embed/app.d.ts.map +1 -1
  51. package/dist/src/embed/base.d.ts.map +1 -1
  52. package/dist/src/embed/search.d.ts +14 -0
  53. package/dist/src/embed/search.d.ts.map +1 -1
  54. package/dist/src/embed/ts-embed.d.ts +1 -1
  55. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  56. package/dist/src/errors.d.ts +11 -0
  57. package/dist/src/errors.d.ts.map +1 -1
  58. package/dist/src/mixpanel-service.d.ts.map +1 -1
  59. package/dist/src/types.d.ts +167 -6
  60. package/dist/src/types.d.ts.map +1 -1
  61. package/dist/src/utils/processData.d.ts.map +1 -1
  62. package/dist/src/utils/reporting.d.ts +16 -0
  63. package/dist/src/utils/reporting.d.ts.map +1 -0
  64. package/dist/src/utils/reporting.spec.d.ts +2 -0
  65. package/dist/src/utils/reporting.spec.d.ts.map +1 -0
  66. package/dist/tsembed-react.es.js +193 -36
  67. package/dist/tsembed-react.js +193 -36
  68. package/dist/tsembed.es.js +240 -37
  69. package/dist/tsembed.js +240 -37
  70. package/dist/visual-embed-sdk-react-full.d.ts +183 -7
  71. package/dist/visual-embed-sdk-react.d.ts +183 -7
  72. package/dist/visual-embed-sdk.d.ts +183 -7
  73. package/lib/package.json +1 -1
  74. package/lib/src/auth.d.ts.map +1 -1
  75. package/lib/src/auth.js +6 -5
  76. package/lib/src/auth.js.map +1 -1
  77. package/lib/src/authToken.d.ts.map +1 -1
  78. package/lib/src/authToken.js +5 -7
  79. package/lib/src/authToken.js.map +1 -1
  80. package/lib/src/embed/app.d.ts +1 -0
  81. package/lib/src/embed/app.d.ts.map +1 -1
  82. package/lib/src/embed/app.js +2 -2
  83. package/lib/src/embed/app.js.map +1 -1
  84. package/lib/src/embed/base.d.ts.map +1 -1
  85. package/lib/src/embed/base.js +2 -0
  86. package/lib/src/embed/base.js.map +1 -1
  87. package/lib/src/embed/search.d.ts +14 -0
  88. package/lib/src/embed/search.d.ts.map +1 -1
  89. package/lib/src/embed/search.js +5 -3
  90. package/lib/src/embed/search.js.map +1 -1
  91. package/lib/src/embed/ts-embed.d.ts +1 -1
  92. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  93. package/lib/src/embed/ts-embed.js +10 -6
  94. package/lib/src/embed/ts-embed.js.map +1 -1
  95. package/lib/src/errors.d.ts +11 -0
  96. package/lib/src/errors.d.ts.map +1 -1
  97. package/lib/src/errors.js +11 -0
  98. package/lib/src/errors.js.map +1 -1
  99. package/lib/src/mixpanel-service.d.ts.map +1 -1
  100. package/lib/src/mixpanel-service.js +2 -1
  101. package/lib/src/mixpanel-service.js.map +1 -1
  102. package/lib/src/react/index.spec.js +1 -1
  103. package/lib/src/react/index.spec.js.map +1 -1
  104. package/lib/src/types.d.ts +167 -6
  105. package/lib/src/types.d.ts.map +1 -1
  106. package/lib/src/types.js +140 -3
  107. package/lib/src/types.js.map +1 -1
  108. package/lib/src/utils/processData.d.ts.map +1 -1
  109. package/lib/src/utils/processData.js +2 -1
  110. package/lib/src/utils/processData.js.map +1 -1
  111. package/lib/src/utils/reporting.d.ts +16 -0
  112. package/lib/src/utils/reporting.d.ts.map +1 -0
  113. package/lib/src/utils/reporting.js +62 -0
  114. package/lib/src/utils/reporting.js.map +1 -0
  115. package/lib/src/utils/reporting.spec.d.ts +2 -0
  116. package/lib/src/utils/reporting.spec.d.ts.map +1 -0
  117. package/lib/src/utils/reporting.spec.js +74 -0
  118. package/lib/src/utils/reporting.spec.js.map +1 -0
  119. package/lib/src/visual-embed-sdk.d.ts +183 -7
  120. package/package.json +1 -1
  121. package/src/auth.ts +6 -5
  122. package/src/authToken.ts +5 -9
  123. package/src/embed/app.ts +3 -1
  124. package/src/embed/base.ts +3 -1
  125. package/src/embed/search.ts +19 -2
  126. package/src/embed/ts-embed.ts +13 -6
  127. package/src/errors.ts +11 -0
  128. package/src/mixpanel-service.ts +2 -1
  129. package/src/react/index.spec.tsx +1 -1
  130. package/src/types.ts +170 -3
  131. package/src/utils/processData.ts +2 -3
  132. package/src/utils/reporting.spec.ts +91 -0
  133. 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
  /**
@@ -1258,6 +1262,7 @@
1258
1262
  /**
1259
1263
  * Emitted when a user clicks the **Update TML** action on
1260
1264
  * embedded Liveboard.
1265
+ *
1261
1266
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1262
1267
  * @example
1263
1268
  *```js
@@ -1269,6 +1274,7 @@
1269
1274
  /**
1270
1275
  * Emitted when a user clicks the **Edit TML** action
1271
1276
  * on an embedded Liveboard.
1277
+ *
1272
1278
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
1273
1279
  * @example
1274
1280
  *```js
@@ -1855,16 +1861,20 @@
1855
1861
  /**
1856
1862
  * Trigger the **Export TML** action on an embedded Liveboard or
1857
1863
  * Answer.
1864
+ *
1858
1865
  * @example
1859
1866
  * ```js
1860
1867
  * liveboardEmbed.trigger(HostEvent.ExportTML)
1861
1868
  * ```
1869
+ *
1862
1870
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1863
1871
  */
1864
1872
  HostEvent["ExportTML"] = "exportTSL";
1865
1873
  /**
1866
1874
  * Trigger the **Edit TML** action on an embedded Liveboard or
1867
1875
  * saved Answers in the full application embedding.
1876
+ *
1877
+ *
1868
1878
  * @example
1869
1879
  * ```js
1870
1880
  * liveboardEmbed.trigger(HostEvent.EditTML)
@@ -1955,13 +1965,15 @@
1955
1965
  *
1956
1966
  * @example
1957
1967
  * ```js
1958
- * appEmbed.trigger(HostEvent.CreateMonitor)
1968
+ * searchEmbed.trigger(HostEvent.CreateMonitor)
1959
1969
  * ```
1960
1970
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1961
1971
  */
1962
1972
  HostEvent["CreateMonitor"] = "createMonitor";
1963
1973
  /**
1964
- * Trigger the **Manage alerts** action on a visualization
1974
+ * Trigger the **Manage alerts** action on a KPI chart
1975
+ * in a visualization or saved Answer.
1976
+ *
1965
1977
  * @param - an object with `vizId` as a key
1966
1978
  * @example
1967
1979
  * ```js
@@ -1969,6 +1981,16 @@
1969
1981
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1970
1982
  * })
1971
1983
  * ```
1984
+ *
1985
+ * @example
1986
+ * ```js
1987
+ * searchEmbed.trigger(HostEvent.ManageMonitor)
1988
+ * ```
1989
+ *
1990
+ * @example
1991
+ * ```js
1992
+ * vizEmbed.trigger(HostEvent.ManageMonitor)
1993
+ * ```
1972
1994
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1973
1995
  */
1974
1996
  HostEvent["ManageMonitor"] = "manageMonitor";
@@ -1979,6 +2001,7 @@
1979
2001
  * This event is not supported in visualization embed and search embed.
1980
2002
  * @param - object - To trigger the action for a specific visualization
1981
2003
  * in Liveboard embed, pass in `vizId` as a key.
2004
+ *
1982
2005
  * @example
1983
2006
  * ```js
1984
2007
  * liveboardEmbed.trigger(HostEvent.Edit)
@@ -2245,6 +2268,7 @@
2245
2268
  /**
2246
2269
  * Get details of filters applied on the Liveboard.
2247
2270
  * Returns arrays containing Liveboard filter and runtime filter elements.
2271
+ *
2248
2272
  * @example
2249
2273
  * ```js
2250
2274
  * const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
@@ -2546,6 +2570,7 @@
2546
2570
  Param["IsFullAppEmbed"] = "isFullAppEmbed";
2547
2571
  Param["IsOnBeforeGetVizDataInterceptEnabled"] = "isOnBeforeGetVizDataInterceptEnabled";
2548
2572
  Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
2573
+ Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
2549
2574
  })(Param || (Param = {}));
2550
2575
  (function (Action) {
2551
2576
  /**
@@ -2569,6 +2594,7 @@
2569
2594
  * The **Save as View** action on the Answer
2570
2595
  * page. Saves an Answer as a View object in the full
2571
2596
  * application embedding mode.
2597
+ *
2572
2598
  * @example
2573
2599
  * ```js
2574
2600
  * disabledActions: [Action.SaveAsView]
@@ -2668,6 +2694,7 @@
2668
2694
  */
2669
2695
  Action["ConfigureFilter"] = "configureFilter";
2670
2696
  Action["CollapseDataSources"] = "collapseDataSources";
2697
+ Action["CollapseDataPanel"] = "collapseDataPanel";
2671
2698
  /**
2672
2699
  * The **Choose sources** button on Search page.
2673
2700
  * Allows selecting data sources for search queries.
@@ -3025,6 +3052,7 @@
3025
3052
  /**
3026
3053
  * The **Delete** action for Answers in the full application
3027
3054
  * embedding mode.
3055
+ *
3028
3056
  * @example
3029
3057
  * ```js
3030
3058
  * disabledActions: [Action.AnswerDelete]
@@ -3063,12 +3091,15 @@
3063
3091
  * The Create alert action on KPI charts.
3064
3092
  * @example
3065
3093
  * ```js
3066
- * disabledActions: [Action.CreateMonitor ]
3094
+ * disabledActions: [Action.CreateMonitor]
3067
3095
  * ```
3068
3096
  * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
3069
3097
  */
3070
3098
  Action["CreateMonitor"] = "createMonitor";
3071
3099
  /**
3100
+ * @deprecated
3101
+ * Reports errors
3102
+ *
3072
3103
  * @example
3073
3104
  * ```js
3074
3105
  * disabledActions: [Action.ReportError]
@@ -3293,35 +3324,87 @@
3293
3324
  */
3294
3325
  Action["RenameModalTitleDescription"] = "renameModalTitleDescription";
3295
3326
  /**
3327
+ *
3328
+ * The **Request Verification** action on the Liveboard.
3329
+ * Triggers a Liveboard verification request.
3330
+ *
3331
+ * @example
3332
+ * ```js
3333
+ * disabledActions: [Action.RequestVerification]
3334
+ * ```
3296
3335
  *
3297
3336
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3298
3337
  */
3299
3338
  Action["RequestVerification"] = "requestVerification";
3300
3339
  /**
3340
+ *
3341
+ * Allows users to mark a Liveboard as verified.
3342
+ *
3343
+ * @example
3344
+ * ```js
3345
+ * disabledActions: [Action.MarkAsVerified]
3346
+ * ```
3301
3347
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3302
3348
  */
3303
3349
  Action["MarkAsVerified"] = "markAsVerified";
3304
3350
  /**
3351
+ * The **Add Tab** action on a Liveboard.
3352
+ * Allows adding a new tab to a Liveboard view.
3353
+ *
3354
+ * @example
3355
+ * ```js
3356
+ * disabledActions: [Action.AddTab]
3357
+ * ```
3305
3358
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3306
3359
  */
3307
3360
  Action["AddTab"] = "addTab";
3308
3361
  /**
3362
+ *
3363
+ * Initiates contextual change analysis on KPI charts.
3364
+ *
3365
+ * @example
3366
+ * ```js
3367
+ * disabledActions: [Action.EnableContextualChangeAnalysis]
3368
+ * ```
3309
3369
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3310
3370
  */
3311
3371
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
3312
3372
  /**
3373
+ *
3374
+ * @example
3375
+ * ```js
3376
+ * disabledActions: [Action.ShowSageQuery]
3377
+ * ```
3378
+ *
3313
3379
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3314
3380
  */
3315
3381
  Action["ShowSageQuery"] = "showSageQuery";
3316
3382
  /**
3383
+ *
3384
+ * @example
3385
+ * ```js
3386
+ * disabledActions: [Action.EditSageAnswer]
3387
+ * ```
3317
3388
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3318
3389
  */
3319
3390
  Action["EditSageAnswer"] = "editSageAnswer";
3320
3391
  /**
3392
+ *
3393
+ * This action allows users to send feedback on AI-generated Answers.
3394
+ *
3395
+ * @example
3396
+ * ```js
3397
+ * disabledActions: [Action.SageAnswerFeedback]
3398
+ * ```
3321
3399
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3322
3400
  */
3323
3401
  Action["SageAnswerFeedback"] = "sageAnswerFeedback";
3324
3402
  /**
3403
+ *
3404
+ * @example
3405
+ * ```js
3406
+ * disabledActions: [Action.ModifySageAnswer]
3407
+ * ```
3325
3408
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3326
3409
  */
3327
3410
  Action["ModifySageAnswer"] = "modifySageAnswer";
@@ -3443,6 +3526,60 @@
3443
3526
  * @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
3444
3527
  */
3445
3528
  Action["AIHighlights"] = "AIHighlights";
3529
+ /**
3530
+ * Action ID for edit schedule action on schedule on homepage
3531
+ * @example
3532
+ * ```js
3533
+ * disabledActions: [Action.EditScheduleHomepage]
3534
+ * ```
3535
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3536
+ */
3537
+ Action["EditScheduleHomepage"] = "editScheduleHomepage";
3538
+ /**
3539
+ * Action ID for pause schedule action on schedule on homepage
3540
+ * @example
3541
+ * ```js
3542
+ * disabledActions: [Action.PauseScheduleHomepage]
3543
+ * ```
3544
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3545
+ */
3546
+ Action["PauseScheduleHomepage"] = "pauseScheduleHomepage";
3547
+ /**
3548
+ * Action ID for view schedule run action on schedule on homepage
3549
+ * @example
3550
+ * ```js
3551
+ * disabledActions: [Action.ViewScheduleRunHomepage]
3552
+ * ```
3553
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3554
+ */
3555
+ Action["ViewScheduleRunHomepage"] = "viewScheduleRunHomepage";
3556
+ /**
3557
+ * Action ID for unsubscribe schedule action on schedule on homepage
3558
+ * @example
3559
+ * ```js
3560
+ * disabledActions: [Action.UnsubscribeScheduleHomepage]
3561
+ * ```
3562
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3563
+ */
3564
+ Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
3565
+ /**
3566
+ * Action ID for delete schedule action on schedule on homepage
3567
+ * @example
3568
+ * ```js
3569
+ * disabledActions: [Action.DeleteScheduleHomepage]
3570
+ * ```
3571
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3572
+ */
3573
+ Action["DeleteScheduleHomepage"] = "deleteScheduleHomepage";
3574
+ /**
3575
+ * The **Analyze CTA** action on KPI chart.
3576
+ * @example
3577
+ * ```js
3578
+ * disabledActions: [Action.KPIAnalysisCTA]
3579
+ * ```
3580
+ * @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
3581
+ */
3582
+ Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
3446
3583
  })(exports.Action || (exports.Action = {}));
3447
3584
  var PrefetchFeatures;
3448
3585
  (function (PrefetchFeatures) {
@@ -5806,6 +5943,25 @@
5806
5943
  }
5807
5944
  const logger = new Logger();
5808
5945
 
5946
+ const ERROR_MESSAGE = {
5947
+ INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
5948
+ LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
5949
+ TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
5950
+ SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
5951
+ SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
5952
+ 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.',
5953
+ 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.',
5954
+ SDK_NOT_INITIALIZED: 'SDK not initialized',
5955
+ SESSION_INFO_FAILED: 'Failed to get session info',
5956
+ INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
5957
+ MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
5958
+ PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
5959
+ SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
5960
+ CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
5961
+ 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',
5962
+ MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
5963
+ };
5964
+
5809
5965
  const EndPoints = {
5810
5966
  AUTH_VERIFICATION: '/callosum/v1/session/info',
5811
5967
  SESSION_INFO: '/callosum/v1/session/info',
@@ -5919,9 +6075,6 @@
5919
6075
  });
5920
6076
  }
5921
6077
 
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
6078
  let cachedAuthToken = null;
5926
6079
  // This method can be used to get the authToken using the embedConfig
5927
6080
  async function getAuthenticationToken(embedConfig) {
@@ -5952,7 +6105,7 @@
5952
6105
  await validateAuthToken(embedConfig, authToken);
5953
6106
  }
5954
6107
  catch (e) {
5955
- logger.error(`Received invalid token from getAuthToken callback or authToken endpoint. Error : ${e.message}`);
6108
+ logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
5956
6109
  throw e;
5957
6110
  }
5958
6111
  cachedAuthToken = authToken;
@@ -5974,12 +6127,12 @@
5974
6127
  if (cachedAuthToken && cachedAuthToken === authToken) {
5975
6128
  if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
5976
6129
  // eslint-disable-next-line no-alert
5977
- alert(DUPLICATE_TOKEN_ERR);
6130
+ alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
5978
6131
  }
5979
- throw new Error(DUPLICATE_TOKEN_ERR);
6132
+ throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
5980
6133
  }
5981
6134
  else {
5982
- throw new Error(INVALID_TOKEN_ERR);
6135
+ throw new Error(ERROR_MESSAGE.INVALID_TOKEN_ERROR);
5983
6136
  }
5984
6137
  };
5985
6138
  /**
@@ -6591,14 +6744,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
6591
6744
  return underlyingDataPoint;
6592
6745
  }
6593
6746
 
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
6747
  /**
6603
6748
  * Copyright (c) 2023
6604
6749
  *
@@ -12693,7 +12838,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
12693
12838
  function initMixpanel(sessionInfo) {
12694
12839
  var _a;
12695
12840
  if (!sessionInfo || !sessionInfo.mixpanelToken) {
12696
- logger.error('Mixpanel token not found in session info');
12841
+ logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
12697
12842
  return;
12698
12843
  }
12699
12844
  // On a public cluster the user is anonymous, so don't set the identify to
@@ -13059,6 +13204,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13059
13204
  }
13060
13205
  });
13061
13206
 
13207
+ var ReportType;
13208
+ (function (ReportType) {
13209
+ ReportType["CSP_VIOLATION"] = "csp-violation";
13210
+ ReportType["DEPRECATION"] = "deprecation";
13211
+ ReportType["INTERVENTION"] = "intervention";
13212
+ })(ReportType || (ReportType = {}));
13213
+
13062
13214
  /**
13063
13215
  *
13064
13216
  * @param url
@@ -13230,7 +13382,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13230
13382
  */
13231
13383
  function notifyAuthSDKSuccess() {
13232
13384
  {
13233
- logger.error('SDK not initialized');
13385
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13234
13386
  return;
13235
13387
  }
13236
13388
  }
@@ -13239,7 +13391,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13239
13391
  */
13240
13392
  async function notifyAuthSuccess() {
13241
13393
  {
13242
- logger.error('SDK not initialized');
13394
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13243
13395
  return;
13244
13396
  }
13245
13397
  }
@@ -13249,7 +13401,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13249
13401
  */
13250
13402
  function notifyAuthFailure(failureType) {
13251
13403
  {
13252
- logger.error('SDK not initialized');
13404
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13253
13405
  return;
13254
13406
  }
13255
13407
  }
@@ -13258,7 +13410,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13258
13410
  */
13259
13411
  function notifyLogout() {
13260
13412
  {
13261
- logger.error('SDK not initialized');
13413
+ logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
13262
13414
  return;
13263
13415
  }
13264
13416
  }
@@ -13611,7 +13763,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13611
13763
  if (!ignoreNoCookieAccess) {
13612
13764
  if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
13613
13765
  // 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.');
13766
+ alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
13615
13767
  }
13616
13768
  // eslint-disable-next-line no-param-reassign
13617
13769
  containerEl.innerHTML = loginFailedMessage;
@@ -13727,7 +13879,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13727
13879
  });
13728
13880
  }
13729
13881
 
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};
13882
+ var name="@thoughtspot/visual-embed-sdk";var version="1.32.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};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
13883
 
13732
13884
  /**
13733
13885
  * Copyright (c) 2022
@@ -13825,7 +13977,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
13825
13977
  });
13826
13978
  }
13827
13979
  catch (e) {
13828
- logger.error(`Received invalid token. Error : ${e === null || e === void 0 ? void 0 : e.message}`);
13980
+ logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
13829
13981
  processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
13830
13982
  }
13831
13983
  }
@@ -14033,7 +14185,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14033
14185
  if (this.embedConfig.currencyFormat) {
14034
14186
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
14035
14187
  }
14036
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
14188
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
14037
14189
  if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
14038
14190
  this.handleError('You cannot have both hidden actions and visible actions');
14039
14191
  return queryParams;
@@ -14094,6 +14246,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14094
14246
  if (insertInToSlide) {
14095
14247
  queryParams[Param.ShowInsertToSlide] = insertInToSlide;
14096
14248
  }
14249
+ if (disableRedirectionLinksInNewTab) {
14250
+ queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
14251
+ }
14097
14252
  queryParams[Param.OverrideNativeConsole] = true;
14098
14253
  queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
14099
14254
  return queryParams;
@@ -14138,7 +14293,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14138
14293
  iFrame.mozallowfullscreen = true;
14139
14294
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14140
14295
  // @ts-ignore
14141
- iFrame.allow = 'clipboard-read; clipboard-write';
14296
+ iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
14142
14297
  const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
14143
14298
  const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
14144
14299
  const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
@@ -14521,7 +14676,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14521
14676
  */
14522
14677
  preRender(showPreRenderByDefault = false) {
14523
14678
  if (!this.viewConfig.preRenderId) {
14524
- logger.error('PreRender id is required for preRender');
14679
+ logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
14525
14680
  return this;
14526
14681
  }
14527
14682
  this.isPreRendered = true;
@@ -14594,7 +14749,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14594
14749
  */
14595
14750
  showPreRender() {
14596
14751
  if (!this.viewConfig.preRenderId) {
14597
- logger.error('PreRender id is required for preRender');
14752
+ logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
14598
14753
  return;
14599
14754
  }
14600
14755
  if (!this.isPreRenderAvailable()) {
@@ -14636,7 +14791,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14636
14791
  */
14637
14792
  syncPreRenderStyle() {
14638
14793
  if (!this.isPreRenderAvailable() || !this.el) {
14639
- logger.error('PreRender should be called before using syncPreRenderStyle');
14794
+ logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
14640
14795
  return;
14641
14796
  }
14642
14797
  const elBoundingClient = this.el.getBoundingClientRect();
@@ -14940,7 +15095,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14940
15095
  */
14941
15096
  getDataSourceMode() {
14942
15097
  let dataSourceMode = DataSourceVisualMode.Expanded;
14943
- if (this.viewConfig.collapseDataSources === true) {
15098
+ if (this.viewConfig.collapseDataSources === true
15099
+ || this.viewConfig.collapseDataPanel === true) {
14944
15100
  dataSourceMode = DataSourceVisualMode.Collapsed;
14945
15101
  }
14946
15102
  if (this.viewConfig.hideDataSources === true) {
@@ -14952,7 +15108,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14952
15108
  var _a;
14953
15109
  const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
14954
15110
  /* eslint-disable-next-line max-len */
14955
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
15111
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
14956
15112
  const queryParams = this.getBaseQueryParams();
14957
15113
  queryParams[Param.HideActions] = [
14958
15114
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -14996,7 +15152,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14996
15152
  queryParams[Param.UseLastSelectedDataSource] = false;
14997
15153
  }
14998
15154
  queryParams[Param.searchEmbed] = true;
14999
- queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15155
+ /* eslint-disable-next-line max-len */
15156
+ queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15000
15157
  queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15001
15158
  if (dataPanelCustomGroupsAccordionInitialState
15002
15159
  === DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
@@ -15153,7 +15310,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15153
15310
  getEmbedParams() {
15154
15311
  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,
15155
15312
  /* eslint-disable-next-line max-len */
15156
- dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, } = this.viewConfig;
15313
+ dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, } = this.viewConfig;
15157
15314
  let params = {};
15158
15315
  params[Param.EmbedApp] = true;
15159
15316
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
@@ -15194,7 +15351,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
15194
15351
  params[Param.DataPanelV2Enabled] = dataPanelV2;
15195
15352
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
15196
15353
  params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
15197
- params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
15354
+ params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
15198
15355
  params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
15199
15356
  if (dataPanelCustomGroupsAccordionInitialState
15200
15357
  === DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL