@nivaro/react 0.2.51 → 0.2.53

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 (117) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +207 -6
  4. package/dist/index.js +442 -439
  5. package/dist/layout-editor.d.ts +80 -0
  6. package/dist/layout-editor.js +11 -0
  7. package/dist/shared/components/ItemEditForm.js +4015 -3835
  8. package/dist/shared/components/RecordDrilldownSheet.js +114 -97
  9. package/dist/shared/components/RecordReadView.js +637 -570
  10. package/dist/shared/components/ai/ExplainButton.js +1 -1
  11. package/dist/shared/components/item-edit/GroupSection.js +489 -466
  12. package/dist/shared/components/item-edit/HeaderBand.js +47 -44
  13. package/dist/shared/components/item-edit/M2MStagingContext.js +3 -3
  14. package/dist/shared/components/item-edit/O2MStagingContext.js +1 -1
  15. package/dist/shared/components/item-edit/RecordGrantTools.js +206 -0
  16. package/dist/shared/components/item-edit/StepsBar.js +49 -43
  17. package/dist/shared/components/item-edit/SummaryPanel.js +1 -1
  18. package/dist/shared/components/item-edit/config-update.js +6 -0
  19. package/dist/shared/components/item-edit/layout-editing-quiet.js +25 -0
  20. package/dist/shared/components/layout-editor/AddPanel.js +301 -0
  21. package/dist/shared/components/layout-editor/DesignNode.js +173 -0
  22. package/dist/shared/components/layout-editor/EditorCanvas.js +52 -0
  23. package/dist/shared/components/layout-editor/EditorTopBar.js +241 -0
  24. package/dist/shared/components/layout-editor/HistoryPanel.js +179 -0
  25. package/dist/shared/components/layout-editor/LayoutEditor.js +393 -0
  26. package/dist/shared/components/layout-editor/LayoutsRail.js +89 -0
  27. package/dist/shared/components/layout-editor/add-target.js +103 -0
  28. package/dist/shared/components/layout-editor/bundle-to-active.js +86 -0
  29. package/dist/shared/components/layout-editor/canvases/PdfCanvas.js +90 -0
  30. package/dist/shared/components/layout-editor/canvases/TableColumnsCanvas.js +246 -0
  31. package/dist/shared/components/layout-editor/collection-meta.js +22 -0
  32. package/dist/shared/components/layout-editor/design-canvas.js +81 -0
  33. package/dist/shared/components/layout-editor/design-context.js +21 -0
  34. package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +225 -0
  35. package/dist/shared/components/layout-editor/dnd/collision.js +107 -0
  36. package/dist/shared/components/layout-editor/dnd/node.js +164 -0
  37. package/dist/shared/components/layout-editor/dnd/order.js +122 -0
  38. package/dist/shared/components/layout-editor/editors/DefaultValuesEditor.js +223 -0
  39. package/dist/shared/components/layout-editor/editors/QuickPickerStepsEditor.js +129 -0
  40. package/dist/shared/components/layout-editor/editors/ReadPresentationEditor.js +134 -0
  41. package/dist/shared/components/layout-editor/editors/RecordConditionsEditor.js +249 -0
  42. package/dist/shared/components/layout-editor/editors/RolesPicker.js +77 -0
  43. package/dist/shared/components/layout-editor/editors/cascade-filters.js +556 -0
  44. package/dist/shared/components/layout-editor/editors/cascade-rule-row.js +150 -0
  45. package/dist/shared/components/layout-editor/editors/controls.js +73 -0
  46. package/dist/shared/components/layout-editor/editors/editor-api.js +21 -0
  47. package/dist/shared/components/layout-editor/editors/editor-queries.js +25 -0
  48. package/dist/shared/components/layout-editor/editors/field-default-value.js +131 -0
  49. package/dist/shared/components/layout-editor/editors/grid-presets.js +310 -0
  50. package/dist/shared/components/layout-editor/editors/inline-display.js +157 -0
  51. package/dist/shared/components/layout-editor/editors/layout-picker.js +80 -0
  52. package/dist/shared/components/layout-editor/editors/layout-rows.js +55 -0
  53. package/dist/shared/components/layout-editor/editors/lock-conditions.js +109 -0
  54. package/dist/shared/components/layout-editor/editors/o2m-agg-field.js +25 -0
  55. package/dist/shared/components/layout-editor/editors/pdf-field-config.js +107 -0
  56. package/dist/shared/components/layout-editor/editors/report-widget-config.js +94 -0
  57. package/dist/shared/components/layout-editor/editors/row-rule-check.js +225 -0
  58. package/dist/shared/components/layout-editor/editors/row-rule-row.js +1353 -0
  59. package/dist/shared/components/layout-editor/editors/swap-config.js +245 -0
  60. package/dist/shared/components/layout-editor/focus-buffer.js +32 -0
  61. package/dist/shared/components/layout-editor/host.js +15 -0
  62. package/dist/shared/components/layout-editor/inspector/AdvancedTab.js +296 -0
  63. package/dist/shared/components/layout-editor/inspector/GridTab.js +767 -0
  64. package/dist/shared/components/layout-editor/inspector/GroupInspector.js +456 -0
  65. package/dist/shared/components/layout-editor/inspector/HeaderItemInspector.js +268 -0
  66. package/dist/shared/components/layout-editor/inspector/Inspector.js +332 -0
  67. package/dist/shared/components/layout-editor/inspector/LookTab.js +310 -0
  68. package/dist/shared/components/layout-editor/inspector/PickerTab.js +333 -0
  69. package/dist/shared/components/layout-editor/inspector/RulesTab.js +323 -0
  70. package/dist/shared/components/layout-editor/inspector/SlotInspector.js +179 -0
  71. package/dist/shared/components/layout-editor/inspector/SubtitleInspector.js +154 -0
  72. package/dist/shared/components/layout-editor/inspector/WidgetInspector.js +262 -0
  73. package/dist/shared/components/layout-editor/inspector/applies.js +27 -0
  74. package/dist/shared/components/layout-editor/inspector/field-context.js +134 -0
  75. package/dist/shared/components/layout-editor/inspector/interfaces.js +126 -0
  76. package/dist/shared/components/layout-editor/inspector/kit.js +595 -0
  77. package/dist/shared/components/layout-editor/inspector/model.js +307 -0
  78. package/dist/shared/components/layout-editor/overview/OverviewActions.js +15 -0
  79. package/dist/shared/components/layout-editor/overview/describe-conditions.js +121 -0
  80. package/dist/shared/components/layout-editor/overview/overview-api.js +141 -0
  81. package/dist/shared/components/layout-editor/overview/purpose.js +62 -0
  82. package/dist/shared/components/layout-editor/overview/record-count.js +65 -0
  83. package/dist/shared/components/layout-editor/panel-frame.js +99 -0
  84. package/dist/shared/components/layout-editor/panel-style.js +19 -0
  85. package/dist/shared/components/layout-editor/pickers/field-picker.js +230 -0
  86. package/dist/shared/components/layout-editor/pickers/icon-picker.js +233 -0
  87. package/dist/shared/components/layout-editor/pickers/relation-label.js +34 -0
  88. package/dist/shared/components/layout-editor/pickers/relation-picker.js +136 -0
  89. package/dist/shared/components/layout-editor/record-queries.js +15 -0
  90. package/dist/shared/components/layout-editor/settings/AddendumSection.js +52 -0
  91. package/dist/shared/components/layout-editor/settings/ButtonsSection.js +45 -0
  92. package/dist/shared/components/layout-editor/settings/DefaultsSection.js +67 -0
  93. package/dist/shared/components/layout-editor/settings/FormSettings.js +146 -0
  94. package/dist/shared/components/layout-editor/settings/InheritanceSection.js +37 -0
  95. package/dist/shared/components/layout-editor/settings/LayoutSection.js +70 -0
  96. package/dist/shared/components/layout-editor/settings/PdfSection.js +176 -0
  97. package/dist/shared/components/layout-editor/settings/ReadSection.js +79 -0
  98. package/dist/shared/components/layout-editor/settings/TextSetting.js +55 -0
  99. package/dist/shared/components/layout-editor/settings/ToggleSetting.js +33 -0
  100. package/dist/shared/components/layout-editor/settings/ToolsSection.js +179 -0
  101. package/dist/shared/components/layout-editor/settings/WhoSection.js +213 -0
  102. package/dist/shared/components/layout-editor/settings/controls.js +214 -0
  103. package/dist/shared/components/layout-editor/settings/section-props.js +17 -0
  104. package/dist/shared/components/layout-editor/settings/settings-api.js +151 -0
  105. package/dist/shared/components/layout-editor/settings/settings-registry.js +445 -0
  106. package/dist/shared/components/layout-editor/slot-names.js +20 -0
  107. package/dist/shared/components/layout-editor/summary-pref.js +21 -0
  108. package/dist/shared/components/layout-editor/useLayoutDraft.js +474 -0
  109. package/dist/shared/components/pipeline/relations.js +28 -23
  110. package/dist/shared/components/ui/popover.js +17 -17
  111. package/dist/shared/components/ui/scroll-area.js +38 -0
  112. package/dist/shared/hooks/useRelationOptions.js +60 -0
  113. package/dist/shared/lib/layout-grants.js +9 -0
  114. package/dist/shared/lib/layout-ops.js +348 -0
  115. package/dist/shared/lib/layout-slots.js +11 -7
  116. package/dist/shared/lib/request-gate.js +1 -1
  117. 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.51", j = 1e4, Ne = 150, Me = 3e3, Oe = 600, Ue = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
