@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.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
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -1346,13 +1346,11 @@ var EmbedEvent;
|
|
|
1346
1346
|
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1347
1347
|
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1348
1348
|
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1349
|
-
*
|
|
1350
|
-
* `execute` - When `execute` returns `true`, the search is run.
|
|
1349
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1351
1350
|
* When `execute` returns `false`, the search is not executed.
|
|
1352
|
-
*
|
|
1353
|
-
* `error` - Developers can customize the user-facing error message when `execute`
|
|
1351
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1354
1352
|
* is `false` by using the `error` parameters in `responder`.
|
|
1355
|
-
* `errorText` - The error message text shown to the user.
|
|
1353
|
+
* - `errorText` - The error message text shown to the user.
|
|
1356
1354
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1357
1355
|
* @example
|
|
1358
1356
|
*
|
|
@@ -1368,7 +1366,7 @@ var EmbedEvent;
|
|
|
1368
1366
|
* },
|
|
1369
1367
|
* },
|
|
1370
1368
|
* });
|
|
1371
|
-
* })
|
|
1369
|
+
* })
|
|
1372
1370
|
* ```
|
|
1373
1371
|
* @example
|
|
1374
1372
|
*
|
|
@@ -1394,7 +1392,7 @@ var EmbedEvent;
|
|
|
1394
1392
|
* },
|
|
1395
1393
|
* },
|
|
1396
1394
|
* });
|
|
1397
|
-
* })
|
|
1395
|
+
* })
|
|
1398
1396
|
* ```
|
|
1399
1397
|
*/
|
|
1400
1398
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -4843,18 +4841,80 @@ var ContextMenuTriggerOptions;
|
|
|
4843
4841
|
*/
|
|
4844
4842
|
var CustomActionsPosition;
|
|
4845
4843
|
(function (CustomActionsPosition) {
|
|
4844
|
+
/**
|
|
4845
|
+
* Shows the action as a primary button
|
|
4846
|
+
* in the toolbar area of the embed.
|
|
4847
|
+
*/
|
|
4846
4848
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
4849
|
+
/**
|
|
4850
|
+
* Shows the action inside the "More" menu
|
|
4851
|
+
* (three-dot overflow menu).
|
|
4852
|
+
*/
|
|
4847
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
|
+
*/
|
|
4848
4861
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
4849
4862
|
})(CustomActionsPosition || (CustomActionsPosition = {}));
|
|
4850
4863
|
/**
|
|
4851
|
-
* 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.
|
|
4852
4868
|
*/
|
|
4853
4869
|
var CustomActionTarget;
|
|
4854
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
|
+
*/
|
|
4855
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
|
+
*/
|
|
4856
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
|
+
*/
|
|
4857
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
|
+
*/
|
|
4858
4918
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
4859
4919
|
})(CustomActionTarget || (CustomActionTarget = {}));
|
|
4860
4920
|
/**
|
|
@@ -8957,7 +9017,7 @@ class AnswerService {
|
|
|
8957
9017
|
async getTML() {
|
|
8958
9018
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8959
9019
|
const edoc = object[0].edoc;
|
|
8960
|
-
const YAML = await import('./index-
|
|
9020
|
+
const YAML = await import('./index-Vyh6Ha5f.js');
|
|
8961
9021
|
const parsedDoc = YAML.parse(edoc);
|
|
8962
9022
|
return {
|
|
8963
9023
|
answer: {
|
|
@@ -17620,7 +17680,7 @@ function removeSSORedirectUrlMarker() {
|
|
|
17620
17680
|
// reload the page which we don't want. We'll live with adding an
|
|
17621
17681
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17622
17682
|
// that creates an issue.
|
|
17623
|
-
// Replace any
|
|
17683
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17624
17684
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17625
17685
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17626
17686
|
window.location.hash = updatedHash;
|
|
@@ -18428,7 +18488,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
18428
18488
|
return eventData;
|
|
18429
18489
|
}
|
|
18430
18490
|
|
|
18431
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
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};
|
|
18432
18492
|
|
|
18433
18493
|
class HostEventClient {
|
|
18434
18494
|
constructor(iFrame) {
|
|
@@ -18702,7 +18762,7 @@ const processLegacyInterceptResponse = (payload) => {
|
|
|
18702
18762
|
*/
|
|
18703
18763
|
const { version } = pkgInfo;
|
|
18704
18764
|
/**
|
|
18705
|
-
* Global prefix for all
|
|
18765
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18706
18766
|
*/
|
|
18707
18767
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18708
18768
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20255,7 +20315,7 @@ var Page;
|
|
|
20255
20315
|
Page["Monitor"] = "monitor";
|
|
20256
20316
|
})(Page || (Page = {}));
|
|
20257
20317
|
/**
|
|
20258
|
-
* Define the initial state
|
|
20318
|
+
* Define the initial state of column custom group accordions
|
|
20259
20319
|
* in data panel v2.
|
|
20260
20320
|
*/
|
|
20261
20321
|
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
@@ -20768,8 +20828,8 @@ const addPreviewStylesIfNotPresent = () => {
|
|
|
20768
20828
|
* Copyright (c) 2022
|
|
20769
20829
|
*
|
|
20770
20830
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
20771
|
-
* https://developers.thoughtspot.com/docs
|
|
20772
|
-
* https://developers.thoughtspot.com/docs
|
|
20831
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
20832
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
20773
20833
|
* @summary Liveboard & visualization embed
|
|
20774
20834
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20775
20835
|
*/
|
|
@@ -21176,12 +21236,13 @@ class PinboardEmbed extends LiveboardEmbed {
|
|
|
21176
21236
|
/**
|
|
21177
21237
|
* Copyright (c) 2022
|
|
21178
21238
|
*
|
|
21179
|
-
* Embed ThoughtSpot search or a saved answer
|
|
21239
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
21240
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
21180
21241
|
* @summary Search embed
|
|
21181
21242
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21182
21243
|
*/
|
|
21183
21244
|
/**
|
|
21184
|
-
* Define the initial state
|
|
21245
|
+
* Define the initial state of column custom group accordions
|
|
21185
21246
|
* in data panel v2.
|
|
21186
21247
|
*/
|
|
21187
21248
|
var DataPanelCustomColumnGroupsAccordionState;
|
package/dist/tsembed.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) :
|
|
@@ -1352,13 +1352,11 @@
|
|
|
1352
1352
|
* - `payload`: The payload received from the embed related to the Data API call.
|
|
1353
1353
|
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
1354
1354
|
* will run or block the search operation, and if blocked, which error message to provide.
|
|
1355
|
-
*
|
|
1356
|
-
* `execute` - When `execute` returns `true`, the search is run.
|
|
1355
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
1357
1356
|
* When `execute` returns `false`, the search is not executed.
|
|
1358
|
-
*
|
|
1359
|
-
* `error` - Developers can customize the user-facing error message when `execute`
|
|
1357
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
1360
1358
|
* is `false` by using the `error` parameters in `responder`.
|
|
1361
|
-
* `errorText` - The error message text shown to the user.
|
|
1359
|
+
* - `errorText` - The error message text shown to the user.
|
|
1362
1360
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
1363
1361
|
* @example
|
|
1364
1362
|
*
|
|
@@ -1374,7 +1372,7 @@
|
|
|
1374
1372
|
* },
|
|
1375
1373
|
* },
|
|
1376
1374
|
* });
|
|
1377
|
-
* })
|
|
1375
|
+
* })
|
|
1378
1376
|
* ```
|
|
1379
1377
|
* @example
|
|
1380
1378
|
*
|
|
@@ -1400,7 +1398,7 @@
|
|
|
1400
1398
|
* },
|
|
1401
1399
|
* },
|
|
1402
1400
|
* });
|
|
1403
|
-
* })
|
|
1401
|
+
* })
|
|
1404
1402
|
* ```
|
|
1405
1403
|
*/
|
|
1406
1404
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
@@ -4849,18 +4847,80 @@
|
|
|
4849
4847
|
*/
|
|
4850
4848
|
exports.CustomActionsPosition = void 0;
|
|
4851
4849
|
(function (CustomActionsPosition) {
|
|
4850
|
+
/**
|
|
4851
|
+
* Shows the action as a primary button
|
|
4852
|
+
* in the toolbar area of the embed.
|
|
4853
|
+
*/
|
|
4852
4854
|
CustomActionsPosition["PRIMARY"] = "PRIMARY";
|
|
4855
|
+
/**
|
|
4856
|
+
* Shows the action inside the "More" menu
|
|
4857
|
+
* (three-dot overflow menu).
|
|
4858
|
+
*/
|
|
4853
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
|
+
*/
|
|
4854
4867
|
CustomActionsPosition["CONTEXTMENU"] = "CONTEXTMENU";
|
|
4855
4868
|
})(exports.CustomActionsPosition || (exports.CustomActionsPosition = {}));
|
|
4856
4869
|
/**
|
|
4857
|
-
* 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.
|
|
4858
4874
|
*/
|
|
4859
4875
|
exports.CustomActionTarget = void 0;
|
|
4860
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
|
+
*/
|
|
4861
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
|
+
*/
|
|
4862
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
|
+
*/
|
|
4863
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
|
+
*/
|
|
4864
4924
|
CustomActionTarget["SPOTTER"] = "SPOTTER";
|
|
4865
4925
|
})(exports.CustomActionTarget || (exports.CustomActionTarget = {}));
|
|
4866
4926
|
/**
|
|
@@ -17626,7 +17686,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
17626
17686
|
// reload the page which we don't want. We'll live with adding an
|
|
17627
17687
|
// unnecessary hash to the parent page URL until we find any use case where
|
|
17628
17688
|
// that creates an issue.
|
|
17629
|
-
// Replace any
|
|
17689
|
+
// Replace any occurrences of ?ssoMarker=guid or &ssoMarker=guid.
|
|
17630
17690
|
let updatedHash = window.location.hash.replace(`?${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17631
17691
|
updatedHash = updatedHash.replace(`&${getSSOMarker(SSO_REDIRECTION_MARKER_GUID)}`, '');
|
|
17632
17692
|
window.location.hash = updatedHash;
|
|
@@ -18434,7 +18494,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18434
18494
|
return eventData;
|
|
18435
18495
|
}
|
|
18436
18496
|
|
|
18437
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.46.
|
|
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};
|
|
18438
18498
|
|
|
18439
18499
|
class HostEventClient {
|
|
18440
18500
|
constructor(iFrame) {
|
|
@@ -18708,7 +18768,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
18708
18768
|
*/
|
|
18709
18769
|
const { version } = pkgInfo;
|
|
18710
18770
|
/**
|
|
18711
|
-
* Global prefix for all
|
|
18771
|
+
* Global prefix for all ThoughtSpot postHash Params.
|
|
18712
18772
|
*/
|
|
18713
18773
|
const THOUGHTSPOT_PARAM_PREFIX = 'ts-';
|
|
18714
18774
|
const TS_EMBED_ID = '_thoughtspot-embed';
|
|
@@ -20261,7 +20321,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20261
20321
|
Page["Monitor"] = "monitor";
|
|
20262
20322
|
})(exports.Page || (exports.Page = {}));
|
|
20263
20323
|
/**
|
|
20264
|
-
* Define the initial state
|
|
20324
|
+
* Define the initial state of column custom group accordions
|
|
20265
20325
|
* in data panel v2.
|
|
20266
20326
|
*/
|
|
20267
20327
|
exports.DataPanelCustomColumnGroupsAccordionState = void 0;
|
|
@@ -20774,8 +20834,8 @@ query GetEurekaVizSnapshots(
|
|
|
20774
20834
|
* Copyright (c) 2022
|
|
20775
20835
|
*
|
|
20776
20836
|
* Embed a ThoughtSpot Liveboard or visualization
|
|
20777
|
-
* https://developers.thoughtspot.com/docs
|
|
20778
|
-
* https://developers.thoughtspot.com/docs
|
|
20837
|
+
* https://developers.thoughtspot.com/docs/embed-liveboard
|
|
20838
|
+
* https://developers.thoughtspot.com/docs/embed-a-viz
|
|
20779
20839
|
* @summary Liveboard & visualization embed
|
|
20780
20840
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
20781
20841
|
*/
|
|
@@ -21182,12 +21242,13 @@ query GetEurekaVizSnapshots(
|
|
|
21182
21242
|
/**
|
|
21183
21243
|
* Copyright (c) 2022
|
|
21184
21244
|
*
|
|
21185
|
-
* Embed ThoughtSpot search or a saved answer
|
|
21245
|
+
* Embed ThoughtSpot search or a saved answer.
|
|
21246
|
+
* https://developers.thoughtspot.com/docs/search-embed
|
|
21186
21247
|
* @summary Search embed
|
|
21187
21248
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
21188
21249
|
*/
|
|
21189
21250
|
/**
|
|
21190
|
-
* Define the initial state
|
|
21251
|
+
* Define the initial state of column custom group accordions
|
|
21191
21252
|
* in data panel v2.
|
|
21192
21253
|
*/
|
|
21193
21254
|
var DataPanelCustomColumnGroupsAccordionState;
|