@natoe/colab 0.1.9 → 0.1.10
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/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -183,6 +183,8 @@ interface CollabPanelProps {
|
|
|
183
183
|
* its compact / single-pane layout to return to the conversation list).
|
|
184
184
|
*/
|
|
185
185
|
onBack?: () => void;
|
|
186
|
+
/** Hide the patient name row in the header — set when a parent already shows it (e.g. CollabPopup title bar) */
|
|
187
|
+
hidePatientName?: boolean;
|
|
186
188
|
/** Custom class name for the outer container */
|
|
187
189
|
className?: string;
|
|
188
190
|
/** Custom inline styles for the outer container */
|
|
@@ -192,7 +194,7 @@ interface CollabPanelProps {
|
|
|
192
194
|
* Full collaboration panel: patient header + pinned bar + message thread + input.
|
|
193
195
|
* Supports reply, pin/unpin, and (optionally) seen-by indicators.
|
|
194
196
|
*/
|
|
195
|
-
declare function CollabPanel({ orderId, patientData, participantIds, showSeenBy, onBack, className, style, }: CollabPanelProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare function CollabPanel({ orderId, patientData, participantIds, showSeenBy, onBack, hidePatientName, className, style, }: CollabPanelProps): react_jsx_runtime.JSX.Element;
|
|
196
198
|
|
|
197
199
|
interface CollabPopupProps {
|
|
198
200
|
/** Order ID for this conversation */
|
|
@@ -668,9 +670,13 @@ interface PatientHeaderProps {
|
|
|
668
670
|
onOpenSettings?: () => void;
|
|
669
671
|
/** When set, renders a back-arrow button (compact inbox returning to list) */
|
|
670
672
|
onBack?: () => void;
|
|
673
|
+
/** Suppress the channel name row — use when the name is already shown in a parent title bar */
|
|
674
|
+
hideName?: boolean;
|
|
675
|
+
/** Override the displayed name — use the stored conversation.name to avoid reconstructing from patientData components */
|
|
676
|
+
displayName?: string;
|
|
671
677
|
className?: string;
|
|
672
678
|
}
|
|
673
|
-
declare function PatientHeader({ patientData, onOpenDicom, onOpenSettings, onBack, className, }: PatientHeaderProps): react_jsx_runtime.JSX.Element;
|
|
679
|
+
declare function PatientHeader({ patientData, onOpenDicom, onOpenSettings, onBack, hideName, displayName, className, }: PatientHeaderProps): react_jsx_runtime.JSX.Element;
|
|
674
680
|
|
|
675
681
|
interface MessageListHandle {
|
|
676
682
|
/** Scroll to a specific message by ID (used by pin jump-to) */
|
package/dist/index.d.ts
CHANGED
|
@@ -183,6 +183,8 @@ interface CollabPanelProps {
|
|
|
183
183
|
* its compact / single-pane layout to return to the conversation list).
|
|
184
184
|
*/
|
|
185
185
|
onBack?: () => void;
|
|
186
|
+
/** Hide the patient name row in the header — set when a parent already shows it (e.g. CollabPopup title bar) */
|
|
187
|
+
hidePatientName?: boolean;
|
|
186
188
|
/** Custom class name for the outer container */
|
|
187
189
|
className?: string;
|
|
188
190
|
/** Custom inline styles for the outer container */
|
|
@@ -192,7 +194,7 @@ interface CollabPanelProps {
|
|
|
192
194
|
* Full collaboration panel: patient header + pinned bar + message thread + input.
|
|
193
195
|
* Supports reply, pin/unpin, and (optionally) seen-by indicators.
|
|
194
196
|
*/
|
|
195
|
-
declare function CollabPanel({ orderId, patientData, participantIds, showSeenBy, onBack, className, style, }: CollabPanelProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare function CollabPanel({ orderId, patientData, participantIds, showSeenBy, onBack, hidePatientName, className, style, }: CollabPanelProps): react_jsx_runtime.JSX.Element;
|
|
196
198
|
|
|
197
199
|
interface CollabPopupProps {
|
|
198
200
|
/** Order ID for this conversation */
|
|
@@ -668,9 +670,13 @@ interface PatientHeaderProps {
|
|
|
668
670
|
onOpenSettings?: () => void;
|
|
669
671
|
/** When set, renders a back-arrow button (compact inbox returning to list) */
|
|
670
672
|
onBack?: () => void;
|
|
673
|
+
/** Suppress the channel name row — use when the name is already shown in a parent title bar */
|
|
674
|
+
hideName?: boolean;
|
|
675
|
+
/** Override the displayed name — use the stored conversation.name to avoid reconstructing from patientData components */
|
|
676
|
+
displayName?: string;
|
|
671
677
|
className?: string;
|
|
672
678
|
}
|
|
673
|
-
declare function PatientHeader({ patientData, onOpenDicom, onOpenSettings, onBack, className, }: PatientHeaderProps): react_jsx_runtime.JSX.Element;
|
|
679
|
+
declare function PatientHeader({ patientData, onOpenDicom, onOpenSettings, onBack, hideName, displayName, className, }: PatientHeaderProps): react_jsx_runtime.JSX.Element;
|
|
674
680
|
|
|
675
681
|
interface MessageListHandle {
|
|
676
682
|
/** Scroll to a specific message by ID (used by pin jump-to) */
|
package/dist/index.js
CHANGED
|
@@ -1303,6 +1303,8 @@ function PatientHeader({
|
|
|
1303
1303
|
onOpenDicom,
|
|
1304
1304
|
onOpenSettings,
|
|
1305
1305
|
onBack,
|
|
1306
|
+
hideName = false,
|
|
1307
|
+
displayName,
|
|
1306
1308
|
className
|
|
1307
1309
|
}) {
|
|
1308
1310
|
const hasDicom = !!(patientData.studyId && patientData.storageId);
|
|
@@ -1317,7 +1319,7 @@ function PatientHeader({
|
|
|
1317
1319
|
meta.push({ label: "Ref", value: patientData.referringPhysician });
|
|
1318
1320
|
}
|
|
1319
1321
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, style: styles.container, children: [
|
|
1320
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: styles.nameRow, children: [
|
|
1322
|
+
!hideName && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: styles.nameRow, children: [
|
|
1321
1323
|
onBack && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1322
1324
|
"button",
|
|
1323
1325
|
{
|
|
@@ -1329,7 +1331,7 @@ function PatientHeader({
|
|
|
1329
1331
|
children: /* @__PURE__ */ jsxRuntime.jsx(BackIcon, { size: 22, color: COLOR.neutral800 })
|
|
1330
1332
|
}
|
|
1331
1333
|
),
|
|
1332
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: styles.nameText, children: buildChannelName(patientData) })
|
|
1334
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: styles.nameText, children: displayName ?? buildChannelName(patientData) })
|
|
1333
1335
|
] }),
|
|
1334
1336
|
meta.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles.metaRow, children: meta.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("span", { style: styles.metaItem, children: [
|
|
1335
1337
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: styles.metaLabel, children: [
|
|
@@ -3758,6 +3760,7 @@ function CollabPanel({
|
|
|
3758
3760
|
participantIds,
|
|
3759
3761
|
showSeenBy = true,
|
|
3760
3762
|
onBack,
|
|
3763
|
+
hidePatientName = false,
|
|
3761
3764
|
className,
|
|
3762
3765
|
style
|
|
3763
3766
|
}) {
|
|
@@ -3866,7 +3869,9 @@ function CollabPanel({
|
|
|
3866
3869
|
participants,
|
|
3867
3870
|
onOpenDicom: handleOpenDicom,
|
|
3868
3871
|
onOpenSettings: () => setShowSettings(true),
|
|
3869
|
-
onBack
|
|
3872
|
+
onBack,
|
|
3873
|
+
hideName: hidePatientName,
|
|
3874
|
+
displayName: conversation?.name
|
|
3870
3875
|
}
|
|
3871
3876
|
),
|
|
3872
3877
|
pinnedMessages.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4138,7 +4143,7 @@ function CollabPopup({
|
|
|
4138
4143
|
)
|
|
4139
4144
|
] })
|
|
4140
4145
|
] }),
|
|
4141
|
-
!isMinimized && /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles13.panelWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(CollabPanel, { orderId, patientData, participantIds }) })
|
|
4146
|
+
!isMinimized && /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles13.panelWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(CollabPanel, { orderId, patientData, participantIds, hidePatientName: true }) })
|
|
4142
4147
|
]
|
|
4143
4148
|
}
|
|
4144
4149
|
);
|