@thoughtspot/visual-embed-sdk 1.8.0-plugins.1 → 1.8.0-plugins.4

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.
@@ -274,12 +274,24 @@ export declare enum EmbedEvent {
274
274
  * @return data - The answer or Liveboard data
275
275
  */
276
276
  CustomAction = "customAction",
277
+ /**
278
+ * A click has been triggered on table/chart
279
+ * @return ContextMenuInputPoints - data point that is double clicked
280
+ * @version 1.10.0
281
+ */
282
+ VizPointClick = "vizPointClick",
277
283
  /**
278
284
  * A double click has been triggered on table/chart
279
285
  * @return ContextMenuInputPoints - data point that is double clicked
280
286
  * @version 1.5.0 or later
281
287
  */
282
288
  VizPointDoubleClick = "vizPointDoubleClick",
289
+ /**
290
+ * Event troggered when rendering a chart, call the supplied
291
+ * callback with the config overrides.
292
+ * @version 1.10.0
293
+ */
294
+ GetVizConfigOverrides = "getVizConfigOverrides",
283
295
  /**
284
296
  * An error has occurred.
285
297
  * @return error - An error object or message
@@ -385,7 +397,12 @@ export declare enum HostEvent {
385
397
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
386
398
  * @version 1.8.0 or later
387
399
  */
388
- UpdateRuntimeFilters = "UpdateRuntimeFilters"
400
+ UpdateRuntimeFilters = "UpdateRuntimeFilters",
401
+ /**
402
+ * Highlight the point in the chart defined by the InputPoint passed.
403
+ * @verion 1.10.0
404
+ */
405
+ HighlightPoint = "HighlightPoint"
389
406
  }
390
407
  /**
391
408
  * The different visual modes that the data sources panel within
@@ -540,6 +557,6 @@ export interface AnswerServiceType {
540
557
  export interface Plugin {
541
558
  name: string;
542
559
  handlers: {
543
- [key in EmbedEvent]: (payload: any) => void;
560
+ [key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
544
561
  };
545
562
  }
@@ -271,12 +271,24 @@ var EmbedEvent;
271
271
  * @return data - The answer or Liveboard data
272
272
  */
273
273
  EmbedEvent["CustomAction"] = "customAction";
274
+ /**
275
+ * A click has been triggered on table/chart
276
+ * @return ContextMenuInputPoints - data point that is double clicked
277
+ * @version 1.10.0
278
+ */
279
+ EmbedEvent["VizPointClick"] = "vizPointClick";
274
280
  /**
275
281
  * A double click has been triggered on table/chart
276
282
  * @return ContextMenuInputPoints - data point that is double clicked
277
283
  * @version 1.5.0 or later
278
284
  */
279
285
  EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
286
+ /**
287
+ * Event troggered when rendering a chart, call the supplied
288
+ * callback with the config overrides.
289
+ * @version 1.10.0
290
+ */
291
+ EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
280
292
  /**
281
293
  * An error has occurred.
282
294
  * @return error - An error object or message
@@ -385,6 +397,11 @@ var HostEvent;
385
397
  * @version 1.8.0 or later
386
398
  */
387
399
  HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
400
+ /**
401
+ * Highlight the point in the chart defined by the InputPoint passed.
402
+ * @verion 1.10.0
403
+ */
404
+ HostEvent["HighlightPoint"] = "HighlightPoint";
388
405
  })(HostEvent || (HostEvent = {}));
389
406
  /**
390
407
  * The different visual modes that the data sources panel within
@@ -8895,7 +8912,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
8895
8912
  }
8896
8913
  }
8897
8914
 
8898
- var name="@thoughtspot/visual-embed-sdk";var version="1.8.0-plugins.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag plugins","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};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","@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/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","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","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.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","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,description:description,module:module,main:main,types:types,files:files,exports:exports,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};
8915
+ var name="@thoughtspot/visual-embed-sdk";var version="1.8.0-plugins.4";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/**"];var exports={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag plugins","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};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","@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/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","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","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.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","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,description:description,module:module,main:main,types:types,files:files,exports:exports,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};
8899
8916
 
8900
8917
  /**
8901
8918
  * Copyright (c) 2022
package/dist/tsembed.js CHANGED
@@ -261,12 +261,24 @@
261
261
  * @return data - The answer or Liveboard data
262
262
  */
