@copilotkit/react-ui 0.16.0 → 0.17.0-tools.0

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
1
 
2
- > @copilotkit/react-ui@0.16.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-ui
2
+ > @copilotkit/react-ui@0.17.0-tools.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-ui
3
3
  > tsup --clean
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/hooks/use-copy-to-clipboard.tsx, src/lib/utils.test.ts, src/lib/utils.ts, src/types/index.ts, src/types/types.ts, src/components/chat/Button.tsx, src/components/chat/Chat.tsx, src/components/chat/ChatContext.tsx, src/components/chat/CodeBlock.tsx, src/components/chat/Header.tsx, src/components/chat/Icons.tsx, src/components/chat/Input.tsx, src/components/chat/Markdown.tsx, src/components/chat/Messages.tsx, src/components/chat/Popup.tsx, src/components/chat/Response.tsx, src/components/chat/Sidebar.tsx, src/components/chat/Textarea.tsx, src/components/chat/Window.tsx, src/components/chat/index.tsx, src/components/chat/props.ts
@@ -14,78 +14,12 @@ Browserslist: caniuse-lite is outdated. Please run:
14
14
  npx update-browserslist-db@latest
15
15
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
16
16
  DTS Build start
17
- CJS dist/index.js 32.93 KB
18
- CJS dist/components/index.js 32.96 KB
19
- CJS dist/context/index.js 803.00 B
20
- CJS dist/hooks/index.js 797.00 B
21
- CJS dist/lib/utils.test.js 182.00 B
22
- CJS dist/types/index.js 797.00 B
23
- CJS dist/components/chat/Button.js 2.91 KB
24
- CJS dist/index.css 19.37 KB
25
- CJS dist/hooks/use-copy-to-clipboard.js 2.32 KB
26
- CJS dist/lib/utils.js 2.61 KB
27
- CJS dist/types/types.js 797.00 B
28
- CJS dist/components/chat/Chat.js 31.60 KB
29
- CJS dist/components/chat/ChatContext.js 9.01 KB
30
- CJS dist/components/chat/CodeBlock.js 9.21 KB
31
- CJS dist/components/chat/Header.js 2.63 KB
32
- CJS dist/components/chat/Icons.js 9.51 KB
33
- CJS dist/components/chat/Input.js 5.26 KB
34
- CJS dist/components/chat/Markdown.js 11.00 KB
35
- CJS dist/components/chat/Messages.js 13.97 KB
36
- CJS dist/components/chat/Popup.js 32.00 KB
37
- CJS dist/components/chat/Response.js 2.67 KB
38
- CJS dist/components/chat/Sidebar.js 32.55 KB
39
- CJS dist/components/chat/Textarea.js 2.51 KB
40
- CJS dist/components/chat/Window.js 5.46 KB
41
- CJS dist/components/chat/index.js 32.95 KB
42
- CJS dist/components/chat/props.js 807.00 B
43
- CJS dist/index.js.map 51.22 KB
44
- CJS dist/components/index.js.map 51.15 KB
45
- CJS dist/context/index.js.map 139.00 B
46
- CJS dist/hooks/index.js.map 137.00 B
47
- CJS dist/lib/utils.test.js.map 352.00 B
48
- CJS dist/types/index.js.map 137.00 B
49
- CJS dist/components/chat/Button.js.map 5.70 KB
50
- CJS dist/index.css.map 30.37 KB
51
- CJS dist/hooks/use-copy-to-clipboard.js.map 1.23 KB
52
- CJS dist/lib/utils.js.map 1.81 KB
53
- CJS dist/types/types.js.map 478.00 B
54
- CJS dist/components/chat/Chat.js.map 49.30 KB
55
- CJS dist/components/chat/ChatContext.js.map 12.69 KB
56
- CJS dist/components/chat/CodeBlock.js.map 13.35 KB
57
- CJS dist/components/chat/Header.js.map 5.19 KB
58
- CJS dist/components/chat/Icons.js.map 8.55 KB
59
- CJS dist/components/chat/Input.js.map 9.75 KB
60
- CJS dist/components/chat/Markdown.js.map 16.13 KB
61
- CJS dist/components/chat/Messages.js.map 25.57 KB
62
- CJS dist/components/chat/Popup.js.map 49.80 KB
63
- CJS dist/components/chat/Response.js.map 5.27 KB
64
- CJS dist/components/chat/Sidebar.js.map 50.62 KB
65
- CJS dist/components/chat/Textarea.js.map 2.83 KB
66
- CJS dist/components/chat/Window.js.map 6.76 KB
67
- CJS dist/components/chat/index.js.map 51.29 KB
68
- CJS dist/components/chat/props.js.map 884.00 B
69
- CJS ⚡️ Build success in 1506ms
70
- ESM dist/components/chat/props.mjs 69.00 B
71
- ESM dist/components/chat/Markdown.mjs 255.00 B
72
- ESM dist/components/chat/Messages.mjs 325.00 B
73
- ESM dist/components/chat/Popup.mjs 610.00 B
74
- ESM dist/components/chat/Response.mjs 232.00 B
75
- ESM dist/components/chat/Sidebar.mjs 616.00 B
76
- ESM dist/components/chat/Textarea.mjs 177.00 B
77
- ESM dist/components/chat/Window.mjs 144.00 B
78
- ESM dist/components/chat/index.mjs 759.00 B
79
- ESM dist/types/types.mjs 34.00 B
80
- ESM dist/components/chat/Button.mjs 214.00 B
81
- ESM dist/components/chat/Chat.mjs 572.00 B
82
- ESM dist/components/chat/ChatContext.mjs 276.00 B
83
- ESM dist/components/chat/CodeBlock.mjs 333.00 B
84
- ESM dist/components/chat/Header.mjs 214.00 B
85
- ESM dist/components/chat/Icons.mjs 439.00 B
86
- ESM dist/components/chat/Input.mjs 246.00 B
87
17
  ESM dist/index.mjs 811.00 B
