@webx-ui/module-blocks 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * CSS knows only tokens (THEMES §8) — the theme engine's `Checks\CssCheck`, rule for rule, for
3
+ * the editor's live lints. Not a parser: a walk over braces and semicolons that knows strings,
4
+ * comments and parentheses.
5
+ *
6
+ * Unlike the engine it has no `media-width`: the editor's `media-query` says it of any `@media`.
7
+ */
8
+ export type CssProblem = 'literal-color' | 'literal-font' | 'unknown-token' | 'token-fallback';
9
+ export interface CssFinding {
10
+ problem: CssProblem;
11
+ line: number;
12
+ subject: string;
13
+ }
14
+ /**
15
+ * @param tokens The chain's vocabulary, names without `--site-`.
16
+ */
17
+ export declare function cssFindings(css: string, tokens: Iterable<string>): CssFinding[];