@camstack/ui-library 1.2.245 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.245",
3
+ "version": "1.2.246",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -1,11 +0,0 @@
1
- import { CellState } from '../pipeline-matrix-shared';
2
- export interface StepChip {
3
- readonly id: string;
4
- /** Accelerator short label, for the tooltip. */
5
- readonly label: string;
6
- readonly state: CellState;
7
- }
8
- export declare function StepChips({ chips, selectedId, }: {
9
- readonly chips: readonly StepChip[];
10
- readonly selectedId?: string | null;
11
- }): import("react").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { ReactNode } from 'react';
2
- /** The tallest the inspector block can be without making its scroll container scroll. */
3
- export declare function fillHeightPx(input: {
4
- readonly scrollerHeight: number;
5
- readonly paddingBottom: number;
6
- readonly offsetInScroller: number;
7
- readonly minPx: number;
8
- }): number;
9
- export interface StepInspectorLayoutProps {
10
- readonly list: ReactNode;
11
- readonly detail: ReactNode;
12
- /** On a phone the detail is a sheet: open while a step is being inspected. */
13
- readonly mobileDetailOpen: boolean;
14
- readonly onMobileClose: () => void;
15
- /** The floor of the desktop block, so a short page still shows a usable pane. */
16
- readonly minHeightPx?: number;
17
- readonly className?: string;
18
- }
19
- export declare function StepInspectorLayout({ list, detail, mobileDetailOpen, onMobileClose, minHeightPx, className, }: StepInspectorLayoutProps): import("react").JSX.Element;
20
- /** "‹ Steps" — the phone sheet's way back to the list. */
21
- export declare function BackToStepsButton({ onClick }: {
22
- readonly onClick: () => void;
23
- }): import("react").JSX.Element;
@@ -1,39 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PipelineSlot } from '@camstack/types';
3
- export interface StepListRow {
4
- readonly addonId: string;
5
- readonly name: string;
6
- readonly slot: PipelineSlot;
7
- /** Tree depth — children indent under their parent. */
8
- readonly depth: number;
9
- /** Every field label of the step, for the search (including cluster-owned ones). */
10
- readonly fieldLabels: readonly string[];
11
- /** Right-aligned status (the camera's gate). */
12
- readonly status?: ReactNode;
13
- /** Second line: one chip per accelerator. */
14
- readonly detail?: ReactNode;
15
- }
16
- export interface StepListProps {
17
- readonly rows: readonly StepListRow[];
18
- readonly selectedId: string | null;
19
- /** `matchedField` = the field label a search hit matched (absent for a name match). */
20
- readonly onSelect: (addonId: string, matchedField?: string) => void;
21
- /** Enter / → on a row: move focus into the inspector. */
22
- readonly onActivate: (addonId: string) => void;
23
- /** A row was chosen — clicked, or the search hit Enter picked (on a phone: open the sheet). */
24
- readonly onPick?: (addonId: string) => void;
25
- readonly label: string;
26
- readonly className?: string;
27
- }
28
- export interface StepListHandle {
29
- /** Focus the selected row — how the inspector's Escape returns here. */
30
- readonly focusSelected: () => void;
31
- }
32
- interface Hit {
33
- readonly row: StepListRow;
34
- readonly matchedField?: string;
35
- }
36
- /** Rows matching `query` (all tokens in the name, or all in one field label). */
37
- export declare function searchSteps(rows: readonly StepListRow[], query: string): readonly Hit[];
38
- export declare const StepList: import('react').ForwardRefExoticComponent<StepListProps & import('react').RefAttributes<StepListHandle>>;
39
- export {};
@@ -1,2 +0,0 @@
1
- import { PipelineSchema, PipelineTemplateStep, TemplateValidationResult } from '@camstack/types';
2
- export declare function validateTemplate(steps: readonly PipelineTemplateStep[], schema: PipelineSchema): TemplateValidationResult;