@ng-prism/plugin-figma 21.0.0 → 21.0.2
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 +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @ng-prism/plugin-figma
|
|
2
2
|
|
|
3
|
-
Figma design embed panel for [ng-prism](https://github.com/
|
|
3
|
+
Figma design embed panel for [@ng-prism/core](https://github.com/dyingangel666/ng-prism). Displays Figma designs as interactive iframes directly in your component styleguide.
|
|
4
|
+
|
|
5
|
+
> **Full documentation:** [ng-prism Docs — Figma Plugin](https://dyingangel666.github.io/ng-prism/#/plugins/figma)
|
|
4
6
|
|
|
5
7
|
Uses Figma's official embed endpoint — no API token required. Works with any publicly shared Figma file.
|
|
6
8
|
|
|
@@ -14,7 +16,7 @@ npm install @ng-prism/plugin-figma
|
|
|
14
16
|
|
|
15
17
|
| Package | Version |
|
|
16
18
|
|---|---|
|
|
17
|
-
|
|
|
19
|
+
| `@ng-prism/core` | `>=21.0.0` |
|
|
18
20
|
| `@angular/core` | `>=20.0.0` |
|
|
19
21
|
|
|
20
22
|
## Usage
|
|
@@ -24,7 +26,7 @@ npm install @ng-prism/plugin-figma
|
|
|
24
26
|
Add `figmaPlugin()` to your `ng-prism.config.ts`:
|
|
25
27
|
|
|
26
28
|
```typescript
|
|
27
|
-
import { defineConfig } from 'ng-prism/config';
|
|
29
|
+
import { defineConfig } from '@ng-prism/core/config';
|
|
28
30
|
import { figmaPlugin } from '@ng-prism/plugin-figma';
|
|
29
31
|
|
|
30
32
|
export default defineConfig({
|
|
@@ -38,7 +40,7 @@ Add a `figma` key to the `meta` field of your `@Showcase` decorator:
|
|
|
38
40
|
|
|
39
41
|
```typescript
|
|
40
42
|
import { Component, input, output } from '@angular/core';
|
|
41
|
-
import { Showcase } from 'ng-prism';
|
|
43
|
+
import { Showcase } from '@ng-prism/core';
|
|
42
44
|
|
|
43
45
|
@Showcase({
|
|
44
46
|
title: 'Button',
|