@thoughtspot/visual-embed-sdk 1.36.7 → 1.36.9-PA
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 +23 -21
- 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 +10 -5
- 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 +93 -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-BEyovSez.js +7370 -0
- package/dist/{index-BratITNz.js → index-BJx3m5_V.js} +1 -1
- package/dist/index-CpzF_6NO.js +7440 -0
- package/dist/index-Dg18PU5Z.js +7370 -0
- package/dist/index-Do_T8J8z.js +7370 -0
- package/dist/index-KdQfn0ah.js +7440 -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 +93 -11
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +85 -19
- package/dist/tsembed-react.js +269 -133
- package/dist/tsembed.es.js +78 -16
- package/dist/tsembed.js +261 -129
- package/dist/visual-embed-sdk-react-full.d.ts +127 -14
- package/dist/visual-embed-sdk-react.d.ts +127 -14
- package/dist/visual-embed-sdk.d.ts +126 -14
- package/lib/package.json +23 -21
- 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 +9 -5
- 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 +93 -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 +128 -15
- package/package.json +23 -21
- 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 +12 -8
- package/src/react/util.ts +1 -0
- package/src/types.ts +94 -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-PA */
|
|
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["PrimaryAction"] = "primaryAction";
|
|
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-KdQfn0ah.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-PA";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 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:"^18.3.1","react-dom":"^18.3.1"};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:"^18.3.1","react-dom":"^18.3.1","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","@types/react":"^18.2.37","@types/react-dom":"^18.2.15"};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, primaryAction, } = this.viewConfig;
|
|
15790
15838
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
15791
15839
|
const additionalFlags = {
|
|
15792
15840
|
...additionalFlagsFromInit,
|
|
@@ -15800,12 +15848,18 @@ class TsEmbed {
|
|
|
15800
15848
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
15801
15849
|
return queryParams;
|
|
15802
15850
|
}
|
|
15851
|
+
if (primaryAction) {
|
|
15852
|
+
queryParams[Param.PrimaryAction] = primaryAction;
|
|
15853
|
+
}
|
|
15803
15854
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
15804
15855
|
queryParams[Param.DisableActions] = disabledActions;
|
|
15805
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 };
|