@nivaro/react 0.1.146 → 0.1.148

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
@@ -304,6 +304,8 @@ export declare function BroadcastView({ className }: {
304
304
 
305
305
  export declare function buildGroups<T extends QueueGroupingRow>(rows: T[], attribute: string): QueueGroup<T>[];
306
306
 
307
+ export declare function canOpenCatalogItem(collection: string | null | undefined): boolean;
308
+
307
309
  export declare function canOpenChatRoom(): boolean;
308
310
 
309
311
  export declare function canOpenDm(): boolean;
@@ -325,6 +327,11 @@ declare type CascadeRule = {
325
327
  child_field: string;
326
328
  };
327
329
 
330
+ /** context = the hosting form's current values (parent draft) — lets the
331
+ * host seed its drawer's filters (warehouse, project type, …) from the
332
+ * record the click came from. Shape is host-interpreted. */
333
+ declare type CatalogItemOpener = (id: string, context?: Record<string, unknown>) => void;
334
+
328
335
  export declare function CellCopyLayer(): ReactPortal | null;
329
336
 
330
337
  declare interface CellFilterLite {
@@ -1917,6 +1924,9 @@ declare interface LayoutAssignment {
1917
1924
  label_override: string | null;
1918
1925
  is_visible: boolean | number;
1919
1926
  overrides?: string | Record<string, unknown> | null;
1927
+ widget_id?: number | null;
1928
+ input_bindings?: string | null;
1929
+ default_expanded?: boolean | number | null;
1920
1930
  }
1921
1931
 
1922
1932
  /**
@@ -2395,6 +2405,8 @@ export declare function onFieldInterfacesChange(cb: () => void): () => void;
2395
2405
  */
2396
2406
  export declare function onIdleChange(fn: (idle: boolean) => void): () => void;
2397
2407
 
2408
+ export declare function openCatalogItem(collection: string, id: string, context?: Record<string, unknown>): void;
2409
+
2398
2410
  export declare function openChatRoom(room: string, label?: string): void;
2399
2411
 
2400
2412
  export declare function openDmWith(userId: string, displayName?: string): void;
@@ -2581,10 +2593,13 @@ declare type PipelineState = {
2581
2593
  stage_visibility: 'always' | 'hide' | 'hide_unless_active';
2582
2594
  };
2583
2595
 
2584
- export declare function PipelineTransitionButtons({ collection, item, onBeforeTransition }: {
2596
+ export declare function PipelineTransitionButtons({ collection, item, onBeforeTransition, wrap }: {
2585
2597
  collection: string;
2586
2598
  item: string;
2587
2599
  onBeforeTransition?: () => boolean | Promise<boolean>;
2600
+ /** false = single-line buttons (header hosting): wrapping would absorb the
2601
+ * width pressure the header's overflow-collapse logic needs to see. */
2602
+ wrap?: boolean;
2588
2603
  }): JSX.Element | null;
2589
2604
 
2590
2605
  /** Play the configured notification sound. No-op for 'off'/unknown/unavailable audio. */
@@ -3203,6 +3218,10 @@ export declare function RecordSubscribeButton({ collection, itemId, recordLabel
3203
3218
  recordLabel?: string;
3204
3219
  }): JSX.Element;
3205
3220
 
3221
+ /** Register a detail opener for a catalog collection. Returns an unregister
3222
+ * cleanup — call it on unmount so a dead host can't leave a stale opener. */
3223
+ export declare function registerCatalogItemOpener(collection: string, fn: CatalogItemOpener): () => void;
3224
+
3206
3225
  /** Register the host's DM opener. Returns an unregister function. */
3207
3226
  export declare function registerDmOpener(fn: DmOpener): () => void;
3208
3227