@thoughtspot/visual-embed-sdk 1.36.7 → 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.
- package/cjs/package.json +15 -15
- package/cjs/src/embed/bodyless-conversation.d.ts +16 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -1
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +15 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +4 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +25 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +1 -1
- package/cjs/src/embed/search.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -2
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +111 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -2
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/pages/embed-test.page.d.ts +8 -0
- package/cjs/src/pages/embed-test.page.d.ts.map +1 -0
- package/cjs/src/pages/embed-test.page.js +20 -0
- package/cjs/src/pages/embed-test.page.js.map +1 -0
- package/cjs/src/pages/home.page.d.ts +6 -0
- package/cjs/src/pages/home.page.d.ts.map +1 -0
- package/cjs/src/pages/home.page.js +12 -0
- package/cjs/src/pages/home.page.js.map +1 -0
- package/cjs/src/pages/login.page.d.ts +15 -0
- package/cjs/src/pages/login.page.d.ts.map +1 -0
- package/cjs/src/pages/login.page.js +22 -0
- package/cjs/src/pages/login.page.js.map +1 -0
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +4 -3
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/util.d.ts +2 -0
- package/cjs/src/react/util.d.ts.map +1 -1
- package/cjs/src/react/util.js.map +1 -1
- package/cjs/src/tests/auth.test.d.ts +1 -0
- package/cjs/src/tests/auth.test.d.ts.map +1 -0
- package/cjs/src/tests/auth.test.js +1 -0
- package/cjs/src/tests/auth.test.js.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts +2 -0
- package/cjs/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/cjs/src/tests/e2e/auth.spec.js +54 -0
- package/cjs/src/tests/e2e/auth.spec.js.map +1 -0
- package/cjs/src/types.d.ts +94 -11
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +56 -9
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BratITNz.js → index-BJx3m5_V.js} +1 -1
- package/dist/index-Do_T8J8z.js +7370 -0
- package/dist/src/embed/bodyless-conversation.d.ts +16 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +15 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +1 -1
- package/dist/src/embed/search.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/pages/embed-test.page.d.ts +8 -0
- package/dist/src/pages/embed-test.page.d.ts.map +1 -0
- package/dist/src/pages/home.page.d.ts +6 -0
- package/dist/src/pages/home.page.d.ts.map +1 -0
- package/dist/src/pages/login.page.d.ts +15 -0
- package/dist/src/pages/login.page.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/util.d.ts +2 -0
- package/dist/src/react/util.d.ts.map +1 -1
- package/dist/src/tests/auth.test.d.ts +1 -0
- package/dist/src/tests/auth.test.d.ts.map +1 -0
- package/dist/src/tests/e2e/auth.spec.d.ts +2 -0
- package/dist/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/dist/src/types.d.ts +94 -11
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +79 -17
- package/dist/tsembed-react.js +77 -15
- package/dist/tsembed.es.js +78 -16
- package/dist/tsembed.js +76 -14
- package/dist/visual-embed-sdk-react-full.d.ts +128 -14
- package/dist/visual-embed-sdk-react.d.ts +128 -14
- package/dist/visual-embed-sdk.d.ts +127 -14
- package/lib/package.json +15 -15
- package/lib/src/embed/bodyless-conversation.d.ts +16 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -1
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +15 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +4 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +25 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +1 -1
- package/lib/src/embed/search.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -2
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +111 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -2
- package/lib/src/index.js.map +1 -1
- package/lib/src/pages/embed-test.page.d.ts +8 -0
- package/lib/src/pages/embed-test.page.d.ts.map +1 -0
- package/lib/src/pages/embed-test.page.js +16 -0
- package/lib/src/pages/embed-test.page.js.map +1 -0
- package/lib/src/pages/home.page.d.ts +6 -0
- package/lib/src/pages/home.page.d.ts.map +1 -0
- package/lib/src/pages/home.page.js +8 -0
- package/lib/src/pages/home.page.js.map +1 -0
- package/lib/src/pages/login.page.d.ts +15 -0
- package/lib/src/pages/login.page.d.ts.map +1 -0
- package/lib/src/pages/login.page.js +18 -0
- package/lib/src/pages/login.page.js.map +1 -0
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +3 -3
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/util.d.ts +2 -0
- package/lib/src/react/util.d.ts.map +1 -1
- package/lib/src/react/util.js.map +1 -1
- package/lib/src/tests/auth.test.d.ts +1 -0
- package/lib/src/tests/auth.test.d.ts.map +1 -0
- package/lib/src/tests/auth.test.js +1 -0
- package/lib/src/tests/auth.test.js.map +1 -0
- package/lib/src/tests/e2e/auth.spec.d.ts +2 -0
- package/lib/src/tests/e2e/auth.spec.d.ts.map +1 -0
- package/lib/src/tests/e2e/auth.spec.js +52 -0
- package/lib/src/tests/e2e/auth.spec.js.map +1 -0
- package/lib/src/types.d.ts +94 -11
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +55 -8
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +129 -15
- package/package.json +15 -15
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/liveboard.spec.ts +35 -7
- package/src/embed/liveboard.ts +21 -1
- package/src/embed/search-bar.tsx +1 -1
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +118 -0
- package/src/embed/ts-embed.ts +15 -0
- package/src/index.ts +2 -0
- package/src/react/index.tsx +4 -3
- package/src/react/util.ts +1 -0
- package/src/types.ts +95 -10
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.36.
|
|
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.
|
|
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.
|
|
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.
|
|
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 |
|
|
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.
|
|
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";
|
|
@@ -2893,6 +2928,8 @@ var Param;
|
|
|
2893
2928
|
Param["DataSourceId"] = "dataSourceId";
|
|
2894
2929
|
Param["preAuthCache"] = "preAuthCache";
|
|
2895
2930
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2931
|
+
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2932
|
+
Param["PrimaryActions"] = "primaryActions";
|
|
2896
2933
|
})(Param || (Param = {}));
|
|
2897
2934
|
/**
|
|
2898
2935
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3059,7 +3096,7 @@ var Action;
|
|
|
3059
3096
|
* The **Collapse data panel** icon on the Search page.
|
|
3060
3097
|
* Collapses the data panel view.
|
|
3061
3098
|
*
|
|
3062
|
-
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
3099
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
3063
3100
|
*
|
|
3064
3101
|
* @example
|
|
3065
3102
|
* ```js
|
|
@@ -4104,6 +4141,16 @@ var Action;
|
|
|
4104
4141
|
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4105
4142
|
*/
|
|
4106
4143
|
Action["ColumnRename"] = "columnRename";
|
|
4144
|
+
/**
|
|
4145
|
+
* Action ID for hide checkboxes for include or exclude
|
|
4146
|
+
* cover and filter pages in the Liveboard PDF
|
|
4147
|
+
* @example
|
|
4148
|
+
* ```js
|
|
4149
|
+
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
4150
|
+
* ```
|
|
4151
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4152
|
+
*/
|
|
4153
|
+
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4107
4154
|
})(Action || (Action = {}));
|
|
4108
4155
|
var PrefetchFeatures;
|
|
4109
4156
|
(function (PrefetchFeatures) {
|
|
@@ -4113,8 +4160,8 @@ var PrefetchFeatures;
|
|
|
4113
4160
|
PrefetchFeatures["VizEmbed"] = "VizEmbed";
|
|
4114
4161
|
})(PrefetchFeatures || (PrefetchFeatures = {}));
|
|
4115
4162
|
/**
|
|
4116
|
-
* Enum for options to change context trigger
|
|
4117
|
-
* BOTH_CLICKS option is
|
|
4163
|
+
* Enum for options to change context trigger.
|
|
4164
|
+
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
4118
4165
|
*/
|
|
4119
4166
|
var ContextMenuTriggerOptions;
|
|
4120
4167
|
(function (ContextMenuTriggerOptions) {
|
|
@@ -7394,7 +7441,7 @@ class AnswerService {
|
|
|
7394
7441
|
async getTML() {
|
|
7395
7442
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
7396
7443
|
const edoc = object[0].edoc;
|
|
7397
|
-
const YAML = await import('./index-
|
|
7444
|
+
const YAML = await import('./index-Do_T8J8z.js');
|
|
7398
7445
|
const parsedDoc = YAML.parse(edoc);
|
|
7399
7446
|
return {
|
|
7400
7447
|
answer: {
|
|
@@ -15250,7 +15297,7 @@ function processEventData(type, e, thoughtSpotHost, containerEl) {
|
|
|
15250
15297
|
return e;
|
|
15251
15298
|
}
|
|
15252
15299
|
|
|
15253
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.
|
|
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};
|
|
15254
15301
|
|
|
15255
15302
|
/**
|
|
15256
15303
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15724,6 +15771,7 @@ class TsEmbed {
|
|
|
15724
15771
|
? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems
|
|
15725
15772
|
: [],
|
|
15726
15773
|
customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
|
|
15774
|
+
hiddenListColumns: this.viewConfig.hiddenListColumns || [],
|
|
15727
15775
|
};
|
|
15728
15776
|
}
|
|
15729
15777
|
async getAppInitData() {
|
|
@@ -15749,7 +15797,7 @@ class TsEmbed {
|
|
|
15749
15797
|
* @returns queryParams
|
|
15750
15798
|
*/
|
|
15751
15799
|
getBaseQueryParams(queryParams = {}) {
|
|
15752
|
-
var _a, _b;
|
|
15800
|
+
var _a, _b, _c, _d;
|
|
15753
15801
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
15754
15802
|
// The below check is needed because TS Cloud firewall, blocks
|
|
15755
15803
|
// localhost/127.0.0.1 in any url param.
|
|
@@ -15786,7 +15834,7 @@ class TsEmbed {
|
|
|
15786
15834
|
if (this.embedConfig.currencyFormat) {
|
|
15787
15835
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15788
15836
|
}
|
|
15789
|
-
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;
|
|
15790
15838
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15791
15839
|
const additionalFlags = {
|
|
15792
15840
|
...additionalFlagsFromInit,
|
|
@@ -15803,9 +15851,15 @@ class TsEmbed {
|
|
|
15803
15851
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15804
15852
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15805
15853
|
}
|
|
15854
|
+
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15855
|
+
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15856
|
+
}
|
|
15806
15857
|
if (disabledActionReason) {
|
|
15807
15858
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15808
15859
|
}
|
|
15860
|
+
if (exposeTranslationIDs) {
|
|
15861
|
+
queryParams[Param.ExposeTranslationIDs] = exposeTranslationIDs;
|
|
15862
|
+
}
|
|
15809
15863
|
queryParams[Param.HideActions] = [...this.defaultHiddenActions, ...(hiddenActions !== null && hiddenActions !== void 0 ? hiddenActions : [])];
|
|
15810
15864
|
if (Array.isArray(visibleActions)) {
|
|
15811
15865
|
queryParams[Param.VisibleActions] = visibleActions;
|
|
@@ -15835,6 +15889,11 @@ class TsEmbed {
|
|
|
15835
15889
|
if (spriteUrl) {
|
|
15836
15890
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
15837
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
|
+
}
|
|
15838
15897
|
if (showAlerts !== undefined) {
|
|
15839
15898
|
queryParams[Param.ShowAlerts] = showAlerts;
|
|
15840
15899
|
}
|
|
@@ -16988,7 +17047,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16988
17047
|
getEmbedParams() {
|
|
16989
17048
|
let params = {};
|
|
16990
17049
|
params = this.getBaseQueryParams(params);
|
|
16991
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
|
|
17050
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF, } = this.viewConfig;
|
|
16992
17051
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16993
17052
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16994
17053
|
if (fullHeight === true) {
|
|
@@ -17040,6 +17099,9 @@ class LiveboardEmbed extends V1Embed {
|
|
|
17040
17099
|
if (dataSourceId !== undefined) {
|
|
17041
17100
|
params[Param.DataSourceId] = dataSourceId;
|
|
17042
17101
|
}
|
|
17102
|
+
if (coverAndFilterOptionInPDF !== undefined) {
|
|
17103
|
+
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
17104
|
+
}
|
|
17043
17105
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
17044
17106
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
17045
17107
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -17894,7 +17956,7 @@ class BodylessConversation {
|
|
|
17894
17956
|
acGenNo: data.stateKey.generationNumber,
|
|
17895
17957
|
});
|
|
17896
17958
|
await embed.render();
|
|
17897
|
-
return { container };
|
|
17959
|
+
return { container, viz: embed };
|
|
17898
17960
|
}
|
|
17899
17961
|
}
|
|
17900
17962
|
|
|
@@ -18567,4 +18629,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
18567
18629
|
return result;
|
|
18568
18630
|
};
|
|
18569
18631
|
|
|
18570
|
-
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 |
|
|
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.
|
|
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";
|
|
@@ -2899,6 +2934,8 @@
|
|
|
2899
2934
|
Param["DataSourceId"] = "dataSourceId";
|
|
2900
2935
|
Param["preAuthCache"] = "preAuthCache";
|
|
2901
2936
|
Param["ShowSpotterLimitations"] = "showSpotterLimitations";
|
|
2937
|
+
Param["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
2938
|
+
Param["PrimaryActions"] = "primaryActions";
|
|
2902
2939
|
})(Param || (Param = {}));
|
|
2903
2940
|
/**
|
|
2904
2941
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3065,7 +3102,7 @@
|
|
|
3065
3102
|
* The **Collapse data panel** icon on the Search page.
|
|
3066
3103
|
* Collapses the data panel view.
|
|
3067
3104
|
*
|
|
3068
|
-
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
3105
|
+
* @version: SDK: 1.34.0 | ThoughtSpot Cloud: 10.3.0.cl
|
|
3069
3106
|
*
|
|
3070
3107
|
* @example
|
|
3071
3108
|
* ```js
|
|
@@ -4110,6 +4147,16 @@
|
|
|
4110
4147
|
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4111
4148
|
*/
|
|
4112
4149
|
Action["ColumnRename"] = "columnRename";
|
|
4150
|
+
/**
|
|
4151
|
+
* Action ID for hide checkboxes for include or exclude
|
|
4152
|
+
* cover and filter pages in the Liveboard PDF
|
|
4153
|
+
* @example
|
|
4154
|
+
* ```js
|
|
4155
|
+
* hiddenAction: [Action.CoverAndFilterOptionInPDF]
|
|
4156
|
+
* ```
|
|
4157
|
+
* @version SDK: 1.38.0 | ThoughtSpot Cloud: 10.8.0.cl
|
|
4158
|
+
*/
|
|
4159
|
+
Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
|
|
4113
4160
|
})(exports.Action || (exports.Action = {}));
|
|
4114
4161
|
exports.PrefetchFeatures = void 0;
|
|
4115
4162
|
(function (PrefetchFeatures) {
|
|
@@ -4119,8 +4166,8 @@
|
|
|
4119
4166
|
PrefetchFeatures["VizEmbed"] = "VizEmbed";
|
|
4120
4167
|
})(exports.PrefetchFeatures || (exports.PrefetchFeatures = {}));
|
|
4121
4168
|
/**
|
|
4122
|
-
* Enum for options to change context trigger
|
|
4123
|
-
* BOTH_CLICKS option is
|
|
4169
|
+
* Enum for options to change context trigger.
|
|
4170
|
+
* The `BOTH_CLICKS` option is available from 10.8.0.cl.
|
|
4124
4171
|
*/
|
|
4125
4172
|
exports.ContextMenuTriggerOptions = void 0;
|
|
4126
4173
|
(function (ContextMenuTriggerOptions) {
|
|
@@ -15256,7 +15303,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15256
15303
|
return e;
|
|
15257
15304
|
}
|
|
15258
15305
|
|
|
15259
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.36.
|
|
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};
|
|
15260
15307
|
|
|
15261
15308
|
/**
|
|
15262
15309
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -15730,6 +15777,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15730
15777
|
? (_b = this.viewConfig) === null || _b === void 0 ? void 0 : _b.hiddenHomeLeftNavItems
|
|
15731
15778
|
: [],
|
|
15732
15779
|
customVariablesForThirdPartyTools: this.embedConfig.customVariablesForThirdPartyTools || {},
|
|
15780
|
+
hiddenListColumns: this.viewConfig.hiddenListColumns || [],
|
|
15733
15781
|
};
|
|
15734
15782
|
}
|
|
15735
15783
|
async getAppInitData() {
|
|
@@ -15755,7 +15803,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15755
15803
|
* @returns queryParams
|
|
15756
15804
|
*/
|
|
15757
15805
|
getBaseQueryParams(queryParams = {}) {
|
|
15758
|
-
var _a, _b;
|
|
15806
|
+
var _a, _b, _c, _d;
|
|
15759
15807
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
15760
15808
|
// The below check is needed because TS Cloud firewall, blocks
|
|
15761
15809
|
// localhost/127.0.0.1 in any url param.
|
|
@@ -15792,7 +15840,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15792
15840
|
if (this.embedConfig.currencyFormat) {
|
|
15793
15841
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
15794
15842
|
}
|
|
15795
|
-
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;
|
|
15796
15844
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15797
15845
|
const additionalFlags = {
|
|
15798
15846
|
...additionalFlagsFromInit,
|
|
@@ -15809,9 +15857,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15809
15857
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15810
15858
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15811
15859
|
}
|
|
15860
|
+
if (primaryActions === null || primaryActions === void 0 ? void 0 : primaryActions.length) {
|
|
15861
|
+
queryParams[Param.PrimaryActions] = primaryActions;
|
|
15862
|
+
}
|
|
15812
15863
|
if (disabledActionReason) {
|
|
15813
15864
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
15814
15865
|
}
|
|
15866
|
+
if (exposeTranslationIDs) {
|
|
15867
|
+
queryParams[Param.ExposeTranslationIDs] = exposeTranslationIDs;
|
|
15868
|
+
}
|
|
15815
15869
|
queryParams[Param.HideActions] = [...this.defaultHiddenActions, ...(hiddenActions !== null && hiddenActions !== void 0 ? hiddenActions : [])];
|
|
15816
15870
|
if (Array.isArray(visibleActions)) {
|
|
15817
15871
|
queryParams[Param.VisibleActions] = visibleActions;
|
|
@@ -15841,6 +15895,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15841
15895
|
if (spriteUrl) {
|
|
15842
15896
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
15843
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
|
+
}
|
|
15844
15903
|
if (showAlerts !== undefined) {
|
|
15845
15904
|
queryParams[Param.ShowAlerts] = showAlerts;
|
|
15846
15905
|
}
|
|
@@ -16994,7 +17053,7 @@ query GetEurekaVizSnapshots(
|
|
|
16994
17053
|
getEmbedParams() {
|
|
16995
17054
|
let params = {};
|
|
16996
17055
|
params = this.getBaseQueryParams(params);
|
|
16997
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, } = this.viewConfig;
|
|
17056
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, oAuthPollingInterval, isForceRedirect, dataSourceId, coverAndFilterOptionInPDF, } = this.viewConfig;
|
|
16998
17057
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16999
17058
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
17000
17059
|
if (fullHeight === true) {
|
|
@@ -17046,6 +17105,9 @@ query GetEurekaVizSnapshots(
|
|
|
17046
17105
|
if (dataSourceId !== undefined) {
|
|
17047
17106
|
params[Param.DataSourceId] = dataSourceId;
|
|
17048
17107
|
}
|
|
17108
|
+
if (coverAndFilterOptionInPDF !== undefined) {
|
|
17109
|
+
params[Param.CoverAndFilterOptionInPDF] = coverAndFilterOptionInPDF;
|
|
17110
|
+
}
|
|
17049
17111
|
params[Param.LiveboardHeaderSticky] = isLiveboardHeaderSticky;
|
|
17050
17112
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
17051
17113
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
@@ -17900,7 +17962,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
17900
17962
|
acGenNo: data.stateKey.generationNumber,
|
|
17901
17963
|
});
|
|
17902
17964
|
await embed.render();
|
|
17903
|
-
return { container };
|
|
17965
|
+
return { container, viz: embed };
|
|
17904
17966
|
}
|
|
17905
17967
|
}
|
|
17906
17968
|
|