@pstdio/ui 0.11.0 → 0.12.0

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.
@@ -37,6 +37,10 @@ export type AttributeType = {
37
37
  };
38
38
  export declare const isEnumOptionsSource: (options: EnumOptions) => options is EnumOptionsSource;
39
39
  export type AttributeKind = AttributeType["kind"];
40
+ export type AttributeDisplayDescriptor = {
41
+ kind: "workspace-badge";
42
+ itemsAttributeId: string;
43
+ };
40
44
  export interface AttributeDescriptor {
41
45
  id: string;
42
46
  label: string;
@@ -46,6 +50,7 @@ export interface AttributeDescriptor {
46
50
  sortable?: boolean;
47
51
  displayable?: boolean;
48
52
  editable?: boolean;
53
+ display?: AttributeDisplayDescriptor;
49
54
  render?: (value: unknown, row: DataRendererRow) => ReactNode;
50
55
  compare?: (a: unknown, b: unknown) => number;
51
56
  }
@@ -7,6 +7,7 @@ interface WorkspaceAttemptStatus {
7
7
  export interface WorkspaceBadgeProps {
8
8
  workspaceType: "worktree" | "current_branch";
9
9
  initializing?: boolean;
10
+ label?: string;
10
11
  shorthand?: string;
11
12
  attemptStatus?: WorkspaceAttemptStatus;
12
13
  sessionStatus?: SessionCompletionStatus;
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export type { DataRendererToolbarProps } from './components/data-renderer/data-r
26
26
  export { DataRendererToolbar } from './components/data-renderer/data-renderer-toolbar';
27
27
  export { DisplayMenu } from './components/data-renderer/display-menu';
28
28
  export { FilterMenu } from './components/data-renderer/filter-menu';
29
- export type { AttributeDescriptor, AttributeKind, AttributesSource, AttributeType, DataRendererFilterState, DataRendererOrdering, DataRendererRow, DataRendererSettings, EnumOption, EnumOptions, EnumOptionsSource, SortDirection, ViewMode, } from './components/data-renderer/types';
29
+ export type { AttributeDescriptor, AttributeDisplayDescriptor, AttributeKind, AttributesSource, AttributeType, DataRendererFilterState, DataRendererOrdering, DataRendererRow, DataRendererSettings, EnumOption, EnumOptions, EnumOptionsSource, SortDirection, ViewMode, } from './components/data-renderer/types';
30
30
  export { findAttribute, isAttributesSource, isEnumOptionsSource, MANUAL_ORDERING, NO_GROUPING, } from './components/data-renderer/types';
31
31
  export { useDataRendererStore } from './components/data-renderer/use-data-renderer-store';
32
32
  export { resolveAttributeOptions, useResolvedAttributes } from './components/data-renderer/use-resolved-attributes';