@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.
Files changed (60) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useFormSchema.js +82 -85
  3. package/dist/hooks/useSessionRecorder.js +206 -175
  4. package/dist/index.d.ts +84 -16
  5. package/dist/index.js +627 -622
  6. package/dist/lib/commands.js +15 -11
  7. package/dist/shared/components/ActivityEntry.js +5 -5
  8. package/dist/shared/components/CollectionBrowserView.js +516 -503
  9. package/dist/shared/components/ItemEditForm.js +3471 -3465
  10. package/dist/shared/components/JobsTray.js +76 -61
  11. package/dist/shared/components/MyWorkView.js +133 -126
  12. package/dist/shared/components/NotificationBell.js +322 -289
  13. package/dist/shared/components/RecordCompare.js +38 -40
  14. package/dist/shared/components/RecordReadView.js +119 -119
  15. package/dist/shared/components/TipLayer.js +56 -41
  16. package/dist/shared/components/cbv/FoundElsewhere.js +61 -0
  17. package/dist/shared/components/integrations/console/SignalCard.js +40 -40
  18. package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +95 -73
  19. package/dist/shared/components/integrations/console/drill/status.js +23 -18
  20. package/dist/shared/components/item-edit/InlineGridField.js +45 -45
  21. package/dist/shared/components/item-edit/InlineTableField.js +750 -749
  22. package/dist/shared/components/item-edit/QuickPickerDialog.js +44 -44
  23. package/dist/shared/components/item-edit/RawEditSheet.js +122 -114
  24. package/dist/shared/components/item-edit/RecordInsights.js +86 -86
  25. package/dist/shared/components/item-edit/RelationCombobox.js +454 -378
  26. package/dist/shared/components/item-edit/SummaryPanel.js +56 -48
  27. package/dist/shared/components/item-edit/header-path-preview.js +46 -34
  28. package/dist/shared/components/item-edit/related-missing.js +75 -19
  29. package/dist/shared/components/notifications/DeliveryChips.js +1 -2
  30. package/dist/shared/components/notifications/NotificationCenterView.js +249 -226
  31. package/dist/shared/components/panels/AccessDeniedPanel.js +31 -28
  32. package/dist/shared/components/panels/BackgroundMove.js +242 -0
  33. package/dist/shared/components/panels/MoveAdvisory.js +204 -0
  34. package/dist/shared/components/panels/PipelinePanel.js +1459 -1220
  35. package/dist/shared/components/panels/RecordIntegrityBanner.js +113 -112
  36. package/dist/shared/components/profile/ActivityFeedCard.js +322 -0
  37. package/dist/shared/components/profile/DayTimeline.js +145 -140
  38. package/dist/shared/components/profile/PersonAccess.js +679 -383
  39. package/dist/shared/components/profile/PersonActivity.js +404 -427
  40. package/dist/shared/components/profile/PersonDidPanel.js +248 -134
  41. package/dist/shared/components/profile/PersonProfile.js +33 -32
  42. package/dist/shared/components/profile/journey-view.js +166 -0
  43. package/dist/shared/lib/activity-sentence.js +319 -236
  44. package/dist/shared/lib/commands.js +18 -14
  45. package/dist/shared/lib/error-hints.js +1 -1
  46. package/dist/shared/lib/job-failure-text.js +12 -0
  47. package/dist/shared/lib/jobs-tray.js +60 -41
  48. package/dist/shared/lib/move-failure.js +19 -0
  49. package/dist/shared/lib/obligation-banner.js +22 -21
  50. package/dist/shared/lib/partner-failure.js +83 -0
  51. package/dist/shared/lib/prefetch.js +73 -73
  52. package/dist/shared/lib/replay-checkout.js +18 -13
  53. package/dist/shared/lib/replay-context.js +90 -77
  54. package/dist/shared/lib/replay-idle.js +21 -0
  55. package/dist/shared/lib/replay-socket.js +21 -17
  56. package/dist/shared/lib/rum.js +56 -51
  57. package/dist/shared/lib/safe-error.js +17 -13
  58. package/dist/shared/lib/stale-chunk.js +69 -26
  59. package/dist/shared/lib/system-collections.js +20 -0
  60. package/package.json +1 -1
@@ -1,18 +1,22 @@
1
- function o(t, n) {
2
- return { _method: "GET", _path: t, _params: n };
1
+ function n(t, o) {
2
+ return { _method: "GET", _path: t, _params: o };
3
3
  }
4
- function e(t, n) {
5
- return { _method: "POST", _path: t, _body: n };
4
+ function e(t) {
5
+ return n("/collection-layouts/active", { ...t, optional: 1 });
6
6
  }
7
- function _(t, n) {
8
- return { _method: "PATCH", _path: t, _body: n };
7
+ function r(t, o) {
8
+ return { _method: "POST", _path: t, _body: o };
9
9
  }
10
- function r(t) {
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
- r as del,
15
- o as get,
16
- _ as patch,
17
- e as post
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 b } from "react/jsx-runtime";
2
- import { useQuery as g } from "@tanstack/react-query";
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(b, { children: l ?? null }) : /* @__PURE__ */ e("div", { className: f("divide-y divide-slate-100 dark:divide-border", c), children: o.map((r) => /* @__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 } = g({
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,