@iksnerd/blazon 0.4.0 → 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-BOQjoDbM.js → site-builder-C8g2sfUv.js} +3519 -3712
- 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/index.js +1098 -965
- package/dist/cli/operations.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/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 +31 -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/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/read/can.d.ts +2 -1
- 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/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 +1 -1
- package/dist/core/read/theme.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 +4 -4
- 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.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +59 -3
- package/plugins/shipped.lock +8 -8
- package/dist/ui/assets/index-Biy1hkeq.css +0 -2
- package/dist/ui/assets/index-dkJG6W9p.js +0 -82
|
@@ -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/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":"AAEA;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,sIAAsI;AACtI,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAE5F,MAAM,WAAW,WAAW;IAC1B,gHAAgH;IAChH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAID,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,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
{"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"}
|
|
@@ -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,OA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AAU,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -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";
|
|
@@ -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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checker/font-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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"}
|
|
@@ -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,cAAc,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,OAAO,EAAE,CAWnG;AAcD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAAC,KAAG,MAA4D,CAAC;AAIhJ;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,G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,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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;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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Asset, Finding, LogoColorway, TokenItem } from '../../types/index.js';
|
|
2
|
+
/** The level a colorway must reach when its sidecar names none. */
|
|
3
|
+
export declare const DEFAULT_COLORWAY_LEVEL: "AA-large";
|
|
4
|
+
export interface ColorwayResult {
|
|
5
|
+
name: string;
|
|
6
|
+
/** The background token's path */
|
|
7
|
+
on: string;
|
|
8
|
+
min: LogoColorway['min'];
|
|
9
|
+
/** The file drawn: the variant the colorway names, picked by the shared rule, or the logo itself */
|
|
10
|
+
variant: Asset;
|
|
11
|
+
/** The background token, when it exists and is a color */
|
|
12
|
+
background?: TokenItem;
|
|
13
|
+
/** The artwork's color as measured: its `ink`, else black on a light-surface logo and white on a dark-surface one */
|
|
14
|
+
ink?: string;
|
|
15
|
+
/** Undefined when the ink or the background cannot be read, or the background is translucent */
|
|
16
|
+
ratio?: number;
|
|
17
|
+
/** Undefined together with `ratio` */
|
|
18
|
+
pass?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** The color a logo file is measured as: the ink its sidecar declares, else the one its background implies. Undefined when it states neither. */
|
|
21
|
+
export declare function inkOf(asset: Asset): string | undefined;
|
|
22
|
+
/** The colorways a logo states, each measured. A colorway whose variant names no asset is left out: that is its own error. */
|
|
23
|
+
export declare function colorwayResults(logo: Asset, assets: readonly Asset[], items: readonly TokenItem[]): ColorwayResult[];
|
|
24
|
+
/**
|
|
25
|
+
* The findings of every logo's colorways: a variant that names no asset is an error on the sidecar (as `replacedBelow.by` is), a colorway
|
|
26
|
+
* below its level is `contrast-insufficient`, and one that cannot be measured is `contrast-unknown`. A logo id with several files is one logo.
|
|
27
|
+
*/
|
|
28
|
+
export declare function colorwayFindings(assets: readonly Asset[], items: readonly TokenItem[], absentLocal: ReadonlySet<string>): Finding[];
|
|
29
|
+
//# sourceMappingURL=colorways.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorways.d.ts","sourceRoot":"","sources":["../../../src/core/logo/colorways.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAQpF,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,EAAG,UAAmB,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IACzB,oGAAoG;IACpG,OAAO,EAAE,KAAK,CAAC;IACf,0DAA0D;IAC1D,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,qHAAqH;IACrH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gGAAgG;IAChG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,iJAAiJ;AACjJ,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAMtD;AAED,8HAA8H;AAC9H,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CAoBpH;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,EAAE,CAkCnI"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MISUSE_KINDS, MisuseKind } from '../../types/index.js';
|
|
2
|
+
export { MISUSE_KINDS, type MisuseKind };
|
|
3
|
+
/** What `blazon:logo-misuse` draws when neither the directive nor the logo's sidecar names kinds. */
|
|
4
|
+
export declare const DEFAULT_MISUSE_KINDS: readonly MisuseKind[];
|
|
5
|
+
export declare const misuseCaption: (kind: MisuseKind) => string;
|
|
6
|
+
export declare const misuseEffect: (kind: MisuseKind) => string;
|
|
7
|
+
export declare function isMisuseKind(name: string): name is MisuseKind;
|
|
8
|
+
/** The message for a kind that is not one of the nine, with the ones that are. */
|
|
9
|
+
export declare const unknownMisuseMessage: (names: readonly string[]) => string;
|
|
10
|
+
/**
|
|
11
|
+
* The kinds to draw: the directive's own, else the sidecar's `misuse`, else the default six. Each kind once, in the order written;
|
|
12
|
+
* a name that is not a kind is returned apart, so the caller can report it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveMisuse(fromDirective: readonly string[], fromSidecar: readonly MisuseKind[] | undefined): {
|
|
15
|
+
kinds: MisuseKind[];
|
|
16
|
+
unknown: string[];
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=misuse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misuse.d.ts","sourceRoot":"","sources":["../../../src/core/logo/misuse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,CAAC;AAEzC,qGAAqG;AACrG,eAAO,MAAM,oBAAoB,EAAE,SAAS,UAAU,EAA0E,CAAC;AAejI,eAAO,MAAM,aAAa,GAAI,MAAM,UAAU,KAAG,MAA6B,CAAC;AAC/E,eAAO,MAAM,YAAY,GAAI,MAAM,UAAU,KAAG,MAA4B,CAAC;AAE7E,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,UAAU,CAE7D;AAED,kFAAkF;AAClF,eAAO,MAAM,oBAAoB,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,MAC4C,CAAC;AAE7G;;;GAGG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,GAAG;IAAE,KAAK,EAAE,UAAU,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAU1J"}
|
|
@@ -68,4 +68,11 @@ export declare function mcpConfigFiles(client: McpClient, folders: string[], hom
|
|
|
68
68
|
* environment (where a token may be) are never copied out. Returns undefined when the text is not a JSON object.
|
|
69
69
|
*/
|
|
70
70
|
export declare function mcpServerNames(text: string, file: Pick<McpConfigFile, 'serversKey' | 'projects'>): string[] | undefined;
|
|
71
|
+
/** What an entry says to run. The values are the user's own and may hold a secret: a caller keeps only what it identified as a script path, and prints nothing else. */
|
|
72
|
+
export interface McpEntryLaunch {
|
|
73
|
+
command: string | undefined;
|
|
74
|
+
args: string[];
|
|
75
|
+
}
|
|
76
|
+
/** The `command` and string `args` of every entry named `name` in a client's config file. `env` is never read. Returns undefined when the text is not a JSON object. */
|
|
77
|
+
export declare function mcpEntryLaunches(text: string, file: Pick<McpConfigFile, 'serversKey' | 'projects'>, name: string): McpEntryLaunch[] | undefined;
|
|
71
78
|
//# sourceMappingURL=mcp-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-config.d.ts","sourceRoot":"","sources":["../../src/core/mcp-config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,gEAAiE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,yGAAyG;AACzG,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,+HAA+H;IAC/H,KAAK,EAAE,OAAO,CAAC;IACf,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yFAAyF;AACzF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAA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AM,GAAG,SAAS,EAAE,CAE5E;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,SAA+D,CAAC;AAErH,+FAA+F;AAC/F,MAAM,WAAW,aAAa;IAC5B,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,oGAAoG;IACpG,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,qFAAqF;IACrF,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAkBlK;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,UAAU,CAAC,GAAG,MAAM,EAAE,GAAG,SAAS,CAEvH;AAED,wKAAwK;AACxK,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,wKAAwK;AACxK,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,YAAY,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAW/I"}
|
package/dist/core/read/can.d.ts
CHANGED
|
@@ -37,8 +37,9 @@ export declare const NON_TEXT_MINIMUM: number;
|
|
|
37
37
|
* rule is read for the roles `border`, `icon` and `interactive`, and `pairs` do not apply, because they are text pairs.
|
|
38
38
|
*
|
|
39
39
|
* With `theme` the pair is judged in that context of the resolver's `theme` modifier: its colors, not the default's.
|
|
40
|
+
* `inThemeNamed` is only for the message: data already put in a theme names it when a token is missing.
|
|
40
41
|
*/
|
|
41
|
-
export declare function canUse(data: BlazonData, typedFg: string, typedBg: string, role?: CanRole, theme?: string): CanAnswer;
|
|
42
|
+
export declare function canUse(data: BlazonData, typedFg: string, typedBg: string, role?: CanRole, theme?: string, inThemeNamed?: string): CanAnswer;
|
|
42
43
|
/** The answer without its `checks` when it is allowed: a denial keeps them, since they are the reason. */
|
|
43
44
|
export declare function withoutChecks(answer: CanAnswer): Omit<CanAnswer, 'checks'> & {
|
|
44
45
|
checks?: CanCheck[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can.d.ts","sourceRoot":"","sources":["../../../src/core/read/can.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAa,MAAM,sBAAsB,CAAC;AAQjF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IACrC,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,+GAA+G;IAC/G,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,aAAa,GAAG,MAAM,CAAC;QAC9B,0HAA0H,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;KAC/I,CAAC;IACF,gGAAgG;IAChG,IAAI,EAAE,OAAO,CAAC;IACd,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;A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EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,OAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAyDnJ;AAED,0GAA0G;AAC1G,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CAAE,CAIpG;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,IAAI,GAAE,OAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAa9I"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlazonConfig, BlazonData, ThemeRole } from '../../types/index.js';
|
|
1
|
+
import { BlazonConfig, BlazonData, FontMeta, ThemeRole } from '../../types/index.js';
|
|
2
2
|
export interface FontFileEntry {
|
|
3
3
|
family: string;
|
|
4
4
|
/** From the project root */
|
|
@@ -18,11 +18,7 @@ export interface FamilyUse {
|
|
|
18
18
|
loaded: boolean | null;
|
|
19
19
|
/** The token's own word on it: `webFont: false` or a sentence, and its `font` source and license */
|
|
20
20
|
webFont?: false | string;
|
|
21
|
-
font?:
|
|
22
|
-
source?: string;
|
|
23
|
-
license?: string;
|
|
24
|
-
licenseUrl?: string;
|
|
25
|
-
};
|
|
21
|
+
font?: FontMeta;
|
|
26
22
|
}
|
|
27
23
|
export interface FontsDescription {
|
|
28
24
|
/** The stylesheet addresses the brand loads, as the config lists them */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/core/read/fonts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","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