@thoughtspot/visual-embed-sdk 1.36.8 → 1.36.9-primary-actions

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 (128) hide show
  1. package/cjs/package.json +15 -12
  2. package/cjs/src/embed/bodyless-conversation.d.ts +16 -0
  3. package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
  4. package/cjs/src/embed/bodyless-conversation.js +1 -1
  5. package/cjs/src/embed/bodyless-conversation.js.map +1 -1
  6. package/cjs/src/embed/search-bar.d.ts +1 -1
  7. package/cjs/src/embed/search.d.ts +1 -1
  8. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  9. package/cjs/src/embed/ts-embed.js +14 -2
  10. package/cjs/src/embed/ts-embed.js.map +1 -1
  11. package/cjs/src/embed/ts-embed.spec.js +111 -0
  12. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  13. package/cjs/src/index.d.ts +2 -2
  14. package/cjs/src/index.d.ts.map +1 -1
  15. package/cjs/src/index.js +2 -1
  16. package/cjs/src/index.js.map +1 -1
  17. package/cjs/src/pages/embed-test.page.d.ts +8 -0
  18. package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
  19. package/cjs/src/pages/embed-test.page.js +20 -0
  20. package/cjs/src/pages/embed-test.page.js.map +1 -0
  21. package/cjs/src/pages/home.page.d.ts +6 -0
  22. package/cjs/src/pages/home.page.d.ts.map +1 -0
  23. package/cjs/src/pages/home.page.js +12 -0
  24. package/cjs/src/pages/home.page.js.map +1 -0
  25. package/cjs/src/pages/login.page.d.ts +15 -0
  26. package/cjs/src/pages/login.page.d.ts.map +1 -0
  27. package/cjs/src/pages/login.page.js +22 -0
  28. package/cjs/src/pages/login.page.js.map +1 -0
  29. package/cjs/src/react/index.d.ts +1 -1
  30. package/cjs/src/react/index.d.ts.map +1 -1
  31. package/cjs/src/react/index.js +2 -1
  32. package/cjs/src/react/index.js.map +1 -1
  33. package/cjs/src/tests/auth.test.d.ts +1 -0
  34. package/cjs/src/tests/auth.test.d.ts.map +1 -0
  35. package/cjs/src/tests/auth.test.js +1 -0
  36. package/cjs/src/tests/auth.test.js.map +1 -0
  37. package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
  38. package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
  39. package/cjs/src/tests/e2e/auth.spec.js +54 -0
  40. package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
  41. package/cjs/src/types.d.ts +82 -10
  42. package/cjs/src/types.d.ts.map +1 -1
  43. package/cjs/src/types.js +45 -9
  44. package/cjs/src/types.js.map +1 -1
  45. package/dist/{index-BnVGyY5S.js → index-BJx3m5_V.js} +1 -1
  46. package/dist/index-Do_T8J8z.js +7370 -0
  47. package/dist/src/embed/bodyless-conversation.d.ts +16 -0
  48. package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
  49. package/dist/src/embed/search-bar.d.ts +1 -1
  50. package/dist/src/embed/search.d.ts +1 -1
  51. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  52. package/dist/src/index.d.ts +2 -2
  53. package/dist/src/index.d.ts.map +1 -1
  54. package/dist/src/pages/embed-test.page.d.ts +8 -0
  55. package/dist/src/pages/embed-test.page.d.ts.map +1 -0
  56. package/dist/src/pages/home.page.d.ts +6 -0
  57. package/dist/src/pages/home.page.d.ts.map +1 -0
  58. package/dist/src/pages/login.page.d.ts +15 -0
  59. package/dist/src/pages/login.page.d.ts.map +1 -0
  60. package/dist/src/react/index.d.ts +1 -1
  61. package/dist/src/react/index.d.ts.map +1 -1
  62. package/dist/src/tests/auth.test.d.ts +1 -0
  63. package/dist/src/tests/auth.test.d.ts.map +1 -0
  64. package/dist/src/tests/e2e/auth.spec.d.ts +2 -0
  65. package/dist/src/tests/e2e/auth.spec.d.ts.map +1 -0
  66. package/dist/src/types.d.ts +82 -10
  67. package/dist/src/types.d.ts.map +1 -1
  68. package/dist/tsembed-react.es.js +62 -14
  69. package/dist/tsembed-react.js +60 -12
  70. package/dist/tsembed.es.js +63 -15
  71. package/dist/tsembed.js +61 -13
  72. package/dist/visual-embed-sdk-react-full.d.ts +100 -13
  73. package/dist/visual-embed-sdk-react.d.ts +100 -13
  74. package/dist/visual-embed-sdk.d.ts +100 -13
  75. package/lib/package.json +15 -12
  76. package/lib/src/embed/bodyless-conversation.d.ts +16 -0
  77. package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
  78. package/lib/src/embed/bodyless-conversation.js +1 -1
  79. package/lib/src/embed/bodyless-conversation.js.map +1 -1
  80. package/lib/src/embed/search-bar.d.ts +1 -1
  81. package/lib/src/embed/search.d.ts +1 -1
  82. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  83. package/lib/src/embed/ts-embed.js +14 -2
  84. package/lib/src/embed/ts-embed.js.map +1 -1
  85. package/lib/src/embed/ts-embed.spec.js +111 -0
  86. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  87. package/lib/src/index.d.ts +2 -2
  88. package/lib/src/index.d.ts.map +1 -1
  89. package/lib/src/index.js +2 -2
  90. package/lib/src/index.js.map +1 -1
  91. package/lib/src/pages/embed-test.page.d.ts +8 -0
  92. package/lib/src/pages/embed-test.page.d.ts.map +1 -0
  93. package/lib/src/pages/embed-test.page.js +16 -0
  94. package/lib/src/pages/embed-test.page.js.map +1 -0
  95. package/lib/src/pages/home.page.d.ts +6 -0
  96. package/lib/src/pages/home.page.d.ts.map +1 -0
  97. package/lib/src/pages/home.page.js +8 -0
  98. package/lib/src/pages/home.page.js.map +1 -0
  99. package/lib/src/pages/login.page.d.ts +15 -0
  100. package/lib/src/pages/login.page.d.ts.map +1 -0
  101. package/lib/src/pages/login.page.js +18 -0
  102. package/lib/src/pages/login.page.js.map +1 -0
  103. package/lib/src/react/index.d.ts +1 -1
  104. package/lib/src/react/index.d.ts.map +1 -1
  105. package/lib/src/react/index.js +1 -1
  106. package/lib/src/react/index.js.map +1 -1
  107. package/lib/src/tests/auth.test.d.ts +1 -0
  108. package/lib/src/tests/auth.test.d.ts.map +1 -0
  109. package/lib/src/tests/auth.test.js +1 -0
  110. package/lib/src/tests/auth.test.js.map +1 -0
  111. package/lib/src/tests/e2e/auth.spec.d.ts +2 -0
  112. package/lib/src/tests/e2e/auth.spec.d.ts.map +1 -0
  113. package/lib/src/tests/e2e/auth.spec.js +52 -0
  114. package/lib/src/tests/e2e/auth.spec.js.map +1 -0
  115. package/lib/src/types.d.ts +82 -10
  116. package/lib/src/types.d.ts.map +1 -1
  117. package/lib/src/types.js +44 -8
  118. package/lib/src/types.js.map +1 -1
  119. package/lib/src/visual-embed-sdk.d.ts +102 -14
  120. package/package.json +15 -12
  121. package/src/embed/bodyless-conversation.ts +1 -1
  122. package/src/embed/search-bar.tsx +1 -1
  123. package/src/embed/search.ts +1 -1
  124. package/src/embed/ts-embed.spec.ts +118 -0
  125. package/src/embed/ts-embed.ts +15 -0
  126. package/src/index.ts +2 -0
  127. package/src/react/index.tsx +1 -0
  128. package/src/types.ts +84 -10
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.36.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.36.9-primary-actions */
2
2
  function _mergeNamespaces(n, m) {
3
3
  m.forEach(function (e) {
4
4
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
@@ -677,6 +677,35 @@ var HomepageModule;
677
677
  */
678
678
  HomepageModule["Learning"] = "LEARNING";
679
679
  })(HomepageModule || (HomepageModule = {}));
680
+ /**
681
+ * List page columns that can be hidden.
682
+ * **Note**: This option is applicable only in full app embedding.
683
+ * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
684
+ */
685
+ // eslint-disable-next-line no-shadow
686
+ var ListPageColumns;
687
+ (function (ListPageColumns) {
688
+ /**
689
+ * Favourite
690
+ */
691
+ ListPageColumns["Favourite"] = "FAVOURITE";
692
+ /**
693
+ * Tags
694
+ */
695
+ ListPageColumns["Tags"] = "TAGS";
696
+ /**
697
+ * Author
698
+ */
699
+ ListPageColumns["Author"] = "AUTHOR";
700
+ /**
701
+ * Last viewed/Last modified
702
+ */
703
+ ListPageColumns["DateSort"] = "DATE_SORT";
704
+ /**
705
+ * Share
706
+ */
707
+ ListPageColumns["Share"] = "SHARE";
708
+ })(ListPageColumns || (ListPageColumns = {}));
680
709
  /**
681
710
  * Event types emitted by the embedded ThoughtSpot application.
682
711
  *
@@ -1667,16 +1696,19 @@ var EmbedEvent;
1667
1696
  /**
1668
1697
  * Emits when a table visualization is rendered in
1669
1698
  * the ThoughtSpot embedded app.
1699
+ *
1670
1700
  * You can also use this event as a hook to trigger host events
1671
1701
  * such as `HostEvent.TransformTableVizData` on the table visualization.
1672
1702
  * The event payload contains the data used in the rendered table.
1673
1703
  * You can extract the relevant data from the payload
1674
1704
  * stored in `payload.data.data.columnDataLite`.
1705
+ *
1675
1706
  * `columnDataLite` is a multidimensional array that contains
1676
1707
  * data values for each column, which was used in the query to
1677
1708
  * generate the table visualization. To find and modify specific cell data,
1678
1709
  * you can either loop through the array or directly access a cell if
1679
1710
  * you know its position and data index.
1711
+ *
1680
1712
  * In the following code sample, the first cell in the first column
1681
1713
  * (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
1682
1714
  * Note that any changes made to the data in the payload will only update the
@@ -1686,6 +1718,7 @@ var EmbedEvent;
1686
1718
  * payload in the `columnDataLite` is passed on to
1687
1719
  * `HostEvent.TransformTableVizData` and trigger an update to
1688
1720
  * the table visualization.
1721
+ *
1689
1722
  * If the Row-Level Security (RLS) rules are applied on the
1690
1723
  * Worksheet or Model, exercise caution when changing column
1691
1724
  * or table cell values to maintain data security.
@@ -1700,7 +1733,7 @@ var EmbedEvent;
1700
1733
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1701
1734
  * })
1702
1735
  * ```
1703
- * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
1736
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
1704
1737
  */
1705
1738
  EmbedEvent["TableVizRendered"] = "TableVizRendered";
1706
1739
  /**
@@ -1713,7 +1746,7 @@ var EmbedEvent;
1713
1746
  * console.log('payload', payload);
1714
1747
  * })
1715
1748
  *```
1716
- * @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
1749
+ * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1717
1750
  */
1718
1751
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1719
1752
  /**
@@ -2162,7 +2195,7 @@ var HostEvent;
2162
2195
  * ```js
2163
2196
  * liveboardEmbed.trigger(HostEvent.Remove)
2164
2197
  * ```
2165
- * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2198
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2166
2199
  */
2167
2200
  HostEvent["Remove"] = "delete";
2168
2201
  /**
@@ -2710,7 +2743,7 @@ var HostEvent;
2710
2743
  * ```js
2711
2744
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
2712
2745
  *```
2713
- * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2746
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2714
2747
  */
2715
2748
  HostEvent["InfoSuccess"] = "InfoSuccess";
2716
2749
  /**
@@ -2757,7 +2790,7 @@ var HostEvent;
2757
2790
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2758
2791
  * })
2759
2792
  * ```
2760
- * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
2793
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2761
2794
  */
2762
2795
  HostEvent["TransformTableVizData"] = "TransformTableVizData";
2763
2796
  })(HostEvent || (HostEvent = {}));
