@nivaro/react 0.1.280 → 0.1.281
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.ts +2 -0
- package/dist/index.js +19 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3399,6 +3399,8 @@ declare type PipelineState = {
|
|
|
3399
3399
|
sort: number;
|
|
3400
3400
|
skip_criteria?: SkipCriteria | null;
|
|
3401
3401
|
stage_visibility: 'always' | 'hide' | 'hide_unless_active';
|
|
3402
|
+
/** The state's name for outside systems — migration 341. NULL = same as label. */
|
|
3403
|
+
external_label?: string | null;
|
|
3402
3404
|
};
|
|
3403
3405
|
|
|
3404
3406
|
export declare function PipelineTransitionButtons({ collection, item, onBeforeTransition, wrap }: {
|
package/dist/index.js
CHANGED
|
@@ -71017,7 +71017,7 @@ function F8({
|
|
|
71017
71017
|
queryKey: ["notification-count"],
|
|
71018
71018
|
queryFn: () => b.request(Y2()),
|
|
71019
71019
|
refetchInterval: 6e4
|
|
71020
|
-
}), O = (w == null ? void 0 : w.unread) ?? 0, T = (w == null ? void 0 : w.attention) ?? O, q = (w == null ? void 0 : w.lanes) ?? { critical: 0, fyi: 0 }, E =
|
|
71020
|
+
}), O = (w == null ? void 0 : w.unread) ?? 0, T = (w == null ? void 0 : w.attention) ?? O, q = (w == null ? void 0 : w.lanes) ?? { critical: 0, fyi: 0 }, E = O + o, { data: j = [] } = pe({
|
|
71021
71021
|
queryKey: ["notifications", "bell", a ?? null, g],
|
|
71022
71022
|
queryFn: () => b.request(
|
|
71023
71023
|
G2({
|
|
@@ -71079,7 +71079,7 @@ function F8({
|
|
|
71079
71079
|
{ key: "attention", label: "Needs you", count: T },
|
|
71080
71080
|
{ key: "fyi", label: "FYI", count: q.fyi },
|
|
71081
71081
|
{ key: "all", label: "All", count: null }
|
|
71082
|
-
], P = () => v((V) => !V);
|
|
71082
|
+
], P = () => v((V) => (!V && g === "attention" && T === 0 && q.fyi > 0 && y("fyi"), !V));
|
|
71083
71083
|
return /* @__PURE__ */ r("div", { ref: C, className: "relative", "data-nvr-notification-bell": !0, children: [
|
|
71084
71084
|
c ? c({ open: x, badge: E, toggle: P }) : /* @__PURE__ */ r(
|
|
71085
71085
|
"button",
|
|
@@ -71087,7 +71087,7 @@ function F8({
|
|
|
71087
71087
|
type: "button",
|
|
71088
71088
|
onClick: P,
|
|
71089
71089
|
className: l ?? "relative rounded-md p-1.5 text-slate-500 transition-colors hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-muted",
|
|
71090
|
-
"aria-label": E ? `Notifications (${E}
|
|
71090
|
+
"aria-label": E ? `Notifications (${E} unread)` : "Notifications",
|
|
71091
71091
|
children: [
|
|
71092
71092
|
/* @__PURE__ */ e(gs, { className: "h-4 w-4", strokeWidth: 1.8 }),
|
|
71093
71093
|
E > 0 && /* @__PURE__ */ e(
|
|
@@ -78146,7 +78146,8 @@ function H1({
|
|
|
78146
78146
|
skip_if_no_owners: t.skip_if_no_owners ?? !1,
|
|
78147
78147
|
owners_not_required: t.owners_not_required ?? !1,
|
|
78148
78148
|
stage_visibility: t.stage_visibility ?? "always",
|
|
78149
|
-
description: t.description ?? ""
|
|
78149
|
+
description: t.description ?? "",
|
|
78150
|
+
external_label: t.external_label ?? ""
|
|
78150
78151
|
}), d = (o, u) => i((c) => ({ ...c, [o]: u }));
|
|
78151
78152
|
return /* @__PURE__ */ r("div", { className: "space-y-4 rounded-xl border border-slate-200 bg-slate-50 p-4", children: [
|
|
78152
78153
|
/* @__PURE__ */ r("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
@@ -78181,6 +78182,20 @@ function H1({
|
|
|
78181
78182
|
)
|
|
78182
78183
|
] })
|
|
78183
78184
|
] }),
|
|
78185
|
+
/* @__PURE__ */ r("div", { children: [
|
|
78186
|
+
/* @__PURE__ */ e("label", { className: "mb-1 block text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "External label" }),
|
|
78187
|
+
/* @__PURE__ */ e(
|
|
78188
|
+
"input",
|
|
78189
|
+
{
|
|
78190
|
+
value: l.external_label,
|
|
78191
|
+
onChange: (o) => d("external_label", o.target.value),
|
|
78192
|
+
placeholder: l.label || "Same as the label",
|
|
78193
|
+
className: "h-9 w-full rounded-md border border-slate-200 bg-background px-2 text-[13px] dark:border-border",
|
|
78194
|
+
"data-state-external-label": !0
|
|
78195
|
+
}
|
|
78196
|
+
),
|
|
78197
|
+
/* @__PURE__ */ e("p", { className: "mt-1 text-[11px] text-slate-500", children: "What integrations receive for this state. Blank = the label above." })
|
|
78198
|
+
] }),
|
|
78184
78199
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
78185
78200
|
/* @__PURE__ */ e(Fn, { className: "text-[12px]", children: "Color" }),
|
|
78186
78201
|
/* @__PURE__ */ e(_h, { value: l.color, onChange: (o) => d("color", o) })
|