@mgamadeus/ddd-agents 0.0.1-stage → 0.1.0-alpha.22
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/README.md +11 -3
- package/dist/chat.js +5263 -0
- package/dist/chat.js.map +1 -0
- package/dist/chunks/AgentsConversationClientContext-C4T7g_Qk.js +22 -0
- package/dist/chunks/AgentsConversationClientContext-C4T7g_Qk.js.map +1 -0
- package/dist/chunks/ConversationMarkdown-W7NHglmL.js +399 -0
- package/dist/chunks/ConversationMarkdown-W7NHglmL.js.map +1 -0
- package/dist/chunks/WebSearchResultsConversationWidget-BvnLWHyi.js +5059 -0
- package/dist/chunks/WebSearchResultsConversationWidget-BvnLWHyi.js.map +1 -0
- package/dist/chunks/canvas-behaviours-BRFR1ALE.js +45 -0
- package/dist/chunks/canvas-behaviours-BRFR1ALE.js.map +1 -0
- package/dist/chunks/canvas-feature-flags-BmmxC3bz.js +11 -0
- package/dist/chunks/canvas-feature-flags-BmmxC3bz.js.map +1 -0
- package/dist/chunks/canvasBodies-9SuF6NAB.js +289 -0
- package/dist/chunks/canvasBodies-9SuF6NAB.js.map +1 -0
- package/dist/chunks/d3-7.6.1.min.js-DTmPafrl.js +6 -0
- package/dist/chunks/d3-7.6.1.min.js-DTmPafrl.js.map +1 -0
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js +20 -0
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js.map +1 -0
- package/dist/chunks/widget-image-readiness-signal-DeOuL89j.js +25 -0
- package/dist/chunks/widget-image-readiness-signal-DeOuL89j.js.map +1 -0
- package/dist/chunks/widget-name-resolver-DyIY6Zu4.js +9736 -0
- package/dist/chunks/widget-name-resolver-DyIY6Zu4.js.map +1 -0
- package/dist/chunks/withPollingChangeSubscription-BLDAWF-o.js +251 -0
- package/dist/chunks/withPollingChangeSubscription-BLDAWF-o.js.map +1 -0
- package/dist/client-testing.js +346 -0
- package/dist/client-testing.js.map +1 -0
- package/dist/client.js +16 -0
- package/dist/client.js.map +1 -0
- package/dist/contract.js +31 -0
- package/dist/contract.js.map +1 -0
- package/dist/image-render.js +334 -0
- package/dist/image-render.js.map +1 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/kit.js +13 -0
- package/dist/kit.js.map +1 -0
- package/dist/preview.js +733 -0
- package/dist/preview.js.map +1 -0
- package/dist/renderer.js +115 -0
- package/dist/renderer.js.map +1 -0
- package/dist/styles.css +6768 -0
- package/dist/types/chat/AgentChat/AgentChat.d.ts +37 -0
- package/dist/types/chat/AgentChatActivityHistory/AgentChatActivityHistory.d.ts +6 -0
- package/dist/types/chat/AgentChatActivityIndicator/AgentChatActivityIndicator.d.ts +8 -0
- package/dist/types/chat/CanvasPane/CanvasPane.d.ts +15 -0
- package/dist/types/chat/CanvasResizeHandle/CanvasResizeHandle.d.ts +10 -0
- package/dist/types/chat/CanvasResizeHandle/use-canvas-resize.d.ts +43 -0
- package/dist/types/chat/ConversationClosedBar/ConversationClosedBar.d.ts +10 -0
- package/dist/types/chat/ConversationErrorCard/ConversationErrorCard.d.ts +13 -0
- package/dist/types/chat/ConversationIntroCard/ConversationIntroCard.d.ts +10 -0
- package/dist/types/chat/ConversationLoadingStates.d.ts +2 -0
- package/dist/types/chat/ConversationMessage/ConversationCallMarkerChip/ConversationCallMarkerChip.d.ts +14 -0
- package/dist/types/chat/ConversationMessage/ConversationCallMarkerChip/VoiceBarsIcon/VoiceBarsIcon.d.ts +8 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageSystem/ConversationMessageSystem.d.ts +8 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageSystem/ConversationMessageSystemHeader/ConversationMessageSystemHeader.d.ts +9 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageUser/ConversationMessageUser.d.ts +7 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageUser/ConversationMessageUserWidgets.d.ts +14 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/ConversationMessageHeader/ConversationMessageHeader.d.ts +7 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/ConversationMessageThinking/ConversationMessageThinking.d.ts +7 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/ConversationMessageWidgets.d.ts +29 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/copyRichToClipboard.d.ts +1 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/hooks/useFreshMessageBlockReveal.d.ts +14 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/hooks/useStreamingText.d.ts +8 -0
- package/dist/types/chat/ConversationMessage/ConversationMessageWidgets/hooks/useTypewriter.d.ts +12 -0
- package/dist/types/chat/ConversationMessage/ConversationTaskInstructionDisclosure/ConversationTaskInstructionDisclosure.d.ts +12 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInput.d.ts +111 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentPreviewCard.d.ts +34 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentsErrorBox.d.ts +22 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/ConversationMessageInputAttachmentsPreviewStrip.d.ts +12 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInputAttachments/convert-bytes-to-size-string.d.ts +2 -0
- package/dist/types/chat/ConversationMessageInput/ConversationMessageInputComposerWidgets/ConversationMessageInputComposerWidgets.d.ts +12 -0
- package/dist/types/chat/ConversationMessageList/ConversationMessageList.d.ts +75 -0
- package/dist/types/chat/ConversationScrollToLatestMessageButton/ConversationScrollToLatestMessageButton.d.ts +6 -0
- package/dist/types/chat/ConversationSuggestionCard/ConversationSuggestionCard.d.ts +7 -0
- package/dist/types/chat/ConversationView.d.ts +216 -0
- package/dist/types/chat/ConversationViewBody/ConversationViewBody.d.ts +214 -0
- package/dist/types/chat/ConversationViewBody/hooks/useIsMessagesBottomOutOfView.d.ts +2 -0
- package/dist/types/chat/ConversationViewBody/hooks/usePinQuestionOnSend.d.ts +24 -0
- package/dist/types/chat/assistant-message-has-renderable-markdown.d.ts +13 -0
- package/dist/types/chat/chat-assistant-identity.d.ts +24 -0
- package/dist/types/chat/chat-message.d.ts +11 -0
- package/dist/types/chat/controller/AgentChatController.d.ts +97 -0
- package/dist/types/chat/controller/activity-ticker.d.ts +120 -0
- package/dist/types/chat/controller/changed-messages-request.d.ts +12 -0
- package/dist/types/chat/controller/chat-scroll-target.d.ts +10 -0
- package/dist/types/chat/controller/conversation-change-signal-rules.d.ts +64 -0
- package/dist/types/chat/controller/derive-agent-activity.d.ts +31 -0
- package/dist/types/chat/controller/merge-activity-elements.d.ts +25 -0
- package/dist/types/chat/controller/pending-start-request.d.ts +38 -0
- package/dist/types/chat/controller/use-activity-ticker.d.ts +60 -0
- package/dist/types/chat/controller/use-conversation-activity.d.ts +38 -0
- package/dist/types/chat/controller/use-conversation-live-updates.d.ts +30 -0
- package/dist/types/chat/controller/use-conversation-message-pages.d.ts +24 -0
- package/dist/types/chat/controller/use-conversation-scroll-jump.d.ts +47 -0
- package/dist/types/chat/controller/use-conversation-search.d.ts +31 -0
- package/dist/types/chat/controller/use-conversation-signals.d.ts +44 -0
- package/dist/types/chat/controller/use-debounced-semantic-search.d.ts +15 -0
- package/dist/types/chat/conversation-send-message.d.ts +43 -0
- package/dist/types/chat/last-wire-message-is-unanswered-user-message.d.ts +22 -0
- package/dist/types/chat/normalize-server-message-to-markdown.d.ts +23 -0
- package/dist/types/chat/store/agents-chat-state.d.ts +132 -0
- package/dist/types/chat/store/conversation-error-type.d.ts +32 -0
- package/dist/types/chat/store/create-agents-chat-store.d.ts +23 -0
- package/dist/types/chat/store/index.d.ts +5 -0
- package/dist/types/chat/store/merge-chat-messages.d.ts +20 -0
- package/dist/types/chat/store/reduce-agents-chat-state.d.ts +7 -0
- package/dist/types/chat/store/use-agents-chat-store.d.ts +22 -0
- package/dist/types/chat/strip-pre-call-message-marker.d.ts +12 -0
- package/dist/types/chat/use-canvas-shell-transitions.d.ts +25 -0
- package/dist/types/client/AgentsConversationClient.d.ts +93 -0
- package/dist/types/client/AgentsConversationClientContext.d.ts +17 -0
- package/dist/types/client/polling/createPollingConversationChangeSubscription.d.ts +62 -0
- package/dist/types/client/polling/withPollingChangeSubscription.d.ts +11 -0
- package/dist/types/client/testing/createInMemoryAgentsConversationClient.d.ts +139 -0
- package/dist/types/contract/conversation.d.ts +370 -0
- package/dist/types/entries/chat.d.ts +21 -0
- package/dist/types/entries/client-testing.d.ts +1 -0
- package/dist/types/entries/client.d.ts +4 -0
- package/dist/types/entries/contract.d.ts +1 -0
- package/dist/types/entries/image-render.d.ts +9 -0
- package/dist/types/entries/index.d.ts +9 -0
- package/dist/types/entries/kit.d.ts +4 -0
- package/dist/types/entries/preview.d.ts +8 -0
- package/dist/types/entries/renderer.d.ts +15 -0
- package/dist/types/entries/widgets.d.ts +16 -0
- package/dist/types/image-render/ComposedViewEmailDataTimes/ComposedViewEmailDataTimes.d.ts +15 -0
- package/dist/types/image-render/WidgetImageRender.d.ts +55 -0
- package/dist/types/image-render/WidgetImageRenderContext.d.ts +14 -0
- package/dist/types/image-render/composed-view-data-times.d.ts +20 -0
- package/dist/types/image-render/frozen-widget-requests.d.ts +2 -0
- package/dist/types/image-render/live-widget-requests.d.ts +4 -0
- package/dist/types/image-render/widget-image-google-map.d.ts +7 -0
- package/dist/types/image-render/widget-image-readiness-signal.d.ts +16 -0
- package/dist/types/image-render/widget-image-readiness.d.ts +9 -0
- package/dist/types/image-render/widget-image-render.types.d.ts +47 -0
- package/dist/types/kit/ComposedViewConversationWidget.d.ts +14 -0
- package/dist/types/kit/ComposedViewDataSourceLoader.d.ts +20 -0
- package/dist/types/kit/ComposedViewRenderer.d.ts +30 -0
- package/dist/types/kit/ComposedViewSlotErrorBoundary.d.ts +23 -0
- package/dist/types/kit/ModelText/ModelText.d.ts +12 -0
- package/dist/types/kit/components/embedding/EmbeddedConversationWidget.d.ts +26 -0
- package/dist/types/kit/components/map/map-full-screen-instance.d.ts +26 -0
- package/dist/types/kit/components/map/map-presentation-context.d.ts +8 -0
- package/dist/types/kit/components/text/shared/text-node-values.d.ts +39 -0
- package/dist/types/kit/composed-view-component-types.d.ts +61 -0
- package/dist/types/kit/composed-view-components.d.ts +7 -0
- package/dist/types/kit/composed-view-tones.d.ts +20 -0
- package/dist/types/kit/entity-detail/EntityDetailCanvasBody.d.ts +9 -0
- package/dist/types/kit/entity-detail/entity-detail-bodies.d.ts +32 -0
- package/dist/types/kit/entity-detail/entity-detail-name.d.ts +9 -0
- package/dist/types/kit/hooks/use-debounced-value.d.ts +2 -0
- package/dist/types/kit/map-full-screen/MapFullScreenCanvasBody.d.ts +11 -0
- package/dist/types/preview/WidgetPreviewHost.d.ts +20 -0
- package/dist/types/preview/preview-stub-components.d.ts +3 -0
- package/dist/types/preview/widget-preview-fixtures.d.ts +17 -0
- package/dist/types/preview/widget-preview-hydration.d.ts +10 -0
- package/dist/types/preview/widget-preview-readiness.d.ts +27 -0
- package/dist/types/preview/widget-preview-requests.d.ts +16 -0
- package/dist/types/preview/widget-preview-signal.d.ts +10 -0
- package/dist/types/preview/widget-preview.types.d.ts +134 -0
- package/dist/types/provider/AgentsProvider.d.ts +33 -0
- package/dist/types/provider/class-names.d.ts +7 -0
- package/dist/types/provider/components/default-components.d.ts +3 -0
- package/dist/types/provider/components/icon-names.d.ts +9 -0
- package/dist/types/provider/components/index.d.ts +39 -0
- package/dist/types/provider/components/types.d.ts +463 -0
- package/dist/types/provider/environment.d.ts +262 -0
- package/dist/types/provider/index.d.ts +4 -0
- package/dist/types/renderer/ConversationDeepLinkedWidget.d.ts +18 -0
- package/dist/types/renderer/ConversationMarkdown.d.ts +21 -0
- package/dist/types/renderer/ConversationWidgetActions/ConversationWidgetActions.d.ts +7 -0
- package/dist/types/renderer/ConversationWidgetCallbacksContext.d.ts +234 -0
- package/dist/types/renderer/ConversationWidgetContext.d.ts +32 -0
- package/dist/types/renderer/ConversationWidgetErrorBoundary.d.ts +25 -0
- package/dist/types/renderer/ConversationWidgetHost.d.ts +36 -0
- package/dist/types/renderer/ConversationWidgetRenderContext.d.ts +3 -0
- package/dist/types/renderer/MarkdownLink.d.ts +6 -0
- package/dist/types/renderer/WindowedWidget/WindowedWidget.d.ts +16 -0
- package/dist/types/renderer/_access/ConversationWidgetFeatureGate.d.ts +21 -0
- package/dist/types/renderer/_agent-space/ConversationWidgetAgentSpaceFrame.d.ts +12 -0
- package/dist/types/renderer/_agent-space/ConversationWidgetAgentSpaceHeader.d.ts +15 -0
- package/dist/types/renderer/_agent-space/agent-space-name.hydrator.d.ts +7 -0
- package/dist/types/renderer/_agent-space/declared-agent-space-key-field-name.d.ts +8 -0
- package/dist/types/renderer/_agent-space/use-resolved-conversation-widget-agent-space-key.d.ts +16 -0
- package/dist/types/renderer/_agent-space/widget-agent-space-key-attribute.d.ts +13 -0
- package/dist/types/renderer/balanced-json-object.d.ts +12 -0
- package/dist/types/renderer/canvas/CanvasRestoreOnMount.d.ts +19 -0
- package/dist/types/renderer/canvas/canvas-behaviours.d.ts +84 -0
- package/dist/types/renderer/canvas/canvas-body-props.d.ts +18 -0
- package/dist/types/renderer/canvas/canvas-feature-flags.d.ts +11 -0
- package/dist/types/renderer/canvas/canvas-reducers.d.ts +46 -0
- package/dist/types/renderer/canvas/canvas-state.d.ts +107 -0
- package/dist/types/renderer/canvas/canvasBodies.d.ts +19 -0
- package/dist/types/renderer/canvas/canvasStorage.d.ts +25 -0
- package/dist/types/renderer/canvas/decide-canvas-open.d.ts +32 -0
- package/dist/types/renderer/canvas/entity-detail-instance.d.ts +27 -0
- package/dist/types/renderer/canvas/find-widget-fences-in-markdown.d.ts +32 -0
- package/dist/types/renderer/canvas/use-anchor-widget-payload.d.ts +8 -0
- package/dist/types/renderer/composer-widget-fence.d.ts +30 -0
- package/dist/types/renderer/conversation-composer-widget.d.ts +13 -0
- package/dist/types/renderer/conversation-widget-props.d.ts +54 -0
- package/dist/types/renderer/conversation-widget-state-partition.d.ts +31 -0
- package/dist/types/renderer/conversationWidgetAstPlugin.d.ts +11 -0
- package/dist/types/renderer/conversationWidgetRegistry.d.ts +74 -0
- package/dist/types/renderer/detect-unrendered-widgets.d.ts +42 -0
- package/dist/types/renderer/markdown-contains-widget.d.ts +13 -0
- package/dist/types/renderer/reference-naked-widget-json.d.ts +1 -0
- package/dist/types/renderer/remarkWidgetFencePlugin.d.ts +22 -0
- package/dist/types/renderer/render-report/widget-render-report-collector.d.ts +57 -0
- package/dist/types/renderer/render-report/widget-render-report.d.ts +29 -0
- package/dist/types/renderer/repair-malformed-widget-fences.d.ts +11 -0
- package/dist/types/renderer/resolve-deep-linkable-widget.d.ts +25 -0
- package/dist/types/renderer/restoreTextDirectivesPlugin.d.ts +12 -0
- package/dist/types/renderer/widget-click-signal-sources.d.ts +15 -0
- package/dist/types/renderer/widget-fence-json.d.ts +16 -0
- package/dist/types/renderer/widget-fence-syntax.d.ts +25 -0
- package/dist/types/renderer/widget-hydration/index.d.ts +8 -0
- package/dist/types/renderer/widget-hydration/section-hydration.d.ts +41 -0
- package/dist/types/renderer/widget-hydration/use-widget-hydration.d.ts +27 -0
- package/dist/types/renderer/widget-hydration/widget-hydration-state-store.d.ts +27 -0
- package/dist/types/renderer/widget-hydration/widget-hydration.reducer.d.ts +39 -0
- package/dist/types/renderer/widget-hydration/widget-hydration.registry.d.ts +7 -0
- package/dist/types/renderer/widget-hydration/widget-hydration.slice.d.ts +8 -0
- package/dist/types/renderer/widget-hydration/widget-hydration.types.d.ts +27 -0
- package/dist/types/renderer/widget-name-resolver.d.ts +22 -0
- package/dist/types/renderer/widget-tree/bounded-json.d.ts +23 -0
- package/dist/types/renderer/widget-tree/composed-node-schema.d.ts +143 -0
- package/dist/types/renderer/widget-tree/composed-view-data-sources.d.ts +41 -0
- package/dist/types/renderer/widget-tree/composed-view-tree.d.ts +111 -0
- package/dist/types/renderer/widget-tree/expression/evaluate-expression.d.ts +65 -0
- package/dist/types/renderer/widget-tree/expression/parse-expression.d.ts +71 -0
- package/dist/types/renderer/widget-tree/resolve-composed-view-values.d.ts +49 -0
- package/dist/types/renderer/widget-tree/use-composed-view-state.d.ts +16 -0
- package/dist/types/renderer/widget-windowing.d.ts +25 -0
- package/dist/types/widgets/CanvasWidgetCard/CanvasWidgetCard.d.ts +79 -0
- package/dist/types/widgets/CanvasWidgetCard/CanvasWidgetSwitch.d.ts +61 -0
- package/dist/types/widgets/CanvasWidgetCard/canvas-for-message-widget.d.ts +8 -0
- package/dist/types/widgets/CanvasWidgetCard/use-canvas-viable.d.ts +15 -0
- package/dist/types/widgets/ClockConversationWidget/ClockConversationWidget.d.ts +11 -0
- package/dist/types/widgets/ClockConversationWidget/ClockWidget/AnalogClockFace.d.ts +12 -0
- package/dist/types/widgets/ClockConversationWidget/ClockWidget/ClockRow.d.ts +23 -0
- package/dist/types/widgets/ClockConversationWidget/ClockWidget/ClockWidget.d.ts +21 -0
- package/dist/types/widgets/ClockConversationWidget/ClockWidget/DayNightGlyph.d.ts +8 -0
- package/dist/types/widgets/ClockConversationWidget/shared/clock-time.d.ts +52 -0
- package/dist/types/widgets/ClockConversationWidget/shared/clock-widget-payload.d.ts +23 -0
- package/dist/types/widgets/ClockConversationWidget/shared/use-clock-settings.d.ts +18 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.d.ts +14 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/ConceptExplainerWidget/ConceptExplainerWidget.d.ts +27 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/shared/ConceptExplainerTextView.d.ts +11 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/shared/concept-explainer-type.d.ts +89 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/shared/concept-explainer-types.d.ts +17 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/shared/concept-explainer-widget-payload.d.ts +25 -0
- package/dist/types/widgets/ConceptExplainerConversationWidget/shared/use-concept-explainer-language.d.ts +8 -0
- package/dist/types/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsCanvas.d.ts +9 -0
- package/dist/types/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsCanvasBody.d.ts +7 -0
- package/dist/types/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.d.ts +15 -0
- package/dist/types/widgets/ConversationSearchResultsConversationWidget/shared/conversation-search-results-widget-payload.d.ts +42 -0
- package/dist/types/widgets/ConversationSearchResultsConversationWidget/shared/search-hit-excerpt.d.ts +1 -0
- package/dist/types/widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.d.ts +8 -0
- package/dist/types/widgets/CurrencyConverterConversationWidget/CurrencyConverterWidget/CurrencyConverterWidget.d.ts +17 -0
- package/dist/types/widgets/CurrencyConverterConversationWidget/CurrencyConverterWidget/CurrencyLabel/CurrencyLabel.d.ts +9 -0
- package/dist/types/widgets/CurrencyConverterConversationWidget/shared/currency-converter-widget-payload.d.ts +22 -0
- package/dist/types/widgets/CurrencyConverterConversationWidget/shared/currency-display.d.ts +30 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.d.ts +11 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/CustomVisualizationWidget/CustomVisualizationFrame.d.ts +14 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/CustomVisualizationWidget/CustomVisualizationWidget.d.ts +15 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/shared/custom-visualization-frame-protocol.d.ts +77 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/shared/custom-visualization-libraries.d.ts +25 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/shared/custom-visualization-sandbox-config.d.ts +21 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/shared/custom-visualization-widget-payload.d.ts +55 -0
- package/dist/types/widgets/CustomVisualizationConversationWidget/shared/read-custom-visualization-theme.d.ts +5 -0
- package/dist/types/widgets/EntityMentionConversationWidget/EntityMentionAskButton/EntityMentionAskButton.d.ts +13 -0
- package/dist/types/widgets/EntityMentionConversationWidget/EntityMentionCard/EntityMentionCard.d.ts +11 -0
- package/dist/types/widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.d.ts +9 -0
- package/dist/types/widgets/EntityMentionConversationWidget/shared/entity-mention-presentation.d.ts +4 -0
- package/dist/types/widgets/EntityMentionConversationWidget/shared/entity-mention.d.ts +33 -0
- package/dist/types/widgets/EntityMentionConversationWidget/shared/use-entity-mention-composer.d.ts +17 -0
- package/dist/types/widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.d.ts +2 -0
- package/dist/types/widgets/MultiChoiceConversationWidget/shared/multi-choice-widget-payload.d.ts +16 -0
- package/dist/types/widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.d.ts +38 -0
- package/dist/types/widgets/QuickRepliesConversationWidget/shared/quick-replies-widget-payload.d.ts +20 -0
- package/dist/types/widgets/SuggestedActions/SuggestedActions.d.ts +10 -0
- package/dist/types/widgets/ToolTraceConversationWidget/ToolTraceConversationWidget.d.ts +8 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/SourceFavicon.d.ts +10 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchAnswer.d.ts +6 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchReferences.d.ts +12 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchResultsCanvas.d.ts +10 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchResultsCanvasBody.d.ts +7 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchResultsConversationWidget.d.ts +14 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/WebSearchSourcesList.d.ts +10 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/shared/display-hostname.d.ts +9 -0
- package/dist/types/widgets/WebSearchResultsConversationWidget/shared/web-search-results-widget-payload.d.ts +30 -0
- package/dist/types/widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.d.ts +14 -0
- package/dist/types/widgets/WritingDraftConversationWidget/WritingDraftWidget/WritingDraftBody.d.ts +9 -0
- package/dist/types/widgets/WritingDraftConversationWidget/WritingDraftWidget/WritingDraftWidget.d.ts +44 -0
- package/dist/types/widgets/WritingDraftConversationWidget/shared/draft-mail-link.d.ts +17 -0
- package/dist/types/widgets/WritingDraftConversationWidget/shared/draft-plain-text.d.ts +7 -0
- package/dist/types/widgets/WritingDraftConversationWidget/shared/remark-draft-line-breaks.d.ts +13 -0
- package/dist/types/widgets/WritingDraftConversationWidget/shared/writing-draft-widget-payload.d.ts +23 -0
- package/dist/types/widgets/_shared/ConversationWidgetButton.d.ts +4 -0
- package/dist/types/widgets/_shared/DonePill.d.ts +14 -0
- package/dist/types/widgets/_shared/modern/WidgetKpiValue.d.ts +24 -0
- package/dist/types/widgets/_shared/modern/WidgetListRow.d.ts +14 -0
- package/dist/types/widgets/_shared/modern/WidgetStatusChip.d.ts +8 -0
- package/dist/types/widgets/_shared/modern/WidgetSurface.d.ts +13 -0
- package/dist/types/widgets/_shared/modern/WidgetSurfaceSkeleton.d.ts +11 -0
- package/dist/types/widgets/_shared/modern/index.d.ts +16 -0
- package/dist/types/widgets/_shared/skeleton-primitives.d.ts +20 -0
- package/dist/types/widgets/_shared/use-stack-when-wrapped.d.ts +6 -0
- package/dist/types/widgets/_shared/widget-payload-validation.d.ts +22 -0
- package/dist/widgets.js +84 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +120 -3
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
/// <reference types="google.maps" preserve="true" />
|
|
2
|
+
import type { ComponentType, CSSProperties, MouseEvent, ReactElement, ReactNode } from "react";
|
|
3
|
+
import type { Components as MarkdownComponents } from "react-markdown";
|
|
4
|
+
import type { PluggableList } from "unified";
|
|
5
|
+
/**
|
|
6
|
+
* The component vocabulary of the package. These prop types are the contract between package code and the components
|
|
7
|
+
* that render it: the package ships a default for each, an app may replace any of them through the environment.
|
|
8
|
+
* The vocabulary is the package's own; an app's replacement translates it to its component library.
|
|
9
|
+
*/
|
|
10
|
+
/** What a piece of text is, from largest to smallest. */
|
|
11
|
+
export type AgentsTextRole = "title" | "intro" | "body" | "help" | "caption";
|
|
12
|
+
export type AgentsTextWeight = "regular" | "medium" | "bold";
|
|
13
|
+
export type AgentsTextReplacements = Record<string, string | number | ReactNode>;
|
|
14
|
+
export interface AgentsTextProps {
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
role?: AgentsTextRole;
|
|
17
|
+
weight?: AgentsTextWeight;
|
|
18
|
+
/** A CSS colour, or the name of a custom property (`--token`), which stands for `var(--token)`. */
|
|
19
|
+
color?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A string child is a text key: the English source text, looked up through the environment's `texts.translate`.
|
|
22
|
+
* `false` renders the string as it is (text that is data, not interface copy).
|
|
23
|
+
*/
|
|
24
|
+
translate?: boolean;
|
|
25
|
+
/** `%name%` placeholders of the key. Values are plain text or elements, never markup strings. */
|
|
26
|
+
replacements?: AgentsTextReplacements;
|
|
27
|
+
/** Plural selector of the key. */
|
|
28
|
+
context?: "one" | "other";
|
|
29
|
+
/** Cuts the text at the end of its line with an ellipsis. */
|
|
30
|
+
ellipsis?: boolean;
|
|
31
|
+
display?: "block" | "inline";
|
|
32
|
+
textAlign?: "center";
|
|
33
|
+
textWrap?: "wrap" | "nowrap";
|
|
34
|
+
/** Keep line breaks of the string. */
|
|
35
|
+
allowNewLines?: boolean;
|
|
36
|
+
/** Announces the text as a heading of this level to assistive technology; the look stays the role's. */
|
|
37
|
+
headingLevel?: number;
|
|
38
|
+
/** Hides the text from assistive technology. */
|
|
39
|
+
ariaHidden?: boolean;
|
|
40
|
+
className?: string;
|
|
41
|
+
testId?: string;
|
|
42
|
+
}
|
|
43
|
+
export type AgentsButtonVariant = "default" | "primary" | "muted" | "shimmer";
|
|
44
|
+
export type AgentsButtonSize = "small" | "medium" | "extraLarge";
|
|
45
|
+
export interface AgentsButtonProps {
|
|
46
|
+
/** The label: a text key, translated unless `translate` is false. */
|
|
47
|
+
children?: string;
|
|
48
|
+
/** Default `primary`. */
|
|
49
|
+
variant?: AgentsButtonVariant;
|
|
50
|
+
size?: AgentsButtonSize;
|
|
51
|
+
onClick?: (event: MouseEvent) => void;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/** Shows the button as busy (a running action). */
|
|
54
|
+
isLoading?: boolean;
|
|
55
|
+
/** A pill-shaped button. */
|
|
56
|
+
rounded?: boolean;
|
|
57
|
+
/** A `muted` toggle button that is switched on. */
|
|
58
|
+
pressed?: boolean;
|
|
59
|
+
/** A `muted` button on a photo or a dark surface. */
|
|
60
|
+
onDark?: boolean;
|
|
61
|
+
/** A `muted` button with a blurred backdrop behind its fill. */
|
|
62
|
+
blurred?: boolean;
|
|
63
|
+
/** The colours for a dark or coloured surface. */
|
|
64
|
+
inverted?: boolean;
|
|
65
|
+
icon?: AgentsIconName;
|
|
66
|
+
iconPosition?: "left" | "right";
|
|
67
|
+
htmlType?: "button" | "submit" | "reset";
|
|
68
|
+
fullWidth?: boolean;
|
|
69
|
+
/** A long label wraps onto further lines instead of staying on one. */
|
|
70
|
+
wrapsLabel?: boolean;
|
|
71
|
+
translate?: boolean;
|
|
72
|
+
replacements?: AgentsTextReplacements;
|
|
73
|
+
className?: string;
|
|
74
|
+
testId?: string;
|
|
75
|
+
ariaLabel?: string;
|
|
76
|
+
}
|
|
77
|
+
/** Icon names are the package's list (`icon-names.ts`); an app's replacement maps each to its icon set. */
|
|
78
|
+
export type AgentsIconName = import("./icon-names").AgentsIconName;
|
|
79
|
+
export type AgentsIconSize = "small" | "large";
|
|
80
|
+
export interface AgentsIconProps {
|
|
81
|
+
/** A package icon. */
|
|
82
|
+
name?: AgentsIconName;
|
|
83
|
+
/** An icon named by the app's own data (an icon class a record carries); used when `name` is not set. */
|
|
84
|
+
hostIconName?: string;
|
|
85
|
+
size?: AgentsIconSize;
|
|
86
|
+
/** An exact size in px; wins over `size`. */
|
|
87
|
+
pixelSize?: number;
|
|
88
|
+
color?: string;
|
|
89
|
+
className?: string;
|
|
90
|
+
style?: CSSProperties;
|
|
91
|
+
}
|
|
92
|
+
/** A surface that draws the hover state over its content (the content keeps the click and the focus). */
|
|
93
|
+
export interface AgentsInteractiveSurfaceProps {
|
|
94
|
+
children?: ReactNode;
|
|
95
|
+
hoverable?: boolean;
|
|
96
|
+
className?: string;
|
|
97
|
+
style?: CSSProperties;
|
|
98
|
+
testId?: string;
|
|
99
|
+
}
|
|
100
|
+
/** A placeholder block shown while content loads. */
|
|
101
|
+
export interface AgentsSkeletonProps {
|
|
102
|
+
width?: string | number;
|
|
103
|
+
height?: string | number;
|
|
104
|
+
borderRadius?: string | number;
|
|
105
|
+
className?: string;
|
|
106
|
+
style?: CSSProperties;
|
|
107
|
+
}
|
|
108
|
+
/** A spinner for content that is loading and has no shape yet. */
|
|
109
|
+
export type AgentsLoadingSpinnerProps = Record<string, never>;
|
|
110
|
+
/** A short explanation shown while the pointer rests on its child. */
|
|
111
|
+
export interface AgentsTooltipProps {
|
|
112
|
+
children: ReactElement;
|
|
113
|
+
/** A text key; nothing is shown while it is undefined. */
|
|
114
|
+
text?: string;
|
|
115
|
+
replacements?: AgentsTextReplacements;
|
|
116
|
+
placement?: "top";
|
|
117
|
+
/** Light text on a dark panel. */
|
|
118
|
+
dark?: boolean;
|
|
119
|
+
/** The child sits in a wrapper element that receives the pointer. */
|
|
120
|
+
wrapsChild?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/** An animated glowing border around its content. */
|
|
123
|
+
export interface AgentsGlowFrameProps {
|
|
124
|
+
children?: ReactNode;
|
|
125
|
+
className?: string;
|
|
126
|
+
/** The colour of the glow instead of its gradient. */
|
|
127
|
+
color?: string;
|
|
128
|
+
borderRadius?: number;
|
|
129
|
+
borderWidth?: number;
|
|
130
|
+
blurWidth?: number;
|
|
131
|
+
}
|
|
132
|
+
export interface AgentsProgressBarProps {
|
|
133
|
+
/** The progress in percent. */
|
|
134
|
+
value?: number;
|
|
135
|
+
height?: string;
|
|
136
|
+
color?: string;
|
|
137
|
+
/** Moving without a known progress. */
|
|
138
|
+
indeterminate?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface AgentsSplitViewPane {
|
|
141
|
+
content: ReactNode;
|
|
142
|
+
/** The pane's width while the side pane is closed (main) or open (side), as a CSS length. */
|
|
143
|
+
width: string;
|
|
144
|
+
/** The pane's width while the side pane is open. */
|
|
145
|
+
narrowedWidth?: string;
|
|
146
|
+
background?: string;
|
|
147
|
+
}
|
|
148
|
+
/** Two panes side by side; the side pane slides in over the right edge and covers the screen below a width. */
|
|
149
|
+
export interface AgentsSplitViewProps {
|
|
150
|
+
isSideOpen: boolean;
|
|
151
|
+
/** Below this viewport width the open side pane covers the main pane. */
|
|
152
|
+
coversBelowWidth?: number;
|
|
153
|
+
main: AgentsSplitViewPane;
|
|
154
|
+
side: AgentsSplitViewPane;
|
|
155
|
+
/** The toggle button on the divider. */
|
|
156
|
+
sideToggle?: {
|
|
157
|
+
onToggle: () => void;
|
|
158
|
+
verticalPositionPercent?: number;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/** The change of a figure as an arrow and a signed amount, coloured by whether it is good. */
|
|
162
|
+
export interface AgentsTrendDeltaProps {
|
|
163
|
+
current: number;
|
|
164
|
+
previous?: number;
|
|
165
|
+
higherIsBetter?: boolean;
|
|
166
|
+
/** Formats the amount of the change (always positive). */
|
|
167
|
+
format?: (magnitude: number) => string;
|
|
168
|
+
}
|
|
169
|
+
export interface AgentsCheckboxProps {
|
|
170
|
+
checked?: boolean;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
label?: ReactNode;
|
|
173
|
+
translate?: boolean;
|
|
174
|
+
/** A long word in the label breaks onto the next line. */
|
|
175
|
+
breaksLongWords?: boolean;
|
|
176
|
+
onChange?: () => void;
|
|
177
|
+
testId?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface AgentsTextInputProps {
|
|
180
|
+
id?: string;
|
|
181
|
+
value?: string;
|
|
182
|
+
type?: "text" | "number" | "email";
|
|
183
|
+
/** A visible label above the field (a text key); without one the field is unlabelled. */
|
|
184
|
+
label?: string;
|
|
185
|
+
placeholder?: string;
|
|
186
|
+
maxLength?: number;
|
|
187
|
+
onChange?: (text: string) => void;
|
|
188
|
+
testId?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface AgentsTextAreaProps {
|
|
191
|
+
id?: string;
|
|
192
|
+
value?: string;
|
|
193
|
+
/** A visible label above the field (a text key); without one the field is unlabelled. */
|
|
194
|
+
label?: string;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
maxLength?: number;
|
|
197
|
+
rows?: number;
|
|
198
|
+
minRows?: number;
|
|
199
|
+
maxRows?: number;
|
|
200
|
+
showsCounter?: boolean;
|
|
201
|
+
autoFocus?: boolean;
|
|
202
|
+
onChange?: (text: string) => void;
|
|
203
|
+
testId?: string;
|
|
204
|
+
}
|
|
205
|
+
export interface AgentsRangeSliderProps {
|
|
206
|
+
value: number;
|
|
207
|
+
min: number;
|
|
208
|
+
max: number;
|
|
209
|
+
step?: number;
|
|
210
|
+
/** The owner moves the thumb. */
|
|
211
|
+
onMove?: (value: number) => void;
|
|
212
|
+
/** The owner releases the thumb. */
|
|
213
|
+
onRelease?: (value: number) => void;
|
|
214
|
+
}
|
|
215
|
+
export interface AgentsDateInputProps {
|
|
216
|
+
/** The picked day as a timestamp in milliseconds. */
|
|
217
|
+
value?: number;
|
|
218
|
+
minDate?: number;
|
|
219
|
+
maxDate?: number;
|
|
220
|
+
/** The date pattern locale, e.g. `de_DE`. */
|
|
221
|
+
locale: string;
|
|
222
|
+
onChange?: (value: number | null | undefined) => void;
|
|
223
|
+
}
|
|
224
|
+
export interface AgentsChoiceOption {
|
|
225
|
+
value: string;
|
|
226
|
+
label: ReactNode;
|
|
227
|
+
disabled?: boolean;
|
|
228
|
+
}
|
|
229
|
+
export interface AgentsRadioGroupProps {
|
|
230
|
+
name: string;
|
|
231
|
+
value: string;
|
|
232
|
+
options: AgentsChoiceOption[];
|
|
233
|
+
direction?: "row" | "column";
|
|
234
|
+
onChange: (value: string) => void;
|
|
235
|
+
}
|
|
236
|
+
export interface AgentsSelectOption {
|
|
237
|
+
value: string;
|
|
238
|
+
/** The text of the option, shown as it is. */
|
|
239
|
+
label: string;
|
|
240
|
+
description?: string;
|
|
241
|
+
disabled?: boolean;
|
|
242
|
+
}
|
|
243
|
+
export interface AgentsSelectProps {
|
|
244
|
+
id?: string;
|
|
245
|
+
value: string;
|
|
246
|
+
options: AgentsSelectOption[];
|
|
247
|
+
placeholder?: string;
|
|
248
|
+
onChange: (value: string) => void;
|
|
249
|
+
testId?: string;
|
|
250
|
+
}
|
|
251
|
+
export interface AgentsTabsOption extends AgentsChoiceOption {
|
|
252
|
+
testId?: string;
|
|
253
|
+
}
|
|
254
|
+
/** A few short choices side by side, one of them picked. */
|
|
255
|
+
export interface AgentsTabsProps {
|
|
256
|
+
options: AgentsTabsOption[];
|
|
257
|
+
value?: string;
|
|
258
|
+
onChange: (value: string) => void;
|
|
259
|
+
ariaLabel?: string;
|
|
260
|
+
}
|
|
261
|
+
export type AgentsStatusBadgeStatus = "neutral" | "info" | "success" | "warning" | "danger";
|
|
262
|
+
export interface AgentsStatusBadgeProps {
|
|
263
|
+
status: AgentsStatusBadgeStatus;
|
|
264
|
+
/** A text key, translated unless `translate` is false. */
|
|
265
|
+
text: string;
|
|
266
|
+
translate?: boolean;
|
|
267
|
+
hideIcon?: boolean;
|
|
268
|
+
size?: "small";
|
|
269
|
+
className?: string;
|
|
270
|
+
}
|
|
271
|
+
export interface AgentsMapPosition {
|
|
272
|
+
lat: number;
|
|
273
|
+
lng: number;
|
|
274
|
+
}
|
|
275
|
+
/** An interactive map. The app supplies it; the package default only says that there is no map. */
|
|
276
|
+
export interface AgentsMapProps {
|
|
277
|
+
children?: ReactNode;
|
|
278
|
+
/** The map script is loaded. */
|
|
279
|
+
isLoaded: boolean;
|
|
280
|
+
languageCode?: string;
|
|
281
|
+
center?: AgentsMapPosition;
|
|
282
|
+
zoom?: number;
|
|
283
|
+
options?: google.maps.MapOptions;
|
|
284
|
+
onLoad?: (map: google.maps.Map) => void;
|
|
285
|
+
className?: string;
|
|
286
|
+
testId?: string;
|
|
287
|
+
}
|
|
288
|
+
/** A marker on the map whose look is its children. */
|
|
289
|
+
export interface AgentsMapMarkerProps {
|
|
290
|
+
id: string;
|
|
291
|
+
isLoaded: boolean;
|
|
292
|
+
position: AgentsMapPosition;
|
|
293
|
+
zIndex?: number;
|
|
294
|
+
title?: string;
|
|
295
|
+
children?: ReactNode;
|
|
296
|
+
}
|
|
297
|
+
/** The layer modals open into (an image gallery). */
|
|
298
|
+
export interface AgentsModalLayerProps {
|
|
299
|
+
children?: ReactNode;
|
|
300
|
+
/** Renders the element modals mount into, before the children. */
|
|
301
|
+
includesModalRoot?: boolean;
|
|
302
|
+
}
|
|
303
|
+
/** The row that holds a hero figure and what sits beside it. */
|
|
304
|
+
export interface AgentsHeroRowProps {
|
|
305
|
+
children: ReactNode;
|
|
306
|
+
className?: string;
|
|
307
|
+
}
|
|
308
|
+
/** The large figure of a KPI (`2.4K`, `87 %`); a figure too wide for its row shrinks instead of overflowing. */
|
|
309
|
+
export interface AgentsHeroValueProps {
|
|
310
|
+
children: ReactNode;
|
|
311
|
+
color?: string;
|
|
312
|
+
}
|
|
313
|
+
/** The type scale of the widgets, from the hero figure down to the micro label. */
|
|
314
|
+
export type AgentsWidgetTextVariant = "hero" | "headline" | "gaugeValue" | "value" | "caption" | "label" | "micro" | "inherit";
|
|
315
|
+
export type AgentsWidgetTextTone = "default" | "light" | "cta";
|
|
316
|
+
/** A text of the widget type scale. A string child is a text key unless `translate` is false. */
|
|
317
|
+
export interface AgentsWidgetTextProps {
|
|
318
|
+
children: ReactNode;
|
|
319
|
+
/** Default `inherit`: size, weight and colour of the parent. */
|
|
320
|
+
variant?: AgentsWidgetTextVariant;
|
|
321
|
+
tone?: AgentsWidgetTextTone;
|
|
322
|
+
/** A CSS colour for a data-driven tone; wins over `tone`. */
|
|
323
|
+
color?: string;
|
|
324
|
+
weight?: AgentsTextWeight;
|
|
325
|
+
uppercase?: boolean;
|
|
326
|
+
/** Digits of equal width. */
|
|
327
|
+
tabular?: boolean;
|
|
328
|
+
strikethrough?: boolean;
|
|
329
|
+
inline?: boolean;
|
|
330
|
+
translate?: boolean;
|
|
331
|
+
context?: "one" | "other";
|
|
332
|
+
replacements?: Record<string, string | number | null | undefined>;
|
|
333
|
+
className?: string;
|
|
334
|
+
testId?: string;
|
|
335
|
+
}
|
|
336
|
+
/** A placeholder line in the place of a text that is still loading, sized in `em`. */
|
|
337
|
+
export interface AgentsSkeletonTextProps {
|
|
338
|
+
width?: string | number;
|
|
339
|
+
height?: string | number;
|
|
340
|
+
className?: string;
|
|
341
|
+
}
|
|
342
|
+
export type AgentsStatusChipTone = "success" | "warning" | "danger" | "neutral" | "info" | "error";
|
|
343
|
+
/** A short status in a coloured chip. */
|
|
344
|
+
export interface AgentsStatusChipProps {
|
|
345
|
+
tone?: AgentsStatusChipTone;
|
|
346
|
+
/** A text key, or — with `translate={false}` — a plain text the caller passed through `escapePlainTextForText`. */
|
|
347
|
+
children: string;
|
|
348
|
+
/** For tight rows: no icon, the text wraps inside the chip. */
|
|
349
|
+
compact?: boolean;
|
|
350
|
+
translate?: boolean;
|
|
351
|
+
}
|
|
352
|
+
export interface AgentsSegment {
|
|
353
|
+
value: number;
|
|
354
|
+
color: string;
|
|
355
|
+
/** Striped fill (a pending part). */
|
|
356
|
+
pattern?: "striped";
|
|
357
|
+
/** Faded fill (a stale part). */
|
|
358
|
+
muted?: boolean;
|
|
359
|
+
}
|
|
360
|
+
/** A horizontal bar split into proportional parts; a part of zero collapses. */
|
|
361
|
+
export interface AgentsSegmentBarProps {
|
|
362
|
+
segments: AgentsSegment[];
|
|
363
|
+
height?: number;
|
|
364
|
+
className?: string;
|
|
365
|
+
loading?: boolean;
|
|
366
|
+
testId?: string;
|
|
367
|
+
}
|
|
368
|
+
/** The elements a Markdown text renders, by tag or by widget name. */
|
|
369
|
+
export type AgentsMarkdownComponents = MarkdownComponents & Record<string, ComponentType<Record<string, unknown> & {
|
|
370
|
+
children?: ReactNode;
|
|
371
|
+
}>>;
|
|
372
|
+
/** A Markdown text (GitHub flavour). */
|
|
373
|
+
export interface AgentsMarkdownProps {
|
|
374
|
+
markdown: string;
|
|
375
|
+
color?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Headings and paragraphs render through the app's text component (its type scale) instead of the Markdown
|
|
378
|
+
* stylesheet, and links open in a new tab.
|
|
379
|
+
*/
|
|
380
|
+
usesTextComponent?: boolean;
|
|
381
|
+
/** Whether a text component translates the text (only with `usesTextComponent`). */
|
|
382
|
+
translate?: boolean;
|
|
383
|
+
remarkPlugins?: PluggableList;
|
|
384
|
+
rehypePlugins?: PluggableList;
|
|
385
|
+
components?: AgentsMarkdownComponents;
|
|
386
|
+
}
|
|
387
|
+
/** Shown in place of a widget whose requirement the owner may lack: the widget, a placeholder or an upgrade offer. */
|
|
388
|
+
export interface AgentsWidgetFeatureGateProps {
|
|
389
|
+
/** The app's requirement name the widget declares (opaque to the package). */
|
|
390
|
+
featureFlag: string;
|
|
391
|
+
/** The widget's own upgrade offer, if it declares one. */
|
|
392
|
+
UpsellTrigger?: ComponentType<{
|
|
393
|
+
flag: unknown;
|
|
394
|
+
}>;
|
|
395
|
+
/** The widget's raw agent space key attribute: the gate checks the requirements of another agent space. */
|
|
396
|
+
agentSpaceKeyAttribute?: string | number;
|
|
397
|
+
children: ReactNode;
|
|
398
|
+
}
|
|
399
|
+
/** One matched message of a conversation search. */
|
|
400
|
+
export interface AgentsConversationSearchHit {
|
|
401
|
+
role?: string;
|
|
402
|
+
excerpt?: string;
|
|
403
|
+
indexInConversation?: number;
|
|
404
|
+
messageId?: number;
|
|
405
|
+
created?: string;
|
|
406
|
+
updated?: string;
|
|
407
|
+
dateTime?: string;
|
|
408
|
+
}
|
|
409
|
+
/** One conversation with its matched messages. */
|
|
410
|
+
export interface AgentsConversationSearchGroup {
|
|
411
|
+
conversationId?: number;
|
|
412
|
+
title?: string;
|
|
413
|
+
summary?: string;
|
|
414
|
+
created?: string;
|
|
415
|
+
updated?: string;
|
|
416
|
+
dateTime?: string;
|
|
417
|
+
hits: AgentsConversationSearchHit[];
|
|
418
|
+
}
|
|
419
|
+
/** The grouped results of a search over the owner's conversations. */
|
|
420
|
+
export interface AgentsConversationSearchResultsListProps {
|
|
421
|
+
groups: AgentsConversationSearchGroup[];
|
|
422
|
+
query: string;
|
|
423
|
+
/** Opens the conversation a group or a hit belongs to (and scrolls to the hit's message). */
|
|
424
|
+
onOpenConversation: (conversationId: number, messageId?: number) => void;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Every component package code renders that an app may replace. Each member has a package default
|
|
428
|
+
* (`default-components.tsx`). Members are added only together with their default.
|
|
429
|
+
*/
|
|
430
|
+
export interface AgentsComponents {
|
|
431
|
+
Text: ComponentType<AgentsTextProps>;
|
|
432
|
+
Button: ComponentType<AgentsButtonProps>;
|
|
433
|
+
Icon: ComponentType<AgentsIconProps>;
|
|
434
|
+
InteractiveSurface: ComponentType<AgentsInteractiveSurfaceProps>;
|
|
435
|
+
Skeleton: ComponentType<AgentsSkeletonProps>;
|
|
436
|
+
LoadingSpinner: ComponentType<AgentsLoadingSpinnerProps>;
|
|
437
|
+
Tooltip: ComponentType<AgentsTooltipProps>;
|
|
438
|
+
GlowFrame: ComponentType<AgentsGlowFrameProps>;
|
|
439
|
+
ProgressBar: ComponentType<AgentsProgressBarProps>;
|
|
440
|
+
SplitView: ComponentType<AgentsSplitViewProps>;
|
|
441
|
+
TrendDelta: ComponentType<AgentsTrendDeltaProps>;
|
|
442
|
+
Checkbox: ComponentType<AgentsCheckboxProps>;
|
|
443
|
+
TextInput: ComponentType<AgentsTextInputProps>;
|
|
444
|
+
TextArea: ComponentType<AgentsTextAreaProps>;
|
|
445
|
+
RangeSlider: ComponentType<AgentsRangeSliderProps>;
|
|
446
|
+
DateInput: ComponentType<AgentsDateInputProps>;
|
|
447
|
+
RadioGroup: ComponentType<AgentsRadioGroupProps>;
|
|
448
|
+
Select: ComponentType<AgentsSelectProps>;
|
|
449
|
+
Tabs: ComponentType<AgentsTabsProps>;
|
|
450
|
+
StatusBadge: ComponentType<AgentsStatusBadgeProps>;
|
|
451
|
+
Map: ComponentType<AgentsMapProps>;
|
|
452
|
+
MapMarker: ComponentType<AgentsMapMarkerProps>;
|
|
453
|
+
ModalLayer: ComponentType<AgentsModalLayerProps>;
|
|
454
|
+
HeroRow: ComponentType<AgentsHeroRowProps>;
|
|
455
|
+
HeroValue: ComponentType<AgentsHeroValueProps>;
|
|
456
|
+
WidgetText: ComponentType<AgentsWidgetTextProps>;
|
|
457
|
+
SkeletonText: ComponentType<AgentsSkeletonTextProps>;
|
|
458
|
+
StatusChip: ComponentType<AgentsStatusChipProps>;
|
|
459
|
+
SegmentBar: ComponentType<AgentsSegmentBarProps>;
|
|
460
|
+
Markdown: ComponentType<AgentsMarkdownProps>;
|
|
461
|
+
WidgetFeatureGate: ComponentType<AgentsWidgetFeatureGateProps>;
|
|
462
|
+
ConversationSearchResultsList: ComponentType<AgentsConversationSearchResultsListProps>;
|
|
463
|
+
}
|