@natoe/colab 0.1.30 → 0.1.31
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 +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4829,6 +4829,7 @@ ensureGlobalStyles();
|
|
|
4829
4829
|
var FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
4830
4830
|
function CollabPopup({
|
|
4831
4831
|
orderId,
|
|
4832
|
+
conversation: providedConversation,
|
|
4832
4833
|
patientData,
|
|
4833
4834
|
participantIds,
|
|
4834
4835
|
kind,
|
|
@@ -4855,7 +4856,7 @@ function CollabPopup({
|
|
|
4855
4856
|
const containerRef = useRef(null);
|
|
4856
4857
|
const previouslyFocused = useRef(null);
|
|
4857
4858
|
const titleId = useId();
|
|
4858
|
-
const titleText = cleanChannelName(loadedConversation?.name) || buildChannelName(patientData);
|
|
4859
|
+
const titleText = cleanChannelName(loadedConversation?.name) || (patientData ? buildChannelName(patientData) : "Natoe Support");
|
|
4859
4860
|
const handleMouseDown = useCallback(
|
|
4860
4861
|
(e) => {
|
|
4861
4862
|
if (!e.target.closest("[data-drag-handle]")) return;
|
|
@@ -4960,8 +4961,9 @@ function CollabPopup({
|
|
|
4960
4961
|
}
|
|
4961
4962
|
),
|
|
4962
4963
|
/* @__PURE__ */ jsxs("div", { style: styles13.titleCenter, children: [
|
|
4963
|
-
/* @__PURE__ */ jsx("h2", { id: titleId, style: styles13.patientName, children: patientData
|
|
4964
|
+
/* @__PURE__ */ jsx("h2", { id: titleId, style: styles13.patientName, children: patientData?.patientName || titleText }),
|
|
4964
4965
|
(() => {
|
|
4966
|
+
if (!patientData) return /* @__PURE__ */ jsx("div", { style: styles13.subRow, children: /* @__PURE__ */ jsx("span", { style: styles13.metaText, children: "Help and support" }) });
|
|
4965
4967
|
const parts = [];
|
|
4966
4968
|
if (patientData.patientAge) parts.push(String(patientData.patientAge));
|
|
4967
4969
|
if (patientData.patientSex) parts.push(String(patientData.patientSex));
|
|
@@ -5018,6 +5020,7 @@ function CollabPopup({
|
|
|
5018
5020
|
CollabPanel,
|
|
5019
5021
|
{
|
|
5020
5022
|
orderId,
|
|
5023
|
+
conversation: providedConversation,
|
|
5021
5024
|
patientData,
|
|
5022
5025
|
participantIds,
|
|
5023
5026
|
kind,
|