@thoughtspot/visual-embed-sdk 1.33.3 → 1.33.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/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +20 -6
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +10 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.spec.js +13 -1
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +4 -0
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +13 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.js +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -2
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.js +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +6 -6
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +1 -1
- package/cjs/src/errors.d.ts +1 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +10 -9
- package/cjs/src/errors.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +34 -19
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +29 -14
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-Ck3m4Sis.js → index-Cl8Rsh6W.js} +1 -1
- package/dist/src/embed/app.d.ts +20 -6
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.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/types.d.ts +34 -19
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +50 -30
- package/dist/tsembed-react.js +49 -29
- package/dist/tsembed.es.js +50 -30
- package/dist/tsembed.js +49 -29
- package/dist/visual-embed-sdk-react-full.d.ts +54 -25
- package/dist/visual-embed-sdk-react.d.ts +54 -25
- package/dist/visual-embed-sdk.d.ts +54 -25
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +20 -6
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +10 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.spec.js +13 -1
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +4 -0
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +13 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.js +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -2
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.js +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +6 -6
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +1 -1
- package/lib/src/errors.d.ts +1 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +10 -9
- package/lib/src/errors.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +34 -19
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +29 -14
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +54 -25
- package/package.json +1 -1
- package/src/embed/app.spec.ts +15 -0
- package/src/embed/app.ts +23 -7
- package/src/embed/base.spec.ts +13 -1
- package/src/embed/conversation.spec.ts +16 -0
- package/src/embed/conversation.ts +4 -0
- package/src/embed/liveboard.spec.ts +2 -2
- package/src/embed/liveboard.ts +1 -1
- package/src/embed/search.spec.ts +6 -6
- package/src/embed/search.ts +1 -1
- package/src/embed/ts-embed.spec.ts +1 -1
- package/src/errors.ts +10 -9
- package/src/react/index.spec.tsx +1 -1
- package/src/types.ts +32 -17
package/dist/tsembed.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.4 */
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
m.forEach(function (e) {
|
|
4
4
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -1556,22 +1556,26 @@ var EmbedEvent;
|
|
|
1556
1556
|
*/
|
|
1557
1557
|
EmbedEvent["Rename"] = "rename";
|
|
1558
1558
|
/**
|
|
1559
|
-
* Emitted if the user wants to intercept the search execution
|
|
1560
|
-
* and implement logic to decide whether to run the search or not
|
|
1561
1559
|
*
|
|
1562
|
-
*
|
|
1560
|
+
* This event can be emitted to intercept search execution initiated by
|
|
1561
|
+
* the users and implement the logic to allow or restrict search execution.
|
|
1562
|
+
* You can can also show custom error text if the search query must be
|
|
1563
|
+
* restricted due to your application or business requirements.
|
|
1564
|
+
|
|
1565
|
+
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1563
1566
|
* for this embed event to get emitted.
|
|
1564
1567
|
* @param: payload
|
|
1565
1568
|
* @param: responder
|
|
1566
1569
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
1567
|
-
*
|
|
1570
|
+
* should run the search, and if not, what error message
|
|
1571
|
+
* should be shown to the user.
|
|
1568
1572
|
*
|
|
1569
|
-
* execute: When execute returns true
|
|
1570
|
-
* When execute returns false
|
|
1573
|
+
* execute: When execute returns `true`, the search will be run.
|
|
1574
|
+
* When execute returns `false`, the search will not be executed.
|
|
1571
1575
|
*
|
|
1572
|
-
* error: Developers can customize the
|
|
1573
|
-
*
|
|
1574
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1576
|
+
* error: Developers can customize the error message text when `execute`
|
|
1577
|
+
* returns `false` using the error parameter in responder.
|
|
1578
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1575
1579
|
* @example
|
|
1576
1580
|
*```js
|
|
1577
1581
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -1611,15 +1615,15 @@ var EmbedEvent;
|
|
|
1611
1615
|
*/
|
|
1612
1616
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1613
1617
|
/**
|
|
1614
|
-
* Emitted when parameter changes in an
|
|
1615
|
-
* or
|
|
1618
|
+
* Emitted when parameter changes in an Answer
|
|
1619
|
+
* or Liveboard
|
|
1616
1620
|
*
|
|
1617
1621
|
* ```js
|
|
1618
1622
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
1619
1623
|
* console.log('payload', payload);
|
|
1620
1624
|
* })
|
|
1621
1625
|
*```
|
|
1622
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1626
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1623
1627
|
*/
|
|
1624
1628
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1625
1629
|
})(EmbedEvent || (EmbedEvent = {}));
|
|
@@ -2351,7 +2355,8 @@ var HostEvent;
|
|
|
2351
2355
|
*
|
|
2352
2356
|
* `values` - An array of one or several values. The value definition on the
|
|
2353
2357
|
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2354
|
-
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
|
|
2358
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
|
|
2359
|
+
*
|
|
2355
2360
|
* `type` - To update filters for date time, specify the date format type.
|
|
2356
2361
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2357
2362
|
*
|
|
@@ -2645,6 +2650,7 @@ var Param;
|
|
|
2645
2650
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2646
2651
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2647
2652
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2653
|
+
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2648
2654
|
})(Param || (Param = {}));
|
|
2649
2655
|
/**
|
|
2650
2656
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3616,7 +3622,7 @@ var Action;
|
|
|
3616
3622
|
*/
|
|
3617
3623
|
Action["AIHighlights"] = "AIHighlights";
|
|
3618
3624
|
/**
|
|
3619
|
-
* Action ID for edit schedule action on schedule on homepage
|
|
3625
|
+
* Action ID for edit the schedule action on schedule on homepage
|
|
3620
3626
|
* @example
|
|
3621
3627
|
* ```js
|
|
3622
3628
|
* disabledActions: [Action.EditScheduleHomepage]
|
|
@@ -3678,6 +3684,15 @@ var Action;
|
|
|
3678
3684
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3679
3685
|
*/
|
|
3680
3686
|
Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
|
|
3687
|
+
/**
|
|
3688
|
+
* Action ID for disabling chip reorder in Answer and Liveboard
|
|
3689
|
+
* @example
|
|
3690
|
+
* ```js
|
|
3691
|
+
* const disabledActions = [Action.DisableChipReorder]
|
|
3692
|
+
* ```
|
|
3693
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3694
|
+
*/
|
|
3695
|
+
Action["DisableChipReorder"] = "disableChipReorder";
|
|
3681
3696
|
})(Action || (Action = {}));
|
|
3682
3697
|
var PrefetchFeatures;
|
|
3683
3698
|
(function (PrefetchFeatures) {
|
|
@@ -6047,20 +6062,21 @@ var isEqual_1 = isEqual;
|
|
|
6047
6062
|
|
|
6048
6063
|
const ERROR_MESSAGE = {
|
|
6049
6064
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6065
|
+
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
|
|
6066
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
6067
|
+
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
6068
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
6069
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
6070
|
+
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
6071
|
+
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
6056
6072
|
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
6057
|
-
SESSION_INFO_FAILED: 'Failed to get session
|
|
6073
|
+
SESSION_INFO_FAILED: 'Failed to get session information',
|
|
6058
6074
|
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
6059
6075
|
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
6060
|
-
PRERENDER_ID_MISSING: 'PreRender
|
|
6076
|
+
PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
|
|
6061
6077
|
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
6062
6078
|
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
6063
|
-
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please
|
|
6079
|
+
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
6064
6080
|
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
6065
6081
|
};
|
|
6066
6082
|
|
|
@@ -6879,7 +6895,7 @@ class AnswerService {
|
|
|
6879
6895
|
async getTML() {
|
|
6880
6896
|
const { object } = await this.executeQuery(getAnswerTML, {});
|
|
6881
6897
|
const edoc = object[0].edoc;
|
|
6882
|
-
const YAML = await import('./index-
|
|
6898
|
+
const YAML = await import('./index-Cl8Rsh6W.js');
|
|
6883
6899
|
const parsedDoc = YAML.parse(edoc);
|
|
6884
6900
|
return {
|
|
6885
6901
|
answer: {
|
|
@@ -14614,7 +14630,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14614
14630
|
});
|
|
14615
14631
|
}
|
|
14616
14632
|
|
|
14617
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14633
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.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 . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^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",crypto:"^1.0.1","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:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14618
14634
|
|
|
14619
14635
|
/**
|
|
14620
14636
|
* Copyright (c) 2022
|
|
@@ -15758,9 +15774,9 @@ class AppEmbed extends V1Embed {
|
|
|
15758
15774
|
* embedded Liveboard or visualization.
|
|
15759
15775
|
*/
|
|
15760
15776
|
getEmbedParams() {
|
|
15761
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 =
|
|
15777
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15762
15778
|
/* eslint-disable-next-line max-len */
|
|
15763
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15779
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15764
15780
|
let params = {};
|
|
15765
15781
|
params[Param.EmbedApp] = true;
|
|
15766
15782
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15775,6 +15791,7 @@ class AppEmbed extends V1Embed {
|
|
|
15775
15791
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15776
15792
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15777
15793
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15794
|
+
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
15778
15795
|
params = this.getBaseQueryParams(params);
|
|
15779
15796
|
if (fullHeight === true) {
|
|
15780
15797
|
params[Param.fullHeight] = true;
|
|
@@ -16053,7 +16070,7 @@ class LiveboardEmbed extends V1Embed {
|
|
|
16053
16070
|
let params = {};
|
|
16054
16071
|
params[Param.EmbedApp] = true;
|
|
16055
16072
|
params = this.getBaseQueryParams(params);
|
|
16056
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 =
|
|
16073
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16057
16074
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16058
16075
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16059
16076
|
if (fullHeight === true) {
|
|
@@ -16307,7 +16324,7 @@ class SearchEmbed extends TsEmbed {
|
|
|
16307
16324
|
}
|
|
16308
16325
|
getEmbedParams() {
|
|
16309
16326
|
var _a;
|
|
16310
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 =
|
|
16327
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
16311
16328
|
/* eslint-disable-next-line max-len */
|
|
16312
16329
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
16313
16330
|
const queryParams = this.getBaseQueryParams();
|
|
@@ -16931,6 +16948,9 @@ class ConversationEmbed extends TsEmbed {
|
|
|
16931
16948
|
getIframeSrc() {
|
|
16932
16949
|
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16933
16950
|
const path = 'insights/conv-assist';
|
|
16951
|
+
if (!worksheetId) {
|
|
16952
|
+
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
16953
|
+
}
|
|
16934
16954
|
const queryParams = this.getBaseQueryParams();
|
|
16935
16955
|
queryParams[Param.SpotterEnabled] = true;
|
|
16936
16956
|
let query = '';
|
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.33.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.33.4 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1562,22 +1562,26 @@
|
|
|
1562
1562
|
*/
|
|
1563
1563
|
EmbedEvent["Rename"] = "rename";
|
|
1564
1564
|
/**
|
|
1565
|
-
* Emitted if the user wants to intercept the search execution
|
|
1566
|
-
* and implement logic to decide whether to run the search or not
|
|
1567
1565
|
*
|
|
1568
|
-
*
|
|
1566
|
+
* This event can be emitted to intercept search execution initiated by
|
|
1567
|
+
* the users and implement the logic to allow or restrict search execution.
|
|
1568
|
+
* You can can also show custom error text if the search query must be
|
|
1569
|
+
* restricted due to your application or business requirements.
|
|
1570
|
+
|
|
1571
|
+
* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
|
|
1569
1572
|
* for this embed event to get emitted.
|
|
1570
1573
|
* @param: payload
|
|
1571
1574
|
* @param: responder
|
|
1572
1575
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
1573
|
-
*
|
|
1576
|
+
* should run the search, and if not, what error message
|
|
1577
|
+
* should be shown to the user.
|
|
1574
1578
|
*
|
|
1575
|
-
* execute: When execute returns true
|
|
1576
|
-
* When execute returns false
|
|
1579
|
+
* execute: When execute returns `true`, the search will be run.
|
|
1580
|
+
* When execute returns `false`, the search will not be executed.
|
|
1577
1581
|
*
|
|
1578
|
-
* error: Developers can customize the
|
|
1579
|
-
*
|
|
1580
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1582
|
+
* error: Developers can customize the error message text when `execute`
|
|
1583
|
+
* returns `false` using the error parameter in responder.
|
|
1584
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1581
1585
|
* @example
|
|
1582
1586
|
*```js
|
|
1583
1587
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -1617,15 +1621,15 @@
|
|
|
1617
1621
|
*/
|
|
1618
1622
|
EmbedEvent["OnBeforeGetVizDataIntercept"] = "onBeforeGetVizDataIntercept";
|
|
1619
1623
|
/**
|
|
1620
|
-
* Emitted when parameter changes in an
|
|
1621
|
-
* or
|
|
1624
|
+
* Emitted when parameter changes in an Answer
|
|
1625
|
+
* or Liveboard
|
|
1622
1626
|
*
|
|
1623
1627
|
* ```js
|
|
1624
1628
|
* liveboardEmbed.on(EmbedEvent.ParameterChanged, (payload) => {
|
|
1625
1629
|
* console.log('payload', payload);
|
|
1626
1630
|
* })
|
|
1627
1631
|
*```
|
|
1628
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.
|
|
1632
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.3.0.cl
|
|
1629
1633
|
*/
|
|
1630
1634
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1631
1635
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
@@ -2357,7 +2361,8 @@
|
|
|
2357
2361
|
*
|
|
2358
2362
|
* `values` - An array of one or several values. The value definition on the
|
|
2359
2363
|
* data type you choose to filter on. For a complete list of supported data types, see
|
|
2360
|
-
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types]
|
|
2364
|
+
* link:https://developers.thoughtspot.com/docs/runtime-filters#_supported_data_types[Supported data types].
|
|
2365
|
+
*
|
|
2361
2366
|
* `type` - To update filters for date time, specify the date format type.
|
|
2362
2367
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
2363
2368
|
*
|
|
@@ -2651,6 +2656,7 @@
|
|
|
2651
2656
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2652
2657
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2653
2658
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2659
|
+
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
2654
2660
|
})(Param || (Param = {}));
|
|
2655
2661
|
/**
|
|
2656
2662
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -3622,7 +3628,7 @@
|
|
|
3622
3628
|
*/
|
|
3623
3629
|
Action["AIHighlights"] = "AIHighlights";
|
|
3624
3630
|
/**
|
|
3625
|
-
* Action ID for edit schedule action on schedule on homepage
|
|
3631
|
+
* Action ID for edit the schedule action on schedule on homepage
|
|
3626
3632
|
* @example
|
|
3627
3633
|
* ```js
|
|
3628
3634
|
* disabledActions: [Action.EditScheduleHomepage]
|
|
@@ -3684,6 +3690,15 @@
|
|
|
3684
3690
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3685
3691
|
*/
|
|
3686
3692
|
Action["KPIAnalysisCTA"] = "kpiAnalysisCTA";
|
|
3693
|
+
/**
|
|
3694
|
+
* Action ID for disabling chip reorder in Answer and Liveboard
|
|
3695
|
+
* @example
|
|
3696
|
+
* ```js
|
|
3697
|
+
* const disabledActions = [Action.DisableChipReorder]
|
|
3698
|
+
* ```
|
|
3699
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
|
|
3700
|
+
*/
|
|
3701
|
+
Action["DisableChipReorder"] = "disableChipReorder";
|
|
3687
3702
|
})(exports.Action || (exports.Action = {}));
|
|
3688
3703
|
exports.PrefetchFeatures = void 0;
|
|
3689
3704
|
(function (PrefetchFeatures) {
|
|
@@ -6053,20 +6068,21 @@
|
|
|
6053
6068
|
|
|
6054
6069
|
const ERROR_MESSAGE = {
|
|
6055
6070
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6071
|
+
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
|
|
6072
|
+
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
|
|
6073
|
+
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
|
|
6074
|
+
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',
|
|
6075
|
+
SAGE_EMBED_BETA_WARNING_MESSAGE: 'SageEmbed is in Beta in this release.',
|
|
6076
|
+
THIRD_PARTY_COOKIE_BLOCKED_ALERT: 'Third-party cookie access is blocked on this browser. Please allow third-party cookies for this to work properly. \nYou can use `suppressNoCookieAccessAlert` to suppress this message.',
|
|
6077
|
+
DUPLICATE_TOKEN_ERR: 'Duplicate token. Please issue a new token every time getAuthToken callback is called. See https://developers.thoughtspot.com/docs/?pageid=embed-auth#trusted-auth-embed for more details.',
|
|
6062
6078
|
SDK_NOT_INITIALIZED: 'SDK not initialized',
|
|
6063
|
-
SESSION_INFO_FAILED: 'Failed to get session
|
|
6079
|
+
SESSION_INFO_FAILED: 'Failed to get session information',
|
|
6064
6080
|
INVALID_TOKEN_ERROR: 'Received invalid token from getAuthToken callback or authToken endpoint.',
|
|
6065
6081
|
MIXPANEL_TOKEN_NOT_FOUND: 'Mixpanel token not found in session info',
|
|
6066
|
-
PRERENDER_ID_MISSING: 'PreRender
|
|
6082
|
+
PRERENDER_ID_MISSING: 'PreRender ID is required for preRender',
|
|
6067
6083
|
SYNC_STYLE_CALLED_BEFORE_RENDER: 'PreRender should be called before using syncPreRenderStyle',
|
|
6068
6084
|
CSP_VIOLATION_ALERT: 'CSP violation detected. Please check the console errors for more details.',
|
|
6069
|
-
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please
|
|
6085
|
+
CSP_FRAME_HOST_VIOLATION_LOG_MESSAGE: 'Please set up CSP correctly for the application to start working. For more information, see https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts. \n If the issue persists, refer to https://developers.thoughtspot.com/docs/security-settings#csp-viz-embed-hosts',
|
|
6070
6086
|
MISSING_REPORTING_OBSERVER: 'ReportingObserver not supported',
|
|
6071
6087
|
};
|
|
6072
6088
|
|
|
@@ -14620,7 +14636,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14620
14636
|
});
|
|
14621
14637
|
}
|
|
14622
14638
|
|
|
14623
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.
|
|
14639
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.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$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dev","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={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.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^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",crypto:"^1.0.1","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:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"30 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};
|
|
14624
14640
|
|
|
14625
14641
|
/**
|
|
14626
14642
|
* Copyright (c) 2022
|
|
@@ -15764,9 +15780,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15764
15780
|
* embedded Liveboard or visualization.
|
|
15765
15781
|
*/
|
|
15766
15782
|
getEmbedParams() {
|
|
15767
|
-
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 =
|
|
15783
|
+
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = false, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15768
15784
|
/* eslint-disable-next-line max-len */
|
|
15769
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15785
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, } = this.viewConfig;
|
|
15770
15786
|
let params = {};
|
|
15771
15787
|
params[Param.EmbedApp] = true;
|
|
15772
15788
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15781,6 +15797,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15781
15797
|
params[Param.LiveboardHeaderV2] = isLiveboardCompactHeaderEnabled;
|
|
15782
15798
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
15783
15799
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
15800
|
+
params[Param.IsUnifiedSearchExperienceEnabled] = isUnifiedSearchExperienceEnabled;
|
|
15784
15801
|
params = this.getBaseQueryParams(params);
|
|
15785
15802
|
if (fullHeight === true) {
|
|
15786
15803
|
params[Param.fullHeight] = true;
|
|
@@ -16059,7 +16076,7 @@ query GetEurekaVizSnapshots(
|
|
|
16059
16076
|
let params = {};
|
|
16060
16077
|
params[Param.EmbedApp] = true;
|
|
16061
16078
|
params = this.getBaseQueryParams(params);
|
|
16062
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 =
|
|
16079
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = false, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
16063
16080
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
16064
16081
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
16065
16082
|
if (fullHeight === true) {
|
|
@@ -16313,7 +16330,7 @@ query GetEurekaVizSnapshots(
|
|
|
16313
16330
|
}
|
|
16314
16331
|
getEmbedParams() {
|
|
16315
16332
|
var _a;
|
|
16316
|
-
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 =
|
|
16333
|
+
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = false, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
16317
16334
|
/* eslint-disable-next-line max-len */
|
|
16318
16335
|
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
16319
16336
|
const queryParams = this.getBaseQueryParams();
|
|
@@ -16937,6 +16954,9 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
16937
16954
|
getIframeSrc() {
|
|
16938
16955
|
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16939
16956
|
const path = 'insights/conv-assist';
|
|
16957
|
+
if (!worksheetId) {
|
|
16958
|
+
this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
|
|
16959
|
+
}
|
|
16940
16960
|
const queryParams = this.getBaseQueryParams();
|
|
16941
16961
|
queryParams[Param.SpotterEnabled] = true;
|
|
16942
16962
|
let query = '';
|