263
263
  EmbedEvent["CustomAction"] = "customAction";
264
+ /**
265
+ * A click has been triggered on table/chart
266
+ * @return ContextMenuInputPoints - data point that is double clicked
267
+ * @version 1.10.0
268
+ */
269
+ EmbedEvent["VizPointClick"] = "vizPointClick";
264
270
  /**
265
271
  * A double click has been triggered on table/chart
266
272
  * @return ContextMenuInputPoints - data point that is double clicked
267
273
  * @version 1.5.0 or later
268
274
  */
269
275
  EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
276
+ /**
277
+ * Event troggered when rendering a chart, call the supplied
278
+ * callback with the config overrides.
279
+ * @version 1.10.0
280
+ */
281
+ EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
270
282
  /**
271
283
  * An error has occurred.
272
284
  * @return error - An error object or message
@@ -366,6 +378,11 @@
366
378
  * @version 1.8.0 or later
367
379
  */
368
380
  HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
381
+ /**
382
+ * Highlight the point in the chart defined by the InputPoint passed.
383
+ * @verion 1.10.0
384
+ */
385
+ HostEvent["HighlightPoint"] = "HighlightPoint";
369
386
  })(exports.HostEvent || (exports.HostEvent = {}));
370
387
  (function (DataSourceVisualMode) {
371
388
  /**
@@ -8864,7 +8881,7 @@
8864
8881
  }
8865
8882
  }
8866
8883
 
8867
- var name="@thoughtspot/visual-embed-sdk";var version="1.8.0-plugins.1";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag plugins","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};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","@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/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","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","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,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};
8884
+ var name="@thoughtspot/visual-embed-sdk";var version="1.8.0-plugins.4";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/**"];var exports$1={".":"./lib/src/index.js","./react":"./lib/src/react/index.js"};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false",start:"gatsby develop","build:gatsby":"npm run clean:gatsby && gatsby build --prefix-paths","build:gatsby:noprefix":"npm run clean:gatsby && gatsby build","serve:gatsby":"gatsby serve","clean:gatsby":"gatsby clean","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts",build:"rollup -c",watch:"rollup -cw","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs && npx istanbul-merge --out ./coverage/coverage.json ./coverage/docs/coverage-final.json ./coverage/sdk/coverage-final.json && npx istanbul report --include ./coverage/coverage.json --dir ./coverage lcov",posttest:"cat ./coverage/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run build","publish-dev":"npm publish --tag plugins","publish-prod":"npm publish --tag latest"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1","mixpanel-browser":"^2.41.0"};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","@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/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","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","fs-extra":"^10.0.0",gatsby:"3.1.0","gatsby-plugin-algolia":"^0.22.2","gatsby-plugin-catch-links":"^3.1.0","gatsby-plugin-env-variables":"^2.1.0","gatsby-plugin-intl":"^0.3.3","gatsby-plugin-manifest":"^3.2.0","gatsby-plugin-output":"^0.1.3","gatsby-plugin-sass":"4.1.0","gatsby-plugin-sitemap":"^4.10.0","gatsby-source-filesystem":"3.1.0","gatsby-transformer-asciidoc":"2.1.0","gatsby-transformer-rehype":"2.0.0","gh-pages":"^3.1.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-puppeteer":"^4.4.0",jsdom:"^17.0.0","node-sass":"^4.0.0",prettier:"2.1.2",puppeteer:"^7.0.1",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:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-neo-theme":"^1.1.0","typedoc-plugin-toc-group":"0.0.5",typescript:"^4.1.0","url-search-params-polyfill":"^8.1.0",util:"^0.12.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","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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,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};
8868
8885
 
8869
8886
  /**
8870
8887
  * Copyright (c) 2022
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.8.0-plugins.1",
3
+ "version": "1.8.0-plugins.4",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -274,12 +274,24 @@ export declare enum EmbedEvent {
274
274
  * @return data - The answer or Liveboard data
275
275
  */
276
276
  CustomAction = "customAction",
277
+ /**
278
+ * A click has been triggered on table/chart
279
+ * @return ContextMenuInputPoints - data point that is double clicked
280
+ * @version 1.10.0
281
+ */
282
+ VizPointClick = "vizPointClick",
277
283
  /**
278
284
  * A double click has been triggered on table/chart
279
285
  * @return ContextMenuInputPoints - data point that is double clicked
280
286
  * @version 1.5.0 or later
281
287
  */
282
288
  VizPointDoubleClick = "vizPointDoubleClick",
289
+ /**
290
+ * Event troggered when rendering a chart, call the supplied
291
+ * callback with the config overrides.
292
+ * @version 1.10.0
293
+ */
294
+ GetVizConfigOverrides = "getVizConfigOverrides",
283
295
  /**
284
296
  * An error has occurred.
285
297
  * @return error - An error object or message
@@ -385,7 +397,12 @@ export declare enum HostEvent {
385
397
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
386
398
  * @version 1.8.0 or later
387
399
  */
388
- UpdateRuntimeFilters = "UpdateRuntimeFilters"
400
+ UpdateRuntimeFilters = "UpdateRuntimeFilters",
401
+ /**
402
+ * Highlight the point in the chart defined by the InputPoint passed.
403
+ * @verion 1.10.0
404
+ */
405
+ HighlightPoint = "HighlightPoint"
389
406
  }
390
407
  /**
391
408
  * The different visual modes that the data sources panel within
@@ -540,6 +557,6 @@ export interface AnswerServiceType {
540
557
  export interface Plugin {
541
558
  name: string;
542
559
  handlers: {
543
- [key in EmbedEvent]: (payload: any) => void;
560
+ [key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
544
561
  };
545
562
  }
package/lib/src/types.js CHANGED
@@ -159,12 +159,24 @@ export var EmbedEvent;
159
159
  * @return data - The answer or Liveboard data
160
160
  */
161
161
  EmbedEvent["CustomAction"] = "customAction";
162
+ /**
163
+ * A click has been triggered on table/chart
164
+ * @return ContextMenuInputPoints - data point that is double clicked
165
+ * @version 1.10.0
166
+ */
167
+ EmbedEvent["VizPointClick"] = "vizPointClick";
162
168
  /**
163
169
  * A double click has been triggered on table/chart
164
170
  * @return ContextMenuInputPoints - data point that is double clicked
165
171
  * @version 1.5.0 or later
166
172
  */
167
173
  EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
174
+ /**
175
+ * Event troggered when rendering a chart, call the supplied
176
+ * callback with the config overrides.
177
+ * @version 1.10.0
178
+ */
179
+ EmbedEvent["GetVizConfigOverrides"] = "getVizConfigOverrides";
168
180
  /**
169
181
  * An error has occurred.
170
182
  * @return error - An error object or message
@@ -273,6 +285,11 @@ export var HostEvent;
273
285
  * @version 1.8.0 or later
274
286
  */
275
287
  HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
288
+ /**
289
+ * Highlight the point in the chart defined by the InputPoint passed.
290
+ * @verion 1.10.0
291
+ */
292
+ HostEvent["HighlightPoint"] = "HighlightPoint";
276
293
  })(HostEvent || (HostEvent = {}));
