@iblai/iblai-js 2.4.0 → 2.4.1
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.
|
@@ -147569,9 +147569,12 @@ function SubmissionDetail({ platformKey, submissionId, onBack, }) {
|
|
|
147569
147569
|
: [((_b = answers) !== null && _b !== void 0 ? _b : {})];
|
|
147570
147570
|
return (jsxs("div", { className: "rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-900", children: [jsx("p", { className: "border-b border-gray-100 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:border-gray-800", children: section.title || section.key }), jsx("div", { className: "divide-y divide-gray-50 dark:divide-gray-800", children: entries.map((entry, index) => {
|
|
147571
147571
|
var _a, _b;
|
|
147572
|
-
return (jsxs("div", { className: "px-4 py-2.5", children: [section.repeatable && (jsx("p", { className: "mb-1 text-xs font-medium text-gray-400", children: t('profileApplicationsTab.entryN', { n: index + 1 }) })), jsx("dl", { className: "grid gap-x-6 gap-y-
|
|
147572
|
+
return (jsxs("div", { className: "px-4 py-2.5", children: [section.repeatable && (jsx("p", { className: "mb-1 text-xs font-medium text-gray-400", children: t('profileApplicationsTab.entryN', { n: index + 1 }) })), jsx("dl", { className: "grid gap-x-6 gap-y-3 sm:grid-cols-2", children: ((_a = section.fields) !== null && _a !== void 0 ? _a : [])
|
|
147573
147573
|
.filter((field) => field.type !== 'info')
|
|
147574
|
-
.map((field) => (jsxs("div", {
|
|
147574
|
+
.map((field) => (jsxs("div", {
|
|
147575
|
+
/* Free-text answers get the full width — they are the
|
|
147576
|
+
ones long enough to need it. */
|
|
147577
|
+
className: `min-w-0 ${field.type === 'textarea' ? 'sm:col-span-2' : ''}`, children: [jsx("dt", { className: "break-words text-xs leading-snug text-gray-500", children: field.label || field.key }), jsx("dd", { className: "mt-0.5 whitespace-pre-wrap break-words text-sm text-gray-800 dark:text-gray-200", children: masked.has(`${section.key}.${field.key}`) ? (jsxs("span", { className: "inline-flex items-center gap-1 text-gray-400", children: [jsx(EyeOff, { className: "h-3 w-3" }), t('profileApplicationsTab.maskedValue')] })) : (displayValue(field, entry[field.key], t)) })] }, field.key))) })] }, (_b = entry._id) !== null && _b !== void 0 ? _b : index));
|
|
147575
147578
|
}) })] }, section.key));
|
|
147576
147579
|
})] }), ((_l = detail.attachments) !== null && _l !== void 0 ? _l : []).length > 0 && (jsxs("section", { className: "space-y-3", children: [jsxs("h5", { className: "flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-gray-100", children: [jsx("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-400", children: jsx(Paperclip, { className: "h-3.5 w-3.5" }) }), t('profileApplicationsTab.attachmentsHeading')] }), jsx("div", { className: "flex flex-wrap gap-2", children: ((_m = detail.attachments) !== null && _m !== void 0 ? _m : []).map((attachment) => (jsxs("button", { type: "button", onClick: () => handleDownload(attachment.id, attachment.filename), className: "inline-flex items-center gap-1.5 rounded-md border border-gray-200 bg-white px-2.5 py-1.5 text-xs text-gray-700 shadow-sm hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-200 dark:hover:bg-gray-800", children: [jsx(Download, { className: "h-3.5 w-3.5" }), attachment.filename || `#${attachment.id}`] }, attachment.id))) })] })), acceptedCandidates.length > 0 && (jsxs(Fragment$1, { children: [jsx(PlacementsSection, { platformKey: platformKey, submissionId: submissionId, detail: detail, candidateLabel: candidateLabel, onAdd: () => setPlacementDialogOpen(true) }), jsx(AssignmentsSection, { platformKey: platformKey, submissionId: submissionId, detail: detail, candidateLabel: candidateLabel, onAdd: () => setAssignmentDialogOpen(true), onChanged: refetch })] })), jsx(NotesSection, { platformKey: platformKey, submissionId: submissionId, detail: detail }), jsxs("section", { className: "space-y-3", children: [jsxs("h5", { className: "flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-gray-100", children: [jsx("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-400", children: jsx(History, { className: "h-3.5 w-3.5" }) }), t('profileApplicationsTab.auditHeading')] }), ((_o = detail.status_events) !== null && _o !== void 0 ? _o : []).length === 0 ? (jsx("p", { className: "text-sm text-gray-400", children: t('profileApplicationsTab.noEvents') })) : (jsx("ul", { className: "space-y-1.5", children: ((_p = detail.status_events) !== null && _p !== void 0 ? _p : []).map((event) => {
|
|
147577
147580
|
var _a;
|
|
@@ -181846,9 +181846,12 @@ function SubmissionDetail({ platformKey, submissionId, onBack, }) {
|
|
|
181846
181846
|
: [((_b = answers) !== null && _b !== void 0 ? _b : {})];
|
|
181847
181847
|
return (jsxs("div", { className: "rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-900", children: [jsx("p", { className: "border-b border-gray-100 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:border-gray-800", children: section.title || section.key }), jsx("div", { className: "divide-y divide-gray-50 dark:divide-gray-800", children: entries.map((entry, index) => {
|
|
181848
181848
|
var _a, _b;
|
|
181849
|
-
return (jsxs("div", { className: "px-4 py-2.5", children: [section.repeatable && (jsx("p", { className: "mb-1 text-xs font-medium text-gray-400", children: t('profileApplicationsTab.entryN', { n: index + 1 }) })), jsx("dl", { className: "grid gap-x-6 gap-y-
|
|
181849
|
+
return (jsxs("div", { className: "px-4 py-2.5", children: [section.repeatable && (jsx("p", { className: "mb-1 text-xs font-medium text-gray-400", children: t('profileApplicationsTab.entryN', { n: index + 1 }) })), jsx("dl", { className: "grid gap-x-6 gap-y-3 sm:grid-cols-2", children: ((_a = section.fields) !== null && _a !== void 0 ? _a : [])
|
|
181850
181850
|
.filter((field) => field.type !== 'info')
|
|
181851
|
-
.map((field) => (jsxs("div", {
|
|
181851
|
+
.map((field) => (jsxs("div", {
|
|
181852
|
+
/* Free-text answers get the full width — they are the
|
|
181853
|
+
ones long enough to need it. */
|
|
181854
|
+
className: `min-w-0 ${field.type === 'textarea' ? 'sm:col-span-2' : ''}`, children: [jsx("dt", { className: "break-words text-xs leading-snug text-gray-500", children: field.label || field.key }), jsx("dd", { className: "mt-0.5 whitespace-pre-wrap break-words text-sm text-gray-800 dark:text-gray-200", children: masked.has(`${section.key}.${field.key}`) ? (jsxs("span", { className: "inline-flex items-center gap-1 text-gray-400", children: [jsx(EyeOff, { className: "h-3 w-3" }), t('profileApplicationsTab.maskedValue')] })) : (displayValue(field, entry[field.key], t)) })] }, field.key))) })] }, (_b = entry._id) !== null && _b !== void 0 ? _b : index));
|
|
181852
181855
|
}) })] }, section.key));
|
|
181853
181856
|
})] }), ((_l = detail.attachments) !== null && _l !== void 0 ? _l : []).length > 0 && (jsxs("section", { className: "space-y-3", children: [jsxs("h5", { className: "flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-gray-100", children: [jsx("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-400", children: jsx(Paperclip, { className: "h-3.5 w-3.5" }) }), t('profileApplicationsTab.attachmentsHeading')] }), jsx("div", { className: "flex flex-wrap gap-2", children: ((_m = detail.attachments) !== null && _m !== void 0 ? _m : []).map((attachment) => (jsxs("button", { type: "button", onClick: () => handleDownload(attachment.id, attachment.filename), className: "inline-flex items-center gap-1.5 rounded-md border border-gray-200 bg-white px-2.5 py-1.5 text-xs text-gray-700 shadow-sm hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-200 dark:hover:bg-gray-800", children: [jsx(Download, { className: "h-3.5 w-3.5" }), attachment.filename || `#${attachment.id}`] }, attachment.id))) })] })), acceptedCandidates.length > 0 && (jsxs(Fragment$1, { children: [jsx(PlacementsSection, { platformKey: platformKey, submissionId: submissionId, detail: detail, candidateLabel: candidateLabel, onAdd: () => setPlacementDialogOpen(true) }), jsx(AssignmentsSection, { platformKey: platformKey, submissionId: submissionId, detail: detail, candidateLabel: candidateLabel, onAdd: () => setAssignmentDialogOpen(true), onChanged: refetch })] })), jsx(NotesSection, { platformKey: platformKey, submissionId: submissionId, detail: detail }), jsxs("section", { className: "space-y-3", children: [jsxs("h5", { className: "flex items-center gap-2 text-sm font-semibold text-gray-900 dark:text-gray-100", children: [jsx("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-400", children: jsx(History, { className: "h-3.5 w-3.5" }) }), t('profileApplicationsTab.auditHeading')] }), ((_o = detail.status_events) !== null && _o !== void 0 ? _o : []).length === 0 ? (jsx("p", { className: "text-sm text-gray-400", children: t('profileApplicationsTab.noEvents') })) : (jsx("ul", { className: "space-y-1.5", children: ((_p = detail.status_events) !== null && _p !== void 0 ? _p : []).map((event) => {
|
|
181854
181857
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
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": {
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"axios": "1.13.6",
|
|
77
77
|
"dotenv": "16.6.1",
|
|
78
78
|
"winston": "3.19.0",
|
|
79
|
+
"@iblai/web-containers": "1.17.1",
|
|
80
|
+
"@iblai/mcp": "1.9.0",
|
|
79
81
|
"@iblai/data-layer": "1.12.5",
|
|
80
|
-
"@iblai/web-
|
|
81
|
-
"@iblai/web-utils": "2.1.13",
|
|
82
|
-
"@iblai/mcp": "1.9.0"
|
|
82
|
+
"@iblai/web-utils": "2.1.13"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@iblai/iblai-api": "4.166.0-ai",
|