@nivaro/react 0.2.51 → 0.2.52
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 +204 -6
- package/dist/index.js +442 -439
- package/dist/layout-editor.d.ts +80 -0
- package/dist/layout-editor.js +11 -0
- package/dist/shared/components/ItemEditForm.js +4044 -3866
- package/dist/shared/components/RecordDrilldownSheet.js +114 -97
- package/dist/shared/components/RecordReadView.js +637 -570
- package/dist/shared/components/ai/ExplainButton.js +1 -1
- package/dist/shared/components/item-edit/GroupSection.js +489 -466
- package/dist/shared/components/item-edit/HeaderBand.js +47 -44
- package/dist/shared/components/item-edit/M2MStagingContext.js +3 -3
- package/dist/shared/components/item-edit/O2MStagingContext.js +1 -1
- package/dist/shared/components/item-edit/RecordGrantTools.js +206 -0
- package/dist/shared/components/item-edit/StepsBar.js +49 -43
- package/dist/shared/components/item-edit/SummaryPanel.js +1 -1
- package/dist/shared/components/item-edit/config-update.js +6 -0
- package/dist/shared/components/item-edit/layout-editing-quiet.js +25 -0
- package/dist/shared/components/layout-editor/AddPanel.js +301 -0
- package/dist/shared/components/layout-editor/DesignNode.js +173 -0
- package/dist/shared/components/layout-editor/EditorCanvas.js +52 -0
- package/dist/shared/components/layout-editor/EditorTopBar.js +241 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +179 -0
- package/dist/shared/components/layout-editor/LayoutEditor.js +393 -0
- package/dist/shared/components/layout-editor/LayoutsRail.js +89 -0
- package/dist/shared/components/layout-editor/add-target.js +103 -0
- package/dist/shared/components/layout-editor/bundle-to-active.js +86 -0
- package/dist/shared/components/layout-editor/canvases/PdfCanvas.js +90 -0
- package/dist/shared/components/layout-editor/canvases/TableColumnsCanvas.js +246 -0
- package/dist/shared/components/layout-editor/collection-meta.js +22 -0
- package/dist/shared/components/layout-editor/design-canvas.js +81 -0
- package/dist/shared/components/layout-editor/design-context.js +21 -0
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +225 -0
- package/dist/shared/components/layout-editor/dnd/collision.js +107 -0
- package/dist/shared/components/layout-editor/dnd/node.js +164 -0
- package/dist/shared/components/layout-editor/dnd/order.js +122 -0
- package/dist/shared/components/layout-editor/editors/DefaultValuesEditor.js +223 -0
- package/dist/shared/components/layout-editor/editors/QuickPickerStepsEditor.js +129 -0
- package/dist/shared/components/layout-editor/editors/ReadPresentationEditor.js +134 -0
- package/dist/shared/components/layout-editor/editors/RecordConditionsEditor.js +249 -0
- package/dist/shared/components/layout-editor/editors/RolesPicker.js +77 -0
- package/dist/shared/components/layout-editor/editors/cascade-filters.js +556 -0
- package/dist/shared/components/layout-editor/editors/cascade-rule-row.js +150 -0
- package/dist/shared/components/layout-editor/editors/controls.js +73 -0
- package/dist/shared/components/layout-editor/editors/editor-api.js +21 -0
- package/dist/shared/components/layout-editor/editors/editor-queries.js +25 -0
- package/dist/shared/components/layout-editor/editors/field-default-value.js +131 -0
- package/dist/shared/components/layout-editor/editors/grid-presets.js +310 -0
- package/dist/shared/components/layout-editor/editors/inline-display.js +157 -0
- package/dist/shared/components/layout-editor/editors/layout-picker.js +80 -0
- package/dist/shared/components/layout-editor/editors/layout-rows.js +55 -0
- package/dist/shared/components/layout-editor/editors/lock-conditions.js +109 -0
- package/dist/shared/components/layout-editor/editors/o2m-agg-field.js +25 -0
- package/dist/shared/components/layout-editor/editors/pdf-field-config.js +107 -0
- package/dist/shared/components/layout-editor/editors/report-widget-config.js +94 -0
- package/dist/shared/components/layout-editor/editors/row-rule-check.js +225 -0
- package/dist/shared/components/layout-editor/editors/row-rule-row.js +1353 -0
- package/dist/shared/components/layout-editor/editors/swap-config.js +245 -0
- package/dist/shared/components/layout-editor/focus-buffer.js +32 -0
- package/dist/shared/components/layout-editor/host.js +15 -0
- package/dist/shared/components/layout-editor/inspector/AdvancedTab.js +296 -0
- package/dist/shared/components/layout-editor/inspector/GridTab.js +767 -0
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +456 -0
- package/dist/shared/components/layout-editor/inspector/HeaderItemInspector.js +268 -0
- package/dist/shared/components/layout-editor/inspector/Inspector.js +332 -0
- package/dist/shared/components/layout-editor/inspector/LookTab.js +310 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +333 -0
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +323 -0
- package/dist/shared/components/layout-editor/inspector/SlotInspector.js +179 -0
- package/dist/shared/components/layout-editor/inspector/SubtitleInspector.js +154 -0
- package/dist/shared/components/layout-editor/inspector/WidgetInspector.js +262 -0
- package/dist/shared/components/layout-editor/inspector/applies.js +27 -0
- package/dist/shared/components/layout-editor/inspector/field-context.js +134 -0
- package/dist/shared/components/layout-editor/inspector/interfaces.js +126 -0
- package/dist/shared/components/layout-editor/inspector/kit.js +595 -0
- package/dist/shared/components/layout-editor/inspector/model.js +307 -0
- package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -0
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +121 -0
- package/dist/shared/components/layout-editor/overview/overview-api.js +141 -0
- package/dist/shared/components/layout-editor/overview/purpose.js +62 -0
- package/dist/shared/components/layout-editor/overview/record-count.js +65 -0
- package/dist/shared/components/layout-editor/panel-frame.js +99 -0
- package/dist/shared/components/layout-editor/panel-style.js +19 -0
- package/dist/shared/components/layout-editor/pickers/field-picker.js +230 -0
- package/dist/shared/components/layout-editor/pickers/icon-picker.js +233 -0
- package/dist/shared/components/layout-editor/pickers/relation-label.js +34 -0
- package/dist/shared/components/layout-editor/pickers/relation-picker.js +136 -0
- package/dist/shared/components/layout-editor/record-queries.js +15 -0
- package/dist/shared/components/layout-editor/settings/AddendumSection.js +52 -0
- package/dist/shared/components/layout-editor/settings/ButtonsSection.js +45 -0
- package/dist/shared/components/layout-editor/settings/DefaultsSection.js +67 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +146 -0
- package/dist/shared/components/layout-editor/settings/InheritanceSection.js +37 -0
- package/dist/shared/components/layout-editor/settings/LayoutSection.js +70 -0
- package/dist/shared/components/layout-editor/settings/PdfSection.js +176 -0
- package/dist/shared/components/layout-editor/settings/ReadSection.js +79 -0
- package/dist/shared/components/layout-editor/settings/TextSetting.js +55 -0
- package/dist/shared/components/layout-editor/settings/ToggleSetting.js +33 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +179 -0
- package/dist/shared/components/layout-editor/settings/WhoSection.js +213 -0
- package/dist/shared/components/layout-editor/settings/controls.js +214 -0
- package/dist/shared/components/layout-editor/settings/section-props.js +17 -0
- package/dist/shared/components/layout-editor/settings/settings-api.js +151 -0
- package/dist/shared/components/layout-editor/settings/settings-registry.js +445 -0
- package/dist/shared/components/layout-editor/slot-names.js +20 -0
- package/dist/shared/components/layout-editor/summary-pref.js +21 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +474 -0
- package/dist/shared/components/pipeline/relations.js +28 -23
- package/dist/shared/components/ui/popover.js +17 -17
- package/dist/shared/components/ui/scroll-area.js +38 -0
- package/dist/shared/hooks/useRelationOptions.js +60 -0
- package/dist/shared/lib/layout-grants.js +9 -0
- package/dist/shared/lib/layout-ops.js +348 -0
- package/dist/shared/lib/layout-slots.js +11 -7
- package/dist/shared/lib/request-gate.js +1 -1
- package/package.json +5 -1
|
@@ -7,7 +7,7 @@ import { normalizeReplayMasking as B, buildReplayMaskingOptions as z } from "../
|
|
|
7
7
|
import { normalizeReplaySampling as x, replaySampleDraw as Ae, currentReplayRoute as _, isReplayRouteSampled as Y, attributeChunkRoutes as ee } from "../shared/lib/replay-sampling.js";
|
|
8
8
|
import { emitReplayTap as Ce, setReplayRecorderMode as N, registerReplayCapture as Ie, clipEndOffset as _e, withClipKind as De } from "../shared/lib/replay-capture.js";
|
|
9
9
|
import { instrumentConsole as qe, instrumentRequests as Le, redactSecrets as Te } from "../shared/lib/replay-context.js";
|
|
10
|
-
const Pe = "nivaro-react@0.2.
|
|
10
|
+
const Pe = "nivaro-react@0.2.52", j = 1e4, Ne = 150, Me = 3e3, Oe = 600, Ue = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
11
11
|
function We(n) {
|
|
12
12
|
return typeof n.url != "string" || typeof fetch != "function" ? null : (d, u) => {
|
|
13
13
|
const c = typeof n.getToken == "function" ? n.getToken() : void 0, a = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CascadeFilterRule } from '@nivaro/sdk';
|
|
2
2
|
import type { Command } from '@nivaro/sdk';
|
|
3
3
|
import { Context } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { CSSProperties } from 'react';
|
|
5
5
|
import { default as default_2 } from 'react';
|
|
6
6
|
import { DragEvent as DragEvent_2 } from 'react';
|
|
7
7
|
import { FieldDependencyConfig } from '@nivaro/sdk';
|
|
@@ -85,6 +85,13 @@ declare interface ActiveFilter {
|
|
|
85
85
|
not?: boolean;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
declare interface ActiveLayoutData {
|
|
89
|
+
layout: LayoutMeta | null;
|
|
90
|
+
groups: FieldGroup[];
|
|
91
|
+
assignments: SlotAssignment[];
|
|
92
|
+
ungrouped_sort?: number | null;
|
|
93
|
+
}
|
|
94
|
+
|
|
88
95
|
/** A stretch of the recording where the author was typing in a text field,
|
|
89
96
|
* or touched nothing at all (#1518). Never what was typed. */
|
|
90
97
|
declare type ActivitySpan = {
|
|
@@ -1958,6 +1965,41 @@ export declare function deriveGroupKey<T extends QueueGroupingRow>(row: T, attri
|
|
|
1958
1965
|
|
|
1959
1966
|
export declare function describeCron(cron: string): string;
|
|
1960
1967
|
|
|
1968
|
+
/**
|
|
1969
|
+
* Drag and drop state for design nodes. Plain functions, no hooks: inside a
|
|
1970
|
+
* LayoutDndProvider every DesignNode registers through the provider's store
|
|
1971
|
+
* (useDesignDndNode) and these only answer questions; outside one (tests,
|
|
1972
|
+
* hosts without drag and drop) DesignNode takes its props and state from
|
|
1973
|
+
* here. `disabled` (inherited nodes, the folded copy of a header tile) asks
|
|
1974
|
+
* for no drag props. Passing NO_DND (dnd/node.ts) turns dragging off even
|
|
1975
|
+
* inside a provider.
|
|
1976
|
+
*/
|
|
1977
|
+
declare interface DesignDnd {
|
|
1978
|
+
draggableProps(t: DesignTarget, opts?: {
|
|
1979
|
+
disabled?: boolean;
|
|
1980
|
+
}): object;
|
|
1981
|
+
isDragging(t: DesignTarget): boolean;
|
|
1982
|
+
dropSlot(t: DesignTarget): 'before' | 'after' | null;
|
|
1983
|
+
/** Where the insertion line sits inside the node (absolute; no layout shift). */
|
|
1984
|
+
dropIndicator?(t: DesignTarget): CSSProperties | null;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
declare type DesignTarget = {
|
|
1988
|
+
kind: 'field';
|
|
1989
|
+
field: string;
|
|
1990
|
+
group_key: string | null;
|
|
1991
|
+
} | {
|
|
1992
|
+
kind: 'group';
|
|
1993
|
+
key: string;
|
|
1994
|
+
} | {
|
|
1995
|
+
kind: 'slot';
|
|
1996
|
+
field: string;
|
|
1997
|
+
group_key: string | null;
|
|
1998
|
+
} | {
|
|
1999
|
+
kind: 'header';
|
|
2000
|
+
field: string;
|
|
2001
|
+
};
|
|
2002
|
+
|
|
1961
2003
|
declare type DetailTab = 'calls' | 'submissions' | 'obligations' | 'contracts';
|
|
1962
2004
|
|
|
1963
2005
|
declare type DigestFrequency = 'instant' | 'daily' | 'weekly';
|
|
@@ -2472,6 +2514,27 @@ export declare function fieldDrilldownConfig(field: {
|
|
|
2472
2514
|
_overrides?: Record<string, unknown> | null;
|
|
2473
2515
|
}): FieldDrilldownConfig | null;
|
|
2474
2516
|
|
|
2517
|
+
declare interface FieldGroup {
|
|
2518
|
+
/** Content block (#53): type 'content' renders this text instead of fields. */
|
|
2519
|
+
content?: string | null;
|
|
2520
|
+
content_tone?: 'info' | 'warn' | 'divider' | null;
|
|
2521
|
+
id: number;
|
|
2522
|
+
key: string;
|
|
2523
|
+
label: string;
|
|
2524
|
+
type: 'section' | 'tab' | 'metadata' | 'container' | 'content';
|
|
2525
|
+
icon: string | null;
|
|
2526
|
+
sort: number;
|
|
2527
|
+
is_collapsed: boolean;
|
|
2528
|
+
container_id?: number | null;
|
|
2529
|
+
tab_mode?: 'tabs' | 'steps' | null;
|
|
2530
|
+
hide_when_empty?: boolean | number;
|
|
2531
|
+
visibility_mode?: 'always' | 'new_only' | 'existing_only';
|
|
2532
|
+
summary_fields?: string[] | string | null;
|
|
2533
|
+
summary_hide_empty?: boolean | number;
|
|
2534
|
+
swap_config?: string | null;
|
|
2535
|
+
skip_if_filled?: string[] | string | null;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2475
2538
|
export declare interface FieldInterfaceHandle {
|
|
2476
2539
|
update?: (props: FieldInterfaceProps) => void;
|
|
2477
2540
|
destroy?: () => void;
|
|
@@ -4335,7 +4398,12 @@ export declare type ItemEditAuthContextValue = {
|
|
|
4335
4398
|
userId: string;
|
|
4336
4399
|
};
|
|
4337
4400
|
|
|
4338
|
-
|
|
4401
|
+
/**
|
|
4402
|
+
* The record form. With `design` (the layout editor's canvas) the whole form —
|
|
4403
|
+
* its own hooks included — runs inside DesignCanvas: a client that cannot
|
|
4404
|
+
* write, no realtime, inert inputs, selectable shells.
|
|
4405
|
+
*/
|
|
4406
|
+
export declare function ItemEditForm(props: ItemEditFormProps): JSX.Element;
|
|
4339
4407
|
|
|
4340
4408
|
export declare interface ItemEditFormProps {
|
|
4341
4409
|
collection: string;
|
|
@@ -4359,6 +4427,12 @@ export declare interface ItemEditFormProps {
|
|
|
4359
4427
|
* header toolbar. Off by default — the admin's ItemEdit page renders its
|
|
4360
4428
|
* own copy in the page header; headless hosts opt in. */
|
|
4361
4429
|
showItemActions?: boolean;
|
|
4430
|
+
/** Offer "Schedule a change…" and "Disable in pickers" in the More menu
|
|
4431
|
+
* when this record's form grants them to everyone (allow_schedule /
|
|
4432
|
+
* allow_disable_pickers) or the viewer is an admin. Off by default — the
|
|
4433
|
+
* admin's ItemEdit page renders its own copies in the page header;
|
|
4434
|
+
* headless hosts opt in. */
|
|
4435
|
+
showGrantedTools?: boolean;
|
|
4362
4436
|
/** Scroll to + flash a field on load (deep links: ?focus=<field>). */
|
|
4363
4437
|
focusField?: string | null;
|
|
4364
4438
|
/**
|
|
@@ -4424,6 +4498,14 @@ export declare interface ItemEditFormProps {
|
|
|
4424
4498
|
* from another one (workflow lines from a purchase order's lines) cannot
|
|
4425
4499
|
* hand them over through initialValues. */
|
|
4426
4500
|
initialRows?: Record<string, Array<Record<string, unknown>>>;
|
|
4501
|
+
/** Layout editor canvas (spec §7.3): render this draft layout with the
|
|
4502
|
+
* preview record's values, every placement selectable, nothing written. */
|
|
4503
|
+
design?: LayoutDesignProp;
|
|
4504
|
+
/** The host has Edit layout open on this collection over this form, or closed it and its
|
|
4505
|
+
* last save has not settled yet (useLayoutEditingQuiet). Config pushes naming this
|
|
4506
|
+
* collection are then the admin's own saves: no "This form was changed" banner and no
|
|
4507
|
+
* refetch per save — the host re-reads the layout queries once the editor's saves land. */
|
|
4508
|
+
layoutEditing?: boolean;
|
|
4427
4509
|
}
|
|
4428
4510
|
|
|
4429
4511
|
/** A record the UI wants to link to / open the edit page for. */
|
|
@@ -4532,6 +4614,12 @@ declare interface LadderTier {
|
|
|
4532
4614
|
notify: string;
|
|
4533
4615
|
}
|
|
4534
4616
|
|
|
4617
|
+
/**
|
|
4618
|
+
* How long a layout save's config:update can still arrive after the save itself: the server's
|
|
4619
|
+
* per-collection push gap (config-live MIN_GAP_MS, 2 s) plus socket delivery.
|
|
4620
|
+
*/
|
|
4621
|
+
export declare const LAYOUT_PUSH_SETTLE_MS = 2500;
|
|
4622
|
+
|
|
4535
4623
|
declare interface LayoutAssignment {
|
|
4536
4624
|
field: string;
|
|
4537
4625
|
group_key: string | null;
|
|
@@ -4544,6 +4632,32 @@ declare interface LayoutAssignment {
|
|
|
4544
4632
|
default_expanded?: boolean | number | null;
|
|
4545
4633
|
}
|
|
4546
4634
|
|
|
4635
|
+
declare interface LayoutDesign {
|
|
4636
|
+
selected: DesignTarget | null;
|
|
4637
|
+
onSelect(t: DesignTarget): void;
|
|
4638
|
+
showHidden: boolean;
|
|
4639
|
+
/** Parent layout name when the node comes from an inherited layout, else null. */
|
|
4640
|
+
inheritedFrom(t: DesignTarget): string | null;
|
|
4641
|
+
dnd: DesignDnd;
|
|
4642
|
+
/** "Preview as role": what that role's field permissions do to the node
|
|
4643
|
+
* (hidden: faint with a tag, still selectable; read-only: a lock tag). */
|
|
4644
|
+
roleMark?(t: DesignTarget): RoleMark | null;
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
/**
|
|
4648
|
+
* The `design` prop of every renderer the layout editor uses as its canvas
|
|
4649
|
+
* (ItemEditForm, RecordReadView, RecordDrilldownSheet).
|
|
4650
|
+
*/
|
|
4651
|
+
declare interface LayoutDesignProp {
|
|
4652
|
+
/** The draft layout — rendered instead of the server's resolved layout. */
|
|
4653
|
+
layout: ActiveLayoutData;
|
|
4654
|
+
/** Preview record (its values, steps and rules); null/absent = no values. */
|
|
4655
|
+
record?: Record<string, unknown> | null;
|
|
4656
|
+
context: LayoutDesign;
|
|
4657
|
+
/** Something on the canvas tried to write and was refused (tests, dev tooling). */
|
|
4658
|
+
onRefusedWrite?: (w: RefusedWrite) => void;
|
|
4659
|
+
}
|
|
4660
|
+
|
|
4547
4661
|
/**
|
|
4548
4662
|
* Full layout-aware form renderer.
|
|
4549
4663
|
*
|
|
@@ -4617,6 +4731,32 @@ declare interface LayoutGroup {
|
|
|
4617
4731
|
|
|
4618
4732
|
export declare type LayoutItem = FormGroupDescriptor | '__ungrouped__';
|
|
4619
4733
|
|
|
4734
|
+
declare interface LayoutMeta {
|
|
4735
|
+
id: number;
|
|
4736
|
+
name: string;
|
|
4737
|
+
tab_mode: 'tabs' | 'steps' | null;
|
|
4738
|
+
validate_before_next: boolean;
|
|
4739
|
+
summary_enabled: boolean;
|
|
4740
|
+
summary_show_all: boolean;
|
|
4741
|
+
summary_hide_empty?: boolean;
|
|
4742
|
+
ai_enabled: boolean;
|
|
4743
|
+
disable_comments?: boolean | number;
|
|
4744
|
+
hide_integrity_banner?: boolean | number;
|
|
4745
|
+
hide_sla_banner?: boolean | number;
|
|
4746
|
+
/** Per-layout "changes so far" tray at the bottom of the record body. */
|
|
4747
|
+
changes_tray?: boolean | number;
|
|
4748
|
+
disable_tasks?: boolean | number;
|
|
4749
|
+
disable_revisions?: boolean | number;
|
|
4750
|
+
disable_clone?: boolean | number;
|
|
4751
|
+
disable_delete?: boolean | number;
|
|
4752
|
+
accordion_mode?: boolean | number;
|
|
4753
|
+
addendum_layout_id?: number | null;
|
|
4754
|
+
addendum_default_view?: boolean | number;
|
|
4755
|
+
default_values?: Record<string, unknown> | null;
|
|
4756
|
+
/** Quick picker: relation fields walked one step at a time on create. */
|
|
4757
|
+
quick_picker?: string[] | null;
|
|
4758
|
+
}
|
|
4759
|
+
|
|
4620
4760
|
declare interface LayoutSlotHandle {
|
|
4621
4761
|
update?: (props: LayoutSlotProps) => void;
|
|
4622
4762
|
destroy?: () => void;
|
|
@@ -7051,7 +7191,7 @@ export declare function RecordChatActions({ collection, itemDraft, compact }: {
|
|
|
7051
7191
|
compact?: boolean;
|
|
7052
7192
|
}): JSX.Element | null;
|
|
7053
7193
|
|
|
7054
|
-
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose }: {
|
|
7194
|
+
export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design }: {
|
|
7055
7195
|
collection: string;
|
|
7056
7196
|
itemId: string;
|
|
7057
7197
|
layoutId?: number | null;
|
|
@@ -7070,6 +7210,10 @@ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, roo
|
|
|
7070
7210
|
onPush?: (target: DrilldownTarget) => void;
|
|
7071
7211
|
onPop?: () => void;
|
|
7072
7212
|
onClose: () => void;
|
|
7213
|
+
/** Layout editor canvas: render this draft detail layout (not the fetched
|
|
7214
|
+
* one) with the preview record, inline at its sheet width instead of in a
|
|
7215
|
+
* modal sheet, with no Open record link and no host override view. */
|
|
7216
|
+
design?: LayoutDesignProp;
|
|
7073
7217
|
}): JSX.Element;
|
|
7074
7218
|
|
|
7075
7219
|
/**
|
|
@@ -7265,10 +7409,23 @@ export declare function RecordOutboxHost({ userId, onOpenRecord }: {
|
|
|
7265
7409
|
onOpenRecord?: (collection: string, itemId: string) => void;
|
|
7266
7410
|
}): null;
|
|
7267
7411
|
|
|
7268
|
-
|
|
7412
|
+
/**
|
|
7413
|
+
* Read-only record presentation. With `design` (the layout editor's canvas)
|
|
7414
|
+
* the whole view — its own hooks included — runs inside DesignCanvas: a
|
|
7415
|
+
* client that cannot write, no realtime, inert inputs, selectable shells.
|
|
7416
|
+
*/
|
|
7417
|
+
export declare function RecordReadView(props: Parameters<typeof RecordReadViewBody>[0]): JSX.Element;
|
|
7418
|
+
|
|
7419
|
+
declare function RecordReadViewBody({ collection, itemId: itemIdProp, layoutData: layoutDataProp, design, flush, renderSlot, integrityMarks, renderGrid, onEditSection, gridCounts }: {
|
|
7269
7420
|
collection: string;
|
|
7270
|
-
|
|
7271
|
-
|
|
7421
|
+
/** Required outside design mode. */
|
|
7422
|
+
itemId?: string;
|
|
7423
|
+
/** Required outside design mode. */
|
|
7424
|
+
layoutData?: ReadViewLayout;
|
|
7425
|
+
/** Layout editor canvas (spec §7.3): render this draft layout with the
|
|
7426
|
+
* preview record's values; no layout, record or field-config reads, no
|
|
7427
|
+
* live updates, every section/field/header item/slot selectable. */
|
|
7428
|
+
design?: LayoutDesignProp;
|
|
7272
7429
|
/** Host already pads and scrolls the body (the record form's Summary mode). */
|
|
7273
7430
|
flush?: boolean;
|
|
7274
7431
|
/**
|
|
@@ -7361,6 +7518,12 @@ declare type Rect = {
|
|
|
7361
7518
|
h: number;
|
|
7362
7519
|
};
|
|
7363
7520
|
|
|
7521
|
+
/** What a refused call tried: `{method, path}` (GraphQL/upload/import name themselves). */
|
|
7522
|
+
declare type RefusedWrite = {
|
|
7523
|
+
method: string;
|
|
7524
|
+
path: string;
|
|
7525
|
+
};
|
|
7526
|
+
|
|
7364
7527
|
/** Register a detail opener for a catalog collection. Returns an unregister
|
|
7365
7528
|
* cleanup — call it on unmount so a dead host can't leave a stale opener. */
|
|
7366
7529
|
export declare function registerCatalogItemOpener(collection: string, fn: CatalogItemOpener): () => void;
|
|
@@ -7745,6 +7908,12 @@ export declare function RevisionsPanel({ collection, item, onRollback, triggerCl
|
|
|
7745
7908
|
onOpenChange?: (open: boolean) => void;
|
|
7746
7909
|
}): JSX.Element;
|
|
7747
7910
|
|
|
7911
|
+
declare interface RoleMark {
|
|
7912
|
+
kind: 'hidden' | 'readonly';
|
|
7913
|
+
/** The role's name, for the tag ("Hidden for Finance"). */
|
|
7914
|
+
role: string;
|
|
7915
|
+
}
|
|
7916
|
+
|
|
7748
7917
|
export declare interface RoomInfo {
|
|
7749
7918
|
room: string;
|
|
7750
7919
|
label: string;
|
|
@@ -8197,6 +8366,22 @@ export declare interface SlaRule {
|
|
|
8197
8366
|
|
|
8198
8367
|
export declare function SlaRulesView(): JSX.Element;
|
|
8199
8368
|
|
|
8369
|
+
declare interface SlotAssignment {
|
|
8370
|
+
field: string;
|
|
8371
|
+
sort: number;
|
|
8372
|
+
group_key?: string | null;
|
|
8373
|
+
col_span?: number | null;
|
|
8374
|
+
is_visible: boolean | number;
|
|
8375
|
+
default_expanded?: boolean;
|
|
8376
|
+
label_override?: string | null;
|
|
8377
|
+
show_row_revisions?: boolean | number;
|
|
8378
|
+
allow_revision_restore?: boolean | number;
|
|
8379
|
+
lock_conditions?: string | null;
|
|
8380
|
+
overrides?: Record<string, unknown> | string | null;
|
|
8381
|
+
widget_id?: number | null;
|
|
8382
|
+
input_bindings?: string | null;
|
|
8383
|
+
}
|
|
8384
|
+
|
|
8200
8385
|
export declare type SlotRendererProps = {
|
|
8201
8386
|
slot: string;
|
|
8202
8387
|
collection: string;
|
|
@@ -9211,6 +9396,19 @@ export declare function useItemNavigation(): {
|
|
|
9211
9396
|
open: (target: ItemLinkTarget) => void;
|
|
9212
9397
|
};
|
|
9213
9398
|
|
|
9399
|
+
/**
|
|
9400
|
+
* A record page's `layoutEditing` for its ItemEditForm (configUpdateReaction): true while Edit
|
|
9401
|
+
* layout is open, and after it closes until the editor's last save settles plus the push gap,
|
|
9402
|
+
* so the admin's own saves never raise "This form was changed" on the record under the overlay.
|
|
9403
|
+
*
|
|
9404
|
+
* `settle(saved)` is called on close with LayoutEditor onBack's `saved` promise. Reopening
|
|
9405
|
+
* before the tail ends is covered by `editing`; a later close starts a new tail.
|
|
9406
|
+
*/
|
|
9407
|
+
export declare function useLayoutEditingQuiet(editing: boolean): {
|
|
9408
|
+
layoutEditing: boolean;
|
|
9409
|
+
settle: (saved: Promise<unknown>) => void;
|
|
9410
|
+
};
|
|
9411
|
+
|
|
9214
9412
|
/**
|
|
9215
9413
|
* A list read (`readItems` query), kept current: rows others change are re-read as the viewer
|
|
9216
9414
|
* and patched in place, rows that stop matching leave, deletes drop out, and anything whose
|