277
294
  /**
278
295
  * The different visual modes that the data sources panel within
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,QAwBX;AAxBD,WAAY,QAAQ;IAChB;;OAEG;IACH,yBAAa,CAAA;IACb;;OAEG;IACH,4BAAgB,CAAA;IAChB;;OAEG;IACH,6BAAiB,CAAA;IACjB;;OAEG;IACH,qCAAyB,CAAA;IACzB;;;;;OAKG;IACH,2BAAe,CAAA;AACnB,CAAC,EAxBW,QAAQ,KAAR,QAAQ,QAwBnB;AAsHD;;GAEG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,eAyDX;AAzDD,WAAY,eAAe;IACvB;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,wCAAqB,CAAA;IACrB;;OAEG;IACH,8CAA2B,CAAA;IAC3B;;OAEG;IACH,0CAAuB,CAAA;IACvB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,4B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,aAAa;IACrB,sDAAqC,CAAA;IACrC,sEAAqD,CAAA;AACzD,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,QAwBX;AAxBD,WAAY,QAAQ;IAChB;;OAEG;IACH,yBAAa,CAAA;IACb;;OAEG;IACH,4BAAgB,CAAA;IAChB;;OAEG;IACH,6BAAiB,CAAA;IACjB;;OAEG;IACH,qCAAyB,CAAA;IACzB;;;;;OAKG;IACH,2BAAe,CAAA;AACnB,CAAC,EAxBW,QAAQ,KAAR,QAAQ,QAwBnB;AAsHD;;GAEG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,eAyDX;AAzDD,WAAY,eAAe;IACvB;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,wCAAqB,CAAA;IACrB;;OAEG;IACH,8CAA2B,CAAA;IAC3B;;OAEG;IACH,0CAAuB,CAAA;IACvB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,4CAAyB,CAAA;IACzB;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,4BAAS,CAAA;IACT;;OAEG;IACH,4BAAS,CAAA;AACb,CAAC,EAzDW,eAAe,KAAf,eAAe,QAyD1B;AAsBD;;GAEG;AACH,qCAAqC;AACrC,MAAM,CAAN,IAAY,UAqIX;AArID,WAAY,UAAU;IAClB;;;OAGG;IACH,2BAAa,CAAA;IACb;;;OAGG;IACH,mCAAqB,CAAA;IACrB;;;OAGG;IACH,2BAAa,CAAA;IACb;;;OAGG;IACH,2BAAa,CAAA;I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7B,mDAAyC,CAAA;IACzC,+BAAqB,CAAA;IACrB,yCAA+B,CAAA;IAC/B,yCAA+B,CAAA;IAC/B,2CAAiC,CAAA;IACjC,yCAA+B,CAAA;IAC/B,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,mCAAyB,CAAA;IACzB,uBAAa,CAAA;IACb,iCAAuB,CAAA;IACvB,2BAAiB,CAAA;IACjB,6BAAmB,CAAA;IACnB,+BAAqB,CAAA;IACrB,2BAAiB,CAAA;IACjB,mDAAyC,CAAA;IACzC;;OAEG;IACH,uCAA6B,CAAA;IAC7B,wCAA8B,CAAA;IAC9B,6CAAmC,CAAA;IACnC,2DAAiD,CAAA;IACjD,qBAAW,CAAA;IACX,uCAA6B,CAAA;IAC7B,uCAA6B,CAAA;IAC7B,6BAAmB,CAAA;IACnB,oDAA0C,CAAA;IAC1C,oDAA0C,CAAA;IAC1C,iEAAuD,CAAA;IACvD,yDAA+C,CAAA;IAC/C,8CAAoC,CAAA;IACpC,wDAA8C,CAAA;IAC9C,mDAAyC,CAAA;IACzC,6BAAmB,CAAA;IACnB,yCAA+B,CAAA;IAC/B,qDAA2C,CAAA;IAC3C;;OAEG;IACH,mCAAyB,CAAA;IACzB;;OAEG;IACH,yCAA+B,CAAA;IAC/B;;OAEG;IACH,qDAA2C,CAAA;IAC3C;;OAEG;IACH,2CAAiC,CAAA;IACjC;;OAEG;IACH,qCAA2B,CAAA;AAC/B,CAAC,EAjFW,MAAM,KAAN,MAAM,QAiFjB;AAQD,qCAAqC;AACrC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,sDAAqC,CAAA;IACrC,sEAAqD,CAAA;AACzD,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
@@ -591,12 +591,24 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
591
591
  * @return data - The answer or Liveboard data
592
592
  */
