@pstdio/ui 0.20.1 → 0.21.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.
@@ -7,6 +7,7 @@ interface BuildColumnsOptions {
7
7
  compactHeaders?: Partial<Record<string, string>>;
8
8
  enableSelection?: boolean;
9
9
  rowActions?: DataTableRowAction[];
10
+ getRowActions?: (row: RowData) => DataTableRowAction[];
10
11
  selectedRowIds?: RowSelectionState;
11
12
  columnRenderers?: Partial<Record<string, DataTableColumnRenderer>>;
12
13
  }
@@ -96,6 +96,7 @@ export interface DataTableProps {
96
96
  selectionMode?: "none" | "multiple";
97
97
  selectionActions?: DataTableSelectionAction[];
98
98
  rowActions?: DataTableRowAction[];
99
+ getRowActions?: (row: RowData) => DataTableRowAction[];
99
100
  compactHeaders?: Partial<Record<string, string>>;
100
101
  getRowId?: (row: RowData, index: number) => string;
101
102
  toolbarStorageKey?: string;
@@ -2,6 +2,7 @@ export { CodeDiffEditor, CodeEditor, preloadCodeEditor } from './code-editor';
2
2
  export { DiffBubble } from './diff-bubble';
3
3
  export type { Diff } from './diff-card';
4
4
  export { DiffDrawer } from './diff-drawer';
5
+ export { isBinaryDiffPath, isGeneratedDiffPath, LARGE_DIFF_LINE_THRESHOLD } from './diff-size';
5
6
  export { DiffViewer, type DiffViewerProps } from './diff-viewer';
6
7
  export { useDiffViewerStore } from './diff-viewer.store';
7
8
  export { FileChangeBadge } from './file-change-badge';
@@ -6,6 +6,7 @@ interface TagEditorRowProps {
6
6
  iconOptions?: readonly IconColorPickerIconOption[];
7
7
  value: TagEditorValue;
8
8
  isSaving?: boolean;
9
+ readOnly?: boolean;
9
10
  showDefault?: boolean;
10
11
  showIcons?: boolean;
11
12
  onActionsChange: (actions: string[]) => void;
@@ -28,6 +28,7 @@ export interface TagEditorProps {
28
28
  /** Marks the heading with the unsaved-changes asterisk. */
29
29
  hasChanges?: boolean;
30
30
  isSaving?: boolean;
31
+ readOnly?: boolean;
31
32
  addLabel?: string;
32
33
  /** Name given to a freshly added option before it is renamed inline. */
33
34
  addName?: string;
@@ -4,7 +4,7 @@ export interface SaveTagSettingsInput<TValue> {
4
4
  drafts: TagEditorValue[];
5
5
  values: TValue[];
6
6
  }
7
- type EditorLabels = Pick<TagEditorProps, "actionOptions" | "addLabel" | "addName" | "colorOptions" | "deleteButtonText" | "deleteHeadline" | "deleteNotificationText" | "description" | "iconOptions" | "showIcons" | "title">;
7
+ type EditorLabels = Pick<TagEditorProps, "actionOptions" | "addLabel" | "addName" | "colorOptions" | "deleteButtonText" | "deleteHeadline" | "deleteNotificationText" | "description" | "iconOptions" | "readOnly" | "showDefault" | "onSetDefault" | "showIcons" | "title">;
8
8
  type SortableValue = {
9
9
  id: string;
10
10
  sortOrder: number;