@thoughtspot/visual-embed-sdk 1.50.0 → 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/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 +13 -2
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +101 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +26 -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 +23 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- 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.js +106 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -1
- 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/react/util.spec.js +251 -0
- package/cjs/src/react/util.spec.js.map +1 -1
- package/cjs/src/types.d.ts +119 -2
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +97 -0
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +93 -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/dist/{index-B5xoN6Cp.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 +26 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- 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 +119 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +389 -84
- package/dist/tsembed-react.js +388 -83
- package/dist/tsembed.es.js +390 -85
- package/dist/tsembed.js +388 -83
- package/dist/visual-embed-sdk-react-full.d.ts +302 -17
- package/dist/visual-embed-sdk-react.d.ts +302 -17
- package/dist/visual-embed-sdk.d.ts +306 -17
- package/lib/package.json +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 +13 -2
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +101 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +26 -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 +24 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- 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.js +107 -1
- package/lib/src/embed/host-events.spec.js.map +1 -1
- 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/react/util.spec.js +251 -0
- package/lib/src/react/util.spec.js.map +1 -1
- package/lib/src/types.d.ts +119 -2
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +97 -0
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/processData.spec.js +93 -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/visual-embed-sdk.d.ts +306 -17
- package/package.json +1 -1
- package/src/css-variables.ts +73 -0
- package/src/embed/app.spec.ts +140 -0
- package/src/embed/app.ts +38 -2
- package/src/embed/conversation.spec.ts +32 -1
- package/src/embed/conversation.ts +29 -0
- package/src/embed/events.spec.ts +705 -1
- package/src/embed/host-events.spec.ts +124 -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/react/util.spec.tsx +255 -0
- package/src/types.ts +119 -0
- package/src/utils/processData.spec.ts +97 -0
- package/src/utils/processTrigger.spec.ts +91 -0
package/cjs/src/errors.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const ERROR_MESSAGE: {
|
|
|
31
31
|
INVALID_SPOTTER_DOCUMENTATION_URL: string;
|
|
32
32
|
UPDATEFILTERS_INVALID_PAYLOAD: string;
|
|
33
33
|
DRILLDOWN_INVALID_PAYLOAD: string;
|
|
34
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD: string;
|
|
34
35
|
};
|
|
35
36
|
export declare const CUSTOM_ACTIONS_ERROR_MESSAGE: {
|
|
36
37
|
INVALID_ACTION_OBJECT: string;
|
package/cjs/src/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCzB,CAAC;AAEF,eAAO,MAAM,4BAA4B;;kCAEP,MAAM,iBAAiB,MAAM,EAAE;6BACpC,MAAM,cAAc,MAAM;iCACtB,MAAM,cAAc,MAAM,sBAAsB,MAAM;uCAChD,MAAM,cAAc,MAAM,EAAE,gBAAgB,MAAM;yCAChD,MAAM,cAAc,MAAM,EAAE,gBAAgB,MAAM;iCAC1D,MAAM,iBAAiB,MAAM,EAAE,mBAAmB,MAAM;wBACjE,MAAM,kBAAkB,MAAM,EAAE,YAAY,MAAM;CACzE,CAAC"}
|
package/cjs/src/errors.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.ERROR_MESSAGE = {
|
|
|
34
34
|
INVALID_SPOTTER_DOCUMENTATION_URL: 'Invalid spotterDocumentationUrl. Please provide a valid http or https URL.',
|
|
35
35
|
UPDATEFILTERS_INVALID_PAYLOAD: 'UpdateFilters requires a valid filter or filters array. Expected: { filter: { column, oper, values } } or { filters: [{ column, oper, values }, ...] }',
|
|
36
36
|
DRILLDOWN_INVALID_PAYLOAD: 'DrillDown requires a valid points object. Expected: { points: { clickedPoint?, selectedPoints? }, autoDrillDown?, vizId? }',
|
|
37
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD: 'UpdateParameters received an invalid applicability. Expected: { level: LIVEBOARD | TAB | GROUP, targetId } where targetId is required for TAB and GROUP levels',
|
|
37
38
|
};
|
|
38
39
|
exports.CUSTOM_ACTIONS_ERROR_MESSAGE = {
|
|
39
40
|
INVALID_ACTION_OBJECT: 'Custom Action Validation Error: Invalid action object provided',
|
package/cjs/src/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,wBAAwB,EAAE,6DAA6D;IACvF,oCAAoC,EAAE,sCAAsC;IAC5E,2BAA2B,EAAE,qCAAqC;IAClE,iBAAiB,EAAE,yCAAyC;IAC5D,gCAAgC,EAAE,yCAAyC;IAC3E,gCAAgC,EAAE,yLAAyL;IAC3N,mBAAmB,EAAE,2LAA2L;IAChN,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,mCAAmC;IACxD,mBAAmB,EAAE,0EAA0E;IAC/F,wBAAwB,EAAE,yEAAyE;IACnG,wBAAwB,EAAE,0CAA0C;IACpE,oBAAoB,EAAE,wCAAwC;IAC9D,+BAA+B,EAAE,4DAA4D;IAC7F,mBAAmB,EAAE,2EAA2E;IAChG,oCAAoC,EAAE,6RAA6R;IACnU,0BAA0B,EAAE,iCAAiC;IAC7D,yBAAyB,EAAE,yPAAyP;IACpR,6BAA6B,EAAE,8BAA8B;IAC7D,eAAe,EAAG,sEAAsE;IACxF,iBAAiB,EAAE,mDAAmD;IACtE,0BAA0B,EAAE,yDAAyD;IACrF,uBAAuB,EAAE,mDAAmD;IAC5E,6BAA6B,EAAE,6CAA6C;IAC5E,yBAAyB,EAAE,8BAA8B;IACzD,YAAY,EAAE,cAAc;IAC5B,gCAAgC,EAAE,kCAAkC;IACpE,qBAAqB,EAAE,8EAA8E;IACrG,oBAAoB,EAAE,mCAAmC;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uB,EAAE,CAAC,EAAU,EAAE,aAAuB,EAAE,EAAE,CAAC,uCAAuC,EAAE,+BAA+B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;IACpK,kBAAkB,EAAE,CAAC,EAAU,EAAE,UAAkB,EAAE,EAAE,CAAC,uCAAuC,EAAE,mBAAmB,UAAU,oBAAoB;IAClJ,gBAAgB,EAAE,CAAC,QAAgB,EAAE,UAAkB,EAAE,kBAA0B,EAAE,EAAE,CAAC,aAAa,QAAQ,0BAA0B,UAAU,CAAC,WAAW,EAAE,+CAA+C,kBAAkB,EAAE;IAClO,oBAAoB,EAAE,CAAC,UAAkB,EAAE,UAAoB,EAAE,YAAoB,EAAE,EAAE,CAAC,4BAA4B,UAAU,CAAC,WAAW,EAAE,0BAA0B,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,6BAA6B,YAAY,EAAE;IACxO,sBAAsB,EAAE,CAAC,UAAkB,EAAE,UAAoB,EAAE,YAAoB,EAAE,EAAE,CAAC,8BAA8B,UAAU,CAAC,WAAW,EAAE,0BAA0B,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,+BAA+B,YAAY,EAAE;IAC9O,cAAc,EAAE,CAAC,UAAkB,EAAE,aAAuB,EAAE,eAAuB,EAAE,EAAE,CAAC,sBAAsB,UAAU,CAAC,WAAW,EAAE,0BAA0B,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,eAAe,EAAE;IAClO,aAAa,EAAE,CAAC,EAAU,EAAE,cAAwB,EAAE,QAAgB,EAAE,EAAE,CAAC,+BAA+B,EAAE,gCAAgC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,+BAA+B,QAAQ,IAAI;CACrN,CAAC"}
|
package/cjs/src/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from './embed/live
|
|
|
12
12
|
import { SearchEmbed, SearchViewConfig } from './embed/search';
|
|
13
13
|
import { SearchBarEmbed, SearchBarViewConfig } from './embed/search-bar';
|
|
14
14
|
import { SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversation, BodylessConversationViewConfig } from './embed/bodyless-conversation';
|
|
15
|
-
import { SpotterEmbed, SpotterEmbedViewConfig, SpotterChatViewConfig, SpotterSidebarViewConfig, ConversationEmbed, ConversationViewConfig } from './embed/conversation';
|
|
15
|
+
import { SpotterEmbed, SpotterEmbedViewConfig, SpotterChatViewConfig, SpotterSidebarViewConfig, SpotterQueryMode, ConversationEmbed, ConversationViewConfig } from './embed/conversation';
|
|
16
16
|
import { SpotterVizConfig, SpotterVizStarterPrompt, SpotterVizLoaderTip } from './embed/spotter-viz-utils';
|
|
17
17
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter } from './auth';
|
|
18
18
|
import { getSessionInfo } from './utils/sessionInfoService';
|
|
@@ -25,7 +25,7 @@ import { tokenizedFetch } from './tokenizedFetch';
|
|
|
25
25
|
import { getAnswerFromQuery } from './utils/graphql/nlsService/nls-answer-service';
|
|
26
26
|
import { createLiveboardWithAnswers } from './utils/liveboardService/liveboardService';
|
|
27
27
|
import { UIPassthroughEvent } from './embed/hostEventClient/contracts';
|
|
28
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, reloadIframe, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, SpotterChatViewConfig, SpotterSidebarViewConfig, ConversationViewConfig, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, ContextType, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SpotterVizConfig, SpotterVizStarterPrompt, SpotterVizLoaderTip, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, PrimaryNavbarVersion, HomePage, ListPage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, CustomActionsPosition, CustomActionTarget, InterceptedApiType, EmbedErrorCodes, EmbedErrorDetailsEvent, ErrorDetailsTypes, AutoMCPFrameRendererViewConfig, VisualizationOverrides, LegendPosition, BackgroundFormatType, ConditionalFormattingComparisonType, ConditionalFormattingOperator, DataLabelFilterOperator, TableTheme, TableContentDensity, };
|
|
28
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, reloadIframe, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, SpotterAgentEmbed, SpotterAgentEmbedViewConfig, BodylessConversationViewConfig, BodylessConversation, SpotterEmbed, SpotterEmbedViewConfig, SpotterChatViewConfig, SpotterSidebarViewConfig, SpotterQueryMode, ConversationViewConfig, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, ContextType, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SpotterVizConfig, SpotterVizStarterPrompt, SpotterVizLoaderTip, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, PrimaryNavbarVersion, HomePage, ListPage, VizPoint, CustomActionPayload, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, CustomActionsPosition, CustomActionTarget, InterceptedApiType, EmbedErrorCodes, EmbedErrorDetailsEvent, ErrorDetailsTypes, AutoMCPFrameRendererViewConfig, VisualizationOverrides, LegendPosition, BackgroundFormatType, ConditionalFormattingComparisonType, ConditionalFormattingOperator, DataLabelFilterOperator, TableTheme, TableContentDensity, };
|
|
29
29
|
export { resetCachedAuthToken } from './authToken';
|
|
30
30
|
export { startAutoMCPFrameRenderer } from './embed/auto-frame-renderer';
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
package/cjs/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,OAAO,EACH,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,yCAAyC,EAC5C,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,YAAY,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,8BAA8B,EAAC,MAAM,+BAA+B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,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EAEb,gBAAgB,EAChB,mBAAmB,EACnB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,yCAAyC,EACzC,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,8BAA8B,EAC9B,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,mCAAmC,EACnC,6BAA6B,EAC7B,uBAAuB,EACvB,UAAU,EACV,mBAAmB,GACtB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/cjs/src/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.startAutoMCPFrameRenderer = exports.resetCachedAuthToken = exports.TableContentDensity = exports.TableTheme = exports.DataLabelFilterOperator = exports.ConditionalFormattingOperator = exports.ConditionalFormattingComparisonType = exports.BackgroundFormatType = exports.LegendPosition = exports.ErrorDetailsTypes = void 0;
|
|
4
|
+
exports.InterceptedApiType = exports.CustomActionTarget = exports.CustomActionsPosition = exports.DataPanelCustomColumnGroupsAccordionState = exports.ListPageColumns = exports.UIPassthroughEvent = exports.ListPage = exports.HomePage = exports.PrimaryNavbarVersion = exports.HomePageSearchBarMode = exports.MIXPANEL_EVENT = exports.uploadMixpanelEvent = exports.LogLevel = exports.HomepageModule = exports.HomeLeftNavItem = exports.PrefetchFeatures = exports.ContextMenuTriggerOptions = exports.Action = exports.DataSourceVisualMode = exports.ContextType = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = exports.Page = exports.AnswerService = exports.AuthEvent = exports.AuthStatus = exports.AuthFailureType = exports.ConversationEmbed = exports.SpotterQueryMode = exports.SpotterEmbed = exports.BodylessConversation = exports.SpotterAgentEmbed = exports.AppEmbed = exports.LiveboardEmbed = exports.PinboardEmbed = exports.SearchBarEmbed = exports.SearchEmbed = exports.createLiveboardWithAnswers = exports.getAnswerFromQuery = exports.tokenizedFetch = exports.getSessionInfo = exports.getInitConfig = exports.reloadIframe = exports.exportTML = exports.executeTML = exports.prefetch = exports.logout = exports.init = void 0;
|
|
5
|
+
exports.startAutoMCPFrameRenderer = exports.resetCachedAuthToken = exports.TableContentDensity = exports.TableTheme = exports.DataLabelFilterOperator = exports.ConditionalFormattingOperator = exports.ConditionalFormattingComparisonType = exports.BackgroundFormatType = exports.LegendPosition = exports.ErrorDetailsTypes = exports.EmbedErrorCodes = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2023
|
|
8
8
|
*
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "SpotterAgentEmbed", { enumerable: true, get: fun
|
|
|
38
38
|
Object.defineProperty(exports, "BodylessConversation", { enumerable: true, get: function () { return bodyless_conversation_1.BodylessConversation; } });
|
|
39
39
|
const conversation_1 = require("./embed/conversation");
|
|
40
40
|
Object.defineProperty(exports, "SpotterEmbed", { enumerable: true, get: function () { return conversation_1.SpotterEmbed; } });
|
|
41
|
+
Object.defineProperty(exports, "SpotterQueryMode", { enumerable: true, get: function () { return conversation_1.SpotterQueryMode; } });
|
|
41
42
|
Object.defineProperty(exports, "ConversationEmbed", { enumerable: true, get: function () { return conversation_1.ConversationEmbed; } });
|
|
42
43
|
const auth_1 = require("./auth");
|
|
43
44
|
Object.defineProperty(exports, "AuthFailureType", { enumerable: true, get: function () { return auth_1.AuthFailureType; } });
|
package/cjs/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb;;;;;;;GAOG;AACH,qCASqB;AA2FjB,yFAnGA,cAAQ,OAmGA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb;;;;;;;GAOG;AACH,qCASqB;AA2FjB,yFAnGA,cAAQ,OAmGA;AAoBR,qFAtHA,UAAI,OAsHA;AAkCJ,sGAtJA,2BAAqB,OAsJA;AACrB,qGAtJA,0BAAoB,OAsJA;AACpB,yFAtJA,cAAQ,OAsJA;AACR,yFAtJA,cAAQ,OAsJA;AAKR,0HA1JA,+CAAyC,OA0JA;AAxJ7C,uCASsB;AAgElB,qFAxEA,WAAI,OAwEA;AAEJ,yFAzEA,eAAQ,OAyEA;AADR,uFAvEA,aAAM,OAuEA;AAEN,2FAxEA,iBAAU,OAwEA;AACV,0FAxEA,gBAAS,OAwEA;AAET,6FAvEA,mBAAY,OAuEA;AArEhB,iDAAuF;AA8EnF,8FA9EK,yBAAa,OA8EL;AACb,+FA/EyC,0BAAc,OA+EzC;AA9ElB,2CAA+D;AA2E3D,4FA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qDAAqD;AAgB/B,8FAhBb,4BAAc,OAgBY;AAfnC,yDAAyE;AA4ErE,oGA5EK,sCAAmB,OA4EL;AACnB,+FA7E0B,iCAAc,OA6E1B;AA5ElB,qDAAkD;AAgB9C,+FAhBK,+BAAc,OAgBL;AAflB,sFAAmF;AAgB/E,mGAhBK,uCAAkB,OAgBL;AAftB,gFAAuF;AAgBnF,2GAhBK,6CAA0B,OAgBL;AAf9B,iEAAuE;AAgFnE,mGAhFK,8BAAkB,OAgFL;AAoBtB,yCAAmD;AAA1C,iHAAA,oBAAoB,OAAA;AAC7B,mEAAwE;AAA/D,gIAAA,yBAAyB,OAAA"}
|
|
@@ -73,6 +73,257 @@ describe('React util functions', () => {
|
|
|
73
73
|
[types_1.EmbedEvent.QueryChanged]: onQueryChanged,
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
+
test('all onX props map to their correct EmbedEvent listener keys', () => {
|
|
77
|
+
const onDrilldown = jest.fn();
|
|
78
|
+
const onDataSourceSelected = jest.fn();
|
|
79
|
+
const onAddRemoveColumns = jest.fn();
|
|
80
|
+
const onVizPointDoubleClick = jest.fn();
|
|
81
|
+
const onVizPointClick = jest.fn();
|
|
82
|
+
const onAlert = jest.fn();
|
|
83
|
+
const onGetDataClick = jest.fn();
|
|
84
|
+
const onDialogClose = jest.fn();
|
|
85
|
+
const onDownload = jest.fn();
|
|
86
|
+
const onDownloadAsPng = jest.fn();
|
|
87
|
+
const onDownloadAsPdf = jest.fn();
|
|
88
|
+
const onDownloadAsCsv = jest.fn();
|
|
89
|
+
const onDownloadAsXlsx = jest.fn();
|
|
90
|
+
const onDownloadLiveboardAsContinuousPDF = jest.fn();
|
|
91
|
+
const onAnswerDelete = jest.fn();
|
|
92
|
+
const onAIHighlights = jest.fn();
|
|
93
|
+
const onPin = jest.fn();
|
|
94
|
+
const onSpotIQAnalyze = jest.fn();
|
|
95
|
+
const onShare = jest.fn();
|
|
96
|
+
const onDrillInclude = jest.fn();
|
|
97
|
+
const onDrillExclude = jest.fn();
|
|
98
|
+
const onCopyToClipboard = jest.fn();
|
|
99
|
+
const onUpdateTML = jest.fn();
|
|
100
|
+
const onEditTML = jest.fn();
|
|
101
|
+
const onExportTML = jest.fn();
|
|
102
|
+
const onSaveAsView = jest.fn();
|
|
103
|
+
const onCopyAEdit = jest.fn();
|
|
104
|
+
const onShowUnderlyingData = jest.fn();
|
|
105
|
+
const onAnswerChartSwitcher = jest.fn();
|
|
106
|
+
const onLiveboardInfo = jest.fn();
|
|
107
|
+
const onAddToFavorites = jest.fn();
|
|
108
|
+
const onSchedule = jest.fn();
|
|
109
|
+
const onEdit = jest.fn();
|
|
110
|
+
const onMakeACopy = jest.fn();
|
|
111
|
+
const onPresent = jest.fn();
|
|
112
|
+
const onDelete = jest.fn();
|
|
113
|
+
const onSchedulesList = jest.fn();
|
|
114
|
+
const onCancel = jest.fn();
|
|
115
|
+
const onExplore = jest.fn();
|
|
116
|
+
const onCopyLink = jest.fn();
|
|
117
|
+
const onCrossFilterChanged = jest.fn();
|
|
118
|
+
const onVizPointRightClick = jest.fn();
|
|
119
|
+
const onInsertIntoSlide = jest.fn();
|
|
120
|
+
const onFilterChanged = jest.fn();
|
|
121
|
+
const onUpdateConnection = jest.fn();
|
|
122
|
+
const onCreateConnection = jest.fn();
|
|
123
|
+
const onResetLiveboard = jest.fn();
|
|
124
|
+
const onChangePersonalizedView = jest.fn();
|
|
125
|
+
const onCreateWorksheet = jest.fn();
|
|
126
|
+
const onAskSageInit = jest.fn();
|
|
127
|
+
const onRename = jest.fn();
|
|
128
|
+
const onParameterChanged = jest.fn();
|
|
129
|
+
const onTableVizRendered = jest.fn();
|
|
130
|
+
const onCreateLiveboard = jest.fn();
|
|
131
|
+
const onCreateModel = jest.fn();
|
|
132
|
+
const onSpotterData = jest.fn();
|
|
133
|
+
const onPreviewSpotterData = jest.fn();
|
|
134
|
+
const onAddToCoaching = jest.fn();
|
|
135
|
+
const onDataModelInstructions = jest.fn();
|
|
136
|
+
const onSpotterQueryTriggered = jest.fn();
|
|
137
|
+
const onLastPromptEdited = jest.fn();
|
|
138
|
+
const onLastPromptDeleted = jest.fn();
|
|
139
|
+
const onResetSpotterConversation = jest.fn();
|
|
140
|
+
const onSpotterInit = jest.fn();
|
|
141
|
+
const onSpotterLoadComplete = jest.fn();
|
|
142
|
+
const onOrgSwitched = jest.fn();
|
|
143
|
+
const onSpotterConversationRenamed = jest.fn();
|
|
144
|
+
const onSpotterConversationDeleted = jest.fn();
|
|
145
|
+
const onSpotterConversationSelected = jest.fn();
|
|
146
|
+
const onEmbedPageContextChanged = jest.fn();
|
|
147
|
+
const onSubscribed = jest.fn();
|
|
148
|
+
const onSendTestScheduleEmail = jest.fn();
|
|
149
|
+
const onSpotterVizInit = jest.fn();
|
|
150
|
+
const onSpotterVizQueryTriggered = jest.fn();
|
|
151
|
+
const onSpotterVizResponseComplete = jest.fn();
|
|
152
|
+
const onSpotterVizCheckpointCreated = jest.fn();
|
|
153
|
+
const onSpotterVizCheckpointRestored = jest.fn();
|
|
154
|
+
const onSpotterVizError = jest.fn();
|
|
155
|
+
const onSpotterVizClosed = jest.fn();
|
|
156
|
+
const onRefreshLiveboardBrowserCache = jest.fn();
|
|
157
|
+
const onV1Data = jest.fn();
|
|
158
|
+
const props = {
|
|
159
|
+
onDrilldown,
|
|
160
|
+
onDataSourceSelected,
|
|
161
|
+
onAddRemoveColumns,
|
|
162
|
+
onVizPointDoubleClick,
|
|
163
|
+
onVizPointClick,
|
|
164
|
+
onAlert,
|
|
165
|
+
onGetDataClick,
|
|
166
|
+
onDialogClose,
|
|
167
|
+
onDownload,
|
|
168
|
+
onDownloadAsPng,
|
|
169
|
+
onDownloadAsPdf,
|
|
170
|
+
onDownloadAsCsv,
|
|
171
|
+
onDownloadAsXlsx,
|
|
172
|
+
onDownloadLiveboardAsContinuousPDF,
|
|
173
|
+
onAnswerDelete,
|
|
174
|
+
onAIHighlights,
|
|
175
|
+
onPin,
|
|
176
|
+
onSpotIQAnalyze,
|
|
177
|
+
onShare,
|
|
178
|
+
onDrillInclude,
|
|
179
|
+
onDrillExclude,
|
|
180
|
+
onCopyToClipboard,
|
|
181
|
+
onUpdateTML,
|
|
182
|
+
onEditTML,
|
|
183
|
+
onExportTML,
|
|
184
|
+
onSaveAsView,
|
|
185
|
+
onCopyAEdit,
|
|
186
|
+
onShowUnderlyingData,
|
|
187
|
+
onAnswerChartSwitcher,
|
|
188
|
+
onLiveboardInfo,
|
|
189
|
+
onAddToFavorites,
|
|
190
|
+
onSchedule,
|
|
191
|
+
onEdit,
|
|
192
|
+
onMakeACopy,
|
|
193
|
+
onPresent,
|
|
194
|
+
onDelete,
|
|
195
|
+
onSchedulesList,
|
|
196
|
+
onCancel,
|
|
197
|
+
onExplore,
|
|
198
|
+
onCopyLink,
|
|
199
|
+
onCrossFilterChanged,
|
|
200
|
+
onVizPointRightClick,
|
|
201
|
+
onInsertIntoSlide,
|
|
202
|
+
onFilterChanged,
|
|
203
|
+
onUpdateConnection,
|
|
204
|
+
onCreateConnection,
|
|
205
|
+
onResetLiveboard,
|
|
206
|
+
onChangePersonalizedView,
|
|
207
|
+
onCreateWorksheet,
|
|
208
|
+
onAskSageInit,
|
|
209
|
+
onRename,
|
|
210
|
+
onParameterChanged,
|
|
211
|
+
onTableVizRendered,
|
|
212
|
+
onCreateLiveboard,
|
|
213
|
+
onCreateModel,
|
|
214
|
+
onSpotterData,
|
|
215
|
+
onPreviewSpotterData,
|
|
216
|
+
onAddToCoaching,
|
|
217
|
+
onDataModelInstructions,
|
|
218
|
+
onSpotterQueryTriggered,
|
|
219
|
+
onLastPromptEdited,
|
|
220
|
+
onLastPromptDeleted,
|
|
221
|
+
onResetSpotterConversation,
|
|
222
|
+
onSpotterInit,
|
|
223
|
+
onSpotterLoadComplete,
|
|
224
|
+
onOrgSwitched,
|
|
225
|
+
onSpotterConversationRenamed,
|
|
226
|
+
onSpotterConversationDeleted,
|
|
227
|
+
onSpotterConversationSelected,
|
|
228
|
+
onEmbedPageContextChanged,
|
|
229
|
+
onSubscribed,
|
|
230
|
+
onSendTestScheduleEmail,
|
|
231
|
+
onSpotterVizInit,
|
|
232
|
+
onSpotterVizQueryTriggered,
|
|
233
|
+
onSpotterVizResponseComplete,
|
|
234
|
+
onSpotterVizCheckpointCreated,
|
|
235
|
+
onSpotterVizCheckpointRestored,
|
|
236
|
+
onSpotterVizError,
|
|
237
|
+
onSpotterVizClosed,
|
|
238
|
+
onRefreshLiveboardBrowserCache,
|
|
239
|
+
onV1Data,
|
|
240
|
+
};
|
|
241
|
+
const result = (0, util_1.getViewPropsAndListeners)(props);
|
|
242
|
+
expect(result.viewConfig).toEqual({});
|
|
243
|
+
expect(result.listeners).toEqual({
|
|
244
|
+
[types_1.EmbedEvent.Drilldown]: onDrilldown,
|
|
245
|
+
[types_1.EmbedEvent.DataSourceSelected]: onDataSourceSelected,
|
|
246
|
+
[types_1.EmbedEvent.AddRemoveColumns]: onAddRemoveColumns,
|
|
247
|
+
[types_1.EmbedEvent.VizPointDoubleClick]: onVizPointDoubleClick,
|
|
248
|
+
[types_1.EmbedEvent.VizPointClick]: onVizPointClick,
|
|
249
|
+
[types_1.EmbedEvent.Alert]: onAlert,
|
|
250
|
+
[types_1.EmbedEvent.GetDataClick]: onGetDataClick,
|
|
251
|
+
[types_1.EmbedEvent.DialogClose]: onDialogClose,
|
|
252
|
+
[types_1.EmbedEvent.Download]: onDownload,
|
|
253
|
+
[types_1.EmbedEvent.DownloadAsPng]: onDownloadAsPng,
|
|
254
|
+
[types_1.EmbedEvent.DownloadAsPdf]: onDownloadAsPdf,
|
|
255
|
+
[types_1.EmbedEvent.DownloadAsCsv]: onDownloadAsCsv,
|
|
256
|
+
[types_1.EmbedEvent.DownloadAsXlsx]: onDownloadAsXlsx,
|
|
257
|
+
[types_1.EmbedEvent.DownloadLiveboardAsContinuousPDF]: onDownloadLiveboardAsContinuousPDF,
|
|
258
|
+
[types_1.EmbedEvent.AnswerDelete]: onAnswerDelete,
|
|
259
|
+
[types_1.EmbedEvent.AIHighlights]: onAIHighlights,
|
|
260
|
+
[types_1.EmbedEvent.Pin]: onPin,
|
|
261
|
+
[types_1.EmbedEvent.SpotIQAnalyze]: onSpotIQAnalyze,
|
|
262
|
+
[types_1.EmbedEvent.Share]: onShare,
|
|
263
|
+
[types_1.EmbedEvent.DrillInclude]: onDrillInclude,
|
|
264
|
+
[types_1.EmbedEvent.DrillExclude]: onDrillExclude,
|
|
265
|
+
[types_1.EmbedEvent.CopyToClipboard]: onCopyToClipboard,
|
|
266
|
+
[types_1.EmbedEvent.UpdateTML]: onUpdateTML,
|
|
267
|
+
[types_1.EmbedEvent.EditTML]: onEditTML,
|
|
268
|
+
[types_1.EmbedEvent.ExportTML]: onExportTML,
|
|
269
|
+
[types_1.EmbedEvent.SaveAsView]: onSaveAsView,
|
|
270
|
+
[types_1.EmbedEvent.CopyAEdit]: onCopyAEdit,
|
|
271
|
+
[types_1.EmbedEvent.ShowUnderlyingData]: onShowUnderlyingData,
|
|
272
|
+
[types_1.EmbedEvent.AnswerChartSwitcher]: onAnswerChartSwitcher,
|
|
273
|
+
[types_1.EmbedEvent.LiveboardInfo]: onLiveboardInfo,
|
|
274
|
+
[types_1.EmbedEvent.AddToFavorites]: onAddToFavorites,
|
|
275
|
+
[types_1.EmbedEvent.Schedule]: onSchedule,
|
|
276
|
+
[types_1.EmbedEvent.Edit]: onEdit,
|
|
277
|
+
[types_1.EmbedEvent.MakeACopy]: onMakeACopy,
|
|
278
|
+
[types_1.EmbedEvent.Present]: onPresent,
|
|
279
|
+
[types_1.EmbedEvent.Delete]: onDelete,
|
|
280
|
+
[types_1.EmbedEvent.SchedulesList]: onSchedulesList,
|
|
281
|
+
[types_1.EmbedEvent.Cancel]: onCancel,
|
|
282
|
+
[types_1.EmbedEvent.Explore]: onExplore,
|
|
283
|
+
[types_1.EmbedEvent.CopyLink]: onCopyLink,
|
|
284
|
+
[types_1.EmbedEvent.CrossFilterChanged]: onCrossFilterChanged,
|
|
285
|
+
[types_1.EmbedEvent.VizPointRightClick]: onVizPointRightClick,
|
|
286
|
+
[types_1.EmbedEvent.InsertIntoSlide]: onInsertIntoSlide,
|
|
287
|
+
[types_1.EmbedEvent.FilterChanged]: onFilterChanged,
|
|
288
|
+
[types_1.EmbedEvent.UpdateConnection]: onUpdateConnection,
|
|
289
|
+
[types_1.EmbedEvent.CreateConnection]: onCreateConnection,
|
|
290
|
+
[types_1.EmbedEvent.ResetLiveboard]: onResetLiveboard,
|
|
291
|
+
[types_1.EmbedEvent.ChangePersonalizedView]: onChangePersonalizedView,
|
|
292
|
+
[types_1.EmbedEvent.CreateWorksheet]: onCreateWorksheet,
|
|
293
|
+
[types_1.EmbedEvent.AskSageInit]: onAskSageInit,
|
|
294
|
+
[types_1.EmbedEvent.Rename]: onRename,
|
|
295
|
+
[types_1.EmbedEvent.ParameterChanged]: onParameterChanged,
|
|
296
|
+
[types_1.EmbedEvent.TableVizRendered]: onTableVizRendered,
|
|
297
|
+
[types_1.EmbedEvent.CreateLiveboard]: onCreateLiveboard,
|
|
298
|
+
[types_1.EmbedEvent.CreateModel]: onCreateModel,
|
|
299
|
+
[types_1.EmbedEvent.SpotterData]: onSpotterData,
|
|
300
|
+
[types_1.EmbedEvent.PreviewSpotterData]: onPreviewSpotterData,
|
|
301
|
+
[types_1.EmbedEvent.AddToCoaching]: onAddToCoaching,
|
|
302
|
+
[types_1.EmbedEvent.DataModelInstructions]: onDataModelInstructions,
|
|
303
|
+
[types_1.EmbedEvent.SpotterQueryTriggered]: onSpotterQueryTriggered,
|
|
304
|
+
[types_1.EmbedEvent.LastPromptEdited]: onLastPromptEdited,
|
|
305
|
+
[types_1.EmbedEvent.LastPromptDeleted]: onLastPromptDeleted,
|
|
306
|
+
[types_1.EmbedEvent.ResetSpotterConversation]: onResetSpotterConversation,
|
|
307
|
+
[types_1.EmbedEvent.SpotterInit]: onSpotterInit,
|
|
308
|
+
[types_1.EmbedEvent.SpotterLoadComplete]: onSpotterLoadComplete,
|
|
309
|
+
[types_1.EmbedEvent.OrgSwitched]: onOrgSwitched,
|
|
310
|
+
[types_1.EmbedEvent.SpotterConversationRenamed]: onSpotterConversationRenamed,
|
|
311
|
+
[types_1.EmbedEvent.SpotterConversationDeleted]: onSpotterConversationDeleted,
|
|
312
|
+
[types_1.EmbedEvent.SpotterConversationSelected]: onSpotterConversationSelected,
|
|
313
|
+
[types_1.EmbedEvent.EmbedPageContextChanged]: onEmbedPageContextChanged,
|
|
314
|
+
[types_1.EmbedEvent.Subscribed]: onSubscribed,
|
|
315
|
+
[types_1.EmbedEvent.SendTestScheduleEmail]: onSendTestScheduleEmail,
|
|
316
|
+
[types_1.EmbedEvent.SpotterVizInit]: onSpotterVizInit,
|
|
317
|
+
[types_1.EmbedEvent.SpotterVizQueryTriggered]: onSpotterVizQueryTriggered,
|
|
318
|
+
[types_1.EmbedEvent.SpotterVizResponseComplete]: onSpotterVizResponseComplete,
|
|
319
|
+
[types_1.EmbedEvent.SpotterVizCheckpointCreated]: onSpotterVizCheckpointCreated,
|
|
320
|
+
[types_1.EmbedEvent.SpotterVizCheckpointRestored]: onSpotterVizCheckpointRestored,
|
|
321
|
+
[types_1.EmbedEvent.SpotterVizError]: onSpotterVizError,
|
|
322
|
+
[types_1.EmbedEvent.SpotterVizClosed]: onSpotterVizClosed,
|
|
323
|
+
[types_1.EmbedEvent.RefreshLiveboardBrowserCache]: onRefreshLiveboardBrowserCache,
|
|
324
|
+
[types_1.EmbedEvent.V1Data]: onV1Data,
|
|
325
|
+
});
|
|
326
|
+
});
|
|
76
327
|
});
|
|
77
328
|
});
|
|
78
329
|
//# sourceMappingURL=util.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.spec.js","sourceRoot":"","sources":["../../../src/react/util.spec.tsx"],"names":[],"mappings":";;AAAA,iCAAkD;AAClD,oCAAuD;AAEvD,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,0BAA0B,EAAE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,4BAA4B,CAAC,EAAE,8BAA8B;gBACzE,CAAC,kBAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;aAChC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/cjs/src/types.d.ts
CHANGED
|
@@ -235,7 +235,14 @@ export declare enum HomeLeftNavItem {
|
|
|
235
235
|
* Available in the V3 navigation experience.
|
|
236
236
|
* @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
|
|
237
237
|
*/
|
|
238
|
-
Favorites = "favorites"
|
|
238
|
+
Favorites = "favorites",
|
|
239
|
+
/**
|
|
240
|
+
* The *Collections* menu option in
|
|
241
|
+
* the *Insights* left navigation panel.
|
|
242
|
+
* Shown when collections are enabled on the cluster.
|
|
243
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
244
|
+
*/
|
|
245
|
+
Collections = "collections"
|
|
239
246
|
}
|
|
240
247
|
export type DOMSelector = string | HTMLElement;
|
|
241
248
|
/**
|
|
@@ -1182,6 +1189,26 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1182
1189
|
* ```
|
|
1183
1190
|
*/
|
|
1184
1191
|
overrideOrgId?: number;
|
|
1192
|
+
/**
|
|
1193
|
+
* Overrides the browser history behavior for embedding application users.
|
|
1194
|
+
* This parameter changes standard history navigation (pushState) into a
|
|
1195
|
+
* state replacement (replaceState), preventing users from getting trapped in
|
|
1196
|
+
* back-button loops inside the embedded iframe environment.
|
|
1197
|
+
* The overrideHistoryState setting is honored only if the
|
|
1198
|
+
* application is running within an embedded context.
|
|
1199
|
+
*
|
|
1200
|
+
* Supported embed types: `AppEmbed`, `LiveboardEmbed`, `SearchEmbed`, `SpotterAgentEmbed`, `SpotterEmbed`, `SearchBarEmbed`
|
|
1201
|
+
* @version SDK: 1.52.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
1202
|
+
* @example
|
|
1203
|
+
* ```js
|
|
1204
|
+
* // Replace <EmbedComponent> with embed component name. For example, AppEmbed, SearchEmbed, or LiveboardEmbed
|
|
1205
|
+
* const embed = new <EmbedComponent>('#tsEmbed', {
|
|
1206
|
+
* // ... other embed view config
|
|
1207
|
+
* overrideHistoryState: true,
|
|
1208
|
+
* });
|
|
1209
|
+
* ```
|
|
1210
|
+
*/
|
|
1211
|
+
overrideHistoryState?: boolean;
|
|
1185
1212
|
/**
|
|
1186
1213
|
* Flag to override the *Open Link in New Tab* context
|
|
1187
1214
|
* menu option.
|
|
@@ -3657,6 +3684,30 @@ export declare enum EmbedEvent {
|
|
|
3657
3684
|
* @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
|
|
3658
3685
|
*/
|
|
3659
3686
|
SpotterConversationSelected = "spotterConversationSelected",
|
|
3687
|
+
/**
|
|
3688
|
+
* Emitted when the Spotter agent finishes streaming/rendering a response.
|
|
3689
|
+
* Includes the conversation and message identifiers so the host app can
|
|
3690
|
+
* fetch the full conversation history via the REST API if needed.
|
|
3691
|
+
*
|
|
3692
|
+
* The payload data has the shape `{ convId: string, messageId: string }`.
|
|
3693
|
+
*
|
|
3694
|
+
* Works with SpotterEmbed as well as AppEmbed (when Spotter is reached
|
|
3695
|
+
* inside the full application).
|
|
3696
|
+
* @example
|
|
3697
|
+
* ```js
|
|
3698
|
+
* spotterEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
3699
|
+
* console.log('Spotter response complete', payload);
|
|
3700
|
+
* })
|
|
3701
|
+
* ```
|
|
3702
|
+
* @example
|
|
3703
|
+
* ```js
|
|
3704
|
+
* appEmbed.on(EmbedEvent.SpotterResponseComplete, (payload) => {
|
|
3705
|
+
* console.log('Spotter response complete', payload);
|
|
3706
|
+
* })
|
|
3707
|
+
* ```
|
|
3708
|
+
* @version SDK: 1.51.0 | ThoughtSpot Cloud: 26.9.0.cl
|
|
3709
|
+
*/
|
|
3710
|
+
SpotterResponseComplete = "spotterResponseComplete",
|
|
3660
3711
|
/**
|
|
3661
3712
|
* @hidden
|
|
3662
3713
|
* Emitted when the auth token is about to get expired and needs to be refreshed.
|
|
@@ -5220,6 +5271,14 @@ export declare enum HostEvent {
|
|
|
5220
5271
|
/**
|
|
5221
5272
|
* Get details of filters applied on the Liveboard.
|
|
5222
5273
|
* Returns arrays containing Liveboard filter and runtime filter elements.
|
|
5274
|
+
* Each Liveboard filter may include an `applicability` attribute
|
|
5275
|
+
* indicating the scope of the filter. It contains a `level`
|
|
5276
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
5277
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
5278
|
+
* level there is no `targetId`, since the filter applies to the
|
|
5279
|
+
* whole Liveboard.
|
|
5280
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
5281
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
5223
5282
|
* @example
|
|
5224
5283
|
* ```js
|
|
5225
5284
|
* const data = await liveboardEmbed.trigger(HostEvent.GetFilters);
|
|
@@ -5259,6 +5318,16 @@ export declare enum HostEvent {
|
|
|
5259
5318
|
*
|
|
5260
5319
|
* `type` - To update filters for date time, specify the date format type.
|
|
5261
5320
|
* For more information and examples, see link:https://developers.thoughtspot.com/docs/embed-liveboard#_date_filters[Date filters].
|
|
5321
|
+
*
|
|
5322
|
+
* `applicability` - Optional. Scopes the filter to a specific target,
|
|
5323
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
5324
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
5325
|
+
*
|
|
5326
|
+
* - `level`: The scope of the filter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
5327
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
5328
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
5329
|
+
* `level` is `LIVEBOARD`, since the filter applies to the whole
|
|
5330
|
+
* Liveboard.
|
|
5262
5331
|
* @example
|
|
5263
5332
|
* ```js
|
|
5264
5333
|
*
|
|
@@ -5335,6 +5404,21 @@ export declare enum HostEvent {
|
|
|
5335
5404
|
* }
|
|
5336
5405
|
* }, ContextType.Liveboard);
|
|
5337
5406
|
* ```
|
|
5407
|
+
* @example
|
|
5408
|
+
* ```js
|
|
5409
|
+
* // Scope the filter to a specific Liveboard tab
|
|
5410
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
5411
|
+
* filter: {
|
|
5412
|
+
* column: "item type",
|
|
5413
|
+
* oper: "IN",
|
|
5414
|
+
* values: ["bags", "shirts"],
|
|
5415
|
+
* applicability: {
|
|
5416
|
+
* level: "TAB",
|
|
5417
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
5418
|
+
* }
|
|
5419
|
+
* }
|
|
5420
|
+
* });
|
|
5421
|
+
* ```
|
|
5338
5422
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
5339
5423
|
*/
|
|
5340
5424
|
UpdateFilters = "updateFilters",
|
|
@@ -5486,6 +5570,15 @@ export declare enum HostEvent {
|
|
|
5486
5570
|
* - `name`: Name of the parameter.
|
|
5487
5571
|
* - `value`: The value to set for the parameter.
|
|
5488
5572
|
* - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
|
|
5573
|
+
* - `applicability`: Optional. Scopes the parameter to a specific target,
|
|
5574
|
+
* for example, a single Liveboard tab. Available from SDK: 1.51.0 |
|
|
5575
|
+
* ThoughtSpot: 26.10.0.cl. Includes the following attributes:
|
|
5576
|
+
*
|
|
5577
|
+
* - `level`: The scope of the parameter: `LIVEBOARD`, `TAB`, or `GROUP`.
|
|
5578
|
+
* - `targetId`: The GUID of the target, for example, the tab GUID.
|
|
5579
|
+
* Required when `level` is `TAB` or `GROUP`. Do not pass it when
|
|
5580
|
+
* `level` is `LIVEBOARD`, since the parameter applies to the whole
|
|
5581
|
+
* Liveboard.
|
|
5489
5582
|
*
|
|
5490
5583
|
* @example
|
|
5491
5584
|
* ```js
|
|
@@ -5497,6 +5590,18 @@ export declare enum HostEvent {
|
|
|
5497
5590
|
* ```
|
|
5498
5591
|
* @example
|
|
5499
5592
|
* ```js
|
|
5593
|
+
* // Scope the parameter to a specific Liveboard tab
|
|
5594
|
+
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
5595
|
+
* name: "Integer Range Param",
|
|
5596
|
+
* value: 10,
|
|
5597
|
+
* applicability: {
|
|
5598
|
+
* level: "TAB",
|
|
5599
|
+
* targetId: "e0836cad-4fdf-42d4-bd97-567a6b2a6058"
|
|
5600
|
+
* }
|
|
5601
|
+
* }])
|
|
5602
|
+
* ```
|
|
5603
|
+
* @example
|
|
5604
|
+
* ```js
|
|
5500
5605
|
* // Update parameters from liveboard context
|
|
5501
5606
|
* import { ContextType } from '@thoughtspot/visual-embed-sdk';
|
|
5502
5607
|
* liveboardEmbed.trigger(HostEvent.UpdateParameters, [{
|
|
@@ -5510,6 +5615,14 @@ export declare enum HostEvent {
|
|
|
5510
5615
|
UpdateParameters = "UpdateParameters",
|
|
5511
5616
|
/**
|
|
5512
5617
|
* Triggers GetParameters to fetch the runtime Parameters.
|
|
5618
|
+
* Each parameter may include an `applicability` attribute
|
|
5619
|
+
* indicating the scope of the parameter. It contains a `level`
|
|
5620
|
+
* (`LIVEBOARD`, `TAB`, or `GROUP`) and, when `level` is `TAB` or
|
|
5621
|
+
* `GROUP`, a `targetId` with the GUID of the target. At `LIVEBOARD`
|
|
5622
|
+
* level there is no `targetId`, since the parameter applies to the
|
|
5623
|
+
* whole Liveboard.
|
|
5624
|
+
* The `applicability` attribute is available from SDK: 1.51.0 |
|
|
5625
|
+
* ThoughtSpot: 26.10.0.cl.
|
|
5513
5626
|
* @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
|
|
5514
5627
|
* ```js
|
|
5515
5628
|
* liveboardEmbed.trigger(HostEvent.GetParameters).then((parameter) => {
|
|
@@ -6084,6 +6197,7 @@ export declare enum Param {
|
|
|
6084
6197
|
SpotterEnabled = "isSpotterExperienceEnabled",
|
|
6085
6198
|
IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
|
|
6086
6199
|
OverrideOrgId = "orgId",
|
|
6200
|
+
OverrideHistoryState = "overrideHistoryState",
|
|
6087
6201
|
OauthPollingInterval = "oAuthPollingInterval",
|
|
6088
6202
|
IsForceRedirect = "isForceRedirect",
|
|
6089
6203
|
DataSourceId = "dataSourceId",
|
|
@@ -6104,6 +6218,7 @@ export declare enum Param {
|
|
|
6104
6218
|
isLinkParametersEnabled = "isLinkParametersEnabled",
|
|
6105
6219
|
EnablePastConversationsSidebar = "enablePastConversationsSidebar",
|
|
6106
6220
|
UpdatedSpotterChatPrompt = "updatedSpotterChatPrompt",
|
|
6221
|
+
DefaultQueryMode = "defaultQueryMode",
|
|
6107
6222
|
EnableStopAnswerGenerationEmbed = "enableStopAnswerGenerationEmbed",
|
|
6108
6223
|
SpotterSidebarTitle = "spotterSidebarTitle",
|
|
6109
6224
|
SpotterSidebarDefaultExpanded = "spotterSidebarDefaultExpanded",
|
|
@@ -8267,7 +8382,9 @@ export declare enum EmbedErrorCodes {
|
|
|
8267
8382
|
/** UpdateFilters payload is invalid - missing or malformed filter/filters */
|
|
8268
8383
|
UPDATEFILTERS_INVALID_PAYLOAD = "UPDATEFILTERS_INVALID_PAYLOAD",
|
|
8269
8384
|
/** DrillDown payload is invalid - missing or malformed points */
|
|
8270
|
-
DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD"
|
|
8385
|
+
DRILLDOWN_INVALID_PAYLOAD = "DRILLDOWN_INVALID_PAYLOAD",
|
|
8386
|
+
/** UpdateParameters payload is invalid - malformed applicability */
|
|
8387
|
+
UPDATEPARAMETERS_INVALID_PAYLOAD = "UPDATEPARAMETERS_INVALID_PAYLOAD"
|
|
8271
8388
|
}
|
|
8272
8389
|
/**
|
|
8273
8390
|
* Error event object emitted when an error occurs in an embedded component.
|