@nivaro/react 0.2.13 → 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/full.css +1 -1
- package/dist/index.d.ts +37 -4
- package/dist/index.js +25872 -24430
- package/package.json +1 -1
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
|
/**
|
|
@@ -4075,8 +4091,13 @@ export declare interface NotificationBellProps {
|
|
|
4075
4091
|
export declare interface NotificationBundle<R = unknown> {
|
|
4076
4092
|
collection: string;
|
|
4077
4093
|
item: string;
|
|
4078
|
-
/** The record's
|
|
4094
|
+
/** The record's headline — friendly id, display label, or (deleted) its
|
|
4095
|
+
* trash snapshot's label. Only a client-side fold shows a raw id. */
|
|
4079
4096
|
label: string;
|
|
4097
|
+
/** The record no longer exists: no Open, a "deleted" chip. */
|
|
4098
|
+
deleted?: boolean;
|
|
4099
|
+
/** "Region" — the collection's singular name for a chip beside the label. */
|
|
4100
|
+
collection_label?: string | null;
|
|
4080
4101
|
count: number;
|
|
4081
4102
|
unread: number;
|
|
4082
4103
|
lane: NotificationLane;
|
|
@@ -4769,7 +4790,7 @@ declare type PipelineBinding = {
|
|
|
4769
4790
|
dimensions?: PipelineOwnerDimension[];
|
|
4770
4791
|
};
|
|
4771
4792
|
|
|
4772
|
-
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';
|
|
4773
4794
|
|
|
4774
4795
|
export declare function PipelineEditorView({ templateId, onBack, onExport, hidden }: {
|
|
4775
4796
|
templateId: string;
|
|
@@ -6380,6 +6401,10 @@ declare type SkipLookupFilter = {
|
|
|
6380
6401
|
|
|
6381
6402
|
declare type SkipOp = 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'notin';
|
|
6382
6403
|
|
|
6404
|
+
export declare function SkipReportCard({ templateId }: {
|
|
6405
|
+
templateId: string;
|
|
6406
|
+
}): JSX.Element;
|
|
6407
|
+
|
|
6383
6408
|
export declare interface SlaRule {
|
|
6384
6409
|
id: number;
|
|
6385
6410
|
workflow_template: string;
|
|
@@ -6682,6 +6707,10 @@ export declare function TeamScopeEditor({ teamId, scopes, onSaved }: {
|
|
|
6682
6707
|
*/
|
|
6683
6708
|
declare type TeamScopeMap = Record<string, Array<string | number>>;
|
|
6684
6709
|
|
|
6710
|
+
export declare function TeamSuggestionsPanel({ onApplied }: {
|
|
6711
|
+
onApplied: (teamId: number) => void;
|
|
6712
|
+
}): JSX.Element;
|
|
6713
|
+
|
|
6685
6714
|
export declare function TeamsView({ canManage, compact, initialTeamId }: {
|
|
6686
6715
|
/** Hide mutation controls for non-admin hosts (the server enforces anyway). */
|
|
6687
6716
|
canManage?: boolean;
|
|
@@ -6692,6 +6721,10 @@ export declare function TeamsView({ canManage, compact, initialTeamId }: {
|
|
|
6692
6721
|
|
|
6693
6722
|
declare type TeamTier = 'suggested' | 'unscoped' | 'out';
|
|
6694
6723
|
|
|
6724
|
+
export declare function TemplateLintCard({ templateId }: {
|
|
6725
|
+
templateId: string;
|
|
6726
|
+
}): JSX.Element;
|
|
6727
|
+
|
|
6695
6728
|
export declare function TextareaField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
6696
6729
|
|
|
6697
6730
|
export declare function TextField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -7520,7 +7553,7 @@ declare interface WidgetSlotProps {
|
|
|
7520
7553
|
onContentChange?: (hasContent: boolean) => void;
|
|
7521
7554
|
}
|
|
7522
7555
|
|
|
7523
|
-
export declare function withGetCoalescing(client: NivaroClient): NivaroClient;
|
|
7556
|
+
export declare function withGetCoalescing(client: NivaroClient, opts?: CoalescingOptions): NivaroClient;
|
|
7524
7557
|
|
|
7525
7558
|
export declare function WorkflowPanel({ collection, item }: {
|
|
7526
7559
|
collection: string;
|