@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.
- package/dist/figma-push-github.d.ts +6 -1
- package/dist/figma-push.d.ts +6 -0
- package/dist/index.js +211 -198
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/{suggestion-apply-ByBEYtct.js → suggestion-apply-DxXRGQrO.js} +212 -194
- package/dist/{suggestion-apply-ByBEYtct.js.map → suggestion-apply-DxXRGQrO.js.map} +1 -1
- package/dist/suggestions.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChangesMode } from './config';
|
|
2
2
|
import { type GitHubClient } from './github-client';
|
|
3
|
-
import { type SuggestionPayloadV1 } from './suggestions';
|
|
3
|
+
import { type SuggestionFigmaNode, type SuggestionPayloadV1 } from './suggestions';
|
|
4
4
|
import type { TokenEdit } from './token-edits';
|
|
5
5
|
import { type ComponentPushDiff, type ComponentPushPlan, type FigmaOrigin, type FigmaPushStatus, type PushTokenContext } from './figma-push';
|
|
6
6
|
/**
|
|
@@ -19,6 +19,7 @@ export type FigmaTokenWriter = (input: {
|
|
|
19
19
|
fileKey?: string | undefined;
|
|
20
20
|
nodeId?: string | undefined;
|
|
21
21
|
url?: string | undefined;
|
|
22
|
+
nodes?: SuggestionFigmaNode[] | undefined;
|
|
22
23
|
};
|
|
23
24
|
}) => Promise<{
|
|
24
25
|
number: number;
|
|
@@ -83,6 +84,10 @@ export declare function componentSpecSuggestionPayload(d: ComponentPushDiff, pla
|
|
|
83
84
|
createdAt?: string | undefined;
|
|
84
85
|
componentsDir?: string | undefined;
|
|
85
86
|
}): SuggestionPayloadV1;
|
|
87
|
+
/** The Figma nodes of a push for a suggestion's links: the component as it is now (after), and before when known. */
|
|
88
|
+
export declare function figmaNodes(d: Pick<ComponentPushDiff, 'figma'>): {
|
|
89
|
+
nodes?: SuggestionFigmaNode[];
|
|
90
|
+
};
|
|
86
91
|
/**
|
|
87
92
|
* Opens the library branch of a component change from Figma, linked to its origin (the Figma component): an exact token
|
|
88
93
|
* swap opens a token change (the shared proposal write: contrast gate, tier, changeset); anything that needs code opens
|
package/dist/figma-push.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ export interface ComponentPushDiff {
|
|
|
51
51
|
nodeId?: string | undefined;
|
|
52
52
|
nodeName?: string | undefined;
|
|
53
53
|
url?: string | undefined;
|
|
54
|
+
/** A node that shows the design before the change, when the file keeps one (optional). */
|
|
55
|
+
before?: {
|
|
56
|
+
nodeId: string;
|
|
57
|
+
nodeName?: string | undefined;
|
|
58
|
+
url?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
54
60
|
} | undefined;
|
|
55
61
|
/** The component as Figma has it now: variant axes, properties, bound variables (token paths) per variant. */
|
|
56
62
|
variantAxes: Record<string, string[]>;
|