@bridge-ds/core 0.10.0 → 0.11.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.
@@ -33,6 +33,18 @@ export interface SuggestionContrastCheck {
33
33
  pass: boolean;
34
34
  }
35
35
  export type SuggestionTokenChange = Pick<LayeredChange, 'kind' | 'path' | 'from' | 'file' | 'before' | 'after' | 'beforeCss' | 'afterCss'>;
36
+ /**
37
+ * A Figma node a suggestion is about: what Claude Code (Figma MCP get_design_context) or the Figma REST API reads the
38
+ * design from, so a suggestion needs no hosted image. `state`: the design before the change or as it is now (after).
39
+ */
40
+ export interface SuggestionFigmaNode {
41
+ nodeId: string;
42
+ url?: string | undefined;
43
+ name?: string | undefined;
44
+ state?: 'before' | 'after' | undefined;
45
+ }
46
+ /** The Figma design URL of a node: what a person opens and what the Figma MCP server reads. */
47
+ export declare const figmaNodeUrl: (fileKey: string, nodeId: string) => string;
36
48
  export interface SuggestionPayloadV1 {
37
49
  schema: typeof SUGGESTION_SCHEMA;
38
50
  kind: SuggestionKind;
@@ -85,6 +97,8 @@ export interface SuggestionPayloadV1 {
85
97
  fileKey?: string | undefined;
86
98
  nodeId?: string | undefined;
87
99
  url?: string | undefined;
100
+ /** Figma nodes of the change (optional, added in 0.x: older payloads omit it). Claude reads them from Figma. */
101
+ nodes?: SuggestionFigmaNode[] | undefined;
88
102
  } | undefined;
89
103
  /** explore/<slug> */
90
104
  exploration?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/core",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "Bridge core: bridge.config.json, DTCG token loading (tiers and layered modes), alias resolution, WCAG contrast, diffs, minimal-diff edits, PR body, the shared risk tier classifier, changesets and a fetch-based GitHub client. No Figma API, no DOM; Node-only helpers (git, reading a product folder) under @bridge-ds/core/node; the adoption audit under @bridge-ds/core/audit.",
6
6
  "license": "MIT",