@bridge-ds/core 0.18.0 → 0.20.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/LICENSE +17 -0
- package/bridge.config.schema.json +21 -0
- package/dist/audit/index.js +3 -3
- package/dist/audit/report.d.ts +17 -2
- package/dist/branch-actions.d.ts +7 -1
- package/dist/build-requests-github.d.ts +25 -0
- package/dist/build-requests.d.ts +403 -0
- package/dist/changelog-model.d.ts +102 -0
- package/dist/component-spec.d.ts +3 -1
- package/dist/config.d.ts +26 -0
- package/dist/css-color.d.ts +25 -0
- package/dist/docs-proposal.d.ts +1 -0
- package/dist/explorations.d.ts +1 -0
- package/dist/fidelity-references.d.ts +12 -0
- package/dist/fidelity.d.ts +12 -1
- package/dist/figma-fix-loop.d.ts +153 -0
- package/dist/figma-fix-run.d.ts +103 -0
- package/dist/figma-fixes.d.ts +169 -0
- package/dist/figma-push-github.d.ts +7 -2
- package/dist/figma-push.d.ts +15 -2
- package/dist/gap-case.d.ts +143 -0
- package/dist/github-client.d.ts +31 -0
- package/dist/id-map.d.ts +10 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3996 -818
- package/dist/index.js.map +1 -1
- package/dist/layered-review.d.ts +2 -0
- package/dist/measure-location.d.ts +42 -0
- package/dist/measure-status.d.ts +127 -0
- package/dist/measure-workflow.d.ts +48 -0
- package/dist/measured-only.d.ts +30 -0
- package/dist/measured-spec.d.ts +349 -0
- package/dist/measured-tokens.d.ts +25 -0
- package/dist/motion-docs.d.ts +51 -0
- package/dist/node/audit.d.ts +11 -3
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +1640 -24
- package/dist/node/index.js.map +1 -1
- package/dist/node/measure-script.d.ts +1 -0
- package/dist/node/measure.d.ts +212 -0
- package/dist/node/spec-css.d.ts +9 -1
- package/dist/node/tokens-script.d.ts +3 -0
- package/dist/pr-composer.d.ts +5 -0
- package/dist/previews.d.ts +4 -1
- package/dist/{prod-branch-DenQkr_e.js → prod-branch-CJZwMfVD.js} +223 -183
- package/dist/prod-branch-CJZwMfVD.js.map +1 -0
- package/dist/prod-branch.d.ts +1 -1
- package/dist/repo-model.d.ts +7 -1
- package/dist/{repo-source-CRfhLO87.js → repo-source-CshjjC7x.js} +1485 -629
- package/dist/repo-source-CshjjC7x.js.map +1 -0
- package/dist/repo-source-github.d.ts +8 -0
- package/dist/repo-source.d.ts +6 -0
- package/dist/{report-DVEmUr0p.js → report-CE-jHAuw.js} +17 -6
- package/dist/{report-DVEmUr0p.js.map → report-CE-jHAuw.js.map} +1 -1
- package/dist/requester.d.ts +14 -0
- package/dist/requests.d.ts +2 -0
- package/dist/review-gate.d.ts +189 -2
- package/dist/risk.d.ts +12 -0
- package/dist/share-branch.d.ts +1 -1
- package/dist/snapshot.d.ts +34 -0
- package/dist/suggestion-review.d.ts +45 -2
- package/dist/suggestions-github.d.ts +33 -1
- package/dist/suggestions.d.ts +6 -0
- package/dist/tier1-publish.d.ts +48 -0
- package/dist/token-proposal.d.ts +7 -0
- package/dist/try-in-product.d.ts +9 -0
- package/package.json +1 -1
- package/dist/prod-branch-DenQkr_e.js.map +0 -1
- package/dist/repo-source-CRfhLO87.js.map +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ComponentSpec, type SpecCoverage, type SpecTransition } from './component-spec';
|
|
2
|
+
/** A motion token as the page shows it: the token name (mono) and its value in words ("75 ms"). */
|
|
3
|
+
export interface MotionValue {
|
|
4
|
+
token?: string | undefined;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MotionRow {
|
|
8
|
+
/** The part that moves, when the component has several ("Popup", "Checkbox item"). */
|
|
9
|
+
part?: string | undefined;
|
|
10
|
+
/** What makes it move, designer words ("Hover", "Open", "Check and uncheck"). */
|
|
11
|
+
when: string;
|
|
12
|
+
/** What changes ("Background and text color"). */
|
|
13
|
+
what: string;
|
|
14
|
+
duration: MotionValue;
|
|
15
|
+
easing: MotionValue | null;
|
|
16
|
+
}
|
|
17
|
+
export interface MotionDocs {
|
|
18
|
+
/** One sentence: what animates, or that nothing does. */
|
|
19
|
+
summary: string;
|
|
20
|
+
rows: MotionRow[];
|
|
21
|
+
/** What reduced motion does, one sentence; null when nothing animates. */
|
|
22
|
+
reduced: string | null;
|
|
23
|
+
/** Whether to show a Part column (several parts move). */
|
|
24
|
+
showPart: boolean;
|
|
25
|
+
/** Motion tokens the component's CSS uses for motion the rows do not list (a tab indicator sliding). */
|
|
26
|
+
unlisted: string[];
|
|
27
|
+
}
|
|
28
|
+
/** CSS properties in designer words, joined: ["background-color", "color"] -> "Background and text color". */
|
|
29
|
+
export declare function propertyWords(props: string[]): string;
|
|
30
|
+
/** A duration in ms, with its token. */
|
|
31
|
+
export declare const durationValue: (t: Pick<SpecTransition, "duration" | "durationToken">) => MotionValue;
|
|
32
|
+
/** An easing in words, with its token: motion.easing.enter -> "starts fast, lands softly". */
|
|
33
|
+
export declare function easingValue(t: Pick<SpecTransition, 'easing' | 'easingToken'>): MotionValue;
|
|
34
|
+
/** The part a set draws, in words: "Combobox/Popup" -> "Popup", "MenuCheckboxItem" -> "Checkbox item". */
|
|
35
|
+
export declare function partLabel(spec: Pick<ComponentSpec, 'name' | 'component' | 'view'>, component: string): string;
|
|
36
|
+
/** A moment a set moves: what makes it move ("Hover", "Open"), the transition, the properties it animates. */
|
|
37
|
+
export interface MotionMoment {
|
|
38
|
+
when: string;
|
|
39
|
+
t: SpecTransition;
|
|
40
|
+
props: string[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The moments a set moves, from its interactions and its opening and closing: one per trigger and speed (Hover,
|
|
44
|
+
* Press, Check, Uncheck, Open, Close). Instant changes are left out.
|
|
45
|
+
*/
|
|
46
|
+
export declare function motionMoments(spec: Pick<ComponentSpec, 'name' | 'variants' | 'interactions' | 'motion'>): MotionMoment[];
|
|
47
|
+
/**
|
|
48
|
+
* The section for one component: its sets (specs whose `component`, or name, is the component), and its Figma coverage
|
|
49
|
+
* entry for the components the generator does not read (drafted, layout helpers).
|
|
50
|
+
*/
|
|
51
|
+
export declare function motionDocs(component: string, specs: ComponentSpec[], coverage?: Pick<SpecCoverage, 'status' | 'reason'>, codeTokens?: string[]): MotionDocs;
|
package/dist/node/audit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BridgeConfig } from '../config';
|
|
2
2
|
import { LayeredTokenSet } from '../layered';
|
|
3
|
-
import { type CssFixEdit } from '../audit/report';
|
|
3
|
+
import { type CssFixEdit, type CssFixKept } from '../audit/report';
|
|
4
4
|
import { DesignSystemIndex } from '../audit/ds-index';
|
|
5
5
|
import type { AllowlistEntry, AuditReport } from '../audit/types';
|
|
6
6
|
export interface LoadedDesignSystem {
|
|
@@ -40,8 +40,16 @@ export interface RunAuditOptions {
|
|
|
40
40
|
export declare function loadAllowlist(path: string): AllowlistEntry[];
|
|
41
41
|
/** Audit a product folder against a design system. */
|
|
42
42
|
export declare function runAudit(target: string, opts?: RunAuditOptions): AuditReport;
|
|
43
|
-
/**
|
|
44
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Plan (and optionally write) the safe CSS autofix for every CSS/SCSS/Less file under `target`, with the audit's own
|
|
45
|
+
* rules: the files bridge.config.json excludes from the audit (audit.exclude) are left alone, and so are the values an
|
|
46
|
+
* ignore comment or the allowlist keeps (returned in `kept`).
|
|
47
|
+
*/
|
|
48
|
+
export declare function fixCss(target: string, ds: DesignSystemIndex, write: boolean, opts?: {
|
|
49
|
+
exclude?: string[] | undefined;
|
|
50
|
+
allowlist?: AllowlistEntry[] | undefined;
|
|
51
|
+
}): {
|
|
45
52
|
file: string;
|
|
46
53
|
edits: CssFixEdit[];
|
|
54
|
+
kept: CssFixKept[];
|
|
47
55
|
}[];
|
package/dist/node/index.d.ts
CHANGED