@iksnerd/blazon 0.1.0 → 0.2.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/README.md +14 -19
- package/dist/chunks/{site-builder-vpzUWoiA.js → site-builder-BtGOvjBC.js} +1836 -2111
- package/dist/cli/commands/tokens.d.ts +4 -0
- package/dist/cli/commands/tokens.d.ts.map +1 -1
- package/dist/cli/handlers/brand.d.ts +1 -1
- package/dist/cli/handlers/index.d.ts +2 -2
- package/dist/cli/index.js +915 -941
- package/dist/core/brand/export.d.ts +2 -9
- package/dist/core/brand/export.d.ts.map +1 -1
- package/dist/core/brand/schema.d.ts +0 -58
- package/dist/core/brand/schema.d.ts.map +1 -1
- package/dist/core/brand-theme.d.ts +0 -2
- package/dist/core/brand-theme.d.ts.map +1 -1
- package/dist/core/checker/catalogue.d.ts +18 -2
- package/dist/core/checker/catalogue.d.ts.map +1 -1
- package/dist/core/checker/contrast.d.ts +1 -1
- package/dist/core/checker/variables.d.ts +2 -2
- package/dist/core/checker/variables.d.ts.map +1 -1
- package/dist/core/config/removed-keys.d.ts +6 -0
- package/dist/core/config/removed-keys.d.ts.map +1 -0
- package/dist/core/config/validate.d.ts +1 -1
- package/dist/core/config/validate.d.ts.map +1 -1
- package/dist/core/docs/directives.d.ts +9 -0
- package/dist/core/docs/directives.d.ts.map +1 -1
- package/dist/core/docs/parser.d.ts.map +1 -1
- package/dist/core/emit.d.ts +1 -3
- package/dist/core/emit.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/operations/list.d.ts.map +1 -1
- package/dist/core/plugin-name.d.ts +1 -1
- package/dist/core/read/token.d.ts +1 -6
- package/dist/core/read/token.d.ts.map +1 -1
- package/dist/core/tokens/walk.d.ts.map +1 -1
- package/dist/index.js +33 -33
- package/dist/plugins/roles/integrate.d.ts +5 -2
- package/dist/plugins/roles/integrate.d.ts.map +1 -1
- package/dist/plugins/roles/roles.d.ts +9 -2
- package/dist/plugins/roles/roles.d.ts.map +1 -1
- package/dist/plugins/wire/profile.d.ts +5 -0
- package/dist/plugins/wire/profile.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -3
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/theme.d.ts +0 -3
- package/dist/types/theme.d.ts.map +1 -1
- package/dist/ui/assets/{index-BdbihVvH.js → index-CLKH0m9J.js} +45 -47
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/plugins/blazon.brand-deck/bin/blazon-blazon.brand-deck./360/237/224/214 +24 -2
- package/plugins/blazon.copy/bin/blazon-blazon.copy./360/237/224/214 +25 -3
- package/plugins/blazon.favicons/bin/blazon-blazon.favicons./360/237/224/214 +26 -3
- package/plugins/blazon.logo-geometry/bin/blazon-blazon.logo-geometry./360/237/224/214 +37 -8
- package/plugins/blazon.logo-kit/bin/blazon-blazon.logo-kit./360/237/224/214 +37 -8
- package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +37 -8
- package/plugins/blazon.platform-tokens/bin/blazon-blazon.platform-tokens./360/237/224/214 +37 -9
- package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +37 -8
- package/plugins/blazon.print-book/README.md +3 -1
- package/plugins/blazon.print-book/bin/blazon-blazon.print-book./360/237/224/214 +43 -8
- package/plugins/blazon.shadcn/README.md +27 -0
- package/plugins/blazon.shadcn/bin/blazon-blazon.shadcn./360/237/224/214 +8273 -0
- package/plugins/blazon.shadcn/package.json +3 -0
- package/plugins/blazon.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +37 -8
- package/plugins/blazon.tailwind/README.md +23 -0
- package/plugins/blazon.tailwind/bin/blazon-blazon.tailwind./360/237/224/214 +420 -0
- package/plugins/blazon.tailwind/package.json +3 -0
- package/plugins/shipped.lock +24 -10
- package/template/AGENTS.md +1 -1
- package/template/blazon.json +0 -10
- package/template/docs/01-principles.md +1 -1
- package/template/docs/12-web.md +2 -2
- package/dist/core/tokens/formatters/tailwind.d.ts +0 -37
- package/dist/core/tokens/formatters/tailwind.d.ts.map +0 -1
- package/dist/core/tokens/shadcn.d.ts +0 -43
- package/dist/core/tokens/shadcn.d.ts.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { AssetCategoryInfo, AssetMeta, Finding, BlazonConfig, BlazonData, BlazonExtension, IconSet, SectionId, SectionInfo, ThemeRole, Vocabulary } from '../../types/index.js';
|
|
2
|
-
import { ShadcnMapping } from '../tokens/shadcn.js';
|
|
3
2
|
import { BRAND_SCHEMA_FILE } from './schema.js';
|
|
4
3
|
import { BlazonIdentity } from '../blazon-pin.js';
|
|
5
4
|
export declare const BRAND_FORMAT = "blazon-brand";
|
|
6
|
-
/** Changes only when a field is removed or changes meaning. Adding a field does not change it. */
|
|
7
|
-
export declare const BRAND_VERSION =
|
|
5
|
+
/** Changes only when a field is removed or changes meaning. Adding a field does not change it. 2: a part of `theme` that version 1 held, a UI library's variable mapping, was removed (a plugin derives it). */
|
|
6
|
+
export declare const BRAND_VERSION = 2;
|
|
8
7
|
export interface BrandToken {
|
|
9
8
|
path: string;
|
|
10
9
|
type?: string;
|
|
@@ -46,12 +45,6 @@ export interface BrandExport {
|
|
|
46
45
|
roles: Partial<Record<ThemeRole, string>>;
|
|
47
46
|
tokens: Partial<Record<ThemeRole, string>>;
|
|
48
47
|
fonts: string[];
|
|
49
|
-
/**
|
|
50
|
-
* The shadcn/ui variables (names without the leading dashes): for each one blazon can supply, the token it comes from and its value in the
|
|
51
|
-
* default context; `unsupplied` lists the rest; `pairs` (only when the brand declares contrast `pairs`) says which shadcn text-on-surface
|
|
52
|
-
* pairs a rule covers. Blazon writes no shadcn file: the reader writes the CSS
|
|
53
|
-
*/
|
|
54
|
-
shadcn: ShadcnMapping;
|
|
55
48
|
};
|
|
56
49
|
/** A path beside brand.json, or the file embedded as a data URI when it is not an asset. `onLightInk` and `onDarkInk`: the color a logo's sidecar declares for it, when it does; without one a reader judges the file as black on light or white on dark */
|
|
57
50
|
logo: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/core/brand/export.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/core/brand/export.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKhD,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvE,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,gNAAgN;AAChN,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,+CAA+C;IAC/C,aAAa,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,OAAO,CAAC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AM,CAAC;QAChB,8BAA8B;QAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;KAClB,EAAE,CAAC;IACJ,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,QAAQ,EAAE,CAAC,OAAO,GAAG;QAA6D,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACnG,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AA4CD,oHAAoH;AACpH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAc,GAAG,IAAuB,GAAG,WAAW,CAqDrJ;AAED,kEAAkE;AAClE,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,MAAM,CAE7H"}
|
|
@@ -66,64 +66,6 @@ export declare const BRAND_SCHEMA: {
|
|
|
66
66
|
type: string;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
shadcn: {
|
|
70
|
-
type: string;
|
|
71
|
-
description: string;
|
|
72
|
-
properties: {
|
|
73
|
-
variables: {
|
|
74
|
-
type: string;
|
|
75
|
-
additionalProperties: {
|
|
76
|
-
type: string;
|
|
77
|
-
properties: {
|
|
78
|
-
token: {
|
|
79
|
-
type: string;
|
|
80
|
-
};
|
|
81
|
-
value: {
|
|
82
|
-
type: string;
|
|
83
|
-
};
|
|
84
|
-
from: {
|
|
85
|
-
enum: string[];
|
|
86
|
-
};
|
|
87
|
-
role: {
|
|
88
|
-
type: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
required: string[];
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
unsupplied: {
|
|
95
|
-
type: string;
|
|
96
|
-
items: {
|
|
97
|
-
type: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
pairs: {
|
|
101
|
-
type: string;
|
|
102
|
-
items: {
|
|
103
|
-
type: string;
|
|
104
|
-
properties: {
|
|
105
|
-
background: {
|
|
106
|
-
type: string;
|
|
107
|
-
};
|
|
108
|
-
foreground: {
|
|
109
|
-
type: string;
|
|
110
|
-
};
|
|
111
|
-
backgroundToken: {
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
foregroundToken: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
declared: {
|
|
118
|
-
type: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
required: string[];
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
required: string[];
|
|
126
|
-
};
|
|
127
69
|
};
|
|
128
70
|
required: string[];
|
|
129
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/core/brand/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/core/brand/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAS,CAAC;AAEnC,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,kEAAkE;AAClE,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
|
@@ -3,8 +3,6 @@ import { BrandTheme, Finding, BlazonConfig, ParsedTokens, ThemeRole } from '../t
|
|
|
3
3
|
* Looks up each `config.theme` token path; a path with no token is reported, not thrown. With no
|
|
4
4
|
* `theme` block at all, roles come from conventional token names and an `info` finding says which.
|
|
5
5
|
*/
|
|
6
|
-
/** The `shadcn` entries whose token does not exist, as the same finding a missing theme token gets. */
|
|
7
|
-
export declare function shadcnProblems(config: BlazonConfig, tokens: ParsedTokens): Finding[];
|
|
8
6
|
export declare function resolveTheme(config: BlazonConfig, tokens: ParsedTokens): ResolvedTheme;
|
|
9
7
|
/** Each role's value, the token it came from (so a context that changes the token can change the role), and what went wrong. */
|
|
10
8
|
interface ResolvedTheme {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-theme.d.ts","sourceRoot":"","sources":["../../src/core/brand-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"brand-theme.d.ts","sourceRoot":"","sources":["../../src/core/brand-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIpG;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,GAAG,aAAa,CAetF;AAED,gIAAgI;AAChI,UAAU,aAAa;IACrB,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB"}
|
|
@@ -193,6 +193,14 @@ export declare const CHECKS: {
|
|
|
193
193
|
readonly rfc: "1#4";
|
|
194
194
|
readonly manual: "03-checks";
|
|
195
195
|
};
|
|
196
|
+
readonly 'directive-deprecated': {
|
|
197
|
+
readonly severity: "warning";
|
|
198
|
+
readonly summary: "A page has a `folio:` directive comment, the old name, which blazon ignores.";
|
|
199
|
+
readonly fix: "Write `<!-- blazon:NAME -->` instead of `<!-- folio:NAME -->`: `folio:` became `blazon:`.";
|
|
200
|
+
readonly appliesTo: readonly ["page"];
|
|
201
|
+
readonly rfc: "1#4";
|
|
202
|
+
readonly manual: "03-checks";
|
|
203
|
+
};
|
|
196
204
|
readonly 'directive-invalid': {
|
|
197
205
|
readonly severity: "error";
|
|
198
206
|
readonly summary: "A page directive has wrong arguments or names something that does not exist.";
|
|
@@ -491,12 +499,20 @@ export declare const CHECKS: {
|
|
|
491
499
|
};
|
|
492
500
|
readonly 'theme-unresolved': {
|
|
493
501
|
readonly severity: "error";
|
|
494
|
-
readonly summary: "A theme role
|
|
495
|
-
readonly fix: "Point that theme role
|
|
502
|
+
readonly summary: "A theme role points at a token that does not exist.";
|
|
503
|
+
readonly fix: "Point that theme role in blazon.json at a token that exists.";
|
|
496
504
|
readonly appliesTo: readonly ["config"];
|
|
497
505
|
readonly rfc: "1#4";
|
|
498
506
|
readonly manual: "03-checks";
|
|
499
507
|
};
|
|
508
|
+
readonly 'token-extension-deprecated': {
|
|
509
|
+
readonly severity: "warning";
|
|
510
|
+
readonly summary: "A token or group has a `dev.folio` extension key, the old name, which blazon ignores.";
|
|
511
|
+
readonly fix: "Rename the `dev.folio` key to `dev.blazon`.";
|
|
512
|
+
readonly appliesTo: readonly ["token", "group"];
|
|
513
|
+
readonly rfc: "1#4";
|
|
514
|
+
readonly manual: "03-checks";
|
|
515
|
+
};
|
|
500
516
|
readonly 'token-file-invalid': {
|
|
501
517
|
readonly severity: "error";
|
|
502
518
|
readonly summary: "A token file is not valid JSON or its top level is not an object.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../../src/core/checker/catalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,sBAAsB,CAAC;AAE9D,2CAA2C;AAC3C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAiBpF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,kRAuBX,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../../src/core/checker/catalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,sBAAsB,CAAC;AAE9D,2CAA2C;AAC3C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,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AE,aAAa,GAAG,OAAO,CAYvE"}
|
|
@@ -20,7 +20,7 @@ export declare function expand(ref: string, items: TokenItem[]): TokenItem[];
|
|
|
20
20
|
export declare function aliasChain(items: TokenItem[], path: string): string[];
|
|
21
21
|
/**
|
|
22
22
|
* The listed pairs that name this foreground on this background. A pair written on a token that the foreground or the
|
|
23
|
-
* background aliases counts, because the alias is the same color: `blazon check`, `blazon can` and the
|
|
23
|
+
* background aliases counts, because the alias is the same color: `blazon check`, `blazon can` and the plugins that note a pair all use this one rule.
|
|
24
24
|
*/
|
|
25
25
|
export declare function matchingPairs<T extends {
|
|
26
26
|
fg: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Finding, ParsedTokens } from '../../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Two tokens whose names reduce to one CSS custom property (`foo-bar` and `foo.bar`) overwrite each other, and the
|
|
4
|
-
* stylesheet keeps the last. Checks theme.css (the tokens and the parts of composites)
|
|
5
|
-
*
|
|
4
|
+
* stylesheet keeps the last. Checks theme.css (the tokens and the parts of composites) and each resolver context's block; the same name
|
|
5
|
+
* in two blocks is by design. typography.css writes no variables of its own. A file a plugin writes is that plugin's to check.
|
|
6
6
|
*/
|
|
7
7
|
export declare function variableFindings(tokens: Pick<ParsedTokens, 'items' | 'contexts'>): Finding[];
|
|
8
8
|
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/core/checker/variables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAa,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/core/checker/variables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAa,MAAM,sBAAsB,CAAC;AAyC7E;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG,OAAO,EAAE,CAM5F"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config keys blazon read once and does not now, each with where its job went. The one place the core names a plugin that fills a
|
|
3
|
+
* framework's job: the key is refused with this message, so a config that still has it fails instead of being ignored (RFC 0001 section 14).
|
|
4
|
+
*/
|
|
5
|
+
export declare const REMOVED_KEYS: Readonly<Record<string, string>>;
|
|
6
|
+
//# sourceMappingURL=removed-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removed-keys.d.ts","sourceRoot":"","sources":["../../../src/core/config/removed-keys.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGzD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Finding, BlazonConfig } from '../../types/index.js';
|
|
2
2
|
/** Every key of `BlazonConfig`. A test holds this list to the interface. */
|
|
3
|
-
export declare const CONFIG_KEYS: readonly ["title", "description", "tokensDir", "docsDir", "assetsDir", "outDir", "tokensOutDir", "cssPrefix", "cssSelector", "port", "logo", "theme", "
|
|
3
|
+
export declare const CONFIG_KEYS: readonly ["title", "description", "tokensDir", "docsDir", "assetsDir", "outDir", "tokensOutDir", "cssPrefix", "cssSelector", "port", "logo", "theme", "iconSets", "assets", "sections", "customSections", "vocabulary", "plugins", "fonts", "resolver", "contextSelectors", "emailSignature"];
|
|
4
4
|
export interface ResolvedConfig {
|
|
5
5
|
/** The config with every key that is wrong left out, so a default or nothing is used in its place */
|
|
6
6
|
config: BlazonConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/core/config/validate.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/core/config/validate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAU1I,4EAA4E;AAC5E,eAAO,MAAM,WAAW,+RAuB4B,CAAC;AA+QrD,MAAM,WAAW,cAAc;IAC7B,qGAAqG;IACrG,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAsC5E;AAED,+EAA+E;AAC/E,qBAAa,WAAY,SAAQ,KAAK;IAGlC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE;gBAD5B,IAAI,EAAE,MAAM,EACH,QAAQ,EAAE,OAAO,EAAE;CAK/B;AAED,8DAA8D;AAC9D,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAA6B,CAAC"}
|
|
@@ -128,6 +128,15 @@ export declare const withoutFences: (markdown: string) => string;
|
|
|
128
128
|
* the syntax as an example must not be taken to use it.
|
|
129
129
|
*/
|
|
130
130
|
export declare function directivesIn(markdown: string): PlacedDirective[];
|
|
131
|
+
export interface LegacyDirective {
|
|
132
|
+
/** The name after `folio:` */
|
|
133
|
+
name: string;
|
|
134
|
+
/** 1-based line in the Markdown */
|
|
135
|
+
line: number;
|
|
136
|
+
text: string;
|
|
137
|
+
}
|
|
138
|
+
/** Comments written `<!-- folio:name ... -->`, the name blazon had before: they are not read, so each is reported. Fences and inline code are skipped, and line numbers stay those of `markdown`. */
|
|
139
|
+
export declare function legacyDirectivesIn(markdown: string): LegacyDirective[];
|
|
131
140
|
export interface DirectiveContext {
|
|
132
141
|
tokens: Pick<ParsedTokens, 'items' | 'groupMeta'>;
|
|
133
142
|
assets: AssetCatalog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sGAAsG;IACtG,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAwID;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,EAAE,CAEhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/core/docs/parser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwB,KAAK,OAAO,EAAuB,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAO7H;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAO,EAAO,EAAE,aAAa,GAAE,SAAS,SAAS,EAAyB,EAAE,IAAI,GAAE,MAA8B,GAAG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/core/docs/parser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAwB,KAAK,OAAO,EAAuB,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAO7H;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAO,EAAO,EAAE,aAAa,GAAE,SAAS,SAAS,EAAyB,EAAE,IAAI,GAAE,MAA8B,GAAG,OAAO,EAAE,CAyHhL"}
|
package/dist/core/emit.d.ts
CHANGED
|
@@ -9,14 +9,12 @@ export declare function planTokenOutputs(data: BlazonData, config: BlazonConfig,
|
|
|
9
9
|
files: Map<string, string>;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Writes token output artifacts (theme.css, typography.css,
|
|
12
|
+
* Writes token output artifacts (theme.css, typography.css, tokens.ts, tokens.json and one tokens.<modifier>.<context>.json for each context)
|
|
13
13
|
*/
|
|
14
14
|
export declare function emitTokenOutputs(data: BlazonData, config: BlazonConfig, cwd?: string, options?: WriteOptions): Promise<{
|
|
15
15
|
cssPath: string;
|
|
16
16
|
tsPath: string;
|
|
17
17
|
jsonPath: string;
|
|
18
18
|
typographyPath?: string;
|
|
19
|
-
tailwindPath?: string;
|
|
20
|
-
tailwindResetPath?: string;
|
|
21
19
|
}>;
|
|
22
20
|
//# sourceMappingURL=emit.d.ts.map
|
package/dist/core/emit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit.d.ts","sourceRoot":"","sources":["../../src/core/emit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"emit.d.ts","sourceRoot":"","sources":["../../src/core/emit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMlE,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CA2BhK;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,YAAY,EACpB,GAAG,GAAE,MAAsB,EAC3B,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAmBzF"}
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,UAAU,EAAqC,MAAM,mBAAmB,CAAC;AAyC9G,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOlF;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,GAAE,MAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,UAAU,EAAqC,MAAM,mBAAmB,CAAC;AAyC9G,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOlF;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,GAAE,MAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CA+I7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;AAsC3E;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;AAsC3E;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EA+gB1C,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare function isPluginName(name: string): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Whether `id` is the name of a file `blazon build` writes in `tokensOutDir` (`planTokenOutputs`, `src/core/emit.ts`): `theme.css`,
|
|
5
|
-
* `tokens.ts`, `tokens.json`, `typography.css
|
|
5
|
+
* `tokens.ts`, `tokens.json`, `typography.css` and `tokens.<modifier>.<context>.json`. Each has the form of a
|
|
6
6
|
* plugin name, and an instance's id names a folder in the same place, which is emptied before its call: a folder there would replace the file.
|
|
7
7
|
*/
|
|
8
8
|
export declare function isTokenOutputName(id: string): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlazonData, TokenItem, TokenType } from '../../types/index.js';
|
|
2
2
|
import { TokenRules } from './rules.js';
|
|
3
|
-
/** The names a token has in the
|
|
3
|
+
/** The names a token has in the CSS files `blazon tokens` writes. */
|
|
4
4
|
export interface TokenNames {
|
|
5
5
|
theme: {
|
|
6
6
|
/** In theme.css, from the token's path */
|
|
@@ -8,11 +8,6 @@ export interface TokenNames {
|
|
|
8
8
|
/** A composite token also writes one variable for each part: `{ fontSize: '--type-h1-font-size' }` */
|
|
9
9
|
parts?: Record<string, string>;
|
|
10
10
|
};
|
|
11
|
-
/** In tailwind.css, from Tailwind's namespace. Null when the token maps to none (only colors, font families, radii and spacing do) */
|
|
12
|
-
tailwind: {
|
|
13
|
-
variable: string;
|
|
14
|
-
shadowedBy?: string;
|
|
15
|
-
} | null;
|
|
16
11
|
/** In typography.css, for a typography token */
|
|
17
12
|
typographyClass?: string;
|
|
18
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/core/read/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/core/read/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAI7E,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,qEAAqE;AACrE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE;QACL,0CAA0C;QAC1C,QAAQ,EAAE,MAAM,CAAC;QACjB,sGAAsG;QACtG,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;IACF,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,CAMxE;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,w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GAAG,MAAM,GAAG,SAAS,CAAC;IACzC,MAAM,EAAE,eAAe,CAAC;CACzB;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEpD;AA4BD,kGAAkG;AAClG,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CA6DpI"}
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, $t as t, A as n, B as r, Bt as i, Cn as a, Ct as o, E as s, Et as c, G as l, H as u, Ht as d, J as f, Jt as p, K as m, Kt as h, L as g, M as _, N as v, O as y, P as b, Pt as x, Q as S, R as C, Sn as w, T, Tn as E, Tt as D, U as O, Ut as k, V as A, Vt as j, Wt as M, X as N, Y as P, Z as F, _n as I, at as L, bn as R, ct as z, dt as B, en as V, et as H, ft as U, gn as W, hn as G, i as K, it as q, j as J, lt as Y, n as X, nt as Z, o as Q, ot as $, pn as ee, q as te, qt as ne, r as re, rt as ie, st as ae, t as oe, tn as se, tt as ce, un as le, ut as ue, vn as de, vt as fe, w as pe, wn as me, xn as he, yn as ge, yt as _e, z as ve, zt as ye } from "./chunks/site-builder-BtGOvjBC.js";
|
|
2
2
|
// src/plugins/index.ts
|
|
3
|
-
var
|
|
4
|
-
BASE_ENV: () =>
|
|
5
|
-
BLAZON_CORE_PROFILE: () =>
|
|
6
|
-
BLAZON_PROFILE: () =>
|
|
7
|
-
Breaker: () =>
|
|
3
|
+
var be = /* @__PURE__ */ E({
|
|
4
|
+
BASE_ENV: () => l,
|
|
5
|
+
BLAZON_CORE_PROFILE: () => pe,
|
|
6
|
+
BLAZON_PROFILE: () => T,
|
|
7
|
+
Breaker: () => _,
|
|
8
8
|
DEFAULT_THRESHOLD: () => 3,
|
|
9
9
|
DEFAULT_TIMEOUT: () => 5,
|
|
10
10
|
MANIFEST_TIMEOUT: () => 15,
|
|
11
|
-
MAX_BYTES: () =>
|
|
12
|
-
MAX_ENTRIES: () =>
|
|
13
|
-
ManifestError: () =>
|
|
14
|
-
Pin: () =>
|
|
15
|
-
PinMismatch: () =>
|
|
16
|
-
REDACTED: () =>
|
|
17
|
-
Refused: () =>
|
|
18
|
-
STDERR_KEEP: () =>
|
|
19
|
-
STDOUT_LIMIT: () =>
|
|
11
|
+
MAX_BYTES: () => g,
|
|
12
|
+
MAX_ENTRIES: () => C,
|
|
13
|
+
ManifestError: () => te,
|
|
14
|
+
Pin: () => ve,
|
|
15
|
+
PinMismatch: () => r,
|
|
16
|
+
REDACTED: () => H,
|
|
17
|
+
Refused: () => A,
|
|
18
|
+
STDERR_KEEP: () => ie,
|
|
19
|
+
STDOUT_LIMIT: () => q,
|
|
20
20
|
TIMEOUT_CAP: () => 60,
|
|
21
|
-
admit: () =>
|
|
22
|
-
blazonRequests: () =>
|
|
23
|
-
check: () =>
|
|
24
|
-
decodeManifest: () =>
|
|
25
|
-
encodings: () =>
|
|
26
|
-
environment: () =>
|
|
27
|
-
fileDigest: () =>
|
|
28
|
-
graphemeCount: () =>
|
|
29
|
-
isPluginName: () =>
|
|
30
|
-
manifestTimeout: () =>
|
|
31
|
-
message: () =>
|
|
32
|
-
profileTimeoutCap: () =>
|
|
33
|
-
requestFile: () =>
|
|
34
|
-
run: () =>
|
|
35
|
-
scrub: () =>
|
|
36
|
-
setPointer: () =>
|
|
37
|
-
treeDigest: () =>
|
|
21
|
+
admit: () => J,
|
|
22
|
+
blazonRequests: () => s,
|
|
23
|
+
check: () => y,
|
|
24
|
+
decodeManifest: () => f,
|
|
25
|
+
encodings: () => Z,
|
|
26
|
+
environment: () => m,
|
|
27
|
+
fileDigest: () => u,
|
|
28
|
+
graphemeCount: () => F,
|
|
29
|
+
isPluginName: () => le,
|
|
30
|
+
manifestTimeout: () => P,
|
|
31
|
+
message: () => S,
|
|
32
|
+
profileTimeoutCap: () => N,
|
|
33
|
+
requestFile: () => v,
|
|
34
|
+
run: () => b,
|
|
35
|
+
scrub: () => ce,
|
|
36
|
+
setPointer: () => n,
|
|
37
|
+
treeDigest: () => O,
|
|
38
38
|
truncateGraphemes: () => e
|
|
39
39
|
});
|
|
40
|
-
export {
|
|
40
|
+
export { G as ASSET_URL_BASE, he as BLAZON_EXTENSION_KEY, L as BRAND_FORMAT, Y as BRAND_SCHEMA, ue as BRAND_SCHEMA_FILE, $ as BRAND_VERSION, t as CONFIG_KEYS, V as ConfigError, ee as DEFAULT_CONFIG, d as DEFAULT_GRADIENT_ANGLE, W as INITIATIVE_POSITIONS, I as LOGO_CORNERS, w as PATTERN_KINDS, de as STANDARD_LOGO_LOCKUPS, ge as STANDARD_SECTION_IDS, R as STANDARD_SECTION_TITLES, a as STANDARD_USAGE_ROLES, me as TOKEN_TYPES, h as aliasTarget, ae as buildBrandExport, oe as buildSite, o as checkTokens, B as compileBlazonData, k as compositeParts, Q as createBlazonVitePlugin, U as emitTokenOutputs, z as formatBrandJson, D as formatCssTokens, fe as formatJsonTokens, _e as formatTsTokens, c as formatTypographyCss, M as generateCssVarName, p as loadConfig, ne as loadTokenTree, ye as parseDocs, be as plugins, se as resolveConfig, X as resolvePrebuiltViewerDir, i as resolveTokenTree, re as resolveViewer, x as scanAssets, K as startDevServer, j as toCssValue };
|
|
@@ -7,6 +7,9 @@ export declare function brandFor(data: BlazonData, config: BlazonConfig, cwd: st
|
|
|
7
7
|
* the core's findings left it, never another plugin's. Nothing is built when the project allows no plugin.
|
|
8
8
|
*/
|
|
9
9
|
export declare function applyCheckPlugins(data: BlazonData, config: BlazonConfig, cwd: string, run: PluginRun): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Run the `build` role: once the site is written (`siteDir`), or, for `blazon tokens`, with no site. `data` is the brand the site holds,
|
|
12
|
+
* plugin findings included.
|
|
13
|
+
*/
|
|
14
|
+
export declare function applyBuildPlugins(data: BlazonData, config: BlazonConfig, cwd: string, run: PluginRun, siteDir?: string): Promise<Finding[]>;
|
|
12
15
|
//# sourceMappingURL=integrate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrate.d.ts","sourceRoot":"","sources":["../../../src/plugins/roles/integrate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,iGAAiG;AACjG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1H;AAED
|
|
1
|
+
{"version":3,"file":"integrate.d.ts","sourceRoot":"","sources":["../../../src/plugins/roles/integrate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,iGAAiG;AACjG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1H;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAGjJ"}
|
|
@@ -38,8 +38,11 @@ export declare class PluginRun {
|
|
|
38
38
|
get active(): boolean;
|
|
39
39
|
/** The `check` role: every plugin that fills it judges the brand. `brand` is the content of brand.json. */
|
|
40
40
|
check(brand: unknown): Promise<Finding[]>;
|
|
41
|
-
/**
|
|
42
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The `build` role: every plugin that fills it makes something from the brand, in its own out_dir. `siteDir` is the site `blazon build`
|
|
43
|
+
* wrote; `blazon tokens` makes none, so it passes no folder and the request has no `site_dir`.
|
|
44
|
+
*/
|
|
45
|
+
build(brand: unknown, siteDir?: string): Promise<Finding[]>;
|
|
43
46
|
private each;
|
|
44
47
|
/**
|
|
45
48
|
* The plugins that may run: those in the config, in its order, then programs named on the command line. This is the one list
|
|
@@ -56,6 +59,10 @@ export declare class PluginRun {
|
|
|
56
59
|
private shipped;
|
|
57
60
|
private callFor;
|
|
58
61
|
private one;
|
|
62
|
+
/** The variables the manifest lists that are set here and that the operator keeps for itself are left out. */
|
|
63
|
+
private presentEnv;
|
|
64
|
+
/** One finding when the manifest lists a variable that is set here and not approved by the config; none otherwise. */
|
|
65
|
+
private unapproved;
|
|
59
66
|
/** What a call that ended means: the findings it answered with, or one finding about the plugin. */
|
|
60
67
|
private outcome;
|
|
61
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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|
stdoutLimit?: number;
|
|
32
32
|
breaker: boolean;
|
|
33
33
|
};
|
|
34
|
+
/** The version of the request each role sends (RFC 0005 section 8). The build request is 2: it may carry no `site_dir`, and brand.json is version 2. */
|
|
35
|
+
export declare const REQUEST_VERSIONS: {
|
|
36
|
+
readonly check: 1;
|
|
37
|
+
readonly build: 2;
|
|
38
|
+
};
|
|
34
39
|
/** A valid request for each role, as the check command sends it with a canary set. A plugin answers it with its findings. */
|
|
35
40
|
export declare function blazonRequests(): Record<string, string>;
|
|
36
41
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/plugins/wire/profile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/plugins/wire/profile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAM7C,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,eAsB5B,CAAC;AAEF,oKAAoK;AACpK,eAAO,MAAM,mBAAmB,EAAE,OAIjC,CAAC;AAEF,qLAAqL;AACrL,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAIvG;AAED,wJAAwJ;AACxJ,eAAO,MAAM,gBAAgB;;;CAAkC,CAAC;AAEhE,6HAA6H;AAC7H,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMvD"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetCategoryConfig, IconSetConfig } from './catalog.js';
|
|
2
2
|
import { SectionId } from './docs.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeRole } from './theme.js';
|
|
4
4
|
/** One use of a plugin the operator allows: its name, an optional instance id, and the options blazon passes it in every request. */
|
|
5
5
|
export interface PluginConfig {
|
|
6
6
|
name: string;
|
|
@@ -38,8 +38,6 @@ export interface BlazonConfig {
|
|
|
38
38
|
};
|
|
39
39
|
/** Brand book theme: viewer role → token path, e.g. { accent: 'interactive.primary' } */
|
|
40
40
|
theme?: Partial<Record<ThemeRole, string>>;
|
|
41
|
-
/** shadcn/ui variable (`primary`, `chart-1`, ...) → token path. Wins over what the theme roles give that variable; `brand.json` states the result */
|
|
42
|
-
shadcn?: Partial<Record<ShadcnVariable, string>>;
|
|
43
41
|
/** Icon packages to preview in the brand book, read from node_modules */
|
|
44
42
|
iconSets?: IconSetConfig[];
|
|
45
43
|
/** Settings for asset categories: label, order, description, an extra folder, rules */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":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AE,MAAM,EAAE,CAAC;CAClB;AAED,yHAAyH;AACzH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC7B;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC"}
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -13,7 +13,4 @@ export interface LogoSet {
|
|
|
13
13
|
onLightInk?: string;
|
|
14
14
|
onDarkInk?: string;
|
|
15
15
|
}
|
|
16
|
-
/** The semantic variables shadcn/ui components read (`--background`, `--chart-1`, ...), without the leading dashes. */
|
|
17
|
-
export declare const SHADCN_VARIABLES: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "radius", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
|
|
18
|
-
export type ShadcnVariable = (typeof SHADCN_VARIABLES)[number];
|
|
19
16
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,aAAa,GACb,aAAa,GACb,UAAU;AACZ,wEAAwE;GACtE,QAAQ,CAAC;AAEb,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kJAAkJ;IAClJ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,aAAa,GACb,aAAa,GACb,UAAU;AACZ,wEAAwE;GACtE,QAAQ,CAAC;AAEb,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kJAAkJ;IAClJ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|