@bridge-ds/core 0.23.0 → 0.24.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,8 +2,8 @@ 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 { bz as assertSafeBranch, c as collectHistory, p as packageDirCandidates, a as parseChangelog, m as mergeReleases, r as releasesFromTags, b as buildReport, dy as prNumberFromSubject, dX as specHash, eu as validateComponentSpec, X as hashSpec, cA as iconComponentName, T as variantKeyOf, eo as tokenCssVar, aN as COMPONENT_SPECS_VERSION, Z as COLOR_FIELDS, e3 as suggestionAppliedComment, a9 as gitBlobSha, dw as planSuggestionApply, ax as normalizeRepoPath, dU as sharedTokenPrefix, er as tokenVariablePath, eE as withSrgbColors, d_ as storybookIframeUrl, dc as parseBoxShadow } from "../repo-source-DmOqTTAZ.js";
6
- import { b3, S, cg, cZ, W, dg, V } from "../repo-source-DmOqTTAZ.js";
5
+ import { bA as assertSafeBranch, c as collectHistory, p as packageDirCandidates, a as parseChangelog, m as mergeReleases, r as releasesFromTags, b as buildReport, dA as prNumberFromSubject, dZ as specHash, ew as validateComponentSpec, Z as hashSpec, cB as iconComponentName, V as variantKeyOf, eq as tokenCssVar, aP as COMPONENT_SPECS_VERSION, $ as COLOR_FIELDS, e5 as suggestionAppliedComment, ab as gitBlobSha, dy as planSuggestionApply, az as normalizeRepoPath, dW as sharedTokenPrefix, et as tokenVariablePath, eG as withSrgbColors, e0 as storybookIframeUrl, de as parseBoxShadow } from "../repo-source-vRf_Jfbz.js";
6
+ import { b4, U, ch, c$, Y, di, X } from "../repo-source-vRf_Jfbz.js";
7
7
  import { K as selectTokenFiles, al as globToRegExp, N as loadConfig, L as LayeredTokenSet, V as CONFIG_FILE, ag as layoutOptions, ah as buildTokenSet, bd as defaultContext, B as resolve$1, aj as slugify, c7 as protectedBranchesOf, ae as baseBranchOf } from "../prod-branch-JL5tmL6u.js";
8
8
  import { statSync, readFileSync, existsSync, writeFileSync, readdirSync } from "node:fs";
9
9
  import { i as isAuditable, R as planCssFixes, P as parseAllowlist, e as DesignSystemIndex, m as buildAuditReport, p as compareWithBaseline, c as AUDIT_IGNORE_DIRS } from "../report-CxOwwG_w.js";
