@hyperframes/lint 0.8.204 → 0.8.205

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/dist/browser.js CHANGED
@@ -1481,7 +1481,8 @@ var coreRules = [
1481
1481
  ),
1482
1482
  code: "css_parse_error",
1483
1483
  severity: "error",
1484
- message: `CSS parse error: ${error instanceof Error ? error.message : "unknown"}`
1484
+ message: `CSS parse error: ${error instanceof Error ? error.message : "unknown"}`,
1485
+ fixHint: "Check the CSS at the reported line for an unclosed brace, quote, or comment, or a missing semicolon between declarations."
1485
1486
  });
1486
1487
  continue;
1487
1488
  }
@@ -3197,6 +3198,7 @@ function variablesDeclarationFindings(tag, tags) {
3197
3198
  code: "invalid_composition_variables_declaration",
3198
3199
  severity: "error",
3199
3200
  message: `data-composition-variables entry [${i}] must be an object with id, type, label, and default.`,
3201
+ fixHint: 'Replace the entry with an object such as {"id":"title","type":"string","label":"Title","default":"Hello"}.',
3200
3202
  snippet: truncateSnippet(tag.raw)
3201
3203
  });
3202
3204
  continue;
@@ -3212,6 +3214,7 @@ function variablesDeclarationFindings(tag, tags) {
3212
3214
  code: "invalid_composition_variables_declaration",
3213
3215
  severity: "error",
3214
3216
  message: `data-composition-variables entry [${i}] is missing or has invalid: ${missing.join(", ")}. Type must be one of string, number, color, boolean, enum, font, image.`,
3217
+ fixHint: `Give entry [${i}] a string id and label, a supported type, and a default, e.g. {"id":"title","type":"string","label":"Title","default":"Hello"}.`,
3215
3218
  snippet: truncateSnippet(tag.raw)
3216
3219
  });
3217
3220
  continue;
package/dist/index.js CHANGED
@@ -1487,7 +1487,8 @@ var coreRules = [
1487
1487
  ),
1488
1488
  code: "css_parse_error",
1489
1489
  severity: "error",
1490
- message: `CSS parse error: ${error instanceof Error ? error.message : "unknown"}`
1490
+ message: `CSS parse error: ${error instanceof Error ? error.message : "unknown"}`,
1491
+ fixHint: "Check the CSS at the reported line for an unclosed brace, quote, or comment, or a missing semicolon between declarations."
1491
1492
  });
1492
1493
  continue;
1493
1494
  }
@@ -3203,6 +3204,7 @@ function variablesDeclarationFindings(tag, tags) {
3203
3204
  code: "invalid_composition_variables_declaration",
3204
3205
  severity: "error",
3205
3206
  message: `data-composition-variables entry [${i}] must be an object with id, type, label, and default.`,
3207
+ fixHint: 'Replace the entry with an object such as {"id":"title","type":"string","label":"Title","default":"Hello"}.',
3206
3208
  snippet: truncateSnippet(tag.raw)
3207
3209
  });
3208
3210
  continue;
@@ -3218,6 +3220,7 @@ function variablesDeclarationFindings(tag, tags) {
3218
3220
  code: "invalid_composition_variables_declaration",
3219
3221
  severity: "error",
3220
3222
  message: `data-composition-variables entry [${i}] is missing or has invalid: ${missing.join(", ")}. Type must be one of string, number, color, boolean, enum, font, image.`,
3223
+ fixHint: `Give entry [${i}] a string id and label, a supported type, and a default, e.g. {"id":"title","type":"string","label":"Title","default":"Hello"}.`,
3221
3224
  snippet: truncateSnippet(tag.raw)
3222
3225
  });
3223
3226
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/lint",
3
- "version": "0.8.204",
3
+ "version": "0.8.205",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -35,7 +35,7 @@
35
35
  "linkedom": "^0.18.12",
36
36
  "postcss": "^8.5.8",
37
37
  "postcss-selector-parser": "^7.1.4",
38
- "@hyperframes/parsers": "0.8.204"
38
+ "@hyperframes/parsers": "0.8.205"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^25.0.10",