@bridge-ds/core 0.21.0 → 0.23.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/build-requests.d.ts +10 -1
- package/dist/explorations-github.d.ts +13 -0
- package/dist/explorations.d.ts +22 -1
- package/dist/index.js +148 -129
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +6 -6
- package/dist/{prod-branch-C7tphFAA.js → prod-branch-JL5tmL6u.js} +3 -2
- package/dist/prod-branch-JL5tmL6u.js.map +1 -0
- package/dist/products.d.ts +5 -0
- package/dist/{repo-source-CEBBBtm1.js → repo-source-DmOqTTAZ.js} +135 -125
- package/dist/repo-source-DmOqTTAZ.js.map +1 -0
- package/dist/{report-B7wNAnSu.js → report-CxOwwG_w.js} +2 -2
- package/dist/{report-B7wNAnSu.js.map → report-CxOwwG_w.js.map} +1 -1
- package/package.json +1 -1
- package/dist/prod-branch-C7tphFAA.js.map +0 -1
- package/dist/repo-source-CEBBBtm1.js.map +0 -1
package/dist/node/index.js
CHANGED
|
@@ -2,11 +2,11 @@ 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,
|
|
6
|
-
import { b3, S, cg,
|
|
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-
|
|
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";
|
|
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
|
-
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-
|
|
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";
|
|
10
10
|
import ts from "typescript";
|
|
11
11
|
function git(root, args, opts = {}) {
|
|
12
12
|
return new Promise((resolve2, reject) => {
|
|
@@ -5488,7 +5488,7 @@ export {
|
|
|
5488
5488
|
localRepoRef,
|
|
5489
5489
|
localTags,
|
|
5490
5490
|
markMeasuredRoot,
|
|
5491
|
-
|
|
5491
|
+
cZ as markUsedTokens,
|
|
5492
5492
|
matchComplex,
|
|
5493
5493
|
measureRendered,
|
|
5494
5494
|
measureStory,
|
|
@@ -5502,7 +5502,7 @@ export {
|
|
|
5502
5502
|
overridesDirOf,
|
|
5503
5503
|
W as pairParts,
|
|
5504
5504
|
parseCssModule,
|
|
5505
|
-
|
|
5505
|
+
dg as parseMeasuredSpecsFile,
|
|
5506
5506
|
parseSelector,
|
|
5507
5507
|
parseTransitions,
|
|
5508
5508
|
pickStoriesToMeasure,
|
|
@@ -1190,7 +1190,7 @@ function productOfRepo(products, repo, designSystemRepo) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
const KEY = /^[a-z0-9][a-z0-9-]*$/;
|
|
1192
1192
|
const REPO = /^[\w.-]+\/[\w.-]+$/;
|
|
1193
|
-
const FIELDS = ["key", "name", "repo", "path", "preview", "framework", "default"];
|
|
1193
|
+
const FIELDS = ["key", "name", "repo", "path", "preview", "production", "framework", "default"];
|
|
1194
1194
|
function productProblems(raw) {
|
|
1195
1195
|
if (raw === void 0) return [];
|
|
1196
1196
|
if (!Array.isArray(raw)) return ['"products" must be a list of { "key", "name" } objects'];
|
|
@@ -1216,6 +1216,7 @@ function productProblems(raw) {
|
|
|
1216
1216
|
if (bad) problems.push(`${at}.path" must be a folder relative to the repository root, without a leading "/" or "..", such as "apps/admin"`);
|
|
1217
1217
|
}
|
|
1218
1218
|
if (o.preview !== void 0 && (typeof o.preview !== "string" || !/^https?:\/\//.test(o.preview))) problems.push(`${at}.preview" must be an http(s) URL template, such as "https://app-git-{branch}.vercel.app"`);
|
|
1219
|
+
if (o.production !== void 0 && (typeof o.production !== "string" || !/^https?:\/\/[^{}\s]+$/.test(o.production))) problems.push(`${at}.production" must be the product's production URL, without placeholders, such as "https://shop.example.com"`);
|
|
1219
1220
|
if (o.framework !== void 0 && (typeof o.framework !== "string" || !o.framework.trim())) problems.push(`${at}.framework" must be a name such as "react", "vue" or "other"`);
|
|
1220
1221
|
if (o.default !== void 0 && typeof o.default !== "boolean") problems.push(`${at}.default" must be true or false`);
|
|
1221
1222
|
if (o.default === true) defaults++;
|
|
@@ -3251,4 +3252,4 @@ export {
|
|
|
3251
3252
|
parseColor as y,
|
|
3252
3253
|
rgbaToHex as z
|
|
3253
3254
|
};
|
|
3254
|
-
//# sourceMappingURL=prod-branch-
|
|
3255
|
+
//# sourceMappingURL=prod-branch-JL5tmL6u.js.map
|