@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.
- package/bridge.config.schema.json +5 -0
- package/dist/audit/index.js +3 -3
- package/dist/config.d.ts +5 -0
- package/dist/index.js +124 -71
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +3 -3
- package/dist/{prod-branch-BjXFIz74.js → prod-branch-CSM0c2OF.js} +74 -72
- package/dist/prod-branch-CSM0c2OF.js.map +1 -0
- package/dist/repo-model.d.ts +35 -1
- package/dist/{repo-source-CNZLq_xK.js → repo-source-73kARDJv.js} +2 -2
- package/dist/{repo-source-CNZLq_xK.js.map → repo-source-73kARDJv.js.map} +1 -1
- package/dist/{report-DCPfvvoq.js → report-DbE6yJCw.js} +2 -2
- package/dist/{report-DCPfvvoq.js.map → report-DbE6yJCw.js.map} +1 -1
- package/dist/snapshot.d.ts +5 -0
- package/package.json +1 -1
- package/dist/prod-branch-BjXFIz74.js.map +0 -1
package/dist/node/index.js
CHANGED
|
@@ -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-
|
|
6
|
-
import { K as selectTokenFiles,
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
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
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
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
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
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
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
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-
|
|
3138
|
+
//# sourceMappingURL=prod-branch-CSM0c2OF.js.map
|