@thoughtspot/visual-embed-sdk 1.46.0 → 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.js +1 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +1 -1
- package/cjs/src/embed/app.js +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 +359 -21
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +68 -8
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BQvLEoxp.js → index-Vyh6Ha5f.js} +1 -1
- package/dist/src/embed/app.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 +359 -21
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +79 -18
- package/dist/tsembed-react.js +78 -17
- package/dist/tsembed.es.js +79 -18
- package/dist/tsembed.js +78 -17
- package/dist/visual-embed-sdk-react-full.d.ts +361 -23
- package/dist/visual-embed-sdk-react.d.ts +356 -21
- package/dist/visual-embed-sdk.d.ts +360 -22
- package/lib/package.json +2 -2
- package/lib/src/auth.js +1 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +1 -1
- package/lib/src/embed/app.js +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 +359 -21
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +68 -8
- package/lib/src/types.js.map +1 -1
- package/package.json +2 -2
- package/src/auth.ts +1 -1
- package/src/embed/app.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 +359 -21
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.46.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useRef, useCallback } from 'react';
|
|
@@ -1514,13 +1514,11 @@ var EmbedEvent;
|
|
|
1514
1514
|
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1515
1515
|
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1516
1516
|
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1517
|
-
*
|
|
1518
|
-
* `execute` - When `execute` returns `true`, the search is run.
|
|
1517
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1519
1518
|
* When `execute` returns `false`, the search is not executed.
|
|
1520
|
-
*
|
|
1521
|
-
* `error` - Developers can customize the user-facing error message when `execute`
|
|
1519
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1522
1520
|
* is `false` by using the `error` parameters in `responder`.
|
|
1523
|
-
* `errorText` - The error message text shown to the user.
|
|
1521
|
+
* - `errorText` - The error message text shown to the user.
|
|
1524
1522
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1525
1523
|
* @example
|
|
1526
1524
|
*
|
|
@@ -1536,7 +1534,7 @@ var EmbedEvent;
|
|
|
1536
1534
|
* },
|
|
1537
1535
|
* },
|
|
1538
1536
|
* });
|
|
1539
|
-
* })
|
|
1537
|
+
* })
|
|
1540
1538
|
* ```
|
|
1541
1539
|
* @example
|
|
1542
1540
|
*
|
|
@@ -1562,7 +1560,7 @@ var EmbedEvent;
|
|
|
1562
1560
|
* },
|
|
1563
1561
|
* },
|
|
1564
1562
|
* });
|
|
1565
|
-
* })
|
|
1563
|
+
* })
|
|
1566
1564
|
* ```
|
|
1567
1565
|
*/
|
|
1568
1566
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -5011,18 +5009,80 @@ var ContextMenuTriggerOptions;
|
|
|
5011
5009
|
*/
|
|
5012
5010
|
var CustomActionsPosition;
|
|
5013
5011
|
(function (CustomActionsPosition) {
|
|
5012
|
+
/**
|
|
5013
|
+
* Shows the action as a primary button
|
|
5014
|
+
* in the toolbar area of the embed.
|
|
5015
|
+
*/
|
|
5014
5016
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
5017
|
+
/**
|
|
5018
|
+
* Shows the action inside the "More" menu
|
|
5019
|
+
* (three-dot overflow menu).
|
|
5020
|
+
*/
|
|
5015
5021
|
CustomActionsPosition["MENU"] = "MENU";
|
|
5022
|
+
/**
|
|
5023
|
+
* Shows the action in the right-click
|
|
5024
|
+
* context menu. Only supported for
|
|
5025
|
+
* {@link CustomActionTarget.VIZ},
|
|
5026
|
+
* {@link CustomActionTarget.ANSWER}, and
|
|
5027
|
+
* {@link CustomActionTarget.SPOTTER} targets.
|
|
5028
|
+
*/
|
|
5016
5029
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
5017
5030
|
})(CustomActionsPosition || (CustomActionsPosition = {}));
|
|
5018
5031
|
/**
|
|
5019
|
-
* Enum options to mention the target of the custom action.
|
|
5032
|
+
* Enum options to mention the target of the code-based custom action.
|
|
5033
|
+
* The target determines which type of ThoughtSpot object the action is
|
|
5034
|
+
* associated with, and also controls which positions and scoping options
|
|
5035
|
+
* are available.
|
|
5020
5036
|
*/
|
|
5021
5037
|
var CustomActionTarget;
|
|
5022
5038
|
(function (CustomActionTarget) {
|
|
5039
|
+
/**
|
|
5040
|
+
* Action applies at the Liveboard level.
|
|
5041
|
+
* Supported positions:
|
|
5042
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5043
|
+
* {@link CustomActionsPosition.MENU}.
|
|
5044
|
+
* Can be scoped with
|
|
5045
|
+
* `metadataIds.liveboardIds`,
|
|
5046
|
+
* `orgIds`, and `groupIds`.
|
|
5047
|
+
*/
|
|
5023
5048
|
CustomActionTarget["LIVEBOARD"] = "LIVEBOARD";
|
|
5049
|
+
/**
|
|
5050
|
+
* Action applies to individual
|
|
5051
|
+
* visualizations (charts/tables).
|
|
5052
|
+
* Supported positions:
|
|
5053
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5054
|
+
* {@link CustomActionsPosition.MENU},
|
|
5055
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5056
|
+
* Can be scoped with `metadataIds`
|
|
5057
|
+
* (answerIds, liveboardIds, vizIds),
|
|
5058
|
+
* `dataModelIds` (modelIds,
|
|
5059
|
+
* modelColumnNames), `orgIds`,
|
|
5060
|
+
* and `groupIds`.
|
|
5061
|
+
*/
|
|
5024
5062
|
CustomActionTarget["VIZ"] = "VIZ";
|
|
5063
|
+
/**
|
|
5064
|
+
* Action applies to saved or unsaved
|
|
5065
|
+
* Answers. Supported positions:
|
|
5066
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
5067
|
+
* {@link CustomActionsPosition.MENU},
|
|
5068
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5069
|
+
* Can be scoped with
|
|
5070
|
+
* `metadataIds.answerIds`,
|
|
5071
|
+
* `dataModelIds` (modelIds,
|
|
5072
|
+
* modelColumnNames), `orgIds`,
|
|
5073
|
+
* and `groupIds`.
|
|
5074
|
+
*/
|
|
5025
5075
|
CustomActionTarget["ANSWER"] = "ANSWER";
|
|
5076
|
+
/**
|
|
5077
|
+
* Action applies to Spotter
|
|
5078
|
+
* (AI-powered search).
|
|
5079
|
+
* Supported positions:
|
|
5080
|
+
* {@link CustomActionsPosition.MENU},
|
|
5081
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
5082
|
+
* Can be scoped with
|
|
5083
|
+
* `dataModelIds.modelIds`,
|
|
5084
|
+
* `orgIds`, and `groupIds`.
|
|
5085
|
+
*/
|
|
5026
5086
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
5027
5087
|
})(CustomActionTarget || (CustomActionTarget = {}));
|
|
5028
5088
|
/**
|
|
@@ -9072,7 +9132,7 @@ class AnswerService {
|
|
|
9072
9132
|
async getTML() {
|
|
9073
9133
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
9074
9134
|
const edoc = object[0].edoc;
|
|
9075
|
-
const YAML = await import('./index-
|
|
9135
|
+
const YAML = await import('./index-Vyh6Ha5f.js');
|
|
9076
9136
|
const parsedDoc = YAML.parse(edoc);
|
|
9077
9137
|
return {
|
|
9078
9138
|
answer: {
|
|
@@ -17722,7 +17782,7 @@ function removeSSORedirectUrlMarker() {
|
|
|
17722
17782
|
// reload the page which we don't want. We'll live with adding an
|
|
17723
17783
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17724
17784
|
// that creates an issue.
|
|
17725
|
-
// Replace any
|
|
17785
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17726
17786
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17727
17787
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17728
17788
|
window.location.hash = updatedHash;
|
|
@@ -18364,7 +18424,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18364
18424
|
return eventData;
|
|
18365
18425
|
}
|
|
18366
18426
|
|
|
18367
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
18427
|
+
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};
|
|
18368
18428
|
|
|
18369
18429
|
class HostEventClient {
|
|
18370
18430
|
constructor(iFrame) {
|
|
@@ -18638,7 +18698,7 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
18638
18698
|
*/
|
|
18639
18699
|
const { version } = pkgInfo;
|
|
18640
18700
|
/**
|
|
18641
|
-
* Global prefix for all
|
|
18701
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18642
18702
|
*/
|
|
18643
18703
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18644
18704
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20303,12 +20363,13 @@ let SageEmbed$1 = class SageEmbed extends V1Embed {
|
|
|
20303
20363
|
/**
|
|
20304
20364
|
* Copyright (c) 2022
|
|
20305
20365
|
*
|
|
20306
|
-
* Embed ThoughtSpot search or a saved answer
|
|
20366
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
20367
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
20307
20368
|
* @summary Search embed
|
|
20308
20369
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20309
20370
|
*/
|
|
20310
20371
|
/**
|
|
20311
|
-
* Define the initial state
|
|
20372
|
+
* Define the initial state of column custom group accordions
|
|
20312
20373
|
* in data panel v2.
|
|
20313
20374
|
*/
|
|
20314
20375
|
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
@@ -20531,7 +20592,7 @@ var Page;
|
|
|
20531
20592
|
Page["Monitor"] = "monitor";
|
|
20532
20593
|
})(Page || (Page = {}));
|
|
20533
20594
|
/**
|
|
20534
|
-
* Define the initial state
|
|
20595
|
+
* Define the initial state of column custom group accordions
|
|
20535
20596
|
* in data panel v2.
|
|
20536
20597
|
*/
|
|
20537
20598
|
var DataPanelCustomColumnGroupsAccordionState;
|
|
@@ -21044,8 +21105,8 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
21044
21105
|
* Copyright (c) 2022
|
|
21045
21106
|
*
|
|
21046
21107
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
21047
|
-
* https://developers.thoughtspot.com/docs
|
|
21048
|
-
* https://developers.thoughtspot.com/docs
|
|
21108
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
21109
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
21049
21110
|
* @summary Liveboard & visualization embed
|
|
21050
21111
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21051
21112
|
*/
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.46.
|
|
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')) :
|
|
@@ -1536,13 +1536,11 @@
|
|
|
1536
1536
|
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1537
1537
|
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1538
1538
|
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1539
|
-
*
|
|
1540
|
-
* `execute` - When `execute` returns `true`, the search is run.
|
|
1539
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1541
1540
|
* When `execute` returns `false`, the search is not executed.
|
|
1542
|
-
*
|
|
1543
|
-
* `error` - Developers can customize the user-facing error message when `execute`
|
|
1541
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1544
1542
|
* is `false` by using the `error` parameters in `responder`.
|
|
1545
|
-
* `errorText` - The error message text shown to the user.
|
|
1543
|
+
* - `errorText` - The error message text shown to the user.
|
|
1546
1544
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1547
1545
|
* @example
|
|
1548
1546
|
*
|
|
@@ -1558,7 +1556,7 @@
|
|
|
1558
1556
|
* },
|
|
1559
1557
|
* },
|
|
1560
1558
|
* });
|
|
1561
|
-
* })
|
|
1559
|
+
* })
|
|
1562
1560
|
* ```
|
|
1563
1561
|
* @example
|
|
1564
1562
|
*
|
|
@@ -1584,7 +1582,7 @@
|
|
|
1584
1582
|
* },
|
|
1585
1583
|
* },
|
|
1586
1584
|
* });
|
|
1587
|
-
* })
|
|
1585
|
+
* })
|
|
1588
1586
|
* ```
|
|
1589
1587
|
*/
|
|
1590
1588
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -5033,18 +5031,80 @@
|
|
|
5033
5031
|
*/
|
|
5034
5032
|
exports.CustomActionsPosition = void 0;
|
|
5035
5033
|
(function (CustomActionsPosition) {
|
|
5034
|
+
/**
|
|
5035
|
+
* Shows the action as a primary button
|
|
5036
|
+
* in the toolbar area of the embed.
|
|
5037
|
+
*/
|
|
5036
5038
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
5039
|
+
/**
|
|
5040
|
+
* Shows the action inside the "More" menu
|
|
5041
|
+
* (three-dot overflow menu).
|
|
5042
|
+
*/
|
|
5037
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
|
+
*/
|
|
5038
5051
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
5039
5052
|
})(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
|
|
5040
5053
|
/**
|
|
5041
|
-
* 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.
|
|
5042
5058
|
*/
|
|
5043
5059
|
var CustomActionTarget;
|
|
5044
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
|
+
*/
|
|
5045
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
|
+
*/
|
|
5046
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
|
+
*/
|
|
5047
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
|
+
*/
|
|
5048
5108
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
5049
5109
|
})(CustomActionTarget || (CustomActionTarget = {}));
|
|
5050
5110
|
/**
|
|
@@ -17744,7 +17804,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17744
17804
|
// reload the page which we don't want. We'll live with adding an
|
|
17745
17805
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17746
17806
|
// that creates an issue.
|
|
17747
|
-
// Replace any
|
|
17807
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17748
17808
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17749
17809
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17750
17810
|
window.location.hash = updatedHash;
|
|
@@ -18386,7 +18446,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18386
18446
|
return eventData;
|
|
18387
18447
|
}
|
|
18388
18448
|
|
|
18389
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
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};
|
|
18390
18450
|
|
|
18391
18451
|
class HostEventClient {
|
|
18392
18452
|
constructor(iFrame) {
|
|
@@ -18660,7 +18720,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18660
18720
|
*/
|
|
18661
18721
|
const { version } = pkgInfo;
|
|
18662
18722
|
/**
|
|
18663
|
-
* Global prefix for all
|
|
18723
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18664
18724
|
*/
|
|
18665
18725
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18666
18726
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20325,12 +20385,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20325
20385
|
/**
|
|
20326
20386
|
* Copyright (c) 2022
|
|
20327
20387
|
*
|
|
20328
|
-
* Embed ThoughtSpot search or a saved answer
|
|
20388
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
20389
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
20329
20390
|
* @summary Search embed
|
|
20330
20391
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20331
20392
|
*/
|
|
20332
20393
|
/**
|
|
20333
|
-
* Define the initial state
|
|
20394
|
+
* Define the initial state of column custom group accordions
|
|
20334
20395
|
* in data panel v2.
|
|
20335
20396
|
*/
|
|
20336
20397
|
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
@@ -20553,7 +20614,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20553
20614
|
Page["Monitor"] = "monitor";
|
|
20554
20615
|
})(exports.Page || (exports.Page = {}));
|
|
20555
20616
|
/**
|
|
20556
|
-
* Define the initial state
|
|
20617
|
+
* Define the initial state of column custom group accordions
|
|
20557
20618
|
* in data panel v2.
|
|
20558
20619
|
*/
|
|
20559
20620
|
var DataPanelCustomColumnGroupsAccordionState;
|
|
@@ -21066,8 +21127,8 @@ query GetEurekaVizSnapshots(
|
|
|
21066
21127
|
* Copyright (c) 2022
|
|
21067
21128
|
*
|
|
21068
21129
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
21069
|
-
* https://developers.thoughtspot.com/docs
|
|
21070
|
-
* https://developers.thoughtspot.com/docs
|
|
21130
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
21131
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
21071
21132
|
* @summary Liveboard & visualization embed
|
|
21072
21133
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21073
21134
|
*/
|