@copilotkit/vue 2.0.0-rc.1 → 2.0.0-rc.2
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/PARITY.md +13 -12
- package/README.md +1 -2
- package/dist/components/copilot-provider/CopilotKit.vue.d.ts +3 -1
- package/dist/components/copilot-provider/CopilotKit.vue.d.ts.map +1 -1
- package/dist/index.cjs +43 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10170 -7506
- package/dist/index.mjs.map +1 -1
- package/dist/v2/components/A2UIMessageRenderer.d.ts +7 -0
- package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
- package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts +11 -2
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +136 -0
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -0
- package/dist/v2/components/chat/BasicMarkdown.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChat.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts +3 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts +16 -0
- package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatAttachmentQueue.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAttachmentRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAudioRecorder.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +22 -0
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +69 -16
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts +12 -0
- package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts +22 -0
- package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts +20 -0
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatSuggestionPill.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatSuggestionView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToggleButton.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts +32 -0
- package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatToolCallItem.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts +11 -1
- package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatUserMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts +5 -0
- package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeaderTitle.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupWelcomeScreen.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarWelcomeScreen.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/index.d.ts +17 -0
- package/dist/v2/components/chat/index.d.ts.map +1 -1
- package/dist/v2/components/chat/inspector-shortcuts.d.ts +12 -0
- package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -0
- package/dist/v2/components/chat/message-feedback.d.ts +89 -0
- package/dist/v2/components/chat/message-feedback.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-capture.d.ts +39 -0
- package/dist/v2/components/chat/tool-call-capture.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-display-context.d.ts +39 -0
- package/dist/v2/components/chat/tool-call-display-context.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-group-parts.d.ts +144 -0
- package/dist/v2/components/chat/tool-call-group-parts.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-layout.d.ts +115 -0
- package/dist/v2/components/chat/tool-call-layout.d.ts.map +1 -0
- package/dist/v2/components/chat/turn-work.d.ts +35 -0
- package/dist/v2/components/chat/turn-work.d.ts.map +1 -0
- package/dist/v2/components/chat/types.d.ts +104 -4
- package/dist/v2/components/chat/types.d.ts.map +1 -1
- package/dist/v2/components/chat/use-lightbox.d.ts +18 -0
- package/dist/v2/components/chat/use-lightbox.d.ts.map +1 -0
- package/dist/v2/components/icons/index.d.ts +1 -1
- package/dist/v2/components/icons/index.d.ts.map +1 -1
- package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts +55 -0
- package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/CopilotPopover.vue.d.ts +40 -0
- package/dist/v2/components/ui/CopilotPopover.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/CopilotTooltip.vue.d.ts +37 -0
- package/dist/v2/components/ui/CopilotTooltip.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/dropdown-menu.d.ts +14 -0
- package/dist/v2/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/v2/components/ui/floating.d.ts +84 -0
- package/dist/v2/components/ui/floating.d.ts.map +1 -0
- package/dist/v2/components/ui/presence.d.ts +9 -0
- package/dist/v2/components/ui/presence.d.ts.map +1 -0
- package/dist/v2/components/ui/use-id.d.ts +9 -0
- package/dist/v2/components/ui/use-id.d.ts.map +1 -0
- package/dist/v2/hooks/use-default-render-tool.d.ts +6 -0
- package/dist/v2/hooks/use-default-render-tool.d.ts.map +1 -1
- package/dist/v2/hooks/use-render-tool.d.ts +4 -0
- package/dist/v2/hooks/use-render-tool.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +3 -0
- package/dist/v2/index.d.mts +3 -0
- package/dist/v2/index.d.ts +3 -0
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.mjs +165 -162
- package/dist/v2/lib/message-feedback.d.ts +33 -0
- package/dist/v2/lib/message-feedback.d.ts.map +1 -0
- package/dist/v2/providers/CopilotChatConfigurationProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.types.d.ts +56 -1
- package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts +5 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/index.d.ts +1 -1
- package/dist/v2/providers/index.d.ts.map +1 -1
- package/dist/v2/providers/keys.d.ts +8 -0
- package/dist/v2/providers/keys.d.ts.map +1 -1
- package/dist/v2/providers/types.d.ts +9 -0
- package/dist/v2/providers/types.d.ts.map +1 -1
- package/dist/v2/styles/CopilotKitStyles.d.ts +18 -0
- package/dist/v2/styles/CopilotKitStyles.d.ts.map +1 -0
- package/dist/v2/types/defineToolCallRenderer.d.ts +2 -0
- package/dist/v2/types/defineToolCallRenderer.d.ts.map +1 -1
- package/dist/v2/types/vue-tool-call-renderer.d.ts +7 -0
- package/dist/v2/types/vue-tool-call-renderer.d.ts.map +1 -1
- package/package.json +11 -23
- package/src/components/copilot-provider/CopilotKit.vue +4 -1
- package/src/v2/__tests__/exports.test.ts +4 -2
- package/src/v2/components/A2UIMessageRenderer.ts +55 -67
- package/src/v2/components/A2UISurfaceActivityRenderer.vue +11 -23
- package/src/v2/components/__tests__/A2UIBasicCatalogColors.test.ts +8 -9
- package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +63 -36
- package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +14 -257
- package/src/v2/components/a2ui/A2UIRecoveryStates.ts +444 -0
- package/src/v2/components/a2ui/__tests__/A2UIRecoveryStates.test.ts +175 -0
- package/src/v2/components/chat/BasicMarkdown.vue +8 -6
- package/src/v2/components/chat/CopilotChat.vue +7 -0
- package/src/v2/components/chat/CopilotChatAssistantMessage.vue +267 -67
- package/src/v2/components/chat/CopilotChatAssistantToolbarButton.vue +46 -0
- package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +141 -168
- package/src/v2/components/chat/CopilotChatAttachmentRenderer.vue +67 -18
- package/src/v2/components/chat/CopilotChatAudioRecorder.vue +2 -2
- package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +240 -0
- package/src/v2/components/chat/CopilotChatInput.vue +210 -161
- package/src/v2/components/chat/CopilotChatInspectorButton.vue +331 -0
- package/src/v2/components/chat/CopilotChatLightbox.vue +105 -0
- package/src/v2/components/chat/CopilotChatMessageView.vue +261 -18
- package/src/v2/components/chat/CopilotChatReasoningMessage.vue +21 -22
- package/src/v2/components/chat/CopilotChatSuggestionPill.vue +5 -14
- package/src/v2/components/chat/CopilotChatSuggestionView.vue +1 -4
- package/src/v2/components/chat/CopilotChatToggleButton.vue +3 -9
- package/src/v2/components/chat/CopilotChatToggleButtonCloseIcon.ts +1 -1
- package/src/v2/components/chat/CopilotChatToggleButtonOpenIcon.ts +1 -1
- package/src/v2/components/chat/CopilotChatToolCallGroup.vue +330 -0
- package/src/v2/components/chat/CopilotChatToolCallItem.vue +21 -11
- package/src/v2/components/chat/CopilotChatToolCallsView.vue +192 -21
- package/src/v2/components/chat/CopilotChatUserMessage.vue +105 -42
- package/src/v2/components/chat/CopilotChatView.vue +33 -38
- package/src/v2/components/chat/CopilotChatWorkSummary.vue +85 -0
- package/src/v2/components/chat/CopilotModalHeader.vue +10 -8
- package/src/v2/components/chat/CopilotModalHeaderCloseButton.ts +7 -6
- package/src/v2/components/chat/CopilotModalHeaderTitle.ts +1 -4
- package/src/v2/components/chat/CopilotPopup.vue +3 -0
- package/src/v2/components/chat/CopilotPopupView.vue +1 -0
- package/src/v2/components/chat/CopilotPopupViewInternal.vue +9 -19
- package/src/v2/components/chat/CopilotPopupWelcomeScreen.vue +5 -8
- package/src/v2/components/chat/CopilotSidebar.vue +5 -0
- package/src/v2/components/chat/CopilotSidebarView.vue +2 -0
- package/src/v2/components/chat/CopilotSidebarViewInternal.vue +24 -17
- package/src/v2/components/chat/CopilotSidebarWelcomeScreen.vue +7 -10
- package/src/v2/components/chat/StreamingMarkdownDefault.vue +3 -5
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.inspector.test.ts +269 -0
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +760 -0
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.slots.e2e.test.ts +3 -5
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.test.ts +2 -2
- package/src/v2/components/chat/__tests__/CopilotChatInput.addMenu.test.ts +328 -0
- package/src/v2/components/chat/__tests__/CopilotChatInput.slots.e2e.test.ts +6 -3
- package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +22 -13
- package/src/v2/components/chat/__tests__/CopilotChatLightbox.test.ts +160 -0
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.toolCallDisplay.test.ts +735 -0
- package/src/v2/components/chat/__tests__/CopilotChatSuggestionPill.test.ts +1 -1
- package/src/v2/components/chat/__tests__/CopilotChatSuggestionView.slots.e2e.test.ts +3 -1
- package/src/v2/components/chat/__tests__/CopilotChatToolCallsView.learning.test.ts +75 -0
- package/src/v2/components/chat/__tests__/CopilotChatUserMessage.attachments.test.ts +143 -0
- package/src/v2/components/chat/__tests__/CopilotChatView.inputOverlay.test.ts +5 -4
- package/src/v2/components/chat/__tests__/CopilotChatView.rootWidth.test.ts +7 -33
- package/src/v2/components/chat/__tests__/CopilotModalHeader.slots.e2e.test.ts +1 -1
- package/src/v2/components/chat/__tests__/CopilotPopupView.slots.e2e.test.ts +3 -3
- package/src/v2/components/chat/__tests__/CopilotSidebarView.position.test.ts +126 -0
- package/src/v2/components/chat/__tests__/messageFeedbackDefaults.test.ts +33 -0
- package/src/v2/components/chat/__tests__/modalChatDisplayProps.test.ts +44 -0
- package/src/v2/components/chat/index.ts +2 -0
- package/src/v2/components/chat/inspector-shortcuts.ts +34 -0
- package/src/v2/components/chat/message-feedback.ts +291 -0
- package/src/v2/components/chat/tool-call-capture.ts +55 -0
- package/src/v2/components/chat/tool-call-display-context.ts +49 -0
- package/src/v2/components/chat/tool-call-group-parts.ts +292 -0
- package/src/v2/components/chat/tool-call-layout.ts +304 -0
- package/src/v2/components/chat/turn-work.ts +61 -0
- package/src/v2/components/chat/types.ts +113 -3
- package/src/v2/components/chat/use-lightbox.ts +64 -0
- package/src/v2/components/icons/index.ts +4 -0
- package/src/v2/components/ui/CopilotDropdownMenuContent.vue +465 -0
- package/src/v2/components/ui/CopilotPopover.vue +138 -0
- package/src/v2/components/ui/CopilotTooltip.vue +237 -0
- package/src/v2/components/ui/__tests__/CopilotTooltip.test.ts +168 -0
- package/src/v2/components/ui/dropdown-menu.ts +15 -0
- package/src/v2/components/ui/floating.ts +321 -0
- package/src/v2/components/ui/presence.ts +54 -0
- package/src/v2/components/ui/use-id.ts +16 -0
- package/src/v2/hooks/use-default-render-tool.ts +123 -62
- package/src/v2/hooks/use-render-tool.ts +8 -0
- package/src/v2/index.ts +3 -0
- package/src/v2/lib/__tests__/message-feedback.test.ts +152 -0
- package/src/v2/lib/message-feedback.ts +120 -0
- package/src/v2/providers/CopilotChatConfigurationProvider.vue +29 -2
- package/src/v2/providers/CopilotKitProvider.types.ts +57 -0
- package/src/v2/providers/CopilotKitProvider.vue +125 -3
- package/src/v2/providers/__tests__/CopilotChatConfigurationProvider.openThread.test.ts +69 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.learning.test.ts +534 -0
- package/src/v2/providers/index.ts +4 -1
- package/src/v2/providers/keys.ts +12 -0
- package/src/v2/providers/types.ts +11 -0
- package/src/v2/styles/CopilotKitStyles.ts +95 -0
- package/src/v2/styles/__tests__/CopilotKitStyles.client.test.ts +149 -0
- package/src/v2/styles/__tests__/CopilotKitStyles.ssr.test.ts +71 -0
- package/src/v2/types/defineToolCallRenderer.ts +4 -0
- package/src/v2/types/vue-tool-call-renderer.ts +7 -0
- package/vite.config.ts +2 -1
- package/dist/styles.css +0 -2
- package/scripts/scope-preflight.mjs +0 -100
- package/src/styles/globals.css +0 -233
package/src/styles/globals.css
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss" prefix(cpk);
|
|
2
|
-
@plugin "@tailwindcss/typography";
|
|
3
|
-
@source "../**/*.{ts,tsx,vue}";
|
|
4
|
-
|
|
5
|
-
@import "tw-animate-css";
|
|
6
|
-
|
|
7
|
-
@custom-variant dark (&:is(.dark *));
|
|
8
|
-
|
|
9
|
-
[data-copilotkit] {
|
|
10
|
-
--background: oklch(1 0 0);
|
|
11
|
-
--foreground: oklch(0.145 0 0);
|
|
12
|
-
--card: oklch(1 0 0);
|
|
13
|
-
--card-foreground: oklch(0.145 0 0);
|
|
14
|
-
--popover: oklch(1 0 0);
|
|
15
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
16
|
-
--primary: oklch(0.205 0 0);
|
|
17
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
18
|
-
--secondary: oklch(0.97 0 0);
|
|
19
|
-
--secondary-foreground: oklch(0.205 0 0);
|
|
20
|
-
--muted: oklch(0.97 0 0);
|
|
21
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
22
|
-
--accent: oklch(0.97 0 0);
|
|
23
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
24
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
25
|
-
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
26
|
-
--border: oklch(0.922 0 0);
|
|
27
|
-
--input: oklch(0.922 0 0);
|
|
28
|
-
--ring: oklch(0.708 0 0);
|
|
29
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
30
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
31
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
32
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
33
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
34
|
-
--radius: 0.625rem;
|
|
35
|
-
--sidebar: oklch(0.985 0 0);
|
|
36
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
37
|
-
--sidebar-primary: oklch(0.205 0 0);
|
|
38
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
39
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
40
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
41
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
42
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.dark [data-copilotkit],
|
|
46
|
-
[data-copilotkit].dark {
|
|
47
|
-
--background: oklch(0.145 0 0);
|
|
48
|
-
--foreground: oklch(0.985 0 0);
|
|
49
|
-
--card: oklch(0.145 0 0);
|
|
50
|
-
--card-foreground: oklch(0.985 0 0);
|
|
51
|
-
--popover: oklch(0.145 0 0);
|
|
52
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
53
|
-
--primary: oklch(0.985 0 0);
|
|
54
|
-
--primary-foreground: oklch(0.205 0 0);
|
|
55
|
-
--secondary: oklch(0.269 0 0);
|
|
56
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
57
|
-
--muted: oklch(0.269 0 0);
|
|
58
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
59
|
-
--accent: oklch(0.269 0 0);
|
|
60
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
61
|
-
--destructive: oklch(0.396 0.141 25.723);
|
|
62
|
-
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
63
|
-
--border: oklch(0.269 0 0);
|
|
64
|
-
--input: oklch(0.269 0 0);
|
|
65
|
-
--ring: oklch(0.556 0 0);
|
|
66
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
67
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
68
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
69
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
70
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
71
|
-
--sidebar: oklch(0.205 0 0);
|
|
72
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
73
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
74
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
75
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
76
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
77
|
-
--sidebar-border: oklch(0.269 0 0);
|
|
78
|
-
--sidebar-ring: oklch(0.439 0 0);
|
|
79
|
-
|
|
80
|
-
/* A2UI basic catalog from @copilotkit/vue; light values are its fallbacks. */
|
|
81
|
-
--a2ui-color-surface: var(--card);
|
|
82
|
-
/* rgb(64, 64, 64), the Angular stylesheet's dark A2UI border; --border is too faint on --card. */
|
|
83
|
-
--a2ui-color-border: oklch(0.371 0 0);
|
|
84
|
-
--a2ui-color-muted: var(--muted-foreground);
|
|
85
|
-
--a2ui-color-error: #f87171;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@theme inline {
|
|
89
|
-
--color-background: var(--background);
|
|
90
|
-
--color-foreground: var(--foreground);
|
|
91
|
-
--color-card: var(--card);
|
|
92
|
-
--color-card-foreground: var(--card-foreground);
|
|
93
|
-
--color-popover: var(--popover);
|
|
94
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
95
|
-
--color-primary: var(--primary);
|
|
96
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
97
|
-
--color-secondary: var(--secondary);
|
|
98
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
99
|
-
--color-muted: var(--muted);
|
|
100
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
101
|
-
--color-accent: var(--accent);
|
|
102
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
103
|
-
--color-destructive: var(--destructive);
|
|
104
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
105
|
-
--color-border: var(--border);
|
|
106
|
-
--color-input: var(--input);
|
|
107
|
-
--color-ring: var(--ring);
|
|
108
|
-
--color-chart-1: var(--chart-1);
|
|
109
|
-
--color-chart-2: var(--chart-2);
|
|
110
|
-
--color-chart-3: var(--chart-3);
|
|
111
|
-
--color-chart-4: var(--chart-4);
|
|
112
|
-
--color-chart-5: var(--chart-5);
|
|
113
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
114
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
115
|
-
--radius-lg: var(--radius);
|
|
116
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
117
|
-
--color-sidebar: var(--sidebar);
|
|
118
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
119
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
120
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
121
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
122
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
123
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
124
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@theme {
|
|
128
|
-
--animate-pulse-cursor: pulse-cursor 0.9s cubic-bezier(0.4, 0, 0.2, 1)
|
|
129
|
-
infinite;
|
|
130
|
-
@keyframes pulse-cursor {
|
|
131
|
-
0%,
|
|
132
|
-
100% {
|
|
133
|
-
transform: scale(1);
|
|
134
|
-
opacity: 1;
|
|
135
|
-
}
|
|
136
|
-
50% {
|
|
137
|
-
transform: scale(1.5);
|
|
138
|
-
opacity: 0.8;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@layer base {
|
|
144
|
-
* {
|
|
145
|
-
@apply cpk:border-border cpk:outline-ring/50;
|
|
146
|
-
}
|
|
147
|
-
/* Apply foreground/background on CopilotKit roots (replaces body rule) */
|
|
148
|
-
[data-copilotkit] {
|
|
149
|
-
color: var(--foreground);
|
|
150
|
-
background-color: var(--background);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* CopilotChat's root is an inline-size container (`cpk:@container`), so its
|
|
154
|
-
content contributes no width. As a flex item in a row, its auto width
|
|
155
|
-
collapsed to a narrow column. Fill the container instead. This sits in the
|
|
156
|
-
base layer so a width the app sets (utility class, stylesheet, inline
|
|
157
|
-
style) still wins. Same rule as React (PE-788). */
|
|
158
|
-
.copilotKitChat[data-copilotkit] {
|
|
159
|
-
width: 100%;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* Mobile viewport support */
|
|
163
|
-
@supports (height: 100dvh) {
|
|
164
|
-
[data-copilot-sidebar] {
|
|
165
|
-
height: 100dvh;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* Responsive sidebar width */
|
|
170
|
-
@media (min-width: 768px) {
|
|
171
|
-
[data-copilot-sidebar] {
|
|
172
|
-
width: var(--sidebar-width, 480px) !important;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/* Mobile optimizations */
|
|
177
|
-
@media (max-width: 767px) {
|
|
178
|
-
[data-copilot-sidebar] {
|
|
179
|
-
width: 100% !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/* Improve touch scrolling on iOS */
|
|
183
|
-
[data-copilot-sidebar] {
|
|
184
|
-
-webkit-overflow-scrolling: touch;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/* Better scrolling performance */
|
|
188
|
-
[data-sidebar-chat] {
|
|
189
|
-
touch-action: pan-y;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
[data-copilotkit] .prose input[type="checkbox"] {
|
|
195
|
-
appearance: none;
|
|
196
|
-
background-color: #fff;
|
|
197
|
-
background-origin: border-box;
|
|
198
|
-
border-color: #9b9b9b;
|
|
199
|
-
border-width: 1px;
|
|
200
|
-
color: #004f99;
|
|
201
|
-
display: inline-block;
|
|
202
|
-
flex-shrink: 0;
|
|
203
|
-
height: 1rem;
|
|
204
|
-
padding: 0;
|
|
205
|
-
-webkit-print-color-adjust: exact;
|
|
206
|
-
print-color-adjust: exact;
|
|
207
|
-
-webkit-user-select: none;
|
|
208
|
-
user-select: none;
|
|
209
|
-
vertical-align: middle;
|
|
210
|
-
width: 1rem;
|
|
211
|
-
border-radius: 2px;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
[data-copilotkit] .prose input[type="checkbox"]:checked {
|
|
215
|
-
background-color: #004f99;
|
|
216
|
-
border-color: #004f99;
|
|
217
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
|
|
218
|
-
background-position: center;
|
|
219
|
-
background-repeat: no-repeat;
|
|
220
|
-
background-size: 100% 100%;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.copilot-chat-assistant-markdown .sr-only {
|
|
224
|
-
position: absolute;
|
|
225
|
-
width: 1px;
|
|
226
|
-
height: 1px;
|
|
227
|
-
padding: 0;
|
|
228
|
-
margin: -1px;
|
|
229
|
-
overflow: hidden;
|
|
230
|
-
clip: rect(0, 0, 0, 0);
|
|
231
|
-
white-space: nowrap;
|
|
232
|
-
border: 0;
|
|
233
|
-
}
|