10
+ const Pe = "nivaro-react@0.2.53", 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 type { CSSProperties } from 'react';
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
- export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug: layoutSlugProp, initialAddendumViewId, onAddendumViewChange, onBack, onSaved, onDeleted, showHeader, headerExtra, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, hideHelpVideoButton, extraBottomContent, onHeaderWidgets, autofillProposalId, onAutofillConsumed, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
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,15 @@ 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;
4436
+ /** Extra rows for the record's More menu, above Delete (e.g. a host's Edit layout).
4437
+ * Rows that open something outside the menu set `data-nvr-menu-close`. */
4438
+ moreMenuItems?: ReactNode;
4362
4439
  /** Scroll to + flash a field on load (deep links: ?focus=<field>). */
4363
4440
  focusField?: string | null;
4364
4441
  /**
@@ -4424,6 +4501,14 @@ export declare interface ItemEditFormProps {
4424
4501
  * from another one (workflow lines from a purchase order's lines) cannot
4425
4502
  * hand them over through initialValues. */
4426
4503
  initialRows?: Record<string, Array<Record<string, unknown>>>;
4504
+ /** Layout editor canvas (spec §7.3): render this draft layout with the
4505
+ * preview record's values, every placement selectable, nothing written. */
4506
+ design?: LayoutDesignProp;
4507
+ /** The host has Edit layout open on this collection over this form, or closed it and its
4508
+ * last save has not settled yet (useLayoutEditingQuiet). Config pushes naming this
4509
+ * collection are then the admin's own saves: no "This form was changed" banner and no
4510
+ * refetch per save — the host re-reads the layout queries once the editor's saves land. */
4511
+ layoutEditing?: boolean;
4427
4512
  }
