@promptui-lib/codegen 0.1.15 → 0.1.17
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/README.md +31 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -180,6 +180,37 @@ export FIGMA_FILE_ID=ABC123xyz
|
|
|
180
180
|
**File ID:**
|
|
181
181
|
Da URL do Figma: `https://www.figma.com/file/ABC123xyz/MeuProjeto` → `ABC123xyz`
|
|
182
182
|
|
|
183
|
+
### Entendendo o fileId vs node-id
|
|
184
|
+
|
|
185
|
+
> ⚠️ **Importante**: O `fileId` é do **arquivo Figma inteiro**, não de uma tela específica!
|
|
186
|
+
|
|
187
|
+
Na URL do Figma:
|
|
188
|
+
```
|
|
189
|
+
https://www.figma.com/design/5gCjy5F30XJySmOPpgDKLM/Tela-de-Login?node-id=13-2&m=dev
|
|
190
|
+
└──────────────────────┘ └──────┘
|
|
191
|
+
fileId node-id (NÃO usar)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
| Conceito | O que é | Precisa na config? |
|
|
195
|
+
|----------|---------|-------------------|
|
|
196
|
+
| `fileId` | Identifica o **arquivo Figma inteiro** | ✅ Sim |
|
|
197
|
+
| `node-id` | Identifica um frame específico | ❌ Não |
|
|
198
|
+
|
|
199
|
+
**Regra:**
|
|
200
|
+
- **Mesmo arquivo Figma, telas diferentes** → Use o **mesmo fileId**
|
|
201
|
+
- **Arquivo Figma diferente** → Precisa de um **novo fileId**
|
|
202
|
+
|
|
203
|
+
**Exemplo:**
|
|
204
|
+
```
|
|
205
|
+
📁 Meu Projeto (fileId: ABC123xyz)
|
|
206
|
+
├── #LoginScreen ← mesmo fileId
|
|
207
|
+
├── #HomeScreen ← mesmo fileId
|
|
208
|
+
├── #ProfileScreen ← mesmo fileId
|
|
209
|
+
└── #SettingsScreen ← mesmo fileId
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
O CLI busca automaticamente **todos os frames** que começam com `#` dentro do arquivo.
|
|
213
|
+
|
|
183
214
|
---
|
|
184
215
|
|
|
185
216
|
## Guia para Designers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptui-lib/codegen",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Code generator for PromptUI - generates React TSX and SCSS",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@promptui-lib/core": "0.1.
|
|
33
|
+
"@promptui-lib/core": "0.1.17"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.0.0",
|