@copilotkit/vue 2.0.0-rc.19 → 2.0.0-rc.20

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.
Files changed (73) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.mjs +2 -2
  3. package/dist/use-render-activity-message-CsWYyd6r.cjs +91 -0
  4. package/dist/use-render-activity-message-CsWYyd6r.cjs.map +1 -0
  5. package/dist/{use-render-activity-message-g7xEf4ep.js → use-render-activity-message-DntKKNdd.js} +6354 -6747
  6. package/dist/use-render-activity-message-DntKKNdd.js.map +1 -0
  7. package/dist/v2/components/InlineFeatureWarning.vue.d.ts.map +1 -1
  8. package/dist/v2/components/LicenseWarningBanner.vue.d.ts +2 -2
  9. package/dist/v2/components/LicenseWarningBanner.vue.d.ts.map +1 -1
  10. package/dist/v2/components/chat/CopilotChat.vue.d.ts +1 -1
  11. package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
  12. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +1 -1
  13. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -1
  14. package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -1
  15. package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
  16. package/dist/v2/components/chat/CopilotChatUserMessage.vue.d.ts.map +1 -1
  17. package/dist/v2/components/chat/CopilotChatView.vue.d.ts +1 -1
  18. package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -1
  19. package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
  20. package/dist/v2/components/chat/CopilotPopup.vue.d.ts +1 -1
  21. package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +1 -1
  22. package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +1 -1
  23. package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +1 -1
  24. package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +1 -1
  25. package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +1 -1
  26. package/dist/v2/components/chat/index.d.ts +12 -12
  27. package/dist/v2/components/chat/inspector-shortcuts.d.ts +2 -1
  28. package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -1
  29. package/dist/v2/components/chat/message-feedback.d.ts +18 -49
  30. package/dist/v2/components/chat/message-feedback.d.ts.map +1 -1
  31. package/dist/v2/components/chat/normalize-auto-scroll.d.ts +2 -2
  32. package/dist/v2/components/chat/normalize-auto-scroll.d.ts.map +1 -1
  33. package/dist/v2/components/chat/use-copy-feedback.d.ts +11 -0
  34. package/dist/v2/components/chat/use-copy-feedback.d.ts.map +1 -0
  35. package/dist/v2/hooks/use-keyboard-height.d.ts +1 -1
  36. package/dist/v2/hooks/use-keyboard-height.d.ts.map +1 -1
  37. package/dist/v2/hooks/use-pin-to-send.d.ts +4 -12
  38. package/dist/v2/hooks/use-pin-to-send.d.ts.map +1 -1
  39. package/dist/v2/index.cjs +1 -1
  40. package/dist/v2/index.mjs +1 -1
  41. package/dist/v2/lib/is-mobile-viewport.d.ts +1 -14
  42. package/dist/v2/lib/is-mobile-viewport.d.ts.map +1 -1
  43. package/dist/v2/lib/shallow-stable.d.ts.map +1 -1
  44. package/package.json +8 -8
  45. package/src/v2/components/InlineFeatureWarning.vue +20 -21
  46. package/src/v2/components/LicenseWarningBanner.vue +25 -149
  47. package/src/v2/components/__tests__/LicenseWarningBanner.test.ts +48 -8
  48. package/src/v2/components/chat/CopilotChatAssistantMessage.vue +19 -43
  49. package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +2 -2
  50. package/src/v2/components/chat/CopilotChatInspectorButton.vue +45 -108
  51. package/src/v2/components/chat/CopilotChatReasoningMessage.vue +2 -28
  52. package/src/v2/components/chat/CopilotChatUserMessage.vue +24 -112
  53. package/src/v2/components/chat/CopilotChatWorkSummary.vue +23 -59
  54. package/src/v2/components/chat/CopilotModalHeader.vue +11 -23
  55. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +5 -5
  56. package/src/v2/components/chat/inspector-shortcuts.ts +10 -16
  57. package/src/v2/components/chat/message-feedback.ts +62 -197
  58. package/src/v2/components/chat/normalize-auto-scroll.ts +3 -17
  59. package/src/v2/components/chat/use-copy-feedback.ts +21 -0
  60. package/src/v2/hooks/use-keyboard-height.ts +17 -40
  61. package/src/v2/hooks/use-pin-to-send.ts +15 -99
  62. package/src/v2/lib/__tests__/shallow-stable.test.ts +54 -0
  63. package/src/v2/lib/is-mobile-viewport.ts +5 -23
  64. package/src/v2/lib/shallow-stable.ts +2 -16
  65. package/dist/use-render-activity-message-IH90zF01.cjs +0 -92
  66. package/dist/use-render-activity-message-IH90zF01.cjs.map +0 -1
  67. package/dist/use-render-activity-message-g7xEf4ep.js.map +0 -1
  68. package/dist/v2/lib/message-feedback.d.ts +0 -33
  69. package/dist/v2/lib/message-feedback.d.ts.map +0 -1
  70. package/src/v2/components/chat/__tests__/normalize-auto-scroll.test.ts +0 -39
  71. package/src/v2/lib/__tests__/is-mobile-viewport.test.ts +0 -48
  72. package/src/v2/lib/__tests__/message-feedback.test.ts +0 -152
  73. package/src/v2/lib/message-feedback.ts +0 -120
