@nivaro/react 0.2.14 → 0.2.15

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
@@ -1074,6 +1074,17 @@ declare interface CMSRelation {
1074
1074
  one_allowed_collections?: string | null;
1075
1075
  }
1076
1076
 
1077
+ declare interface CoalescingOptions {
1078
+ /**
1079
+ * #1304: record reads (`GET /items/<c>` and `GET /items/<c>/<id>`) fired in
1080
+ * the same tick ride ONE `POST /items/batch-read`. Off by default — a host
1081
+ * opts in. A read the batch could not answer with 200 (or a batch that fails
1082
+ * as a whole) is re-sent on its own, so callers see exactly the response or
1083
+ * error they would have seen without batching. Writes never batch.
1084
+ */
1085
+ batchReads?: boolean;
1086
+ }
1087
+
1077
1088
  /** @deprecated Column model changed to plain field keys — kept for source
1078
1089
  * compatibility with early adopters; maps `path` to a field key. */
1079
1090
  export declare interface CollectionBrowserColumn {
@@ -3956,9 +3967,14 @@ declare type NivaroFormProps = {
3956
3967
  style?: default_2.CSSProperties;
3957
3968
  };
3958
3969
 
3959
- export declare function NivaroProvider({ client, children }: {
3970
+ export declare function NivaroProvider({ client, children, batchReads }: {
3960
3971
  client: NivaroClient;
3961
3972
  children: React_2.ReactNode;
3973
+ /**
3974
+ * #1304: record reads fired in the same tick share one
3975
+ * `POST /items/batch-read`. Off by default; a host opts in.
3976
+ */
3977
+ batchReads?: boolean;
3962
3978
  }): React_2.JSX.Element;
3963
3979
 
3964
3980
  /**
@@ -4774,7 +4790,7 @@ declare type PipelineBinding = {
4774
4790
  dimensions?: PipelineOwnerDimension[];
4775
4791
  };
4776
4792
 
4777
- export declare type PipelineEditorSection = 'states' | 'transitions' | 'branches' | 'bindings' | 'matrix' | 'simulator' | 'canvas' | 'flow-map' | 'replay' | 'migration' | 'coverage' | 'ai-review' | 'versions';
4793
+ export declare type PipelineEditorSection = 'states' | 'transitions' | 'branches' | 'bindings' | 'matrix' | 'simulator' | 'canvas' | 'flow-map' | 'replay' | 'migration' | 'coverage' | 'lint' | 'skip-report' | 'ai-review' | 'versions' | 'matrix-versions';
4778
4794
 
4779
4795
  export declare function PipelineEditorView({ templateId, onBack, onExport, hidden }: {
4780
4796
  templateId: string;
@@ -6385,6 +6401,10 @@ declare type SkipLookupFilter = {
6385
6401
 
6386
6402
  declare type SkipOp = 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'notin';
6387
6403
 
6404
+ export declare function SkipReportCard({ templateId }: {
6405
+ templateId: string;
6406
+ }): JSX.Element;
6407
+
6388
6408
  export declare interface SlaRule {
6389
6409
  id: number;
6390
6410
  workflow_template: string;
@@ -6687,6 +6707,10 @@ export declare function TeamScopeEditor({ teamId, scopes, onSaved }: {
6687
6707
  */
6688
6708
  declare type TeamScopeMap = Record<string, Array<string | number>>;
6689
6709
 
6710
+ export declare function TeamSuggestionsPanel({ onApplied }: {
6711
+ onApplied: (teamId: number) => void;
6712
+ }): JSX.Element;
6713
+
6690
6714
  export declare function TeamsView({ canManage, compact, initialTeamId }: {
6691
6715
  /** Hide mutation controls for non-admin hosts (the server enforces anyway). */
6692
6716
  canManage?: boolean;
@@ -6697,6 +6721,10 @@ export declare function TeamsView({ canManage, compact, initialTeamId }: {
6697
6721
 
6698
6722
  declare type TeamTier = 'suggested' | 'unscoped' | 'out';
6699
6723
 
6724
+ export declare function TemplateLintCard({ templateId }: {
6725
+ templateId: string;
6726
+ }): JSX.Element;
6727
+
6700
6728
  export declare function TextareaField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
6701
6729
 
6702
6730
  export declare function TextField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
@@ -7525,7 +7553,7 @@ declare interface WidgetSlotProps {
7525
7553
  onContentChange?: (hasContent: boolean) => void;
7526
7554
  }
7527
7555
 
7528
- export declare function withGetCoalescing(client: NivaroClient): NivaroClient;
7556
+ export declare function withGetCoalescing(client: NivaroClient, opts?: CoalescingOptions): NivaroClient;
7529
7557
 
7530
7558
  export declare function WorkflowPanel({ collection, item }: {
7531
7559
  collection: string;