@@ -2812,6 +2845,7 @@ var Param;
2812
2845
  Param["livedBoardEmbed"] = "isLiveboardEmbed";
2813
2846
  Param["searchEmbed"] = "isSearchEmbed";
2814
2847
  Param["vizEmbed"] = "isVizEmbed";
2848
+ Param["StringIDsUrl"] = "overrideStringIDsUrl";
2815
2849
  Param["Version"] = "sdkVersion";
2816
2850
  Param["ViewPortHeight"] = "viewPortHeight";
2817
2851
  Param["ViewPortWidth"] = "viewPortWidth";
@@ -2867,6 +2901,7 @@ var Param;
2867
2901
  Param["HideSageAnswerHeader"] = "hideSageAnswerHeader";
2868
2902
  Param["HideSearchBar"] = "hideSearchBar";
2869
2903
  Param["ClientLogLevel"] = "clientLogLevel";
2904
+ Param["ExposeTranslationIDs"] = "exposeTranslationIDs";
2870
2905
  Param["OverrideNativeConsole"] = "overrideConsoleLogs";
2871
2906
  Param["enableAskSage"] = "enableAskSage";
2872
2907
  Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
@@ -2894,6 +2929,7 @@ var Param;
2894
2929
  Param["preAuthCache"] = "preAuthCache";
