@hyperframes/lint 0.8.212 → 0.8.214

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.d.ts CHANGED
@@ -98,6 +98,7 @@ interface ProjectLintResult {
98
98
  totalWarnings: number;
99
99
  totalInfos: number;
100
100
  }
101
+ declare function collectExternalStyles(projectDir: string, html: string, compSrcPath?: string): NonNullable<HyperframeLinterOptions["externalStyles"]>;
101
102
  declare function lintProject(projectDir: string, entryFile?: string, hostOptions?: Pick<HyperframeLinterOptions, "host" | "isSubComposition">): Promise<ProjectLintResult>;
102
103
 
103
- export { type HyperframeLintFinding, type HyperframeLintResult, type HyperframeLintSeverity, type HyperframeLinterOptions, LINT_RULE_COUNT, LINT_RULE_GROUP_COUNTS, type LintTimings, type ProjectLintResult, lintHyperframeHtml, lintMediaUrls, lintProject, shouldBlockRender };
104
+ export { type HyperframeLintFinding, type HyperframeLintResult, type HyperframeLintSeverity, type HyperframeLinterOptions, LINT_RULE_COUNT, LINT_RULE_GROUP_COUNTS, type LintTimings, type ProjectLintResult, collectExternalStyles, lintHyperframeHtml, lintMediaUrls, lintProject, shouldBlockRender };
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.`,
@@ -7961,6 +7962,7 @@ function isSnippetFragment(html) {
7961
7962
  export {
7962
7963
  LINT_RULE_COUNT,
7963
7964
  LINT_RULE_GROUP_COUNTS,
7965
+ collectExternalStyles,
7964
7966
  lintHyperframeHtml,
7965
7967
  lintMediaUrls,
7966
7968
  lintProject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/lint",
3
- "version": "0.8.212",
3
+ "version": "0.8.214",
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.212"
38
+ "@hyperframes/parsers": "0.8.214"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^25.0.10",