@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.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 (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -1339,65 +1339,67 @@
|
|
|
1339
1339
|
EmbedEvent["Rename"] = "rename";
|
|
1340
1340
|
/**
|
|
1341
1341
|
*
|
|
1342
|
-
* This event
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1345
|
-
* restricted due to your application or business requirements.
|
|
1346
|
-
|
|
1347
|
-
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1348
|
-
* for this embed event to get emitted.
|
|
1349
|
-
* @param - Includes the following event listener parameters:
|
|
1350
|
-
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1351
|
-
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1352
|
-
* should run the search, and if not, what error message
|
|
1353
|
-
* should be shown to the user.
|
|
1342
|
+
* This event allows developers to intercept search execution
|
|
1343
|
+
* and implement logic that decides whether Search Data should return
|
|
1344
|
+
* data or block the search operation.
|
|
1354
1345
|
*
|
|
1355
|
-
*
|
|
1356
|
-
*
|
|
1346
|
+
* **Prerequisite**: Set`isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1347
|
+
* to ensure that `EmbedEvent.OnBeforeGetVizDataIntercept` is emitted
|
|
1348
|
+
* when the embedding application user tries to run a search query.
|
|
1357
1349
|
*
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
*
|
|
1350
|
+
* This framework applies only to `AppEmbed` and `SearchEmbed`.
|
|
1351
|
+
* @param - Includes the following parameters:
|
|
1352
|
+
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1353
|
+
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1354
|
+
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1355
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1356
|
+
* When `execute` returns `false`, the search is not executed.
|
|
1357
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1358
|
+
* is `false` by using the `error` parameters in `responder`.
|
|
1359
|
+
* - `errorText` - The error message text shown to the user.
|
|
1363
1360
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1364
1361
|
* @example
|
|
1365
|
-
|
|
1366
|
-
*
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1362
|
+
*
|
|
1363
|
+
* This example blocks search operation and returns a custom error message:
|
|
1364
|
+
* ```js
|
|
1365
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1366
|
+
* responder({
|
|
1367
|
+
* data: {
|
|
1368
|
+
* execute: false,
|
|
1369
|
+
* error: {
|
|
1370
|
+
* // Provide a custom error message to explain why the search did not run.
|
|
1371
|
+
* errorText: 'This search query cannot be run. Please contact your administrator for more details.',
|
|
1372
|
+
* },
|
|
1373
|
+
* },
|
|
1374
|
+
* });
|
|
1378
1375
|
* })
|
|
1379
1376
|
* ```
|
|
1377
|
+
* @example
|
|
1380
1378
|
*
|
|
1381
|
-
|
|
1382
|
-
*
|
|
1383
|
-
*
|
|
1384
|
-
*
|
|
1385
|
-
* responder
|
|
1386
|
-
*
|
|
1387
|
-
*
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
1390
|
-
*
|
|
1391
|
-
*
|
|
1392
|
-
*
|
|
1393
|
-
*
|
|
1394
|
-
*
|
|
1395
|
-
*
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1398
|
-
*
|
|
1379
|
+
* This example allows the search operation to run
|
|
1380
|
+
* unless the query contains both `sales` and `county`,
|
|
1381
|
+
* and returns a custom error message if the query is rejected:
|
|
1382
|
+
* ```js
|
|
1383
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1384
|
+
* // Record the search query submitted by the end user.
|
|
1385
|
+
* const query = payload.data.data.answer.search_query;
|
|
1386
|
+
*
|
|
1387
|
+
* responder({
|
|
1388
|
+
* data: {
|
|
1389
|
+
* // Returns true as long as the query does not include both `sales` and `county`.
|
|
1390
|
+
* execute: !(query.includes('sales') && query.includes('county')),
|
|
1391
|
+
* error: {
|
|
1392
|
+
* // Provide a custom error message when the query is blocked by your logic.
|
|
1393
|
+
* errorText:
|
|
1394
|
+
* "You can't use this query: "
|
|
1395
|
+
* + query
|
|
1396
|
+
* + ". The 'sales' measure can never be used at the 'county' level. "
|
|
1397
|
+
* + "Please try another measure or remove 'county' from your search.",
|
|
1398
|
+
* },
|
|
1399
|
+
* },
|
|
1400
|
+
* });
|
|
1399
1401
|
* })
|
|
1400
|
-
|
|
1402
|
+
* ```
|
|
1401
1403
|
*/
|
|
1402
1404
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1403
1405
|
/**
|
|
@@ -4845,18 +4847,80 @@
|
|
|
4845
4847
|
*/
|
|
4846
4848
|
exports.CustomActionsPosition = void 0;
|
|
4847
4849
|
(function (CustomActionsPosition) {
|
|
4850
|
+
/**
|
|
4851
|
+
* Shows the action as a primary button
|
|
4852
|
+
* in the toolbar area of the embed.
|
|
4853
|
+
*/
|
|
4848
4854
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
4855
|
+
/**
|
|
4856
|
+
* Shows the action inside the "More" menu
|
|
4857
|
+
* (three-dot overflow menu).
|
|
4858
|
+
*/
|
|
4849
4859
|
CustomActionsPosition["MENU"] = "MENU";
|
|
4860
|
+
/**
|
|
4861
|
+
* Shows the action in the right-click
|
|
4862
|
+
* context menu. Only supported for
|
|
4863
|
+
* {@link CustomActionTarget.VIZ},
|
|
4864
|
+
* {@link CustomActionTarget.ANSWER}, and
|
|
4865
|
+
* {@link CustomActionTarget.SPOTTER} targets.
|
|
4866
|
+
*/
|
|
4850
4867
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
4851
4868
|
})(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
|
|
4852
4869
|
/**
|
|
4853
|
-
* Enum options to mention the target of the custom action.
|
|
4870
|
+
* Enum options to mention the target of the code-based custom action.
|
|
4871
|
+
* The target determines which type of ThoughtSpot object the action is
|
|
4872
|
+
* associated with, and also controls which positions and scoping options
|
|
4873
|
+
* are available.
|
|
4854
4874
|
*/
|
|
4855
4875
|
exports.CustomActionTarget = void 0;
|
|
4856
4876
|
(function (CustomActionTarget) {
|
|
4877
|
+
/**
|
|
4878
|
+
* Action applies at the Liveboard level.
|
|
4879
|
+
* Supported positions:
|
|
4880
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4881
|
+
* {@link CustomActionsPosition.MENU}.
|
|
4882
|
+
* Can be scoped with
|
|
4883
|
+
* `metadataIds.liveboardIds`,
|
|
4884
|
+
* `orgIds`, and `groupIds`.
|
|
4885
|
+
*/
|
|
4857
4886
|
CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
|
|
4887
|
+
/**
|
|
4888
|
+
* Action applies to individual
|
|
4889
|
+
* visualizations (charts/tables).
|
|
4890
|
+
* Supported positions:
|
|
4891
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4892
|
+
* {@link CustomActionsPosition.MENU},
|
|
4893
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4894
|
+
* Can be scoped with `metadataIds`
|
|
4895
|
+
* (answerIds, liveboardIds, vizIds),
|
|
4896
|
+
* `dataModelIds` (modelIds,
|
|
4897
|
+
* modelColumnNames), `orgIds`,
|
|
4898
|
+
* and `groupIds`.
|
|
4899
|
+
*/
|
|
4858
4900
|
CustomActionTarget["VIZ"] = "VIZ";
|
|
4901
|
+
/**
|
|
4902
|
+
* Action applies to saved or unsaved
|
|
4903
|
+
* Answers. Supported positions:
|
|
4904
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
4905
|
+
* {@link CustomActionsPosition.MENU},
|
|
4906
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4907
|
+
* Can be scoped with
|
|
4908
|
+
* `metadataIds.answerIds`,
|
|
4909
|
+
* `dataModelIds` (modelIds,
|
|
4910
|
+
* modelColumnNames), `orgIds`,
|
|
4911
|
+
* and `groupIds`.
|
|
4912
|
+
*/
|
|
4859
4913
|
CustomActionTarget["ANSWER"] = "ANSWER";
|
|
4914
|
+
/**
|
|
4915
|
+
* Action applies to Spotter
|
|
4916
|
+
* (AI-powered search).
|
|
4917
|
+
* Supported positions:
|
|
4918
|
+
* {@link CustomActionsPosition.MENU},
|
|
4919
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
4920
|
+
* Can be scoped with
|
|
4921
|
+
* `dataModelIds.modelIds`,
|
|
4922
|
+
* `orgIds`, and `groupIds`.
|
|
4923
|
+
*/
|
|
4860
4924
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
4861
4925
|
})(exports.CustomActionTarget || (exports.CustomActionTarget = {}));
|
|
4862
4926
|
/**
|
|
@@ -17410,17 +17474,50 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17410
17474
|
let releaseVersion = '';
|
|
17411
17475
|
const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
|
|
17412
17476
|
/**
|
|
17413
|
-
* Enum for auth failure types.
|
|
17414
|
-
*
|
|
17477
|
+
* Enum for auth failure types.
|
|
17478
|
+
* This value is passed to the listener for {@link AuthStatus.FAILURE}.
|
|
17415
17479
|
* @group Authentication / Init
|
|
17416
17480
|
*/
|
|
17417
17481
|
exports.AuthFailureType = void 0;
|
|
17418
17482
|
(function (AuthFailureType) {
|
|
17483
|
+
/**
|
|
17484
|
+
* Authentication failed in the SDK authentication flow.
|
|
17485
|
+
*
|
|
17486
|
+
* Emitted when `init()` or auto-authentication cannot establish a logged-in session.
|
|
17487
|
+
* For example, this can happen because of an invalid token, an auth request failure,
|
|
17488
|
+
* or an auth promise rejection.
|
|
17489
|
+
*/
|
|
17419
17490
|
AuthFailureType["SDK"] = "SDK";
|
|
17491
|
+
/**
|
|
17492
|
+
* Browser cookie access is blocked for the embedded app.
|
|
17493
|
+
*
|
|
17494
|
+
* Emitted when the iframe reports that required cookies
|
|
17495
|
+
* cannot be read or sent, commonly due to third-party cookie restrictions.
|
|
17496
|
+
*/
|
|
17420
17497
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
17498
|
+
/**
|
|
17499
|
+
* The current authentication token or session has expired.
|
|
17500
|
+
*
|
|
17501
|
+
* Emitted when the embed receives an auth-expiry signal and starts auth refresh handling.
|
|
17502
|
+
*/
|
|
17421
17503
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
17504
|
+
/**
|
|
17505
|
+
* A generic authentication failure that does not match a more specific type.
|
|
17506
|
+
*
|
|
17507
|
+
* Emitted as a fallback for app-reported auth failures in standard auth flows.
|
|
17508
|
+
*/
|
|
17422
17509
|
AuthFailureType["OTHER"] = "OTHER";
|
|
17510
|
+
/**
|
|
17511
|
+
* The user session timed out due to inactivity.
|
|
17512
|
+
*
|
|
17513
|
+
* Emitted when the app reports an idle-session timeout.
|
|
17514
|
+
*/
|
|
17423
17515
|
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
17516
|
+
/**
|
|
17517
|
+
* The app reports that the user is unauthenticated.
|
|
17518
|
+
*
|
|
17519
|
+
* Used primarily to classify unauthenticated failures in Embedded SSO flows.
|
|
17520
|
+
*/
|
|
17424
17521
|
AuthFailureType["UNAUTHENTICATED_FAILURE"] = "UNAUTHENTICATED_FAILURE";
|
|
17425
17522
|
})(exports.AuthFailureType || (exports.AuthFailureType = {}));
|
|
17426
17523
|
/**
|
|
@@ -17589,7 +17686,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17589
17686
|
// reload the page which we don't want. We'll live with adding an
|
|
17590
17687
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17591
17688
|
// that creates an issue.
|
|
17592
|
-
// Replace any
|
|
17689
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17593
17690
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17594
17691
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17595
17692
|
window.location.hash = updatedHash;
|
|
@@ -18397,7 +18494,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18397
18494
|
return eventData;
|
|
18398
18495
|
}
|
|
18399
18496
|
|
|
18400
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
18497
|
+
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$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 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$1,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};
|
|
18401
18498
|
|
|
18402
18499
|
class HostEventClient {
|
|
18403
18500
|
constructor(iFrame) {
|
|
@@ -18671,7 +18768,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18671
18768
|
*/
|
|
18672
18769
|
const { version } = pkgInfo;
|
|
18673
18770
|
/**
|
|
18674
|
-
* Global prefix for all
|
|
18771
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18675
18772
|
*/
|
|
18676
18773
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18677
18774
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20224,7 +20321,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20224
20321
|
Page["Monitor"] = "monitor";
|
|
20225
20322
|
})(exports.Page || (exports.Page = {}));
|
|
20226
20323
|
/**
|
|
20227
|
-
* Define the initial state
|
|
20324
|
+
* Define the initial state of column custom group accordions
|
|
20228
20325
|
* in data panel v2.
|
|
20229
20326
|
*/
|
|
20230
20327
|
exports.DataPanelCustomColumnGroupsAccordionState = void 0;
|
|
@@ -20503,6 +20600,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20503
20600
|
else {
|
|
20504
20601
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
20505
20602
|
}
|
|
20603
|
+
if (modularHomeExperience !== undefined) {
|
|
20604
|
+
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
20605
|
+
}
|
|
20506
20606
|
// Set navigation to v2 by default to avoid problems like the app
|
|
20507
20607
|
// switcher (9-dot menu) not showing when v3 navigation is turned on
|
|
20508
20608
|
// at the cluster level.
|
|
@@ -20512,9 +20612,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20512
20612
|
// Set homePageVersion to v2 by default to reset the LD flag value
|
|
20513
20613
|
// for the homepageVersion.
|
|
20514
20614
|
params[Param.HomepageVersion] = 'v2';
|
|
20515
|
-
// Set listpageVersion to v2 by default to reset the LD flag value
|
|
20516
|
-
// for the listpageVersion.
|
|
20517
|
-
params[Param.ListPageVersion] = exports.ListPage.List;
|
|
20518
20615
|
if (discoveryExperience) {
|
|
20519
20616
|
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
20520
20617
|
if (discoveryExperience.primaryNavbarVersion === exports.PrimaryNavbarVersion.Sliding) {
|
|
@@ -20533,8 +20630,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20533
20630
|
if (discoveryExperience.homePage === exports.HomePage.ModularWithStylingChanges) {
|
|
20534
20631
|
params[Param.HomepageVersion] = exports.HomePage.ModularWithStylingChanges;
|
|
20535
20632
|
}
|
|
20536
|
-
// listPageVersion
|
|
20537
|
-
if (discoveryExperience.listPageVersion
|
|
20633
|
+
// listPageVersion can be changed to v2 or v3
|
|
20634
|
+
if (discoveryExperience.listPageVersion !== undefined) {
|
|
20538
20635
|
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
|
|
20539
20636
|
}
|
|
20540
20637
|
}
|
|
@@ -20737,8 +20834,8 @@ query GetEurekaVizSnapshots(
|
|
|
20737
20834
|
* Copyright (c) 2022
|
|
20738
20835
|
*
|
|
20739
20836
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
20740
|
-
* https://developers.thoughtspot.com/docs
|
|
20741
|
-
* https://developers.thoughtspot.com/docs
|
|
20837
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
20838
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
20742
20839
|
* @summary Liveboard & visualization embed
|
|
20743
20840
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20744
20841
|
*/
|
|
@@ -21145,12 +21242,13 @@ query GetEurekaVizSnapshots(
|
|
|
21145
21242
|
/**
|
|
21146
21243
|
* Copyright (c) 2022
|
|
21147
21244
|
*
|
|
21148
|
-
* Embed ThoughtSpot search or a saved answer
|
|
21245
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
21246
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
21149
21247
|
* @summary Search embed
|
|
21150
21248
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21151
21249
|
*/
|
|
21152
21250
|
/**
|
|
21153
|
-
* Define the initial state
|
|
21251
|
+
* Define the initial state of column custom group accordions
|
|
21154
21252
|
* in data panel v2.
|
|
21155
21253
|
*/
|
|
21156
21254
|
var DataPanelCustomColumnGroupsAccordionState;
|