@thoughtspot/visual-embed-sdk 1.36.4 → 1.36.6
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/{LICENSE → LICENSE.md} +5 -6
- package/cjs/package.json +1 -1
- package/cjs/src/css-variables.d.ts +1 -1
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/types.d.ts +59 -21
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +57 -19
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-NZYq1Tu3.js → index-C68cxDnD.js} +1 -1
- package/dist/src/css-variables.d.ts +1 -1
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/types.d.ts +59 -21
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +60 -22
- package/dist/tsembed-react.js +59 -21
- package/dist/tsembed.es.js +60 -22
- package/dist/tsembed.js +59 -21
- package/dist/visual-embed-sdk-react-full.d.ts +60 -22
- package/dist/visual-embed-sdk-react.d.ts +60 -22
- package/dist/visual-embed-sdk.d.ts +60 -22
- package/lib/package.json +1 -1
- package/lib/src/css-variables.d.ts +1 -1
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/types.d.ts +59 -21
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +57 -19
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +60 -22
- package/package.json +1 -1
- package/src/css-variables.ts +1 -1
- package/src/types.ts +57 -19
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.6 */
|
|
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) {
|
|
@@ -759,8 +759,9 @@ var EmbedEvent;
|
|
|
759
759
|
*/
|
|
760
760
|
EmbedEvent["Load"] = "load";
|
|
761
761
|
/**
|
|
762
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
763
|
-
*
|
|
762
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
763
|
+
* The event payload includes the raw data of the object.
|
|
764
|
+
* @return data - Answer of Liveboard data
|
|
764
765
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
765
766
|
* @example
|
|
766
767
|
*```js
|
|
@@ -1664,17 +1665,39 @@ var EmbedEvent;
|
|
|
1664
1665
|
*/
|
|
1665
1666
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1666
1667
|
/**
|
|
1667
|
-
*
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
1668
|
+
* Emits when a table visualization is rendered in
|
|
1669
|
+
* the ThoughtSpot embedded app.
|
|
1670
|
+
* You can also use this event as a hook to trigger host events
|
|
1671
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
1672
|
+
* The event payload contains the data used in the rendered table.
|
|
1673
|
+
* You can extract the relevant data from the payload
|
|
1674
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
1675
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
1676
|
+
* data values for each column, which was used in the query to
|
|
1677
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
1678
|
+
* you can either loop through the array or directly access a cell if
|
|
1679
|
+
* you know its position and data index.
|
|
1680
|
+
* In the following code sample, the first cell in the first column
|
|
1681
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
1682
|
+
* Note that any changes made to the data in the payload will only update the
|
|
1683
|
+
* visual presentation and do not affect the underlying data.
|
|
1684
|
+
* To persist data value modifications after a reload or during chart
|
|
1685
|
+
* interactions such as drill down, ensure that the modified
|
|
1686
|
+
* payload in the `columnDataLite` is passed on to
|
|
1687
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
1688
|
+
* the table visualization.
|
|
1689
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
1690
|
+
* Worksheet or Model, exercise caution when changing column
|
|
1691
|
+
* or table cell values to maintain data security.
|
|
1692
|
+
*
|
|
1670
1693
|
* @example
|
|
1671
1694
|
* ```js
|
|
1672
1695
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
1673
|
-
*
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
1696
|
+
* console.log(payload);
|
|
1697
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
1698
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
1699
|
+
* console.log('>>> new Data', columnDataLite);
|
|
1700
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1678
1701
|
* })
|
|
1679
1702
|
* ```
|
|
1680
1703
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -1693,6 +1716,11 @@ var EmbedEvent;
|
|
|
1693
1716
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
1694
1717
|
*/
|
|
1695
1718
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1719
|
+
/**
|
|
1720
|
+
* Emitted when a user creates a Model.
|
|
1721
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
1722
|
+
*/
|
|
1723
|
+
EmbedEvent["CreateModel"] = "createModel";
|
|
1696
1724
|
})(EmbedEvent || (EmbedEvent = {}));
|
|
1697
1725
|
/**
|
|
1698
1726
|
* Event types that can be triggered by the host application
|
|
@@ -2713,19 +2741,20 @@ var HostEvent;
|
|
|
2713
2741
|
*/
|
|
2714
2742
|
HostEvent["UIPassthrough"] = "UiPassthrough";
|
|
2715
2743
|
/**
|
|
2716
|
-
* Triggers the table
|
|
2744
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2717
2745
|
* Includes the following properties:
|
|
2718
|
-
* @param - columnDataLite - an array of object containing
|
|
2719
|
-
*
|
|
2720
|
-
* For example, { columnDataLite: []}
|
|
2746
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2747
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2748
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2749
|
+
*
|
|
2721
2750
|
* @example
|
|
2722
2751
|
* ```js
|
|
2723
2752
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
2724
|
-
*
|
|
2725
|
-
*
|
|
2726
|
-
*
|
|
2727
|
-
*
|
|
2728
|
-
*
|
|
2753
|
+
* console.log(payload);
|
|
2754
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
2755
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
2756
|
+
* console.log('>>> new Data', columnDataLite);
|
|
2757
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2729
2758
|
* })
|
|
2730
2759
|
* ```
|
|
2731
2760
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4066,6 +4095,15 @@ var Action;
|
|
|
4066
4095
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
4067
4096
|
*/
|
|
4068
4097
|
Action["EditTokens"] = "editTokens";
|
|
4098
|
+
/**
|
|
4099
|
+
* Action ID for hiding rename option for Column rename
|
|
4100
|
+
* @example
|
|
4101
|
+
* ```js
|
|
4102
|
+
* hiddenAction: [Action.ColumnRename]
|
|
4103
|
+
* ```
|
|
4104
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4105
|
+
*/
|
|
4106
|
+
Action["ColumnRename"] = "columnRename";
|
|
4069
4107
|
})(Action || (Action = {}));
|
|
4070
4108
|
var PrefetchFeatures;
|
|
4071
4109
|
(function (PrefetchFeatures) {
|
|
@@ -7356,7 +7394,7 @@ class AnswerService {
|
|
|
7356
7394
|
async getTML() {
|
|
7357
7395
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7358
7396
|
const edoc = object[0].edoc;
|
|
7359
|
-
const YAML = await import('./index-
|
|
7397
|
+
const YAML = await import('./index-C68cxDnD.js');
|
|
7360
7398
|
const parsedDoc = YAML.parse(edoc);
|
|
7361
7399
|
return {
|
|
7362
7400
|
answer: {
|
|
@@ -15212,7 +15250,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15212
15250
|
return e;
|
|
15213
15251
|
}
|
|
15214
15252
|
|
|
15215
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.
|
|
15253
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.6";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={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3",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":"^4.6.0","@typescript-eslint/parser":"^4.6.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:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.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","node-sass":"^8.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","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};
|
|
15216
15254
|
|
|
15217
15255
|
/**
|
|
15218
15256
|
* Reloads the ThoughtSpot iframe.
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.36.6 */
|
|
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) :
|
|
@@ -765,8 +765,9 @@
|
|
|
765
765
|
*/
|
|
766
766
|
EmbedEvent["Load"] = "load";
|
|
767
767
|
/**
|
|
768
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
769
|
-
*
|
|
768
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
769
|
+
* The event payload includes the raw data of the object.
|
|
770
|
+
* @return data - Answer of Liveboard data
|
|
770
771
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
771
772
|
* @example
|
|
772
773
|
*```js
|
|
@@ -1670,17 +1671,39 @@
|
|
|
1670
1671
|
*/
|
|
1671
1672
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1672
1673
|
/**
|
|
1673
|
-
*
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1674
|
+
* Emits when a table visualization is rendered in
|
|
1675
|
+
* the ThoughtSpot embedded app.
|
|
1676
|
+
* You can also use this event as a hook to trigger host events
|
|
1677
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
1678
|
+
* The event payload contains the data used in the rendered table.
|
|
1679
|
+
* You can extract the relevant data from the payload
|
|
1680
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
1681
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
1682
|
+
* data values for each column, which was used in the query to
|
|
1683
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
1684
|
+
* you can either loop through the array or directly access a cell if
|
|
1685
|
+
* you know its position and data index.
|
|
1686
|
+
* In the following code sample, the first cell in the first column
|
|
1687
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
1688
|
+
* Note that any changes made to the data in the payload will only update the
|
|
1689
|
+
* visual presentation and do not affect the underlying data.
|
|
1690
|
+
* To persist data value modifications after a reload or during chart
|
|
1691
|
+
* interactions such as drill down, ensure that the modified
|
|
1692
|
+
* payload in the `columnDataLite` is passed on to
|
|
1693
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
1694
|
+
* the table visualization.
|
|
1695
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
1696
|
+
* Worksheet or Model, exercise caution when changing column
|
|
1697
|
+
* or table cell values to maintain data security.
|
|
1698
|
+
*
|
|
1676
1699
|
* @example
|
|
1677
1700
|
* ```js
|
|
1678
1701
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1682
|
-
*
|
|
1683
|
-
*
|
|
1702
|
+
* console.log(payload);
|
|
1703
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
1704
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
1705
|
+
* console.log('>>> new Data', columnDataLite);
|
|
1706
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
1684
1707
|
* })
|
|
1685
1708
|
* ```
|
|
1686
1709
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -1699,6 +1722,11 @@
|
|
|
1699
1722
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
1700
1723
|
*/
|
|
1701
1724
|
EmbedEvent["CreateLiveboard"] = "createLiveboard";
|
|
1725
|
+
/**
|
|
1726
|
+
* Emitted when a user creates a Model.
|
|
1727
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
1728
|
+
*/
|
|
1729
|
+
EmbedEvent["CreateModel"] = "createModel";
|
|
1702
1730
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1703
1731
|
/**
|
|
1704
1732
|
* Event types that can be triggered by the host application
|
|
@@ -2719,19 +2747,20 @@
|
|
|
2719
2747
|
*/
|
|
2720
2748
|
HostEvent["UIPassthrough"] = "UiPassthrough";
|
|
2721
2749
|
/**
|
|
2722
|
-
* Triggers the table
|
|
2750
|
+
* Triggers the table visualization re-render with the updated data.
|
|
2723
2751
|
* Includes the following properties:
|
|
2724
|
-
* @param - columnDataLite - an array of object containing
|
|
2725
|
-
*
|
|
2726
|
-
* For example, { columnDataLite: []}
|
|
2752
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
2753
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
2754
|
+
* payload.For example, { columnDataLite: []}`.
|
|
2755
|
+
*
|
|
2727
2756
|
* @example
|
|
2728
2757
|
* ```js
|
|
2729
2758
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
2730
|
-
*
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2734
|
-
*
|
|
2759
|
+
* console.log(payload);
|
|
2760
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
2761
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
2762
|
+
* console.log('>>> new Data', columnDataLite);
|
|
2763
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
2735
2764
|
* })
|
|
2736
2765
|
* ```
|
|
2737
2766
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4072,6 +4101,15 @@
|
|
|
4072
4101
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
4073
4102
|
*/
|
|
4074
4103
|
Action["EditTokens"] = "editTokens";
|
|
4104
|
+
/**
|
|
4105
|
+
* Action ID for hiding rename option for Column rename
|
|
4106
|
+
* @example
|
|
4107
|
+
* ```js
|
|
4108
|
+
* hiddenAction: [Action.ColumnRename]
|
|
4109
|
+
* ```
|
|
4110
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4111
|
+
*/
|
|
4112
|
+
Action["ColumnRename"] = "columnRename";
|
|
4075
4113
|
})(exports.Action || (exports.Action = {}));
|
|
4076
4114
|
exports.PrefetchFeatures = void 0;
|
|
4077
4115
|
(function (PrefetchFeatures) {
|
|
@@ -15218,7 +15256,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15218
15256
|
return e;
|
|
15219
15257
|
}
|
|
15220
15258
|
|
|
15221
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.
|
|
15259
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.6";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={algoliasearch:"^4.10.5",classnames:"^2.3.1",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3",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":"^4.6.0","@typescript-eslint/parser":"^4.6.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:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.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","node-sass":"^8.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","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};
|
|
15222
15260
|
|
|
15223
15261
|
/**
|
|
15224
15262
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -3283,8 +3283,9 @@ export declare enum EmbedEvent {
|
|
|
3283
3283
|
*/
|
|
3284
3284
|
Load = "load",
|
|
3285
3285
|
/**
|
|
3286
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
3287
|
-
*
|
|
3286
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
3287
|
+
* The event payload includes the raw data of the object.
|
|
3288
|
+
* @return data - Answer of Liveboard data
|
|
3288
3289
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3289
3290
|
* @example
|
|
3290
3291
|
*```js
|
|
@@ -4188,17 +4189,39 @@ export declare enum EmbedEvent {
|
|
|
4188
4189
|
*/
|
|
4189
4190
|
ParameterChanged = "parameterChanged",
|
|
4190
4191
|
/**
|
|
4191
|
-
*
|
|
4192
|
-
*
|
|
4193
|
-
*
|
|
4192
|
+
* Emits when a table visualization is rendered in
|
|
4193
|
+
* the ThoughtSpot embedded app.
|
|
4194
|
+
* You can also use this event as a hook to trigger host events
|
|
4195
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4196
|
+
* The event payload contains the data used in the rendered table.
|
|
4197
|
+
* You can extract the relevant data from the payload
|
|
4198
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
4199
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
4200
|
+
* data values for each column, which was used in the query to
|
|
4201
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
4202
|
+
* you can either loop through the array or directly access a cell if
|
|
4203
|
+
* you know its position and data index.
|
|
4204
|
+
* In the following code sample, the first cell in the first column
|
|
4205
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4206
|
+
* Note that any changes made to the data in the payload will only update the
|
|
4207
|
+
* visual presentation and do not affect the underlying data.
|
|
4208
|
+
* To persist data value modifications after a reload or during chart
|
|
4209
|
+
* interactions such as drill down, ensure that the modified
|
|
4210
|
+
* payload in the `columnDataLite` is passed on to
|
|
4211
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4212
|
+
* the table visualization.
|
|
4213
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
4214
|
+
* Worksheet or Model, exercise caution when changing column
|
|
4215
|
+
* or table cell values to maintain data security.
|
|
4216
|
+
*
|
|
4194
4217
|
* @example
|
|
4195
4218
|
* ```js
|
|
4196
4219
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
4197
|
-
*
|
|
4198
|
-
*
|
|
4199
|
-
*
|
|
4200
|
-
*
|
|
4201
|
-
*
|
|
4220
|
+
* console.log(payload);
|
|
4221
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
4222
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
4223
|
+
* console.log('>>> new Data', columnDataLite);
|
|
4224
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4202
4225
|
* })
|
|
4203
4226
|
* ```
|
|
4204
4227
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4216,7 +4239,12 @@ export declare enum EmbedEvent {
|
|
|
4216
4239
|
*```
|
|
4217
4240
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4218
4241
|
*/
|
|
4219
|
-
CreateLiveboard = "createLiveboard"
|
|
4242
|
+
CreateLiveboard = "createLiveboard",
|
|
4243
|
+
/**
|
|
4244
|
+
* Emitted when a user creates a Model.
|
|
4245
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4246
|
+
*/
|
|
4247
|
+
CreateModel = "createModel"
|
|
4220
4248
|
}
|
|
4221
4249
|
/**
|
|
4222
4250
|
* Event types that can be triggered by the host application
|
|
@@ -5235,19 +5263,20 @@ export declare enum HostEvent {
|
|
|
5235
5263
|
*/
|
|
5236
5264
|
UIPassthrough = "UiPassthrough",
|
|
5237
5265
|
/**
|
|
5238
|
-
* Triggers the table
|
|
5266
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5239
5267
|
* Includes the following properties:
|
|
5240
|
-
* @param - columnDataLite - an array of object containing
|
|
5241
|
-
*
|
|
5242
|
-
* For example, { columnDataLite: []}
|
|
5268
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5269
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5270
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5271
|
+
*
|
|
5243
5272
|
* @example
|
|
5244
5273
|
* ```js
|
|
5245
5274
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
5246
|
-
*
|
|
5247
|
-
*
|
|
5248
|
-
*
|
|
5249
|
-
*
|
|
5250
|
-
*
|
|
5275
|
+
* console.log(payload);
|
|
5276
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
5277
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
5278
|
+
* console.log('>>> new Data', columnDataLite);
|
|
5279
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5251
5280
|
* })
|
|
5252
5281
|
* ```
|
|
5253
5282
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -6575,7 +6604,16 @@ export declare enum Action {
|
|
|
6575
6604
|
* ```
|
|
6576
6605
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
6577
6606
|
*/
|
|
6578
|
-
EditTokens = "editTokens"
|
|
6607
|
+
EditTokens = "editTokens",
|
|
6608
|
+
/**
|
|
6609
|
+
* Action ID for hiding rename option for Column rename
|
|
6610
|
+
* @example
|
|
6611
|
+
* ```js
|
|
6612
|
+
* hiddenAction: [Action.ColumnRename]
|
|
6613
|
+
* ```
|
|
6614
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6615
|
+
*/
|
|
6616
|
+
ColumnRename = "columnRename"
|
|
6579
6617
|
}
|
|
6580
6618
|
export interface AnswerServiceType {
|
|
6581
6619
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7244,7 +7282,7 @@ export interface CustomCssVariables {
|
|
|
7244
7282
|
/**
|
|
7245
7283
|
* Background color of the previously asked prompt message in the Spotter page.
|
|
7246
7284
|
*/
|
|
7247
|
-
'--ts-var-spotter-prompt-background'
|
|
7285
|
+
'--ts-var-spotter-prompt-background'?: string;
|
|
7248
7286
|
/**
|
|
7249
7287
|
* Background color of the data panel.
|
|
7250
7288
|
*/
|
|
@@ -3273,8 +3273,9 @@ export declare enum EmbedEvent {
|
|
|
3273
3273
|
*/
|
|
3274
3274
|
Load = "load",
|
|
3275
3275
|
/**
|
|
3276
|
-
* Data pertaining to an Answer or Liveboard is received
|
|
3277
|
-
*
|
|
3276
|
+
* Data pertaining to an Answer or Liveboard is received.
|
|
3277
|
+
* The event payload includes the raw data of the object.
|
|
3278
|
+
* @return data - Answer of Liveboard data
|
|
3278
3279
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3279
3280
|
* @example
|
|
3280
3281
|
*```js
|
|
@@ -4178,17 +4179,39 @@ export declare enum EmbedEvent {
|
|
|
4178
4179
|
*/
|
|
4179
4180
|
ParameterChanged = "parameterChanged",
|
|
4180
4181
|
/**
|
|
4181
|
-
*
|
|
4182
|
-
*
|
|
4183
|
-
*
|
|
4182
|
+
* Emits when a table visualization is rendered in
|
|
4183
|
+
* the ThoughtSpot embedded app.
|
|
4184
|
+
* You can also use this event as a hook to trigger host events
|
|
4185
|
+
* such as `HostEvent.TransformTableVizData` on the table visualization.
|
|
4186
|
+
* The event payload contains the data used in the rendered table.
|
|
4187
|
+
* You can extract the relevant data from the payload
|
|
4188
|
+
* stored in `payload.data.data.columnDataLite`.
|
|
4189
|
+
* `columnDataLite` is a multidimensional array that contains
|
|
4190
|
+
* data values for each column, which was used in the query to
|
|
4191
|
+
* generate the table visualization. To find and modify specific cell data,
|
|
4192
|
+
* you can either loop through the array or directly access a cell if
|
|
4193
|
+
* you know its position and data index.
|
|
4194
|
+
* In the following code sample, the first cell in the first column
|
|
4195
|
+
* (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
|
|
4196
|
+
* Note that any changes made to the data in the payload will only update the
|
|
4197
|
+
* visual presentation and do not affect the underlying data.
|
|
4198
|
+
* To persist data value modifications after a reload or during chart
|
|
4199
|
+
* interactions such as drill down, ensure that the modified
|
|
4200
|
+
* payload in the `columnDataLite` is passed on to
|
|
4201
|
+
* `HostEvent.TransformTableVizData` and trigger an update to
|
|
4202
|
+
* the table visualization.
|
|
4203
|
+
* If the Row-Level Security (RLS) rules are applied on the
|
|
4204
|
+
* Worksheet or Model, exercise caution when changing column
|
|
4205
|
+
* or table cell values to maintain data security.
|
|
4206
|
+
*
|
|
4184
4207
|
* @example
|
|
4185
4208
|
* ```js
|
|
4186
4209
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
4187
|
-
*
|
|
4188
|
-
*
|
|
4189
|
-
*
|
|
4190
|
-
*
|
|
4191
|
-
*
|
|
4210
|
+
* console.log(payload);
|
|
4211
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
4212
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
4213
|
+
* console.log('>>> new Data', columnDataLite);
|
|
4214
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
4192
4215
|
* })
|
|
4193
4216
|
* ```
|
|
4194
4217
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -4206,7 +4229,12 @@ export declare enum EmbedEvent {
|
|
|
4206
4229
|
*```
|
|
4207
4230
|
* @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
|
|
4208
4231
|
*/
|
|
4209
|
-
CreateLiveboard = "createLiveboard"
|
|
4232
|
+
CreateLiveboard = "createLiveboard",
|
|
4233
|
+
/**
|
|
4234
|
+
* Emitted when a user creates a Model.
|
|
4235
|
+
* @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
|
|
4236
|
+
*/
|
|
4237
|
+
CreateModel = "createModel"
|
|
4210
4238
|
}
|
|
4211
4239
|
/**
|
|
4212
4240
|
* Event types that can be triggered by the host application
|
|
@@ -5225,19 +5253,20 @@ export declare enum HostEvent {
|
|
|
5225
5253
|
*/
|
|
5226
5254
|
UIPassthrough = "UiPassthrough",
|
|
5227
5255
|
/**
|
|
5228
|
-
* Triggers the table
|
|
5256
|
+
* Triggers the table visualization re-render with the updated data.
|
|
5229
5257
|
* Includes the following properties:
|
|
5230
|
-
* @param - columnDataLite - an array of object containing
|
|
5231
|
-
*
|
|
5232
|
-
* For example, { columnDataLite: []}
|
|
5258
|
+
* @param - `columnDataLite` - an array of object containing the
|
|
5259
|
+
* data value modifications retrieved from the `EmbedEvent.TableVizRendered`
|
|
5260
|
+
* payload.For example, { columnDataLite: []}`.
|
|
5261
|
+
*
|
|
5233
5262
|
* @example
|
|
5234
5263
|
* ```js
|
|
5235
5264
|
* searchEmbed.on(EmbedEvent.TableVizRendered, (payload) => {
|
|
5236
|
-
*
|
|
5237
|
-
*
|
|
5238
|
-
*
|
|
5239
|
-
*
|
|
5240
|
-
*
|
|
5265
|
+
* console.log(payload);
|
|
5266
|
+
* const columnDataLite = payload.data.data.columnDataLite;
|
|
5267
|
+
* columnDataLite[0].dataValue[0]="new fob";
|
|
5268
|
+
* console.log('>>> new Data', columnDataLite);
|
|
5269
|
+
* searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
|
|
5241
5270
|
* })
|
|
5242
5271
|
* ```
|
|
5243
5272
|
* @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
|
|
@@ -6565,7 +6594,16 @@ export declare enum Action {
|
|
|
6565
6594
|
* ```
|
|
6566
6595
|
* @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
|
|
6567
6596
|
*/
|
|
6568
|
-
EditTokens = "editTokens"
|
|
6597
|
+
EditTokens = "editTokens",
|
|
6598
|
+
/**
|
|
6599
|
+
* Action ID for hiding rename option for Column rename
|
|
6600
|
+
* @example
|
|
6601
|
+
* ```js
|
|
6602
|
+
* hiddenAction: [Action.ColumnRename]
|
|
6603
|
+
* ```
|
|
6604
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
6605
|
+
*/
|
|
6606
|
+
ColumnRename = "columnRename"
|
|
6569
6607
|
}
|
|
6570
6608
|
export interface AnswerServiceType {
|
|
6571
6609
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -7346,7 +7384,7 @@ export interface CustomCssVariables {
|
|
|
7346
7384
|
/**
|
|
7347
7385
|
* Background color of the previously asked prompt message in the Spotter page.
|
|
7348
7386
|
*/
|
|
7349
|
-
'--ts-var-spotter-prompt-background'
|
|
7387
|
+
'--ts-var-spotter-prompt-background'?: string;
|
|
7350
7388
|
/**
|
|
7351
7389
|
* Background color of the data panel.
|
|
7352
7390
|
*/
|