@file-viewer/renderer-media 2.1.23 → 2.1.25

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/audio.js CHANGED
@@ -40,6 +40,14 @@ const audioStyle = `
40
40
  .fv-midi-table{width:100%;border-collapse:collapse;color:#132235;font-size:14px}
41
41
  .fv-midi-table th,.fv-midi-table td{padding:12px 16px;border-top:1px solid rgba(15,23,42,.08);text-align:left}
42
42
  .fv-midi-table th{color:#64748b;background:#f8fafc;font-weight:700}
43
+ [data-viewer-theme='dark'] .fv-audio-viewer{background:linear-gradient(135deg,rgba(45,212,191,.12),transparent 34%),linear-gradient(180deg,#111827 0%,#101820 100%);color:#e5eef8}
44
+ [data-viewer-theme='dark'] .fv-audio-card,[data-viewer-theme='dark'] .fv-midi-card{border-color:rgba(148,163,184,.18);background:#111827;color:#e5eef8;box-shadow:0 22px 56px rgba(0,0,0,.32)}
45
+ [data-viewer-theme='dark'] .fv-audio-copy strong,[data-viewer-theme='dark'] .fv-midi-card header strong,[data-viewer-theme='dark'] .fv-midi-stats strong,[data-viewer-theme='dark'] .fv-midi-table{color:#f8fafc}
46
+ [data-viewer-theme='dark'] .fv-audio-copy p,[data-viewer-theme='dark'] .fv-audio-meter,[data-viewer-theme='dark'] .fv-midi-state,[data-viewer-theme='dark'] .fv-midi-stats span,[data-viewer-theme='dark'] .fv-midi-table th{color:#94a3b8}
47
+ [data-viewer-theme='dark'] .fv-midi-viewer{background:#101820}
48
+ [data-viewer-theme='dark'] .fv-midi-card header,[data-viewer-theme='dark'] .fv-midi-table th,[data-viewer-theme='dark'] .fv-midi-stats div{border-color:rgba(148,163,184,.18);background:#151f2b}
49
+ [data-viewer-theme='dark'] .fv-midi-stats,[data-viewer-theme='dark'] .fv-midi-table th,[data-viewer-theme='dark'] .fv-midi-table td{border-color:rgba(148,163,184,.18)}
50
+ @media (prefers-color-scheme:dark){[data-viewer-theme='system'] .fv-audio-viewer{background:linear-gradient(135deg,rgba(45,212,191,.12),transparent 34%),linear-gradient(180deg,#111827 0%,#101820 100%);color:#e5eef8}[data-viewer-theme='system'] .fv-audio-card,[data-viewer-theme='system'] .fv-midi-card{border-color:rgba(148,163,184,.18);background:#111827;color:#e5eef8;box-shadow:0 22px 56px rgba(0,0,0,.32)}[data-viewer-theme='system'] .fv-audio-copy strong,[data-viewer-theme='system'] .fv-midi-card header strong,[data-viewer-theme='system'] .fv-midi-stats strong,[data-viewer-theme='system'] .fv-midi-table{color:#f8fafc}[data-viewer-theme='system'] .fv-audio-copy p,[data-viewer-theme='system'] .fv-audio-meter,[data-viewer-theme='system'] .fv-midi-state,[data-viewer-theme='system'] .fv-midi-stats span,[data-viewer-theme='system'] .fv-midi-table th{color:#94a3b8}[data-viewer-theme='system'] .fv-midi-viewer{background:#101820}[data-viewer-theme='system'] .fv-midi-card header,[data-viewer-theme='system'] .fv-midi-table th,[data-viewer-theme='system'] .fv-midi-stats div{border-color:rgba(148,163,184,.18);background:#151f2b}[data-viewer-theme='system'] .fv-midi-stats,[data-viewer-theme='system'] .fv-midi-table th,[data-viewer-theme='system'] .fv-midi-table td{border-color:rgba(148,163,184,.18)}}
43
51
  @media (max-width:700px){.fv-midi-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
44
52
  `;
45
53
  const createElement = (tagName, className, text) => {
package/dist/video.js CHANGED
@@ -7,6 +7,12 @@ const videoStyle = `
7
7
  .fv-video-heading strong{color:#132235;font-size:16px}
8
8
  .fv-video-player{display:block;width:100%;aspect-ratio:16/9;background:#05070a}
9
9
  .fv-video-hint{margin:0;padding:12px 18px 16px;color:#64748b;font-size:13px;line-height:1.7}
10
+ [data-viewer-theme='dark'] .fv-video-viewer{background:#101820;color:#e5eef8}
11
+ [data-viewer-theme='dark'] .fv-video-shell{border-color:rgba(148,163,184,.18);background:#111827;box-shadow:0 22px 56px rgba(0,0,0,.32)}
12
+ [data-viewer-theme='dark'] .fv-video-heading{border-color:rgba(148,163,184,.18)}
13
+ [data-viewer-theme='dark'] .fv-video-heading strong{color:#f8fafc}
14
+ [data-viewer-theme='dark'] .fv-video-hint{color:#94a3b8}
15
+ @media (prefers-color-scheme:dark){[data-viewer-theme='system'] .fv-video-viewer{background:#101820;color:#e5eef8}[data-viewer-theme='system'] .fv-video-shell{border-color:rgba(148,163,184,.18);background:#111827;box-shadow:0 22px 56px rgba(0,0,0,.32)}[data-viewer-theme='system'] .fv-video-heading{border-color:rgba(148,163,184,.18)}[data-viewer-theme='system'] .fv-video-heading strong{color:#f8fafc}[data-viewer-theme='system'] .fv-video-hint{color:#94a3b8}}
10
16
  `;
11
17
  const VIDEO_MIME_MAP = {
12
18
  m3u8: 'application/vnd.apple.mpegurl',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/renderer-media",
3
- "version": "2.1.23",
3
+ "version": "2.1.25",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Standalone audio and video renderer plugin for Flyfish File Viewer with native media playback, HLS fallback, MIDI parsing, and offline-friendly lazy loading.",
@@ -55,7 +55,7 @@
55
55
  "LICENSE"
56
56
  ],
57
57
  "dependencies": {
58
- "@file-viewer/core": "2.1.23",
58
+ "@file-viewer/core": "2.1.25",
59
59
  "@tonejs/midi": "^2.0.28",
60
60
  "hls.js": "^1.6.16"
61
61
  },