@thoughtspot/visual-embed-sdk 1.44.5 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +1 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +4 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +10 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  9. package/cjs/src/embed/liveboard.js +4 -1
  10. package/cjs/src/embed/liveboard.js.map +1 -1
  11. package/cjs/src/embed/liveboard.spec.js +11 -0
  12. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  13. package/cjs/src/embed/search.d.ts +1 -0
  14. package/cjs/src/embed/search.d.ts.map +1 -1
  15. package/cjs/src/embed/search.js +4 -1
  16. package/cjs/src/embed/search.js.map +1 -1
  17. package/cjs/src/embed/search.spec.js +10 -0
  18. package/cjs/src/embed/search.spec.js.map +1 -1
  19. package/cjs/src/types.d.ts +102 -23
  20. package/cjs/src/types.d.ts.map +1 -1
  21. package/cjs/src/types.js +77 -14
  22. package/cjs/src/types.js.map +1 -1
  23. package/cjs/src/utils/processTrigger.js +1 -1
  24. package/cjs/src/utils/processTrigger.js.map +1 -1
  25. package/cjs/src/utils/processTrigger.spec.js +12 -0
  26. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  27. package/dist/{index-_2rRJf4J.js → index-Dk-SLdNk.js} +1 -1
  28. package/dist/src/embed/app.d.ts +1 -1
  29. package/dist/src/embed/app.d.ts.map +1 -1
  30. package/dist/src/embed/liveboard.d.ts.map +1 -1
  31. package/dist/src/embed/search.d.ts +1 -0
  32. package/dist/src/embed/search.d.ts.map +1 -1
  33. package/dist/src/types.d.ts +102 -23
  34. package/dist/src/types.d.ts.map +1 -1
  35. package/dist/tsembed-react.es.js +93 -21
  36. package/dist/tsembed-react.js +92 -20
  37. package/dist/tsembed.es.js +93 -21
  38. package/dist/tsembed.js +92 -20
  39. package/dist/visual-embed-sdk-react-full.d.ts +102 -23
  40. package/dist/visual-embed-sdk-react.d.ts +102 -23
  41. package/dist/visual-embed-sdk.d.ts +102 -23
  42. package/lib/package.json +1 -1
  43. package/lib/src/embed/app.d.ts +1 -1
  44. package/lib/src/embed/app.d.ts.map +1 -1
  45. package/lib/src/embed/app.js +4 -1
  46. package/lib/src/embed/app.js.map +1 -1
  47. package/lib/src/embed/app.spec.js +10 -0
  48. package/lib/src/embed/app.spec.js.map +1 -1
  49. package/lib/src/embed/liveboard.d.ts.map +1 -1
  50. package/lib/src/embed/liveboard.js +4 -1
  51. package/lib/src/embed/liveboard.js.map +1 -1
  52. package/lib/src/embed/liveboard.spec.js +11 -0
  53. package/lib/src/embed/liveboard.spec.js.map +1 -1
  54. package/lib/src/embed/search.d.ts +1 -0
  55. package/lib/src/embed/search.d.ts.map +1 -1
  56. package/lib/src/embed/search.js +4 -1
  57. package/lib/src/embed/search.js.map +1 -1
  58. package/lib/src/embed/search.spec.js +10 -0
  59. package/lib/src/embed/search.spec.js.map +1 -1
  60. package/lib/src/types.d.ts +102 -23
  61. package/lib/src/types.d.ts.map +1 -1
  62. package/lib/src/types.js +77 -14
  63. package/lib/src/types.js.map +1 -1
  64. package/lib/src/utils/processTrigger.js +1 -1
  65. package/lib/src/utils/processTrigger.js.map +1 -1
  66. package/lib/src/utils/processTrigger.spec.js +12 -0
  67. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/embed/app.spec.ts +14 -0
  70. package/src/embed/app.ts +6 -1
  71. package/src/embed/liveboard.spec.ts +15 -0
  72. package/src/embed/liveboard.ts +5 -0
  73. package/src/embed/search.spec.ts +14 -0
  74. package/src/embed/search.ts +6 -0
  75. package/src/types.ts +125 -46
  76. package/src/utils/processTrigger.spec.ts +18 -0
  77. package/src/utils/processTrigger.ts +1 -1
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.5 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.45.0 */
2
2
  'use client';
