camox 0.62.0 → 0.63.0
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.
|
@@ -292,7 +292,7 @@ const PUSH_OUTCOMES = {
|
|
|
292
292
|
notPreviewed: "Built, but the preview can’t show it."
|
|
293
293
|
};
|
|
294
294
|
function ThreadMessageRow(t0) {
|
|
295
|
-
const $ = c(
|
|
295
|
+
const $ = c(44);
|
|
296
296
|
const { message, onOpenDraft } = t0;
|
|
297
297
|
if (message.from === "draft") {
|
|
298
298
|
let t1;
|
|
@@ -399,17 +399,54 @@ function ThreadMessageRow(t0) {
|
|
|
399
399
|
} else t10 = $[25];
|
|
400
400
|
return t10;
|
|
401
401
|
}
|
|
402
|
+
if (message.from === "connectedAgent") {
|
|
403
|
+
const { member, client } = message;
|
|
404
|
+
const t1 = client.verified ? void 0 : client.name;
|
|
405
|
+
const t2 = `${member.name}’s ${client.verified ? client.name : "agent"}`;
|
|
406
|
+
let t3;
|
|
407
|
+
if ($[26] !== t1 || $[27] !== t2) {
|
|
408
|
+
t3 = /* @__PURE__ */ jsx(MessageHeader, {
|
|
409
|
+
className: "text-muted-foreground text-xs",
|
|
410
|
+
title: t1,
|
|
411
|
+
children: t2
|
|
412
|
+
});
|
|
413
|
+
$[26] = t1;
|
|
414
|
+
$[27] = t2;
|
|
415
|
+
$[28] = t3;
|
|
416
|
+
} else t3 = $[28];
|
|
417
|
+
let t4;
|
|
418
|
+
if ($[29] !== message.text) {
|
|
419
|
+
t4 = /* @__PURE__ */ jsx(Bubble, {
|
|
420
|
+
variant: "muted",
|
|
421
|
+
className: "max-w-full",
|
|
422
|
+
children: /* @__PURE__ */ jsx(BubbleContent, {
|
|
423
|
+
className: "whitespace-pre-wrap",
|
|
424
|
+
children: message.text
|
|
425
|
+
})
|
|
426
|
+
});
|
|
427
|
+
$[29] = message.text;
|
|
428
|
+
$[30] = t4;
|
|
429
|
+
} else t4 = $[30];
|
|
430
|
+
let t5;
|
|
431
|
+
if ($[31] !== t3 || $[32] !== t4) {
|
|
432
|
+
t5 = /* @__PURE__ */ jsx(Message, { children: /* @__PURE__ */ jsxs(MessageContent, { children: [t3, t4] }) });
|
|
433
|
+
$[31] = t3;
|
|
434
|
+
$[32] = t4;
|
|
435
|
+
$[33] = t5;
|
|
436
|
+
} else t5 = $[33];
|
|
437
|
+
return t5;
|
|
438
|
+
}
|
|
402
439
|
if (message.from === "camox") {
|
|
403
440
|
let t1;
|
|
404
|
-
if ($[
|
|
441
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
405
442
|
t1 = /* @__PURE__ */ jsx(MessageHeader, {
|
|
406
443
|
className: "text-muted-foreground text-xs",
|
|
407
444
|
children: "Camox"
|
|
408
445
|
});
|
|
409
|
-
$[
|
|
410
|
-
} else t1 = $[
|
|
446
|
+
$[34] = t1;
|
|
447
|
+
} else t1 = $[34];
|
|
411
448
|
let t2;
|
|
412
|
-
if ($[
|
|
449
|
+
if ($[35] !== message.text) {
|
|
413
450
|
t2 = /* @__PURE__ */ jsx(Message, { children: /* @__PURE__ */ jsxs(MessageContent, { children: [t1, /* @__PURE__ */ jsx(Bubble, {
|
|
414
451
|
variant: "muted",
|
|
415
452
|
className: "max-w-full",
|
|
@@ -418,19 +455,19 @@ function ThreadMessageRow(t0) {
|
|
|
418
455
|
children: message.text
|
|
419
456
|
})
|
|
420
457
|
})] }) });
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
} else t2 = $[
|
|
458
|
+
$[35] = message.text;
|
|
459
|
+
$[36] = t2;
|
|
460
|
+
} else t2 = $[36];
|
|
424
461
|
return t2;
|
|
425
462
|
}
|
|
426
463
|
let t1;
|
|
427
|
-
if ($[
|
|
464
|
+
if ($[37] !== message.sender) {
|
|
428
465
|
t1 = /* @__PURE__ */ jsx(MessageAvatar, { children: /* @__PURE__ */ jsx(SenderAvatar, { sender: message.sender }) });
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else t1 = $[
|
|
466
|
+
$[37] = message.sender;
|
|
467
|
+
$[38] = t1;
|
|
468
|
+
} else t1 = $[38];
|
|
432
469
|
let t2;
|
|
433
|
-
if ($[
|
|
470
|
+
if ($[39] !== message.text) {
|
|
434
471
|
t2 = /* @__PURE__ */ jsx(MessageContent, { children: /* @__PURE__ */ jsx(Bubble, {
|
|
435
472
|
align: "end",
|
|
436
473
|
variant: "muted",
|
|
@@ -440,19 +477,19 @@ function ThreadMessageRow(t0) {
|
|
|
440
477
|
children: message.text
|
|
441
478
|
})
|
|
442
479
|
}) });
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
} else t2 = $[
|
|
480
|
+
$[39] = message.text;
|
|
481
|
+
$[40] = t2;
|
|
482
|
+
} else t2 = $[40];
|
|
446
483
|
let t3;
|
|
447
|
-
if ($[
|
|
484
|
+
if ($[41] !== t1 || $[42] !== t2) {
|
|
448
485
|
t3 = /* @__PURE__ */ jsxs(Message, {
|
|
449
486
|
align: "end",
|
|
450
487
|
children: [t1, t2]
|
|
451
488
|
});
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
} else t3 = $[
|
|
489
|
+
$[41] = t1;
|
|
490
|
+
$[42] = t2;
|
|
491
|
+
$[43] = t3;
|
|
492
|
+
} else t3 = $[43];
|
|
456
493
|
return t3;
|
|
457
494
|
}
|
|
458
495
|
function _temp(subject, index) {
|
package/dist/lib/locale-path.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LOCALE_HEADER } from "@camox/api-contract/drafts";
|
|
2
|
-
import {
|
|
2
|
+
import { localizedPath, parseLocalePath } from "@camox/api-contract/locales";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/locale-path.ts
|
|
5
5
|
/**
|
|
@@ -22,12 +22,6 @@ const UNNAMED_DEFAULT_LOCALE = {
|
|
|
22
22
|
function localeHeaders(locale) {
|
|
23
23
|
return locale && !locale.isDefault ? { [LOCALE_HEADER]: locale.tag } : {};
|
|
24
24
|
}
|
|
25
|
-
/** A locale-relative path under its locale's prefix, keeping its search and hash: `/` is `/de`. */
|
|
26
|
-
function localizedPath(path, locale) {
|
|
27
|
-
const prefix = localePrefix(locale);
|
|
28
|
-
if (!prefix) return path;
|
|
29
|
-
return path === "/" || /^\/[?#]/.test(path) ? `${prefix}${path.slice(1)}` : `${prefix}${path}`;
|
|
30
|
-
}
|
|
31
25
|
|
|
32
26
|
//#endregion
|
|
33
27
|
export { UNNAMED_DEFAULT_LOCALE, localeHeaders, localizedPath, parseLocalePath };
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"camox": "./bin/camox.mjs"
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@unhead/schema-org": "3.4.3",
|
|
133
133
|
"@xstate/store": "4.3.0",
|
|
134
134
|
"@xstate/store-react": "^2.1.0",
|
|
135
|
-
"better-auth": "^1.7.
|
|
135
|
+
"better-auth": "^1.7.14",
|
|
136
136
|
"fractional-indexing": "^4.0.0",
|
|
137
137
|
"hono": "^4.13.13",
|
|
138
138
|
"lexical": "^0.52.0",
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
"unhead": "^3.4.3",
|
|
149
149
|
"yaml": "^2.9.0",
|
|
150
150
|
"zod": "^4.6.7",
|
|
151
|
-
"@camox/api-contract": "0.
|
|
152
|
-
"@camox/ui": "0.
|
|
153
|
-
"@camox/cli": "0.
|
|
151
|
+
"@camox/api-contract": "0.63.0",
|
|
152
|
+
"@camox/ui": "0.63.0",
|
|
153
|
+
"@camox/cli": "0.63.0"
|
|
154
154
|
},
|
|
155
155
|
"devDependencies": {
|
|
156
156
|
"@earendil-works/pi-ai": "1.3.0",
|