@bridge-ds/core 0.18.0 → 0.19.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/bridge.config.schema.json +16 -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 +21 -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/figma-fix-loop.d.ts +153 -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 +144 -0
- package/dist/github-client.d.ts +31 -0
- package/dist/id-map.d.ts +10 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +3412 -658
- package/dist/index.js.map +1 -1
- package/dist/layered-review.d.ts +2 -0
- package/dist/measure-status.d.ts +127 -0
- package/dist/measured-only.d.ts +28 -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 +1637 -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-Bdx_2bRQ.js} +197 -159
- package/dist/prod-branch-Bdx_2bRQ.js.map +1 -0
- package/dist/prod-branch.d.ts +1 -1
- package/dist/repo-model.d.ts +5 -1
- package/dist/repo-source-github.d.ts +8 -0
- package/dist/{repo-source-CRfhLO87.js → repo-source-m0Tc603o.js} +1406 -629
- package/dist/repo-source-m0Tc603o.js.map +1 -0
- package/dist/repo-source.d.ts +6 -0
- package/dist/{report-DVEmUr0p.js → report-DFPKygfk.js} +17 -6
- package/dist/{report-DVEmUr0p.js.map → report-DFPKygfk.js.map} +1 -1
- package/dist/requester.d.ts +14 -0
- package/dist/requests.d.ts +2 -0
- package/dist/review-gate.d.ts +183 -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 +2 -0
- package/dist/suggestions-github.d.ts +21 -0
- package/dist/suggestions.d.ts +6 -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
package/dist/prod-branch.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ export declare function libraryPreviewState(x: {
|
|
|
235
235
|
}): LibraryPreviewState;
|
|
236
236
|
/**
|
|
237
237
|
* The one sentence first on a product branch: "Built with the library. 1 piece was missing, and Claude AI opened a
|
|
238
|
-
* library
|
|
238
|
+
* library change for it." `who` names who opened the library changes when they are all from the same one.
|
|
239
239
|
*/
|
|
240
240
|
export declare function productBranchSentence(r: PiecesRecord | undefined, opts?: {
|
|
241
241
|
agentName?: string | undefined;
|
package/dist/repo-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BridgeConfig, type ChangesMode } from './config';
|
|
1
|
+
import { type BridgeConfig, type ChangesMode, type DemoConfig } from './config';
|
|
2
2
|
import { type ScannedComponent } from './component-scan';
|
|
3
3
|
import { type ComponentSpecsFile, type SpecCoverage } from './component-spec';
|
|
4
4
|
import { type ContrastPairResult, type ContrastPairSpec } from './contrast-model';
|
|
@@ -24,6 +24,8 @@ export declare const REPO_MODEL_DEFAULTS: {
|
|
|
24
24
|
};
|
|
25
25
|
/** The repository settings the site and Studio act on (roles, owners, mode), derived from bridge.config.json. */
|
|
26
26
|
export interface SiteRepo {
|
|
27
|
+
/** The team's display name from bridge.config.json `name`, when set. */
|
|
28
|
+
name?: string;
|
|
27
29
|
owner: string;
|
|
28
30
|
repo: string;
|
|
29
31
|
defaultBranch: string;
|
|
@@ -54,6 +56,8 @@ export interface SiteRepo {
|
|
|
54
56
|
products: ProductConfig[];
|
|
55
57
|
/** How changes reach the code: "suggest" (default) or "direct". */
|
|
56
58
|
changes: ChangesMode;
|
|
59
|
+
/** A public demo's persona (config "demo"), when set. */
|
|
60
|
+
demo?: DemoConfig;
|
|
57
61
|
}
|
|
58
62
|
/**
|
|
59
63
|
* SiteRepo from a parsed config. `raw` (the file as parsed JSON) carries the older top-level keys loadConfig does not
|
|
@@ -20,6 +20,14 @@ export interface GitHubSourceOptions {
|
|
|
20
20
|
* lands, saying whether it came from the blob cache (no request) or from GitHub.
|
|
21
21
|
*/
|
|
22
22
|
onProgress?: (event: GitHubSourceProgress) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Reads many blob bodies in one request (the Bridge read path, /api/contribute?blobs=): the text of each sha it
|
|
25
|
+
* could read, null for a blob that does not exist; a sha left out is read on its own. Used by `prefetch` in 'api'
|
|
26
|
+
* mode only, `batchSize` shas per request (default 80), `batchConcurrency` requests at once (default 3).
|
|
27
|
+
*/
|
|
28
|
+
batch?: (shas: string[]) => Promise<Record<string, string | null>>;
|
|
29
|
+
batchSize?: number;
|
|
30
|
+
batchConcurrency?: number;
|
|
23
31
|
}
|
|
24
32
|
/** What a GitHub source reports through `onProgress`. */
|
|
25
33
|
export type GitHubSourceProgress = {
|