@nivaro/react 0.3.17 → 0.3.19
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +243 -240
- package/dist/shared/components/CollectionBrowserView.js +439 -438
- package/dist/shared/components/ItemEditForm.js +3758 -3708
- package/dist/shared/components/ProfileView.js +38 -23
- package/dist/shared/components/RecordReadView.js +452 -430
- package/dist/shared/components/bulk/BulkActionButtons.js +113 -106
- package/dist/shared/components/chat/ChannelArchive.js +16 -17
- package/dist/shared/components/chat/ChatPanel.js +992 -930
- package/dist/shared/components/chat/Composer.js +307 -303
- package/dist/shared/components/chat/chat-core.js +8 -4
- package/dist/shared/components/chat/chat-drafts.js +60 -43
- package/dist/shared/components/help-videos/api.js +3 -0
- package/dist/shared/components/help-videos/library/HelpVideoLibrary.js +225 -177
- package/dist/shared/components/item-edit/InlineTableField.js +159 -158
- package/dist/shared/components/item-edit/RecordLiveSync.js +169 -155
- package/dist/shared/components/item-edit/RelationCombobox.js +274 -247
- package/dist/shared/components/item-edit/RowHistorySheet.js +62 -62
- package/dist/shared/components/item-edit/picker-search.js +28 -0
- package/dist/shared/components/panels/RevisionsPanel.js +268 -260
- package/dist/shared/components/profile/BrowserPushCard.js +135 -89
- package/dist/shared/components/profile/push-failure.js +76 -0
- package/dist/shared/lib/display-prefs.js +90 -0
- package/dist/shared/lib/theme-accents.js +21 -16
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ import { playNotificationSound as pe } from "../lib/notification-sound.js";
|
|
|
9
9
|
import { BRAND_ACCENT as se, parseThemeAccents as Ie, DEFAULT_THEME_ACCENTS as he } from "../lib/theme-accents.js";
|
|
10
10
|
import { announceLocalPrefs as le } from "../lib/user-sync.js";
|
|
11
11
|
import { cn as R, setDisplayTimezone as Ke } from "../lib/utils.js";
|
|
12
|
-
import { CustomStatusEditor as je, activeCustomStatus as
|
|
13
|
-
import { AgentsPanel as
|
|
12
|
+
import { CustomStatusEditor as je, activeCustomStatus as Qe } from "./CustomStatusEditor.js";
|
|
13
|
+
import { AgentsPanel as $e } from "./profile/AgentsPanel.js";
|
|
14
14
|
import { AiMemoryCard as Re, AiHistoryCard as Ue } from "./profile/AiMemoryCard.js";
|
|
15
15
|
import { BrowserPushCard as ze } from "./profile/BrowserPushCard.js";
|
|
16
16
|
import { DelegationCard as Be } from "./profile/DelegationCard.js";
|
|
@@ -246,7 +246,7 @@ function tt() {
|
|
|
246
246
|
var g;
|
|
247
247
|
const h = ((g = s.matrix) == null ? void 0 : g[r]) ?? { inapp: !0, push: !0 }, x = { ...h };
|
|
248
248
|
h.quiet_override ? delete x.quiet_override : x.quiet_override = !0, S({ matrix: { ...s.matrix ?? {}, [r]: x } });
|
|
249
|
-
},
|
|
249
|
+
}, Q = !!(p && w), B = (r) => {
|
|
250
250
|
var x;
|
|
251
251
|
const h = {};
|
|
252
252
|
for (const g of te)
|
|
@@ -260,7 +260,7 @@ function tt() {
|
|
|
260
260
|
{ value: "instant", label: "Individual email" },
|
|
261
261
|
{ value: "daily", label: "Daily summary" },
|
|
262
262
|
{ value: "off", label: "No email" }
|
|
263
|
-
],
|
|
263
|
+
], $ = ({ text: r }) => /* @__PURE__ */ e(
|
|
264
264
|
"span",
|
|
265
265
|
{
|
|
266
266
|
className: "ml-1 inline-flex h-3.5 w-3.5 cursor-help items-center justify-center rounded-full border border-slate-300 text-[9px] font-semibold normal-case tracking-normal text-slate-400 dark:border-border",
|
|
@@ -432,23 +432,23 @@ function tt() {
|
|
|
432
432
|
/* @__PURE__ */ e("th", { className: "py-1 font-semibold", children: "Category" }),
|
|
433
433
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
434
434
|
"In-app",
|
|
435
|
-
/* @__PURE__ */ e(
|
|
435
|
+
/* @__PURE__ */ e($, { text: "The notification itself: the bell badge and your Notifications inbox in the app. Off = no row is written for this category, so nothing shows anywhere in the app." })
|
|
436
436
|
] }),
|
|
437
437
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
438
438
|
"Push",
|
|
439
|
-
/* @__PURE__ */ e(
|
|
439
|
+
/* @__PURE__ */ e($, { text: "A browser / device alert (the popup you get even with the tab closed) on devices where you allowed notifications. Off keeps the in-app row but stops the device alert. Quiet hours pause pushes too." })
|
|
440
440
|
] }),
|
|
441
441
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
442
442
|
"Email",
|
|
443
|
-
/* @__PURE__ */ e(
|
|
443
|
+
/* @__PURE__ */ e($, { text: "Individual email = one message as each event happens. Daily summary = held and delivered once a day in your action summary (deliver-at time below). No email = never emailed for this category (in-app and push are unaffected)." })
|
|
444
444
|
] }),
|
|
445
445
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
446
446
|
"Sound",
|
|
447
|
-
/* @__PURE__ */ e(
|
|
447
|
+
/* @__PURE__ */ e($, { text: "A different sound for this category, or none. Default follows the Sound setting above." })
|
|
448
448
|
] }),
|
|
449
449
|
/* @__PURE__ */ t("th", { className: "py-1 text-center font-semibold", children: [
|
|
450
450
|
"Quiet hours",
|
|
451
|
-
/* @__PURE__ */ e(
|
|
451
|
+
/* @__PURE__ */ e($, { text: "Ticked = this category still pushes and emails during your quiet hours (the in-app row always lands either way). Leave it off to have quiet hours hold this category until morning. Critical alerts always get through." })
|
|
452
452
|
] })
|
|
453
453
|
] }) }),
|
|
454
454
|
/* @__PURE__ */ e("tbody", { children: te.map((r) => {
|
|
@@ -457,7 +457,7 @@ function tt() {
|
|
|
457
457
|
return /* @__PURE__ */ t("tr", { className: "border-t border-slate-100 dark:border-border", children: [
|
|
458
458
|
/* @__PURE__ */ t("td", { className: "py-1.5 text-slate-700 dark:text-foreground", children: [
|
|
459
459
|
r.label,
|
|
460
|
-
/* @__PURE__ */ e(
|
|
460
|
+
/* @__PURE__ */ e($, { text: r.help })
|
|
461
461
|
] }),
|
|
462
462
|
["inapp", "push"].map((g) => /* @__PURE__ */ e("td", { className: "py-1.5 text-center", children: /* @__PURE__ */ e(
|
|
463
463
|
"input",
|
|
@@ -502,7 +502,7 @@ function tt() {
|
|
|
502
502
|
onChange: () => W(r.key),
|
|
503
503
|
disabled: k.isPending,
|
|
504
504
|
"aria-label": `Let ${r.label} through quiet hours`,
|
|
505
|
-
title:
|
|
505
|
+
title: Q ? void 0 : "Set quiet hours above for this to matter — it is remembered either way",
|
|
506
506
|
"data-quiet-override": r.key,
|
|
507
507
|
className: "h-3.5 w-3.5"
|
|
508
508
|
}
|
|
@@ -534,11 +534,11 @@ function tt() {
|
|
|
534
534
|
/* @__PURE__ */ e("th", { className: "py-1 font-semibold", children: "Category" }),
|
|
535
535
|
/* @__PURE__ */ t("th", { className: "py-1 font-semibold", children: [
|
|
536
536
|
"Push after",
|
|
537
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__PURE__ */ e($, { text: "Still unread after this long → a browser / device push (needs a registered device; quiet hours do not apply to escalations you asked for)." })
|
|
538
538
|
] }),
|
|
539
539
|
/* @__PURE__ */ t("th", { className: "py-1 font-semibold", children: [
|
|
540
540
|
"Email after",
|
|
541
|
-
/* @__PURE__ */ e(
|
|
541
|
+
/* @__PURE__ */ e($, { text: "Still unread after this long → one email with the notification, regardless of the Email column above (No email still means no email at delivery time; this is the fallback)." })
|
|
542
542
|
] })
|
|
543
543
|
] }) }),
|
|
544
544
|
/* @__PURE__ */ e("tbody", { children: te.map((r) => {
|
|
@@ -1170,12 +1170,12 @@ function ot({
|
|
|
1170
1170
|
const D = new Image(), W = URL.createObjectURL(d);
|
|
1171
1171
|
D.onload = () => {
|
|
1172
1172
|
URL.revokeObjectURL(W);
|
|
1173
|
-
const
|
|
1174
|
-
B.width =
|
|
1173
|
+
const Q = 96, B = document.createElement("canvas");
|
|
1174
|
+
B.width = Q, B.height = Q;
|
|
1175
1175
|
const X = B.getContext("2d");
|
|
1176
1176
|
if (!X) return Z(new Error("canvas unavailable"));
|
|
1177
|
-
const ee = Math.max(
|
|
1178
|
-
X.drawImage(D, (
|
|
1177
|
+
const ee = Math.max(Q / D.width, Q / D.height), G = D.width * ee, J = D.height * ee;
|
|
1178
|
+
X.drawImage(D, (Q - G) / 2, (Q - J) / 2, G, J), A(B.toDataURL("image/jpeg", 0.85));
|
|
1179
1179
|
}, D.onerror = () => {
|
|
1180
1180
|
URL.revokeObjectURL(W), Z(new Error("not an image"));
|
|
1181
1181
|
}, D.src = W;
|
|
@@ -1266,7 +1266,7 @@ function ot({
|
|
|
1266
1266
|
/* @__PURE__ */ e(
|
|
1267
1267
|
je,
|
|
1268
1268
|
{
|
|
1269
|
-
status:
|
|
1269
|
+
status: Qe(
|
|
1270
1270
|
(U = n.preferences) == null ? void 0 : U.custom_status
|
|
1271
1271
|
),
|
|
1272
1272
|
showExpiry: !0,
|
|
@@ -1315,7 +1315,7 @@ function ot({
|
|
|
1315
1315
|
] })
|
|
1316
1316
|
] }) }),
|
|
1317
1317
|
/* @__PURE__ */ e(dt, { tab: S, onChange: f }),
|
|
1318
|
-
S === "agents" ? /* @__PURE__ */ e(
|
|
1318
|
+
S === "agents" ? /* @__PURE__ */ e($e, {}) : n ? (
|
|
1319
1319
|
// One list in reading order — you, then notifications, then access
|
|
1320
1320
|
// and security — flowing into two balanced columns. Two fixed stacks
|
|
1321
1321
|
// left thirteen cards on one side and four on the other, and the page
|
|
@@ -1517,16 +1517,31 @@ function ct() {
|
|
|
1517
1517
|
),
|
|
1518
1518
|
m && (o ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "Loading…" }) : s.length === 0 ? /* @__PURE__ */ e("p", { className: "mt-3 text-[12.5px] text-slate-400", children: "You're not in any owner groups — approvals never route to you automatically." }) : /* @__PURE__ */ e("div", { className: "mt-3 space-y-3", children: [...l.entries()].map(([c, u]) => /* @__PURE__ */ t("div", { children: [
|
|
1519
1519
|
/* @__PURE__ */ e("p", { className: "text-[11px] font-semibold uppercase tracking-wide text-slate-400", children: c }),
|
|
1520
|
-
/* @__PURE__ */ t("ul", { className: "mt-1 space-y-
|
|
1520
|
+
/* @__PURE__ */ t("ul", { className: "mt-1 space-y-1.5", children: [
|
|
1521
1521
|
u.slice(0, 40).map((n) => /* @__PURE__ */ t("li", { className: "text-[12.5px]", children: [
|
|
1522
|
-
/* @__PURE__ */ e("span", { className: "font-medium", children: n.state_label }),
|
|
1522
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: n.state_label || n.state_key }),
|
|
1523
1523
|
n.group_name && /* @__PURE__ */ t("span", { className: "text-slate-500 dark:text-muted-foreground", children: [
|
|
1524
1524
|
" ",
|
|
1525
1525
|
"— ",
|
|
1526
1526
|
n.group_name
|
|
1527
1527
|
] }),
|
|
1528
|
-
|
|
1529
|
-
(n.
|
|
1528
|
+
(n.is_default === !0 || n.is_default === 1) && /* @__PURE__ */ e("span", { className: "ml-1.5 rounded bg-slate-100 px-1 py-px text-[9.5px] text-slate-500 dark:bg-muted", children: "default" }),
|
|
1529
|
+
Array.isArray(n.filters) && n.filters.length > 0 && // "Region: KEY Zone: Zone 1" — what the matrix cell matches on.
|
|
1530
|
+
/* @__PURE__ */ e(
|
|
1531
|
+
"span",
|
|
1532
|
+
{
|
|
1533
|
+
"data-seat-filters": !0,
|
|
1534
|
+
className: "mt-0.5 flex flex-wrap gap-x-2.5 gap-y-0.5 text-[11.5px]",
|
|
1535
|
+
children: n.filters.map((b) => /* @__PURE__ */ t("span", { className: "whitespace-nowrap", children: [
|
|
1536
|
+
/* @__PURE__ */ t("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
1537
|
+
b.label ?? b.field,
|
|
1538
|
+
":"
|
|
1539
|
+
] }),
|
|
1540
|
+
" ",
|
|
1541
|
+
/* @__PURE__ */ e("span", { className: "text-slate-600 dark:text-slate-300", children: String(b.value ?? "—") })
|
|
1542
|
+
] }, b.field))
|
|
1543
|
+
}
|
|
1544
|
+
)
|
|
1530
1545
|
] }, n.group_id)),
|
|
1531
1546
|
u.length > 40 && /* @__PURE__ */ t("li", { className: "text-[11.5px] text-slate-400", children: [
|
|
1532
1547
|
"…and ",
|