@thoughtspot/visual-embed-sdk 1.32.4-dc.14 → 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.
Files changed (90) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/auth.d.ts +1 -0
  3. package/cjs/src/auth.d.ts.map +1 -1
  4. package/cjs/src/auth.js +1 -0
  5. package/cjs/src/auth.js.map +1 -1
  6. package/cjs/src/embed/liveboard.d.ts +9 -0
  7. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  8. package/cjs/src/embed/liveboard.js +16 -0
  9. package/cjs/src/embed/liveboard.js.map +1 -1
  10. package/cjs/src/tokenizedFetch.d.ts +1 -0
  11. package/cjs/src/tokenizedFetch.d.ts.map +1 -1
  12. package/cjs/src/tokenizedFetch.js +1 -0
  13. package/cjs/src/tokenizedFetch.js.map +1 -1
  14. package/cjs/src/types.d.ts +25 -3
  15. package/cjs/src/types.d.ts.map +1 -1
  16. package/cjs/src/types.js +25 -3
  17. package/cjs/src/types.js.map +1 -1
  18. package/cjs/src/utils/authService/tokenizedAuthService.d.ts +2 -0
  19. package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  20. package/cjs/src/utils/authService/tokenizedAuthService.js +2 -0
  21. package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
  22. package/cjs/src/utils/liveboardService/liveboardService.js +2 -1
  23. package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
  24. package/cjs/src/utils/processData.d.ts.map +1 -1
  25. package/cjs/src/utils/processData.js +1 -0
  26. package/cjs/src/utils/processData.js.map +1 -1
  27. package/cjs/src/utils/sessionInfoService.d.ts +4 -0
  28. package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
  29. package/cjs/src/utils/sessionInfoService.js +4 -0
  30. package/cjs/src/utils/sessionInfoService.js.map +1 -1
  31. package/dist/src/auth.d.ts +1 -0
  32. package/dist/src/auth.d.ts.map +1 -1
  33. package/dist/src/embed/liveboard.d.ts +9 -0
  34. package/dist/src/embed/liveboard.d.ts.map +1 -1
  35. package/dist/src/tokenizedFetch.d.ts +1 -0
  36. package/dist/src/tokenizedFetch.d.ts.map +1 -1
  37. package/dist/src/types.d.ts +25 -3
  38. package/dist/src/types.d.ts.map +1 -1
  39. package/dist/src/utils/authService/tokenizedAuthService.d.ts +2 -0
  40. package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  41. package/dist/src/utils/processData.d.ts.map +1 -1
  42. package/dist/src/utils/sessionInfoService.d.ts +4 -0
  43. package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
  44. package/dist/tsembed-react.es.js +49 -4
  45. package/dist/tsembed-react.js +49 -4
  46. package/dist/tsembed.es.js +51 -5
  47. package/dist/tsembed.js +51 -5
  48. package/dist/visual-embed-sdk-react-full.d.ts +40 -3
  49. package/dist/visual-embed-sdk-react.d.ts +40 -3
  50. package/dist/visual-embed-sdk.d.ts +40 -3
  51. package/lib/package.json +1 -1
  52. package/lib/src/auth.d.ts +1 -0
  53. package/lib/src/auth.d.ts.map +1 -1
  54. package/lib/src/auth.js +1 -0
  55. package/lib/src/auth.js.map +1 -1
  56. package/lib/src/embed/liveboard.d.ts +9 -0
  57. package/lib/src/embed/liveboard.d.ts.map +1 -1
  58. package/lib/src/embed/liveboard.js +16 -0
  59. package/lib/src/embed/liveboard.js.map +1 -1
  60. package/lib/src/tokenizedFetch.d.ts +1 -0
  61. package/lib/src/tokenizedFetch.d.ts.map +1 -1
  62. package/lib/src/tokenizedFetch.js +1 -0
  63. package/lib/src/tokenizedFetch.js.map +1 -1
  64. package/lib/src/types.d.ts +25 -3
  65. package/lib/src/types.d.ts.map +1 -1
  66. package/lib/src/types.js +25 -3
  67. package/lib/src/types.js.map +1 -1
  68. package/lib/src/utils/authService/tokenizedAuthService.d.ts +2 -0
  69. package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
  70. package/lib/src/utils/authService/tokenizedAuthService.js +2 -0
  71. package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
  72. package/lib/src/utils/liveboardService/liveboardService.js +2 -1
  73. package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
  74. package/lib/src/utils/processData.d.ts.map +1 -1
  75. package/lib/src/utils/processData.js +1 -0
  76. package/lib/src/utils/processData.js.map +1 -1
  77. package/lib/src/utils/sessionInfoService.d.ts +4 -0
  78. package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
  79. package/lib/src/utils/sessionInfoService.js +4 -0
  80. package/lib/src/utils/sessionInfoService.js.map +1 -1
  81. package/lib/src/visual-embed-sdk.d.ts +40 -3
  82. package/package.json +1 -1
  83. package/src/auth.ts +1 -0
  84. package/src/embed/liveboard.ts +21 -0
  85. package/src/tokenizedFetch.ts +1 -0
  86. package/src/types.ts +25 -3
  87. package/src/utils/authService/tokenizedAuthService.ts +2 -0
  88. package/src/utils/liveboardService/liveboardService.ts +1 -1
  89. package/src/utils/processData.ts +1 -0
  90. package/src/utils/sessionInfoService.ts +4 -0