593
593
  CustomAction = "customAction",
594
+ /**
595
+ * A click has been triggered on table/chart
596
+ * @return ContextMenuInputPoints - data point that is double clicked
597
+ * @version 1.10.0
598
+ */
599
+ VizPointClick = "vizPointClick",
594
600
  /**
595
601
  * A double click has been triggered on table/chart
596
602
  * @return ContextMenuInputPoints - data point that is double clicked
597
603
  * @version 1.5.0 or later
598
604
  */
599
605
  VizPointDoubleClick = "vizPointDoubleClick",
606
+ /**
607
+ * Event troggered when rendering a chart, call the supplied
608
+ * callback with the config overrides.
609
+ * @version 1.10.0
610
+ */
611
+ GetVizConfigOverrides = "getVizConfigOverrides",
600
612
  /**
601
613
  * An error has occurred.
602
614
  * @return error - An error object or message
@@ -702,7 +714,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
702
714
  * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
703
715
  * @version 1.8.0 or later
704
716
  */
705
- UpdateRuntimeFilters = "UpdateRuntimeFilters"
717
+ UpdateRuntimeFilters = "UpdateRuntimeFilters",
718
+ /**
719
+ * Highlight the point in the chart defined by the InputPoint passed.
720
+ * @verion 1.10.0
721
+ */
722
+ HighlightPoint = "HighlightPoint"
706
723
  }
