@thoughtspot/visual-embed-sdk 1.21.0-alpha.21 → 1.21.0-alpha.23

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.
Files changed (38) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/sage-fullscreen.d.ts +3 -3
  3. package/cjs/src/embed/sage-fullscreen.d.ts.map +1 -1
  4. package/cjs/src/embed/sage-fullscreen.js.map +1 -1
  5. package/cjs/src/embed/sage.d.ts +3 -3
  6. package/cjs/src/embed/sage.d.ts.map +1 -1
  7. package/cjs/src/embed/sage.js.map +1 -1
  8. package/cjs/src/react/index.d.ts +8 -0
  9. package/cjs/src/react/index.d.ts.map +1 -1
  10. package/cjs/src/react/index.js +5 -1
  11. package/cjs/src/react/index.js.map +1 -1
  12. package/dist/src/embed/sage-fullscreen.d.ts +3 -3
  13. package/dist/src/embed/sage-fullscreen.d.ts.map +1 -1
  14. package/dist/src/embed/sage.d.ts +3 -3
  15. package/dist/src/embed/sage.d.ts.map +1 -1
  16. package/dist/src/react/index.d.ts +8 -0
  17. package/dist/src/react/index.d.ts.map +1 -1
  18. package/dist/tsembed-react.es.js +186 -32
  19. package/dist/tsembed-react.js +187 -31
  20. package/dist/tsembed.es.js +1 -1
  21. package/dist/tsembed.js +1 -1
  22. package/dist/visual-embed-sdk-react-full.d.ts +129 -123
  23. package/dist/visual-embed-sdk.d.ts +6 -6
  24. package/lib/package.json +1 -1
  25. package/lib/src/embed/sage-fullscreen.d.ts +3 -3
  26. package/lib/src/embed/sage-fullscreen.d.ts.map +1 -1
  27. package/lib/src/embed/sage-fullscreen.js.map +1 -1
  28. package/lib/src/embed/sage.d.ts +3 -3
  29. package/lib/src/embed/sage.d.ts.map +1 -1
  30. package/lib/src/embed/sage.js.map +1 -1
  31. package/lib/src/react/index.d.ts +8 -0
  32. package/lib/src/react/index.d.ts.map +1 -1
  33. package/lib/src/react/index.js +4 -0
  34. package/lib/src/react/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/embed/sage-fullscreen.ts +3 -3
  37. package/src/embed/sage.ts +3 -3
  38. package/src/react/index.tsx +18 -0
@@ -26600,7 +26600,7 @@
26600
26600
  });
26601
26601
  }
26602
26602
 
26603
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.21";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
26603
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.23";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
26604
26604
 
