@nivaro/react 0.3.100 → 0.3.102
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/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/index.js +623 -620
- package/dist/shared/components/ActivityEntry.js +5 -5
- package/dist/shared/components/CollectionBrowserView.js +183 -175
- package/dist/shared/components/ItemEditForm.js +2708 -2704
- package/dist/shared/components/JobsTray.js +74 -63
- package/dist/shared/components/NotificationBell.js +80 -73
- package/dist/shared/components/TipLayer.js +56 -41
- package/dist/shared/components/cbv-file-label.js +46 -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/RecordInsights.js +86 -86
- package/dist/shared/components/item-edit/header-path-preview.js +46 -34
- package/dist/shared/components/notifications/DeliveryChips.js +1 -2
- package/dist/shared/components/panels/BackgroundMove.js +152 -85
- package/dist/shared/components/panels/PipelinePanel.js +602 -594
- 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/jobs-tray.js +60 -41
- package/dist/shared/lib/move-failure.js +16 -6
- package/dist/shared/lib/obligation-banner.js +16 -16
- package/dist/shared/lib/partner-failure.js +44 -32
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { noteReplayEvent as Fe, createReplayCheckoutState as Me } from "../share
|
|
|
10
10
|
import { emitReplayTap as Ne, setReplayRecorderMode as O, registerReplayCapture as Oe, clipEndOffset as Ue, withClipKind as We } from "../shared/lib/replay-capture.js";
|
|
11
11
|
import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
|
|
12
12
|
import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
|
|
13
|
-
const ze = "nivaro-react@0.3.
|
|
13
|
+
const ze = "nivaro-react@0.3.102", Q = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, V = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
14
14
|
function Je(o) {
|
|
15
15
|
return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
|
|
16
16
|
const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -267,6 +267,24 @@ declare interface ActivityGroup<T extends ActivityEntryInput = ActivityEntryInpu
|
|
|
267
267
|
by: 'group_key' | 'time' | null;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
/**
|
|
271
|
+
* A link (junction) row in words: "Added Division Zone 2 to Workflow CM26-79704". The
|
|
272
|
+
* values come from the row as it was stored (the live row, else its newest revision
|
|
273
|
+
* snapshot), each name read as the reader (null = unknown or not theirs to see).
|
|
274
|
+
*/
|
|
275
|
+
declare interface ActivityJunctionLabel {
|
|
276
|
+
/** The collection the link hangs off ("workflows"). */
|
|
277
|
+
parent_collection: string;
|
|
278
|
+
/** The parent record; null = not known (no row, no snapshot). Its label is in `records`. */
|
|
279
|
+
parent_id?: string | null;
|
|
280
|
+
/** One link's noun, singular ("Division", "file"). */
|
|
281
|
+
noun: string;
|
|
282
|
+
/** The linked record's name; null = unknown or not the reader's to see. */
|
|
283
|
+
value?: string | null;
|
|
284
|
+
/** The link is a file on the record. */
|
|
285
|
+
file?: boolean;
|
|
286
|
+
}
|
|
287
|
+
|
|
270
288
|
/** What POST /api/activity/labels answers (plus the reader's time zone, if any). */
|
|
271
289
|
export declare interface ActivityLabels {
|
|
272
290
|
/** Person id (any case) → display name. */
|
|
@@ -284,6 +302,8 @@ export declare interface ActivityLabels {
|
|
|
284
302
|
links?: Record<string, string>;
|
|
285
303
|
/** IANA zone dates in values render in; unset = the runtime's own zone. */
|
|
286
304
|
timeZone?: string | null;
|
|
305
|
+
/** `junction:id` → what a link row links, as the reader may see it. */
|
|
306
|
+
junctions?: Record<string, ActivityJunctionLabel>;
|
|
287
307
|
}
|
|
288
308
|
|
|
289
309
|
/** One child-row change as the server summarised it for this reader — labels, never ids. */
|
|
@@ -4205,10 +4225,13 @@ declare interface GridSumCapConfig {
|
|
|
4205
4225
|
* Folds consecutive entries of one burst into one group. Entries sharing a
|
|
4206
4226
|
* group_key always fold; entries without one fold when the same actor did the
|
|
4207
4227
|
* same action on the same collection, each within `windowMs` of the previous
|
|
4208
|
-
* (rows from before migration 516).
|
|
4228
|
+
* (rows from before migration 516). With `labels`, the link rows one write made on one
|
|
4229
|
+
* record (removed Division, added Division, …) fold too, whatever their action. Order is
|
|
4230
|
+
* kept; singles are groups of one.
|
|
4209
4231
|
*/
|
|
4210
4232
|
export declare function groupActivity<T extends ActivityEntryInput>(entries: T[], opts?: {
|
|
4211
4233
|
windowMs?: number;
|
|
4234
|
+
labels?: ActivityLabels | null;
|
|
4212
4235
|
}): ActivityGroup<T>[];
|
|
4213
4236
|
|
|
4214
4237
|
/**
|
|
@@ -5787,6 +5810,10 @@ export declare function isSignedOutError(err: unknown, identity?: boolean): bool
|
|
|
5787
5810
|
/** Whether an error (or a rejection reason) is a code chunk that could not be loaded. */
|
|
5788
5811
|
export declare function isStaleChunkError(reason: unknown): boolean;
|
|
5789
5812
|
|
|
5813
|
+
/** This package's record form has the `moreMenuExportItems` slot (a host's exports sit
|
|
5814
|
+
* beside Export PDF). Read by hosts that run against older packages too. */
|
|
5815
|
+
export declare const ITEM_EDIT_EXPORT_MENU_SLOT = true;
|
|
5816
|
+
|
|
5790
5817
|
export declare function ItemActionButtons({ collection, itemId }: {
|
|
5791
5818
|
collection: string;
|
|
5792
5819
|
itemId: string;
|
|
@@ -5832,6 +5859,10 @@ export declare interface ItemEditFormProps {
|
|
|
5832
5859
|
/** Extra rows for the record's More menu, above Delete (e.g. a host's Edit layout).
|
|
5833
5860
|
* Rows that open something outside the menu set `data-nvr-menu-close`. */
|
|
5834
5861
|
moreMenuItems?: ReactNode;
|
|
5862
|
+
/** A host's own exports of this record (e.g. its lines as Excel): drawn right after the
|
|
5863
|
+
* record's Export PDF rows, so every export sits together. Hosts that must also work with
|
|
5864
|
+
* an older package check ITEM_EDIT_EXPORT_MENU_SLOT and fall back to moreMenuItems. */
|
|
5865
|
+
moreMenuExportItems?: ReactNode;
|
|
5835
5866
|
/** Which view the record shows (Summary or Edit) and the collection's Summary layout id
|
|
5836
5867
|
* (null = none; Summary then renders the edit layout read-only). Hosts use it so their
|
|
5837
5868
|
* Edit layout opens the layout the person is looking at. */
|
|
@@ -6890,6 +6921,14 @@ export declare type MoneyParse = {
|
|
|
6890
6921
|
error: string;
|
|
6891
6922
|
};
|
|
6892
6923
|
|
|
6924
|
+
/**
|
|
6925
|
+
* A host's own reading of a stored refusal it knows (EFP: a warehouse's "InstallAddressLocationCode
|
|
6926
|
+
* field is required" → "The install location has no Oracle location code…"): what the row
|
|
6927
|
+
* shows instead of the other system's words, whole, one line per "\n". Null = not one it
|
|
6928
|
+
* knows; the row reads it as usual. The text as stored stays under "Details for support".
|
|
6929
|
+
*/
|
|
6930
|
+
export declare const MoveProblemWordsContext: Context<((reason: string) => string | null) | null>;
|
|
6931
|
+
|
|
6893
6932
|
/** A music bed under the whole video, looped and lowered under narration.
|
|
6894
6933
|
* `track` is a library key or an uploaded music file's id. */
|
|
6895
6934
|
declare interface MusicBed {
|
|
@@ -10987,9 +11026,13 @@ export declare function SubmissionRow({ sub, onRetry, retrying, onShowPath, init
|
|
|
10987
11026
|
initialOpen?: boolean;
|
|
10988
11027
|
}): JSX.Element;
|
|
10989
11028
|
|
|
10990
|
-
/**
|
|
10991
|
-
|
|
11029
|
+
/**
|
|
11030
|
+
* A submission / attempt status, as a small tinted chip. `stale` = a `sending` send past its
|
|
11031
|
+
* time, named "no answer" as on every other screen.
|
|
11032
|
+
*/
|
|
11033
|
+
export declare function SubmissionStatusPill({ status, stale }: {
|
|
10992
11034
|
status: string;
|
|
11035
|
+
stale?: boolean;
|
|
10993
11036
|
}): JSX.Element;
|
|
10994
11037
|
|
|
10995
11038
|
export declare function subscribeClientChaos(cb: () => void): () => void;
|