@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-react.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, require('react')) :
|
|
@@ -464,6 +464,13 @@
|
|
|
464
464
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
465
465
|
*/
|
|
466
466
|
HomeLeftNavItem["Favorites"] = "favorites";
|
|
467
|
+
/**
|
|
468
|
+
* The *Collections* menu option in
|
|
469
|
+
* the *Insights* left navigation panel.
|
|
470
|
+
* Shown when collections are enabled on the cluster.
|
|
471
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
472
|
+
*/
|
|
473
|
+
HomeLeftNavItem["Collections"] = "collections";
|
|
467
474
|
})(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
|
|
468
475
|
/**
|
|
469
476
|
* A map of the supported runtime filter operations
|
|
@@ -2006,6 +2013,30 @@
|
|
|
2006
2013
|
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
2007
2014
|
*/
|
|
2008
2015
|
EmbedEvent["SpotterConversationSelected"] = "spotterConversationSelected";
|
|
2016
|
+
/**
|
|
2017
|
+
* Emitted when the Spotter agent finishes streaming/rendering a response.
|
|
2018
|
+
* Includes the conversation and message identifiers so the host app can
|
|
2019
|
+
* fetch the full conversation history via the REST API if needed.
|
|
2020
|
+
*
|
|
2021
|
+
* The payload data has the shape `{ convId: string, messageId: string }`.
|
|
2022
|
+
*
|
|
2023
|
+
* Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
|
|
2024
|
+
* inside the full application).
|
|
2025
|
+
* @example
|
|
2026
|
+
* ```js
|
|
2027
|
+
* spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
2028
|
+
* console.log('Spotter response complete', payload);
|
|
2029
|
+
* })
|
|
2030
|
+
* ```
|
|
2031
|
+
* @example
|
|
2032
|
+
* ```js
|
|
2033
|
+
* appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
2034
|
+
* console.log('Spotter response complete', payload);
|
|
2035
|
+
* })
|
|
2036
|
+
* ```
|
|
2037
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
2038
|
+
*/
|
|
2039
|
+
EmbedEvent["SpotterResponseComplete"] = "spotterResponseComplete";
|
|
2009
2040
|
/**
|
|
2010
2041
|
* @hidden
|
|
2011
2042
|
* Emitted when the auth token is about to get expired and needs to be refreshed.
|
|
@@ -2030,10 +2061,11 @@
|
|
|
2030
2061
|
*/
|
|
2031
2062
|
EmbedEvent["EmbedPageContextChanged"] = "EmbedPageContextChanged";
|
|
2032
2063
|
/**
|
|
2033
|
-
* Represents a special embed event that is triggered whenever any host event is
|
|
2064
|
+
* Represents a special embed event that is triggered whenever any host event is
|
|
2065
|
+
* subscribed.
|
|
2034
2066
|
*
|
|
2035
|
-
* You can listen to this event when you need to dispatch a host event during load or
|
|
2036
|
-
* particularly in situations where timing issues may occur.
|
|
2067
|
+
* You can listen to this event when you need to dispatch a host event during load or
|
|
2068
|
+
* render, particularly in situations where timing issues may occur.
|
|
2037
2069
|
*
|
|
2038
2070
|
* @example
|
|
2039
2071
|
* ```js
|
|
@@ -3570,6 +3602,14 @@
|
|
|
3570
3602
|
/**
|
|
3571
3603
|
* Get details of filters applied on the Liveboard.
|
|
3572
3604
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
3605
|
+
* Each Liveboard filter may include an `applicability` attribute
|
|
3606
|
+
* indicating the scope of the filter. It contains a `level`
|
|
3607
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3608
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3609
|
+
* level there is no `targetId`, since the filter applies to the
|
|
3610
|
+
* whole Liveboard.
|
|
3611
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3612
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3573
3613
|
* @example
|
|
3574
3614
|
* ```js
|
|
3575
3615
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -3609,6 +3649,16 @@
|
|
|
3609
3649
|
*
|
|
3610
3650
|
* `type` - To update filters for date time, specify the date format type.
|
|
3611
3651
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
3652
|
+
*
|
|
3653
|
+
* `applicability` - Optional. Scopes the filter to a specific target,
|
|
3654
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3655
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3656
|
+
*
|
|
3657
|
+
* - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3658
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3659
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3660
|
+
* `level` is `LIVEBOARD`, since the filter applies to the whole
|
|
3661
|
+
* Liveboard.
|
|
3612
3662
|
* @example
|
|
3613
3663
|
* ```js
|
|
3614
3664
|
*
|
|
@@ -3685,6 +3735,21 @@
|
|
|
3685
3735
|
* }
|
|
3686
3736
|
* }, ContextType.Liveboard);
|
|
3687
3737
|
* ```
|
|
3738
|
+
* @example
|
|
3739
|
+
* ```js
|
|
3740
|
+
* // Scope the filter to a specific Liveboard tab
|
|
3741
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3742
|
+
* filter: {
|
|
3743
|
+
* column: "item type",
|
|
3744
|
+
* oper: "IN",
|
|
3745
|
+
* values: ["bags", "shirts"],
|
|
3746
|
+
* applicability: {
|
|
3747
|
+
* level: "TAB",
|
|
3748
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3749
|
+
* }
|
|
3750
|
+
* }
|
|
3751
|
+
* });
|
|
3752
|
+
* ```
|
|
3688
3753
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
3689
3754
|
*/
|
|
3690
3755
|
HostEvent["UpdateFilters"] = "updateFilters";
|
|
@@ -3836,6 +3901,15 @@
|
|
|
3836
3901
|
* - `name`: Name of the parameter.
|
|
3837
3902
|
* - `value`: The value to set for the parameter.
|
|
3838
3903
|
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
3904
|
+
* - `applicability`: Optional. Scopes the parameter to a specific target,
|
|
3905
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
3906
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
3907
|
+
*
|
|
3908
|
+
* - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
3909
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
3910
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
3911
|
+
* `level` is `LIVEBOARD`, since the parameter applies to the whole
|
|
3912
|
+
* Liveboard.
|
|
3839
3913
|
*
|
|
3840
3914
|
* @example
|
|
3841
3915
|
* ```js
|
|
@@ -3847,6 +3921,18 @@
|
|
|
3847
3921
|
* ```
|
|
3848
3922
|
* @example
|
|
3849
3923
|
* ```js
|
|
3924
|
+
* // Scope the parameter to a specific Liveboard tab
|
|
3925
|
+
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
3926
|
+
* name: "Integer Range Param",
|
|
3927
|
+
* value: 10,
|
|
3928
|
+
* applicability: {
|
|
3929
|
+
* level: "TAB",
|
|
3930
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
3931
|
+
* }
|
|
3932
|
+
* }])
|
|
3933
|
+
* ```
|
|
3934
|
+
* @example
|
|
3935
|
+
* ```js
|
|
3850
3936
|
* // Update parameters from liveboard context
|
|
3851
3937
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
3852
3938
|
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
@@ -3860,6 +3946,14 @@
|
|
|
3860
3946
|
HostEvent["UpdateParameters"] = "UpdateParameters";
|
|
3861
3947
|
/**
|
|
3862
3948
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
3949
|
+
* Each parameter may include an `applicability` attribute
|
|
3950
|
+
* indicating the scope of the parameter. It contains a `level`
|
|
3951
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
3952
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
3953
|
+
* level there is no `targetId`, since the parameter applies to the
|
|
3954
|
+
* whole Liveboard.
|
|
3955
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
3956
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
3863
3957
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
3864
3958
|
* ```js
|
|
3865
3959
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -4273,6 +4367,24 @@
|
|
|
4273
4367
|
* ```
|
|
4274
4368
|
*/
|
|
4275
4369
|
HostEvent["InitSpotterVizConversation"] = "InitSpotterVizConversation";
|
|
4370
|
+
/**
|
|
4371
|
+
* Opens the SpotterViz panel.
|
|
4372
|
+
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4373
|
+
* @example
|
|
4374
|
+
* ```js
|
|
4375
|
+
* liveboardEmbed.trigger(HostEvent.OpenSpotterVizPanel);
|
|
4376
|
+
* ```
|
|
4377
|
+
*/
|
|
4378
|
+
HostEvent["OpenSpotterVizPanel"] = "OpenSpotterVizPanel";
|
|
4379
|
+
/**
|
|
4380
|
+
* Closes the SpotterViz panel.
|
|
4381
|
+
* @version SDK: 1.50.0 | ThoughtSpot Cloud: 26.7.0.cl
|
|
4382
|
+
* @example
|
|
4383
|
+
* ```js
|
|
4384
|
+
* liveboardEmbed.trigger(HostEvent.CloseSpotterVizPanel);
|
|
4385
|
+
* ```
|
|
4386
|
+
*/
|
|
4387
|
+
HostEvent["CloseSpotterVizPanel"] = "CloseSpotterVizPanel";
|
|
4276
4388
|
/**
|
|
4277
4389
|
* Clears browser cache and fetches new data for liveboard ChartViz Containers.
|
|
4278
4390
|
* Requires `enableLiveboardDataCache` to be enabled.
|
|
@@ -4424,6 +4536,7 @@
|
|
|
4424
4536
|
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
4425
4537
|
Param["IsUnifiedSearchExperienceEnabled"] = "isUnifiedSearchExperienceEnabled";
|
|
4426
4538
|
Param["OverrideOrgId"] = "orgId";
|
|
4539
|
+
Param["OverrideHistoryState"] = "overrideHistoryState";
|
|
4427
4540
|
Param["OauthPollingInterval"] = "oAuthPollingInterval";
|
|
4428
4541
|
Param["IsForceRedirect"] = "isForceRedirect";
|
|
4429
4542
|
Param["DataSourceId"] = "dataSourceId";
|
|
@@ -4444,6 +4557,7 @@
|
|
|
4444
4557
|
Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
|
|
4445
4558
|
Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
|
|
4446
4559
|
Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
|
|
4560
|
+
Param["DefaultQueryMode"] = "defaultQueryMode";
|
|
4447
4561
|
Param["EnableStopAnswerGenerationEmbed"] = "enableStopAnswerGenerationEmbed";
|
|
4448
4562
|
Param["SpotterSidebarTitle"] = "spotterSidebarTitle";
|
|
4449
4563
|
Param["SpotterSidebarDefaultExpanded"] = "spotterSidebarDefaultExpanded";
|
|
@@ -6197,6 +6311,72 @@
|
|
|
6197
6311
|
* @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
|
|
6198
6312
|
*/
|
|
6199
6313
|
Action["RefreshLiveboardBrowserCache"] = "refreshLiveboardBrowserCache";
|
|
6314
|
+
/**
|
|
6315
|
+
* Controls visibility and disable state of the share action
|
|
6316
|
+
* in the Spotter Analyst interface.
|
|
6317
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6318
|
+
* @example
|
|
6319
|
+
* ```js
|
|
6320
|
+
* hiddenActions: [Action.SpotterAnalystShare]
|
|
6321
|
+
* disabledActions: [Action.SpotterAnalystShare]
|
|
6322
|
+
* ```
|
|
6323
|
+
*/
|
|
6324
|
+
Action["SpotterAnalystShare"] = "spotterAnalystShare";
|
|
6325
|
+
/**
|
|
6326
|
+
* Controls visibility and disable state of the edit action
|
|
6327
|
+
* in the Spotter Analyst interface.
|
|
6328
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6329
|
+
* @example
|
|
6330
|
+
* ```js
|
|
6331
|
+
* hiddenActions: [Action.SpotterAnalystEdit]
|
|
6332
|
+
* disabledActions: [Action.SpotterAnalystEdit]
|
|
6333
|
+
* ```
|
|
6334
|
+
*/
|
|
6335
|
+
Action["SpotterAnalystEdit"] = "spotterAnalystEdit";
|
|
6336
|
+
/**
|
|
6337
|
+
* Controls visibility and disable state of the create action
|
|
6338
|
+
* in the Spotter Analyst interface.
|
|
6339
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6340
|
+
* @example
|
|
6341
|
+
* ```js
|
|
6342
|
+
* hiddenActions: [Action.SpotterAnalystCreate]
|
|
6343
|
+
* disabledActions: [Action.SpotterAnalystCreate]
|
|
6344
|
+
* ```
|
|
6345
|
+
*/
|
|
6346
|
+
Action["SpotterAnalystCreate"] = "spotterAnalystCreate";
|
|
6347
|
+
/**
|
|
6348
|
+
* Controls visibility and disable state of the delete action
|
|
6349
|
+
* in the Spotter Analyst interface.
|
|
6350
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6351
|
+
* @example
|
|
6352
|
+
* ```js
|
|
6353
|
+
* hiddenActions: [Action.SpotterAnalystDelete]
|
|
6354
|
+
* disabledActions: [Action.SpotterAnalystDelete]
|
|
6355
|
+
* ```
|
|
6356
|
+
*/
|
|
6357
|
+
Action["SpotterAnalystDelete"] = "spotterAnalystDelete";
|
|
6358
|
+
/**
|
|
6359
|
+
* Controls visibility and disable state of the make a copy action
|
|
6360
|
+
* in the Spotter Analyst interface.
|
|
6361
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6362
|
+
* @example
|
|
6363
|
+
* ```js
|
|
6364
|
+
* hiddenActions: [Action.SpotterAnalystMakeACopy]
|
|
6365
|
+
* disabledActions: [Action.SpotterAnalystMakeACopy]
|
|
6366
|
+
* ```
|
|
6367
|
+
*/
|
|
6368
|
+
Action["SpotterAnalystMakeACopy"] = "spotterAnalystMakeACopy";
|
|
6369
|
+
/**
|
|
6370
|
+
* Controls visibility and disable state of the sidebar
|
|
6371
|
+
* in the Spotter Analyst interface.
|
|
6372
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.8.0.cl
|
|
6373
|
+
* @example
|
|
6374
|
+
* ```js
|
|
6375
|
+
* hiddenActions: [Action.SpotterAnalystSidebar]
|
|
6376
|
+
* disabledActions: [Action.SpotterAnalystSidebar]
|
|
6377
|
+
* ```
|
|
6378
|
+
*/
|
|
6379
|
+
Action["SpotterAnalystSidebar"] = "spotterAnalystSidebar";
|
|
6200
6380
|
})(exports.Action || (exports.Action = {}));
|
|
6201
6381
|
var PrefetchFeatures;
|
|
6202
6382
|
(function (PrefetchFeatures) {
|
|
@@ -6484,6 +6664,8 @@
|
|
|
6484
6664
|
EmbedErrorCodes["UPDATEFILTERS_INVALID_PAYLOAD"] = "UPDATEFILTERS_INVALID_PAYLOAD";
|
|
6485
6665
|
/** DrillDown payload is invalid - missing or malformed points */
|
|
6486
6666
|
EmbedErrorCodes["DRILLDOWN_INVALID_PAYLOAD"] = "DRILLDOWN_INVALID_PAYLOAD";
|
|
6667
|
+
/** UpdateParameters payload is invalid - malformed applicability */
|
|
6668
|
+
EmbedErrorCodes["UPDATEPARAMETERS_INVALID_PAYLOAD"] = "UPDATEPARAMETERS_INVALID_PAYLOAD";
|
|
6487
6669
|
})(EmbedErrorCodes || (EmbedErrorCodes = {}));
|
|
6488
6670
|
/**
|
|
6489
6671
|
* Context types for specifying the page context when triggering host events.
|
|
@@ -6662,7 +6844,7 @@
|
|
|
6662
6844
|
TableContentDensity["Compact"] = "COMPACT";
|
|
6663
6845
|
})(TableContentDensity || (TableContentDensity = {}));
|
|
6664
6846
|
|
|
6665
|
-
var version$1="1.
|
|
6847
|
+
var version$1="1.50.1";var pkg = {version:version$1};
|
|
6666
6848
|
|
|
6667
6849
|
const { version } = pkg;
|
|
6668
6850
|
|
|
@@ -6769,6 +6951,7 @@
|
|
|
6769
6951
|
INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
|
|
6770
6952
|
UPDATEFILTERS_INVALID_PAYLOAD: 'UpdateFilters requires a valid filter or filters array. Expected: { filter: { column, oper, values } } or { filters: [{ column, oper, values }, ...] }',
|
|
6771
6953
|
DRILLDOWN_INVALID_PAYLOAD: 'DrillDown requires a valid points object. Expected: { points: { clickedPoint?, selectedPoints? }, autoDrillDown?, vizId? }',
|
|
6954
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD: 'UpdateParameters received an invalid applicability. Expected: { level: LIVEBOARD | TAB | GROUP, targetId } where targetId is required for TAB and GROUP levels',
|
|
6772
6955
|
};
|
|
6773
6956
|
const CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
6774
6957
|
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
|
@@ -6887,7 +7070,7 @@
|
|
|
6887
7070
|
* @returns true if the value is a valid CSS margin value, false otherwise
|
|
6888
7071
|
*/
|
|
6889
7072
|
const isValidCssMargin = (value) => {
|
|
6890
|
-
if (isUndefined(value)) {
|
|
7073
|
+
if (isUndefined$1(value)) {
|
|
6891
7074
|
return false;
|
|
6892
7075
|
}
|
|
6893
7076
|
if (typeof value !== 'string') {
|
|
@@ -7096,7 +7279,7 @@
|
|
|
7096
7279
|
element.style.removeProperty(styleProperty);
|
|
7097
7280
|
});
|
|
7098
7281
|
};
|
|
7099
|
-
const isUndefined = (value) => value === undefined;
|
|
7282
|
+
const isUndefined$1 = (value) => value === undefined;
|
|
7100
7283
|
// Return if the value is a string, double or boolean.
|
|
7101
7284
|
const getTypeFromValue = (value) => {
|
|
7102
7285
|
if (typeof value === 'string') {
|
|
@@ -7401,7 +7584,7 @@
|
|
|
7401
7584
|
};
|
|
7402
7585
|
|
|
7403
7586
|
/** Used for built-in method references. */
|
|
7404
|
-
var objectProto$
|
|
7587
|
+
var objectProto$d = Object.prototype;
|
|
7405
7588
|
|
|
7406
7589
|
/**
|
|
7407
7590
|
* Checks if `value` is likely a prototype object.
|
|
@@ -7412,7 +7595,7 @@
|
|
|
7412
7595
|
*/
|
|
7413
7596
|
function isPrototype(value) {
|
|
7414
7597
|
var Ctor = value && value.constructor,
|
|
7415
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
7598
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$d;
|
|
7416
7599
|
|
|
7417
7600
|
return value === proto;
|
|
7418
7601
|
}
|
|
@@ -7441,10 +7624,10 @@
|
|
|
7441
7624
|
var _nativeKeys = nativeKeys;
|
|
7442
7625
|
|
|
7443
7626
|
/** Used for built-in method references. */
|
|
7444
|
-
var objectProto$
|
|
7627
|
+
var objectProto$c = Object.prototype;
|
|
7445
7628
|
|
|
7446
7629
|
/** Used to check objects for own properties. */
|
|
7447
|
-
var hasOwnProperty$
|
|
7630
|
+
var hasOwnProperty$b = objectProto$c.hasOwnProperty;
|
|
7448
7631
|
|
|
7449
7632
|
/**
|
|
7450
7633
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -7459,7 +7642,7 @@
|
|
|
7459
7642
|
}
|
|
7460
7643
|
var result = [];
|
|
7461
7644
|
for (var key in Object(object)) {
|
|
7462
|
-
if (hasOwnProperty$
|
|
7645
|
+
if (hasOwnProperty$b.call(object, key) && key != 'constructor') {
|
|
7463
7646
|
result.push(key);
|
|
7464
7647
|
}
|
|
7465
7648
|
}
|
|
@@ -7495,17 +7678,17 @@
|
|
|
7495
7678
|
var _Symbol = Symbol$1;
|
|
7496
7679
|
|
|
7497
7680
|
/** Used for built-in method references. */
|
|
7498
|
-
var objectProto$
|
|
7681
|
+
var objectProto$b = Object.prototype;
|
|
7499
7682
|
|
|
7500
7683
|
/** Used to check objects for own properties. */
|
|
7501
|
-
var hasOwnProperty$
|
|
7684
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
7502
7685
|
|
|
7503
7686
|
/**
|
|
7504
7687
|
* Used to resolve the
|
|
7505
7688
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7506
7689
|
* of values.
|
|
7507
7690
|
*/
|
|
7508
|
-
var nativeObjectToString$1 = objectProto$
|
|
7691
|
+
var nativeObjectToString$1 = objectProto$b.toString;
|
|
7509
7692
|
|
|
7510
7693
|
/** Built-in value references. */
|
|
7511
7694
|
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
@@ -7518,7 +7701,7 @@
|
|
|
7518
7701
|
* @returns {string} Returns the raw `toStringTag`.
|
|
7519
7702
|
*/
|
|
7520
7703
|
function getRawTag(value) {
|
|
7521
|
-
var isOwn = hasOwnProperty$
|
|
7704
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1),
|
|
7522
7705
|
tag = value[symToStringTag$1];
|
|
7523
7706
|
|
|
7524
7707
|
try {
|
|
@@ -7540,14 +7723,14 @@
|
|
|
7540
7723
|
var _getRawTag = getRawTag;
|
|
7541
7724
|
|
|
7542
7725
|
/** Used for built-in method references. */
|
|
7543
|
-
var objectProto$
|
|
7726
|
+
var objectProto$a = Object.prototype;
|
|
7544
7727
|
|
|
7545
7728
|
/**
|
|
7546
7729
|
* Used to resolve the
|
|
7547
7730
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7548
7731
|
* of values.
|
|
7549
7732
|
*/
|
|
7550
|
-
var nativeObjectToString = objectProto$
|
|
7733
|
+
var nativeObjectToString = objectProto$a.toString;
|
|
7551
7734
|
|
|
7552
7735
|
/**
|
|
7553
7736
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -7679,10 +7862,10 @@
|
|
|
7679
7862
|
var _isMasked = isMasked;
|
|
7680
7863
|
|
|
7681
7864
|
/** Used for built-in method references. */
|
|
7682
|
-
var funcProto$
|
|
7865
|
+
var funcProto$2 = Function.prototype;
|
|
7683
7866
|
|
|
7684
7867
|
/** Used to resolve the decompiled source of functions. */
|
|
7685
|
-
var funcToString$
|
|
7868
|
+
var funcToString$2 = funcProto$2.toString;
|
|
7686
7869
|
|
|
7687
7870
|
/**
|
|
7688
7871
|
* Converts `func` to its source code.
|
|
@@ -7694,7 +7877,7 @@
|
|
|
7694
7877
|
function toSource(func) {
|
|
7695
7878
|
if (func != null) {
|
|
7696
7879
|
try {
|
|
7697
|
-
return funcToString$
|
|
7880
|
+
return funcToString$2.call(func);
|
|
7698
7881
|
} catch (e) {}
|
|
7699
7882
|
try {
|
|
7700
7883
|
return (func + '');
|
|
@@ -7715,18 +7898,18 @@
|
|
|
7715
7898
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
7716
7899
|
|
|
7717
7900
|
/** Used for built-in method references. */
|
|
7718
|
-
var funcProto = Function.prototype,
|
|
7719
|
-
objectProto$
|
|
7901
|
+
var funcProto$1 = Function.prototype,
|
|
7902
|
+
objectProto$9 = Object.prototype;
|
|
7720
7903
|
|
|
7721
7904
|
/** Used to resolve the decompiled source of functions. */
|
|
7722
|
-
var funcToString = funcProto.toString;
|
|
7905
|
+
var funcToString$1 = funcProto$1.toString;
|
|
7723
7906
|
|
|
7724
7907
|
/** Used to check objects for own properties. */
|
|
7725
|
-
var hasOwnProperty$
|
|
7908
|
+
var hasOwnProperty$9 = objectProto$9.hasOwnProperty;
|
|
7726
7909
|
|
|
7727
7910
|
/** Used to detect if a method is native. */
|
|
7728
7911
|
var reIsNative = RegExp('^' +
|
|
7729
|
-
funcToString.call(hasOwnProperty$
|
|
7912
|
+
funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, '\\$&')
|
|
7730
7913
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
7731
7914
|
);
|
|
7732
7915
|
|
|
@@ -7804,7 +7987,7 @@
|
|
|
7804
7987
|
|
|
7805
7988
|
/** `Object#toString` result references. */
|
|
7806
7989
|
var mapTag$3 = '[object Map]',
|
|
7807
|
-
objectTag$
|
|
7990
|
+
objectTag$3 = '[object Object]',
|
|
7808
7991
|
promiseTag = '[object Promise]',
|
|
7809
7992
|
setTag$3 = '[object Set]',
|
|
7810
7993
|
weakMapTag$1 = '[object WeakMap]';
|
|
@@ -7835,7 +8018,7 @@
|
|
|
7835
8018
|
(_WeakMap && getTag(new _WeakMap) != weakMapTag$1)) {
|
|
7836
8019
|
getTag = function(value) {
|
|
7837
8020
|
var result = _baseGetTag(value),
|
|
7838
|
-
Ctor = result == objectTag$
|
|
8021
|
+
Ctor = result == objectTag$3 ? value.constructor : undefined,
|
|
7839
8022
|
ctorString = Ctor ? _toSource(Ctor) : '';
|
|
7840
8023
|
|
|
7841
8024
|
if (ctorString) {
|
|
@@ -7900,13 +8083,13 @@
|
|
|
7900
8083
|
var _baseIsArguments = baseIsArguments;
|
|
7901
8084
|
|
|
7902
8085
|
/** Used for built-in method references. */
|
|
7903
|
-
var objectProto$
|
|
8086
|
+
var objectProto$8 = Object.prototype;
|
|
7904
8087
|
|
|
7905
8088
|
/** Used to check objects for own properties. */
|
|
7906
|
-
var hasOwnProperty$
|
|
8089
|
+
var hasOwnProperty$8 = objectProto$8.hasOwnProperty;
|
|
7907
8090
|
|
|
7908
8091
|
/** Built-in value references. */
|
|
7909
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
8092
|
+
var propertyIsEnumerable$1 = objectProto$8.propertyIsEnumerable;
|
|
7910
8093
|
|
|
7911
8094
|
/**
|
|
7912
8095
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -7927,7 +8110,7 @@
|
|
|
7927
8110
|
* // => false
|
|
7928
8111
|
*/
|
|
7929
8112
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
7930
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
8113
|
+
return isObjectLike_1(value) && hasOwnProperty$8.call(value, 'callee') &&
|
|
7931
8114
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
7932
8115
|
};
|
|
7933
8116
|
|
|
@@ -8093,10 +8276,10 @@
|
|
|
8093
8276
|
funcTag = '[object Function]',
|
|
8094
8277
|
mapTag$2 = '[object Map]',
|
|
8095
8278
|
numberTag$1 = '[object Number]',
|
|
8096
|
-
objectTag$
|
|
8279
|
+
objectTag$2 = '[object Object]',
|
|
8097
8280
|
regexpTag$1 = '[object RegExp]',
|
|
8098
8281
|
setTag$2 = '[object Set]',
|
|
8099
|
-
stringTag$
|
|
8282
|
+
stringTag$2 = '[object String]',
|
|
8100
8283
|
weakMapTag = '[object WeakMap]';
|
|
8101
8284
|
|
|
8102
8285
|
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
@@ -8123,8 +8306,8 @@
|
|
|
8123
8306
|
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag$1] =
|
|
8124
8307
|
typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
|
|
8125
8308
|
typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
|
|
8126
|
-
typedArrayTags[objectTag$
|
|
8127
|
-
typedArrayTags[setTag$2] = typedArrayTags[stringTag$
|
|
8309
|
+
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
|
|
8310
|
+
typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] =
|
|
8128
8311
|
typedArrayTags[weakMapTag] = false;
|
|
8129
8312
|
|
|
8130
8313
|
/**
|
|
@@ -8216,10 +8399,10 @@
|
|
|
8216
8399
|
setTag$1 = '[object Set]';
|
|
8217
8400
|
|
|
8218
8401
|
/** Used for built-in method references. */
|
|
8219
|
-
var objectProto$
|
|
8402
|
+
var objectProto$7 = Object.prototype;
|
|
8220
8403
|
|
|
8221
8404
|
/** Used to check objects for own properties. */
|
|
8222
|
-
var hasOwnProperty$
|
|
8405
|
+
var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
|
|
8223
8406
|
|
|
8224
8407
|
/**
|
|
8225
8408
|
* Checks if `value` is an empty object, collection, map, or set.
|
|
@@ -8271,7 +8454,7 @@
|
|
|
8271
8454
|
return !_baseKeys(value).length;
|
|
8272
8455
|
}
|
|
8273
8456
|
for (var key in value) {
|
|
8274
|
-
if (hasOwnProperty$
|
|
8457
|
+
if (hasOwnProperty$7.call(value, key)) {
|
|
8275
8458
|
return false;
|
|
8276
8459
|
}
|
|
8277
8460
|
}
|
|
@@ -8280,6 +8463,15 @@
|
|
|
8280
8463
|
|
|
8281
8464
|
var isEmpty_1 = isEmpty$1;
|
|
8282
8465
|
|
|
8466
|
+
/**
|
|
8467
|
+
* Levels at which a filter or parameter can be applied.
|
|
8468
|
+
*/
|
|
8469
|
+
var ApplicabilityLevel;
|
|
8470
|
+
(function (ApplicabilityLevel) {
|
|
8471
|
+
ApplicabilityLevel["Liveboard"] = "LIVEBOARD";
|
|
8472
|
+
ApplicabilityLevel["Tab"] = "TAB";
|
|
8473
|
+
ApplicabilityLevel["Group"] = "GROUP";
|
|
8474
|
+
})(ApplicabilityLevel || (ApplicabilityLevel = {}));
|
|
8283
8475
|
var UIPassthroughEvent;
|
|
8284
8476
|
(function (UIPassthroughEvent) {
|
|
8285
8477
|
UIPassthroughEvent["PinAnswerToLiveboard"] = "addVizToPinboard";
|
|
@@ -9517,10 +9709,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9517
9709
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
9518
9710
|
|
|
9519
9711
|
/** Used for built-in method references. */
|
|
9520
|
-
var objectProto$
|
|
9712
|
+
var objectProto$6 = Object.prototype;
|
|
9521
9713
|
|
|
9522
9714
|
/** Used to check objects for own properties. */
|
|
9523
|
-
var hasOwnProperty$
|
|
9715
|
+
var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
|
|
9524
9716
|
|
|
9525
9717
|
/**
|
|
9526
9718
|
* Gets the hash value for `key`.
|
|
@@ -9537,16 +9729,16 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9537
9729
|
var result = data[key];
|
|
9538
9730
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
9539
9731
|
}
|
|
9540
|
-
return hasOwnProperty$
|
|
9732
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
9541
9733
|
}
|
|
9542
9734
|
|
|
9543
9735
|
var _hashGet = hashGet;
|
|
9544
9736
|
|
|
9545
9737
|
/** Used for built-in method references. */
|
|
9546
|
-
var objectProto$
|
|
9738
|
+
var objectProto$5 = Object.prototype;
|
|
9547
9739
|
|
|
9548
9740
|
/** Used to check objects for own properties. */
|
|
9549
|
-
var hasOwnProperty$
|
|
9741
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
9550
9742
|
|
|
9551
9743
|
/**
|
|
9552
9744
|
* Checks if a hash value for `key` exists.
|
|
@@ -9559,7 +9751,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9559
9751
|
*/
|
|
9560
9752
|
function hashHas(key) {
|
|
9561
9753
|
var data = this.__data__;
|
|
9562
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
9754
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
9563
9755
|
}
|
|
9564
9756
|
|
|
9565
9757
|
var _hashHas = hashHas;
|
|
@@ -10534,7 +10726,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10534
10726
|
numberTag = '[object Number]',
|
|
10535
10727
|
regexpTag = '[object RegExp]',
|
|
10536
10728
|
setTag = '[object Set]',
|
|
10537
|
-
stringTag = '[object String]',
|
|
10729
|
+
stringTag$1 = '[object String]',
|
|
10538
10730
|
symbolTag = '[object Symbol]';
|
|
10539
10731
|
|
|
10540
10732
|
var arrayBufferTag = '[object ArrayBuffer]',
|
|
@@ -10589,7 +10781,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10589
10781
|
return object.name == other.name && object.message == other.message;
|
|
10590
10782
|
|
|
10591
10783
|
case regexpTag:
|
|
10592
|
-
case stringTag:
|
|
10784
|
+
case stringTag$1:
|
|
10593
10785
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
10594
10786
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
10595
10787
|
// for more details.
|
|
@@ -10697,10 +10889,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10697
10889
|
var stubArray_1 = stubArray;
|
|
10698
10890
|
|
|
10699
10891
|
/** Used for built-in method references. */
|
|
10700
|
-
var objectProto$
|
|
10892
|
+
var objectProto$4 = Object.prototype;
|
|
10701
10893
|
|
|
10702
10894
|
/** Built-in value references. */
|
|
10703
|
-
var propertyIsEnumerable = objectProto$
|
|
10895
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
10704
10896
|
|
|
10705
10897
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
10706
10898
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -10772,10 +10964,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10772
10964
|
var _isIndex = isIndex;
|
|
10773
10965
|
|
|
10774
10966
|
/** Used for built-in method references. */
|
|
10775
|
-
var objectProto$
|
|
10967
|
+
var objectProto$3 = Object.prototype;
|
|
10776
10968
|
|
|
10777
10969
|
/** Used to check objects for own properties. */
|
|
10778
|
-
var hasOwnProperty$
|
|
10970
|
+
var hasOwnProperty$4 = objectProto$3.hasOwnProperty;
|
|
10779
10971
|
|
|
10780
10972
|
/**
|
|
10781
10973
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -10795,7 +10987,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10795
10987
|
length = result.length;
|
|
10796
10988
|
|
|
10797
10989
|
for (var key in value) {
|
|
10798
|
-
if ((inherited || hasOwnProperty$
|
|
10990
|
+
if ((inherited || hasOwnProperty$4.call(value, key)) &&
|
|
10799
10991
|
!(skipIndexes && (
|
|
10800
10992
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
10801
10993
|
key == 'length' ||
|
|
@@ -10865,10 +11057,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10865
11057
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
10866
11058
|
|
|
10867
11059
|
/** Used for built-in method references. */
|
|
10868
|
-
var objectProto$
|
|
11060
|
+
var objectProto$2 = Object.prototype;
|
|
10869
11061
|
|
|
10870
11062
|
/** Used to check objects for own properties. */
|
|
10871
|
-
var hasOwnProperty$
|
|
11063
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
10872
11064
|
|
|
10873
11065
|
/**
|
|
10874
11066
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -10896,7 +11088,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10896
11088
|
var index = objLength;
|
|
10897
11089
|
while (index--) {
|
|
10898
11090
|
var key = objProps[index];
|
|
10899
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
11091
|
+
if (!(isPartial ? key in other : hasOwnProperty$3.call(other, key))) {
|
|
10900
11092
|
return false;
|
|
10901
11093
|
}
|
|
10902
11094
|
}
|
|
@@ -10956,13 +11148,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10956
11148
|
/** `Object#toString` result references. */
|
|
10957
11149
|
var argsTag = '[object Arguments]',
|
|
10958
11150
|
arrayTag = '[object Array]',
|
|
10959
|
-
objectTag = '[object Object]';
|
|
11151
|
+
objectTag$1 = '[object Object]';
|
|
10960
11152
|
|
|
10961
11153
|
/** Used for built-in method references. */
|
|
10962
|
-
var objectProto = Object.prototype;
|
|
11154
|
+
var objectProto$1 = Object.prototype;
|
|
10963
11155
|
|
|
10964
11156
|
/** Used to check objects for own properties. */
|
|
10965
|
-
var hasOwnProperty$
|
|
11157
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
10966
11158
|
|
|
10967
11159
|
/**
|
|
10968
11160
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -10984,11 +11176,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
10984
11176
|
objTag = objIsArr ? arrayTag : _getTag(object),
|
|
10985
11177
|
othTag = othIsArr ? arrayTag : _getTag(other);
|
|
10986
11178
|
|
|
10987
|
-
objTag = objTag == argsTag ? objectTag : objTag;
|
|
10988
|
-
othTag = othTag == argsTag ? objectTag : othTag;
|
|
11179
|
+
objTag = objTag == argsTag ? objectTag$1 : objTag;
|
|
11180
|
+
othTag = othTag == argsTag ? objectTag$1 : othTag;
|
|
10989
11181
|
|
|
10990
|
-
var objIsObj = objTag == objectTag,
|
|
10991
|
-
othIsObj = othTag == objectTag,
|
|
11182
|
+
var objIsObj = objTag == objectTag$1,
|
|
11183
|
+
othIsObj = othTag == objectTag$1,
|
|
10992
11184
|
isSameTag = objTag == othTag;
|
|
10993
11185
|
|
|
10994
11186
|
if (isSameTag && isBuffer_1(object)) {
|
|
@@ -11005,8 +11197,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
11005
11197
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
11006
11198
|
}
|
|
11007
11199
|
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
11008
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
11009
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
11200
|
+
var objIsWrapped = objIsObj && hasOwnProperty$2.call(object, '__wrapped__'),
|
|
11201
|
+
othIsWrapped = othIsObj && hasOwnProperty$2.call(other, '__wrapped__');
|
|
11010
11202
|
|
|
11011
11203
|
if (objIsWrapped || othIsWrapped) {
|
|
11012
11204
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -12217,7 +12409,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12217
12409
|
var ObjProto = Object.prototype;
|
|
12218
12410
|
var slice = ArrayProto.slice;
|
|
12219
12411
|
var toString = ObjProto.toString;
|
|
12220
|
-
var hasOwnProperty = ObjProto.hasOwnProperty;
|
|
12412
|
+
var hasOwnProperty$1 = ObjProto.hasOwnProperty;
|
|
12221
12413
|
var windowConsole = window$1.console;
|
|
12222
12414
|
var navigator = window$1.navigator;
|
|
12223
12415
|
var document$1 = window$1.document;
|
|
@@ -12354,7 +12546,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12354
12546
|
}
|
|
12355
12547
|
} else {
|
|
12356
12548
|
for (var key in obj) {
|
|
12357
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12549
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12358
12550
|
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
12359
12551
|
return;
|
|
12360
12552
|
}
|
|
@@ -12390,7 +12582,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12390
12582
|
};
|
|
12391
12583
|
|
|
12392
12584
|
_.isArguments = function(obj) {
|
|
12393
|
-
return !!(obj && hasOwnProperty.call(obj, 'callee'));
|
|
12585
|
+
return !!(obj && hasOwnProperty$1.call(obj, 'callee'));
|
|
12394
12586
|
};
|
|
12395
12587
|
|
|
12396
12588
|
_.toArray = function(iterable) {
|
|
@@ -12478,7 +12670,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12478
12670
|
_.isEmptyObject = function(obj) {
|
|
12479
12671
|
if (_.isObject(obj)) {
|
|
12480
12672
|
for (var key in obj) {
|
|
12481
|
-
if (hasOwnProperty.call(obj, key)) {
|
|
12673
|
+
if (hasOwnProperty$1.call(obj, key)) {
|
|
12482
12674
|
return false;
|
|
12483
12675
|
}
|
|
12484
12676
|
}
|
|
@@ -12670,7 +12862,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
12670
12862
|
|
|
12671
12863
|
// Iterate through all of the keys in the object.
|
|
12672
12864
|
for (k in value) {
|
|
12673
|
-
if (hasOwnProperty.call(value, k)) {
|
|
12865
|
+
if (hasOwnProperty$1.call(value, k)) {
|
|
12674
12866
|
v = str(k, value);
|
|
12675
12867
|
if (v) {
|
|
12676
12868
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
@@ -19909,6 +20101,154 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19909
20101
|
return eventData;
|
|
19910
20102
|
}
|
|
19911
20103
|
|
|
20104
|
+
/**
|
|
20105
|
+
* Checks if `value` is `null` or `undefined`.
|
|
20106
|
+
*
|
|
20107
|
+
* @static
|
|
20108
|
+
* @memberOf _
|
|
20109
|
+
* @since 4.0.0
|
|
20110
|
+
* @category Lang
|
|
20111
|
+
* @param {*} value The value to check.
|
|
20112
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
|
20113
|
+
* @example
|
|
20114
|
+
*
|
|
20115
|
+
* _.isNil(null);
|
|
20116
|
+
* // => true
|
|
20117
|
+
*
|
|
20118
|
+
* _.isNil(void 0);
|
|
20119
|
+
* // => true
|
|
20120
|
+
*
|
|
20121
|
+
* _.isNil(NaN);
|
|
20122
|
+
* // => false
|
|
20123
|
+
*/
|
|
20124
|
+
function isNil(value) {
|
|
20125
|
+
return value == null;
|
|
20126
|
+
}
|
|
20127
|
+
|
|
20128
|
+
var isNil_1 = isNil;
|
|
20129
|
+
|
|
20130
|
+
/** Built-in value references. */
|
|
20131
|
+
var getPrototype = _overArg(Object.getPrototypeOf, Object);
|
|
20132
|
+
|
|
20133
|
+
var _getPrototype = getPrototype;
|
|
20134
|
+
|
|
20135
|
+
/** `Object#toString` result references. */
|
|
20136
|
+
var objectTag = '[object Object]';
|
|
20137
|
+
|
|
20138
|
+
/** Used for built-in method references. */
|
|
20139
|
+
var funcProto = Function.prototype,
|
|
20140
|
+
objectProto = Object.prototype;
|
|
20141
|
+
|
|
20142
|
+
/** Used to resolve the decompiled source of functions. */
|
|
20143
|
+
var funcToString = funcProto.toString;
|
|
20144
|
+
|
|
20145
|
+
/** Used to check objects for own properties. */
|
|
20146
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
20147
|
+
|
|
20148
|
+
/** Used to infer the `Object` constructor. */
|
|
20149
|
+
var objectCtorString = funcToString.call(Object);
|
|
20150
|
+
|
|
20151
|
+
/**
|
|
20152
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
20153
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
20154
|
+
*
|
|
20155
|
+
* @static
|
|
20156
|
+
* @memberOf _
|
|
20157
|
+
* @since 0.8.0
|
|
20158
|
+
* @category Lang
|
|
20159
|
+
* @param {*} value The value to check.
|
|
20160
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
20161
|
+
* @example
|
|
20162
|
+
*
|
|
20163
|
+
* function Foo() {
|
|
20164
|
+
* this.a = 1;
|
|
20165
|
+
* }
|
|
20166
|
+
*
|
|
20167
|
+
* _.isPlainObject(new Foo);
|
|
20168
|
+
* // => false
|
|
20169
|
+
*
|
|
20170
|
+
* _.isPlainObject([1, 2, 3]);
|
|
20171
|
+
* // => false
|
|
20172
|
+
*
|
|
20173
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
20174
|
+
* // => true
|
|
20175
|
+
*
|
|
20176
|
+
* _.isPlainObject(Object.create(null));
|
|
20177
|
+
* // => true
|
|
20178
|
+
*/
|
|
20179
|
+
function isPlainObject(value) {
|
|
20180
|
+
if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag) {
|
|
20181
|
+
return false;
|
|
20182
|
+
}
|
|
20183
|
+
var proto = _getPrototype(value);
|
|
20184
|
+
if (proto === null) {
|
|
20185
|
+
return true;
|
|
20186
|
+
}
|
|
20187
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
20188
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
20189
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
20190
|
+
}
|
|
20191
|
+
|
|
20192
|
+
var isPlainObject_1 = isPlainObject;
|
|
20193
|
+
|
|
20194
|
+
/** `Object#toString` result references. */
|
|
20195
|
+
var stringTag = '[object String]';
|
|
20196
|
+
|
|
20197
|
+
/**
|
|
20198
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
20199
|
+
*
|
|
20200
|
+
* @static
|
|
20201
|
+
* @since 0.1.0
|
|
20202
|
+
* @memberOf _
|
|
20203
|
+
* @category Lang
|
|
20204
|
+
* @param {*} value The value to check.
|
|
20205
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
20206
|
+
* @example
|
|
20207
|
+
*
|
|
20208
|
+
* _.isString('abc');
|
|
20209
|
+
* // => true
|
|
20210
|
+
*
|
|
20211
|
+
* _.isString(1);
|
|
20212
|
+
* // => false
|
|
20213
|
+
*/
|
|
20214
|
+
function isString(value) {
|
|
20215
|
+
return typeof value == 'string' ||
|
|
20216
|
+
(!isArray_1(value) && isObjectLike_1(value) && _baseGetTag(value) == stringTag);
|
|
20217
|
+
}
|
|
20218
|
+
|
|
20219
|
+
var isString_1 = isString;
|
|
20220
|
+
|
|
20221
|
+
/**
|
|
20222
|
+
* Checks if `value` is `undefined`.
|
|
20223
|
+
*
|
|
20224
|
+
* @static
|
|
20225
|
+
* @since 0.1.0
|
|
20226
|
+
* @memberOf _
|
|
20227
|
+
* @category Lang
|
|
20228
|
+
* @param {*} value The value to check.
|
|
20229
|
+
* @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
|
|
20230
|
+
* @example
|
|
20231
|
+
*
|
|
20232
|
+
* _.isUndefined(void 0);
|
|
20233
|
+
* // => true
|
|
20234
|
+
*
|
|
20235
|
+
* _.isUndefined(null);
|
|
20236
|
+
* // => false
|
|
20237
|
+
*/
|
|
20238
|
+
function isUndefined(value) {
|
|
20239
|
+
return value === undefined;
|
|
20240
|
+
}
|
|
20241
|
+
|
|
20242
|
+
var isUndefined_1 = isUndefined;
|
|
20243
|
+
|
|
20244
|
+
const isValidApplicability = (a) => {
|
|
20245
|
+
if (isUndefined_1(a))
|
|
20246
|
+
return true;
|
|
20247
|
+
// targetId is not required at LIVEBOARD level, since the filter applies to the whole Liveboard
|
|
20248
|
+
return isPlainObject_1(a)
|
|
20249
|
+
&& Object.values(ApplicabilityLevel).includes(a.level)
|
|
20250
|
+
&& (a.level === ApplicabilityLevel.Liveboard || (isString_1(a.targetId) && a.targetId.trim().length > 0));
|
|
20251
|
+
};
|
|
19912
20252
|
function isValidUpdateFiltersPayload(payload) {
|
|
19913
20253
|
if (!payload)
|
|
19914
20254
|
return false;
|
|
@@ -19917,12 +20257,23 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19917
20257
|
const hasOperator = typeof f.oper === 'string' || typeof f.operator === 'string';
|
|
19918
20258
|
const hasValues = Array.isArray(f.values);
|
|
19919
20259
|
const validType = !f.type || typeof f.type === 'string';
|
|
19920
|
-
return hasColumn && hasOperator && hasValues && validType;
|
|
20260
|
+
return hasColumn && hasOperator && hasValues && validType && isValidApplicability(f.applicability);
|
|
19921
20261
|
};
|
|
19922
20262
|
const hasValidFilter = payload.filter && isValidFilter(payload.filter);
|
|
19923
20263
|
const hasValidFilters = Array.isArray(payload.filters) && payload.filters.length > 0 && payload.filters.every(isValidFilter);
|
|
19924
20264
|
return !!(hasValidFilter || hasValidFilters);
|
|
19925
20265
|
}
|
|
20266
|
+
function isValidUpdateParametersPayload(payload) {
|
|
20267
|
+
// Only validates the applicability of each parameter (null treated as absent); the rest is forwarded as-is for backward compatibility.
|
|
20268
|
+
if (!Array.isArray(payload))
|
|
20269
|
+
return true;
|
|
20270
|
+
return payload.every((p) => {
|
|
20271
|
+
if (!isPlainObject_1(p))
|
|
20272
|
+
return true;
|
|
20273
|
+
const { applicability } = p;
|
|
20274
|
+
return isNil_1(applicability) || isValidApplicability(applicability);
|
|
20275
|
+
});
|
|
20276
|
+
}
|
|
19926
20277
|
function isValidDrillDownPayload(payload) {
|
|
19927
20278
|
if (!payload)
|
|
19928
20279
|
return false;
|
|
@@ -19953,6 +20304,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19953
20304
|
}
|
|
19954
20305
|
function throwDrillDownValidationError() {
|
|
19955
20306
|
createValidationError(ERROR_MESSAGE.DRILLDOWN_INVALID_PAYLOAD);
|
|
20307
|
+
}
|
|
20308
|
+
function throwUpdateParametersValidationError() {
|
|
20309
|
+
createValidationError(ERROR_MESSAGE.UPDATEPARAMETERS_INVALID_PAYLOAD);
|
|
19956
20310
|
}
|
|
19957
20311
|
|
|
19958
20312
|
/**
|
|
@@ -19984,6 +20338,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
19984
20338
|
[exports.HostEvent.Pin]: (p, c) => this.handlePinEvent(p, c),
|
|
19985
20339
|
[exports.HostEvent.SaveAnswer]: (p, c) => this.handleSaveAnswerEvent(p, c),
|
|
19986
20340
|
[exports.HostEvent.UpdateFilters]: (p, c) => this.handleUpdateFiltersEvent(p, c),
|
|
20341
|
+
[exports.HostEvent.UpdateParameters]: (p, c) => this.handleUpdateParametersEvent(p, c),
|
|
19987
20342
|
[exports.HostEvent.DrillDown]: (p, c) => this.handleDrillDownEvent(p, c),
|
|
19988
20343
|
};
|
|
19989
20344
|
}
|
|
@@ -20108,6 +20463,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20108
20463
|
}
|
|
20109
20464
|
return this.handleHostEventWithParam(UIPassthroughEvent.UpdateFilters, payload, context);
|
|
20110
20465
|
}
|
|
20466
|
+
handleUpdateParametersEvent(payload, context) {
|
|
20467
|
+
if (!isValidUpdateParametersPayload(payload)) {
|
|
20468
|
+
throwUpdateParametersValidationError();
|
|
20469
|
+
}
|
|
20470
|
+
// UpdateParameters has no UI passthrough contract; dispatch over the legacy channel
|
|
20471
|
+
return this.hostEventFallback(exports.HostEvent.UpdateParameters, payload, context);
|
|
20472
|
+
}
|
|
20111
20473
|
handleDrillDownEvent(payload, context) {
|
|
20112
20474
|
if (!isValidDrillDownPayload(payload)) {
|
|
20113
20475
|
throwDrillDownValidationError();
|
|
@@ -20893,7 +21255,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20893
21255
|
if (this.embedConfig.currencyFormat) {
|
|
20894
21256
|
queryParams[Param.CurrencyFormat] = this.embedConfig.currencyFormat;
|
|
20895
21257
|
}
|
|
20896
|
-
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
21258
|
+
const { disabledActions, disabledActionReason, hiddenActions, visibleActions, hiddenTabs, visibleTabs, showAlerts, additionalFlags: additionalFlagsFromView, locale, customizations, contextMenuTrigger, linkOverride, enableLinkOverridesV2, insertInToSlide, disableRedirectionLinksInNewTab, overrideOrgId, overrideHistoryState, exposeTranslationIDs, primaryAction, } = this.viewConfig;
|
|
20897
21259
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
20898
21260
|
const additionalFlags = {
|
|
20899
21261
|
...additionalFlagsFromInit,
|
|
@@ -20981,6 +21343,9 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20981
21343
|
if (overrideOrgId !== undefined) {
|
|
20982
21344
|
queryParams[Param.OverrideOrgId] = overrideOrgId;
|
|
20983
21345
|
}
|
|
21346
|
+
if (overrideHistoryState !== undefined) {
|
|
21347
|
+
queryParams[Param.OverrideHistoryState] = overrideHistoryState;
|
|
21348
|
+
}
|
|
20984
21349
|
if (this.isPreAuthCacheEnabled()) {
|
|
20985
21350
|
queryParams[Param.preAuthCache] = true;
|
|
20986
21351
|
}
|
|
@@ -21913,7 +22278,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21913
22278
|
* wrapper to overlay it.
|
|
21914
22279
|
*/
|
|
21915
22280
|
async showPreRender() {
|
|
21916
|
-
var _a;
|
|
22281
|
+
var _a, _b;
|
|
21917
22282
|
if (this.shouldWaitForRenderPromise)
|
|
21918
22283
|
await this.isReadyForRenderPromise;
|
|
21919
22284
|
if (!this.viewConfig.preRenderId) {
|
|
@@ -21937,10 +22302,14 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21937
22302
|
}
|
|
21938
22303
|
}
|
|
21939
22304
|
const placeHolderId = this.getPreRenderIds().placeHolder;
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
22305
|
+
// Remove any stale placeholder from a previous cycle. It is located
|
|
22306
|
+
// via a subtree-wide querySelector, so it may be nested deeper than a
|
|
22307
|
+
// direct child (E.g.: with fullHeight the host app can wrap it). Use
|
|
22308
|
+
// Element.remove() — which detaches from whatever the real parent is —
|
|
22309
|
+
// rather than hostElement.removeChild(), which throws NotFoundError
|
|
22310
|
+
// when the match is not a direct child. Mirrors the wrapper/child
|
|
22311
|
+
// cleanup in createPreRenderWrapper()/createPreRenderChild().
|
|
22312
|
+
(_a = this.hostElement.querySelector(`#${placeHolderId}`)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
21944
22313
|
this.hostElement.appendChild(this.insertedDomEl);
|
|
21945
22314
|
this.syncPreRenderStyle();
|
|
21946
22315
|
const customContainer = this.preRenderContainerEl && this.preRenderContainerEl !== document.body
|
|
@@ -21951,7 +22320,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21951
22320
|
customContainer.addEventListener('scroll', this.containerScrollListener);
|
|
21952
22321
|
}
|
|
21953
22322
|
if (!this.viewConfig.doNotTrackPreRenderSize) {
|
|
21954
|
-
const observeTarget = (
|
|
22323
|
+
const observeTarget = (_b = this.insertedDomEl) !== null && _b !== void 0 ? _b : this.hostElement;
|
|
21955
22324
|
this.resizeObserver = new ResizeObserver((entries) => {
|
|
21956
22325
|
entries.forEach((entry) => {
|
|
21957
22326
|
if (entry.target === observeTarget) {
|
|
@@ -22555,6 +22924,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22555
22924
|
* Monitor Alerts Page
|
|
22556
22925
|
*/
|
|
22557
22926
|
Page["Monitor"] = "monitor";
|
|
22927
|
+
/**
|
|
22928
|
+
* Collections listing page
|
|
22929
|
+
*/
|
|
22930
|
+
Page["Collections"] = "collections";
|
|
22558
22931
|
})(exports.Page || (exports.Page = {}));
|
|
22559
22932
|
/**
|
|
22560
22933
|
* Define the initial state of column custom group accordions
|
|
@@ -22725,7 +23098,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22725
23098
|
* embedded Liveboard or visualization.
|
|
22726
23099
|
*/
|
|
22727
23100
|
getEmbedParams() {
|
|
22728
|
-
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 = 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;
|
|
23101
|
+
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 = 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;
|
|
22729
23102
|
let params = {};
|
|
22730
23103
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
22731
23104
|
params[Param.HideProfleAndHelp] = !!disableProfileAndHelp;
|
|
@@ -22751,10 +23124,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22751
23124
|
}
|
|
22752
23125
|
params[Param.CoverAndFilterOptionInPDF] = !!coverAndFilterOptionInPDF;
|
|
22753
23126
|
params = this.getBaseQueryParams(params);
|
|
22754
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
23127
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
22755
23128
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
22756
23129
|
}
|
|
22757
|
-
if (!isUndefined(
|
|
23130
|
+
if (!isUndefined$1(defaultQueryMode)) {
|
|
23131
|
+
params[Param.DefaultQueryMode] = defaultQueryMode;
|
|
23132
|
+
}
|
|
23133
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
22758
23134
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
22759
23135
|
}
|
|
22760
23136
|
// Handle spotterChatConfig params
|
|
@@ -22901,6 +23277,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22901
23277
|
}
|
|
22902
23278
|
if (discoveryExperience.homePage === HomePage.Focused) {
|
|
22903
23279
|
params[Param.HomepageVersion] = HomePage.Focused;
|
|
23280
|
+
// The Focused (V4) homepage experience requires the updated
|
|
23281
|
+
// Spotter chat prompt. Enable it automatically unless the
|
|
23282
|
+
// developer has explicitly set updatedSpotterChatPrompt.
|
|
23283
|
+
if (isUndefined$1(updatedSpotterChatPrompt)) {
|
|
23284
|
+
params[Param.UpdatedSpotterChatPrompt] = true;
|
|
23285
|
+
}
|
|
22904
23286
|
}
|
|
22905
23287
|
}
|
|
22906
23288
|
const queryParams = getQueryParamString(params, true);
|
|
@@ -22939,6 +23321,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22939
23321
|
return modularHomeExperience ? 'home/spotiq-analysis' : 'insights/results';
|
|
22940
23322
|
case exports.Page.Monitor:
|
|
22941
23323
|
return modularHomeExperience ? 'home/monitor-alerts' : 'insights/monitor-alerts';
|
|
23324
|
+
case exports.Page.Collections:
|
|
23325
|
+
return 'collections';
|
|
22942
23326
|
case exports.Page.Home:
|
|
22943
23327
|
default:
|
|
22944
23328
|
return 'home';
|
|
@@ -22971,11 +23355,13 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
22971
23355
|
* @version SDK: 1.12.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
22972
23356
|
*/
|
|
22973
23357
|
navigateToPage(path, noReload = false) {
|
|
23358
|
+
var _a;
|
|
22974
23359
|
if (!this.iFrame) {
|
|
22975
23360
|
logger$3.log('Please call render before invoking this method');
|
|
22976
23361
|
return;
|
|
22977
23362
|
}
|
|
22978
|
-
|
|
23363
|
+
const overrideHistoryState = (_a = this.viewConfig) === null || _a === void 0 ? void 0 : _a.overrideHistoryState;
|
|
23364
|
+
if (noReload || overrideHistoryState) {
|
|
22979
23365
|
this.trigger(exports.HostEvent.Navigate, path);
|
|
22980
23366
|
}
|
|
22981
23367
|
else {
|
|
@@ -23263,10 +23649,10 @@ query GetEurekaVizSnapshots(
|
|
|
23263
23649
|
if (preventLiveboardFilterRemoval) {
|
|
23264
23650
|
params[Param.preventLiveboardFilterRemoval] = true;
|
|
23265
23651
|
}
|
|
23266
|
-
if (!isUndefined(updatedSpotterChatPrompt)) {
|
|
23652
|
+
if (!isUndefined$1(updatedSpotterChatPrompt)) {
|
|
23267
23653
|
params[Param.UpdatedSpotterChatPrompt] = !!updatedSpotterChatPrompt;
|
|
23268
23654
|
}
|
|
23269
|
-
if (!isUndefined(enableStopAnswerGenerationEmbed)) {
|
|
23655
|
+
if (!isUndefined$1(enableStopAnswerGenerationEmbed)) {
|
|
23270
23656
|
params[Param.EnableStopAnswerGenerationEmbed] = !!enableStopAnswerGenerationEmbed;
|
|
23271
23657
|
}
|
|
23272
23658
|
if (visibleVizs) {
|
|
@@ -23467,7 +23853,7 @@ query GetEurekaVizSnapshots(
|
|
|
23467
23853
|
});
|
|
23468
23854
|
}
|
|
23469
23855
|
async handleRenderForPrerender() {
|
|
23470
|
-
if (isUndefined(this.viewConfig.liveboardId)) {
|
|
23856
|
+
if (isUndefined$1(this.viewConfig.liveboardId)) {
|
|
23471
23857
|
return this.prerenderGeneric();
|
|
23472
23858
|
}
|
|
23473
23859
|
return super.handleRenderForPrerender();
|
|
@@ -24104,6 +24490,15 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24104
24490
|
});
|
|
24105
24491
|
}
|
|
24106
24492
|
|
|
24493
|
+
/**
|
|
24494
|
+
* The query mode Spotter uses when answering a question.
|
|
24495
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
24496
|
+
*/
|
|
24497
|
+
var SpotterQueryMode;
|
|
24498
|
+
(function (SpotterQueryMode) {
|
|
24499
|
+
SpotterQueryMode["FAST_SEARCH"] = "fastSearch";
|
|
24500
|
+
SpotterQueryMode["RESEARCH"] = "research";
|
|
24501
|
+
})(SpotterQueryMode || (SpotterQueryMode = {}));
|
|
24107
24502
|
/**
|
|
24108
24503
|
* Embed ThoughtSpot AI Conversation.
|
|
24109
24504
|
* @version SDK: 1.37.0 | ThoughtSpot: 10.9.0.cl
|
|
@@ -24147,7 +24542,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24147
24542
|
return buildSpotterSidebarAppInitData(defaultAppInitData, this.viewConfig, this.handleError.bind(this));
|
|
24148
24543
|
}
|
|
24149
24544
|
getEmbedParamsObject() {
|
|
24150
|
-
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24545
|
+
const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, dataPanelV2, showSpotterLimitations, hideSampleQuestions, runtimeFilters, excludeRuntimeFiltersfromURL, runtimeParameters, excludeRuntimeParametersfromURL, updatedSpotterChatPrompt, defaultQueryMode, enableStopAnswerGenerationEmbed, spotterChatConfig, } = this.viewConfig;
|
|
24151
24546
|
if (!worksheetId) {
|
|
24152
24547
|
this.handleError({
|
|
24153
24548
|
errorType: ErrorDetailsTypes.VALIDATION_ERROR,
|
|
@@ -24165,6 +24560,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
|
|
|
24165
24560
|
setParamIfDefined(queryParams, Param.ShowSpotterLimitations, showSpotterLimitations, true);
|
|
24166
24561
|
setParamIfDefined(queryParams, Param.HideSampleQuestions, hideSampleQuestions, true);
|
|
24167
24562
|
setParamIfDefined(queryParams, Param.UpdatedSpotterChatPrompt, updatedSpotterChatPrompt, true);
|
|
24563
|
+
setParamIfDefined(queryParams, Param.DefaultQueryMode, defaultQueryMode);
|
|
24168
24564
|
setParamIfDefined(queryParams, Param.EnableStopAnswerGenerationEmbed, enableStopAnswerGenerationEmbed, true);
|
|
24169
24565
|
// Handle spotterChatConfig params
|
|
24170
24566
|
if (spotterChatConfig) {
|