@bridge-ds/core 0.15.0 → 0.16.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.
@@ -2,10 +2,10 @@ import { execFile, execFileSync } from "node:child_process";
2
2
  import { mkdtemp, rm, mkdir, writeFile, lstat, readFile } from "node:fs/promises";
3
3
  import { tmpdir } from "node:os";
4
4
  import { join, resolve, relative, dirname, sep, posix } from "node:path";
5
- import { aZ as assertSafeBranch, c as collectHistory, p as packageDirCandidates, a as parseChangelog, m as mergeReleases, r as releasesFromTags, b as buildReport, cA as prNumberFromSubject, cX as specHash, dk as validateComponentSpec, bT as hashSpec, bU as iconComponentName, C as variantKeyOf, df as tokenCssVar, ao as COMPONENT_SPECS_VERSION, an as COLOR_FIELDS, c_ as suggestionAppliedComment, X as gitBlobSha, cy as planSuggestionApply, ak as normalizeRepoPath } from "../repo-source-CNZLq_xK.js";
6
- import { K as selectTokenFiles, bl as globToRegExp, N as loadConfig, L as LayeredTokenSet, V as CONFIG_FILE, $ as layoutOptions, a0 as buildTokenSet, b4 as defaultContext, B as resolve$1, ae as slugify, bY as protectedBranchesOf, aN as baseBranchOf } from "../prod-branch-BjXFIz74.js";
5
+ import { aZ as assertSafeBranch, c as collectHistory, p as packageDirCandidates, a as parseChangelog, m as mergeReleases, r as releasesFromTags, b as buildReport, cA as prNumberFromSubject, cX as specHash, dk as validateComponentSpec, bT as hashSpec, bU as iconComponentName, C as variantKeyOf, df as tokenCssVar, ao as COMPONENT_SPECS_VERSION, an as COLOR_FIELDS, c_ as suggestionAppliedComment, X as gitBlobSha, cy as planSuggestionApply, ak as normalizeRepoPath } from "../repo-source-73kARDJv.js";
6
+ import { K as selectTokenFiles, ag as globToRegExp, N as loadConfig, L as LayeredTokenSet, V as CONFIG_FILE, $ as layoutOptions, a0 as buildTokenSet, b5 as defaultContext, B as resolve$1, ae as slugify, bY as protectedBranchesOf, aO as baseBranchOf } from "../prod-branch-CSM0c2OF.js";
7
7
  import { statSync, readFileSync, existsSync, writeFileSync, readdirSync } from "node:fs";
8
- import { i as isAuditable, Q as planCssFixes, O as parseAllowlist, d as DesignSystemIndex, l as buildAuditReport, o as compareWithBaseline, b as AUDIT_IGNORE_DIRS } from "../report-DCPfvvoq.js";
8
+ import { i as isAuditable, Q as planCssFixes, O as parseAllowlist, d as DesignSystemIndex, l as buildAuditReport, o as compareWithBaseline, b as AUDIT_IGNORE_DIRS } from "../report-DbE6yJCw.js";
9
9
  import ts from "typescript";
