@nivaro/react 0.1.127 → 0.1.129
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 +105 -0
- package/dist/index.js +28404 -21410
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ export declare function AddendumPanel({ collection, item, addendumLayoutId, canC
|
|
|
84
84
|
|
|
85
85
|
export declare function agingBucket(hours: number | null): string;
|
|
86
86
|
|
|
87
|
+
export declare function AiReviewCard({ templateId }: {
|
|
88
|
+
templateId: string;
|
|
89
|
+
}): React_2.JSX.Element;
|
|
90
|
+
|
|
87
91
|
export declare function AlertManagerView({ defaultTab, hiddenTabs, onOpenReport, className }: AlertManagerViewProps): JSX.Element;
|
|
88
92
|
|
|
89
93
|
export declare interface AlertManagerViewProps {
|
|
@@ -2403,11 +2407,24 @@ export declare function OwnerAvatars({ owners, max, emptyLabel }: {
|
|
|
2403
2407
|
emptyLabel?: string;
|
|
2404
2408
|
}): JSX.Element;
|
|
2405
2409
|
|
|
2410
|
+
export declare function OwnerGapsCard({ templateId, states }: {
|
|
2411
|
+
templateId: string;
|
|
2412
|
+
states: PipelineState[];
|
|
2413
|
+
}): React_2.JSX.Element;
|
|
2414
|
+
|
|
2406
2415
|
declare interface OwnerLike {
|
|
2407
2416
|
id: string;
|
|
2408
2417
|
name: string;
|
|
2409
2418
|
}
|
|
2410
2419
|
|
|
2420
|
+
export declare function OwnerMatrix({ templateId, states, bindings }: OwnerMatrixProps): JSX.Element | null;
|
|
2421
|
+
|
|
2422
|
+
declare interface OwnerMatrixProps {
|
|
2423
|
+
templateId: string;
|
|
2424
|
+
states: PipelineState[];
|
|
2425
|
+
bindings: PipelineBinding[];
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2411
2428
|
export declare function OwnersSlot({ collection, item, title, defaultExpanded }: {
|
|
2412
2429
|
collection: string;
|
|
2413
2430
|
item: string;
|
|
@@ -2477,6 +2494,37 @@ declare interface PinnedMessage {
|
|
|
2477
2494
|
date_created: string;
|
|
2478
2495
|
}
|
|
2479
2496
|
|
|
2497
|
+
declare type PipelineBinding = {
|
|
2498
|
+
id: number;
|
|
2499
|
+
template: string;
|
|
2500
|
+
collection: string;
|
|
2501
|
+
state_field: string | null;
|
|
2502
|
+
auto_start: boolean;
|
|
2503
|
+
auto_start_state: string | null;
|
|
2504
|
+
owner_fallback_field: string | null;
|
|
2505
|
+
dimensions?: PipelineOwnerDimension[];
|
|
2506
|
+
};
|
|
2507
|
+
|
|
2508
|
+
export declare type PipelineEditorSection = 'states' | 'transitions' | 'branches' | 'bindings' | 'matrix' | 'simulator' | 'canvas' | 'flow-map' | 'replay' | 'migration' | 'coverage' | 'ai-review' | 'versions';
|
|
2509
|
+
|
|
2510
|
+
export declare function PipelineEditorView({ templateId, onBack, onExport, hidden }: {
|
|
2511
|
+
templateId: string;
|
|
2512
|
+
onBack?: () => void;
|
|
2513
|
+
onExport?: () => Promise<void>;
|
|
2514
|
+
/** Sections to omit entirely — e.g. a frontend host hides ['versions', 'replay', 'canvas']. Default: show everything. */
|
|
2515
|
+
hidden?: PipelineEditorSection[];
|
|
2516
|
+
}): React_2.JSX.Element;
|
|
2517
|
+
|
|
2518
|
+
declare type PipelineOwnerDimension = {
|
|
2519
|
+
id: number;
|
|
2520
|
+
binding: number;
|
|
2521
|
+
field: string;
|
|
2522
|
+
label: string;
|
|
2523
|
+
sort: number;
|
|
2524
|
+
is_row_axis: boolean;
|
|
2525
|
+
required: boolean;
|
|
2526
|
+
};
|
|
2527
|
+
|
|
2480
2528
|
export declare function PipelinePanel({ collection, item, defaultExpanded, title, showApprovalChain, onBeforeTransition, addendumPending, addendumView }: {
|
|
2481
2529
|
collection: string;
|
|
2482
2530
|
item: string;
|
|
@@ -2488,6 +2536,26 @@ export declare function PipelinePanel({ collection, item, defaultExpanded, title
|
|
|
2488
2536
|
addendumView?: boolean;
|
|
2489
2537
|
}): JSX.Element | null;
|
|
2490
2538
|
|
|
2539
|
+
export declare function PipelineSimulatorCard({ bindings }: {
|
|
2540
|
+
bindings: Array<{
|
|
2541
|
+
collection: string;
|
|
2542
|
+
}>;
|
|
2543
|
+
}): React_2.JSX.Element | null;
|
|
2544
|
+
|
|
2545
|
+
declare type PipelineState = {
|
|
2546
|
+
id: string;
|
|
2547
|
+
template: string;
|
|
2548
|
+
key: string;
|
|
2549
|
+
label: string;
|
|
2550
|
+
color: string | null;
|
|
2551
|
+
is_initial: boolean;
|
|
2552
|
+
is_terminal: boolean;
|
|
2553
|
+
lock_record: boolean;
|
|
2554
|
+
sort: number;
|
|
2555
|
+
skip_criteria?: SkipCriteria | null;
|
|
2556
|
+
stage_visibility: 'always' | 'hide' | 'hide_unless_active';
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2491
2559
|
export declare function PipelineTransitionButtons({ collection, item, onBeforeTransition }: {
|
|
2492
2560
|
collection: string;
|
|
2493
2561
|
item: string;
|
|
@@ -3486,6 +3554,43 @@ declare interface SheetItem {
|
|
|
3486
3554
|
url: string;
|
|
3487
3555
|
}
|
|
3488
3556
|
|
|
3557
|
+
declare type SkipCondition = {
|
|
3558
|
+
type: 'no_owners';
|
|
3559
|
+
} | {
|
|
3560
|
+
type: 'field_compare';
|
|
3561
|
+
field: string;
|
|
3562
|
+
op: SkipOp;
|
|
3563
|
+
value: unknown;
|
|
3564
|
+
} | {
|
|
3565
|
+
type: 'field_empty';
|
|
3566
|
+
field: string;
|
|
3567
|
+
} | {
|
|
3568
|
+
type: 'field_nonempty';
|
|
3569
|
+
field: string;
|
|
3570
|
+
} | {
|
|
3571
|
+
type: 'lookup_compare';
|
|
3572
|
+
collection: string;
|
|
3573
|
+
filters: SkipLookupFilter[];
|
|
3574
|
+
compare_column: string;
|
|
3575
|
+
record_field: string;
|
|
3576
|
+
op: SkipOp;
|
|
3577
|
+
match?: 'any' | 'all';
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3580
|
+
declare type SkipCriteria = {
|
|
3581
|
+
mode: 'any' | 'all';
|
|
3582
|
+
conditions: SkipCondition[];
|
|
3583
|
+
};
|
|
3584
|
+
|
|
3585
|
+
declare type SkipLookupFilter = {
|
|
3586
|
+
column: string;
|
|
3587
|
+
value?: unknown;
|
|
3588
|
+
record_field?: string;
|
|
3589
|
+
op?: 'eq' | 'in';
|
|
3590
|
+
};
|
|
3591
|
+
|
|
3592
|
+
declare type SkipOp = 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte' | 'in' | 'notin';
|
|
3593
|
+
|
|
3489
3594
|
export declare type SlotRendererProps = {
|
|
3490
3595
|
slot: string;
|
|
3491
3596
|
collection: string;
|