@nivaro/react 0.1.244 → 0.1.246

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/index.d.ts CHANGED
@@ -2283,6 +2283,8 @@ declare interface LayoutGroup {
2283
2283
  container_id?: number | null;
2284
2284
  is_collapsed?: boolean | number | null;
2285
2285
  visibility_mode?: string | null;
2286
+ /** Migration 311 — read-board width: full | half | third | null (auto). */
2287
+ read_width?: string | null;
2286
2288
  }
2287
2289
 
2288
2290
  export declare type LayoutItem = FormGroupDescriptor | '__ungrouped__';
@@ -3827,12 +3829,26 @@ export declare function RecordGridWidgetBody({ widget }: {
3827
3829
  widget: PageRendererWidget;
3828
3830
  }): JSX.Element;
3829
3831
 
3830
- export declare function RecordReadView({ collection, itemId, layoutData, flush }: {
3832
+ export declare function RecordReadView({ collection, itemId, layoutData, flush, renderSlot, integrityMarks }: {
3831
3833
  collection: string;
3832
3834
  itemId: string;
3833
3835
  layoutData: ReadViewLayout;
3834
- /** Host already pads and scrolls the body (the record form's read mode). */
3836
+ /** Host already pads and scrolls the body (the record form's Summary mode). */
3835
3837
  flush?: boolean;
3838
+ /**
3839
+ * Page-slot sentinels (`__comments__`, `__tasks__`, …) the host wants to
3840
+ * keep LIVE inside the read view — Summary mode is read-only for the
3841
+ * record's fields, but notes and tasks stay editable (Rob). Return null to
3842
+ * skip a slot. A slot placed in a section renders inside that card; the
3843
+ * rest render full-width under the cards, in layout order.
3844
+ */
3845
+ renderSlot?: (key: string, assignment: LayoutAssignment) => ReactNode;
3846
+ /**
3847
+ * Summary mode hides the data-integrity banner but must not hide the
3848
+ * problem: with this on, every field (or child grid) that carries a
3849
+ * finding gets an amber mark whose tip lists the messages.
3850
+ */
3851
+ integrityMarks?: boolean;
3836
3852
  }): JSX.Element;
3837
3853
 
3838
3854
  /**
@@ -3840,8 +3856,9 @@ export declare function RecordReadView({ collection, itemId, layoutData, flush }
3840
3856
  * watermark and, when other people changed the record in between, renders a
3841
3857
  * one-line recap above the form. The server owns the session semantics (a
3842
3858
  * refresh within 30 minutes keeps the same baseline), the strip just shows
3843
- * whatever the touch returned. Dismiss is per-mount — the next genuine visit
3844
- * recomputes against the new baseline anyway.
3859
+ * whatever the touch returned. Dismiss POSTs /dismiss, which collapses the
3860
+ * server baseline to now — a reload inside the session grace stays quiet, and
3861
+ * only changes made after the dismissal come back as news.
3845
3862
  */
3846
3863
  export declare function RecordRecapStrip({ collection, itemId }: {
3847
3864
  collection: string;