@cube-drone/marquee-html-renderer 0.6.2 → 0.7.1

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/profile.js CHANGED
@@ -2,10 +2,12 @@
2
2
  // meaning, the embedder defines policy. Every render-time capability
3
3
  // decision routes through here; the renderer itself never fetches, never
4
4
  // guesses trust, never widens a scheme allowlist.
5
+ // Mirror of the Rust renderer's table (rust/html_renderer/src/profile.rs). `apng` and
6
+ // `opus` joined 2026-09-03: ringtome mints both and they rendered as the placeholder.
5
7
  const MEDIA_KINDS = {
6
8
  png: "image", jpg: "image", jpeg: "image", gif: "image", webp: "image",
7
- avif: "image", svg: "image",
8
- mp3: "audio", ogg: "audio", wav: "audio", flac: "audio", m4a: "audio",
9
+ avif: "image", apng: "image", svg: "image",
10
+ mp3: "audio", ogg: "audio", opus: "audio", wav: "audio", flac: "audio", m4a: "audio",
9
11
  mp4: "video", webm: "video",
10
12
  };
11
13
  function scheme(target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cube-drone/marquee-html-renderer",
3
- "version": "0.6.2",
3
+ "version": "0.7.1",
4
4
  "description": "Reference static HTML renderer for the Marquee markup language",
5
5
  "license": "MPL-2.0",
6
6
  "repository": {
@@ -35,12 +35,12 @@
35
35
  "prepack": "npm run build"
36
36
  },
37
37
  "dependencies": {
38
- "@cube-drone/marquee-parser": "^0.6.2"
38
+ "@cube-drone/marquee-parser": "^0.7.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@cube-drone/marquee-css": "^0.6.2",
42
- "@cube-drone/marquee-fonts": "^0.6.2",
43
- "@cube-drone/marquee-turbolink": "^0.6.2",
41
+ "@cube-drone/marquee-css": "^0.7.1",
42
+ "@cube-drone/marquee-fonts": "^0.7.1",
43
+ "@cube-drone/marquee-turbolink": "^0.7.1",
44
44
  "@types/node": "^24.0.0",
45
45
  "typescript": "^5.9.0"
46
46
  }
package/src/profile.ts CHANGED
@@ -44,10 +44,12 @@ export interface Profile {
44
44
  span(name: string, attrs: Attrs, renderedChildren: string): string | null;
45
45
  }
46
46
 
47
+ // Mirror of the Rust renderer's table (rust/html_renderer/src/profile.rs). `apng` and
48
+ // `opus` joined 2026-09-03: ringtome mints both and they rendered as the placeholder.
47
49
  const MEDIA_KINDS: Record<string, MediaResolution["kind"]> = {
48
50
  png: "image", jpg: "image", jpeg: "image", gif: "image", webp: "image",
49
- avif: "image", svg: "image",
50
- mp3: "audio", ogg: "audio", wav: "audio", flac: "audio", m4a: "audio",
51
+ avif: "image", apng: "image", svg: "image",
52
+ mp3: "audio", ogg: "audio", opus: "audio", wav: "audio", flac: "audio", m4a: "audio",
51
53
  mp4: "video", webm: "video",
52
54
  };
53
55