88
18
  ESM dist/components/index.mjs 737.00 B
19
+ ESM dist/context/index.mjs 66.00 B
20
+ ESM dist/hooks/index.mjs 66.00 B
21
+ ESM dist/lib/utils.test.mjs 168.00 B
22
+ ESM dist/types/index.mjs 66.00 B
89
23
  ESM dist/chunk-JD7BAH7U.mjs 43.00 B
90
24
  ESM dist/chunk-P4GBO6MW.mjs 43.00 B
91
25
  ESM dist/chunk-WB3YULQ4.mjs 43.00 B
@@ -103,37 +37,37 @@ Browserslist: caniuse-lite is outdated. Please run:
103
37
  ESM dist/chunk-WM6BS77F.mjs 1.54 KB
104
38
  ESM dist/chunk-OF66AL5Z.mjs 1.73 KB
105
39
  ESM dist/chunk-7YXG7D47.mjs 6.52 KB
106
- ESM dist/context/index.mjs 66.00 B
107
40
  ESM dist/chunk-IU3WTXLQ.mjs 43.00 B
108
- ESM dist/hooks/index.mjs 66.00 B
109
41
  ESM dist/chunk-H4VKQGVU.mjs 43.00 B
110
42
  ESM dist/hooks/use-copy-to-clipboard.mjs 191.00 B
111
43
  ESM dist/chunk-POVINPXX.mjs 675.00 B
112
- ESM dist/lib/utils.test.mjs 168.00 B
113
- ESM dist/lib/utils.mjs 1021.00 B
44
+ ESM dist/lib/utils.mjs 885.00 B
114
45
  ESM dist/chunk-MRXNTQOX.mjs 1.89 KB
115
- ESM dist/types/index.mjs 66.00 B
116
46
  ESM dist/chunk-7NSRDJ5C.mjs 43.00 B
117
47
  ESM dist/index.css 19.37 KB
118
- ESM dist/components/chat/props.mjs.map 71.00 B
119
- ESM dist/components/chat/Markdown.mjs.map 71.00 B
120
- ESM dist/components/chat/Messages.mjs.map 71.00 B
121
- ESM dist/components/chat/Popup.mjs.map 71.00 B
122
- ESM dist/components/chat/Response.mjs.map 71.00 B
123
- ESM dist/components/chat/Sidebar.mjs.map 71.00 B
124
- ESM dist/components/chat/Textarea.mjs.map 71.00 B
125
- ESM dist/components/chat/Window.mjs.map 71.00 B
126
- ESM dist/components/chat/index.mjs.map 71.00 B
127
- ESM dist/types/types.mjs.map 71.00 B
128
- ESM dist/components/chat/Button.mjs.map 71.00 B
129
- ESM dist/components/chat/Chat.mjs.map 71.00 B
130
- ESM dist/components/chat/ChatContext.mjs.map 71.00 B
131
- ESM dist/components/chat/CodeBlock.mjs.map 71.00 B
132
- ESM dist/components/chat/Header.mjs.map 71.00 B
133
- ESM dist/components/chat/Icons.mjs.map 71.00 B
134
- ESM dist/components/chat/Input.mjs.map 71.00 B
48
+ ESM dist/components/chat/props.mjs 69.00 B
49
+ ESM dist/components/chat/Markdown.mjs 255.00 B
50
+ ESM dist/components/chat/Messages.mjs 325.00 B
51
+ ESM dist/components/chat/Popup.mjs 610.00 B
52
+ ESM dist/components/chat/Response.mjs 232.00 B
53
+ ESM dist/components/chat/Sidebar.mjs 616.00 B
54
+ ESM dist/components/chat/Textarea.mjs 177.00 B
55
+ ESM dist/components/chat/Window.mjs 144.00 B
56
+ ESM dist/components/chat/index.mjs 759.00 B
57
+ ESM dist/types/types.mjs 34.00 B
58
+ ESM dist/components/chat/Button.mjs 214.00 B
59
+ ESM dist/components/chat/Chat.mjs 572.00 B
60
+ ESM dist/components/chat/ChatContext.mjs 276.00 B
61
+ ESM dist/components/chat/CodeBlock.mjs 333.00 B
62
+ ESM dist/components/chat/Header.mjs 214.00 B
63
+ ESM dist/components/chat/Icons.mjs 439.00 B
64
+ ESM dist/components/chat/Input.mjs 246.00 B
135
65
  ESM dist/index.mjs.map 71.00 B
136
66
  ESM dist/components/index.mjs.map 71.00 B
67
+ ESM dist/context/index.mjs.map 71.00 B
68
+ ESM dist/hooks/index.mjs.map 71.00 B
69
+ ESM dist/lib/utils.test.mjs.map 350.00 B
70
+ ESM dist/types/index.mjs.map 71.00 B
137
71
  ESM dist/chunk-JD7BAH7U.mjs.map 71.00 B
138
72
  ESM dist/chunk-P4GBO6MW.mjs.map 71.00 B
139
73
  ESM dist/chunk-WB3YULQ4.mjs.map 71.00 B
@@ -151,20 +85,86 @@ Browserslist: caniuse-lite is outdated. Please run:
151
85
  ESM dist/chunk-WM6BS77F.mjs.map 2.80 KB
152
86
  ESM dist/chunk-OF66AL5Z.mjs.map 4.97 KB
153
87
  ESM dist/chunk-7YXG7D47.mjs.map 8.44 KB
154
- ESM dist/context/index.mjs.map 71.00 B
155
88
  ESM dist/chunk-IU3WTXLQ.mjs.map 71.00 B
156
- ESM dist/hooks/index.mjs.map 71.00 B
157
89
  ESM dist/chunk-H4VKQGVU.mjs.map 71.00 B
158
90
  ESM dist/hooks/use-copy-to-clipboard.mjs.map 71.00 B
159
91
  ESM dist/chunk-POVINPXX.mjs.map 1.18 KB
160
- ESM dist/lib/utils.test.mjs.map 350.00 B
161
- ESM dist/lib/utils.mjs.map 1.75 KB
92
+ ESM dist/lib/utils.mjs.map 1.49 KB
162
93
  ESM dist/chunk-MRXNTQOX.mjs.map 71.00 B
163
- ESM dist/types/index.mjs.map 71.00 B
164
94
  ESM dist/chunk-7NSRDJ5C.mjs.map 71.00 B
165
95
  ESM dist/index.css.map 30.37 KB
166
- ESM ⚡️ Build success in 1510ms
167
- DTS ⚡️ Build success in 6146ms
96
+ ESM dist/components/chat/props.mjs.map 71.00 B
97
+ ESM dist/components/chat/Markdown.mjs.map 71.00 B
98
+ ESM dist/components/chat/Messages.mjs.map 71.00 B
99
+ ESM dist/components/chat/Popup.mjs.map 71.00 B
100
+ ESM dist/components/chat/Response.mjs.map 71.00 B
101
+ ESM dist/components/chat/Sidebar.mjs.map 71.00 B
102
+ ESM dist/components/chat/Textarea.mjs.map 71.00 B
103
+ ESM dist/components/chat/Window.mjs.map 71.00 B
104
+ ESM dist/components/chat/index.mjs.map 71.00 B
105
+ ESM dist/types/types.mjs.map 71.00 B
106
+ ESM dist/components/chat/Button.mjs.map 71.00 B
107
+ ESM dist/components/chat/Chat.mjs.map 71.00 B
108
+ ESM dist/components/chat/ChatContext.mjs.map 71.00 B
109
+ ESM dist/components/chat/CodeBlock.mjs.map 71.00 B
110
+ ESM dist/components/chat/Header.mjs.map 71.00 B
111
+ ESM dist/components/chat/Icons.mjs.map 71.00 B
112
+ ESM dist/components/chat/Input.mjs.map 71.00 B
113
+ ESM ⚡️ Build success in 1415ms
114
+ CJS dist/index.js 32.93 KB
115
+ CJS dist/index.css 19.37 KB
116
+ CJS dist/components/index.js 32.96 KB
117
+ CJS dist/context/index.js 803.00 B
118
+ CJS dist/hooks/index.js 797.00 B
119
+ CJS dist/hooks/use-copy-to-clipboard.js 2.32 KB
120
+ CJS dist/lib/utils.test.js 182.00 B
121
+ CJS dist/lib/utils.js 2.40 KB
122
+ CJS dist/types/index.js 797.00 B
123
+ CJS dist/types/types.js 797.00 B
124
+ CJS dist/components/chat/Button.js 2.91 KB
125
+ CJS dist/components/chat/Chat.js 31.60 KB
126
+ CJS dist/components/chat/ChatContext.js 9.01 KB
127
+ CJS dist/components/chat/CodeBlock.js 9.21 KB
128
+ CJS dist/components/chat/Header.js 2.63 KB
129
+ CJS dist/components/chat/Icons.js 9.51 KB
130
+ CJS dist/components/chat/Input.js 5.26 KB
131
+ CJS dist/components/chat/Markdown.js 11.00 KB
132
+ CJS dist/components/chat/Messages.js 13.97 KB
133
+ CJS dist/components/chat/Popup.js 32.00 KB
134
+ CJS dist/components/chat/Response.js 2.67 KB
135
+ CJS dist/components/chat/Sidebar.js 32.55 KB
136
+ CJS dist/components/chat/Textarea.js 2.51 KB
137
+ CJS dist/components/chat/Window.js 5.46 KB
138
+ CJS dist/components/chat/index.js 32.95 KB
139
+ CJS dist/components/chat/props.js 807.00 B
140
+ CJS dist/index.js.map 51.22 KB
141
+ CJS dist/index.css.map 30.37 KB
142
+ CJS dist/components/index.js.map 51.15 KB
143
+ CJS dist/context/index.js.map 139.00 B
144
+ CJS dist/hooks/index.js.map 137.00 B
145
+ CJS dist/hooks/use-copy-to-clipboard.js.map 1.23 KB
146
+ CJS dist/lib/utils.test.js.map 352.00 B
147
+ CJS dist/lib/utils.js.map 1.55 KB
148
+ CJS dist/types/index.js.map 137.00 B
149
+ CJS dist/types/types.js.map 478.00 B
150
+ CJS dist/components/chat/Button.js.map 5.70 KB
151
+ CJS dist/components/chat/Chat.js.map 49.30 KB
152
+ CJS dist/components/chat/ChatContext.js.map 12.69 KB
153
+ CJS dist/components/chat/CodeBlock.js.map 13.35 KB
154
+ CJS dist/components/chat/Header.js.map 5.19 KB
155
+ CJS dist/components/chat/Icons.js.map 8.55 KB
156
+ CJS dist/components/chat/Input.js.map 9.75 KB
157
+ CJS dist/components/chat/Markdown.js.map 16.13 KB
158
+ CJS dist/components/chat/Messages.js.map 25.57 KB
159
+ CJS dist/components/chat/Popup.js.map 49.80 KB
160
+ CJS dist/components/chat/Response.js.map 5.27 KB
161
+ CJS dist/components/chat/Sidebar.js.map 50.62 KB
162
+ CJS dist/components/chat/Textarea.js.map 2.83 KB
163
+ CJS dist/components/chat/Window.js.map 6.76 KB
164
+ CJS dist/components/chat/index.js.map 51.29 KB
165
+ CJS dist/components/chat/props.js.map 884.00 B
166
+ CJS ⚡️ Build success in 1481ms
167
+ DTS ⚡️ Build success in 6165ms
168
168
  DTS dist/index.d.ts 411.00 B