2895
2930
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2896
2931
  Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
2932
+ Param["PrimaryActions"] = "primaryActions";
2897
2933
  })(Param || (Param = {}));
2898
2934
  /**
2899
2935
  * ThoughtSpot application pages include actions and menu commands
@@ -3060,7 +3096,7 @@ var Action;
3060
3096
  * The **Collapse data panel** icon on the Search page.
3061
3097
  * Collapses the data panel view.
3062
3098
  *
3063
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl, 10.7.0.sw
3099
+ * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3064
3100
  *
3065
3101
  * @example
3066
3102
  * ```js
@@ -4124,8 +4160,8 @@ var PrefetchFeatures;
4124
4160
  PrefetchFeatures["VizEmbed"] = "VizEmbed";
4125
4161
  })(PrefetchFeatures || (PrefetchFeatures = {}));
4126
4162
  /**
4127
- * Enum for options to change context trigger
4128
- * BOTH_CLICKS option is introduced in 10.7
4163
+ * Enum for options to change context trigger.
4164
+ * The `BOTH_CLICKS` option is available from 10.8.0.cl.
4129
4165
  */
4130
4166
  var ContextMenuTriggerOptions;
4131
4167
  (function (ContextMenuTriggerOptions) {
@@ -7405,7 +7441,7 @@ class AnswerService {
7405
7441
  async getTML() {
7406
7442
  const { object } = await this.executeQuery(getAnswerTML, {});
7407
7443
  const edoc = object[0].edoc;
7408
- const YAML = await import('./index-BnVGyY5S.js');
7444
+ const YAML = await import('./index-Do_T8J8z.js');
7409
7445
  const parsedDoc = YAML.parse(edoc);
7410
7446
  return {
7411
7447
  answer: {
@@ -15261,7 +15297,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
15261
15297
  return e;
15262
15298
  }
15263
15299
 
15264
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15300
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9-primary-actions";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15265
15301
 
15266
15302
  /**
15267
15303
  * Reloads the ThoughtSpot iframe.
@@ -15735,6 +15771,7 @@ class TsEmbed {
15735
15771
  ? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems
15736
15772
  : [],
15737
15773
  customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
15774
+ hiddenListColumns: this.viewConfig.hiddenListColumns || [],
15738
15775
  };
15739
15776
  }
15740
15777
  async getAppInitData() {
@@ -15760,7 +15797,7 @@ class TsEmbed {
15760
15797
  * @returns queryParams
15761
15798
  */
15762
15799
  getBaseQueryParams(queryParams = {}) {
15763
- var _a, _b;
15800
+ var _a, _b, _c, _d;
15764
15801
  let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
15765
15802
  // The below check is needed because TS Cloud firewall, blocks
15766
15803
  // localhost/127.0.0.1 in any url param.
@@ -15797,7 +15834,7 @@ class TsEmbed {
15797
15834
  if (this.embedConfig.currencyFormat) {
15798
15835
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15799
15836
  }
15800
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15837
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryActions, } = this.viewConfig;
15801
15838
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15802
15839
  const additionalFlags = {
15803
15840
  ...additionalFlagsFromInit,
@@ -15814,9 +15851,15 @@ class TsEmbed {
15814
15851
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
15815
15852
  queryParams[Param.DisableActions] = disabledActions;
15816
15853
  }
15854
+ if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
15855
+ queryParams[Param.PrimaryActions] = primaryActions;
15856
+ }
15817
15857
  if (disabledActionReason) {
15818
15858
  queryParams[Param.DisableActionReason] = disabledActionReason;
15819
15859
  }
15860
+ if (exposeTranslationIDs) {
15861
+ queryParams[Param.ExposeTranslationIDs] = exposeTranslationIDs;
15862
+ }
15820
15863
  queryParams[Param.HideActions] = [...this.defaultHiddenActions, ...(hiddenActions !== null && hiddenActions !== void 0 ? hiddenActions : [])];
15821
15864
  if (Array.isArray(visibleActions)) {
15822
15865
  queryParams[Param.VisibleActions] = visibleActions;
@@ -15846,6 +15889,11 @@ class TsEmbed {
15846
15889
  if (spriteUrl) {
15847
15890
  queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
15848
15891
  }
15892
+ const stringIDsUrl = ((_c = customizations === null || customizations === void 0 ? void 0 : customizations.content) === null || _c === void 0 ? void 0 : _c.stringIDsUrl)
15893
+ || ((_d = embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.content) === null || _d === void 0 ? void 0 : _d.stringIDsUrl);
15894
+ if (stringIDsUrl) {
15895
+ queryParams[Param.StringIDsUrl] = stringIDsUrl;
15896
+ }
15849
15897
  if (showAlerts !== undefined) {
15850
15898
  queryParams[Param.ShowAlerts] = showAlerts;
15851
15899
  }
@@ -17908,7 +17956,7 @@ class BodylessConversation {
17908
17956
  acGenNo: data.stateKey.generationNumber,
17909
17957
  });
17910
17958
  await embed.render();
17911
- return { container };
17959
+ return { container, viz: embed };
17912
17960
  }
17913
17961
  }
17914
17962
 
@@ -18581,4 +18629,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
18581
18629
  return result;
18582
18630
  };
18583
18631
 
18584
- export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePageSearchBarMode, HomepageModule, HostEvent, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
18632
+ export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePageSearchBarMode, HomepageModule, HostEvent, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
package/dist/tsembed.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @thoughtspot/visual-embed-sdk version 1.36.8 */
1
+ /* @thoughtspot/visual-embed-sdk version 1.36.9-primary-actions */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -683,6 +683,35 @@
683
683
  */
684
684
  HomepageModule["Learning"] = "LEARNING";
685
685
  })(exports.HomepageModule || (exports.HomepageModule = {}));
686
+ /**
687
+ * List page columns that can be hidden.
688
+ * **Note**: This option is applicable only in full app embedding.
689
+ * @version SDK: 1.38.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
690
+ */
691
+ // eslint-disable-next-line no-shadow
692
+ exports.ListPageColumns = void 0;
693
+ (function (ListPageColumns) {
694
+ /**
695
+ * Favourite
696
+ */
697
+ ListPageColumns["Favourite"] = "FAVOURITE";
698
+ /**
699
+ * Tags
700
+ */
701
+ ListPageColumns["Tags"] = "TAGS";
702
+ /**
703
+ * Author
704
+ */
705
+ ListPageColumns["Author"] = "AUTHOR";
706
+ /**
707
+ * Last viewed/Last modified
708
+ */
709
+ ListPageColumns["DateSort"] = "DATE_SORT";
710
+ /**
711
+ * Share
712
+ */
713
+ ListPageColumns["Share"] = "SHARE";
714
+ })(exports.ListPageColumns || (exports.ListPageColumns = {}));
686
715
  /**
687
716
  * Event types emitted by the embedded ThoughtSpot application.
688
717
  *
@@ -1673,16 +1702,19 @@
1673
1702
  /**
1674
1703
  * Emits when a table visualization is rendered in
1675
1704
  * the ThoughtSpot embedded app.
1705
+ *
1676
1706
  * You can also use this event as a hook to trigger host events
1677
1707
  * such as `HostEvent.TransformTableVizData` on the table visualization.
1678
1708
  * The event payload contains the data used in the rendered table.
1679
1709
  * You can extract the relevant data from the payload
1680
1710
  * stored in `payload.data.data.columnDataLite`.
1711
+ *
1681
1712
  * `columnDataLite` is a multidimensional array that contains
1682
1713
  * data values for each column, which was used in the query to
1683
1714
  * generate the table visualization. To find and modify specific cell data,
1684
1715
  * you can either loop through the array or directly access a cell if
1685
1716
  * you know its position and data index.
1717
+ *
1686
1718
  * In the following code sample, the first cell in the first column
1687
1719
  * (`columnDataLite[0].dataValue[0]`) is set to `new fob`.
1688
1720
  * Note that any changes made to the data in the payload will only update the
@@ -1692,6 +1724,7 @@
1692
1724
  * payload in the `columnDataLite` is passed on to
1693
1725
  * `HostEvent.TransformTableVizData` and trigger an update to
1694
1726
  * the table visualization.
1727
+ *
1695
1728
  * If the Row-Level Security (RLS) rules are applied on the
1696
1729
  * Worksheet or Model, exercise caution when changing column
1697
1730
  * or table cell values to maintain data security.
@@ -1706,7 +1739,7 @@
1706
1739
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
1707
1740
  * })
1708
1741
  * ```
1709
- * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
1742
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
1710
1743
  */
1711
1744
  EmbedEvent["TableVizRendered"] = "TableVizRendered";
1712
1745
  /**
@@ -1719,7 +1752,7 @@
1719
1752
  * console.log('payload', payload);
1720
1753
  * })
1721
1754
  *```
1722
- * @version SDK : 1.36.0 | ThoughtSpot : 10.8.0.cl
1755
+ * @version SDK : 1.38.0 | ThoughtSpot : 10.8.0.cl
1723
1756
  */
1724
1757
  EmbedEvent["CreateLiveboard"] = "createLiveboard";
1725
1758
  /**
@@ -2168,7 +2201,7 @@
2168
2201
  * ```js
2169
2202
  * liveboardEmbed.trigger(HostEvent.Remove)
2170
2203
  * ```
2171
- * @version SDK: 1.37.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2204
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl, 10.10.0.sw
2172
2205
  */
2173
2206
  HostEvent["Remove"] = "delete";
2174
2207
  /**
@@ -2716,7 +2749,7 @@
2716
2749
  * ```js
2717
2750
  * liveboardEmbed.trigger(HostEvent.InfoSuccess, data);
2718
2751
  *```
2719
- * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2752
+ * @version SDK: 1.36.0 | ThoughtSpot: 10.6.0.cl
2720
2753
  */
2721
2754
  HostEvent["InfoSuccess"] = "InfoSuccess";
2722
2755
  /**
@@ -2763,7 +2796,7 @@
2763
2796
  * searchEmbed.trigger(HostEvent.TransformTableVizData, columnDataLite);
2764
2797
  * })
2765
2798
  * ```
2766
- * @version SDK: 1.35.12 | ThoughtSpot: 10.7.0.cl
2799
+ * @version SDK: 1.38.0 | ThoughtSpot: 10.8.0.cl
2767
2800
  */
2768
2801
  HostEvent["TransformTableVizData"] = "TransformTableVizData";
2769
2802
  })(exports.HostEvent || (exports.HostEvent = {}));
