@sentry/junior-figma 0.267.0 → 0.269.0

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.
Files changed (2) hide show
  1. package/README.md +2 -27
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,40 +1,15 @@
1
1
  # @sentry/junior-figma
2
2
 
3
- `@sentry/junior-figma` adds read-only Figma lookups to Junior through the Figma REST API. Use it to read frames, layout, spacing, colors, typography, copy, components, and comments, and to render frames as images. Junior can then use exact design details when it changes or reviews UI code.
4
-
5
- ## Install
3
+ Read-only Figma frame, layout, style, and comment lookups for Junior through the Figma REST API.
6
4
 
7
5
  ```bash
8
6
  pnpm add @sentry/junior @sentry/junior-figma
9
7
  ```
10
8
 
11
- ## Configure
12
-
13
- Add the package name to the plugin set exported from `plugins.ts`:
14
-
15
9
  ```ts
16
10
  import { defineJuniorPlugins } from "@sentry/junior";
17
11
 
18
12
  export const plugins = defineJuniorPlugins(["@sentry/junior-figma"]);
19
13
  ```
20
14
 
21
- Set a Figma token in the Junior deployment environment:
22
-
23
- ```bash
24
- FIGMA_ACCESS_TOKEN=...
25
- ```
26
-
27
- Use a REST API [plan access token](https://developers.figma.com/docs/rest-api/plan-access-tokens/). An organization admin creates it at `https://www.figma.com/developers/tokens`. Give it only read scopes: `file_content:read`, `file_metadata:read`, `file_comments:read`, `library_content:read`, and, on Enterprise plans, `file_variables:read`.
28
-
29
- ## Auth model
30
-
31
- - The plugin uses one deployment-level Figma token. Users do not connect individual Figma accounts.
32
- - The real token stays on the host. Junior adds `X-Figma-Token: <token>` to sandbox requests to `api.figma.com`.
33
- - The token scopes are the read-only boundary. The bundled skill also uses only `GET` requests.
34
- - Everyone who can use Junior can read the files that the token can read. Limit the token to selected files, folders, or teams if this is a concern.
35
-
36
- ## Why REST and not MCP
37
-
38
- Figma's hosted MCP server accepts only clients in the Figma MCP catalog. Until Junior is approved, the plugin uses the REST API.
39
-
40
- Full setup guide: https://junior.sentry.dev/extend/figma-plugin/
15
+ Setup and configuration: https://junior.sentry.dev/extend/figma-plugin/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-figma",
3
- "version": "0.267.0",
3
+ "version": "0.269.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"