10
10
  function git(root, args, opts = {}) {
11
11
  return new Promise((resolve2, reject) => {
@@ -1307,7 +1307,8 @@ function defineConfig(input) {
1307
1307
  styleSuffix: input.components.styleSuffix ?? ".module.css",
1308
1308
  reference: input.components.reference,
1309
1309
  index: input.components.index,
1310
- specs: input.components.specs
1310
+ specs: input.components.specs,
1311
+ ...input.components.styles ? { styles: input.components.styles.map(trimSlashes) } : {}
1311
1312
  } : void 0,
1312
1313
  docs: { ...input.docs },
1313
1314
  changesets: pkg ? { dir: trimSlashes(input.changesets?.dir ?? ".changeset"), package: pkg } : void 0,
@@ -1431,6 +1432,7 @@ function loadConfig(source) {
1431
1432
  problems.push('"contrast" must be { "path", "modes"? }');
1432
1433
  const comps = d.components;
1433
1434
  if (comps !== void 0 && (!isObj(comps) || !isStr(comps.dir))) problems.push('"components.dir" must be a non-empty string');
1435
+ if (isObj(comps) && comps.styles !== void 0 && !isStrList(comps.styles)) problems.push('"components.styles" must be a list of globs');
1434
1436
  const cs = d.changeset;
1435
1437
  if (cs !== void 0 && (!isObj(cs) || !isStr(cs.package))) problems.push('"changeset.package" must be a non-empty string');
1436
1438
  const css = d.changesets;
@@ -2950,7 +2952,7 @@ export {
2950
2952
  previewsSettled as Z,
2951
2953
  DEFAULT_TOKEN_PATHS as _,
2952
2954
  proposedTokenPath as a,
2953
- composite as a$,
2955
+ composePrBody as a$,
2954
2956
  buildTokenSet as a0,
2955
2957
  readPreviewComment as a1,
2956
2958
  linkStatus as a2,
@@ -2961,71 +2963,71 @@ export {
2961
2963
  withNeededBy as a7,
2962
2964
  withLink as a8,
2963
2965
  withPiecesRecord as a9,
2964
- PRODUCT_LABEL_PREFIX as aA,
2965
- RIGHTS as aB,
2966
- RIGHT_LABEL as aC,
2967
- RISK_TIER as aD,
2968
- TIER_ORDER as aE,
2969
- TeamDirectory as aF,
2970
- VISUAL_CHECK_LABEL as aG,
2971
- affectedContrast as aH,
2972
- aliasOf as aI,
2973
- appForProject as aJ,
2974
- appUrl as aK,
2975
- approverEntries as aL,
2976
- approverLists as aM,
2977
- baseBranchOf as aN,
2978
- branchName as aO,
2979
- branchSlug as aP,
2980
- canShip as aQ,
2981
- changeKind as aR,
2982
- changedModes as aS,
2983
- changesMode as aT,
2984
- clearRawDeep as aU,
2985
- colorToCss as aV,
2986
- colorsEqual as aW,
2987
- comboKey as aX,
2988
- commitMessage as aY,
2989
- compactJson as aZ,
2990
- composePrBody as a_,
2966
+ PRIMITIVE_MODE as aA,
2967
+ PRODUCT_LABEL_PREFIX as aB,
2968
+ RIGHTS as aC,
2969
+ RIGHT_LABEL as aD,
2970
+ RISK_TIER as aE,
2971
+ TIER_ORDER as aF,
2972
+ TeamDirectory as aG,
2973
+ VISUAL_CHECK_LABEL as aH,
2974
+ affectedContrast as aI,
2975
+ aliasOf as aJ,
2976
+ appForProject as aK,
2977
+ appUrl as aL,
2978
+ approverEntries as aM,
2979
+ approverLists as aN,
2980
+ baseBranchOf as aO,
2981
+ branchName as aP,
2982
+ branchSlug as aQ,
2983
+ canShip as aR,
2984
+ changeKind as aS,
2985
+ changedModes as aT,
2986
+ changesMode as aU,
2987
+ clearRawDeep as aV,
2988
+ colorToCss as aW,
2989
+ colorsEqual as aX,
2990
+ comboKey as aY,
2991
+ commitMessage as aZ,
2992
+ compactJson as a_,
2991
2993
  productBranchSentence as aa,
2992
2994
  mergePiecesRecord as ab,
2993
2995
  productOfBranch as ac,
2994
2996
  defaultProduct as ad,
2995
2997
  slugify as ae,
2996
2998
  defineConfig as af,
2997
- ConfigError as ag,
2998
- DEFAULT_CHANGES_MODE as ah,
2999
- DEFAULT_OVERRIDE as ai,
3000
- DEFAULT_PRODUCTS as aj,
3001
- AAA_MIN as ak,
3002
- AA_MIN as al,
3003
- CHANGES_MODES as am,
3004
- CONTRAST_CELL_MAX as an,
3005
- CONTRAST_CHECKS_FILE as ao,
3006
- DEFAULT_GOVERNANCE as ap,
3007
- DEFAULT_RIGHTS as aq,
3008
- DEFAULT_VISUAL_IMPACT as ar,
3009
- DTCG_TYPES as as,
3010
- JsonParseError as at,
3011
- LINK_STATUS_TONE as au,
3012
- OWNER_GROUPS as av,
3013
- PREVIEW_APP_LABELS as aw,
3014
- PREVIEW_COMMENT_MARKER as ax,
3015
- PREVIEW_PLACEHOLDERS as ay,
3016
- PRIMITIVE_MODE as az,
2999
+ globToRegExp as ag,
3000
+ ConfigError as ah,
3001
+ DEFAULT_CHANGES_MODE as ai,
3002
+ DEFAULT_OVERRIDE as aj,
3003
+ DEFAULT_PRODUCTS as ak,
3004
+ AAA_MIN as al,
3005
+ AA_MIN as am,
3006
+ CHANGES_MODES as an,
3007
+ CONTRAST_CELL_MAX as ao,
3008
+ CONTRAST_CHECKS_FILE as ap,
3009
+ DEFAULT_GOVERNANCE as aq,
3010
+ DEFAULT_RIGHTS as ar,
3011
+ DEFAULT_VISUAL_IMPACT as as,
3012
+ DTCG_TYPES as at,
3013
+ JsonParseError as au,
3014
+ LINK_STATUS_TONE as av,
3015
+ OWNER_GROUPS as aw,
3016
+ PREVIEW_APP_LABELS as ax,
3017
+ PREVIEW_COMMENT_MARKER as ay,
3018
+ PREVIEW_PLACEHOLDERS as az,
3017
3019
  modesOf as b,
3018
3020
  rightsProblems as b$,
3019
- contextFor as b0,
3020
- contrastLevel as b1,
3021
- contrastPair as b2,
3022
- contrastRatio as b3,
3023
- defaultContext as b4,
3024
- defaultTitle as b5,
3025
- detectLayout as b6,
3026
- entriesFor as b7,
3027
- entryLabel as b8,
3028
- expandEntries as b9,
3021
+ composite as b0,
3022
+ contextFor as b1,
3023
+ contrastLevel as b2,
3024
+ contrastPair as b3,
3025
+ contrastRatio as b4,
3026
+ defaultContext as b5,
3027
+ defaultTitle as b6,
3028
+ detectLayout as b7,
3029
+ entriesFor as b8,
3030
+ entryLabel as b9,
3029
3031
  luminance as bA,
3030
3032
  nearestQuestion as bB,
3031
3033
  neededBySection as bC,
@@ -3053,18 +3055,18 @@ export {
3053
3055
  protectedBranchesOf as bY,
3054
3056
  renderedColor as bZ,
3055
3057
  rgbaToDtcg as b_,
3056
- expandOwners as ba,
3057
- fieldChanges as bb,
3058
- findProduct as bc,
3059
- findToken as bd,
3060
- findVercelComment as be,
3061
- flattenLayerFile as bf,
3062
- formatNumber as bg,
3063
- formatOwnerEntry as bh,
3064
- fromPlain as bi,
3065
- getChild as bj,
3066
- getEntry as bk,
3067
- globToRegExp as bl,
3058
+ expandEntries as ba,
3059
+ expandOwners as bb,
3060
+ fieldChanges as bc,
3061
+ findProduct as bd,
3062
+ findToken as be,
3063
+ findVercelComment as bf,
3064
+ flattenLayerFile as bg,
3065
+ formatNumber as bh,
3066
+ formatOwnerEntry as bi,
3067
+ fromPlain as bj,
3068
+ getChild as bk,
3069
+ getEntry as bl,
3068
3070
  groupsPhrase as bm,
3069
3071
  hexToRgba as bn,
3070
3072
  holdersOf as bo,
@@ -3133,4 +3135,4 @@ export {
3133
3135
  parseColor as y,
3134
3136
  rgbaToHex as z
3135
3137
  };
3136
- //# sourceMappingURL=prod-branch-BjXFIz74.js.map
3138
+ //# sourceMappingURL=prod-branch-CSM0c2OF.js.map