@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.
- package/dist/exploration-resume.d.ts +18 -0
- package/dist/explorations.d.ts +21 -0
- package/dist/github-client.d.ts +7 -2
- package/dist/index.js +268 -256
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +29 -29
- package/dist/node/index.js.map +1 -1
- package/dist/{repo-source-DmOqTTAZ.js → repo-source-vRf_Jfbz.js} +2035 -2022
- package/dist/repo-source-vRf_Jfbz.js.map +1 -0
- package/dist/review-gate.d.ts +13 -2
- package/package.json +1 -1
- package/dist/repo-source-DmOqTTAZ.js.map +0 -1
package/dist/node/index.js
CHANGED
|
@@ -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 {
|
|
6
|
-
import {
|
|
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
|
|
320
|
+
const ch2 = text[i];
|
|
321
321
|
if (quote) {
|
|
322
|
-
buf +=
|
|
323
|
-
if (
|
|
322
|
+
buf += ch2;
|
|
323
|
+
if (ch2 === quote) quote = "";
|
|
324
324
|
continue;
|
|
325
325
|
}
|
|
326
|
-
if (
|
|
327
|
-
else if (
|
|
328
|
-
else if (
|
|
329
|
-
if (depth === 0 && (typeof sep2 === "string" ?
|
|
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 +=
|
|
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
|
|
365
|
-
if (
|
|
364
|
+
const ch2 = s[i];
|
|
365
|
+
if (ch2 === ".") {
|
|
366
366
|
i++;
|
|
367
367
|
compound.push({ t: "class", name: ident() });
|
|
368
|
-
} else if (
|
|
368
|
+
} else if (ch2 === "#") {
|
|
369
369
|
i++;
|
|
370
370
|
compound.push({ t: "attr", name: "id", value: ident() });
|
|
371
|
-
} else if (
|
|
371
|
+
} else if (ch2 === "*") {
|
|
372
372
|
i++;
|
|
373
373
|
compound.push({ t: "any" });
|
|
374
|
-
} else if (
|
|
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 (
|
|
380
|
+
} else if (ch2 === ":" && s[i + 1] === ":") {
|
|
381
381
|
i += 2;
|
|
382
382
|
compound.push({ t: "element", name: ident() });
|
|
383
|
-
} else if (
|
|
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 (
|
|
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
|
|
456
|
-
if (
|
|
457
|
-
if (
|
|
458
|
-
else buf +=
|
|
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
|
-
|
|
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
|
-
|
|
5457
|
+
U as compareSpecToMeasured,
|
|
5458
5458
|
computeValues,
|
|
5459
5459
|
currentBranch,
|
|
5460
5460
|
declaredFor,
|
|
5461
5461
|
draftedCodeHash,
|
|
5462
5462
|
draftedSpec,
|
|
5463
5463
|
entryFor,
|
|
5464
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5503
|
+
Y as pairParts,
|
|
5504
5504
|
parseCssModule,
|
|
5505
|
-
|
|
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
|
-
|
|
5526
|
+
X as withoutAddedWrappers
|
|
5527
5527
|
};
|
|
5528
5528
|
//# sourceMappingURL=index.js.map
|