mtxuilib 0.6.6 → 0.6.7

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { AIMessage, HumanMessage } from "@langchain/core/messages";
2
+ function swapRoles(messages) {
3
+ return messages.map((m) => m instanceof AIMessage
4
+ ? new HumanMessage({ content: m.content })
5
+ : new AIMessage({ content: m.content }));
6
+ }
@@ -10,16 +10,16 @@ export declare const schemaField: z.ZodObject<{
10
10
  description: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  name?: string;
13
- description?: string;
14
13
  type?: string;
14
+ description?: string;
15
15
  defaultValue?: any;
16
16
  label?: string;
17
17
  placeholder?: string;
18
18
  valueType?: "string" | "number" | "date" | "email";
19
19
  }, {
20
20
  name?: string;
21
- description?: string;
22
21
  type?: string;
22
+ description?: string;
23
23
  defaultValue?: any;
24
24
  label?: string;
25
25
  placeholder?: string;
@@ -39,16 +39,16 @@ export declare const schemaFormSchema: z.ZodObject<{
39
39
  description: z.ZodOptional<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  name?: string;
42
- description?: string;
43
42
  type?: string;
43
+ description?: string;
44
44
  defaultValue?: any;
45
45
  label?: string;
46
46
  placeholder?: string;
47
47
  valueType?: "string" | "number" | "date" | "email";
48
48
  }, {
49
49
  name?: string;
50
- description?: string;
51
50
  type?: string;
51
+ description?: string;
52
52
  defaultValue?: any;
53
53
  label?: string;
54
54
  placeholder?: string;
@@ -62,8 +62,8 @@ export declare const schemaFormSchema: z.ZodObject<{
62
62
  action?: string;
63
63
  fields?: {
64
64
  name?: string;
65
- description?: string;
66
65
  type?: string;
66
+ description?: string;
67
67
  defaultValue?: any;
68
68
  label?: string;
69
69
  placeholder?: string;
@@ -77,8 +77,8 @@ export declare const schemaFormSchema: z.ZodObject<{
77
77
  action?: string;
78
78
  fields?: {
79
79
  name?: string;
80
- description?: string;
81
80
  type?: string;
81
+ description?: string;
82
82
  defaultValue?: any;
83
83
  label?: string;
84
84
  placeholder?: string;
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export declare const CRAWL_FETCH_TYPE: readonly ["fetch", "puppeteer"];
3
+ declare const fetchTypeSchema: z.ZodEnum<["fetch", "puppeteer"]>;
4
+ export type FETCHTYPE = z.infer<typeof fetchTypeSchema>;
5
+ export declare function getFetcher(fetchType: FETCHTYPE): typeof fetch;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export const CRAWL_FETCH_TYPE = ["fetch", "puppeteer"];
3
+ const fetchTypeSchema = z.enum(CRAWL_FETCH_TYPE);
4
+ export function getFetcher(fetchType) {
5
+ const fetcher = fetch;
6
+ if (fetchType === "puppeteer") {
7
+ }
8
+ return fetcher;
9
+ }
@@ -28,4 +28,4 @@ declare function IconShare({ className, ...props }: React.ComponentProps<"svg">)
28
28
  declare function IconUsers({ className, ...props }: React.ComponentProps<"svg">): import("react/jsx-runtime").JSX.Element;
29
29
  declare function IconExternalLink({ className, ...props }: React.ComponentProps<"svg">): import("react/jsx-runtime").JSX.Element;
30
30
  declare function IconChevronUpDown({ className, ...props }: React.ComponentProps<"svg">): import("react/jsx-runtime").JSX.Element;
31
- export { IconEdit, IconNextChat, IconOpenAI, IconVercel, IconGitHub, IconSeparator, IconArrowDown, IconArrowRight, IconUser, IconPlus, IconArrowElbow, IconSpinner, IconMessage, IconTrash, IconRefresh, IconStop, IconSidebar, IconMoon, IconSun, IconCopy, IconCheck, IconDownload, IconClose, IconShare, IconUsers, IconExternalLink, IconChevronUpDown, };
31
+ export { IconArrowDown, IconArrowElbow, IconArrowRight, IconCheck, IconChevronUpDown, IconClose, IconCopy, IconDownload, IconEdit, IconExternalLink, IconGitHub, IconMessage, IconMoon, IconNextChat, IconOpenAI, IconPlus, IconRefresh, IconSeparator, IconShare, IconSidebar, IconSpinner, IconStop, IconSun, IconTrash, IconUser, IconUsers, IconVercel, };
@@ -84,4 +84,4 @@ function IconExternalLink({ className, ...props }) {
84
84
  function IconChevronUpDown({ className, ...props }) {
85
85
  return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", className: cn("size-4", className), viewBox: "0 0 256 256", ...props, children: _jsx("path", { d: "M181.66 170.34a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32 0l-48-48a8 8 0 0 1 11.32-11.32L128 212.69l42.34-42.35a8 8 0 0 1 11.32 0Zm-96-84.68L128 43.31l42.34 42.35a8 8 0 0 0 11.32-11.32l-48-48a8 8 0 0 0-11.32 0l-48 48a8 8 0 0 0 11.32 11.32Z" }) }));
86
86
  }
87
- export { IconEdit, IconNextChat, IconOpenAI, IconVercel, IconGitHub, IconSeparator, IconArrowDown, IconArrowRight, IconUser, IconPlus, IconArrowElbow, IconSpinner, IconMessage, IconTrash, IconRefresh, IconStop, IconSidebar, IconMoon, IconSun, IconCopy, IconCheck, IconDownload, IconClose, IconShare, IconUsers, IconExternalLink, IconChevronUpDown, };
87
+ export { IconArrowDown, IconArrowElbow, IconArrowRight, IconCheck, IconChevronUpDown, IconClose, IconCopy, IconDownload, IconEdit, IconExternalLink, IconGitHub, IconMessage, IconMoon, IconNextChat, IconOpenAI, IconPlus, IconRefresh, IconSeparator, IconShare, IconSidebar, IconSpinner, IconStop, IconSun, IconTrash, IconUser, IconUsers, IconVercel, };
@@ -24,7 +24,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
24
24
  ref?: React.Ref<HTMLInputElement>;
25
25
  } & {
26
26
  asChild?: boolean;
27
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
27
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
28
28
  value?: string;
29
29
  onValueChange?: (search: string) => void;
30
30
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -50,7 +50,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
50
50
  ref?: React.Ref<HTMLDivElement>;
51
51
  } & {
52
52
  asChild?: boolean;
53
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
53
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
54
54
  heading?: React.ReactNode;
55
55
  value?: string;
56
56
  forceMount?: boolean;
@@ -68,7 +68,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
68
68
  ref?: React.Ref<HTMLDivElement>;
69
69
  } & {
70
70
  asChild?: boolean;
71
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
71
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "onSelect" | "disabled"> & {
72
72
  disabled?: boolean;
73
73
  onSelect?: (value: string) => void;
74
74
  value?: string;
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from "react-resizable-panels";
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLTextAreaElement | HTMLTitleElement | HTMLButtonElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLSelectElement | HTMLLinkElement | HTMLTableElement | HTMLMapElement | HTMLStyleElement | HTMLSlotElement | HTMLImageElement | HTMLDialogElement | HTMLFormElement | HTMLOptionElement | HTMLTimeElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLSpanElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLTextAreaElement | HTMLTitleElement | HTMLButtonElement | HTMLDivElement | HTMLObjectElement | HTMLMapElement | HTMLDataElement | HTMLSelectElement | HTMLLinkElement | HTMLTableElement | HTMLStyleElement | HTMLSlotElement | HTMLImageElement | HTMLDialogElement | HTMLFormElement | HTMLOptionElement | HTMLTimeElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLSpanElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -31,13 +31,13 @@ export declare const mutationCreateOutSchema: z.ZodObject<{
31
31
  description: z.ZodOptional<z.ZodString>;
32
32
  message: z.ZodOptional<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- description?: string;
35
34
  code?: string;
36
35
  message?: string;
37
- }, {
38
36
  description?: string;
37
+ }, {
39
38
  code?: string;
40
39
  message?: string;
40
+ description?: string;
41
41
  }>;
42
42
  export declare const env: z.SafeParseReturnType<{
43
43
  DATABASE_URL?: string;
@@ -59,13 +59,13 @@ export declare const ogImageSchema: z.ZodObject<{
59
59
  mode: z.ZodDefault<z.ZodEnum<["light", "dark"]>>;
60
60
  bountyPrice: z.ZodString;
61
61
  }, "strip", z.ZodTypeAny, {
62
- mode?: "dark" | "light";
63
62
  type?: string;
63
+ mode?: "dark" | "light";
64
64
  heading?: string;
65
65
  bountyPrice?: string;
66
66
  }, {
67
- mode?: "dark" | "light";
68
67
  type?: string;
68
+ mode?: "dark" | "light";
69
69
  heading?: string;
70
70
  bountyPrice?: string;
71
71
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.6.6",
4
+ "version": "0.6.7",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },