@iksnerd/blazon 0.3.3 → 0.5.1
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/CHANGELOG.md +375 -0
- package/dist/chunks/{site-builder-DlaZeZHi.js → site-builder-C8g2sfUv.js} +3471 -3650
- package/dist/cli/commands/approvals.d.ts +1 -1
- package/dist/cli/commands/approvals.d.ts.map +1 -1
- package/dist/cli/commands/mcp-check.d.ts +7 -4
- package/dist/cli/commands/mcp-check.d.ts.map +1 -1
- package/dist/cli/errors.d.ts +3 -1
- package/dist/cli/errors.d.ts.map +1 -1
- package/dist/cli/folder-first.d.ts +7 -0
- package/dist/cli/folder-first.d.ts.map +1 -0
- package/dist/cli/handlers/can.d.ts +1 -1
- package/dist/cli/handlers/can.d.ts.map +1 -1
- package/dist/cli/handlers/list.d.ts.map +1 -1
- package/dist/cli/index.js +1384 -1033
- package/dist/cli/json.d.ts +3 -2
- package/dist/cli/json.d.ts.map +1 -1
- package/dist/cli/operations.d.ts +1 -1
- package/dist/cli/operations.d.ts.map +1 -1
- package/dist/cli/read.d.ts +4 -1
- package/dist/cli/read.d.ts.map +1 -1
- package/dist/cli/where.d.ts +2 -0
- package/dist/cli/where.d.ts.map +1 -1
- package/dist/core/assets/representations.d.ts +44 -0
- package/dist/core/assets/representations.d.ts.map +1 -0
- package/dist/core/assets/scanner.d.ts.map +1 -1
- package/dist/core/assets/sidecar.d.ts.map +1 -1
- package/dist/core/blazon-pin.d.ts +19 -1
- package/dist/core/blazon-pin.d.ts.map +1 -1
- package/dist/core/brand/export.d.ts +13 -5
- package/dist/core/brand/export.d.ts.map +1 -1
- package/dist/core/brand/schema.d.ts +68 -0
- package/dist/core/brand/schema.d.ts.map +1 -1
- package/dist/core/checker/approvals.d.ts +5 -0
- package/dist/core/checker/approvals.d.ts.map +1 -1
- package/dist/core/checker/catalogue.d.ts +37 -7
- package/dist/core/checker/catalogue.d.ts.map +1 -1
- package/dist/core/checker/font-meta.d.ts.map +1 -1
- package/dist/core/checker/index.d.ts +5 -0
- package/dist/core/checker/index.d.ts.map +1 -1
- package/dist/core/checker/review.d.ts +19 -1
- package/dist/core/checker/review.d.ts.map +1 -1
- package/dist/core/docs/directives.d.ts +10 -0
- package/dist/core/docs/directives.d.ts.map +1 -1
- package/dist/core/docs/parser.d.ts.map +1 -1
- package/dist/core/font-roles.d.ts +11 -0
- package/dist/core/font-roles.d.ts.map +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/init/from-site/fonts.d.ts.map +1 -1
- package/dist/core/logo/colorways.d.ts +29 -0
- package/dist/core/logo/colorways.d.ts.map +1 -0
- package/dist/core/logo/misuse.d.ts +18 -0
- package/dist/core/logo/misuse.d.ts.map +1 -0
- package/dist/core/mcp-config.d.ts +7 -0
- package/dist/core/mcp-config.d.ts.map +1 -1
- package/dist/core/operations/check.d.ts +1 -1
- package/dist/core/operations/check.d.ts.map +1 -1
- package/dist/core/operations/index.d.ts +1 -1
- package/dist/core/operations/index.d.ts.map +1 -1
- package/dist/core/operations/limits.d.ts +2 -0
- package/dist/core/operations/limits.d.ts.map +1 -1
- package/dist/core/operations/list.d.ts.map +1 -1
- package/dist/core/operations/types.d.ts +13 -0
- package/dist/core/operations/types.d.ts.map +1 -1
- package/dist/core/preflight.d.ts.map +1 -1
- package/dist/core/read/can.d.ts +14 -3
- package/dist/core/read/can.d.ts.map +1 -1
- package/dist/core/read/fonts.d.ts +2 -6
- package/dist/core/read/fonts.d.ts.map +1 -1
- package/dist/core/read/index.d.ts +3 -2
- package/dist/core/read/index.d.ts.map +1 -1
- package/dist/core/read/list.d.ts +15 -1
- package/dist/core/read/list.d.ts.map +1 -1
- package/dist/core/read/logo.d.ts +3 -3
- package/dist/core/read/logo.d.ts.map +1 -1
- package/dist/core/read/lookup.d.ts +2 -2
- package/dist/core/read/lookup.d.ts.map +1 -1
- package/dist/core/read/theme.d.ts +8 -0
- package/dist/core/read/theme.d.ts.map +1 -0
- package/dist/core/read/token.d.ts +6 -2
- package/dist/core/read/token.d.ts.map +1 -1
- package/dist/core/tokens/alias.d.ts +5 -3
- package/dist/core/tokens/alias.d.ts.map +1 -1
- package/dist/core/tokens/contexts.d.ts +11 -3
- package/dist/core/tokens/contexts.d.ts.map +1 -1
- package/dist/core/tokens/formatters/json.d.ts +4 -1
- package/dist/core/tokens/formatters/json.d.ts.map +1 -1
- package/dist/core/tokens/key-lines.d.ts.map +1 -1
- package/dist/core/tokens/merge.d.ts.map +1 -1
- package/dist/core/tokens/resolver/compile.d.ts.map +1 -1
- package/dist/core/tokens/resolver/parse.d.ts.map +1 -1
- package/dist/core/tokens/resolver/sources.d.ts.map +1 -1
- package/dist/core/tokens/walk.d.ts.map +1 -1
- package/dist/index.js +34 -34
- package/dist/plugins/host/call.d.ts.map +1 -1
- package/dist/plugins/roles/roles.d.ts.map +1 -1
- package/dist/server/plugin.d.ts.map +1 -1
- package/dist/types/assets.d.ts +19 -1
- package/dist/types/assets.d.ts.map +1 -1
- package/dist/types/parsed.d.ts +8 -0
- package/dist/types/parsed.d.ts.map +1 -1
- package/dist/types/tokens.d.ts +12 -0
- package/dist/types/tokens.d.ts.map +1 -1
- package/dist/ui/assets/index-b4HhGGrn.js +82 -0
- package/dist/ui/assets/index-pE1ku5gt.css +2 -0
- package/dist/ui/index.html +2 -2
- package/mcp/dist/index.js +358 -45
- package/package.json +3 -2
- package/plugins/blazon.brand-deck/README.md +1 -1
- package/plugins/blazon.brand-deck/bin/blazon-blazon.brand-deck./360/237/224/214 +106 -13
- package/plugins/blazon.favicons/bin/blazon-blazon.favicons./360/237/224/214 +120 -12
- package/plugins/blazon.logo-geometry/bin/blazon-blazon.logo-geometry./360/237/224/214 +45 -1
- package/plugins/blazon.logo-kit/bin/blazon-blazon.logo-kit./360/237/224/214 +45 -1
- package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +66 -3
- package/plugins/blazon.platform-tokens/README.md +1 -1
- package/plugins/blazon.press-kit/README.md +17 -9
- package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +621 -101
- package/plugins/blazon.print-book/README.md +16 -1
- package/plugins/blazon.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +59 -3
- package/plugins/shipped.lock +9 -9
- package/dist/ui/assets/index-Biy1hkeq.css +0 -2
- package/dist/ui/assets/index-dkJG6W9p.js +0 -82
package/dist/cli/json.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import { InitOptions } from './commands/init.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Runs a command that finds things and prints what it found as one JSON document on standard output. Everything else the
|
|
5
5
|
* command prints (its banner, its list of findings) goes to standard error for the time it runs, so a script can parse
|
|
6
|
-
* standard output whole. `counts` and `passed` cover every finding; `severity` only cuts the list.
|
|
6
|
+
* standard output whole. `counts` and `passed` cover every finding; `severity` only cuts the list. `brandHasErrors` is true when a finding other than the pin
|
|
7
|
+
* family is an error (a value may be wrong); `pinMismatch` is there when blazon.lock names another blazon build, and `cwd` is the folder it is read from. Exit status: 0 passed, 1 not passed. A command that cannot start throws, and prints nothing here.
|
|
7
8
|
*/
|
|
8
9
|
export declare const SEVERITIES: readonly ["error", "warning", "info"];
|
|
9
10
|
export type SeverityOption = (typeof SEVERITIES)[number];
|
|
10
11
|
export declare function asJson(command: 'check' | 'build' | 'tokens', strict: boolean, run: () => Promise<{
|
|
11
12
|
findings: Finding[];
|
|
12
|
-
}>, severity?: SeverityOption): Promise<void>;
|
|
13
|
+
}>, severity?: SeverityOption, cwd?: string): Promise<void>;
|
|
13
14
|
/**
|
|
14
15
|
* `blazon init --json`: never asks, prints what it made as one JSON document on standard output and its usual text on standard error.
|
|
15
16
|
* `created` and `kept` are paths in the folder; a starter file that was already there is kept, not overwritten. Exit status: init's own.
|
package/dist/cli/json.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/cli/json.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/cli/json.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAW,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,uCAAwC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAKzD,wBAAsB,MAAM,CAC1B,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,EACrC,MAAM,EAAE,OAAO,EACf,GAAG,EAAE,MAAM,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC,EAC3C,QAAQ,GAAE,cAAuB,EACjC,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoBf;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBnF"}
|
package/dist/cli/operations.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CliOption, Operation } from '../core/operations/index.js';
|
|
|
4
4
|
export declare const JSON_COMMANDS: string[];
|
|
5
5
|
/** The text that registers a command with the parser: `get <path> [dir]`. A positional is required when the input requires it. */
|
|
6
6
|
export declare function rawName(op: Operation): string;
|
|
7
|
-
/** The flag for an option: `--json`, `--type <type>`, `--key <path
|
|
7
|
+
/** The flag for an option: `--json`, `--type <type>`, `--key <path>`, `--pair <fg:bg>`, `--no-verbose`. */
|
|
8
8
|
export declare function flagOf(op: Operation, option: CliOption): string;
|
|
9
9
|
/** Registers every operation that has a command. The registration order is the order of `rank` in the list. */
|
|
10
10
|
export declare function registerOperations(cli: CAC, debug: boolean): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/cli/operations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAiC,KAAK,SAAS,EAAgB,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/cli/operations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAiC,KAAK,SAAS,EAAgB,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAa1H,oHAAoH;AACpH,eAAO,MAAM,aAAa,EAAE,MAAM,EAEI,CAAC;AAEvC,kIAAkI;AAClI,wBAAgB,OAAO,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAI7C;AAED,2GAA2G;AAC3G,wBAAgB,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,CAK/D;AAQD,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAgCjE"}
|
package/dist/cli/read.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BlazonConfig, BlazonData } from '../types/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The brand in `dir`, from the same compile as `check`. A brand with errors is still read; standard error says so, since a value may be wrong.
|
|
4
|
+
* A blazon.lock that names another blazon build is a second, separate line, a warning only: it says nothing about a value. Only blazon.lock is read.
|
|
5
|
+
*/
|
|
3
6
|
export declare function readBrand(dir: string): Promise<{
|
|
4
7
|
config: BlazonConfig;
|
|
5
8
|
data: BlazonData;
|
package/dist/cli/read.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/cli/read.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/cli/read.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIlE;;;GAGG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAShG;AAED,gJAAgJ;AAChJ,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAO3C;AAED,mGAAmG;AACnG,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAE9E;AAED,2DAA2D;AAC3D,wBAAgB,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,MAAM,SAAO,GAAG,IAAI,CAInF"}
|
package/dist/cli/where.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
export declare function shownDir(dir: string, from?: string): string;
|
|
6
6
|
/** A file or folder of the project, from where blazon was run: `a/tokens/colors.json`. */
|
|
7
7
|
export declare const inDir: (dir: string, file: string) => string;
|
|
8
|
+
/** A word for the shell, quoted when it holds anything the shell reads. */
|
|
9
|
+
export declare const shellWord: (word: string) => string;
|
|
8
10
|
/** A blazon command that works from where blazon was run: `blazon dev a`, or `blazon dev` in the folder itself. */
|
|
9
11
|
export declare const blazonCommand: (command: string, dir: string) => string;
|
|
10
12
|
//# sourceMappingURL=where.d.ts.map
|
package/dist/cli/where.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"where.d.ts","sourceRoot":"","sources":["../../src/cli/where.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAsB,GAAG,MAAM,CAI1E;AAED,0FAA0F;AAC1F,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,EAAE,MAAM,MAAM,KAAG,MAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"where.d.ts","sourceRoot":"","sources":["../../src/cli/where.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAsB,GAAG,MAAM,CAI1E;AAED,0FAA0F;AAC1F,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,EAAE,MAAM,MAAM,KAAG,MAAyC,CAAC;AAE5F,2EAA2E;AAC3E,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAqF,CAAC;AAE/H,mHAAmH;AACnH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,EAAE,KAAK,MAAM,KAAG,MAA+D,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An asset id with several files is one asset, and its files are its representations (RFC 0001 section 7): `logos/mark.svg` and
|
|
3
|
+
* `logos/mark.png` are two records with the id `logos/mark`. A reader that needs one file for an id asks here, so every reader
|
|
4
|
+
* picks the same one whatever order the records are in.
|
|
5
|
+
*/
|
|
6
|
+
export interface Representation {
|
|
7
|
+
id: string;
|
|
8
|
+
/** `svg`, `png`, `jpg`, `gif`, `webp`, `avif`: what the catalog and brand.json call the format */
|
|
9
|
+
format: string;
|
|
10
|
+
/** The file's path as the asset catalog writes it (`Asset.filePath`) */
|
|
11
|
+
filePath?: string;
|
|
12
|
+
/** The file's path beside brand.json (`file` in brand.json) */
|
|
13
|
+
file?: string;
|
|
14
|
+
}
|
|
15
|
+
/** The order a reader follows when it has no preference of its own: vector first, then the rasters, then any other format by name. */
|
|
16
|
+
export declare const DEFAULT_FORMAT_ORDER: readonly string[];
|
|
17
|
+
export interface PickOptions {
|
|
18
|
+
/** The formats the caller can use, best first. Without it every format counts and the default order decides. */
|
|
19
|
+
formats?: readonly string[];
|
|
20
|
+
}
|
|
21
|
+
/** The file name of a representation, the last segment of its path. */
|
|
22
|
+
export declare function fileNameOf(record: Pick<Representation, 'filePath' | 'file'>): string;
|
|
23
|
+
/** The order of two representations of one id: the caller's formats first, then the default order, then the file name. */
|
|
24
|
+
export declare function compareRepresentations(a: Representation, b: Representation, options?: PickOptions): number;
|
|
25
|
+
/** Every file of an id, in the default order. */
|
|
26
|
+
export declare function representationsOf<T extends Representation>(records: readonly T[], id: string): T[];
|
|
27
|
+
/**
|
|
28
|
+
* The one file an id means for a reader. With `formats`, the first of them that the id has (none when it has none of them: the
|
|
29
|
+
* caller says what to do, such as "needs an SVG: logos/mark has png only"); without, the first in the default order.
|
|
30
|
+
*/
|
|
31
|
+
export declare function pickRepresentation<T extends Representation>(records: readonly T[], id: string, options?: PickOptions): T | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* For a reader that keys a map by id while it reads the records: puts `record` in the map unless the map already holds a better
|
|
34
|
+
* representation of that id. A record in a format the caller does not list is kept only when the id has no other, so the caller
|
|
35
|
+
* can say what is wrong with it. The map ends the same whatever order the records come in.
|
|
36
|
+
*/
|
|
37
|
+
export declare function keepRepresentation<T extends Representation>(map: Map<string, T>, record: T, options?: PickOptions): void;
|
|
38
|
+
/**
|
|
39
|
+
* The record of one named file among all the records, for a logo or other setting that names a FILE and not an id: the file is that
|
|
40
|
+
* one, whatever else its id has, so the lookup runs over every record and never over the one a reader kept for the id. `file` is a
|
|
41
|
+
* path as brand.json writes it (`file`) or as the catalog does (`filePath`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function findByFile<T extends Representation>(records: readonly T[], file: string): T | undefined;
|
|
44
|
+
//# sourceMappingURL=representations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"representations.d.ts","sourceRoot":"","sources":["../../../src/core/assets/representations.ts"],"names":[],"mappings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AAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAEvG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../../../src/core/assets/scanner.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAExI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,6FAA6F;AAC7F,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAQlF,CAAC;AA4EF,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1C,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../../../src/core/assets/scanner.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAExI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,6FAA6F;AAC7F,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAQlF,CAAC;AA4EF,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1C,qEAAqE;IACrE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,YAAY,CAmErF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidecar.d.ts","sourceRoot":"","sources":["../../../src/core/assets/sidecar.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"sidecar.d.ts","sourceRoot":"","sources":["../../../src/core/assets/sidecar.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,KAAK,EAIV,KAAK,SAAS,EACd,KAAK,OAAO,EAIZ,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAyT9B;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,YAAY;AACrB,2FAA2F;AAC3F,aAAa,SAAK;AAClB,2FAA2F;AAC3F,OAAO,GAAE,SAAS,MAAM,EAA0B,GACjD;IAAE,IAAI,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CA8B3C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,EAAE,CAOzG;AAED,0KAA0K;AAC1K,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,EAAE,CAOxG"}
|
|
@@ -25,12 +25,30 @@ export declare function readBlazonPin(cwd: string): {
|
|
|
25
25
|
line?: number;
|
|
26
26
|
problems: Finding[];
|
|
27
27
|
};
|
|
28
|
+
/** A pin that is not met, as every tool and command reports it: both builds as blazon prints them, and one line saying why. */
|
|
29
|
+
export interface PinMismatch {
|
|
30
|
+
/** The commit blazon.lock names, 12 digits */
|
|
31
|
+
pinned: string;
|
|
32
|
+
/** The blazon running: 12 digits, with "(uncommitted changes)" when its tree had edits, or "unknown" when it cannot say */
|
|
33
|
+
running: string;
|
|
34
|
+
message: string;
|
|
35
|
+
line?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* What blazon.lock in `cwd` says about this blazon: the findings that are not a mismatch (`pin-invalid`), and the mismatch when there is
|
|
39
|
+
* one. Reads blazon.lock only and writes nothing. A pin that cannot be checked is not met.
|
|
40
|
+
*/
|
|
41
|
+
export declare function blazonPinState(cwd: string, identity?: BlazonIdentity | null, root?: string): {
|
|
42
|
+
problems: Finding[];
|
|
43
|
+
mismatch?: PinMismatch;
|
|
44
|
+
};
|
|
28
45
|
/**
|
|
29
46
|
* The findings for blazon.lock in `cwd`: none without a pin, `pin-invalid` for a file that cannot be read, and
|
|
30
47
|
* `pin-mismatch` when this blazon is not the pinned commit, was built from a tree with changes, or cannot say what it is.
|
|
31
|
-
* A pin that cannot be checked is not met.
|
|
32
48
|
*/
|
|
33
49
|
export declare function blazonPinFindings(cwd: string, identity?: BlazonIdentity | null, root?: string): Finding[];
|
|
50
|
+
/** The one line a read command prints on standard error for a mismatch. The MCP server reads it back with PIN_MISMATCH_LINE, so the two stay together. */
|
|
51
|
+
export declare const pinMismatchLine: (m: PinMismatch) => string;
|
|
34
52
|
/** Write blazon.lock for this blazon, replacing one that cannot be read, which is how a broken pin is mended. Throws an Error saying why not: an unknown or uncommitted blazon is not a version to pin. */
|
|
35
53
|
export declare function writeBlazonPin(cwd: string, identity?: BlazonIdentity | null): string;
|
|
36
54
|
//# sourceMappingURL=blazon-pin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blazon-pin.d.ts","sourceRoot":"","sources":["../../src/core/blazon-pin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAejD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAIzC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,sGAAsG;IACtG,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;CACvB;AAYD,wGAAwG;AACxG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAIrF;AAED,oFAAoF;AACpF,wBAAgB,cAAc,CAC5B,KAAK,GAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,GAAG,SAAkF,EACrI,IAAI,CAAC,EAAE,MAAM,GACZ,cAAc,GAAG,IAAI,CAMvB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAWD,sGAAsG;AACtG,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,GAAG,CAAC,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAgBlG;AAID
|
|
1
|
+
{"version":3,"file":"blazon-pin.d.ts","sourceRoot":"","sources":["../../src/core/blazon-pin.ts"],"names":[],"mappings":"AAGA,OAAO,KA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,CAAA;CAAE,CA4B9J;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAc,GAAG,IAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAK3H;AAED,0JAA0J;AAC1J,eAAO,MAAM,eAAe,GAAI,GAAG,WAAW,KAAG,MAAyF,CAAC;AAE3I,2MAA2M;AAC3M,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAc,GAAG,IAAuB,GAAG,MAAM,CAgBtG"}
|
|
@@ -61,11 +61,7 @@ export interface BrandExport {
|
|
|
61
61
|
sections: SectionInfo[];
|
|
62
62
|
tokens: BrandToken[];
|
|
63
63
|
/** Groups that carry a description or rules: proportions, contrast pairs, patterns */
|
|
64
|
-
groups:
|
|
65
|
-
path: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
blazon: BlazonExtension;
|
|
68
|
-
}[];
|
|
64
|
+
groups: BrandGroup[];
|
|
69
65
|
modifiers: {
|
|
70
66
|
name: string;
|
|
71
67
|
default: string;
|
|
@@ -81,6 +77,12 @@ export interface BrandExport {
|
|
|
81
77
|
selector: string;
|
|
82
78
|
tokens: BrandToken[];
|
|
83
79
|
metadataChanges?: BrandToken[];
|
|
80
|
+
/** The paths of the default's tokens the context leaves out, sorted; absent when there are none */
|
|
81
|
+
removed?: string[];
|
|
82
|
+
/** The groups whose description or rules differ from the default's (the context's whole record), as in `groups`; absent when there are none */
|
|
83
|
+
groupChanges?: BrandGroup[];
|
|
84
|
+
/** The default's groups that carry no description or rules in the context, sorted; absent when there are none */
|
|
85
|
+
removedGroups?: string[];
|
|
84
86
|
}[];
|
|
85
87
|
pages: {
|
|
86
88
|
slug: string;
|
|
@@ -116,6 +118,12 @@ export interface BrandExport {
|
|
|
116
118
|
})[];
|
|
117
119
|
findings: Finding[];
|
|
118
120
|
}
|
|
121
|
+
/** A group that carries a description or rules */
|
|
122
|
+
export interface BrandGroup {
|
|
123
|
+
path: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
blazon: BlazonExtension;
|
|
126
|
+
}
|
|
119
127
|
/** Builds the export: a pure projection of the compiled brand, with no timestamps, so it is the same every time. */
|
|
120
128
|
export declare function buildBrandExport(data: BlazonData, config: BlazonConfig, cwd: string, identity?: BlazonIdentity | null): BrandExport;
|
|
121
129
|
/** brand.json as written: two-space JSON with a final newline. */
|
|
@@ -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,WAAW,
|
|
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,WAAW,EAEhB,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,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AM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,wBAAwB;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,+CAA+C;QAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,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;AAED,kDAAkD;AAClD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,eAAe,CAAC;CACzB;AA8CD,oHAAoH;AACpH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAc,GAAG,IAAuB,GAAG,WAAW,CAyDrJ;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"}
|
|
@@ -358,6 +358,19 @@ export declare const BRAND_SCHEMA: {
|
|
|
358
358
|
type: string;
|
|
359
359
|
minLength: number;
|
|
360
360
|
};
|
|
361
|
+
role: {
|
|
362
|
+
enum: string[];
|
|
363
|
+
};
|
|
364
|
+
reason: {
|
|
365
|
+
type: string;
|
|
366
|
+
minLength: number;
|
|
367
|
+
maxLength: number;
|
|
368
|
+
};
|
|
369
|
+
fallbackFor: {
|
|
370
|
+
type: string;
|
|
371
|
+
minLength: number;
|
|
372
|
+
maxLength: number;
|
|
373
|
+
};
|
|
361
374
|
};
|
|
362
375
|
};
|
|
363
376
|
webFont: {
|
|
@@ -511,6 +524,29 @@ export declare const BRAND_SCHEMA: {
|
|
|
511
524
|
$ref: string;
|
|
512
525
|
};
|
|
513
526
|
};
|
|
527
|
+
removed: {
|
|
528
|
+
description: string;
|
|
529
|
+
type: string;
|
|
530
|
+
items: {
|
|
531
|
+
type: string;
|
|
532
|
+
minLength: number;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
groupChanges: {
|
|
536
|
+
description: string;
|
|
537
|
+
type: string;
|
|
538
|
+
items: {
|
|
539
|
+
$ref: string;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
removedGroups: {
|
|
543
|
+
description: string;
|
|
544
|
+
type: string;
|
|
545
|
+
items: {
|
|
546
|
+
type: string;
|
|
547
|
+
minLength: number;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
514
550
|
};
|
|
515
551
|
required: string[];
|
|
516
552
|
};
|
|
@@ -591,6 +627,32 @@ export declare const BRAND_SCHEMA: {
|
|
|
591
627
|
type: string;
|
|
592
628
|
minLength: number;
|
|
593
629
|
};
|
|
630
|
+
colorways: {
|
|
631
|
+
type: string;
|
|
632
|
+
minItems: number;
|
|
633
|
+
items: {
|
|
634
|
+
type: string;
|
|
635
|
+
properties: {
|
|
636
|
+
name: {
|
|
637
|
+
type: string;
|
|
638
|
+
minLength: number;
|
|
639
|
+
};
|
|
640
|
+
on: {
|
|
641
|
+
type: string;
|
|
642
|
+
minLength: number;
|
|
643
|
+
};
|
|
644
|
+
variant: {
|
|
645
|
+
type: string;
|
|
646
|
+
minLength: number;
|
|
647
|
+
};
|
|
648
|
+
min: {
|
|
649
|
+
enum: string[];
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
required: string[];
|
|
653
|
+
additionalProperties: boolean;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
594
656
|
unit: {
|
|
595
657
|
$ref: string;
|
|
596
658
|
};
|
|
@@ -637,6 +699,12 @@ export declare const BRAND_SCHEMA: {
|
|
|
637
699
|
lockup: {
|
|
638
700
|
$ref: string;
|
|
639
701
|
};
|
|
702
|
+
misuse: {
|
|
703
|
+
type: string;
|
|
704
|
+
items: {
|
|
705
|
+
enum: string[];
|
|
706
|
+
};
|
|
707
|
+
};
|
|
640
708
|
placement: {
|
|
641
709
|
type: string;
|
|
642
710
|
minItems: number;
|
|
@@ -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"}
|
|
@@ -12,4 +12,9 @@ export interface AssetFiles {
|
|
|
12
12
|
export declare function approvals(tokens: Pick<ParsedTokens, 'items'>, assets: readonly Asset[], files: AssetFiles): Approval[];
|
|
13
13
|
/** The `approval-stale` warnings of a project. */
|
|
14
14
|
export declare const staleApprovals: (tokens: Pick<ParsedTokens, "items">, assets: readonly Asset[], files: AssetFiles) => Finding[];
|
|
15
|
+
/**
|
|
16
|
+
* A sidecar belongs to an id, and the scanner reads it once for each file of the id, so `review-pending` and `asset-review-missing`
|
|
17
|
+
* come once for each file. This keeps one of each per id, and an `asset-review-missing` names the files the review has to cover.
|
|
18
|
+
*/
|
|
19
|
+
export declare function onePerAssetId(problems: readonly Finding[], assets: readonly Asset[]): Finding[];
|
|
15
20
|
//# sourceMappingURL=approvals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/core/checker/approvals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/core/checker/approvals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIzE,OAAO,EAAuE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjH,2HAA2H;AAC3H,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAaD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,KAAK,EAAE,UAAU,GAAG,QAAQ,EAAE,CAuBtH;AAED,kDAAkD;AAClD,eAAO,MAAM,cAAc,GAAI,QAAQ,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,UAAU,KAAG,OAAO,EAAqD,CAAC;AAE/K;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,KAAK,EAAE,GAAG,OAAO,EAAE,CAkB/F"}
|
|
@@ -105,6 +105,14 @@ export declare const CHECKS: {
|
|
|
105
105
|
readonly rfc: "1#4";
|
|
106
106
|
readonly manual: "03-checks";
|
|
107
107
|
};
|
|
108
|
+
readonly 'asset-misuse-unknown': {
|
|
109
|
+
readonly severity: "error";
|
|
110
|
+
readonly summary: "A logo misuse kind, in a sidecar or in a blazon:logo-misuse directive, is not one blazon draws.";
|
|
111
|
+
readonly fix: "Use only the kinds the message lists: stretch, squash, rotate, outline, recolor, shadow, crop, low-contrast, busy-background.";
|
|
112
|
+
readonly appliesTo: readonly ["asset"];
|
|
113
|
+
readonly rfc: "1#4";
|
|
114
|
+
readonly manual: "03-checks";
|
|
115
|
+
};
|
|
108
116
|
readonly 'asset-review-missing': {
|
|
109
117
|
readonly severity: "warning";
|
|
110
118
|
readonly summary: "A generated asset has no review yet.";
|
|
@@ -161,11 +169,19 @@ export declare const CHECKS: {
|
|
|
161
169
|
readonly rfc: "1#4";
|
|
162
170
|
readonly manual: "03-checks";
|
|
163
171
|
};
|
|
172
|
+
readonly 'context-css-unchanged': {
|
|
173
|
+
readonly severity: "info";
|
|
174
|
+
readonly summary: "A context leaves out tokens the default has, but the CSS cannot remove a custom property, so theme.css keeps the default value for them.";
|
|
175
|
+
readonly fix: "Either give the token a value in the context file, so it is not removed, or accept the fallback and do not use the token's variable in that context.";
|
|
176
|
+
readonly appliesTo: readonly ["project"];
|
|
177
|
+
readonly rfc: "1#3";
|
|
178
|
+
readonly manual: "04-contexts";
|
|
179
|
+
};
|
|
164
180
|
readonly 'contrast-insufficient': {
|
|
165
181
|
readonly severity: "error";
|
|
166
|
-
readonly summary: "A color pair has less contrast than its level asks for.";
|
|
167
|
-
readonly fix: "Change one of the two colors, or lower the pair's level on purpose.";
|
|
168
|
-
readonly appliesTo: readonly ["token"];
|
|
182
|
+
readonly summary: "A color pair, or a logo colorway, has less contrast than its level asks for.";
|
|
183
|
+
readonly fix: "Change one of the two colors, or lower the pair's or the colorway's level on purpose.";
|
|
184
|
+
readonly appliesTo: readonly ["token", "asset"];
|
|
169
185
|
readonly rfc: "1#4";
|
|
170
186
|
readonly manual: "03-checks";
|
|
171
187
|
};
|
|
@@ -179,9 +195,9 @@ export declare const CHECKS: {
|
|
|
179
195
|
};
|
|
180
196
|
readonly 'contrast-unknown': {
|
|
181
197
|
readonly severity: "warning";
|
|
182
|
-
readonly summary: "Blazon cannot read a color of a pair, or its background is translucent, so it cannot measure the contrast.";
|
|
183
|
-
readonly fix: "Give both tokens of the pair a color value blazon can read, such as a hex color, or an alias of one, and make the background opaque.";
|
|
184
|
-
readonly appliesTo: readonly ["token"];
|
|
198
|
+
readonly summary: "Blazon cannot read a color of a pair or of a logo colorway, or its background is translucent, so it cannot measure the contrast.";
|
|
199
|
+
readonly fix: "Give both tokens of the pair a color value blazon can read, such as a hex color, or an alias of one, and make the background opaque. For a logo colorway, give the logo an ink or a background in its sidecar.";
|
|
200
|
+
readonly appliesTo: readonly ["token", "asset"];
|
|
185
201
|
readonly rfc: "1#4";
|
|
186
202
|
readonly manual: "03-checks";
|
|
187
203
|
};
|
|
@@ -252,7 +268,15 @@ export declare const CHECKS: {
|
|
|
252
268
|
readonly 'font-meta-invalid': {
|
|
253
269
|
readonly severity: "error";
|
|
254
270
|
readonly summary: "The font fields on a token are not valid.";
|
|
255
|
-
readonly fix: "Fix the font extension on the token or group: only source, license and
|
|
271
|
+
readonly fix: "Fix the font extension on the token or group: only source, license, licenseUrl, role, reason and fallbackFor, as text, with http or https addresses and a role from primary, secondary, display, monospace or fallback, on a fontFamily token.";
|
|
272
|
+
readonly appliesTo: readonly ["token", "group"];
|
|
273
|
+
readonly rfc: "1#4";
|
|
274
|
+
readonly manual: "03-checks";
|
|
275
|
+
};
|
|
276
|
+
readonly 'font-role-invalid': {
|
|
277
|
+
readonly severity: "warning";
|
|
278
|
+
readonly summary: "A font reason or fallbackFor is not valid, so it is left out.";
|
|
279
|
+
readonly fix: "Write font.reason as one line of up to 160 characters, and set font.fallbackFor (up to 80 characters, one line) only with role \"fallback\".";
|
|
256
280
|
readonly appliesTo: readonly ["token", "group"];
|
|
257
281
|
readonly rfc: "1#4";
|
|
258
282
|
readonly manual: "03-checks";
|
|
@@ -612,6 +636,12 @@ export interface FindingFields {
|
|
|
612
636
|
/** The fix for this finding's own cause, in place of the code's */
|
|
613
637
|
fix?: string;
|
|
614
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Whether a code is in the pin family: the findings that pair the blazon build with the book (blazon.lock). They say nothing about a token or a
|
|
641
|
+
* value, so a count of the brand's own errors leaves them out. The family is the `pin-` area of the catalogue; test/core/pin-family.test.ts fails when
|
|
642
|
+
* a code about blazon.lock is added outside it.
|
|
643
|
+
*/
|
|
644
|
+
export declare const isPinFinding: (code: string) => boolean;
|
|
615
645
|
/** Build a finding of a core code. The severity is the catalogue's. */
|
|
616
646
|
export declare function finding(code: CheckCode, fields: FindingFields): Finding;
|
|
617
647
|
//# sourceMappingURL=catalogue.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
|
1
|
+
{"version":3,"file":"font-meta.d.ts","sourceRoot":"","sources":["../../../src/core/checker/font-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA8CxI;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,OAAO,EAAE,CAmBrG"}
|
|
@@ -16,6 +16,11 @@ export declare function checkTokens(data: Pick<BlazonData, 'tokens'> & {
|
|
|
16
16
|
}, options?: {
|
|
17
17
|
strict?: boolean;
|
|
18
18
|
}): CheckResult;
|
|
19
|
+
/**
|
|
20
|
+
* The findings that make a value of the brand possibly wrong: errors, except the pin family (the blazon build and the book disagree, which
|
|
21
|
+
* says nothing about any token). The one definition of "the brand has errors" that `check --json`, the read commands and the MCP tools share.
|
|
22
|
+
*/
|
|
23
|
+
export declare const brandErrors: (found: readonly Finding[]) => Finding[];
|
|
19
24
|
/** Puts findings in the defined total order (`compareFindings`) and splits them by severity; `strict` makes warnings fail too. */
|
|
20
25
|
export declare function summarizeFindings(found: Finding[], options?: {
|
|
21
26
|
strict?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/checker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/checker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAa5G,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,GAAG,EAAE,OAAO,EAAE,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;CAAE,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,WAAW,CAiB3J;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,OAAO,EAAE,KAAG,OAAO,EAA0E,CAAC;AAE1I,kIAAkI;AAClI,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,WAAW,CAO/F"}
|
|
@@ -23,14 +23,32 @@ export declare const fingerprintInput: (item: Pick<TokenItem, "type" | "resolved
|
|
|
23
23
|
* the default context. An approval therefore goes stale when the value changes, including through the token it aliases.
|
|
24
24
|
*/
|
|
25
25
|
export declare function tokenFingerprint(item: Pick<TokenItem, 'type' | 'resolvedValue'>): string;
|
|
26
|
-
/** The fingerprint of an asset: its
|
|
26
|
+
/** The fingerprint of an asset file: its bytes. The sidecar is where the approval is written, so editing it does not void it. */
|
|
27
27
|
export declare const assetFingerprint: (bytes: Uint8Array) => string;
|
|
28
|
+
/** One file of an asset id, for its fingerprint. */
|
|
29
|
+
export interface AssetFileBytes {
|
|
30
|
+
/** The file name, such as `mark.svg` */
|
|
31
|
+
name: string;
|
|
32
|
+
bytes: Uint8Array;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The text that is hashed for an asset id with several files (RFC 0001 section 2): the files in byte order of their names (UTF-8),
|
|
36
|
+
* one line each: the file name, a NUL, the full lowercase sha-256 hex of the file's bytes, and a line feed.
|
|
37
|
+
*/
|
|
38
|
+
export declare function assetSetInput(files: readonly AssetFileBytes[]): string;
|
|
39
|
+
/**
|
|
40
|
+
* The fingerprint of an asset id: for one file exactly `assetFingerprint` of its bytes, so an approval recorded before an id had a
|
|
41
|
+
* second file stays valid; for several, the digest of `assetSetInput`.
|
|
42
|
+
*/
|
|
43
|
+
export declare const assetSetFingerprint: (files: readonly AssetFileBytes[]) => string;
|
|
28
44
|
/** One approval to compare: a recorded fingerprint against the current one. */
|
|
29
45
|
export interface Approval {
|
|
30
46
|
path: string;
|
|
31
47
|
review: Review;
|
|
32
48
|
/** Undefined when the value cannot be read (an unresolved alias, a missing file): nothing to compare */
|
|
33
49
|
current: string | undefined;
|
|
50
|
+
/** For an asset id: the names of its files in byte order, so a person sees what the one fingerprint covers */
|
|
51
|
+
files?: string[];
|
|
34
52
|
}
|
|
35
53
|
/**
|
|
36
54
|
* `approval-stale`: a `review.status: ok` that recorded a `value` fingerprint, and the value is no longer that one. An
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/core/checker/review.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AASlF,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAIvD;AAED,4IAA4I;AAC5I,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,GAAG,SAAS,CAavG;AAED,6HAA6H;AAC7H,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAID;;;;GAIG;AACH,wBAAgB,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,eAAO,MAAM,gBAAgB,GAAI,OAAO,UAAU,KAAG,MAAuB,CAAC;AAE7E,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAGtE;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,SAAS,cAAc,EAAE,KAAG,MAAiG,CAAC;AAEzK,+EAA+E;AAC/E,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,8GAA8G;IAC9G,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,QAAQ,EAAE,GAAG,OAAO,EAAE,CASvE"}
|
|
@@ -20,6 +20,8 @@ export interface DirectiveSpec {
|
|
|
20
20
|
assetRefs?: number;
|
|
21
21
|
/** After the asset ids, one optional free-text argument: a URL, a name */
|
|
22
22
|
text?: boolean;
|
|
23
|
+
/** After the one asset id, any number of misuse kinds (`stretch`, `rotate`, ...); a name that is not a kind is `asset-misuse-unknown` */
|
|
24
|
+
misuseKinds?: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Draws what an asset's sidecar states: at least one of these fields must be stated. For a folder
|
|
25
27
|
* directive, by at least one asset it names; for asset ids, by the first.
|
|
@@ -84,6 +86,14 @@ export declare const DIRECTIVES: {
|
|
|
84
86
|
readonly text: true;
|
|
85
87
|
readonly needsMeta: readonly ["placement"];
|
|
86
88
|
};
|
|
89
|
+
readonly 'logo-misuse': {
|
|
90
|
+
readonly assetRefs: 1;
|
|
91
|
+
readonly misuseKinds: true;
|
|
92
|
+
};
|
|
93
|
+
readonly 'logo-colorways': {
|
|
94
|
+
readonly assetRefs: 1;
|
|
95
|
+
readonly needsMeta: readonly ["colorways"];
|
|
96
|
+
};
|
|
87
97
|
readonly cards: {
|
|
88
98
|
readonly tokens: "paint";
|
|
89
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../../src/core/docs/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../../src/core/docs/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAMxH,kDAAkD;AAClD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAEvE,MAAM,WAAW,aAAa;IAC5B,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC9B,gCAAgC;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yFAAyF;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oHAAoH;IACpH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yIAAyI;IACzI,W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,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qMAAqM;AACrM,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,CAItE;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;IAClD,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,yGAAyG;IACzG,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,4CAA4C;IAC5C,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,CA4HhL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FontMeta } from '../types/index.js';
|
|
2
|
+
/** Text on one line, not blank, up to `max` characters: what a font's `reason` and `fallbackFor` must be */
|
|
3
|
+
export declare const isOneLine: (value: unknown, max: number) => value is string;
|
|
4
|
+
/**
|
|
5
|
+
* The `role`, `reason` and `fallbackFor` of a font's meta that are valid, and nothing else: a value `blazon check` warns about is left out
|
|
6
|
+
* of what is printed. `fallbackFor` counts only on a role of `fallback`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fontRoleFields(meta: unknown): Pick<FontMeta, 'role' | 'reason' | 'fallbackFor'>;
|
|
9
|
+
/** A font's meta with its role fields reduced to the valid ones; the other fields are untouched, in their order */
|
|
10
|
+
export declare function cleanFontMeta(font: FontMeta): FontMeta;
|
|
11
|
+
//# sourceMappingURL=font-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font-roles.d.ts","sourceRoot":"","sources":["../../src/core/font-roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAItG,4GAA4G;AAC5G,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,EAAE,KAAK,MAAM,KAAG,KAAK,IAAI,MAA0G,CAAC;AAE5K;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,aAAa,CAAC,CAQ/F;AAED,mHAAmH;AACnH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAItD"}
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,YAAY,EAAE,UAAU,EAAmD,MAAM,mBAAmB,CAAC;AA2CnI,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,CAyJ7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../src/core/init/from-site/fonts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../src/core/init/from-site/fonts.ts"],"names":[],"mappings":"AAoHA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,mGAAmG;AACnG,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAqBtG;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,CAGlD"}
|