@nivaro/react 0.3.40 → 0.3.42
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 +645 -16
- package/dist/index.js +814 -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/PickerExcludedRows.js +3 -3
- 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/RecordGrantTools.js +28 -28
- 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/layout-editor/settings/settings-registry.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/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
|
@@ -1,32 +1,50 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import { Clock as
|
|
4
|
-
import { useNivaroClient as
|
|
2
|
+
import { useQuery as m } from "@tanstack/react-query";
|
|
3
|
+
import { Clock as p } from "lucide-react";
|
|
4
|
+
import { useNivaroClient as h, useItemNavigation as x } from "../context.js";
|
|
5
5
|
import { get as u } from "../lib/commands.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import { usePrefetchIntent as f } from "../lib/prefetch.js";
|
|
7
|
+
import { titleCase as b, formatRelative as w, cn as k } from "../lib/utils.js";
|
|
8
|
+
import { ListSkeleton as v } from "./Skeletons.js";
|
|
9
|
+
function q({
|
|
8
10
|
limit: a = 8,
|
|
9
|
-
title:
|
|
11
|
+
title: s = "Recently viewed",
|
|
10
12
|
className: r
|
|
11
13
|
}) {
|
|
12
|
-
const
|
|
14
|
+
const i = h(), n = x(), c = f(), { data: o = [], isLoading: d } = m({
|
|
13
15
|
queryKey: ["recent-records", a],
|
|
14
|
-
queryFn: () =>
|
|
16
|
+
queryFn: () => i.request(u("/record-views/recent", { limit: a })).then((e) => e.data ?? []).catch(() => []),
|
|
15
17
|
staleTime: 3e4
|
|
16
18
|
});
|
|
17
|
-
return /* @__PURE__ */ l("div", { className:
|
|
18
|
-
/* @__PURE__ */ t("div", { className: "mb-3 flex items-center justify-between", children: /* @__PURE__ */ t("h2", { className: "text-[11px] font-medium text-slate-500", children:
|
|
19
|
-
/* @__PURE__ */ t("div", { className: "overflow-hidden rounded-xl border border-slate-200 bg-white dark:border-border dark:bg-card", children:
|
|
19
|
+
return /* @__PURE__ */ l("div", { className: k("flex flex-col", r), "data-recent-records": !0, children: [
|
|
20
|
+
/* @__PURE__ */ t("div", { className: "mb-3 flex items-center justify-between", children: /* @__PURE__ */ t("h2", { className: "text-[11px] font-medium text-slate-500", children: s }) }),
|
|
21
|
+
/* @__PURE__ */ t("div", { className: "overflow-hidden rounded-xl border border-slate-200 bg-white dark:border-border dark:bg-card", children: d ? (
|
|
22
|
+
// #3229 — rows at the real row height (label + collection line, state pill, time).
|
|
23
|
+
/* @__PURE__ */ t(
|
|
24
|
+
v,
|
|
25
|
+
{
|
|
26
|
+
header: !1,
|
|
27
|
+
rows: Math.min(a, 5),
|
|
28
|
+
rowClassName: "h-[49px] px-4",
|
|
29
|
+
columns: [
|
|
30
|
+
{ key: "label", grow: 6 },
|
|
31
|
+
{ key: "state", width: 64, shape: "badge" },
|
|
32
|
+
{ key: "when", width: 40, shape: "short" }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
) : o.length === 0 ? /* @__PURE__ */ t("p", { className: "px-4 py-3 text-[12px] text-slate-400", children: "Records you open will show up here." }) : /* @__PURE__ */ t("ul", { className: "divide-y divide-slate-100 dark:divide-border/60", children: o.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
|
|
20
37
|
"button",
|
|
21
38
|
{
|
|
22
39
|
type: "button",
|
|
23
|
-
onClick: () =>
|
|
40
|
+
onClick: () => n.open({ collection: e.collection, itemId: e.item_id }),
|
|
41
|
+
...c.record(e.collection, e.item_id),
|
|
24
42
|
className: "flex w-full items-center gap-3 px-4 py-2 text-left transition-colors hover:bg-slate-50 dark:hover:bg-muted",
|
|
25
43
|
"data-recent-record": `${e.collection}:${e.item_id}`,
|
|
26
44
|
children: [
|
|
27
45
|
/* @__PURE__ */ l("span", { className: "min-w-0 flex-1", children: [
|
|
28
46
|
/* @__PURE__ */ t("span", { className: "block truncate text-[12.5px] font-medium text-slate-800 dark:text-slate-100", children: e.label }),
|
|
29
|
-
/* @__PURE__ */ t("span", { className: "block truncate text-[10.5px] text-slate-400", children:
|
|
47
|
+
/* @__PURE__ */ t("span", { className: "block truncate text-[10.5px] text-slate-400", children: b(e.collection) })
|
|
30
48
|
] }),
|
|
31
49
|
e.state && /* @__PURE__ */ t(
|
|
32
50
|
"span",
|
|
@@ -40,8 +58,8 @@ function R({
|
|
|
40
58
|
}
|
|
41
59
|
),
|
|
42
60
|
/* @__PURE__ */ l("span", { className: "inline-flex shrink-0 items-center gap-1 text-[10.5px] tabular-nums text-slate-400", children: [
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
|
|
61
|
+
/* @__PURE__ */ t(p, { className: "h-3 w-3" }),
|
|
62
|
+
w(e.last_viewed_at)
|
|
45
63
|
] })
|
|
46
64
|
]
|
|
47
65
|
}
|
|
@@ -49,5 +67,5 @@ function R({
|
|
|
49
67
|
] });
|
|
50
68
|
}
|
|
51
69
|
export {
|
|
52
|
-
|
|
70
|
+
q as RecentRecordsRail
|
|
53
71
|
};
|