@iksnerd/blazon 0.3.1 → 0.3.3
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 +3 -1
- package/dist/chunks/{site-builder-CH6OcFSE.js → site-builder-DlaZeZHi.js} +2481 -2396
- package/dist/cli/index.js +3 -3
- package/dist/core/brand/export.d.ts +3 -1
- package/dist/core/brand/export.d.ts.map +1 -1
- package/dist/core/brand/schema.d.ts +21 -0
- package/dist/core/brand/schema.d.ts.map +1 -1
- package/dist/core/checker/catalogue.d.ts +8 -0
- package/dist/core/checker/catalogue.d.ts.map +1 -1
- package/dist/core/fonts.d.ts +10 -1
- package/dist/core/fonts.d.ts.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/inputs.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/data.d.ts +10 -0
- package/dist/types/data.d.ts.map +1 -1
- package/dist/ui/assets/index-Biy1hkeq.css +2 -0
- package/dist/ui/assets/{index-CLKH0m9J.js → index-dkJG6W9p.js} +10 -3
- package/dist/ui/index.html +2 -2
- package/mcp/dist/index.js +8 -5
- package/package.json +5 -2
- package/plugins/blazon.copy/README.md +14 -12
- package/plugins/blazon.favicons/README.md +3 -0
- package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +1 -1
- package/plugins/blazon.platform-tokens/README.md +58 -2
- package/plugins/blazon.platform-tokens/bin/blazon-blazon.platform-tokens./360/237/224/214 +57 -12
- package/plugins/blazon.press-kit/README.md +54 -3
- package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +247 -49
- package/plugins/blazon.print-book/README.md +14 -3
- package/plugins/blazon.tailwind/README.md +1 -1
- package/plugins/shipped.lock +7 -7
- package/dist/ui/assets/index-DluSqfla.css +0 -2
package/dist/cli/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dn as s, Dt as c, E as l, Ft as u, G as d, It as f, Jt as p, K as m, M as h, Mt as g, Nt as _, O as v, On as y, Pt as b, Qt as x, R as S, Rt as ee, S as C, T as w, Tt as T, Ut as te, Vt as ne, W as re, Xt as ie, Zt as ae, _ as oe, _n as se, _t as ce, a as le, an as ue, b as de, bt as fe, c as pe, cn as me, d as he, dn as E, en as ge, f as _e, fn as ve, g as ye, gt as be, h as xe, hn as Se, ht as Ce, i as we, j as Te, jt as Ee, k as De, l as Oe, ln as ke, m as Ae, mn as je, mt as D, on as Me, p as Ne, pn as Pe, q as Fe, s as Ie, sn as Le, t as Re, tn as ze, u as Be, un as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, y as Je, yt as Ye, z as Xe, zt as Ze } from "../chunks/site-builder-
|
|
1
|
+
import { $t as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dn as s, Dt as c, E as l, Ft as u, G as d, It as f, Jt as p, K as m, M as h, Mt as g, Nt as _, O as v, On as y, Pt as b, Qt as x, R as S, Rt as ee, S as C, T as w, Tt as T, Ut as te, Vt as ne, W as re, Xt as ie, Zt as ae, _ as oe, _n as se, _t as ce, a as le, an as ue, b as de, bt as fe, c as pe, cn as me, d as he, dn as E, en as ge, f as _e, fn as ve, g as ye, gt as be, h as xe, hn as Se, ht as Ce, i as we, j as Te, jt as Ee, k as De, l as Oe, ln as ke, m as Ae, mn as je, mt as D, on as Me, p as Ne, pn as Pe, q as Fe, s as Ie, sn as Le, t as Re, tn as ze, u as Be, un as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, y as Je, yt as Ye, z as Xe, zt as Ze } from "../chunks/site-builder-DlaZeZHi.js";
|
|
2
2
|
import O from "node:path";
|
|
3
3
|
import k from "node:fs";
|
|
4
4
|
import { spawn as Qe } from "node:child_process";
|
|
@@ -2462,7 +2462,7 @@ var sa = 4e4, X = {
|
|
|
2462
2462
|
{
|
|
2463
2463
|
name: "check_brand",
|
|
2464
2464
|
title: "Check the brand",
|
|
2465
|
-
description: "Runs blazon check on the brand, without plugins, and returns its findings and counts. Plugins in blazon.json do not run, so the counts can be lower than `blazon check` prints; `pluginsSkipped` and `warnings`
|
|
2465
|
+
description: "Runs blazon check on the brand, without plugins, and returns its findings and counts. Plugins in blazon.json do not run, so the counts can be lower than `blazon check` prints, but only for a plugin with a check role; a build-only plugin adds no finding. `pluginsSkipped` and `warnings` list every configured plugin, since a role is known only by starting the plugin. `passed` is false when the brand has errors, and values read from such a brand can be wrong. Returns at most `limit` findings (default 50, at most 500); `counts` stay whole. Not for reading a value: use get_token.",
|
|
2466
2466
|
annotations: X,
|
|
2467
2467
|
inputSchema: Z({
|
|
2468
2468
|
severity: {
|
|
@@ -2545,7 +2545,7 @@ var sa = 4e4, X = {
|
|
|
2545
2545
|
pluginsSkipped: {
|
|
2546
2546
|
type: "array",
|
|
2547
2547
|
items: { type: "string" },
|
|
2548
|
-
description: "
|
|
2548
|
+
description: "Every plugin blazon.json lists, which did not run because the server never starts a plugin. Only one with a check role can make `blazon check` report more findings than `counts`; the server cannot tell which without starting it. Absent when the config lists none"
|
|
2549
2549
|
}
|
|
2550
2550
|
}, [
|
|
2551
2551
|
"passed",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssetCategoryInfo, AssetMeta, Finding, BlazonConfig, BlazonData, BlazonExtension, IconSet, SectionId, SectionInfo, ThemeRole, Vocabulary } from '../../types/index.js';
|
|
1
|
+
import { AssetCategoryInfo, AssetMeta, Finding, FontLicense, BlazonConfig, BlazonData, BlazonExtension, IconSet, SectionId, SectionInfo, ThemeRole, Vocabulary } from '../../types/index.js';
|
|
2
2
|
import { BRAND_SCHEMA_FILE } from './schema.js';
|
|
3
3
|
import { BlazonIdentity } from '../blazon-pin.js';
|
|
4
4
|
export declare const BRAND_FORMAT = "blazon-brand";
|
|
@@ -45,6 +45,8 @@ export interface BrandExport {
|
|
|
45
45
|
roles: Partial<Record<ThemeRole, string>>;
|
|
46
46
|
tokens: Partial<Record<ThemeRole, string>>;
|
|
47
47
|
fonts: string[];
|
|
48
|
+
/** The license file found beside the font files the config embeds, one per family, read by blazon because a plugin is never given the project folder. `licenseFile` is a project path, not shipped beside brand.json; absent when no family has one */
|
|
49
|
+
fontLicenses?: FontLicense[];
|
|
48
50
|
};
|
|
49
51
|
/** 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 */
|
|
50
52
|
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,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,EAAE,MAAM,CAAC;IACjB,W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declare const BRAND_SCHEMA: {
|
|
|
66
66
|
type: string;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
fontLicenses: {
|
|
70
|
+
type: string;
|
|
71
|
+
items: {
|
|
72
|
+
type: string;
|
|
73
|
+
properties: {
|
|
74
|
+
family: {
|
|
75
|
+
type: string;
|
|
76
|
+
minLength: number;
|
|
77
|
+
};
|
|
78
|
+
licenseFile: {
|
|
79
|
+
type: string;
|
|
80
|
+
minLength: number;
|
|
81
|
+
};
|
|
82
|
+
licenseText: {
|
|
83
|
+
type: string;
|
|
84
|
+
maxLength: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
required: string[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
69
90
|
};
|
|
70
91
|
required: string[];
|
|
71
92
|
};
|
|
@@ -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"}
|
|
@@ -233,6 +233,14 @@ export declare const CHECKS: {
|
|
|
233
233
|
readonly rfc: "1#4";
|
|
234
234
|
readonly manual: "03-checks";
|
|
235
235
|
};
|
|
236
|
+
readonly 'font-license-invalid': {
|
|
237
|
+
readonly severity: "warning";
|
|
238
|
+
readonly summary: "A license file beside a font file was not read.";
|
|
239
|
+
readonly fix: "Keep the license file (OFL.txt, LICENSE, LICENCE or COPYING) under 64 KiB, as UTF-8 text, inside the project folder, or state the license on the font token with font.license.";
|
|
240
|
+
readonly appliesTo: readonly ["config"];
|
|
241
|
+
readonly rfc: "1#4";
|
|
242
|
+
readonly manual: "03-checks";
|
|
243
|
+
};
|
|
236
244
|
readonly 'font-license-unknown': {
|
|
237
245
|
readonly severity: "info";
|
|
238
246
|
readonly summary: "A font license is not a known SPDX id.";
|
|
@@ -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,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAiBpF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,kRAuBX,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwkBuB,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,uEAAuE;AACvE,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAYvE"}
|
package/dist/core/fonts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Finding, BlazonConfig, FontEntry, LocalFont, ParsedTokens } from '../types/index.js';
|
|
1
|
+
import { Finding, BlazonConfig, FontEntry, FontLicense, LocalFont, ParsedTokens } from '../types/index.js';
|
|
2
2
|
export declare const FONT_EXTENSIONS: string[];
|
|
3
3
|
/** The CSS format name of a font file, from its extension. Undefined for a file blazon does not embed. */
|
|
4
4
|
export declare const fontFormat: (file: string) => string | undefined;
|
|
@@ -8,6 +8,13 @@ export declare const isLocalFont: (entry: FontEntry) => entry is LocalFont;
|
|
|
8
8
|
* A family is a name, so this refuses nothing real.
|
|
9
9
|
*/
|
|
10
10
|
export declare const isFamilyName: (value: unknown) => value is string;
|
|
11
|
+
/** The most of a license file that is read: the OFL is about 4 KiB, the Apache License 2.0 about 11 KiB */
|
|
12
|
+
export declare const LICENSE_MAX_BYTES: number;
|
|
13
|
+
/**
|
|
14
|
+
* The license file in `dir` (the folder of a font file): the first of OFL, LICENSE, LICENCE and COPYING by name, and among equals the lowest
|
|
15
|
+
* name in code point order. Only that folder is looked at, never a parent, and only a regular file counts.
|
|
16
|
+
*/
|
|
17
|
+
export declare function licenseFileIn(dir: string): string | undefined;
|
|
11
18
|
export interface LoadedFonts {
|
|
12
19
|
/** Stylesheet URLs for the brand book, in the order the config lists them: a local font is a `data:` stylesheet among the URLs */
|
|
13
20
|
stylesheets: string[];
|
|
@@ -17,6 +24,8 @@ export interface LoadedFonts {
|
|
|
17
24
|
declared: boolean;
|
|
18
25
|
/** True when a URL names no family blazon can read (a self-hosted stylesheet), so what it loads is not known */
|
|
19
26
|
opaque: boolean;
|
|
27
|
+
/** The license file beside a local font's file, once per family: the first font of a family that has one gives it */
|
|
28
|
+
licenses: FontLicense[];
|
|
20
29
|
problems: Finding[];
|
|
21
30
|
}
|
|
22
31
|
/**
|
package/dist/core/fonts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/core/fonts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUhH,eAAO,MAAM,eAAe,UAA0B,CAAC;AAEvD,0GAA0G;AAC1G,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAAM,GAAG,SAAiE,CAAC;AAErH,eAAO,MAAM,WAAW,GAAI,OAAO,SAA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E,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,CAgJ7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/core/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/core/inputs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAc/D,MAAM,WAAW,KAAK;IACpB,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,6FAA6F;IAC7F,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oGAAoG;IACpG,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,EAAE,CA+BxE;AAED,gEAAgE;AAChE,eAAO,MAAM,UAAU,GAAI,QAAQ,YAAY,EAAE,KAAK,MAAM,KAAG,MAAM,EAGtC,CAAC;AAEhC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAK3E"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, B as t, Cn as n, D as r, Dn as i, En as a, Et as o, F as s, G as c, Gt as l, H as u, Ht as d, I as f, J as p, K as m, Kt as h, L as g, Lt as _, N as v, O as y, On as b, Ot as x, P as S, Q as C, Sn as w, St as T, Tn as E, U as D, Ut as O, V as k, W as A, Wt as j, X as M, Xt as N, Y as P, Yt as F, Z as I, Zt as L, at as R, bn as z, ct as B, dt as V, et as H, ft as U, gn as W, ht as G, i as K, in as q, it as J, j as Y, k as X, kt as Z, lt as Q, mt as $, n as ee, nn as te, nt as ne, o as re, ot as ie, pn as ae, pt as oe, qt as se, r as ce, rn as le, rt as ue, st as de, t as fe, tt as pe, ut as me, vn as he, wn as ge, xn as _e, xt as ve, yn as ye } from "./chunks/site-builder-
|
|
1
|
+
import { $ as e, B as t, Cn as n, D as r, Dn as i, En as a, Et as o, F as s, G as c, Gt as l, H as u, Ht as d, I as f, J as p, K as m, Kt as h, L as g, Lt as _, N as v, O as y, On as b, Ot as x, P as S, Q as C, Sn as w, St as T, Tn as E, U as D, Ut as O, V as k, W as A, Wt as j, X as M, Xt as N, Y as P, Yt as F, Z as I, Zt as L, at as R, bn as z, ct as B, dt as V, et as H, ft as U, gn as W, ht as G, i as K, in as q, it as J, j as Y, k as X, kt as Z, lt as Q, mt as $, n as ee, nn as te, nt as ne, o as re, ot as ie, pn as ae, pt as oe, qt as se, r as ce, rn as le, rt as ue, st as de, t as fe, tt as pe, ut as me, vn as he, wn as ge, xn as _e, xt as ve, yn as ye } from "./chunks/site-builder-DlaZeZHi.js";
|
|
2
2
|
// src/plugins/index.ts
|
|
3
3
|
var be = /* @__PURE__ */ b({
|
|
4
4
|
BASE_ENV: () => p,
|
package/dist/types/data.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ import { Finding } from './findings.js';
|
|
|
4
4
|
import { LogoSet, BrandTheme, ThemeRole } from './theme.js';
|
|
5
5
|
import { ParsedTokens } from './parsed.js';
|
|
6
6
|
import { EmailSignatureConfig } from './config.js';
|
|
7
|
+
/** The license file in the folder of a font file the config lists, read by blazon: a plugin is never given the project folder, so brand.json carries the text */
|
|
8
|
+
export interface FontLicense {
|
|
9
|
+
family: string;
|
|
10
|
+
/** From the project root, with `/` separators */
|
|
11
|
+
licenseFile: string;
|
|
12
|
+
/** The file's text: UTF-8, at most 64 KiB, line breaks as `\n` */
|
|
13
|
+
licenseText: string;
|
|
14
|
+
}
|
|
7
15
|
export interface BlazonData {
|
|
8
16
|
title: string;
|
|
9
17
|
description?: string;
|
|
@@ -17,6 +25,8 @@ export interface BlazonData {
|
|
|
17
25
|
themeTokens?: Partial<Record<ThemeRole, string>>;
|
|
18
26
|
/** Font stylesheet URLs the brand book loads */
|
|
19
27
|
fonts: string[];
|
|
28
|
+
/** The license text found beside the font files of the config, one per family (absent when none was found): see `readFontLicense` */
|
|
29
|
+
fontLicenses?: FontLicense[];
|
|
20
30
|
/** Logo variants as data URIs: onLight for light backgrounds, onDark for dark ones */
|
|
21
31
|
logo?: LogoSet;
|
|
22
32
|
docs: DocItem[];
|
package/dist/types/data.d.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