@chaibuilder/sdk 2.5.0 → 2.5.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/ui.d.ts CHANGED
@@ -105,46 +105,82 @@ export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAt
105
105
 
106
106
  export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
107
107
  children?: React_2.ReactNode;
108
- } & React_2.HTMLAttributes<HTMLDivElement> & {
108
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
109
+ ref?: React_2.Ref<HTMLDivElement>;
110
+ } & {
111
+ asChild?: boolean;
112
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
109
113
  label?: string;
110
114
  shouldFilter?: boolean;
111
- filter?: (value: string, search: string) => number;
115
+ filter?: (value: string, search: string, keywords?: string[]) => number;
116
+ defaultValue?: string;
112
117
  value?: string;
113
118
  onValueChange?: (value: string) => void;
114
119
  loop?: boolean;
120
+ disablePointerSelection?: boolean;
121
+ vimBindings?: boolean;
115
122
  } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
116
123
 
117
124
  export declare const CommandDialog: ({ children, ...props }: DialogProps) => JSX_2.Element;
118
125
 
119
126
  export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
120
127
  children?: React_2.ReactNode;
121
- } & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
128
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
129
+ ref?: React_2.Ref<HTMLDivElement>;
130
+ } & {
131
+ asChild?: boolean;
132
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
122
133
 
123
134
  export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
124
135
  children?: React_2.ReactNode;
125
- } & Omit<React_2.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
136
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
137
+ ref?: React_2.Ref<HTMLDivElement>;
138
+ } & {
139
+ asChild?: boolean;
140
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
126
141
  heading?: React_2.ReactNode;
127
142
  value?: string;
143
+ forceMount?: boolean;
128
144
  } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
129
145
 
130
- export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
146
+ export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>> & {
147
+ ref?: React_2.Ref<HTMLInputElement>;
148
+ } & {
149
+ asChild?: boolean;
150
+ }, "asChild" | "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
131
151
  value?: string;
132
152
  onValueChange?: (search: string) => void;
133
153
  } & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
134
154
 
135
155
  export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
136
156
  children?: React_2.ReactNode;
137
- } & Omit<React_2.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
157
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
158
+ ref?: React_2.Ref<HTMLDivElement>;
159
+ } & {
160
+ asChild?: boolean;
161
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
138
162
  disabled?: boolean;
139
163
  onSelect?: (value: string) => void;
140
164
  value?: string;
165
+ keywords?: string[];
166
+ forceMount?: boolean;
141
167
  } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
142
168
 
143
169
  export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
144
170
  children?: React_2.ReactNode;
145
- } & React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
171
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
172
+ ref?: React_2.Ref<HTMLDivElement>;
173
+ } & {
174
+ asChild?: boolean;
175
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
176
+ label?: string;
177
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
146
178
 
147
- export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement> & {
179
+ export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
180
+ ref?: React_2.Ref<HTMLDivElement>;
181
+ } & {
182
+ asChild?: boolean;
183
+ }, "asChild" | "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
148
184
  alwaysRender?: boolean;
149
185
  } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
150
186
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Suraj Air",
6
6
  "license": "BSD-3-Clause",
7
7
  "homepage": "https://chaibuilder.com",
8
- "version": "2.5.0",
8
+ "version": "2.5.2",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",
@@ -69,38 +69,37 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@ai-sdk/react": "^1.2.2",
73
72
  "@chaibuilder/runtime": "2.2.0",
74
- "@floating-ui/dom": "1.6.13",
75
- "@floating-ui/react-dom": "2.1.2",
73
+ "@floating-ui/dom": "1.7.3",
74
+ "@floating-ui/react-dom": "2.1.5",
76
75
  "@mhsdesign/jit-browser-tailwindcss": "0.4.2",
77
- "@radix-ui/react-accordion": "^1.2.2",
78
- "@radix-ui/react-alert-dialog": "^1.1.5",
79
- "@radix-ui/react-avatar": "^1.1.3",
80
- "@radix-ui/react-checkbox": "^1.1.4",
81
- "@radix-ui/react-context-menu": "^2.2.5",
82
- "@radix-ui/react-dialog": "^1.1.5",
83
- "@radix-ui/react-dropdown-menu": "^2.1.5",
84
- "@radix-ui/react-hover-card": "^1.1.5",
76
+ "@radix-ui/react-accordion": "^1.2.11",
77
+ "@radix-ui/react-alert-dialog": "^1.1.14",
78
+ "@radix-ui/react-avatar": "^1.1.10",
79
+ "@radix-ui/react-checkbox": "^1.3.2",
80
+ "@radix-ui/react-context-menu": "^2.2.15",
81
+ "@radix-ui/react-dialog": "^1.1.14",
82
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
83
+ "@radix-ui/react-hover-card": "^1.1.14",
85
84
  "@radix-ui/react-icons": "^1.3.2",
