@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/lib/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/lib/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,CAA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MAAM,6BAA6B,CAAC"}
|
package/lib/src/index.js
CHANGED
|
@@ -23,8 +23,8 @@ import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
|
|
|
23
23
|
import { tokenizedFetch } from './tokenizedFetch';
|
|
24
24
|
import { getAnswerFromQuery } from './utils/graphql/nlsService/nls-answer-service';
|
|
25
25
|
import { createLiveboardWithAnswers } from './utils/liveboardService/liveboardService';
|
|
26
|
-
import { UIPassthroughEvent } from './embed/hostEventClient/contracts';
|
|
27
|
-
export { init, logout, prefetch, executeTML, exportTML, reloadIframe, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, SpotterAgentEmbed, BodylessConversation, SpotterEmbed, SpotterQueryMode, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, ContextType, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, PrimaryNavbarVersion, HomePage, ListPage, UIPassthroughEvent, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, CustomActionsPosition, CustomActionTarget, InterceptedApiType, EmbedErrorCodes, ErrorDetailsTypes, LegendPosition, BackgroundFormatType, ConditionalFormattingComparisonType, ConditionalFormattingOperator, DataLabelFilterOperator, TableTheme, TableContentDensity, };
|
|
26
|
+
import { UIPassthroughEvent, ApplicabilityLevel, } from './embed/hostEventClient/contracts';
|
|
27
|
+
export { init, logout, prefetch, executeTML, exportTML, reloadIframe, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, AppEmbed, SpotterAgentEmbed, BodylessConversation, SpotterEmbed, SpotterQueryMode, ConversationEmbed, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, ContextType, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, HomePageSearchBarMode, PrimaryNavbarVersion, HomePage, ListPage, UIPassthroughEvent, ApplicabilityLevel, ListPageColumns, DataPanelCustomColumnGroupsAccordionState, CustomActionsPosition, CustomActionTarget, InterceptedApiType, EmbedErrorCodes, ErrorDetailsTypes, LegendPosition, BackgroundFormatType, ConditionalFormattingComparisonType, ConditionalFormattingOperator, DataLabelFilterOperator, TableTheme, TableContentDensity, };
|
|
28
28
|
export { resetCachedAuthToken } from './authToken';
|
|
29
29
|
export { startAutoMCPFrameRenderer } from './embed/auto-frame-renderer';
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
package/lib/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,OAAO,EACH,QAAQ,EACR,IAAI,EAEJ,qBAAqB,EACrB,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACR,yCAAyC,GAC5C,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EAGT,YAAY,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAuB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAA+B,oBAAoB,EAAiC,MAAM,+BAA+B,CAAC;AACpJ,OAAO,EAAE,YAAY,
|
|
1
|
+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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"}
|
|
@@ -22,6 +22,10 @@ export const MIXPANEL_EVENT = {
|
|
|
22
22
|
VISUAL_SDK_IFRAME_LOAD_PERFORMANCE: 'visual-sdk-iframe-load-performance',
|
|
23
23
|
VISUAL_SDK_EMBED_CREATE: 'visual-sdk-embed-create',
|
|
24
24
|
VERCEL_INTEGRATION_COMPLETED: 'vercel-integration-completed',
|
|
25
|
+
VISUAL_SDK_RENDER_CALLED: 'visual-sdk-render-called',
|
|
26
|
+
VISUAL_SDK_PRE_RENDER: 'visual-sdk-pre-render',
|
|
27
|
+
VISUAL_SDK_SHOW_PRE_RENDER: 'visual-sdk-show-pre-render',
|
|
28
|
+
VISUAL_SDK_HIDE_PRE_RENDER: 'visual-sdk-hide-pre-render',
|
|
25
29
|
};
|
|
26
30
|
let isMixpanelInitialized = false;
|
|
27
31
|
let eventQueue = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixpanel-service.js","sourceRoot":"","sources":["../../src/mixpanel-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,MAAM,EAAE,4BAA4B;CACvC,CAAC;AAEF,wDAAwD;AACxD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC;AACjD,IAAI,gBAAmC,CAAC;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,0BAA0B,EAAE,4BAA4B;IACxD,wBAAwB,EAAE,0BAA0B;IACpD,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;IAC9B,kCAAkC,EAAE,oCAAoC;IACxE,uBAAuB,EAAE,yBAAyB;IAClD,4BAA4B,EAAE,8BAA8B;
|
|
1
|
+
{"version":3,"file":"mixpanel-service.js","sourceRoot":"","sources":["../../src/mix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;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC7B,qBAAqB,GAAG,KAAK,CAAC;IAC9B,UAAU,GAAG,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
export { SearchEmbed, PreRenderedSearchEmbed, LiveboardEmbed, PreRenderedLiveboardEmbed, SearchBarEmbed, PreRenderedSearchBarEmbed, AppEmbed, PreRenderedAppEmbed, SpotterEmbed, ConversationEmbed, PreRenderedConversationEmbed, SpotterMessage, useSpotterAgent, useEmbedRef, useInit, } from './index';
|
|
2
2
|
export { init, logout, prefetch, reloadIframe, getInitConfig, getSessionInfo, uploadMixpanelEvent, PinboardEmbed, AuthFailureType, AuthStatus, AuthEvent,
|
|
3
3
|
// types
|
|
4
|
-
Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, PrefetchFeatures, resetCachedAuthToken, UIPassthroughEvent, DataPanelCustomColumnGroupsAccordionState, InterceptedApiType, CustomActionsPosition, CustomActionTarget, } from '../index';
|
|
4
|
+
Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, PrefetchFeatures, resetCachedAuthToken, UIPassthroughEvent, ApplicabilityLevel, DataPanelCustomColumnGroupsAccordionState, InterceptedApiType, CustomActionsPosition, CustomActionTarget, } from '../index';
|
|
5
5
|
//# sourceMappingURL=all-types-export.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-types-export.js","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;AAET,QAAQ;AACR,IAAI,EACJ,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EAMN,gBAAgB,EAWhB,oBAAoB,EACpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"all-types-export.js","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;AAET,QAAQ;AACR,IAAI,EACJ,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EAMN,gBAAgB,EAWhB,oBAAoB,EACpB,kBAAkB,EAalB,kBAAkB,EAKlB,yCAAyC,EACzC,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GAMrB,MAAM,UAAU,CAAC"}
|
|
@@ -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,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parity gate: every symbol exported from `src/index.ts` must also be exported
|
|
3
|
+
* from `src/react/all-types-export.ts`.
|
|
4
|
+
*
|
|
5
|
+
* `package.json` `exports` restricts consumers to two entry points — `.` and
|
|
6
|
+
* `./react` — and the React surface is a HAND-MAINTAINED duplicate export list,
|
|
7
|
+
* not a `export * from '../index'`. So a symbol added only to `src/index.ts` is
|
|
8
|
+
* invisible to every React consumer.
|
|
9
|
+
*
|
|
10
|
+
* The sibling `all-types-export.spec.ts` cannot catch this: it inspects the
|
|
11
|
+
* module at runtime, and type-only exports (interfaces, type aliases) are
|
|
12
|
+
* erased by the compiler. This spec therefore compares the two files as TEXT.
|
|
13
|
+
*/
|
|
14
|
+
import * as fs from 'fs';
|
|
15
|
+
import * as path from 'path';
|
|
16
|
+
const INDEX_PATH = path.join(__dirname, '..', 'index.ts');
|
|
17
|
+
const REACT_EXPORT_PATH = path.join(__dirname, 'all-types-export.ts');
|
|
18
|
+
/**
|
|
19
|
+
* Symbols intentionally absent from the React surface.
|
|
20
|
+
* Add here only with a reason — every entry is a thing React users cannot use.
|
|
21
|
+
*/
|
|
22
|
+
const REACT_EXEMPT = new Set([
|
|
23
|
+
// React has its own component wrappers for these; the raw classes are not
|
|
24
|
+
// part of the /react surface.
|
|
25
|
+
'SearchEmbed',
|
|
26
|
+
'SearchBarEmbed',
|
|
27
|
+
'LiveboardEmbed',
|
|
28
|
+
'AppEmbed',
|
|
29
|
+
'SpotterEmbed',
|
|
30
|
+
'SpotterAgentEmbed',
|
|
31
|
+
'ConversationEmbed',
|
|
32
|
+
'BodylessConversation',
|
|
33
|
+
'PreRenderedSearchEmbed',
|
|
34
|
+
'PreRenderedSearchBarEmbed',
|
|
35
|
+
'PreRenderedLiveboardEmbed',
|
|
36
|
+
'PreRenderedAppEmbed',
|
|
37
|
+
'PreRenderedConversationEmbed',
|
|
38
|
+
'PinboardEmbed',
|
|
39
|
+
'TsEmbed',
|
|
40
|
+
'V1Embed',
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* PRE-EXISTING gaps, discovered when this spec was introduced. These are
|
|
44
|
+
* symbols React consumers cannot import today — most look like oversights
|
|
45
|
+
* rather than deliberate omissions (e.g. `ContextType`, `CustomActionPayload`,
|
|
46
|
+
* `VizPoint`, the Spotter view configs).
|
|
47
|
+
*
|
|
48
|
+
* This list may only ever SHRINK. Do not add to it — a new entry means a
|
|
49
|
+
* symbol was added to `src/index.ts` without adding it to the React surface,
|
|
50
|
+
* which is exactly what this spec exists to prevent. Removing entries (by
|
|
51
|
+
* exporting them from `all-types-export.ts`) is a welcome follow-up; it is
|
|
52
|
+
* deliberately out of scope for the change that introduced this gate.
|
|
53
|
+
*/
|
|
54
|
+
const KNOWN_REACT_GAPS = new Set([
|
|
55
|
+
'AnswerService',
|
|
56
|
+
'AutoMCPFrameRendererViewConfig',
|
|
57
|
+
'BackgroundFormatType',
|
|
58
|
+
'BodylessConversationViewConfig',
|
|
59
|
+
'ConditionalFormattingComparisonType',
|
|
60
|
+
'ConditionalFormattingOperator',
|
|
61
|
+
'ContextMenuTriggerOptions',
|
|
62
|
+
'ContextType',
|
|
63
|
+
'ConversationViewConfig',
|
|
64
|
+
'CustomActionPayload',
|
|
65
|
+
'DataLabelFilterOperator',
|
|
66
|
+
'EmbedErrorCodes',
|
|
67
|
+
'EmbedErrorDetailsEvent',
|
|
68
|
+
'ErrorDetailsTypes',
|
|
69
|
+
'HomeLeftNavItem',
|
|
70
|
+
'HomePage',
|
|
71
|
+
'HomePageSearchBarMode',
|
|
72
|
+
'HomepageModule',
|
|
73
|
+
'LegendPosition',
|
|
74
|
+
'ListPage',
|
|
75
|
+
'ListPageColumns',
|
|
76
|
+
'LogLevel',
|
|
77
|
+
'MIXPANEL_EVENT',
|
|
78
|
+
'PrimaryNavbarVersion',
|
|
79
|
+
'SessionInterface',
|
|
80
|
+
'SpotterAgentEmbedViewConfig',
|
|
81
|
+
'SpotterChatViewConfig',
|
|
82
|
+
'SpotterEmbedViewConfig',
|
|
83
|
+
'SpotterQueryMode',
|
|
84
|
+
'SpotterShareConversationConfig',
|
|
85
|
+
'SpotterSidebarViewConfig',
|
|
86
|
+
'SpotterVizConfig',
|
|
87
|
+
'SpotterVizLoaderTip',
|
|
88
|
+
'SpotterVizStarterPrompt',
|
|
89
|
+
'TableContentDensity',
|
|
90
|
+
'TableTheme',
|
|
91
|
+
'UnderlyingDataPoint',
|
|
92
|
+
'VisualizationOverrides',
|
|
93
|
+
'VizPoint',
|
|
94
|
+
// Standalone helpers re-exported from src/index.ts outside the main block.
|
|
95
|
+
'createLiveboardWithAnswers',
|
|
96
|
+
'executeTML',
|
|
97
|
+
'executeTMLInput',
|
|
98
|
+
'exportTML',
|
|
99
|
+
'exportTMLInput',
|
|
100
|
+
'getAnswerFromQuery',
|
|
101
|
+
'startAutoMCPFrameRenderer',
|
|
102
|
+
'tokenizedFetch',
|
|
103
|
+
]);
|
|
104
|
+
/**
|
|
105
|
+
* Extract identifiers from every `export { ... }` / `export type { ... }` block
|
|
106
|
+
* in a source file. Handles `a`, `a as b` (records the exported name `b`),
|
|
107
|
+
* comments and trailing commas.
|
|
108
|
+
*
|
|
109
|
+
* `export * from '...'` cannot be enumerated by name (the names live in another
|
|
110
|
+
* module), so it would silently defeat this parity gate. We refuse to run
|
|
111
|
+
* against it: if either file adopts a star re-export, this throws so the gate
|
|
112
|
+
* is extended deliberately rather than passing blind.
|
|
113
|
+
*/
|
|
114
|
+
const extractExportedNames = (source) => {
|
|
115
|
+
if (/export\s*\*/.test(source)) {
|
|
116
|
+
throw new Error('Parity extractor found an `export *` re-export, which it cannot '
|
|
117
|
+
+ 'enumerate by name. Extend extractExportedNames to resolve star '
|
|
118
|
+
+ 'exports before relying on this gate.');
|
|
119
|
+
}
|
|
120
|
+
const names = new Set();
|
|
121
|
+
// Matches `export { ... }` and `export type { ... }`.
|
|
122
|
+
const blockRe = /export\s*(?:type\s+)?\{([\s\S]*?)\}/g;
|
|
123
|
+
let match = blockRe.exec(source);
|
|
124
|
+
while (match !== null) {
|
|
125
|
+
match[1]
|
|
126
|
+
// strip line and block comments
|
|
127
|
+
.replace(/\/\*[\s\S]*?\*\//g, '')
|
|
128
|
+
.replace(/\/\/[^\n]*/g, '')
|
|
129
|
+
.split(',')
|
|
130
|
+
.map((entry) => entry.trim())
|
|
131
|
+
.filter(Boolean)
|
|
132
|
+
.forEach((entry) => {
|
|
133
|
+
// `foo as bar` exports the name `bar`
|
|
134
|
+
const parts = entry.split(/\s+as\s+/);
|
|
135
|
+
const exported = (parts[parts.length - 1] || '').trim();
|
|
136
|
+
if (/^[A-Za-z_$][\w$]*$/.test(exported)) {
|
|
137
|
+
names.add(exported);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
match = blockRe.exec(source);
|
|
141
|
+
}
|
|
142
|
+
return names;
|
|
143
|
+
};
|
|
144
|
+
describe('react/all-types-export parity with index', () => {
|
|
145
|
+
it('exports every symbol that src/index.ts exports', () => {
|
|
146
|
+
const indexNames = extractExportedNames(fs.readFileSync(INDEX_PATH, 'utf8'));
|
|
147
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
148
|
+
// Sanity: the extractor found something. Guards against a regex that
|
|
149
|
+
// silently matches nothing after a refactor.
|
|
150
|
+
expect(indexNames.size).toBeGreaterThan(50);
|
|
151
|
+
expect(reactNames.size).toBeGreaterThan(50);
|
|
152
|
+
const missing = [...indexNames]
|
|
153
|
+
.filter((name) => !reactNames.has(name))
|
|
154
|
+
.filter((name) => !REACT_EXEMPT.has(name))
|
|
155
|
+
.filter((name) => !KNOWN_REACT_GAPS.has(name))
|
|
156
|
+
.sort();
|
|
157
|
+
if (missing.length > 0) {
|
|
158
|
+
throw new Error('These symbols are exported from src/index.ts but NOT from '
|
|
159
|
+
+ 'src/react/all-types-export.ts, so React consumers cannot '
|
|
160
|
+
+ `import them:\n ${missing.join('\n ')}\n\n`
|
|
161
|
+
+ 'Add them to src/react/all-types-export.ts. Do NOT add them '
|
|
162
|
+
+ 'to KNOWN_REACT_GAPS — that list is a shrinking backlog of '
|
|
163
|
+
+ 'pre-existing gaps and must never grow.');
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
it('KNOWN_REACT_GAPS only lists symbols that are genuinely still missing', () => {
|
|
167
|
+
// Ratchet: once a gap is fixed, its entry must be deleted, so the list
|
|
168
|
+
// can only shrink.
|
|
169
|
+
const indexNames = extractExportedNames(fs.readFileSync(INDEX_PATH, 'utf8'));
|
|
170
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
171
|
+
const stale = [...KNOWN_REACT_GAPS]
|
|
172
|
+
.filter((name) => reactNames.has(name) || !indexNames.has(name))
|
|
173
|
+
.sort();
|
|
174
|
+
if (stale.length > 0) {
|
|
175
|
+
throw new Error('These entries in KNOWN_REACT_GAPS are no longer gaps (they are '
|
|
176
|
+
+ 'now exported from the React surface, or no longer exported '
|
|
177
|
+
+ `from src/index.ts). Delete them from the list:\n ${stale.join('\n ')}`);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
it('exposes the host event contract types on the React surface', () => {
|
|
181
|
+
const reactNames = extractExportedNames(fs.readFileSync(REACT_EXPORT_PATH, 'utf8'));
|
|
182
|
+
[
|
|
183
|
+
'UIPassthroughContractBase',
|
|
184
|
+
'HostEventRequest',
|
|
185
|
+
'HostEventResponse',
|
|
186
|
+
'TriggerPayload',
|
|
187
|
+
'TriggerResponse',
|
|
188
|
+
].forEach((name) => expect(reactNames.has(name)).toBe(true));
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
//# 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,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;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,wBA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AAI,KAAK,CACX,iEAAiE;kBAC3D,6DAA6D;kBAC7D,qDAAqD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAClF,CAAC;SACL;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QAClE,MAAM,UAAU,GAAG,oBAAoB,CAAC,EAAE,CAAC,YAAY,CAAC,iBAAiB,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/lib/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,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5F,OAAO,EAA2C,2BAA2B,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAElM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5F,OAAO,EAA2C,2BAA2B,EAAE,mBAAmB,IAAI,oBAAoB,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EAuBvD;AAED,OAAO,EACH,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,IAAI,EACJ,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,MAAM,EACN,WAAW,EACX,eAAe,EACf,cAAc,EACd,QAAQ,EACR,cAAc,EACd,eAAe,EACf,qBAAqB,GACxB,MAAM,UAAU,CAAC"}
|
package/lib/src/react/index.js
CHANGED
|
@@ -18,15 +18,17 @@ const componentFactory = (EmbedConstructor,
|
|
|
18
18
|
// not be destroyed when the component is unmounted.
|
|
19
19
|
isPreRenderedComponent = false) => {
|
|
20
20
|
const Component = React.forwardRef((props, forwardedRef) => {
|
|
21
|
+
var _a, _b;
|
|
21
22
|
const ref = React.useRef(null);
|
|
22
23
|
const { className, style, ...embedProps } = props;
|
|
23
24
|
const { viewConfig, listeners } = getViewPropsAndListeners(embedProps);
|
|
25
|
+
const preRenderId = (_b = (_a = props.preRenderConfig) === null || _a === void 0 ? void 0 : _a.preRenderId) !== null && _b !== void 0 ? _b : props.preRenderId;
|
|
24
26
|
const handleDestroy = (tsEmbed) => {
|
|
25
27
|
// do not destroy if it is a preRender component
|
|
26
28
|
if (isPreRenderedComponent)
|
|
27
29
|
return;
|
|
28
30
|
// if component is connected to a preRendered component
|
|
29
|
-
if (
|
|
31
|
+
if (preRenderId) {
|
|
30
32
|
tsEmbed.hidePreRender();
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
@@ -37,7 +39,7 @@ isPreRenderedComponent = false) => {
|
|
|
37
39
|
};
|
|
38
40
|
const handleDefaultRendering = (tsEmbed) => {
|
|
39
41
|
// if component is connected to a preRendered component
|
|
40
|
-
if (
|
|
42
|
+
if (preRenderId) {
|
|
41
43
|
tsEmbed.showPreRender();
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
@@ -286,7 +288,7 @@ export const PreRenderedConversationEmbed = componentFactory(_SpotterEmbed, true
|
|
|
286
288
|
* const ref = useEmbedRef();
|
|
287
289
|
* useEffect(() => {
|
|
288
290
|
* ref.current.trigger(
|
|
289
|
-
*
|
|
291
|
+
* HostEvent.UpdateRuntimeFilters,
|
|
290
292
|
* [{ columnName: 'name', operator: 'EQ', values: ['value']}]);
|
|
291
293
|
* }, [])
|
|
292
294
|
* return <LiveboardEmbed ref={ref} liveboardId={<id>} />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,cAAc,IAAI,eAAe,EAAuB,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,WAAW,IAAI,YAAY,EAAoB,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAiB,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,cAAc,IAAI,eAAe,EAAuB,MAAM,oBAAoB,CAAC;AAE5F,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAA+B,mBAAmB,IAAI,oBAAoB,EAAiC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,cAAc,IAAI,eAAe,EAAuB,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,WAAW,IAAI,YAAY,EAAoB,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,QAAQ,I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