@hyperframes/lint 0.8.213 → 0.8.216

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
@@ -1720,6 +1720,7 @@ function cssErrorOffset(source, error) {
1720
1720
  // src/rules/media.ts
1721
1721
  import {
1722
1722
  COLOR_GRADING_SOURCE_TAGS,
1723
+ COLOR_GROUP_TAG,
1723
1724
  validateColorGradingContract
1724
1725
  } from "@hyperframes/parsers/color-grading-contract";
1725
1726
  import { extractMediaSrcMutations } from "@hyperframes/parsers/composition";
@@ -2257,7 +2258,7 @@ var mediaRules = [
2257
2258
  snippet: truncateSnippet(tag.raw)
2258
2259
  });
2259
2260
  };
2260
- if (!COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
2261
+ if (tag.name !== COLOR_GROUP_TAG && !COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
2261
2262
  report(
2262
2263
  "color_grading_non_media",
2263
2264
  `data-color-grading on <${tag.name}> has no effect. The shader runtime only grades real <video>, <img> and <canvas> elements.`,
package/dist/index.js CHANGED
@@ -1726,6 +1726,7 @@ function cssErrorOffset(source, error) {
1726
1726
  // src/rules/media.ts
1727
1727
  import {
1728
1728
  COLOR_GRADING_SOURCE_TAGS,
1729
+ COLOR_GROUP_TAG,
1729
1730
  validateColorGradingContract
1730
1731
  } from "@hyperframes/parsers/color-grading-contract";
1731
1732
  import { extractMediaSrcMutations } from "@hyperframes/parsers/composition";
@@ -2263,7 +2264,7 @@ var mediaRules = [
2263
2264
  snippet: truncateSnippet(tag.raw)
2264
2265
  });
2265
2266
  };
2266
- if (!COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
2267
+ if (tag.name !== COLOR_GROUP_TAG && !COLOR_GRADING_SOURCE_TAGS.includes(tag.name)) {
2267
2268
  report(
2268
2269
  "color_grading_non_media",
2269
2270
  `data-color-grading on <${tag.name}> has no effect. The shader runtime only grades real <video>, <img> and <canvas> elements.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/lint",
3
- "version": "0.8.213",
3
+ "version": "0.8.216",
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.213"
38
+ "@hyperframes/parsers": "0.8.216"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^25.0.10",