@thoughtspot/visual-embed-sdk 1.45.3 → 1.46.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/README.md +1 -1
- package/cjs/package.json +2 -2
- package/cjs/src/auth.d.ts +35 -2
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +36 -3
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +1 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +6 -6
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +87 -119
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +1 -1
- package/cjs/src/embed/liveboard.d.ts +2 -2
- package/cjs/src/embed/liveboard.js +2 -2
- package/cjs/src/embed/search.d.ts +3 -2
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +3 -2
- 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.js +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/types.d.ts +408 -66
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +116 -52
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BuwECGdm.js → index-Vyh6Ha5f.js} +1 -1
- package/dist/src/auth.d.ts +35 -2
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +1 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +1 -1
- package/dist/src/embed/liveboard.d.ts +2 -2
- package/dist/src/embed/search.d.ts +3 -2
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/types.d.ts +408 -66
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +167 -69
- package/dist/tsembed-react.js +166 -68
- package/dist/tsembed.es.js +167 -69
- package/dist/tsembed.js +166 -68
- package/dist/visual-embed-sdk-react-full.d.ts +446 -71
- package/dist/visual-embed-sdk-react.d.ts +439 -67
- package/dist/visual-embed-sdk.d.ts +445 -70
- package/lib/package.json +2 -2
- package/lib/src/auth.d.ts +35 -2
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +36 -3
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +1 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +6 -6
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +87 -119
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +1 -1
- package/lib/src/embed/liveboard.d.ts +2 -2
- package/lib/src/embed/liveboard.js +2 -2
- package/lib/src/embed/search.d.ts +3 -2
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +3 -2
- 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.js +1 -1
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/types.d.ts +408 -66
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +116 -52
- package/lib/src/types.js.map +1 -1
- package/package.json +2 -2
- package/src/auth.ts +36 -3
- package/src/embed/app.spec.ts +171 -211
- package/src/embed/app.ts +16 -11
- package/src/embed/conversation.ts +1 -1
- package/src/embed/liveboard.ts +2 -2
- package/src/embed/search.ts +3 -2
- package/src/embed/ts-embed.ts +1 -1
- package/src/react/index.tsx +1 -1
- package/src/types.ts +409 -67
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -1333,65 +1333,67 @@ var EmbedEvent;
|
|
|
1333
1333
|
EmbedEvent["Rename"] = "rename";
|
|
1334
1334
|
/**
|
|
1335
1335
|
*
|
|
1336
|
-
* This event
|
|
1337
|
-
*
|
|
1338
|
-
*
|
|
1339
|
-
* restricted due to your application or business requirements.
|
|
1340
|
-
|
|
1341
|
-
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1342
|
-
* for this embed event to get emitted.
|
|
1343
|
-
* @param - Includes the following event listener parameters:
|
|
1344
|
-
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1345
|
-
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1346
|
-
* should run the search, and if not, what error message
|
|
1347
|
-
* should be shown to the user.
|
|
1336
|
+
* This event allows developers to intercept search execution
|
|
1337
|
+
* and implement logic that decides whether Search Data should return
|
|
1338
|
+
* data or block the search operation.
|
|
1348
1339
|
*
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1340
|
+
* **Prerequisite**: Set`isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1341
|
+
* to ensure that `EmbedEvent.OnBeforeGetVizDataIntercept` is emitted
|
|
1342
|
+
* when the embedding application user tries to run a search query.
|
|
1351
1343
|
*
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1344
|
+
* This framework applies only to `AppEmbed` and `SearchEmbed`.
|
|
1345
|
+
* @param - Includes the following parameters:
|
|
1346
|
+
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1347
|
+
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1348
|
+
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1349
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1350
|
+
* When `execute` returns `false`, the search is not executed.
|
|
1351
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1352
|
+
* is `false` by using the `error` parameters in `responder`.
|
|
1353
|
+
* - `errorText` - The error message text shown to the user.
|
|
1357
1354
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1358
1355
|
* @example
|
|
1359
|
-
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1371
|
-
*
|
|
1356
|
+
*
|
|
1357
|
+
* This example blocks search operation and returns a custom error message:
|
|
1358
|
+
* ```js
|
|
1359
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1360
|
+
* responder({
|
|
1361
|
+
* data: {
|
|
1362
|
+
* execute: false,
|
|
1363
|
+
* error: {
|
|
1364
|
+
* // Provide a custom error message to explain why the search did not run.
|
|
1365
|
+
* errorText: 'This search query cannot be run. Please contact your administrator for more details.',
|
|
1366
|
+
* },
|
|
1367
|
+
* },
|
|
1368
|
+
* });
|
|
1372
1369
|
* })
|
|
1373
1370
|
* ```
|
|
1371
|
+
* @example
|
|
1374
1372
|
*
|
|
1375
|
-
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
* responder
|
|
1380
|
-
*
|
|
1381
|
-
*
|
|
1382
|
-
*
|
|
1383
|
-
*
|
|
1384
|
-
*
|
|
1385
|
-
*
|
|
1386
|
-
*
|
|
1387
|
-
*
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1390
|
-
*
|
|
1391
|
-
*
|
|
1392
|
-
*
|
|
1373
|
+
* This example allows the search operation to run
|
|
1374
|
+
* unless the query contains both `sales` and `county`,
|
|
1375
|
+
* and returns a custom error message if the query is rejected:
|
|
1376
|
+
* ```js
|
|
1377
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1378
|
+
* // Record the search query submitted by the end user.
|
|
1379
|
+
* const query = payload.data.data.answer.search_query;
|
|
1380
|
+
*
|
|
1381
|
+
* responder({
|
|
1382
|
+
* data: {
|
|
1383
|
+
* // Returns true as long as the query does not include both `sales` and `county`.
|
|
1384
|
+
* execute: !(query.includes('sales') && query.includes('county')),
|
|
1385
|
+
* error: {
|
|
1386
|
+
* // Provide a custom error message when the query is blocked by your logic.
|
|
1387
|
+
* errorText:
|
|
1388
|
+
* "You can't use this query: "
|
|
1389
|
+
* + query
|
|
1390
|
+
* + ". The 'sales' measure can never be used at the 'county' level. "
|
|
1391
|
+
* + "Please try another measure or remove 'county' from your search.",
|
|
1392
|
+
* },
|
|
1393
|
+
* },
|
|
1394
|
+
* });
|
|
1393
1395
|
* })
|
|
1394
|
-
|
|
1396
|
+
* ```
|
|
1395
1397
|
*/
|
|
1396
1398
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1397
1399
|
/**
|
|
@@ -4839,18 +4841,80 @@ var ContextMenuTriggerOptions;
|
|
|
4839
4841
|
*/
|
|
4840
4842
|
var CustomActionsPosition;
|
|
4841
4843
|
(function (CustomActionsPosition) {
|
|
4844
|
+
/**
|
|
4845
|
+
* Shows the action as a primary button
|
|
4846
|
+
* in the toolbar area of the embed.
|
|
4847
|
+
*/
|
|
4842
4848
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
4849
|
+
/**
|
|
4850
|
+
* Shows the action inside the "More" menu
|
|
4851
|
+
* (three-dot overflow menu).
|
|
4852
|
+
*/
|
|
4843
4853
|
CustomActionsPosition["MENU"] = "MENU";
|
|
4854
|
+
/**
|
|
4855
|
+
* Shows the action in the right-click
|
|
4856
|
+
* context menu. Only supported for
|
|
4857
|
+
* {@link CustomActionTarget.VIZ},
|
|
4858
|
+
* {@link CustomActionTarget.ANSWER}, and
|
|
4859
|
+
* {@link CustomActionTarget.SPOTTER} targets.
|
|
4860
|
+
*/
|
|
4844
4861
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
4845
4862
|
})(CustomActionsPosition || (CustomActionsPosition = {}));
|
|
4846
4863
|
/**
|
|
4847
|
-
* Enum options to mention the target of the custom action.
|
|
4864
|
+
* Enum options to mention the target of the code-based custom action.
|
|
4865
|
+
* The target determines which type of ThoughtSpot object the action is
|
|
4866
|
+
* associated with, and also controls which positions and scoping options
|
|
4867
|
+
* are available.
|
|
4848
4868
|
*/
|
|
4849
4869
|
var CustomActionTarget;
|
|
4850
4870
|
(function (CustomActionTarget) {
|
|
4871
|
+
/**
|
|
4872
|
+
* Action applies at the Liveboard level.
|
|
4873
|
+
* Supported positions:
|
|
4874
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4875
|
+
* {@link CustomActionsPosition.MENU}.
|
|
4876
|
+
* Can be scoped with
|
|
4877
|
+
* `metadataIds.liveboardIds`,
|
|
4878
|
+
* `orgIds`, and `groupIds`.
|
|
4879
|
+
*/
|
|
4851
4880
|
CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
|
|
4881
|
+
/**
|
|
4882
|
+
* Action applies to individual
|
|
4883
|
+
* visualizations (charts/tables).
|
|
4884
|
+
* Supported positions:
|
|
4885
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4886
|
+
* {@link CustomActionsPosition.MENU},
|
|
4887
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4888
|
+
* Can be scoped with `metadataIds`
|
|
4889
|
+
* (answerIds, liveboardIds, vizIds),
|
|
4890
|
+
* `dataModelIds` (modelIds,
|
|
4891
|
+
* modelColumnNames), `orgIds`,
|
|
4892
|
+
* and `groupIds`.
|
|
4893
|
+
*/
|
|
4852
4894
|
CustomActionTarget["VIZ"] = "VIZ";
|
|
4895
|
+
/**
|
|
4896
|
+
* Action applies to saved or unsaved
|
|
4897
|
+
* Answers. Supported positions:
|
|
4898
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4899
|
+
* {@link CustomActionsPosition.MENU},
|
|
4900
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4901
|
+
* Can be scoped with
|
|
4902
|
+
* `metadataIds.answerIds`,
|
|
4903
|
+
* `dataModelIds` (modelIds,
|
|
4904
|
+
* modelColumnNames), `orgIds`,
|
|
4905
|
+
* and `groupIds`.
|
|
4906
|
+
*/
|
|
4853
4907
|
CustomActionTarget["ANSWER"] = "ANSWER";
|
|
4908
|
+
/**
|
|
4909
|
+
* Action applies to Spotter
|
|
4910
|
+
* (AI-powered search).
|
|
4911
|
+
* Supported positions:
|
|
4912
|
+
* {@link CustomActionsPosition.MENU},
|
|
4913
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4914
|
+
* Can be scoped with
|
|
4915
|
+
* `dataModelIds.modelIds`,
|
|
4916
|
+
* `orgIds`, and `groupIds`.
|
|
4917
|
+
*/
|
|
4854
4918
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
4855
4919
|
})(CustomActionTarget || (CustomActionTarget = {}));
|
|
4856
4920
|
/**
|
|
@@ -8953,7 +9017,7 @@ class AnswerService {
|
|
|
8953
9017
|
async getTML() {
|
|
8954
9018
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8955
9019
|
const edoc = object[0].edoc;
|
|
8956
|
-
const YAML = await import('./index-
|
|
9020
|
+
const YAML = await import('./index-Vyh6Ha5f.js');
|
|
8957
9021
|
const parsedDoc = YAML.parse(edoc);
|
|
8958
9022
|
return {
|
|
8959
9023
|
answer: {
|
|
@@ -17404,17 +17468,50 @@ let samlCompletionPromise = null;
|
|
|
17404
17468
|
let releaseVersion = '';
|
|
17405
17469
|
const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
|
|
17406
17470
|
/**
|
|
17407
|
-
* Enum for auth failure types.
|
|
17408
|
-
*
|
|
17471
|
+
* Enum for auth failure types.
|
|
17472
|
+
* This value is passed to the listener for {@link AuthStatus.FAILURE}.
|
|
17409
17473
|
* @group Authentication / Init
|
|
17410
17474
|
*/
|
|
17411
17475
|
var AuthFailureType;
|
|
17412
17476
|
(function (AuthFailureType) {
|
|
17477
|
+
/**
|
|
17478
|
+
* Authentication failed in the SDK authentication flow.
|
|
17479
|
+
*
|
|
17480
|
+
* Emitted when `init()` or auto-authentication cannot establish a logged-in session.
|
|
17481
|
+
* For example, this can happen because of an invalid token, an auth request failure,
|
|
17482
|
+
* or an auth promise rejection.
|
|
17483
|
+
*/
|
|
17413
17484
|
AuthFailureType["SDK"] = "SDK";
|
|
17485
|
+
/**
|
|
17486
|
+
* Browser cookie access is blocked for the embedded app.
|
|
17487
|
+
*
|
|
17488
|
+
* Emitted when the iframe reports that required cookies
|
|
17489
|
+
* cannot be read or sent, commonly due to third-party cookie restrictions.
|
|
17490
|
+
*/
|
|
17414
17491
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
17492
|
+
/**
|
|
17493
|
+
* The current authentication token or session has expired.
|
|
17494
|
+
*
|
|
17495
|
+
* Emitted when the embed receives an auth-expiry signal and starts auth refresh handling.
|
|
17496
|
+
*/
|
|
17415
17497
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
17498
|
+
/**
|
|
17499
|
+
* A generic authentication failure that does not match a more specific type.
|
|
17500
|
+
*
|
|
17501
|
+
* Emitted as a fallback for app-reported auth failures in standard auth flows.
|
|
17502
|
+
*/
|
|
17416
17503
|
AuthFailureType["OTHER"] = "OTHER";
|
|
17504
|
+
/**
|
|
17505
|
+
* The user session timed out due to inactivity.
|
|
17506
|
+
*
|
|
17507
|
+
* Emitted when the app reports an idle-session timeout.
|
|
17508
|
+
*/
|
|
17417
17509
|
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
17510
|
+
/**
|
|
17511
|
+
* The app reports that the user is unauthenticated.
|
|
17512
|
+
*
|
|
17513
|
+
* Used primarily to classify unauthenticated failures in Embedded SSO flows.
|
|
17514
|
+
*/
|
|
17418
17515
|
AuthFailureType["UNAUTHENTICATED_FAILURE"] = "UNAUTHENTICATED_FAILURE";
|
|
17419
17516
|
})(AuthFailureType || (AuthFailureType = {}));
|
|
17420
17517
|
/**
|
|
@@ -17583,7 +17680,7 @@ function removeSSORedirectUrlMarker() {
|
|
|
17583
17680
|
// reload the page which we don't want. We'll live with adding an
|
|
17584
17681
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17585
17682
|
// that creates an issue.
|
|
17586
|
-
// Replace any
|
|
17683
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17587
17684
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17588
17685
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17589
17686
|
window.location.hash = updatedHash;
|
|
@@ -18391,7 +18488,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18391
18488
|
return eventData;
|
|
18392
18489
|
}
|
|
18393
18490
|
|
|
18394
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
18491
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.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={".":{"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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next || echo 'Warning: Coveralls upload failed but not breaking the build.'","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={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.23","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":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.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":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
|
|
18395
18492
|
|
|
18396
18493
|
class HostEventClient {
|
|
18397
18494
|
constructor(iFrame) {
|
|
@@ -18665,7 +18762,7 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
18665
18762
|
*/
|
|
18666
18763
|
const { version } = pkgInfo;
|
|
18667
18764
|
/**
|
|
18668
|
-
* Global prefix for all
|
|
18765
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18669
18766
|
*/
|
|
18670
18767
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18671
18768
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20218,7 +20315,7 @@ var Page;
|
|
|
20218
20315
|
Page["Monitor"] = "monitor";
|
|
20219
20316
|
})(Page || (Page = {}));
|
|
20220
20317
|
/**
|
|
20221
|
-
* Define the initial state
|
|
20318
|
+
* Define the initial state of column custom group accordions
|
|
20222
20319
|
* in data panel v2.
|
|
20223
20320
|
*/
|
|
20224
20321
|
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
@@ -20497,6 +20594,9 @@ class AppEmbed extends V1Embed {
|
|
|
20497
20594
|
else {
|
|
20498
20595
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
|
|
20499
20596
|
}
|
|
20597
|
+
if (modularHomeExperience !== undefined) {
|
|
20598
|
+
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
20599
|
+
}
|
|
20500
20600
|
// Set navigation to v2 by default to avoid problems like the app
|
|
20501
20601
|
// switcher (9-dot menu) not showing when v3 navigation is turned on
|
|
20502
20602
|
// at the cluster level.
|
|
@@ -20506,9 +20606,6 @@ class AppEmbed extends V1Embed {
|
|
|
20506
20606
|
// Set homePageVersion to v2 by default to reset the LD flag value
|
|
20507
20607
|
// for the homepageVersion.
|
|
20508
20608
|
params[Param.HomepageVersion] = 'v2';
|
|
20509
|
-
// Set listpageVersion to v2 by default to reset the LD flag value
|
|
20510
|
-
// for the listpageVersion.
|
|
20511
|
-
params[Param.ListPageVersion] = ListPage.List;
|
|
20512
20609
|
if (discoveryExperience) {
|
|
20513
20610
|
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
20514
20611
|
if (discoveryExperience.primaryNavbarVersion === PrimaryNavbarVersion.Sliding) {
|
|
@@ -20527,8 +20624,8 @@ class AppEmbed extends V1Embed {
|
|
|
20527
20624
|
if (discoveryExperience.homePage === HomePage.ModularWithStylingChanges) {
|
|
20528
20625
|
params[Param.HomepageVersion] = HomePage.ModularWithStylingChanges;
|
|
20529
20626
|
}
|
|
20530
|
-
// listPageVersion
|
|
20531
|
-
if (discoveryExperience.listPageVersion
|
|
20627
|
+
// listPageVersion can be changed to v2 or v3
|
|
20628
|
+
if (discoveryExperience.listPageVersion !== undefined) {
|
|
20532
20629
|
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
|
|
20533
20630
|
}
|
|
20534
20631
|
}
|
|
@@ -20731,8 +20828,8 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
20731
20828
|
* Copyright (c) 2022
|
|
20732
20829
|
*
|
|
20733
20830
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
20734
|
-
* https://developers.thoughtspot.com/docs
|
|
20735
|
-
* https://developers.thoughtspot.com/docs
|
|
20831
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
20832
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
20736
20833
|
* @summary Liveboard & visualization embed
|
|
20737
20834
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20738
20835
|
*/
|
|
@@ -21139,12 +21236,13 @@ class PinboardEmbed extends LiveboardEmbed {
|
|
|
21139
21236
|
/**
|
|
21140
21237
|
* Copyright (c) 2022
|
|
21141
21238
|
*
|
|
21142
|
-
* Embed ThoughtSpot search or a saved answer
|
|
21239
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
21240
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
21143
21241
|
* @summary Search embed
|
|
21144
21242
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21145
21243
|
*/
|
|
21146
21244
|
/**
|
|
21147
|
-
* Define the initial state
|
|
21245
|
+
* Define the initial state of column custom group accordions
|
|
21148
21246
|
* in data panel v2.
|
|
21149
21247
|
*/
|
|
21150
21248
|
var DataPanelCustomColumnGroupsAccordionState;
|