4428
4513
 
4429
4514
  /** A record the UI wants to link to / open the edit page for. */
@@ -4532,6 +4617,12 @@ declare interface LadderTier {
4532
4617
  notify: string;
4533
4618
  }
4534
4619
 
4620
+ /**
4621
+ * How long a layout save's config:update can still arrive after the save itself: the server's
4622
+ * per-collection push gap (config-live MIN_GAP_MS, 2 s) plus socket delivery.
4623
+ */
4624
+ export declare const LAYOUT_PUSH_SETTLE_MS = 2500;
4625
+
4535
4626
  declare interface LayoutAssignment {
4536
4627
  field: string;
4537
4628
  group_key: string | null;
@@ -4544,6 +4635,32 @@ declare interface LayoutAssignment {
4544
4635
  default_expanded?: boolean | number | null;
4545
4636
  }
4546
4637
 
4638
+ declare interface LayoutDesign {
4639
+ selected: DesignTarget | null;
4640
+ onSelect(t: DesignTarget): void;
4641
+ showHidden: boolean;
4642
+ /** Parent layout name when the node comes from an inherited layout, else null. */
4643
+ inheritedFrom(t: DesignTarget): string | null;
4644
+ dnd: DesignDnd;
4645
+ /** "Preview as role": what that role's field permissions do to the node
4646
+ * (hidden: faint with a tag, still selectable; read-only: a lock tag). */
4647
+ roleMark?(t: DesignTarget): RoleMark | null;
4648
+ }
4649
+
4650
+ /**
4651
+ * The `design` prop of every renderer the layout editor uses as its canvas
4652
+ * (ItemEditForm, RecordReadView, RecordDrilldownSheet).
4653
+ */
4654
+ declare interface LayoutDesignProp {
4655
+ /** The draft layout — rendered instead of the server's resolved layout. */
4656
+ layout: ActiveLayoutData;
4657
+ /** Preview record (its values, steps and rules); null/absent = no values. */
4658
+ record?: Record<string, unknown> | null;
4659
+ context: LayoutDesign;
4660
+ /** Something on the canvas tried to write and was refused (tests, dev tooling). */
4661
+ onRefusedWrite?: (w: RefusedWrite) => void;
4662
+ }
4663
+
4547
4664
  /**
4548
4665
  * Full layout-aware form renderer.
4549
4666
  *
@@ -4617,6 +4734,32 @@ declare interface LayoutGroup {
4617
4734
 
4618
4735
  export declare type LayoutItem = FormGroupDescriptor | '__ungrouped__';
4619
4736
 
4737
+ declare interface LayoutMeta {
4738
+ id: number;
4739
+ name: string;
4740
+ tab_mode: 'tabs' | 'steps' | null;
4741
+ validate_before_next: boolean;
4742
+ summary_enabled: boolean;
4743
+ summary_show_all: boolean;
4744
+ summary_hide_empty?: boolean;
4745
+ ai_enabled: boolean;
4746
+ disable_comments?: boolean | number;
4747
+ hide_integrity_banner?: boolean | number;
4748
+ hide_sla_banner?: boolean | number;
4749
+ /** Per-layout "changes so far" tray at the bottom of the record body. */
4750
+ changes_tray?: boolean | number;
4751
+ disable_tasks?: boolean | number;
4752
+ disable_revisions?: boolean | number;
4753
+ disable_clone?: boolean | number;
4754
+ disable_delete?: boolean | number;
4755
+ accordion_mode?: boolean | number;
4756
+ addendum_layout_id?: number | null;
4757
+ addendum_default_view?: boolean | number;
4758
+ default_values?: Record<string, unknown> | null;
4759
+ /** Quick picker: relation fields walked one step at a time on create. */
4760
+ quick_picker?: string[] | null;
4761
+ }
4762
+
4620
4763
  declare interface LayoutSlotHandle {
4621
4764
  update?: (props: LayoutSlotProps) => void;
4622
4765
  destroy?: () => void;
@@ -7051,7 +7194,7 @@ export declare function RecordChatActions({ collection, itemDraft, compact }: {
7051
7194
  compact?: boolean;
7052
7195
  }): JSX.Element | null;
7053
7196
 
7054
- export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose }: {
7197
+ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, rootLayoutSlug, width, title, stack: controlledStack, onPush, onPop, onClose, design }: {
7055
7198
  collection: string;
7056
7199
  itemId: string;
7057
7200
  layoutId?: number | null;
@@ -7070,6 +7213,10 @@ export declare function RecordDrilldownSheet({ collection, itemId, layoutId, roo
7070
7213
  onPush?: (target: DrilldownTarget) => void;
7071
7214
  onPop?: () => void;
7072
7215
  onClose: () => void;
7216
+ /** Layout editor canvas: render this draft detail layout (not the fetched
7217
+ * one) with the preview record, inline at its sheet width instead of in a
7218
+ * modal sheet, with no Open record link and no host override view. */
7219
+ design?: LayoutDesignProp;
7073
7220
  }): JSX.Element;
7074
7221
 
7075
7222
  /**
@@ -7265,10 +7412,23 @@ export declare function RecordOutboxHost({ userId, onOpenRecord }: {
7265
7412
  onOpenRecord?: (collection: string, itemId: string) => void;
7266
7413
  }): null;
7267
7414
 
7268
- export declare function RecordReadView({ collection, itemId, layoutData, flush, renderSlot, integrityMarks, renderGrid, onEditSection, gridCounts }: {
7415
+ /**
7416
+ * Read-only record presentation. With `design` (the layout editor's canvas)
7417
+ * the whole view — its own hooks included — runs inside DesignCanvas: a
7418
+ * client that cannot write, no realtime, inert inputs, selectable shells.
7419
+ */
7420
+ export declare function RecordReadView(props: Parameters<typeof RecordReadViewBody>[0]): JSX.Element;
7421
+
7422
+ declare function RecordReadViewBody({ collection, itemId: itemIdProp, layoutData: layoutDataProp, design, flush, renderSlot, integrityMarks, renderGrid, onEditSection, gridCounts }: {
7269
7423
  collection: string;
7270
- itemId: string;
7271
- layoutData: ReadViewLayout;
7424
+ /** Required outside design mode. */
7425
+ itemId?: string;
7426
+ /** Required outside design mode. */
7427
+ layoutData?: ReadViewLayout;
7428
+ /** Layout editor canvas (spec §7.3): render this draft layout with the
7429
+ * preview record's values; no layout, record or field-config reads, no
7430
+ * live updates, every section/field/header item/slot selectable. */
7431
+ design?: LayoutDesignProp;
7272
7432
  /** Host already pads and scrolls the body (the record form's Summary mode). */
7273
7433
  flush?: boolean;
7274
7434
  /**
@@ -7361,6 +7521,12 @@ declare type Rect = {
7361
7521
  h: number;
7362
7522
  };
7363
7523
 
7524
+ /** What a refused call tried: `{method, path}` (GraphQL/upload/import name themselves). */
7525
+ declare type RefusedWrite = {
7526
+ method: string;
7527
+ path: string;
7528
+ };
7529
+
7364
7530
  /** Register a detail opener for a catalog collection. Returns an unregister
7365
7531
  * cleanup — call it on unmount so a dead host can't leave a stale opener. */
7366
7532
  export declare function registerCatalogItemOpener(collection: string, fn: CatalogItemOpener): () => void;
@@ -7745,6 +7911,12 @@ export declare function RevisionsPanel({ collection, item, onRollback, triggerCl
7745
7911
  onOpenChange?: (open: boolean) => void;
7746
7912
  }): JSX.Element;
7747
7913
 
7914
+ declare interface RoleMark {
7915
+ kind: 'hidden' | 'readonly';
7916
+ /** The role's name, for the tag ("Hidden for Finance"). */
7917
+ role: string;
7918
+ }
7919
+
7748
7920
  export declare interface RoomInfo {
7749
7921
  room: string;
7750
7922
  label: string;
@@ -8197,6 +8369,22 @@ export declare interface SlaRule {
8197
8369
 
8198
8370
  export declare function SlaRulesView(): JSX.Element;
8199
8371
 
8372
+ declare interface SlotAssignment {
8373
+ field: string;
8374
+ sort: number;
8375
+ group_key?: string | null;
8376
+ col_span?: number | null;
8377
+ is_visible: boolean | number;
8378
+ default_expanded?: boolean;
8379
+ label_override?: string | null;
8380
+ show_row_revisions?: boolean | number;
8381
+ allow_revision_restore?: boolean | number;
8382
+ lock_conditions?: string | null;
8383
+ overrides?: Record<string, unknown> | string | null;
8384
+ widget_id?: number | null;
8385
+ input_bindings?: string | null;
8386
+ }
8387
+
8200
8388
  export declare type SlotRendererProps = {
8201
8389
  slot: string;
8202
8390
  collection: string;
@@ -9211,6 +9399,19 @@ export declare function useItemNavigation(): {
9211
9399
  open: (target: ItemLinkTarget) => void;
9212
9400
  };
9213
9401
 
9402
+ /**
9403
+ * A record page's `layoutEditing` for its ItemEditForm (configUpdateReaction): true while Edit
9404
+ * layout is open, and after it closes until the editor's last save settles plus the push gap,
9405
+ * so the admin's own saves never raise "This form was changed" on the record under the overlay.
9406
+ *
9407
+ * `settle(saved)` is called on close with LayoutEditor onBack's `saved` promise. Reopening
9408
+ * before the tail ends is covered by `editing`; a later close starts a new tail.
9409
+ */
9410
+ export declare function useLayoutEditingQuiet(editing: boolean): {
9411
+ layoutEditing: boolean;
9412
+ settle: (saved: Promise<unknown>) => void;
9413
+ };
9414
+
9214
9415
  /**
9215
9416
  * A list read (`readItems` query), kept current: rows others change are re-read as the viewer
9216
9417
  * and patched in place, rows that stop matching leave, deletes drop out, and anything whose