@ai-matrx/messaging 0.12.3 → 0.12.5
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/CHANGELOG.md +16 -0
- package/dist/react.cjs +14 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +4 -1
- package/dist/react.js.map +1 -1
- package/dist/styles.css +65 -0
- package/package.json +10 -7
package/dist/styles.css
CHANGED
|
@@ -305,6 +305,71 @@
|
|
|
305
305
|
color: var(--mx-msg-bubble-mine-text);
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
/* Messages are authored in safe CommonMark/GFM, not flattened into a single
|
|
309
|
+
text span. Raw HTML remains inert because react-markdown does not enable an
|
|
310
|
+
HTML parser. `remark-breaks` makes an intentional single newline visible,
|
|
311
|
+
while these rules keep the document rhythm inside a compact chat bubble. */
|
|
312
|
+
.mx-msg__markdown {
|
|
313
|
+
white-space: normal;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.mx-msg__markdown > :first-child {
|
|
317
|
+
margin-top: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.mx-msg__markdown > :last-child {
|
|
321
|
+
margin-bottom: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.mx-msg__markdown p,
|
|
325
|
+
.mx-msg__markdown ul,
|
|
326
|
+
.mx-msg__markdown ol,
|
|
327
|
+
.mx-msg__markdown blockquote,
|
|
328
|
+
.mx-msg__markdown pre {
|
|
329
|
+
margin: 0 0 0.65em;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.mx-msg__markdown ul,
|
|
333
|
+
.mx-msg__markdown ol {
|
|
334
|
+
padding-left: 1.3em;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.mx-msg__markdown li + li {
|
|
338
|
+
margin-top: 0.2em;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.mx-msg__markdown blockquote {
|
|
342
|
+
border-left: 2px solid var(--mx-msg-border);
|
|
343
|
+
padding-left: 0.7em;
|
|
344
|
+
color: var(--mx-msg-text-muted);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.mx-msg__markdown code {
|
|
348
|
+
border-radius: 4px;
|
|
349
|
+
background: var(--mx-msg-bg-hover);
|
|
350
|
+
padding: 0.08em 0.3em;
|
|
351
|
+
font-family: var(--mx-msg-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
352
|
+
font-size: 0.9em;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.mx-msg__markdown pre {
|
|
356
|
+
overflow-x: auto;
|
|
357
|
+
padding: 0.65em;
|
|
358
|
+
border-radius: 6px;
|
|
359
|
+
background: var(--mx-msg-bg-hover);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.mx-msg__markdown pre code {
|
|
363
|
+
background: transparent;
|
|
364
|
+
padding: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.mx-msg__markdown a {
|
|
368
|
+
color: inherit;
|
|
369
|
+
text-decoration: underline;
|
|
370
|
+
text-underline-offset: 2px;
|
|
371
|
+
}
|
|
372
|
+
|
|
308
373
|
/* The iMessage tail: the corner nearest the avatar tightens on the last bubble
|
|
309
374
|
of a burst, which is what makes a group read as one utterance. */
|
|
310
375
|
.mx-msg__bubble--tail {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/messaging",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"description": "Enterprise, AI-native in-app messaging for Matrx clients: direct/group/org conversations with atomic direct creation, an outbox that never loses a typed message, optimistic send with echo-safe reconciliation, Matrx entity references, actionable messages with idempotent receipts, agents as participants, and a drop-in polished React UI — all realtime on @ai-matrx/realtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -60,23 +60,26 @@
|
|
|
60
60
|
"./package.json": "./package.json"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
+
"react-markdown": "^10.1.0",
|
|
64
|
+
"remark-breaks": "^4.0.0",
|
|
65
|
+
"remark-gfm": "^4.0.1",
|
|
66
|
+
"@ai-matrx/agents": "latest",
|
|
63
67
|
"@ai-matrx/kit": "latest",
|
|
64
|
-
"@ai-matrx/realtime": "latest"
|
|
65
|
-
"@ai-matrx/agents": "latest"
|
|
68
|
+
"@ai-matrx/realtime": "latest"
|
|
66
69
|
},
|
|
67
70
|
"devDependencies": {
|
|
68
71
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
69
|
-
"@supabase/supabase-js": "^2.
|
|
72
|
+
"@supabase/supabase-js": "^2.117.0",
|
|
70
73
|
"@testing-library/react": "^16.3.3",
|
|
71
|
-
"@types/node": "^26.6.
|
|
74
|
+
"@types/node": "^26.6.2",
|
|
72
75
|
"@types/react": "19.3.0",
|
|
73
76
|
"@types/react-dom": "19.3.0",
|
|
74
|
-
"jsdom": "^30.
|
|
77
|
+
"jsdom": "^30.1.1",
|
|
75
78
|
"publint": "^0.3.24",
|
|
76
79
|
"react": "^19.3.0",
|
|
77
80
|
"react-dom": "^19.3.0",
|
|
78
81
|
"tsup": "^8.5.1",
|
|
79
|
-
"typescript": "^
|
|
82
|
+
"typescript": "^6.0.3",
|
|
80
83
|
"vitest": "^5.0.1"
|
|
81
84
|
},
|
|
82
85
|
"publishConfig": {
|