@astryxdesign/cli 0.7.10-canary.fef4d91 → 0.7.10

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/package.json +6 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @xds/cli
2
2
 
3
+ # 0.7.10
4
+
5
+ #### New Features
6
+
7
+ - `astryx discover` lists the experimental PageControl component from `@astryxdesign/lab`. (#9684)
8
+ - `createDragToSnapPoints` and its hook `useDragToSnapPoints` let a drag move an element along one axis and settle it on snap points (px offsets from its resting position) at the release: the nearest one, the next one in its direction after a flick faster than `flickThreshold` (default 1008 px/s), or the one it started from when the release moves back. The settle continues the release velocity, `settleTo(index)` settles without a drag, and `onSettle(index)` reports where it landed. `createDragToSnapPoints` is exported from the package root and `useDragToSnapPoints` from `@astryxdesign/core/hooks`; the CLI's templates gain a playing-card example of each. (#8658)
9
+
10
+ #### Fixes
11
+
12
+ - Inserting a token through `ChatComposerInput`'s handle (`insertToken`) now reports the new value through `onChange` once, as typing does, and hides the placeholder. Before, a controlled host's Send button stayed disabled or sent a stale prompt. The `ai-chat-landing` page template drops the input-event workaround it used to sync the composer after an insert. (#10167)
13
+ - The CLI no longer lists `@astryxdesign/theme-neutral`, `@astryxdesign/lab` or `@astryxdesign/charts` as optional peers. Before, a package manager could keep a theme from an older release as the CLI's peer after an app removed the theme and upgraded Core, and then warn that the theme's Core peer was not met. `@astryxdesign/core` stays the CLI's one optional peer. In a Yarn Plug'n'Play workspace member, or a pnpm workspace member with `hoist: false`, a legacy `package.json#astryx.theme` of `neutral` now makes `astryx component` warn that it cannot resolve the theme. Add the theme to the app with `astryx theme add neutral` instead. (#10232)
14
+
15
+ #### Documentation
16
+
17
+ - A new `useMultiCombobox — Issue Labels` example block builds a Labels field on `useMultiCombobox`: typing filters the labels, the arrow keys move the active option while focus stays in the field, Enter or a click toggles a label and the list stays open, and selected labels show as removable tokens above the field. Copy it with `astryx template useMultiComboboxHookUsage <path>`. (#9578)
18
+ - A `useSnapPaging — Onboarding Pages` example block: onboarding cards in a Carousel with `hasSnap={useSnapPaging()}` move one view per flick, and a switch moves one card per flick through the hook's `pages` option. Copy it with `astryx template CarouselSnapPaging <path>`. (#8153)
19
+
20
+ #### Contributors
21
+
22
+ Thanks to everyone who contributed to this release:
23
+
24
+ - @cixzhang
25
+ - @kyu-rong
26
+ - @vjeux
27
+
28
+ ---
29
+
3
30
  # 0.7.9
4
31
 
5
32
  #### Experimental APIs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.10-canary.fef4d91",
3
+ "version": "0.7.10",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -124,30 +124,18 @@
124
124
  "zod": "^4.4.3"
125
125
  },
126
126
  "peerDependencies": {
127
- "@astryxdesign/charts": "0.7.10-canary.fef4d91",
128
- "@astryxdesign/core": "0.7.10-canary.fef4d91",
129
- "@astryxdesign/lab": "0.7.10-canary.fef4d91",
130
- "@astryxdesign/theme-neutral": "0.7.10-canary.fef4d91"
127
+ "@astryxdesign/core": "*"
131
128
  },
132
129
  "peerDependenciesMeta": {
133
- "@astryxdesign/charts": {
134
- "optional": true
135
- },
136
130
  "@astryxdesign/core": {
137
131
  "optional": true
138
- },
139
- "@astryxdesign/lab": {
140
- "optional": true
141
- },
142
- "@astryxdesign/theme-neutral": {
143
- "optional": true
144
132
  }
145
133
  },
146
134
  "devDependencies": {
147
- "@astryxdesign/charts": "0.7.10-canary.fef4d91",
148
- "@astryxdesign/core": "0.7.10-canary.fef4d91",
149
- "@astryxdesign/lab": "0.7.10-canary.fef4d91",
150
- "@astryxdesign/theme-neutral": "0.7.10-canary.fef4d91",
135
+ "@astryxdesign/charts": "*",
136
+ "@astryxdesign/core": "*",
137
+ "@astryxdesign/lab": "*",
138
+ "@astryxdesign/theme-neutral": "*",
151
139
  "@heroicons/react": "^2.2.0",
152
140
  "@stylexjs/stylex": "^0.19.0",
153
141
  "@types/babel__core": "^7.20.5",