@nivaro/react 0.3.99 → 0.3.101
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/useFormSchema.js +82 -85
- package/dist/hooks/useSessionRecorder.js +206 -175
- package/dist/index.d.ts +84 -16
- package/dist/index.js +627 -622
- package/dist/lib/commands.js +15 -11
- package/dist/shared/components/ActivityEntry.js +5 -5
- package/dist/shared/components/CollectionBrowserView.js +516 -503
- package/dist/shared/components/ItemEditForm.js +3471 -3465
- package/dist/shared/components/JobsTray.js +76 -61
- package/dist/shared/components/MyWorkView.js +133 -126
- package/dist/shared/components/NotificationBell.js +322 -289
- package/dist/shared/components/RecordCompare.js +38 -40
- package/dist/shared/components/RecordReadView.js +119 -119
- package/dist/shared/components/TipLayer.js +56 -41
- package/dist/shared/components/cbv/FoundElsewhere.js +61 -0
- package/dist/shared/components/integrations/console/SignalCard.js +40 -40
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +95 -73
- package/dist/shared/components/integrations/console/drill/status.js +23 -18
- package/dist/shared/components/item-edit/InlineGridField.js +45 -45
- package/dist/shared/components/item-edit/InlineTableField.js +750 -749
- package/dist/shared/components/item-edit/QuickPickerDialog.js +44 -44
- package/dist/shared/components/item-edit/RawEditSheet.js +122 -114
- package/dist/shared/components/item-edit/RecordInsights.js +86 -86
- package/dist/shared/components/item-edit/RelationCombobox.js +454 -378
- package/dist/shared/components/item-edit/SummaryPanel.js +56 -48
- package/dist/shared/components/item-edit/header-path-preview.js +46 -34
- package/dist/shared/components/item-edit/related-missing.js +75 -19
- package/dist/shared/components/notifications/DeliveryChips.js +1 -2
- package/dist/shared/components/notifications/NotificationCenterView.js +249 -226
- package/dist/shared/components/panels/AccessDeniedPanel.js +31 -28
- package/dist/shared/components/panels/BackgroundMove.js +242 -0
- package/dist/shared/components/panels/MoveAdvisory.js +204 -0
- package/dist/shared/components/panels/PipelinePanel.js +1459 -1220
- package/dist/shared/components/panels/RecordIntegrityBanner.js +113 -112
- package/dist/shared/components/profile/ActivityFeedCard.js +322 -0
- package/dist/shared/components/profile/DayTimeline.js +145 -140
- package/dist/shared/components/profile/PersonAccess.js +679 -383
- package/dist/shared/components/profile/PersonActivity.js +404 -427
- package/dist/shared/components/profile/PersonDidPanel.js +248 -134
- package/dist/shared/components/profile/PersonProfile.js +33 -32
- package/dist/shared/components/profile/journey-view.js +166 -0
- package/dist/shared/lib/activity-sentence.js +319 -236
- package/dist/shared/lib/commands.js +18 -14
- package/dist/shared/lib/error-hints.js +1 -1
- package/dist/shared/lib/job-failure-text.js +12 -0
- package/dist/shared/lib/jobs-tray.js +60 -41
- package/dist/shared/lib/move-failure.js +19 -0
- package/dist/shared/lib/obligation-banner.js +22 -21
- package/dist/shared/lib/partner-failure.js +83 -0
- package/dist/shared/lib/prefetch.js +73 -73
- package/dist/shared/lib/replay-checkout.js +18 -13
- package/dist/shared/lib/replay-context.js +90 -77
- package/dist/shared/lib/replay-idle.js +21 -0
- package/dist/shared/lib/replay-socket.js +21 -17
- package/dist/shared/lib/rum.js +56 -51
- package/dist/shared/lib/safe-error.js +17 -13
- package/dist/shared/lib/stale-chunk.js +69 -26
- package/dist/shared/lib/system-collections.js +20 -0
- package/package.json +1 -1
package/dist/lib/commands.js
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
function
|
|
2
|
-
return { _method: "GET", _path: t, _params:
|
|
1
|
+
function n(t, o) {
|
|
2
|
+
return { _method: "GET", _path: t, _params: o };
|
|
3
3
|
}
|
|
4
|
-
function e(t
|
|
5
|
-
return
|
|
4
|
+
function e(t) {
|
|
5
|
+
return n("/collection-layouts/active", { ...t, optional: 1 });
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return { _method: "
|
|
7
|
+
function r(t, o) {
|
|
8
|
+
return { _method: "POST", _path: t, _body: o };
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function u(t, o) {
|
|
11
|
+
return { _method: "PATCH", _path: t, _body: o };
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
11
14
|
return { _method: "DELETE", _path: t };
|
|
12
15
|
}
|
|
13
16
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
a as del,
|
|
18
|
+
n as get,
|
|
19
|
+
e as getActiveLayout,
|
|
20
|
+
u as patch,
|
|
21
|
+
r as post
|
|
18
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as m, jsx as e, Fragment as
|
|
2
|
-
import { useQuery as
|
|
1
|
+
import { jsxs as m, jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as b } from "@tanstack/react-query";
|
|
3
3
|
import { ChevronDown as A, ChevronRight as S, Eye as C, KeyRound as D, Bot as L, Upload as j, Workflow as T, Clock as _, Cog as I } from "lucide-react";
|
|
4
4
|
import { useState as R, useMemo as u } from "react";
|
|
5
5
|
import { useOptionalNivaroClient as q } from "../context.js";
|
|
@@ -116,8 +116,8 @@ function st({
|
|
|
116
116
|
empty: l,
|
|
117
117
|
className: c
|
|
118
118
|
}) {
|
|
119
|
-
const o = u(() => E(a), [a]);
|
|
120
|
-
return o.length === 0 ? /* @__PURE__ */ e(
|
|
119
|
+
const o = u(() => E(a, { labels: t }), [a, t]);
|
|
120
|
+
return o.length === 0 ? /* @__PURE__ */ e(g, { children: l ?? null }) : /* @__PURE__ */ e("div", { className: f("divide-y divide-slate-100 dark:divide-border", c), children: o.map((r) => /* @__PURE__ */ e(
|
|
121
121
|
y,
|
|
122
122
|
{
|
|
123
123
|
entry: r.entries[0],
|
|
@@ -130,7 +130,7 @@ function st({
|
|
|
130
130
|
)) });
|
|
131
131
|
}
|
|
132
132
|
function lt(a, t = {}) {
|
|
133
|
-
const i = q(), n = u(() => K(a), [a]), l = u(() => JSON.stringify(n), [n]), c = n.refs.length === 0 && n.users.length === 0 && n.collections.length === 0, { data: o } =
|
|
133
|
+
const i = q(), n = u(() => K(a), [a]), l = u(() => JSON.stringify(n), [n]), c = n.refs.length === 0 && n.users.length === 0 && n.collections.length === 0, { data: o } = b({
|
|
134
134
|
queryKey: ["activity-labels", l],
|
|
135
135
|
queryFn: async () => (await i.request(J("/activity/labels", n))).data,
|
|
136
136
|
enabled: !!i && !c && t.enabled !== !1,
|