3
3
  import * as React from 'react';
4
4
  import React__default, { useRef, useCallback } from 'react';
@@ -3384,6 +3384,7 @@ var Param;
3384
3384
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3385
3385
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3386
3386
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3387
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3387
3388
  })(Param || (Param = {}));
3388
3389
  /**
3389
3390
  * ThoughtSpot application pages include actions and menu commands
@@ -3396,7 +3397,7 @@ var Param;
3396
3397
  * ```js
3397
3398
  * const embed = new LiveboardEmbed('#tsEmbed', {
3398
3399
  * ... //other embed view config
3399
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3400
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3400
3401
  * disabledActions: [Action.Download],
3401
3402
  * //hiddenActions: [], // Set either this or visibleActions
3402
3403
  * })
@@ -3407,7 +3408,7 @@ var Param;
3407
3408
  * ... //other embed view config
3408
3409
  * //visibleActions: [],
3409
3410
  * disabledActions: [Action.Download],
3410
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3411
+ * hiddenActions: [Action.Edit, Action.Explore],
3411
3412
  * })
3412
3413
  * ```
3413
3414
  * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
@@ -3927,13 +3928,15 @@ var Action;
3927
3928
  */
3928
3929
  Action["RequestAccess"] = "requestAccess";
3929
3930
  /**
3930
- * The **Query visualizer** and **Query SQL** buttons in
3931
- * Query details panel of the Answer page.
3931
+ * Controls the display and availability of the **Query visualizer** and
3932
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3932
3933
  *
3933
- * **Query visualizer** - Displays the tables
3934
- * and filters used in a search query.
3935
- * **Query SQL** - Displays the SQL statements used
3936
- * in a search query to fetch data.
3934
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3935
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3936
+ *
3937
+ * Note: This action ID only affects the visibility of the buttons within the
3938
+ * Query details panel. It does not control the visibility
3939
+ * of the query details icon on the Answer page.
3937
3940
  * @example
3938
3941
  * ```js
3939
3942
  * disabledActions: [Action.QueryDetailsButtons]
@@ -4638,12 +4641,11 @@ var Action;
4638
4641
  */
4639
4642
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4640
4643
  /**
4641
- * Action ID to hide or disable the Spotter in the conversation training widget.
4642
- * When disabled, users cannot access **Add to Coaching**, which allows adding reference
4643
- * questions and business terms to improve Spotter’s responses.
4644
- * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
4645
- * enabled by default on embed deployments.
4646
-
4644
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4645
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4646
+ * The **Add to Coaching** feature allows adding reference questions and
4647
+ * business terms to improve Spotter’s responses. This feature is generally available
4648
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4647
4649
  * @example
4648
4650
  * ```js
4649
4651
  * hiddenAction: [Action.InConversationTraining]
@@ -4719,6 +4721,55 @@ var Action;
4719
4721
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4720
4722
  */
4721
4723
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4724
+ /**
4725
+ * The **Publish** action for Liveboards, Answers and Models.
4726
+ * Opens the publishing modal. It's a parent action for the
4727
+ * **Manage Publishing** and **Unpublish** actions if the object
4728
+ * is already published, otherwise appears standalone.
4729
+ * @example
4730
+ * ```js
4731
+ * hiddenActions: [Action.Publish]
4732
+ * disabledActions: [Action.Publish]
4733
+ * ```
4734
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4735
+ */
4736
+ Action["Publish"] = "publish";
4737
+ /**
4738
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4739
+ * Opens the same publishing modal as the **Publish** action.
4740
+ * Appears as a child action to the **Publish** action if the
4741
+ * object is already published.
4742
+ * @example
4743
+ * ```js
4744
+ * hiddenActions: [Action.ManagePublishing]
4745
+ * disabledActions: [Action.ManagePublishing]
4746
+ * ```
4747
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4748
+ */
4749
+ Action["ManagePublishing"] = "managePublishing";
4750
+ /**
4751
+ * The **Unpublish** action for Liveboards, Answers and Models.
4752
+ * Opens the unpublishing modal. Appears as a child action to
4753
+ * the **Publish** action if the object is already published.
4754
+ * @example
4755
+ * ```js
4756
+ * hiddenActions: [Action.Unpublish]
4757
+ * disabledActions: [Action.Unpublish]
4758
+ * ```
4759
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4760
+ */
4761
+ Action["Unpublish"] = "unpublish";
4762
+ /**
4763
+ * The **Parameterize** action for Tables and Connections.
4764
+ * Opens the parameterization modal.
4765
+ * @example
4766
+ * ```js
4767
+ * hiddenActions: [Action.Parameterize]
4768
+ * disabledActions: [Action.Parameterize]
4769
+ * ```
4770
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4771
+ */
4772
+ Action["Parameterize"] = "parameterise";
4722
4773
  /**
4723
4774
  * The **Move to Group** menu action on a Liveboard.
4724
4775
  * Allows moving a visualization to a different group.
@@ -4759,6 +4810,18 @@ var Action;
4759
4810
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4760
4811
  */
