@thoughtspot/visual-embed-sdk 1.50.1 → 1.51.0-test
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/config.d.ts +1 -0
- package/cjs/src/config.d.ts.map +1 -1
- package/cjs/src/config.js +2 -1
- package/cjs/src/config.js.map +1 -1
- package/cjs/src/css-variables.d.ts +63 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +148 -25
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +74 -37
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +571 -150
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +1 -1
- package/cjs/src/embed/base.js +1 -1
- package/cjs/src/embed/conversation.d.ts +375 -2
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +21 -15
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +323 -17
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/events.spec.js +45 -0
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/host-events.spec.js +81 -0
- package/cjs/src/embed/host-events.spec.js.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.d.ts +15 -0
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +1 -0
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +1 -0
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js +27 -0
- package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +76 -14
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +50 -9
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +432 -4
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/spotter-utils.d.ts +15 -1
- package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
- package/cjs/src/embed/spotter-utils.js +28 -1
- package/cjs/src/embed/spotter-utils.js.map +1 -1
- package/cjs/src/embed/spotter-utils.spec.js +129 -0
- package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
- package/cjs/src/embed/spotter-viz-utils.d.ts +9 -10
- 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/ts-embed.d.ts +16 -8
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +82 -30
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +537 -3
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -3
- 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.d.ts +4 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +4 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/all-types-export.parity.spec.d.ts +2 -0
- package/cjs/src/react/all-types-export.parity.spec.d.ts.map +1 -0
- package/cjs/src/react/all-types-export.parity.spec.js +194 -0
- package/cjs/src/react/all-types-export.parity.spec.js.map +1 -0
- package/cjs/src/react/index.d.ts +66 -32
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +5 -3
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +101 -0
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +789 -32
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +610 -20
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils.spec.js +4 -0
- package/cjs/src/utils.spec.js.map +1 -1
- package/dist/{index-fCne7kmU.js → index-Bivg-mDx.js} +1 -1
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +63 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +148 -25
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +1 -1
- package/dist/src/embed/conversation.d.ts +375 -2
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/contracts.d.ts +15 -0
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +76 -14
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/spotter-utils.d.ts +15 -1
- package/dist/src/embed/spotter-utils.d.ts.map +1 -1
- package/dist/src/embed/spotter-viz-utils.d.ts +9 -10
- package/dist/src/embed/spotter-viz-utils.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +16 -8
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +4 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/react/all-types-export.parity.spec.d.ts +2 -0
- package/dist/src/react/all-types-export.parity.spec.d.ts.map +1 -0
- package/dist/src/react/index.d.ts +66 -32
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +789 -32
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +878 -120
- package/dist/tsembed-react.js +877 -119
- package/dist/tsembed.es.js +936 -181
- package/dist/tsembed.js +938 -183
- package/dist/visual-embed-sdk-react-full.d.ts +1553 -128
- package/dist/visual-embed-sdk-react.d.ts +1555 -129
- package/dist/visual-embed-sdk.d.ts +1499 -100
- package/lib/package.json +1 -1
- package/lib/src/config.d.ts +1 -0
- package/lib/src/config.d.ts.map +1 -1
- package/lib/src/config.js +1 -0
- package/lib/src/config.js.map +1 -1
- package/lib/src/css-variables.d.ts +63 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +148 -25
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +75 -38
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +572 -151
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +1 -1
- package/lib/src/embed/base.js +1 -1
- package/lib/src/embed/conversation.d.ts +375 -2
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +23 -17
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +323 -17
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +45 -0
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/host-events.spec.js +81 -0
- package/lib/src/embed/host-events.spec.js.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +15 -0
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +1 -0
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +1 -0
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.spec.js +27 -0
- package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +76 -14
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +50 -9
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +432 -4
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/spotter-utils.d.ts +15 -1
- package/lib/src/embed/spotter-utils.d.ts.map +1 -1
- package/lib/src/embed/spotter-utils.js +25 -0
- package/lib/src/embed/spotter-utils.js.map +1 -1
- package/lib/src/embed/spotter-utils.spec.js +130 -1
- package/lib/src/embed/spotter-utils.spec.js.map +1 -1
- package/lib/src/embed/spotter-viz-utils.d.ts +9 -10
- 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/ts-embed.d.ts +16 -8
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +82 -30
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +537 -3
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -3
- 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.d.ts +4 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +4 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/all-types-export.parity.spec.d.ts +2 -0
- package/lib/src/react/all-types-export.parity.spec.d.ts.map +1 -0
- package/lib/src/react/all-types-export.parity.spec.js +191 -0
- package/lib/src/react/all-types-export.parity.spec.js.map +1 -0
- package/lib/src/react/index.d.ts +66 -32
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +5 -3
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +102 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +789 -32
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +610 -20
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils.spec.js +4 -0
- package/lib/src/utils.spec.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +1499 -100
- package/package.json +1 -1
- package/src/config.ts +1 -0
- package/src/css-variables.ts +77 -0
- package/src/embed/app.spec.ts +729 -188
- package/src/embed/app.ts +240 -75
- package/src/embed/base.ts +1 -1
- package/src/embed/conversation.spec.ts +379 -20
- package/src/embed/conversation.ts +412 -18
- package/src/embed/events.spec.ts +56 -0
- package/src/embed/host-events.spec.ts +118 -0
- package/src/embed/hostEventClient/contracts.ts +16 -0
- package/src/embed/hostEventClient/host-event-client.spec.ts +46 -0
- package/src/embed/hostEventClient/host-event-client.ts +3 -2
- package/src/embed/liveboard.spec.ts +565 -4
- package/src/embed/liveboard.ts +150 -29
- package/src/embed/spotter-utils.spec.ts +140 -1
- package/src/embed/spotter-utils.ts +36 -1
- package/src/embed/spotter-viz-utils.ts +9 -10
- package/src/embed/ts-embed.spec.ts +699 -3
- package/src/embed/ts-embed.ts +99 -35
- package/src/index.ts +44 -2
- package/src/mixpanel-service.ts +4 -0
- package/src/react/all-types-export.parity.spec.ts +208 -0
- package/src/react/all-types-export.ts +22 -0
- package/src/react/index.spec.tsx +158 -0
- package/src/react/index.tsx +70 -33
- package/src/types.ts +791 -30
- package/src/utils.spec.ts +5 -0
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, SpotterQueryMode, ConversationEmbed, ConversationViewConfig } from './embed/conversation';
|
|
15
|
+
import { SpotterEmbed, SpotterEmbedViewConfig, SpotterChatViewConfig, SpotterSidebarViewConfig, SpotterAnalystConfig, SpotterQueryMode, SpotterShareConversationConfig, StarterPromptsConfig, StarterPromptCategory, StarterPreviewDataCategory, StarterPromptQuestion, 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';
|
|
@@ -24,8 +24,8 @@ import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
|
|
|
24
24
|
import { tokenizedFetch } from './tokenizedFetch';
|
|
25
25
|
import { getAnswerFromQuery } from './utils/graphql/nlsService/nls-answer-service';
|
|
26
26
|
import { createLiveboardWithAnswers } from './utils/liveboardService/liveboardService';
|
|
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, 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, };
|
|
27
|
+
import { UIPassthroughEvent, UIPassthroughContractBase, UIPassthroughRequest, UIPassthroughResponse, UIPassthroughArrayResponse, HostEventRequest, HostEventResponse, TriggerPayload, TriggerResponse, LiveboardTab, LiveboardGroup, ApplicabilityLevel, Applicability, FilterUpdate, LiveboardFilter, LiveboardParameter } 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, SpotterAnalystConfig, SpotterQueryMode, SpotterShareConversationConfig, StarterPromptsConfig, StarterPromptCategory, StarterPreviewDataCategory, StarterPromptQuestion, 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, UIPassthroughContractBase, UIPassthroughRequest, UIPassthroughResponse, UIPassthroughArrayResponse, HostEventRequest, HostEventResponse, TriggerPayload, TriggerResponse, LiveboardTab, LiveboardGroup, ApplicabilityLevel, Applicability, FilterUpdate, LiveboardFilter, LiveboardParameter, 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,CAAC;AACpJ,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;
|
|
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,C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E,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 = exports.EmbedErrorCodes = void 0;
|
|
4
|
+
exports.CustomActionTarget = exports.CustomActionsPosition = exports.DataPanelCustomColumnGroupsAccordionState = exports.ListPageColumns = exports.ApplicabilityLevel = 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 = exports.InterceptedApiType = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2023
|
|
8
8
|
*
|
|
@@ -87,6 +87,7 @@ const liveboardService_1 = require("./utils/liveboardService/liveboardService");
|
|
|
87
87
|
Object.defineProperty(exports, "createLiveboardWithAnswers", { enumerable: true, get: function () { return liveboardService_1.createLiveboardWithAnswers; } });
|
|
88
88
|
const contracts_1 = require("./embed/hostEventClient/contracts");
|
|
89
89
|
Object.defineProperty(exports, "UIPassthroughEvent", { enumerable: true, get: function () { return contracts_1.UIPassthroughEvent; } });
|
|
90
|
+
Object.defineProperty(exports, "ApplicabilityLevel", { enumerable: true, get: function () { return contracts_1.ApplicabilityLevel; } });
|
|
90
91
|
var authToken_1 = require("./authToken");
|
|
91
92
|
Object.defineProperty(exports, "resetCachedAuthToken", { enumerable: true, get: function () { return authToken_1.resetCachedAuthToken; } });
|
|
92
93
|
var auto_frame_renderer_1 = require("./embed/auto-frame-renderer");
|
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;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb;;;;;;;GAOG;AACH,qCASqB;AA4GjB,yFApHA,cAAQ,OAoHA;AA0BR,qFA7IA,UAAI,OA6IA;AAkCJ,sGA7KA,2BAAqB,OA6KA;AACrB,qGA7KA,0BAAoB,OA6KA;AACpB,yFA7KA,cAAQ,OA6KA;AACR,yFA7KA,cAAQ,OA6KA;AAwBR,0HApMA,+CAAyC,OAoMA;AAlM7C,uCASsB;AAiFlB,qFAzFA,WAAI,OAyFA;AAEJ,yFA1FA,eAAQ,OA0FA;AADR,uFAxFA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AACpB,oHArJA,2CAAmC,OAqJA;AACnC,8GArJA,qCAA6B,OAqJA;AAC7B,wGArJA,+BAAuB,OAqJA;AACvB,2FArJA,kBAAU,OAqJA;AACV,oGArJA,2BAAmB,OAqJA;AAjJvB,+EAAmH;AAiE/G,8FAjEK,6BAAa,OAiEL;AAhEjB,qDAAqD;AAiC/B,8FAjCb,4BAAc,OAiCY;AAhCnC,yDAAyE;AAmGrE,oGAnGK,sCAAmB,OAmGL;AACnB,+FApG0B,iCAAc,OAoG1B;AAnGlB,qDAAkD;AAiC9C,+FAjCK,+BAAc,OAiCL;AAhClB,sFAAmF;AAiC/E,mGAjCK,uCAAkB,OAiCL;AAhCtB,gFAAuF;AAiCnF,2GAjCK,6CAA0B,OAiCL;AAhC9B,iEAiB2C;AAsFvC,mGAtGA,8BAAkB,OAsGA;AAelB,mGA1GA,8BAAkB,OA0GA;AAwBtB,yCAAmD;AAA1C,iHAAA,oBAAoB,OAAA;AAC7B,mEAAwE;AAA/D,gIAAA,yBAAyB,OAAA"}
|
|
@@ -16,6 +16,10 @@ export declare const MIXPANEL_EVENT: {
|
|
|
16
16
|
VISUAL_SDK_IFRAME_LOAD_PERFORMANCE: string;
|
|
17
17
|
VISUAL_SDK_EMBED_CREATE: string;
|
|
18
18
|
VERCEL_INTEGRATION_COMPLETED: string;
|
|
19
|
+
VISUAL_SDK_RENDER_CALLED: string;
|
|
20
|
+
VISUAL_SDK_PRE_RENDER: string;
|
|
21
|
+
VISUAL_SDK_SHOW_PRE_RENDER: string;
|
|
22
|
+
VISUAL_SDK_HIDE_PRE_RENDER: string;
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* Pushes the event with its Property key-value map to mixpanel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixpanel-service.d.ts","sourceRoot":"","sources":["../../src/mixpanel-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAIzD,eAAO,MAAM,SAAS;;CAErB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"mixpanel-service.d.ts","sourceRoot":"","sources":["../../src/mixpanel-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAIzD,eAAO,MAAM,SAAS;;CAErB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAc1B,CAAC;AAKF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,KAAK,GAAG,IAAI,CAM1E;AAeD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CA4B3D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,SAGhC"}
|
|
@@ -26,6 +26,10 @@ exports.MIXPANEL_EVENT = {
|
|
|
26
26
|
VISUAL_SDK_IFRAME_LOAD_PERFORMANCE: 'visual-sdk-iframe-load-performance',
|
|
27
27
|
VISUAL_SDK_EMBED_CREATE: 'visual-sdk-embed-create',
|
|
28
28
|
VERCEL_INTEGRATION_COMPLETED: 'vercel-integration-completed',
|
|
29
|
+
VISUAL_SDK_RENDER_CALLED: 'visual-sdk-render-called',
|
|
30
|
+
VISUAL_SDK_PRE_RENDER: 'visual-sdk-pre-render',
|
|
31
|
+
VISUAL_SDK_SHOW_PRE_RENDER: 'visual-sdk-show-pre-render',
|
|
32
|
+
VISUAL_SDK_HIDE_PRE_RENDER: 'visual-sdk-hide-pre-render',
|
|
29
33
|
};
|
|
30
34
|
let isMixpanelInitialized = false;
|
|
31
35
|
let eventQueue = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixpanel-service.js","sourceRoot":"","sources":["../../src/mixpanel-service.ts"],"names":[],"mappings":";;;;AAAA,mEAA6C;AAC7C,2CAAwC;AAExC,qCAAyC;AACzC,qDAA8C;AAEjC,QAAA,SA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gBACpC,cAAc,EAAE,WAAW,CAAC,cAAc;gBAC1C,UAAU,EAAE,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,0CAAE,IAAI,KAAI,EAAE;gBACxC,UAAU,EAAE,qBAAO;aACtB,CAAC,CAAC;YACH,qBAAqB,GAAG,IAAI,CAAC;YAC7B,UAAU,EAAE,CAAC;SAChB;KACJ;IAAC,OAAO,CAAC,EAAE;QACR,eAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;KAClD;AACL,CAAC;AA5BD,oCA4BC;AAED;;GAEG;AACH,SAAgB,iBAAiB;IAC7B,qBAAqB,GAAG,KAAK,CAAC;IAC9B,UAAU,GAAG,EAAE,CAAC;AACpB,CAAC;AAHD,8CAGC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { SearchEmbed, PreRenderedSearchEmbed, LiveboardEmbed, PreRenderedLiveboardEmbed, SearchBarEmbed, PreRenderedSearchBarEmbed, AppEmbed, PreRenderedAppEmbed, SpotterEmbed, ConversationEmbed, PreRenderedConversationEmbed, SpotterMessage, useSpotterAgent, useEmbedRef, useInit, } from './index';
|
|
2
|
-
export { init, logout, prefetch, reloadIframe, getInitConfig, getSessionInfo, uploadMixpanelEvent, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, resetCachedAuthToken, UIPassthroughEvent, DataPanelCustomColumnGroupsAccordionState, InterceptedApiType, CustomActionsPosition, CustomActionTarget, } from '../index';
|
|
2
|
+
export { init, logout, prefetch, reloadIframe, getInitConfig, getSessionInfo, uploadMixpanelEvent, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, resetCachedAuthToken, UIPassthroughEvent, UIPassthroughContractBase, UIPassthroughRequest, UIPassthroughResponse, UIPassthroughArrayResponse, HostEventRequest, HostEventResponse, TriggerPayload, TriggerResponse, LiveboardTab, LiveboardGroup, ApplicabilityLevel, Applicability, FilterUpdate, LiveboardFilter, LiveboardParameter, DataPanelCustomColumnGroupsAccordionState, InterceptedApiType, CustomActionsPosition, CustomActionTarget, SpotterAnalystConfig, StarterPromptsConfig, StarterPromptCategory, StarterPreviewDataCategory, StarterPromptQuestion, } from '../index';
|
|
3
3
|
//# sourceMappingURL=all-types-export.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,cAAc,EACd,eAAe,EACf,WAAW,EACX,OAAO,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,yCAAyC,EACzC,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"all-types-export.d.ts","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,cAAc,EACd,eAAe,EACf,WAAW,EACX,OAAO,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAEhB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAGlB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,yCAAyC,EACzC,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,GACxB,MAAM,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomActionTarget = exports.CustomActionsPosition = exports.InterceptedApiType = exports.DataPanelCustomColumnGroupsAccordionState = exports.UIPassthroughEvent = exports.resetCachedAuthToken = exports.PrefetchFeatures = exports.Action = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = exports.Page = exports.AuthEvent = exports.AuthStatus = exports.AuthFailureType = exports.PinboardEmbed = exports.uploadMixpanelEvent = exports.getSessionInfo = exports.getInitConfig = exports.reloadIframe = exports.prefetch = exports.logout = exports.init = exports.useInit = exports.useEmbedRef = exports.useSpotterAgent = exports.SpotterMessage = exports.PreRenderedConversationEmbed = exports.ConversationEmbed = exports.SpotterEmbed = exports.PreRenderedAppEmbed = exports.AppEmbed = exports.PreRenderedSearchBarEmbed = exports.SearchBarEmbed = exports.PreRenderedLiveboardEmbed = exports.LiveboardEmbed = exports.PreRenderedSearchEmbed = exports.SearchEmbed = void 0;
|
|
3
|
+
exports.CustomActionTarget = exports.CustomActionsPosition = exports.InterceptedApiType = exports.DataPanelCustomColumnGroupsAccordionState = exports.ApplicabilityLevel = exports.UIPassthroughEvent = exports.resetCachedAuthToken = exports.PrefetchFeatures = exports.Action = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = exports.Page = exports.AuthEvent = exports.AuthStatus = exports.AuthFailureType = exports.PinboardEmbed = exports.uploadMixpanelEvent = exports.getSessionInfo = exports.getInitConfig = exports.reloadIframe = exports.prefetch = exports.logout = exports.init = exports.useInit = exports.useEmbedRef = exports.useSpotterAgent = exports.SpotterMessage = exports.PreRenderedConversationEmbed = exports.ConversationEmbed = exports.SpotterEmbed = exports.PreRenderedAppEmbed = exports.AppEmbed = exports.PreRenderedSearchBarEmbed = exports.SearchBarEmbed = exports.PreRenderedLiveboardEmbed = exports.LiveboardEmbed = exports.PreRenderedSearchEmbed = exports.SearchEmbed = void 0;
|
|
4
4
|
var index_1 = require("./index");
|
|
5
5
|
Object.defineProperty(exports, "SearchEmbed", { enumerable: true, get: function () { return index_1.SearchEmbed; } });
|
|
6
6
|
Object.defineProperty(exports, "PreRenderedSearchEmbed", { enumerable: true, get: function () { return index_1.PreRenderedSearchEmbed; } });
|
|
@@ -40,6 +40,7 @@ Object.defineProperty(exports, "Action", { enumerable: true, get: function () {
|
|
|
40
40
|
Object.defineProperty(exports, "PrefetchFeatures", { enumerable: true, get: function () { return index_2.PrefetchFeatures; } });
|
|
41
41
|
Object.defineProperty(exports, "resetCachedAuthToken", { enumerable: true, get: function () { return index_2.resetCachedAuthToken; } });
|
|
42
42
|
Object.defineProperty(exports, "UIPassthroughEvent", { enumerable: true, get: function () { return index_2.UIPassthroughEvent; } });
|
|
43
|
+
Object.defineProperty(exports, "ApplicabilityLevel", { enumerable: true, get: function () { return index_2.ApplicabilityLevel; } });
|
|
43
44
|
Object.defineProperty(exports, "DataPanelCustomColumnGroupsAccordionState", { enumerable: true, get: function () { return index_2.DataPanelCustomColumnGroupsAccordionState; } });
|
|
44
45
|
Object.defineProperty(exports, "InterceptedApiType", { enumerable: true, get: function () { return index_2.InterceptedApiType; } });
|
|
45
46
|
Object.defineProperty(exports, "CustomActionsPosition", { enumerable: true, get: function () { return index_2.CustomActionsPosition; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.js","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":";;;AAAA,iCAgBiB;AAfb,oGAAA,WAAW,OAAA;AACX,+GAAA,sBAAsB,OAAA;AACtB,uGAAA,cAAc,OAAA;AACd,kHAAA,yBAAyB,OAAA;AACzB,uGAAA,cAAc,OAAA;AACd,kHAAA,yBAAyB,OAAA;AACzB,iGAAA,QAAQ,OAAA;AACR,4GAAA,mBAAmB,OAAA;AACnB,qGAAA,YAAY,OAAA;AACZ,0GAAA,iBAAiB,OAAA;AACjB,qHAAA,4BAA4B,OAAA;AAC5B,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,oGAAA,WAAW,OAAA;AACX,gGAAA,OAAO,OAAA;AAGX,
|
|
1
|
+
{"version":3,"file":"all-types-export.js","sourceRoot":"","sources":["../../../src/react/all-types-export.ts"],"names":[],"mappings":";;;AAAA,iCAgBiB;AAfb,oGAAA,WAAW,OAAA;AACX,+GAAA,sBAAsB,OAAA;AACtB,uGAAA,cAAc,OAAA;AACd,kHAAA,yBAAyB,OAAA;AACzB,uGAAA,cAAc,OAAA;AACd,kHAAA,yBAAyB,OAAA;AACzB,iGAAA,QAAQ,OAAA;AACR,4GAAA,mBAAmB,OAAA;AACnB,qGAAA,YAAY,OAAA;AACZ,0GAAA,iBAAiB,OAAA;AACjB,qHAAA,4BAA4B,OAAA;AAC5B,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,oGAAA,WAAW,OAAA;AACX,gGAAA,OAAO,OAAA;AAGX,kCAkEkB;AAjEd,6FAAA,IAAI,OAAA;AACJ,+FAAA,MAAM,OAAA;AACN,iGAAA,QAAQ,OAAA;AACR,qGAAA,YAAY,OAAA;AACZ,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,4GAAA,mBAAmB,OAAA;AACnB,sGAAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA;AACf,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AAET,QAAQ;AACR,6FAAA,IAAI,OAAA;AACJ,iGAAA,QAAQ,OAAA;AAER,wGAAA,eAAe,OAAA;AACf,mGAAA,UAAU,OAAA;AACV,kGAAA,SAAS,OAAA;AACT,6GAAA,oBAAoB,OAAA;AACpB,+FAAA,MAAM,OAAA;AAMN,yGAAA,gBAAgB,OAAA;AAWhB,6GAAA,oBAAoB,OAAA;AACpB,2GAAA,kBAAkB,OAAA;AAalB,2GAAA,kBAAkB,OAAA;AAKlB,kIAAA,yCAAyC,OAAA;AACzC,2GAAA,kBAAkB,OAAA;AAClB,8GAAA,qBAAqB,OAAA;AACrB,2GAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-types-export.parity.spec.d.ts","sourceRoot":"","sources":["../../../src/react/all-types-export.parity.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
/**
|
|
5
|
+
* Parity gate: every symbol exported from `src/index.ts` must also be exported
|
|
6
|
+
* from `src/react/all-types-export.ts`.
|
|
7
|
+
*
|
|
8
|
+
* `package.json` `exports` restricts consumers to two entry points — `.` and
|
|
9
|
+
* `./react` — and the React surface is a HAND-MAINTAINED duplicate export list,
|
|
10
|
+
* not a `export * from '../index'`. So a symbol added only to `src/index.ts` is
|
|
11
|
+
* invisible to every React consumer.
|
|
12
|
+
*
|
|
13
|
+
* The sibling `all-types-export.spec.ts` cannot catch this: it inspects the
|
|
14
|
+
* module at runtime, and type-only exports (interfaces, type aliases) are
|
|
15
|
+
* erased by the compiler. This spec therefore compares the two files as TEXT.
|
|
16
|
+
*/
|
|
17
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
18
|
+
const path = tslib_1.__importStar(require("path"));
|
|
19
|
+
const INDEX_PATH = path.join(__dirname, '..', 'index.ts');
|
|
20
|
+
const REACT_EXPORT_PATH = path.join(__dirname, 'all-types-export.ts');
|
|
21
|
+
/**
|
|
22
|
+
* Symbols intentionally absent from the React surface.
|
|
23
|
+
* Add here only with a reason — every entry is a thing React users cannot use.
|
|
24
|
+
*/
|
|
25
|
+
const REACT_EXEMPT = new Set([
|
|
26
|
+
// React has its own component wrappers for these; the raw classes are not
|
|
27
|
+
// part of the /react surface.
|
|
28
|
+
'SearchEmbed',
|
|
29
|
+
'SearchBarEmbed',
|
|
30
|
+
'LiveboardEmbed',
|
|
31
|
+
'AppEmbed',
|
|
32
|
+
'SpotterEmbed',
|
|
33
|
+
'SpotterAgentEmbed',
|
|
34
|
+
'ConversationEmbed',
|
|
35
|
+
'BodylessConversation',
|
|
36
|
+
'PreRenderedSearchEmbed',
|
|
37
|
+
'PreRenderedSearchBarEmbed',
|
|
38
|
+
'PreRenderedLiveboardEmbed',
|
|
39
|
+
'PreRenderedAppEmbed',
|
|
40
|
+
'PreRenderedConversationEmbed',
|
|
41
|
+
'PinboardEmbed',
|
|
42
|
+
'TsEmbed',
|
|
43
|
+
'V1Embed',
|
|
44
|
+
]);
|
|
45
|
+
/**
|
|
46
|
+
* PRE-EXISTING gaps, discovered when this spec was introduced. These are
|
|
47
|
+
* symbols React consumers cannot import today — most look like oversights
|
|
48
|
+
* rather than deliberate omissions (e.g. `ContextType`, `CustomActionPayload`,
|
|
49
|
+
* `VizPoint`, the Spotter view configs).
|
|
50
|
+
*
|
|
51
|
+
* This list may only ever SHRINK. Do not add to it — a new entry means a
|
|
52
|
+
* symbol was added to `src/index.ts` without adding it to the React surface,
|
|
53
|
+
* which is exactly what this spec exists to prevent. Removing entries (by
|
|
54
|
+
* exporting them from `all-types-export.ts`) is a welcome follow-up; it is
|
|
55
|
+
* deliberately out of scope for the change that introduced this gate.
|
|
56
|
+
*/
|
|
57
|
+
const KNOWN_REACT_GAPS = new Set([
|
|
58
|
+
'AnswerService',
|
|
59
|
+
'AutoMCPFrameRendererViewConfig',
|
|
60
|
+
'BackgroundFormatType',
|
|
61
|
+
'BodylessConversationViewConfig',
|
|
62
|
+
'ConditionalFormattingComparisonType',
|
|
63
|
+
'ConditionalFormattingOperator',
|
|
64
|
+
'ContextMenuTriggerOptions',
|
|
65
|
+
'ContextType',
|
|
66
|
+
'ConversationViewConfig',
|
|
67
|
+
'CustomActionPayload',
|
|
68
|
+
'DataLabelFilterOperator',
|
|
69
|
+
'EmbedErrorCodes',
|
|
70
|
+
'EmbedErrorDetailsEvent',
|
|
71
|
+
'ErrorDetailsTypes',
|
|
72
|
+
'HomeLeftNavItem',
|
|
73
|
+
'HomePage',
|
|
74
|
+
'HomePageSearchBarMode',
|
|
75
|
+
'HomepageModule',
|
|
76
|
+
'LegendPosition',
|
|
77
|
+
'ListPage',
|
|
78
|
+
'ListPageColumns',
|
|
79
|
+
'LogLevel',
|
|
80
|
+
'MIXPANEL_EVENT',
|
|
81
|
+
'PrimaryNavbarVersion',
|
|
82
|
+
'SessionInterface',
|
|
83
|
+
'SpotterAgentEmbedViewConfig',
|
|
84
|
+
'SpotterChatViewConfig',
|
|
85
|
+
'SpotterEmbedViewConfig',
|
|
86
|
+
'SpotterQueryMode',
|
|
87
|
+
'SpotterShareConversationConfig',
|
|
88
|
+
'SpotterSidebarViewConfig',
|
|
89
|
+
'SpotterVizConfig',
|
|
90
|
+
'SpotterVizLoaderTip',
|
|
91
|
+
'SpotterVizStarterPrompt',
|
|
92
|
+
'TableContentDensity',
|
|
93
|
+
'TableTheme',
|
|
94
|
+
'UnderlyingDataPoint',
|
|
95
|
+
'VisualizationOverrides',
|
|
96
|
+
'VizPoint',
|
|
97
|
+
// Standalone helpers re-exported from src/index.ts outside the main block.
|
|
98
|
+
'createLiveboardWithAnswers',
|
|
99
|
+
'executeTML',
|
|
100
|
+
'executeTMLInput',
|
|
101
|
+
'exportTML',
|
|
102
|
+
'exportTMLInput',
|
|
103
|
+
'getAnswerFromQuery',
|
|
104
|
+
'startAutoMCPFrameRenderer',
|
|
105
|
+
'tokenizedFetch',
|
|
106
|
+
]);
|
|
107
|
+
/**
|
|
108
|
+
* Extract identifiers from every `export { ... }` / `export type { ... }` block
|
|
109
|
+
* in a source file. Handles `a`, `a as b` (records the exported name `b`),
|
|
110
|
+
* comments and trailing commas.
|
|
111
|
+
*
|
|
112
|
+
* `export * from '...'` cannot be enumerated by name (the names live in another
|
|
113
|
+
* module), so it would silently defeat this parity gate. We refuse to run
|
|
114
|
+
* against it: if either file adopts a star re-export, this throws so the gate
|
|
115
|
+
* is extended deliberately rather than passing blind.
|
|
116
|
+
*/
|
|
117
|
+
const extractExportedNames = (source) => {
|
|
118
|
+
if (/export\s*\*/.test(source)) {
|
|
119
|
+
throw new Error('Parity extractor found an `export *` re-export, which it cannot '
|
|
120
|
+
+ 'enumerate by name. Extend extractExportedNames to resolve star '
|
|
121
|
+
+ 'exports before relying on this gate.');
|
|
122
|
+
}
|
|
123
|
+
const names = new Set();
|
|
124
|
+
// Matches `export { ... }` and `export type { ... }`.
|
|
125
|
+
const blockRe = /export\s*(?:type\s+)?\{([\s\S]*?)\}/g;
|
|
126
|
+
let match = blockRe.exec(source);
|
|
127
|
+
while (match !== null) {
|
|
128
|
+
match[1]
|
|
129
|
+
// strip line and block comments
|
|
130
|
+
.replace(/\/\*[\s\S]*?\*\//g, '')
|
|
131
|
+
.replace(/\/\/[^\n]*/g, '')
|
|
132
|
+
.split(',')
|
|
133
|
+
.map((entry) => entry.trim())
|
|
134
|
+
.filter(Boolean)
|
|
135
|
+
.forEach((entry) => {
|
|
136
|
+
// `foo as bar` exports the name `bar`
|
|
137
|
+
const parts = entry.split(/\s+as\s+/);
|
|
138
|
+
const exported = (parts[parts.length - 1] || '').trim();
|
|
139
|
+
if (/^[A-Za-z_$][\w$]*$/.test(exported)) {
|
|
140
|
+
names.add(exported);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
match = blockRe.exec(source);
|
|
144
|
+
}
|
|
145
|
+
return names;
|
|
146
|
+
};
|
|
147
|
+
describe('react/all-types-export parity with index', () => {
|
|
148
|
+
it('exports every symbol that src/index.ts exports', () => {
|
|
149
|
+
const indexNames = extractExportedNames(fs.readFileSync(INDEX_PATH, 'utf8'));
|
|
150
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
151
|
+
// Sanity: the extractor found something. Guards against a regex that
|
|
152
|
+
// silently matches nothing after a refactor.
|
|
153
|
+
expect(indexNames.size).toBeGreaterThan(50);
|
|
154
|
+
expect(reactNames.size).toBeGreaterThan(50);
|
|
155
|
+
const missing = [...indexNames]
|
|
156
|
+
.filter((name) => !reactNames.has(name))
|
|
157
|
+
.filter((name) => !REACT_EXEMPT.has(name))
|
|
158
|
+
.filter((name) => !KNOWN_REACT_GAPS.has(name))
|
|
159
|
+
.sort();
|
|
160
|
+
if (missing.length > 0) {
|
|
161
|
+
throw new Error('These symbols are exported from src/index.ts but NOT from '
|
|
162
|
+
+ 'src/react/all-types-export.ts, so React consumers cannot '
|
|
163
|
+
+ `import them:\n ${missing.join('\n ')}\n\n`
|
|
164
|
+
+ 'Add them to src/react/all-types-export.ts. Do NOT add them '
|
|
165
|
+
+ 'to KNOWN_REACT_GAPS — that list is a shrinking backlog of '
|
|
166
|
+
+ 'pre-existing gaps and must never grow.');
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
it('KNOWN_REACT_GAPS only lists symbols that are genuinely still missing', () => {
|
|
170
|
+
// Ratchet: once a gap is fixed, its entry must be deleted, so the list
|
|
171
|
+
// can only shrink.
|
|
172
|
+
const indexNames = extractExportedNames(fs.readFileSync(INDEX_PATH, 'utf8'));
|
|
173
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
174
|
+
const stale = [...KNOWN_REACT_GAPS]
|
|
175
|
+
.filter((name) => reactNames.has(name) || !indexNames.has(name))
|
|
176
|
+
.sort();
|
|
177
|
+
if (stale.length > 0) {
|
|
178
|
+
throw new Error('These entries in KNOWN_REACT_GAPS are no longer gaps (they are '
|
|
179
|
+
+ 'now exported from the React surface, or no longer exported '
|
|
180
|
+
+ `from src/index.ts). Delete them from the list:\n ${stale.join('\n ')}`);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
it('exposes the host event contract types on the React surface', () => {
|
|
184
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
185
|
+
[
|
|
186
|
+
'UIPassthroughContractBase',
|
|
187
|
+
'HostEventRequest',
|
|
188
|
+
'HostEventResponse',
|
|
189
|
+
'TriggerPayload',
|
|
190
|
+
'TriggerResponse',
|
|
191
|
+
].forEach((name) => expect(reactNames.has(name)).toBe(true));
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
//# sourceMappingURL=all-types-export.parity.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-types-export.parity.spec.js","sourceRoot":"","sources":["../../../src/react/all-types-export.parity.spec.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,+CAAyB;AACzB,mDAA6B;AAE7B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;AAC1D,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAS;IACjC,0EAA0E;IAC1E,8BAA8B;IAC9B,aAAa;IACb,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;IACV,cAAc;IACd,mBAAmB;IACnB,mBAAmB;IACnB,sBAAsB;IACtB,wBAAwB;IACxB,2BAA2B;IAC3B,2BAA2B;IAC3B,qBAAqB;IACrB,8BAA8B;IAC9B,eAAe;IACf,SAAS;IACT,SAAS;CACZ,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS;IACrC,eAAe;IACf,gCAAgC;IAChC,sBAAsB;IACtB,gCAAgC;IAChC,qCAAqC;I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EAAE,MAAM,CAAC,CAAC,CAAC;QACpF;YACI,2BAA2B;YAC3B,kBAAkB;YAClB,mBAAmB;YACnB,gBAAgB;YAChB,iBAAiB;SACpB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/cjs/src/react/index.d.ts
CHANGED
|
@@ -5,40 +5,74 @@ import { SearchEmbed as _SearchEmbed, SearchViewConfig } from '../embed/search';
|
|
|
5
5
|
import { AppEmbed as _AppEmbed, AppViewConfig } from '../embed/app';
|
|
6
6
|
import { LiveboardEmbed as _LiveboardEmbed, LiveboardViewConfig } from '../embed/liveboard';
|
|
7
7
|
import { SpotterAgentEmbedViewConfig, ConversationMessage as _ConversationMessage, SpotterAgentMessageViewConfig } from '../embed/bodyless-conversation';
|
|
8
|
-
import { EmbedConfig } from '../types';
|
|
8
|
+
import { EmbedConfig, PreRenderConfig } from '../types';
|
|
9
9
|
import { EmbedProps } from './util';
|
|
10
10
|
import { SpotterEmbed as _SpotterEmbed, SpotterEmbedViewConfig, ConversationEmbed as _ConversationEmbed, ConversationViewConfig } from '../embed/conversation';
|
|
11
11
|
interface SearchProps extends EmbedProps, SearchViewConfig {
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The PreRendered components require a preRender id. It can be supplied either
|
|
15
|
+
* through `preRenderConfig.preRenderId` (SDK: 1.52.0 and later) or through the
|
|
16
|
+
* top-level `preRenderId` prop (SDK: 1.25.0 and later, now deprecated).
|
|
17
|
+
* `preRenderConfig.preRenderId` takes precedence when both are set.
|
|
18
|
+
*
|
|
19
|
+
* Use PreRender to render the embed in the background and then
|
|
20
|
+
* show or hide the rendered embed using showPreRender or hidePreRender respectively.
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // Preferred, SDK: 1.52.0 and later.
|
|
24
|
+
* function LandingPageComponent() {
|
|
25
|
+
* return <PreRenderedLiveboardEmbed
|
|
26
|
+
* preRenderConfig={{ preRenderId: "someId" }}
|
|
27
|
+
* liveboardId="libId"
|
|
28
|
+
* />
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* function MyComponent() {
|
|
32
|
+
* return <LiveboardEmbed
|
|
33
|
+
* preRenderConfig={{ preRenderId: "someId" }}
|
|
34
|
+
* liveboardId="libId"
|
|
35
|
+
* />
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* // Deprecated top-level preRenderId, still supported.
|
|
41
|
+
* function LandingPageComponent() {
|
|
42
|
+
* return <PreRenderedLiveboardEmbed preRenderId="someId" liveboardId="libId" />
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
type PreRenderProps = {
|
|
14
47
|
/**
|
|
15
48
|
* PreRender id to be used for PreRendering the embed.
|
|
16
|
-
* Use PreRender to render the embed in the background and then
|
|
17
|
-
* show or hide the rendered embed using showPreRender or hidePreRender respectively.
|
|
18
|
-
*
|
|
19
|
-
* Use PreRendered react component for pre rendering embed components.
|
|
20
49
|
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl
|
|
21
|
-
* @
|
|
22
|
-
* ```js
|
|
23
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
24
|
-
* ... // other liveboard view config
|
|
25
|
-
* preRenderId: "preRenderId-123"
|
|
26
|
-
* });
|
|
27
|
-
* embed.showPreRender();
|
|
28
|
-
* ```
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* function LandingPageComponent() {
|
|
32
|
-
* return <PreRenderedLiveboardEmbed preRenderId="someId" liveboardId="libId" />
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
* function MyComponent() {
|
|
36
|
-
* return <LiveboardEmbed preRenderId="someId" liveboardId="libId" />
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
50
|
+
* @deprecated Use `preRenderConfig.preRenderId` instead.
|
|
39
51
|
*/
|
|
40
52
|
preRenderId: string;
|
|
41
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Configuration for the pre-render wrapper element.
|
|
55
|
+
* See {@link PreRenderConfig} for available options.
|
|
56
|
+
* @version SDK: 1.52.0
|
|
57
|
+
*/
|
|
58
|
+
preRenderConfig?: PreRenderConfig;
|
|
59
|
+
} | {
|
|
60
|
+
/**
|
|
61
|
+
* PreRender id to be used for PreRendering the embed.
|
|
62
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl
|
|
63
|
+
* @deprecated Use `preRenderConfig.preRenderId` instead.
|
|
64
|
+
*/
|
|
65
|
+
preRenderId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Configuration for the pre-render wrapper element. `preRenderId` is
|
|
68
|
+
* required here when the top-level `preRenderId` prop is not passed.
|
|
69
|
+
* See {@link PreRenderConfig} for available options.
|
|
70
|
+
* @version SDK: 1.52.0
|
|
71
|
+
*/
|
|
72
|
+
preRenderConfig: PreRenderConfig & {
|
|
73
|
+
preRenderId: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
42
76
|
/**
|
|
43
77
|
* React component for Search Embed.
|
|
44
78
|
* @example
|
|
@@ -52,7 +86,7 @@ interface PreRenderProps {
|
|
|
52
86
|
* ```
|
|
53
87
|
*/
|
|
54
88
|
export declare const SearchEmbed: React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<_SearchEmbed>>;
|
|
55
|
-
export declare const PreRenderedSearchEmbed: React.ForwardRefExoticComponent<SearchProps & PreRenderProps & React.RefAttributes<_SearchEmbed>>;
|
|
89
|
+
export declare const PreRenderedSearchEmbed: React.ForwardRefExoticComponent<(SearchProps & PreRenderProps) & React.RefAttributes<_SearchEmbed>>;
|
|
56
90
|
interface AppProps extends EmbedProps, AppViewConfig {
|
|
57
91
|
}
|
|
58
92
|
/**
|
|
@@ -87,7 +121,7 @@ export declare const AppEmbed: React.ForwardRefExoticComponent<AppProps & React.
|
|
|
87
121
|
* }
|
|
88
122
|
* ```
|
|
89
123
|
*/
|
|
90
|
-
export declare const PreRenderedAppEmbed: React.ForwardRefExoticComponent<AppProps & PreRenderProps & React.RefAttributes<_AppEmbed>>;
|
|
124
|
+
export declare const PreRenderedAppEmbed: React.ForwardRefExoticComponent<(AppProps & PreRenderProps) & React.RefAttributes<_AppEmbed>>;
|
|
91
125
|
interface LiveboardProps extends EmbedProps, LiveboardViewConfig {
|
|
92
126
|
}
|
|
93
127
|
/**
|
|
@@ -127,8 +161,8 @@ export declare const PinboardEmbed: React.ForwardRefExoticComponent<LiveboardPro
|
|
|
127
161
|
* }
|
|
128
162
|
* ```
|
|
129
163
|
*/
|
|
130
|
-
export declare const PreRenderedLiveboardEmbed: React.ForwardRefExoticComponent<LiveboardProps & PreRenderProps & React.RefAttributes<_LiveboardEmbed>>;
|
|
131
|
-
export declare const PreRenderedPinboardEmbed: React.ForwardRefExoticComponent<LiveboardProps & PreRenderProps & React.RefAttributes<_LiveboardEmbed>>;
|
|
164
|
+
export declare const PreRenderedLiveboardEmbed: React.ForwardRefExoticComponent<(LiveboardProps & PreRenderProps) & React.RefAttributes<_LiveboardEmbed>>;
|
|
165
|
+
export declare const PreRenderedPinboardEmbed: React.ForwardRefExoticComponent<(LiveboardProps & PreRenderProps) & React.RefAttributes<_LiveboardEmbed>>;
|
|
132
166
|
interface SearchBarEmbedProps extends EmbedProps, SearchBarViewConfig {
|
|
133
167
|
}
|
|
134
168
|
/**
|
|
@@ -162,7 +196,7 @@ export declare const SearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEm
|
|
|
162
196
|
* }
|
|
163
197
|
* ```
|
|
164
198
|
*/
|
|
165
|
-
export declare const PreRenderedSearchBarEmbed: React.ForwardRefExoticComponent<SearchBarEmbedProps & PreRenderProps & React.RefAttributes<_SearchBarEmbed>>;
|
|
199
|
+
export declare const PreRenderedSearchBarEmbed: React.ForwardRefExoticComponent<(SearchBarEmbedProps & PreRenderProps) & React.RefAttributes<_SearchBarEmbed>>;
|
|
166
200
|
interface SpotterEmbedProps extends EmbedProps, SpotterEmbedViewConfig {
|
|
167
201
|
}
|
|
168
202
|
interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
@@ -255,7 +289,7 @@ export declare const SpotterMessage: React.ForwardRefExoticComponent<{
|
|
|
255
289
|
* }
|
|
256
290
|
* ```
|
|
257
291
|
*/
|
|
258
|
-
export declare const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<SpotterEmbedProps & PreRenderProps & React.RefAttributes<_SpotterEmbed>>;
|
|
292
|
+
export declare const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<(SpotterEmbedProps & PreRenderProps) & React.RefAttributes<_SpotterEmbed>>;
|
|
259
293
|
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof ConversationMessage | typeof SpotterMessage | typeof SpotterEmbed | typeof ConversationEmbed;
|
|
260
294
|
/**
|
|
261
295
|
* Get a reference to the embed component to trigger events on the component.
|
|
@@ -265,7 +299,7 @@ type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmb
|
|
|
265
299
|
* const ref = useEmbedRef();
|
|
266
300
|
* useEffect(() => {
|
|
267
301
|
* ref.current.trigger(
|
|
268
|
-
*
|
|
302
|
+
* HostEvent.UpdateRuntimeFilters,
|
|
269
303
|
* [{ columnName: 'name', operator: 'EQ', values: ['value']}]);
|
|
270
304
|
* }, [])
|
|
271
305
|
* return <LiveboardEmbed ref={ref} liveboardId={<id>} />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,gBAA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GED
|
@@ -22,15 +22,17 @@ const componentFactory = (EmbedConstructor,
|
|
|
22
22
|
// not be destroyed when the component is unmounted.
|
|
23
23
|
isPreRenderedComponent = false) => {
|
|
24
24
|
const Component = react_1.default.forwardRef((props, forwardedRef) => {
|
|
25
|
+
var _a, _b;
|
|
25
26
|
const ref = react_1.default.useRef(null);
|
|
26
27
|
const { className, style, ...embedProps } = props;
|
|
27
28
|
const { viewConfig, listeners } = (0, util_1.getViewPropsAndListeners)(embedProps);
|
|
29
|
+
const preRenderId = (_b = (_a = props.preRenderConfig) === null || _a === void 0 ? void 0 : _a.preRenderId) !== null && _b !== void 0 ? _b : props.preRenderId;
|
|
28
30
|
const handleDestroy = (tsEmbed) => {
|
|
29
31
|
// do not destroy if it is a preRender component
|
|
30
32
|
if (isPreRenderedComponent)
|
|
31
33
|
return;
|
|
32
34
|
// if component is connected to a preRendered component
|
|
33
|
-
if (
|
|
35
|
+
if (preRenderId) {
|
|
34
36
|
tsEmbed.hidePreRender();
|
|
35
37
|
return;
|
|
36
38
|
}
|
|
@@ -41,7 +43,7 @@ isPreRenderedComponent = false) => {
|
|
|
41
43
|
};
|
|
42
44
|
const handleDefaultRendering = (tsEmbed) => {
|
|
43
45
|
// if component is connected to a preRendered component
|
|
44
|
-
if (
|
|
46
|
+
if (preRenderId) {
|
|
45
47
|
tsEmbed.showPreRender();
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
@@ -290,7 +292,7 @@ exports.PreRenderedConversationEmbed = componentFactory(conversation_1.SpotterEm
|
|
|
290
292
|
* const ref = useEmbedRef();
|
|
291
293
|
* useEffect(() => {
|
|
292
294
|
* ref.current.trigger(
|
|
293
|
-
*
|
|
295
|
+
* HostEvent.UpdateRuntimeFilters,
|
|
294
296
|
* [{ columnName: 'name', operator: 'EQ', values: ['value']}]);
|
|
295
297
|
* }, [])
|
|
296
298
|
* return <LiveboardEmbed ref={ref} liveboardId={<id>} />
|