@nivaro/react 0.3.41 → 0.3.43
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/components/LayoutForm.js +100 -98
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +733 -15
- package/dist/index.js +820 -775
- package/dist/shared/components/ActivityEntry.js +154 -0
- package/dist/shared/components/AudienceConfirmPanel.js +98 -0
- package/dist/shared/components/BackgroundRunOffer.js +43 -31
- package/dist/shared/components/BroadcastView.js +225 -204
- package/dist/shared/components/CollectionBrowserView.js +3924 -3584
- package/dist/shared/components/ConfigHistory.js +153 -0
- package/dist/shared/components/ConfigReadBack.js +65 -0
- package/dist/shared/components/DataTable.js +379 -346
- package/dist/shared/components/ForceReloadBanner.js +47 -40
- package/dist/shared/components/IdleReloadWatcher.js +69 -0
- package/dist/shared/components/ItemEditForm.js +4041 -3853
- package/dist/shared/components/MyWorkView.js +278 -213
- package/dist/shared/components/NotificationBell.js +130 -121
- package/dist/shared/components/ProfileView.js +776 -1003
- package/dist/shared/components/RecentRecordsRail.js +34 -16
- package/dist/shared/components/RecordReadView.js +500 -477
- package/dist/shared/components/Skeletons.js +199 -0
- package/dist/shared/components/SlowNotice.js +63 -0
- package/dist/shared/components/Term.js +23 -0
- package/dist/shared/components/WidgetSlot.js +350 -353
- package/dist/shared/components/access/PermissionSummary.js +106 -0
- package/dist/shared/components/bulk/BulkActionButtons.js +76 -73
- package/dist/shared/components/chat/ChatPanel.js +902 -886
- package/dist/shared/components/chat/MemberPaging.js +70 -0
- package/dist/shared/components/chat/RoomParts.js +147 -117
- package/dist/shared/components/chat/ScreenClip.js +73 -69
- package/dist/shared/components/chat/chat-core.js +449 -396
- package/dist/shared/components/chat/huddle/huddle-store.js +48 -43
- package/dist/shared/components/help-videos/api.js +2 -5
- package/dist/shared/components/help-videos/viewer/HelpVideoMatchChip.js +79 -0
- package/dist/shared/components/help-videos/viewer/matchChip.js +50 -0
- package/dist/shared/components/imports/CollectionImportPanel.js +139 -133
- package/dist/shared/components/imports/RunDetailSheet.js +222 -227
- package/dist/shared/components/integrations/console/ErrorExplanation.js +121 -0
- package/dist/shared/components/integrations/console/PartnerDetail.js +175 -174
- package/dist/shared/components/integrations/console/SubmissionRow.js +36 -34
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +50 -48
- package/dist/shared/components/item-edit/FieldComments.js +212 -0
- package/dist/shared/components/item-edit/FieldRow.js +340 -336
- package/dist/shared/components/item-edit/RecordHeaderActions.js +23 -22
- package/dist/shared/components/item-edit/RelationCombobox.js +231 -222
- package/dist/shared/components/item-edit/RuleHiddenNotes.js +55 -0
- package/dist/shared/components/item-edit/field-comments-context.js +6 -0
- package/dist/shared/components/item-edit/field-sources.js +33 -0
- package/dist/shared/components/item-edit/rule-hidden.js +30 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +113 -96
- package/dist/shared/components/layout-editor/editors/cascade-filters.js +170 -145
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +22 -18
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +177 -159
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +35 -34
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +124 -111
- package/dist/shared/components/layout-editor/inspector/kit.js +292 -277
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/list/CopyListLinkButton.js +41 -0
- package/dist/shared/components/list/InlineEdit.js +363 -0
- package/dist/shared/components/notifications/NotificationCenterView.js +213 -181
- package/dist/shared/components/notifications/NotificationDetailBits.js +205 -82
- package/dist/shared/components/notifications/NotificationRulesEditor.js +515 -0
- package/dist/shared/components/notifications/TestMyRules.js +137 -0
- package/dist/shared/components/notifications/changes-lines.js +24 -0
- package/dist/shared/components/notifications/why-lines.js +64 -0
- package/dist/shared/components/panels/CommentPanel.js +316 -281
- package/dist/shared/components/panels/LegalHoldBanner.js +38 -0
- package/dist/shared/components/panels/PipelinePanel.js +201 -196
- package/dist/shared/components/panels/RevisionsPanel.js +496 -479
- package/dist/shared/components/pipeline/PipelineEditorView.js +1587 -1560
- package/dist/shared/components/pipeline/PipelineStateOwners.js +116 -103
- package/dist/shared/components/profile/PersonDidPanel.js +188 -0
- package/dist/shared/components/profile/PersonProfile.js +57 -52
- package/dist/shared/components/queue/QueueWorklist.js +1526 -1365
- package/dist/shared/hooks/useSlowReason.js +39 -0
- package/dist/shared/lib/activity-sentence.js +670 -0
- package/dist/shared/lib/config-sentences.js +418 -0
- package/dist/shared/lib/core-glossary.js +229 -0
- package/dist/shared/lib/error-hints.js +159 -0
- package/dist/shared/lib/error-message.js +105 -0
- package/dist/shared/lib/error-toast.js +22 -0
- package/dist/shared/lib/field-comments.js +25 -0
- package/dist/shared/lib/filter-sentence.js +261 -0
- package/dist/shared/lib/glossary.js +55 -48
- package/dist/shared/lib/idle-reload.js +138 -0
- package/dist/shared/lib/layout-resolve.js +42 -29
- package/dist/shared/lib/list-inline-edit.js +190 -0
- package/dist/shared/lib/list-link.js +147 -0
- package/dist/shared/lib/nav-trail.js +107 -0
- package/dist/shared/lib/prefetch.js +259 -106
- package/dist/shared/lib/record-ref.js +72 -0
- package/dist/shared/lib/reload-holds.js +25 -0
- package/dist/shared/lib/safe-error.js +52 -24
- package/dist/shared/lib/skeleton-shapes.js +72 -0
- package/dist/shared/lib/slow-reason.js +63 -0
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Wrench as b, ChevronRight as N } from "lucide-react";
|
|
3
|
+
import { useState as k, useId as y } from "react";
|
|
4
|
+
import { useNavigation as _, useItemNavigation as E } from "../../../context.js";
|
|
5
|
+
import { cn as a } from "../../../lib/utils.js";
|
|
6
|
+
import { TONE_TEXT as f, TONE_SOFT as x } from "./tone.js";
|
|
7
|
+
function O({
|
|
8
|
+
explanation: t,
|
|
9
|
+
raw: l,
|
|
10
|
+
compact: g = !1,
|
|
11
|
+
className: c
|
|
12
|
+
}) {
|
|
13
|
+
const m = _(), u = E(), [d, v] = k(!1), p = y();
|
|
14
|
+
if (!t)
|
|
15
|
+
return l ? /* @__PURE__ */ i(
|
|
16
|
+
"p",
|
|
17
|
+
{
|
|
18
|
+
className: a(
|
|
19
|
+
"whitespace-pre-wrap break-words rounded px-2 py-1.5 text-[11.5px]",
|
|
20
|
+
x.negative,
|
|
21
|
+
f.negative,
|
|
22
|
+
c
|
|
23
|
+
),
|
|
24
|
+
children: l
|
|
25
|
+
}
|
|
26
|
+
) : null;
|
|
27
|
+
const r = t.fix;
|
|
28
|
+
let s = null, n = null;
|
|
29
|
+
if ((r == null ? void 0 : r.kind) === "record") {
|
|
30
|
+
const e = {
|
|
31
|
+
collection: r.collection,
|
|
32
|
+
itemId: r.item,
|
|
33
|
+
query: r.field ? { focus: r.field } : null
|
|
34
|
+
};
|
|
35
|
+
s = u.urlFor(e), n = () => u.open(e);
|
|
36
|
+
} else if (t.fix_link) {
|
|
37
|
+
s = m.consoleUrl ? m.consoleUrl(t.fix_link) : t.fix_link;
|
|
38
|
+
const e = s;
|
|
39
|
+
n = e ? () => m.navigate(e) : null;
|
|
40
|
+
}
|
|
41
|
+
const h = s && n ? /* @__PURE__ */ o(
|
|
42
|
+
"a",
|
|
43
|
+
{
|
|
44
|
+
href: s,
|
|
45
|
+
onClick: (e) => {
|
|
46
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0 || (e.preventDefault(), e.stopPropagation(), n == null || n());
|
|
47
|
+
},
|
|
48
|
+
"data-integration-fix": t.cause,
|
|
49
|
+
className: "inline-flex shrink-0 items-center gap-1 rounded-md border border-border bg-card px-2 py-0.5 text-[11px] font-medium text-foreground hover:bg-muted",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ i(b, { className: "h-3 w-3", "aria-hidden": !0 }),
|
|
52
|
+
t.fix_label ?? "Fix it"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
) : null;
|
|
56
|
+
return g ? /* @__PURE__ */ o(
|
|
57
|
+
"span",
|
|
58
|
+
{
|
|
59
|
+
className: a("flex min-w-0 items-center gap-2", c),
|
|
60
|
+
"data-integration-explanation": t.rule,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ i(
|
|
63
|
+
"span",
|
|
64
|
+
{
|
|
65
|
+
className: a("min-w-0 truncate text-[11.5px]", f.negative),
|
|
66
|
+
"data-tip": t.sentence.length > 70 ? t.sentence : void 0,
|
|
67
|
+
children: t.sentence
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
h
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
) : /* @__PURE__ */ o(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: a("space-y-1.5 rounded px-2 py-1.5", x.negative, c),
|
|
77
|
+
"data-integration-explanation": t.rule,
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ o("div", { className: "flex flex-wrap items-start gap-2", children: [
|
|
80
|
+
/* @__PURE__ */ i("p", { className: a("min-w-0 flex-1 text-[12px] font-medium", f.negative), children: t.sentence }),
|
|
81
|
+
h
|
|
82
|
+
] }),
|
|
83
|
+
l && /* @__PURE__ */ o("div", { children: [
|
|
84
|
+
/* @__PURE__ */ o(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
87
|
+
type: "button",
|
|
88
|
+
"aria-expanded": d,
|
|
89
|
+
"aria-controls": p,
|
|
90
|
+
onClick: (e) => {
|
|
91
|
+
e.stopPropagation(), v((w) => !w);
|
|
92
|
+
},
|
|
93
|
+
className: "inline-flex items-center gap-0.5 text-[11px] text-muted-foreground hover:text-foreground",
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ i(
|
|
96
|
+
N,
|
|
97
|
+
{
|
|
98
|
+
className: a("h-3 w-3 transition-transform", d && "rotate-90"),
|
|
99
|
+
"aria-hidden": !0
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
d ? "Hide raw" : "Show raw"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
d && /* @__PURE__ */ i(
|
|
107
|
+
"pre",
|
|
108
|
+
{
|
|
109
|
+
id: p,
|
|
110
|
+
className: "mt-1 max-h-48 overflow-auto whitespace-pre-wrap break-all rounded border border-border bg-card p-2 font-mono text-[11px] text-foreground",
|
|
111
|
+
children: l
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
O as ErrorExplanation
|
|
121
|
+
};
|