@@ -1 +1 @@
1
- {"version":3,"file":"InlineFeatureWarning.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/InlineFeatureWarning.vue"],"names":[],"mappings":"AAqCA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;AA2DF,wBAMG"}
1
+ {"version":3,"file":"InlineFeatureWarning.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/InlineFeatureWarning.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;AAiDF,wBAMG"}
@@ -1,6 +1,6 @@
1
- type LicenseBannerType = "no_license" | "expired" | "expiring" | "invalid" | "feature_unlicensed";
1
+ import type { ɵLicenseBannerType } from "@copilotkit/core";
2
2
  type __VLS_Props = {
3
- type: LicenseBannerType;
3
+ type: ɵLicenseBannerType;
4
4
  featureName?: string;
5
5
  expiryDate?: string;
6
6
  graceRemaining?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"LicenseWarningBanner.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/LicenseWarningBanner.vue"],"names":[],"mappings":"AAmNA,KAAK,iBAAiB,GAClB,YAAY,GACZ,SAAS,GACT,UAAU,GACV,SAAS,GACT,oBAAoB,CAAC;AAEzB,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,iBAAiB,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;;iBAJc,MAAM;gBACP,MAAM;oBACF,MAAM;eACX,MAAM,IAAI;;AAuN1B,wBAOG"}
1
+ {"version":3,"file":"LicenseWarningBanner.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/LicenseWarningBanner.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;;iBAJc,MAAM;gBACP,MAAM;oBACF,MAAM;eACX,MAAM,IAAI;;AAmG1B,wBAOG"}
@@ -34,7 +34,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotChatProps, {
34
34
  "onInput-change"?: ((value: string) => any) | undefined;
35
35
  }>, {
36
36
  inputMode: import("./types").CopilotChatInputMode;
37
- autoScroll: import("./normalize-auto-scroll.js").AutoScrollMode | boolean;
37
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
38
38
  welcomeScreen: boolean;
39
39
  inputValue: string;
40
40
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AA0kBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAyB7D,OAAO,KAAK,EACV,8CAA8C,EAC9C,mDAAmD,EACnD,mDAAmD,EACnD,0CAA0C,EAC1C,mDAAmD,EACnD,mDAAmD,EACnD,oDAAoD,EACpD,oDAAoD,EACpD,kDAAkD,EAClD,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACpD,CAAC;AAUJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,0CAA0C,KAAK,OAAO,CAAC;IACxE,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2CAA2C,KAAK,OAAO,CAAC;IAC1E,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,8CAA8C,KAClD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,oBAAoB,CAAC,EAAE,CACrB,KAAK,EAAE,oDAAoD,KACxD,OAAO,CAAC;IACb,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,oDAAoD,KACxD,OAAO,CAAC;IACb,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,iDAAiD,KACrD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAosBF,QAAA,MAAM,eAAe;;;;;;;;;;;cArvBN,OAAO,EAAE;eACR,OAAO;oBACF,OAAO;6EA2vB1B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AAijBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CA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xD,OAAO,CAAC;IACb,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,iDAAiD,KACrD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAwqBF,QAAA,MAAM,eAAe;;;;;;;;;;;cAztBN,OAAO,EAAE;eACR,OAAO;oBACF,OAAO;6EA+tB1B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { MessageFeedbackRating } from "../../lib/message-feedback";
1
+ import type { ɵMessageFeedbackRating as MessageFeedbackRating } from "@copilotkit/core";
2
2
  import type { FeedbackComment } from "./message-feedback";
3
3
  import type { CopilotChatAssistantMessageFeedbackCommentSlotProps } from "./types";
4
4
  type __VLS_Props = {
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatFeedbackCommentPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue"],"names":[],"mappings":"AAgQA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,SAAS,CAAC;AAEnF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;CACd,CAAC;AAmTF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CopilotChatFeedbackCommentPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue"],"names":[],"mappings":"AAgQA,OAAO,KAAK,EAAE,sBAAsB,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGxF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,SAAS,CAAC;AAEnF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;CACd,CAAC;AAmTF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatInspectorButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInspectorButton.vue"],"names":[],"mappings":"AAqWA,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAwdF,wBAOG"}
1
+ {"version":3,"file":"CopilotChatInspectorButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInspectorButton.vue"],"names":[],"mappings":"AA2SA,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AA6XF,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatReasoningMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatReasoningMessage.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAO7D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AASJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,OAAO,EAAE,gBAAgB,CAAC;QAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE;YACN,MAAM,EAAE,OAAO,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;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AAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CopilotChatReasoningMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatReasoningMessage.vue"],"names":[],"mappings":"AAgQA,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM7D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AASJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,OAAO,EAAE,gBAAgB,CAAC;QAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE;YACN,MAAM,EAAE,OAAO,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,UAAU,EAAE,OAAO,CAAC;YACpB,WAAW,EAAE,OAAO,CAAC;YACrB,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;SACtB,CAAC;QACF,WAAW,EAAE;YACX,WAAW,EAAE,OAAO,CAAC;YACrB,UAAU,EAAE,OAAO,CAAC;YACpB,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,MAAM,EAAE;YACN,MAAM,EAAE,OAAO,CAAC;YAChB,WAAW,EAAE;gBACX,WAAW,EAAE,OAAO,CAAC;gBACrB,UAAU,EAAE,OAAO,CAAC;gBACpB,OAAO,EAAE,MAAM,CAAC;aACjB,CAAC;SACH,CAAC;KACH,KAAK,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,MAAM,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,OAAO,CAAC;QACpB,WAAW,EAAE,OAAO,CAAC;QACrB,sEAAsE;QACtE,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,KAAK,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QACvB,WAAW,EAAE,OAAO,CAAC;QACrB,UAAU,EAAE,OAAO,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,MAAM,EAAE,OAAO,CAAC;QAChB,WAAW,EAAE;YACX,WAAW,EAAE,OAAO,CAAC;YACrB,UAAU,EAAE,OAAO,CAAC;YACpB,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,KAAK,OAAO,CAAC;CACf,CAAC;AAuPF,QAAA,MAAM,eAAe;cAnTN,OAAO,EAAE;eACR,OAAO;6EAyTrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatUserMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatUserMessage.vue"],"names":[],"mappings":"AAoYA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAkB/C,OAAO,KAAK,EACV,+CAA+C,EAC/C,yCAAyC,EACzC,yCAAyC,EACzC,qCAAqC,EACrC,8CAA8C,EAC9C,wCAAwC,EACxC,2CAA2C,EAC3C,sCAAsC,EACvC,MAAM,SAAS,CAAC;AAEjB,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,wCAAwC,KAAK,IAAI,CAAC;IAC5E,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,2CAA2C,KACjD,IAAI,CAAC;CACX,CAAC;AASJ,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,8CAA8C,KAClD,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,sCAAsC,KAAK,OAAO,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IAC9E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IAC9E,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,+CAA+C,KACnD,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,qCAAqC,KAAK,OAAO,CAAC;IACnE,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;CACjC,CAAC;AA+bF,QAAA,MAAM,eAAe;;;;;;;iBA1dH,MAAM;sBACD,MAAM;6EAie3B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CopilotChatUserMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatUserMessage.vue"],"names":[],"mappings":"AA4SA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAmB/C,OAAO,KAAK,EACV,+CAA+C,EAC/C,yCAAyC,EACzC,yCAAyC,EACz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adingIndexes: ReadonlyArray<number>;
97
97
  inputMode: CopilotChatInputMode;
