@thoughtspot/visual-embed-sdk 1.49.3 → 1.50.1
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/authToken.spec.js +5 -0
- package/cjs/src/authToken.spec.js.map +1 -1
- package/cjs/src/css-variables.d.ts +59 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +31 -2
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +19 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +112 -2
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +38 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +12 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +53 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/embedConfig.spec.d.ts +2 -0
- package/cjs/src/embed/embedConfig.spec.d.ts.map +1 -0
- package/cjs/src/embed/embedConfig.spec.js +74 -0
- package/cjs/src/embed/embedConfig.spec.js.map +1 -0
- package/cjs/src/embed/events.spec.js +593 -0
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/host-events.spec.d.ts +2 -0
- package/cjs/src/embed/host-events.spec.d.ts.map +1 -0
- package/cjs/src/embed/host-events.spec.js +1325 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -0
- package/cjs/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +10 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +8 -0
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +209 -0
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.d.ts +2 -0
- package/cjs/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.js +32 -2
- package/cjs/src/embed/hostEventClient/utils.js.map +1 -1
- package/cjs/src/embed/hostEventClient/utils.spec.js +178 -0
- package/cjs/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +6 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.d.ts +34 -0
- package/cjs/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.spec.js +17 -0
- package/cjs/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -7
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +146 -0
- 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 +3 -2
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.spec.js +14 -0
- package/cjs/src/mixpanel-service.spec.js.map +1 -1
- package/cjs/src/react/util.spec.js +251 -0
- package/cjs/src/react/util.spec.js.map +1 -1
- package/cjs/src/types.d.ts +212 -8
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +185 -3
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/custom-actions.spec.js +26 -0
- package/cjs/src/utils/custom-actions.spec.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +123 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +61 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/cjs/src/utils/reporting.spec.js +21 -0
- package/cjs/src/utils/reporting.spec.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.spec.d.ts +2 -0
- package/cjs/src/utils/sessionInfoService.spec.d.ts.map +1 -0
- package/cjs/src/utils/sessionInfoService.spec.js +130 -0
- package/cjs/src/utils/sessionInfoService.spec.js.map +1 -0
- package/cjs/src/utils.spec.js +158 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-DsSQndIB.js → index-fCne7kmU.js} +1 -1
- package/dist/src/css-variables.d.ts +59 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +31 -2
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +38 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/embedConfig.spec.d.ts +2 -0
- package/dist/src/embed/embedConfig.spec.d.ts.map +1 -0
- package/dist/src/embed/host-events.spec.d.ts +2 -0
- package/dist/src/embed/host-events.spec.d.ts.map +1 -0
- package/dist/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/utils.d.ts +2 -0
- package/dist/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +6 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/spotter-viz-utils.d.ts +34 -0
- package/dist/src/embed/spotter-viz-utils.d.ts.map +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 +212 -8
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.spec.d.ts +2 -0
- package/dist/src/utils/sessionInfoService.spec.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +482 -86
- package/dist/tsembed-react.js +481 -85
- package/dist/tsembed.es.js +483 -87
- package/dist/tsembed.js +481 -85
- package/dist/visual-embed-sdk-react-full.d.ts +407 -23
- package/dist/visual-embed-sdk-react.d.ts +407 -23
- package/dist/visual-embed-sdk.d.ts +411 -23
- package/lib/package.json +1 -1
- package/lib/src/authToken.spec.js +5 -0
- package/lib/src/authToken.spec.js.map +1 -1
- package/lib/src/css-variables.d.ts +59 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +31 -2
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +19 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +112 -2
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +38 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +11 -1
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +54 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/embedConfig.spec.d.ts +2 -0
- package/lib/src/embed/embedConfig.spec.d.ts.map +1 -0
- package/lib/src/embed/embedConfig.spec.js +72 -0
- package/lib/src/embed/embedConfig.spec.js.map +1 -0
- package/lib/src/embed/events.spec.js +593 -0
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/host-events.spec.d.ts +2 -0
- package/lib/src/embed/host-events.spec.d.ts.map +1 -0
- package/lib/src/embed/host-events.spec.js +1322 -0
- package/lib/src/embed/host-events.spec.js.map +1 -0
- package/lib/src/embed/hostEventClient/contracts.d.ts +36 -14
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +9 -0
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +1 -0
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +9 -1
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +209 -0
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.d.ts +2 -0
- package/lib/src/embed/hostEventClient/utils.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/utils.js +28 -1
- package/lib/src/embed/hostEventClient/utils.js.map +1 -1
- package/lib/src/embed/hostEventClient/utils.spec.js +179 -1
- package/lib/src/embed/hostEventClient/utils.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +6 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.d.ts +34 -0
- package/lib/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-viz-utils.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.spec.js +17 -0
- package/lib/src/embed/spotter-viz-utils.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -7
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +146 -0
- 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/mixpanel-service.spec.js +14 -0
- package/lib/src/mixpanel-service.spec.js.map +1 -1
- package/lib/src/react/util.spec.js +251 -0
- package/lib/src/react/util.spec.js.map +1 -1
- package/lib/src/types.d.ts +212 -8
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +185 -3
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/custom-actions.spec.js +26 -0
- package/lib/src/utils/custom-actions.spec.js.map +1 -1
- package/lib/src/utils/processData.spec.js +123 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +61 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/utils/reporting.spec.js +21 -0
- package/lib/src/utils/reporting.spec.js.map +1 -1
- package/lib/src/utils/sessionInfoService.spec.d.ts +2 -0
- package/lib/src/utils/sessionInfoService.spec.d.ts.map +1 -0
- package/lib/src/utils/sessionInfoService.spec.js +127 -0
- package/lib/src/utils/sessionInfoService.spec.js.map +1 -0
- package/lib/src/utils.spec.js +159 -1
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +411 -23
- package/package.json +1 -1
- package/src/authToken.spec.ts +6 -0
- package/src/css-variables.ts +73 -0
- package/src/embed/app.spec.ts +155 -2
- package/src/embed/app.ts +44 -2
- package/src/embed/conversation.spec.ts +64 -1
- package/src/embed/conversation.ts +41 -0
- package/src/embed/embedConfig.spec.ts +79 -0
- package/src/embed/events.spec.ts +705 -1
- package/src/embed/host-events.spec.ts +1759 -0
- package/src/embed/hostEventClient/contracts.ts +41 -14
- package/src/embed/hostEventClient/host-event-client.spec.ts +326 -0
- package/src/embed/hostEventClient/host-event-client.ts +15 -0
- package/src/embed/hostEventClient/utils.spec.ts +204 -0
- package/src/embed/hostEventClient/utils.ts +37 -10
- package/src/embed/liveboard.ts +6 -0
- package/src/embed/spotter-viz-utils.spec.ts +17 -0
- package/src/embed/spotter-viz-utils.ts +34 -0
- package/src/embed/ts-embed.spec.ts +186 -0
- package/src/embed/ts-embed.ts +12 -4
- package/src/errors.ts +1 -0
- package/src/index.ts +2 -1
- package/src/mixpanel-service.spec.ts +15 -0
- package/src/react/util.spec.tsx +255 -0
- package/src/types.ts +215 -6
- package/src/utils/custom-actions.spec.ts +28 -0
- package/src/utils/processData.spec.ts +129 -0
- package/src/utils/processTrigger.spec.ts +91 -0
- package/src/utils/reporting.spec.ts +27 -0
- package/src/utils/sessionInfoService.spec.ts +151 -0
- package/src/utils.spec.ts +195 -0
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.50.1 */
|
|
2
2
|
'use client';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -263,6 +263,13 @@
|
|
|
263
263
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
264
264
|
*/
|
|
265
265
|
HomeLeftNavItem["Favorites"] = "favorites";
|
|
266
|
+
/**
|
|
267
|
+
* The *Collections* menu option in
|
|
268
|
+
* the *Insights* left navigation panel.
|
|
269
|
+
* Shown when collections are enabled on the cluster.
|
|
270
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
271
|
+
*/
|
|
272
|
+
HomeLeftNavItem["Collections"] = "collections";
|
|
266
273
|
})(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
|
|
267
274
|
/**
|
|
268
275
|
* A map of the supported runtime filter operations
|
|
@@ -1805,6 +1812,30 @@
|
|
|
1805
1812
|
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
1806
1813
|
*/
|
|
1807
1814
|
EmbedEvent["SpotterConversationSelected"] = "spotterConversationSelected";
|
|
1815
|
+
/**
|
|
1816
|
+
* Emitted when the Spotter agent finishes streaming/rendering a response.
|
|
1817
|
+
* Includes the conversation and message identifiers so the host app can
|
|
1818
|
+
* fetch the full conversation history via the REST API if needed.
|
|
1819
|
+
*
|
|
1820
|
+
* The payload data has the shape `{ convId: string, messageId: string }`.
|
|
1821
|
+
*
|
|
1822
|
+
* Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
|
|
1823
|
+
* inside the full application).
|
|
1824
|
+
* @example
|
|
1825
|
+
* ```js
|
|
1826
|
+
* spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
1827
|
+
* console.log('Spotter response complete', payload);
|
|
1828
|
+
* })
|
|
1829
|
+
* ```
|
|
1830
|
+
* @example
|
|
1831
|
+
* ```js
|
|
1832
|
+
* appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
1833
|
+
* console.log('Spotter response complete', payload);
|
|
1834
|
+
* })
|
|
1835
|
+
* ```
|
|
1836
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
1837
|
+
*/
|
|
1838
|
+
EmbedEvent["SpotterResponseComplete"] = "spotterResponseComplete";
|
|
1808
1839
|
/**
|
|
1809
1840
|
* @hidden
|
|
1810
1841
|
* Emitted when the auth token is about to get expired and needs to be refreshed.
|
|
@@ -1829,10 +1860,11 @@
|
|
|
1829
1860
|
*/
|
|
1830
1861
|
EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
|
|
1831
1862
|
/**
|
|
1832
|
-
* Represents a special embed event that is triggered whenever any host event is
|
|
1863
|
+
* Represents a special embed event that is triggered whenever any host event is
|
|
1864
|
+
* subscribed.
|
|
1833
1865
|
*
|
|
1834
|
-
* You can listen to this event when you need to dispatch a host event during load or
|
|
1835
|
-
* particularly in situations where timing issues may occur.
|
|
1866
|
+
* You can listen to this event when you need to dispatch a host event during load or
|
|
1867
|
+
* render, particularly in situations where timing issues may occur.
|
|
1836
1868
|
*
|
|
1837
1869
|
* @example
|
|
1838
1870
|
* ```js
|
|
@@ -3369,6 +3401,14 @@
|
|
|
3369
3401
|
/**
|
|
3370
3402
|
* Get details of filters applied on the Liveboard.
|
|
3371
3403
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
3404
|
+
* Each Liveboard filter may include an `applicability` attribute
|
|
3405
|
+
* indicating the scope of the filter. It contains a `level`
|
|
3406
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3407
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3408
|
+
* level there is no `targetId`, since the filter applies to the
|
|
3409
|
+
* whole Liveboard.
|
|
3410
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3411
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3372
3412
|
* @example
|
|
3373
3413
|
* ```js
|
|
3374
3414
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -3408,6 +3448,16 @@
|
|
|
3408
3448
|
*
|
|
3409
3449
|
* `type` - To update filters for date time, specify the date format type.
|
|
3410
3450
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
3451
|
+
*
|
|
3452
|
+
* `applicability` - Optional. Scopes the filter to a specific target,
|
|
3453
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3454
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3455
|
+
*
|
|
3456
|
+
* - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3457
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3458
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3459
|
+
* `level` is `LIVEBOARD`, since the filter applies to the whole
|
|
3460
|
+
* Liveboard.
|
|
3411
3461
|
* @example
|
|
3412
3462
|
* ```js
|
|
3413
3463
|
*
|
|
@@ -3484,6 +3534,21 @@
|
|
|
3484
3534
|
* }
|
|
3485
3535
|
* }, ContextType.Liveboard);
|
|
3486
3536
|
* ```
|
|
3537
|
+
* @example
|
|
3538
|
+
* ```js
|
|
3539
|
+
* // Scope the filter to a specific Liveboard tab
|
|
3540
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3541
|
+
* filter: {
|
|
3542
|
+
* column: "item type",
|
|
3543
|
+
* oper: "IN",
|
|
3544
|
+
* values: ["bags", "shirts"],
|
|
3545
|
+
* applicability: {
|
|
3546
|
+
* level: "TAB",
|
|
3547
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3548
|
+
* }
|
|
3549
|
+
* }
|
|
3550
|
+
* });
|
|
3551
|
+
* ```
|
|
3487
3552
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
3488
3553
|
*/
|
|
3489
3554
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
@@ -3635,6 +3700,15 @@
|
|
|
3635
3700
|
* - `name`: Name of the parameter.
|
|
3636
3701
|
* - `value`: The value to set for the parameter.
|
|
3637
3702
|
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
3703
|
+
* - `applicability`: Optional. Scopes the parameter to a specific target,
|
|
3704
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3705
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3706
|
+
*
|
|
3707
|
+
* - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3708
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3709
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3710
|
+
* `level` is `LIVEBOARD`, since the parameter applies to the whole
|
|
3711
|
+
* Liveboard.
|
|
3638
3712
|
*
|
|
3639
3713
|
* @example
|
|
3640
3714
|
* ```js
|
|
@@ -3646,6 +3720,18 @@
|
|
|
3646
3720
|
* ```
|
|
3647
3721
|
* @example
|
|
3648
3722
|
* ```js
|
|
3723
|
+
* // Scope the parameter to a specific Liveboard tab
|
|
3724
|
+
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
3725
|
+
* name: "Integer Range Param",
|
|
3726
|
+
* value: 10,
|
|
3727
|
+
* applicability: {
|
|
3728
|
+
* level: "TAB",
|
|
3729
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3730
|
+
* }
|
|
3731
|
+
* }])
|
|
3732
|
+
* ```
|
|
3733
|
+
* @example
|
|
3734
|
+
* ```js
|
|
3649
3735
|
* // Update parameters from liveboard context
|
|
3650
3736
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
3651
3737
|
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
@@ -3659,6 +3745,14 @@
|
|
|
3659
3745
|
HostEvent["UpdateParameters"] = "UpdateParameters";
|
|
3660
3746
|
/**
|
|
3661
3747
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
3748
|
+
* Each parameter may include an `applicability` attribute
|
|
3749
|
+
* indicating the scope of the parameter. It contains a `level`
|
|
3750
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3751
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3752
|
+
* level there is no `targetId`, since the parameter applies to the
|
|
3753
|
+
* whole Liveboard.
|
|
3754
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3755
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3662
3756
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
3663
3757
|
* ```js
|
|
3664
3758
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -4072,6 +4166,24 @@
|
|
|
4072
4166
|
* ```
|
|
4073
4167
|
*/
|
|
4074
4168
|
HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
|
|
4169
|
+
/**
|
|
4170
|
+
* Opens the SpotterViz panel.
|
|
4171
|
+
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4172
|
+
* @example
|
|
4173
|
+
* ```js
|
|
4174
|
+
* liveboardEmbed.trigger(HostEvent.OpenSpotterVizPanel);
|
|
4175
|
+
* ```
|
|
4176
|
+
*/
|
|
4177
|
+
HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
|
|
4178
|
+
/**
|
|
4179
|
+
* Closes the SpotterViz panel.
|
|
4180
|
+
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4181
|
+
* @example
|
|
4182
|
+
* ```js
|
|
4183
|
+
* liveboardEmbed.trigger(HostEvent.CloseSpotterVizPanel);
|
|
4184
|
+
* ```
|
|
4185
|
+
*/
|
|
4186
|
+
HostEvent["CloseSpotterVizPanel"] = "CloseSpotterVizPanel";
|
|
4075
4187
|
/**
|
|
4076
4188
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
4077
4189
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
@@ -4223,6 +4335,7 @@
|
|
|
4223
4335
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
4224
4336
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
4225
4337
|
Param["OverrideOrgId"] = "orgId";
|
|
4338
|
+
Param["OverrideHistoryState"] = "overrideHistoryState";
|
|
4226
4339
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
4227
4340
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
4228
4341
|
Param["DataSourceId"] = "dataSourceId";
|
|
@@ -4243,6 +4356,7 @@
|
|
|
4243
4356
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
4244
4357
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
4245
4358
|
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
4359
|
+
Param["DefaultQueryMode"] = "defaultQueryMode";
|
|
4246
4360
|
Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
|
|
4247
4361
|
Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
|
|
4248
4362
|
Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
|
|
@@ -5996,6 +6110,72 @@
|
|
|
5996
6110
|
* @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
|
|
5997
6111
|
*/
|
|
5998
6112
|
Action["RefreshLiveboardBrowserCache"] = "refreshLiveboardBrowserCache";
|
|
6113
|
+
/**
|
|
6114
|
+
* Controls visibility and disable state of the share action
|
|
6115
|
+
* in the Spotter Analyst interface.
|
|
6116
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6117
|
+
* @example
|
|
6118
|
+
* ```js
|
|
6119
|
+
* hiddenActions: [Action.SpotterAnalystShare]
|
|
6120
|
+
* disabledActions: [Action.SpotterAnalystShare]
|
|
6121
|
+
* ```
|
|
6122
|
+
*/
|
|
6123
|
+
Action["SpotterAnalystShare"] = "spotterAnalystShare";
|
|
6124
|
+
/**
|
|
6125
|
+
* Controls visibility and disable state of the edit action
|
|
6126
|
+
* in the Spotter Analyst interface.
|
|
6127
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6128
|
+
* @example
|
|
6129
|
+
* ```js
|
|
6130
|
+
* hiddenActions: [Action.SpotterAnalystEdit]
|
|
6131
|
+
* disabledActions: [Action.SpotterAnalystEdit]
|
|
6132
|
+
* ```
|
|
6133
|
+
*/
|
|
6134
|
+
Action["SpotterAnalystEdit"] = "spotterAnalystEdit";
|
|
6135
|
+
/**
|
|
6136
|
+
* Controls visibility and disable state of the create action
|
|
6137
|
+
* in the Spotter Analyst interface.
|
|
6138
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6139
|
+
* @example
|
|
6140
|
+
* ```js
|
|
6141
|
+
* hiddenActions: [Action.SpotterAnalystCreate]
|
|
6142
|
+
* disabledActions: [Action.SpotterAnalystCreate]
|
|
6143
|
+
* ```
|
|
6144
|
+
*/
|
|
6145
|
+
Action["SpotterAnalystCreate"] = "spotterAnalystCreate";
|
|
6146
|
+
/**
|
|
6147
|
+
* Controls visibility and disable state of the delete action
|
|
6148
|
+
* in the Spotter Analyst interface.
|
|
6149
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6150
|
+
* @example
|
|
6151
|
+
* ```js
|
|
6152
|
+
* hiddenActions: [Action.SpotterAnalystDelete]
|
|
6153
|
+
* disabledActions: [Action.SpotterAnalystDelete]
|
|
6154
|
+
* ```
|
|
6155
|
+
*/
|
|
6156
|
+
Action["SpotterAnalystDelete"] = "spotterAnalystDelete";
|
|
6157
|
+
/**
|
|
6158
|
+
* Controls visibility and disable state of the make a copy action
|
|
6159
|
+
* in the Spotter Analyst interface.
|
|
6160
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6161
|
+
* @example
|
|
6162
|
+
* ```js
|
|
6163
|
+
* hiddenActions: [Action.SpotterAnalystMakeACopy]
|
|
6164
|
+
* disabledActions: [Action.SpotterAnalystMakeACopy]
|
|
6165
|
+
* ```
|
|
6166
|
+
*/
|
|
6167
|
+
Action["SpotterAnalystMakeACopy"] = "spotterAnalystMakeACopy";
|
|
6168
|
+
/**
|
|
6169
|
+
* Controls visibility and disable state of the sidebar
|
|
6170
|
+
* in the Spotter Analyst interface.
|
|
6171
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6172
|
+
* @example
|
|
6173
|
+
* ```js
|
|
6174
|
+
* hiddenActions: [Action.SpotterAnalystSidebar]
|
|
6175
|
+
* disabledActions: [Action.SpotterAnalystSidebar]
|
|
6176
|
+
* ```
|
|
6177
|
+
*/
|
|
6178
|
+
Action["SpotterAnalystSidebar"] = "spotterAnalystSidebar";
|
|
5999
6179
|
})(exports.Action || (exports.Action = {}));
|
|
6000
6180
|
exports.PrefetchFeatures = void 0;
|
|
6001
6181
|
(function (PrefetchFeatures) {
|
|
@@ -6283,6 +6463,8 @@
|
|
|
6283
6463
|
EmbedErrorCodes["UPDATEFILTERS_INVALID_PAYLOAD"] = "UPDATEFILTERS_INVALID_PAYLOAD";
|
|
6284
6464
|
/** DrillDown payload is invalid - missing or malformed points */
|
|
6285
6465
|
EmbedErrorCodes["DRILLDOWN_INVALID_PAYLOAD"] = "DRILLDOWN_INVALID_PAYLOAD";
|
|
6466
|
+
/** UpdateParameters payload is invalid - malformed applicability */
|
|
6467
|
+
EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
|
|
6286
6468
|
})(exports.EmbedErrorCodes || (exports.EmbedErrorCodes = {}));
|
|
6287
6469
|
/**
|
|
6288
6470
|
* Context types for specifying the page context when triggering host events.
|
|
@@ -6461,7 +6643,7 @@
|
|
|
6461
6643
|
TableContentDensity["Compact"] = "COMPACT";
|
|
6462
6644
|
})(exports.TableContentDensity || (exports.TableContentDensity = {}));
|
|
6463
6645
|
|
|
6464
|
-
var version$1="1.
|
|
6646
|
+
var version$1="1.50.1";var pkg = {version:version$1};
|
|
6465
6647
|
|
|
6466
6648
|
const { version } = pkg;
|
|
6467
6649
|
|
|
@@ -6637,6 +6819,7 @@
|
|
|
6637
6819
|
INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
|
|
6638
6820
|
UPDATEFILTERS_INVALID_PAYLOAD: 'UpdateFilters requires a valid filter or filters array. Expected: { filter: { column, oper, values } } or { filters: [{ column, oper, values }, ...] }',
|
|
6639
6821
|
DRILLDOWN_INVALID_PAYLOAD: 'DrillDown requires a valid points object. Expected: { points: { clickedPoint?, selectedPoints? }, autoDrillDown?, vizId? }',
|
|
6822
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD: 'UpdateParameters received an invalid applicability. Expected: { level: LIVEBOARD | TAB | GROUP, targetId } where targetId is required for TAB and GROUP levels',
|
|
6640
6823
|
};
|
|
6641
6824
|
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
6642
6825
|
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
@@ -6755,7 +6938,7 @@
|
|
|
6755
6938
|
* @returns true if the value is a valid CSS margin value, false otherwise
|
|
6756
6939
|
*/
|
|
6757
6940
|
const isValidCssMargin = (value) => {
|
|
6758
|
-
if (isUndefined(value)) {
|
|
6941
|
+
if (isUndefined$1(value)) {
|
|
6759
6942
|
return false;
|
|
6760
6943
|
}
|
|
6761
6944
|
if (typeof value !== 'string') {
|
|
@@ -6964,7 +7147,7 @@
|
|
|
6964
7147
|
element.style.removeProperty(styleProperty);
|
|
6965
7148
|
});
|
|
6966
7149
|
};
|
|
6967
|
-
const isUndefined = (value) => value === undefined;
|
|
7150
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
6968
7151
|
// Return if the value is a string, double or boolean.
|
|
6969
7152
|
const getTypeFromValue = (value) => {
|
|
6970
7153
|
if (typeof value === 'string') {
|
|
@@ -7269,7 +7452,7 @@
|
|
|
7269
7452
|
};
|
|
7270
7453
|
|
|
7271
7454
|
/** Used for built-in method references. */
|
|
7272
|
-
var objectProto$
|
|
7455
|
+
var objectProto$d = Object.prototype;
|
|
7273
7456
|
|
|
7274
7457
|
/**
|
|
7275
7458
|
* Checks if `value` is likely a prototype object.
|
|
@@ -7280,7 +7463,7 @@
|
|
|
7280
7463
|
*/
|
|
7281
7464
|
function isPrototype(value) {
|
|
7282
7465
|
var Ctor = value && value.constructor,
|
|
7283
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
7466
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$d;
|
|
7284
7467
|
|
|
7285
7468
|
return value === proto;
|
|
7286
7469
|
}
|
|
@@ -7309,10 +7492,10 @@
|
|
|
7309
7492
|
var _nativeKeys = nativeKeys;
|
|
7310
7493
|
|
|
7311
7494
|
/** Used for built-in method references. */
|
|
7312
|
-
var objectProto$
|
|
7495
|
+
var objectProto$c = Object.prototype;
|
|
7313
7496
|
|
|
7314
7497
|
/** Used to check objects for own properties. */
|
|
7315
|
-
var hasOwnProperty$
|
|
7498
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
7316
7499
|
|
|
7317
7500
|
/**
|
|
7318
7501
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -7327,7 +7510,7 @@
|
|
|
7327
7510
|
}
|
|
7328
7511
|
var result = [];
|
|
7329
7512
|
for (var key in Object(object)) {
|
|
7330
|
-
if (hasOwnProperty$
|
|
7513
|
+
if (hasOwnProperty$b.call(object, key) && key != 'constructor') {
|
|
7331
7514
|
result.push(key);
|
|
7332
7515
|
}
|
|
7333
7516
|
}
|
|
@@ -7363,17 +7546,17 @@
|
|
|
7363
7546
|
var _Symbol = Symbol$1;
|
|
7364
7547
|
|
|
7365
7548
|
/** Used for built-in method references. */
|
|
7366
|
-
var objectProto$
|
|
7549
|
+
var objectProto$b = Object.prototype;
|
|
7367
7550
|
|
|
7368
7551
|
/** Used to check objects for own properties. */
|
|
7369
|
-
var hasOwnProperty$
|
|
7552
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
7370
7553
|
|
|
7371
7554
|
/**
|
|
7372
7555
|
* Used to resolve the
|
|
7373
7556
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7374
7557
|
* of values.
|
|
7375
7558
|
*/
|
|
7376
|
-
var nativeObjectToString$1 = objectProto$
|
|
7559
|
+
var nativeObjectToString$1 = objectProto$b.toString;
|
|
7377
7560
|
|
|
7378
7561
|
/** Built-in value references. */
|
|
7379
7562
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -7386,7 +7569,7 @@
|
|
|
7386
7569
|
* @returns {string} Returns the raw `toStringTag`.
|
|
7387
7570
|
*/
|
|
7388
7571
|
function getRawTag(value) {
|
|
7389
|
-
var isOwn = hasOwnProperty$
|
|
7572
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
7390
7573
|
tag = value[symToStringTag$1];
|
|
7391
7574
|
|
|
7392
7575
|
try {
|
|
@@ -7408,14 +7591,14 @@
|
|
|
7408
7591
|
var _getRawTag = getRawTag;
|
|
7409
7592
|
|
|
7410
7593
|
/** Used for built-in method references. */
|
|
7411
|
-
var objectProto$
|
|
7594
|
+
var objectProto$a = Object.prototype;
|
|
7412
7595
|
|
|
7413
7596
|
/**
|
|
7414
7597
|
* Used to resolve the
|
|
7415
7598
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7416
7599
|
* of values.
|
|
7417
7600
|
*/
|
|
7418
|
-
var nativeObjectToString = objectProto$
|
|
7601
|
+
var nativeObjectToString = objectProto$a.toString;
|
|
7419
7602
|
|
|
7420
7603
|
/**
|
|
7421
7604
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -7547,10 +7730,10 @@
|
|
|
7547
7730
|
var _isMasked = isMasked;
|
|
7548
7731
|
|
|
7549
7732
|
/** Used for built-in method references. */
|
|
7550
|
-
var funcProto$
|
|
7733
|
+
var funcProto$2 = Function.prototype;
|
|
7551
7734
|
|
|
7552
7735
|
/** Used to resolve the decompiled source of functions. */
|
|
7553
|
-
var funcToString$
|
|
7736
|
+
var funcToString$2 = funcProto$2.toString;
|
|
7554
7737
|
|
|
7555
7738
|
/**
|
|
7556
7739
|
* Converts `func` to its source code.
|
|
@@ -7562,7 +7745,7 @@
|
|
|
7562
7745
|
function toSource(func) {
|
|
7563
7746
|
if (func != null) {
|
|
7564
7747
|
try {
|
|
7565
|
-
return funcToString$
|
|
7748
|
+
return funcToString$2.call(func);
|
|
7566
7749
|
} catch (e) {}
|
|
7567
7750
|
try {
|
|
7568
7751
|
return (func + '');
|
|
@@ -7583,18 +7766,18 @@
|
|
|
7583
7766
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
7584
7767
|
|
|
7585
7768
|
/** Used for built-in method references. */
|
|
7586
|
-
var funcProto = Function.prototype,
|
|
7587
|
-
objectProto$
|
|
7769
|
+
var funcProto$1 = Function.prototype,
|
|
7770
|
+
objectProto$9 = Object.prototype;
|
|
7588
7771
|
|
|
7589
7772
|
/** Used to resolve the decompiled source of functions. */
|
|
7590
|
-
var funcToString = funcProto.toString;
|
|
7773
|
+
var funcToString$1 = funcProto$1.toString;
|
|
7591
7774
|
|
|
7592
7775
|
/** Used to check objects for own properties. */
|
|
7593
|
-
var hasOwnProperty$
|
|
7776
|
+
var hasOwnProperty$9 = objectProto$9.hasOwnProperty;
|
|
7594
7777
|
|
|
7595
7778
|
/** Used to detect if a method is native. */
|
|
7596
7779
|
var reIsNative = RegExp('^' +
|
|
7597
|
-
funcToString.call(hasOwnProperty$
|
|
7780
|
+
funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
7598
7781
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
7599
7782
|
);
|
|
7600
7783
|
|
|
@@ -7672,7 +7855,7 @@
|
|
|
7672
7855
|
|
|
7673
7856
|
/** `Object#toString` result references. */
|
|
7674
7857
|
var mapTag$3 = '[object Map]',
|
|
7675
|
-
objectTag$
|
|
7858
|
+
objectTag$3 = '[object Object]',
|
|
7676
7859
|
promiseTag = '[object Promise]',
|
|
7677
7860
|
setTag$3 = '[object Set]',
|
|
7678
7861
|
weakMapTag$1 = '[object WeakMap]';
|
|
@@ -7703,7 +7886,7 @@
|
|
|
7703
7886
|
(_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
|
|
7704
7887
|
getTag = function(value) {
|
|
7705
7888
|
var result = _baseGetTag(value),
|
|
7706
|
-
Ctor = result == objectTag$
|
|
7889
|
+
Ctor = result == objectTag$3 ? value.constructor : undefined,
|
|
7707
7890
|
ctorString = Ctor ? _toSource(Ctor) : '';
|
|
7708
7891
|
|
|
7709
7892
|
if (ctorString) {
|
|
@@ -7768,13 +7951,13 @@
|
|
|
7768
7951
|
var _baseIsArguments = baseIsArguments;
|
|
7769
7952
|
|
|
7770
7953
|
/** Used for built-in method references. */
|
|
7771
|
-
var objectProto$
|
|
7954
|
+
var objectProto$8 = Object.prototype;
|
|
7772
7955
|
|
|
7773
7956
|
/** Used to check objects for own properties. */
|
|
7774
|
-
var hasOwnProperty$
|
|
7957
|
+
var hasOwnProperty$8 = objectProto$8.hasOwnProperty;
|
|
7775
7958
|
|
|
7776
7959
|
/** Built-in value references. */
|
|
7777
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
7960
|
+
var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
|
|
7778
7961
|
|
|
7779
7962
|
/**
|
|
7780
7963
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -7795,7 +7978,7 @@
|
|
|
7795
7978
|
* // => false
|
|
7796
7979
|
*/
|
|
7797
7980
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
7798
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
7981
|
+
return isObjectLike_1(value) && hasOwnProperty$8.call(value, 'callee') &&
|
|
7799
7982
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
7800
7983
|
};
|
|
7801
7984
|
|
|
@@ -7961,10 +8144,10 @@
|
|
|
7961
8144
|
funcTag = '[object Function]',
|
|
7962
8145
|
mapTag$2 = '[object Map]',
|
|
7963
8146
|
numberTag$1 = '[object Number]',
|
|
7964
|
-
objectTag$
|
|
8147
|
+
objectTag$2 = '[object Object]',
|
|
7965
8148
|
regexpTag$1 = '[object RegExp]',
|
|
7966
8149
|
setTag$2 = '[object Set]',
|
|
7967
|
-
stringTag$
|
|
8150
|
+
stringTag$2 = '[object String]',
|
|
7968
8151
|
weakMapTag = '[object WeakMap]';
|
|
7969
8152
|
|
|
7970
8153
|
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
@@ -7991,8 +8174,8 @@
|
|
|
7991
8174
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
|
|
7992
8175
|
typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
|
|
7993
8176
|
typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
|
|
7994
|
-
typedArrayTags[objectTag$
|
|
7995
|
-
typedArrayTags[setTag$2] = typedArrayTags[stringTag$
|
|
8177
|
+
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
|
|
8178
|
+
typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] =
|
|
7996
8179
|
typedArrayTags[weakMapTag] = false;
|
|
7997
8180
|
|
|
7998
8181
|
/**
|
|
@@ -8084,10 +8267,10 @@
|
|
|
8084
8267
|
setTag$1 = '[object Set]';
|
|
8085
8268
|
|
|
8086
8269
|
/** Used for built-in method references. */
|
|
8087
|
-
var objectProto$
|
|
8270
|
+
var objectProto$7 = Object.prototype;
|
|
8088
8271
|
|
|
8089
8272
|
/** Used to check objects for own properties. */
|
|
8090
|
-
var hasOwnProperty$
|
|
8273
|
+
var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
|
|
8091
8274
|
|
|
8092
8275
|
/**
|
|
8093
8276
|
* Checks if `value` is an empty object, collection, map, or set.
|
|
@@ -8139,7 +8322,7 @@
|
|
|
8139
8322
|
return !_baseKeys(value).length;
|
|
8140
8323
|
}
|
|
8141
8324
|
for (var key in value) {
|
|
8142
|
-
if (hasOwnProperty$
|
|
8325
|
+
if (hasOwnProperty$7.call(value, key)) {
|
|
8143
8326
|
return false;
|
|
8144
8327
|
}
|
|
8145
8328
|
}
|
|
@@ -8148,6 +8331,15 @@
|
|
|
8148
8331
|
|
|
8149
8332
|
var isEmpty_1 = isEmpty$1;
|
|
8150
8333
|
|
|
8334
|
+
/**
|
|
8335
|
+
* Levels at which a filter or parameter can be applied.
|
|
8336
|
+
*/
|
|
8337
|
+
var ApplicabilityLevel;
|
|
8338
|
+
(function (ApplicabilityLevel) {
|
|
8339
|
+
ApplicabilityLevel["Liveboard"] = "LIVEBOARD";
|
|
8340
|
+
ApplicabilityLevel["Tab"] = "TAB";
|
|
8341
|
+
ApplicabilityLevel["Group"] = "GROUP";
|
|
8342
|
+
})(ApplicabilityLevel || (ApplicabilityLevel = {}));
|
|
8151
8343
|
exports.UIPassthroughEvent = void 0;
|
|
8152
8344
|
(function (UIPassthroughEvent) {
|
|
8153
8345
|
UIPassthroughEvent["PinAnswerToLiveboard"] = "addVizToPinboard";
|
|
@@ -9385,10 +9577,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9385
9577
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
9386
9578
|
|
|
9387
9579
|
/** Used for built-in method references. */
|
|
9388
|
-
var objectProto$
|
|
9580
|
+
var objectProto$6 = Object.prototype;
|
|
9389
9581
|
|
|
9390
9582
|
/** Used to check objects for own properties. */
|
|
9391
|
-
var hasOwnProperty$
|
|
9583
|
+
var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
9392
9584
|
|
|
9393
9585
|
/**
|
|
9394
9586
|
* Gets the hash value for `key`.
|
|
@@ -9405,16 +9597,16 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9405
9597
|
var result = data[key];
|
|
9406
9598
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
9407
9599
|
}
|
|
9408
|
-
return hasOwnProperty$
|
|
9600
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
9409
9601
|
}
|
|
9410
9602
|
|
|
9411
9603
|
var _hashGet = hashGet;
|
|
9412
9604
|
|
|
9413
9605
|
/** Used for built-in method references. */
|
|
9414
|
-
var objectProto$
|
|
9606
|
+
var objectProto$5 = Object.prototype;
|
|
9415
9607
|
|
|
9416
9608
|
/** Used to check objects for own properties. */
|
|
9417
|
-
var hasOwnProperty$
|
|
9609
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
9418
9610
|
|
|
9419
9611
|
/**
|
|
9420
9612
|
* Checks if a hash value for `key` exists.
|
|
@@ -9427,7 +9619,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9427
9619
|
*/
|
|
9428
9620
|
function hashHas(key) {
|
|
9429
9621
|
var data = this.__data__;
|
|
9430
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
9622
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
9431
9623
|
}
|
|
9432
9624
|
|
|
9433
9625
|
var _hashHas = hashHas;
|
|
@@ -10402,7 +10594,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10402
10594
|
numberTag = '[object Number]',
|
|
10403
10595
|
regexpTag = '[object RegExp]',
|
|
10404
10596
|
setTag = '[object Set]',
|
|
10405
|
-
stringTag = '[object String]',
|
|
10597
|
+
stringTag$1 = '[object String]',
|
|
10406
10598
|
symbolTag = '[object Symbol]';
|
|
10407
10599
|
|
|
10408
10600
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
@@ -10457,7 +10649,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10457
10649
|
return object.name == other.name && object.message == other.message;
|
|
10458
10650
|
|
|
10459
10651
|
case regexpTag:
|
|
10460
|
-
case stringTag:
|
|
10652
|
+
case stringTag$1:
|
|
10461
10653
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
10462
10654
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
10463
10655
|
// for more details.
|
|
@@ -10565,10 +10757,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10565
10757
|
var stubArray_1 = stubArray;
|
|
10566
10758
|
|
|
10567
10759
|
/** Used for built-in method references. */
|
|
10568
|
-
var objectProto$
|
|
10760
|
+
var objectProto$4 = Object.prototype;
|
|
10569
10761
|
|
|
10570
10762
|
/** Built-in value references. */
|
|
10571
|
-
var propertyIsEnumerable = objectProto$
|
|
10763
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
10572
10764
|
|
|
10573
10765
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
10574
10766
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -10640,10 +10832,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10640
10832
|
var _isIndex = isIndex;
|
|
10641
10833
|
|
|
10642
10834
|
/** Used for built-in method references. */
|
|
10643
|
-
var objectProto$
|
|
10835
|
+
var objectProto$3 = Object.prototype;
|
|
10644
10836
|
|
|
10645
10837
|
/** Used to check objects for own properties. */
|
|
10646
|
-
var hasOwnProperty$
|
|
10838
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
10647
10839
|
|
|
10648
10840
|
/**
|
|
10649
10841
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -10663,7 +10855,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10663
10855
|
length = result.length;
|
|
10664
10856
|
|
|
10665
10857
|
for (var key in value) {
|
|
10666
|
-
if ((inherited || hasOwnProperty$
|
|
10858
|
+
if ((inherited || hasOwnProperty$4.call(value, key)) &&
|
|
10667
10859
|
!(skipIndexes && (
|
|
10668
10860
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
10669
10861
|
key == 'length' ||
|
|
@@ -10733,10 +10925,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10733
10925
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
10734
10926
|
|
|
10735
10927
|
/** Used for built-in method references. */
|
|
10736
|
-
var objectProto$
|
|
10928
|
+
var objectProto$2 = Object.prototype;
|
|
10737
10929
|
|
|
10738
10930
|
/** Used to check objects for own properties. */
|
|
10739
|
-
var hasOwnProperty$
|
|
10931
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
10740
10932
|
|
|
10741
10933
|
/**
|
|
10742
10934
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -10764,7 +10956,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10764
10956
|
var index = objLength;
|
|
10765
10957
|
while (index--) {
|
|
10766
10958
|
var key = objProps[index];
|
|
10767
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
10959
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
10768
10960
|
return false;
|
|
10769
10961
|
}
|
|
10770
10962
|
}
|
|
@@ -10824,13 +11016,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10824
11016
|
/** `Object#toString` result references. */
|
|
10825
11017
|
var argsTag = '[object Arguments]',
|
|
10826
11018
|
arrayTag = '[object Array]',
|
|
10827
|
-
objectTag = '[object Object]';
|
|
11019
|
+
objectTag$1 = '[object Object]';
|
|
10828
11020
|
|
|
10829
11021
|
/** Used for built-in method references. */
|
|
10830
|
-
var objectProto = Object.prototype;
|
|
11022
|
+
var objectProto$1 = Object.prototype;
|
|
10831
11023
|
|
|
10832
11024
|
/** Used to check objects for own properties. */
|
|
10833
|
-
var hasOwnProperty$
|
|
11025
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
10834
11026
|
|
|
10835
11027
|
/**
|
|
10836
11028
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -10852,11 +11044,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10852
11044
|
objTag = objIsArr ? arrayTag : _getTag(object),
|
|
10853
11045
|
othTag = othIsArr ? arrayTag : _getTag(other);
|
|
10854
11046
|
|
|
10855
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
10856
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
11047
|
+
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
11048
|
+
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
10857
11049
|
|
|
10858
|
-
var objIsObj = objTag == objectTag,
|
|
10859
|
-
othIsObj = othTag == objectTag,
|
|
11050
|
+
var objIsObj = objTag == objectTag$1,
|
|
11051
|
+
othIsObj = othTag == objectTag$1,
|
|
10860
11052
|
isSameTag = objTag == othTag;
|
|
10861
11053
|
|
|
10862
11054
|
if (isSameTag && isBuffer_1(object)) {
|
|
@@ -10873,8 +11065,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10873
11065
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
10874
11066
|
}
|
|
10875
11067
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
10876
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
10877
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
11068
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
|
|
11069
|
+
othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
|
|
10878
11070
|
|
|
10879
11071
|
if (objIsWrapped || othIsWrapped) {
|
|
10880
11072
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -12085,7 +12277,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12085
12277
|
var ObjProto = Object.prototype;
|
|
12086
12278
|
var slice = ArrayProto.slice;
|
|
12087
12279
|
var toString = ObjProto.toString;
|
|
12088
|
-
var hasOwnProperty = ObjProto.hasOwnProperty;
|
|
12280
|
+
var hasOwnProperty$1 = ObjProto.hasOwnProperty;
|
|
12089
12281
|
var windowConsole = window$1.console;
|
|
12090
12282
|
var navigator = window$1.navigator;
|
|
12091
12283
|
var document$1 = window$1.document;
|
|
@@ -12222,7 +12414,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12222
12414
|
}
|
|
12223
12415
|
} else {
|
|
12224
12416
|
for (var key in obj) {
|
|
12225
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12417
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12226
12418
|
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
12227
12419
|
return;
|
|
12228
12420
|
}
|
|
@@ -12258,7 +12450,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12258
12450
|
};
|
|
12259
12451
|
|
|
12260
12452
|
_.isArguments = function(obj) {
|
|
12261
|
-
return !!(obj && hasOwnProperty.call(obj, 'callee'));
|
|
12453
|
+
return !!(obj && hasOwnProperty$1.call(obj, 'callee'));
|
|
12262
12454
|
};
|
|
12263
12455
|
|
|
12264
12456
|
_.toArray = function(iterable) {
|
|
@@ -12346,7 +12538,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12346
12538
|
_.isEmptyObject = function(obj) {
|
|
12347
12539
|
if (_.isObject(obj)) {
|
|
12348
12540
|
for (var key in obj) {
|
|
12349
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12541
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12350
12542
|
return false;
|
|
12351
12543
|
}
|
|
12352
12544
|
}
|
|
@@ -12538,7 +12730,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12538
12730
|
|
|
12539
12731
|
// Iterate through all of the keys in the object.
|
|
12540
12732
|
for (k in value) {
|
|
12541
|
-
if (hasOwnProperty.call(value, k)) {
|
|
12733
|
+
if (hasOwnProperty$1.call(value, k)) {
|
|
12542
12734
|
v = str(k, value);
|
|
12543
12735
|
if (v) {
|
|
12544
12736
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
@@ -19959,6 +20151,154 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19959
20151
|
return eventData;
|
|
19960
20152
|
}
|
|
19961
20153
|
|
|
20154
|
+
/**
|
|
20155
|
+
* Checks if `value` is `null` or `undefined`.
|
|
20156
|
+
*
|
|
20157
|
+
* @static
|
|
20158
|
+
* @memberOf _
|
|
20159
|
+
* @since 4.0.0
|
|
20160
|
+
* @category Lang
|
|
20161
|
+
* @param {*} value The value to check.
|
|
20162
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
20163
|
+
* @example
|
|
20164
|
+
*
|
|
20165
|
+
* _.isNil(null);
|
|
20166
|
+
* // => true
|
|
20167
|
+
*
|
|
20168
|
+
* _.isNil(void 0);
|
|
20169
|
+
* // => true
|
|
20170
|
+
*
|
|
20171
|
+
* _.isNil(NaN);
|
|
20172
|
+
* // => false
|
|
20173
|
+
*/
|
|
20174
|
+
function isNil(value) {
|
|
20175
|
+
return value == null;
|
|
20176
|
+
}
|
|
20177
|
+
|
|
20178
|
+
var isNil_1 = isNil;
|
|
20179
|
+
|
|
20180
|
+
/** Built-in value references. */
|
|
20181
|
+
var getPrototype = _overArg(Object.getPrototypeOf, Object);
|
|
20182
|
+
|
|
20183
|
+
var _getPrototype = getPrototype;
|
|
20184
|
+
|
|
20185
|
+
/** `Object#toString` result references. */
|
|
20186
|
+
var objectTag = '[object Object]';
|
|
20187
|
+
|
|
20188
|
+
/** Used for built-in method references. */
|
|
20189
|
+
var funcProto = Function.prototype,
|
|
20190
|
+
objectProto = Object.prototype;
|
|
20191
|
+
|
|
20192
|
+
/** Used to resolve the decompiled source of functions. */
|
|
20193
|
+
var funcToString = funcProto.toString;
|
|
20194
|
+
|
|
20195
|
+
/** Used to check objects for own properties. */
|
|
20196
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
20197
|
+
|
|
20198
|
+
/** Used to infer the `Object` constructor. */
|
|
20199
|
+
var objectCtorString = funcToString.call(Object);
|
|
20200
|
+
|
|
20201
|
+
/**
|
|
20202
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
20203
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
20204
|
+
*
|
|
20205
|
+
* @static
|
|
20206
|
+
* @memberOf _
|
|
20207
|
+
* @since 0.8.0
|
|
20208
|
+
* @category Lang
|
|
20209
|
+
* @param {*} value The value to check.
|
|
20210
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
20211
|
+
* @example
|
|
20212
|
+
*
|
|
20213
|
+
* function Foo() {
|
|
20214
|
+
* this.a = 1;
|
|
20215
|
+
* }
|
|
20216
|
+
*
|
|
20217
|
+
* _.isPlainObject(new Foo);
|
|
20218
|
+
* // => false
|
|
20219
|
+
*
|
|
20220
|
+
* _.isPlainObject([1, 2, 3]);
|
|
20221
|
+
* // => false
|
|
20222
|
+
*
|
|
20223
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
20224
|
+
* // => true
|
|
20225
|
+
*
|
|
20226
|
+
* _.isPlainObject(Object.create(null));
|
|
20227
|
+
* // => true
|
|
20228
|
+
*/
|
|
20229
|
+
function isPlainObject(value) {
|
|
20230
|
+
if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag) {
|
|
20231
|
+
return false;
|
|
20232
|
+
}
|
|
20233
|
+
var proto = _getPrototype(value);
|
|
20234
|
+
if (proto === null) {
|
|
20235
|
+
return true;
|
|
20236
|
+
}
|
|
20237
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
20238
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
20239
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
20240
|
+
}
|
|
20241
|
+
|
|
20242
|
+
var isPlainObject_1 = isPlainObject;
|
|
20243
|
+
|
|
20244
|
+
/** `Object#toString` result references. */
|
|
20245
|
+
var stringTag = '[object String]';
|
|
20246
|
+
|
|
20247
|
+
/**
|
|
20248
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
20249
|
+
*
|
|
20250
|
+
* @static
|
|
20251
|
+
* @since 0.1.0
|
|
20252
|
+
* @memberOf _
|
|
20253
|
+
* @category Lang
|
|
20254
|
+
* @param {*} value The value to check.
|
|
20255
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
20256
|
+
* @example
|
|
20257
|
+
*
|
|
20258
|
+
* _.isString('abc');
|
|
20259
|
+
* // => true
|
|
20260
|
+
*
|
|
20261
|
+
* _.isString(1);
|
|
20262
|
+
* // => false
|
|
20263
|
+
*/
|
|
20264
|
+
function isString(value) {
|
|
20265
|
+
return typeof value == 'string' ||
|
|
20266
|
+
(!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
|
|
20267
|
+
}
|
|
20268
|
+
|
|
20269
|
+
var isString_1 = isString;
|
|
20270
|
+
|
|
20271
|
+
/**
|
|
20272
|
+
* Checks if `value` is `undefined`.
|
|
20273
|
+
*
|
|
20274
|
+
* @static
|
|
20275
|
+
* @since 0.1.0
|
|
20276
|
+
* @memberOf _
|
|
20277
|
+
* @category Lang
|
|
20278
|
+
* @param {*} value The value to check.
|
|
20279
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
20280
|
+
* @example
|
|
20281
|
+
*
|
|
20282
|
+
* _.isUndefined(void 0);
|
|
20283
|
+
* // => true
|
|
20284
|
+
*
|
|
20285
|
+
* _.isUndefined(null);
|
|
20286
|
+
* // => false
|
|
20287
|
+
*/
|
|
20288
|
+
function isUndefined(value) {
|
|
20289
|
+
return value === undefined;
|
|
20290
|
+
}
|
|
20291
|
+
|
|
20292
|
+
var isUndefined_1 = isUndefined;
|
|
20293
|
+
|
|
20294
|
+
const isValidApplicability = (a) => {
|
|
20295
|
+
if (isUndefined_1(a))
|
|
20296
|
+
return true;
|
|
20297
|
+
// targetId is not required at LIVEBOARD level, since the filter applies to the whole Liveboard
|
|
20298
|
+
return isPlainObject_1(a)
|
|
20299
|
+
&& Object.values(ApplicabilityLevel).includes(a.level)
|
|
20300
|
+
&& (a.level === ApplicabilityLevel.Liveboard || (isString_1(a.targetId) && a.targetId.trim().length > 0));
|
|
20301
|
+
};
|
|
19962
20302
|
function isValidUpdateFiltersPayload(payload) {
|
|
19963
20303
|
if (!payload)
|
|
19964
20304
|
return false;
|
|
@@ -19967,12 +20307,23 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19967
20307
|
const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
|
|
19968
20308
|
const hasValues = Array.isArray(f.values);
|
|
19969
20309
|
const validType = !f.type || typeof f.type === 'string';
|
|
19970
|
-
return hasColumn && hasOperator && hasValues && validType;
|
|
20310
|
+
return hasColumn && hasOperator && hasValues && validType && isValidApplicability(f.applicability);
|
|
19971
20311
|
};
|
|
19972
20312
|
const hasValidFilter = payload.filter && isValidFilter(payload.filter);
|
|
19973
20313
|
const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
|
|
19974
20314
|
return !!(hasValidFilter || hasValidFilters);
|
|
19975
20315
|
}
|
|
20316
|
+
function isValidUpdateParametersPayload(payload) {
|
|
20317
|
+
// Only validates the applicability of each parameter (null treated as absent); the rest is forwarded as-is for backward compatibility.
|
|
20318
|
+
if (!Array.isArray(payload))
|
|
20319
|
+
return true;
|
|
20320
|
+
return payload.every((p) => {
|
|
20321
|
+
if (!isPlainObject_1(p))
|
|
20322
|
+
return true;
|
|
20323
|
+
const { applicability } = p;
|
|
20324
|
+
return isNil_1(applicability) || isValidApplicability(applicability);
|
|
20325
|
+
});
|
|
20326
|
+
}
|
|
19976
20327
|
function isValidDrillDownPayload(payload) {
|
|
19977
20328
|
if (!payload)
|
|
19978
20329
|
return false;
|
|
@@ -20003,6 +20354,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20003
20354
|
}
|
|
20004
20355
|
function throwDrillDownValidationError() {
|
|
20005
20356
|
createValidationError(ERROR_MESSAGE.DRILLDOWN_INVALID_PAYLOAD);
|
|
20357
|
+
}
|
|
20358
|
+
function throwUpdateParametersValidationError() {
|
|
20359
|
+
createValidationError(ERROR_MESSAGE.UPDATEPARAMETERS_INVALID_PAYLOAD);
|
|
20006
20360
|
}
|
|
20007
20361
|
|
|
20008
20362
|
/**
|
|
@@ -20034,6 +20388,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20034
20388
|
[exports.HostEvent.Pin]: (p, c) => this.handlePinEvent(p, c),
|
|
20035
20389
|
[exports.HostEvent.SaveAnswer]: (p, c) => this.handleSaveAnswerEvent(p, c),
|
|
20036
20390
|
[exports.HostEvent.UpdateFilters]: (p, c) => this.handleUpdateFiltersEvent(p, c),
|
|
20391
|
+
[exports.HostEvent.UpdateParameters]: (p, c) => this.handleUpdateParametersEvent(p, c),
|
|
20037
20392
|
[exports.HostEvent.DrillDown]: (p, c) => this.handleDrillDownEvent(p, c),
|
|
20038
20393
|
};
|
|
20039
20394
|
}
|
|
@@ -20158,6 +20513,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20158
20513
|
}
|
|
20159
20514
|
return this.handleHostEventWithParam(exports.UIPassthroughEvent.UpdateFilters, payload, context);
|
|
20160
20515
|
}
|
|
20516
|
+
handleUpdateParametersEvent(payload, context) {
|
|
20517
|
+
if (!isValidUpdateParametersPayload(payload)) {
|
|
20518
|
+
throwUpdateParametersValidationError();
|
|
20519
|
+
}
|
|
20520
|
+
// UpdateParameters has no UI passthrough contract; dispatch over the legacy channel
|
|
20521
|
+
return this.hostEventFallback(exports.HostEvent.UpdateParameters, payload, context);
|
|
20522
|
+
}
|
|
20161
20523
|
handleDrillDownEvent(payload, context) {
|
|
20162
20524
|
if (!isValidDrillDownPayload(payload)) {
|
|
20163
20525
|
throwDrillDownValidationError();
|
|
@@ -20943,7 +21305,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20943
21305
|
if (this.embedConfig.currencyFormat) {
|
|
20944
21306
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
20945
21307
|
}
|
|
20946
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
21308
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, overrideHistoryState, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
20947
21309
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
20948
21310
|
const additionalFlags = {
|
|
20949
21311
|
...additionalFlagsFromInit,
|
|
@@ -21031,6 +21393,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21031
21393
|
if (overrideOrgId !== undefined) {
|
|
21032
21394
|
queryParams[Param.OverrideOrgId] = overrideOrgId;
|
|
21033
21395
|
}
|
|
21396
|
+
if (overrideHistoryState !== undefined) {
|
|
21397
|
+
queryParams[Param.OverrideHistoryState] = overrideHistoryState;
|
|
21398
|
+
}
|
|
21034
21399
|
if (this.isPreAuthCacheEnabled()) {
|
|
21035
21400
|
queryParams[Param.preAuthCache] = true;
|
|
21036
21401
|
}
|
|
@@ -21963,7 +22328,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21963
22328
|
* wrapper to overlay it.
|
|
21964
22329
|
*/
|
|
21965
22330
|
async showPreRender() {
|
|
21966
|
-
var _a;
|
|
22331
|
+
var _a, _b;
|
|
21967
22332
|
if (this.shouldWaitForRenderPromise)
|
|
21968
22333
|
await this.isReadyForRenderPromise;
|
|
21969
22334
|
if (!this.viewConfig.preRenderId) {
|
|
@@ -21987,10 +22352,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21987
22352
|
}
|
|
21988
22353
|
}
|
|
21989
22354
|
const placeHolderId = this.getPreRenderIds().placeHolder;
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
22355
|
+
// Remove any stale placeholder from a previous cycle. It is located
|
|
22356
|
+
// via a subtree-wide querySelector, so it may be nested deeper than a
|
|
22357
|
+
// direct child (E.g.: with fullHeight the host app can wrap it). Use
|
|
22358
|
+
// Element.remove() — which detaches from whatever the real parent is —
|
|
22359
|
+
// rather than hostElement.removeChild(), which throws NotFoundError
|
|
22360
|
+
// when the match is not a direct child. Mirrors the wrapper/child
|
|
22361
|
+
// cleanup in createPreRenderWrapper()/createPreRenderChild().
|
|
22362
|
+
(_a = this.hostElement.querySelector(`#${placeHolderId}`)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
21994
22363
|
this.hostElement.appendChild(this.insertedDomEl);
|
|
21995
22364
|
this.syncPreRenderStyle();
|
|
21996
22365
|
const customContainer = this.preRenderContainerEl && this.preRenderContainerEl !== document.body
|
|
@@ -22001,7 +22370,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22001
22370
|
customContainer.addEventListener('scroll', this.containerScrollListener);
|
|
22002
22371
|
}
|
|
22003
22372
|
if (!this.viewConfig.doNotTrackPreRenderSize) {
|
|
22004
|
-
const observeTarget = (
|
|
22373
|
+
const observeTarget = (_b = this.insertedDomEl) !== null && _b !== void 0 ? _b : this.hostElement;
|
|
22005
22374
|
this.resizeObserver = new ResizeObserver((entries) => {
|
|
22006
22375
|
entries.forEach((entry) => {
|
|
22007
22376
|
if (entry.target === observeTarget) {
|
|
@@ -22333,6 +22702,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22333
22702
|
* Monitor Alerts Page
|
|
22334
22703
|
*/
|
|
22335
22704
|
Page["Monitor"] = "monitor";
|
|
22705
|
+
/**
|
|
22706
|
+
* Collections listing page
|
|
22707
|
+
*/
|
|
22708
|
+
Page["Collections"] = "collections";
|
|
22336
22709
|
})(exports.Page || (exports.Page = {}));
|
|
22337
22710
|
/**
|
|
22338
22711
|
* Define the initial state of column custom group accordions
|
|
@@ -22503,7 +22876,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22503
22876
|
* embedded Liveboard or visualization.
|
|
22504
22877
|
*/
|
|
22505
22878
|
getEmbedParams() {
|
|
22506
|
-
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
|
|
22879
|
+
const { tag, hideTagFilterChips, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideHamburger, hideObjectSearch, hideNotification, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, newConnectionsExperience, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, showMaskedFilterChip = false, isLiveboardMasterpiecesEnabled = false, newChartsLibrary, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, dataPanelCustomGroupsAccordionInitialState = exports.DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, hideIrrelevantChipsInLiveboardTabs = false, isEnhancedFilterInteractivityEnabled = false, homePageSearchBarMode, isUnifiedSearchExperienceEnabled = true, enablePendoHelp = true, discoveryExperience, coverAndFilterOptionInPDF = false, isLiveboardStylingAndGroupingEnabled, isPNGInScheduledEmailsEnabled = false, isLiveboardXLSXCSVDownloadEnabled = false, isGranularXLSXCSVSchedulesEnabled = false, isCentralizedLiveboardFilterUXEnabled = false, isLinkParametersEnabled, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, minimumHeight, isThisPeriodInDateFiltersEnabled, enableHomepageAnnouncement = false, isContinuousLiveboardPDFEnabled = false, enableLiveboardDataCache, } = this.viewConfig;
|
|
22507
22880
|
let params = {};
|
|
22508
22881
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
22509
22882
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -22529,10 +22902,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22529
22902
|
}
|
|
22530
22903
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
22531
22904
|
params = this.getBaseQueryParams(params);
|
|
22532
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
22905
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
22533
22906
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
22534
22907
|
}
|
|
22535
|
-
if (!isUndefined(
|
|
22908
|
+
if (!isUndefined$1(defaultQueryMode)) {
|
|
22909
|
+
params[Param.DefaultQueryMode] = defaultQueryMode;
|
|
22910
|
+
}
|
|
22911
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
22536
22912
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
22537
22913
|
}
|
|
22538
22914
|
// Handle spotterChatConfig params
|
|
@@ -22679,6 +23055,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22679
23055
|
}
|
|
22680
23056
|
if (discoveryExperience.homePage === exports.HomePage.Focused) {
|
|
22681
23057
|
params[Param.HomepageVersion] = exports.HomePage.Focused;
|
|
23058
|
+
// The Focused (V4) homepage experience requires the updated
|
|
23059
|
+
// Spotter chat prompt. Enable it automatically unless the
|
|
23060
|
+
// developer has explicitly set updatedSpotterChatPrompt.
|
|
23061
|
+
if (isUndefined$1(updatedSpotterChatPrompt)) {
|
|
23062
|
+
params[Param.UpdatedSpotterChatPrompt] = true;
|
|
23063
|
+
}
|
|
22682
23064
|
}
|
|
22683
23065
|
}
|
|
22684
23066
|
const queryParams = getQueryParamString(params, true);
|
|
@@ -22717,6 +23099,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22717
23099
|
return modularHomeExperience ? 'home/spotiq-analysis' : 'insights/results';
|
|
22718
23100
|
case exports.Page.Monitor:
|
|
22719
23101
|
return modularHomeExperience ? 'home/monitor-alerts' : 'insights/monitor-alerts';
|
|
23102
|
+
case exports.Page.Collections:
|
|
23103
|
+
return 'collections';
|
|
22720
23104
|
case exports.Page.Home:
|
|
22721
23105
|
default:
|
|
22722
23106
|
return 'home';
|
|
@@ -22749,11 +23133,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22749
23133
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
22750
23134
|
*/
|
|
22751
23135
|
navigateToPage(path, noReload = false) {
|
|
23136
|
+
var _a;
|
|
22752
23137
|
if (!this.iFrame) {
|
|
22753
23138
|
logger$3.log('Please call render before invoking this method');
|
|
22754
23139
|
return;
|
|
22755
23140
|
}
|
|
22756
|
-
|
|
23141
|
+
const overrideHistoryState = (_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.overrideHistoryState;
|
|
23142
|
+
if (noReload || overrideHistoryState) {
|
|
22757
23143
|
this.trigger(exports.HostEvent.Navigate, path);
|
|
22758
23144
|
}
|
|
22759
23145
|
else {
|
|
@@ -23041,10 +23427,10 @@ query GetEurekaVizSnapshots(
|
|
|
23041
23427
|
if (preventLiveboardFilterRemoval) {
|
|
23042
23428
|
params[Param.preventLiveboardFilterRemoval] = true;
|
|
23043
23429
|
}
|
|
23044
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
23430
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
23045
23431
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
23046
23432
|
}
|
|
23047
|
-
if (!isUndefined(enableStopAnswerGenerationEmbed)) {
|
|
23433
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
23048
23434
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
23049
23435
|
}
|
|
23050
23436
|
if (visibleVizs) {
|
|
@@ -23245,7 +23631,7 @@ query GetEurekaVizSnapshots(
|
|
|
23245
23631
|
});
|
|
23246
23632
|
}
|
|
23247
23633
|
async handleRenderForPrerender() {
|
|
23248
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
23634
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
23249
23635
|
return this.prerenderGeneric();
|
|
23250
23636
|
}
|
|
23251
23637
|
return super.handleRenderForPrerender();
|
|
@@ -24164,6 +24550,15 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24164
24550
|
}
|
|
24165
24551
|
}
|
|
24166
24552
|
|
|
24553
|
+
/**
|
|
24554
|
+
* The query mode Spotter uses when answering a question.
|
|
24555
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
24556
|
+
*/
|
|
24557
|
+
exports.SpotterQueryMode = void 0;
|
|
24558
|
+
(function (SpotterQueryMode) {
|
|
24559
|
+
SpotterQueryMode["FAST_SEARCH"] = "fastSearch";
|
|
24560
|
+
SpotterQueryMode["RESEARCH"] = "research";
|
|
24561
|
+
})(exports.SpotterQueryMode || (exports.SpotterQueryMode = {}));
|
|
24167
24562
|
/**
|
|
24168
24563
|
* Embed ThoughtSpot AI Conversation.
|
|
24169
24564
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
@@ -24207,7 +24602,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24207
24602
|
return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
|
|
24208
24603
|
}
|
|
24209
24604
|
getEmbedParamsObject() {
|
|
24210
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24605
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24211
24606
|
if (!worksheetId) {
|
|
24212
24607
|
this.handleError({
|
|
24213
24608
|
errorType: exports.ErrorDetailsTypes.VALIDATION_ERROR,
|
|
@@ -24225,6 +24620,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24225
24620
|
setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
|
|
24226
24621
|
setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
|
|
24227
24622
|
setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
|
|
24623
|
+
setParamIfDefined(queryParams, Param.DefaultQueryMode, defaultQueryMode);
|
|
24228
24624
|
setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
|
|
24229
24625
|
// Handle spotterChatConfig params
|
|
24230
24626
|
if (spotterChatConfig) {
|