@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
|
@@ -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,I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,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonSchema } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Checks `value` against a schema and returns what is wrong, one sentence each, as a list that is empty when the value fits. Understands
|
|
4
|
-
* type, enum, pattern, maxLength, minimum, maximum, items, properties, required and additionalProperties; any other keyword is ignored.
|
|
4
|
+
* type, enum, pattern, maxLength, minimum, maximum, minItems, maxItems, items, properties, required and additionalProperties; any other keyword is ignored.
|
|
5
5
|
* The one check for the arguments of a tool call and for the answer the server sends back.
|
|
6
6
|
*/
|
|
7
7
|
export declare function checkAgainst(schema: JsonSchema, value: unknown, at?: string): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/core/operations/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAuB7C;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,SAAc,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/core/operations/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAuB7C;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,SAAc,GAAG,MAAM,EAAE,CA6B3F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { OPERATIONS } from './list.js';
|
|
2
|
-
export { DEFAULT_LIMIT, MAX_LIMIT, MAX_TEXT } from './limits.js';
|
|
2
|
+
export { DEFAULT_LIMIT, MAX_LIMIT, MAX_PAIRS, MAX_TEXT } from './limits.js';
|
|
3
3
|
export { checkAgainst } from './check.js';
|
|
4
4
|
export { commandOperations, toolInput, toolOf, toolOperations } from './project.js';
|
|
5
5
|
export { validateOperations } from './validate.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/operations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/operations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -3,4 +3,6 @@ export declare const MAX_TEXT = 40000;
|
|
|
3
3
|
/** The default and the largest number of findings `check_brand` returns. */
|
|
4
4
|
export declare const DEFAULT_LIMIT = 50;
|
|
5
5
|
export declare const MAX_LIMIT = 500;
|
|
6
|
+
/** The most pairs one `can_use` call may carry. */
|
|
7
|
+
export declare const MAX_PAIRS = 50;
|
|
6
8
|
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/core/operations/limits.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,QAAQ,QAAS,CAAC;AAE/B,4EAA4E;AAC5E,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,SAAS,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/core/operations/limits.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,QAAQ,QAAS,CAAC;AAE/B,4EAA4E;AAC5E,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,SAAS,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/operations/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA2B,SAAS,EAAQ,MAAM,YAAY,CAAC;AAiE3E;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAmnB1C,CAAC"}
|
|
@@ -16,6 +16,12 @@ export type Prop = {
|
|
|
16
16
|
type: 'boolean';
|
|
17
17
|
description: string;
|
|
18
18
|
default?: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
type: 'array';
|
|
21
|
+
description: string;
|
|
22
|
+
items: JsonSchema;
|
|
23
|
+
minItems?: number;
|
|
24
|
+
maxItems?: number;
|
|
19
25
|
};
|
|
20
26
|
/** A JSON Schema fragment. Output schemas use it freely; `check.ts` understands the keywords below and ignores the rest. */
|
|
21
27
|
export type JsonSchema = {
|
|
@@ -34,6 +40,13 @@ export interface CliOption {
|
|
|
34
40
|
/** The placeholder in `--type <type>`; the property name when left out. */
|
|
35
41
|
value?: string;
|
|
36
42
|
description: string;
|
|
43
|
+
/**
|
|
44
|
+
* The flag, without the dashes, when it is not the property's name in kebab case. A flag that starts with `no-` turns a boolean property that
|
|
45
|
+
* is true by default off (`no-verbose`). For a list property it is the flag that is repeated, one per item (`pair`).
|
|
46
|
+
*/
|
|
47
|
+
flag?: string;
|
|
48
|
+
/** For a list of objects: the fields of each item, joined with `:` into the one value of each flag (`['fg', 'bg']` gives `--pair a:b`). */
|
|
49
|
+
items?: string[];
|
|
37
50
|
}
|
|
38
51
|
/** How the command line serves an operation. */
|
|
39
52
|
export interface CliSpec {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/operations/types.ts"],"names":[],"mappings":"AAEA,6GAA6G;AAC7G,MAAM,MAAM,IAAI,GACZ;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACzH;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC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AAE,CAAC;IAClH,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,4CAA4C;IAC5C,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC;IACrB,mEAAmE;IACnE,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,6HAA6H;AAC7H,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/core/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../src/core/preflight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAc3E,MAAM,WAAW,YAAY;IAC3B,0GAA0G;IAC1G,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAOD,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,MAAM,EAAE,CAYvH;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,IAAI,CAGpH"}
|
package/dist/core/read/can.d.ts
CHANGED
|
@@ -28,8 +28,6 @@ export type CanRole = 'text' | 'ui';
|
|
|
28
28
|
export declare const CAN_ROLES: readonly CanRole[];
|
|
29
29
|
/** WCAG 1.4.11 asks 3:1 of a graphic and of a control's boundary, the same figure as large text. */
|
|
30
30
|
export declare const NON_TEXT_MINIMUM: number;
|
|
31
|
-
/** The modifier `--theme` names a context of. */
|
|
32
|
-
export declare const THEME_MODIFIER = "theme";
|
|
33
31
|
/**
|
|
34
32
|
* Whether the foreground token may be used as text on the background token, from the brand's own rules and nothing else: the `usage` rules
|
|
35
33
|
* on the foreground (role "text") and the background (role "background"), and the `pairs`. Pairs are a list, as the brand book treats them: when
|
|
@@ -39,6 +37,19 @@ export declare const THEME_MODIFIER = "theme";
|
|
|
39
37
|
* rule is read for the roles `border`, `icon` and `interactive`, and `pairs` do not apply, because they are text pairs.
|
|
40
38
|
*
|
|
41
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.
|
|
42
41
|
*/
|
|
43
|
-
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;
|
|
43
|
+
/** The answer without its `checks` when it is allowed: a denial keeps them, since they are the reason. */
|
|
44
|
+
export declare function withoutChecks(answer: CanAnswer): Omit<CanAnswer, 'checks'> & {
|
|
45
|
+
checks?: CanCheck[];
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* `canUse` for a list of pairs, one answer each, in order, at most MAX_PAIRS. A pair with an unknown token fails the whole call, and the
|
|
49
|
+
* message starts with its place in the list (`pairs[1]: ...`), so no answer is a half answer.
|
|
50
|
+
*/
|
|
51
|
+
export declare function canUseMany(data: BlazonData, pairs: readonly {
|
|
52
|
+
fg: string;
|
|
53
|
+
bg: string;
|
|
54
|
+
}[], role?: CanRole, theme?: string): CanAnswer[];
|
|
44
55
|
//# sourceMappingURL=can.d.ts.map
|
|
@@ -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;
|
|
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;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AACpC,eAAO,MAAM,SAAS,EAAE,SAAS,OAAO,EAAmB,CAAC;AAE5D,oGAAoG;AACpG,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAwC7D;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,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
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AG,gBAAgB,CAwCnG;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAY/G"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { LookupError, cleanPath, findToken } from './lookup.js';
|
|
2
2
|
export { describeToken, tokenNames, type TokenDescription, type TokenNames } from './token.js';
|
|
3
|
-
export { listTokens, isGroupPath, type TokenList, type TokenListing } from './list.js';
|
|
3
|
+
export { listTokens, isGroupPath, TIERS, type TokenList, type TokenListing } from './list.js';
|
|
4
4
|
export { ruleEntries, tokenRules, allPairs, type RuleEntry, type TokenRules, type PairRule, type UsageRule, type LogoRule, type ReviewRule } from './rules.js';
|
|
5
|
-
export {
|
|
5
|
+
export { inTheme, themeNames, THEME_MODIFIER } from './theme.js';
|
|
6
|
+
export { canUse, canUseMany, withoutChecks, CAN_ROLES, NON_TEXT_MINIMUM, type CanAnswer, type CanCheck, type CanRole } from './can.js';
|
|
6
7
|
export { describeFonts, fontFaceCss, type FontsDescription, type FamilyUse, type FontFileEntry } from './fonts.js';
|
|
7
8
|
export { describeLogo, type LogoDescription, type LogoAsset, type LogoVariant } from './logo.js';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/read/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/read/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/J,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AACvI,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACnH,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/core/read/list.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BlazonData, TokenType } from '../../types/index.js';
|
|
1
|
+
import { BlazonData, Tier, TokenType } from '../../types/index.js';
|
|
2
|
+
/** The tiers a token can have, as `$extensions["dev.blazon"].tier` writes them. */
|
|
3
|
+
export declare const TIERS: readonly ["primitive", "semantic", "component"];
|
|
2
4
|
/** One line of the token list: enough to pick a path, and to use its value without a second call. */
|
|
3
5
|
export interface TokenListing {
|
|
4
6
|
path: string;
|
|
@@ -7,12 +9,22 @@ export interface TokenListing {
|
|
|
7
9
|
value: string | number;
|
|
8
10
|
/** The token this one aliases directly */
|
|
9
11
|
aliasOf?: string;
|
|
12
|
+
/** `primitive`, `semantic` or `component`, when the brand writes one */
|
|
13
|
+
tier?: Tier;
|
|
14
|
+
/** With a theme: the value in the default tokens, only when the theme changes it */
|
|
15
|
+
defaultValue?: string | number;
|
|
10
16
|
}
|
|
11
17
|
export interface TokenList {
|
|
12
18
|
/** The group asked for, as a clean path; absent for the whole brand */
|
|
13
19
|
group?: string;
|
|
14
20
|
/** The type asked for; absent for every type */
|
|
15
21
|
type?: TokenType;
|
|
22
|
+
/** The tier asked for; absent for every tier */
|
|
23
|
+
tier?: Tier;
|
|
24
|
+
/** The theme the values are resolved in; absent for the default tokens */
|
|
25
|
+
theme?: string;
|
|
26
|
+
/** The names of the brand's themes (the contexts of its resolver `theme` modifier); absent when it has none */
|
|
27
|
+
themes?: string[];
|
|
16
28
|
tokens: TokenListing[];
|
|
17
29
|
}
|
|
18
30
|
/** Whether `typed` names a group of tokens and not a token. A path that is both is a token. */
|
|
@@ -24,5 +36,7 @@ export declare function isGroupPath(data: BlazonData, typed: string): boolean;
|
|
|
24
36
|
export declare function listTokens(data: BlazonData, options?: {
|
|
25
37
|
group?: string;
|
|
26
38
|
type?: string;
|
|
39
|
+
tier?: string;
|
|
40
|
+
theme?: string;
|
|
27
41
|
}): TokenList;
|
|
28
42
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/read/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/core/read/list.ts"],"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|
|
|
12
12
|
}
|
|
13
13
|
export interface LogoAsset {
|
|
14
14
|
id: string;
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/** The configured variants that use
|
|
15
|
+
/** Every file of the id, from the project root, in the default order of its representations (RFC 0001 section 12): the first is the one a reader without a preference takes */
|
|
16
|
+
files: string[];
|
|
17
|
+
/** The configured variants that use one of these files */
|
|
18
18
|
variants: ('onLight' | 'onDark')[];
|
|
19
19
|
/** What the sidecar says, as brand.json carries it: clearSpace, minSize, maxSize, replacedBelow, lockup, placement, partnership, initiative, unit, ink, background, do, dont */
|
|
20
20
|
rules: AssetMeta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/core/read/logo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/core/read/logo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMhF,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,KAAK,EAAE,OAAO,CAAC;IACf,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6HAA6H;IAC7H,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,+KAA+K;IAC/K,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,0DAA0D;IAC1D,QAAQ,EAAE,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC;IACnC,gLAAgL;IAChL,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,uHAAuH;IACvH,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC9D;AAED,8HAA8H;AAC9H,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,eAAe,CAgCjG"}
|
|
@@ -4,6 +4,6 @@ export declare class LookupError extends Error {
|
|
|
4
4
|
}
|
|
5
5
|
/** A token path as typed: `{color.brand}` and `color.brand` are the same path. */
|
|
6
6
|
export declare const cleanPath: (typed: string) => string;
|
|
7
|
-
/** The token at `typed
|
|
8
|
-
export declare function findToken(data: BlazonData, typed: string): TokenItem;
|
|
7
|
+
/** The token at `typed` (in the theme `theme` when the data is one, for the message), or a LookupError that names the closest path when there is one near. */
|
|
8
|
+
export declare function findToken(data: BlazonData, typed: string, theme?: string): TokenItem;
|
|
9
9
|
//# sourceMappingURL=lookup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../../src/core/read/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGlE,2IAA2I;AAC3I,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,kFAAkF;AAClF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,MAI/B,CAAC;AAEZ,
|
|
1
|
+
{"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../../src/core/read/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGlE,2IAA2I;AAC3I,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,kFAAkF;AAClF,eAAO,MAAM,SAAS,GAAI,OAAO,MAAM,KAAG,MAI/B,CAAC;AAEZ,8JAA8J;AAC9J,wBAAgB,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAcpF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BlazonData } from '../../types/index.js';
|
|
2
|
+
/** The modifier `--theme` names a context of. */
|
|
3
|
+
export declare const THEME_MODIFIER = "theme";
|
|
4
|
+
/** The names of the contexts of the resolver's `theme` modifier, in the resolver's order; empty when the brand has no such modifier. */
|
|
5
|
+
export declare function themeNames(data: BlazonData): string[];
|
|
6
|
+
/** The brand as the `theme` context `name` resolves it: its changes put over the default tokens by `contextItems` and over the default's groups by `contextGroups`. A token the theme removed is not in it. */
|
|
7
|
+
export declare function inTheme(data: BlazonData, name: string): BlazonData;
|
|
8
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/core/read/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,iDAAiD;AACjD,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,wIAAwI;AACxI,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAErD;AAED,+MAA+M;AAC/M,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAQlE"}
|
|
@@ -15,8 +15,12 @@ export declare function tokenNames(data: BlazonData, item: TokenItem): TokenName
|
|
|
15
15
|
export interface TokenDescription {
|
|
16
16
|
path: string;
|
|
17
17
|
type?: TokenType;
|
|
18
|
-
/** CSS-ready, aliases resolved */
|
|
18
|
+
/** CSS-ready, aliases resolved; with a theme, as that theme resolves it */
|
|
19
19
|
value: string | number;
|
|
20
|
+
/** With a theme: the value in the default tokens, only when the theme changes it */
|
|
21
|
+
defaultValue?: string | number;
|
|
22
|
+
/** The theme the value is resolved in; absent for the default tokens */
|
|
23
|
+
theme?: string;
|
|
20
24
|
/** A composite token's parts, CSS-ready */
|
|
21
25
|
parts?: Record<string, string | number>;
|
|
22
26
|
description?: string;
|
|
@@ -37,5 +41,5 @@ export interface TokenDescription {
|
|
|
37
41
|
sourceFile: string;
|
|
38
42
|
}
|
|
39
43
|
/** Everything the brand says about one token, from the same compile every other command uses. */
|
|
40
|
-
export declare function describeToken(data: BlazonData, typedPath: string): TokenDescription;
|
|
44
|
+
export declare function describeToken(data: BlazonData, typedPath: string, theme?: string): TokenDescription;
|
|
41
45
|
//# sourceMappingURL=token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/core/read/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/core/read/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAK7E,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,qEAAqE;AACrE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE;QACL,0CAA0C;QAC1C,QAAQ,EAAE,MAAM,CAAC;QACjB,sGAAsG;QACtG,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;IACF,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,CAMxE;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,wGAAwG;IACxG,QAAQ,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7F,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAsBnG"}
|
|
@@ -5,14 +5,16 @@ import { CheckCode } from '../checker/catalogue.js';
|
|
|
5
5
|
export declare function aliasTarget(value: unknown): string | undefined;
|
|
6
6
|
export declare class Resolver {
|
|
7
7
|
private readonly declared;
|
|
8
|
-
private readonly
|
|
9
|
-
|
|
8
|
+
private readonly states;
|
|
9
|
+
/** The paths in the `resolving` state, in the order the walk entered them. */
|
|
10
|
+
private readonly stack;
|
|
10
11
|
readonly problems: Finding[];
|
|
11
12
|
constructor(tokens: DeclaredToken[]);
|
|
12
13
|
/** Resolves a token's `$value`, following aliases through nested composite values. */
|
|
13
14
|
token(path: string): unknown;
|
|
14
15
|
private value;
|
|
15
|
-
|
|
16
|
+
/** The declared type of a token, or of the first token down its alias chain that has one. A loop or a broken link gives undefined. */
|
|
17
|
+
typeOf(token: DeclaredToken): TokenType | undefined;
|
|
16
18
|
report(path: string, code: CheckCode, message: string): void;
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=alias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/alias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMlE,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG9D;
|
|
1
|
+
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/alias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMlE,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG9D;AAKD,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IACnD,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAM;gBAEtB,MAAM,EAAE,aAAa,EAAE;IAInC,sFAAsF;IACtF,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAY5B,OAAO,CAAC,KAAK;IA0Bb,sIAAsI;IACtI,MAAM,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS;IAYnD,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAG7D"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { TokenContext, TokenItem } from '../../types/index.js';
|
|
1
|
+
import { GroupMeta, ParsedTokens, TokenContext, TokenItem } from '../../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* The default's tokens with the changes of `contexts` in place, in the default's order, then any token only a context has.
|
|
4
4
|
*
|
|
5
5
|
* A change is applied field by field: what a context's token has that the default's does not, and what it lacks that the default's has. So two
|
|
6
6
|
* contexts that change one token in different ways (one its value, one its description) both show, whichever comes first, and where they change
|
|
7
|
-
* the same field the later context wins.
|
|
7
|
+
* the same field the later context wins. A token a context lists in `removed` is left out, and it stays out when another chosen context changes it.
|
|
8
8
|
*/
|
|
9
|
-
export declare function contextItems(items: readonly TokenItem[], contexts: readonly Pick<TokenContext, 'tokens' | 'metadataChanges'>[]): TokenItem[];
|
|
9
|
+
export declare function contextItems(items: readonly TokenItem[], contexts: readonly Pick<TokenContext, 'tokens' | 'metadataChanges' | 'removed'>[]): TokenItem[];
|
|
10
|
+
/** The default's group records with the changes of `contexts` in place: a changed group replaces the default's, a removed one is dropped. */
|
|
11
|
+
export declare function contextGroups(groups: readonly GroupMeta[], contexts: readonly Pick<TokenContext, 'groupChanges' | 'removedGroups'>[]): GroupMeta[];
|
|
12
|
+
/**
|
|
13
|
+
* What a context leaves out or changes beyond its tokens' values, against the default: the paths of the default's tokens it does not have,
|
|
14
|
+
* the groups whose description or rules differ (the context's whole record), and the default's groups that carry no description or rules in
|
|
15
|
+
* the context. Only the non-empty parts are present, and `removed` and `removedGroups` are sorted.
|
|
16
|
+
*/
|
|
17
|
+
export declare function contextRemovals(base: Pick<ParsedTokens, 'items' | 'groupMeta'>, context: Pick<ParsedTokens, 'items' | 'groupMeta'>): Pick<TokenContext, 'removed' | 'groupChanges' | 'removedGroups'>;
|
|
10
18
|
//# sourceMappingURL=contexts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAa7F;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,iBAAiB,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,EAAE,CAsBxJ;AAED,6IAA6I;AAC7I,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,eAAe,CAAC,EAAE,GAAG,SAAS,EAAE,CAOlJ;AAID;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC,EAC/C,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,CAAC,GACjD,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,cAAc,GAAG,eAAe,CAAC,CAkBlE"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ParsedTokens } from '../../../types/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Formats resolved tokens as a DTCG document: aliases replaced, `$extensions` kept for other tools. A group's `$extensions` other than
|
|
4
|
+
* `dev.blazon` come back at the group's path, first among its keys, for each group that holds a token in `parsed.items`.
|
|
5
|
+
*/
|
|
3
6
|
export declare function formatJsonTokens(parsed: ParsedTokens): string;
|
|
4
7
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/formatters/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/formatters/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CA0B7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-lines.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/key-lines.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mHAAmH;AACnH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;
|
|
1
|
+
{"version":3,"file":"key-lines.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/key-lines.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mHAAmH;AACnH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C;AAkBD,uMAAuM;AACvM,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAS1D;AAgJD,+IAA+I;AAC/I,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGvF,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,OAAO,GAAE,WAAgB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/core/tokens/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAGvF,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,OAAO,GAAE,WAAgB,GAAG,SAAS,CA4CnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,YAAY,EAAa,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,YAAY,EAAE,YAAY,EAAa,MAAM,yBAAyB,CAAC;AAS9F,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,MAAM,EAAE,YAAY,CAAC;IACrB,+DAA+D;IAC/D,QAAQ,EAAE;QAAE,OAAO,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAC;CAC7D;AA6BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,kBAAkB,CA2CzI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/parse.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAE5D,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,C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ACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,qBAAa,aAAc,SAAQ,KAAK;CAAG;AAM3C,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAE3C;AAOD;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAqB,CAAC;AAoBhD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,QAAQ,CA0CtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/sources.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAA0B,KAAK,QAAQ,EAAe,MAAM,YAAY,CAAC;AAEhF,gFAAgF;AAChF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/C,qBAAa,YAAY;IAKrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IALvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoC;IAC1D,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAM;gBAGf,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM;IAG/B,SAAS,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,EAAE;IAIhD,OAAO,CAAC,OAAO;IAMf,OAAO,CAAC,MAAM;IAgBd,OAAO,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../src/core/tokens/resolver/sources.ts"],"names":[],"mappings":"AAEA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