@@ -2818,6 +2851,7 @@
2818
2851
  Param["livedBoardEmbed"] = "isLiveboardEmbed";
2819
2852
  Param["searchEmbed"] = "isSearchEmbed";
2820
2853
  Param["vizEmbed"] = "isVizEmbed";
2854
+ Param["StringIDsUrl"] = "overrideStringIDsUrl";
2821
2855
  Param["Version"] = "sdkVersion";
2822
2856
  Param["ViewPortHeight"] = "viewPortHeight";
2823
2857
  Param["ViewPortWidth"] = "viewPortWidth";
@@ -2873,6 +2907,7 @@
2873
2907
  Param["HideSageAnswerHeader"] = "hideSageAnswerHeader";
2874
2908
  Param["HideSearchBar"] = "hideSearchBar";
2875
2909
  Param["ClientLogLevel"] = "clientLogLevel";
2910
+ Param["ExposeTranslationIDs"] = "exposeTranslationIDs";
2876
2911
  Param["OverrideNativeConsole"] = "overrideConsoleLogs";
2877
2912
  Param["enableAskSage"] = "enableAskSage";
2878
2913
  Param["CollapseSearchBarInitially"] = "collapseSearchBarInitially";
@@ -2900,6 +2935,7 @@
2900
2935
  Param["preAuthCache"] = "preAuthCache";