@@ -317,21 +317,21 @@ function splitTop(text, sep2) {
317
317
  let quote = "";
318
318
  let buf = "";
319
319
  for (let i = 0; i < text.length; i++) {
320
- const ch = text[i];
320
+ const ch2 = text[i];
321
321
  if (quote) {
322
- buf += ch;
323
- if (ch === quote) quote = "";
322
+ buf += ch2;
323
+ if (ch2 === quote) quote = "";
324
324
  continue;
325
325
  }
326
- if (ch === '"' || ch === "'") quote = ch;
327
- else if (ch === "(" || ch === "[") depth++;
328
- else if (ch === ")" || ch === "]") depth--;
329
- if (depth === 0 && (typeof sep2 === "string" ? ch === sep2 : sep2.test(ch))) {
326
+ if (ch2 === '"' || ch2 === "'") quote = ch2;
327
+ else if (ch2 === "(" || ch2 === "[") depth++;
328
+ else if (ch2 === ")" || ch2 === "]") depth--;
329
+ if (depth === 0 && (typeof sep2 === "string" ? ch2 === sep2 : sep2.test(ch2))) {
330
330
  out.push(buf);
331
331
  buf = "";
332
332
  continue;
333
333
  }
334
- buf += ch;
334
+ buf += ch2;
335
335
  }
336
336
  out.push(buf);
337
337
  return out.map((s) => s.trim()).filter(Boolean);
@@ -361,26 +361,26 @@ function parseSelector(text) {
361
361
  while (i < s.length) {
362
362
  const compound = [];
363
363
  for (; ; ) {
364
- const ch = s[i];
365
- if (ch === ".") {
364
+ const ch2 = s[i];
365
+ if (ch2 === ".") {
366
366
  i++;
367
367
  compound.push({ t: "class", name: ident() });
368
- } else if (ch === "#") {
368
+ } else if (ch2 === "#") {
369
369
  i++;
370
370
  compound.push({ t: "attr", name: "id", value: ident() });
371
- } else if (ch === "*") {
371
+ } else if (ch2 === "*") {
372
372
  i++;
373
373
  compound.push({ t: "any" });
374
- } else if (ch === "[") {
374
+ } else if (ch2 === "[") {
375
375
  const end = s.indexOf("]", i);
376
376
  const inner = s.slice(i + 1, end);
377
377
  i = end + 1;
378
378
  const m = /^\s*([\w-]+)\s*(?:[~|^$*]?=\s*["']?([^"'\]]*)["']?)?\s*$/.exec(inner);
379
379
  compound.push({ t: "attr", name: m?.[1] ?? inner, value: m?.[2] });
380
- } else if (ch === ":" && s[i + 1] === ":") {
380
+ } else if (ch2 === ":" && s[i + 1] === ":") {
381
381
  i += 2;
382
382
  compound.push({ t: "element", name: ident() });
383
- } else if (ch === ":") {
383
+ } else if (ch2 === ":") {
384
384
  i++;
385
385
  const name = ident();
386
386
  if (s[i] === "(") {
@@ -388,7 +388,7 @@ function parseSelector(text) {
388
388
  const args = ["not", "is", "where", "has", "matches"].includes(name) ? splitTop(inner, ",").map(parseRelative) : void 0;
389
389
  compound.push({ t: "pseudo", name, args });
390
390
  } else compound.push({ t: "pseudo", name });
391
- } else if (ch && /[A-Za-z]/.test(ch)) {
391
+ } else if (ch2 && /[A-Za-z]/.test(ch2)) {
392
392
  compound.push({ t: "tag", name: ident().toLowerCase() });
393
393
  } else break;
394
394
  }
@@ -452,10 +452,10 @@ function parseCssModule(module, text, startOrder = 0) {
452
452
  let i = 0;
453
453
  let buf = "";
454
454
  while (i < src.length) {
455
- const ch = src[i];
456
- if (ch !== "{") {
457
- if (ch === ";" && buf.trim().startsWith("@")) buf = "";
458
- else buf += ch;
455
+ const ch2 = src[i];
456
+ if (ch2 !== "{") {
457
+ if (ch2 === ";" && buf.trim().startsWith("@")) buf = "";
458
+ else buf += ch2;
459
459
  i++;
460
460
  continue;
461
461
  }
@@ -5441,7 +5441,7 @@ export {
5441
5441
  INHERITED,
5442
5442
  MEASURE_SCRIPT,
5443
5443
  MEDIA_SLOT,
5444
- b3 as MeasuredSpecsError,
5444
+ b4 as MeasuredSpecsError,
5445
5445
  OPEN_SCRIPT,
5446
5446
  PROPS_SCRIPT,
5447
5447
  SPEC_VIEWPORT_WIDTH,
@@ -5454,14 +5454,14 @@ export {
5454
5454
  collectAuditFiles,
5455
5455
  commitToNewLocalBranch,
5456
5456
  commitTree,
5457
- S as compareSpecToMeasured,
5457
+ U as compareSpecToMeasured,
5458
5458
  computeValues,
5459
5459
  currentBranch,
5460
5460
  declaredFor,
5461
5461
  draftedCodeHash,
5462
5462
  draftedSpec,
5463
5463
  entryFor,
5464
- cg as evalCalc,
5464
+ ch as evalCalc,
5465
5465
  expandDecl,
5466
5466
  fileDiff,
5467
5467
  findDesignSystemRoot,
@@ -5488,7 +5488,7 @@ export {
5488
5488
  localRepoRef,
5489
5489
  localTags,
5490
5490
  markMeasuredRoot,
5491
- cZ as markUsedTokens,
5491
+ c$ as markUsedTokens,
5492
5492
  matchComplex,
5493
5493
  measureRendered,
5494
5494
  measureStory,
@@ -5500,9 +5500,9 @@ export {
5500
5500
  openingTransitions,
5501
5501
  originRepo,
5502
5502
  overridesDirOf,
5503
- W as pairParts,
5503
+ Y as pairParts,
5504
5504
  parseCssModule,
5505
- dg as parseMeasuredSpecsFile,
5505
+ di as parseMeasuredSpecsFile,
5506
5506
  parseSelector,
5507
5507
  parseTransitions,
5508
5508
  pickStoriesToMeasure,
@@ -5523,6 +5523,6 @@ export {
5523
5523
  tokenCssIndex,
5524
5524
  tokenVariablePath,
5525
5525
  transitionBetween,
5526
- V as withoutAddedWrappers
5526
+ X as withoutAddedWrappers
5527
5527
  };
5528
5528
  //# sourceMappingURL=index.js.map