@loworbitstudio/visor 0.4.0 → 0.5.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.
package/README.md CHANGED
@@ -13,6 +13,7 @@ npx visor init
13
13
  | Command | Description |
14
14
  |---------|-------------|
15
15
  | `visor add <component>` | Copy a component into your project |
16
+ | `visor add <component> --target flutter` | Copy Flutter widget(s) + merge `visor_core` into `pubspec.yaml` |
16
17
  | `visor list` | List all available components |
17
18
  | `visor info <component>` | Component metadata and usage guidance |
18
19
  | `visor theme sync` | Sync installed themes to latest |
@@ -21,6 +22,24 @@ npx visor init
21
22
  | `visor diff` | See what's changed since you last updated |
22
23
  | `visor suggest --for <context>` | Get component suggestions for a use case |
23
24
 
25
+ ## Target platforms
26
+
27
+ `visor add` defaults to the React target. Pass `--target flutter` to install
28
+ copy-and-own Flutter widgets that read their tokens from the `visor_core`
29
+ pub.dev package:
30
+
31
+ ```bash
32
+ cd my_flutter_app
33
+ npx visor add button stat-card empty-state section-header --target flutter
34
+ ```
35
+
36
+ This writes widget sources under `config.paths.flutterComponents`
37
+ (default `lib/visor/components/`), merges `visor_core` into `pubspec.yaml`
38
+ preserving your existing deps and comments, and runs `flutter pub get` via
39
+ `flutter` on PATH or via FVM (`~/fvm/default` → highest installed version).
40
+ When the Flutter CLI can't be found, `add` finishes writing files and warns
41
+ so you can run `flutter pub get` yourself.
42
+
24
43
  ## Documentation
25
44
 
26
45
  Full docs at [visor.loworbit.studio](https://visor.loworbit.studio).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.4.0",
3
- "generated_at": "2026-04-21T17:12:43.542Z",
3
+ "generated_at": "2026-04-28T22:06:10.258Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "changeType": "current",
@@ -152,6 +152,12 @@
152
152
  "breakingChange": false,
153
153
  "migrationNote": null
154
154
  },
155
+ "date-range-picker": {
156
+ "changeType": "current",
157
+ "files": [],
158
+ "breakingChange": false,
159
+ "migrationNote": null
160
+ },
155
161
  "dialog": {
156
162
  "changeType": "current",
157
163
  "files": [],