@thoughtspot/visual-embed-sdk 1.36.2 → 1.36.3
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/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +10 -3
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/app.d.ts +14 -0
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +4 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +17 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.d.ts +1 -1
- package/cjs/src/embed/embedConfig.d.ts.map +1 -1
- package/cjs/src/embed/embedConfig.js +5 -4
- package/cjs/src/embed/embedConfig.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +4 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/types.d.ts +85 -66
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +78 -59
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils.d.ts +12 -0
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +21 -1
- package/cjs/src/utils.js.map +1 -1
- package/cjs/src/utils.spec.js +15 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-B3hd6DTM.js → index-BJx3m5_V.js} +1 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +14 -0
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.d.ts +1 -1
- package/dist/src/embed/embedConfig.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +4 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/types.d.ts +85 -66
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils.d.ts +12 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +115 -69
- package/dist/tsembed-react.js +114 -68
- package/dist/tsembed.es.js +117 -71
- package/dist/tsembed.js +116 -70
- package/dist/visual-embed-sdk-react-full.d.ts +104 -68
- package/dist/visual-embed-sdk-react.d.ts +104 -68
- package/dist/visual-embed-sdk.d.ts +104 -68
- package/lib/package.json +1 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +10 -3
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/app.d.ts +14 -0
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +4 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +17 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.d.ts +1 -1
- package/lib/src/embed/embedConfig.d.ts.map +1 -1
- package/lib/src/embed/embedConfig.js +5 -4
- package/lib/src/embed/embedConfig.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +4 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/types.d.ts +85 -66
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +78 -59
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.d.ts +12 -0
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +18 -0
- package/lib/src/utils.js.map +1 -1
- package/lib/src/utils.spec.js +16 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +104 -68
- package/package.json +1 -1
- package/src/authToken.ts +11 -3
- package/src/embed/app.spec.ts +27 -0
- package/src/embed/app.ts +19 -0
- package/src/embed/embedConfig.ts +5 -4
- package/src/embed/liveboard.ts +4 -1
- package/src/types.ts +89 -70
- package/src/utils.spec.ts +21 -0
- package/src/utils.ts +21 -0
- package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
- package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
- package/cjs/src/embed/searchEmbed-basic-auth.spec.js +0 -104
- package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
- package/cjs/src/hostEventsTypeMapping.d.ts +0 -2
- package/cjs/src/hostEventsTypeMapping.d.ts.map +0 -1
- package/cjs/src/hostEventsTypeMapping.js +0 -4
- package/cjs/src/hostEventsTypeMapping.js.map +0 -1
- package/cjs/src/utils/embedApi/contracts.d.ts +0 -101
- package/cjs/src/utils/embedApi/contracts.d.ts.map +0 -1
- package/cjs/src/utils/embedApi/contracts.js +0 -17
- package/cjs/src/utils/embedApi/contracts.js.map +0 -1
- package/cjs/src/utils/embedApi/embedApiClient.d.ts +0 -12
- package/cjs/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
- package/cjs/src/utils/embedApi/embedApiClient.js +0 -46
- package/cjs/src/utils/embedApi/embedApiClient.js.map +0 -1
- package/cjs/src/utils/embedApi/processEmbedApi.d.ts +0 -9
- package/cjs/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
- package/cjs/src/utils/embedApi/processEmbedApi.js +0 -18
- package/cjs/src/utils/embedApi/processEmbedApi.js.map +0 -1
- package/dist/index-BBBimG1x.js +0 -7370
- package/dist/index-BGnxP5NY.js +0 -7370
- package/dist/index-CENLvayL.js +0 -7370
- package/dist/index-CR5u7BMC.js +0 -7370
- package/dist/index-CbltIawo.js +0 -7370
- package/dist/index-CoQfqaHj.js +0 -7370
- package/dist/index-CzwzS0P4.js +0 -7370
- package/dist/index-D-9WUCUl.js +0 -7370
- package/dist/index-DFwi_pV_.js +0 -7370
- package/dist/index-DOIjN0N_.js +0 -7370
- package/dist/index-DYBx8SuE.js +0 -7370
- package/dist/index-DaLHJaLd.js +0 -7370
- package/dist/index-DnJX-gN2.js +0 -7370
- package/dist/index-DpuhnTj2.js +0 -7370
- package/dist/index-IDmSUe93.js +0 -7370
- package/dist/index-nWevLycs.js +0 -7370
- package/dist/index-vxW97_xb.js +0 -7370
- package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
- package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
- package/dist/src/hostEventsTypeMapping.d.ts +0 -2
- package/dist/src/hostEventsTypeMapping.d.ts.map +0 -1
- package/dist/src/utils/embedApi/contracts.d.ts +0 -101
- package/dist/src/utils/embedApi/contracts.d.ts.map +0 -1
- package/dist/src/utils/embedApi/embedApiClient.d.ts +0 -12
- package/dist/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
- package/dist/src/utils/embedApi/processEmbedApi.d.ts +0 -9
- package/dist/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
- package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
- package/lib/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
- package/lib/src/embed/searchEmbed-basic-auth.spec.js +0 -101
- package/lib/src/embed/searchEmbed-basic-auth.spec.js.map +0 -1
- package/lib/src/hostEventsTypeMapping.d.ts +0 -2
- package/lib/src/hostEventsTypeMapping.d.ts.map +0 -1
- package/lib/src/hostEventsTypeMapping.js +0 -2
- package/lib/src/hostEventsTypeMapping.js.map +0 -1
- package/lib/src/utils/embedApi/contracts.d.ts +0 -101
- package/lib/src/utils/embedApi/contracts.d.ts.map +0 -1
- package/lib/src/utils/embedApi/contracts.js +0 -14
- package/lib/src/utils/embedApi/contracts.js.map +0 -1
- package/lib/src/utils/embedApi/embedApiClient.d.ts +0 -12
- package/lib/src/utils/embedApi/embedApiClient.d.ts.map +0 -1
- package/lib/src/utils/embedApi/embedApiClient.js +0 -42
- package/lib/src/utils/embedApi/embedApiClient.js.map +0 -1
- package/lib/src/utils/embedApi/processEmbedApi.d.ts +0 -9
- package/lib/src/utils/embedApi/processEmbedApi.d.ts.map +0 -1
- package/lib/src/utils/embedApi/processEmbedApi.js +0 -14
- package/lib/src/utils/embedApi/processEmbedApi.js.map +0 -1
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.3 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -340,7 +340,25 @@ const getTypeFromValue = (value) => {
|
|
|
340
340
|
return ['boolean', 'boolean'];
|
|
341
341
|
}
|
|
342
342
|
return ['', ''];
|
|
343
|
-
};
|
|
343
|
+
};
|
|
344
|
+
const sdkWindowKey = '_tsEmbedSDK';
|
|
345
|
+
/**
|
|
346
|
+
* Stores a value in the global `window` object under the `_tsEmbedSDK` namespace.
|
|
347
|
+
* @param key - The key under which the value will be stored.
|
|
348
|
+
* @param value - The value to store.
|
|
349
|
+
*/
|
|
350
|
+
const storeValueInWindow = (key, value) => {
|
|
351
|
+
if (!window[sdkWindowKey]) {
|
|
352
|
+
window[sdkWindowKey] = {};
|
|
353
|
+
}
|
|
354
|
+
window[sdkWindowKey][key] = value;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Retrieves a stored value from the global `window` object under the `_tsEmbedSDK` namespace.
|
|
358
|
+
* @param key - The key whose value needs to be retrieved.
|
|
359
|
+
* @returns The stored value or `undefined` if the key is not found.
|
|
360
|
+
*/
|
|
361
|
+
const getValueFromWindow = (key) => { var _a; return (_a = window === null || window === void 0 ? void 0 : window[sdkWindowKey]) === null || _a === void 0 ? void 0 : _a[key]; };
|
|
344
362
|
|
|
345
363
|
/**
|
|
346
364
|
* Copyright (c) 2023
|
|
@@ -731,8 +749,8 @@ var EmbedEvent;
|
|
|
731
749
|
*/
|
|
732
750
|
EmbedEvent["Load"] = "load";
|
|
733
751
|
/**
|
|
734
|
-
* Data pertaining to
|
|
735
|
-
* @return data - The
|
|
752
|
+
* Data pertaining to an Answer or Liveboard is received
|
|
753
|
+
* @return data - The Answer or Liveboard data
|
|
736
754
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
737
755
|
* @example
|
|
738
756
|
*```js
|
|
@@ -906,7 +924,7 @@ var EmbedEvent;
|
|
|
906
924
|
*/
|
|
907
925
|
EmbedEvent["Alert"] = "alert";
|
|
908
926
|
/**
|
|
909
|
-
* The ThoughtSpot
|
|
927
|
+
* The ThoughtSpot authentication session has expired.
|
|
910
928
|
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
911
929
|
* @example
|
|
912
930
|
*```js
|
|
@@ -976,7 +994,7 @@ var EmbedEvent;
|
|
|
976
994
|
/**
|
|
977
995
|
* Emitted when the embed does not have cookie access. This happens
|
|
978
996
|
* when Safari and other Web browsers block third-party cookies
|
|
979
|
-
* are blocked by default. `NoCookieAccess` can trigger
|
|
997
|
+
* are blocked by default. `NoCookieAccess` can trigger.
|
|
980
998
|
* @example
|
|
981
999
|
*```js
|
|
982
1000
|
* appEmbed.on(EmbedEvent.NoCookieAccess)
|
|
@@ -1064,7 +1082,7 @@ var EmbedEvent;
|
|
|
1064
1082
|
*/
|
|
1065
1083
|
EmbedEvent["Save"] = "save";
|
|
1066
1084
|
/**
|
|
1067
|
-
* Emitted when the download action is triggered on an
|
|
1085
|
+
* Emitted when the download action is triggered on an Answer.
|
|
1068
1086
|
*
|
|
1069
1087
|
* **Note**: This event is deprecated in v1.21.0.
|
|
1070
1088
|
* To fire an event when a download action is initiated on a chart or table,
|
|
@@ -1080,7 +1098,7 @@ var EmbedEvent;
|
|
|
1080
1098
|
*/
|
|
1081
1099
|
EmbedEvent["Download"] = "download";
|
|
1082
1100
|
/**
|
|
1083
|
-
* Emitted when the download action is triggered on an
|
|
1101
|
+
* Emitted when the download action is triggered on an Answer.
|
|
1084
1102
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
1085
1103
|
* @example
|
|
1086
1104
|
*```js
|
|
@@ -1094,7 +1112,7 @@ var EmbedEvent;
|
|
|
1094
1112
|
*/
|
|
1095
1113
|
EmbedEvent["DownloadAsPng"] = "downloadAsPng";
|
|
1096
1114
|
/**
|
|
1097
|
-
* Emitted when the Download as PDF action is triggered on an
|
|
1115
|
+
* Emitted when the Download as PDF action is triggered on an Answer
|
|
1098
1116
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1099
1117
|
* @example
|
|
1100
1118
|
*```js
|
|
@@ -1108,7 +1126,7 @@ var EmbedEvent;
|
|
|
1108
1126
|
*/
|
|
1109
1127
|
EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
|
|
1110
1128
|
/**
|
|
1111
|
-
* Emitted when the Download as CSV action is triggered on an
|
|
1129
|
+
* Emitted when the Download as CSV action is triggered on an Answer.
|
|
1112
1130
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1113
1131
|
* @example
|
|
1114
1132
|
*```js
|
|
@@ -1122,7 +1140,7 @@ var EmbedEvent;
|
|
|
1122
1140
|
*/
|
|
1123
1141
|
EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
|
|
1124
1142
|
/**
|
|
1125
|
-
* Emitted when the Download as XLSX action is triggered on an
|
|
1143
|
+
* Emitted when the Download as XLSX action is triggered on an Answer.
|
|
1126
1144
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1127
1145
|
* @example
|
|
1128
1146
|
*```js
|
|
@@ -1150,7 +1168,8 @@ var EmbedEvent;
|
|
|
1150
1168
|
*/
|
|
1151
1169
|
EmbedEvent["AnswerDelete"] = "answerDelete";
|
|
1152
1170
|
/**
|
|
1153
|
-
* Emitted when
|
|
1171
|
+
* Emitted when a user initiates the Pin action to
|
|
1172
|
+
* add an Answer to a Liveboard.
|
|
1154
1173
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1155
1174
|
* @example
|
|
1156
1175
|
*```js
|
|
@@ -1288,7 +1307,7 @@ var EmbedEvent;
|
|
|
1288
1307
|
*/
|
|
1289
1308
|
EmbedEvent["SaveAsView"] = "saveAsView";
|
|
1290
1309
|
/**
|
|
1291
|
-
* Emitted when the user creates a copy of an Answer
|
|
1310
|
+
* Emitted when the user creates a copy of an Answer.
|
|
1292
1311
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1293
1312
|
* @example
|
|
1294
1313
|
*```js
|
|
@@ -1302,7 +1321,7 @@ var EmbedEvent;
|
|
|
1302
1321
|
*/
|
|
1303
1322
|
EmbedEvent["CopyAEdit"] = "copyAEdit";
|
|
1304
1323
|
/**
|
|
1305
|
-
* Emitted when a user clicks Show underlying data on an Answer
|
|
1324
|
+
* Emitted when a user clicks *Show underlying data* on an Answer.
|
|
1306
1325
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1307
1326
|
* @example
|
|
1308
1327
|
*```js
|
|
@@ -1313,7 +1332,7 @@ var EmbedEvent;
|
|
|
1313
1332
|
*/
|
|
1314
1333
|
EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
|
|
1315
1334
|
/**
|
|
1316
|
-
* Emitted when an
|
|
1335
|
+
* Emitted when an Answer is switched to a chart or table view.
|
|
1317
1336
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
1318
1337
|
* @example
|
|
1319
1338
|
*```js
|
|
@@ -1447,11 +1466,12 @@ var EmbedEvent;
|
|
|
1447
1466
|
*/
|
|
1448
1467
|
EmbedEvent["CopyLink"] = "embedDocument";
|
|
1449
1468
|
/**
|
|
1450
|
-
* Emitted when a user interacts with cross filters on a
|
|
1469
|
+
* Emitted when a user interacts with cross filters on a
|
|
1470
|
+
* visualization or Liveboard.
|
|
1451
1471
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1452
1472
|
* @example
|
|
1453
1473
|
*```js
|
|
1454
|
-
* liveboardEmbed.
|
|
1474
|
+
* liveboardEmbed.on(EmbedEvent.CrossFilterChanged, {
|
|
1455
1475
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1456
1476
|
*```
|
|
1457
1477
|
*/
|
|
@@ -1545,8 +1565,8 @@ var EmbedEvent;
|
|
|
1545
1565
|
*/
|
|
1546
1566
|
EmbedEvent["DeletePersonalisedView"] = "deletePersonalisedView";
|
|
1547
1567
|
/**
|
|
1548
|
-
* Emitted when a user creates a
|
|
1549
|
-
* @version SDK : 1.27.0 | ThoughtSpot
|
|
1568
|
+
* Emitted when a user creates a Worksheet.
|
|
1569
|
+
* @version SDK : 1.27.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
|
|
1550
1570
|
*/
|
|
1551
1571
|
EmbedEvent["CreateWorksheet"] = "createWorksheet";
|
|
1552
1572
|
/**
|
|
@@ -1559,8 +1579,8 @@ var EmbedEvent;
|
|
|
1559
1579
|
*/
|
|
1560
1580
|
EmbedEvent["AskSageInit"] = "AskSageInit";
|
|
1561
1581
|
/**
|
|
1562
|
-
* Emitted when a
|
|
1563
|
-
* @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl
|
|
1582
|
+
* Emitted when a Liveboard or visualization is renamed.
|
|
1583
|
+
* @version SDK : 1.28.0 | ThoughtSpot: 9.10.5.cl, 10.1.0.sw
|
|
1564
1584
|
*/
|
|
1565
1585
|
EmbedEvent["Rename"] = "rename";
|
|
1566
1586
|
/**
|
|
@@ -1624,8 +1644,7 @@ var EmbedEvent;
|
|
|
1624
1644
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1625
1645
|
/**
|
|
1626
1646
|
* Emitted when parameter changes in an Answer
|
|
1627
|
-
* or Liveboard
|
|
1628
|
-
*
|
|
1647
|
+
* or Liveboard.
|
|
1629
1648
|
* ```js
|
|
1630
1649
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
1631
1650
|
* console.log('payload', payload);
|
|
@@ -1652,7 +1671,7 @@ var EmbedEvent;
|
|
|
1652
1671
|
*/
|
|
1653
1672
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1654
1673
|
/**
|
|
1655
|
-
* Emitted when the liveboard is created from pin modal or
|
|
1674
|
+
* Emitted when the liveboard is created from pin modal or Liveboard list page.
|
|
1656
1675
|
* You can use this event as a hook to trigger
|
|
1657
1676
|
* other events on liveboard creation.
|
|
1658
1677
|
*
|
|
@@ -1797,7 +1816,7 @@ var HostEvent;
|
|
|
1797
1816
|
*/
|
|
1798
1817
|
HostEvent["Filter"] = "filter";
|
|
1799
1818
|
/**
|
|
1800
|
-
* Reload the
|
|
1819
|
+
* Reload the Answer or visualization
|
|
1801
1820
|
* @hidden
|
|
1802
1821
|
*/
|
|
1803
1822
|
HostEvent["Reload"] = "reload";
|
|
@@ -1847,12 +1866,10 @@ var HostEvent;
|
|
|
1847
1866
|
* and `AppEmbed` only. In full application embedding, this event updates
|
|
1848
1867
|
* the runtime filters applied on the Liveboard and saved Answer objects.
|
|
1849
1868
|
*
|
|
1850
|
-
*
|
|
1851
|
-
* Pass an array of runtime filters with the following attributes:
|
|
1852
|
-
*
|
|
1869
|
+
* @param - Pass an array of {@link RuntimeFilter} with the following attributes:
|
|
1853
1870
|
* `columnName` - _String_. The name of the column to filter on.
|
|
1854
1871
|
*
|
|
1855
|
-
* `operator` -
|
|
1872
|
+
* `operator` - {@link RuntimeFilterOp} to apply. For more information,
|
|
1856
1873
|
* see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
|
|
1857
1874
|
*
|
|
1858
1875
|
* `values` - List of operands. Some operators such as EQ and LE allow a
|
|
@@ -1864,7 +1881,7 @@ var HostEvent;
|
|
|
1864
1881
|
* will be cleared, restoring the original visualization
|
|
1865
1882
|
* with the updated filters.
|
|
1866
1883
|
*
|
|
1867
|
-
|
|
1884
|
+
|
|
1868
1885
|
* @example
|
|
1869
1886
|
* ```js
|
|
1870
1887
|
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
@@ -2103,6 +2120,11 @@ var HostEvent;
|
|
|
2103
2120
|
* appEmbed.trigger(HostEvent.Remove)
|
|
2104
2121
|
* ```
|
|
2105
2122
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2123
|
+
* * @example
|
|
2124
|
+
* ```js
|
|
2125
|
+
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
2126
|
+
* ```
|
|
2127
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
2106
2128
|
*/
|
|
2107
2129
|
HostEvent["Remove"] = "delete";
|
|
2108
2130
|
/**
|
|
@@ -2513,7 +2535,7 @@ var HostEvent;
|
|
|
2513
2535
|
* ```js
|
|
2514
2536
|
* liveboardEmbed.trigger(HostEvent.GetTabs).then((tabDetails) => {
|
|
2515
2537
|
* console.log(
|
|
2516
|
-
* tabDetails // TabDetails of current
|
|
2538
|
+
* tabDetails // TabDetails of current Liveboard
|
|
2517
2539
|
* );
|
|
2518
2540
|
* })
|
|
2519
2541
|
* ```
|
|
@@ -2561,7 +2583,7 @@ var HostEvent;
|
|
|
2561
2583
|
*/
|
|
2562
2584
|
HostEvent["UpdateSageQuery"] = "updateSageQuery";
|
|
2563
2585
|
/**
|
|
2564
|
-
* Get the
|
|
2586
|
+
* Get the Answer session for a Search or
|
|
2565
2587
|
* Liveboard visualization.
|
|
2566
2588
|
* @example
|
|
2567
2589
|
* ```js
|
|
@@ -2740,6 +2762,7 @@ var Param;
|
|
|
2740
2762
|
Param["HostAppUrl"] = "hostAppUrl";
|
|
2741
2763
|
Param["EnableVizTransformations"] = "enableVizTransform";
|
|
2742
2764
|
Param["EnableSearchAssist"] = "enableSearchAssist";
|
|
2765
|
+
Param["EnablePendoHelp"] = "enablePendoHelp";
|
|
2743
2766
|
Param["HideResult"] = "hideResult";
|
|
2744
2767
|
Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
|
|
2745
2768
|
Param["Tag"] = "tag";
|
|
@@ -2972,9 +2995,10 @@ var Action;
|
|
|
2972
2995
|
*/
|
|
2973
2996
|
Action["AddDataPanelObjects"] = "addDataPanelObjects";
|
|
2974
2997
|
/**
|
|
2975
|
-
*
|
|
2976
|
-
*
|
|
2977
|
-
* Liveboard.
|
|
2998
|
+
* The filter configuration options for a Liveboard.
|
|
2999
|
+
* The configuration options are available when adding
|
|
3000
|
+
* filters on a Liveboard.
|
|
3001
|
+
*
|
|
2978
3002
|
* @example
|
|
2979
3003
|
* ```js
|
|
2980
3004
|
* disabledActions: [Action.ConfigureFilter]
|
|
@@ -3072,14 +3096,17 @@ var Action;
|
|
|
3072
3096
|
* @hidden
|
|
3073
3097
|
*/
|
|
3074
3098
|
Action["SpotIQFollow"] = "spotIQFollow";
|
|
3099
|
+
/**
|
|
3100
|
+
* The Share action for a Liveboard visualization.
|
|
3101
|
+
*/
|
|
3075
3102
|
Action["ShareViz"] = "shareViz";
|
|
3076
3103
|
/**
|
|
3077
3104
|
* @hidden
|
|
3078
3105
|
*/
|
|
3079
3106
|
Action["ReplaySearch"] = "replaySearch";
|
|
3080
3107
|
/**
|
|
3081
|
-
* The **Show underlying data** menu action on a
|
|
3082
|
-
* Answer page.
|
|
3108
|
+
* The **Show underlying data** menu action on a
|
|
3109
|
+
* visualization or Answer page.
|
|
3083
3110
|
* Displays detailed information and raw data
|
|
3084
3111
|
* for a given visualization.
|
|
3085
3112
|
* @example
|
|
@@ -3089,8 +3116,8 @@ var Action;
|
|
|
3089
3116
|
*/
|
|
3090
3117
|
Action["ShowUnderlyingData"] = "showUnderlyingData";
|
|
3091
3118
|
/**
|
|
3092
|
-
* The **Download** menu action on Liveboard
|
|
3093
|
-
* and Answers.
|
|
3119
|
+
* The **Download** menu action on Liveboard
|
|
3120
|
+
* visualizations and Answers.
|
|
3094
3121
|
* Allows downloading a visualization or Answer.
|
|
3095
3122
|
* @example
|
|
3096
3123
|
* ```js
|
|
@@ -3111,11 +3138,10 @@ var Action;
|
|
|
3111
3138
|
/**
|
|
3112
3139
|
*
|
|
3113
3140
|
*The **Download PDF** action that downloads a Liveboard,
|
|
3114
|
-
*visualization, or Answer as a PDF file.
|
|
3141
|
+
* visualization, or Answer as a PDF file.
|
|
3115
3142
|
*
|
|
3116
|
-
*
|
|
3117
|
-
|
|
3118
|
-
*visualizations and Answers if the data is in tabular format.
|
|
3143
|
+
* **NOTE**: The **Download** > **PDF** option is available for
|
|
3144
|
+
* tables in visualizations and Answers.
|
|
3119
3145
|
* @example
|
|
3120
3146
|
* ```js
|
|
3121
3147
|
* disabledActions: [Action.DownloadAsPdf]
|
|
@@ -3147,9 +3173,11 @@ var Action;
|
|
|
3147
3173
|
*/
|
|
3148
3174
|
Action["DownloadTrace"] = "downloadTrace";
|
|
3149
3175
|
/**
|
|
3150
|
-
* The **Export TML** menu action on Liveboard,
|
|
3151
|
-
*
|
|
3152
|
-
*
|
|
3176
|
+
* The **Export TML** menu action on a Liveboard, Answer, and
|
|
3177
|
+
* the Data Workspace pages for data objects and connections.
|
|
3178
|
+
*
|
|
3179
|
+
* Allows exporting an object as a TML file.
|
|
3180
|
+
*
|
|
3153
3181
|
* @example
|
|
3154
3182
|
* ```js
|
|
3155
3183
|
* disabledActions: [Action.ExportTML]
|
|
@@ -3157,7 +3185,8 @@ var Action;
|
|
|
3157
3185
|
*/
|
|
3158
3186
|
Action["ExportTML"] = "exportTSL";
|
|
3159
3187
|
/**
|
|
3160
|
-
* The **Import TML** menu action
|
|
3188
|
+
* The **Import TML** menu action on the
|
|
3189
|
+
* *Data Workspace* > *Utilities* page.
|
|
3161
3190
|
* Imports TML representation of ThoughtSpot objects.
|
|
3162
3191
|
* @example
|
|
3163
3192
|
* ```js
|
|
@@ -3167,7 +3196,7 @@ var Action;
|
|
|
3167
3196
|
Action["ImportTML"] = "importTSL";
|
|
3168
3197
|
/**
|
|
3169
3198
|
* The **Update TML** menu action for Liveboards and Answers.
|
|
3170
|
-
*
|
|
3199
|
+
* Updates TML representation of ThoughtSpot objects.
|
|
3171
3200
|
* @example
|
|
3172
3201
|
* ```js
|
|
3173
3202
|
* disabledActions: [Action.UpdateTML]
|
|
@@ -3194,8 +3223,11 @@ var Action;
|
|
|
3194
3223
|
*/
|
|
3195
3224
|
Action["Present"] = "present";
|
|
3196
3225
|
/**
|
|
3197
|
-
* The tile resize
|
|
3198
|
-
*
|
|
3226
|
+
* The visualization tile resize option.
|
|
3227
|
+
* Also available via More `...` options menu on a visualization.
|
|
3228
|
+
* Allows resizing visualization tiles and switching
|
|
3229
|
+
* between different preset layout option.
|
|
3230
|
+
*
|
|
3199
3231
|
* @example
|
|
3200
3232
|
* ```js
|
|
3201
3233
|
* disabledActions: [Action.ToggleSize]
|
|
@@ -3221,8 +3253,9 @@ var Action;
|
|
|
3221
3253
|
*/
|
|
3222
3254
|
Action["EditTitle"] = "editTitle";
|
|
3223
3255
|
/**
|
|
3224
|
-
* The **Delete**
|
|
3225
|
-
*
|
|
3256
|
+
* The **Delete** action on a Liveboard, *Liveboards* and
|
|
3257
|
+
* *Answers* list pages in full application embedding.
|
|
3258
|
+
*
|
|
3226
3259
|
* @example
|
|
3227
3260
|
* ```js
|
|
3228
3261
|
* disabledActions: [Action.Remove]
|
|
@@ -3299,8 +3332,9 @@ var Action;
|
|
|
3299
3332
|
*/
|
|
3300
3333
|
Action["Explore"] = "explore";
|
|
3301
3334
|
/**
|
|
3302
|
-
* The action to include
|
|
3303
|
-
* or
|
|
3335
|
+
* The contextual menu action to include a specific data point
|
|
3336
|
+
* when drilling down a table or chart on an Answer.
|
|
3337
|
+
*
|
|
3304
3338
|
* @example
|
|
3305
3339
|
* ```js
|
|
3306
3340
|
* disabledActions: [Action.DrillInclude]
|
|
@@ -3308,8 +3342,8 @@ var Action;
|
|
|
3308
3342
|
*/
|
|
3309
3343
|
Action["DrillInclude"] = "context-menu-item-include";
|
|
3310
3344
|
/**
|
|
3311
|
-
* The action to exclude
|
|
3312
|
-
* or
|
|
3345
|
+
* The contextual menu action to exclude a specific data point
|
|
3346
|
+
* when drilling down a table or chart on an Answer.
|
|
3313
3347
|
* @example
|
|
3314
3348
|
* ```js
|
|
3315
3349
|
* disabledActions: [Action.DrillInclude]
|
|
@@ -3456,7 +3490,7 @@ var Action;
|
|
|
3456
3490
|
* Allows users to manage data sync pipelines to third-party apps.
|
|
3457
3491
|
* @example
|
|
3458
3492
|
* ```js
|
|
3459
|
-
* disabledActions: [Action.
|
|
3493
|
+
* disabledActions: [Action.ManagePipelines]
|
|
3460
3494
|
* ```
|
|
3461
3495
|
* @version SDK: 1.18.0| ThoughtSpot: 8.10.0.cl, 9.0.1.sw
|
|
3462
3496
|
*/
|
|
@@ -3775,7 +3809,7 @@ var Action;
|
|
|
3775
3809
|
/**
|
|
3776
3810
|
* Action ID for the Parent TML action
|
|
3777
3811
|
* The parent action **TML** must be included to access TML-related options
|
|
3778
|
-
* within the cascading menu (specific to the
|
|
3812
|
+
* within the cascading menu (specific to the Answer page)
|
|
3779
3813
|
* @example
|
|
3780
3814
|
* ```js
|
|
3781
3815
|
* // to include specific TML actions
|
|
@@ -3814,8 +3848,10 @@ var Action;
|
|
|
3814
3848
|
*/
|
|
3815
3849
|
Action["VerifiedLiveboard"] = "verifiedLiveboard";
|
|
3816
3850
|
/**
|
|
3817
|
-
*
|
|
3818
|
-
*
|
|
3851
|
+
* Action ID for the *Ask Sage* In Natural Language Search embed,
|
|
3852
|
+
* *Spotter* in Liveboard, full app, and Spotter embed.
|
|
3853
|
+
*
|
|
3854
|
+
* Allows initiating a conversation with ThoughtSpot AI analyst.
|
|
3819
3855
|
*
|
|
3820
3856
|
* @example
|
|
3821
3857
|
* ```js
|
|
@@ -4011,7 +4047,8 @@ var Action;
|
|
|
4011
4047
|
*/
|
|
4012
4048
|
Action["DeletePreviousPrompt"] = "deletePreviousPrompt";
|
|
4013
4049
|
/**
|
|
4014
|
-
* Action ID for hide
|
|
4050
|
+
* Action ID for hide or disable editing tokens generated from
|
|
4051
|
+
* Spotter results.
|
|
4015
4052
|
* @example
|
|
4016
4053
|
* ```js
|
|
4017
4054
|
* hiddenAction: [Action.EditTokens]
|
|
@@ -6600,13 +6637,18 @@ async function fetchBasicAuthService(thoughtSpotHost, username, password) {
|
|
|
6600
6637
|
});
|
|
6601
6638
|
}
|
|
6602
6639
|
|
|
6603
|
-
|
|
6640
|
+
const cacheAuthTokenKey = 'cachedAuthToken';
|
|
6641
|
+
const getCacheAuthToken = () => getValueFromWindow(cacheAuthTokenKey);
|
|
6642
|
+
const storeAuthTokenInCache = (token) => {
|
|
6643
|
+
storeValueInWindow(cacheAuthTokenKey, token);
|
|
6644
|
+
};
|
|
6604
6645
|
// This method can be used to get the authToken using the embedConfig
|
|
6605
6646
|
/**
|
|
6606
6647
|
*
|
|
6607
6648
|
* @param embedConfig
|
|
6608
6649
|
*/
|
|
6609
6650
|
async function getAuthenticationToken(embedConfig) {
|
|
6651
|
+
const cachedAuthToken = getCacheAuthToken();
|
|
6610
6652
|
// Since we don't have token validation enabled , we cannot tell if the
|
|
6611
6653
|
// cached token is valid or not. So we will always fetch a new token.
|
|
6612
6654
|
if (cachedAuthToken && !embedConfig.disableTokenVerification) {
|
|
@@ -6637,10 +6679,11 @@ async function getAuthenticationToken(embedConfig) {
|
|
|
6637
6679
|
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
|
|
6638
6680
|
throw e;
|
|
6639
6681
|
}
|
|
6640
|
-
|
|
6682
|
+
storeAuthTokenInCache(authToken);
|
|
6641
6683
|
return authToken;
|
|
6642
6684
|
}
|
|
6643
6685
|
const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
6686
|
+
const cachedAuthToken = getCacheAuthToken();
|
|
6644
6687
|
if (embedConfig.disableTokenVerification) {
|
|
6645
6688
|
logger$3.info('Token verification is disabled. Assuming token is valid.');
|
|
6646
6689
|
return true;
|
|
@@ -6674,17 +6717,17 @@ const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
|
6674
6717
|
* @group Authentication / Init
|
|
6675
6718
|
*/
|
|
6676
6719
|
const resetCachedAuthToken = () => {
|
|
6677
|
-
|
|
6720
|
+
storeAuthTokenInCache(null);
|
|
6678
6721
|
};
|
|
6679
6722
|
|
|
6680
|
-
|
|
6723
|
+
const configKey = 'embedConfig';
|
|
6681
6724
|
/**
|
|
6682
6725
|
* Gets the configuration embed was initialized with.
|
|
6683
6726
|
* @returns {@link EmbedConfig} The configuration embed was initialized with.
|
|
6684
6727
|
* @version SDK: 1.19.0 | ThoughtSpot: *
|
|
6685
6728
|
* @group Global methods
|
|
6686
6729
|
*/
|
|
6687
|
-
const getEmbedConfig = () =>
|
|
6730
|
+
const getEmbedConfig = () => getValueFromWindow(configKey) || {};
|
|
6688
6731
|
/**
|
|
6689
6732
|
* Sets the configuration embed was initialized with.
|
|
6690
6733
|
* And returns the new configuration.
|
|
@@ -6693,8 +6736,8 @@ const getEmbedConfig = () => config;
|
|
|
6693
6736
|
* @group Global methods
|
|
6694
6737
|
*/
|
|
6695
6738
|
const setEmbedConfig = (newConfig) => {
|
|
6696
|
-
|
|
6697
|
-
return
|
|
6739
|
+
storeValueInWindow(configKey, newConfig);
|
|
6740
|
+
return getValueFromWindow(configKey);
|
|
6698
6741
|
};
|
|
6699
6742
|
|
|
6700
6743
|
/**
|
|
@@ -7302,7 +7345,7 @@ class AnswerService {
|
|
|
7302
7345
|
async getTML() {
|
|
7303
7346
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7304
7347
|
const edoc = object[0].edoc;
|
|
7305
|
-
const YAML = await import('./index-
|
|
7348
|
+
const YAML = await import('./index-BJx3m5_V.js');
|
|
7306
7349
|
const parsedDoc = YAML.parse(edoc);
|
|
7307
7350
|
return {
|
|
7308
7351
|
answer: {
|
|
@@ -15124,7 +15167,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15124
15167
|
return e;
|
|
15125
15168
|
}
|
|
15126
15169
|
|
|
15127
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.
|
|
15170
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.3";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={".":{"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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.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:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
15128
15171
|
|
|
15129
15172
|
/**
|
|
15130
15173
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -16551,7 +16594,7 @@ class AppEmbed extends V1Embed {
|
|
|
16551
16594
|
getEmbedParams() {
|
|
16552
16595
|
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,
|
|
16553
16596
|
/* eslint-disable-next-line max-len */
|
|
16554
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
16597
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, } = this.viewConfig;
|
|
16555
16598
|
let params = {};
|
|
16556
16599
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
16557
16600
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -16596,6 +16639,9 @@ class AppEmbed extends V1Embed {
|
|
|
16596
16639
|
if (homePageSearchBarMode) {
|
|
16597
16640
|
params[Param.HomePageSearchBarMode] = homePageSearchBarMode;
|
|
16598
16641
|
}
|
|
16642
|
+
if (enablePendoHelp !== undefined) {
|
|
16643
|
+
params[Param.EnablePendoHelp] = enablePendoHelp;
|
|
16644
|
+
}
|
|
16599
16645
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
16600
16646
|
params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
|
|
16601
16647
|
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|