@iblai/iblai-js 1.3.10 → 1.3.11
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.
|
@@ -59453,6 +59453,7 @@ function EducationDialog({ open, onOpenChange, org, username, education, onCompl
|
|
|
59453
59453
|
toast.error('Unable to delete education');
|
|
59454
59454
|
}
|
|
59455
59455
|
};
|
|
59456
|
+
const isCurrent = useStore(form.store, (state) => state.values.is_current);
|
|
59456
59457
|
const isSubmitting = form.state.isSubmitting || isCreating || isUpdating;
|
|
59457
59458
|
return (jsxs(Fragment$1, { children: [jsx(Dialog$1, { open: open, onOpenChange: onOpenChange, children: jsx(DialogContent$1, { className: "p-0 overflow-hidden max-w-2xl max-h-[90vh] overflow-y-auto", children: jsxs("form", { onSubmit: (event) => {
|
|
59458
59459
|
event.preventDefault();
|
|
@@ -59477,7 +59478,7 @@ function EducationDialog({ open, onOpenChange, org, username, education, onCompl
|
|
|
59477
59478
|
onChange: ({ value }) => (!value ? 'Start month is required' : undefined),
|
|
59478
59479
|
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-month", className: "h-10", "aria-label": "Start month", children: jsx(SelectValue, { placeholder: "Month" }) }), jsx(SelectContent, { children: months$1.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "education-start-year", children: "Start year" }), jsx(form.Field, { name: "start_year", validators: {
|
|
59479
59480
|
onChange: ({ value }) => (!value ? 'Start year is required' : undefined),
|
|
59480
|
-
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "education-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (
|
|
59481
|
+
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "education-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "education-end-month", className: "h-11", "aria-label": "End month", children: jsx(SelectValue, { placeholder: "Month" }) }), jsx(SelectContent, { children: months$1.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "education-end-year", children: "End year" }), jsx(form.Field, { name: "end_year", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "education-end-year", className: "h-11", "aria-label": "End year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "education-grade", children: "Grade" }), jsx(form.Field, { name: "grade", children: (field) => (jsx(Input, { id: "education-grade", className: "h-10", value: field.state.value, onChange: (event) => field.handleChange(event.target.value), placeholder: "e.g. 3.8", type: "number", min: 0, max: 4, step: "0.1" })) })] }), jsx("div", { className: "md:col-span-2", children: jsx(form.Field, { name: "is_current", children: (field) => (jsxs("div", { className: "flex items-center justify-between rounded-lg border border-gray-200 px-4 py-3", children: [jsxs("div", { children: [jsx("p", { className: "text-sm font-medium text-gray-700", children: "I currently study here" }), jsx("p", { className: "text-xs text-gray-500", children: "Disable the end date when you are still studying" })] }), jsx(Switch, { checked: field.state.value, onCheckedChange: (value) => {
|
|
59481
59482
|
field.handleChange(value);
|
|
59482
59483
|
if (value) {
|
|
59483
59484
|
// Clear end date fields when is_current is set to true
|
|
@@ -59705,6 +59706,7 @@ function ExperienceDialog({ open, onOpenChange, org, username, experience, onCom
|
|
|
59705
59706
|
toast.error('Unable to delete experience');
|
|
59706
59707
|
}
|
|
59707
59708
|
};
|
|
59709
|
+
const isCurrent = useStore(form.store, (state) => state.values.is_current);
|
|
59708
59710
|
const isSubmitting = form.state.isSubmitting || isCreating || isUpdating;
|
|
59709
59711
|
return (jsxs(Fragment$1, { children: [jsx(Dialog$1, { open: open, onOpenChange: onOpenChange, children: jsx(DialogContent$1, { className: "p-0 overflow-hidden max-w-2xl max-h-[90vh] overflow-y-auto", children: jsxs("form", { onSubmit: (event) => {
|
|
59710
59712
|
event.preventDefault();
|
|
@@ -59729,7 +59731,7 @@ function ExperienceDialog({ open, onOpenChange, org, username, experience, onCom
|
|
|
59729
59731
|
onChange: ({ value }) => (!value ? 'Start month is required' : undefined),
|
|
59730
59732
|
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-month", className: "h-10", "aria-label": "Start month", children: jsx(SelectValue, { placeholder: "Select month" }) }), jsx(SelectContent, { children: months.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "experience-start-year", children: "Start year" }), jsx(form.Field, { name: "start_year", validators: {
|
|
59731
59733
|
onChange: ({ value }) => (!value ? 'Start year is required' : undefined),
|
|
59732
|
-
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "experience-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (
|
|
59734
|
+
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "experience-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "experience-end-month", className: "h-11", "aria-label": "End month", children: jsx(SelectValue, { placeholder: "Select month" }) }), jsx(SelectContent, { children: months.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label$2, { htmlFor: "experience-end-year", children: "End year" }), jsx(form.Field, { name: "end_year", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "experience-end-year", className: "h-11", "aria-label": "End year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] })) })] }), jsx("div", { className: "md:col-span-2", children: jsx(form.Field, { name: "is_current", children: (field) => (jsxs("div", { className: "flex items-center justify-between rounded-lg border border-gray-200 px-4 py-3", children: [jsxs("div", { children: [jsx("p", { className: "text-sm font-medium text-gray-700", children: "I currently work here" }), jsx("p", { className: "text-xs text-gray-500", children: "Disable the end date when you are still working" })] }), jsx(Switch, { checked: field.state.value, onCheckedChange: (value) => {
|
|
59733
59735
|
field.handleChange(value);
|
|
59734
59736
|
if (value) {
|
|
59735
59737
|
// Clear end date fields when is_current is set to true
|
|
@@ -59252,6 +59252,7 @@ function EducationDialog({ open, onOpenChange, org, username, education, onCompl
|
|
|
59252
59252
|
toast.error('Unable to delete education');
|
|
59253
59253
|
}
|
|
59254
59254
|
};
|
|
59255
|
+
const isCurrent = useStore(form.store, (state) => state.values.is_current);
|
|
59255
59256
|
const isSubmitting = form.state.isSubmitting || isCreating || isUpdating;
|
|
59256
59257
|
return (jsxs(Fragment$1, { children: [jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: jsx(DialogContent$1, { className: "p-0 overflow-hidden max-w-2xl max-h-[90vh] overflow-y-auto", children: jsxs("form", { onSubmit: (event) => {
|
|
59257
59258
|
event.preventDefault();
|
|
@@ -59276,7 +59277,7 @@ function EducationDialog({ open, onOpenChange, org, username, education, onCompl
|
|
|
59276
59277
|
onChange: ({ value }) => (!value ? 'Start month is required' : undefined),
|
|
59277
59278
|
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-month", className: "h-10", "aria-label": "Start month", children: jsx(SelectValue, { placeholder: "Month" }) }), jsx(SelectContent, { children: months$1.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "education-start-year", children: "Start year" }), jsx(form.Field, { name: "start_year", validators: {
|
|
59278
59279
|
onChange: ({ value }) => (!value ? 'Start year is required' : undefined),
|
|
59279
|
-
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "education-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (
|
|
59280
|
+
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "education-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "education-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "education-end-month", className: "h-11", "aria-label": "End month", children: jsx(SelectValue, { placeholder: "Month" }) }), jsx(SelectContent, { children: months$1.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "education-end-year", children: "End year" }), jsx(form.Field, { name: "end_year", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "education-end-year", className: "h-11", "aria-label": "End year", children: jsx(SelectValue, { placeholder: "Year" }) }), jsx(SelectContent, { children: yearOptions$1.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "education-grade", children: "Grade" }), jsx(form.Field, { name: "grade", children: (field) => (jsx(Input, { id: "education-grade", className: "h-10", value: field.state.value, onChange: (event) => field.handleChange(event.target.value), placeholder: "e.g. 3.8", type: "number", min: 0, max: 4, step: "0.1" })) })] }), jsx("div", { className: "md:col-span-2", children: jsx(form.Field, { name: "is_current", children: (field) => (jsxs("div", { className: "flex items-center justify-between rounded-lg border border-gray-200 px-4 py-3", children: [jsxs("div", { children: [jsx("p", { className: "text-sm font-medium text-gray-700", children: "I currently study here" }), jsx("p", { className: "text-xs text-gray-500", children: "Disable the end date when you are still studying" })] }), jsx(Switch, { checked: field.state.value, onCheckedChange: (value) => {
|
|
59280
59281
|
field.handleChange(value);
|
|
59281
59282
|
if (value) {
|
|
59282
59283
|
// Clear end date fields when is_current is set to true
|
|
@@ -59504,6 +59505,7 @@ function ExperienceDialog({ open, onOpenChange, org, username, experience, onCom
|
|
|
59504
59505
|
toast.error('Unable to delete experience');
|
|
59505
59506
|
}
|
|
59506
59507
|
};
|
|
59508
|
+
const isCurrent = useStore(form.store, (state) => state.values.is_current);
|
|
59507
59509
|
const isSubmitting = form.state.isSubmitting || isCreating || isUpdating;
|
|
59508
59510
|
return (jsxs(Fragment$1, { children: [jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: jsx(DialogContent$1, { className: "p-0 overflow-hidden max-w-2xl max-h-[90vh] overflow-y-auto", children: jsxs("form", { onSubmit: (event) => {
|
|
59509
59511
|
event.preventDefault();
|
|
@@ -59528,7 +59530,7 @@ function ExperienceDialog({ open, onOpenChange, org, username, experience, onCom
|
|
|
59528
59530
|
onChange: ({ value }) => (!value ? 'Start month is required' : undefined),
|
|
59529
59531
|
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-month", className: "h-10", "aria-label": "Start month", children: jsx(SelectValue, { placeholder: "Select month" }) }), jsx(SelectContent, { children: months.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "experience-start-year", children: "Start year" }), jsx(form.Field, { name: "start_year", validators: {
|
|
59530
59532
|
onChange: ({ value }) => (!value ? 'Start year is required' : undefined),
|
|
59531
|
-
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "experience-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (
|
|
59533
|
+
}, children: (field) => (jsxs("div", { className: "space-y-2", children: [jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), children: [jsx(SelectTrigger, { id: "experience-start-year", className: "h-10", "aria-label": "Start year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] }), !field.state.meta.isValid && (jsx("p", { className: "text-sm text-red-500", children: field.state.meta.errors.join(', ') }))] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "experience-end-month", children: "End month" }), jsx(form.Field, { name: "end_month", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "experience-end-month", className: "h-11", "aria-label": "End month", children: jsx(SelectValue, { placeholder: "Select month" }) }), jsx(SelectContent, { children: months.map((month) => (jsx(SelectItem, { value: String(month.value), children: month.label }, month.value))) })] })) })] }), jsxs("div", { className: "space-y-2", children: [jsx(Label, { htmlFor: "experience-end-year", children: "End year" }), jsx(form.Field, { name: "end_year", children: (field) => (jsxs(Select$1, { value: field.state.value, onValueChange: (value) => field.handleChange(value), disabled: isCurrent, children: [jsx(SelectTrigger, { id: "experience-end-year", className: "h-11", "aria-label": "End year", children: jsx(SelectValue, { placeholder: "Select year" }) }), jsx(SelectContent, { children: yearOptions.map((year) => (jsx(SelectItem, { value: year, children: year }, year))) })] })) })] }), jsx("div", { className: "md:col-span-2", children: jsx(form.Field, { name: "is_current", children: (field) => (jsxs("div", { className: "flex items-center justify-between rounded-lg border border-gray-200 px-4 py-3", children: [jsxs("div", { children: [jsx("p", { className: "text-sm font-medium text-gray-700", children: "I currently work here" }), jsx("p", { className: "text-xs text-gray-500", children: "Disable the end date when you are still working" })] }), jsx(Switch, { checked: field.state.value, onCheckedChange: (value) => {
|
|
59532
59534
|
field.handleChange(value);
|
|
59533
59535
|
if (value) {
|
|
59534
59536
|
// Clear end date fields when is_current is set to true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"axios": "1.13.6",
|
|
62
62
|
"dotenv": "16.6.1",
|
|
63
63
|
"winston": "3.19.0",
|
|
64
|
-
"@iblai/data-layer": "1.2.8",
|
|
65
64
|
"@iblai/mcp": "1.2.3",
|
|
66
|
-
"@iblai/web-containers": "1.2.
|
|
65
|
+
"@iblai/web-containers": "1.2.7",
|
|
66
|
+
"@iblai/data-layer": "1.2.8",
|
|
67
67
|
"@iblai/web-utils": "1.2.8"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|