@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
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -3216,6 +3216,7 @@ var Param;
3216
3216
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3217
3217
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3218
3218
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3219
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3219
3220
  })(Param || (Param = {}));
3220
3221
  /**
3221
3222
  * ThoughtSpot application pages include actions and menu commands
@@ -3228,7 +3229,7 @@ var Param;
3228
3229
  * ```js
3229
3230
  * const embed = new LiveboardEmbed('#tsEmbed', {
3230
3231
  * ... //other embed view config
3231
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3232
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3232
3233
  * disabledActions: [Action.Download],
3233
3234
  * //hiddenActions: [], // Set either this or visibleActions
3234
3235
  * })
@@ -3239,7 +3240,7 @@ var Param;
3239
3240
  * ... //other embed view config
3240
3241
  * //visibleActions: [],
3241
3242
  * disabledActions: [Action.Download],
3242
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3243
+ * hiddenActions: [Action.Edit, Action.Explore],
3243
3244
  * })
3244
3245
  * ```
3245
3246
  * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
@@ -3759,13 +3760,15 @@ var Action;
3759
3760
  */
3760
3761
  Action["RequestAccess"] = "requestAccess";
3761
3762
  /**
3762
- * The **Query visualizer** and **Query SQL** buttons in
3763
- * Query details panel of the Answer page.
3763
+ * Controls the display and availability of the **Query visualizer** and
3764
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3764
3765
  *
3765
- * **Query visualizer** - Displays the tables
3766
- * and filters used in a search query.
3767
- * **Query SQL** - Displays the SQL statements used
3768
- * in a search query to fetch data.
3766
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3767
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3768
+ *
3769
+ * Note: This action ID only affects the visibility of the buttons within the
3770
+ * Query details panel. It does not control the visibility
3771
+ * of the query details icon on the Answer page.
3769
3772
  * @example
3770
3773
  * ```js
3771
3774
  * disabledActions: [Action.QueryDetailsButtons]
@@ -4470,12 +4473,11 @@ var Action;
4470
4473
  */
4471
4474
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4472
4475
  /**
4473
- * Action ID to hide or disable the Spotter in the conversation training widget.
4474
- * When disabled, users cannot access **Add to Coaching**, which allows adding reference
4475
- * questions and business terms to improve Spotter’s responses.
4476
- * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
4477
- * enabled by default on embed deployments.
4478
-
4476
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4477
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4478
+ * The **Add to Coaching** feature allows adding reference questions and
4479
+ * business terms to improve Spotter’s responses. This feature is generally available
4480
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4479
4481
  * @example
4480
4482
  * ```js
4481
4483
  * hiddenAction: [Action.InConversationTraining]
@@ -4551,6 +4553,55 @@ var Action;
4551
4553
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4552
4554
  */
4553
4555
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4556
+ /**
4557
+ * The **Publish** action for Liveboards, Answers and Models.
4558
+ * Opens the publishing modal. It's a parent action for the
4559
+ * **Manage Publishing** and **Unpublish** actions if the object
4560
+ * is already published, otherwise appears standalone.
4561
+ * @example
4562
+ * ```js
4563
+ * hiddenActions: [Action.Publish]
4564
+ * disabledActions: [Action.Publish]
4565
+ * ```
4566
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4567
+ */
4568
+ Action["Publish"] = "publish";
4569
+ /**
4570
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4571
+ * Opens the same publishing modal as the **Publish** action.
4572
+ * Appears as a child action to the **Publish** action if the
4573
+ * object is already published.
4574
+ * @example
4575
+ * ```js
4576
+ * hiddenActions: [Action.ManagePublishing]
4577
+ * disabledActions: [Action.ManagePublishing]
4578
+ * ```
4579
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4580
+ */
4581
+ Action["ManagePublishing"] = "managePublishing";
4582
+ /**
4583
+ * The **Unpublish** action for Liveboards, Answers and Models.
4584
+ * Opens the unpublishing modal. Appears as a child action to
4585
+ * the **Publish** action if the object is already published.
4586
+ * @example
4587
+ * ```js
4588
+ * hiddenActions: [Action.Unpublish]
4589
+ * disabledActions: [Action.Unpublish]
4590
+ * ```
4591
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4592
+ */
4593
+ Action["Unpublish"] = "unpublish";
4594
+ /**
4595
+ * The **Parameterize** action for Tables and Connections.
4596
+ * Opens the parameterization modal.
4597
+ * @example
4598
+ * ```js
4599
+ * hiddenActions: [Action.Parameterize]
4600
+ * disabledActions: [Action.Parameterize]
4601
+ * ```
4602
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4603
+ */
4604
+ Action["Parameterize"] = "parameterise";
4554
4605
  /**
4555
4606
  * The **Move to Group** menu action on a Liveboard.
4556
4607
  * Allows moving a visualization to a different group.
@@ -4591,6 +4642,18 @@ var Action;
4591
4642
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4592
4643
  */
