@astryxdesign/cli 0.7.10-canary.fef4d91 → 0.7.11-canary.a888b3d

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 (57) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/api/build/blocks/blocks.weights.json +1 -1
  3. package/api/build/build.doc.mjs +1 -1
  4. package/api/build/kit/signals.mjs +9 -3
  5. package/api/build/kit/start.d.mts +19 -0
  6. package/api/build/kit/start.mjs +49 -2
  7. package/api/build/kit/weights.d.mts +12 -0
  8. package/api/build/kit/weights.mjs +52 -16
  9. package/api/docs/_adapter.mjs +2 -1
  10. package/api/doctor/_adapter.d.mts +28 -1
  11. package/api/doctor/_adapter.mjs +39 -2
  12. package/api/doctor/doctor.doc.mjs +1 -1
  13. package/api/doctor/doctor.mjs +9 -2
  14. package/api/doctor/theme-checks.d.mts +44 -3
  15. package/api/doctor/theme-checks.mjs +273 -6
  16. package/api/hook/hook.mjs +13 -0
  17. package/api/integration/pack-check.d.mts +8 -6
  18. package/api/integration/pack-check.mjs +16 -6
  19. package/api/render/_adapter.mjs +47 -1
  20. package/api/render/render.doc.mjs +2 -1
  21. package/api/search/_gather-components.mjs +2 -1
  22. package/api/swizzle/copy/copy.mjs +5 -1
  23. package/api/theme/build/build.mjs +15 -4
  24. package/assets/docs/author-a-theme.doc.mjs +2 -0
  25. package/assets/docs/getting-started.doc.mjs +20 -0
  26. package/assets/docs/tree/building-blocks.doc.mjs +1 -0
  27. package/assets/docs/tree/global-integrations.doc.mjs +1 -0
  28. package/assets/docs/tree/help.doc.mjs +1 -1
  29. package/assets/docs/tree/quick-start.doc.mjs +1 -0
  30. package/assets/docs/tree/render-pages.doc.mjs +1 -1
  31. package/assets/docs/tree/ship.doc.mjs +1 -1
  32. package/assets/docs/tree/tokens-color.doc.mjs +2 -2
  33. package/clients/cli/commands/build.doc.mjs +3 -2
  34. package/foundation/discovery/authoring-self-docs.mjs +8 -3
  35. package/foundation/discovery/cli-self-docs.mjs +2 -1
  36. package/foundation/discovery/component-discovery.mjs +16 -0
  37. package/foundation/discovery/docs-discovery.mjs +6 -4
  38. package/foundation/discovery/icon-definition-discovery.mjs +3 -3
  39. package/foundation/discovery/module-exports.d.mts +30 -1
  40. package/foundation/discovery/module-exports.mjs +82 -4
  41. package/foundation/discovery/template-adapter.mjs +5 -7
  42. package/foundation/discovery/theme-discovery.mjs +8 -10
  43. package/foundation/doc-compiler/tree.mjs +2 -2
  44. package/foundation/fs/listing-cache.d.mts +3 -1
  45. package/foundation/fs/listing-cache.mjs +63 -11
  46. package/foundation/fs/paths.mjs +2 -1
  47. package/foundation/render/embedded-imports.d.mts +7 -0
  48. package/foundation/render/embedded-imports.mjs +1 -1
  49. package/foundation/render/page-worker.mjs +109 -4
  50. package/foundation/render/render-page.d.mts +16 -1
  51. package/foundation/render/render-page.mjs +25 -18
  52. package/foundation/render/served-packages.d.mts +33 -0
  53. package/foundation/render/served-packages.mjs +75 -0
  54. package/foundation/render/single-copy-hooks.d.mts +18 -0
  55. package/foundation/render/single-copy-hooks.mjs +44 -0
  56. package/foundation/text/string-utils.mjs +25 -25
  57. 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