86
- "@radix-ui/react-label": "^2.1.1",
87
- "@radix-ui/react-menubar": "^1.1.5",
88
- "@radix-ui/react-navigation-menu": "^1.2.4",
89
- "@radix-ui/react-popover": "^1.1.5",
90
- "@radix-ui/react-scroll-area": "^1.2.2",
91
- "@radix-ui/react-select": "^2.1.5",
92
- "@radix-ui/react-separator": "^1.1.1",
93
- "@radix-ui/react-slider": "^1.2.3",
94
- "@radix-ui/react-slot": "^1.1.1",
95
- "@radix-ui/react-switch": "^1.1.2",
96
- "@radix-ui/react-tabs": "^1.1.2",
97
- "@radix-ui/react-toast": "^1.2.5",
98
- "@radix-ui/react-toggle": "^1.1.1",
99
- "@radix-ui/react-tooltip": "^1.1.7",
100
- "@react-hookz/web": "25.0.1",
101
- "@rjsf/core": "5.24.2",
102
- "@rjsf/utils": "5.24.2",
103
- "@rjsf/validator-ajv8": "5.24.2",
85
+ "@radix-ui/react-label": "^2.1.7",
86
+ "@radix-ui/react-menubar": "^1.1.15",
87
+ "@radix-ui/react-navigation-menu": "^1.2.13",
88
+ "@radix-ui/react-popover": "^1.1.14",
89
+ "@radix-ui/react-scroll-area": "^1.2.9",
90
+ "@radix-ui/react-select": "^2.2.5",
91
+ "@radix-ui/react-separator": "^1.1.7",
92
+ "@radix-ui/react-slider": "^1.3.5",
93
+ "@radix-ui/react-slot": "^1.2.3",
94
+ "@radix-ui/react-switch": "^1.2.5",
95
+ "@radix-ui/react-tabs": "^1.1.12",
96
+ "@radix-ui/react-toast": "^1.2.14",
97
+ "@radix-ui/react-toggle": "^1.1.9",
98
+ "@radix-ui/react-tooltip": "^1.2.7",
99
+ "@react-hookz/web": "25.1.1",
100
+ "@rjsf/core": "5.24.12",
101
+ "@rjsf/utils": "5.24.12",
102
+ "@rjsf/validator-ajv8": "5.24.12",
104
103
  "@tailwindcss/aspect-ratio": "^0.4.2",
105
104
  "@tailwindcss/container-queries": "^0.1.1",
106
105
  "@tailwindcss/forms": "^0.5.10",
@@ -118,28 +117,27 @@
118
117
  "@tiptap/starter-kit": "^2.11.5",
119
118
  "class-variance-authority": "0.6.1",
120
119
  "clsx": "2.1.1",
121
- "cmdk": "0.2.0",
120
+ "cmdk": "1.1.1",
122
121
  "culori": "^4.0.2",
123
122
  "flagged": "3.0.0",
124
- "framer-motion": "^12.6.3",
125
- "fuse.js": "7.0.0",
123
+ "framer-motion": "12.23.12",
124
+ "fuse.js": "7.1.0",
126
125
  "himalaya": "^1.1.0",
127
- "i18next": "^24.2.1",
128
- "jotai": "2.12.1",
126
+ "i18next": "25.3.4",
127
+ "jotai": "2.13.1",
129
128
  "lodash": "^4.17.21",
130
129
  "lodash-es": "4.17.21",
131
- "lucide-react": "^0.474.0",
132
- "re-resizable": "^6.10.3",
133
- "react-arborist": "^3.4.0",
134
- "react-autosuggest": "^10.1.0",
130
+ "lucide-react": "0.539.0",
131
+ "re-resizable": "6.11.2",
132
+ "react-arborist": "^3.4.3",
133
+ "react-autosuggest": "10.1.0",
135
134
  "react-colorful": "5.6.1",
136
- "react-error-boundary": "^5.0.0",
137
- "react-hotkeys-hook": "4.6.1",
138
- "react-i18next": "15.4.0",
139
- "react-json-view-lite": "^2.3.0",
135
+ "react-error-boundary": "^6.0.0",
136
+ "react-hotkeys-hook": "5.1.0",
137
+ "react-i18next": "15.6.1",
140
138
  "react-wrap-balancer": "^1.1.1",
141
- "sonner": "^2.0.1",
142
- "tailwind-merge": "^2.6.0",
139
+ "sonner": "^2.0.7",
140
+ "tailwind-merge": "^3.3.1",
143
141
  "tree-model": "^1.0.7",
144
142
  "undo-manager": "^1.1.1"
145
143
  },
@@ -167,7 +165,7 @@
167
165
  "eslint-plugin-react-refresh": "^0.4.18",
168
166
  "husky": "^9.1.7",
169
167
  "jest-environment-jsdom": "^29.7.0",
170
- "jotai-devtools": "^0.11.0",
168
+ "jotai-devtools": "0.12.0",
171
169
  "jsdoc": "^4.0.4",
172
170
  "msw": "^2.7.0",
173
171
  "postcss": "^8.5.1",