98
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
98
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
99
99
  welcomeScreen: boolean;
100
100
  inputValue: string;
101
101
  inputToolsMenu: (ToolsMenuItem | "-")[];
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatWorkSummary.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatWorkSummary.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAI/D,KAAK,WAAW,GAAG,IAAI,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC;;AAiKpE,wBAMG"}
1
+ {"version":3,"file":"CopilotChatWorkSummary.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatWorkSummary.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAI/D,KAAK,WAAW,GAAG,IAAI,CAAC,+BAA+B,EAAE,SAAS,CAAC,CAAC;;AAgHpE,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotModalHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeader.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EACV,sCAAsC,EACtC,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAOjB,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,sCAAsC,KAAK,OAAO,CAAC;IAC5E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;CAChE,CAAC;AAkMF,QAAA,MAAM,eAAe,0TAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CopilotModalHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeader.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EACV,sCAAsC,EACtC,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAOjB,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,sCAAsC,KAAK,OAAO,CAAC;IAC5E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;CAChE,CAAC;AAsLF,QAAA,MAAM,eAAe,0TAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -37,7 +37,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotPopupProps,
37
37
  width: number | string;
38
38
  height: number | string;
39
39
  inputMode: import("./types").CopilotChatInputMode;
40
- autoScroll: import("./normalize-auto-scroll.js").AutoScrollMode | boolean;
40
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
41
41
  welcomeScreen: boolean;
42
42
  inputValue: string;
43
43
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -39,7 +39,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotPopupViewPro
39
39
  suggestions: import("@copilotkit/core").Suggestion[];
40
40
  suggestionLoadingIndexes: ReadonlyArray<number>;
41
41
  inputMode: import("./types").CopilotChatInputMode;
42
- autoScroll: import("./normalize-auto-scroll.js").AutoScrollMode | boolean;
42
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
43
43
  welcomeScreen: boolean;
44
44
  inputValue: string;
45
45
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -40,7 +40,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
40
40
  suggestions: import("@copilotkit/core").Suggestion[];
41
41
  suggestionLoadingIndexes: ReadonlyArray<number>;
42
42
  inputMode: import("./types").CopilotChatInputMode;
43
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
43
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
44
44
  welcomeScreen: boolean;
45
45
  inputValue: string;
46
46
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -37,7 +37,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarProps
37
37
  width: number | string;
38
38
  position: "left" | "right";
39
39
  inputMode: import("./types").CopilotChatInputMode;
40
- autoScroll: import("./normalize-auto-scroll.js").AutoScrollMode | boolean;
40
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
41
41
  welcomeScreen: boolean;
42
42
  inputValue: string;
43
43
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -48,7 +48,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarViewP
48
48
  suggestions: import("@copilotkit/core").Suggestion[];
49
49
  suggestionLoadingIndexes: ReadonlyArray<number>;
50
50
  inputMode: import("./types").CopilotChatInputMode;
51
- autoScroll: import("./normalize-auto-scroll.js").AutoScrollMode | boolean;
51
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
52
52
  welcomeScreen: boolean;
53
53
  inputValue: string;
54
54
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -40,7 +40,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
40
40
  suggestions: import("@copilotkit/core").Suggestion[];
41
41
  suggestionLoadingIndexes: ReadonlyArray<number>;
42
42
  inputMode: import("./types").CopilotChatInputMode;
43
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
43
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
44
44
  welcomeScreen: boolean;
45
45
  inputValue: string;
46
46
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -38,7 +38,7 @@ export declare const CopilotChat: {
38
38
  "input-change": (value: string) => any;
39
39
  }, import("vue").PublicProps, {
40
40
  inputMode: import("./types").CopilotChatInputMode;
41
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
41
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
42
42
  welcomeScreen: boolean;
43
43
  inputValue: string;
44
44
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -62,7 +62,7 @@ export declare const CopilotChat: {
62
62
  "onInput-change"?: ((value: string) => any) | undefined;
63
63
  }>, {}, {}, {}, {}, {
64
64
  inputMode: import("./types").CopilotChatInputMode;
65
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
65
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
66
66
  welcomeScreen: boolean;
67
67
  inputValue: string;
68
68
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -92,7 +92,7 @@ export declare const CopilotChat: {
92
92
  "input-change": (value: string) => any;
93
93
  }, string, {
94
94
  inputMode: import("./types").CopilotChatInputMode;
95
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
95
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
96
96
  welcomeScreen: boolean;
97
97
  inputValue: string;
98
98
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -139,7 +139,7 @@ export declare const CopilotChat: {
139
139
  suggestions: import("@copilotkit/core").Suggestion[];
140
140
  suggestionLoadingIndexes: ReadonlyArray<number>;
141
141
  inputMode: import("./types").CopilotChatInputMode;
142
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
142
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
143
143
  welcomeScreen: boolean;
144
144
  inputValue: string;
145
145
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -169,7 +169,7 @@ export declare const CopilotChat: {
169
169
  suggestions: import("@copilotkit/core").Suggestion[];
170
170
  suggestionLoadingIndexes: ReadonlyArray<number>;
171
171
  inputMode: import("./types").CopilotChatInputMode;
172
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
172
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
173
173
  welcomeScreen: boolean;
174
174
  inputValue: string;
175
175
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -205,7 +205,7 @@ export declare const CopilotChat: {
205
205
  suggestions: import("@copilotkit/core").Suggestion[];
206
206
  suggestionLoadingIndexes: ReadonlyArray<number>;
207
207
  inputMode: import("./types").CopilotChatInputMode;
208
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
208
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
209
209
  welcomeScreen: boolean;
210
210
  inputValue: string;
211
211
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -371,7 +371,7 @@ export declare const CopilotPopupView: {
371
371
  suggestions: import("@copilotkit/core").Suggestion[];
372
372
  suggestionLoadingIndexes: ReadonlyArray<number>;
373
373
  inputMode: import("./types").CopilotChatInputMode;
374
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
374
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
375
375
  welcomeScreen: boolean;
376
376
  inputValue: string;
377
377
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -403,7 +403,7 @@ export declare const CopilotPopupView: {
403
403
  suggestions: import("@copilotkit/core").Suggestion[];
404
404
  suggestionLoadingIndexes: ReadonlyArray<number>;
405
405
  inputMode: import("./types").CopilotChatInputMode;
406
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
406
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
407
407
  welcomeScreen: boolean;
408
408
  inputValue: string;
409
409
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -441,7 +441,7 @@ export declare const CopilotPopupView: {
441
441
  suggestions: import("@copilotkit/core").Suggestion[];
442
442
  suggestionLoadingIndexes: ReadonlyArray<number>;
443
443
  inputMode: import("./types").CopilotChatInputMode;
444
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
444
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
445
445
  welcomeScreen: boolean;
446
446
  inputValue: string;
447
447
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -560,7 +560,7 @@ export declare const CopilotSidebarView: {
560
560
  suggestions: import("@copilotkit/core").Suggestion[];
561
561
  suggestionLoadingIndexes: ReadonlyArray<number>;
562
562
  inputMode: import("./types").CopilotChatInputMode;
563
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
563
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
564
564
  welcomeScreen: boolean;
565
565
  inputValue: string;
566
566
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -591,7 +591,7 @@ export declare const CopilotSidebarView: {
591
591
  suggestions: import("@copilotkit/core").Suggestion[];
592
592
  suggestionLoadingIndexes: ReadonlyArray<number>;
593
593
  inputMode: import("./types").CopilotChatInputMode;
594
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
594
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
595
595
  welcomeScreen: boolean;
596
596
  inputValue: string;
597
597
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -628,7 +628,7 @@ export declare const CopilotSidebarView: {
628
628
  suggestions: import("@copilotkit/core").Suggestion[];
629
629
  suggestionLoadingIndexes: ReadonlyArray<number>;
630
630
  inputMode: import("./types").CopilotChatInputMode;
631
- autoScroll: import("./normalize-auto-scroll").AutoScrollMode | boolean;
631
+ autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
632
632
  welcomeScreen: boolean;
633
633
  inputValue: string;
634
634
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
@@ -1,7 +1,8 @@
1
1
  import type { Ref } from "vue";
2
2
  /**
3
3
  * Whether the user hid the Inspector buttons in the message toolbars ("Hide
4
- * this icon"), until the page reloads.
4
+ * this icon"), until the page reloads. Core's `ɵinspectorShortcuts` holds
5
+ * the page-lifetime preference.
5
6
  * @internal
6
7
  */
7
8
  export declare function useInspectorShortcutsHidden(): Readonly<Ref<boolean>>;
@@ -1 +1 @@
1
- {"version":3,"file":"inspector-shortcuts.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/inspector-shortcuts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO/B;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAQpE;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C;AAED,oEAAoE;AACpE,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"}
1
+ {"version":3,"file":"inspector-shortcuts.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/inspector-shortcuts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAOpE;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAED,oEAAoE;AACpE,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C"}
@@ -1,13 +1,12 @@
1
1
  import type { AssistantMessage } from "@ag-ui/core";
2
2
  import type { CopilotKitCore } from "@copilotkit/core";
3
- import type { ComputedRef, InjectionKey, Ref } from "vue";
4
- import type { MessageFeedback, MessageFeedbackRating } from "../../lib/message-feedback";
3
+ import { ɵFeedbackCommentController } from "@copilotkit/core";
4
+ import type { ɵMessageFeedbackControls, ɵMessageFeedbackScope } from "@copilotkit/core";
5
+ import type { ComputedRef, InjectionKey, Ref, ShallowRef, WritableComputedRef } from "vue";
5
6
  /** The chat whose assistant messages collect feedback for Learning. */
6
- export interface MessageFeedbackScope {
7
- readonly copilotkit: CopilotKitCore;
8
- readonly agentId: string;
9
- readonly threadId: string;
10
- }
7
+ export type MessageFeedbackScope = ɵMessageFeedbackScope;
8
+ /** Current feedback for one assistant message, and how to change it. */
9
+ export type MessageFeedbackControls = ɵMessageFeedbackControls;
11
10
  /**
12
11
  * Provided by the message view while Learning is on for this chat. Assistant
13
12
  * messages without it show thumbs only when the app passes its own handlers
@@ -16,73 +15,43 @@ export interface MessageFeedbackScope {
16
15
  */
17
16
  export declare const MessageFeedbackScopeKey: InjectionKey<Ref<MessageFeedbackScope | null>>;
18
17
  /**
19
- * Whether the thumbs record feedback for Learning. True once a Trajectory of
20
- * this Core has started and as long as Learning stays configured, also while
21
- * capture reconnects or is stopped, so the buttons do not flicker. Ratings
22
- * given meanwhile still show but, like any Trajectory event, are not sent.
18
+ * Whether the thumbs record feedback for Learning. See core's
19
+ * `ɵisLearningFeedbackEnabled` for the rules.
23
20
  * @internal
24
21
  */
25
22
  export declare function useLearningFeedbackEnabled(copilotkit: Ref<CopilotKitCore>): ComputedRef<boolean>;
26
- /** Current feedback for one assistant message, and how to change it. */
27
- export interface MessageFeedbackControls {
28
- readonly feedback: MessageFeedback | undefined;
29
- /** Gives `rating`; a different rating than before starts without a comment. */
30
- readonly rate: (rating: MessageFeedbackRating) => void;
31
- /** Removes the rating and its comment. */
32
- readonly clear: () => void;
33
- /** Sets the current rating's comment; an empty one removes it. */
34
- readonly comment: (comment: string) => void;
35
- }
36
23
  /** Feedback controls for `message`, or `null` when this chat collects none. */
37
24
  export declare function useMessageFeedback(message: Ref<AssistantMessage>): ComputedRef<MessageFeedbackControls | null>;
38
- /**
39
- * How long the pointer may be away from the rating and its comment before the
40
- * comment closes: enough to cross the gap between them, short enough that
41
- * passing over a rating does not leave it open.
42
- */
43
- export declare const FEEDBACK_COMMENT_CLOSE_DELAY_MS = 150;
44
25
  /** The comment popover of one rated message: when it shows and what it holds. */
45
26
  export interface FeedbackComment {
46
- readonly open: Ref<boolean>;
27
+ readonly open: ComputedRef<boolean>;
47
28
  /** The comment being edited. */
48
- readonly draft: Ref<string>;
29
+ readonly draft: WritableComputedRef<string>;
49
30
  /** Grows each time the field should take focus: after a keyboard rating. */
50
- readonly focusRequest: Ref<number>;
31
+ readonly focusRequest: ComputedRef<number>;
51
32
  /** Whether a focus request waits; reading it answers the request. */
52
33
  readonly takeFocusRequest: () => boolean;
53
34
  /** The comment field, for moving focus into it. */
54
- readonly input: Ref<HTMLInputElement | null>;
35
+ readonly input: ShallowRef<HTMLInputElement | null>;
55
36
  /** Opens with `comment` in the field. */
56
- readonly show: (options: {
57
- comment: string;
58
- focus: boolean;
59
- }) => void;
37
+ readonly show: ɵFeedbackCommentController["show"];
60
38
  /** The pointer or focus reached the rating or the popover. */
61
- readonly enter: (via?: "pointer" | "focus") => void;
39
+ readonly enter: ɵFeedbackCommentController["enter"];
62
40
  /**
63
41
  * It left them: close soon, unless the user is editing the comment or, when
64
42
  * focus left, the pointer is still on the rating or the popover.
65
43
  */
66
- readonly leave: (via?: "pointer" | "focus") => void;
44
+ readonly leave: ɵFeedbackCommentController["leave"];
67
45
  /** Tracks whether focus is in the comment form. */
68
46
  readonly setEditing: (editing: boolean) => void;
69
47
  /** Closes, saving a changed comment unless `save` is false. */
70
- readonly close: (options?: {
71
- save?: boolean;
72
- }) => void;
48
+ readonly close: ɵFeedbackCommentController["close"];
73
49
  /** Moves focus back to the thumb without opening the comment again. */
74
50
  readonly returnFocus: (target: HTMLElement | null) => void;
75
51
  }
76
52
  /**
77
- * Drives the comment popover of a rated message, as React's
78
- * `useFeedbackComment` does.
79
- *
80
- * It opens when a rating is given and whenever the pointer or keyboard focus
81
- * reaches the chosen thumb, with the saved comment in the field. It closes by
82
- * itself shortly after the pointer leaves the thumb and the popover, unless
83
- * focus is in the field: then it stays until focus moves away, Enter, or
84
- * Escape. Closing saves a changed comment; Escape, a click on a thumb, and
85
- * removing the rating discard it.
53
+ * Drives the comment popover of a rated message with core's
54
+ * `ɵFeedbackCommentController`, which holds the open and close rules.
86
55
  * @internal
87
56
  */
88
57
  export declare function useFeedbackComment(controls: Ref<MessageFeedbackControls | null>): FeedbackComment;
@@ -1 +1 @@
1
- {"version":3,"file":"message-feedback.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/message-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAM1D,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,uEAAuE;AACvE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAChD,GAAG,CAAC,oBAAoB,GAAG,IAAI,CAAC,CACO,CAAC;AAgB1C;;;;;;GAMG;AACH,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AC5D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,GAC5C,eAAe,CA8BjB"}
@@ -1,3 +1,3 @@
1
- export type AutoScrollMode = "pin-to-bottom" | "pin-to-send" | "none";
2
- export declare function normalizeAutoScroll(value: AutoScrollMode | boolean | undefined): AutoScrollMode;
1
+ export { ɵnormalizeAutoScroll as normalizeAutoScroll } from "@copilotkit/core";
2
+ export type { ɵAutoScrollMode as AutoScrollMode } from "@copilotkit/core";
3
3
  //# sourceMappingURL=normalize-auto-scroll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-auto-scroll.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/normalize-auto-scroll.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,aAAa,GAAG,MAAM,CAAC;AAQtE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS,GAC1C,cAAc,CAMhB"}
1
+ {"version":3,"file":"normalize-auto-scroll.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/normalize-auto-scroll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,IAAI,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The "copied" check mark of a copy button, from core's `ɵCopyFeedback`:
3
+ * `copy(text)` writes to the clipboard and shows the check mark for two
4
+ * seconds; a second copy restarts the wait.
5
+ * @internal
6
+ */
7
+ export declare function useCopyFeedback(): {
8
+ copied: Readonly<import("vue").Ref<boolean, boolean>>;
9
+ copy: (text: string) => Promise<boolean>;
10
+ };
11
+ //# sourceMappingURL=use-copy-feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-copy-feedback.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/use-copy-feedback.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,eAAe;;;EAW9B"}
@@ -1,4 +1,4 @@
1
- import { type Ref } from "vue";
1
+ import type { Ref } from "vue";
2
2
  /**
3
3
  * Vue-idiomatic result of {@link useKeyboardHeight}. Fields mirror the React
4
4
  * `KeyboardState` shape (`isKeyboardOpen`, `keyboardHeight`, `availableHeight`,
@@ -1 +1 @@
1
- {"version":3,"file":"use-keyboard-height.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-keyboard-height.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACtC,eAAe,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CAqDjD"}
1
+ {"version":3,"file":"use-keyboard-height.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-keyboard-height.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACtC,eAAe,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,CA4BjD"}
@@ -12,18 +12,10 @@ export interface UsePinToSendOptions {
12
12
  * pinned near the top of the viewport while the assistant streams a
13
13
  * response beneath it.
14
14
  *
15
- * Implementation parity with React:
16
- * - Reads the latest user message via the `LastUserMessageContext`
17
- * equivalent (`LastUserMessageKey` + `Ref<LastUserMessageState>`).
18
- * - On each `sendNonce` increment, sizes the spacer to
19
- * `viewportHeight - bubbleHeight - topOffset` and scrolls so the bubble
20
- * sits `topOffset` from the viewport top (padding above the bubble is
21
- * pushed off-screen).
22
- * - Installs a `ResizeObserver` on `contentRef` that adjusts the spacer in
23
- * both directions as content below the anchored message changes, keeping
24
- * the bubble pinned.
25
- * - Cancels the scheduled `requestAnimationFrame` and disconnects the
26
- * `ResizeObserver` on subsequent re-runs and on scope dispose.
15
+ * Reads the latest user message via `LastUserMessageKey` and, on each
16
+ * `sendNonce` increment, runs core's `ɵpinMessageToTop`, which sizes the
17
+ * spacer, scrolls, and follows the reply's growth. The previous pin stops on
18
+ * the next run and on scope dispose.
27
19
  */
28
20
  export declare function usePinToSend({ scrollRef, contentRef, spacerRef, topOffset, }: UsePinToSendOptions): void;
29
21
  //# sourceMappingURL=use-pin-to-send.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-pin-to-send.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-pin-to-send.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAM/B,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpC,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAc,GACf,EAAE,mBAAmB,GAAG,IAAI,CA4G5B"}
1
+ {"version":3,"file":"use-pin-to-send.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-pin-to-send.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO/B,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpC,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAc,GACf,EAAE,mBAAmB,GAAG,IAAI,CAuC5B"}
package/dist/v2/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@copilotkit/core"),n=require("@ag-ui/client"),e=require("../use-render-activity-message-IH90zF01.cjs"),o=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"CopilotChatDefaultLabels",{enumerable:!0,get:()=>a.CopilotChatDefaultLabels});Object.defineProperty(exports,"extractCompleteStyles",{enumerable:!0,get:()=>a.ɵextractCompleteStyles});Object.defineProperty(exports,"processPartialHtml",{enumerable:!0,get:()=>a.ɵprocessPartialHtml});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>n.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallGroup=e._sfc_main$11;exports.CopilotChatToolCallsView=e._sfc_main$12;exports.CopilotChatUserMessage=e._sfc_main$13;exports.CopilotChatView=e._sfc_main$14;exports.CopilotChatWorkSummary=e._sfc_main$15;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$16;exports.CopilotKitProvider=e._sfc_main$17;exports.CopilotKitStyles=e.CopilotKitStyles;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$18;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$19;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$20;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e._sfc_main$21;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>o.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>o.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>o.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(n).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>n[t]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@copilotkit/core"),n=require("@ag-ui/client"),e=require("../use-render-activity-message-CsWYyd6r.cjs"),o=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"CopilotChatDefaultLabels",{enumerable:!0,get:()=>a.CopilotChatDefaultLabels});Object.defineProperty(exports,"extractCompleteStyles",{enumerable:!0,get:()=>a.ɵextractCompleteStyles});Object.defineProperty(exports,"processPartialHtml",{enumerable:!0,get:()=>a.ɵprocessPartialHtml});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>n.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallGroup=e._sfc_main$11;exports.CopilotChatToolCallsView=e._sfc_main$12;exports.CopilotChatUserMessage=e._sfc_main$13;exports.CopilotChatView=e._sfc_main$14;exports.CopilotChatWorkSummary=e._sfc_main$15;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$16;exports.CopilotKitProvider=e._sfc_main$17;exports.CopilotKitStyles=e.CopilotKitStyles;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$18;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$19;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$20;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e._sfc_main$21;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>o.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>o.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>o.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(n).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>n[t]})});
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/v2/index.mjs CHANGED
@@ -2,7 +2,7 @@ export * from "@copilotkit/core";
2
2
  import { CopilotChatDefaultLabels as s, ɵextractCompleteStyles as n, ɵprocessPartialHtml as o } from "@copilotkit/core";
3
3
  export * from "@ag-ui/client";
4
4
  import { PROTOCOL_VERSION as S } from "@ag-ui/client";
5
- import { A as m, _ as r, a as u, b as l, c as p, d as C, e as b, f as g, g as d, h as v, i as E, i as R, i as I, B as M, j as A, C as T, k as y, l as O, m as x, n as P, o as f, p as U, q as V, r as D, s as F, t as w, u as K, v as L, w as k, x as G, y as B, z as H, D as J, E as N, F as W, G as _, H as j, I as q, J as z, K as Q, L as Y, M as X, N as Z, O as $, P as aa, Q as ea, R as ta, S as sa, T as na, U as oa, V as ia, V as ca, V as Sa, W as ha, W as ma, X as ra, Y as ua, Z as la, $ as pa, a0 as Ca, a1 as ba, a2 as ga, a3 as da, a3 as va, a3 as Ea, T as Ra, C as Ia, a4 as Ma, a5 as Aa, a6 as Ta, a7 as ya, a8 as Oa, a9 as xa, aa as Pa, ab as fa, ac as Ua, ad as Va, ae as Da, af as Fa, ag as wa, ah as Ka, ai as La, aj as ka, ak as Ga, al as Ba, am as Ha, an as Ja, ao as Na, ap as Wa, aq as _a, ar as ja, a4 as qa, as as za, at as Qa, au as Ya, av as Xa, aw as Za, ax as $a, ay as ae, az as ee, aA as te, aB as se, aC as ne, aD as oe, aE as ie, aF as ce, aG as Se, aH as he, aI as me, aJ as re, aK as ue, aL as le, aM as pe, aN as Ce, aO as be, aP as ge, aQ as de, aR as ve, aS as Ee, aT as Re, aU as Ie, aV as Me, aW as Ae, aX as Te, aY as ye, aZ as Oe, a_ as xe, a$ as Pe, b0 as fe, b1 as Ue, b2 as Ve, b3 as De, b4 as Fe, b5 as we, b6 as Ke, b7 as Le, b8 as ke, b9 as Ge, b4 as Be, ba as He, bb as Je, bc as Ne, bd as We, be as _e, bf as je, bg as qe, bh as ze, bi as Qe, bj as Ye, bk as Xe, a5 as Ze, bl as $e, bm as at, bn as et, bn as tt, bn as st, bo as nt, bp as ot, bq as it, br as ct, bs as St, bt as ht, bu as mt, bv as rt, bw as ut, bx as lt, by as pt, bz as Ct, bA as bt, bB as gt, bC as dt, bD as vt, bE as Et, bF as Rt, bG as It, bH as Mt, bI as At, bJ as Tt, bK as yt, bL as Ot, bM as xt, bN as Pt, bO as ft } from "../use-render-activity-message-g7xEf4ep.js";
5
+ import { A as m, _ as r, a as u, b as l, c as p, d as C, e as b, f as g, g as d, h as v, i as E, i as R, i as I, B as M, j as A, C as T, k as y, l as O, m as x, n as P, o as f, p as U, q as V, r as D, s as F, t as w, u as K, v as L, w as k, x as G, y as B, z as H, D as J, E as N, F as W, G as _, H as j, I as q, J as z, K as Q, L as Y, M as X, N as Z, O as $, P as aa, Q as ea, R as ta, S as sa, T as na, U as oa, V as ia, V as ca, V as Sa, W as ha, W as ma, X as ra, Y as ua, Z as la, $ as pa, a0 as Ca, a1 as ba, a2 as ga, a3 as da, a3 as va, a3 as Ea, T as Ra, C as Ia, a4 as Ma, a5 as Aa, a6 as Ta, a7 as ya, a8 as Oa, a9 as xa, aa as Pa, ab as fa, ac as Ua, ad as Va, ae as Da, af as Fa, ag as wa, ah as Ka, ai as La, aj as ka, ak as Ga, al as Ba, am as Ha, an as Ja, ao as Na, ap as Wa, aq as _a, ar as ja, a4 as qa, as as za, at as Qa, au as Ya, av as Xa, aw as Za, ax as $a, ay as ae, az as ee, aA as te, aB as se, aC as ne, aD as oe, aE as ie, aF as ce, aG as Se, aH as he, aI as me, aJ as re, aK as ue, aL as le, aM as pe, aN as Ce, aO as be, aP as ge, aQ as de, aR as ve, aS as Ee, aT as Re, aU as Ie, aV as Me, aW as Ae, aX as Te, aY as ye, aZ as Oe, a_ as xe, a$ as Pe, b0 as fe, b1 as Ue, b2 as Ve, b3 as De, b4 as Fe, b5 as we, b6 as Ke, b7 as Le, b8 as ke, b9 as Ge, b4 as Be, ba as He, bb as Je, bc as Ne, bd as We, be as _e, bf as je, bg as qe, bh as ze, bi as Qe, bj as Ye, bk as Xe, a5 as Ze, bl as $e, bm as at, bn as et, bn as tt, bn as st, bo as nt, bp as ot, bq as it, br as ct, bs as St, bt as ht, bu as mt, bv as rt, bw as ut, bx as lt, by as pt, bz as Ct, bA as bt, bB as gt, bC as dt, bD as vt, bE as Et, bF as Rt, bG as It, bH as Mt, bI as At, bJ as Tt, bK as yt, bL as Ot, bM as xt, bN as Pt, bO as ft } from "../use-render-activity-message-DntKKNdd.js";
6
6
  import { MCPAppsActivityContentSchema as Vt, MCPAppsActivityType as Dt, ɵrunMcpFollowUp as Ft } from "@copilotkit/mcp-apps-renderer/activity";
7
7
  import { createLicenseContextValue as Kt } from "@copilotkit/shared";
8
8
  export {
@@ -1,15 +1,2 @@
1
- /**
2
- * Media query for the mobile breakpoint, shared so the string literal isn't
3
- * duplicated across call sites within this package (e.g. `CopilotModalHeader`,
4
- * which needs a live `matchMedia` change-listener and so can't call
5
- * `isMobileViewport()` directly).
6
- */
7
- export declare const MOBILE_MAX_WIDTH_QUERY = "(max-width: 767px)";
8
- /**
9
- * Reports whether the viewport is in the mobile range (`<768px`), where the
10
- * drawer and chat modal are mutually exclusive. SSR-safe (returns `false`
11
- * when `window` is absent) and guards environments where `window` exists but
12
- * `window.matchMedia` does not (some test runners, embedded webviews).
13
- */
14
- export declare function isMobileViewport(): boolean;
1
+ export { ɵMOBILE_MAX_WIDTH_QUERY as MOBILE_MAX_WIDTH_QUERY, ɵisMobileViewport as isMobileViewport, } from "@copilotkit/core";
15
2
  //# sourceMappingURL=is-mobile-viewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-mobile-viewport.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/is-mobile-viewport.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAQ1C"}
1
+ {"version":3,"file":"is-mobile-viewport.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/is-mobile-viewport.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,IAAI,sBAAsB,EACjD,iBAAiB,IAAI,gBAAgB,GACtC,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shallow-stable.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/shallow-stable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAyBxD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GACzB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAqBzB"}
1
+ {"version":3,"file":"shallow-stable.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/shallow-stable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAUxD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GACzB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAqBzB"}