@uipath/apollo-wind 2.70.0 → 2.71.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/components/forms/field-control.cjs +3 -2
- package/dist/components/forms/field-control.js +3 -2
- package/dist/components/forms/validation-converter.cjs +14 -5
- package/dist/components/forms/validation-converter.js +14 -5
- package/dist/components/ui/chat-hero.cjs +244 -0
- package/dist/components/ui/chat-hero.d.ts +51 -0
- package/dist/components/ui/chat-hero.js +189 -0
- package/dist/components/ui/date-picker.cjs +6 -5
- package/dist/components/ui/date-picker.js +7 -6
- package/dist/components/ui/datetime-picker.cjs +7 -10
- package/dist/components/ui/datetime-picker.js +8 -11
- package/dist/components/ui/index.cjs +252 -230
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.js +2 -0
- package/dist/components/ui/prompt-suggestions.cjs +133 -0
- package/dist/components/ui/prompt-suggestions.d.ts +52 -0
- package/dist/components/ui/prompt-suggestions.js +90 -0
- package/dist/components/ui/quick-form-field/components/field-header.cjs +9 -4
- package/dist/components/ui/quick-form-field/components/field-header.d.ts +4 -1
- package/dist/components/ui/quick-form-field/components/field-header.js +9 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.cjs +2 -2
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.d.ts +5 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.js +2 -2
- package/dist/components/ui/quick-form-field/index.d.ts +1 -1
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +158 -222
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +6 -4
- package/dist/components/ui/quick-form-field/quick-form-field.js +159 -223
- package/dist/components/ui/quick-form-field/types.cjs +2 -2
- package/dist/components/ui/quick-form-field/types.d.ts +39 -32
- package/dist/components/ui/quick-form-field/types.js +2 -2
- package/dist/components/ui/quick-form-field/utils.cjs +5 -59
- package/dist/components/ui/quick-form-field/utils.d.ts +2 -24
- package/dist/components/ui/quick-form-field/utils.js +3 -48
- package/dist/index.cjs +40 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/lib/date-value.cjs +46 -0
- package/dist/lib/date-value.d.ts +8 -0
- package/dist/lib/date-value.js +12 -0
- package/dist/styles.css +82 -43
- package/dist/tailwind.utilities.css +15 -0
- package/package.json +1 -1
- package/dist/components/custom/chat-first-experience.cjs +0 -87
- package/dist/components/custom/chat-first-experience.d.ts +0 -24
- package/dist/components/custom/chat-first-experience.js +0 -53
- package/dist/components/custom/chat-prompt-suggestions.cjs +0 -49
- package/dist/components/custom/chat-prompt-suggestions.d.ts +0 -18
- package/dist/components/custom/chat-prompt-suggestions.js +0 -15
|
@@ -24,14 +24,12 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
formatDateTimeValue: ()=>formatDateTimeValue,
|
|
29
|
-
formatDateValue: ()=>formatDateValue,
|
|
30
|
-
getLockedDisplayValue: ()=>getLockedDisplayValue,
|
|
31
|
-
parseDateValue: ()=>parseDateValue,
|
|
27
|
+
toDateOnlyString: ()=>toDateOnlyString,
|
|
32
28
|
parseListValue: ()=>parseListValue,
|
|
33
|
-
|
|
29
|
+
DEFAULT_SELECT_OPTIONS: ()=>DEFAULT_SELECT_OPTIONS,
|
|
30
|
+
formatDateValue: ()=>formatDateValue
|
|
34
31
|
});
|
|
32
|
+
const date_value_cjs_namespaceObject = require("../../../lib/date-value.cjs");
|
|
35
33
|
const DEFAULT_SELECT_OPTIONS = [
|
|
36
34
|
{
|
|
37
35
|
label: 'Option 1',
|
|
@@ -54,17 +52,6 @@ function parseListValue(value) {
|
|
|
54
52
|
return [];
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
|
-
const DATE_ONLY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
58
|
-
function parseDateValue(value) {
|
|
59
|
-
if (DATE_ONLY_PATTERN.test(value)) {
|
|
60
|
-
const [year, month, day] = value.split('-').map(Number);
|
|
61
|
-
const date = new Date(year, month - 1, day);
|
|
62
|
-
const isValid = !Number.isNaN(date.getTime()) && date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
|
|
63
|
-
return isValid ? date : void 0;
|
|
64
|
-
}
|
|
65
|
-
const date = new Date(value);
|
|
66
|
-
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
67
|
-
}
|
|
68
55
|
function toDateOnlyString(date) {
|
|
69
56
|
const year = date.getFullYear();
|
|
70
57
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
@@ -72,61 +59,20 @@ function toDateOnlyString(date) {
|
|
|
72
59
|
return `${year}-${month}-${day}`;
|
|
73
60
|
}
|
|
74
61
|
function formatDateValue(value) {
|
|
75
|
-
const date =
|
|
62
|
+
const date = (0, date_value_cjs_namespaceObject.toDateValue)(value);
|
|
76
63
|
return date ? date.toLocaleDateString(void 0, {
|
|
77
64
|
year: 'numeric',
|
|
78
65
|
month: 'long',
|
|
79
66
|
day: 'numeric'
|
|
80
67
|
}) : value;
|
|
81
68
|
}
|
|
82
|
-
function formatDateTimeValue(value) {
|
|
83
|
-
const date = parseDateValue(value);
|
|
84
|
-
return date ? date.toLocaleString(void 0, {
|
|
85
|
-
year: 'numeric',
|
|
86
|
-
month: 'long',
|
|
87
|
-
day: 'numeric',
|
|
88
|
-
hour: 'numeric',
|
|
89
|
-
minute: '2-digit'
|
|
90
|
-
}) : value;
|
|
91
|
-
}
|
|
92
|
-
function getLockedDisplayValue(fieldType, value, options, booleanLabels = {
|
|
93
|
-
trueLabel: 'True',
|
|
94
|
-
falseLabel: 'False'
|
|
95
|
-
}) {
|
|
96
|
-
switch(fieldType){
|
|
97
|
-
case 'boolean':
|
|
98
|
-
if ('true' === value) return booleanLabels.trueLabel;
|
|
99
|
-
if ('false' === value) return booleanLabels.falseLabel;
|
|
100
|
-
return '';
|
|
101
|
-
case 'date':
|
|
102
|
-
return value ? formatDateValue(value) : '';
|
|
103
|
-
case 'datetime':
|
|
104
|
-
return value ? formatDateTimeValue(value) : '';
|
|
105
|
-
case 'single-select':
|
|
106
|
-
return options.find((option)=>option.value === value)?.label ?? value;
|
|
107
|
-
case 'multi-select':
|
|
108
|
-
{
|
|
109
|
-
const parsed = parseListValue(value);
|
|
110
|
-
if (0 === parsed.length && value && '[]' !== value) return value;
|
|
111
|
-
return parsed.map((v)=>options.find((option)=>option.value === v)?.label ?? v).join(', ');
|
|
112
|
-
}
|
|
113
|
-
default:
|
|
114
|
-
return value;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
69
|
exports.DEFAULT_SELECT_OPTIONS = __webpack_exports__.DEFAULT_SELECT_OPTIONS;
|
|
118
|
-
exports.formatDateTimeValue = __webpack_exports__.formatDateTimeValue;
|
|
119
70
|
exports.formatDateValue = __webpack_exports__.formatDateValue;
|
|
120
|
-
exports.getLockedDisplayValue = __webpack_exports__.getLockedDisplayValue;
|
|
121
|
-
exports.parseDateValue = __webpack_exports__.parseDateValue;
|
|
122
71
|
exports.parseListValue = __webpack_exports__.parseListValue;
|
|
123
72
|
exports.toDateOnlyString = __webpack_exports__.toDateOnlyString;
|
|
124
73
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
125
74
|
"DEFAULT_SELECT_OPTIONS",
|
|
126
|
-
"formatDateTimeValue",
|
|
127
75
|
"formatDateValue",
|
|
128
|
-
"getLockedDisplayValue",
|
|
129
|
-
"parseDateValue",
|
|
130
76
|
"parseListValue",
|
|
131
77
|
"toDateOnlyString"
|
|
132
78
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { QuickFormFieldOption } from './types';
|
|
2
2
|
export declare const DEFAULT_SELECT_OPTIONS: QuickFormFieldOption[];
|
|
3
3
|
export declare function parseListValue(value: string): string[];
|
|
4
|
-
/**
|
|
5
|
-
* Parses a date field's stored value, returning undefined for empty or invalid input.
|
|
6
|
-
*
|
|
7
|
-
* Date-only strings (`YYYY-MM-DD`) are parsed as a local date instead of going through
|
|
8
|
-
* `new Date(string)` directly -- the latter treats date-only strings as UTC midnight,
|
|
9
|
-
* which rolls over to the previous day once formatted in a negative-UTC-offset
|
|
10
|
-
* timezone. Full ISO timestamps (which already carry explicit time/zone info) go
|
|
11
|
-
* through `new Date` as-is.
|
|
12
|
-
*/
|
|
13
|
-
export declare function parseDateValue(value: string): Date | undefined;
|
|
14
|
-
/** Formats a Date as a local `YYYY-MM-DD` string, the inverse of parseDateValue's date-only path. */
|
|
4
|
+
/** Formats a Date as a local `YYYY-MM-DD` string, which `toDateValue` reads back as a local date. */
|
|
15
5
|
export declare function toDateOnlyString(date: Date): string;
|
|
16
6
|
/** Formats a date field's value for display, falling back to the raw value if it isn't a valid date. */
|
|
17
7
|
export declare function formatDateValue(value: string): string;
|
|
18
|
-
/** Formats a datetime field's value, falling back to the raw value when unparseable. */
|
|
19
|
-
export declare function formatDateTimeValue(value: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Computes the plain-text shown in place of the real control once a field is locked.
|
|
22
|
-
* Boolean/single-select/multi-select resolve their stored value to a display label;
|
|
23
|
-
* everything else (including an invalid date, so the component never throws on
|
|
24
|
-
* external input) falls back to the raw value.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getLockedDisplayValue(fieldType: QuickFieldType, value: string, options: QuickFormFieldOption[], booleanLabels?: {
|
|
27
|
-
trueLabel: string;
|
|
28
|
-
falseLabel: string;
|
|
29
|
-
}): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { toDateValue } from "../../../lib/date-value.js";
|
|
1
2
|
const DEFAULT_SELECT_OPTIONS = [
|
|
2
3
|
{
|
|
3
4
|
label: 'Option 1',
|
|
@@ -20,17 +21,6 @@ function parseListValue(value) {
|
|
|
20
21
|
return [];
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
const DATE_ONLY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
24
|
-
function parseDateValue(value) {
|
|
25
|
-
if (DATE_ONLY_PATTERN.test(value)) {
|
|
26
|
-
const [year, month, day] = value.split('-').map(Number);
|
|
27
|
-
const date = new Date(year, month - 1, day);
|
|
28
|
-
const isValid = !Number.isNaN(date.getTime()) && date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day;
|
|
29
|
-
return isValid ? date : void 0;
|
|
30
|
-
}
|
|
31
|
-
const date = new Date(value);
|
|
32
|
-
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
33
|
-
}
|
|
34
24
|
function toDateOnlyString(date) {
|
|
35
25
|
const year = date.getFullYear();
|
|
36
26
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
@@ -38,46 +28,11 @@ function toDateOnlyString(date) {
|
|
|
38
28
|
return `${year}-${month}-${day}`;
|
|
39
29
|
}
|
|
40
30
|
function formatDateValue(value) {
|
|
41
|
-
const date =
|
|
31
|
+
const date = toDateValue(value);
|
|
42
32
|
return date ? date.toLocaleDateString(void 0, {
|
|
43
33
|
year: 'numeric',
|
|
44
34
|
month: 'long',
|
|
45
35
|
day: 'numeric'
|
|
46
36
|
}) : value;
|
|
47
37
|
}
|
|
48
|
-
|
|
49
|
-
const date = parseDateValue(value);
|
|
50
|
-
return date ? date.toLocaleString(void 0, {
|
|
51
|
-
year: 'numeric',
|
|
52
|
-
month: 'long',
|
|
53
|
-
day: 'numeric',
|
|
54
|
-
hour: 'numeric',
|
|
55
|
-
minute: '2-digit'
|
|
56
|
-
}) : value;
|
|
57
|
-
}
|
|
58
|
-
function getLockedDisplayValue(fieldType, value, options, booleanLabels = {
|
|
59
|
-
trueLabel: 'True',
|
|
60
|
-
falseLabel: 'False'
|
|
61
|
-
}) {
|
|
62
|
-
switch(fieldType){
|
|
63
|
-
case 'boolean':
|
|
64
|
-
if ('true' === value) return booleanLabels.trueLabel;
|
|
65
|
-
if ('false' === value) return booleanLabels.falseLabel;
|
|
66
|
-
return '';
|
|
67
|
-
case 'date':
|
|
68
|
-
return value ? formatDateValue(value) : '';
|
|
69
|
-
case 'datetime':
|
|
70
|
-
return value ? formatDateTimeValue(value) : '';
|
|
71
|
-
case 'single-select':
|
|
72
|
-
return options.find((option)=>option.value === value)?.label ?? value;
|
|
73
|
-
case 'multi-select':
|
|
74
|
-
{
|
|
75
|
-
const parsed = parseListValue(value);
|
|
76
|
-
if (0 === parsed.length && value && '[]' !== value) return value;
|
|
77
|
-
return parsed.map((v)=>options.find((option)=>option.value === v)?.label ?? v).join(', ');
|
|
78
|
-
}
|
|
79
|
-
default:
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
export { DEFAULT_SELECT_OPTIONS, formatDateTimeValue, formatDateValue, getLockedDisplayValue, parseDateValue, parseListValue, toDateOnlyString };
|
|
38
|
+
export { DEFAULT_SELECT_OPTIONS, formatDateValue, parseListValue, toDateOnlyString };
|
package/dist/index.cjs
CHANGED
|
@@ -130,9 +130,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
130
130
|
RadioGroup: ()=>radio_group_cjs_namespaceObject.RadioGroup,
|
|
131
131
|
GroupHeader: ()=>model_picker_index_cjs_namespaceObject.GroupHeader,
|
|
132
132
|
ValueModeSwitchDialog: ()=>field_addons_index_cjs_namespaceObject.ValueModeSwitchDialog,
|
|
133
|
+
chatHeroTitleVariants: ()=>chat_hero_cjs_namespaceObject.chatHeroTitleVariants,
|
|
133
134
|
collectContainerPaths: ()=>json_tree_view_index_cjs_namespaceObject.collectContainerPaths,
|
|
134
|
-
formatFileSize: ()=>file_validation_cjs_namespaceObject.formatFileSize,
|
|
135
135
|
DropdownMenuRadioItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuRadioItem,
|
|
136
|
+
formatFileSize: ()=>file_validation_cjs_namespaceObject.formatFileSize,
|
|
136
137
|
CommandDialog: ()=>command_cjs_namespaceObject.CommandDialog,
|
|
137
138
|
ResizableHandle: ()=>resizable_cjs_namespaceObject.ResizableHandle,
|
|
138
139
|
Accordion: ()=>accordion_cjs_namespaceObject.Accordion,
|
|
@@ -166,6 +167,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
166
167
|
TableCaption: ()=>table_cjs_namespaceObject.TableCaption,
|
|
167
168
|
validateFiles: ()=>file_validation_cjs_namespaceObject.validateFiles,
|
|
168
169
|
inferTokenTypeFromPath: ()=>prompt_editor_index_cjs_namespaceObject.inferTokenTypeFromPath,
|
|
170
|
+
DEFAULT_PROMPT_SUGGESTIONS_STRINGS: ()=>prompt_suggestions_cjs_namespaceObject.DEFAULT_PROMPT_SUGGESTIONS_STRINGS,
|
|
169
171
|
ToolCallOutput: ()=>tool_call_cjs_namespaceObject.ToolCallOutput,
|
|
170
172
|
PaginationContent: ()=>pagination_cjs_namespaceObject.PaginationContent,
|
|
171
173
|
DropdownMenuSubTrigger: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSubTrigger,
|
|
@@ -175,6 +177,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
175
177
|
SidebarMenuAction: ()=>sidebar_index_cjs_namespaceObject.SidebarMenuAction,
|
|
176
178
|
Separator: ()=>separator_cjs_namespaceObject.Separator,
|
|
177
179
|
useMessageScrollerVisibility: ()=>message_scroller_index_cjs_namespaceObject.useMessageScrollerVisibility,
|
|
180
|
+
ChatHeroHeader: ()=>chat_hero_cjs_namespaceObject.ChatHeroHeader,
|
|
178
181
|
Pagination: ()=>pagination_cjs_namespaceObject.Pagination,
|
|
179
182
|
ContextMenuContent: ()=>context_menu_cjs_namespaceObject.ContextMenuContent,
|
|
180
183
|
MessageScrollerViewport: ()=>message_scroller_index_cjs_namespaceObject.MessageScrollerViewport,
|
|
@@ -201,6 +204,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
201
204
|
createInsertVariableAction: ()=>field_actions_cjs_namespaceObject.createInsertVariableAction,
|
|
202
205
|
PanelTabs: ()=>panel_tabs_cjs_namespaceObject.PanelTabs,
|
|
203
206
|
CodeBlock: ()=>code_block_cjs_namespaceObject.CodeBlock,
|
|
207
|
+
ChatHero: ()=>chat_hero_cjs_namespaceObject.ChatHero,
|
|
204
208
|
cn: ()=>utils_cjs_namespaceObject.cn,
|
|
205
209
|
EmptyState: ()=>empty_state_cjs_namespaceObject.EmptyState,
|
|
206
210
|
PaginationNext: ()=>pagination_cjs_namespaceObject.PaginationNext,
|
|
@@ -299,6 +303,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
299
303
|
BooleanRadioGroup: ()=>boolean_radio_group_cjs_namespaceObject.BooleanRadioGroup,
|
|
300
304
|
CardDescription: ()=>card_cjs_namespaceObject.CardDescription,
|
|
301
305
|
ModalOverlay: ()=>dialog_cjs_namespaceObject.ModalOverlay,
|
|
306
|
+
promptSuggestionVariants: ()=>prompt_suggestions_cjs_namespaceObject.promptSuggestionVariants,
|
|
302
307
|
CommandSeparator: ()=>command_cjs_namespaceObject.CommandSeparator,
|
|
303
308
|
SidebarProvider: ()=>sidebar_index_cjs_namespaceObject.SidebarProvider,
|
|
304
309
|
Spinner: ()=>spinner_cjs_namespaceObject.Spinner,
|
|
@@ -400,10 +405,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
400
405
|
AspectRatio: ()=>aspect_ratio_cjs_namespaceObject.AspectRatio,
|
|
401
406
|
Alert: ()=>alert_cjs_namespaceObject.Alert,
|
|
402
407
|
TokenPillWithTooltip: ()=>prompt_editor_index_cjs_namespaceObject.TokenPillWithTooltip,
|
|
408
|
+
PromptSuggestions: ()=>prompt_suggestions_cjs_namespaceObject.PromptSuggestions,
|
|
403
409
|
MessageScrollerContent: ()=>message_scroller_index_cjs_namespaceObject.MessageScrollerContent,
|
|
404
410
|
PanelTabsStrip: ()=>panel_tabs_cjs_namespaceObject.PanelTabsStrip,
|
|
405
411
|
DatePicker: ()=>date_picker_cjs_namespaceObject.DatePicker,
|
|
406
412
|
MessageScroller: ()=>message_scroller_index_cjs_namespaceObject.MessageScroller,
|
|
413
|
+
chatHeroDescriptionVariants: ()=>chat_hero_cjs_namespaceObject.chatHeroDescriptionVariants,
|
|
407
414
|
PopoverAnchor: ()=>popover_cjs_namespaceObject.PopoverAnchor,
|
|
408
415
|
DrawerClose: ()=>drawer_cjs_namespaceObject.DrawerClose,
|
|
409
416
|
PickerTrigger: ()=>model_picker_index_cjs_namespaceObject.PickerTrigger,
|
|
@@ -438,6 +445,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
438
445
|
DrawerTitle: ()=>drawer_cjs_namespaceObject.DrawerTitle,
|
|
439
446
|
QuickFormField: ()=>quick_form_field_index_cjs_namespaceObject.QuickFormField,
|
|
440
447
|
DropdownMenuGroup: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuGroup,
|
|
448
|
+
promptSuggestionsListVariants: ()=>prompt_suggestions_cjs_namespaceObject.promptSuggestionsListVariants,
|
|
441
449
|
BreadcrumbLink: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbLink,
|
|
442
450
|
JsonTreeToolbar: ()=>json_tree_view_index_cjs_namespaceObject.JsonTreeToolbar,
|
|
443
451
|
DropdownMenuLabel: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,
|
|
@@ -489,6 +497,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
489
497
|
InputGroupTrigger: ()=>input_group_cjs_namespaceObject.InputGroupTrigger,
|
|
490
498
|
ModalDescription: ()=>dialog_cjs_namespaceObject.ModalDescription,
|
|
491
499
|
SidebarMenu: ()=>sidebar_index_cjs_namespaceObject.SidebarMenu,
|
|
500
|
+
chatHeroVariants: ()=>chat_hero_cjs_namespaceObject.chatHeroVariants,
|
|
492
501
|
SidebarMenuItem: ()=>sidebar_index_cjs_namespaceObject.SidebarMenuItem,
|
|
493
502
|
getAllPromptTokenNodes: ()=>prompt_editor_index_cjs_namespaceObject.getAllPromptTokenNodes,
|
|
494
503
|
BreadcrumbPage: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbPage,
|
|
@@ -511,7 +520,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
511
520
|
SidebarTrigger: ()=>sidebar_index_cjs_namespaceObject.SidebarTrigger,
|
|
512
521
|
useInputGroup: ()=>input_group_cjs_namespaceObject.useInputGroup,
|
|
513
522
|
DialogContent: ()=>dialog_cjs_namespaceObject.DialogContent,
|
|
523
|
+
ChatHeroDescription: ()=>chat_hero_cjs_namespaceObject.ChatHeroDescription,
|
|
514
524
|
FormDesigner: ()=>form_designer_cjs_namespaceObject.FormDesigner,
|
|
525
|
+
ChatHeroTitle: ()=>chat_hero_cjs_namespaceObject.ChatHeroTitle,
|
|
515
526
|
Search: ()=>search_cjs_namespaceObject.Search,
|
|
516
527
|
AlertDialogCancel: ()=>alert_dialog_cjs_namespaceObject.AlertDialogCancel,
|
|
517
528
|
InputGroupTextarea: ()=>input_group_cjs_namespaceObject.InputGroupTextarea,
|
|
@@ -520,13 +531,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
520
531
|
$insertTokenAtCursor: ()=>prompt_editor_index_cjs_namespaceObject.$insertTokenAtCursor,
|
|
521
532
|
FIELD_TYPE_META: ()=>quick_form_field_index_cjs_namespaceObject.FIELD_TYPE_META,
|
|
522
533
|
SelectTrigger: ()=>select_cjs_namespaceObject.SelectTrigger,
|
|
523
|
-
JsonMultilineLeafEditor: ()=>json_tree_view_index_cjs_namespaceObject.JsonMultilineLeafEditor,
|
|
524
534
|
DataTransformers: ()=>data_fetcher_cjs_namespaceObject.DataTransformers,
|
|
535
|
+
JsonMultilineLeafEditor: ()=>json_tree_view_index_cjs_namespaceObject.JsonMultilineLeafEditor,
|
|
525
536
|
AttachmentAction: ()=>attachment_cjs_namespaceObject.AttachmentAction,
|
|
526
537
|
DrawerTrigger: ()=>drawer_cjs_namespaceObject.DrawerTrigger,
|
|
527
538
|
DropdownMenuPortal: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuPortal,
|
|
528
539
|
HoverCardTrigger: ()=>hover_card_cjs_namespaceObject.HoverCardTrigger,
|
|
529
540
|
Breadcrumb: ()=>breadcrumb_cjs_namespaceObject.Breadcrumb,
|
|
541
|
+
ChatHeroLogo: ()=>chat_hero_cjs_namespaceObject.ChatHeroLogo,
|
|
530
542
|
ContextMenuShortcut: ()=>context_menu_cjs_namespaceObject.ContextMenuShortcut,
|
|
531
543
|
SidebarMenuSubItem: ()=>sidebar_index_cjs_namespaceObject.SidebarMenuSubItem,
|
|
532
544
|
VirtualOptionList: ()=>model_picker_index_cjs_namespaceObject.VirtualOptionList
|
|
@@ -561,6 +573,7 @@ const calendar_cjs_namespaceObject = require("./components/ui/calendar.cjs");
|
|
|
561
573
|
const card_cjs_namespaceObject = require("./components/ui/card.cjs");
|
|
562
574
|
const chart_cjs_namespaceObject = require("./components/ui/chart.cjs");
|
|
563
575
|
const chat_composer_cjs_namespaceObject = require("./components/ui/chat-composer.cjs");
|
|
576
|
+
const chat_hero_cjs_namespaceObject = require("./components/ui/chat-hero.cjs");
|
|
564
577
|
const checkbox_cjs_namespaceObject = require("./components/ui/checkbox.cjs");
|
|
565
578
|
const citation_cjs_namespaceObject = require("./components/ui/citation.cjs");
|
|
566
579
|
const code_block_cjs_namespaceObject = require("./components/ui/code-block.cjs");
|
|
@@ -606,6 +619,7 @@ const popover_cjs_namespaceObject = require("./components/ui/popover.cjs");
|
|
|
606
619
|
const portal_container_cjs_namespaceObject = require("./components/ui/portal-container.cjs");
|
|
607
620
|
const progress_cjs_namespaceObject = require("./components/ui/progress.cjs");
|
|
608
621
|
const prompt_editor_index_cjs_namespaceObject = require("./components/ui/prompt-editor/index.cjs");
|
|
622
|
+
const prompt_suggestions_cjs_namespaceObject = require("./components/ui/prompt-suggestions.cjs");
|
|
609
623
|
const prompt_value_control_cjs_namespaceObject = require("./components/ui/prompt-value-control.cjs");
|
|
610
624
|
const quick_form_field_index_cjs_namespaceObject = require("./components/ui/quick-form-field/index.cjs");
|
|
611
625
|
const radio_group_cjs_namespaceObject = require("./components/ui/radio-group.cjs");
|
|
@@ -712,6 +726,11 @@ exports.ChatComposerInputGroup = __webpack_exports__.ChatComposerInputGroup;
|
|
|
712
726
|
exports.ChatComposerSubmit = __webpack_exports__.ChatComposerSubmit;
|
|
713
727
|
exports.ChatComposerTextarea = __webpack_exports__.ChatComposerTextarea;
|
|
714
728
|
exports.ChatComposerToolbar = __webpack_exports__.ChatComposerToolbar;
|
|
729
|
+
exports.ChatHero = __webpack_exports__.ChatHero;
|
|
730
|
+
exports.ChatHeroDescription = __webpack_exports__.ChatHeroDescription;
|
|
731
|
+
exports.ChatHeroHeader = __webpack_exports__.ChatHeroHeader;
|
|
732
|
+
exports.ChatHeroLogo = __webpack_exports__.ChatHeroLogo;
|
|
733
|
+
exports.ChatHeroTitle = __webpack_exports__.ChatHeroTitle;
|
|
715
734
|
exports.Checkbox = __webpack_exports__.Checkbox;
|
|
716
735
|
exports.Citation = __webpack_exports__.Citation;
|
|
717
736
|
exports.CodeBlock = __webpack_exports__.CodeBlock;
|
|
@@ -765,6 +784,7 @@ exports.DEFAULT_METADATA_FORM_STRINGS = __webpack_exports__.DEFAULT_METADATA_FOR
|
|
|
765
784
|
exports.DEFAULT_MODEL_PICKER_LABELS = __webpack_exports__.DEFAULT_MODEL_PICKER_LABELS;
|
|
766
785
|
exports.DEFAULT_MULTI_SELECT_STRINGS = __webpack_exports__.DEFAULT_MULTI_SELECT_STRINGS;
|
|
767
786
|
exports.DEFAULT_PROMPT_EDITOR_STRINGS = __webpack_exports__.DEFAULT_PROMPT_EDITOR_STRINGS;
|
|
787
|
+
exports.DEFAULT_PROMPT_SUGGESTIONS_STRINGS = __webpack_exports__.DEFAULT_PROMPT_SUGGESTIONS_STRINGS;
|
|
768
788
|
exports.DEFAULT_QUICK_FORM_FIELD_STRINGS = __webpack_exports__.DEFAULT_QUICK_FORM_FIELD_STRINGS;
|
|
769
789
|
exports.DEFAULT_SOURCES_STRINGS = __webpack_exports__.DEFAULT_SOURCES_STRINGS;
|
|
770
790
|
exports.DEFAULT_THINKING_INDICATOR_STRINGS = __webpack_exports__.DEFAULT_THINKING_INDICATOR_STRINGS;
|
|
@@ -930,6 +950,7 @@ exports.PopoverTrigger = __webpack_exports__.PopoverTrigger;
|
|
|
930
950
|
exports.PortalContainerProvider = __webpack_exports__.PortalContainerProvider;
|
|
931
951
|
exports.Progress = __webpack_exports__.Progress;
|
|
932
952
|
exports.PromptEditor = __webpack_exports__.PromptEditor;
|
|
953
|
+
exports.PromptSuggestions = __webpack_exports__.PromptSuggestions;
|
|
933
954
|
exports.PromptValueControl = __webpack_exports__.PromptValueControl;
|
|
934
955
|
exports.QuickFormField = __webpack_exports__.QuickFormField;
|
|
935
956
|
exports.RadioGroup = __webpack_exports__.RadioGroup;
|
|
@@ -1057,6 +1078,9 @@ exports.builtInValueModes = __webpack_exports__.builtInValueModes;
|
|
|
1057
1078
|
exports.buttonVariants = __webpack_exports__.buttonVariants;
|
|
1058
1079
|
exports.chatComposerErrorVariants = __webpack_exports__.chatComposerErrorVariants;
|
|
1059
1080
|
exports.chatComposerVariants = __webpack_exports__.chatComposerVariants;
|
|
1081
|
+
exports.chatHeroDescriptionVariants = __webpack_exports__.chatHeroDescriptionVariants;
|
|
1082
|
+
exports.chatHeroTitleVariants = __webpack_exports__.chatHeroTitleVariants;
|
|
1083
|
+
exports.chatHeroVariants = __webpack_exports__.chatHeroVariants;
|
|
1060
1084
|
exports.citationVariants = __webpack_exports__.citationVariants;
|
|
1061
1085
|
exports.cn = __webpack_exports__.cn;
|
|
1062
1086
|
exports.collectContainerPaths = __webpack_exports__.collectContainerPaths;
|
|
@@ -1111,6 +1135,8 @@ exports.messageActionsVariants = __webpack_exports__.messageActionsVariants;
|
|
|
1111
1135
|
exports.normalizeRichTextTokens = __webpack_exports__.normalizeRichTextTokens;
|
|
1112
1136
|
exports.normalizeVariablePath = __webpack_exports__.normalizeVariablePath;
|
|
1113
1137
|
exports.optionDomId = __webpack_exports__.optionDomId;
|
|
1138
|
+
exports.promptSuggestionVariants = __webpack_exports__.promptSuggestionVariants;
|
|
1139
|
+
exports.promptSuggestionsListVariants = __webpack_exports__.promptSuggestionsListVariants;
|
|
1114
1140
|
exports.removeValueAtPath = __webpack_exports__.removeValueAtPath;
|
|
1115
1141
|
exports.resolveHomeGeography = __webpack_exports__.resolveHomeGeography;
|
|
1116
1142
|
exports.resolveLabels = __webpack_exports__.resolveLabels;
|
|
@@ -1210,6 +1236,11 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1210
1236
|
"ChatComposerSubmit",
|
|
1211
1237
|
"ChatComposerTextarea",
|
|
1212
1238
|
"ChatComposerToolbar",
|
|
1239
|
+
"ChatHero",
|
|
1240
|
+
"ChatHeroDescription",
|
|
1241
|
+
"ChatHeroHeader",
|
|
1242
|
+
"ChatHeroLogo",
|
|
1243
|
+
"ChatHeroTitle",
|
|
1213
1244
|
"Checkbox",
|
|
1214
1245
|
"Citation",
|
|
1215
1246
|
"CodeBlock",
|
|
@@ -1263,6 +1294,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1263
1294
|
"DEFAULT_MODEL_PICKER_LABELS",
|
|
1264
1295
|
"DEFAULT_MULTI_SELECT_STRINGS",
|
|
1265
1296
|
"DEFAULT_PROMPT_EDITOR_STRINGS",
|
|
1297
|
+
"DEFAULT_PROMPT_SUGGESTIONS_STRINGS",
|
|
1266
1298
|
"DEFAULT_QUICK_FORM_FIELD_STRINGS",
|
|
1267
1299
|
"DEFAULT_SOURCES_STRINGS",
|
|
1268
1300
|
"DEFAULT_THINKING_INDICATOR_STRINGS",
|
|
@@ -1428,6 +1460,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1428
1460
|
"PortalContainerProvider",
|
|
1429
1461
|
"Progress",
|
|
1430
1462
|
"PromptEditor",
|
|
1463
|
+
"PromptSuggestions",
|
|
1431
1464
|
"PromptValueControl",
|
|
1432
1465
|
"QuickFormField",
|
|
1433
1466
|
"RadioGroup",
|
|
@@ -1555,6 +1588,9 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1555
1588
|
"buttonVariants",
|
|
1556
1589
|
"chatComposerErrorVariants",
|
|
1557
1590
|
"chatComposerVariants",
|
|
1591
|
+
"chatHeroDescriptionVariants",
|
|
1592
|
+
"chatHeroTitleVariants",
|
|
1593
|
+
"chatHeroVariants",
|
|
1558
1594
|
"citationVariants",
|
|
1559
1595
|
"cn",
|
|
1560
1596
|
"collectContainerPaths",
|
|
@@ -1609,6 +1645,8 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1609
1645
|
"normalizeRichTextTokens",
|
|
1610
1646
|
"normalizeVariablePath",
|
|
1611
1647
|
"optionDomId",
|
|
1648
|
+
"promptSuggestionVariants",
|
|
1649
|
+
"promptSuggestionsListVariants",
|
|
1612
1650
|
"removeValueAtPath",
|
|
1613
1651
|
"resolveHomeGeography",
|
|
1614
1652
|
"resolveLabels",
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export type { ChartConfig } from './components/ui/chart';
|
|
|
44
44
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, } from './components/ui/chart';
|
|
45
45
|
export type { ChatComposerAttachButtonProps, ChatComposerAttachmentItem, ChatComposerAttachmentsProps, ChatComposerContextValue, ChatComposerDensity, ChatComposerErrorProps, ChatComposerFooterProps, ChatComposerInputGroupProps, ChatComposerProps, ChatComposerStatus, ChatComposerStrings, ChatComposerSubmitDetails, ChatComposerSubmitProps, ChatComposerTextareaProps, ChatComposerToolbarProps, } from './components/ui/chat-composer';
|
|
46
46
|
export { ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, chatComposerErrorVariants, chatComposerVariants, DEFAULT_CHAT_COMPOSER_STRINGS, useChatComposer, } from './components/ui/chat-composer';
|
|
47
|
+
export type { ChatHeroDensity, ChatHeroLayout, ChatHeroProps, ChatHeroTitleProps, } from './components/ui/chat-hero';
|
|
48
|
+
export { ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, } from './components/ui/chat-hero';
|
|
47
49
|
export type { CheckboxProps } from './components/ui/checkbox';
|
|
48
50
|
export { Checkbox } from './components/ui/checkbox';
|
|
49
51
|
export type { CitationData, CitationProps, CitationStrings } from './components/ui/citation';
|
|
@@ -124,9 +126,11 @@ export { PortalContainerProvider } from './components/ui/portal-container';
|
|
|
124
126
|
export { Progress } from './components/ui/progress';
|
|
125
127
|
export type { MarkdownPreviewTokenOverride, PromptEditorAutoCompleteOption, PromptEditorAutocompleteMenuProps, PromptEditorDiffType, PromptEditorMode, PromptEditorProps, PromptEditorRef, PromptEditorRenderTokenPill, PromptEditorStrings, PromptEditorToken, PromptEditorTokenPillSlotProps, PromptEditorTokenType, PromptEditorToolbarActiveFormats, PromptTokenNode, TokenPillProps, TokenPillWithTooltipProps, } from './components/ui/prompt-editor';
|
|
126
128
|
export { $insertTokenAtCursor, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, DEFAULT_PROMPT_EDITOR_STRINGS, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, InputTokenNode, inferTokenTypeFromPath, isPromptTokenNode, normalizeRichTextTokens, normalizeVariablePath, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, PromptEditor, ResourceTokenNode, StateTokenNode, setEditorTokens, TokenPill, TokenPillWithTooltip, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, WORD_JOINER, } from './components/ui/prompt-editor';
|
|
129
|
+
export type { PromptSuggestionItem, PromptSuggestionsDensity, PromptSuggestionsOrientation, PromptSuggestionsProps, PromptSuggestionsStrings, } from './components/ui/prompt-suggestions';
|
|
130
|
+
export { DEFAULT_PROMPT_SUGGESTIONS_STRINGS, PromptSuggestions, promptSuggestionsListVariants, promptSuggestionVariants, } from './components/ui/prompt-suggestions';
|
|
127
131
|
export type { PromptValueControlProps } from './components/ui/prompt-value-control';
|
|
128
132
|
export { PromptValueControl } from './components/ui/prompt-value-control';
|
|
129
|
-
export type { QuickFieldType, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './components/ui/quick-form-field';
|
|
133
|
+
export type { QuickFieldType, QuickFormFieldControlProps, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './components/ui/quick-form-field';
|
|
130
134
|
export { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER, QuickFormField, } from './components/ui/quick-form-field';
|
|
131
135
|
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
132
136
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from './components/ui/resizable';
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import { Calendar } from "./components/ui/calendar.js";
|
|
|
28
28
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/ui/card.js";
|
|
29
29
|
import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
|
|
30
30
|
import { ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, DEFAULT_CHAT_COMPOSER_STRINGS, chatComposerErrorVariants, chatComposerVariants, useChatComposer } from "./components/ui/chat-composer.js";
|
|
31
|
+
import { ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants } from "./components/ui/chat-hero.js";
|
|
31
32
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
32
33
|
import { Citation, DEFAULT_CITATION_STRINGS, citationVariants } from "./components/ui/citation.js";
|
|
33
34
|
import { CodeBlock, CodeBlockHeader, DEFAULT_CODE_BLOCK_STRINGS } from "./components/ui/code-block.js";
|
|
@@ -73,6 +74,7 @@ import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./compon
|
|
|
73
74
|
import { PortalContainerProvider } from "./components/ui/portal-container.js";
|
|
74
75
|
import { Progress } from "./components/ui/progress.js";
|
|
75
76
|
import { $insertTokenAtCursor, DEFAULT_PROMPT_EDITOR_STRINGS, InputTokenNode, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, PromptEditor, ResourceTokenNode, StateTokenNode, TokenPill, TokenPillWithTooltip, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, WORD_JOINER, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, inferTokenTypeFromPath, isPromptTokenNode, normalizeRichTextTokens, normalizeVariablePath, setEditorTokens } from "./components/ui/prompt-editor/index.js";
|
|
77
|
+
import { DEFAULT_PROMPT_SUGGESTIONS_STRINGS, PromptSuggestions, promptSuggestionVariants, promptSuggestionsListVariants } from "./components/ui/prompt-suggestions.js";
|
|
76
78
|
import { PromptValueControl } from "./components/ui/prompt-value-control.js";
|
|
77
79
|
import { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER, QuickFormField } from "./components/ui/quick-form-field/index.js";
|
|
78
80
|
import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.js";
|
|
@@ -105,4 +107,4 @@ import tree_view, { TreeView } from "./components/ui/tree-view.js";
|
|
|
105
107
|
import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
|
|
106
108
|
import { VariableValueControl } from "./components/ui/variable-value-control.js";
|
|
107
109
|
import { cn } from "./lib/utils.js";
|
|
108
|
-
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, Checkbox, Citation, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropzoneOverlay, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
110
|
+
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropzoneOverlay, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
toDateValue: ()=>toDateValue
|
|
28
|
+
});
|
|
29
|
+
const external_date_fns_namespaceObject = require("date-fns");
|
|
30
|
+
const DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
31
|
+
const DATE_TIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/;
|
|
32
|
+
function toDateValue(value) {
|
|
33
|
+
if (value instanceof Date) {
|
|
34
|
+
if ((0, external_date_fns_namespaceObject.isValid)(value)) return value;
|
|
35
|
+
} else if ('string' == typeof value && (DATE_PATTERN.test(value) || DATE_TIME_PATTERN.test(value))) {
|
|
36
|
+
const date = (0, external_date_fns_namespaceObject.parseISO)(value);
|
|
37
|
+
if ((0, external_date_fns_namespaceObject.isValid)(date)) return date;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.toDateValue = __webpack_exports__.toDateValue;
|
|
41
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
42
|
+
"toDateValue"
|
|
43
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
+
Object.defineProperty(exports, '__esModule', {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads a date or date-time value from untyped input, such as JSON-sourced form data.
|
|
3
|
+
*
|
|
4
|
+
* Accepts a valid `Date` or an RFC 3339 date / date-time string; a date-only string is a local
|
|
5
|
+
* calendar date. Anything else is no value: the standard parsers disagree on numbers, digit-only
|
|
6
|
+
* and locale strings, so they are not guessed at.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toDateValue(value: unknown): Date | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isValid, parseISO } from "date-fns";
|
|
2
|
+
const DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
3
|
+
const DATE_TIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/;
|
|
4
|
+
function toDateValue(value) {
|
|
5
|
+
if (value instanceof Date) {
|
|
6
|
+
if (isValid(value)) return value;
|
|
7
|
+
} else if ('string' == typeof value && (DATE_PATTERN.test(value) || DATE_TIME_PATTERN.test(value))) {
|
|
8
|
+
const date = parseISO(value);
|
|
9
|
+
if (isValid(date)) return date;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export { toDateValue };
|