@ttt-productions/media-viewer 0.10.13 → 0.10.15
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/package.json +5 -6
- package/src/styles/media-viewer.css +30 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttt-productions/media-viewer",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ttt-productions/ttt-packages.git",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"prepublishOnly": "npm run clean && npm run build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ttt-productions/media-schemas": "^0.14.
|
|
37
|
-
"@ttt-productions/ui-core": "^0.11.
|
|
36
|
+
"@ttt-productions/media-schemas": "^0.14.7",
|
|
37
|
+
"@ttt-productions/ui-core": "^0.11.19"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=19.0.0",
|
|
41
41
|
"react-dom": ">=19.0.0",
|
|
42
42
|
"lucide-react": "^1.30.0",
|
|
43
|
-
"react-intersection-observer": ">=
|
|
43
|
+
"react-intersection-observer": ">=11.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"react": {
|
|
@@ -58,8 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"lucide-react": "^1.30.0",
|
|
61
|
-
"react-intersection-observer": "^
|
|
62
|
-
"typescript": "^5.8.3"
|
|
61
|
+
"react-intersection-observer": "^11.0.1"
|
|
63
62
|
},
|
|
64
63
|
"author": "DJ (TTT Productions)",
|
|
65
64
|
"license": "MIT"
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
/* Skeleton fallback (CSS-only, for environments without ui-core) */
|
|
4
4
|
.mv-skeleton {
|
|
5
|
-
background: hsl(var(--muted
|
|
5
|
+
background: hsl(var(--muted));
|
|
6
6
|
animation: mv-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
7
|
-
border-radius: var(--radius
|
|
7
|
+
border-radius: var(--radius);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@keyframes mv-pulse {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
justify-content: center;
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
|
-
background: hsl(var(--destructive
|
|
22
|
+
background: hsl(var(--destructive) / 0.1);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.mv-error-fallback svg {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
height: 50%;
|
|
28
28
|
max-width: 4rem;
|
|
29
29
|
max-height: 4rem;
|
|
30
|
-
color: hsl(var(--destructive
|
|
30
|
+
color: hsl(var(--destructive) / 0.8);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* Empty fallback */
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
justify-content: center;
|
|
38
38
|
width: 100%;
|
|
39
39
|
height: 100%;
|
|
40
|
-
background: hsl(var(--muted
|
|
40
|
+
background: hsl(var(--muted));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* Pending state: the URL is still being prepared. Same seat as the empty state,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
justify-content: center;
|
|
49
49
|
width: 100%;
|
|
50
50
|
height: 100%;
|
|
51
|
-
background: hsl(var(--muted
|
|
51
|
+
background: hsl(var(--muted));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.mv-empty-fallback svg {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
height: 50%;
|
|
57
57
|
max-width: 4rem;
|
|
58
58
|
max-height: 4rem;
|
|
59
|
-
color: hsl(var(--muted-foreground
|
|
59
|
+
color: hsl(var(--muted-foreground));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/* Avatar/circular empty fallback */
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
width: 100%;
|
|
68
68
|
height: 100%;
|
|
69
69
|
border-radius: 50%;
|
|
70
|
-
background: hsl(var(--muted
|
|
70
|
+
background: hsl(var(--muted));
|
|
71
71
|
font-size: 1.125rem;
|
|
72
|
-
color: hsl(var(--muted-foreground
|
|
72
|
+
color: hsl(var(--muted-foreground));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* Video error state */
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
justify-content: center;
|
|
81
81
|
width: 100%;
|
|
82
82
|
height: 100%;
|
|
83
|
-
background: hsl(var(--muted
|
|
84
|
-
border-radius: var(--radius
|
|
83
|
+
background: hsl(var(--muted));
|
|
84
|
+
border-radius: var(--radius);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.mv-video-error p {
|
|
88
|
-
color: hsl(var(--muted-foreground
|
|
88
|
+
color: hsl(var(--muted-foreground));
|
|
89
89
|
font-size: 0.875rem;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
/* ---------------------------------------------------------------------------
|
|
102
102
|
Canonical audio player chrome (AudioViewer / AudioPlayer).
|
|
103
|
-
Semantic classes
|
|
103
|
+
Semantic classes reading theme-core tokens; apps re-skin freely.
|
|
104
104
|
--------------------------------------------------------------------------- */
|
|
105
105
|
.mv-player {
|
|
106
106
|
display: flex;
|
|
@@ -108,18 +108,18 @@
|
|
|
108
108
|
gap: 0.375rem;
|
|
109
109
|
width: 100%;
|
|
110
110
|
padding: 0.5rem;
|
|
111
|
-
background: hsl(var(--card
|
|
112
|
-
border: 1px solid hsl(var(--border
|
|
113
|
-
border-radius: var(--radius
|
|
111
|
+
background: hsl(var(--card));
|
|
112
|
+
border: 1px solid hsl(var(--border));
|
|
113
|
+
border-radius: var(--radius);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.mv-player-viz {
|
|
117
117
|
position: relative;
|
|
118
118
|
width: 100%;
|
|
119
119
|
height: 6rem;
|
|
120
|
-
color: hsl(var(--primary
|
|
121
|
-
background: hsl(var(--muted
|
|
122
|
-
border-radius: calc(var(--radius
|
|
120
|
+
color: hsl(var(--primary));
|
|
121
|
+
background: hsl(var(--muted) / 0.5);
|
|
122
|
+
border-radius: calc(var(--radius) - 2px);
|
|
123
123
|
overflow: hidden;
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -145,14 +145,14 @@
|
|
|
145
145
|
height: 2rem;
|
|
146
146
|
padding: 0;
|
|
147
147
|
border: none;
|
|
148
|
-
border-radius: calc(var(--radius
|
|
148
|
+
border-radius: calc(var(--radius) - 2px);
|
|
149
149
|
background: transparent;
|
|
150
|
-
color: hsl(var(--foreground
|
|
150
|
+
color: hsl(var(--foreground));
|
|
151
151
|
cursor: pointer;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.mv-player-btn:hover {
|
|
155
|
-
background: hsl(var(--muted
|
|
155
|
+
background: hsl(var(--muted));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.mv-player-btn svg {
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.mv-player-play-btn {
|
|
164
|
-
color: hsl(var(--primary
|
|
164
|
+
color: hsl(var(--primary));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.mv-player-mode-btn {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
right: 0.25rem;
|
|
171
171
|
width: 1.5rem;
|
|
172
172
|
height: 1.5rem;
|
|
173
|
-
color: hsl(var(--muted-foreground
|
|
173
|
+
color: hsl(var(--muted-foreground));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.mv-player-mode-btn svg {
|
|
@@ -182,19 +182,19 @@
|
|
|
182
182
|
flex-shrink: 0;
|
|
183
183
|
font-size: 0.75rem;
|
|
184
184
|
font-variant-numeric: tabular-nums;
|
|
185
|
-
color: hsl(var(--muted-foreground
|
|
185
|
+
color: hsl(var(--muted-foreground));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.mv-player-seek {
|
|
189
189
|
flex: 1 1 auto;
|
|
190
190
|
min-width: 2rem;
|
|
191
|
-
accent-color: hsl(var(--primary
|
|
191
|
+
accent-color: hsl(var(--primary));
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.mv-player-volume {
|
|
195
195
|
flex: 0 1 4rem;
|
|
196
196
|
min-width: 2.5rem;
|
|
197
|
-
accent-color: hsl(var(--primary
|
|
197
|
+
accent-color: hsl(var(--primary));
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.mv-player-extra {
|
|
@@ -209,13 +209,13 @@
|
|
|
209
209
|
display: flex;
|
|
210
210
|
align-items: center;
|
|
211
211
|
justify-content: center;
|
|
212
|
-
background: hsl(var(--muted
|
|
213
|
-
border-radius: var(--radius
|
|
212
|
+
background: hsl(var(--muted));
|
|
213
|
+
border-radius: var(--radius);
|
|
214
214
|
padding: 1rem;
|
|
215
215
|
height: 3.5rem;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.mv-audio-error p {
|
|
219
|
-
color: hsl(var(--destructive
|
|
219
|
+
color: hsl(var(--destructive));
|
|
220
220
|
font-size: 0.75rem;
|
|
221
221
|
}
|