@opencx/widget-react 4.0.62 → 5.0.0-beta.0
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/dist/Chart.impl-BnzKZLOH.js +153 -0
- package/dist/Chart.impl-BnzKZLOH.js.map +1 -0
- package/dist/Chart.impl-DOSb1NJk.cjs +2 -0
- package/dist/Chart.impl-DOSb1NJk.cjs.map +1 -0
- package/dist/index-BCiFOCVT.js +11548 -0
- package/dist/index-BCiFOCVT.js.map +1 -0
- package/dist/index-CqbztkwP.cjs +234 -0
- package/dist/index-CqbztkwP.cjs.map +1 -0
- package/dist/index.cjs +1 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -3391
- package/dist/index.js.map +1 -1
- package/dist/package.json.d.ts +82 -0
- package/dist/src/WidgetImperativeHandler.d.ts +1 -0
- package/dist/src/WidgetImperativeHandler.d.ts.map +1 -1
- package/dist/src/WidgetPopoverContent.d.ts.map +1 -1
- package/dist/src/WidgetPopoverTrigger.d.ts.map +1 -1
- package/dist/src/__tests__/motion-contract.spec.d.ts +2 -0
- package/dist/src/__tests__/motion-contract.spec.d.ts.map +1 -0
- package/dist/src/companion/CompanionContent.d.ts +30 -0
- package/dist/src/companion/CompanionContent.d.ts.map +1 -0
- package/dist/src/companion/CompanionFaceIcon.d.ts +15 -0
- package/dist/src/companion/CompanionFaceIcon.d.ts.map +1 -0
- package/dist/src/companion/CompanionFrame.d.ts +19 -0
- package/dist/src/companion/CompanionFrame.d.ts.map +1 -0
- package/dist/src/companion/FrameIconButton.d.ts +15 -0
- package/dist/src/companion/FrameIconButton.d.ts.map +1 -0
- package/dist/src/companion/LayoutPicker.d.ts +7 -0
- package/dist/src/companion/LayoutPicker.d.ts.map +1 -0
- package/dist/src/companion/PanelControls.d.ts +15 -0
- package/dist/src/companion/PanelControls.d.ts.map +1 -0
- package/dist/src/companion/RestingPill.d.ts +14 -0
- package/dist/src/companion/RestingPill.d.ts.map +1 -0
- package/dist/src/companion/SidebarSubmenu.d.ts +21 -0
- package/dist/src/companion/SidebarSubmenu.d.ts.map +1 -0
- package/dist/src/companion/WidgetCompanion.d.ts +3 -0
- package/dist/src/companion/WidgetCompanion.d.ts.map +1 -0
- package/dist/src/companion/__tests__/app-frame.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/app-frame.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/companion-dismissal.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/companion-dismissal.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/companion-focus.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/companion-focus.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/companion-frame.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/companion-frame.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/companion-geometry.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/companion-geometry.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/companion-keyboard.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/companion-keyboard.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/host-scroll-lock.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/host-scroll-lock.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/layout-picker.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/layout-picker.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/message-styles.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/message-styles.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/use-companion-host-effects.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/use-companion-host-effects.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/use-companion-measurements.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/use-companion-measurements.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/use-host-portal.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/use-host-portal.spec.d.ts.map +1 -0
- package/dist/src/companion/__tests__/use-persisted-pill-drag.spec.d.ts +2 -0
- package/dist/src/companion/__tests__/use-persisted-pill-drag.spec.d.ts.map +1 -0
- package/dist/src/companion/app-frame.d.ts +13 -0
- package/dist/src/companion/app-frame.d.ts.map +1 -0
- package/dist/src/companion/companion-dismissal.d.ts +21 -0
- package/dist/src/companion/companion-dismissal.d.ts.map +1 -0
- package/dist/src/companion/companion-geometry.d.ts +101 -0
- package/dist/src/companion/companion-geometry.d.ts.map +1 -0
- package/dist/src/companion/companion-keyboard.d.ts +43 -0
- package/dist/src/companion/companion-keyboard.d.ts.map +1 -0
- package/dist/src/companion/host-scroll-lock.d.ts +5 -0
- package/dist/src/companion/host-scroll-lock.d.ts.map +1 -0
- package/dist/src/companion/layout-glyphs.d.ts +14 -0
- package/dist/src/companion/layout-glyphs.d.ts.map +1 -0
- package/dist/src/companion/message-styles.d.ts +2 -0
- package/dist/src/companion/message-styles.d.ts.map +1 -0
- package/dist/src/companion/types.d.ts +3 -0
- package/dist/src/companion/types.d.ts.map +1 -0
- package/dist/src/companion/useCompanionHostEffects.d.ts +46 -0
- package/dist/src/companion/useCompanionHostEffects.d.ts.map +1 -0
- package/dist/src/companion/useCompanionMeasurements.d.ts +12 -0
- package/dist/src/companion/useCompanionMeasurements.d.ts.map +1 -0
- package/dist/src/companion/useHostPortal.d.ts +22 -0
- package/dist/src/companion/useHostPortal.d.ts.map +1 -0
- package/dist/src/companion/usePersistedPillDrag.d.ts +29 -0
- package/dist/src/companion/usePersistedPillDrag.d.ts.map +1 -0
- package/dist/src/components/AgentAvatar.d.ts.map +1 -1
- package/dist/src/components/AgentMessageGroup.d.ts +6 -1
- package/dist/src/components/AgentMessageGroup.d.ts.map +1 -1
- package/dist/src/components/ClarificationQuestions.d.ts +17 -0
- package/dist/src/components/ClarificationQuestions.d.ts.map +1 -0
- package/dist/src/components/Dialoger.d.ts.map +1 -1
- package/dist/src/components/FrameDocument.d.ts +31 -0
- package/dist/src/components/FrameDocument.d.ts.map +1 -0
- package/dist/src/components/GroupTimestamp.d.ts.map +1 -1
- package/dist/src/components/Header.d.ts +7 -0
- package/dist/src/components/Header.d.ts.map +1 -1
- package/dist/src/components/MessageActions.d.ts +21 -0
- package/dist/src/components/MessageActions.d.ts.map +1 -0
- package/dist/src/components/RichText.d.ts.map +1 -1
- package/dist/src/components/StepsGroup.d.ts +10 -0
- package/dist/src/components/StepsGroup.d.ts.map +1 -0
- package/dist/src/components/StreamingTurn.d.ts +33 -0
- package/dist/src/components/StreamingTurn.d.ts.map +1 -0
- package/dist/src/components/UserMessage.d.ts.map +1 -1
- package/dist/src/components/ZoomableImage.d.ts +1 -1
- package/dist/src/components/ZoomableImage.d.ts.map +1 -1
- package/dist/src/components/__tests__/clarification-questions.spec.d.ts +2 -0
- package/dist/src/components/__tests__/clarification-questions.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/dialoger-escape.spec.d.ts +2 -0
- package/dist/src/components/__tests__/dialoger-escape.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/header-title.spec.d.ts +2 -0
- package/dist/src/components/__tests__/header-title.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/message-actions.spec.d.ts +2 -0
- package/dist/src/components/__tests__/message-actions.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/rich-text-sanitize.spec.d.ts +2 -0
- package/dist/src/components/__tests__/rich-text-sanitize.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/steps-group-collapse.spec.d.ts +2 -0
- package/dist/src/components/__tests__/steps-group-collapse.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/steps-reasoning-markdown.spec.d.ts +2 -0
- package/dist/src/components/__tests__/steps-reasoning-markdown.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/steps-tool-io.spec.d.ts +2 -0
- package/dist/src/components/__tests__/steps-tool-io.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/streaming-turn-customization.spec.d.ts +2 -0
- package/dist/src/components/__tests__/streaming-turn-customization.spec.d.ts.map +1 -0
- package/dist/src/components/__tests__/streaming-turn-working.spec.d.ts +2 -0
- package/dist/src/components/__tests__/streaming-turn-working.spec.d.ts.map +1 -0
- package/dist/src/components/custom-components/AgentMessageDefaultComponent.d.ts.map +1 -1
- package/dist/src/components/custom-components/__tests__/agent-message-spec-history.spec.d.ts +2 -0
- package/dist/src/components/custom-components/__tests__/agent-message-spec-history.spec.d.ts.map +1 -0
- package/dist/src/components/lib/BrailleSpinner.d.ts +10 -0
- package/dist/src/components/lib/BrailleSpinner.d.ts.map +1 -0
- package/dist/src/components/lib/DynamicIcon.d.ts.map +1 -1
- package/dist/src/components/lib/MotionDiv.d.ts.map +1 -1
- package/dist/src/components/lib/MotionDiv__VerticalReveal.d.ts.map +1 -1
- package/dist/src/components/lib/badge.d.ts +1 -1
- package/dist/src/components/lib/button.d.ts +2 -2
- package/dist/src/components/lib/input.d.ts.map +1 -1
- package/dist/src/components/lib/tooltip.d.ts +18 -2
- package/dist/src/components/lib/tooltip.d.ts.map +1 -1
- package/dist/src/hooks/useCanHover.d.ts +8 -0
- package/dist/src/hooks/useCanHover.d.ts.map +1 -0
- package/dist/src/hooks/useTheme.d.ts +17 -2
- package/dist/src/hooks/useTheme.d.ts.map +1 -1
- package/dist/src/hooks/useTranslation.d.ts +3 -2
- package/dist/src/hooks/useTranslation.d.ts.map +1 -1
- package/dist/src/hooks/useTriggerLabel.d.ts +6 -0
- package/dist/src/hooks/useTriggerLabel.d.ts.map +1 -0
- package/dist/src/index.d.ts +12 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/json-render/Chart.d.ts +4 -0
- package/dist/src/json-render/Chart.d.ts.map +1 -0
- package/dist/src/json-render/Chart.impl.d.ts +4 -0
- package/dist/src/json-render/Chart.impl.d.ts.map +1 -0
- package/dist/src/json-render/JsonRenderErrorBoundary.d.ts +27 -0
- package/dist/src/json-render/JsonRenderErrorBoundary.d.ts.map +1 -0
- package/dist/src/json-render/SpecRenderer.d.ts +28 -0
- package/dist/src/json-render/SpecRenderer.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/catalog.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/catalog.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/chart.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/chart.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/json-render-error-boundary.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/json-render-error-boundary.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/normalize-spec.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/normalize-spec.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/phone-agent-card.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/phone-agent-card.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/props.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/props.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/segment-content.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/segment-content.spec.d.ts.map +1 -0
- package/dist/src/json-render/__tests__/spec-renderer.spec.d.ts +2 -0
- package/dist/src/json-render/__tests__/spec-renderer.spec.d.ts.map +1 -0
- package/dist/src/json-render/catalog.d.ts +260 -0
- package/dist/src/json-render/catalog.d.ts.map +1 -0
- package/dist/src/json-render/host.d.ts +27 -0
- package/dist/src/json-render/host.d.ts.map +1 -0
- package/dist/src/json-render/index.d.ts +12 -0
- package/dist/src/json-render/index.d.ts.map +1 -0
- package/dist/src/json-render/normalize-spec.d.ts +22 -0
- package/dist/src/json-render/normalize-spec.d.ts.map +1 -0
- package/dist/src/json-render/props.d.ts +207 -0
- package/dist/src/json-render/props.d.ts.map +1 -0
- package/dist/src/json-render/registry.d.ts +5 -0
- package/dist/src/json-render/registry.d.ts.map +1 -0
- package/dist/src/json-render/segment-content.d.ts +25 -0
- package/dist/src/json-render/segment-content.d.ts.map +1 -0
- package/dist/src/json-render/ui-prompt.d.ts +22 -0
- package/dist/src/json-render/ui-prompt.d.ts.map +1 -0
- package/dist/src/motion.d.ts +55 -0
- package/dist/src/motion.d.ts.map +1 -0
- package/dist/src/page-context/PageContextPill.d.ts +17 -0
- package/dist/src/page-context/PageContextPill.d.ts.map +1 -0
- package/dist/src/page-context/usePageEntity.d.ts +15 -0
- package/dist/src/page-context/usePageEntity.d.ts.map +1 -0
- package/dist/src/page-marks/MarkThumbnail.d.ts +19 -0
- package/dist/src/page-marks/MarkThumbnail.d.ts.map +1 -0
- package/dist/src/page-marks/PageMarkOverlay.d.ts +23 -0
- package/dist/src/page-marks/PageMarkOverlay.d.ts.map +1 -0
- package/dist/src/page-marks/PageMarkPill.d.ts +16 -0
- package/dist/src/page-marks/PageMarkPill.d.ts.map +1 -0
- package/dist/src/page-marks/PageMarksProvider.d.ts +21 -0
- package/dist/src/page-marks/PageMarksProvider.d.ts.map +1 -0
- package/dist/src/page-marks/SentMarkChip.d.ts +15 -0
- package/dist/src/page-marks/SentMarkChip.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/agent-mark.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/agent-mark.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/mark-snapshot-upload.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/mark-snapshot-upload.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-element-name.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-element-name.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-element.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-element.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-mark-pill.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-mark-pill.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-mark-theme.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-mark-theme.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-mark-tile.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-mark-tile.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/page-marks-provider.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/page-marks-provider.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/picked-elements.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/picked-elements.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/sent-mark-chip.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/sent-mark-chip.spec.d.ts.map +1 -0
- package/dist/src/page-marks/__tests__/use-page-marking.spec.d.ts +2 -0
- package/dist/src/page-marks/__tests__/use-page-marking.spec.d.ts.map +1 -0
- package/dist/src/page-marks/agent-mark.d.ts +37 -0
- package/dist/src/page-marks/agent-mark.d.ts.map +1 -0
- package/dist/src/page-marks/mark-thumbnail.d.ts +25 -0
- package/dist/src/page-marks/mark-thumbnail.d.ts.map +1 -0
- package/dist/src/page-marks/page-element.d.ts +89 -0
- package/dist/src/page-marks/page-element.d.ts.map +1 -0
- package/dist/src/page-marks/page-mark-theme.d.ts +30 -0
- package/dist/src/page-marks/page-mark-theme.d.ts.map +1 -0
- package/dist/src/page-marks/page-mark.d.ts +103 -0
- package/dist/src/page-marks/page-mark.d.ts.map +1 -0
- package/dist/src/page-marks/useMarkThumbnail.d.ts +8 -0
- package/dist/src/page-marks/useMarkThumbnail.d.ts.map +1 -0
- package/dist/src/page-marks/usePageMarking.d.ts +53 -0
- package/dist/src/page-marks/usePageMarking.d.ts.map +1 -0
- package/dist/src/screens/chat/ChatCanvas.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooter.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatFooterItems.d.ts.map +1 -1
- package/dist/src/screens/chat/ChatInput.d.ts +27 -0
- package/dist/src/screens/chat/ChatInput.d.ts.map +1 -0
- package/dist/src/screens/chat/ChatMain.d.ts.map +1 -1
- package/dist/src/screens/chat/DictationMicButton.d.ts +18 -0
- package/dist/src/screens/chat/DictationMicButton.d.ts.map +1 -0
- package/dist/src/screens/chat/InitialMessages.d.ts +7 -1
- package/dist/src/screens/chat/InitialMessages.d.ts.map +1 -1
- package/dist/src/screens/chat/MentionPicker.d.ts +39 -0
- package/dist/src/screens/chat/MentionPicker.d.ts.map +1 -0
- package/dist/src/screens/chat/MentionText.d.ts +16 -0
- package/dist/src/screens/chat/MentionText.d.ts.map +1 -0
- package/dist/src/screens/chat/MessageGroups.d.ts +12 -0
- package/dist/src/screens/chat/MessageGroups.d.ts.map +1 -0
- package/dist/src/screens/chat/UploadPreview.d.ts +23 -0
- package/dist/src/screens/chat/UploadPreview.d.ts.map +1 -0
- package/dist/src/screens/chat/__tests__/chat-input-clarification.spec.d.ts +2 -0
- package/dist/src/screens/chat/__tests__/chat-input-clarification.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/__tests__/chatInput.spec.d.ts +2 -0
- package/dist/src/screens/chat/__tests__/chatInput.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/__tests__/use-mentions.spec.d.ts +2 -0
- package/dist/src/screens/chat/__tests__/use-mentions.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/__tests__/useSentTextRecall.spec.d.ts +2 -0
- package/dist/src/screens/chat/__tests__/useSentTextRecall.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/AgentChatMain.d.ts +16 -0
- package/dist/src/screens/chat/agent/AgentChatMain.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/AgentChatPageEffects.d.ts +9 -0
- package/dist/src/screens/chat/agent/AgentChatPageEffects.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/QueuedSendsPill.d.ts +18 -0
- package/dist/src/screens/chat/agent/QueuedSendsPill.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/__tests__/agent-chat-main.promotion.spec.d.ts +2 -0
- package/dist/src/screens/chat/agent/__tests__/agent-chat-main.promotion.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/__tests__/agent-chat-page-effects.spec.d.ts +2 -0
- package/dist/src/screens/chat/agent/__tests__/agent-chat-page-effects.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/__tests__/scroll-follow.utils.spec.d.ts +2 -0
- package/dist/src/screens/chat/agent/__tests__/scroll-follow.utils.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/__tests__/useStreamFollow.spec.d.ts +2 -0
- package/dist/src/screens/chat/agent/__tests__/useStreamFollow.spec.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/scroll-follow.utils.d.ts +17 -0
- package/dist/src/screens/chat/agent/scroll-follow.utils.d.ts.map +1 -0
- package/dist/src/screens/chat/agent/useStreamFollow.d.ts +23 -0
- package/dist/src/screens/chat/agent/useStreamFollow.d.ts.map +1 -0
- package/dist/src/screens/chat/caret-position.d.ts +19 -0
- package/dist/src/screens/chat/caret-position.d.ts.map +1 -0
- package/dist/src/screens/chat/composer-styles.d.ts +21 -0
- package/dist/src/screens/chat/composer-styles.d.ts.map +1 -0
- package/dist/src/screens/chat/index.d.ts.map +1 -1
- package/dist/src/screens/chat/useMentions.d.ts +60 -0
- package/dist/src/screens/chat/useMentions.d.ts.map +1 -0
- package/dist/src/screens/chat/usePageMarkComposer.d.ts +25 -0
- package/dist/src/screens/chat/usePageMarkComposer.d.ts.map +1 -0
- package/dist/src/screens/chat/useSentTextRecall.d.ts +29 -0
- package/dist/src/screens/chat/useSentTextRecall.d.ts.map +1 -0
- package/dist/src/screens/sessions/index.d.ts.map +1 -1
- package/dist/src/utils/__tests__/keybindings.spec.d.ts +2 -0
- package/dist/src/utils/__tests__/keybindings.spec.d.ts.map +1 -0
- package/dist/src/utils/__tests__/strip-citation-refs.spec.d.ts +2 -0
- package/dist/src/utils/__tests__/strip-citation-refs.spec.d.ts.map +1 -0
- package/dist/src/utils/__tests__/strip-inline-markdown.spec.d.ts +2 -0
- package/dist/src/utils/__tests__/strip-inline-markdown.spec.d.ts.map +1 -0
- package/dist/src/utils/group-messages-by-type.d.ts +1 -2
- package/dist/src/utils/group-messages-by-type.d.ts.map +1 -1
- package/dist/src/utils/keybindings.d.ts +24 -0
- package/dist/src/utils/keybindings.d.ts.map +1 -0
- package/dist/src/utils/render-custom-trigger.d.ts +11 -0
- package/dist/src/utils/render-custom-trigger.d.ts.map +1 -0
- package/dist/src/utils/strip-citation-refs.d.ts +10 -0
- package/dist/src/utils/strip-citation-refs.d.ts.map +1 -0
- package/dist/src/utils/strip-inline-markdown.d.ts +14 -0
- package/dist/src/utils/strip-inline-markdown.d.ts.map +1 -0
- package/package.json +18 -8
- package/dist/src/components/lib/dropdown-menu.d.ts +0 -28
- package/dist/src/components/lib/dropdown-menu.d.ts.map +0 -1
- package/dist/src/components/lib/popover.d.ts +0 -9
- package/dist/src/components/lib/popover.d.ts.map +0 -1
- package/dist/src/components/lib/switch.d.ts +0 -5
- package/dist/src/components/lib/switch.d.ts.map +0 -1
- package/dist/src/screens/chat/AdvancedInitialMessages.d.ts +0 -3
- package/dist/src/screens/chat/AdvancedInitialMessages.d.ts.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const highlightElementInputSchema: z.ZodObject<{
|
|
3
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
4
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6
|
+
type: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
circle: "circle";
|
|
8
|
+
underline: "underline";
|
|
9
|
+
box: "box";
|
|
10
|
+
arrow: "arrow";
|
|
11
|
+
bracket: "bracket";
|
|
12
|
+
}>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type HighlightElementInput = z.infer<typeof highlightElementInputSchema>;
|
|
15
|
+
/** How long a highlight stays before un-drawing itself (`pageMarkHighlightDurationMs`). */
|
|
16
|
+
export declare const DEFAULT_HIGHLIGHT_DURATION_MS = 8000;
|
|
17
|
+
/** Programmatically clear the current highlight (also used by tests). */
|
|
18
|
+
export declare function dismissActiveHighlight(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Ink a mark on an element of the host page: scroll it into view, hand-draw
|
|
21
|
+
* the mark on it (the ink is glued to the element, so it rides along with the
|
|
22
|
+
* smooth scroll), and float an optional pointing callout. The page stays fully
|
|
23
|
+
* interactive throughout — nothing is dimmed and no click is trapped.
|
|
24
|
+
*
|
|
25
|
+
* Returns false when the hint doesn't resolve to an element (the page may have
|
|
26
|
+
* changed since the context was captured) — callers treat that as a no-op.
|
|
27
|
+
*/
|
|
28
|
+
export declare function highlightElementOnHostPage(input: HighlightElementInput, { accentColor, surfaceColor, foregroundColor, zIndex, durationMs, seed, }?: {
|
|
29
|
+
accentColor?: string;
|
|
30
|
+
surfaceColor?: string;
|
|
31
|
+
foregroundColor?: string;
|
|
32
|
+
zIndex?: number;
|
|
33
|
+
durationMs?: number | undefined;
|
|
34
|
+
seed?: number;
|
|
35
|
+
}): boolean;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=agent-mark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-mark.d.ts","sourceRoot":"","sources":["../../../src/page-marks/agent-mark.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwCxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAStC,CAAC;AAEH,KAAK,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEzE,2FAA2F;AAC3F,eAAO,MAAM,6BAA6B,OAAO,CAAC;AA2BlD,yEAAyE;AACzE,wBAAgB,sBAAsB,SAErC;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,qBAAqB,EAC5B,EACE,WAA4B,EAC5B,YAA6B,EAC7B,eAAiC,EACjC,MAAmB,EACnB,UAA0C,EAC1C,IAAI,GACL,GAAE;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACV,GACL,OAAO,CAmLT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Kick off (and register) a snapshot keyed by its annotation object. */
|
|
2
|
+
export declare function beginThumbnail(key: object, el: HTMLElement): void;
|
|
3
|
+
/**
|
|
4
|
+
* Upload the mark's thumbnail once it settles and write the resulting URL
|
|
5
|
+
* onto the mark. Registered like the thumbnail so a send can wait for an
|
|
6
|
+
* upload still in flight (`awaitSnapshotUrl`). A failed capture or upload
|
|
7
|
+
* resolves null and leaves the mark without a snapshot — never throws.
|
|
8
|
+
*/
|
|
9
|
+
export declare function beginSnapshotUpload(mark: {
|
|
10
|
+
snapshotUrl?: string;
|
|
11
|
+
}, upload: (file: File) => Promise<string | null>): void;
|
|
12
|
+
/**
|
|
13
|
+
* The mark's snapshot URL, waiting at most `maxWaitMs` for an in-flight
|
|
14
|
+
* upload. A send must not hang on a slow upload: past the cap the mark goes
|
|
15
|
+
* out without its picture (text fallback), and the URL, if it lands later,
|
|
16
|
+
* is simply never persisted.
|
|
17
|
+
*/
|
|
18
|
+
export declare function awaitSnapshotUrl(mark: {
|
|
19
|
+
snapshotUrl?: string;
|
|
20
|
+
}, maxWaitMs: number): Promise<string | null>;
|
|
21
|
+
/** A `data:` URL (as `toJpeg` returns) as an uploadable File. */
|
|
22
|
+
export declare function fileFromDataUrl(dataUrl: string, name: string): File | null;
|
|
23
|
+
/** The key's in-flight/settled snapshot, if one was started. */
|
|
24
|
+
export declare function getThumbnail(key: object): Promise<string | null> | undefined;
|
|
25
|
+
//# sourceMappingURL=mark-thumbnail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-thumbnail.d.ts","sourceRoot":"","sources":["../../../src/page-marks/mark-thumbnail.ts"],"names":[],"mappings":"AA6DA,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,QAE1D;AAID;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,EAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,QAe/C;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,EAC9B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQxB;AAED,iEAAiE;AACjE,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAa1E;AAED,gEAAgE;AAChE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,CAE5E"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The page vocabulary shared by every mark on the host page — the visitor's
|
|
3
|
+
* (`page-mark.ts`) and the agent's (`agent-mark.ts`).
|
|
4
|
+
*
|
|
5
|
+
* The widget's React code runs in the HOST page realm (only the chat UI is
|
|
6
|
+
* portaled into a same-origin iframe), so `document` here is the host page
|
|
7
|
+
* document — these helpers read the customer's page directly.
|
|
8
|
+
*/
|
|
9
|
+
/** A viewport-relative box, rounded to whole pixels. */
|
|
10
|
+
export type Rect = {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* How one host-page element is described to the AI. Deliberately the minimum
|
|
18
|
+
* that carries meaning: a name to reason about, a selector to point back at
|
|
19
|
+
* (`highlight_element`), the tag, and the visible text.
|
|
20
|
+
*/
|
|
21
|
+
export type MarkedElement = {
|
|
22
|
+
/** Human-readable name, e.g. `button "Create Key"`. */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Resolvable CSS selector (verified unique against the document). */
|
|
25
|
+
selector: string;
|
|
26
|
+
/** Lowercased tag name. */
|
|
27
|
+
tag: string;
|
|
28
|
+
/** The element's own visible text, truncated. */
|
|
29
|
+
text?: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable name for an element — what the context pill shows and what
|
|
33
|
+
* the LLM reads. Buttons are named by their text, inputs by placeholder/name,
|
|
34
|
+
* images by alt.
|
|
35
|
+
*/
|
|
36
|
+
export declare function identifyElementName(el: HTMLElement): string;
|
|
37
|
+
/**
|
|
38
|
+
* A CSS selector that resolves back to `el`. Prefers a unique `#id`; otherwise
|
|
39
|
+
* builds a `:nth-of-type` chain upward, stopping as soon as the partial chain
|
|
40
|
+
* is unique in the document.
|
|
41
|
+
*/
|
|
42
|
+
export declare function computeUniqueSelector(el: HTMLElement): string;
|
|
43
|
+
/** The element's viewport-relative bounding box, rounded to whole pixels. */
|
|
44
|
+
export declare function rectOf(el: Element): Rect;
|
|
45
|
+
/**
|
|
46
|
+
* Breathing room kept between a mark's box and the viewport edge: the hover
|
|
47
|
+
* frame inflates the rect by 4px and paints a ~4px ring outside that, which
|
|
48
|
+
* is also enough for the ink's stroke and its wobble.
|
|
49
|
+
*/
|
|
50
|
+
export declare const VIEWPORT_MARGIN_PX = 8;
|
|
51
|
+
/**
|
|
52
|
+
* Clamp a viewport rect so everything drawn around it stays on the page. An
|
|
53
|
+
* element taller or wider than the viewport — a full-height sidebar, a wide
|
|
54
|
+
* table — otherwise gets a frame whose edges land outside the visible page,
|
|
55
|
+
* and the visitor sees a border running off the screen instead of a box.
|
|
56
|
+
*/
|
|
57
|
+
export declare function clampRectToViewport(rect: Rect, margin?: number): Rect;
|
|
58
|
+
/** Describe an element for the AI. */
|
|
59
|
+
export declare function describeElement(el: HTMLElement): MarkedElement;
|
|
60
|
+
/**
|
|
61
|
+
* The single source of truth for "this node belongs to the widget": the embed
|
|
62
|
+
* root, host-portaled chrome, and every mark overlay. Both the `closest()`
|
|
63
|
+
* ownership check below and the mark-mode cursor's injected `:not()` chain
|
|
64
|
+
* derive from this list — add new widget-owned markers HERE.
|
|
65
|
+
*/
|
|
66
|
+
export declare const WIDGET_OWNED_SELECTOR: readonly ["#opencx-root", "[data-opencx-root]", "[data-opencx-overlay]"];
|
|
67
|
+
/**
|
|
68
|
+
* True for nodes that belong to the widget itself — no mark may ever target
|
|
69
|
+
* the widget's own UI.
|
|
70
|
+
*/
|
|
71
|
+
export declare function isWidgetOwned(el: Element): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The markable element under a viewport point. Keep the hit in the document
|
|
74
|
+
* tree: selectors serialized into page-mark context must resolve through
|
|
75
|
+
* `document.querySelector`, so piercing a shadow root would create an element
|
|
76
|
+
* the selector contract cannot point back to. SVG children normalize to their
|
|
77
|
+
* nearest semantic HTML control (or nearest HTML owner).
|
|
78
|
+
*/
|
|
79
|
+
export declare function elementAt(x: number, y: number): HTMLElement | null;
|
|
80
|
+
/**
|
|
81
|
+
* Find an element again from an LLM-provided hint: try the CSS selector first
|
|
82
|
+
* (invalid model-authored selectors are non-fatal), then fall back to the
|
|
83
|
+
* smallest element whose text contains the hint text.
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolveElementByHint(hint: {
|
|
86
|
+
selector?: string;
|
|
87
|
+
text?: string;
|
|
88
|
+
}): HTMLElement | null;
|
|
89
|
+
//# sourceMappingURL=page-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-element.d.ts","sourceRoot":"","sources":["../../../src/page-marks/page-element.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wDAAwD;AACxD,MAAM,MAAM,IAAI,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAiDF;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,CAoC3D;AAcD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,CA+B7D;AAED,6EAA6E;AAC7E,wBAAgB,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAQxC;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,MAAM,GAAE,MAA2B,GAClC,IAAI,CAiBN;AAED,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,EAAE,EAAE,WAAW,GAAG,aAAa,CAQ9D;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,0EAIxB,CAAC;AAIX;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAmBlE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,WAAW,GAAG,IAAI,CA8BrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type PageMarkTheme = {
|
|
3
|
+
accent: string;
|
|
4
|
+
surface: string;
|
|
5
|
+
foreground: string;
|
|
6
|
+
mutedForeground: string;
|
|
7
|
+
border: string;
|
|
8
|
+
/**
|
|
9
|
+
* Document layers, relative to the widget's own. Drawn marks and the hover
|
|
10
|
+
* frame sit just UNDER the widget: they belong to the page, and a mark
|
|
11
|
+
* that runs beneath the panel reads as the page being marked, not as
|
|
12
|
+
* scribble on the chat. The note editor alone sits above, so it can be
|
|
13
|
+
* typed into wherever the mark landed.
|
|
14
|
+
*/
|
|
15
|
+
inkZIndex: number;
|
|
16
|
+
chromeZIndex: number;
|
|
17
|
+
editorZIndex: number;
|
|
18
|
+
};
|
|
19
|
+
type PageMarkCssVars = CSSProperties | {
|
|
20
|
+
[key: `--opencx-${string}`]: string | number | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** Concrete colors and document layers for page-mark UI, which is portaled
|
|
23
|
+
* outside the iframe and therefore cannot inherit the widget's CSS variables. */
|
|
24
|
+
export declare function resolvePageMarkTheme({ cssVars, primaryColor, contentZIndex, }: {
|
|
25
|
+
cssVars: PageMarkCssVars;
|
|
26
|
+
primaryColor: string;
|
|
27
|
+
contentZIndex: number;
|
|
28
|
+
}): PageMarkTheme;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=page-mark-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-mark-theme.d.ts","sourceRoot":"","sources":["../../../src/page-marks/page-mark-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAChB,aAAa,GACb;IAAE,CAAC,GAAG,EAAE,YAAY,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAUjE;iFACiF;AACjF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,YAAY,EACZ,aAAa,GACd,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,aAAa,CAWhB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { MarkedElement, Rect } from './page-element';
|
|
2
|
+
/**
|
|
3
|
+
* A mark the visitor put on the host page to ask about: a hand-drawn shape
|
|
4
|
+
* around a region, an optional note, and the elements it covers.
|
|
5
|
+
*
|
|
6
|
+
* Every mark on the page — the visitor's here, the agent's in `agent-mark.ts`
|
|
7
|
+
* — is drawn by the same pen (`@shardsui/notation`), so the conversation has
|
|
8
|
+
* one visual language.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The mark shapes the visitor can choose. The full notation set: a mark can
|
|
12
|
+
* point at a thing (`arrow`), enclose it (`box`, `circle`, `bracket`),
|
|
13
|
+
* emphasize a line of text (`underline`, `highlight`), or say it is wrong
|
|
14
|
+
* (`strike-through`, `crossed-off`) — all of which are real things people
|
|
15
|
+
* mean when they mark up a page to ask about it.
|
|
16
|
+
*
|
|
17
|
+
* `highlight` is safe here (it is not on the agent's pen) because a visitor
|
|
18
|
+
* mark is anchored to the widget's OWN placeholder, never to a customer
|
|
19
|
+
* element — the one type that writes `position`/`z-index` onto its target
|
|
20
|
+
* can only ever write them onto ours.
|
|
21
|
+
*/
|
|
22
|
+
export declare const MARK_SHAPES: readonly ["box", "circle", "arrow", "bracket", "underline", "highlight", "strike-through", "crossed-off"];
|
|
23
|
+
export type MarkShape = (typeof MARK_SHAPES)[number];
|
|
24
|
+
/**
|
|
25
|
+
* Serialized as `clientContext.page_marks` on the send payload — every field
|
|
26
|
+
* must be JSON-safe. The ink handle stays in the Widget-scoped page-mark
|
|
27
|
+
* provider and the pill thumbnail's base64 in a WeakMap, never in the
|
|
28
|
+
* payload; only the uploaded snapshot's URL rides along.
|
|
29
|
+
*/
|
|
30
|
+
export type PageMark = {
|
|
31
|
+
/** The shape the visitor chose (boxed it / circled it / struck it out). */
|
|
32
|
+
shape: MarkShape;
|
|
33
|
+
/** The visitor's note, when they wrote one. */
|
|
34
|
+
note?: string;
|
|
35
|
+
/** Page URL at mark time. */
|
|
36
|
+
pageUrl: string;
|
|
37
|
+
/** Viewport bounding box of the marked region. */
|
|
38
|
+
rect: Rect;
|
|
39
|
+
/** Elements inside the region (deduped, focus element first, capped). */
|
|
40
|
+
elements: MarkedElement[];
|
|
41
|
+
/**
|
|
42
|
+
* The region's pixels as a message file, once the thumbnail's upload lands
|
|
43
|
+
* (`mark-thumbnail.ts` writes it onto the very object the composer holds,
|
|
44
|
+
* so the send carries it and reloads show the image, not the tag names).
|
|
45
|
+
* Absent when the capture or upload failed — surfaces fall back to text.
|
|
46
|
+
*/
|
|
47
|
+
snapshotUrl?: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* One marked element as the BACKEND has understood it since the element
|
|
51
|
+
* picker: an entry of `clientContext.picked_elements`.
|
|
52
|
+
*/
|
|
53
|
+
export type PickedElement = MarkedElement & {
|
|
54
|
+
/** The note written on the mark this element came from, if any. */
|
|
55
|
+
note?: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The marks' elements under the key the backend actually reads and KEEPS.
|
|
59
|
+
* `page_marks` is the richer payload (shape, note, region) but it is only
|
|
60
|
+
* rendered into the current turn's client-context block; what the backend
|
|
61
|
+
* re-surfaces on later turns — and what customer-facing surfaces read back —
|
|
62
|
+
* is `picked_elements`. So both ride along: the marks for this turn's
|
|
63
|
+
* reasoning, the flat elements for everything that outlives it.
|
|
64
|
+
*
|
|
65
|
+
* Deduped across marks (two marks on the same control are one element), and
|
|
66
|
+
* the visitor's note travels on the element it was placed on, so a follow-up
|
|
67
|
+
* turn still knows what was asked, not just what was clicked.
|
|
68
|
+
*/
|
|
69
|
+
export declare function pickedElementsFromMarks(marks: PageMark[]): PickedElement[];
|
|
70
|
+
/** A region can never be resized smaller than this, per side. */
|
|
71
|
+
export declare const MIN_REGION_SIZE_PX = 20;
|
|
72
|
+
/**
|
|
73
|
+
* Post-`show()` dressing for notation's sibling-inserted SVGs: mark them
|
|
74
|
+
* widget-owned (no mark may ever target the widget's own ink) and keep the
|
|
75
|
+
* stroke legible over any host page — the faint white drop-shadow is what
|
|
76
|
+
* saves a near-black theme color on a dark page.
|
|
77
|
+
*/
|
|
78
|
+
export declare function adoptNotationInk(target: Element, zIndex: number): void;
|
|
79
|
+
export type MarkInk = {
|
|
80
|
+
/**
|
|
81
|
+
* Re-anchor the mark to a new PAGE rect (live move/resize). Notation
|
|
82
|
+
* redraws with the mark's stable seed — same hand, new place.
|
|
83
|
+
*/
|
|
84
|
+
setRect(pageRect: Rect): void;
|
|
85
|
+
/** Switch the mark shape in place. */
|
|
86
|
+
setShape(shape: MarkShape): void;
|
|
87
|
+
/** Reverse-plays the mark off the page, then releases it. */
|
|
88
|
+
undraw(): void;
|
|
89
|
+
/** Immediate teardown. */
|
|
90
|
+
remove(): void;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Ink a region as a hand-drawn mark, anchored to a widget-owned PLACEHOLDER
|
|
94
|
+
* positioned at the region's page coordinates. Notation needs a target
|
|
95
|
+
* element and a bare region has none — the placeholder gives it one without
|
|
96
|
+
* touching a single node of the customer's DOM, and because it lives in page
|
|
97
|
+
* coordinates the mark scrolls with the content for free.
|
|
98
|
+
*
|
|
99
|
+
* Never throws: a mark is decoration, and a draw failure must not break the
|
|
100
|
+
* composer.
|
|
101
|
+
*/
|
|
102
|
+
export declare function createMarkInk(pageRect: Rect, shape: MarkShape, color: string, zIndex: number): MarkInk;
|
|
103
|
+
//# sourceMappingURL=page-mark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-mark.d.ts","sourceRoot":"","sources":["../../../src/page-marks/page-mark.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG1D;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,2GASd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,2EAA2E;IAC3E,KAAK,EAAE,SAAS,CAAC;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,IAAI,EAAE,IAAI,CAAC;IACX,yEAAyE;IACzE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG;IAC1C,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CA2B1E;AAED,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAIrC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAU/D;AAED,MAAM,MAAM,OAAO,GAAG;IACpB;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC,6DAA6D;IAC7D,MAAM,IAAI,IAAI,CAAC;IACf,0BAA0B;IAC1B,MAAM,IAAI,IAAI,CAAC;CAChB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CA2ET"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The snapshot taken for a mark, once it lands. Keyed by the mark OBJECT, so
|
|
3
|
+
* the composer pill and the sent bubble — which carries the same reference —
|
|
4
|
+
* resolve the very same capture. Null until (or unless) it settles; every
|
|
5
|
+
* caller has a text form to fall back on.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useMarkThumbnail(mark: object | undefined): string | null;
|
|
8
|
+
//# sourceMappingURL=useMarkThumbnail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMarkThumbnail.d.ts","sourceRoot":"","sources":["../../../src/page-marks/useMarkThumbnail.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAgBxE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Rect } from './page-element';
|
|
2
|
+
import { MarkShape, PageMark } from './page-mark';
|
|
3
|
+
/** The live, editable mark — everything the overlay renders. */
|
|
4
|
+
export type MarkDraft = {
|
|
5
|
+
/** Viewport rect (state-driven; the ink mirrors it in page coords). */
|
|
6
|
+
rect: Rect;
|
|
7
|
+
shape: MarkShape;
|
|
8
|
+
};
|
|
9
|
+
/** The element under the cursor while armed and nothing is placed yet. */
|
|
10
|
+
export type MarkHover = {
|
|
11
|
+
rect: Rect;
|
|
12
|
+
/** Changes per hovered ELEMENT — the overlay keys the frame on it. */
|
|
13
|
+
key: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The composer's page-marking tool: while armed, a hover frame tracks the
|
|
17
|
+
* element under the cursor and a CLICK lands a box mark snapped around it.
|
|
18
|
+
* The mark is then an editable object — drag inside to move, drag a corner to
|
|
19
|
+
* resize, switch shapes, type a note — and the cursor says which of those the
|
|
20
|
+
* pointer is currently on. Clicking somewhere else re-places the mark there
|
|
21
|
+
* (pointing at a different thing is the common case, not an accident); Enter
|
|
22
|
+
* attaches it; Esc drops it, and Esc again disarms.
|
|
23
|
+
*
|
|
24
|
+
* All pointer listeners are capture-phase on the HOST document (the widget's
|
|
25
|
+
* React code runs in the host realm), widget-owned nodes are exempt so the
|
|
26
|
+
* editor card stays usable, and the complete pointer/click sequence is
|
|
27
|
+
* swallowed so marking a button never activates it.
|
|
28
|
+
*/
|
|
29
|
+
export declare function usePageMarking({ enabled, onAttach, uploadSnapshot, accentColor, zIndex, }: {
|
|
30
|
+
/** Whether this composer currently exposes page marking. */
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
/** Notification only — the provider owns the mark either way. */
|
|
33
|
+
onAttach?: (mark: PageMark) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Uploads a mark's thumbnail as a message file and resolves its URL (null
|
|
36
|
+
* on failure). Without it, marks are sent text-only after a reload.
|
|
37
|
+
*/
|
|
38
|
+
uploadSnapshot?: (file: File) => Promise<string | null>;
|
|
39
|
+
accentColor: string;
|
|
40
|
+
/** Host-page ink layer, normally resolved from the configured widget z-index. */
|
|
41
|
+
zIndex: number;
|
|
42
|
+
}): {
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
draft: MarkDraft | null;
|
|
45
|
+
hover: MarkHover | null;
|
|
46
|
+
setShape: (shape: MarkShape) => void;
|
|
47
|
+
attach: (note: string) => void;
|
|
48
|
+
/** Esc-equivalent for the editor card's discard affordance. */
|
|
49
|
+
dropDraft: () => void;
|
|
50
|
+
disarm: () => void;
|
|
51
|
+
toggle: () => void;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=usePageMarking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageMarking.d.ts","sourceRoot":"","sources":["../../../src/page-marks/usePageMarking.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,IAAI,EACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AAuBrB,gEAAgE;AAChE,MAAM,MAAM,SAAS,GAAG;IACtB,uEAAuE;IACvE,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAQF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACR,cAAc,EACd,WAAW,EACX,MAAM,GACP,EAAE;IACD,4DAA4D;IAC5D,OAAO,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;CAChB;;;;sBA8BsC,SAAS;mBAoSrC,MAAM;IA2Cb,+DAA+D;;;;EAKlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatCanvas.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatCanvas.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,wBAAgB,UAAU,6BA8BzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatFooter.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooter.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoE1B,wBAAgB,UAAU,sBA2CzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatFooterItems.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooterItems.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"ChatFooterItems.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatFooterItems.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,eAAe,sBA4B9B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The stock composer — white card, multi-line textarea, attach + send.
|
|
4
|
+
* Exported so companion's quick-ask state renders the exact same composer
|
|
5
|
+
* (not a bespoke bar), inheriting every customization automatically.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ChatInput({ trailingActions, placeholder, hideAttachTools, }?: {
|
|
8
|
+
/**
|
|
9
|
+
* Extra controls rendered in the composer's action row, just before the
|
|
10
|
+
* send button. Companion uses it to slot a conversation-history button into
|
|
11
|
+
* the quick-ask bar; popover mode passes nothing.
|
|
12
|
+
*/
|
|
13
|
+
trailingActions?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Override the composer placeholder. Companion's quick-ask bar uses it to
|
|
16
|
+
* read "Follow up…" while continuing an open conversation. Defaults to the
|
|
17
|
+
* localized "Write a message…".
|
|
18
|
+
*/
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Hide the attach + page-mark buttons. Companion's docked quick-ask
|
|
22
|
+
* bar sets it so the resting composer carries ONLY the history control —
|
|
23
|
+
* the full tool row lives in the expanded chat panel.
|
|
24
|
+
*/
|
|
25
|
+
hideAttachTools?: boolean;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatInput.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAuD,MAAM,OAAO,CAAC;AA+C5E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,eAAe,EACf,WAAW,EACX,eAAe,GAChB,GAAE;IACD;;;;OAIG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CACtB,qBAipBL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMain.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatMain.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAqC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMain.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/ChatMain.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAa1D,wBAAgB,QAAQ,sBAkEvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DictationStatus } from '@opencx/widget-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Composer microphone toggle, mirroring the attach button. States:
|
|
5
|
+
* idle → quiet mic glyph
|
|
6
|
+
* connecting → spinning arc around the mic
|
|
7
|
+
* listening → the mic crossfades into live voice bars that move as you talk
|
|
8
|
+
*/
|
|
9
|
+
export declare function DictationMicButton({ status, levelRef, onToggle, onPrewarm, }: {
|
|
10
|
+
status: DictationStatus;
|
|
11
|
+
levelRef: {
|
|
12
|
+
current: number;
|
|
13
|
+
};
|
|
14
|
+
onToggle: () => void;
|
|
15
|
+
/** Hover/focus pre-mints the session token so the click starts instantly. */
|
|
16
|
+
onPrewarm: () => void;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=DictationMicButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictationMicButton.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/DictationMicButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,KAA4B,MAAM,OAAO,CAAC;AA2DjD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE;IACD,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,6EAA6E;IAC7E,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,qBA6CA"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The greeting shown at the top of a fresh conversation.
|
|
4
|
+
* `advancedInitialMessages` wins over the plain `initialMessages` strings;
|
|
5
|
+
* with neither configured, a default greeting shows. Renders nothing once the
|
|
6
|
+
* conversation has real messages.
|
|
7
|
+
*/
|
|
8
|
+
export declare function InitialMessages(): React.JSX.Element | null;
|
|
3
9
|
//# sourceMappingURL=InitialMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitialMessages.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/InitialMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"InitialMessages.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/InitialMessages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;GAKG;AACH,wBAAgB,eAAe,6BAyC9B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WidgetMention } from '@opencx/widget-core';
|
|
2
|
+
import { default as React, RefObject } from 'react';
|
|
3
|
+
import { MentionGroup } from './useMentions';
|
|
4
|
+
/**
|
|
5
|
+
* The @-mention menu, sitting right above the `@` it belongs to (its start
|
|
6
|
+
* edge on the `@`, its bottom edge on that line): results grouped by type under a small header, one line
|
|
7
|
+
* per item (icon + title), a "See N more" row where a group is cut, and —
|
|
8
|
+
* when `mentions.preview` is on and the frame is wide enough — the
|
|
9
|
+
* highlighted item's description in a card beside the menu. Keyboard-driven
|
|
10
|
+
* from the textarea (the hook handles ↑/↓/Enter/Tab/Escape there, so focus
|
|
11
|
+
* never leaves the text); the mouse hovers to highlight and clicks to pick.
|
|
12
|
+
*
|
|
13
|
+
* Portaled to the frame's themed root and positioned against the composer:
|
|
14
|
+
* the composer sits inside a footer that clips its overflow, so a menu that
|
|
15
|
+
* grew upward in place was cut off at the footer's top edge. The root (not
|
|
16
|
+
* the body) is the host because it carries the palette variables the menu's
|
|
17
|
+
* colors resolve from — outside it `bg-background` paints nothing. The
|
|
18
|
+
* composer changes height as pills and files come and go, so the placement
|
|
19
|
+
* follows the anchor's size, not just the result list.
|
|
20
|
+
*/
|
|
21
|
+
export declare function MentionPicker({ anchorRef, inputRef, anchorIndex, preview, groups, visible, searching, highlighted, onHighlight, onPick, onExpand, }: {
|
|
22
|
+
/** The composer root the menu sits above. */
|
|
23
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
24
|
+
/** The textarea holding the `@`; the menu's start edge lines up with it. */
|
|
25
|
+
inputRef: RefObject<HTMLTextAreaElement | null>;
|
|
26
|
+
/** Index of that `@` in the text. */
|
|
27
|
+
anchorIndex: number | null;
|
|
28
|
+
/** Show the highlighted item's description beside the menu. */
|
|
29
|
+
preview: boolean;
|
|
30
|
+
groups: MentionGroup[];
|
|
31
|
+
/** The rows top to bottom; `highlighted` indexes into it. */
|
|
32
|
+
visible: WidgetMention[];
|
|
33
|
+
searching: boolean;
|
|
34
|
+
highlighted: number;
|
|
35
|
+
onHighlight: (index: number) => void;
|
|
36
|
+
onPick: (item: WidgetMention) => void;
|
|
37
|
+
onExpand: (type: string) => void;
|
|
38
|
+
}): React.ReactPortal | null;
|
|
39
|
+
//# sourceMappingURL=MentionPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MentionPicker.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/MentionPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAUlD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,EACN,OAAO,EACP,SAAS,EACT,WAAW,EACX,WAAW,EACX,MAAM,EACN,QAAQ,GACT,EAAE;IACD,6CAA6C;IAC7C,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,4EAA4E;IAC5E,QAAQ,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAChD,qCAAqC;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,6DAA6D;IAC7D,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,4BA8IA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WidgetMention } from '@opencx/widget-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Text with its `@Title` mentions highlighted in place — the composer's
|
|
5
|
+
* mirror layer and the sent bubble both read the same way, so a mention
|
|
6
|
+
* looks like one thing from typing to transcript. Longer titles are matched
|
|
7
|
+
* first so `@Ann` never claims the front of `@Anna Lee`. Text without
|
|
8
|
+
* mentions comes back as-is.
|
|
9
|
+
*/
|
|
10
|
+
export declare function MentionText({ text, mentions, tokenClassName, }: {
|
|
11
|
+
text: string;
|
|
12
|
+
mentions: readonly WidgetMention[] | undefined;
|
|
13
|
+
/** The token's look on this surface (ink on the composer, on primary in the bubble). */
|
|
14
|
+
tokenClassName: string;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=MentionText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MentionText.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/MentionText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACf,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;IAC/C,wFAAwF;IACxF,cAAc,EAAE,MAAM,CAAC;CACxB,qBAmCA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WidgetMessageU } from '@opencx/widget-core';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Renders grouped transcript messages — the rule shared by the bot-chat and
|
|
5
|
+
* agent-chat lists. Bot (AI) groups carry the configured bot identity
|
|
6
|
+
* (server-resolved agent branding wins); human-agent groups prefer the
|
|
7
|
+
* server-provided sender, patched by the `humanAgent` config override.
|
|
8
|
+
*/
|
|
9
|
+
export declare function MessageGroups({ groups }: {
|
|
10
|
+
groups: WidgetMessageU[][];
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=MessageGroups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageGroups.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/MessageGroups.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,cAAc,EAAE,EAAE,CAAA;CAAE,qBAuDvE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FileWithProgress } from '@opencx/widget-react-headless';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare const MAX_FILE_BYTES: number;
|
|
4
|
+
export declare const BASE_FILE_ACCEPT: {
|
|
5
|
+
'application/pdf': string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const HANDED_OFF_FILE_ACCEPT: {
|
|
8
|
+
'application/pdf': string[];
|
|
9
|
+
'text/*': string[];
|
|
10
|
+
'image/*': string[];
|
|
11
|
+
};
|
|
12
|
+
export declare const AI_FILE_ACCEPT: {
|
|
13
|
+
'application/pdf': string[];
|
|
14
|
+
'image/png': string[];
|
|
15
|
+
'image/jpeg': string[];
|
|
16
|
+
'image/gif': string[];
|
|
17
|
+
'image/webp': string[];
|
|
18
|
+
};
|
|
19
|
+
export declare function UploadPreview({ file: { status, file, error }, onCancel, }: {
|
|
20
|
+
file: FileWithProgress;
|
|
21
|
+
onCancel: () => void;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=UploadPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/screens/chat/UploadPreview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAWtE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,eAAO,MAAM,cAAc,QAAmB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;CAIX,CAAC;AAEnB,eAAO,MAAM,sBAAsB;;;;CAIjB,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;CAMT,CAAC;AA8CnB,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAC7B,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,qBAyDA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-input-clarification.spec.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/__tests__/chat-input-clarification.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatInput.spec.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/__tests__/chatInput.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mentions.spec.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/__tests__/use-mentions.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSentTextRecall.spec.d.ts","sourceRoot":"","sources":["../../../../../src/screens/chat/__tests__/useSentTextRecall.spec.tsx"],"names":[],"mappings":""}
|