707
724
  /**
708
725
  * The different visual modes that the data sources panel within
@@ -857,7 +874,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
857
874
  export interface Plugin {
858
875
  name: string;
859
876
  handlers: {
860
- [key in EmbedEvent]: (payload: any) => void;
877
+ [key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
861
878
  };
862
879
  }
863
880
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.8.0-plugins.1",
3
+ "version": "1.8.0-plugins.4",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
package/src/types.ts CHANGED
@@ -295,12 +295,27 @@ export enum EmbedEvent {
295
295
  * @return data - The answer or Liveboard data
296
296
  */
297
297
  CustomAction = 'customAction',
298
+ /**
299
+ * A click has been triggered on table/chart
300
+ * @return ContextMenuInputPoints - data point that is double clicked
301
+ * @version 1.10.0
302
+ */
303
+ VizPointClick = 'vizPointClick',
304
+
298
305
  /**
299
306
  * A double click has been triggered on table/chart
300
307
  * @return ContextMenuInputPoints - data point that is double clicked
301
308
  * @version 1.5.0 or later
302
309
  */
303
310
  VizPointDoubleClick = 'vizPointDoubleClick',
311
+
312
+ /**
313
+ * Event troggered when rendering a chart, call the supplied
314
+ * callback with the config overrides.
315
+ * @version 1.10.0
316
+ */
317
+ GetVizConfigOverrides = 'getVizConfigOverrides',
318
+
304
319
  /**
305
320
  * An error has occurred.
306
321
  * @return error - An error object or message
@@ -409,6 +424,11 @@ export enum HostEvent {
409
424
  * @version 1.8.0 or later
410
425
  */
411
426
  UpdateRuntimeFilters = 'UpdateRuntimeFilters',
427
+ /**
428
+ * Highlight the point in the chart defined by the InputPoint passed.
429
+ * @verion 1.10.0
430
+ */
431
+ HighlightPoint = 'HighlightPoint',
412
432
  }
413
433
 
414
434
  /**
@@ -571,6 +591,6 @@ export interface AnswerServiceType {
571
591
  export interface Plugin {
572
592
  name: string;
573
593
  handlers: {
574
- [key in EmbedEvent]: (payload: any) => void;
594
+ [key in EmbedEvent]?: (payload: any, cb: (data: any) => void) => void;
575
595
  };
576
596
  }