@astryxdesign/cli 0.7.5-canary.f042c6e → 0.7.5-canary.f2beb0b
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/CHANGELOG.md +3 -3
- package/api/hook/detail/detail.test.mjs +11 -0
- package/api/swizzle/copy/copy.mjs +1 -1
- package/api/template/tokenizer-showcase.test.mjs +47 -0
- package/api/theme/build/build.adaptation-enrollment.test.mjs +4 -0
- package/api/theme/build/build.icon-entry-variants.test.mjs +134 -0
- package/api/theme/build/build.icon-function-entries.test.mjs +499 -0
- package/api/theme/build/build.icon-variants.test.mjs +105 -0
- package/api/theme/build/build.mjs +362 -109
- package/api/theme/build/build.project-core.test.mjs +63 -8
- package/api/theme/build/build.test.mjs +77 -0
- package/api/theme/build/icon-imports.d.mts +12 -2
- package/api/theme/build/icon-imports.mjs +36 -11
- package/assets/codemods/transforms/next/__tests__/migrate-codeblock-tokenizer-to-language.test.mjs +130 -0
- package/assets/codemods/transforms/next/index.mjs +11 -1
- package/assets/codemods/transforms/next/migrate-codeblock-tokenizer-to-language.mjs +315 -0
- package/assets/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjs +1 -1
- package/assets/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjs +1 -1
- package/assets/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjs +1 -1
- package/assets/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjs +1 -1
- package/assets/codemods/transforms/v0.2.0/remove-tablist-orientation.mjs +1 -1
- package/assets/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjs +1 -1
- package/assets/docs/README.md +13 -13
- package/assets/docs/author-a-theme.doc.mjs +5 -1
- package/assets/docs/getting-started.doc.mjs +5 -5
- package/assets/docs/icons.doc.mjs +82 -1
- package/assets/docs/motion.doc.mjs +1 -1
- package/assets/docs/theme.doc.dense.mjs +8 -0
- package/assets/docs/theme.doc.mjs +16 -0
- package/assets/docs/theme.doc.zh.mjs +11 -0
- package/assets/docs/tree/i18n-library-integration.doc.mjs +1 -1
- package/assets/docs/tree/tokens-ease.doc.mjs +4 -0
- package/assets/docs/tree/tokens.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +6 -4
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.tsx +61 -55
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +6 -4
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.tsx +68 -37
- package/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +13 -6
- package/assets/theme.template.ts +19 -6
- package/authoring/config/config.doc.mjs +1 -1
- package/clients/cli/commands/build-theme.outside-project.test.mjs +140 -0
- package/clients/cli/commands/swizzle.routing.test.mjs +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -0
- package/foundation/agent-docs/agent-docs.test.mjs +5 -0
- package/foundation/config/project.d.mts +1 -1
- package/foundation/config/project.mjs +1 -1
- package/foundation/debug/redact.test.mjs +1 -1
- package/foundation/doc-compiler/doc-loads.test.mjs +2 -6
- package/package.json +12 -12
|
@@ -552,6 +552,11 @@ describe('detectStylingSystem', () => {
|
|
|
552
552
|
expect(detectStylingSystem(tmpDir)).toBe('stylex');
|
|
553
553
|
});
|
|
554
554
|
|
|
555
|
+
it('detects the official unplugin (the standard Vite path)', () => {
|
|
556
|
+
writePkg({'@stylexjs/unplugin': '0.10.0'});
|
|
557
|
+
expect(detectStylingSystem(tmpDir)).toBe('stylex');
|
|
558
|
+
});
|
|
559
|
+
|
|
555
560
|
it('detects tailwind when tailwindcss is present', () => {
|
|
556
561
|
writePkg({tailwindcss: '4.0.0'});
|
|
557
562
|
expect(detectStylingSystem(tmpDir)).toBe('tailwind');
|
|
@@ -44,7 +44,7 @@ export function providerLedgerOf(project: Project): import("../integrations/prov
|
|
|
44
44
|
/** Conventional config basenames, in load-precedence order. */
|
|
45
45
|
export const CONFIG_BASENAMES: string[];
|
|
46
46
|
/** Default issue tracker used when neither config nor integration routes one. */
|
|
47
|
-
export const DEFAULT_ISSUES_URL: "https://github.com/
|
|
47
|
+
export const DEFAULT_ISSUES_URL: "https://github.com/meta/astryx/issues/new";
|
|
48
48
|
/**
|
|
49
49
|
* The single API for reading resolved project configuration. Construct via the
|
|
50
50
|
* async {@link Project.load} factory.
|
|
@@ -330,7 +330,7 @@ export const CONFIG_BASENAMES = [
|
|
|
330
330
|
|
|
331
331
|
/** Default issue tracker used when neither config nor integration routes one. */
|
|
332
332
|
export const DEFAULT_ISSUES_URL =
|
|
333
|
-
'https://github.com/
|
|
333
|
+
'https://github.com/meta/astryx/issues/new';
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
336
|
* Whether this project accepts `debug` handlers contributed by the
|
|
@@ -305,7 +305,7 @@ describe('credential scrubbing', () => {
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
it.each([
|
|
308
|
-
['a URL', 'GET https://api.github.com/repos/
|
|
308
|
+
['a URL', 'GET https://api.github.com/repos/meta/astryx/pulls/4812'],
|
|
309
309
|
['a websocket URL', 'ws://localhost:5173/hmr/client'],
|
|
310
310
|
['a proxy URL', 'http://127.0.0.1:8931/a/b/c'],
|
|
311
311
|
['a time', 'elapsed 12:30 done'],
|
|
@@ -65,12 +65,11 @@ const RUNNERS = {
|
|
|
65
65
|
sites: ['importThemeArtifact'],
|
|
66
66
|
},
|
|
67
67
|
'api/theme/build/build.mjs': {
|
|
68
|
-
runs: "theme source modules, through jiti;
|
|
68
|
+
runs: "theme source modules, through jiti; the project's installed Core",
|
|
69
69
|
sites: [
|
|
70
70
|
'.evalModule() ×2',
|
|
71
71
|
'.import()',
|
|
72
72
|
'createJiti ×5',
|
|
73
|
-
'eval ×2',
|
|
74
73
|
'import(<computed>) ×3',
|
|
75
74
|
],
|
|
76
75
|
},
|
|
@@ -218,10 +217,7 @@ const RUNNERS = {
|
|
|
218
217
|
},
|
|
219
218
|
'clients/cli/commands/hook.mjs': {
|
|
220
219
|
runs: SELF_DOCS,
|
|
221
|
-
sites: [
|
|
222
|
-
'import ../../../api/hook/hook.doc.mjs',
|
|
223
|
-
'import ./hook.doc.mjs',
|
|
224
|
-
],
|
|
220
|
+
sites: ['import ../../../api/hook/hook.doc.mjs', 'import ./hook.doc.mjs'],
|
|
225
221
|
},
|
|
226
222
|
'clients/cli/commands/init.mjs': {
|
|
227
223
|
runs: SELF_DOCS,
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.7.5-canary.
|
|
3
|
+
"version": "0.7.5-canary.f2beb0b",
|
|
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",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://github.com/
|
|
8
|
+
"homepage": "https://github.com/meta/astryx#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/meta/astryx.git",
|
|
12
12
|
"directory": "packages/cli"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/meta/astryx/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"astryx",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
"zod": "^4.4.3"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@astryxdesign/charts": "0.7.5-canary.
|
|
115
|
-
"@astryxdesign/core": "0.7.5-canary.
|
|
116
|
-
"@astryxdesign/lab": "0.7.5-canary.
|
|
117
|
-
"@astryxdesign/theme-neutral": "0.7.5-canary.
|
|
114
|
+
"@astryxdesign/charts": "0.7.5-canary.f2beb0b",
|
|
115
|
+
"@astryxdesign/core": "0.7.5-canary.f2beb0b",
|
|
116
|
+
"@astryxdesign/lab": "0.7.5-canary.f2beb0b",
|
|
117
|
+
"@astryxdesign/theme-neutral": "0.7.5-canary.f2beb0b"
|
|
118
118
|
},
|
|
119
119
|
"peerDependenciesMeta": {
|
|
120
120
|
"@astryxdesign/charts": {
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@astryxdesign/charts": "0.7.5-canary.
|
|
135
|
-
"@astryxdesign/core": "0.7.5-canary.
|
|
136
|
-
"@astryxdesign/lab": "0.7.5-canary.
|
|
137
|
-
"@astryxdesign/theme-neutral": "0.7.5-canary.
|
|
134
|
+
"@astryxdesign/charts": "0.7.5-canary.f2beb0b",
|
|
135
|
+
"@astryxdesign/core": "0.7.5-canary.f2beb0b",
|
|
136
|
+
"@astryxdesign/lab": "0.7.5-canary.f2beb0b",
|
|
137
|
+
"@astryxdesign/theme-neutral": "0.7.5-canary.f2beb0b",
|
|
138
138
|
"@heroicons/react": "^2.2.0",
|
|
139
139
|
"@stylexjs/stylex": "^0.19.0",
|
|
140
140
|
"@types/babel__core": "^7.20.5",
|