@rolder/kit 3.0.0-alpha.59 → 3.0.0-alpha.60

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.
@@ -3,7 +3,6 @@ import { Stack, Text } from "@mantine/core";
3
3
  import { useIsEmpty } from "./store/index.js";
4
4
  const Empty = ()=>{
5
5
  const isEmpty = useIsEmpty();
6
- console.log('Empty render', isEmpty);
7
6
  return isEmpty ? /*#__PURE__*/ jsxs(Stack, {
8
7
  align: "center",
9
8
  gap: 0,
@@ -5,7 +5,6 @@ import { useChatMessagePart } from "./store/index.js";
5
5
  const File = ({ messageId })=>{
6
6
  const part = useChatMessagePart(messageId, 'file');
7
7
  const textFileType = messageId.split('-')[1];
8
- console.log('File render', part);
9
8
  const FileComponent = ()=>{
10
9
  switch(textFileType){
11
10
  case 'excel':
@@ -4,7 +4,6 @@ import { useIsLoading, useIsStreaming } from "./store/index.js";
4
4
  const Loader_Loader = (props)=>{
5
5
  const isLoading = useIsLoading();
6
6
  const isStreaming = useIsStreaming();
7
- console.log('Loader render', isLoading);
8
7
  return isLoading && !isStreaming ? /*#__PURE__*/ jsx(Loader, {
9
8
  size: 28,
10
9
  type: "dots",
@@ -6,7 +6,6 @@ import { getIsStreaming, useChatMessage, useChatMessagePart } from "./store/inde
6
6
  const Message = /*#__PURE__*/ memo(({ messageId })=>{
7
7
  const message = useChatMessage(messageId);
8
8
  const part = useChatMessagePart(messageId, 'text');
9
- console.log('Message render', messageId);
10
9
  return part ? /*#__PURE__*/ jsx(Paper, {
11
10
  radius: "md",
12
11
  px: "md",
@@ -3,7 +3,6 @@ import { Stack } from "@mantine/core";
3
3
  import { useChatMessageIds } from "./store/index.js";
4
4
  const Messages = ({ children, ...props })=>{
5
5
  const messageIds = useChatMessageIds();
6
- console.log('Messages render', messageIds);
7
6
  return /*#__PURE__*/ jsx(Stack, {
8
7
  ...props,
9
8
  children: 'function' == typeof children ? messageIds.map((messageId)=>children(messageId)) : null
@@ -6,9 +6,7 @@ const ChatInitializer = ({ chatOptions })=>{
6
6
  useInitChat(chatOptions);
7
7
  return null;
8
8
  };
9
- const Root = ({ children, scrollAreaProps, withScrollButton = true, chatOptions, ...props })=>{
10
- console.log('Root render');
11
- return /*#__PURE__*/ jsxs(Fragment, {
9
+ const Root = ({ children, scrollAreaProps, withScrollButton = true, chatOptions, ...props })=>/*#__PURE__*/ jsxs(Fragment, {
12
10
  children: [
13
11
  /*#__PURE__*/ jsx(ChatInitializer, {
14
12
  chatOptions: chatOptions
@@ -30,5 +28,4 @@ const Root = ({ children, scrollAreaProps, withScrollButton = true, chatOptions,
30
28
  })
31
29
  ]
32
30
  });
33
- };
34
31
  export { Root };
@@ -10,7 +10,6 @@ const File = (props)=>{
10
10
  const isLoading = useIsLoading();
11
11
  const isUploading = useIsUploading();
12
12
  const file = useFile();
13
- console.log('Input File render', file);
14
13
  return /*#__PURE__*/ jsx(FileButton, {
15
14
  resetRef: resetRef,
16
15
  onChange: async (file)=>{
@@ -1,11 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Group } from "@mantine/core";
3
- const Footer = (props)=>{
4
- console.log('Input Footer render');
5
- return /*#__PURE__*/ jsx(Group, {
3
+ const Footer = (props)=>/*#__PURE__*/ jsx(Group, {
6
4
  justify: "space-between",
7
5
  p: "xs",
8
6
  ...props
9
7
  });
10
- };
11
8
  export { Footer };
@@ -13,7 +13,6 @@ const Root = ({ children, className, onSubmit, isUploading, accept, ...props })=
13
13
  isUploading,
14
14
  accept
15
15
  ]);
16
- console.log('Input root render');
17
16
  return /*#__PURE__*/ jsx(Paper, {
18
17
  radius: "md",
19
18
  withBorder: true,
@@ -9,7 +9,6 @@ const Submit = ({ children, ...props })=>{
9
9
  });
10
10
  const isLoading = useIsLoading();
11
11
  const isUploading = useIsUploading();
12
- console.log('Input submit render');
13
12
  return /*#__PURE__*/ jsx(ActionIcon, {
14
13
  "aria-label": "Submit",
15
14
  variant: "light",
@@ -6,7 +6,6 @@ const Textarea_Textarea = (props)=>{
6
6
  const text = useText();
7
7
  const isLoading = useIsLoading();
8
8
  const isUploading = useIsUploading();
9
- console.log('Input textarea render', text);
10
9
  const handleKeyDown = (e)=>{
11
10
  if ('Enter' === e.key) {
12
11
  if (getIsComposing() || e.nativeEvent.isComposing) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolder/kit",
3
- "version": "3.0.0-alpha.59",
3
+ "version": "3.0.0-alpha.60",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {