@docyrus/rn-assistant 0.5.0 → 0.7.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.
- package/dist/commonjs/components/assistant-screen/assistant-screen.js +56 -8
- package/dist/commonjs/components/assistant-screen/assistant-screen.js.map +1 -1
- package/dist/commonjs/components/message-parts/message-parts.js +70 -30
- package/dist/commonjs/components/message-parts/message-parts.js.map +1 -1
- package/dist/commonjs/components/message-parts/tools/data-table-tool.js +417 -0
- package/dist/commonjs/components/message-parts/tools/data-table-tool.js.map +1 -0
- package/dist/commonjs/components/message-parts/tools/index.js +14 -0
- package/dist/commonjs/components/message-parts/tools/index.js.map +1 -1
- package/dist/commonjs/components/message-parts/tools/request-user-input-tool.js +366 -0
- package/dist/commonjs/components/message-parts/tools/request-user-input-tool.js.map +1 -0
- package/dist/commonjs/hooks/use-assistant.js +15 -3
- package/dist/commonjs/hooks/use-assistant.js.map +1 -1
- package/dist/module/components/assistant-screen/assistant-screen.js +57 -9
- package/dist/module/components/assistant-screen/assistant-screen.js.map +1 -1
- package/dist/module/components/message-parts/message-parts.js +71 -31
- package/dist/module/components/message-parts/message-parts.js.map +1 -1
- package/dist/module/components/message-parts/tools/data-table-tool.js +413 -0
- package/dist/module/components/message-parts/tools/data-table-tool.js.map +1 -0
- package/dist/module/components/message-parts/tools/index.js +2 -0
- package/dist/module/components/message-parts/tools/index.js.map +1 -1
- package/dist/module/components/message-parts/tools/request-user-input-tool.js +362 -0
- package/dist/module/components/message-parts/tools/request-user-input-tool.js.map +1 -0
- package/dist/module/hooks/use-assistant.js +15 -3
- package/dist/module/hooks/use-assistant.js.map +1 -1
- package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/message-parts/tools/data-table-tool.d.ts +25 -0
- package/dist/typescript/commonjs/src/components/message-parts/tools/data-table-tool.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/message-parts/tools/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/message-parts/tools/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/message-parts/tools/request-user-input-tool.d.ts +33 -0
- package/dist/typescript/commonjs/src/components/message-parts/tools/request-user-input-tool.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts +6 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/types/index.d.ts +3 -0
- package/dist/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts.map +1 -1
- package/dist/typescript/module/src/components/message-parts/message-parts.d.ts.map +1 -1
- package/dist/typescript/module/src/components/message-parts/tools/data-table-tool.d.ts +25 -0
- package/dist/typescript/module/src/components/message-parts/tools/data-table-tool.d.ts.map +1 -0
- package/dist/typescript/module/src/components/message-parts/tools/index.d.ts +2 -0
- package/dist/typescript/module/src/components/message-parts/tools/index.d.ts.map +1 -1
- package/dist/typescript/module/src/components/message-parts/tools/request-user-input-tool.d.ts +33 -0
- package/dist/typescript/module/src/components/message-parts/tools/request-user-input-tool.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts +6 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts.map +1 -1
- package/dist/typescript/module/src/types/index.d.ts +3 -0
- package/dist/typescript/module/src/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useMemo } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, ScrollView, Modal, SafeAreaView } from 'react-native';
|
|
5
|
+
import { ChevronDown, Table2, X, XCircle } from 'lucide-react-native';
|
|
6
|
+
import { useDocyrusRNAssistantTheme } from "../../../theme/index.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
function parseData(raw) {
|
|
9
|
+
if (!raw) return {
|
|
10
|
+
rows: [],
|
|
11
|
+
error: null
|
|
12
|
+
};
|
|
13
|
+
try {
|
|
14
|
+
const parsed = typeof raw === 'string' ? JSON.parse(raw) : raw;
|
|
15
|
+
if (Array.isArray(parsed)) return {
|
|
16
|
+
rows: parsed,
|
|
17
|
+
error: null
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// Handle object with nested data arrays
|
|
21
|
+
if (parsed && typeof parsed === 'object') {
|
|
22
|
+
const nested = parsed.data || parsed.rows || parsed.records || parsed.items;
|
|
23
|
+
if (Array.isArray(nested)) return {
|
|
24
|
+
rows: nested,
|
|
25
|
+
error: null
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
rows: [],
|
|
30
|
+
error: null
|
|
31
|
+
};
|
|
32
|
+
} catch (e) {
|
|
33
|
+
return {
|
|
34
|
+
rows: [],
|
|
35
|
+
error: e.message || 'Failed to parse data'
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function getCellValue(row, field) {
|
|
40
|
+
if (!field) return undefined;
|
|
41
|
+
|
|
42
|
+
// Direct match
|
|
43
|
+
if (field in row) return row[field];
|
|
44
|
+
|
|
45
|
+
// Try case-insensitive match
|
|
46
|
+
const lowerField = field.toLowerCase();
|
|
47
|
+
const matchKey = Object.keys(row).find(k => k.toLowerCase() === lowerField);
|
|
48
|
+
if (matchKey) return row[matchKey];
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
export function DataTableTool({
|
|
52
|
+
state,
|
|
53
|
+
data,
|
|
54
|
+
columns,
|
|
55
|
+
title,
|
|
56
|
+
description,
|
|
57
|
+
errorText,
|
|
58
|
+
height,
|
|
59
|
+
additionalComments
|
|
60
|
+
}) {
|
|
61
|
+
const theme = useDocyrusRNAssistantTheme();
|
|
62
|
+
const [expanded, setExpanded] = useState(true);
|
|
63
|
+
const [modalOpen, setModalOpen] = useState(false);
|
|
64
|
+
const {
|
|
65
|
+
rows,
|
|
66
|
+
error: parseError
|
|
67
|
+
} = useMemo(() => parseData(data), [data]);
|
|
68
|
+
const resolvedColumns = useMemo(() => {
|
|
69
|
+
if (columns && columns.length > 0) {
|
|
70
|
+
// Normalize: ensure every column has a field
|
|
71
|
+
return columns.map(col => ({
|
|
72
|
+
...col,
|
|
73
|
+
field: col.field || col.key || col.name || col.title || ''
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
if (rows.length === 0) return [];
|
|
77
|
+
return Object.keys(rows[0]).map(key => ({
|
|
78
|
+
field: key,
|
|
79
|
+
title: key
|
|
80
|
+
}));
|
|
81
|
+
}, [columns, rows]);
|
|
82
|
+
|
|
83
|
+
// Loading state
|
|
84
|
+
if (state === 'input-streaming' || state === 'input-available') {
|
|
85
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
86
|
+
style: {
|
|
87
|
+
flexDirection: 'row',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
gap: 6,
|
|
90
|
+
paddingVertical: 5,
|
|
91
|
+
paddingHorizontal: 2
|
|
92
|
+
},
|
|
93
|
+
children: [/*#__PURE__*/_jsx(Table2, {
|
|
94
|
+
size: 12,
|
|
95
|
+
color: theme.colors.mutedForeground
|
|
96
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
97
|
+
style: {
|
|
98
|
+
fontSize: 12,
|
|
99
|
+
fontWeight: '300',
|
|
100
|
+
color: theme.colors.mutedForeground
|
|
101
|
+
},
|
|
102
|
+
children: title || 'Loading table\u2026'
|
|
103
|
+
})]
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Error state
|
|
108
|
+
if (state === 'output-error' || parseError) {
|
|
109
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
110
|
+
style: {
|
|
111
|
+
flexDirection: 'row',
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
gap: 6,
|
|
114
|
+
paddingVertical: 5,
|
|
115
|
+
paddingHorizontal: 2
|
|
116
|
+
},
|
|
117
|
+
children: [/*#__PURE__*/_jsx(XCircle, {
|
|
118
|
+
size: 12,
|
|
119
|
+
color: theme.colors.destructive
|
|
120
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
121
|
+
style: {
|
|
122
|
+
fontSize: 12,
|
|
123
|
+
color: theme.colors.destructive
|
|
124
|
+
},
|
|
125
|
+
children: parseError || errorText || 'Table error'
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (rows.length === 0) {
|
|
130
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
131
|
+
style: {
|
|
132
|
+
flexDirection: 'row',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
gap: 6,
|
|
135
|
+
paddingVertical: 5,
|
|
136
|
+
paddingHorizontal: 2
|
|
137
|
+
},
|
|
138
|
+
children: [/*#__PURE__*/_jsx(Table2, {
|
|
139
|
+
size: 12,
|
|
140
|
+
color: theme.colors.mutedForeground
|
|
141
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
142
|
+
style: {
|
|
143
|
+
fontSize: 12,
|
|
144
|
+
color: theme.colors.mutedForeground
|
|
145
|
+
},
|
|
146
|
+
children: "No data to display"
|
|
147
|
+
})]
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
const cellStyle = {
|
|
151
|
+
paddingHorizontal: 10,
|
|
152
|
+
paddingVertical: 8,
|
|
153
|
+
borderRightWidth: 1,
|
|
154
|
+
borderRightColor: theme.colors.border
|
|
155
|
+
};
|
|
156
|
+
const headerCellStyle = {
|
|
157
|
+
...cellStyle,
|
|
158
|
+
backgroundColor: theme.isDark ? theme.colors.muted : '#f8fafc'
|
|
159
|
+
};
|
|
160
|
+
const tableHeight = height || 300;
|
|
161
|
+
const renderTable = fixedHeight => {
|
|
162
|
+
const h = fixedHeight || tableHeight;
|
|
163
|
+
return /*#__PURE__*/_jsx(View, {
|
|
164
|
+
style: {
|
|
165
|
+
height: h
|
|
166
|
+
},
|
|
167
|
+
children: /*#__PURE__*/_jsx(ScrollView, {
|
|
168
|
+
horizontal: true,
|
|
169
|
+
showsHorizontalScrollIndicator: true,
|
|
170
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
171
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
172
|
+
style: {
|
|
173
|
+
flexDirection: 'row',
|
|
174
|
+
borderBottomWidth: 1,
|
|
175
|
+
borderBottomColor: theme.colors.border
|
|
176
|
+
},
|
|
177
|
+
children: resolvedColumns.map((col, ci) => /*#__PURE__*/_jsx(View, {
|
|
178
|
+
style: [headerCellStyle, col.width ? {
|
|
179
|
+
width: col.width
|
|
180
|
+
} : {
|
|
181
|
+
minWidth: 120
|
|
182
|
+
}],
|
|
183
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
184
|
+
style: {
|
|
185
|
+
fontSize: 11,
|
|
186
|
+
fontWeight: '600',
|
|
187
|
+
color: theme.colors.foreground
|
|
188
|
+
},
|
|
189
|
+
numberOfLines: 1,
|
|
190
|
+
children: col.title || col.field
|
|
191
|
+
})
|
|
192
|
+
}, `h-${ci}`))
|
|
193
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
194
|
+
nestedScrollEnabled: true,
|
|
195
|
+
children: rows.map((row, ri) => /*#__PURE__*/_jsx(View, {
|
|
196
|
+
style: {
|
|
197
|
+
flexDirection: 'row',
|
|
198
|
+
borderBottomWidth: 1,
|
|
199
|
+
borderBottomColor: theme.colors.border,
|
|
200
|
+
backgroundColor: ri % 2 === 0 ? 'transparent' : theme.isDark ? theme.colors.muted : '#f9fafb'
|
|
201
|
+
},
|
|
202
|
+
children: resolvedColumns.map((col, ci) => {
|
|
203
|
+
const val = getCellValue(row, col.field);
|
|
204
|
+
const display = val === null || val === undefined ? '-' : String(val);
|
|
205
|
+
return /*#__PURE__*/_jsx(View, {
|
|
206
|
+
style: [cellStyle, col.width ? {
|
|
207
|
+
width: col.width
|
|
208
|
+
} : {
|
|
209
|
+
minWidth: 120
|
|
210
|
+
}],
|
|
211
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
212
|
+
style: {
|
|
213
|
+
fontSize: 11,
|
|
214
|
+
color: theme.colors.foreground
|
|
215
|
+
},
|
|
216
|
+
numberOfLines: 2,
|
|
217
|
+
children: display
|
|
218
|
+
})
|
|
219
|
+
}, `c-${ri}-${ci}`);
|
|
220
|
+
})
|
|
221
|
+
}, `r-${ri}`))
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
})
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
228
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
229
|
+
style: {
|
|
230
|
+
borderRadius: 10,
|
|
231
|
+
borderWidth: 1,
|
|
232
|
+
borderColor: theme.colors.border,
|
|
233
|
+
backgroundColor: theme.colors.card,
|
|
234
|
+
overflow: 'hidden',
|
|
235
|
+
marginVertical: 4
|
|
236
|
+
},
|
|
237
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
238
|
+
onPress: () => setExpanded(!expanded),
|
|
239
|
+
activeOpacity: 0.7,
|
|
240
|
+
style: {
|
|
241
|
+
flexDirection: 'row',
|
|
242
|
+
alignItems: 'center',
|
|
243
|
+
justifyContent: 'space-between',
|
|
244
|
+
backgroundColor: theme.isDark ? theme.colors.muted : '#f9fafb',
|
|
245
|
+
paddingHorizontal: 12,
|
|
246
|
+
paddingVertical: 10
|
|
247
|
+
},
|
|
248
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
249
|
+
style: {
|
|
250
|
+
flexDirection: 'row',
|
|
251
|
+
alignItems: 'center',
|
|
252
|
+
gap: 8,
|
|
253
|
+
flex: 1
|
|
254
|
+
},
|
|
255
|
+
children: [/*#__PURE__*/_jsx(Table2, {
|
|
256
|
+
size: 16,
|
|
257
|
+
color: theme.colors.mutedForeground
|
|
258
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
259
|
+
style: {
|
|
260
|
+
flex: 1
|
|
261
|
+
},
|
|
262
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
263
|
+
style: {
|
|
264
|
+
fontSize: 13,
|
|
265
|
+
fontWeight: '500',
|
|
266
|
+
color: theme.colors.foreground
|
|
267
|
+
},
|
|
268
|
+
numberOfLines: 1,
|
|
269
|
+
children: title || 'Data Table'
|
|
270
|
+
}), description ? /*#__PURE__*/_jsx(Text, {
|
|
271
|
+
style: {
|
|
272
|
+
fontSize: 11,
|
|
273
|
+
color: theme.colors.mutedForeground,
|
|
274
|
+
marginTop: 1
|
|
275
|
+
},
|
|
276
|
+
numberOfLines: 1,
|
|
277
|
+
children: description
|
|
278
|
+
}) : null]
|
|
279
|
+
})]
|
|
280
|
+
}), /*#__PURE__*/_jsx(ChevronDown, {
|
|
281
|
+
size: 14,
|
|
282
|
+
color: theme.colors.mutedForeground,
|
|
283
|
+
style: {
|
|
284
|
+
transform: [{
|
|
285
|
+
rotate: expanded ? '180deg' : '0deg'
|
|
286
|
+
}]
|
|
287
|
+
}
|
|
288
|
+
})]
|
|
289
|
+
}), expanded ? /*#__PURE__*/_jsxs(View, {
|
|
290
|
+
children: [renderTable(), /*#__PURE__*/_jsxs(View, {
|
|
291
|
+
style: {
|
|
292
|
+
flexDirection: 'row',
|
|
293
|
+
justifyContent: 'space-between',
|
|
294
|
+
alignItems: 'center',
|
|
295
|
+
paddingHorizontal: 12,
|
|
296
|
+
paddingVertical: 6
|
|
297
|
+
},
|
|
298
|
+
children: [/*#__PURE__*/_jsxs(Text, {
|
|
299
|
+
style: {
|
|
300
|
+
fontSize: 10,
|
|
301
|
+
color: theme.colors.mutedForeground
|
|
302
|
+
},
|
|
303
|
+
children: [rows.length, " ", rows.length === 1 ? 'row' : 'rows']
|
|
304
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
305
|
+
onPress: () => setModalOpen(true),
|
|
306
|
+
hitSlop: 8,
|
|
307
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
308
|
+
style: {
|
|
309
|
+
fontSize: 10,
|
|
310
|
+
color: theme.colors.primary
|
|
311
|
+
},
|
|
312
|
+
children: "Expand"
|
|
313
|
+
})
|
|
314
|
+
})]
|
|
315
|
+
}), additionalComments ? /*#__PURE__*/_jsxs(View, {
|
|
316
|
+
style: {
|
|
317
|
+
marginHorizontal: 12,
|
|
318
|
+
marginBottom: 10,
|
|
319
|
+
padding: 10,
|
|
320
|
+
backgroundColor: '#eff6ff',
|
|
321
|
+
borderRadius: 8,
|
|
322
|
+
borderWidth: 1,
|
|
323
|
+
borderColor: '#bfdbfe'
|
|
324
|
+
},
|
|
325
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
326
|
+
style: {
|
|
327
|
+
fontSize: 11,
|
|
328
|
+
fontWeight: '500',
|
|
329
|
+
color: '#1e3a5f',
|
|
330
|
+
marginBottom: 2
|
|
331
|
+
},
|
|
332
|
+
children: "Note"
|
|
333
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
334
|
+
style: {
|
|
335
|
+
fontSize: 11,
|
|
336
|
+
color: '#1e40af'
|
|
337
|
+
},
|
|
338
|
+
children: additionalComments
|
|
339
|
+
})]
|
|
340
|
+
}) : null]
|
|
341
|
+
}) : null]
|
|
342
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
343
|
+
visible: modalOpen,
|
|
344
|
+
animationType: "slide",
|
|
345
|
+
presentationStyle: "fullScreen",
|
|
346
|
+
children: /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
347
|
+
style: {
|
|
348
|
+
flex: 1,
|
|
349
|
+
backgroundColor: theme.colors.background
|
|
350
|
+
},
|
|
351
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
352
|
+
style: {
|
|
353
|
+
flexDirection: 'row',
|
|
354
|
+
alignItems: 'center',
|
|
355
|
+
justifyContent: 'space-between',
|
|
356
|
+
backgroundColor: theme.isDark ? theme.colors.muted : '#f9fafb',
|
|
357
|
+
paddingHorizontal: 16,
|
|
358
|
+
paddingVertical: 10
|
|
359
|
+
},
|
|
360
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
361
|
+
style: {
|
|
362
|
+
flexDirection: 'row',
|
|
363
|
+
alignItems: 'center',
|
|
364
|
+
gap: 10,
|
|
365
|
+
flex: 1
|
|
366
|
+
},
|
|
367
|
+
children: [/*#__PURE__*/_jsx(Table2, {
|
|
368
|
+
size: 18,
|
|
369
|
+
color: theme.colors.mutedForeground
|
|
370
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
371
|
+
style: {
|
|
372
|
+
fontSize: 15,
|
|
373
|
+
fontWeight: '500',
|
|
374
|
+
color: theme.colors.foreground,
|
|
375
|
+
flex: 1
|
|
376
|
+
},
|
|
377
|
+
numberOfLines: 1,
|
|
378
|
+
children: title || 'Data Table'
|
|
379
|
+
})]
|
|
380
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
381
|
+
onPress: () => setModalOpen(false),
|
|
382
|
+
hitSlop: 8,
|
|
383
|
+
children: /*#__PURE__*/_jsx(X, {
|
|
384
|
+
size: 20,
|
|
385
|
+
color: theme.colors.mutedForeground
|
|
386
|
+
})
|
|
387
|
+
})]
|
|
388
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
389
|
+
style: {
|
|
390
|
+
flex: 1
|
|
391
|
+
},
|
|
392
|
+
children: renderTable(undefined)
|
|
393
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
394
|
+
style: {
|
|
395
|
+
paddingHorizontal: 16,
|
|
396
|
+
paddingVertical: 8,
|
|
397
|
+
borderTopWidth: 1,
|
|
398
|
+
borderTopColor: theme.colors.border
|
|
399
|
+
},
|
|
400
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
401
|
+
style: {
|
|
402
|
+
fontSize: 11,
|
|
403
|
+
color: theme.colors.mutedForeground
|
|
404
|
+
},
|
|
405
|
+
children: [rows.length, " ", rows.length === 1 ? 'row' : 'rows']
|
|
406
|
+
})
|
|
407
|
+
})]
|
|
408
|
+
})
|
|
409
|
+
})]
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
DataTableTool.displayName = 'DataTableTool';
|
|
413
|
+
//# sourceMappingURL=data-table-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useMemo","View","Text","TouchableOpacity","ScrollView","Modal","SafeAreaView","ChevronDown","Table2","X","XCircle","useDocyrusRNAssistantTheme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","parseData","raw","rows","error","parsed","JSON","parse","Array","isArray","nested","data","records","items","e","message","getCellValue","row","field","undefined","lowerField","toLowerCase","matchKey","Object","keys","find","k","DataTableTool","state","columns","title","description","errorText","height","additionalComments","theme","expanded","setExpanded","modalOpen","setModalOpen","parseError","resolvedColumns","length","map","col","key","name","style","flexDirection","alignItems","gap","paddingVertical","paddingHorizontal","children","size","color","colors","mutedForeground","fontSize","fontWeight","destructive","cellStyle","borderRightWidth","borderRightColor","border","headerCellStyle","backgroundColor","isDark","muted","tableHeight","renderTable","fixedHeight","h","horizontal","showsHorizontalScrollIndicator","borderBottomWidth","borderBottomColor","ci","width","minWidth","foreground","numberOfLines","nestedScrollEnabled","ri","val","display","String","borderRadius","borderWidth","borderColor","card","overflow","marginVertical","onPress","activeOpacity","justifyContent","flex","marginTop","transform","rotate","hitSlop","primary","marginHorizontal","marginBottom","padding","visible","animationType","presentationStyle","background","borderTopWidth","borderTopColor","displayName"],"sourceRoot":"../../../../../src","sources":["components/message-parts/tools/data-table-tool.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AAEzC,SACEC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,KAAK,EAAEC,YAAY,QACxD,cAAc;AACrB,SACEC,WAAW,EAAEC,MAAM,EAAEC,CAAC,EAAEC,OAAO,QAC1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AE;UAAAX,QAAA,eACAvD,KAAA,CAACb,IAAI;YAAC8D,KAAK,EAAE;cAAEW,QAAQ,EAAE,EAAE;cAAEH,KAAK,EAAEpB,KAAK,CAACqB,MAAM,CAACC;YAAgB,CAAE;YAAAJ,QAAA,GAChElD,IAAI,CAACuC,MAAM,EAAC,GAAC,EAACvC,IAAI,CAACuC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,MAAM;UAAA,CAC7C;QAAC,CACH,CAAC;MAAA,CACK;IAAC,CACV,CAAC;EAAA,CACR,CAAC;AAEP;AAEAf,aAAa,CAACoF,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -5,4 +5,6 @@ export { RequestApprovalTool } from "./request-approval-tool.js";
|
|
|
5
5
|
export { SearchWebTool } from "./search-web-tool.js";
|
|
6
6
|
export { MermaidDiagramTool } from "./mermaid-diagram-tool.js";
|
|
7
7
|
export { GenerateChartTool } from "./generate-chart-tool.js";
|
|
8
|
+
export { DataTableTool } from "./data-table-tool.js";
|
|
9
|
+
export { RequestUserInputTool } from "./request-user-input-tool.js";
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ShowImageTool","RequestApprovalTool","SearchWebTool","MermaidDiagramTool","GenerateChartTool"],"sourceRoot":"../../../../../src","sources":["components/message-parts/tools/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,sBAAmB;AACjD,SAASC,mBAAmB,QAAQ,4BAAyB;AAC7D,SAASC,aAAa,QAAQ,sBAAmB;AACjD,SAASC,kBAAkB,QAAQ,2BAAwB;AAC3D,SAASC,iBAAiB,QAAQ,0BAAuB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ShowImageTool","RequestApprovalTool","SearchWebTool","MermaidDiagramTool","GenerateChartTool","DataTableTool","RequestUserInputTool"],"sourceRoot":"../../../../../src","sources":["components/message-parts/tools/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,sBAAmB;AACjD,SAASC,mBAAmB,QAAQ,4BAAyB;AAC7D,SAASC,aAAa,QAAQ,sBAAmB;AACjD,SAASC,kBAAkB,QAAQ,2BAAwB;AAC3D,SAASC,iBAAiB,QAAQ,0BAAuB;AACzD,SAASC,aAAa,QAAQ,sBAAmB;AACjD,SAASC,oBAAoB,QAAQ,8BAA2B","ignoreList":[]}
|