@almadar/core 10.106.0 → 10.107.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.
@@ -1,6 +1,6 @@
1
- import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-DtAf51pB.js';
2
- import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-aRqGRPE_.js';
3
- import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-CzhNoRw4.js';
1
+ import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, l as RenderBinding, m as RenderUIEffect, e as EntityId, f as Entity, E as EntityField, a as EntityPersistence, g as EntityRow } from './effect-CXEHwilA.js';
2
+ import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-Bpel0-Do.js';
3
+ import { b as TraitConfig, h as Trait, T as TraitEventListener, i as CallSiteConfig, k as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-C97MPrMf.js';
4
4
  import { S as SExpr } from './expression-CfeHdS-f.js';
5
5
  import 'zod';
6
6
  import './json-D8gmyK3l.js';
@@ -1,4 +1,4 @@
1
- import { F as FieldValue, S as ServerReportedEffect, N as NamespacedEffectName, g as EntityRow, d as OrbitalId, T as TraitId, b as EventId, h as PatternConfig, i as ResolvedPatternProps, A as AnyPatternConfig } from './effect-DtAf51pB.js';
1
+ import { F as FieldValue, S as ServerReportedEffect, N as NamespacedEffectName, g as EntityRow, d as OrbitalId, T as TraitId, b as EventId, h as PatternConfig, i as ResolvedPatternProps, A as AnyPatternConfig } from './effect-CXEHwilA.js';
2
2
  import { z } from 'zod';
3
3
  import { a as EventPayloadValue, b as EventPayload } from './expression-CfeHdS-f.js';
4
4
 
@@ -2840,8 +2840,8 @@ type EntityData = Record<string, EntityRow[]>;
2840
2840
  *
2841
2841
  * DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
2842
2842
  *
2843
- * Generated: 2026-09-26T10:53:57.286Z
2844
- * Pattern count: 248
2843
+ * Generated: 2026-09-27T02:12:25.889Z
2844
+ * Pattern count: 250
2845
2845
  */
2846
2846
 
2847
2847
  /**
@@ -2853,7 +2853,7 @@ type PatternPropValue = Record<string, FieldValue | undefined>;
2853
2853
  * All valid pattern type names from @almadar/core/patterns registry.
2854
2854
  * Use this type in render-ui effects for compile-time validation.
2855
2855
  */
2856
- type PatternType = 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'command-palette' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'control-button' | 'control-grid' | 'counter-template' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'dock-layout' | 'document-details' | 'document-panel' | 'document-viewer' | 'draw-fx-layer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-skinned-mesh' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-grid' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'floating-toolbar' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'fx-overlay' | 'game-audio-cue' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'gantt' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hstack' | 'icon' | 'icon-button' | 'image' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'jazari-state-machine' | 'label' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'progress-bar' | 'progress-dots' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-text-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'status-dot' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-input' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'top-nav-item' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-component' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
2856
+ type PatternType = 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'center' | 'change-list' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'command-palette' | 'commit-row' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'control-button' | 'control-grid' | 'counter-template' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'dock-layout' | 'document-details' | 'document-panel' | 'document-viewer' | 'draw-fx-layer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-skinned-mesh' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-grid' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'floating-toolbar' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'fx-overlay' | 'game-audio-cue' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'gantt' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hstack' | 'icon' | 'icon-button' | 'image' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'jazari-state-machine' | 'label' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'progress-bar' | 'progress-dots' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-text-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'status-dot' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-input' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'top-nav-item' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-component' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
2857
2857
  /**
2858
2858
  * Pattern props map — each pattern type maps to its valid props interface.
2859
2859
  */
@@ -3302,6 +3302,12 @@ interface PatternPropsMap {
3302
3302
  children: unknown | string | SExpr;
3303
3303
  as?: unknown | string | SExpr;
3304
3304
  };
3305
+ 'change-list': {
3306
+ type: 'change-list';
3307
+ changes: unknown[] | PatternPropValue | string | SExpr;
3308
+ inspectEvent?: string | SExpr;
3309
+ className?: string | SExpr;
3310
+ };
3305
3311
  'chart': {
3306
3312
  type: 'chart';
3307
3313
  title?: string | SExpr;
@@ -3453,6 +3459,21 @@ interface PatternPropsMap {
3453
3459
  emptyLabel?: string | SExpr;
3454
3460
  className?: string | SExpr;
3455
3461
  };
3462
+ 'commit-row': {
3463
+ type: 'commit-row';
3464
+ sha: string | SExpr;
3465
+ message: string | SExpr;
3466
+ author?: string | SExpr;
3467
+ timestamp?: string | SExpr;
3468
+ kind?: string | SExpr;
3469
+ additions?: number | string | SExpr;
3470
+ deletions?: number | string | SExpr;
3471
+ selected?: boolean | string | SExpr;
3472
+ current?: boolean | string | SExpr;
3473
+ selectEvent?: string | SExpr;
3474
+ restoreEvent?: string | SExpr;
3475
+ className?: string | SExpr;
3476
+ };
3456
3477
  'conditional-wrapper': {
3457
3478
  type: 'conditional-wrapper';
3458
3479
  condition?: unknown | string | SExpr;
@@ -6203,7 +6224,8 @@ interface PatternPropsMap {
6203
6224
  };
6204
6225
  'version-diff': {
6205
6226
  type: 'version-diff';
6206
- revisions: unknown[] | PatternPropValue | string | SExpr;
6227
+ revisions?: unknown[] | PatternPropValue | string | SExpr;
6228
+ hunks?: unknown[] | string | SExpr;
6207
6229
  beforeId?: string | SExpr;
6208
6230
  afterId?: string | SExpr;
6209
6231
  view?: string | SExpr;
@@ -1,5 +1,5 @@
1
- import { O as OrbitalEntity } from './effect-DtAf51pB.js';
2
- import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-aRqGRPE_.js';
1
+ import { O as OrbitalEntity } from './effect-CXEHwilA.js';
2
+ import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-Bpel0-Do.js';
3
3
  import { S as SExpr } from './expression-CfeHdS-f.js';
4
4
 
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-4EKT1Oco.js';
2
- export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-4EKT1Oco.js';
3
- import { a as EntityPersistence, E as EntityField } from '../effect-DtAf51pB.js';
4
- import { a as TraitReference } from '../trait-CzhNoRw4.js';
1
+ import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-CoFKpB6f.js';
2
+ export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-CoFKpB6f.js';
3
+ import { a as EntityPersistence, E as EntityField } from '../effect-CXEHwilA.js';
4
+ import { a as TraitReference } from '../trait-C97MPrMf.js';
5
5
  export { J as JsonValue } from '../json-D8gmyK3l.js';
6
6
  import 'zod';
7
7
  import '../expression-CfeHdS-f.js';
@@ -24927,9 +24927,11 @@ var patterns_registry_default = {
24927
24927
  "version-diff": {
24928
24928
  type: "version-diff",
24929
24929
  category: "display",
24930
+ sourceFile: "components/core/molecules/VersionDiff.tsx",
24930
24931
  tier: "molecules",
24931
24932
  family: "core",
24932
- description: "VersionDiff component",
24933
+ description: "A line diff between two versions \u2014 two whole texts, or a pre-computed diff such as one commit.",
24934
+ capabilities: "version diff, compare revisions, what changed, before and after, code diff, commit diff, revision comparison",
24933
24935
  suggestedFor: [
24934
24936
  "version",
24935
24937
  "diff",
@@ -24943,7 +24945,6 @@ var patterns_registry_default = {
24943
24945
  "object"
24944
24946
  ],
24945
24947
  description: "All available revisions (at least 2). Accepts either a typed array (direct consumers) or the runtime payload shape from a render-ui binding (`@payload.revisions`). Narrowed to `[]` internally when the value isn't an array.",
24946
- required: true,
24947
24948
  items: {
24948
24949
  types: [
24949
24950
  "object"
@@ -24982,6 +24983,70 @@ var patterns_registry_default = {
24982
24983
  ]
24983
24984
  }
24984
24985
  },
24986
+ hunks: {
24987
+ types: [
24988
+ "array"
24989
+ ],
24990
+ description: "A pre-computed diff to render instead of diffing `revisions` (no revision pickers).",
24991
+ items: {
24992
+ types: [
24993
+ "object"
24994
+ ],
24995
+ properties: {
24996
+ header: {
24997
+ types: [
24998
+ "string"
24999
+ ]
25000
+ },
25001
+ lines: {
25002
+ types: [
25003
+ "array"
25004
+ ],
25005
+ items: {
25006
+ types: [
25007
+ "object"
25008
+ ],
25009
+ properties: {
25010
+ type: {
25011
+ types: [
25012
+ "string"
25013
+ ],
25014
+ enumValues: [
25015
+ "added",
25016
+ "removed",
25017
+ "unchanged",
25018
+ "context"
25019
+ ]
25020
+ },
25021
+ beforeLineNumber: {
25022
+ types: [
25023
+ "number"
25024
+ ]
25025
+ },
25026
+ afterLineNumber: {
25027
+ types: [
25028
+ "number"
25029
+ ]
25030
+ },
25031
+ content: {
25032
+ types: [
25033
+ "string"
25034
+ ]
25035
+ }
25036
+ },
25037
+ required: [
25038
+ "type",
25039
+ "content"
25040
+ ]
25041
+ }
25042
+ }
25043
+ },
25044
+ required: [
25045
+ "header",
25046
+ "lines"
25047
+ ]
25048
+ }
25049
+ },
24985
25050
  beforeId: {
24986
25051
  types: [
24987
25052
  "string"
@@ -24998,7 +25063,7 @@ var patterns_registry_default = {
24998
25063
  types: [
24999
25064
  "string"
25000
25065
  ],
25001
- description: "Display mode.",
25066
+ description: "Display mode to start in; the toggle switches it.",
25002
25067
  enumValues: [
25003
25068
  "side-by-side",
25004
25069
  "inline"
@@ -51586,6 +51651,219 @@ var patterns_registry_default = {
51586
51651
  description: "className prop"
51587
51652
  }
51588
51653
  }
51654
+ },
51655
+ "change-list": {
51656
+ type: "change-list",
51657
+ category: "display",
51658
+ sourceFile: "components/core/molecules/ChangeList.tsx",
51659
+ tier: "molecules",
51660
+ family: "core",
51661
+ description: "The plain-language changes in one version (added / modified / removed).",
51662
+ capabilities: "change summary, what changed, version changes, diff summary, release notes list, modification list",
51663
+ suggestedFor: [
51664
+ "change",
51665
+ "list",
51666
+ "change list"
51667
+ ],
51668
+ typicalSize: "medium",
51669
+ propsSchema: {
51670
+ changes: {
51671
+ types: [
51672
+ "array",
51673
+ "object"
51674
+ ],
51675
+ description: "The changes. Accepts a typed list or a render-ui payload binding.",
51676
+ required: true,
51677
+ items: {
51678
+ types: [
51679
+ "object"
51680
+ ],
51681
+ properties: {
51682
+ type: {
51683
+ types: [
51684
+ "string"
51685
+ ],
51686
+ enumValues: [
51687
+ "added",
51688
+ "modified",
51689
+ "removed"
51690
+ ]
51691
+ },
51692
+ title: {
51693
+ types: [
51694
+ "string"
51695
+ ]
51696
+ },
51697
+ description: {
51698
+ types: [
51699
+ "string"
51700
+ ]
51701
+ },
51702
+ before: {
51703
+ types: [
51704
+ "string"
51705
+ ]
51706
+ },
51707
+ after: {
51708
+ types: [
51709
+ "string"
51710
+ ]
51711
+ }
51712
+ },
51713
+ required: [
51714
+ "type",
51715
+ "title"
51716
+ ]
51717
+ }
51718
+ },
51719
+ inspectEvent: {
51720
+ types: [
51721
+ "string"
51722
+ ],
51723
+ description: "Emitted by a change's Inspect button. Payload: { title, type }.",
51724
+ kind: "event-ref",
51725
+ emitPayloadSchema: [
51726
+ {
51727
+ name: "title",
51728
+ type: "string",
51729
+ required: true
51730
+ },
51731
+ {
51732
+ name: "type",
51733
+ type: "string",
51734
+ required: true,
51735
+ enumValues: [
51736
+ "added",
51737
+ "modified",
51738
+ "removed"
51739
+ ]
51740
+ }
51741
+ ]
51742
+ },
51743
+ className: {
51744
+ types: [
51745
+ "string"
51746
+ ],
51747
+ description: "className prop"
51748
+ }
51749
+ }
51750
+ },
51751
+ "commit-row": {
51752
+ type: "commit-row",
51753
+ category: "component",
51754
+ sourceFile: "components/core/molecules/CommitRow.tsx",
51755
+ tier: "molecules",
51756
+ family: "core",
51757
+ description: "One version in a history list \u2014 a commit row with select and restore.",
51758
+ capabilities: "version history row, commit entry, revision list item, change log entry, restore point, undo history item",
51759
+ suggestedFor: [
51760
+ "commit",
51761
+ "row",
51762
+ "commit row"
51763
+ ],
51764
+ typicalSize: "medium",
51765
+ propsSchema: {
51766
+ sha: {
51767
+ types: [
51768
+ "string"
51769
+ ],
51770
+ description: "Commit id; the first 7 characters are shown, the whole id on hover.",
51771
+ required: true
51772
+ },
51773
+ message: {
51774
+ types: [
51775
+ "string"
51776
+ ],
51777
+ description: "Commit message.",
51778
+ required: true
51779
+ },
51780
+ author: {
51781
+ types: [
51782
+ "string"
51783
+ ],
51784
+ description: "author prop"
51785
+ },
51786
+ timestamp: {
51787
+ types: [
51788
+ "string"
51789
+ ],
51790
+ description: 'Display time (already formatted, e.g. "2 min ago").'
51791
+ },
51792
+ kind: {
51793
+ types: [
51794
+ "string"
51795
+ ],
51796
+ description: "What made this version (a user save, an agent turn, a restore, an undo/redo, a snapshot).",
51797
+ enumValues: [
51798
+ "user",
51799
+ "agent",
51800
+ "restore",
51801
+ "undo",
51802
+ "redo",
51803
+ "snapshot"
51804
+ ]
51805
+ },
51806
+ additions: {
51807
+ types: [
51808
+ "number"
51809
+ ],
51810
+ description: "additions prop"
51811
+ },
51812
+ deletions: {
51813
+ types: [
51814
+ "number"
51815
+ ],
51816
+ description: "deletions prop"
51817
+ },
51818
+ selected: {
51819
+ types: [
51820
+ "boolean"
51821
+ ],
51822
+ description: "The row the user picked (shows its detail).",
51823
+ default: false
51824
+ },
51825
+ current: {
51826
+ types: [
51827
+ "boolean"
51828
+ ],
51829
+ description: "The version the app is at now \u2014 it cannot be restored to.",
51830
+ default: false
51831
+ },
51832
+ selectEvent: {
51833
+ types: [
51834
+ "string"
51835
+ ],
51836
+ description: "Emitted when the row is picked. Payload: { sha }.",
51837
+ kind: "event-ref",
51838
+ emitPayloadSchema: [
51839
+ {
51840
+ name: "sha",
51841
+ type: "string",
51842
+ required: true
51843
+ }
51844
+ ]
51845
+ },
51846
+ restoreEvent: {
51847
+ types: [
51848
+ "string"
51849
+ ],
51850
+ description: "Emitted by the Restore button. Payload: { sha }.",
51851
+ kind: "event-ref",
51852
+ emitPayloadSchema: [
51853
+ {
51854
+ name: "sha",
51855
+ type: "string",
51856
+ required: true
51857
+ }
51858
+ ]
51859
+ },
51860
+ className: {
51861
+ types: [
51862
+ "string"
51863
+ ],
51864
+ description: "className prop"
51865
+ }
51866
+ }
51589
51867
  }
51590
51868
  }};
51591
51869
  var JsonValueSchema = z.lazy(