Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 804754ea42 | |||
| 43d803d73f |
Generated
+4
-4
@@ -12,7 +12,7 @@
|
|||||||
"@huggingface/transformers": "^4.2.0",
|
"@huggingface/transformers": "^4.2.0",
|
||||||
"@imgly/background-removal": "^1.7.0",
|
"@imgly/background-removal": "^1.7.0",
|
||||||
"@insignia/iios-kernel-client": "^0.1.4",
|
"@insignia/iios-kernel-client": "^0.1.4",
|
||||||
"@insignia/iios-messaging-ui": "^0.1.9",
|
"@insignia/iios-messaging-ui": "^0.1.11",
|
||||||
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
||||||
"@tensorflow-models/coco-ssd": "^2.2.3",
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
||||||
"@tensorflow/tfjs": "^4.22.0",
|
"@tensorflow/tfjs": "^4.22.0",
|
||||||
@@ -1087,9 +1087,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@insignia/iios-messaging-ui": {
|
"node_modules/@insignia/iios-messaging-ui": {
|
||||||
"version": "0.1.9",
|
"version": "0.1.11",
|
||||||
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.9/iios-messaging-ui-0.1.9.tgz",
|
"resolved": "https://git.lynkedup.cloud/api/packages/insignia/npm/%40insignia%2Fiios-messaging-ui/-/0.1.11/iios-messaging-ui-0.1.11.tgz",
|
||||||
"integrity": "sha512-9kHCoYHkz1rsqJGI9l1JLQOEickUE7ujuEihM0Wx+TYowir25WTN+j5ukf04Tse3ZmyMEtgd2BNE1zmKgNGD6Q==",
|
"integrity": "sha512-S49fXgEK/sp97R49S7XSI0+Pjpy5V+nxPtOdLQOxXeGks/5ao4qvc89cI0GANCSjeCL+QmXspDVY0s5g2OxzNA==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@insignia/iios-kernel-client": "*",
|
"@insignia/iios-kernel-client": "*",
|
||||||
"react": ">=18",
|
"react": ">=18",
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
"@huggingface/transformers": "^4.2.0",
|
"@huggingface/transformers": "^4.2.0",
|
||||||
"@imgly/background-removal": "^1.7.0",
|
"@imgly/background-removal": "^1.7.0",
|
||||||
"@insignia/iios-kernel-client": "^0.1.4",
|
"@insignia/iios-kernel-client": "^0.1.4",
|
||||||
"@insignia/iios-messaging-ui": "^0.1.9",
|
"@insignia/iios-messaging-ui": "^0.1.11",
|
||||||
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
"@photo-gallery/sdk": "file:./vendor/photo-gallery-sdk",
|
||||||
"@tensorflow-models/coco-ssd": "^2.2.3",
|
"@tensorflow-models/coco-ssd": "^2.2.3",
|
||||||
"@tensorflow/tfjs": "^4.22.0",
|
"@tensorflow/tfjs": "^4.22.0",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import { useEffect, useMemo, useRef } from "react";
|
import { useEffect, useMemo, useRef } from "react";
|
||||||
import { useAppShell, useAuth } from "@abe-kap/appshell-sdk/react";
|
import { useAppShell, useAuth } from "@abe-kap/appshell-sdk/react";
|
||||||
import type { MessagingAdapter } from "@insignia/iios-messaging-ui";
|
import { stripMarkup, type MessagingAdapter } from "@insignia/iios-messaging-ui";
|
||||||
import { isShellConfigured } from "@/lib/appshell";
|
import { isShellConfigured } from "@/lib/appshell";
|
||||||
import { useRealtime } from "@/lib/realtime";
|
import { useRealtime } from "@/lib/realtime";
|
||||||
import { CrmMessagingAdapter, type DataDoor } from "@/lib/crm-messaging-adapter";
|
import { CrmMessagingAdapter, type DataDoor } from "@/lib/crm-messaging-adapter";
|
||||||
@@ -39,7 +39,8 @@ export function NotificationCenter({ active, onNavigate }: { active: string; onN
|
|||||||
toast.push({
|
toast.push({
|
||||||
tone: "info",
|
tone: "info",
|
||||||
title: "New message",
|
title: "New message",
|
||||||
desc: message.text?.slice(0, 90) || "You have a new message",
|
// Toasts are plain text, so drop the formatting markers rather than show "~crazy~".
|
||||||
|
desc: (message.text ? stripMarkup(message.text).slice(0, 90) : "") || "You have a new message",
|
||||||
onClick: () => onNavigate("messenger", threadId),
|
onClick: () => onNavigate("messenger", threadId),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user