169
169
  DTS dist/components/chat/props.d.ts 794.00 B
170
170
  DTS dist/components/chat/Popup.d.ts 269.00 B
@@ -176,7 +176,7 @@ Browserslist: caniuse-lite is outdated. Please run:
176
176
  DTS dist/hooks/index.d.ts 12.00 B
177
177
  DTS dist/hooks/use-copy-to-clipboard.d.ts 266.00 B
178
178
  DTS dist/lib/utils.test.d.ts 12.00 B
179
- DTS dist/lib/utils.d.ts 357.00 B
179
+ DTS dist/lib/utils.d.ts 263.00 B
180
180
  DTS dist/types/index.d.ts 12.00 B
181
181
  DTS dist/types/types.d.ts 351.00 B
182
182
  DTS dist/components/chat/Button.d.ts 163.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # ui
2
2
 
3
+ ## 0.17.0-tools.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Test the tools API
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @copilotkit/react-core@0.20.0-tools.0
13
+ - @copilotkit/shared@0.4.0-tools.0
14
+
3
15
  ## 0.16.0
4
16
 
5
17
  ### Minor Changes
@@ -1,8 +1,5 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function cn(...inputs: ClassValue[]): string;
4
1
  declare const nanoid: (size?: number | undefined) => string;
5
2
  declare function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON>;
6
3
  declare function formatDate(input: string | number | Date): string;
7
4
 
