@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.mjs
CHANGED
|
@@ -1297,6 +1297,8 @@ function PatientHeader({
|
|
|
1297
1297
|
onOpenDicom,
|
|
1298
1298
|
onOpenSettings,
|
|
1299
1299
|
onBack,
|
|
1300
|
+
hideName = false,
|
|
1301
|
+
displayName,
|
|
1300
1302
|
className
|
|
1301
1303
|
}) {
|
|
1302
1304
|
const hasDicom = !!(patientData.studyId && patientData.storageId);
|
|
@@ -1311,7 +1313,7 @@ function PatientHeader({
|
|
|
1311
1313
|
meta.push({ label: "Ref", value: patientData.referringPhysician });
|
|
1312
1314
|
}
|
|
1313
1315
|
return /* @__PURE__ */ jsxs("div", { className, style: styles.container, children: [
|
|
1314
|
-
/* @__PURE__ */ jsxs("div", { style: styles.nameRow, children: [
|
|
1316
|
+
!hideName && /* @__PURE__ */ jsxs("div", { style: styles.nameRow, children: [
|
|
1315
1317
|
onBack && /* @__PURE__ */ jsx(
|
|
1316
1318
|
"button",
|
|
1317
1319
|
{
|
|
@@ -1323,7 +1325,7 @@ function PatientHeader({
|
|
|
1323
1325
|
children: /* @__PURE__ */ jsx(BackIcon, { size: 22, color: COLOR.neutral800 })
|
|
1324
1326
|
}
|
|
1325
1327
|
),
|
|
1326
|
-
/* @__PURE__ */ jsx("span", { style: styles.nameText, children: buildChannelName(patientData) })
|
|
1328
|
+
/* @__PURE__ */ jsx("span", { style: styles.nameText, children: displayName ?? buildChannelName(patientData) })
|
|
1327
1329
|
] }),
|
|
1328
1330
|
meta.length > 0 && /* @__PURE__ */ jsx("div", { style: styles.metaRow, children: meta.map((item) => /* @__PURE__ */ jsxs("span", { style: styles.metaItem, children: [
|
|
1329
1331
|
/* @__PURE__ */ jsxs("span", { style: styles.metaLabel, children: [
|
|
@@ -3752,6 +3754,7 @@ function CollabPanel({
|
|
|
3752
3754
|
participantIds,
|
|
3753
3755
|
showSeenBy = true,
|
|
3754
3756
|
onBack,
|
|
3757
|
+
hidePatientName = false,
|
|
3755
3758
|
className,
|
|
3756
3759
|
style
|
|
3757
3760
|
}) {
|
|
@@ -3860,7 +3863,9 @@ function CollabPanel({
|
|
|
3860
3863
|
participants,
|
|
3861
3864
|
onOpenDicom: handleOpenDicom,
|
|
3862
3865
|
onOpenSettings: () => setShowSettings(true),
|
|
3863
|
-
onBack
|
|
3866
|
+
onBack,
|
|
3867
|
+
hideName: hidePatientName,
|
|
3868
|
+
displayName: conversation?.name
|
|
3864
3869
|
}
|
|
3865
3870
|
),
|
|
3866
3871
|
pinnedMessages.length > 0 && /* @__PURE__ */ jsx(
|
|
@@ -4132,7 +4137,7 @@ function CollabPopup({
|
|
|
4132
4137
|
)
|
|
4133
4138
|
] })
|
|
4134
4139
|
] }),
|
|
4135
|
-
!isMinimized && /* @__PURE__ */ jsx("div", { style: styles13.panelWrapper, children: /* @__PURE__ */ jsx(CollabPanel, { orderId, patientData, participantIds }) })
|
|
4140
|
+
!isMinimized && /* @__PURE__ */ jsx("div", { style: styles13.panelWrapper, children: /* @__PURE__ */ jsx(CollabPanel, { orderId, patientData, participantIds, hidePatientName: true }) })
|
|
4136
4141
|
]
|
|
4137
4142
|
}
|
|
4138
4143
|
);
|