@astryxdesign/cli 0.7.3-canary.cab6e90 → 0.7.3-canary.cb489ff

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.
@@ -461,22 +461,8 @@ async function componentRead(name, options = {}) {
461
461
  return componentDetailBlocks(dirName, cwd, owner.package);
462
462
  }
463
463
  const loaded = await loadComponentDoc(owner.docPath, docOpts);
464
- // A family member reads as that member, scoped the way the unscoped
465
- // lookup scopes it: an integration member by its own entry, a Core
466
- // sub-component (HStack in the Stack doc) by scopeSubComponent.
467
- const sub =
468
- scoped.kind === 'core'
469
- ? scopeSubComponent(loaded, dirName, coreDir)
470
- : null;
471
- if (sub) {
472
- if (props) {
473
- return componentDetailProps(
474
- {props: sub.matchingComponent.props},
475
- owner.package,
476
- );
477
- }
478
- return componentDetail(sub.scoped, owner, dirName, coreDir);
479
- }
464
+ // A family member an integration lists under its own name reads as that
465
+ // member, the way a Core sub-component does below.
480
466
  const docs =
481
467
  scoped.kind === 'integration'
482
468
  ? scopeIntegrationMember(loaded, owner, dirName)
@@ -135,21 +135,6 @@ describe('component list — components whose docs live in a family folder', ()
135
135
  });
136
136
  }, SLOW);
137
137
 
138
- it('answers a Core-scoped lookup of a member with that member, as the unscoped lookup does', async () => {
139
- for (const name of ['HStack', 'VStack']) {
140
- const unscoped = await component(name, {cwd});
141
- const scoped = await component(name, {
142
- cwd,
143
- package: '@astryxdesign/core',
144
- });
145
- expect(scoped.data.name).toBe(name);
146
- expect(scoped.data.parentDoc).toBe('Stack');
147
- expect(scoped.data.import).toBe(`@astryxdesign/core/${name}`);
148
- expect(scoped.data.props).toEqual(unscoped.data.props);
149
- expect(scoped.data.props.length).toBeGreaterThan(0);
150
- }
151
- }, SLOW);
152
-
153
138
  it('prints each one\'s own import path in the list, the detail, and search', async () => {
154
139
  // The path `component <Name>` prints is the one docs and examples teach:
155
140
  // the component's own entry point, never its family's (/Stack, /Text) or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.3-canary.cab6e90",
3
+ "version": "0.7.3-canary.cb489ff",
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",
@@ -106,10 +106,10 @@
106
106
  "zod": "^4.4.3"
107
107
  },
108
108
  "peerDependencies": {
109
- "@astryxdesign/charts": "0.7.3-canary.cab6e90",
110
- "@astryxdesign/core": "0.7.3-canary.cab6e90",
111
- "@astryxdesign/lab": "0.7.3-canary.cab6e90",
112
- "@astryxdesign/theme-neutral": "0.7.3-canary.cab6e90"
109
+ "@astryxdesign/charts": "0.7.3-canary.cb489ff",
110
+ "@astryxdesign/core": "0.7.3-canary.cb489ff",
111
+ "@astryxdesign/lab": "0.7.3-canary.cb489ff",
112
+ "@astryxdesign/theme-neutral": "0.7.3-canary.cb489ff"
113
113
  },
114
114
  "peerDependenciesMeta": {
115
115
  "@astryxdesign/charts": {
@@ -126,10 +126,10 @@
126
126
  }
127
127
  },
128
128
  "devDependencies": {
129
- "@astryxdesign/charts": "0.7.3-canary.cab6e90",
130
- "@astryxdesign/core": "0.7.3-canary.cab6e90",
131
- "@astryxdesign/lab": "0.7.3-canary.cab6e90",
132
- "@astryxdesign/theme-neutral": "0.7.3-canary.cab6e90",
129
+ "@astryxdesign/charts": "0.7.3-canary.cb489ff",
130
+ "@astryxdesign/core": "0.7.3-canary.cb489ff",
131
+ "@astryxdesign/lab": "0.7.3-canary.cb489ff",
132
+ "@astryxdesign/theme-neutral": "0.7.3-canary.cb489ff",
133
133
  "@heroicons/react": "^2.2.0",
134
134
  "@stylexjs/stylex": "^0.19.0",
135
135
  "@types/babel__core": "^7.20.5",