@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.
- package/cjs/package.json +1 -1
- 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/embed/app.d.ts +1 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +2 -2
- package/cjs/src/embed/app.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/search.d.ts +14 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +5 -3
- package/cjs/src/embed/search.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.map +1 -1
- package/cjs/src/mixpanel-service.js +2 -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 +167 -6
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +140 -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/embed/app.d.ts +1 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +14 -0
- 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.map +1 -1
- package/dist/src/types.d.ts +167 -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 +193 -36
- package/dist/tsembed-react.js +193 -36
- package/dist/tsembed.es.js +240 -37
- package/dist/tsembed.js +240 -37
- package/dist/visual-embed-sdk-react-full.d.ts +183 -7
- package/dist/visual-embed-sdk-react.d.ts +183 -7
- package/dist/visual-embed-sdk.d.ts +183 -7
- package/lib/package.json +1 -1
- 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/embed/app.d.ts +1 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +2 -2
- package/lib/src/embed/app.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/search.d.ts +14 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +5 -3
- package/lib/src/embed/search.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.map +1 -1
- package/lib/src/mixpanel-service.js +2 -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 +167 -6
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +140 -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 +183 -7
- package/package.json +1 -1
- package/src/auth.ts +6 -5
- package/src/authToken.ts +5 -9
- package/src/embed/app.ts +3 -1
- package/src/embed/base.ts +3 -1
- package/src/embed/search.ts +19 -2
- package/src/embed/ts-embed.ts +13 -6
- package/src/errors.ts +11 -0
- package/src/mixpanel-service.ts +2 -1
- package/src/react/index.spec.tsx +1 -1
- package/src/types.ts +170 -3
- 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.js
CHANGED
|
@@ -500,6 +500,10 @@
|
|
|
500
500
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
501
501
|
*/
|
|
502
502
|
HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
|
|
503
|
+
/**
|
|
504
|
+
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
505
|
+
*/
|
|
506
|
+
HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
|
|
503
507
|
})(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
|
|
504
508
|
(function (RuntimeFilterOp) {
|
|
505
509
|
/**
|
|
@@ -1135,6 +1139,7 @@
|
|
|
1135
1139
|
/**
|
|
1136
1140
|
* Emitted when a user clicks the **Update TML** action on
|
|
1137
1141
|
* embedded Liveboard.
|
|
1142
|
+
*
|
|
1138
1143
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1139
1144
|
* @example
|
|
1140
1145
|
*```js
|
|
@@ -1146,6 +1151,7 @@
|
|
|
1146
1151
|
/**
|
|
1147
1152
|
* Emitted when a user clicks the **Edit TML** action
|
|
1148
1153
|
* on an embedded Liveboard.
|
|
1154
|
+
*
|
|
1149
1155
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1150
1156
|
* @example
|
|
1151
1157
|
*```js
|
|
@@ -1732,16 +1738,20 @@
|
|
|
1732
1738
|
/**
|
|
1733
1739
|
* Trigger the **Export TML** action on an embedded Liveboard or
|
|
1734
1740
|
* Answer.
|
|
1741
|
+
*
|
|
1735
1742
|
* @example
|
|
1736
1743
|
* ```js
|
|
1737
1744
|
* liveboardEmbed.trigger(HostEvent.ExportTML)
|
|
1738
1745
|
* ```
|
|
1746
|
+
*
|
|
1739
1747
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1740
1748
|
*/
|
|
1741
1749
|
HostEvent["ExportTML"] = "exportTSL";
|
|
1742
1750
|
/**
|
|
1743
1751
|
* Trigger the **Edit TML** action on an embedded Liveboard or
|
|
1744
1752
|
* saved Answers in the full application embedding.
|
|
1753
|
+
*
|
|
1754
|
+
*
|
|
1745
1755
|
* @example
|
|
1746
1756
|
* ```js
|
|
1747
1757
|
* liveboardEmbed.trigger(HostEvent.EditTML)
|
|
@@ -1832,13 +1842,15 @@
|
|
|
1832
1842
|
*
|
|
1833
1843
|
* @example
|
|
1834
1844
|
* ```js
|
|
1835
|
-
*
|
|
1845
|
+
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
1836
1846
|
* ```
|
|
1837
1847
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1838
1848
|
*/
|
|
1839
1849
|
HostEvent["CreateMonitor"] = "createMonitor";
|
|
1840
1850
|
/**
|
|
1841
|
-
* Trigger the **Manage alerts** action on a
|
|
1851
|
+
* Trigger the **Manage alerts** action on a KPI chart
|
|
1852
|
+
* in a visualization or saved Answer.
|
|
1853
|
+
*
|
|
1842
1854
|
* @param - an object with `vizId` as a key
|
|
1843
1855
|
* @example
|
|
1844
1856
|
* ```js
|
|
@@ -1846,6 +1858,16 @@
|
|
|
1846
1858
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1847
1859
|
* })
|
|
1848
1860
|
* ```
|
|
1861
|
+
*
|
|
1862
|
+
* @example
|
|
1863
|
+
* ```js
|
|
1864
|
+
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1865
|
+
* ```
|
|
1866
|
+
*
|
|
1867
|
+
* @example
|
|
1868
|
+
* ```js
|
|
1869
|
+
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
1870
|
+
* ```
|
|
1849
1871
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1850
1872
|
*/
|
|
1851
1873
|
HostEvent["ManageMonitor"] = "manageMonitor";
|
|
@@ -1856,6 +1878,7 @@
|
|
|
1856
1878
|
* This event is not supported in visualization embed and search embed.
|
|
1857
1879
|
* @param - object - To trigger the action for a specific visualization
|
|
1858
1880
|
* in Liveboard embed, pass in `vizId` as a key.
|
|
1881
|
+
*
|
|
1859
1882
|
* @example
|
|
1860
1883
|
* ```js
|
|
1861
1884
|
* liveboardEmbed.trigger(HostEvent.Edit)
|
|
@@ -2122,6 +2145,7 @@
|
|
|
2122
2145
|
/**
|
|
2123
2146
|
* Get details of filters applied on the Liveboard.
|
|
2124
2147
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
2148
|
+
*
|
|
2125
2149
|
* @example
|
|
2126
2150
|
* ```js
|
|
2127
2151
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -2417,6 +2441,7 @@
|
|
|
2417
2441
|
Param["IsFullAppEmbed"] = "isFullAppEmbed";
|
|
2418
2442
|
Param["IsOnBeforeGetVizDataInterceptEnabled"] = "isOnBeforeGetVizDataInterceptEnabled";
|
|
2419
2443
|
Param["FocusSearchBarOnRender"] = "focusSearchBarOnRender";
|
|
2444
|
+
Param["DisableRedirectionLinksInNewTab"] = "disableRedirectionLinksInNewTab";
|
|
2420
2445
|
})(Param || (Param = {}));
|
|
2421
2446
|
(function (Action) {
|
|
2422
2447
|
/**
|
|
@@ -2440,6 +2465,7 @@
|
|
|
2440
2465
|
* The **Save as View** action on the Answer
|
|
2441
2466
|
* page. Saves an Answer as a View object in the full
|
|
2442
2467
|
* application embedding mode.
|
|
2468
|
+
*
|
|
2443
2469
|
* @example
|
|
2444
2470
|
* ```js
|
|
2445
2471
|
* disabledActions: [Action.SaveAsView]
|
|
@@ -2539,6 +2565,7 @@
|
|
|
2539
2565
|
*/
|
|
2540
2566
|
Action["ConfigureFilter"] = "configureFilter";
|
|
2541
2567
|
Action["CollapseDataSources"] = "collapseDataSources";
|
|
2568
|
+
Action["CollapseDataPanel"] = "collapseDataPanel";
|
|
2542
2569
|
/**
|
|
2543
2570
|
* The **Choose sources** button on Search page.
|
|
2544
2571
|
* Allows selecting data sources for search queries.
|
|
@@ -2896,6 +2923,7 @@
|
|
|
2896
2923
|
/**
|
|
2897
2924
|
* The **Delete** action for Answers in the full application
|
|
2898
2925
|
* embedding mode.
|
|
2926
|
+
*
|
|
2899
2927
|
* @example
|
|
2900
2928
|
* ```js
|
|
2901
2929
|
* disabledActions: [Action.AnswerDelete]
|
|
@@ -2934,12 +2962,15 @@
|
|
|
2934
2962
|
* The Create alert action on KPI charts.
|
|
2935
2963
|
* @example
|
|
2936
2964
|
* ```js
|
|
2937
|
-
* disabledActions: [Action.CreateMonitor
|
|
2965
|
+
* disabledActions: [Action.CreateMonitor]
|
|
2938
2966
|
* ```
|
|
2939
2967
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2940
2968
|
*/
|
|
2941
2969
|
Action["CreateMonitor"] = "createMonitor";
|
|
2942
2970
|
/**
|
|
2971
|
+
* @deprecated
|
|
2972
|
+
* Reports errors
|
|
2973
|
+
*
|
|
2943
2974
|
* @example
|
|
2944
2975
|
* ```js
|
|
2945
2976
|
* disabledActions: [Action.ReportError]
|
|
@@ -3164,35 +3195,87 @@
|
|
|
3164
3195
|
*/
|
|
3165
3196
|
Action["RenameModalTitleDescription"] = "renameModalTitleDescription";
|
|
3166
3197
|
/**
|
|
3198
|
+
*
|
|
3199
|
+
* The **Request Verification** action on the Liveboard.
|
|
3200
|
+
* Triggers a Liveboard verification request.
|
|
3201
|
+
*
|
|
3202
|
+
* @example
|
|
3203
|
+
* ```js
|
|
3204
|
+
* disabledActions: [Action.RequestVerification]
|
|
3205
|
+
* ```
|
|
3167
3206
|
*
|
|
3168
3207
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3169
3208
|
*/
|
|
3170
3209
|
Action["RequestVerification"] = "requestVerification";
|
|
3171
3210
|
/**
|
|
3211
|
+
*
|
|
3212
|
+
* Allows users to mark a Liveboard as verified.
|
|
3213
|
+
*
|
|
3214
|
+
* @example
|
|
3215
|
+
* ```js
|
|
3216
|
+
* disabledActions: [Action.MarkAsVerified]
|
|
3217
|
+
* ```
|
|
3172
3218
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3173
3219
|
*/
|
|
3174
3220
|
Action["MarkAsVerified"] = "markAsVerified";
|
|
3175
3221
|
/**
|
|
3222
|
+
* The **Add Tab** action on a Liveboard.
|
|
3223
|
+
* Allows adding a new tab to a Liveboard view.
|
|
3224
|
+
*
|
|
3225
|
+
* @example
|
|
3226
|
+
* ```js
|
|
3227
|
+
* disabledActions: [Action.AddTab]
|
|
3228
|
+
* ```
|
|
3176
3229
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3177
3230
|
*/
|
|
3178
3231
|
Action["AddTab"] = "addTab";
|
|
3179
3232
|
/**
|
|
3233
|
+
*
|
|
3234
|
+
* Initiates contextual change analysis on KPI charts.
|
|
3235
|
+
*
|
|
3236
|
+
* @example
|
|
3237
|
+
* ```js
|
|
3238
|
+
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
3239
|
+
* ```
|
|
3180
3240
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3181
3241
|
*/
|
|
3182
3242
|
Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
|
|
3183
3243
|
/**
|
|
3244
|
+
*
|
|
3245
|
+
* @example
|
|
3246
|
+
* ```js
|
|
3247
|
+
* disabledActions: [Action.ShowSageQuery]
|
|
3248
|
+
* ```
|
|
3249
|
+
*
|
|
3184
3250
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3185
3251
|
*/
|
|
3186
3252
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
3187
3253
|
/**
|
|
3254
|
+
*
|
|
3255
|
+
* @example
|
|
3256
|
+
* ```js
|
|
3257
|
+
* disabledActions: [Action.EditSageAnswer]
|
|
3258
|
+
* ```
|
|
3188
3259
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3189
3260
|
*/
|
|
3190
3261
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3191
3262
|
/**
|
|
3263
|
+
*
|
|
3264
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
3265
|
+
*
|
|
3266
|
+
* @example
|
|
3267
|
+
* ```js
|
|
3268
|
+
* disabledActions: [Action.SageAnswerFeedback]
|
|
3269
|
+
* ```
|
|
3192
3270
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3193
3271
|
*/
|
|
3194
3272
|
Action["SageAnswerFeedback"] = "sageAnswerFeedback";
|
|
3195
3273
|
/**
|
|
3274
|
+
*
|
|
3275
|
+
* @example
|
|
3276
|
+
* ```js
|
|
3277
|
+
* disabledActions: [Action.ModifySageAnswer]
|
|
3278
|
+
* ```
|
|
3196
3279
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3197
3280
|
*/
|
|
3198
3281
|
Action["ModifySageAnswer"] = "modifySageAnswer";
|
|
@@ -3314,6 +3397,60 @@
|
|
|
3314
3397
|
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
3315
3398
|
*/
|
|
3316
3399
|
Action["AIHighlights"] = "AIHighlights";
|
|
3400
|
+
/**
|
|
3401
|
+
* Action ID for edit schedule action on schedule on homepage
|
|
3402
|
+
* @example
|
|
3403
|
+
* ```js
|
|
3404
|
+
* disabledActions: [Action.EditScheduleHomepage]
|
|
3405
|
+
* ```
|
|
3406
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3407
|
+
*/
|
|
3408
|
+
Action["EditScheduleHomepage"] = "editScheduleHomepage";
|
|
3409
|
+
/**
|
|
3410
|
+
* Action ID for pause schedule action on schedule on homepage
|
|
3411
|
+
* @example
|
|
3412
|
+
* ```js
|
|
3413
|
+
* disabledActions: [Action.PauseScheduleHomepage]
|
|
3414
|
+
* ```
|
|
3415
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3416
|
+
*/
|
|
3417
|
+
Action["PauseScheduleHomepage"] = "pauseScheduleHomepage";
|
|
3418
|
+
/**
|
|
3419
|
+
* Action ID for view schedule run action on schedule on homepage
|
|
3420
|
+
* @example
|
|
3421
|
+
* ```js
|
|
3422
|
+
* disabledActions: [Action.ViewScheduleRunHomepage]
|
|
3423
|
+
* ```
|
|
3424
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3425
|
+
*/
|
|
3426
|
+
Action["ViewScheduleRunHomepage"] = "viewScheduleRunHomepage";
|
|
3427
|
+
/**
|
|
3428
|
+
* Action ID for unsubscribe schedule action on schedule on homepage
|
|
3429
|
+
* @example
|
|
3430
|
+
* ```js
|
|
3431
|
+
* disabledActions: [Action.UnsubscribeScheduleHomepage]
|
|
3432
|
+
* ```
|
|
3433
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3434
|
+
*/
|
|
3435
|
+
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3436
|
+
/**
|
|
3437
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
3438
|
+
* @example
|
|
3439
|
+
* ```js
|
|
3440
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
3441
|
+
* ```
|
|
3442
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3443
|
+
*/
|
|
3444
|
+
Action["DeleteScheduleHomepage"] = "deleteScheduleHomepage";
|
|
3445
|
+
/**
|
|
3446
|
+
* The **Analyze CTA** action on KPI chart.
|
|
3447
|
+
* @example
|
|
3448
|
+
* ```js
|
|
3449
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
3450
|
+
* ```
|
|
3451
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3452
|
+
*/
|
|
3453
|
+
Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
|
|
3317
3454
|
})(exports.Action || (exports.Action = {}));
|
|
3318
3455
|
(function (PrefetchFeatures) {
|
|
3319
3456
|
PrefetchFeatures["FullApp"] = "FullApp";
|
|
@@ -5675,6 +5812,25 @@
|
|
|
5675
5812
|
|
|
5676
5813
|
var isEqual_1 = isEqual;
|
|
5677
5814
|
|
|
5815
|
+
const ERROR_MESSAGE = {
|
|
5816
|
+
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
5817
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
5818
|
+
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
5819
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
5820
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
5821
|
+
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.',
|
|
5822
|
+
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.',
|
|
5823
|
+
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
5824
|
+
SESSION_INFO_FAILED: 'Failed to get session info',
|
|
5825
|
+
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
5826
|
+
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
5827
|
+
PRERENDER_ID_MISSING: 'PreRender id is required for preRender',
|
|
5828
|
+
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
5829
|
+
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
5830
|
+
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',
|
|
5831
|
+
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
5832
|
+
};
|
|
5833
|
+
|
|
5678
5834
|
const EndPoints = {
|
|
5679
5835
|
AUTH_VERIFICATION: '/callosum/v1/session/info',
|
|
5680
5836
|
SESSION_INFO: '/callosum/v1/session/info',
|
|
@@ -5788,9 +5944,6 @@
|
|
|
5788
5944
|
});
|
|
5789
5945
|
}
|
|
5790
5946
|
|
|
5791
|
-
const DUPLICATE_TOKEN_ERR = 'Duplicate token, please issue a new token every time getAuthToken callback is called.'
|
|
5792
|
-
+ 'See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.';
|
|
5793
|
-
const INVALID_TOKEN_ERR = 'Invalid token received form token callback or authToken endpoint.';
|
|
5794
5947
|
let cachedAuthToken = null;
|
|
5795
5948
|
// This method can be used to get the authToken using the embedConfig
|
|
5796
5949
|
async function getAuthenticationToken(embedConfig) {
|
|
@@ -5821,7 +5974,7 @@
|
|
|
5821
5974
|
await validateAuthToken(embedConfig, authToken);
|
|
5822
5975
|
}
|
|
5823
5976
|
catch (e) {
|
|
5824
|
-
logger.error(
|
|
5977
|
+
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
|
|
5825
5978
|
throw e;
|
|
5826
5979
|
}
|
|
5827
5980
|
cachedAuthToken = authToken;
|
|
@@ -5843,12 +5996,12 @@
|
|
|
5843
5996
|
if (cachedAuthToken && cachedAuthToken === authToken) {
|
|
5844
5997
|
if (!embedConfig.suppressErrorAlerts && !suppressAlert) {
|
|
5845
5998
|
// eslint-disable-next-line no-alert
|
|
5846
|
-
alert(DUPLICATE_TOKEN_ERR);
|
|
5999
|
+
alert(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
5847
6000
|
}
|
|
5848
|
-
throw new Error(DUPLICATE_TOKEN_ERR);
|
|
6001
|
+
throw new Error(ERROR_MESSAGE.DUPLICATE_TOKEN_ERR);
|
|
5849
6002
|
}
|
|
5850
6003
|
else {
|
|
5851
|
-
throw new Error(
|
|
6004
|
+
throw new Error(ERROR_MESSAGE.INVALID_TOKEN_ERROR);
|
|
5852
6005
|
}
|
|
5853
6006
|
};
|
|
5854
6007
|
/**
|
|
@@ -6471,14 +6624,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6471
6624
|
return underlyingDataPoint;
|
|
6472
6625
|
}
|
|
6473
6626
|
|
|
6474
|
-
const ERROR_MESSAGE = {
|
|
6475
|
-
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6476
|
-
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a liveboard to embed.',
|
|
6477
|
-
TRIGGER_TIMED_OUT: 'Trigger timedout in getting response',
|
|
6478
|
-
SEARCHEMBED_BETA_WRANING_MESSAGE: 'Search Embed is in Beta in this release.',
|
|
6479
|
-
SAGE_EMBED_BETA_WARNING_MESSAGE: 'Sage Embed is in Beta in this release.',
|
|
6480
|
-
};
|
|
6481
|
-
|
|
6482
6627
|
/**
|
|
6483
6628
|
* Copyright (c) 2023
|
|
6484
6629
|
*
|
|
@@ -12573,7 +12718,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12573
12718
|
function initMixpanel(sessionInfo) {
|
|
12574
12719
|
var _a;
|
|
12575
12720
|
if (!sessionInfo || !sessionInfo.mixpanelToken) {
|
|
12576
|
-
logger.error(
|
|
12721
|
+
logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
|
|
12577
12722
|
return;
|
|
12578
12723
|
}
|
|
12579
12724
|
// On a public cluster the user is anonymous, so don't set the identify to
|
|
@@ -12939,6 +13084,58 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
12939
13084
|
}
|
|
12940
13085
|
});
|
|
12941
13086
|
|
|
13087
|
+
var ReportType;
|
|
13088
|
+
(function (ReportType) {
|
|
13089
|
+
ReportType["CSP_VIOLATION"] = "csp-violation";
|
|
13090
|
+
ReportType["DEPRECATION"] = "deprecation";
|
|
13091
|
+
ReportType["INTERVENTION"] = "intervention";
|
|
13092
|
+
})(ReportType || (ReportType = {}));
|
|
13093
|
+
let globalObserver = null;
|
|
13094
|
+
/**
|
|
13095
|
+
* Register a global ReportingObserver to capture all unhandled errors
|
|
13096
|
+
* @param overrideExisting boolean to override existing observer
|
|
13097
|
+
* @returns ReportingObserver | null
|
|
13098
|
+
*/
|
|
13099
|
+
function registerReportingObserver(overrideExisting = false) {
|
|
13100
|
+
if (!(window.ReportingObserver)) {
|
|
13101
|
+
logger.warn(ERROR_MESSAGE.MISSING_REPORTING_OBSERVER);
|
|
13102
|
+
return null;
|
|
13103
|
+
}
|
|
13104
|
+
if (overrideExisting) {
|
|
13105
|
+
resetGlobalReportingObserver();
|
|
13106
|
+
}
|
|
13107
|
+
if (globalObserver) {
|
|
13108
|
+
return globalObserver;
|
|
13109
|
+
}
|
|
13110
|
+
const embedConfig = getEmbedConfig();
|
|
13111
|
+
globalObserver = new ReportingObserver((reports) => {
|
|
13112
|
+
reports.forEach((report) => {
|
|
13113
|
+
const { type, url, body } = report;
|
|
13114
|
+
const reportBody = body;
|
|
13115
|
+
const isThoughtSpotHost = url
|
|
13116
|
+
&& url.startsWith(embedConfig.thoughtSpotHost);
|
|
13117
|
+
const isFrameHostError = type === ReportType.CSP_VIOLATION
|
|
13118
|
+
&& reportBody.effectiveDirective === 'frame-ancestors';
|
|
13119
|
+
if (isThoughtSpotHost && isFrameHostError) {
|
|
13120
|
+
if (!embedConfig.suppressErrorAlerts) {
|
|
13121
|
+
alert(ERROR_MESSAGE.CSP_VIOLATION_ALERT);
|
|
13122
|
+
}
|
|
13123
|
+
logger.error(ERROR_MESSAGE.CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE);
|
|
13124
|
+
}
|
|
13125
|
+
});
|
|
13126
|
+
}, { buffered: true });
|
|
13127
|
+
globalObserver.observe();
|
|
13128
|
+
return globalObserver;
|
|
13129
|
+
}
|
|
13130
|
+
/**
|
|
13131
|
+
* Resets the global ReportingObserver
|
|
13132
|
+
*/
|
|
13133
|
+
function resetGlobalReportingObserver() {
|
|
13134
|
+
if (globalObserver)
|
|
13135
|
+
globalObserver.disconnect();
|
|
13136
|
+
globalObserver = null;
|
|
13137
|
+
}
|
|
13138
|
+
|
|
12942
13139
|
/**
|
|
12943
13140
|
*
|
|
12944
13141
|
* @param url
|
|
@@ -13115,7 +13312,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13115
13312
|
*/
|
|
13116
13313
|
function notifyAuthSDKSuccess() {
|
|
13117
13314
|
if (!authEE) {
|
|
13118
|
-
logger.error(
|
|
13315
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13119
13316
|
return;
|
|
13120
13317
|
}
|
|
13121
13318
|
authEE.emit(exports.AuthStatus.SDK_SUCCESS);
|
|
@@ -13125,7 +13322,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13125
13322
|
*/
|
|
13126
13323
|
async function notifyAuthSuccess() {
|
|
13127
13324
|
if (!authEE) {
|
|
13128
|
-
logger.error(
|
|
13325
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13129
13326
|
return;
|
|
13130
13327
|
}
|
|
13131
13328
|
try {
|
|
@@ -13133,7 +13330,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13133
13330
|
authEE.emit(exports.AuthStatus.SUCCESS, sessionInfo);
|
|
13134
13331
|
}
|
|
13135
13332
|
catch (e) {
|
|
13136
|
-
logger.error(
|
|
13333
|
+
logger.error(ERROR_MESSAGE.SESSION_INFO_FAILED);
|
|
13137
13334
|
}
|
|
13138
13335
|
}
|
|
13139
13336
|
/**
|
|
@@ -13142,7 +13339,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13142
13339
|
*/
|
|
13143
13340
|
function notifyAuthFailure(failureType) {
|
|
13144
13341
|
if (!authEE) {
|
|
13145
|
-
logger.error(
|
|
13342
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13146
13343
|
return;
|
|
13147
13344
|
}
|
|
13148
13345
|
authEE.emit(exports.AuthStatus.FAILURE, failureType);
|
|
@@ -13152,7 +13349,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13152
13349
|
*/
|
|
13153
13350
|
function notifyLogout() {
|
|
13154
13351
|
if (!authEE) {
|
|
13155
|
-
logger.error(
|
|
13352
|
+
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13156
13353
|
return;
|
|
13157
13354
|
}
|
|
13158
13355
|
authEE.emit(exports.AuthStatus.LOGOUT);
|
|
@@ -13546,6 +13743,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13546
13743
|
thoughtSpotHost: getThoughtSpotHost(embedConfig),
|
|
13547
13744
|
}));
|
|
13548
13745
|
setGlobalLogLevelOverride(embedConfig.logLevel);
|
|
13746
|
+
registerReportingObserver();
|
|
13549
13747
|
const authEE = new eventemitter3();
|
|
13550
13748
|
setAuthEE(authEE);
|
|
13551
13749
|
handleAuth();
|
|
@@ -13763,7 +13961,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13763
13961
|
if (!ignoreNoCookieAccess) {
|
|
13764
13962
|
if (!suppressNoCookieAccessAlert && !suppressErrorAlerts) {
|
|
13765
13963
|
// eslint-disable-next-line no-alert
|
|
13766
|
-
alert(
|
|
13964
|
+
alert(ERROR_MESSAGE.THIRD_PARTY_COOKIE_BLOCKED_ALERT);
|
|
13767
13965
|
}
|
|
13768
13966
|
// eslint-disable-next-line no-param-reassign
|
|
13769
13967
|
containerEl.innerHTML = loginFailedMessage;
|
|
@@ -13879,7 +14077,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13879
14077
|
});
|
|
13880
14078
|
}
|
|
13881
14079
|
|
|
13882
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.
|
|
14080
|
+
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};
|
|
13883
14081
|
|
|
13884
14082
|
/**
|
|
13885
14083
|
* Copyright (c) 2022
|
|
@@ -13977,7 +14175,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13977
14175
|
});
|
|
13978
14176
|
}
|
|
13979
14177
|
catch (e) {
|
|
13980
|
-
logger.error(
|
|
14178
|
+
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
13981
14179
|
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
13982
14180
|
}
|
|
13983
14181
|
}
|
|
@@ -14185,7 +14383,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14185
14383
|
if (this.embedConfig.currencyFormat) {
|
|
14186
14384
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
14187
14385
|
}
|
|
14188
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, } = this.viewConfig;
|
|
14386
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, } = this.viewConfig;
|
|
14189
14387
|
if (Array.isArray(visibleActions) && Array.isArray(hiddenActions)) {
|
|
14190
14388
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
14191
14389
|
return queryParams;
|
|
@@ -14246,6 +14444,9 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14246
14444
|
if (insertInToSlide) {
|
|
14247
14445
|
queryParams[Param.ShowInsertToSlide] = insertInToSlide;
|
|
14248
14446
|
}
|
|
14447
|
+
if (disableRedirectionLinksInNewTab) {
|
|
14448
|
+
queryParams[Param.DisableRedirectionLinksInNewTab] = disableRedirectionLinksInNewTab;
|
|
14449
|
+
}
|
|
14249
14450
|
queryParams[Param.OverrideNativeConsole] = true;
|
|
14250
14451
|
queryParams[Param.ClientLogLevel] = this.embedConfig.logLevel;
|
|
14251
14452
|
return queryParams;
|
|
@@ -14290,7 +14491,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14290
14491
|
iFrame.mozallowfullscreen = true;
|
|
14291
14492
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14292
14493
|
// @ts-ignore
|
|
14293
|
-
iFrame.allow = 'clipboard-read; clipboard-write';
|
|
14494
|
+
iFrame.allow = 'clipboard-read; clipboard-write fullscreen';
|
|
14294
14495
|
const { height: frameHeight, width: frameWidth, ...restParams } = this.viewConfig.frameParams || {};
|
|
14295
14496
|
const width = getCssDimension(frameWidth || DEFAULT_EMBED_WIDTH);
|
|
14296
14497
|
const height = getCssDimension(frameHeight || DEFAULT_EMBED_HEIGHT);
|
|
@@ -14673,7 +14874,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14673
14874
|
*/
|
|
14674
14875
|
preRender(showPreRenderByDefault = false) {
|
|
14675
14876
|
if (!this.viewConfig.preRenderId) {
|
|
14676
|
-
logger.error(
|
|
14877
|
+
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
14677
14878
|
return this;
|
|
14678
14879
|
}
|
|
14679
14880
|
this.isPreRendered = true;
|
|
@@ -14746,7 +14947,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14746
14947
|
*/
|
|
14747
14948
|
showPreRender() {
|
|
14748
14949
|
if (!this.viewConfig.preRenderId) {
|
|
14749
|
-
logger.error(
|
|
14950
|
+
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
14750
14951
|
return;
|
|
14751
14952
|
}
|
|
14752
14953
|
if (!this.isPreRenderAvailable()) {
|
|
@@ -14788,7 +14989,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14788
14989
|
*/
|
|
14789
14990
|
syncPreRenderStyle() {
|
|
14790
14991
|
if (!this.isPreRenderAvailable() || !this.el) {
|
|
14791
|
-
logger.error(
|
|
14992
|
+
logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
|
|
14792
14993
|
return;
|
|
14793
14994
|
}
|
|
14794
14995
|
const elBoundingClient = this.el.getBoundingClientRect();
|
|
@@ -15010,7 +15211,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15010
15211
|
getEmbedParams() {
|
|
15011
15212
|
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,
|
|
15012
15213
|
/* eslint-disable-next-line max-len */
|
|
15013
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, } = this.viewConfig;
|
|
15214
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, } = this.viewConfig;
|
|
15014
15215
|
let params = {};
|
|
15015
15216
|
params[Param.EmbedApp] = true;
|
|
15016
15217
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15051,7 +15252,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
15051
15252
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
15052
15253
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
15053
15254
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
15054
|
-
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially;
|
|
15255
|
+
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15055
15256
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15056
15257
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15057
15258
|
=== DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
|
|
@@ -15512,7 +15713,8 @@ query GetEurekaVizSnapshots(
|
|
|
15512
15713
|
*/
|
|
15513
15714
|
getDataSourceMode() {
|
|
15514
15715
|
let dataSourceMode = exports.DataSourceVisualMode.Expanded;
|
|
15515
|
-
if (this.viewConfig.collapseDataSources === true
|
|
15716
|
+
if (this.viewConfig.collapseDataSources === true
|
|
15717
|
+
|| this.viewConfig.collapseDataPanel === true) {
|
|
15516
15718
|
dataSourceMode = exports.DataSourceVisualMode.Collapsed;
|
|
15517
15719
|
}
|
|
15518
15720
|
if (this.viewConfig.hideDataSources === true) {
|
|
@@ -15524,7 +15726,7 @@ query GetEurekaVizSnapshots(
|
|
|
15524
15726
|
var _a;
|
|
15525
15727
|
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15526
15728
|
/* eslint-disable-next-line max-len */
|
|
15527
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, } = this.viewConfig;
|
|
15729
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
15528
15730
|
const queryParams = this.getBaseQueryParams();
|
|
15529
15731
|
queryParams[Param.HideActions] = [
|
|
15530
15732
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -15568,7 +15770,8 @@ query GetEurekaVizSnapshots(
|
|
|
15568
15770
|
queryParams[Param.UseLastSelectedDataSource] = false;
|
|
15569
15771
|
}
|
|
15570
15772
|
queryParams[Param.searchEmbed] = true;
|
|
15571
|
-
|
|
15773
|
+
/* eslint-disable-next-line max-len */
|
|
15774
|
+
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15572
15775
|
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15573
15776
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15574
15777
|
=== DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
|