@lit-pigeon/figma-import 0.1.5 → 0.1.6
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 +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -45,11 +45,11 @@ const { document } = figmaFrameToDocument(frameNode, { imageUrls: myImageMap });
|
|
|
45
45
|
| Any other direct child | Single-column row | One block per row. |
|
|
46
46
|
| `TEXT` | `text` block | Colour, font-size, font-weight, font-family, alignment, and line-height are extracted. |
|
|
47
47
|
| FRAME/INSTANCE with corner-radius, one TEXT child, height ≤ 80px, solid fill | `button` block | Heuristic — won't trigger for non-button shapes. |
|
|
48
|
+
| FRAME/COMPONENT/INSTANCE at least 280×120px with an image or solid background and text inside | `hero` block | Heuristic; buttons are checked first. The image must resolve through `imageUrls`. |
|
|
48
49
|
| RECTANGLE/FRAME with an IMAGE fill | `image` block | Requires `imageUrls[imageRef]` to resolve. `importFromFigma` fetches that map automatically. |
|
|
49
50
|
| `VECTOR`, `ELLIPSE`, decorative shapes | _skipped, warned_ | The library returns soft warnings; the import still succeeds. |
|
|
50
51
|
|
|
51
52
|
What you don't get yet (planned):
|
|
52
|
-
- Hero blocks (image background + text overlay) — currently lands as a plain image + adjacent text.
|
|
53
53
|
- Multi-line rich-text formatting per character — text is rendered as a single styled `<p>`.
|
|
54
54
|
- Dividers and spacers — Figma's pixel-perfect dividers don't map cleanly; use a text block for now.
|
|
55
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-pigeon/figma-import",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Import a Figma frame into a Lit Pigeon PigeonDocument.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lit-pigeon/core": "^0.
|
|
21
|
+
"@lit-pigeon/core": "^0.4.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.5.0",
|
|
25
|
-
"vitest": "^
|
|
25
|
+
"vitest": "^4.1.12"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|