view-contracts 0.4.5 → 0.5.1

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  **Contract-first UI development for AI-native applications.**
4
4
 
5
+ ![3-platform visual parity — iOS (SwiftUI) / Android (Jetpack Compose) / React](examples/admin-dashboard/screenshots/comparison-3platform.png)
6
+
5
7
  view-contracts is a UI definition system that separates:
6
8
 
7
9
  - **Screen semantics** → OpenAPI
@@ -112,6 +114,7 @@ The generated output is deterministic.
112
114
 
113
115
  - React generation (`generated/react/` — screens, `runtime.ts`, `theme.css`, …)
114
116
  - SwiftUI generation (`generated/swiftui/` — full DSL element coverage, theme variant dictionary, `SampleData.json` from mock YAML SSoT)
117
+ - Jetpack Compose generation (`generated/compose/` — full DSL element coverage, theme variant system, Android preview app)
115
118
  - Design tokens + theme variants (`views/design/tokens.yaml`, `theme.yaml`)
116
119
  - Live DSL preview (`dev:preview`) with `views/preview/*.mock.yaml` sample data
117
120
  - Extension registry (`extensions.yaml`) with plain HTML/CSS implementations
@@ -119,13 +122,13 @@ The generated output is deterministic.
119
122
  - Standalone app scaffold (`.vite/` per example project)
120
123
  - Table DSL with configurable `separator` / `separatorColor` / `border` / `borderColor`
121
124
  - Dynamic variant resolution via `IrConcat` (runtime theme dictionary in SwiftUI)
125
+ - 3-platform visual parity (iOS / Android / React from same DSL definition)
122
126
 
123
127
  ### Planned
124
128
 
125
- - Jetpack Compose renderer
126
129
  - PDF renderer
127
130
 
128
- The contract model is designed for multi-target generation. React and SwiftUI are production-ready targets.
131
+ The contract model is designed for multi-target generation. React, SwiftUI, and Jetpack Compose are production-ready targets.
129
132
 
130
133
  ---
131
134
 
@@ -278,7 +281,7 @@ packages/
278
281
  renderers/
279
282
  ├── react/ # lowering, element map, runtime, templates
280
283
  ├── swiftui/ # lowering, theme dictionary, modifier cascade
281
- └── compose/ # (planned)
284
+ └── compose/ # lowering, theme system, modifier pipeline
282
285
 
283
286
  docs/
284
287
  ├── design-tokens-and-theme.md
package/cli-contract.yaml CHANGED
@@ -3,7 +3,7 @@ cli_contracts: 0.1.0
3
3
 
4
4
  info:
5
5
  title: view-contracts CLI
6
- version: 0.4.5
6
+ version: 0.5.0
7
7
  description: >-
8
8
  Contract-first UI design toolchain. Compiles restricted view-contract TSX
9
9
  to language-neutral View IR and renders platform targets (React, SwiftUI, Compose).