8
- export { cn, fetcher, formatDate, nanoid };
5
+ export { fetcher, formatDate, nanoid };
package/dist/lib/utils.js CHANGED
@@ -40,18 +40,12 @@ var __async = (__this, __arguments, generator) => {
40
40
  // src/lib/utils.ts
41
41
  var utils_exports = {};
42
42
  __export(utils_exports, {
43
- cn: () => cn,
44
43
  fetcher: () => fetcher,
45
44
  formatDate: () => formatDate,
46
45
  nanoid: () => nanoid
47
46
  });
48
47
  module.exports = __toCommonJS(utils_exports);
49
- var import_clsx = require("clsx");
50
48
  var import_nanoid = require("nanoid");
51
- var import_tailwind_merge = require("tailwind-merge");
52
- function cn(...inputs) {
53
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
54
- }
55
49
  var nanoid = (0, import_nanoid.customAlphabet)(
56
50
  "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
57
51
  7
@@ -82,7 +76,6 @@ function formatDate(input) {
82
76
  }
83
77
  // Annotate the CommonJS export names for ESM import in node:
84
78
  0 && (module.exports = {
85
- cn,
86
79
  fetcher,
87
80
  formatDate,
88
81
  nanoid
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { customAlphabet } from \"nanoid\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const nanoid = customAlphabet(\n \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",\n 7,\n); // 7-character random string\n\nexport async function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON> {\n const res = await fetch(input, init);\n\n if (!res.ok) {\n const json = await res.json();\n if (json.error) {\n const error = new Error(json.error) as Error & {\n status: number;\n };\n error.status = res.status;\n throw error;\n } else {\n throw new Error(\"An unexpected error occurred\");\n }\n }\n\n return res.json();\n}\n\nexport function formatDate(input: string | number | Date): string {\n const date = new Date(input);\n return date.toLocaleDateString(\"en-US\", {\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAsC;AACtC,oBAA+B;AAC/B,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;AAEO,IAAM,aAAS;AAAA,EACpB;AAAA,EACA;AACF;AAEA,SAAsB,QAAoB,OAAoB,MAAmC;AAAA;AAC/F,UAAM,MAAM,MAAM,MAAM,OAAO,IAAI;AAEnC,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAI,KAAK,OAAO;AACd,cAAM,QAAQ,IAAI,MAAM,KAAK,KAAK;AAGlC,cAAM,SAAS,IAAI;AACnB,cAAM;AAAA,MACR,OAAO;AACL,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AAAA,IACF;AAEA,WAAO,IAAI,KAAK;AAAA,EAClB;AAAA;AAEO,SAAS,WAAW,OAAuC;AAChE,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { customAlphabet } from \"nanoid\";\n\nexport const nanoid = customAlphabet(\n \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",\n 7,\n); // 7-character random string\n\nexport async function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON> {\n const res = await fetch(input, init);\n\n if (!res.ok) {\n const json = await res.json();\n if (json.error) {\n const error = new Error(json.error) as Error & {\n status: number;\n };\n error.status = res.status;\n throw error;\n } else {\n throw new Error(\"An unexpected error occurred\");\n }\n }\n\n return res.json();\n}\n\nexport function formatDate(input: string | number | Date): string {\n const date = new Date(input);\n return date.toLocaleDateString(\"en-US\", {\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B;AAExB,IAAM,aAAS;AAAA,EACpB;AAAA,EACA;AACF;AAEA,SAAsB,QAAoB,OAAoB,MAAmC;AAAA;AAC/F,UAAM,MAAM,MAAM,MAAM,OAAO,IAAI;AAEnC,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAI,KAAK,OAAO;AACd,cAAM,QAAQ,IAAI,MAAM,KAAK,KAAK;AAGlC,cAAM,SAAS,IAAI;AACnB,cAAM;AAAA,MACR,OAAO;AACL,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AAAA,IACF;AAEA,WAAO,IAAI,KAAK;AAAA,EAClB;AAAA;AAEO,SAAS,WAAW,OAAuC;AAChE,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACH;","names":[]}
@@ -3,12 +3,7 @@ import {
3
3
  } from "../chunk-MRXNTQOX.mjs";
4
4
 
5
5
  // src/lib/utils.ts
6
- import { clsx } from "clsx";
7
6
  import { customAlphabet } from "nanoid";
8
- import { twMerge } from "tailwind-merge";
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
12
7
  var nanoid = customAlphabet(
13
8
  "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
14
9
  7
@@ -38,7 +33,6 @@ function formatDate(input) {
38
33
  });
39
34
  }
40
35
  export {
41
- cn,
42
36
  fetcher,
43
37
  formatDate,
44
38
  nanoid
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { customAlphabet } from \"nanoid\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const nanoid = customAlphabet(\n \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",\n 7,\n); // 7-character random string\n\nexport async function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON> {\n const res = await fetch(input, init);\n\n if (!res.ok) {\n const json = await res.json();\n if (json.error) {\n const error = new Error(json.error) as Error & {\n status: number;\n };\n error.status = res.status;\n throw error;\n } else {\n throw new Error(\"An unexpected error occurred\");\n }\n }\n\n return res.json();\n}\n\nexport function formatDate(input: string | number | Date): string {\n const date = new Date(input);\n return date.toLocaleDateString(\"en-US\", {\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n });\n}\n"],"mappings":";;;;;AAAA,SAAS,YAA6B;AACtC,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,IAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAEA,SAAsB,QAAoB,OAAoB,MAAmC;AAAA;AAC/F,UAAM,MAAM,MAAM,MAAM,OAAO,IAAI;AAEnC,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAI,KAAK,OAAO;AACd,cAAM,QAAQ,IAAI,MAAM,KAAK,KAAK;AAGlC,cAAM,SAAS,IAAI;AACnB,cAAM;AAAA,MACR,OAAO;AACL,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AAAA,IACF;AAEA,WAAO,IAAI,KAAK;AAAA,EAClB;AAAA;AAEO,SAAS,WAAW,OAAuC;AAChE,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { customAlphabet } from \"nanoid\";\n\nexport const nanoid = customAlphabet(\n \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\",\n 7,\n); // 7-character random string\n\nexport async function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON> {\n const res = await fetch(input, init);\n\n if (!res.ok) {\n const json = await res.json();\n if (json.error) {\n const error = new Error(json.error) as Error & {\n status: number;\n };\n error.status = res.status;\n throw error;\n } else {\n throw new Error(\"An unexpected error occurred\");\n }\n }\n\n return res.json();\n}\n\nexport function formatDate(input: string | number | Date): string {\n const date = new Date(input);\n return date.toLocaleDateString(\"en-US\", {\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n });\n}\n"],"mappings":";;;;;AAAA,SAAS,sBAAsB;AAExB,IAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAEA,SAAsB,QAAoB,OAAoB,MAAmC;AAAA;AAC/F,UAAM,MAAM,MAAM,MAAM,OAAO,IAAI;AAEnC,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,OAAO,MAAM,IAAI,KAAK;AAC5B,UAAI,KAAK,OAAO;AACd,cAAM,QAAQ,IAAI,MAAM,KAAK,KAAK;AAGlC,cAAM,SAAS,IAAI;AACnB,cAAM;AAAA,MACR,OAAO;AACL,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAChD;AAAA,IACF;AAEA,WAAO,IAAI,KAAK;AAAA,EAClB;AAAA;AAEO,SAAS,WAAW,OAAuC;AAChE,QAAM,OAAO,IAAI,KAAK,KAAK;AAC3B,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACH;","names":[]}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.16.0",
7
+ "version": "0.17.0-tools.0",
8
8
  "sideEffects": [
9
9
  "**/*.css"
10
10
  ],
@@ -31,36 +31,18 @@
31
31
  "ts-jest": "^29.1.1",
32
32
  "tsup": "^6.7.0",
33
33
  "typescript": "^5.1.3",
34
- "eslint-config-custom": "0.4.0",
35
- "tailwind-config": "0.3.0",
36
- "tsconfig": "0.8.0"
34
+ "eslint-config-custom": "0.5.0-tools.0",
35
+ "tailwind-config": "0.4.0-tools.0",
36
+ "tsconfig": "0.9.0-tools.0"
37
37
  },
38
38
  "dependencies": {
39
- "@heroicons/react": "^2.0.18",
40
- "@radix-ui/react-alert-dialog": "^1.0.4",
41
- "@radix-ui/react-dialog": "^1.0.4",
42
- "@radix-ui/react-dropdown-menu": "^2.0.5",
43
- "@radix-ui/react-label": "^2.0.2",
44
- "@radix-ui/react-select": "^1.2.2",
45
- "@radix-ui/react-separator": "^1.0.3",
46
- "@radix-ui/react-slot": "^1.0.2",
47
- "@radix-ui/react-switch": "^1.0.3",
48
- "@radix-ui/react-tooltip": "^1.0.6",
49
- "class-variance-authority": "^0.6.1",
50
- "clsx": "^1.2.1",
51
39
  "nanoid": "^4.0.2",
52
- "next": "^13.4.1",
53
- "next-themes": "^0.2.1",
54
- "react-hot-toast": "^2.4.1",
55
- "react-intersection-observer": "^9.5.2",
56
40
  "react-markdown": "^8.0.7",
57
41
  "react-syntax-highlighter": "^15.5.0",
58
- "react-textarea-autosize": "^8.5.2",
59
42
  "remark-gfm": "^3.0.1",
60
43
  "remark-math": "^5.1.1",
61
- "tailwind-merge": "^1.13.2",
62
- "@copilotkit/shared": "0.3.0",
63
- "@copilotkit/react-core": "0.19.0"
44
+ "@copilotkit/shared": "0.4.0-tools.0",
45
+ "@copilotkit/react-core": "0.20.0-tools.0"
64
46
  },
65
47
  "scripts": {
66
48
  "build": "tsup --clean",
package/src/lib/utils.ts CHANGED
@@ -1,10 +1,4 @@
1
- import { clsx, type ClassValue } from "clsx";
2
1
  import { customAlphabet } from "nanoid";
3
- import { twMerge } from "tailwind-merge";
4
-
5
- export function cn(...inputs: ClassValue[]) {
6
- return twMerge(clsx(inputs));
7
- }
8
2
 
9
3
  export const nanoid = customAlphabet(
10
4
  "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",