@thoughtspot/visual-embed-sdk 1.44.3 → 1.44.4
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/README.md +1 -1
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +44 -32
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +24 -6
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +145 -13
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +1 -0
- package/cjs/src/errors.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 +4 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/types.d.ts +100 -44
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +74 -15
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +2 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/{index-D0n5LIka.js → index-C5FAW929.js} +1 -1
- package/dist/src/embed/app.d.ts +44 -32
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +1 -0
- package/dist/src/errors.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/types.d.ts +100 -44
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +104 -25
- package/dist/tsembed-react.js +103 -24
- package/dist/tsembed.es.js +105 -26
- package/dist/tsembed.js +130 -51
- package/dist/visual-embed-sdk-react-full.d.ts +140 -70
- package/dist/visual-embed-sdk-react.d.ts +146 -78
- package/dist/visual-embed-sdk.d.ts +193 -80
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +44 -32
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +24 -6
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +145 -13
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +1 -0
- package/lib/src/errors.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/types.d.ts +100 -44
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +74 -15
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +2 -1
- package/lib/src/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.ts +44 -32
- package/src/embed/liveboard.ts +1 -1
- package/src/embed/ts-embed.spec.ts +190 -15
- package/src/embed/ts-embed.ts +24 -6
- package/src/errors.ts +1 -0
- package/src/index.ts +4 -0
- package/src/types.ts +100 -43
- package/src/utils.ts +2 -1
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.44.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.44.4 */
|
|
2
2
|
'use client';
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -182,57 +182,71 @@ var AuthType;
|
|
|
182
182
|
})(AuthType || (AuthType = {}));
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
185
|
-
* This
|
|
186
|
-
* To access the updated modular homepage,
|
|
187
|
-
* set `modularHomeExperience` to `true`
|
|
188
|
-
* (available as Early Access feature in 9.12.5.cl).
|
|
185
|
+
* **Note**: This attribute is not supported in the classic (V1) homepage experience.
|
|
189
186
|
*
|
|
190
187
|
*/
|
|
191
188
|
var HomeLeftNavItem;
|
|
192
189
|
(function (HomeLeftNavItem) {
|
|
193
190
|
/**
|
|
191
|
+
* The *Search data* option in
|
|
192
|
+
* the *Insights* left navigation panel.
|
|
194
193
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
195
194
|
*/
|
|
196
195
|
HomeLeftNavItem["SearchData"] = "search-data";
|
|
197
196
|
/**
|
|
197
|
+
* The *Home* menu option in
|
|
198
|
+
* the *Insights* left navigation panel.
|
|
198
199
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
199
200
|
*/
|
|
200
201
|
HomeLeftNavItem["Home"] = "insights-home";
|
|
201
202
|
/**
|
|
203
|
+
* The *Liveboards* menu option in
|
|
204
|
+
* the *Insights* left navigation panel.
|
|
202
205
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
203
206
|
*/
|
|
204
207
|
HomeLeftNavItem["Liveboards"] = "liveboards";
|
|
205
208
|
/**
|
|
209
|
+
* The *Answers* menu option in
|
|
210
|
+
* the *Insights* left navigation panel.
|
|
206
211
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
207
212
|
*/
|
|
208
213
|
HomeLeftNavItem["Answers"] = "answers";
|
|
209
214
|
/**
|
|
215
|
+
* The *Monitor subscriptions* menu option in
|
|
216
|
+
* the *Insights* left navigation panel.
|
|
210
217
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
211
218
|
*/
|
|
212
219
|
HomeLeftNavItem["MonitorSubscription"] = "monitor-alerts";
|
|
213
220
|
/**
|
|
221
|
+
* The *SpotIQ analysis* menu option in
|
|
222
|
+
* the *Insights* left navigation panel.
|
|
214
223
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
215
224
|
*/
|
|
216
225
|
HomeLeftNavItem["SpotIQAnalysis"] = "spotiq-analysis";
|
|
217
226
|
/**
|
|
227
|
+
* The *Liveboard schedules* menu option in
|
|
228
|
+
* the *Insights* left navigation panel.
|
|
218
229
|
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
219
230
|
*/
|
|
220
231
|
HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
|
|
221
232
|
/**
|
|
222
|
-
*
|
|
223
|
-
*
|
|
233
|
+
* The create option in the *Insights*
|
|
234
|
+
* left navigation panel.
|
|
235
|
+
* Available in the V3 navigation experience.
|
|
224
236
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
225
237
|
*/
|
|
226
238
|
HomeLeftNavItem["Create"] = "create";
|
|
227
239
|
/**
|
|
228
|
-
* Spotter option in the
|
|
229
|
-
*
|
|
240
|
+
* The *Spotter* menu option in the *Insights*
|
|
241
|
+
* left navigation panel.
|
|
242
|
+
* Available in the V3 navigation experience.
|
|
230
243
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
231
244
|
*/
|
|
232
245
|
HomeLeftNavItem["Spotter"] = "spotter";
|
|
233
246
|
/**
|
|
234
|
-
* Favorites
|
|
235
|
-
*
|
|
247
|
+
* The *Favorites* section in the *Insights*
|
|
248
|
+
* left navigation panel.
|
|
249
|
+
* Available in the V3 navigation experience.
|
|
236
250
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
237
251
|
*/
|
|
238
252
|
HomeLeftNavItem["Favorites"] = "favorites";
|
|
@@ -304,10 +318,11 @@ var RuntimeFilterOp;
|
|
|
304
318
|
RuntimeFilterOp["NOT_IN"] = "NOT_IN";
|
|
305
319
|
})(RuntimeFilterOp || (RuntimeFilterOp = {}));
|
|
306
320
|
/**
|
|
307
|
-
* Home page
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
321
|
+
* Home page modules that can be hidden
|
|
322
|
+
* via `hiddenHomepageModules` and reordered via
|
|
323
|
+
* `reorderedHomepageModules`.
|
|
324
|
+
*
|
|
325
|
+
* **Note**: This option is not supported in the classic (v1) experience.
|
|
311
326
|
* @version SDK: 1.28.0 | ThoughtSpot: 9.12.5.cl, 10.1.0.sw
|
|
312
327
|
*/
|
|
313
328
|
var HomepageModule;
|
|
@@ -321,7 +336,7 @@ var HomepageModule;
|
|
|
321
336
|
*/
|
|
322
337
|
HomepageModule["Watchlist"] = "WATCHLIST";
|
|
323
338
|
/**
|
|
324
|
-
*
|
|
339
|
+
* Favorite module
|
|
325
340
|
*/
|
|
326
341
|
HomepageModule["Favorite"] = "FAVORITE";
|
|
327
342
|
/**
|
|
@@ -1477,6 +1492,28 @@ var EmbedEvent;
|
|
|
1477
1492
|
* @version SDK: 1.39.0 | ThoughtSpot: 10.10.0.cl
|
|
1478
1493
|
*/
|
|
1479
1494
|
EmbedEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
1495
|
+
/**
|
|
1496
|
+
* Emitted when user opens up the Add to Coaching modal on any visualization in Spotter Embed.
|
|
1497
|
+
* @example
|
|
1498
|
+
* ```js
|
|
1499
|
+
* spotterEmbed.on(EmbedEvent.AddToCoaching, (payload) => {
|
|
1500
|
+
* console.log('payload', payload);
|
|
1501
|
+
* })
|
|
1502
|
+
*```
|
|
1503
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1504
|
+
*/
|
|
1505
|
+
EmbedEvent["AddToCoaching"] = "addToCoaching";
|
|
1506
|
+
/**
|
|
1507
|
+
* Emitted when user opens up the data model instructions modal in Spotter embed.
|
|
1508
|
+
* @example
|
|
1509
|
+
* ```js
|
|
1510
|
+
* spotterEmbed.on(EmbedEvent.DataModelInstructions, (payload) => {
|
|
1511
|
+
* console.log('payload', payload);
|
|
1512
|
+
* })
|
|
1513
|
+
* ```
|
|
1514
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
1515
|
+
*/
|
|
1516
|
+
EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
1480
1517
|
/**
|
|
1481
1518
|
* Emitted when the Spotter query is triggered in Spotter embed.
|
|
1482
1519
|
* @example
|
|
@@ -2901,6 +2938,26 @@ var HostEvent;
|
|
|
2901
2938
|
* @version SDK: 1.40.0 | ThoughtSpot: 10.11.0.cl
|
|
2902
2939
|
*/
|
|
2903
2940
|
HostEvent["PreviewSpotterData"] = "PreviewSpotterData";
|
|
2941
|
+
/**
|
|
2942
|
+
* Opens the Add to Coaching modal from a visualization in Spotter Embed.
|
|
2943
|
+
* @param - `vizId ` refers to the Visualization ID in Spotter embed and is required.
|
|
2944
|
+
* @example
|
|
2945
|
+
* ```js
|
|
2946
|
+
* spotterEmbed.trigger(HostEvent.AddToCoaching, { vizId: '730496d6-6903-4601-937e-2c691821af3c' });
|
|
2947
|
+
*
|
|
2948
|
+
*```
|
|
2949
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
2950
|
+
*/
|
|
2951
|
+
HostEvent["AddToCoaching"] = "addToCoaching";
|
|
2952
|
+
/**
|
|
2953
|
+
* Opens the data model instructions modal in Spotter Embed.
|
|
2954
|
+
* @example
|
|
2955
|
+
* ```js
|
|
2956
|
+
* spotterEmbed.trigger(HostEvent.DataModelInstructions);
|
|
2957
|
+
* ```
|
|
2958
|
+
* @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
|
|
2959
|
+
*/
|
|
2960
|
+
HostEvent["DataModelInstructions"] = "DataModelInstructions";
|
|
2904
2961
|
/**
|
|
2905
2962
|
* Resets the Spotter Embed Conversation.
|
|
2906
2963
|
* @example
|
|
@@ -4712,6 +4769,8 @@ var EmbedErrorCodes;
|
|
|
4712
4769
|
EmbedErrorCodes["HOST_EVENT_TYPE_UNDEFINED"] = "HOST_EVENT_TYPE_UNDEFINED";
|
|
4713
4770
|
/** Error parsing api intercept body */
|
|
4714
4771
|
EmbedErrorCodes["PARSING_API_INTERCEPT_BODY_ERROR"] = "PARSING_API_INTERCEPT_BODY_ERROR";
|
|
4772
|
+
/** Failed to update embed parameters during pre-render */
|
|
4773
|
+
EmbedErrorCodes["UPDATE_PARAMS_FAILED"] = "UPDATE_PARAMS_FAILED";
|
|
4715
4774
|
})(EmbedErrorCodes || (EmbedErrorCodes = {}));
|
|
4716
4775
|
/**
|
|
4717
4776
|
* Enum for the type of API intercepted
|
|
@@ -4885,6 +4944,7 @@ const ERROR_MESSAGE = {
|
|
|
4885
4944
|
LOGIN_FAILED: 'Login failed',
|
|
4886
4945
|
ERROR_PARSING_API_INTERCEPT_BODY: 'Error parsing api intercept body',
|
|
4887
4946
|
SSR_ENVIRONMENT_ERROR: 'SSR environment detected. This function cannot be called in SSR environment.',
|
|
4947
|
+
UPDATE_PARAMS_FAILED: 'Failed to update embed parameters',
|
|
4888
4948
|
};
|
|
4889
4949
|
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
4890
4950
|
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
@@ -5010,7 +5070,8 @@ const isValidCssMargin = (value) => {
|
|
|
5010
5070
|
logger$3.error('Please provide a valid lazyLoadingMargin value (e.g., "10px")');
|
|
5011
5071
|
return false;
|
|
5012
5072
|
}
|
|
5013
|
-
// This pattern allows for an optional negative sign, and numbers
|
|
5073
|
+
// This pattern allows for an optional negative sign, and numbers
|
|
5074
|
+
// that can be integers or decimals (including leading dot).
|
|
5014
5075
|
const cssUnitPattern = /^-?(\d+(\.\d*)?|\.\d+)(px|em|rem|%|vh|vw)$/i;
|
|
5015
5076
|
const parts = value.trim().split(/\s+/);
|
|
5016
5077
|
if (parts.length > 4) {
|
|
@@ -8546,7 +8607,7 @@ class AnswerService {
|
|
|
8546
8607
|
async getTML() {
|
|
8547
8608
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
8548
8609
|
const edoc = object[0].edoc;
|
|
8549
|
-
const YAML = await import('./index-
|
|
8610
|
+
const YAML = await import('./index-C5FAW929.js');
|
|
8550
8611
|
const parsedDoc = YAML.parse(edoc);
|
|
8551
8612
|
return {
|
|
8552
8613
|
answer: {
|
|
@@ -17982,7 +18043,7 @@ function processEventData(type, eventData, thoughtSpotHost, containerEl) {
|
|
|
17982
18043
|
return eventData;
|
|
17983
18044
|
}
|
|
17984
18045
|
|
|
17985
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.
|
|
18046
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.44.4";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 tsconfig.build.json --incremental false; tsc -p tsconfig.build.json --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle-generator --config ./dts-config/dts-bundle-file.config.js","bundle-dts":"dts-bundle-generator --config ./dts-config/dts-bundle.config.js","bundle-dts-react":"dts-bundle-generator --config ./dts-config/dts-bundle-react.config.js","bundle-dts-react-full":"dts-bundle-generator --config ./dts-config/dts-bundle-react-full.config.js",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.build.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 | npx coveralls-next","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={classnames:"^2.3.1",eventemitter3:"^4.0.7",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^11.2.0","@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":"^30.0.0","@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",ajv:"^8.17.1",asciidoctor:"^2.2.1","babel-jest":"^30.2.0","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1","coveralls-next":"^5.0.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle-generator":"^9.5.1",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":"^2.0.0",jest:"^30.2.0","jest-environment-jsdom":"^29.7.0","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^29.4.6","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:"^6.3.5"};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:"32 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};
|
|
17986
18047
|
|
|
17987
18048
|
class HostEventClient {
|
|
17988
18049
|
constructor(iFrame) {
|
|
@@ -18725,9 +18786,10 @@ class TsEmbed {
|
|
|
18725
18786
|
.join('/');
|
|
18726
18787
|
return `${basePath}#`;
|
|
18727
18788
|
}
|
|
18728
|
-
getUpdateEmbedParamsObject() {
|
|
18789
|
+
async getUpdateEmbedParamsObject() {
|
|
18729
18790
|
let queryParams = this.getEmbedParamsObject();
|
|
18730
|
-
|
|
18791
|
+
const appInitData = await this.getAppInitData();
|
|
18792
|
+
queryParams = { ...this.viewConfig, ...queryParams, ...appInitData };
|
|
18731
18793
|
return queryParams;
|
|
18732
18794
|
}
|
|
18733
18795
|
/**
|
|
@@ -19036,6 +19098,8 @@ class TsEmbed {
|
|
|
19036
19098
|
preRenderWrapper.id = preRenderIds.wrapper;
|
|
19037
19099
|
const initialPreRenderWrapperStyle = {
|
|
19038
19100
|
position: 'absolute',
|
|
19101
|
+
top: '0',
|
|
19102
|
+
left: '0',
|
|
19039
19103
|
width: '100vw',
|
|
19040
19104
|
height: '100vh',
|
|
19041
19105
|
};
|
|
@@ -19500,8 +19564,20 @@ class TsEmbed {
|
|
|
19500
19564
|
}
|
|
19501
19565
|
this.validatePreRenderViewConfig(this.viewConfig);
|
|
19502
19566
|
logger$3.debug('triggering UpdateEmbedParams', this.viewConfig);
|
|
19503
|
-
this.executeAfterEmbedContainerLoaded(() => {
|
|
19504
|
-
|
|
19567
|
+
this.executeAfterEmbedContainerLoaded(async () => {
|
|
19568
|
+
try {
|
|
19569
|
+
const params = await this.getUpdateEmbedParamsObject();
|
|
19570
|
+
this.trigger(HostEvent.UpdateEmbedParams, params);
|
|
19571
|
+
}
|
|
19572
|
+
catch (error) {
|
|
19573
|
+
logger$3.error(ERROR_MESSAGE.UPDATE_PARAMS_FAILED, error);
|
|
19574
|
+
this.handleError({
|
|
19575
|
+
errorType: ErrorDetailsTypes.API,
|
|
19576
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || ERROR_MESSAGE.UPDATE_PARAMS_FAILED,
|
|
19577
|
+
code: EmbedErrorCodes.UPDATE_PARAMS_FAILED,
|
|
19578
|
+
error: (error === null || error === void 0 ? void 0 : error.message) || error,
|
|
19579
|
+
});
|
|
19580
|
+
}
|
|
19505
19581
|
});
|
|
19506
19582
|
}
|
|
19507
19583
|
this.beforePrerenderVisible();
|
|
@@ -19521,7 +19597,7 @@ class TsEmbed {
|
|
|
19521
19597
|
this.resizeObserver.observe(this.el);
|
|
19522
19598
|
}
|
|
19523
19599
|
}
|
|
19524
|
-
removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events']);
|
|
19600
|
+
removeStyleProperties(this.preRenderWrapper, ['z-index', 'opacity', 'pointer-events', 'overflow']);
|
|
19525
19601
|
this.subscribeToEvents();
|
|
19526
19602
|
// Setup fullscreen change handler for prerendered components
|
|
19527
19603
|
if (this.iFrame) {
|
|
@@ -19564,7 +19640,10 @@ class TsEmbed {
|
|
|
19564
19640
|
opacity: '0',
|
|
19565
19641
|
pointerEvents: 'none',
|
|
19566
19642
|
zIndex: '-1000',
|
|
19567
|
-
position: 'absolute
|
|
19643
|
+
position: 'absolute',
|
|
19644
|
+
top: '0',
|
|
19645
|
+
left: '0',
|
|
19646
|
+
overflow: 'hidden',
|
|
19568
19647
|
};
|
|
19569
19648
|
setStyleProperties(this.preRenderWrapper, preRenderHideStyles);
|
|
19570
19649
|
if (this.resizeObserver) {
|
|
@@ -22096,4 +22175,4 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
22096
22175
|
return result;
|
|
22097
22176
|
};
|
|
22098
22177
|
|
|
22099
|
-
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|
|
22178
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, BodylessConversation, ContextMenuTriggerOptions, ConversationEmbed, CustomActionTarget, CustomActionsPosition, DataPanelCustomColumnGroupsAccordionState$1 as DataPanelCustomColumnGroupsAccordionState, DataSourceVisualMode, EmbedErrorCodes, EmbedEvent, ErrorDetailsTypes, HomeLeftNavItem, HomePage, HomePageSearchBarMode, HomepageModule, HostEvent, InterceptedApiType, ListPage, ListPageColumns, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, PrimaryNavbarVersion, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, SpotterAgentEmbed, SpotterEmbed, UIPassthroughEvent, createLiveboardWithAnswers, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout, prefetch, reloadIframe, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|