@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-react.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, require('react')) :
|
|
@@ -1523,65 +1523,67 @@
|
|
|
1523
1523
|
EmbedEvent["Rename"] = "rename";
|
|
1524
1524
|
/**
|
|
1525
1525
|
*
|
|
1526
|
-
* This event
|
|
1527
|
-
*
|
|
1528
|
-
*
|
|
1529
|
-
* restricted due to your application or business requirements.
|
|
1530
|
-
|
|
1531
|
-
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1532
|
-
* for this embed event to get emitted.
|
|
1533
|
-
* @param - Includes the following event listener parameters:
|
|
1534
|
-
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1535
|
-
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1536
|
-
* should run the search, and if not, what error message
|
|
1537
|
-
* should be shown to the user.
|
|
1526
|
+
* This event allows developers to intercept search execution
|
|
1527
|
+
* and implement logic that decides whether Search Data should return
|
|
1528
|
+
* data or block the search operation.
|
|
1538
1529
|
*
|
|
1539
|
-
*
|
|
1540
|
-
*
|
|
1530
|
+
* **Prerequisite**: Set`isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1531
|
+
* to ensure that `EmbedEvent.OnBeforeGetVizDataIntercept` is emitted
|
|
1532
|
+
* when the embedding application user tries to run a search query.
|
|
1541
1533
|
*
|
|
1542
|
-
*
|
|
1543
|
-
*
|
|
1544
|
-
*
|
|
1545
|
-
*
|
|
1546
|
-
*
|
|
1534
|
+
* This framework applies only to `AppEmbed` and `SearchEmbed`.
|
|
1535
|
+
* @param - Includes the following parameters:
|
|
1536
|
+
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1537
|
+
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1538
|
+
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1539
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1540
|
+
* When `execute` returns `false`, the search is not executed.
|
|
1541
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1542
|
+
* is `false` by using the `error` parameters in `responder`.
|
|
1543
|
+
* - `errorText` - The error message text shown to the user.
|
|
1547
1544
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1548
1545
|
* @example
|
|
1549
|
-
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
1552
|
-
*
|
|
1553
|
-
*
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1546
|
+
*
|
|
1547
|
+
* This example blocks search operation and returns a custom error message:
|
|
1548
|
+
* ```js
|
|
1549
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1550
|
+
* responder({
|
|
1551
|
+
* data: {
|
|
1552
|
+
* execute: false,
|
|
1553
|
+
* error: {
|
|
1554
|
+
* // Provide a custom error message to explain why the search did not run.
|
|
1555
|
+
* errorText: 'This search query cannot be run. Please contact your administrator for more details.',
|
|
1556
|
+
* },
|
|
1557
|
+
* },
|
|
1558
|
+
* });
|
|
1562
1559
|
* })
|
|
1563
1560
|
* ```
|
|
1561
|
+
* @example
|
|
1564
1562
|
*
|
|
1565
|
-
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
* responder
|
|
1570
|
-
*
|
|
1571
|
-
*
|
|
1572
|
-
*
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
*
|
|
1579
|
-
*
|
|
1580
|
-
*
|
|
1581
|
-
*
|
|
1582
|
-
*
|
|
1563
|
+
* This example allows the search operation to run
|
|
1564
|
+
* unless the query contains both `sales` and `county`,
|
|
1565
|
+
* and returns a custom error message if the query is rejected:
|
|
1566
|
+
* ```js
|
|
1567
|
+
* embed.on(EmbedEvent.OnBeforeGetVizDataIntercept, (payload, responder) => {
|
|
1568
|
+
* // Record the search query submitted by the end user.
|
|
1569
|
+
* const query = payload.data.data.answer.search_query;
|
|
1570
|
+
*
|
|
1571
|
+
* responder({
|
|
1572
|
+
* data: {
|
|
1573
|
+
* // Returns true as long as the query does not include both `sales` and `county`.
|
|
1574
|
+
* execute: !(query.includes('sales') && query.includes('county')),
|
|
1575
|
+
* error: {
|
|
1576
|
+
* // Provide a custom error message when the query is blocked by your logic.
|
|
1577
|
+
* errorText:
|
|
1578
|
+
* "You can't use this query: "
|
|
1579
|
+
* + query
|
|
1580
|
+
* + ". The 'sales' measure can never be used at the 'county' level. "
|
|
1581
|
+
* + "Please try another measure or remove 'county' from your search.",
|
|
1582
|
+
* },
|
|
1583
|
+
* },
|
|
1584
|
+
* });
|
|
1583
1585
|
* })
|
|
1584
|
-
|
|
1586
|
+
* ```
|
|
1585
1587
|
*/
|
|
1586
1588
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1587
1589
|
/**
|
|
@@ -5029,18 +5031,80 @@
|
|
|
5029
5031
|
*/
|
|
5030
5032
|
exports.CustomActionsPosition = void 0;
|
|
5031
5033
|
(function (CustomActionsPosition) {
|
|
5034
|
+
/**
|
|
5035
|
+
* Shows the action as a primary button
|
|
5036
|
+
* in the toolbar area of the embed.
|
|
5037
|
+
*/
|
|
5032
5038
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
5039
|
+
/**
|
|
5040
|
+
* Shows the action inside the "More" menu
|
|
5041
|
+
* (three-dot overflow menu).
|
|
5042
|
+
*/
|
|
5033
5043
|
CustomActionsPosition["MENU"] = "MENU";
|
|
5044
|
+
/**
|
|
5045
|
+
* Shows the action in the right-click
|
|
5046
|
+
* context menu. Only supported for
|
|
5047
|
+
* {@link CustomActionTarget.VIZ},
|
|
5048
|
+
* {@link CustomActionTarget.ANSWER}, and
|
|
5049
|
+
* {@link CustomActionTarget.SPOTTER} targets.
|
|
5050
|
+
*/
|
|
5034
5051
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
5035
5052
|
})(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
|
|
5036
5053
|
/**
|
|
5037
|
-
* Enum options to mention the target of the custom action.
|
|
5054
|
+
* Enum options to mention the target of the code-based custom action.
|
|
5055
|
+
* The target determines which type of ThoughtSpot object the action is
|
|
5056
|
+
* associated with, and also controls which positions and scoping options
|
|
5057
|
+
* are available.
|
|
5038
5058
|
*/
|
|
5039
5059
|
var CustomActionTarget;
|
|
5040
5060
|
(function (CustomActionTarget) {
|
|
5061
|
+
/**
|
|
5062
|
+
* Action applies at the Liveboard level.
|
|
5063
|
+
* Supported positions:
|
|
5064
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5065
|
+
* {@link CustomActionsPosition.MENU}.
|
|
5066
|
+
* Can be scoped with
|
|
5067
|
+
* `metadataIds.liveboardIds`,
|
|
5068
|
+
* `orgIds`, and `groupIds`.
|
|
5069
|
+
*/
|
|
5041
5070
|
CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
|
|
5071
|
+
/**
|
|
5072
|
+
* Action applies to individual
|
|
5073
|
+
* visualizations (charts/tables).
|
|
5074
|
+
* Supported positions:
|
|
5075
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5076
|
+
* {@link CustomActionsPosition.MENU},
|
|
5077
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5078
|
+
* Can be scoped with `metadataIds`
|
|
5079
|
+
* (answerIds, liveboardIds, vizIds),
|
|
5080
|
+
* `dataModelIds` (modelIds,
|
|
5081
|
+
* modelColumnNames), `orgIds`,
|
|
5082
|
+
* and `groupIds`.
|
|
5083
|
+
*/
|
|
5042
5084
|
CustomActionTarget["VIZ"] = "VIZ";
|
|
5085
|
+
/**
|
|
5086
|
+
* Action applies to saved or unsaved
|
|
5087
|
+
* Answers. Supported positions:
|
|
5088
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5089
|
+
* {@link CustomActionsPosition.MENU},
|
|
5090
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5091
|
+
* Can be scoped with
|
|
5092
|
+
* `metadataIds.answerIds`,
|
|
5093
|
+
* `dataModelIds` (modelIds,
|
|
5094
|
+
* modelColumnNames), `orgIds`,
|
|
5095
|
+
* and `groupIds`.
|
|
5096
|
+
*/
|
|
5043
5097
|
CustomActionTarget["ANSWER"] = "ANSWER";
|
|
5098
|
+
/**
|
|
5099
|
+
* Action applies to Spotter
|
|
5100
|
+
* (AI-powered search).
|
|
5101
|
+
* Supported positions:
|
|
5102
|
+
* {@link CustomActionsPosition.MENU},
|
|
5103
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5104
|
+
* Can be scoped with
|
|
5105
|
+
* `dataModelIds.modelIds`,
|
|
5106
|
+
* `orgIds`, and `groupIds`.
|
|
5107
|
+
*/
|
|
5044
5108
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
5045
5109
|
})(CustomActionTarget || (CustomActionTarget = {}));
|
|
5046
5110
|
/**
|
|
@@ -17528,17 +17592,50 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17528
17592
|
let releaseVersion = '';
|
|
17529
17593
|
const SSO_REDIRECTION_MARKER_GUID = '5e16222e-ef02-43e9-9fbd-24226bf3ce5b';
|
|
17530
17594
|
/**
|
|
17531
|
-
* Enum for auth failure types.
|
|
17532
|
-
*
|
|
17595
|
+
* Enum for auth failure types.
|
|
17596
|
+
* This value is passed to the listener for {@link AuthStatus.FAILURE}.
|
|
17533
17597
|
* @group Authentication / Init
|
|
17534
17598
|
*/
|
|
17535
17599
|
var AuthFailureType;
|
|
17536
17600
|
(function (AuthFailureType) {
|
|
17601
|
+
/**
|
|
17602
|
+
* Authentication failed in the SDK authentication flow.
|
|
17603
|
+
*
|
|
17604
|
+
* Emitted when `init()` or auto-authentication cannot establish a logged-in session.
|
|
17605
|
+
* For example, this can happen because of an invalid token, an auth request failure,
|
|
17606
|
+
* or an auth promise rejection.
|
|
17607
|
+
*/
|
|
17537
17608
|
AuthFailureType["SDK"] = "SDK";
|
|
17609
|
+
/**
|
|
17610
|
+
* Browser cookie access is blocked for the embedded app.
|
|
17611
|
+
*
|
|
17612
|
+
* Emitted when the iframe reports that required cookies
|
|
17613
|
+
* cannot be read or sent, commonly due to third-party cookie restrictions.
|
|
17614
|
+
*/
|
|
17538
17615
|
AuthFailureType["NO_COOKIE_ACCESS"] = "NO_COOKIE_ACCESS";
|
|
17616
|
+
/**
|
|
17617
|
+
* The current authentication token or session has expired.
|
|
17618
|
+
*
|
|
17619
|
+
* Emitted when the embed receives an auth-expiry signal and starts auth refresh handling.
|
|
17620
|
+
*/
|
|
17539
17621
|
AuthFailureType["EXPIRY"] = "EXPIRY";
|
|
17622
|
+
/**
|
|
17623
|
+
* A generic authentication failure that does not match a more specific type.
|
|
17624
|
+
*
|
|
17625
|
+
* Emitted as a fallback for app-reported auth failures in standard auth flows.
|
|
17626
|
+
*/
|
|
17540
17627
|
AuthFailureType["OTHER"] = "OTHER";
|
|
17628
|
+
/**
|
|
17629
|
+
* The user session timed out due to inactivity.
|
|
17630
|
+
*
|
|
17631
|
+
* Emitted when the app reports an idle-session timeout.
|
|
17632
|
+
*/
|
|
17541
17633
|
AuthFailureType["IDLE_SESSION_TIMEOUT"] = "IDLE_SESSION_TIMEOUT";
|
|
17634
|
+
/**
|
|
17635
|
+
* The app reports that the user is unauthenticated.
|
|
17636
|
+
*
|
|
17637
|
+
* Used primarily to classify unauthenticated failures in Embedded SSO flows.
|
|
17638
|
+
*/
|
|
17542
17639
|
AuthFailureType["UNAUTHENTICATED_FAILURE"] = "UNAUTHENTICATED_FAILURE";
|
|
17543
17640
|
})(AuthFailureType || (AuthFailureType = {}));
|
|
17544
17641
|
/**
|
|
@@ -17707,7 +17804,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17707
17804
|
// reload the page which we don't want. We'll live with adding an
|
|
17708
17805
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17709
17806
|
// that creates an issue.
|
|
17710
|
-
// Replace any
|
|
17807
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17711
17808
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17712
17809
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17713
17810
|
window.location.hash = updatedHash;
|
|
@@ -18349,7 +18446,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18349
18446
|
return eventData;
|
|
18350
18447
|
}
|
|
18351
18448
|
|
|
18352
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
18449
|
+
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};
|
|
18353
18450
|
|
|
18354
18451
|
class HostEventClient {
|
|
18355
18452
|
constructor(iFrame) {
|
|
@@ -18623,7 +18720,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18623
18720
|
*/
|
|
18624
18721
|
const { version } = pkgInfo;
|
|
18625
18722
|
/**
|
|
18626
|
-
* Global prefix for all
|
|
18723
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18627
18724
|
*/
|
|
18628
18725
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18629
18726
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20288,12 +20385,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20288
20385
|
/**
|
|
20289
20386
|
* Copyright (c) 2022
|
|
20290
20387
|
*
|
|
20291
|
-
* Embed ThoughtSpot search or a saved answer
|
|
20388
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
20389
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
20292
20390
|
* @summary Search embed
|
|
20293
20391
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20294
20392
|
*/
|
|
20295
20393
|
/**
|
|
20296
|
-
* Define the initial state
|
|
20394
|
+
* Define the initial state of column custom group accordions
|
|
20297
20395
|
* in data panel v2.
|
|
20298
20396
|
*/
|
|
20299
20397
|
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
@@ -20516,7 +20614,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20516
20614
|
Page["Monitor"] = "monitor";
|
|
20517
20615
|
})(exports.Page || (exports.Page = {}));
|
|
20518
20616
|
/**
|
|
20519
|
-
* Define the initial state
|
|
20617
|
+
* Define the initial state of column custom group accordions
|
|
20520
20618
|
* in data panel v2.
|
|
20521
20619
|
*/
|
|
20522
20620
|
var DataPanelCustomColumnGroupsAccordionState;
|
|
@@ -20795,6 +20893,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20795
20893
|
else {
|
|
20796
20894
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
20797
20895
|
}
|
|
20896
|
+
if (modularHomeExperience !== undefined) {
|
|
20897
|
+
params[Param.ModularHomeExperienceEnabled] = modularHomeExperience;
|
|
20898
|
+
}
|
|
20798
20899
|
// Set navigation to v2 by default to avoid problems like the app
|
|
20799
20900
|
// switcher (9-dot menu) not showing when v3 navigation is turned on
|
|
20800
20901
|
// at the cluster level.
|
|
@@ -20804,9 +20905,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20804
20905
|
// Set homePageVersion to v2 by default to reset the LD flag value
|
|
20805
20906
|
// for the homepageVersion.
|
|
20806
20907
|
params[Param.HomepageVersion] = 'v2';
|
|
20807
|
-
// Set listpageVersion to v2 by default to reset the LD flag value
|
|
20808
|
-
// for the listpageVersion.
|
|
20809
|
-
params[Param.ListPageVersion] = ListPage.List;
|
|
20810
20908
|
if (discoveryExperience) {
|
|
20811
20909
|
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
20812
20910
|
if (discoveryExperience.primaryNavbarVersion === PrimaryNavbarVersion.Sliding) {
|
|
@@ -20825,8 +20923,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20825
20923
|
if (discoveryExperience.homePage === HomePage.ModularWithStylingChanges) {
|
|
20826
20924
|
params[Param.HomepageVersion] = HomePage.ModularWithStylingChanges;
|
|
20827
20925
|
}
|
|
20828
|
-
// listPageVersion
|
|
20829
|
-
if (discoveryExperience.listPageVersion
|
|
20926
|
+
// listPageVersion can be changed to v2 or v3
|
|
20927
|
+
if (discoveryExperience.listPageVersion !== undefined) {
|
|
20830
20928
|
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
|
|
20831
20929
|
}
|
|
20832
20930
|
}
|
|
@@ -21029,8 +21127,8 @@ query GetEurekaVizSnapshots(
|
|
|
21029
21127
|
* Copyright (c) 2022
|
|
21030
21128
|
*
|
|
21031
21129
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
21032
|
-
* https://developers.thoughtspot.com/docs
|
|
21033
|
-
* https://developers.thoughtspot.com/docs
|
|
21130
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
21131
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
21034
21132
|
* @summary Liveboard & visualization embed
|
|
21035
21133
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21036
21134
|
*/
|