@thoughtspot/visual-embed-sdk 1.32.4-dc.15 → 1.32.4-dc.16
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 +1 -1
- package/cjs/src/auth.d.ts +1 -0
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +1 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +9 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +16 -0
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +1 -0
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +1 -0
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +25 -3
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +25 -3
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +1 -0
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +4 -0
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +4 -0
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/dist/src/auth.d.ts +1 -0
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +9 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +1 -0
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +25 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +4 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +49 -4
- package/dist/tsembed-react.js +49 -4
- package/dist/tsembed.es.js +49 -4
- package/dist/tsembed.js +49 -4
- package/dist/visual-embed-sdk-react-full.d.ts +40 -3
- package/dist/visual-embed-sdk-react.d.ts +40 -3
- package/dist/visual-embed-sdk.d.ts +40 -3
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +1 -0
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +1 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +9 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +16 -0
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +1 -0
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +1 -0
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +25 -3
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +25 -3
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +1 -0
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +4 -0
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +4 -0
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +40 -3
- package/package.json +1 -1
- package/src/auth.ts +1 -0
- package/src/embed/liveboard.ts +21 -0
- package/src/tokenizedFetch.ts +1 -0
- package/src/types.ts +25 -3
- package/src/utils/authService/tokenizedAuthService.ts +2 -0
- package/src/utils/processData.ts +1 -0
- package/src/utils/sessionInfoService.ts +4 -0
package/dist/tsembed.es.js
CHANGED
|
@@ -1842,23 +1842,28 @@ var HostEvent;
|
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1844
1844
|
* visualization, or Answer page.
|
|
1845
|
+
*
|
|
1845
1846
|
* @example
|
|
1846
1847
|
* ```js
|
|
1847
1848
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1848
1849
|
* ```
|
|
1850
|
+
*
|
|
1849
1851
|
* @example
|
|
1850
1852
|
* ```js
|
|
1851
1853
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1852
1854
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1853
1855
|
* ```
|
|
1856
|
+
*
|
|
1854
1857
|
* @example
|
|
1855
1858
|
* ```js
|
|
1856
1859
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1857
1860
|
* ```
|
|
1861
|
+
*
|
|
1858
1862
|
* @example
|
|
1859
1863
|
* ```js
|
|
1860
1864
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1861
1865
|
* ```
|
|
1866
|
+
*
|
|
1862
1867
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1863
1868
|
*/
|
|
1864
1869
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -1884,6 +1889,7 @@ var HostEvent;
|
|
|
1884
1889
|
/**
|
|
1885
1890
|
* Trigger the **Create alert** action on a KPI chart
|
|
1886
1891
|
* in a Liveboard or saved Answer.
|
|
1892
|
+
*
|
|
1887
1893
|
* @param - an object with `vizId` as a key
|
|
1888
1894
|
* @example
|
|
1889
1895
|
* ```js
|
|
@@ -1891,6 +1897,7 @@ var HostEvent;
|
|
|
1891
1897
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1892
1898
|
* })
|
|
1893
1899
|
* ```
|
|
1900
|
+
*
|
|
1894
1901
|
* @example
|
|
1895
1902
|
* ```js
|
|
1896
1903
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -1901,6 +1908,7 @@ var HostEvent;
|
|
|
1901
1908
|
/**
|
|
1902
1909
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
1903
1910
|
* in a visualization or saved Answer.
|
|
1911
|
+
*
|
|
1904
1912
|
* @param - an object with `vizId` as a key
|
|
1905
1913
|
* @example
|
|
1906
1914
|
* ```js
|
|
@@ -1908,10 +1916,12 @@ var HostEvent;
|
|
|
1908
1916
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1909
1917
|
* })
|
|
1910
1918
|
* ```
|
|
1919
|
+
*
|
|
1911
1920
|
* @example
|
|
1912
1921
|
* ```js
|
|
1913
1922
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1914
1923
|
* ```
|
|
1924
|
+
*
|
|
1915
1925
|
* @example
|
|
1916
1926
|
* ```js
|
|
1917
1927
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2309,6 +2319,7 @@ var HostEvent;
|
|
|
2309
2319
|
/**
|
|
2310
2320
|
* Get the answer session for a Search or
|
|
2311
2321
|
* Liveboard visualization.
|
|
2322
|
+
*
|
|
2312
2323
|
* @example
|
|
2313
2324
|
* ```js
|
|
2314
2325
|
* const {session} = await embed.trigger(
|
|
@@ -2316,10 +2327,12 @@ var HostEvent;
|
|
|
2316
2327
|
* vizId: '123', // For Liveboard Visualization.
|
|
2317
2328
|
* })
|
|
2318
2329
|
* ```
|
|
2330
|
+
*
|
|
2319
2331
|
* @example
|
|
2320
2332
|
* ```js
|
|
2321
2333
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2322
2334
|
* ```
|
|
2335
|
+
*
|
|
2323
2336
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2324
2337
|
*/
|
|
2325
2338
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -3045,6 +3058,7 @@ var Action;
|
|
|
3045
3058
|
/**
|
|
3046
3059
|
* @deprecated
|
|
3047
3060
|
* Reports errors
|
|
3061
|
+
*
|
|
3048
3062
|
* @example
|
|
3049
3063
|
* ```js
|
|
3050
3064
|
* disabledActions: [Action.ReportError]
|
|
@@ -3274,12 +3288,14 @@ var Action;
|
|
|
3274
3288
|
* ```js
|
|
3275
3289
|
* disabledActions: [Action.RequestVerification]
|
|
3276
3290
|
* ```
|
|
3291
|
+
*
|
|
3277
3292
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3278
3293
|
*/
|
|
3279
3294
|
Action["RequestVerification"] = "requestVerification";
|
|
3280
3295
|
/**
|
|
3281
3296
|
*
|
|
3282
|
-
*Allows users to mark a Liveboard as verified.
|
|
3297
|
+
* Allows users to mark a Liveboard as verified.
|
|
3298
|
+
*
|
|
3283
3299
|
* @example
|
|
3284
3300
|
* ```js
|
|
3285
3301
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3290,6 +3306,7 @@ var Action;
|
|
|
3290
3306
|
/**
|
|
3291
3307
|
* The **Add Tab** action on a Liveboard.
|
|
3292
3308
|
* Allows adding a new tab to a Liveboard view.
|
|
3309
|
+
*
|
|
3293
3310
|
* @example
|
|
3294
3311
|
* ```js
|
|
3295
3312
|
* disabledActions: [Action.AddTab]
|
|
@@ -3299,7 +3316,8 @@ var Action;
|
|
|
3299
3316
|
Action["AddTab"] = "addTab";
|
|
3300
3317
|
/**
|
|
3301
3318
|
*
|
|
3302
|
-
*Initiates contextual change analysis on KPI charts.
|
|
3319
|
+
* Initiates contextual change analysis on KPI charts.
|
|
3320
|
+
*
|
|
3303
3321
|
* @example
|
|
3304
3322
|
* ```js
|
|
3305
3323
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3313,6 +3331,7 @@ var Action;
|
|
|
3313
3331
|
* ```js
|
|
3314
3332
|
* disabledActions: [Action.ShowSageQuery]
|
|
3315
3333
|
* ```
|
|
3334
|
+
*
|
|
3316
3335
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3317
3336
|
*/
|
|
3318
3337
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3327,7 +3346,8 @@ var Action;
|
|
|
3327
3346
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3328
3347
|
/**
|
|
3329
3348
|
*
|
|
3330
|
-
*This action allows users to send feedback on AI-generated Answers.
|
|
3349
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
3350
|
+
*
|
|
3331
3351
|
* @example
|
|
3332
3352
|
* ```js
|
|
3333
3353
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3404,6 +3424,7 @@ var Action;
|
|
|
3404
3424
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3405
3425
|
* disabledActions: [Action.CreateLiveboard]
|
|
3406
3426
|
* ```
|
|
3427
|
+
*
|
|
3407
3428
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3408
3429
|
*/
|
|
3409
3430
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3499,6 +3520,7 @@ var Action;
|
|
|
3499
3520
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3500
3521
|
/**
|
|
3501
3522
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3523
|
+
*
|
|
3502
3524
|
* @example
|
|
3503
3525
|
* ```js
|
|
3504
3526
|
* disabledActions: [Action.ManageTags]
|
|
@@ -6124,6 +6146,7 @@ const setEmbedConfig = (newConfig) => {
|
|
|
6124
6146
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6125
6147
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6126
6148
|
* The interface for this method is the same as Web `Fetch`.
|
|
6149
|
+
*
|
|
6127
6150
|
* @param input
|
|
6128
6151
|
* @param init
|
|
6129
6152
|
* @example
|
|
@@ -20684,6 +20707,7 @@ function tokenizedFailureLoggedFetch(url, options = {}) {
|
|
|
20684
20707
|
}
|
|
20685
20708
|
/**
|
|
20686
20709
|
* Fetches the session info from the ThoughtSpot server.
|
|
20710
|
+
*
|
|
20687
20711
|
* @param thoughtspotHost
|
|
20688
20712
|
* @returns {Promise<any>}
|
|
20689
20713
|
* @example
|
|
@@ -20715,6 +20739,7 @@ async function fetchLogoutService(thoughtSpotHost) {
|
|
|
20715
20739
|
}
|
|
20716
20740
|
/**
|
|
20717
20741
|
* Is active service to check if the user is logged in.
|
|
20742
|
+
*
|
|
20718
20743
|
* @param thoughtSpotHost
|
|
20719
20744
|
* @version SDK: 1.28.4 | ThoughtSpot: *
|
|
20720
20745
|
*/
|
|
@@ -20737,6 +20762,7 @@ let sessionInfo = null;
|
|
|
20737
20762
|
* Returns the session info object and caches it for future use.
|
|
20738
20763
|
* Once fetched the session info object is cached and returned from the cache on
|
|
20739
20764
|
* subsequent calls.
|
|
20765
|
+
*
|
|
20740
20766
|
* @example ```js
|
|
20741
20767
|
* const sessionInfo = await getSessionInfo();
|
|
20742
20768
|
* console.log(sessionInfo);
|
|
@@ -20755,6 +20781,7 @@ async function getSessionInfo() {
|
|
|
20755
20781
|
}
|
|
20756
20782
|
/**
|
|
20757
20783
|
* Processes the session info response and returns the session info object.
|
|
20784
|
+
*
|
|
20758
20785
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
20759
20786
|
* @returns {SessionInfo} The session info object.
|
|
20760
20787
|
* @example ```js
|
|
@@ -20915,6 +20942,7 @@ async function isLoggedIn(thoughtSpotHost) {
|
|
|
20915
20942
|
* Services to be called after the login is successful,
|
|
20916
20943
|
* This should be called after the cookie is set for cookie auth or
|
|
20917
20944
|
* after the token is set for cookieless.
|
|
20945
|
+
*
|
|
20918
20946
|
* @return {Promise<void>}
|
|
20919
20947
|
* @example
|
|
20920
20948
|
* ```js
|
|
@@ -21480,6 +21508,7 @@ function processCustomAction(e, thoughtSpotHost) {
|
|
|
21480
21508
|
}
|
|
21481
21509
|
/**
|
|
21482
21510
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
21511
|
+
*
|
|
21483
21512
|
* @param e
|
|
21484
21513
|
* @returns {any}
|
|
21485
21514
|
*/
|
|
@@ -21620,7 +21649,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
21620
21649
|
});
|
|
21621
21650
|
}
|
|
21622
21651
|
|
|
21623
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21652
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.16";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 dc","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={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.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","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","fs-extra":"^10.0.0","gh-pages":"^3.1.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","node-sass":"^8.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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21624
21653
|
|
|
21625
21654
|
/**
|
|
21626
21655
|
* Copyright (c) 2022
|
|
@@ -23223,6 +23252,22 @@ class LiveboardEmbed extends V1Embed {
|
|
|
23223
23252
|
this.render();
|
|
23224
23253
|
}
|
|
23225
23254
|
}
|
|
23255
|
+
/**
|
|
23256
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
23257
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
23258
|
+
*
|
|
23259
|
+
* @returns url string
|
|
23260
|
+
*/
|
|
23261
|
+
getLiveboardUrl() {
|
|
23262
|
+
let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
|
|
23263
|
+
if (this.viewConfig.activeTabId) {
|
|
23264
|
+
url = `${url}/tab/${this.viewConfig.activeTabId}`;
|
|
23265
|
+
}
|
|
23266
|
+
if (this.viewConfig.vizId) {
|
|
23267
|
+
url = `${url}/${this.viewConfig.vizId}`;
|
|
23268
|
+
}
|
|
23269
|
+
return url;
|
|
23270
|
+
}
|
|
23226
23271
|
}
|
|
23227
23272
|
/**
|
|
23228
23273
|
* @hidden
|
package/dist/tsembed.js
CHANGED
|
@@ -1774,23 +1774,28 @@
|
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1776
1776
|
* visualization, or Answer page.
|
|
1777
|
+
*
|
|
1777
1778
|
* @example
|
|
1778
1779
|
* ```js
|
|
1779
1780
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1780
1781
|
* ```
|
|
1782
|
+
*
|
|
1781
1783
|
* @example
|
|
1782
1784
|
* ```js
|
|
1783
1785
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1784
1786
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1785
1787
|
* ```
|
|
1788
|
+
*
|
|
1786
1789
|
* @example
|
|
1787
1790
|
* ```js
|
|
1788
1791
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1789
1792
|
* ```
|
|
1793
|
+
*
|
|
1790
1794
|
* @example
|
|
1791
1795
|
* ```js
|
|
1792
1796
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1793
1797
|
* ```
|
|
1798
|
+
*
|
|
1794
1799
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1795
1800
|
*/
|
|
1796
1801
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -1816,6 +1821,7 @@
|
|
|
1816
1821
|
/**
|
|
1817
1822
|
* Trigger the **Create alert** action on a KPI chart
|
|
1818
1823
|
* in a Liveboard or saved Answer.
|
|
1824
|
+
*
|
|
1819
1825
|
* @param - an object with `vizId` as a key
|
|
1820
1826
|
* @example
|
|
1821
1827
|
* ```js
|
|
@@ -1823,6 +1829,7 @@
|
|
|
1823
1829
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1824
1830
|
* })
|
|
1825
1831
|
* ```
|
|
1832
|
+
*
|
|
1826
1833
|
* @example
|
|
1827
1834
|
* ```js
|
|
1828
1835
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -1833,6 +1840,7 @@
|
|
|
1833
1840
|
/**
|
|
1834
1841
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
1835
1842
|
* in a visualization or saved Answer.
|
|
1843
|
+
*
|
|
1836
1844
|
* @param - an object with `vizId` as a key
|
|
1837
1845
|
* @example
|
|
1838
1846
|
* ```js
|
|
@@ -1840,10 +1848,12 @@
|
|
|
1840
1848
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1841
1849
|
* })
|
|
1842
1850
|
* ```
|
|
1851
|
+
*
|
|
1843
1852
|
* @example
|
|
1844
1853
|
* ```js
|
|
1845
1854
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1846
1855
|
* ```
|
|
1856
|
+
*
|
|
1847
1857
|
* @example
|
|
1848
1858
|
* ```js
|
|
1849
1859
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2241,6 +2251,7 @@
|
|
|
2241
2251
|
/**
|
|
2242
2252
|
* Get the answer session for a Search or
|
|
2243
2253
|
* Liveboard visualization.
|
|
2254
|
+
*
|
|
2244
2255
|
* @example
|
|
2245
2256
|
* ```js
|
|
2246
2257
|
* const {session} = await embed.trigger(
|
|
@@ -2248,10 +2259,12 @@
|
|
|
2248
2259
|
* vizId: '123', // For Liveboard Visualization.
|
|
2249
2260
|
* })
|
|
2250
2261
|
* ```
|
|
2262
|
+
*
|
|
2251
2263
|
* @example
|
|
2252
2264
|
* ```js
|
|
2253
2265
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2254
2266
|
* ```
|
|
2267
|
+
*
|
|
2255
2268
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2256
2269
|
*/
|
|
2257
2270
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -2943,6 +2956,7 @@
|
|
|
2943
2956
|
/**
|
|
2944
2957
|
* @deprecated
|
|
2945
2958
|
* Reports errors
|
|
2959
|
+
*
|
|
2946
2960
|
* @example
|
|
2947
2961
|
* ```js
|
|
2948
2962
|
* disabledActions: [Action.ReportError]
|
|
@@ -3172,12 +3186,14 @@
|
|
|
3172
3186
|
* ```js
|
|
3173
3187
|
* disabledActions: [Action.RequestVerification]
|
|
3174
3188
|
* ```
|
|
3189
|
+
*
|
|
3175
3190
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3176
3191
|
*/
|
|
3177
3192
|
Action["RequestVerification"] = "requestVerification";
|
|
3178
3193
|
/**
|
|
3179
3194
|
*
|
|
3180
|
-
*Allows users to mark a Liveboard as verified.
|
|
3195
|
+
* Allows users to mark a Liveboard as verified.
|
|
3196
|
+
*
|
|
3181
3197
|
* @example
|
|
3182
3198
|
* ```js
|
|
3183
3199
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3188,6 +3204,7 @@
|
|
|
3188
3204
|
/**
|
|
3189
3205
|
* The **Add Tab** action on a Liveboard.
|
|
3190
3206
|
* Allows adding a new tab to a Liveboard view.
|
|
3207
|
+
*
|
|
3191
3208
|
* @example
|
|
3192
3209
|
* ```js
|
|
3193
3210
|
* disabledActions: [Action.AddTab]
|
|
@@ -3197,7 +3214,8 @@
|
|
|
3197
3214
|
Action["AddTab"] = "addTab";
|
|
3198
3215
|
/**
|
|
3199
3216
|
*
|
|
3200
|
-
*Initiates contextual change analysis on KPI charts.
|
|
3217
|
+
* Initiates contextual change analysis on KPI charts.
|
|
3218
|
+
*
|
|
3201
3219
|
* @example
|
|
3202
3220
|
* ```js
|
|
3203
3221
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3211,6 +3229,7 @@
|
|
|
3211
3229
|
* ```js
|
|
3212
3230
|
* disabledActions: [Action.ShowSageQuery]
|
|
3213
3231
|
* ```
|
|
3232
|
+
*
|
|
3214
3233
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3215
3234
|
*/
|
|
3216
3235
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3225,7 +3244,8 @@
|
|
|
3225
3244
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3226
3245
|
/**
|
|
3227
3246
|
*
|
|
3228
|
-
*This action allows users to send feedback on AI-generated Answers.
|
|
3247
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
3248
|
+
*
|
|
3229
3249
|
* @example
|
|
3230
3250
|
* ```js
|
|
3231
3251
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3302,6 +3322,7 @@
|
|
|
3302
3322
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3303
3323
|
* disabledActions: [Action.CreateLiveboard]
|
|
3304
3324
|
* ```
|
|
3325
|
+
*
|
|
3305
3326
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3306
3327
|
*/
|
|
3307
3328
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3397,6 +3418,7 @@
|
|
|
3397
3418
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3398
3419
|
/**
|
|
3399
3420
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3421
|
+
*
|
|
3400
3422
|
* @example
|
|
3401
3423
|
* ```js
|
|
3402
3424
|
* disabledActions: [Action.ManageTags]
|
|
@@ -6016,6 +6038,7 @@
|
|
|
6016
6038
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6017
6039
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6018
6040
|
* The interface for this method is the same as Web `Fetch`.
|
|
6041
|
+
*
|
|
6019
6042
|
* @param input
|
|
6020
6043
|
* @param init
|
|
6021
6044
|
* @example
|
|
@@ -20576,6 +20599,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20576
20599
|
}
|
|
20577
20600
|
/**
|
|
20578
20601
|
* Fetches the session info from the ThoughtSpot server.
|
|
20602
|
+
*
|
|
20579
20603
|
* @param thoughtspotHost
|
|
20580
20604
|
* @returns {Promise<any>}
|
|
20581
20605
|
* @example
|
|
@@ -20607,6 +20631,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20607
20631
|
}
|
|
20608
20632
|
/**
|
|
20609
20633
|
* Is active service to check if the user is logged in.
|
|
20634
|
+
*
|
|
20610
20635
|
* @param thoughtSpotHost
|
|
20611
20636
|
* @version SDK: 1.28.4 | ThoughtSpot: *
|
|
20612
20637
|
*/
|
|
@@ -20629,6 +20654,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20629
20654
|
* Returns the session info object and caches it for future use.
|
|
20630
20655
|
* Once fetched the session info object is cached and returned from the cache on
|
|
20631
20656
|
* subsequent calls.
|
|
20657
|
+
*
|
|
20632
20658
|
* @example ```js
|
|
20633
20659
|
* const sessionInfo = await getSessionInfo();
|
|
20634
20660
|
* console.log(sessionInfo);
|
|
@@ -20647,6 +20673,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20647
20673
|
}
|
|
20648
20674
|
/**
|
|
20649
20675
|
* Processes the session info response and returns the session info object.
|
|
20676
|
+
*
|
|
20650
20677
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
20651
20678
|
* @returns {SessionInfo} The session info object.
|
|
20652
20679
|
* @example ```js
|
|
@@ -20791,6 +20818,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20791
20818
|
* Services to be called after the login is successful,
|
|
20792
20819
|
* This should be called after the cookie is set for cookie auth or
|
|
20793
20820
|
* after the token is set for cookieless.
|
|
20821
|
+
*
|
|
20794
20822
|
* @return {Promise<void>}
|
|
20795
20823
|
* @example
|
|
20796
20824
|
* ```js
|
|
@@ -21356,6 +21384,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21356
21384
|
}
|
|
21357
21385
|
/**
|
|
21358
21386
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
21387
|
+
*
|
|
21359
21388
|
* @param e
|
|
21360
21389
|
* @returns {any}
|
|
21361
21390
|
*/
|
|
@@ -21496,7 +21525,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21496
21525
|
});
|
|
21497
21526
|
}
|
|
21498
21527
|
|
|
21499
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21528
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.16";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 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 dc","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={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.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","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","fs-extra":"^10.0.0","gh-pages":"^3.1.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","node-sass":"^8.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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21500
21529
|
|
|
21501
21530
|
/**
|
|
21502
21531
|
* Copyright (c) 2022
|
|
@@ -23094,6 +23123,22 @@ query GetEurekaVizSnapshots(
|
|
|
23094
23123
|
this.render();
|
|
23095
23124
|
}
|
|
23096
23125
|
}
|
|
23126
|
+
/**
|
|
23127
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
23128
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
23129
|
+
*
|
|
23130
|
+
* @returns url string
|
|
23131
|
+
*/
|
|
23132
|
+
getLiveboardUrl() {
|
|
23133
|
+
let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
|
|
23134
|
+
if (this.viewConfig.activeTabId) {
|
|
23135
|
+
url = `${url}/tab/${this.viewConfig.activeTabId}`;
|
|
23136
|
+
}
|
|
23137
|
+
if (this.viewConfig.vizId) {
|
|
23138
|
+
url = `${url}/${this.viewConfig.vizId}`;
|
|
23139
|
+
}
|
|
23140
|
+
return url;
|
|
23141
|
+
}
|
|
23097
23142
|
}
|
|
23098
23143
|
/**
|
|
23099
23144
|
* @hidden
|