@bridge-ds/core 0.21.0 → 0.22.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/index.js +4 -4
- package/dist/node/index.js +4 -4
- 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-CcWmqNBZ.js} +2 -2
- package/dist/{repo-source-CEBBBtm1.js.map → repo-source-CcWmqNBZ.js.map} +1 -1
- 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
|
@@ -773,6 +773,11 @@
|
|
|
773
773
|
"pattern": "^https?://",
|
|
774
774
|
"description": "Preview URL pattern, with the same placeholders as previews.apps: {branch}, {rawBranch}, {pr}, {sha} and {sha7}."
|
|
775
775
|
},
|
|
776
|
+
"production": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"pattern": "^https?://[^{}\\s]+$",
|
|
779
|
+
"description": "The product in production, without placeholders, such as https://shop.example.com: Live product in the Bridge toolbar (Before of a code change) and See the product today. A product of this repository may use previews.production.<key> instead."
|
|
780
|
+
},
|
|
776
781
|
"framework": {
|
|
777
782
|
"type": "string",
|
|
778
783
|
"description": "The framework the product is built with: react, vue, angular, svelte, astro or other.",
|
package/dist/audit/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as isAuditable, a as auditFile, l as lineCol, b as blankComments, s as scanCssText } from "../report-
|
|
2
|
-
import { A, c, d, C, D, e, F, I, L, f, M, N, g, h, j, k, m, n, o, p, q, r, t, u, v, w, x, y, z, B, E, G, H, J, K, O, P, Q, R, S, T, U, V, W, X, Y, Z } from "../report-
|
|
3
|
-
import { p as pieceId, a as proposedTokenPath, t as tokenLabel } from "../prod-branch-
|
|
1
|
+
import { i as isAuditable, a as auditFile, l as lineCol, b as blankComments, s as scanCssText } from "../report-CxOwwG_w.js";
|
|
2
|
+
import { A, c, d, C, D, e, F, I, L, f, M, N, g, h, j, k, m, n, o, p, q, r, t, u, v, w, x, y, z, B, E, G, H, J, K, O, P, Q, R, S, T, U, V, W, X, Y, Z } from "../report-CxOwwG_w.js";
|
|
3
|
+
import { p as pieceId, a as proposedTokenPath, t as tokenLabel } from "../prod-branch-JL5tmL6u.js";
|
|
4
4
|
const lines = (text) => text.split(/\r?\n/);
|
|
5
5
|
function lineBag(text) {
|
|
6
6
|
const bag = /* @__PURE__ */ new Map();
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as modeDisplayName, b as modesOf$1, i as isMultiMode, T as TIER_NAMES, c as TIER_AXIS, d as collectRefs, f as findReferenceProblems, e as evaluatePairs, g as contrastScope, h as contextLabel, S as SINGLE_MODE, j as isAlias$1, k as aliasTarget, l as pathId, v as valuesEqual, n as flattenTokens, s as serializeTokenFile, r as removeToken, u as upsertToken, o as threeWayDiff, q as emptyTokenFile, w as parseTokenFile, E as EXT_ID, x as EXT_SCOPES, y as parseColor, z as rgbaToHex, A as formatValue, B as resolve, C as moveToken, D as effectiveScopes, F as sameScopes, G as defaultScopes, H as readTokenAt, I as modeFile, J as defaultFile, K as selectTokenFiles, L as LayeredTokenSet, M as resolveBranchPreviews, N as loadConfig, O as tokensPath, P as toConfigJson, Q as validateLayered, R as parseContrastChecks, U as classifyRisk, V as CONFIG_FILE, W as RISK_LABELS, X as previewLinks, Y as findPreviewComment, Z as previewsSettled, _ as previewUrl, $ as productRepos, a0 as linkStatus, a1 as libraryPreviewState, a2 as parsePiecesRecord, a3 as libraryBranchPlan, a4 as NEEDED_BY_LABEL, a5 as withNeededBy, a6 as withLink, a7 as withPiecesRecord, a8 as productBranchSentence, a9 as productOfBranch, aa as pieceRequest, ab as mergePiecesRecord, ac as defaultProduct, ad as productOfRepo, ae as baseBranchOf, af as DEFAULT_TOKEN_PATHS, ag as layoutOptions, ah as buildTokenSet, ai as readPreviewComment, aj as slugify, ak as defineConfig, al as globToRegExp, am as ConfigError, an as DEFAULT_CHANGES_MODE, ao as DEFAULT_OVERRIDE, ap as DEFAULT_PRODUCTS, aq as isGuardrail } from "./prod-branch-
|
|
2
|
-
import { ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, p, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, a, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, t, cx, cy, cz, cA, cB, cC, cD, cE, cF } from "./prod-branch-
|
|
3
|
-
import { G as GitHubError, c as collectHistory, p as packageDirCandidates, a as parseChangelog, r as releasesFromTags, m as mergeReleases, b as buildReport, d as applyTokenEdits, e as buildHistoryEntry, f as coerceValue, g as checkLayeredPair, h as formatChangeset, P as PROSE_KEYS, i as markClaudeDraft, j as cleanDraftText, k as docsPrompt, D as DRAFT_LINE_MAX, R as REQUESTS_BRANCH, l as REQUEST_KINDS, s as sanitizeDraftLine, E as EXPLORATION_ARCHIVED_LABEL, n as parseExplorationBody, o as EXPLORATION_PREFIX, q as explorationSlug, t as isArchivedExploration, u as explorationStatus, v as explorationTryIt, w as isExplorationPull, x as promotionPlan, y as EXPLORATION_LABEL, z as explorationProblems, A as explorationNote, B as explorationNotePath, C as explorationPrTitle, F as explorationPrBody, H as suggestionStateFromLabels, I as suggestionStatus, J as composeRequestIssue, K as EXPLORATION_NOTES_DIR, L as isExplorationBranch, M as doneExploringPlan, N as withDoneExploring, O as explorationStartingPoint, Q as explorationRefLabel, S as compareSpecToMeasured, T as variantKeyOf, U as matchVariant, V as withoutAddedWrappers, W as pairParts, X as hashSpec, Y as SPEC_FIELDS, Z as COLOR_FIELDS, _ as DRAFTED_BY_CLAUDE_LABEL, $ as overrideComment, a0 as OVERRIDE_HEADING, a1 as overrideRefusedComment, a2 as diffLayered, a3 as contrastDelta, a4 as runLayeredContrast, a5 as layeredImpact, a6 as classifyLayered, a7 as composeProposalBody, a8 as createSuggestionOnGitHub, a9 as gitBlobSha, aa as SUGGESTION_SCHEMA, ab as branchWithJiraKey, ac as titleWithJiraKey, ad as figmaSpecPath, ae as formatFigmaSpec, af as figmaDraftBrief, ag as parseFigmaOrigin, ah as figmaPushStatus, ai as parseFigmaSpec, aj as FIGMA_SPEC_DIR, ak as FROM_FIGMA_LABEL, al as withFigmaOrigin, am as WAITING_FOR_CLAUDE_LABEL, an as planComponentPush, ao as figmaOriginSection, ap as figmaBranchTitle, aq as figmaSpecSlug, ar as figmaDraftBody, as as REQUEST_LABEL, at as figmaNodeUrl, au as parentDir, av as parseComponentSpecs, aw as readRepoTexts, ax as normalizeRepoPath, ay as isUnder, az as componentMotion, aA as GitHubClient, aB as effectiveTier, aC as parseRequestIssue, aD as requestStatus, aE as listSuggestionsOnGitHub, aF as getSuggestionOnGitHub, aG as closingIssueNumbers, aH as requestIssueTitle, aI as pullState, aJ as summarizeCi, aK as summarizeApprovals } from "./repo-source-
|
|
4
|
-
import { aL as aL2, aM as aM2, aN as aN2, aO as aO2, aP as aP2, aQ as aQ2, aR as aR2, aS as aS2, aT as aT2, aU as aU2, aV as aV2, aW as aW2, aX as aX2, aY as aY2, aZ as aZ2, a_ as a_2, a$ as a$2, b0 as b02, b1 as b12, b2 as b22, b3 as b32, b4 as b42, b5 as b52, b6 as b62, b7 as b72, b8 as b82, b9 as b92, ba as ba2, bb as bb2, bc as bc2, bd as bd2, be as be2, bf as bf2, bg as bg2, bh as bh2, bi as bi2, bj as bj2, bk as bk2, bl as bl2, bm as bm2, bn as bn2, bo as bo2, bp as bp2, bq as bq2, br as br2, bs as bs2, bt as bt2, bu as bu2, bv as bv2, bw as bw2, bx as bx2, by as by2, bz as bz2, bA as bA2, bB as bB2, bC as bC2, bD as bD2, bE as bE2, bF as bF2, bG as bG2, bH as bH2, bI as bI2, bJ as bJ2, bK as bK2, bL as bL2, bM as bM2, bN as bN2, bO as bO2, bP as bP2, bQ as bQ2, bR as bR2, bS as bS2, bT as bT2, bU as bU2, bV as bV2, bW as bW2, bX as bX2, bY as bY2, bZ as bZ2, b_ as b_2, b$ as b$2, c0 as c02, c1 as c12, c2 as c22, c3 as c32, c4 as c42, c5 as c52, c6 as c62, c7 as c72, c8 as c82, c9 as c92, ca as ca2, cb as cb2, cc as cc2, cd as cd2, ce as ce2, cf as cf2, cg as cg2, ch as ch2, ci as ci2, cj as cj2, ck as ck2, cl as cl2, cm as cm2, cn as cn2, co as co2, cp as cp2, cq as cq2, cr as cr2, cs as cs2, ct as ct2, cu as cu2, cv as cv2, cw as cw2, cx as cx2, cy as cy2, cz as cz2, cA as cA2, cB as cB2, cC as cC2, cD as cD2, cE as cE2, cF as cF2, cG, cH, cI, cJ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, cY, cZ, c_, c$, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, da, db, dc, dd, de, df, dg, dh, di, dj, dk, dl, dm, dn, dp, dq, dr, ds, dt, du, dv, dw, dx, dy, dz, dA, dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dL, dM, dN, dO, dP, dQ, dR, dS, dT, dU, dV, dW, dX, dY, dZ, d_, d$, e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, ea, eb, ec, ed, ee, ef, eg, eh, ei, ej, ek, el, em, en, eo, ep, eq, er, es, et, eu, ev, ew, ex, ey, ez, eA, eB, eC, eD, eE, eF, eG } from "./repo-source-
|
|
1
|
+
import { m as modeDisplayName, b as modesOf$1, i as isMultiMode, T as TIER_NAMES, c as TIER_AXIS, d as collectRefs, f as findReferenceProblems, e as evaluatePairs, g as contrastScope, h as contextLabel, S as SINGLE_MODE, j as isAlias$1, k as aliasTarget, l as pathId, v as valuesEqual, n as flattenTokens, s as serializeTokenFile, r as removeToken, u as upsertToken, o as threeWayDiff, q as emptyTokenFile, w as parseTokenFile, E as EXT_ID, x as EXT_SCOPES, y as parseColor, z as rgbaToHex, A as formatValue, B as resolve, C as moveToken, D as effectiveScopes, F as sameScopes, G as defaultScopes, H as readTokenAt, I as modeFile, J as defaultFile, K as selectTokenFiles, L as LayeredTokenSet, M as resolveBranchPreviews, N as loadConfig, O as tokensPath, P as toConfigJson, Q as validateLayered, R as parseContrastChecks, U as classifyRisk, V as CONFIG_FILE, W as RISK_LABELS, X as previewLinks, Y as findPreviewComment, Z as previewsSettled, _ as previewUrl, $ as productRepos, a0 as linkStatus, a1 as libraryPreviewState, a2 as parsePiecesRecord, a3 as libraryBranchPlan, a4 as NEEDED_BY_LABEL, a5 as withNeededBy, a6 as withLink, a7 as withPiecesRecord, a8 as productBranchSentence, a9 as productOfBranch, aa as pieceRequest, ab as mergePiecesRecord, ac as defaultProduct, ad as productOfRepo, ae as baseBranchOf, af as DEFAULT_TOKEN_PATHS, ag as layoutOptions, ah as buildTokenSet, ai as readPreviewComment, aj as slugify, ak as defineConfig, al as globToRegExp, am as ConfigError, an as DEFAULT_CHANGES_MODE, ao as DEFAULT_OVERRIDE, ap as DEFAULT_PRODUCTS, aq as isGuardrail } from "./prod-branch-JL5tmL6u.js";
|
|
2
|
+
import { ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, p, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, a, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, t, cx, cy, cz, cA, cB, cC, cD, cE, cF } from "./prod-branch-JL5tmL6u.js";
|
|
3
|
+
import { G as GitHubError, c as collectHistory, p as packageDirCandidates, a as parseChangelog, r as releasesFromTags, m as mergeReleases, b as buildReport, d as applyTokenEdits, e as buildHistoryEntry, f as coerceValue, g as checkLayeredPair, h as formatChangeset, P as PROSE_KEYS, i as markClaudeDraft, j as cleanDraftText, k as docsPrompt, D as DRAFT_LINE_MAX, R as REQUESTS_BRANCH, l as REQUEST_KINDS, s as sanitizeDraftLine, E as EXPLORATION_ARCHIVED_LABEL, n as parseExplorationBody, o as EXPLORATION_PREFIX, q as explorationSlug, t as isArchivedExploration, u as explorationStatus, v as explorationTryIt, w as isExplorationPull, x as promotionPlan, y as EXPLORATION_LABEL, z as explorationProblems, A as explorationNote, B as explorationNotePath, C as explorationPrTitle, F as explorationPrBody, H as suggestionStateFromLabels, I as suggestionStatus, J as composeRequestIssue, K as EXPLORATION_NOTES_DIR, L as isExplorationBranch, M as doneExploringPlan, N as withDoneExploring, O as explorationStartingPoint, Q as explorationRefLabel, S as compareSpecToMeasured, T as variantKeyOf, U as matchVariant, V as withoutAddedWrappers, W as pairParts, X as hashSpec, Y as SPEC_FIELDS, Z as COLOR_FIELDS, _ as DRAFTED_BY_CLAUDE_LABEL, $ as overrideComment, a0 as OVERRIDE_HEADING, a1 as overrideRefusedComment, a2 as diffLayered, a3 as contrastDelta, a4 as runLayeredContrast, a5 as layeredImpact, a6 as classifyLayered, a7 as composeProposalBody, a8 as createSuggestionOnGitHub, a9 as gitBlobSha, aa as SUGGESTION_SCHEMA, ab as branchWithJiraKey, ac as titleWithJiraKey, ad as figmaSpecPath, ae as formatFigmaSpec, af as figmaDraftBrief, ag as parseFigmaOrigin, ah as figmaPushStatus, ai as parseFigmaSpec, aj as FIGMA_SPEC_DIR, ak as FROM_FIGMA_LABEL, al as withFigmaOrigin, am as WAITING_FOR_CLAUDE_LABEL, an as planComponentPush, ao as figmaOriginSection, ap as figmaBranchTitle, aq as figmaSpecSlug, ar as figmaDraftBody, as as REQUEST_LABEL, at as figmaNodeUrl, au as parentDir, av as parseComponentSpecs, aw as readRepoTexts, ax as normalizeRepoPath, ay as isUnder, az as componentMotion, aA as GitHubClient, aB as effectiveTier, aC as parseRequestIssue, aD as requestStatus, aE as listSuggestionsOnGitHub, aF as getSuggestionOnGitHub, aG as closingIssueNumbers, aH as requestIssueTitle, aI as pullState, aJ as summarizeCi, aK as summarizeApprovals } from "./repo-source-CcWmqNBZ.js";
|
|
4
|
+
import { aL as aL2, aM as aM2, aN as aN2, aO as aO2, aP as aP2, aQ as aQ2, aR as aR2, aS as aS2, aT as aT2, aU as aU2, aV as aV2, aW as aW2, aX as aX2, aY as aY2, aZ as aZ2, a_ as a_2, a$ as a$2, b0 as b02, b1 as b12, b2 as b22, b3 as b32, b4 as b42, b5 as b52, b6 as b62, b7 as b72, b8 as b82, b9 as b92, ba as ba2, bb as bb2, bc as bc2, bd as bd2, be as be2, bf as bf2, bg as bg2, bh as bh2, bi as bi2, bj as bj2, bk as bk2, bl as bl2, bm as bm2, bn as bn2, bo as bo2, bp as bp2, bq as bq2, br as br2, bs as bs2, bt as bt2, bu as bu2, bv as bv2, bw as bw2, bx as bx2, by as by2, bz as bz2, bA as bA2, bB as bB2, bC as bC2, bD as bD2, bE as bE2, bF as bF2, bG as bG2, bH as bH2, bI as bI2, bJ as bJ2, bK as bK2, bL as bL2, bM as bM2, bN as bN2, bO as bO2, bP as bP2, bQ as bQ2, bR as bR2, bS as bS2, bT as bT2, bU as bU2, bV as bV2, bW as bW2, bX as bX2, bY as bY2, bZ as bZ2, b_ as b_2, b$ as b$2, c0 as c02, c1 as c12, c2 as c22, c3 as c32, c4 as c42, c5 as c52, c6 as c62, c7 as c72, c8 as c82, c9 as c92, ca as ca2, cb as cb2, cc as cc2, cd as cd2, ce as ce2, cf as cf2, cg as cg2, ch as ch2, ci as ci2, cj as cj2, ck as ck2, cl as cl2, cm as cm2, cn as cn2, co as co2, cp as cp2, cq as cq2, cr as cr2, cs as cs2, ct as ct2, cu as cu2, cv as cv2, cw as cw2, cx as cx2, cy as cy2, cz as cz2, cA as cA2, cB as cB2, cC as cC2, cD as cD2, cE as cE2, cF as cF2, cG, cH, cI, cJ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, cY, cZ, c_, c$, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, da, db, dc, dd, de, df, dg, dh, di, dj, dk, dl, dm, dn, dp, dq, dr, ds, dt, du, dv, dw, dx, dy, dz, dA, dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dL, dM, dN, dO, dP, dQ, dR, dS, dT, dU, dV, dW, dX, dY, dZ, d_, d$, e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, ea, eb, ec, ed, ee, ef, eg, eh, ei, ej, ek, el, em, en, eo, ep, eq, er, es, et, eu, ev, ew, ex, ey, ez, eA, eB, eC, eD, eE, eF, eG } from "./repo-source-CcWmqNBZ.js";
|
|
5
5
|
const issueKey$1 = (i) => `${i.code}|${i.path ?? ""}|${i.mode ?? ""}|${i.code === "file-problem" ? i.message : ""}`;
|
|
6
6
|
const modeName = (mode) => mode === SINGLE_MODE ? "all modes" : modeDisplayName(mode);
|
|
7
7
|
const isPalette = (t2) => t2.tier === "brand" && t2.path.startsWith("palette.");
|
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, dx as prNumberFromSubject, dW as specHash, et as validateComponentSpec, X as hashSpec, cA as iconComponentName, T as variantKeyOf, en as tokenCssVar, aN as COMPONENT_SPECS_VERSION, Z as COLOR_FIELDS, e2 as suggestionAppliedComment, a9 as gitBlobSha, dv as planSuggestionApply, ax as normalizeRepoPath, dT as sharedTokenPrefix, eq as tokenVariablePath, eD as withSrgbColors, dZ as storybookIframeUrl, db as parseBoxShadow } from "../repo-source-
|
|
6
|
-
import { b3, S, cg, cY, W, df, V } from "../repo-source-
|
|
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, dx as prNumberFromSubject, dW as specHash, et as validateComponentSpec, X as hashSpec, cA as iconComponentName, T as variantKeyOf, en as tokenCssVar, aN as COMPONENT_SPECS_VERSION, Z as COLOR_FIELDS, e2 as suggestionAppliedComment, a9 as gitBlobSha, dv as planSuggestionApply, ax as normalizeRepoPath, dT as sharedTokenPrefix, eq as tokenVariablePath, eD as withSrgbColors, dZ as storybookIframeUrl, db as parseBoxShadow } from "../repo-source-CcWmqNBZ.js";
|
|
6
|
+
import { b3, S, cg, cY, W, df, V } from "../repo-source-CcWmqNBZ.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) => {
|
|
@@ -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
|