@thoughtspot/visual-embed-sdk 1.36.9-primaryAction → 1.37.0
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/liveboard.d.ts +2 -2
- 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/index.d.ts.map +1 -1
- package/cjs/src/index.js +1 -0
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +1 -0
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/types.d.ts +12 -28
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +9 -10
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BEyovSez.js → index-DnIvX1FR.js} +2 -1
- package/dist/src/embed/liveboard.d.ts +2 -2
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +12 -28
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +14 -17
- package/dist/tsembed-react.js +13 -16
- package/dist/tsembed.es.js +14 -17
- package/dist/tsembed.js +13 -16
- package/dist/visual-embed-sdk-react-full.d.ts +14 -30
- package/dist/visual-embed-sdk-react.d.ts +14 -30
- package/dist/visual-embed-sdk.d.ts +14 -30
- package/lib/package.json +1 -1
- package/lib/src/embed/liveboard.d.ts +2 -2
- 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/index.d.ts.map +1 -1
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -0
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/types.d.ts +12 -28
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +9 -10
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +14 -30
- package/package.json +1 -1
- package/src/embed/liveboard.ts +2 -2
- package/src/embed/ts-embed.ts +0 -5
- package/src/index.ts +2 -0
- package/src/react/index.tsx +2 -0
- package/src/types.ts +11 -31
- 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-BJx3m5_V.js +0 -7370
- package/dist/index-Dg18PU5Z.js +0 -7370
- 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.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.0 */
|
|
2
|
+
'use client';
|
|
2
3
|
(function (global, factory) {
|
|
3
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
4
5
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
@@ -816,8 +817,8 @@
|
|
|
816
817
|
})(exports.HomepageModule || (exports.HomepageModule = {}));
|
|
817
818
|
/**
|
|
818
819
|
* List page columns that can be hidden.
|
|
819
|
-
* **Note**: This option is applicable
|
|
820
|
-
* @version SDK: 1.38.0 | ThoughtSpot:
|
|
820
|
+
* **Note**: This option is applicable to full app embedding only.
|
|
821
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
821
822
|
*/
|
|
822
823
|
// eslint-disable-next-line no-shadow
|
|
823
824
|
exports.ListPageColumns = void 0;
|
|
@@ -1870,7 +1871,7 @@
|
|
|
1870
1871
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1871
1872
|
* })
|
|
1872
1873
|
* ```
|
|
1873
|
-
* @version SDK: 1.
|
|
1874
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1874
1875
|
*/
|
|
1875
1876
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1876
1877
|
/**
|
|
@@ -1883,12 +1884,12 @@
|
|
|
1883
1884
|
* console.log('payload', payload);
|
|
1884
1885
|
* })
|
|
1885
1886
|
*```
|
|
1886
|
-
* @version SDK : 1.
|
|
1887
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1887
1888
|
*/
|
|
1888
1889
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1889
1890
|
/**
|
|
1890
1891
|
* Emitted when a user creates a Model.
|
|
1891
|
-
* @version SDK : 1.
|
|
1892
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1892
1893
|
*/
|
|
1893
1894
|
EmbedEvent["CreateModel"] = "createModel";
|
|
1894
1895
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
@@ -2332,7 +2333,7 @@
|
|
|
2332
2333
|
* ```js
|
|
2333
2334
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
2334
2335
|
* ```
|
|
2335
|
-
* @version SDK: 1.
|
|
2336
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
2336
2337
|
*/
|
|
2337
2338
|
HostEvent["Remove"] = "delete";
|
|
2338
2339
|
/**
|
|
@@ -2927,7 +2928,7 @@
|
|
|
2927
2928
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2928
2929
|
* })
|
|
2929
2930
|
* ```
|
|
2930
|
-
* @version SDK: 1.
|
|
2931
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2931
2932
|
*/
|
|
2932
2933
|
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2933
2934
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
@@ -3066,7 +3067,6 @@
|
|
|
3066
3067
|
Param["preAuthCache"] = "preAuthCache";
|
|
3067
3068
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
3068
3069
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
3069
|
-
Param["PrimaryAction"] = "primaryAction";
|
|
3070
3070
|
})(Param || (Param = {}));
|
|
3071
3071
|
/**
|
|
3072
3072
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4275,7 +4275,7 @@
|
|
|
4275
4275
|
* ```js
|
|
4276
4276
|
* hiddenAction: [Action.ColumnRename]
|
|
4277
4277
|
* ```
|
|
4278
|
-
* @version SDK: 1.
|
|
4278
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4279
4279
|
*/
|
|
4280
4280
|
Action["ColumnRename"] = "columnRename";
|
|
4281
4281
|
/**
|
|
@@ -4285,7 +4285,7 @@
|
|
|
4285
4285
|
* ```js
|
|
4286
4286
|
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
4287
4287
|
* ```
|
|
4288
|
-
* @version SDK: 1.
|
|
4288
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4289
4289
|
*/
|
|
4290
4290
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4291
4291
|
})(exports.Action || (exports.Action = {}));
|
|
@@ -15268,7 +15268,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15268
15268
|
return e;
|
|
15269
15269
|
}
|
|
15270
15270
|
|
|
15271
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
15271
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.0";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
15272
|
|
|
15273
15273
|
/**
|
|
15274
15274
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15805,7 +15805,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15805
15805
|
if (this.embedConfig.currencyFormat) {
|
|
15806
15806
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15807
15807
|
}
|
|
15808
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15808
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15809
15809
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15810
15810
|
const additionalFlags = {
|
|
15811
15811
|
...additionalFlagsFromInit,
|
|
@@ -15815,9 +15815,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15815
15815
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15816
15816
|
return queryParams;
|
|
15817
15817
|
}
|
|
15818
|
-
if (primaryAction) {
|
|
15819
|
-
queryParams[Param.PrimaryAction] = primaryAction;
|
|
15820
|
-
}
|
|
15821
15818
|
if (Array.isArray(visibleTabs) && Array.isArray(hiddenTabs)) {
|
|
15822
15819
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
15823
15820
|
return queryParams;
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.0 */
|
|
2
|
+
'use client';
|
|
2
3
|
function _mergeNamespaces(n, m) {
|
|
3
4
|
m.forEach(function (e) {
|
|
4
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -679,8 +680,8 @@ var HomepageModule;
|
|
|
679
680
|
})(HomepageModule || (HomepageModule = {}));
|
|
680
681
|
/**
|
|
681
682
|
* List page columns that can be hidden.
|
|
682
|
-
* **Note**: This option is applicable
|
|
683
|
-
* @version SDK: 1.38.0 | ThoughtSpot:
|
|
683
|
+
* **Note**: This option is applicable to full app embedding only.
|
|
684
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
684
685
|
*/
|
|
685
686
|
// eslint-disable-next-line no-shadow
|
|
686
687
|
var ListPageColumns;
|
|
@@ -1733,7 +1734,7 @@ var EmbedEvent;
|
|
|
1733
1734
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1734
1735
|
* })
|
|
1735
1736
|
* ```
|
|
1736
|
-
* @version SDK: 1.
|
|
1737
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1737
1738
|
*/
|
|
1738
1739
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1739
1740
|
/**
|
|
@@ -1746,12 +1747,12 @@ var EmbedEvent;
|
|
|
1746
1747
|
* console.log('payload', payload);
|
|
1747
1748
|
* })
|
|
1748
1749
|
*```
|
|
1749
|
-
* @version SDK : 1.
|
|
1750
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1750
1751
|
*/
|
|
1751
1752
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1752
1753
|
/**
|
|
1753
1754
|
* Emitted when a user creates a Model.
|
|
1754
|
-
* @version SDK : 1.
|
|
1755
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1755
1756
|
*/
|
|
1756
1757
|
EmbedEvent["CreateModel"] = "createModel";
|
|
1757
1758
|
})(EmbedEvent || (EmbedEvent = {}));
|
|
@@ -2195,7 +2196,7 @@ var HostEvent;
|
|
|
2195
2196
|
* ```js
|
|
2196
2197
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
2197
2198
|
* ```
|
|
2198
|
-
* @version SDK: 1.
|
|
2199
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
2199
2200
|
*/
|
|
2200
2201
|
HostEvent["Remove"] = "delete";
|
|
2201
2202
|
/**
|
|
@@ -2790,7 +2791,7 @@ var HostEvent;
|
|
|
2790
2791
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2791
2792
|
* })
|
|
2792
2793
|
* ```
|
|
2793
|
-
* @version SDK: 1.
|
|
2794
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2794
2795
|
*/
|
|
2795
2796
|
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2796
2797
|
})(HostEvent || (HostEvent = {}));
|
|
@@ -2929,7 +2930,6 @@ var Param;
|
|
|
2929
2930
|
Param["preAuthCache"] = "preAuthCache";
|
|
2930
2931
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2931
2932
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2932
|
-
Param["PrimaryAction"] = "primaryAction";
|
|
2933
2933
|
})(Param || (Param = {}));
|
|
2934
2934
|
/**
|
|
2935
2935
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4138,7 +4138,7 @@ var Action;
|
|
|
4138
4138
|
* ```js
|
|
4139
4139
|
* hiddenAction: [Action.ColumnRename]
|
|
4140
4140
|
* ```
|
|
4141
|
-
* @version SDK: 1.
|
|
4141
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4142
4142
|
*/
|
|
4143
4143
|
Action["ColumnRename"] = "columnRename";
|
|
4144
4144
|
/**
|
|
@@ -4148,7 +4148,7 @@ var Action;
|
|
|
4148
4148
|
* ```js
|
|
4149
4149
|
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
4150
4150
|
* ```
|
|
4151
|
-
* @version SDK: 1.
|
|
4151
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4152
4152
|
*/
|
|
4153
4153
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4154
4154
|
})(Action || (Action = {}));
|
|
@@ -7441,7 +7441,7 @@ class AnswerService {
|
|
|
7441
7441
|
async getTML() {
|
|
7442
7442
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7443
7443
|
const edoc = object[0].edoc;
|
|
7444
|
-
const YAML = await import('./index-
|
|
7444
|
+
const YAML = await import('./index-DnIvX1FR.js');
|
|
7445
7445
|
const parsedDoc = YAML.parse(edoc);
|
|
7446
7446
|
return {
|
|
7447
7447
|
answer: {
|
|
@@ -15297,7 +15297,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15297
15297
|
return e;
|
|
15298
15298
|
}
|
|
15299
15299
|
|
|
15300
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
15300
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.0";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
15301
|
|
|
15302
15302
|
/**
|
|
15303
15303
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15834,7 +15834,7 @@ class TsEmbed {
|
|
|
15834
15834
|
if (this.embedConfig.currencyFormat) {
|
|
15835
15835
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15836
15836
|
}
|
|
15837
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15837
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15838
15838
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15839
15839
|
const additionalFlags = {
|
|
15840
15840
|
...additionalFlagsFromInit,
|
|
@@ -15844,9 +15844,6 @@ class TsEmbed {
|
|
|
15844
15844
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15845
15845
|
return queryParams;
|
|
15846
15846
|
}
|
|
15847
|
-
if (primaryAction) {
|
|
15848
|
-
queryParams[Param.PrimaryAction] = primaryAction;
|
|
15849
|
-
}
|
|
15850
15847
|
if (Array.isArray(visibleTabs) && Array.isArray(hiddenTabs)) {
|
|
15851
15848
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
15852
15849
|
return queryParams;
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.37.0 */
|
|
2
|
+
'use client';
|
|
2
3
|
(function (global, factory) {
|
|
3
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
5
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -685,8 +686,8 @@
|
|
|
685
686
|
})(exports.HomepageModule || (exports.HomepageModule = {}));
|
|
686
687
|
/**
|
|
687
688
|
* List page columns that can be hidden.
|
|
688
|
-
* **Note**: This option is applicable
|
|
689
|
-
* @version SDK: 1.38.0 | ThoughtSpot:
|
|
689
|
+
* **Note**: This option is applicable to full app embedding only.
|
|
690
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
690
691
|
*/
|
|
691
692
|
// eslint-disable-next-line no-shadow
|
|
692
693
|
exports.ListPageColumns = void 0;
|
|
@@ -1739,7 +1740,7 @@
|
|
|
1739
1740
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1740
1741
|
* })
|
|
1741
1742
|
* ```
|
|
1742
|
-
* @version SDK: 1.
|
|
1743
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
1743
1744
|
*/
|
|
1744
1745
|
EmbedEvent["TableVizRendered"] = "TableVizRendered";
|
|
1745
1746
|
/**
|
|
@@ -1752,12 +1753,12 @@
|
|
|
1752
1753
|
* console.log('payload', payload);
|
|
1753
1754
|
* })
|
|
1754
1755
|
*```
|
|
1755
|
-
* @version SDK : 1.
|
|
1756
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1756
1757
|
*/
|
|
1757
1758
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1758
1759
|
/**
|
|
1759
1760
|
* Emitted when a user creates a Model.
|
|
1760
|
-
* @version SDK : 1.
|
|
1761
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
1761
1762
|
*/
|
|
1762
1763
|
EmbedEvent["CreateModel"] = "createModel";
|
|
1763
1764
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
@@ -2201,7 +2202,7 @@
|
|
|
2201
2202
|
* ```js
|
|
2202
2203
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
2203
2204
|
* ```
|
|
2204
|
-
* @version SDK: 1.
|
|
2205
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
2205
2206
|
*/
|
|
2206
2207
|
HostEvent["Remove"] = "delete";
|
|
2207
2208
|
/**
|
|
@@ -2796,7 +2797,7 @@
|
|
|
2796
2797
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2797
2798
|
* })
|
|
2798
2799
|
* ```
|
|
2799
|
-
* @version SDK: 1.
|
|
2800
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
2800
2801
|
*/
|
|
2801
2802
|
HostEvent["TransformTableVizData"] = "TransformTableVizData";
|
|
2802
2803
|
})(exports.HostEvent || (exports.HostEvent = {}));
|
|
@@ -2935,7 +2936,6 @@
|
|
|
2935
2936
|
Param["preAuthCache"] = "preAuthCache";
|
|
2936
2937
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2937
2938
|
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2938
|
-
Param["PrimaryAction"] = "primaryAction";
|
|
2939
2939
|
})(Param || (Param = {}));
|
|
2940
2940
|
/**
|
|
2941
2941
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4144,7 +4144,7 @@
|
|
|
4144
4144
|
* ```js
|
|
4145
4145
|
* hiddenAction: [Action.ColumnRename]
|
|
4146
4146
|
* ```
|
|
4147
|
-
* @version SDK: 1.
|
|
4147
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4148
4148
|
*/
|
|
4149
4149
|
Action["ColumnRename"] = "columnRename";
|
|
4150
4150
|
/**
|
|
@@ -4154,7 +4154,7 @@
|
|
|
4154
4154
|
* ```js
|
|
4155
4155
|
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
4156
4156
|
* ```
|
|
4157
|
-
* @version SDK: 1.
|
|
4157
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4158
4158
|
*/
|
|
4159
4159
|
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4160
4160
|
})(exports.Action || (exports.Action = {}));
|
|
@@ -15303,7 +15303,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15303
15303
|
return e;
|
|
15304
15304
|
}
|
|
15305
15305
|
|
|
15306
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.
|
|
15306
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.37.0";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
15307
|
|
|
15308
15308
|
/**
|
|
15309
15309
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15840,7 +15840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15840
15840
|
if (this.embedConfig.currencyFormat) {
|
|
15841
15841
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15842
15842
|
}
|
|
15843
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs,
|
|
15843
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, } = this.viewConfig;
|
|
15844
15844
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15845
15845
|
const additionalFlags = {
|
|
15846
15846
|
...additionalFlagsFromInit,
|
|
@@ -15850,9 +15850,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15850
15850
|
this.handleError('You cannot have both hidden actions and visible actions');
|
|
15851
15851
|
return queryParams;
|
|
15852
15852
|
}
|
|
15853
|
-
if (primaryAction) {
|
|
15854
|
-
queryParams[Param.PrimaryAction] = primaryAction;
|
|
15855
|
-
}
|
|
15856
15853
|
if (Array.isArray(visibleTabs) && Array.isArray(hiddenTabs)) {
|
|
15857
15854
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
15858
15855
|
return queryParams;
|
|
@@ -1878,10 +1878,10 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1878
1878
|
dataSourceId?: string;
|
|
1879
1879
|
/**
|
|
1880
1880
|
* This flag is for show/hide checkboxes for include or exclude
|
|
1881
|
-
* cover and
|
|
1881
|
+
* cover page and filters in the Liveboard PDF.
|
|
1882
1882
|
* @type {boolean}
|
|
1883
1883
|
* @default true
|
|
1884
|
-
* @version SDK: 1.
|
|
1884
|
+
* @version SDK: 1.37.0 | ThoughtSpot:10.8.0.cl
|
|
1885
1885
|
* @example
|
|
1886
1886
|
* ```js
|
|
1887
1887
|
* const embed = new LiveboardEmbed('#embed-container', {
|
|
@@ -2653,21 +2653,6 @@ export interface ViewConfig {
|
|
|
2653
2653
|
* @important
|
|
2654
2654
|
*/
|
|
2655
2655
|
hiddenActions?: Action[];
|
|
2656
|
-
/**
|
|
2657
|
-
* The primary action to display from the embedded.
|
|
2658
|
-
* This action will be displayed from the embedded.
|
|
2659
|
-
* Use this to set the primary action.
|
|
2660
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2661
|
-
* @example
|
|
2662
|
-
* ```js
|
|
2663
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
2664
|
-
* ... // other liveboard view config
|
|
2665
|
-
* primaryAction: 'download'
|
|
2666
|
-
* });
|
|
2667
|
-
* ```
|
|
2668
|
-
* @important
|
|
2669
|
-
*/
|
|
2670
|
-
primaryAction?: string;
|
|
2671
2656
|
/**
|
|
2672
2657
|
* The list of actions to display from the primary menu, more menu
|
|
2673
2658
|
* (...), and the contextual menu. These will be only actions that
|
|
@@ -3066,8 +3051,8 @@ export interface ViewConfig {
|
|
|
3066
3051
|
* Hide list page columns
|
|
3067
3052
|
* For example: hiddenListColumns = [ListPageColumns.Author]
|
|
3068
3053
|
*
|
|
3069
|
-
* **Note**: This option is
|
|
3070
|
-
* @version SDK: 1.38.0 | ThoughtSpot:
|
|
3054
|
+
* **Note**: This option is available only in full app embedding.
|
|
3055
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3071
3056
|
* @example
|
|
3072
3057
|
* ```js
|
|
3073
3058
|
* const embed = new AppEmbed('#tsEmbed', {
|
|
@@ -3224,8 +3209,8 @@ export declare enum HomepageModule {
|
|
|
3224
3209
|
}
|
|
3225
3210
|
/**
|
|
3226
3211
|
* List page columns that can be hidden.
|
|
3227
|
-
* **Note**: This option is applicable
|
|
3228
|
-
* @version SDK: 1.38.0 | ThoughtSpot:
|
|
3212
|
+
* **Note**: This option is applicable to full app embedding only.
|
|
3213
|
+
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
3229
3214
|
*/
|
|
3230
3215
|
export declare enum ListPageColumns {
|
|
3231
3216
|
/**
|
|
@@ -4308,7 +4293,7 @@ export declare enum EmbedEvent {
|
|
|
4308
4293
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4309
4294
|
* })
|
|
4310
4295
|
* ```
|
|
4311
|
-
* @version SDK: 1.
|
|
4296
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
4312
4297
|
*/
|
|
4313
4298
|
TableVizRendered = "TableVizRendered",
|
|
4314
4299
|
/**
|
|
@@ -4321,12 +4306,12 @@ export declare enum EmbedEvent {
|
|
|
4321
4306
|
* console.log('payload', payload);
|
|
4322
4307
|
* })
|
|
4323
4308
|
*```
|
|
4324
|
-
* @version SDK : 1.
|
|
4309
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
4325
4310
|
*/
|
|
4326
4311
|
CreateLiveboard = "createLiveboard",
|
|
4327
4312
|
/**
|
|
4328
4313
|
* Emitted when a user creates a Model.
|
|
4329
|
-
* @version SDK : 1.
|
|
4314
|
+
* @version SDK : 1.37.0 | ThoughtSpot : 10.8.0.cl
|
|
4330
4315
|
*/
|
|
4331
4316
|
CreateModel = "createModel"
|
|
4332
4317
|
}
|
|
@@ -4768,7 +4753,7 @@ export declare enum HostEvent {
|
|
|
4768
4753
|
* ```js
|
|
4769
4754
|
* liveboardEmbed.trigger(HostEvent.Remove)
|
|
4770
4755
|
* ```
|
|
4771
|
-
* @version SDK: 1.
|
|
4756
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
|
|
4772
4757
|
*/
|
|
4773
4758
|
Remove = "delete",
|
|
4774
4759
|
/**
|
|
@@ -5363,7 +5348,7 @@ export declare enum HostEvent {
|
|
|
5363
5348
|
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5364
5349
|
* })
|
|
5365
5350
|
* ```
|
|
5366
|
-
* @version SDK: 1.
|
|
5351
|
+
* @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl
|
|
5367
5352
|
*/
|
|
5368
5353
|
TransformTableVizData = "TransformTableVizData"
|
|
5369
5354
|
}
|
|
@@ -5491,8 +5476,7 @@ export declare enum Param {
|
|
|
5491
5476
|
DataSourceId = "dataSourceId",
|
|
5492
5477
|
preAuthCache = "preAuthCache",
|
|
5493
5478
|
ShowSpotterLimitations = "showSpotterLimitations",
|
|
5494
|
-
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5495
|
-
PrimaryAction = "primaryAction"
|
|
5479
|
+
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
5496
5480
|
}
|
|
5497
5481
|
/**
|
|
5498
5482
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -6699,7 +6683,7 @@ export declare enum Action {
|
|
|
6699
6683
|
* ```js
|
|
6700
6684
|
* hiddenAction: [Action.ColumnRename]
|
|
6701
6685
|
* ```
|
|
6702
|
-
* @version SDK: 1.
|
|
6686
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6703
6687
|
*/
|
|
6704
6688
|
ColumnRename = "columnRename",
|
|
6705
6689
|
/**
|
|
@@ -6709,7 +6693,7 @@ export declare enum Action {
|
|
|
6709
6693
|
* ```js
|
|
6710
6694
|
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
6711
6695
|
* ```
|
|
6712
|
-
* @version SDK: 1.
|
|
6696
|
+
* @version SDK: 1.37.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6713
6697
|
*/
|
|
6714
6698
|
CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF"
|
|
6715
6699
|
}
|