4761
4812
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4813
+ /**
4814
+ * The **Include current period** checkbox for date filters.
4815
+ * Controls the visibility and availability of the option to include
4816
+ * the current time period in filter results.
4817
+ * @example
4818
+ * ```js
4819
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4820
+ * disabledActions: [Action.IncludeCurrentPeriod]
4821
+ * ```
4822
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4823
+ */
4824
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4762
4825
  })(Action || (Action = {}));
4763
4826
  var PrefetchFeatures;
4764
4827
  (function (PrefetchFeatures) {
@@ -8731,7 +8794,7 @@ class AnswerService {
8731
8794
  async getTML() {
8732
8795
  const { object } = await this.executeQuery(getAnswerTML, {});
8733
8796
  const edoc = object[0].edoc;
8734
- const YAML = await import('./index-_2rRJf4J.js');
8797
+ const YAML = await import('./index-Dk-SLdNk.js');
8735
8798
  const parsedDoc = YAML.parse(edoc);
8736
8799
  return {
8737
8800
  answer: {
@@ -17629,7 +17692,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
17629
17692
  channel.port1.onmessage = ({ data: responseData }) => {
17630
17693
  var _a;
17631
17694
  channel.port1.close();
17632
- const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17695
+ const error = (responseData === null || responseData === void 0 ? void 0 : responseData.error) || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17633
17696
  if (error) {
17634
17697
  rej(error);
17635
17698
  }
@@ -17988,7 +18051,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
17988
18051
  return eventData;
17989
18052
  }
17990
18053
 
17991
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.5";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
18054
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
17992
18055
 
17993
18056
  class HostEventClient {
17994
18057
  constructor(iFrame) {
@@ -19961,7 +20024,7 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
19961
20024
  }
19962
20025
  getEmbedParamsObject() {
19963
20026
  var _a;
19964
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
20027
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
19965
20028
  const queryParams = this.getBaseQueryParams();
19966
20029
  queryParams[Param.HideActions] = [
19967
20030
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -19996,6 +20059,9 @@ let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
19996
20059
  if (!focusSearchBarOnRender) {
19997
20060
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
19998
20061
  }
20062
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20063
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20064
+ }
19999
20065
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
20000
20066
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
20001
20067
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
@@ -20250,7 +20316,7 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
20250
20316
  * embedded Liveboard or visualization.
20251
20317
  */
20252
20318
  getEmbedParams() {
20253
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, } = this.viewConfig;
20319
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20254
20320
  let params = {};
20255
20321
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20256
20322
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20337,6 +20403,9 @@ let AppEmbed$1 = class AppEmbed extends V1Embed {
20337
20403
  if (isCentralizedLiveboardFilterUXEnabled != undefined) {
20338
20404
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20339
20405
  }
20406
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20407
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20408
+ }
20340
20409
  this.defaultHeight = minimumHeight || this.defaultHeight;
20341
20410
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20342
20411
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20692,7 +20761,7 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
20692
20761
  getEmbedParamsObject() {
20693
20762
  let params = {};
20694
20763
  params = this.getBaseQueryParams(params);
20695
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, } = this.viewConfig;
20764
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20696
20765
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20697
20766
  || this.viewConfig.preventPinboardFilterRemoval;
20698
20767
  if (fullHeight === true) {
@@ -20772,6 +20841,9 @@ let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
20772
20841
  if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
20773
20842
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20774
20843
  }
20844
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20845
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20846
+ }
20775
20847
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
20776
20848
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
20777
20849
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.44.5 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.45.0 */
2
2
  'use client';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
@@ -3406,6 +3406,7 @@
3406
3406
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3407
3407
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3408
3408
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3409
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3409
3410
  })(Param || (Param = {}));
3410
3411
  /**
3411
3412
  * ThoughtSpot application pages include actions and menu commands
@@ -3418,7 +3419,7 @@
3418
3419
  * ```js
3419
3420
  * const embed = new LiveboardEmbed('#tsEmbed', {
3420
3421
  * ... //other embed view config
3421
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3422
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3422
3423
  * disabledActions: [Action.Download],
3423
3424
  * //hiddenActions: [], // Set either this or visibleActions
3424
3425
  * })
@@ -3429,7 +3430,7 @@
3429
3430
  * ... //other embed view config
3430
3431
  * //visibleActions: [],
3431
3432
  * disabledActions: [Action.Download],
3432
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3433
+ * hiddenActions: [Action.Edit, Action.Explore],
3433
3434
  * })
3434
3435
  * ```
3435
3436
  * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
@@ -3949,13 +3950,15 @@
3949
3950
  */
3950
3951
  Action["RequestAccess"] = "requestAccess";
3951
3952
  /**
3952
- * The **Query visualizer** and **Query SQL** buttons in
3953
- * Query details panel of the Answer page.
3953
+ * Controls the display and availability of the **Query visualizer** and
3954
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3954
3955
  *
3955
- * **Query visualizer** - Displays the tables
3956
- * and filters used in a search query.
3957
- * **Query SQL** - Displays the SQL statements used
3958
- * in a search query to fetch data.
3956
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3957
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3958
+ *
3959
+ * Note: This action ID only affects the visibility of the buttons within the
3960
+ * Query details panel. It does not control the visibility
3961
+ * of the query details icon on the Answer page.
3959
3962
  * @example
3960
3963
  * ```js
3961
3964
  * disabledActions: [Action.QueryDetailsButtons]
@@ -4660,12 +4663,11 @@
4660
4663
  */
4661
4664
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4662
4665
  /**
4663
- * Action ID to hide or disable the Spotter in the conversation training widget.
4664
- * When disabled, users cannot access **Add to Coaching**, which allows adding reference
4665
- * questions and business terms to improve Spotter’s responses.
4666
- * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
4667
- * enabled by default on embed deployments.
4668
-
4666
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4667
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4668
+ * The **Add to Coaching** feature allows adding reference questions and
4669
+ * business terms to improve Spotter’s responses. This feature is generally available
4670
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4669
4671
  * @example
4670
4672
  * ```js
4671
4673
  * hiddenAction: [Action.InConversationTraining]
@@ -4741,6 +4743,55 @@
4741
4743
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4742
4744
  */
4743
4745
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4746
+ /**
4747
+ * The **Publish** action for Liveboards, Answers and Models.
4748
+ * Opens the publishing modal. It's a parent action for the
4749
+ * **Manage Publishing** and **Unpublish** actions if the object
4750
+ * is already published, otherwise appears standalone.
4751
+ * @example
4752
+ * ```js
4753
+ * hiddenActions: [Action.Publish]
4754
+ * disabledActions: [Action.Publish]
4755
+ * ```
4756
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4757
+ */
4758
+ Action["Publish"] = "publish";
4759
+ /**
4760
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4761
+ * Opens the same publishing modal as the **Publish** action.
4762
+ * Appears as a child action to the **Publish** action if the
4763
+ * object is already published.
4764
+ * @example
4765
+ * ```js
4766
+ * hiddenActions: [Action.ManagePublishing]
4767
+ * disabledActions: [Action.ManagePublishing]
4768
+ * ```
4769
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4770
+ */
4771
+ Action["ManagePublishing"] = "managePublishing";
4772
+ /**
4773
+ * The **Unpublish** action for Liveboards, Answers and Models.
4774
+ * Opens the unpublishing modal. Appears as a child action to
4775
+ * the **Publish** action if the object is already published.
4776
+ * @example
4777
+ * ```js
4778
+ * hiddenActions: [Action.Unpublish]
4779
+ * disabledActions: [Action.Unpublish]
4780
+ * ```
4781
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4782
+ */
4783
+ Action["Unpublish"] = "unpublish";
4784
+ /**
4785
+ * The **Parameterize** action for Tables and Connections.
4786
+ * Opens the parameterization modal.
4787
+ * @example
4788
+ * ```js
4789
+ * hiddenActions: [Action.Parameterize]
4790
+ * disabledActions: [Action.Parameterize]
4791
+ * ```
4792
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4793
+ */
4794
+ Action["Parameterize"] = "parameterise";
4744
4795
  /**
4745
4796
  * The **Move to Group** menu action on a Liveboard.
4746
4797
  * Allows moving a visualization to a different group.
@@ -4781,6 +4832,18 @@
4781
4832
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4782
4833
  */
4783
4834
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4835
+ /**
4836
+ * The **Include current period** checkbox for date filters.
4837
+ * Controls the visibility and availability of the option to include
4838
+ * the current time period in filter results.
4839
+ * @example
4840
+ * ```js
4841
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4842
+ * disabledActions: [Action.IncludeCurrentPeriod]
4843
+ * ```
4844
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4845
+ */
4846
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4784
4847
  })(exports.Action || (exports.Action = {}));
4785
4848
  var PrefetchFeatures;
4786
4849
  (function (PrefetchFeatures) {
@@ -17651,7 +17714,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17651
17714
  channel.port1.onmessage = ({ data: responseData }) => {
17652
17715
  var _a;
17653
17716
  channel.port1.close();
17654
- const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17717
+ const error = (responseData === null || responseData === void 0 ? void 0 : responseData.error) || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17655
17718
  if (error) {
17656
17719
  rej(error);
17657
17720
  }
@@ -18010,7 +18073,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18010
18073
  return eventData;
18011
18074
  }
18012
18075
 
18013
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.5";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
18076
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.45.0";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",eslint:"^9.23.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^10.1.1","eslint-import-resolver-typescript":"^4.2.5","eslint-plugin-comment-length":"2.2.1","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","fs-extra":"^10.0.0","gh-pages":"6.3.0",globals:"^16.0.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^6.3.5"};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:"32 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};
18014
18077
 
18015
18078
  class HostEventClient {
18016
18079
  constructor(iFrame) {
@@ -19983,7 +20046,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19983
20046
  }
19984
20047
  getEmbedParamsObject() {
19985
20048
  var _a;
19986
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
20049
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
19987
20050
  const queryParams = this.getBaseQueryParams();
19988
20051
  queryParams[Param.HideActions] = [
19989
20052
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -20018,6 +20081,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20018
20081
  if (!focusSearchBarOnRender) {
20019
20082
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
20020
20083
  }
20084
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20085
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20086
+ }
20021
20087
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
20022
20088
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
20023
20089
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
@@ -20272,7 +20338,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20272
20338
  * embedded Liveboard or visualization.
20273
20339
  */
20274
20340
  getEmbedParams() {
20275
- const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, } = this.viewConfig;
20341
+ const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, minimumHeight, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20276
20342
  let params = {};
20277
20343
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
20278
20344
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20359,6 +20425,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20359
20425
  if (isCentralizedLiveboardFilterUXEnabled != undefined) {
20360
20426
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20361
20427
  }
20428
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20429
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20430
+ }
20362
20431
  this.defaultHeight = minimumHeight || this.defaultHeight;
20363
20432
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20364
20433
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20714,7 +20783,7 @@ query GetEurekaVizSnapshots(
20714
20783
  getEmbedParamsObject() {
20715
20784
  let params = {};
20716
20785
  params = this.getBaseQueryParams(params);
20717
- const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, } = this.viewConfig;
20786
+ const { enableVizTransformations, fullHeight, defaultHeight, minimumHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, isEnhancedFilterInteractivityEnabled = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, showSpotterLimitations, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20718
20787
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20719
20788
  || this.viewConfig.preventPinboardFilterRemoval;
20720
20789
  if (fullHeight === true) {
@@ -20794,6 +20863,9 @@ query GetEurekaVizSnapshots(
20794
20863
  if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
20795
20864
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20796
20865
  }
20866
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20867
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20868
+ }
20797
20869
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
20798
20870
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
20799
20871
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;