@copilotkit/react-ui 1.69.0 → 1.69.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/dist/index.cjs CHANGED
@@ -2240,6 +2240,19 @@ function Suggestions({ suggestions, onSuggestionClick, isLoading }) {
2240
2240
 
2241
2241
  //#endregion
2242
2242
  //#region src/components/chat/Chat.tsx
2243
+ /**
2244
+ * @deprecated The v1 SDK is deprecated. Use v2 instead. Use `CopilotChat` from `@copilotkit/react-core/v2` instead.
2245
+ *
2246
+ * ```tsx
2247
+ * import { CopilotChat } from "@copilotkit/react-core/v2";
2248
+ * import "@copilotkit/react-core/v2/styles.css";
2249
+ *
2250
+ * function App() {
2251
+ * return <CopilotChat agentId="my-agent" />;
2252
+ * }
2253
+ * ```
2254
+ * See https://docs.copilotkit.ai/reference/v2/components/CopilotChat
2255
+ */
2243
2256
  function CopilotChat({ instructions, suggestions = "auto", onSubmitMessage, makeSystemMessage, disableSystemMessage, onInProgress, onStopGeneration, onReloadMessages, onRegenerate, onCopy, onThumbsUp, onThumbsDown, markdownTagRenderers, Messages: Messages$2 = Messages, RenderMessage: RenderMessage$1 = RenderMessage, RenderSuggestionsList = Suggestions, Input: Input$2 = Input, className, icons, labels, AssistantMessage: AssistantMessage$2 = AssistantMessage, UserMessage: UserMessage$2 = UserMessage, ImageRenderer: ImageRenderer$1 = ImageRenderer, ErrorMessage, imageUploadsEnabled, inputFileAccept = "image/*", attachments, hideStopButton, observabilityHooks, renderError, onError, RenderTextMessage, RenderActionExecutionMessage, RenderAgentStateMessage, RenderResultMessage, RenderImageMessage }) {
2244
2257
  const { additionalInstructions, setChatInstructions, copilotApiConfig, setBannerError, setInternalErrorHandler, removeInternalErrorHandler } = (0, _copilotkit_react_core.useCopilotContext)();
2245
2258
  const { publicApiKey, chatApiEndpoint } = copilotApiConfig;
@@ -2891,6 +2904,23 @@ function CopilotSidebar({ fullHeightChildren = false, ...props }) {
2891
2904
  * The hook registers the configuration with the chat context upon component mount and
2892
2905
  * removes it on unmount, ensuring a clean and efficient lifecycle management.
2893
2906
  */
2907
+ /**
2908
+ * @deprecated The v1 SDK is deprecated. Use v2 instead. Use `useConfigureSuggestions` from `@copilotkit/react-core/v2` instead.
2909
+ *
2910
+ * ```tsx
2911
+ * import { useConfigureSuggestions } from "@copilotkit/react-core/v2";
2912
+ *
2913
+ * function Suggestions() {
2914
+ * useConfigureSuggestions({
2915
+ * suggestions: [
2916
+ * { title: "Help", message: "Help me get started" },
2917
+ * ],
2918
+ * });
2919
+ * return null;
2920
+ * }
2921
+ * ```
2922
+ * See https://docs.copilotkit.ai/reference/v2/hooks/useConfigureSuggestions
2923
+ */
2894
2924
  function useCopilotChatSuggestions(config, dependencies = []) {
2895
2925
  (0, _copilotkit_react_core.useCopilotChatSuggestions)(config, dependencies);
2896
2926
  }