2901
2936
  Param["ShowSpotterLimitations"] = "showSpotterLimitations";
2902
2937
  Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
2938
+ Param["PrimaryActions"] = "primaryActions";
2903
2939
  })(Param || (Param = {}));
2904
2940
  /**
2905
2941
  * ThoughtSpot application pages include actions and menu commands
@@ -3066,7 +3102,7 @@
3066
3102
  * The **Collapse data panel** icon on the Search page.
3067
3103
  * Collapses the data panel view.
3068
3104
  *
3069
- * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl, 10.7.0.sw
3105
+ * @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
3070
3106
  *
3071
3107
  * @example
3072
3108
  * ```js
@@ -4130,8 +4166,8 @@
4130
4166
  PrefetchFeatures["VizEmbed"] = "VizEmbed";
4131
4167
  })(exports.PrefetchFeatures || (exports.PrefetchFeatures = {}));
4132
4168
  /**
4133
- * Enum for options to change context trigger
4134
- * BOTH_CLICKS option is introduced in 10.7
4169
+ * Enum for options to change context trigger.
4170
+ * The `BOTH_CLICKS` option is available from 10.8.0.cl.
4135
4171
  */
4136
4172
  exports.ContextMenuTriggerOptions = void 0;
4137
4173
  (function (ContextMenuTriggerOptions) {
@@ -15267,7 +15303,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15267
15303
  return e;
15268
15304
  }
15269
15305
 
15270
- var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.8";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.0","fs-extra":"^10.0.0","gh-pages":"6.3.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15306
+ var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.9-primary-actions";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^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":"^1.1.1",jest:"^26.6.3","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":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","typescript-eslint":"^8.29.1","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
15271
15307
 
15272
15308
  /**
15273
15309
  * Reloads the ThoughtSpot iframe.
@@ -15741,6 +15777,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15741
15777
  ? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems
15742
15778
  : [],
15743
15779
  customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
15780
+ hiddenListColumns: this.viewConfig.hiddenListColumns || [],
15744
15781
  };
15745
15782
  }
15746
15783
  async getAppInitData() {
@@ -15766,7 +15803,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15766
15803
  * @returns queryParams
15767
15804
  */
15768
15805
  getBaseQueryParams(queryParams = {}) {
15769
- var _a, _b;
15806
+ var _a, _b, _c, _d;
15770
15807
  let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
15771
15808
  // The below check is needed because TS Cloud firewall, blocks
15772
15809
  // localhost/127.0.0.1 in any url param.
@@ -15803,7 +15840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15803
15840
  if (this.embedConfig.currencyFormat) {
15804
15841
  queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
15805
15842
  }
15806
- const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, } = this.viewConfig;
15843
+ const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryActions, } = this.viewConfig;
15807
15844
  const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
