@thoughtspot/visual-embed-sdk 1.36.9-primary-actions → 1.36.9
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/cjs/package.json +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +1 -4
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/types.d.ts +1 -16
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +0 -1
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BJx3m5_V.js → index-Dg18PU5Z.js} +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +1 -16
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +4 -8
- package/dist/tsembed-react.js +3 -7
- package/dist/tsembed.es.js +4 -8
- package/dist/tsembed.js +3 -7
- package/dist/visual-embed-sdk-react-full.d.ts +1 -16
- package/dist/visual-embed-sdk-react.d.ts +1 -16
- package/dist/visual-embed-sdk.d.ts +1 -16
- package/lib/package.json +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +1 -4
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/types.d.ts +1 -16
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +0 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +1 -16
- package/package.json +1 -1
- package/src/embed/ts-embed.ts +0 -4
- package/src/types.ts +0 -15
- package/cjs/src/pages/embed-test.page.d.ts +0 -8
- package/cjs/src/pages/embed-test.page.d.ts.map +0 -1
- package/cjs/src/pages/embed-test.page.js +0 -20
- package/cjs/src/pages/embed-test.page.js.map +0 -1
- package/cjs/src/pages/home.page.d.ts +0 -6
- package/cjs/src/pages/home.page.d.ts.map +0 -1
- package/cjs/src/pages/home.page.js +0 -12
- package/cjs/src/pages/home.page.js.map +0 -1
- package/cjs/src/pages/login.page.d.ts +0 -15
- package/cjs/src/pages/login.page.d.ts.map +0 -1
- package/cjs/src/pages/login.page.js +0 -22
- package/cjs/src/pages/login.page.js.map +0 -1
- package/cjs/src/tests/auth.test.d.ts +0 -1
- package/cjs/src/tests/auth.test.d.ts.map +0 -1
- package/cjs/src/tests/auth.test.js +0 -1
- package/cjs/src/tests/auth.test.js.map +0 -1
- package/cjs/src/tests/e2e/auth.spec.d.ts +0 -2
- package/cjs/src/tests/e2e/auth.spec.d.ts.map +0 -1
- package/cjs/src/tests/e2e/auth.spec.js +0 -54
- package/cjs/src/tests/e2e/auth.spec.js.map +0 -1
- package/dist/index-Do_T8J8z.js +0 -7370
- package/dist/src/pages/embed-test.page.d.ts +0 -8
- package/dist/src/pages/embed-test.page.d.ts.map +0 -1
- package/dist/src/pages/home.page.d.ts +0 -6
- package/dist/src/pages/home.page.d.ts.map +0 -1
- package/dist/src/pages/login.page.d.ts +0 -15
- package/dist/src/pages/login.page.d.ts.map +0 -1
- package/dist/src/tests/auth.test.d.ts +0 -1
- package/dist/src/tests/auth.test.d.ts.map +0 -1
- package/dist/src/tests/e2e/auth.spec.d.ts +0 -2
- package/dist/src/tests/e2e/auth.spec.d.ts.map +0 -1
- package/lib/src/pages/embed-test.page.d.ts +0 -8
- package/lib/src/pages/embed-test.page.d.ts.map +0 -1
- package/lib/src/pages/embed-test.page.js +0 -16
- package/lib/src/pages/embed-test.page.js.map +0 -1
- package/lib/src/pages/home.page.d.ts +0 -6
- package/lib/src/pages/home.page.d.ts.map +0 -1
- package/lib/src/pages/home.page.js +0 -8
- package/lib/src/pages/home.page.js.map +0 -1
- package/lib/src/pages/login.page.d.ts +0 -15
- package/lib/src/pages/login.page.d.ts.map +0 -1
- package/lib/src/pages/login.page.js +0 -18
- package/lib/src/pages/login.page.js.map +0 -1
- package/lib/src/tests/auth.test.d.ts +0 -1
- package/lib/src/tests/auth.test.d.ts.map +0 -1
- package/lib/src/tests/auth.test.js +0 -1
- package/lib/src/tests/auth.test.js.map +0 -1
- package/lib/src/tests/e2e/auth.spec.d.ts +0 -2
- package/lib/src/tests/e2e/auth.spec.d.ts.map +0 -1
- package/lib/src/tests/e2e/auth.spec.js +0 -52
- package/lib/src/tests/e2e/auth.spec.js.map +0 -1
package/dist/tsembed-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.9
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.9 */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useRef } from 'react';
|
|
4
4
|
|
|
@@ -3044,7 +3044,6 @@ var Param;
|
|
|
3044
3044
|
Param["preAuthCache"] = "preAuthCache";
|
|
3045
3045
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
3046
3046
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
3047
|
-
Param["PrimaryActions"] = "primaryActions";
|
|
3048
3047
|
})(Param || (Param = {}));
|
|
3049
3048
|
/**
|
|
3050
3049
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7556,7 +7555,7 @@ class AnswerService {
|
|
|
7556
7555
|
async getTML() {
|
|
7557
7556
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7558
7557
|
const edoc = object[0].edoc;
|
|
7559
|
-
const YAML = await import('./index-
|
|
7558
|
+
const YAML = await import('./index-Dg18PU5Z.js');
|
|
7560
7559
|
const parsedDoc = YAML.parse(edoc);
|
|
7561
7560
|
return {
|
|
7562
7561
|
answer: {
|
|
@@ -15246,7 +15245,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15246
15245
|
return e;
|
|
15247
15246
|
}
|
|
15248
15247
|
|
|
15249
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9
|
|
15248
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9";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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.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 | coveralls","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.21","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":"^8.2.6","@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":"^22.2.3","@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",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","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:"^5.3.4"};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:"31 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};
|
|
15250
15249
|
|
|
15251
15250
|
/**
|
|
15252
15251
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15783,7 +15782,7 @@ class TsEmbed {
|
|
|
15783
15782
|
if (this.embedConfig.currencyFormat) {
|
|
15784
15783
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15785
15784
|
}
|
|
15786
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15785
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15787
15786
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15788
15787
|
const additionalFlags = {
|
|
15789
15788
|
...additionalFlagsFromInit,
|
|
@@ -15800,9 +15799,6 @@ class TsEmbed {
|
|
|
15800
15799
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15801
15800
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15802
15801
|
}
|
|
15803
|
-
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15804
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15805
|
-
}
|
|
15806
15802
|
if (disabledActionReason) {
|
|
15807
15803
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15808
15804
|
}
|
package/dist/tsembed-react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.9
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.9 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
@@ -3066,7 +3066,6 @@
|
|
|
3066
3066
|
Param["preAuthCache"] = "preAuthCache";
|
|
3067
3067
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
3068
3068
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
3069
|
-
Param["PrimaryActions"] = "primaryActions";
|
|
3070
3069
|
})(Param || (Param = {}));
|
|
3071
3070
|
/**
|
|
3072
3071
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -15268,7 +15267,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15268
15267
|
return e;
|
|
15269
15268
|
}
|
|
15270
15269
|
|
|
15271
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9
|
|
15270
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9";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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.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 | coveralls","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.21","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":"^8.2.6","@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":"^22.2.3","@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",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","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:"^5.3.4"};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:"31 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};
|
|
15272
15271
|
|
|
15273
15272
|
/**
|
|
15274
15273
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15805,7 +15804,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15805
15804
|
if (this.embedConfig.currencyFormat) {
|
|
15806
15805
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15807
15806
|
}
|
|
15808
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15807
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15809
15808
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15810
15809
|
const additionalFlags = {
|
|
15811
15810
|
...additionalFlagsFromInit,
|
|
@@ -15822,9 +15821,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15822
15821
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15823
15822
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15824
15823
|
}
|
|
15825
|
-
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15826
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15827
|
-
}
|
|
15828
15824
|
if (disabledActionReason) {
|
|
15829
15825
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15830
15826
|
}
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.9
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.9 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -2929,7 +2929,6 @@ var Param;
|
|
|
2929
2929
|
Param["preAuthCache"] = "preAuthCache";
|
|
2930
2930
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2931
2931
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2932
|
-
Param["PrimaryActions"] = "primaryActions";
|
|
2933
2932
|
})(Param || (Param = {}));
|
|
2934
2933
|
/**
|
|
2935
2934
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -7441,7 +7440,7 @@ class AnswerService {
|
|
|
7441
7440
|
async getTML() {
|
|
7442
7441
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7443
7442
|
const edoc = object[0].edoc;
|
|
7444
|
-
const YAML = await import('./index-
|
|
7443
|
+
const YAML = await import('./index-Dg18PU5Z.js');
|
|
7445
7444
|
const parsedDoc = YAML.parse(edoc);
|
|
7446
7445
|
return {
|
|
7447
7446
|
answer: {
|
|
@@ -15297,7 +15296,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15297
15296
|
return e;
|
|
15298
15297
|
}
|
|
15299
15298
|
|
|
15300
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9
|
|
15299
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9";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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.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 | coveralls","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.21","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":"^8.2.6","@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":"^22.2.3","@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",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","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:"^5.3.4"};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:"31 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};
|
|
15301
15300
|
|
|
15302
15301
|
/**
|
|
15303
15302
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15834,7 +15833,7 @@ class TsEmbed {
|
|
|
15834
15833
|
if (this.embedConfig.currencyFormat) {
|
|
15835
15834
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15836
15835
|
}
|
|
15837
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15836
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15838
15837
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15839
15838
|
const additionalFlags = {
|
|
15840
15839
|
...additionalFlagsFromInit,
|
|
@@ -15851,9 +15850,6 @@ class TsEmbed {
|
|
|
15851
15850
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15852
15851
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15853
15852
|
}
|
|
15854
|
-
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15855
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15856
|
-
}
|
|
15857
15853
|
if (disabledActionReason) {
|
|
15858
15854
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15859
15855
|
}
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.9
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.9 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -2935,7 +2935,6 @@
|
|
|
2935
2935
|
Param["preAuthCache"] = "preAuthCache";
|
|
2936
2936
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2937
2937
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2938
|
-
Param["PrimaryActions"] = "primaryActions";
|
|
2939
2938
|
})(Param || (Param = {}));
|
|
2940
2939
|
/**
|
|
2941
2940
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -15303,7 +15302,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15303
15302
|
return e;
|
|
15304
15303
|
}
|
|
15305
15304
|
|
|
15306
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9
|
|
15305
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9";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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.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 | coveralls","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.21","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":"^8.2.6","@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":"^22.2.3","@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",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","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:"^5.3.4"};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:"31 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};
|
|
15307
15306
|
|
|
15308
15307
|
/**
|
|
15309
15308
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15840,7 +15839,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15840
15839
|
if (this.embedConfig.currencyFormat) {
|
|
15841
15840
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15842
15841
|
}
|
|
15843
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15842
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15844
15843
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15845
15844
|
const additionalFlags = {
|
|
15846
15845
|
...additionalFlagsFromInit,
|
|
@@ -15857,9 +15856,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15857
15856
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15858
15857
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15859
15858
|
}
|
|
15860
|
-
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15861
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15862
|
-
}
|
|
15863
15859
|
if (disabledActionReason) {
|
|
15864
15860
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15865
15861
|
}
|
|
@@ -2625,20 +2625,6 @@ export interface ViewConfig {
|
|
|
2625
2625
|
* ```
|
|
2626
2626
|
*/
|
|
2627
2627
|
disabledActions?: Action[];
|
|
2628
|
-
/**
|
|
2629
|
-
* The list of actions to display as primary actions,
|
|
2630
|
-
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2631
|
-
* Use this to display actions.
|
|
2632
|
-
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2633
|
-
* @example
|
|
2634
|
-
* ```js
|
|
2635
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
2636
|
-
* ... // other liveboard view config
|
|
2637
|
-
* primaryActions: [Action.Download]
|
|
2638
|
-
* });
|
|
2639
|
-
* ```
|
|
2640
|
-
*/
|
|
2641
|
-
primaryActions?: Action[];
|
|
2642
2628
|
/**
|
|
2643
2629
|
* The tooltip to display for disabled actions.
|
|
2644
2630
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -5490,8 +5476,7 @@ export declare enum Param {
|
|
|
5490
5476
|
DataSourceId = "dataSourceId",
|
|
5491
5477
|
preAuthCache = "preAuthCache",
|
|
5492
5478
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5493
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5494
|
-
PrimaryActions = "primaryActions"
|
|
5479
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5495
5480
|
}
|
|
5496
5481
|
/**
|
|
5497
5482
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -2615,20 +2615,6 @@ export interface ViewConfig {
|
|
|
2615
2615
|
* ```
|
|
2616
2616
|
*/
|
|
2617
2617
|
disabledActions?: Action[];
|
|
2618
|
-
/**
|
|
2619
|
-
* The list of actions to display as primary actions,
|
|
2620
|
-
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2621
|
-
* Use this to display actions.
|
|
2622
|
-
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2623
|
-
* @example
|
|
2624
|
-
* ```js
|
|
2625
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
2626
|
-
* ... // other liveboard view config
|
|
2627
|
-
* primaryActions: [Action.Download]
|
|
2628
|
-
* });
|
|
2629
|
-
* ```
|
|
2630
|
-
*/
|
|
2631
|
-
primaryActions?: Action[];
|
|
2632
2618
|
/**
|
|
2633
2619
|
* The tooltip to display for disabled actions.
|
|
2634
2620
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -5480,8 +5466,7 @@ export declare enum Param {
|
|
|
5480
5466
|
DataSourceId = "dataSourceId",
|
|
5481
5467
|
preAuthCache = "preAuthCache",
|
|
5482
5468
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5483
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5484
|
-
PrimaryActions = "primaryActions"
|
|
5469
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5485
5470
|
}
|
|
5486
5471
|
/**
|
|
5487
5472
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -2628,20 +2628,6 @@ export interface ViewConfig {
|
|
|
2628
2628
|
* ```
|
|
2629
2629
|
*/
|
|
2630
2630
|
disabledActions?: Action[];
|
|
2631
|
-
/**
|
|
2632
|
-
* The list of actions to display as primary actions,
|
|
2633
|
-
* These actions will be displayed upfront in the liveboard/app embed.
|
|
2634
|
-
* Use this to display actions.
|
|
2635
|
-
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
2636
|
-
* @example
|
|
2637
|
-
* ```js
|
|
2638
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
2639
|
-
* ... // other liveboard view config
|
|
2640
|
-
* primaryActions: [Action.Download]
|
|
2641
|
-
* });
|
|
2642
|
-
* ```
|
|
2643
|
-
*/
|
|
2644
|
-
primaryActions?: Action[];
|
|
2645
2631
|
/**
|
|
2646
2632
|
* The tooltip to display for disabled actions.
|
|
2647
2633
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -5493,8 +5479,7 @@ export enum Param {
|
|
|
5493
5479
|
DataSourceId = "dataSourceId",
|
|
5494
5480
|
preAuthCache = "preAuthCache",
|
|
5495
5481
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5496
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5497
|
-
PrimaryActions = "primaryActions"
|
|
5482
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5498
5483
|
}
|
|
5499
5484
|
/**
|
|
5500
5485
|
* ThoughtSpot application pages include actions and menu commands
|
package/lib/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-embed.d.ts","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EACH,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAwB7E,OAAO,EAEH,WAAW,EACX,SAAS,EACT,UAAU,EACV,eAAe,EAGf,WAAW,EACX,cAAc,EAGd,UAAU,EAIV,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAclB,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAItE;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAW9C;;;;GAIG;AACH,qBAAa,OAAO;IAChB;;;;;OAK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export class TsEmbed {
|
|
|
392
392
|
if (this.embedConfig.currencyFormat) {
|
|
393
393
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
394
394
|
}
|
|
395
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
395
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
396
396
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
397
397
|
const additionalFlags = {
|
|
398
398
|
...additionalFlagsFromInit,
|
|
@@ -409,9 +409,6 @@ export class TsEmbed {
|
|
|
409
409
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
410
410
|
queryParams[Param.DisableActions] = disabledActions;
|
|
411
411
|
}
|
|
412
|
-
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
413
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
414
|
-
}
|
|
415
412
|
if (disabledActionReason) {
|
|
416
413
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
417
414
|
}
|