@rolder/kit 3.0.0-alpha.1 → 3.0.0-alpha.3

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.
@@ -1,5 +1,5 @@
1
- export * from './types';
2
- export * from './useChatMessage';
1
+ export type { ConversationProps } from './types';
2
+ export { useChatMessage } from './useChatMessage';
3
3
  export declare const Conversation: {
4
4
  Root: ({ children, loading, streaming, empty, ...props }: import("./types").ConversationProps) => import("react/jsx-runtime").JSX.Element;
5
5
  Message: <T extends import("ai").UIMessage>({ message }: {
@@ -3,8 +3,7 @@ import { File } from "./File.js";
3
3
  import { Loader } from "./Loader.js";
4
4
  import { Message } from "./Message.js";
5
5
  import { Root } from "./Root.js";
6
- export * from "./types.js";
7
- export * from "./useChatMessage.js";
6
+ import { useChatMessage } from "./useChatMessage.js";
8
7
  const Conversation = {
9
8
  Root: Root,
10
9
  Message: Message,
@@ -12,4 +11,4 @@ const Conversation = {
12
11
  Loader: Loader,
13
12
  Empty: Empty
14
13
  };
15
- export { Conversation };
14
+ export { Conversation, useChatMessage };
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- import { parseAiMessagePart } from "../../utils/index.js";
2
+ import { parseAiMessagePart } from "../../utils/parseAiMessagePart.js";
3
3
  const useChatMessage = (part)=>{
4
4
  const [parsedText, setParsedText] = useState('');
5
5
  useEffect(()=>{
@@ -1,4 +1,4 @@
1
- export * from './types';
1
+ export type { Accept, PromptInputProps } from './types';
2
2
  export declare const PromptInput: {
3
3
  Root: ({ className, onSubmit, submiting, uploading, accept, ...props }: import("@mantine/core").PaperProps & import("./types").PromptInputProps) => import("react/jsx-runtime").JSX.Element;
4
4
  Textarea: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,6 @@ import { Footer } from "./Footer.js";
3
3
  import { Root } from "./Root.js";
4
4
  import { Submit } from "./Submit.js";
5
5
  import { Textarea } from "./Textarea.js";
6
- export * from "./types.js";
7
6
  const PromptInput = {
8
7
  Root: Root,
9
8
  Textarea: Textarea,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export * from './ai';
1
+ export { Conversation, type ConversationProps, useChatMessage, } from './ai/ui/conversation';
2
+ export { type Accept, PromptInput, type PromptInputProps, } from './ai/ui/promptInput';
3
+ export { convertFileUIPartBlobToDataURL } from './ai/utils/convertFileUIPartBlobToDataURL';
4
+ export { parseAiMessagePart } from './ai/utils/parseAiMessagePart';
2
5
  export * from './app';
3
6
  export * from './functions';
4
7
  export * from './hooks';
package/dist/index.js CHANGED
@@ -1,6 +1,10 @@
1
- export * from "./ai/index.js";
1
+ import { Conversation, useChatMessage } from "./ai/ui/conversation/index.js";
2
+ import { PromptInput } from "./ai/ui/promptInput/index.js";
3
+ import { convertFileUIPartBlobToDataURL } from "./ai/utils/convertFileUIPartBlobToDataURL.js";
4
+ import { parseAiMessagePart } from "./ai/utils/parseAiMessagePart.js";
2
5
  export * from "./app/index.js";
3
6
  export * from "./functions/index.js";
4
7
  export * from "./hooks/index.js";
5
8
  export * from "./surreal/index.js";
6
9
  export * from "./ui/index.js";
10
+ export { Conversation, PromptInput, convertFileUIPartBlobToDataURL, parseAiMessagePart, useChatMessage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolder/kit",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +0,0 @@
1
- export * from './ui';
2
- export * from './utils';
package/dist/ai/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./ui/index.js";
2
- export * from "./utils/index.js";
@@ -1,2 +0,0 @@
1
- export * from './conversation';
2
- export * from './promptInput';
@@ -1,2 +0,0 @@
1
- export * from "./conversation/index.js";
2
- export * from "./promptInput/index.js";
@@ -1,2 +0,0 @@
1
- export * from './convertFileUIPartBlobToDataURL';
2
- export * from './parseAiMessagePart';
@@ -1,2 +0,0 @@
1
- export * from "./convertFileUIPartBlobToDataURL.js";
2
- export * from "./parseAiMessagePart.js";