frameboard 0.29.0 → 0.31.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.
@@ -23,8 +23,8 @@
23
23
  matchMedia('(prefers-color-scheme: dark)').matches),
24
24
  )
25
25
  </script>
26
- <script type="module" crossorigin src="/assets/index-8yCp4izw.js"></script>
27
- <link rel="stylesheet" crossorigin href="/assets/index-BdhtWf_I.css">
26
+ <script type="module" crossorigin src="/assets/index-DhTjSlhC.js"></script>
27
+ <link rel="stylesheet" crossorigin href="/assets/index-1aGUdRZT.css">
28
28
  </head>
29
29
  <body>
30
30
  <div id="root"></div>
package/dist/hook.js CHANGED
@@ -19449,9 +19449,13 @@ function findingFor(docs) {
19449
19449
  };
19450
19450
  };
19451
19451
  }
19452
- /** One finding as `path:line:column rule message`, as `check` and the hook print it. */
19452
+ /**
19453
+ * One finding as `path:line:column rule message`, as `check` and the hook
19454
+ * print it, the path taking `@<width>` for one read at a linked width.
19455
+ */
19453
19456
  function formatFinding(finding) {
19454
- return `${finding.location ? `${finding.path}:${finding.location.line}:${finding.location.column}` : finding.path} ${finding.rule} ${finding.message}`;
19457
+ const path = finding.width === void 0 ? finding.path : `${finding.path}@${finding.width}`;
19458
+ return `${finding.location ? `${path}:${finding.location.line}:${finding.location.column}` : path} ${finding.rule} ${finding.message}`;
19455
19459
  }
19456
19460
  const finding$5 = findingFor([{
19457
19461
  id: "unknown-token",
@@ -20310,7 +20314,7 @@ function readProjectContext(root, project, boardSheet) {
20310
20314
  * The project's `checks` config, read by hand rather than through the
20311
20315
  * project record's schema, which the hook cannot afford to load. A file that
20312
20316
  * does not read, or a key of the wrong type, leaves that rule off. The
20313
- * server's browser checker reads it too, for `minFontSize`.
20317
+ * server's browser checker reads it too, for `minFontSize` and `minContrast`.
20314
20318
  */
20315
20319
  function readConfig(root, project) {
20316
20320
  let parsed;
@@ -20325,6 +20329,7 @@ function readConfig(root, project) {
20325
20329
  if (Array.isArray(checks.allowedFonts) && checks.allowedFonts.every((font) => typeof font === "string")) config.allowedFonts = checks.allowedFonts;
20326
20330
  if (typeof checks.noUppercase === "boolean") config.noUppercase = checks.noUppercase;
20327
20331
  if (typeof checks.minFontSize === "number" && checks.minFontSize > 0) config.minFontSize = checks.minFontSize;
20332
+ if (typeof checks.minContrast === "number" && checks.minContrast >= 1) config.minContrast = checks.minContrast;
20328
20333
  return config;
20329
20334
  }
20330
20335
  function isRecord(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frameboard",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "A local design board that coding agents draw on as plain HTML files",
5
5
  "keywords": [
6
6
  "design",