@@ -13,6 +13,7 @@ export type SessionInfo = {
13
13
  * Returns the session info object and caches it for future use.
14
14
  * Once fetched the session info object is cached and returned from the cache on
15
15
  * subsequent calls.
16
+ *
16
17
  * @example ```js
17
18
  * const sessionInfo = await getSessionInfo();
18
19
  * console.log(sessionInfo);
@@ -24,6 +25,7 @@ export declare function getSessionInfo(): Promise<SessionInfo>;
24
25
  /**
25
26
  * Returns the cached session info object. If the client is not authenticated the
26
27
  * function will return null.
28
+ *
27
29
  * @example ```js
28
30
  * const sessionInfo = getCachedSessionInfo();
29
31
  * if (sessionInfo) {
@@ -38,6 +40,7 @@ export declare function getSessionInfo(): Promise<SessionInfo>;
38
40
  export declare function getCachedSessionInfo(): SessionInfo | null;
39
41
  /**
40
42
  * Processes the session info response and returns the session info object.
43
+ *
41
44
  * @param sessionInfoResp {any} Response from the session info API.
42
45
  * @returns {SessionInfo} The session info object.
43
46
  * @example ```js
@@ -50,6 +53,7 @@ export declare function getCachedSessionInfo(): SessionInfo | null;
50
53
  export declare const getSessionDetails: (sessionInfoResp: any) => SessionInfo;
51
54
  /**
52
55
  * Resets the cached session info object and forces a new fetch on the next call.
56
+ *
53
57
  * @example ```js
54
58
  * resetCachedSessionInfo();
55
59
  * const sessionInfo = await getSessionInfo();
@@ -1 +1 @@
1
- {"version":3,"file":"sessionInfoService.d.ts","sourceRoot":"","sources":["sessionInfoService.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAIF;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC,CAQ3D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,GAAG,IAAI,CAEzD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,oBAAqB,GAAG,KAAG,WAexD,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
1
+ {"version":3,"file":"sessionInfoService.d.ts","sourceRoot":"","sources":["sessionInfoService.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAIF;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC,CAQ3D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,GAAG,IAAI,CAEzD;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,oBAAqB,GAAG,KAAG,WAexD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
@@ -1956,23 +1956,28 @@ var HostEvent;
1956
1956
  /**
1957
1957
  * Trigger the **Make a copy** action on a Liveboard,
1958
1958
  * visualization, or Answer page.
1959
+ *
1959
1960
  * @example
1960
1961
  * ```js
1961
1962
  * liveboardEmbed.trigger(HostEvent.MakeACopy)
1962
1963
  * ```
1964
+ *
1963
1965
  * @example
1964
1966
  * ```js
1965
1967
  * liveboardEmbed.trigger(HostEvent.MakeACopy, {
1966
1968
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1967
1969
  * ```
1970
+ *
1968
1971
  * @example
1969
1972
  * ```js
1970
1973
  * vizEmbed.trigger(HostEvent.MakeACopy)
1971
1974
  * ```
1975
+ *
1972
1976
  * @example
1973
1977
  * ```js
1974
1978
  * searchEmbed.trigger(HostEvent.MakeACopy)
1975
1979
  * ```
1980
+ *
1976
1981
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1977
1982
  */
1978
1983
  HostEvent["MakeACopy"] = "makeACopy";
@@ -1998,6 +2003,7 @@ var HostEvent;
1998
2003
  /**
1999
2004
  * Trigger the **Create alert** action on a KPI chart
2000
2005
  * in a Liveboard or saved Answer.
2006
+ *
2001
2007
  * @param - an object with `vizId` as a key
2002
2008
  * @example
2003
2009
  * ```js
@@ -2005,6 +2011,7 @@ var HostEvent;
2005
2011
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2006
2012
  * })
2007
2013
  * ```
2014
+ *
2008
2015
  * @example
2009
2016
  * ```js
2010
2017
  * searchEmbed.trigger(HostEvent.CreateMonitor)
@@ -2015,6 +2022,7 @@ var HostEvent;
2015
2022
  /**
2016
2023
  * Trigger the **Manage alerts** action on a KPI chart
2017
2024
  * in a visualization or saved Answer.
2025
+ *
2018
2026
  * @param - an object with `vizId` as a key
2019
2027
  * @example
2020
2028
  * ```js
@@ -2022,10 +2030,12 @@ var HostEvent;
2022
2030
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
2023
2031
  * })
2024
2032
  * ```
2033
+ *
2025
2034
  * @example
2026
2035
  * ```js
2027
2036
  * searchEmbed.trigger(HostEvent.ManageMonitor)
2028
2037
  * ```
2038
+ *
2029
2039
  * @example
2030
2040
  * ```js
2031
2041
  * vizEmbed.trigger(HostEvent.ManageMonitor)
@@ -2423,6 +2433,7 @@ var HostEvent;
2423
2433
  /**
2424
2434
  * Get the answer session for a Search or
2425
2435
  * Liveboard visualization.
2436
+ *
2426
2437
  * @example
2427
2438
  * ```js
2428
2439
  * const {session} = await embed.trigger(
@@ -2430,10 +2441,12 @@ var HostEvent;
2430
2441
  * vizId: '123', // For Liveboard Visualization.
2431
2442
  * })
2432
2443
  * ```
2444
+ *
2433
2445
  * @example
2434
2446
  * ```js
2435
2447
  * const {session} = await embed.trigger( HostEvent.GetAnswerSession )
2436
2448
  * ```
2449
+ *
2437
2450
  * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
2438
2451
  */
2439
2452
  HostEvent["GetAnswerSession"] = "getAnswerSession";
@@ -3159,6 +3172,7 @@ var Action;
3159
3172
  /**
3160
3173
  * @deprecated
3161
3174
  * Reports errors
3175
+ *
3162
3176
  * @example
3163
3177
  * ```js
3164
3178
  * disabledActions: [Action.ReportError]
@@ -3388,12 +3402,14 @@ var Action;
3388
3402
  * ```js
3389
3403
  * disabledActions: [Action.RequestVerification]
3390
3404
  * ```
3405
+ *
3391
3406
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3392
3407
  */
3393
3408
  Action["RequestVerification"] = "requestVerification";
3394
3409
  /**
3395
3410
  *
3396
- *Allows users to mark a Liveboard as verified.
3411
+ * Allows users to mark a Liveboard as verified.
3412
+ *
3397
3413
  * @example
3398
3414
  * ```js
3399
3415
  * disabledActions: [Action.MarkAsVerified]
@@ -3404,6 +3420,7 @@ var Action;
3404
3420
  /**
3405
3421
  * The **Add Tab** action on a Liveboard.
3406
3422
  * Allows adding a new tab to a Liveboard view.
3423
+ *
3407
3424
  * @example
3408
3425
  * ```js
3409
3426
  * disabledActions: [Action.AddTab]
@@ -3413,7 +3430,8 @@ var Action;
3413
3430
  Action["AddTab"] = "addTab";
3414
3431
  /**
3415
3432
  *
3416
- *Initiates contextual change analysis on KPI charts.
3433
+ * Initiates contextual change analysis on KPI charts.
3434
+ *
3417
3435
  * @example
3418
3436
  * ```js
3419
3437
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -3427,6 +3445,7 @@ var Action;
3427
3445
  * ```js
3428
3446
  * disabledActions: [Action.ShowSageQuery]
3429
3447
  * ```
3448
+ *
3430
3449
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3431
3450
  */
3432
3451
  Action["ShowSageQuery"] = "showSageQuery";
@@ -3441,7 +3460,8 @@ var Action;
3441
3460
  Action["EditSageAnswer"] = "editSageAnswer";
3442
3461
  /**
3443
3462
  *
3444
- *This action allows users to send feedback on AI-generated Answers.
3463
+ * This action allows users to send feedback on AI-generated Answers.
3464
+ *
3445
3465
  * @example
3446
3466
  * ```js
3447
3467
  * disabledActions: [Action.SageAnswerFeedback]
@@ -3518,6 +3538,7 @@ var Action;
3518
3538
  * hiddenAction: [Action.CreateLiveboard]
3519
3539
  * disabledActions: [Action.CreateLiveboard]
3520
3540
  * ```
3541
+ *
3521
3542
  * @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
3522
3543
  */
3523
3544
  Action["CreateLiveboard"] = "createLiveboard";
@@ -3613,6 +3634,7 @@ var Action;
3613
3634
  Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
3614
3635
  /**
3615
3636
  * The **Manage Tags** action on Homepage Favourite Module.
3637
+ *
3616
3638
  * @example
3617
3639
  * ```js
3618
3640
  * disabledActions: [Action.ManageTags]
@@ -6224,6 +6246,7 @@ const getEmbedConfig = () => config;
6224
6246
  * Fetch wrapper that adds the authentication token to the request.
6225
6247
  * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6226
6248
  * The interface for this method is the same as Web `Fetch`.
6249
+ *
6227
6250
  * @param input
6228
6251
  * @param init
6229
6252
  * @example
@@ -20739,6 +20762,7 @@ function tokenizedFailureLoggedFetch(url, options = {}) {
20739
20762
  }
20740
20763
  /**
20741
20764
  * Fetches the session info from the ThoughtSpot server.
20765
+ *
20742
20766
  * @param thoughtspotHost
20743
20767
  * @returns {Promise<any>}
20744
20768
  * @example
@@ -20757,6 +20781,7 @@ async function fetchSessionInfoService(thoughtspotHost) {
20757
20781
  }
20758
20782
  /**
20759
20783
  * Is active service to check if the user is logged in.
20784
+ *
20760
20785
  * @param thoughtSpotHost
20761
20786
  * @version SDK: 1.28.4 | ThoughtSpot: *
20762
20787
  */
@@ -20779,6 +20804,7 @@ let sessionInfo = null;
20779
20804
  * Returns the session info object and caches it for future use.
20780
20805
  * Once fetched the session info object is cached and returned from the cache on
20781
20806
  * subsequent calls.
20807
+ *
20782
20808
  * @example ```js
20783
20809
  * const sessionInfo = await getSessionInfo();
20784
20810
  * console.log(sessionInfo);
@@ -20797,6 +20823,7 @@ async function getSessionInfo() {
20797
20823
  }
20798
20824
  /**
20799
20825
  * Processes the session info response and returns the session info object.
20826
+ *
20800
20827
  * @param sessionInfoResp {any} Response from the session info API.
20801
20828
  * @returns {SessionInfo} The session info object.
20802
20829
  * @example ```js
@@ -20939,6 +20966,7 @@ async function isLoggedIn(thoughtSpotHost) {
20939
20966
  * Services to be called after the login is successful,
20940
20967
  * This should be called after the cookie is set for cookie auth or
20941
20968
  * after the token is set for cookieless.
20969
+ *
20942
20970
  * @return {Promise<void>}
20943
20971
  * @example
20944
20972
  * ```js
@@ -21245,6 +21273,7 @@ function processCustomAction(e, thoughtSpotHost) {
21245
21273
  }
21246
21274
  /**
21247
21275
  * Responds to AuthInit sent from host signifying successful authentication in host.
21276
+ *
21248
21277
  * @param e
21249
21278
  * @returns {any}
21250
21279
  */
@@ -21385,7 +21414,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
21385
21414
  });
21386
21415
  }
21387
21416
 
21388
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.14";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};
21417
+ 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};
21389
21418
 
21390
21419
  /**
21391
21420
  * Copyright (c) 2022
@@ -23285,6 +23314,22 @@ class LiveboardEmbed extends V1Embed {
23285
23314
  this.render();
23286
23315
  }
23287
23316
  }
23317
+ /**
23318
+ * Returns the full url of the liveboard/viz which can be used to open
23319
+ * this liveboard inside the full Thoughtspot application in a new tab.
23320
+ *
23321
+ * @returns url string
23322
+ */
23323
+ getLiveboardUrl() {
23324
+ let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
23325
+ if (this.viewConfig.activeTabId) {
23326
+ url = `${url}/tab/${this.viewConfig.activeTabId}`;
23327
+ }
23328
+ if (this.viewConfig.vizId) {
23329
+ url = `${url}/${this.viewConfig.vizId}`;
23330
+ }
23331
+ return url;
23332
+ }
23288
23333
  }
23289
23334
 
23290
23335
  /**
@@ -1897,23 +1897,28 @@
1897
1897
  /**
1898
1898
  * Trigger the **Make a copy** action on a Liveboard,
1899
1899
  * visualization, or Answer page.
1900
+ *
1900
1901
  * @example
1901
1902
  * ```js
1902
1903
  * liveboardEmbed.trigger(HostEvent.MakeACopy)
1903
1904
  * ```
1905
+ *
1904
1906
  * @example
1905
1907
  * ```js
1906
1908
  * liveboardEmbed.trigger(HostEvent.MakeACopy, {
1907
1909
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'})
1908
1910
  * ```
1911
+ *
1909
1912
  * @example
1910
1913
  * ```js
1911
1914
  * vizEmbed.trigger(HostEvent.MakeACopy)
1912
1915
  * ```
1916
+ *
1913
1917
  * @example
1914
1918
  * ```js
1915
1919
  * searchEmbed.trigger(HostEvent.MakeACopy)
1916
1920
  * ```
1921
+ *
1917
1922
  * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
1918
1923
  */
1919
1924
  HostEvent["MakeACopy"] = "makeACopy";
@@ -1939,6 +1944,7 @@
1939
1944
  /**
1940
1945
  * Trigger the **Create alert** action on a KPI chart
1941
1946
  * in a Liveboard or saved Answer.
1947
+ *
1942
1948
  * @param - an object with `vizId` as a key
1943
1949
  * @example
1944
1950
  * ```js
@@ -1946,6 +1952,7 @@
1946
1952
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1947
1953
  * })
1948
1954
  * ```
1955
+ *
1949
1956
  * @example
1950
1957
  * ```js
1951
1958
  * searchEmbed.trigger(HostEvent.CreateMonitor)
@@ -1956,6 +1963,7 @@
1956
1963
  /**
1957
1964
  * Trigger the **Manage alerts** action on a KPI chart
1958
1965
  * in a visualization or saved Answer.
1966
+ *
1959
1967
  * @param - an object with `vizId` as a key
1960
1968
  * @example
1961
1969
  * ```js
@@ -1963,10 +1971,12 @@
1963
1971
  * vizId: '730496d6-6903-4601-937e-2c691821af3c'
1964
1972
  * })
1965
1973
  * ```
1974
+ *
1966
1975
  * @example
1967
1976
  * ```js
1968
1977
  * searchEmbed.trigger(HostEvent.ManageMonitor)
1969
1978
  * ```
1979
+ *
1970
1980
  * @example
1971
1981
  * ```js
1972
1982
  * vizEmbed.trigger(HostEvent.ManageMonitor)
@@ -2364,6 +2374,7 @@
2364
2374
  /**
2365
2375
  * Get the answer session for a Search or
2366
2376
  * Liveboard visualization.
2377
+ *
2367
2378
  * @example
2368
2379
  * ```js
2369
2380
  * const {session} = await embed.trigger(
@@ -2371,10 +2382,12 @@
2371
2382
  * vizId: '123', // For Liveboard Visualization.
2372
2383
  * })
2373
2384
  * ```
2385
+ *
2374
2386
  * @example
2375
2387
  * ```js
2376
2388
  * const {session} = await embed.trigger( HostEvent.GetAnswerSession )
2377
2389
  * ```
2390
+ *
2378
2391
  * @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
2379
2392
  */
2380
2393
  HostEvent["GetAnswerSession"] = "getAnswerSession";
@@ -3072,6 +3085,7 @@
3072
3085
  /**
3073
3086
  * @deprecated
3074
3087
  * Reports errors
3088
+ *
3075
3089
  * @example
3076
3090
  * ```js
3077
3091
  * disabledActions: [Action.ReportError]
@@ -3301,12 +3315,14 @@
3301
3315
  * ```js
3302
3316
  * disabledActions: [Action.RequestVerification]
3303
3317
  * ```
3318
+ *
3304
3319
  * @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
3305
3320
  */
3306
3321
  Action["RequestVerification"] = "requestVerification";
3307
3322
  /**
3308
3323
  *
3309
- *Allows users to mark a Liveboard as verified.
3324
+ * Allows users to mark a Liveboard as verified.
3325
+ *
3310
3326
  * @example
3311
3327
  * ```js
3312
3328
  * disabledActions: [Action.MarkAsVerified]
@@ -3317,6 +3333,7 @@
3317
3333
  /**
3318
3334
  * The **Add Tab** action on a Liveboard.
3319
3335
  * Allows adding a new tab to a Liveboard view.
3336
+ *
3320
3337
  * @example
3321
3338
  * ```js
3322
3339
  * disabledActions: [Action.AddTab]
@@ -3326,7 +3343,8 @@
3326
3343
  Action["AddTab"] = "addTab";
3327
3344
  /**
3328
3345
  *
3329
- *Initiates contextual change analysis on KPI charts.
3346
+ * Initiates contextual change analysis on KPI charts.
3347
+ *
3330
3348
  * @example
3331
3349
  * ```js
3332
3350
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -3340,6 +3358,7 @@
3340
3358
  * ```js
3341
3359
  * disabledActions: [Action.ShowSageQuery]
3342
3360
  * ```
3361
+ *
3343
3362
  * @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
3344
3363
  */
3345
3364
  Action["ShowSageQuery"] = "showSageQuery";
@@ -3354,7 +3373,8 @@
3354
3373
  Action["EditSageAnswer"] = "editSageAnswer";
3355
3374
  /**
3356
3375
  *
3357
- *This action allows users to send feedback on AI-generated Answers.
3376
+ * This action allows users to send feedback on AI-generated Answers.
3377
+ *
3358
3378
  * @example
3359
3379
  * ```js
3360
3380
  * disabledActions: [Action.SageAnswerFeedback]
@@ -3431,6 +3451,7 @@
3431
3451
  * hiddenAction: [Action.CreateLiveboard]
3432
3452
  * disabledActions: [Action.CreateLiveboard]
3433
3453
  * ```
3454
+ *
3434
3455
  * @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
3435
3456
  */
3436
3457
  Action["CreateLiveboard"] = "createLiveboard";
@@ -3526,6 +3547,7 @@
3526
3547
  Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
3527
3548
  /**
3528
3549
  * The **Manage Tags** action on Homepage Favourite Module.
3550
+ *
3529
3551
  * @example
3530
3552
  * ```js
3531
3553
  * disabledActions: [Action.ManageTags]
@@ -6136,6 +6158,7 @@
6136
6158
  * Fetch wrapper that adds the authentication token to the request.
6137
6159
  * Use this to call the ThoughtSpot APIs when using the visual embed sdk.
6138
6160
  * The interface for this method is the same as Web `Fetch`.
6161
+ *
6139
6162
  * @param input
6140
6163
  * @param init
6141
6164
  * @example
@@ -20651,6 +20674,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20651
20674
  }
20652
20675
  /**
20653
20676
  * Fetches the session info from the ThoughtSpot server.
20677
+ *
20654
20678
  * @param thoughtspotHost
20655
20679
  * @returns {Promise<any>}
20656
20680
  * @example
@@ -20669,6 +20693,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20669
20693
  }
20670
20694
  /**
20671
20695
  * Is active service to check if the user is logged in.
20696
+ *
20672
20697
  * @param thoughtSpotHost
20673
20698
  * @version SDK: 1.28.4 | ThoughtSpot: *
20674
20699
  */
@@ -20691,6 +20716,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20691
20716
  * Returns the session info object and caches it for future use.
20692
20717
  * Once fetched the session info object is cached and returned from the cache on
20693
20718
  * subsequent calls.
20719
+ *
20694
20720
  * @example ```js
20695
20721
  * const sessionInfo = await getSessionInfo();
20696
20722
  * console.log(sessionInfo);
@@ -20709,6 +20735,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20709
20735
  }
20710
20736
  /**
20711
20737
  * Processes the session info response and returns the session info object.
20738
+ *
20712
20739
  * @param sessionInfoResp {any} Response from the session info API.
20713
20740
  * @returns {SessionInfo} The session info object.
20714
20741
  * @example ```js
@@ -20851,6 +20878,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
20851
20878
  * Services to be called after the login is successful,
20852
20879
  * This should be called after the cookie is set for cookie auth or
20853
20880
  * after the token is set for cookieless.
20881
+ *
20854
20882
  * @return {Promise<void>}
20855
20883
  * @example
20856
20884
  * ```js
@@ -21157,6 +21185,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21157
21185
  }
21158
21186
  /**
21159
21187
  * Responds to AuthInit sent from host signifying successful authentication in host.
21188
+ *
21160
21189
  * @param e
21161
21190
  * @returns {any}
21162
21191
  */
@@ -21297,7 +21326,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
21297
21326
  });
21298
21327
  }
21299
21328
 
21300
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.14";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};
21329
+ 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};
21301
21330
 
21302
21331
  /**
21303
21332
  * Copyright (c) 2022
@@ -23192,6 +23221,22 @@ query GetEurekaVizSnapshots(
23192
23221
  this.render();
23193
23222
  }
23194
23223
  }
23224
+ /**
23225
+ * Returns the full url of the liveboard/viz which can be used to open
23226
+ * this liveboard inside the full Thoughtspot application in a new tab.
23227
+ *
23228
+ * @returns url string
23229
+ */
23230
+ getLiveboardUrl() {
23231
+ let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
23232
+ if (this.viewConfig.activeTabId) {
23233
+ url = `${url}/tab/${this.viewConfig.activeTabId}`;
23234
+ }
23235
+ if (this.viewConfig.vizId) {
23236
+ url = `${url}/${this.viewConfig.vizId}`;
23237
+ }
23238
+ return url;
23239
+ }
23195
23240
  }
23196
23241
 
23197
23242
  /**