4593
4644
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4645
+ /**
4646
+ * The **Include current period** checkbox for date filters.
4647
+ * Controls the visibility and availability of the option to include
4648
+ * the current time period in filter results.
4649
+ * @example
4650
+ * ```js
4651
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4652
+ * disabledActions: [Action.IncludeCurrentPeriod]
4653
+ * ```
4654
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4655
+ */
4656
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4594
4657
  })(Action || (Action = {}));
4595
4658
  var PrefetchFeatures;
4596
4659
  (function (PrefetchFeatures) {
@@ -8616,7 +8679,7 @@ class AnswerService {
8616
8679
  async getTML() {
8617
8680
  const { object } = await this.executeQuery(getAnswerTML, {});
8618
8681
  const edoc = object[0].edoc;
8619
- const YAML = await import('./index-_2rRJf4J.js');
8682
+ const YAML = await import('./index-Dk-SLdNk.js');
8620
8683
  const parsedDoc = YAML.parse(edoc);
8621
8684
  return {
8622
8685
  answer: {
@@ -17540,7 +17603,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
17540
17603
  channel.port1.onmessage = ({ data: responseData }) => {
17541
17604
  var _a;
17542
17605
  channel.port1.close();
17543
- const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17606
+ 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);
17544
17607
  if (error) {
17545
17608
  rej(error);
17546
17609
  }
@@ -18052,7 +18115,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
18052
18115
  return eventData;
18053
18116
  }
18054
18117
 
18055
- 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};
18118
+ 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};
18056
18119
 
18057
18120
  class HostEventClient {
18058
18121
  constructor(iFrame) {
@@ -19977,7 +20040,7 @@ class AppEmbed extends V1Embed {
19977
20040
  * embedded Liveboard or visualization.
19978
20041
  */
19979
20042
  getEmbedParams() {
19980
- 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$1.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;
20043
+ 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$1.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;
19981
20044
  let params = {};
19982
20045
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
19983
20046
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20064,6 +20127,9 @@ class AppEmbed extends V1Embed {
20064
20127
  if (isCentralizedLiveboardFilterUXEnabled != undefined) {
20065
20128
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20066
20129
  }
20130
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20131
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20132
+ }
20067
20133
  this.defaultHeight = minimumHeight || this.defaultHeight;
20068
20134
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20069
20135
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20419,7 +20485,7 @@ class LiveboardEmbed extends V1Embed {
20419
20485
  getEmbedParamsObject() {
20420
20486
  let params = {};
20421
20487
  params = this.getBaseQueryParams(params);
20422
- 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;
20488
+ 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;
20423
20489
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20424
20490
  || this.viewConfig.preventPinboardFilterRemoval;
20425
20491
  if (fullHeight === true) {
@@ -20499,6 +20565,9 @@ class LiveboardEmbed extends V1Embed {
20499
20565
  if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
20500
20566
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20501
20567
  }
20568
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20569
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20570
+ }
20502
20571
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
20503
20572
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
20504
20573
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -20765,7 +20834,7 @@ class SearchEmbed extends TsEmbed {
20765
20834
  }
20766
20835
  getEmbedParamsObject() {
20767
20836
  var _a;
20768
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
20837
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20769
20838
  const queryParams = this.getBaseQueryParams();
20770
20839
  queryParams[Param.HideActions] = [
20771
20840
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -20800,6 +20869,9 @@ class SearchEmbed extends TsEmbed {
20800
20869
  if (!focusSearchBarOnRender) {
20801
20870
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
20802
20871
  }
20872
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20873
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20874
+ }
20803
20875
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
20804
20876
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
20805
20877
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;
package/dist/tsembed.js CHANGED
@@ -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) :
@@ -3222,6 +3222,7 @@
3222
3222
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3223
3223
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3224
3224
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3225
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3225
3226
  })(Param || (Param = {}));
3226
3227
  /**
3227
3228
  * ThoughtSpot application pages include actions and menu commands
@@ -3234,7 +3235,7 @@
3234
3235
  * ```js
3235
3236
  * const embed = new LiveboardEmbed('#tsEmbed', {
3236
3237
  * ... //other embed view config
3237
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3238
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3238
3239
  * disabledActions: [Action.Download],
3239
3240
  * //hiddenActions: [], // Set either this or visibleActions
3240
3241
  * })
@@ -3245,7 +3246,7 @@
3245
3246
  * ... //other embed view config
3246
3247
  * //visibleActions: [],
3247
3248
  * disabledActions: [Action.Download],
3248
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3249
+ * hiddenActions: [Action.Edit, Action.Explore],
3249
3250
  * })
3250
3251
  * ```
3251
3252
  * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
@@ -3765,13 +3766,15 @@
3765
3766
  */
3766
3767
  Action["RequestAccess"] = "requestAccess";
3767
3768
  /**
3768
- * The **Query visualizer** and **Query SQL** buttons in
3769
- * Query details panel of the Answer page.
3769
+ * Controls the display and availability of the **Query visualizer** and
3770
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3770
3771
  *
3771
- * **Query visualizer** - Displays the tables
3772
- * and filters used in a search query.
3773
- * **Query SQL** - Displays the SQL statements used
3774
- * in a search query to fetch data.
3772
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3773
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3774
+ *
3775
+ * Note: This action ID only affects the visibility of the buttons within the
3776
+ * Query details panel. It does not control the visibility
3777
+ * of the query details icon on the Answer page.
3775
3778
  * @example
3776
3779
  * ```js
3777
3780
  * disabledActions: [Action.QueryDetailsButtons]
@@ -4476,12 +4479,11 @@
4476
4479
  */
4477
4480
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4478
4481
  /**
4479
- * Action ID to hide or disable the Spotter in the conversation training widget.
4480
- * When disabled, users cannot access **Add to Coaching**, which allows adding reference
4481
- * questions and business terms to improve Spotter’s responses.
4482
- * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
4483
- * enabled by default on embed deployments.
4484
-
4482
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4483
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4484
+ * The **Add to Coaching** feature allows adding reference questions and
4485
+ * business terms to improve Spotter’s responses. This feature is generally available
4486
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4485
4487
  * @example
4486
4488
  * ```js
4487
4489
  * hiddenAction: [Action.InConversationTraining]
@@ -4557,6 +4559,55 @@
4557
4559
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4558
4560
  */
4559
4561
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4562
+ /**
4563
+ * The **Publish** action for Liveboards, Answers and Models.
4564
+ * Opens the publishing modal. It's a parent action for the
4565
+ * **Manage Publishing** and **Unpublish** actions if the object
4566
+ * is already published, otherwise appears standalone.
4567
+ * @example
4568
+ * ```js
4569
+ * hiddenActions: [Action.Publish]
4570
+ * disabledActions: [Action.Publish]
4571
+ * ```
4572
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4573
+ */
4574
+ Action["Publish"] = "publish";
4575
+ /**
4576
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4577
+ * Opens the same publishing modal as the **Publish** action.
4578
+ * Appears as a child action to the **Publish** action if the
4579
+ * object is already published.
4580
+ * @example
4581
+ * ```js
4582
+ * hiddenActions: [Action.ManagePublishing]
4583
+ * disabledActions: [Action.ManagePublishing]
4584
+ * ```
4585
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4586
+ */
4587
+ Action["ManagePublishing"] = "managePublishing";
4588
+ /**
4589
+ * The **Unpublish** action for Liveboards, Answers and Models.
4590
+ * Opens the unpublishing modal. Appears as a child action to
4591
+ * the **Publish** action if the object is already published.
4592
+ * @example
4593
+ * ```js
4594
+ * hiddenActions: [Action.Unpublish]
4595
+ * disabledActions: [Action.Unpublish]
4596
+ * ```
4597
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4598
+ */
4599
+ Action["Unpublish"] = "unpublish";
4600
+ /**
4601
+ * The **Parameterize** action for Tables and Connections.
4602
+ * Opens the parameterization modal.
4603
+ * @example
4604
+ * ```js
4605
+ * hiddenActions: [Action.Parameterize]
4606
+ * disabledActions: [Action.Parameterize]
4607
+ * ```
4608
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4609
+ */
4610
+ Action["Parameterize"] = "parameterise";
4560
4611
  /**
4561
4612
  * The **Move to Group** menu action on a Liveboard.
4562
4613
  * Allows moving a visualization to a different group.
@@ -4597,6 +4648,18 @@
4597
4648
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4598
4649
  */
4599
4650
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4651
+ /**
4652
+ * The **Include current period** checkbox for date filters.
4653
+ * Controls the visibility and availability of the option to include
4654
+ * the current time period in filter results.
4655
+ * @example
4656
+ * ```js
4657
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4658
+ * disabledActions: [Action.IncludeCurrentPeriod]
4659
+ * ```
4660
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4661
+ */
4662
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4600
4663
  })(exports.Action || (exports.Action = {}));
4601
4664
  exports.PrefetchFeatures = void 0;
4602
4665
  (function (PrefetchFeatures) {
@@ -17546,7 +17609,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
17546
17609
  channel.port1.onmessage = ({ data: responseData }) => {
17547
17610
  var _a;
17548
17611
  channel.port1.close();
17549
- const error = responseData.error || ((_a = responseData === null || responseData === void 0 ? void 0 : responseData.data) === null || _a === void 0 ? void 0 : _a.error);
17612
+ 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);
17550
17613
  if (error) {
17551
17614
  rej(error);
17552
17615
  }
@@ -18058,7 +18121,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
18058
18121
  return eventData;
18059
18122
  }
18060
18123
 
18061
- 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};
18124
+ 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};
18062
18125
 
18063
18126
  class HostEventClient {
18064
18127
  constructor(iFrame) {
@@ -19983,7 +20046,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
19983
20046
  * embedded Liveboard or visualization.
19984
20047
  */
19985
20048
  getEmbedParams() {
19986
- 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 = exports.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;
20049
+ 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 = exports.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;
19987
20050
  let params = {};
19988
20051
  params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
19989
20052
  params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
@@ -20070,6 +20133,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20070
20133
  if (isCentralizedLiveboardFilterUXEnabled != undefined) {
20071
20134
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20072
20135
  }
20136
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20137
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20138
+ }
20073
20139
  this.defaultHeight = minimumHeight || this.defaultHeight;
20074
20140
  params[Param.DataPanelV2Enabled] = dataPanelV2;
20075
20141
  params[Param.HideHomepageLeftNav] = hideHomepageLeftNav;
@@ -20425,7 +20491,7 @@ query GetEurekaVizSnapshots(
20425
20491
  getEmbedParamsObject() {
20426
20492
  let params = {};
20427
20493
  params = this.getBaseQueryParams(params);
20428
- 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;
20494
+ 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;
20429
20495
  const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
20430
20496
  || this.viewConfig.preventPinboardFilterRemoval;
20431
20497
  if (fullHeight === true) {
@@ -20505,6 +20571,9 @@ query GetEurekaVizSnapshots(
20505
20571
  if (isCentralizedLiveboardFilterUXEnabled !== undefined) {
20506
20572
  params[Param.isCentralizedLiveboardFilterUXEnabled] = isCentralizedLiveboardFilterUXEnabled;
20507
20573
  }
20574
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20575
+ params[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20576
+ }
20508
20577
  params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
20509
20578
  params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
20510
20579
  params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
@@ -20771,7 +20840,7 @@ query GetEurekaVizSnapshots(
20771
20840
  }
20772
20841
  getEmbedParamsObject() {
20773
20842
  var _a;
20774
- const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, } = this.viewConfig;
20843
+ const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, excludeSearchTokenStringFromURL, collapseSearchBar = true, isThisPeriodInDateFiltersEnabled, } = this.viewConfig;
20775
20844
  const queryParams = this.getBaseQueryParams();
20776
20845
  queryParams[Param.HideActions] = [
20777
20846
  ...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
@@ -20806,6 +20875,9 @@ query GetEurekaVizSnapshots(
20806
20875
  if (!focusSearchBarOnRender) {
20807
20876
  queryParams[Param.FocusSearchBarOnRender] = focusSearchBarOnRender;
20808
20877
  }
20878
+ if (isThisPeriodInDateFiltersEnabled !== undefined) {
20879
+ queryParams[Param.IsThisPeriodInDateFiltersEnabled] = isThisPeriodInDateFiltersEnabled;
20880
+ }
20809
20881
  queryParams[Param.DataPanelV2Enabled] = dataPanelV2;
20810
20882
  queryParams[Param.DataSourceMode] = this.getDataSourceMode();
20811
20883
  queryParams[Param.UseLastSelectedDataSource] = useLastSelectedSources;