@zazz-ui/core 0.6.2 → 0.7.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.
Files changed (97) hide show
  1. package/AUTHORING.md +5 -3
  2. package/CHANGELOG.md +38 -0
  3. package/README.md +3 -3
  4. package/dist/csp-D72qtdXZ.js +1 -0
  5. package/dist/sri.json +54 -49
  6. package/dist/zazz.css +1 -1
  7. package/dist/zazz.js +1 -1
  8. package/editor/zazz.css-data.json +312 -24
  9. package/editor/zazz.language-data.json +9 -9
  10. package/editor/zazz.lint-data.json +2028 -0
  11. package/package.json +1 -1
  12. package/src/base/_defaults.css +367 -0
  13. package/src/base/_layers.css +6 -2
  14. package/src/base/_properties-2xl.css +8 -2
  15. package/src/base/_properties-active.css +12 -0
  16. package/src/base/_properties-checked.css +12 -0
  17. package/src/base/_properties-current.css +12 -0
  18. package/src/base/_properties-disabled.css +12 -0
  19. package/src/base/_properties-focus-visible.css +12 -0
  20. package/src/base/_properties-focus-within.css +12 -0
  21. package/src/base/_properties-hover.css +12 -0
  22. package/src/base/_properties-lg.css +8 -2
  23. package/src/base/_properties-md.css +8 -2
  24. package/src/base/_properties-open.css +12 -0
  25. package/src/base/_properties-sm.css +8 -2
  26. package/src/base/_properties-starting.css +6 -0
  27. package/src/base/_properties-stuck.css +6 -0
  28. package/src/base/_properties-xl.css +8 -2
  29. package/src/base/_properties.css +12 -3
  30. package/src/base/_utilities-box.css +0 -15
  31. package/src/base/_utilities-effects.css +0 -15
  32. package/src/base/_utilities-flow.css +79 -68
  33. package/src/base/_utilities-grid.css +20 -32
  34. package/src/base/_utilities-sizing.css +0 -3
  35. package/src/base/_utilities-spacing.css +36 -11
  36. package/src/base/_utilities-tier-2xl.css +4 -1
  37. package/src/base/_utilities-tier-active.css +6 -0
  38. package/src/base/_utilities-tier-checked.css +6 -0
  39. package/src/base/_utilities-tier-current.css +6 -0
  40. package/src/base/_utilities-tier-disabled.css +6 -0
  41. package/src/base/_utilities-tier-focus-visible.css +6 -0
  42. package/src/base/_utilities-tier-focus-within.css +6 -0
  43. package/src/base/_utilities-tier-hover.css +6 -0
  44. package/src/base/_utilities-tier-lg.css +4 -1
  45. package/src/base/_utilities-tier-md.css +4 -1
  46. package/src/base/_utilities-tier-open.css +6 -0
  47. package/src/base/_utilities-tier-sm.css +4 -1
  48. package/src/base/_utilities-tier-starting.css +3 -0
  49. package/src/base/_utilities-tier-stuck.css +3 -0
  50. package/src/base/_utilities-tier-xl.css +4 -1
  51. package/src/base/_utilities-typography.css +0 -9
  52. package/src/base/csp.d.ts +19 -0
  53. package/src/base/csp.d.ts.map +1 -0
  54. package/src/base/csp.js +131 -0
  55. package/src/base/csp.ts +137 -0
  56. package/src/base/declarations.d.ts +36 -0
  57. package/src/base/declarations.d.ts.map +1 -0
  58. package/src/base/declarations.js +70 -0
  59. package/src/base/declarations.ts +97 -0
  60. package/src/base/kit-styling.d.ts +11 -0
  61. package/src/base/kit-styling.d.ts.map +1 -0
  62. package/src/base/kit-styling.js +467 -0
  63. package/src/base/kit-styling.ts +470 -0
  64. package/src/base/style-format.d.ts +3 -22
  65. package/src/base/style-format.d.ts.map +1 -1
  66. package/src/base/style-format.js +4 -62
  67. package/src/base/style-format.ts +4 -71
  68. package/src/base/utilities.d.ts +14 -6
  69. package/src/base/utilities.d.ts.map +1 -1
  70. package/src/base/utilities.js +81 -29
  71. package/src/base/utilities.ts +92 -38
  72. package/src/head.d.ts +6 -0
  73. package/src/head.d.ts.map +1 -1
  74. package/src/head.js +21 -14
  75. package/src/head.ts +38 -11
  76. package/src/index.css +1 -0
  77. package/src/index.js +22 -0
  78. package/src/index.ts +19 -0
  79. package/src/manifest.d.ts +21 -1
  80. package/src/manifest.d.ts.map +1 -1
  81. package/src/manifest.js +12 -2
  82. package/src/manifest.ts +27 -2
  83. package/src/primitives/debug/audit-core.d.ts +9 -1
  84. package/src/primitives/debug/audit-core.d.ts.map +1 -1
  85. package/src/primitives/debug/audit-core.js +58 -8
  86. package/src/primitives/debug/audit-core.ts +84 -7
  87. package/src/primitives/debug/debug.d.ts +0 -15
  88. package/src/primitives/debug/debug.d.ts.map +1 -1
  89. package/src/primitives/debug/debug.js +11 -2
  90. package/src/primitives/debug/debug.ts +12 -1
  91. package/src/primitives/prose/prose.html +3 -3
  92. package/src/primitives/table/table-size-sm.html +12 -12
  93. package/src/primitives/utilities/aspect-ratio.html +1 -0
  94. package/src/primitives/utilities/margin-auto.html +1 -1
  95. package/src/primitives/utilities/overflow.html +5 -6
  96. package/src/primitives/utilities/position.html +1 -1
  97. package/src/primitives/utilities/width.html +2 -1
package/src/head.js CHANGED
@@ -51,6 +51,9 @@ const CORE_RUNTIME_JS = [
51
51
  "base/zazz-element.js",
52
52
  // dynamically imported by index.js where container scroll-state queries are unsupported
53
53
  "base/scroll-state.js",
54
+ // dynamically imported by index.js where the page's CSP blocks inline style attributes
55
+ "base/csp.js",
56
+ "base/declarations.js",
54
57
  ];
55
58
  /**
56
59
  * @description Builds the pinned jsDelivr URL for a dependency.
@@ -146,7 +149,7 @@ function fontsBlock(display) {
146
149
  * @returns The import-map script tag.
147
150
  * @private
148
151
  */
149
- function importMapBlock(extraIntegrity = {}) {
152
+ function importMapBlock(extraIntegrity = {}, nonce) {
150
153
  const imports = {};
151
154
  const integrity = { ...extraIntegrity };
152
155
  for (const dep of ESM_DEPENDENCIES) {
@@ -156,7 +159,7 @@ function importMapBlock(extraIntegrity = {}) {
156
159
  }
157
160
  const json = JSON.stringify({ imports, integrity }, null, 2);
158
161
  return `<!-- Import map: bare specifiers in Zazz scripts resolve to pinned, SRI-checked files -->
159
- <script type="importmap">
162
+ <script type="importmap"${nonceAttr(nonce)}>
160
163
  ${json}
161
164
  </script>`;
162
165
  }
@@ -173,14 +176,18 @@ function polyfillsBlock() {
173
176
  return `<!-- Polyfill: Interest Invokers (interestfor) — native in Chromium only -->
174
177
  <script type="module" src="${cdnUrl(interest)}" integrity="${interest.integrity}" crossorigin="anonymous"></script>`;
175
178
  }
179
+ /** ` nonce="…"` for an inline script under a strict `script-src`, or nothing. */
180
+ function nonceAttr(nonce) {
181
+ return nonce ? ` nonce="${nonce.replace(/"/g, "&quot;")}"` : "";
182
+ }
176
183
  /**
177
184
  * The theme-persistence script. Runs inline (no `defer`) while the parser is
178
185
  * still in `<head>`, so the `theme-*` switch lands on `<html>` before first paint. The
179
186
  * try/catch covers contexts where storage access throws (sandboxed iframes,
180
187
  * blocked site data).
181
188
  */
182
- const THEME_SCRIPT = `<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
183
- <script>
189
+ const themeScript = (nonce) => `<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
190
+ <script${nonceAttr(nonce)}>
184
191
  (() => {
185
192
  try {
186
193
  // A stored choice pins the scheme with the theme-dark / theme-light
@@ -209,7 +216,7 @@ const THEME_SCRIPT = `<!-- Theme: apply the persisted (or preferred) scheme befo
209
216
  * buildHead({ base: "/zazz/src", scripts: false, fontDisplay: "optional" });
210
217
  */
211
218
  export function buildHead(options = {}) {
212
- const { base = "./zazz", cdn, scripts = true, fontDisplay = "swap", theme = true } = options;
219
+ const { base = "./zazz", cdn, scripts = true, fontDisplay = "swap", theme = true, nonce, } = options;
213
220
  const parts = [
214
221
  `<meta charset="utf-8">`,
215
222
  `<meta name="viewport" content="width=device-width, initial-scale=1">`,
@@ -219,10 +226,10 @@ export function buildHead(options = {}) {
219
226
  if (fontDisplay !== false)
220
227
  parts.push(fontsBlock(fontDisplay));
221
228
  if (cdn) {
222
- parts.push(...cdnBlocks(cdn, scripts));
229
+ parts.push(...cdnBlocks(cdn, scripts, nonce));
223
230
  }
224
231
  else if (options.primitives) {
225
- parts.push(...granularBlocks(options.primitives, (path) => `${base}/${path}`, () => "", scripts));
232
+ parts.push(...granularBlocks(options.primitives, (path) => `${base}/${path}`, () => "", scripts, {}, nonce));
226
233
  }
227
234
  else {
228
235
  parts.push(`<!-- Zazz styles: one bundle (index.css @imports every layer in cascade order) -->`, `<link rel="stylesheet" href="${base}/index.css">`);
@@ -230,11 +237,11 @@ export function buildHead(options = {}) {
230
237
  parts.push(
231
238
  // The import map must precede EVERY module load — including the
232
239
  // modulepreload hint — or the browser rejects it and bare specifiers fail.
233
- importMapBlock(), `<link rel="modulepreload" href="${base}/index.js">`, polyfillsBlock(), `<!-- Zazz behavior: one ES module imports every component script in dependency order -->`, `<script type="module" src="${base}/index.js"></script>`);
240
+ importMapBlock({}, nonce), `<link rel="modulepreload" href="${base}/index.js">`, polyfillsBlock(), `<!-- Zazz behavior: one ES module imports every component script in dependency order -->`, `<script type="module" src="${base}/index.js"></script>`);
234
241
  }
235
242
  }
236
243
  if (theme)
237
- parts.push(THEME_SCRIPT);
244
+ parts.push(themeScript(nonce));
238
245
  return parts.join("\n");
239
246
  }
240
247
  // --- CDN mode ---
@@ -250,7 +257,7 @@ export function buildHead(options = {}) {
250
257
  * @returns The head fragments between the fonts block and the theme script.
251
258
  * @private
252
259
  */
253
- function cdnBlocks(cdn, scripts) {
260
+ function cdnBlocks(cdn, scripts, nonce) {
254
261
  const { version, primitives, sri } = cdn;
255
262
  if (!EXACT_VERSION.test(version)) {
256
263
  throw new Error(`CDN URLs must pin an exact version (got "${version}"); ` +
@@ -265,7 +272,7 @@ function cdnBlocks(cdn, scripts) {
265
272
  if (!primitives) {
266
273
  parts.push(`<!-- Zazz styles: the whole kit, one request -->`, `<link rel="stylesheet" href="${url("dist/zazz.css")}"${attrs("dist/zazz.css")}>`);
267
274
  if (scripts) {
268
- parts.push(importMapBlock(), `<link rel="modulepreload" href="${url("dist/zazz.js")}"${attrs("dist/zazz.js")}>`, polyfillsBlock(), `<!-- Zazz behavior: the whole kit, one module -->`, `<script type="module" src="${url("dist/zazz.js")}"${attrs("dist/zazz.js")}></script>`);
275
+ parts.push(importMapBlock({}, nonce), `<link rel="modulepreload" href="${url("dist/zazz.js")}"${attrs("dist/zazz.js")}>`, polyfillsBlock(), `<!-- Zazz behavior: the whole kit, one module -->`, `<script type="module" src="${url("dist/zazz.js")}"${attrs("dist/zazz.js")}></script>`);
269
276
  }
270
277
  return parts;
271
278
  }
@@ -279,7 +286,7 @@ function cdnBlocks(cdn, scripts) {
279
286
  transitive[url(`src/${path}`)] = hash;
280
287
  }
281
288
  }
282
- return granularBlocks(primitives, (path) => url(`src/${path}`), (path) => attrs(`src/${path}`), scripts, transitive);
289
+ return granularBlocks(primitives, (path) => url(`src/${path}`), (path) => attrs(`src/${path}`), scripts, transitive, nonce);
283
290
  }
284
291
  /**
285
292
  * @description The granular grain, local or CDN: base layers in cascade order,
@@ -293,7 +300,7 @@ function cdnBlocks(cdn, scripts) {
293
300
  * @returns The head fragments between the fonts block and the theme script.
294
301
  * @private
295
302
  */
296
- function granularBlocks(primitives, url, attrs, scripts, transitive = {}) {
303
+ function granularBlocks(primitives, url, attrs, scripts, transitive = {}, nonce) {
297
304
  const parts = [];
298
305
  const closure = resolveClosure(primitives);
299
306
  const css = [
@@ -317,7 +324,7 @@ function granularBlocks(primitives, url, attrs, scripts, transitive = {}) {
317
324
  }),
318
325
  ]),
319
326
  ];
320
- parts.push(importMapBlock(transitive), polyfillsBlock(), `<!-- Zazz behavior: side-effect modules by tag; the rest via module imports -->`, ...scriptFiles.map((path) => `<script type="module" src="${url(path)}"${attrs(path)}></script>`));
327
+ parts.push(importMapBlock(transitive, nonce), polyfillsBlock(), `<!-- Zazz behavior: side-effect modules by tag; the rest via module imports -->`, ...scriptFiles.map((path) => `<script type="module" src="${url(path)}"${attrs(path)}></script>`));
321
328
  }
322
329
  return parts;
323
330
  }
package/src/head.ts CHANGED
@@ -75,6 +75,9 @@ const CORE_RUNTIME_JS = [
75
75
  "base/zazz-element.js",
76
76
  // dynamically imported by index.js where container scroll-state queries are unsupported
77
77
  "base/scroll-state.js",
78
+ // dynamically imported by index.js where the page's CSP blocks inline style attributes
79
+ "base/csp.js",
80
+ "base/declarations.js",
78
81
  ];
79
82
 
80
83
  /**
@@ -176,7 +179,7 @@ function fontsBlock(display: "swap" | "optional"): string {
176
179
  * @returns The import-map script tag.
177
180
  * @private
178
181
  */
179
- function importMapBlock(extraIntegrity: Record<string, string> = {}): string {
182
+ function importMapBlock(extraIntegrity: Record<string, string> = {}, nonce?: string): string {
180
183
  const imports: Record<string, string> = {};
181
184
  const integrity: Record<string, string> = { ...extraIntegrity };
182
185
  for (const dep of ESM_DEPENDENCIES) {
@@ -186,7 +189,7 @@ function importMapBlock(extraIntegrity: Record<string, string> = {}): string {
186
189
  }
187
190
  const json = JSON.stringify({ imports, integrity }, null, 2);
188
191
  return `<!-- Import map: bare specifiers in Zazz scripts resolve to pinned, SRI-checked files -->
189
- <script type="importmap">
192
+ <script type="importmap"${nonceAttr(nonce)}>
190
193
  ${json}
191
194
  </script>`;
192
195
  }
@@ -205,14 +208,21 @@ function polyfillsBlock(): string {
205
208
  <script type="module" src="${cdnUrl(interest)}" integrity="${interest.integrity}" crossorigin="anonymous"></script>`;
206
209
  }
207
210
 
211
+ /** ` nonce="…"` for an inline script under a strict `script-src`, or nothing. */
212
+ function nonceAttr(nonce?: string): string {
213
+ return nonce ? ` nonce="${nonce.replace(/"/g, "&quot;")}"` : "";
214
+ }
215
+
208
216
  /**
209
217
  * The theme-persistence script. Runs inline (no `defer`) while the parser is
210
218
  * still in `<head>`, so the `theme-*` switch lands on `<html>` before first paint. The
211
219
  * try/catch covers contexts where storage access throws (sandboxed iframes,
212
220
  * blocked site data).
213
221
  */
214
- const THEME_SCRIPT = `<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
215
- <script>
222
+ const themeScript = (
223
+ nonce?: string,
224
+ ) => `<!-- Theme: apply the persisted (or preferred) scheme before first paint -->
225
+ <script${nonceAttr(nonce)}>
216
226
  (() => {
217
227
  try {
218
228
  // A stored choice pins the scheme with the theme-dark / theme-light
@@ -272,6 +282,12 @@ export interface HeadOptions {
272
282
  fontDisplay?: "swap" | "optional" | false;
273
283
  /** Include the inline theme-persistence script (last in head). Default `true`. */
274
284
  theme?: boolean;
285
+ /**
286
+ * A CSP nonce for the two inline scripts (the import map and the theme
287
+ * script), so a strict `script-src 'nonce-…'` allows them. The page's own
288
+ * value, generated per response; never a constant.
289
+ */
290
+ nonce?: string;
275
291
  /**
276
292
  * Local granular grain: the primitives this page uses, loaded file by file
277
293
  * from `base` (base layers, the closure's stylesheets in cascade order, one
@@ -295,7 +311,14 @@ export interface HeadOptions {
295
311
  * buildHead({ base: "/zazz/src", scripts: false, fontDisplay: "optional" });
296
312
  */
297
313
  export function buildHead(options: HeadOptions = {}): string {
298
- const { base = "./zazz", cdn, scripts = true, fontDisplay = "swap", theme = true } = options;
314
+ const {
315
+ base = "./zazz",
316
+ cdn,
317
+ scripts = true,
318
+ fontDisplay = "swap",
319
+ theme = true,
320
+ nonce,
321
+ } = options;
299
322
 
300
323
  const parts: string[] = [
301
324
  `<meta charset="utf-8">`,
@@ -307,7 +330,7 @@ export function buildHead(options: HeadOptions = {}): string {
307
330
  if (fontDisplay !== false) parts.push(fontsBlock(fontDisplay));
308
331
 
309
332
  if (cdn) {
310
- parts.push(...cdnBlocks(cdn, scripts));
333
+ parts.push(...cdnBlocks(cdn, scripts, nonce));
311
334
  } else if (options.primitives) {
312
335
  parts.push(
313
336
  ...granularBlocks(
@@ -315,6 +338,8 @@ export function buildHead(options: HeadOptions = {}): string {
315
338
  (path) => `${base}/${path}`,
316
339
  () => "",
317
340
  scripts,
341
+ {},
342
+ nonce,
318
343
  ),
319
344
  );
320
345
  } else {
@@ -327,7 +352,7 @@ export function buildHead(options: HeadOptions = {}): string {
327
352
  parts.push(
328
353
  // The import map must precede EVERY module load — including the
329
354
  // modulepreload hint — or the browser rejects it and bare specifiers fail.
330
- importMapBlock(),
355
+ importMapBlock({}, nonce),
331
356
  `<link rel="modulepreload" href="${base}/index.js">`,
332
357
  polyfillsBlock(),
333
358
  `<!-- Zazz behavior: one ES module imports every component script in dependency order -->`,
@@ -336,7 +361,7 @@ export function buildHead(options: HeadOptions = {}): string {
336
361
  }
337
362
  }
338
363
 
339
- if (theme) parts.push(THEME_SCRIPT);
364
+ if (theme) parts.push(themeScript(nonce));
340
365
 
341
366
  return parts.join("\n");
342
367
  }
@@ -355,7 +380,7 @@ export function buildHead(options: HeadOptions = {}): string {
355
380
  * @returns The head fragments between the fonts block and the theme script.
356
381
  * @private
357
382
  */
358
- function cdnBlocks(cdn: CdnHeadOptions, scripts: boolean): string[] {
383
+ function cdnBlocks(cdn: CdnHeadOptions, scripts: boolean, nonce?: string): string[] {
359
384
  const { version, primitives, sri } = cdn;
360
385
  if (!EXACT_VERSION.test(version)) {
361
386
  throw new Error(
@@ -377,7 +402,7 @@ function cdnBlocks(cdn: CdnHeadOptions, scripts: boolean): string[] {
377
402
  );
378
403
  if (scripts) {
379
404
  parts.push(
380
- importMapBlock(),
405
+ importMapBlock({}, nonce),
381
406
  `<link rel="modulepreload" href="${url("dist/zazz.js")}"${attrs("dist/zazz.js")}>`,
382
407
  polyfillsBlock(),
383
408
  `<!-- Zazz behavior: the whole kit, one module -->`,
@@ -402,6 +427,7 @@ function cdnBlocks(cdn: CdnHeadOptions, scripts: boolean): string[] {
402
427
  (path) => attrs(`src/${path}`),
403
428
  scripts,
404
429
  transitive,
430
+ nonce,
405
431
  );
406
432
  }
407
433
 
@@ -423,6 +449,7 @@ function granularBlocks(
423
449
  attrs: (path: string) => string,
424
450
  scripts: boolean,
425
451
  transitive: Record<string, string> = {},
452
+ nonce?: string,
426
453
  ): string[] {
427
454
  const parts: string[] = [];
428
455
  const closure = resolveClosure(primitives);
@@ -453,7 +480,7 @@ function granularBlocks(
453
480
  ]),
454
481
  ];
455
482
  parts.push(
456
- importMapBlock(transitive),
483
+ importMapBlock(transitive, nonce),
457
484
  polyfillsBlock(),
458
485
  `<!-- Zazz behavior: side-effect modules by tag; the rest via module imports -->`,
459
486
  ...scriptFiles.map(
package/src/index.css CHANGED
@@ -116,6 +116,7 @@
116
116
  @import "./base/_utilities-effects.css";
117
117
  @import "./base/_utilities-box.css";
118
118
  @import "./base/_utilities-pseudo.css";
119
+ @import "./base/_defaults.css";
119
120
  @import "./base/_switches.css";
120
121
 
121
122
  /* Migration shims: beat all other legacy sublayers; Zazz still wins. */
package/src/index.js CHANGED
@@ -38,3 +38,25 @@ import "./base/navigation.js";
38
38
  if (typeof CSS !== "undefined" && !CSS.supports("container-type", "scroll-state")) {
39
39
  void import("./base/scroll-state.js");
40
40
  }
41
+ // A Content Security Policy that blocks inline style attributes leaves the
42
+ // attribute text in the DOM with an empty declaration block, and with it every
43
+ // utility unapplied; load the CSSOM fallback. A page that allows them
44
+ // (`style-src-attr 'unsafe-inline'`) never fetches it.
45
+ function blockedInlineStyles() {
46
+ for (const el of document.querySelectorAll("[style]")) {
47
+ const text = el.getAttribute("style");
48
+ if (text?.includes(":") && el.style.length === 0)
49
+ return true;
50
+ }
51
+ return false;
52
+ }
53
+ if (typeof document !== "undefined") {
54
+ const check = () => {
55
+ if (blockedInlineStyles())
56
+ void import("./base/csp.js");
57
+ };
58
+ if (document.readyState === "loading")
59
+ document.addEventListener("DOMContentLoaded", check);
60
+ else
61
+ check();
62
+ }
package/src/index.ts CHANGED
@@ -40,3 +40,22 @@ import "./base/navigation.ts";
40
40
  if (typeof CSS !== "undefined" && !CSS.supports("container-type", "scroll-state")) {
41
41
  void import("./base/scroll-state.ts");
42
42
  }
43
+
44
+ // A Content Security Policy that blocks inline style attributes leaves the
45
+ // attribute text in the DOM with an empty declaration block, and with it every
46
+ // utility unapplied; load the CSSOM fallback. A page that allows them
47
+ // (`style-src-attr 'unsafe-inline'`) never fetches it.
48
+ function blockedInlineStyles(): boolean {
49
+ for (const el of document.querySelectorAll("[style]")) {
50
+ const text = el.getAttribute("style");
51
+ if (text?.includes(":") && (el as HTMLElement).style.length === 0) return true;
52
+ }
53
+ return false;
54
+ }
55
+ if (typeof document !== "undefined") {
56
+ const check = () => {
57
+ if (blockedInlineStyles()) void import("./base/csp.ts");
58
+ };
59
+ if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", check);
60
+ else check();
61
+ }
package/src/manifest.d.ts CHANGED
@@ -87,9 +87,29 @@ export interface RuntimePolyfill {
87
87
  /**
88
88
  * Polyfills `index.ts` imports dynamically behind a `CSS.supports` test, so a
89
89
  * browser with the feature never fetches them. Vendored with the core runtime;
90
- * an entry script loads each one the way `index.ts` does.
90
+ * an entry script loads each one the way `index.ts` does. Every entry has a
91
+ * `supports` pair: the published CLI drops the whole list when one does not.
91
92
  */
92
93
  export declare const CORE_POLYFILLS: RuntimePolyfill[];
94
+ /** A runtime fallback, loaded only where a document check (not a CSS feature) says the page needs it. */
95
+ export interface RuntimeFallback {
96
+ /** The script, `src/`-relative. */
97
+ file: string;
98
+ /** Scripts it imports, `src/`-relative, vendored with it. */
99
+ requires: string[];
100
+ /**
101
+ * The check an entry script runs before importing it. `blocked-inline-styles`:
102
+ * some element's `style` attribute holds a declaration while its declaration
103
+ * block is empty, the shape of an attribute a Content Security Policy blocked.
104
+ */
105
+ gate: "blocked-inline-styles";
106
+ }
107
+ /**
108
+ * Fallbacks `index.ts` imports dynamically behind a document check, so a page
109
+ * that does not need one never fetches it. Vendored with the core runtime by a
110
+ * CLI that knows the gate; an older CLI ignores the list.
111
+ */
112
+ export declare const CORE_FALLBACKS: RuntimeFallback[];
93
113
  /** Every tag form in the kit; the generator excludes them from no-base emissions. */
94
114
  export declare const TAG_FORMS: string[];
95
115
  export declare const CSS_CASCADE_ORDER: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["manifest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAIH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAIlC,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,qDAAqD;IACrD,EAAE,EAAE,MAAM,EAAE,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,0EAA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AI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,eAAe,EAE3C,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,SAAS,EAAE,MAAM,EAErB,CAAC;AAEV,eAAO,MAAM,iBAAiB,EAAE,MAAM,EA0CrC,CAAC;AAIF;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAoBxD;AAID,MAAM,MAAM,aAAa,GACrB,cAAc,GACd,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,UAAU,GACV,UAAU,GACV,MAAM,GACN,aAAa,GACb,KAAK,GACL,UAAU,GACV,MAAM,GACN,SAAS,CAAC;AAEd;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,CAmC/E,CAAC"}
package/src/manifest.js CHANGED
@@ -180,7 +180,7 @@ export const PRIMITIVES = {
180
180
  debug: {
181
181
  css: [],
182
182
  js: ["primitives/debug/audit-core.js", "primitives/debug/debug.js"],
183
- base: ["base/utilities.js"],
183
+ base: ["base/kit-styling.js", "base/utilities.js"],
184
184
  primitives: [],
185
185
  bare: [],
186
186
  examples: [],
@@ -599,6 +599,7 @@ export const BASE_CSS_POST = [
599
599
  "base/_utilities-effects.css",
600
600
  "base/_utilities-box.css",
601
601
  "base/_utilities-pseudo.css",
602
+ "base/_defaults.css",
602
603
  "base/_switches.css",
603
604
  ];
604
605
  /**
@@ -618,11 +619,20 @@ export const CORE_RUNTIME = [
618
619
  /**
619
620
  * Polyfills `index.ts` imports dynamically behind a `CSS.supports` test, so a
620
621
  * browser with the feature never fetches them. Vendored with the core runtime;
621
- * an entry script loads each one the way `index.ts` does.
622
+ * an entry script loads each one the way `index.ts` does. Every entry has a
623
+ * `supports` pair: the published CLI drops the whole list when one does not.
622
624
  */
623
625
  export const CORE_POLYFILLS = [
624
626
  { file: "base/scroll-state.js", supports: ["container-type", "scroll-state"] },
625
627
  ];
628
+ /**
629
+ * Fallbacks `index.ts` imports dynamically behind a document check, so a page
630
+ * that does not need one never fetches it. Vendored with the core runtime by a
631
+ * CLI that knows the gate; an older CLI ignores the list.
632
+ */
633
+ export const CORE_FALLBACKS = [
634
+ { file: "base/csp.js", requires: ["base/declarations.js"], gate: "blocked-inline-styles" },
635
+ ];
626
636
  /** Every tag form in the kit; the generator excludes them from no-base emissions. */
627
637
  export const TAG_FORMS = Object.values(PRIMITIVES)
628
638
  .flatMap((entry) => entry.tags ?? [])
package/src/manifest.ts CHANGED
@@ -216,7 +216,7 @@ export const PRIMITIVES: Record<string, PrimitiveEntry> = {
216
216
  debug: {
217
217
  css: [],
218
218
  js: ["primitives/debug/audit-core.js", "primitives/debug/debug.js"],
219
- base: ["base/utilities.js"],
219
+ base: ["base/kit-styling.js", "base/utilities.js"],
220
220
  primitives: [],
221
221
  bare: [],
222
222
  examples: [],
@@ -638,6 +638,7 @@ export const BASE_CSS_POST: string[] = [
638
638
  "base/_utilities-effects.css",
639
639
  "base/_utilities-box.css",
640
640
  "base/_utilities-pseudo.css",
641
+ "base/_defaults.css",
641
642
  "base/_switches.css",
642
643
  ];
643
644
 
@@ -667,12 +668,36 @@ export interface RuntimePolyfill {
667
668
  /**
668
669
  * Polyfills `index.ts` imports dynamically behind a `CSS.supports` test, so a
669
670
  * browser with the feature never fetches them. Vendored with the core runtime;
670
- * an entry script loads each one the way `index.ts` does.
671
+ * an entry script loads each one the way `index.ts` does. Every entry has a
672
+ * `supports` pair: the published CLI drops the whole list when one does not.
671
673
  */
672
674
  export const CORE_POLYFILLS: RuntimePolyfill[] = [
673
675
  { file: "base/scroll-state.js", supports: ["container-type", "scroll-state"] },
674
676
  ];
675
677
 
678
+ /** A runtime fallback, loaded only where a document check (not a CSS feature) says the page needs it. */
679
+ export interface RuntimeFallback {
680
+ /** The script, `src/`-relative. */
681
+ file: string;
682
+ /** Scripts it imports, `src/`-relative, vendored with it. */
683
+ requires: string[];
684
+ /**
685
+ * The check an entry script runs before importing it. `blocked-inline-styles`:
686
+ * some element's `style` attribute holds a declaration while its declaration
687
+ * block is empty, the shape of an attribute a Content Security Policy blocked.
688
+ */
689
+ gate: "blocked-inline-styles";
690
+ }
691
+
692
+ /**
693
+ * Fallbacks `index.ts` imports dynamically behind a document check, so a page
694
+ * that does not need one never fetches it. Vendored with the core runtime by a
695
+ * CLI that knows the gate; an older CLI ignores the list.
696
+ */
697
+ export const CORE_FALLBACKS: RuntimeFallback[] = [
698
+ { file: "base/csp.js", requires: ["base/declarations.js"], gate: "blocked-inline-styles" },
699
+ ];
700
+
676
701
  /** Every tag form in the kit; the generator excludes them from no-base emissions. */
677
702
  export const TAG_FORMS: string[] = Object.values(PRIMITIVES)
678
703
  .flatMap((entry) => entry.tags ?? [])
@@ -1,5 +1,5 @@
1
1
  /** A stable name per finding, so a linter can switch each one off. */
2
- export type RuleId = "unknown-utility" | "pseudo-form" | "group-needs-state" | "border-value" | "not-integer" | "tier-unsupported" | "tier-without-base" | "dual-value" | "keyword-number" | "raw-shadows-utility" | "flattens-state" | "gradient-incomplete" | "font-weight-name" | "scroll-state" | "whitespace-before-colon" | "attribute-outside-identity" | "field-id-or-name" | "persist";
2
+ export type RuleId = "unknown-utility" | "pseudo-form" | "group-needs-state" | "border-value" | "not-integer" | "tier-unsupported" | "tier-without-base" | "dual-value" | "keyword-number" | "raw-shadows-utility" | "flattens-state" | "gradient-incomplete" | "font-weight-name" | "scroll-state" | "whitespace-before-colon" | "whitespace-after-colon" | "attribute-outside-identity" | "field-id-or-name" | "persist";
3
3
  export declare const RULE_IDS: readonly RuleId[];
4
4
  /** `[start, end)` offsets into the `style` attribute's value. */
5
5
  export type Span = [number, number];
@@ -25,12 +25,18 @@ export interface AuditNode {
25
25
  getAttributeNames(): string[];
26
26
  /** True when this node or an ancestor carries the identity `name` (see {@link carriesIdentity}). */
27
27
  withinIdentity(name: string, identities: readonly string[]): boolean;
28
+ /** `Element.matches`, for the selectors in `reads` and `blocks`. */
29
+ matches(selector: string): boolean;
28
30
  }
29
31
  export interface AuditContext {
30
32
  /** State-bearing hooks per identity as `<utility>--<state>` (`bg--hover`). */
31
33
  hooks: Record<string, string[]>;
32
34
  /** Identity tokens the kit declares (`button`, `field-group`). */
33
35
  identities: readonly string[];
36
+ /** For each utility, the elements the kit reads it on through its own chain, as selectors. */
37
+ reads: Readonly<Record<string, readonly string[]>>;
38
+ /** For each tier-only utility, the elements a kit rule above `@layer defaults` sets its property on. */
39
+ blocks: Readonly<Record<string, readonly string[]>>;
34
40
  /** True when `value` is a color identifier (`red`, `currentcolor`); the browser asks `CSS.supports`. */
35
41
  isColor: (value: string) => boolean;
36
42
  }
@@ -40,6 +46,8 @@ export interface AuditContext {
40
46
  * (`field-group` and `<ui-toggle-group>` carry `field` and `toggle`).
41
47
  */
42
48
  export declare function carriesIdentity(tagName: string, dataUi: string | null, name: string, identities: readonly string[]): boolean;
49
+ /** `reads` / `blocks` as generated (indices into `selectors`), back as selector lists for {@link AuditContext}. */
50
+ export declare function expandStyling(selectors: readonly string[], record: Readonly<Record<string, readonly number[]>>): Record<string, string[]>;
43
51
  /** Audits one element's `style` and `data-*` attributes. */
44
52
  export declare function auditNode(node: AuditNode, context: AuditContext): Finding[];
45
53
  export interface PersistFinding<T> {
@@ -1 +1 @@
1
- {"version":3,"file":"audit-core.d.ts","sourceRoot":"","sources":["audit-core.ts"],"names":[],"mappings":"AAyBA,sEAAsE;AACtE,MAAM,MAAM,MAAM,GACd,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,YAAY,GACZ,gBAAgB,GAChB,qBAAqB,GAC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