15808
15845
  const additionalFlags = {
15809
15846
  ...additionalFlagsFromInit,
@@ -15820,9 +15857,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15820
15857
  if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
15821
15858
  queryParams[Param.DisableActions] = disabledActions;
15822
15859
  }
15860
+ if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
15861
+ queryParams[Param.PrimaryActions] = primaryActions;
15862
+ }
15823
15863
  if (disabledActionReason) {
15824
15864
  queryParams[Param.DisableActionReason] = disabledActionReason;
15825
15865
  }
15866
+ if (exposeTranslationIDs) {
15867
+ queryParams[Param.ExposeTranslationIDs] = exposeTranslationIDs;
15868
+ }
15826
15869
  queryParams[Param.HideActions] = [...this.defaultHiddenActions, ...(hiddenActions !== null && hiddenActions !== void 0 ? hiddenActions : [])];
15827
15870
  if (Array.isArray(visibleActions)) {
15828
15871
  queryParams[Param.VisibleActions] = visibleActions;
@@ -15852,6 +15895,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
15852
15895
  if (spriteUrl) {
15853
15896
  queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
15854
15897
  }
15898
+ const stringIDsUrl = ((_c = customizations === null || customizations === void 0 ? void 0 : customizations.content) === null || _c === void 0 ? void 0 : _c.stringIDsUrl)
15899
+ || ((_d = embedCustomizations === null || embedCustomizations === void 0 ? void 0 : embedCustomizations.content) === null || _d === void 0 ? void 0 : _d.stringIDsUrl);
15900
+ if (stringIDsUrl) {
15901
+ queryParams[Param.StringIDsUrl] = stringIDsUrl;
15902
+ }
15855
15903
  if (showAlerts !== undefined) {
15856
15904
  queryParams[Param.ShowAlerts] = showAlerts;
15857
15905
  }
@@ -17914,7 +17962,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
17914
17962
  acGenNo: data.stateKey.generationNumber,
17915
17963
  });
17916
17964
  await embed.render();
17917
- return { container };
17965
+ return { container, viz: embed };
17918
17966
  }
17919
17967
  }
17920
17968