@thoughtspot/visual-embed-sdk 1.32.0 → 1.32.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.
- package/cjs/package.json +4 -22
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +6 -5
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +5 -7
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/css-variables.d.ts +28 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +16 -14
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +19 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +32 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +2 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +10 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +14 -13
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +6 -4
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +9 -9
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +10 -6
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/errors.d.ts +11 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +11 -0
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +4 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +6 -1
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +178 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +138 -3
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +2 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/reporting.d.ts +16 -0
- package/cjs/src/utils/reporting.d.ts.map +1 -0
- package/cjs/src/utils/reporting.js +68 -0
- package/cjs/src/utils/reporting.js.map +1 -0
- package/cjs/src/utils/reporting.spec.d.ts +2 -0
- package/cjs/src/utils/reporting.spec.d.ts.map +1 -0
- package/cjs/src/utils/reporting.spec.js +76 -0
- package/cjs/src/utils/reporting.spec.js.map +1 -0
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +28 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +16 -14
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +14 -13
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +11 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +4 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/types.d.ts +178 -6
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/reporting.d.ts +16 -0
- package/dist/src/utils/reporting.d.ts.map +1 -0
- package/dist/src/utils/reporting.spec.d.ts +2 -0
- package/dist/src/utils/reporting.spec.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +214 -39
- package/dist/tsembed-react.js +214 -39
- package/dist/tsembed.es.js +261 -40
- package/dist/tsembed.js +261 -40
- package/dist/visual-embed-sdk-react-full.d.ts +241 -34
- package/dist/visual-embed-sdk-react.d.ts +241 -34
- package/dist/visual-embed-sdk.d.ts +241 -34
- package/lib/package.json +4 -22
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +6 -5
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +5 -7
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/css-variables.d.ts +28 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +16 -14
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +18 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +33 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +2 -0
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +10 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +14 -13
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +6 -4
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +9 -9
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +10 -6
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/errors.d.ts +11 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +11 -0
- package/lib/src/errors.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +4 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +6 -1
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +178 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +138 -3
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +2 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/reporting.d.ts +16 -0
- package/lib/src/utils/reporting.d.ts.map +1 -0
- package/lib/src/utils/reporting.js +62 -0
- package/lib/src/utils/reporting.js.map +1 -0
- package/lib/src/utils/reporting.spec.d.ts +2 -0
- package/lib/src/utils/reporting.spec.d.ts.map +1 -0
- package/lib/src/utils/reporting.spec.js +74 -0
- package/lib/src/utils/reporting.spec.js.map +1 -0
- package/lib/src/visual-embed-sdk.d.ts +241 -34
- package/package.json +4 -22
- package/src/auth.ts +6 -5
- package/src/authToken.ts +5 -9
- package/src/css-variables.ts +28 -0
- package/src/embed/app.spec.ts +48 -0
- package/src/embed/app.ts +25 -15
- package/src/embed/base.ts +3 -1
- package/src/embed/liveboard.spec.ts +14 -0
- package/src/embed/liveboard.ts +2 -0
- package/src/embed/search.spec.ts +9 -9
- package/src/embed/search.ts +20 -16
- package/src/embed/ts-embed.ts +13 -6
- package/src/errors.ts +11 -0
- package/src/mixpanel-service.ts +6 -1
- package/src/react/index.spec.tsx +1 -1
- package/src/types.ts +192 -13
- package/src/utils/processData.ts +2 -3
- package/src/utils/reporting.spec.ts +91 -0
- package/src/utils/reporting.ts +71 -0
package/dist/tsembed-react.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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,70 @@
|
|
|
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
|
+
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3555
|
+
*
|
|
3556
|
+
* @example
|
|
3557
|
+
* ```js
|
|
3558
|
+
* disabledActions: [Action.ManageTags]
|
|
3559
|
+
* ```
|
|
3560
|
+
* @version SDK : 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3561
|
+
*/
|
|
3562
|
+
Action["ManageTags"] = "manageTags";
|
|
3563
|
+
/**
|
|
3564
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
3565
|
+
* @example
|
|
3566
|
+
* ```js
|
|
3567
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
3568
|
+
* ```
|
|
3569
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3570
|
+
*/
|
|
3571
|
+
Action["DeleteScheduleHomepage"] = "deleteScheduleHomepage";
|
|
3572
|
+
/**
|
|
3573
|
+
* The **Analyze CTA** action on KPI chart.
|
|
3574
|
+
* @example
|
|
3575
|
+
* ```js
|
|
3576
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
3577
|
+
* ```
|
|
3578
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3579
|
+
*/
|
|
3580
|
+
Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
|
|
3446
3581
|
})(exports.Action || (exports.Action = {}));
|
|
3447
3582
|
var PrefetchFeatures;
|
|
3448
3583
|
(function (PrefetchFeatures) {
|
|
@@ -5806,6 +5941,25 @@
|
|
|
5806
5941
|
}
|
|
5807
5942
|
const logger = new Logger();
|
|
5808
5943
|
|
|
5944
|
+
const ERROR_MESSAGE = {
|
|
5945
|
+
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
5946
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
5947
|
+
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
5948
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
5949
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
5950
|
+
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.',
|
|
5951
|
+
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.',
|
|
5952
|
+
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
5953
|
+
SESSION_INFO_FAILED: 'Failed to get session info',
|
|
5954
|
+
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
5955
|
+
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
5956
|
+
PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
|
|
5957
|
+
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
5958
|
+
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
5959
|
+
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',
|
|
5960
|
+
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
5961
|
+
};
|
|
5962
|
+
|
|
5809
5963
|
const EndPoints = {
|
|
5810
5964
|
AUTH_VERIFICATION: '/callosum/v1/session/info',
|
|
5811
5965
|
SESSION_INFO: '/callosum/v1/session/info',
|
|
@@ -5919,9 +6073,6 @@
|
|
|
5919
6073
|
});
|
|
5920
6074
|
}
|
|
5921
6075
|
|
|
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
6076
|
let cachedAuthToken = null;
|
|
5926
6077
|
// This method can be used to get the authToken using the embedConfig
|
|
5927
6078
|
async function getAuthenticationToken(embedConfig) {
|
|
@@ -5952,7 +6103,7 @@
|
|
|
5952
6103
|
await validateAuthToken(embedConfig, authToken);
|
|
5953
6104
|
}
|
|
5954
6105
|
catch (e) {
|
|
5955
|
-
logger.error(
|
|
6106
|
+
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
|
|
5956
6107
|
throw e;
|
|
5957
6108
|
}
|
|
5958
6109
|
cachedAuthToken = authToken;
|
|
@@ -5974,12 +6125,12 @@
|
|
|
5974
6125
|
if (cachedAuthToken && cachedAuthToken === authToken) {
|
|
5975
6126
|
if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
|
|
5976
6127
|
// eslint-disable-next-line no-alert
|
|
5977
|
-
alert(DUPLICATE_TOKEN_ERR);
|
|
6128
|
+
alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
5978
6129
|
}
|
|
5979
|
-
throw new Error(DUPLICATE_TOKEN_ERR);
|
|
6130
|
+
throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
5980
6131
|
}
|
|
5981
6132
|
else {
|
|
5982
|
-
throw new Error(
|
|
6133
|
+
throw new Error(ERROR_MESSAGE.INVALID_TOKEN_ERROR);
|
|
5983
6134
|
}
|
|
5984
6135
|
};
|
|
5985
6136
|
/**
|
|
@@ -6591,14 +6742,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6591
6742
|
return underlyingDataPoint;
|
|
6592
6743
|
}
|
|
6593
6744
|
|
|
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
6745
|
/**
|
|
6603
6746
|
* Copyright (c) 2023
|
|
6604
6747
|
*
|
|
@@ -12649,6 +12792,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12649
12792
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
12650
12793
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
12651
12794
|
let mixpanelInstance;
|
|
12795
|
+
/**
|
|
12796
|
+
* Enum of mixpanel events
|
|
12797
|
+
* @hidden
|
|
12798
|
+
*/
|
|
12652
12799
|
const MIXPANEL_EVENT = {
|
|
12653
12800
|
VISUAL_SDK_RENDER_START: 'visual-sdk-render-start',
|
|
12654
12801
|
VISUAL_SDK_CALLED_INIT: 'visual-sdk-called-init',
|
|
@@ -12693,7 +12840,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12693
12840
|
function initMixpanel(sessionInfo) {
|
|
12694
12841
|
var _a;
|
|
12695
12842
|
if (!sessionInfo || !sessionInfo.mixpanelToken) {
|
|
12696
|
-
logger.error(
|
|
12843
|
+
logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
|
|
12697
12844
|
return;
|
|
12698
12845
|
}
|
|
12699
12846
|
// On a public cluster the user is anonymous, so don't set the identify to
|
|
@@ -13059,6 +13206,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13059
13206
|
}
|
|
13060
13207
|
});
|
|
13061
13208
|
|
|
13209
|
+
var ReportType;
|
|
13210
|
+
(function (ReportType) {
|
|
13211
|
+
ReportType["CSP_VIOLATION"] = "csp-violation";
|
|
13212
|
+
ReportType["DEPRECATION"] = "deprecation";
|
|
13213
|
+
ReportType["INTERVENTION"] = "intervention";
|
|
13214
|
+
})(ReportType || (ReportType = {}));
|
|
13215
|
+
|
|
13062
13216
|
/**
|
|
13063
13217
|
*
|
|
13064
13218
|
* @param url
|
|
@@ -13230,7 +13384,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13230
13384
|
*/
|
|
13231
13385
|
function notifyAuthSDKSuccess() {
|
|
13232
13386
|
{
|
|
13233
|
-
logger.error(
|
|
13387
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13234
13388
|
return;
|
|
13235
13389
|
}
|
|
13236
13390
|
}
|
|
@@ -13239,7 +13393,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13239
13393
|
*/
|
|
13240
13394
|
async function notifyAuthSuccess() {
|
|
13241
13395
|
{
|
|
13242
|
-
logger.error(
|
|
13396
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13243
13397
|
return;
|
|
13244
13398
|
}
|
|
13245
13399
|
}
|
|
@@ -13249,7 +13403,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13249
13403
|
*/
|
|
13250
13404
|
function notifyAuthFailure(failureType) {
|
|
13251
13405
|
{
|
|
13252
|
-
logger.error(
|
|
13406
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13253
13407
|
return;
|
|
13254
13408
|
}
|
|
13255
13409
|
}
|
|
@@ -13258,7 +13412,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13258
13412
|
*/
|
|
13259
13413
|
function notifyLogout() {
|
|
13260
13414
|
{
|
|
13261
|
-
logger.error(
|
|
13415
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13262
13416
|
return;
|
|
13263
13417
|
}
|
|
13264
13418
|
}
|
|
@@ -13611,7 +13765,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13611
13765
|
if (!ignoreNoCookieAccess) {
|
|
13612
13766
|
if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
|
|
13613
13767
|
// eslint-disable-next-line no-alert
|
|
13614
|
-
alert(
|
|
13768
|
+
alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
|
|
13615
13769
|
}
|
|
13616
13770
|
// eslint-disable-next-line no-param-reassign
|
|
13617
13771
|
containerEl.innerHTML = loginFailedMessage;
|
|
@@ -13727,7 +13881,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13727
13881
|
});
|
|
13728
13882
|
}
|
|
13729
13883
|
|
|
13730
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.
|
|
13884
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.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","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={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/lodash":"^4.17.0","@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","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
13885
|
|
|
13732
13886
|
/**
|
|
13733
13887
|
* Copyright (c) 2022
|
|
@@ -13825,7 +13979,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13825
13979
|
});
|
|
13826
13980
|
}
|
|
13827
13981
|
catch (e) {
|
|
13828
|
-
logger.error(
|
|
13982
|
+
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
13829
13983
|
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
13830
13984
|
}
|
|
13831
13985
|
}
|
|
@@ -14033,7 +14187,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14033
14187
|
if (this.embedConfig.currencyFormat) {
|
|
14034
14188
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14035
14189
|
}
|
|
14036
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
14190
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
|
|
14037
14191
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
14038
14192
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
14039
14193
|
return queryParams;
|
|
@@ -14094,6 +14248,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14094
14248
|
if (insertInToSlide) {
|
|
14095
14249
|
queryParams[Param.ShowInsertToSlide] = insertInToSlide;
|
|
14096
14250
|
}
|
|
14251
|
+
if (disableRedirectionLinksInNewTab) {
|
|
14252
|
+
queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
|
|
14253
|
+
}
|
|
14097
14254
|
queryParams[Param.OverrideNativeConsole] = true;
|
|
14098
14255
|
queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
|
|
14099
14256
|
return queryParams;
|
|
@@ -14138,7 +14295,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14138
14295
|
iFrame.mozallowfullscreen = true;
|
|
14139
14296
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14140
14297
|
// @ts-ignore
|
|
14141
|
-
iFrame.allow = 'clipboard-read; clipboard-write';
|
|
14298
|
+
iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
|
|
14142
14299
|
const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
|
|
14143
14300
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
14144
14301
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
@@ -14521,7 +14678,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14521
14678
|
*/
|
|
14522
14679
|
preRender(showPreRenderByDefault = false) {
|
|
14523
14680
|
if (!this.viewConfig.preRenderId) {
|
|
14524
|
-
logger.error(
|
|
14681
|
+
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
14525
14682
|
return this;
|
|
14526
14683
|
}
|
|
14527
14684
|
this.isPreRendered = true;
|
|
@@ -14594,7 +14751,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14594
14751
|
*/
|
|
14595
14752
|
showPreRender() {
|
|
14596
14753
|
if (!this.viewConfig.preRenderId) {
|
|
14597
|
-
logger.error(
|
|
14754
|
+
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
14598
14755
|
return;
|
|
14599
14756
|
}
|
|
14600
14757
|
if (!this.isPreRenderAvailable()) {
|
|
@@ -14636,7 +14793,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14636
14793
|
*/
|
|
14637
14794
|
syncPreRenderStyle() {
|
|
14638
14795
|
if (!this.isPreRenderAvailable() || !this.el) {
|
|
14639
|
-
logger.error(
|
|
14796
|
+
logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
|
|
14640
14797
|
return;
|
|
14641
14798
|
}
|
|
14642
14799
|
const elBoundingClient = this.el.getBoundingClientRect();
|
|
@@ -14940,7 +15097,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14940
15097
|
*/
|
|
14941
15098
|
getDataSourceMode() {
|
|
14942
15099
|
let dataSourceMode = DataSourceVisualMode.Expanded;
|
|
14943
|
-
if (this.viewConfig.collapseDataSources === true
|
|
15100
|
+
if (this.viewConfig.collapseDataSources === true
|
|
15101
|
+
|| this.viewConfig.collapseDataPanel === true) {
|
|
14944
15102
|
dataSourceMode = DataSourceVisualMode.Collapsed;
|
|
14945
15103
|
}
|
|
14946
15104
|
if (this.viewConfig.hideDataSources === true) {
|
|
@@ -14950,9 +15108,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14950
15108
|
}
|
|
14951
15109
|
getEmbedParams() {
|
|
14952
15110
|
var _a;
|
|
14953
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 =
|
|
15111
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
14954
15112
|
/* eslint-disable-next-line max-len */
|
|
14955
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15113
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
14956
15114
|
const queryParams = this.getBaseQueryParams();
|
|
14957
15115
|
queryParams[Param.HideActions] = [
|
|
14958
15116
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -14996,7 +15154,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14996
15154
|
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
14997
15155
|
}
|
|
14998
15156
|
queryParams[Param.searchEmbed] = true;
|
|
14999
|
-
|
|
15157
|
+
/* eslint-disable-next-line max-len */
|
|
15158
|
+
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15000
15159
|
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15001
15160
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15002
15161
|
=== DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
|
|
@@ -15091,6 +15250,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15091
15250
|
* SpotIQ listing page
|
|
15092
15251
|
*/
|
|
15093
15252
|
Page["SpotIQ"] = "insights";
|
|
15253
|
+
/**
|
|
15254
|
+
* Monitor Alerts Page
|
|
15255
|
+
*/
|
|
15256
|
+
Page["Monitor"] = "monitor";
|
|
15094
15257
|
})(exports.Page || (exports.Page = {}));
|
|
15095
15258
|
/**
|
|
15096
15259
|
* Define the initial state os column custom group accordions
|
|
@@ -15111,6 +15274,12 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15111
15274
|
*/
|
|
15112
15275
|
DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
|
|
15113
15276
|
})(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
|
|
15277
|
+
var HomePageSearchBarMode;
|
|
15278
|
+
(function (HomePageSearchBarMode) {
|
|
15279
|
+
HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
|
|
15280
|
+
HomePageSearchBarMode["AI_ANSWER"] = "aiAnswer";
|
|
15281
|
+
HomePageSearchBarMode["NONE"] = "none";
|
|
15282
|
+
})(HomePageSearchBarMode || (HomePageSearchBarMode = {}));
|
|
15114
15283
|
/**
|
|
15115
15284
|
* Embeds full ThoughtSpot experience in a host application.
|
|
15116
15285
|
* @group Embed components
|
|
@@ -15151,9 +15320,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15151
15320
|
* embedded Liveboard or visualization.
|
|
15152
15321
|
*/
|
|
15153
15322
|
getEmbedParams() {
|
|
15154
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 =
|
|
15323
|
+
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
15324
|
/* eslint-disable-next-line max-len */
|
|
15156
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, } = this.viewConfig;
|
|
15325
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15157
15326
|
let params = {};
|
|
15158
15327
|
params[Param.EmbedApp] = true;
|
|
15159
15328
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15191,10 +15360,13 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15191
15360
|
/* eslint-disable-next-line max-len */
|
|
15192
15361
|
params[Param.IsOnBeforeGetVizDataInterceptEnabled] = isOnBeforeGetVizDataInterceptEnabled;
|
|
15193
15362
|
}
|
|
15363
|
+
if (homePageSearchBarMode) {
|
|
15364
|
+
params[Param.HomePageSearchBarMode] = homePageSearchBarMode;
|
|
15365
|
+
}
|
|
15194
15366
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15195
15367
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
15196
15368
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
15197
|
-
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15369
|
+
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15198
15370
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15199
15371
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15200
15372
|
=== DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
|
|
@@ -15241,6 +15413,8 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15241
15413
|
return 'data/tables';
|
|
15242
15414
|
case exports.Page.SpotIQ:
|
|
15243
15415
|
return modularHomeExperience ? 'home/spotiq-analysis' : 'insights/results';
|
|
15416
|
+
case exports.Page.Monitor:
|
|
15417
|
+
return modularHomeExperience ? 'home/monitor-alerts' : 'insights/monitor-alerts';
|
|
15244
15418
|
case exports.Page.Home:
|
|
15245
15419
|
default:
|
|
15246
15420
|
return 'home';
|
|
@@ -15432,7 +15606,7 @@ query GetEurekaVizSnapshots(
|
|
|
15432
15606
|
let params = {};
|
|
15433
15607
|
params[Param.EmbedApp] = true;
|
|
15434
15608
|
params = this.getBaseQueryParams(params);
|
|
15435
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, } = this.viewConfig;
|
|
15609
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
15436
15610
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15437
15611
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15438
15612
|
if (fullHeight === true) {
|
|
@@ -15476,6 +15650,7 @@ query GetEurekaVizSnapshots(
|
|
|
15476
15650
|
params[Param.enableAskSage] = enableAskSage;
|
|
15477
15651
|
}
|
|
15478
15652
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
15653
|
+
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15479
15654
|
const queryParams = getQueryParamString(params, true);
|
|
15480
15655
|
return queryParams;
|
|
15481
15656
|
}
|