@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.
Files changed (69) hide show
  1. package/LICENSE +17 -0
  2. package/bridge.config.schema.json +21 -0
  3. package/dist/audit/index.js +3 -3
  4. package/dist/audit/report.d.ts +17 -2
  5. package/dist/branch-actions.d.ts +7 -1
  6. package/dist/build-requests-github.d.ts +25 -0
  7. package/dist/build-requests.d.ts +403 -0
  8. package/dist/changelog-model.d.ts +102 -0
  9. package/dist/component-spec.d.ts +3 -1
  10. package/dist/config.d.ts +26 -0
  11. package/dist/css-color.d.ts +25 -0
  12. package/dist/docs-proposal.d.ts +1 -0
  13. package/dist/explorations.d.ts +1 -0
  14. package/dist/fidelity-references.d.ts +12 -0
  15. package/dist/fidelity.d.ts +12 -1
  16. package/dist/figma-fix-loop.d.ts +153 -0
  17. package/dist/figma-fix-run.d.ts +103 -0
  18. package/dist/figma-fixes.d.ts +169 -0
  19. package/dist/figma-push-github.d.ts +7 -2
  20. package/dist/figma-push.d.ts +15 -2
  21. package/dist/gap-case.d.ts +143 -0
  22. package/dist/github-client.d.ts +31 -0
  23. package/dist/id-map.d.ts +10 -0
  24. package/dist/index.d.ts +17 -0
  25. package/dist/index.js +3996 -818
  26. package/dist/index.js.map +1 -1
  27. package/dist/layered-review.d.ts +2 -0
  28. package/dist/measure-location.d.ts +42 -0
  29. package/dist/measure-status.d.ts +127 -0
  30. package/dist/measure-workflow.d.ts +48 -0
  31. package/dist/measured-only.d.ts +30 -0
  32. package/dist/measured-spec.d.ts +349 -0
  33. package/dist/measured-tokens.d.ts +25 -0
  34. package/dist/motion-docs.d.ts +51 -0
  35. package/dist/node/audit.d.ts +11 -3
  36. package/dist/node/index.d.ts +1 -0
  37. package/dist/node/index.js +1640 -24
  38. package/dist/node/index.js.map +1 -1
  39. package/dist/node/measure-script.d.ts +1 -0
  40. package/dist/node/measure.d.ts +212 -0
  41. package/dist/node/spec-css.d.ts +9 -1
  42. package/dist/node/tokens-script.d.ts +3 -0
  43. package/dist/pr-composer.d.ts +5 -0
  44. package/dist/previews.d.ts +4 -1
  45. package/dist/{prod-branch-DenQkr_e.js → prod-branch-CJZwMfVD.js} +223 -183
  46. package/dist/prod-branch-CJZwMfVD.js.map +1 -0
  47. package/dist/prod-branch.d.ts +1 -1
  48. package/dist/repo-model.d.ts +7 -1
  49. package/dist/{repo-source-CRfhLO87.js → repo-source-CshjjC7x.js} +1485 -629
  50. package/dist/repo-source-CshjjC7x.js.map +1 -0
  51. package/dist/repo-source-github.d.ts +8 -0
  52. package/dist/repo-source.d.ts +6 -0
  53. package/dist/{report-DVEmUr0p.js → report-CE-jHAuw.js} +17 -6
  54. package/dist/{report-DVEmUr0p.js.map → report-CE-jHAuw.js.map} +1 -1
  55. package/dist/requester.d.ts +14 -0
  56. package/dist/requests.d.ts +2 -0
  57. package/dist/review-gate.d.ts +189 -2
  58. package/dist/risk.d.ts +12 -0
  59. package/dist/share-branch.d.ts +1 -1
  60. package/dist/snapshot.d.ts +34 -0
  61. package/dist/suggestion-review.d.ts +45 -2
  62. package/dist/suggestions-github.d.ts +33 -1
  63. package/dist/suggestions.d.ts +6 -0
  64. package/dist/tier1-publish.d.ts +48 -0
  65. package/dist/token-proposal.d.ts +7 -0
  66. package/dist/try-in-product.d.ts +9 -0
  67. package/package.json +1 -1
  68. package/dist/prod-branch-DenQkr_e.js.map +0 -1
  69. 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;
@@ -42,6 +44,8 @@ export interface SiteRepo {
42
44
  rights: Rights | null;
43
45
  /** governance.soloOwnerCanApproveBoth: the only owner's approval covers design and tech. Default false. */
44
46
  soloOwnerCanApproveBoth: boolean;
47
+ /** governance.leadsPublishTier1: leads publish Tier 1 changes without review. Default true. */
48
+ leadsPublishTier1: boolean;
45
49
  /** Visual before and after: on every pull request (auto) or when someone asks (on-demand, label visual-check). */
46
50
  visualImpact: {
47
51
  mode: VisualImpactMode;
@@ -54,6 +58,8 @@ export interface SiteRepo {
54
58
  products: ProductConfig[];
55
59
  /** How changes reach the code: "suggest" (default) or "direct". */
56
60
  changes: ChangesMode;
61
+ /** A public demo's persona (config "demo"), when set. */
62
+ demo?: DemoConfig;
57
63
  }
58
64
  /**
59
65
  * SiteRepo from a parsed config. `raw` (the file as parsed JSON) carries the older top-level keys loadConfig does not