@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.
Files changed (63) hide show
  1. package/bridge.config.schema.json +16 -0
  2. package/dist/audit/index.js +3 -3
  3. package/dist/audit/report.d.ts +17 -2
  4. package/dist/branch-actions.d.ts +7 -1
  5. package/dist/build-requests-github.d.ts +25 -0
  6. package/dist/build-requests.d.ts +403 -0
  7. package/dist/changelog-model.d.ts +102 -0
  8. package/dist/component-spec.d.ts +3 -1
  9. package/dist/config.d.ts +21 -0
  10. package/dist/css-color.d.ts +25 -0
  11. package/dist/docs-proposal.d.ts +1 -0
  12. package/dist/explorations.d.ts +1 -0
  13. package/dist/fidelity-references.d.ts +12 -0
  14. package/dist/figma-fix-loop.d.ts +153 -0
  15. package/dist/figma-fixes.d.ts +169 -0
  16. package/dist/figma-push-github.d.ts +7 -2
  17. package/dist/figma-push.d.ts +15 -2
  18. package/dist/gap-case.d.ts +144 -0
  19. package/dist/github-client.d.ts +31 -0
  20. package/dist/id-map.d.ts +10 -0
  21. package/dist/index.d.ts +13 -0
  22. package/dist/index.js +3412 -658
  23. package/dist/index.js.map +1 -1
  24. package/dist/layered-review.d.ts +2 -0
  25. package/dist/measure-status.d.ts +127 -0
  26. package/dist/measured-only.d.ts +28 -0
  27. package/dist/measured-spec.d.ts +349 -0
  28. package/dist/measured-tokens.d.ts +25 -0
  29. package/dist/motion-docs.d.ts +51 -0
  30. package/dist/node/audit.d.ts +11 -3
  31. package/dist/node/index.d.ts +1 -0
  32. package/dist/node/index.js +1637 -24
  33. package/dist/node/index.js.map +1 -1
  34. package/dist/node/measure-script.d.ts +1 -0
  35. package/dist/node/measure.d.ts +212 -0
  36. package/dist/node/spec-css.d.ts +9 -1
  37. package/dist/node/tokens-script.d.ts +3 -0
  38. package/dist/pr-composer.d.ts +5 -0
  39. package/dist/previews.d.ts +4 -1
  40. package/dist/{prod-branch-DenQkr_e.js → prod-branch-Bdx_2bRQ.js} +197 -159
  41. package/dist/prod-branch-Bdx_2bRQ.js.map +1 -0
  42. package/dist/prod-branch.d.ts +1 -1
  43. package/dist/repo-model.d.ts +5 -1
  44. package/dist/repo-source-github.d.ts +8 -0
  45. package/dist/{repo-source-CRfhLO87.js → repo-source-m0Tc603o.js} +1406 -629
  46. package/dist/repo-source-m0Tc603o.js.map +1 -0
  47. package/dist/repo-source.d.ts +6 -0
  48. package/dist/{report-DVEmUr0p.js → report-DFPKygfk.js} +17 -6
  49. package/dist/{report-DVEmUr0p.js.map → report-DFPKygfk.js.map} +1 -1
  50. package/dist/requester.d.ts +14 -0
  51. package/dist/requests.d.ts +2 -0
  52. package/dist/review-gate.d.ts +183 -2
  53. package/dist/risk.d.ts +12 -0
  54. package/dist/share-branch.d.ts +1 -1
  55. package/dist/snapshot.d.ts +34 -0
  56. package/dist/suggestion-review.d.ts +2 -0
  57. package/dist/suggestions-github.d.ts +21 -0
  58. package/dist/suggestions.d.ts +6 -0
  59. package/dist/token-proposal.d.ts +7 -0
  60. package/dist/try-in-product.d.ts +9 -0
  61. package/package.json +1 -1
  62. package/dist/prod-branch-DenQkr_e.js.map +0 -1
  63. package/dist/repo-source-CRfhLO87.js.map +0 -1
@@ -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 branch for it." `who` names who opened the library branches when they are all from the same one.
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;
@@ -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 = {