26605
26605
  /**
26606
26606
  * Copyright (c) 2022
@@ -27366,6 +27366,188 @@
27366
27366
  }
27367
27367
  }
27368
27368
 
27369
+ /**
27370
+ * Copyright (c) 2022
27371
+ *
27372
+ * Embed ThoughtSpot Sage
27373
+ *
27374
+ * @summary TS Sage embed
27375
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27376
+ * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
27377
+ */
27378
+ const HiddenActionItemByDefaultForSageEmbed = [
27379
+ exports.Action.Save,
27380
+ exports.Action.Pin,
27381
+ ];
27382
+ /**
27383
+ * Embed ThoughtSpot search
27384
+ *
27385
+ * @group Embed components
27386
+ */
27387
+ class SageEmbed extends TsEmbed {
27388
+ constructor(domSelector, viewConfig) {
27389
+ super(domSelector);
27390
+ this.viewConfig = viewConfig;
27391
+ }
27392
+ getEmbedParams() {
27393
+ var _a, _b;
27394
+ const { hideEurekaResults, isSageEmbed, disableWorksheetChange, hideWorksheetSelector, } = this.viewConfig;
27395
+ const queryParams = this.getBaseQueryParams();
27396
+ queryParams[Param.HideActions] = [...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : [])];
27397
+ queryParams[Param.HideActions] = [
27398
+ ...((_b = queryParams[Param.HideActions]) !== null && _b !== void 0 ? _b : []),
27399
+ ...HiddenActionItemByDefaultForSageEmbed,
27400
+ ];
27401
+ if (hideEurekaResults) {
27402
+ queryParams[Param.HideEurekaResults] = true;
27403
+ }
27404
+ if (isSageEmbed) {
27405
+ queryParams[Param.IsSageEmbed] = true;
27406
+ }
27407
+ if (disableWorksheetChange) {
27408
+ queryParams[Param.DisableWorksheetChange] = true;
27409
+ }
27410
+ if (hideWorksheetSelector) {
27411
+ queryParams[Param.HideWorksheetSelector] = true;
27412
+ }
27413
+ let query = '';
27414
+ const queryParamsString = getQueryParamString(queryParams, true);
27415
+ if (queryParamsString) {
27416
+ query = `?${queryParamsString}`;
27417
+ }
27418
+ return query;
27419
+ }
27420
+ /**
27421
+ * Construct the URL of the embedded ThoughtSpot sage to be
27422
+ * loaded in the iframe
27423
+ *
27424
+ * @returns iframe url
27425
+ */
27426
+ getIFrameSrc() {
27427
+ const path = 'eureka';
27428
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
27429
+ return `${this.getRootIframeSrc()}/embed/${path}${tsPostHashParams}`;
27430
+ }
27431
+ /**
27432
+ * Render the embedded ThoughtSpot Sage
27433
+ */
27434
+ render() {
27435
+ super.render();
27436
+ const src = this.getIFrameSrc();
27437
+ this.renderIFrame(src);
27438
+ getAuthPromise().then(() => {
27439
+ if (checkReleaseVersionInBeta(getReleaseVersion(), getEmbedConfig().suppressSageEmbedBetaWarning)) {
27440
+ alert(ERROR_MESSAGE.SAGE_EMBED_BETA_WARNING_MESSAGE);
27441
+ }
27442
+ });
27443
+ return this;
27444
+ }
27445
+ }
27446
+
27447
+ /**
27448
+ * Copyright (c) 2022
27449
+ *
27450
+ * Embed ThoughtSpot Sage fullscreen view
27451
+ *
27452
+ * @summary TS Sage embed
27453
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27454
+ */
27455
+ const HiddenActionItemByDefaultForSageFullscreenEmbed = [
27456
+ exports.Action.EditACopy,
27457
+ exports.Action.SaveAsView,
27458
+ exports.Action.UpdateTML,
27459
+ exports.Action.EditTML,
27460
+ exports.Action.AnswerDelete,
27461
+ ];
27462
+ /**
27463
+ * Embed ThoughtSpot Sage
27464
+ *
27465
+ * @group Embed components
27466
+ */
27467
+ class SageFullscreenEmbed extends TsEmbed {
27468
+ constructor(domSelector, viewConfig) {
27469
+ super(domSelector);
27470
+ this.viewConfig = viewConfig;
27471
+ }
27472
+ /**
27473
+ * Get the state of the data sources panel that the embedded
27474
+ * ThoughtSpot sage fullscreen will be initialized with.
27475
+ */
27476
+ getDataSourceMode() {
27477
+ let dataSourceMode = DataSourceVisualMode.Expanded;
27478
+ if (this.viewConfig.collapseDataSources === true) {
27479
+ dataSourceMode = DataSourceVisualMode.Collapsed;
27480
+ }
27481
+ if (this.viewConfig.hideDataSources === true) {
27482
+ dataSourceMode = DataSourceVisualMode.Hidden;
27483
+ }
27484
+ return dataSourceMode;
27485
+ }
27486
+ getEmbedParams() {
27487
+ var _a;
27488
+ const { hideResults, enableSearchAssist, forceTable, runtimeFilters, dataSource, } = this.viewConfig;
27489
+ const queryParams = this.getBaseQueryParams();
27490
+ queryParams[Param.HideActions] = [
27491
+ ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
27492
+ ...HiddenActionItemByDefaultForSageFullscreenEmbed,
27493
+ ];
27494
+ /* the below parameters are not needed but
27495
+ reusing the parameters we have for saved answer page */
27496
+ if (dataSource) {
27497
+ queryParams[Param.DataSources] = `["${dataSource}"]`;
27498
+ }
27499
+ if (enableSearchAssist) {
27500
+ queryParams[Param.EnableSearchAssist] = true;
27501
+ }
27502
+ if (hideResults) {
27503
+ queryParams[Param.HideResult] = true;
27504
+ }
27505
+ if (forceTable) {
27506
+ queryParams[Param.ForceTable] = true;
27507
+ }
27508
+ queryParams[Param.DataSourceMode] = this.getDataSourceMode();
27509
+ queryParams[Param.UseLastSelectedDataSource] = false;
27510
+ queryParams[Param.searchEmbed] = true;
27511
+ let query = '';
27512
+ const queryParamsString = getQueryParamString(queryParams, true);
27513
+ if (queryParamsString) {
27514
+ query = `?${queryParamsString}`;
27515
+ }
27516
+ const filterQuery = getFilterQuery(runtimeFilters || []);
27517
+ if (filterQuery) {
27518
+ query += `&${filterQuery}`;
27519
+ }
27520
+ return query;
27521
+ }
27522
+ /**
27523
+ * Construct the URL of the embedded ThoughtSpot sage fullscreen to be
27524
+ * loaded in the iframe
27525
+ *
27526
+ * @param answerSessionId The answer session id of the ad hoc answer
27527
+ * @returns iframe url
27528
+ */
27529
+ getIFrameSrc(answerSessionId) {
27530
+ const answerPath = answerSessionId ? `ai-answer/${answerSessionId}` : 'answer';
27531
+ const tsPostHashParams = this.getThoughtSpotPostUrlParams();
27532
+ return `${this.getRootIframeSrc()}/embed/${answerPath}${tsPostHashParams}`;
27533
+ }
27534
+ /**
27535
+ * Render the embedded ThoughtSpot sage fullscreen
27536
+ */
27537
+ render() {
27538
+ super.render();
27539
+ const { answerSessionId } = this.viewConfig;
27540
+ const src = this.getIFrameSrc(answerSessionId);
27541
+ this.renderIFrame(src);
27542
+ getAuthPromise().then(() => {
27543
+ if (checkReleaseVersionInBeta(getReleaseVersion(), getEmbedConfig().suppressSageEmbedBetaWarning)) {
27544
+ alert(ERROR_MESSAGE.SAGE_EMBED_BETA_WARNING_MESSAGE);
27545
+ }
27546
+ });
27547
+ return this;
27548
+ }
27549
+ }
27550
+
27369
27551
  /**
27370
27552
  * Copyright (c) 2022
27371
27553
  *
@@ -27856,36 +28038,6 @@
27856
28038
  });
27857
28039
  }
27858
28040
 
27859
- /**
27860
- * Copyright (c) 2022
27861
- *
27862
- * Embed ThoughtSpot Sage
27863
- *
27864
- * @summary TS Sage embed
27865
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27866
- * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
27867
- */
27868
- const HiddenActionItemByDefaultForSageEmbed = [
27869
- exports.Action.Save,
27870
- exports.Action.Pin,
27871
- ];
27872
-
27873
- /**
27874
- * Copyright (c) 2022
27875
- *
27876
- * Embed ThoughtSpot Sage fullscreen view
27877
- *
27878
- * @summary TS Sage embed
27879
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
27880
- */
27881
- const HiddenActionItemByDefaultForSageFullscreenEmbed = [
27882
- exports.Action.EditACopy,
27883
- exports.Action.SaveAsView,
27884
- exports.Action.UpdateTML,
27885
- exports.Action.EditTML,
27886
- exports.Action.AnswerDelete,
27887
- ];
27888
-
27889
28041
  const componentFactory = (EmbedConstructor) => React__default['default'].forwardRef((props, forwardedRef) => {
27890
28042
  const ref = React__default['default'].useRef(null);
27891
28043
  const { className, ...embedProps } = props;
@@ -27975,6 +28127,8 @@
27975
28127
  * ```
27976
28128
  */
27977
28129
  const SearchBarEmbed$1 = componentFactory(SearchBarEmbed);
28130
+ const SageEmbed$1 = componentFactory(SageEmbed);
28131
+ const SageFullscreenEmbed$1 = componentFactory(SageFullscreenEmbed);
27978
28132
  /**
27979
28133
  * Get a reference to the embed component to trigger events on the component.
27980
28134
  *
@@ -27997,6 +28151,8 @@
27997
28151
  exports.AppEmbed = AppEmbed$1;
27998
28152
  exports.LiveboardEmbed = LiveboardEmbed$1;
27999
28153
  exports.PinboardEmbed = PinboardEmbed;
28154
+ exports.SageEmbed = SageEmbed$1;
28155
+ exports.SageFullscreenEmbed = SageFullscreenEmbed$1;
28000
28156
  exports.SearchBarEmbed = SearchBarEmbed$1;
28001
28157
  exports.SearchEmbed = SearchEmbed$1;
28002
28158
  exports.useEmbedRef = useEmbedRef;
@@ -27509,7 +27509,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
27509
27509
  });
27510
27510
  }
27511
27511
 
27512
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.21";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
27512
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.23";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
27513
27513
 
27514
27514
  /**
27515
27515
  * Copyright (c) 2022
package/dist/tsembed.js CHANGED
@@ -27407,7 +27407,7 @@
27407
27407
  });
27408
27408
  }
27409
27409
 
27410
- var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.21";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
27410
+ var name="@thoughtspot/visual-embed-sdk";var version="1.21.0-alpha.23";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:"./dist/tsembed.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/index.js",require:"./cjs/src/react.index.js",types:"./lib/src/react/index.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/index.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",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 ../../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","docs-cmd":"node scripts/gatsby-commands.js",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme","test-sdk":"jest -c jest.config.sdk.js --runInBand","test-docs":"jest -c jest.config.docs.js",test:"npm run test-sdk && npm run test-docs",posttest:"cat ./coverage/sdk/lcov.info | coveralls",prepublishOnly:"npm run test; npm run tsc; npm run bundle-dts; npm run bundle-dts-react-full; npm run build","publish-dev":"npm publish --tag dev","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",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^40.1.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2","use-deep-compare-effect":"^1.8.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","@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.13.1","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":"6.7.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":"^8.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-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","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,typesVersions:typesVersions,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};
27411
27411
 
27412
27412
  /**
27413
27413
  * Copyright (c) 2022
@@ -74,6 +74,12 @@ interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
74
74
  * ```
75
75
  */
76
76
  export const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & React.RefAttributes<TsEmbed>>;
77
+ interface SageEmbedProps extends EmbedProps, SageViewConfig {
78
+ }
79
+ export const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
80
+ interface SageEmbedProps extends EmbedProps, SageFullscreenViewConfig {
81
+ }
82
+ export const SageFullscreenEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.RefAttributes<TsEmbed>>;
77
83
  /**
78
84
  * Get a reference to the embed component to trigger events on the component.
79
85
  *
@@ -144,6 +150,129 @@ export declare class SearchBarEmbed extends TsEmbed {
144
150
  render(): SearchBarEmbed;
145
151
  }
146
152
 
153
+ /**
154
+ * Copyright (c) 2022
155
+ *
156
+ * Embed ThoughtSpot Sage
157
+ *
158
+ * @summary TS Sage embed
159
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
160
+ * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
161
+ */
162
+ /**
163
+ * The configuration attributes for the embedded search view.
164
+ *
165
+ * @group Embed components
166
+ */
167
+ export interface SageViewConfig extends ViewConfig {
168
+ /**
169
+ * If set to false, eureka results are hidden
170
+ */
171
+ hideEurekaResults?: boolean;
172
+ /**
173
+ * primary flag to enable eureka(/sage) page embedding.
174
+ */
175
+ isSageEmbed?: boolean;
176
+ /**
177
+ * flag to disable changing worksheet. default false.
178
+ */
179
+ disableWorksheetChange?: boolean;
180
+ /**
181
+ * flag to hide worksheet selector. default false.
182
+ */
183
+ hideWorksheetSelector?: boolean;
184
+ }
185
+ export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
186
+ /**
187
+ * Embed ThoughtSpot search
188
+ *
189
+ * @group Embed components
190
+ */
191
+ export declare class SageEmbed extends TsEmbed {
192
+ /**
193
+ * The view configuration for the embedded ThoughtSpot sage.
194
+ */
195
+ protected viewConfig: SageViewConfig;
196
+ constructor(domSelector: DOMSelector, viewConfig: SageViewConfig);
197
+ protected getEmbedParams(): string;
198
+ /**
199
+ * Render the embedded ThoughtSpot Sage
200
+ */
201
+ render(): SageEmbed;
202
+ }
203
+
204
+ /**
205
+ * Copyright (c) 2022
206
+ *
207
+ * Embed ThoughtSpot Sage fullscreen view
208
+ *
209
+ * @summary TS Sage embed
210
+ * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
211
+ */
212
+ /**
213
+ * The configuration attributes for the embedded Sage fullscreen view.
214
+ *
215
+ * @group Embed components
216
+ */
217
+ export interface SageFullscreenViewConfig extends ViewConfig {
218
+ /**
219
+ * If set to true, the data sources panel is collapsed on load,
220
+ * but can be expanded manually.
221
+ */
222
+ collapseDataSources?: boolean;
223
+ /**
224
+ * If set to true, hides the data sources panel.
225
+ */
226
+ hideDataSources?: boolean;
227
+ /**
228
+ * If set to true, hides the charts and tables in search answers.
229
+ * This attribute can be used to create a custom visualization
230
+ * using raw answer data.
231
+ */
232
+ hideResults?: boolean;
233
+ /**
234
+ * If set to true, the Search Assist feature is enabled.
235
+ *
236
+ */
237
+ enableSearchAssist?: boolean;
238
+ /**
239
+ * If set to true, the tabular view is set as the default
240
+ * format for presenting search data.
241
+ */
242
+ forceTable?: boolean;
243
+ /**
244
+ * The array of data source GUIDs to set on load.
245
+ */
246
+ dataSource?: string;
247
+ /**
248
+ * The answer session id of the answer to load.
249
+ */
250
+ answerSessionId?: string;
251
+ /**
252
+ * If set to true, Sage fullscreen view will render without the Search Bar
253
+ * The chart/table should still be visible.
254
+ */
255
+ hideSearchBar?: boolean;
256
+ }
257
+ export declare const HiddenActionItemByDefaultForSageFullscreenEmbed: Action[];
258
+ /**
259
+ * Embed ThoughtSpot Sage
260
+ *
261
+ * @group Embed components
262
+ */
263
+ export declare class SageFullscreenEmbed extends TsEmbed {
264
+ /**
265
+ * The view configuration for the embedded ThoughtSpot sage fullscreen.
266
+ */
267
+ protected viewConfig: SageFullscreenViewConfig;
268
+ constructor(domSelector: DOMSelector, viewConfig: SageFullscreenViewConfig);
269
+ protected getEmbedParams(): string;
270
+ /**
271
+ * Render the embedded ThoughtSpot sage fullscreen
272
+ */
273
+ render(): SageFullscreenEmbed;
274
+ }
275
+
147
276
  /**
148
277
  * Copyright (c) 2022
149
278
  *
@@ -3120,126 +3249,3 @@ export declare enum ContextMenuTriggerOptions {
3120
3249
  RIGHT_CLICK = "right-click"
3121
3250
  }
3122
3251
 
3123
- /**
3124
- * Copyright (c) 2022
3125
- *
3126
- * Embed ThoughtSpot Sage
3127
- *
3128
- * @summary TS Sage embed
3129
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
3130
- * @author Kumar Animesh <animesh.kumar@thoughtspot.com>
3131
- */
3132
- /**
3133
- * The configuration attributes for the embedded search view.
3134
- *
3135
- * @group Embed components
3136
- */
3137
- export interface NLSViewConfig extends ViewConfig {
3138
- /**
3139
- * If set to false, eureka results are hidden
3140
- */
3141
- hideEurekaResults?: boolean;
3142
- /**
3143
- * primary flag to enable eureka(/sage) page embedding.
3144
- */
3145
- isSageEmbed?: boolean;
3146
- /**
3147
- * flag to disable changing worksheet. default false.
3148
- */
3149
- disableWorksheetChange?: boolean;
3150
- /**
3151
- * flag to hide worksheet selector. default false.
3152
- */
3153
- hideWorksheetSelector?: boolean;
3154
- }
3155
- export declare const HiddenActionItemByDefaultForSageEmbed: Action[];
3156
- /**
3157
- * Embed ThoughtSpot search
3158
- *
3159
- * @group Embed components
3160
- */
3161
- export declare class SageEmbed extends TsEmbed {
3162
- /**
3163
- * The view configuration for the embedded ThoughtSpot sage.
3164
- */
3165
- protected viewConfig: NLSViewConfig;
3166
- constructor(domSelector: DOMSelector, viewConfig: NLSViewConfig);
3167
- protected getEmbedParams(): string;
3168
- /**
3169
- * Render the embedded ThoughtSpot Sage
3170
- */
3171
- render(): SageEmbed;
3172
- }
3173
-
3174
- /**
3175
- * Copyright (c) 2022
3176
- *
3177
- * Embed ThoughtSpot Sage fullscreen view
3178
- *
3179
- * @summary TS Sage embed
3180
- * @author Mourya Balabhadra <mourya.balabhadra@thoughtspot.com>
3181
- */
3182
- /**
3183
- * The configuration attributes for the embedded Sage fullscreen view.
3184
- *
3185
- * @group Embed components
3186
- */
3187
- export interface SageFullscreenConfig extends ViewConfig {
3188
- /**
3189
- * If set to true, the data sources panel is collapsed on load,
3190
- * but can be expanded manually.
3191
- */
3192
- collapseDataSources?: boolean;
3193
- /**
3194
- * If set to true, hides the data sources panel.
3195
- */
3196
- hideDataSources?: boolean;
3197
- /**
3198
- * If set to true, hides the charts and tables in search answers.
3199
- * This attribute can be used to create a custom visualization
3200
- * using raw answer data.
3201
- */
3202
- hideResults?: boolean;
3203
- /**
3204
- * If set to true, the Search Assist feature is enabled.
3205
- *
3206
- */
3207
- enableSearchAssist?: boolean;
3208
- /**
3209
- * If set to true, the tabular view is set as the default
3210
- * format for presenting search data.
3211
- */
3212
- forceTable?: boolean;
3213
- /**
3214
- * The array of data source GUIDs to set on load.
3215
- */
3216
- dataSource?: string;
3217
- /**
3218
- * The answer session id of the answer to load.
3219
- */
3220
- answerSessionId?: string;
3221
- /**
3222
- * If set to true, Sage fullscreen view will render without the Search Bar
3223
- * The chart/table should still be visible.
3224
- */
3225
- hideSearchBar?: boolean;
3226
- }
3227
- export declare const HiddenActionItemByDefaultForSageFullscreenEmbed: Action[];
3228
- /**
3229
- * Embed ThoughtSpot Sage
3230
- *
3231
- * @group Embed components
3232
- */
3233
- export declare class SageFullscreenEmbed extends TsEmbed {
3234
- /**
3235
- * The view configuration for the embedded ThoughtSpot sage fullscreen.
3236
- */
3237
- protected viewConfig: SageFullscreenConfig;
3238
- constructor(domSelector: DOMSelector, viewConfig: SageFullscreenConfig);
3239
- protected getEmbedParams(): string;
3240
- /**
3241
- * Render the embedded ThoughtSpot sage fullscreen
3242
- */
3243
- render(): SageFullscreenEmbed;
3244
- }
3245
-