@auto-engineer/design-system-importer 0.4.8 → 0.4.9
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/.turbo/turbo-build.log +6 -5
- package/.turbo/turbo-format.log +8 -7
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +14 -12
- package/.turbo/turbo-type-check.log +5 -4
- package/DEBUG.md +195 -0
- package/dist/FigmaComponentsBuilder.d.ts +1 -0
- package/dist/FigmaComponentsBuilder.d.ts.map +1 -1
- package/dist/FigmaComponentsBuilder.js +103 -22
- package/dist/FigmaComponentsBuilder.js.map +1 -1
- package/dist/commands/import-design-system.d.ts.map +1 -1
- package/dist/commands/import-design-system.js +39 -3
- package/dist/commands/import-design-system.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +98 -16
- package/dist/index.js.map +1 -1
- package/dist/utils/FilterLoader.d.ts.map +1 -1
- package/dist/utils/FilterLoader.js +84 -4
- package/dist/utils/FilterLoader.js.map +1 -1
- package/package.json +2 -2
- package/src/FigmaComponentsBuilder.ts +106 -23
- package/src/commands/import-design-system.ts +41 -3
- package/src/index.ts +118 -15
- package/src/utils/FilterLoader.ts +85 -4
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @auto-engineer/design-system-importer@0.4.9 build /Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer
|
|
4
|
+
> tsc && tsx ../../scripts/fix-esm-imports.ts && cp -r src/utils/templates dist/utils/
|
|
5
|
+
|
|
6
|
+
Fixed ESM imports in dist/
|
package/.turbo/turbo-format.log
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @auto-engineer/design-system-importer@0.4.
|
|
3
|
+
> @auto-engineer/design-system-importer@0.4.9 format /Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer
|
|
4
4
|
> prettier --write "**/*.{js,ts,json,md,yml,yaml}" --ignore-path ../../.prettierignore
|
|
5
5
|
|
|
6
|
-
CHANGELOG.md[2K[1G[90mCHANGELOG.md[39m
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
src/
|
|
6
|
+
CHANGELOG.md[2K[1G[90mCHANGELOG.md[39m 33ms (unchanged)
|
|
7
|
+
DEBUG.md[2K[1G[90mDEBUG.md[39m 7ms (unchanged)
|
|
8
|
+
package.json[2K[1G[90mpackage.json[39m 19ms (unchanged)
|
|
9
|
+
README.md[2K[1G[90mREADME.md[39m 13ms (unchanged)
|
|
10
|
+
src/commands/import-design-system.ts[2K[1G[90msrc/commands/import-design-system.ts[39m 41ms (unchanged)
|
|
11
|
+
src/FigmaComponentsBuilder.ts[2K[1G[90msrc/FigmaComponentsBuilder.ts[39m 22ms (unchanged)
|
|
11
12
|
src/index.ts[2K[1G[90msrc/index.ts[39m 16ms (unchanged)
|
|
12
|
-
src/utils/FilterLoader.ts[2K[1G[90msrc/utils/FilterLoader.ts[39m
|
|
13
|
+
src/utils/FilterLoader.ts[2K[1G[90msrc/utils/FilterLoader.ts[39m 11ms (unchanged)
|
|
13
14
|
tsconfig.json[2K[1G[90mtsconfig.json[39m 1ms (unchanged)
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @auto-engineer/design-system-importer@0.4.
|
|
3
|
+
> @auto-engineer/design-system-importer@0.4.9 lint /Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer
|
|
4
4
|
> eslint 'src/**/*.ts' --max-warnings 0 --config ../../eslint.config.ts
|
|
5
5
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @auto-engineer/design-system-importer@0.4.9 test /Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer
|
|
4
|
+
> vitest run
|
|
5
|
+
|
|
6
|
+
[?25l
|
|
7
|
+
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer[39m
|
|
8
|
+
|
|
9
|
+
No test files found, exiting with code 0
|
|
10
|
+
|
|
11
|
+
[31m[2minclude: [22m[33m**/*.specs.{js,ts}[39m[39m
|
|
12
|
+
[31m[2mexclude: [22m[33m**/.tmp/**[2m, [22m**/node_modules/**[2m, [22m**/dist/**[39m[39m
|
|
13
|
+
[31m[39m
|
|
14
|
+
[?25h
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @auto-engineer/design-system-importer@0.4.9 type-check /Users/sam/WebstormProjects/top/auto-engineer/packages/design-system-importer
|
|
4
|
+
> tsc --noEmit
|
|
5
|
+
|
package/DEBUG.md
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# Debug Logging - Design System Importer
|
|
2
|
+
|
|
3
|
+
This package uses the [debug](https://www.npmjs.com/package/debug) library for conditional logging.
|
|
4
|
+
|
|
5
|
+
## Available Debug Namespaces
|
|
6
|
+
|
|
7
|
+
- `design-importer:command` - Command handling
|
|
8
|
+
- `design-importer:handler` - Import handler operations
|
|
9
|
+
- `design-importer:filter` - Filter loading and application
|
|
10
|
+
- `design-importer:result` - Result generation
|
|
11
|
+
- `design-importer:builder` - Figma component builder
|
|
12
|
+
- `design-importer:builder:api` - Figma API calls
|
|
13
|
+
- `design-importer:builder:components` - Component extraction
|
|
14
|
+
- `design-importer:builder:tree` - Tree walking operations
|
|
15
|
+
|
|
16
|
+
## Enabling Debug Output
|
|
17
|
+
|
|
18
|
+
Set the `DEBUG` environment variable to enable logging:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Enable all design-importer logging
|
|
22
|
+
DEBUG=design-importer:* pnpm import:design-system
|
|
23
|
+
|
|
24
|
+
# Enable specific namespace
|
|
25
|
+
DEBUG=design-importer:builder:api pnpm import:design-system
|
|
26
|
+
|
|
27
|
+
# Enable builder operations
|
|
28
|
+
DEBUG=design-importer:builder:* pnpm import:design-system
|
|
29
|
+
|
|
30
|
+
# Enable all logging
|
|
31
|
+
DEBUG=* pnpm import:design-system
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
### Debug Command Handling
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
DEBUG=design-importer:command pnpm import:design-system
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Output example:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
design-importer:command Handling ImportDesignSystemCommand
|
|
46
|
+
design-importer:command Output directory: ./output
|
|
47
|
+
design-importer:command Strategy: WITH_COMPONENT_SETS
|
|
48
|
+
design-importer:command Filter path: ./filters/custom-filter.js
|
|
49
|
+
design-importer:command Request ID: req-123
|
|
50
|
+
design-importer:command Correlation ID: corr-456
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Debug Figma API Operations
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
DEBUG=design-importer:builder:api pnpm import:design-system
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Output example:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
design-importer:builder:api Fetching Figma file: file-key-123
|
|
63
|
+
design-importer:builder:api Using strategy: WITH_COMPONENT_SETS
|
|
64
|
+
design-importer:builder:api Making API request to Figma
|
|
65
|
+
design-importer:builder:api Response received, status: 200
|
|
66
|
+
design-importer:builder:api File document received, starting tree walk
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Debug Component Extraction
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
DEBUG=design-importer:builder:components pnpm import:design-system
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Output example:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
design-importer:builder:components Extracting component sets from Figma
|
|
79
|
+
design-importer:builder:components Found 15 component sets
|
|
80
|
+
design-importer:builder:components Processing component set: Button
|
|
81
|
+
design-importer:builder:components Variants: 8
|
|
82
|
+
design-importer:builder:components Properties: size, variant, state
|
|
83
|
+
design-importer:builder:components Processing component set: Input
|
|
84
|
+
design-importer:builder:components Variants: 6
|
|
85
|
+
design-importer:builder:components Properties: size, state, type
|
|
86
|
+
design-importer:builder:components Extracted 45 unique component instances
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Debug Tree Walking
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
DEBUG=design-importer:builder:tree pnpm import:design-system
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Output example:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
design-importer:builder:tree Starting tree walk from document root
|
|
99
|
+
design-importer:builder:tree Visiting node: Page 1 (type: PAGE)
|
|
100
|
+
design-importer:builder:tree Has 5 children
|
|
101
|
+
design-importer:builder:tree Visiting node: Header Component (type: COMPONENT)
|
|
102
|
+
design-importer:builder:tree -> Found new instance: Header
|
|
103
|
+
design-importer:builder:tree Description: present
|
|
104
|
+
design-importer:builder:tree Thumbnail: present
|
|
105
|
+
design-importer:builder:tree Visiting node: Button Instance (type: INSTANCE)
|
|
106
|
+
design-importer:builder:tree -> Instance already tracked: Button
|
|
107
|
+
design-importer:builder:tree Tree walk complete
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Debug Filter Operations
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
DEBUG=design-importer:filter pnpm import:design-system
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Output example:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
design-importer:filter Loading custom filter from: ./filters/custom-filter.js
|
|
120
|
+
design-importer:filter FilterLoader instance created
|
|
121
|
+
design-importer:filter Creating temporary file for filter
|
|
122
|
+
design-importer:filter Temp file: /tmp/filter-12345.mjs
|
|
123
|
+
design-importer:filter Importing filter module
|
|
124
|
+
design-importer:filter Filter function loaded successfully
|
|
125
|
+
design-importer:filter Applying filter to component: Button
|
|
126
|
+
design-importer:filter Filter result: include
|
|
127
|
+
design-importer:filter Applying filter to component: InternalComponent
|
|
128
|
+
design-importer:filter Filter result: exclude
|
|
129
|
+
design-importer:filter Cleaning up FilterLoader
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Debug Result Handling
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
DEBUG=design-importer:result pnpm import:design-system
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Output example:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
design-importer:result Import completed successfully
|
|
142
|
+
design-importer:result Returning success event: DesignSystemImported
|
|
143
|
+
design-importer:result Output directory: ./output
|
|
144
|
+
design-importer:result Components processed: 45
|
|
145
|
+
design-importer:result Files generated: 3
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Common Use Cases
|
|
149
|
+
|
|
150
|
+
### Debug Full Import Process
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
DEBUG=design-importer:* pnpm import:design-system
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Debug Figma Operations Only
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
DEBUG=design-importer:builder:* pnpm import:design-system
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Debug with Filter Details
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
DEBUG=design-importer:filter,design-importer:builder:components pnpm import:design-system
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Debug API and Tree Walking
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
DEBUG=design-importer:builder:api,design-importer:builder:tree pnpm import:design-system
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Save Debug Output
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
DEBUG=design-importer:* pnpm import:design-system 2> design-import-debug.log
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Environment Variables
|
|
181
|
+
|
|
182
|
+
Required for Figma API access:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
FIGMA_ACCESS_TOKEN=your-figma-token
|
|
186
|
+
FIGMA_FILE_ID=your-file-id
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Tips
|
|
190
|
+
|
|
191
|
+
- Use `DEBUG=design-importer:builder:*` to see all Figma operations
|
|
192
|
+
- Monitor API calls with `DEBUG=design-importer:builder:api`
|
|
193
|
+
- Track component processing with `DEBUG=design-importer:builder:components`
|
|
194
|
+
- Combine with other packages: `DEBUG=design-importer:*,ia:*`
|
|
195
|
+
- Filter verbose output: `DEBUG=design-importer:*,-design-importer:builder:tree`
|
|
@@ -6,6 +6,7 @@ export interface FigmaComponent {
|
|
|
6
6
|
export type FilterFunctionType = (components: FigmaComponent[]) => FigmaComponent[];
|
|
7
7
|
export declare class FigmaComponentsBuilder {
|
|
8
8
|
components: FigmaComponent[];
|
|
9
|
+
constructor();
|
|
9
10
|
withFigmaComponents(): Promise<this>;
|
|
10
11
|
withFigmaComponentSets(): Promise<this>;
|
|
11
12
|
withFilteredNamesForShadcn(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FigmaComponentsBuilder.d.ts","sourceRoot":"","sources":["../src/FigmaComponentsBuilder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FigmaComponentsBuilder.d.ts","sourceRoot":"","sources":["../src/FigmaComponentsBuilder.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,UAAU,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;AAUpF,qBAAa,sBAAsB;IACjC,UAAU,EAAE,cAAc,EAAE,CAAM;;IAO5B,mBAAmB;IAkCnB,sBAAsB;IA+C5B,0BAA0B,IAAI,IAAI;IAwClC,UAAU,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAYtC,yBAAyB;IAyG/B,KAAK;CASN"}
|
|
@@ -1,51 +1,90 @@
|
|
|
1
1
|
import * as dotenv from 'dotenv';
|
|
2
2
|
import * as Figma from 'figma-api';
|
|
3
|
+
import createDebug from 'debug';
|
|
4
|
+
const debug = createDebug('design-system-importer:figma-builder');
|
|
5
|
+
const debugComponents = createDebug('design-system-importer:figma-builder:components');
|
|
6
|
+
const debugFilters = createDebug('design-system-importer:figma-builder:filters');
|
|
7
|
+
const debugAPI = createDebug('design-system-importer:figma-builder:api');
|
|
8
|
+
const debugTree = createDebug('design-system-importer:figma-builder:tree');
|
|
3
9
|
dotenv.config();
|
|
10
|
+
debug('Initializing FigmaComponentsBuilder module');
|
|
4
11
|
const figmaApi = new Figma.Api({
|
|
5
12
|
personalAccessToken: process.env.FIGMA_PERSONAL_TOKEN,
|
|
6
13
|
});
|
|
14
|
+
debug('Figma API initialized with personal access token');
|
|
7
15
|
export class FigmaComponentsBuilder {
|
|
8
16
|
constructor() {
|
|
9
17
|
this.components = [];
|
|
18
|
+
debug('FigmaComponentsBuilder instance created');
|
|
19
|
+
debugComponents('Initial components array: empty');
|
|
10
20
|
}
|
|
11
21
|
async withFigmaComponents() {
|
|
22
|
+
debugAPI('Fetching Figma components from file: %s', process.env.FIGMA_FILE_ID);
|
|
12
23
|
try {
|
|
24
|
+
debugAPI('Making API call to getFileComponents...');
|
|
13
25
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
14
26
|
const response = await figmaApi.getFileComponents({ file_key: process.env.FIGMA_FILE_ID });
|
|
27
|
+
debugAPI('API response received');
|
|
15
28
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
16
29
|
if (response.meta.components.length > 0) {
|
|
17
30
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
18
|
-
|
|
31
|
+
debugComponents('Found %d components in Figma file', response.meta.components.length);
|
|
19
32
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
|
|
20
|
-
this.components = response.meta.components.map((component) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
33
|
+
this.components = response.meta.components.map((component) => {
|
|
34
|
+
debugComponents('Processing component: %s', component.name);
|
|
35
|
+
return {
|
|
36
|
+
name: component.name,
|
|
37
|
+
description: component.description,
|
|
38
|
+
thumbnail: component.thumbnail_url,
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
debugComponents('Successfully mapped %d components', this.components.length);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
debugComponents('No components found in Figma file');
|
|
25
45
|
}
|
|
26
46
|
}
|
|
27
47
|
catch (e) {
|
|
28
|
-
|
|
48
|
+
debugAPI('ERROR: Failed to fetch Figma components: %O', e);
|
|
49
|
+
console.error('Failed to fetch Figma components:', e);
|
|
29
50
|
}
|
|
51
|
+
debugComponents('withFigmaComponents complete, total components: %d', this.components.length);
|
|
30
52
|
return this;
|
|
31
53
|
}
|
|
32
54
|
async withFigmaComponentSets() {
|
|
55
|
+
debugAPI('Fetching Figma component sets from file: %s', process.env.FIGMA_FILE_ID);
|
|
33
56
|
try {
|
|
57
|
+
debugAPI('Making API call to getFileComponentSets...');
|
|
34
58
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
35
59
|
const response = await figmaApi.getFileComponentSets({ file_key: process.env.FIGMA_FILE_ID });
|
|
60
|
+
debugAPI('API response received');
|
|
36
61
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
37
62
|
if (response.meta.component_sets.length > 0) {
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
64
|
+
debugComponents('Found %d component sets in Figma file', response.meta.component_sets.length);
|
|
38
65
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
|
|
39
|
-
this.components = response.meta.component_sets.map((component) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
66
|
+
this.components = response.meta.component_sets.map((component) => {
|
|
67
|
+
debugComponents('Processing component set: %s', component.name);
|
|
68
|
+
const mapped = {
|
|
69
|
+
name: component.name,
|
|
70
|
+
description: component.description ?? 'N/A',
|
|
71
|
+
thumbnail: component.thumbnail_url ?? 'N/A',
|
|
72
|
+
};
|
|
73
|
+
debugComponents(' - Description: %s', mapped.description.substring(0, 50));
|
|
74
|
+
debugComponents(' - Has thumbnail: %s', mapped.thumbnail !== 'N/A');
|
|
75
|
+
return mapped;
|
|
76
|
+
});
|
|
77
|
+
debugComponents('Successfully mapped %d component sets', this.components.length);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
debugComponents('No component sets found in Figma file');
|
|
44
81
|
}
|
|
45
82
|
}
|
|
46
83
|
catch (e) {
|
|
47
|
-
|
|
84
|
+
debugAPI('ERROR: Failed to fetch Figma component sets: %O', e);
|
|
85
|
+
console.error('Failed to fetch Figma component sets:', e);
|
|
48
86
|
}
|
|
87
|
+
debugComponents('withFigmaComponentSets complete, total components: %d', this.components.length);
|
|
49
88
|
return this;
|
|
50
89
|
}
|
|
51
90
|
// extractBracketedComponents(item: FigmaComponent): FigmaComponent | null {
|
|
@@ -58,66 +97,100 @@ export class FigmaComponentsBuilder {
|
|
|
58
97
|
// this.components = this.components.map(this.extractBracketedComponents).filter(Boolean) as FigmaComponent[];
|
|
59
98
|
// }
|
|
60
99
|
withFilteredNamesForShadcn() {
|
|
100
|
+
debugFilters('Applying Shadcn name filter to %d components', this.components.length);
|
|
101
|
+
const originalCount = this.components.length;
|
|
61
102
|
this.components = this.components
|
|
62
103
|
.map((comp) => {
|
|
63
|
-
if (!comp?.name)
|
|
104
|
+
if (!comp?.name) {
|
|
105
|
+
debugFilters('Skipping component with no name');
|
|
64
106
|
return null;
|
|
107
|
+
}
|
|
65
108
|
let str = comp.name.trim();
|
|
109
|
+
debugFilters('Processing component name: %s', str);
|
|
66
110
|
if (str.includes('/')) {
|
|
111
|
+
const original = str;
|
|
67
112
|
str = str.split('/')[0].trim();
|
|
113
|
+
debugFilters(' Split by /: %s -> %s', original, str);
|
|
68
114
|
}
|
|
69
115
|
else {
|
|
116
|
+
const original = str;
|
|
70
117
|
str = str.split(' ')[0].trim();
|
|
118
|
+
debugFilters(' Split by space: %s -> %s', original, str);
|
|
71
119
|
}
|
|
72
120
|
if (str.length > 0) {
|
|
73
|
-
|
|
121
|
+
const capitalized = str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
122
|
+
const final = capitalized.toLowerCase();
|
|
123
|
+
debugFilters(' Normalized: %s -> %s', str, final);
|
|
124
|
+
return {
|
|
125
|
+
...comp,
|
|
126
|
+
name: final,
|
|
127
|
+
};
|
|
74
128
|
}
|
|
75
129
|
else {
|
|
130
|
+
debugFilters(' Empty string after processing, skipping');
|
|
76
131
|
return null;
|
|
77
132
|
}
|
|
78
|
-
return {
|
|
79
|
-
...comp,
|
|
80
|
-
name: str.toLowerCase(),
|
|
81
|
-
};
|
|
82
133
|
})
|
|
83
134
|
.filter((c) => Boolean(c));
|
|
135
|
+
debugFilters('Shadcn filter complete: %d -> %d components', originalCount, this.components.length);
|
|
84
136
|
}
|
|
85
137
|
withFilter(filter) {
|
|
138
|
+
debugFilters('Applying custom filter function to %d components', this.components.length);
|
|
139
|
+
const originalCount = this.components.length;
|
|
86
140
|
try {
|
|
87
141
|
this.components = filter(this.components);
|
|
142
|
+
debugFilters('Custom filter applied successfully: %d -> %d components', originalCount, this.components.length);
|
|
88
143
|
}
|
|
89
144
|
catch (e) {
|
|
145
|
+
debugFilters('ERROR: Failed to apply custom filter: %O', e);
|
|
90
146
|
console.error('Error applying custom filter:', e);
|
|
91
147
|
}
|
|
92
148
|
}
|
|
93
149
|
async withAllFigmaInstanceNames() {
|
|
150
|
+
debugAPI('Fetching all Figma instance names from file: %s', process.env.FIGMA_FILE_ID);
|
|
94
151
|
try {
|
|
95
152
|
/// ----
|
|
96
153
|
const usedComponentMap = new Map();
|
|
154
|
+
debugTree('Created component map for tracking unique instances');
|
|
155
|
+
debugAPI('Making API call to getFile with depth: 1...');
|
|
97
156
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
98
157
|
const { document } = await figmaApi.getFile({
|
|
99
158
|
file_key: process.env.FIGMA_FILE_ID,
|
|
100
159
|
depth: 1,
|
|
101
160
|
});
|
|
102
|
-
|
|
161
|
+
debugAPI('File document received, starting tree walk');
|
|
162
|
+
// eslint-disable-next-line complexity
|
|
163
|
+
function walkTree(node, depth = 0) {
|
|
164
|
+
const indent = ' '.repeat(depth);
|
|
165
|
+
debugTree('%sVisiting node: %s (type: %s)', indent, node.name, node.type);
|
|
103
166
|
if (node.type === 'INSTANCE' && Boolean(node.name)) {
|
|
104
167
|
if (!usedComponentMap.has(node.name)) {
|
|
168
|
+
debugTree('%s -> Found new instance: %s', indent, node.name);
|
|
105
169
|
usedComponentMap.set(node.name, {
|
|
106
170
|
name: node.name,
|
|
107
171
|
description: node.description ?? '',
|
|
108
172
|
thumbnail: node.thumbnail_url ?? '',
|
|
109
173
|
});
|
|
174
|
+
debugTree('%s Description: %s', indent, node.description ? 'present' : 'empty');
|
|
175
|
+
debugTree('%s Thumbnail: %s', indent, node.thumbnail_url ? 'present' : 'missing');
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
debugTree('%s -> Instance already tracked: %s', indent, node.name);
|
|
110
179
|
}
|
|
111
180
|
}
|
|
112
181
|
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
|
|
113
182
|
if (node.children) {
|
|
183
|
+
debugTree('%s Has %d children', indent, node.children.length);
|
|
114
184
|
for (const child of node.children) {
|
|
115
|
-
walkTree(child);
|
|
185
|
+
walkTree(child, depth + 1);
|
|
116
186
|
}
|
|
117
187
|
}
|
|
118
188
|
}
|
|
189
|
+
debugTree('Starting tree walk from document root');
|
|
119
190
|
walkTree(document);
|
|
191
|
+
debugTree('Tree walk complete');
|
|
120
192
|
this.components = Array.from(usedComponentMap.values());
|
|
193
|
+
debugComponents('Extracted %d unique component instances', this.components.length);
|
|
121
194
|
/// ----
|
|
122
195
|
// const components = []
|
|
123
196
|
// // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
@@ -164,11 +237,19 @@ export class FigmaComponentsBuilder {
|
|
|
164
237
|
// }
|
|
165
238
|
}
|
|
166
239
|
catch (e) {
|
|
167
|
-
|
|
240
|
+
debugAPI('ERROR: Failed to fetch Figma instance names: %O', e);
|
|
241
|
+
console.error('Failed to fetch Figma instance names:', e);
|
|
168
242
|
}
|
|
243
|
+
debugComponents('withAllFigmaInstanceNames complete, total components: %d', this.components.length);
|
|
169
244
|
return this;
|
|
170
245
|
}
|
|
171
246
|
build() {
|
|
247
|
+
debug('Building final component list');
|
|
248
|
+
debugComponents('Returning %d components', this.components.length);
|
|
249
|
+
if (this.components.length > 0) {
|
|
250
|
+
debugComponents('First component: %s', this.components[0].name);
|
|
251
|
+
debugComponents('Last component: %s', this.components[this.components.length - 1].name);
|
|
252
|
+
}
|
|
172
253
|
return this.components;
|
|
173
254
|
}
|
|
174
255
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FigmaComponentsBuilder.js","sourceRoot":"","sources":["../src/FigmaComponentsBuilder.ts"],"names":[],"mapp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kFAAkF;YAClF,8CAA8C;YAC9C,oEAAoE;YACpE,EAAE;YACF,wBAAwB;YACxB,wDAAwD;YACxD,0EAA0E;YAC1E,uEAAuE;YACvE,UAAU;YACV,MAAM;YACN,IAAI;YACJ,EAAE;YACF,wEAAwE;YAExE,2BAA2B;YAC3B,qJAAqJ;YACrJ,wDAAwD;YACxD,sFAAsF;YACtF,8BAA8B;YAC9B,4CAA4C;YAC5C,gDAAgD;YAChD,UAAU;YACV,OAAO;YACP,IAAI;QACN,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,QAAQ,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC;YAC/D,OAAO,CAAC,KAAK,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC;QAC5D,CAAC;QACD,eAAe,CAAC,0DAA0D,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACpG,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACvC,eAAe,CAAC,yBAAyB,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACnE,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,eAAe,CAAC,qBAAqB,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAChE,eAAe,CAAC,oBAAoB,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1F,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-design-system.d.ts","sourceRoot":"","sources":["../../src/commands/import-design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAyC,cAAc,EAA2B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"import-design-system.d.ts","sourceRoot":"","sources":["../../src/commands/import-design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAyC,cAAc,EAA2B,MAAM,UAAU,CAAC;AAS1G,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,oBAAoB,EACpB;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CACF,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAC3C,sBAAsB,EACtB;IACE,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,KAAK,CAC/C,0BAA0B,EAC1B;IACE,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAIF,wBAAsB,+BAA+B,CACnD,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,yBAAyB,GAAG,6BAA6B,CAAC,CA0EpE;AAED,eAAO,MAAM,gCAAgC,EAAE,cAAc,CAAC,yBAAyB,CAatF,CAAC"}
|