@sveltesentio/media 0.3.0 → 0.4.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/CHANGELOG.md +16 -0
- package/package.json +10 -6
- package/src/player-controls.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.1](https://github.com/golusoris/sveltesentio/compare/media-v0.4.0...media-v0.4.1) (2026-06-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **media:** keep server-only core out of <Player> client bundles ([308d2ec](https://github.com/golusoris/sveltesentio/commit/308d2ec55aedd4e008283d025a36d0b4c1847c19))
|
|
9
|
+
|
|
10
|
+
## [0.4.0](https://github.com/golusoris/sveltesentio/compare/media-v0.3.0...media-v0.4.0) (2026-06-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* land foundation packages and repair CI gate ([#41](https://github.com/golusoris/sveltesentio/issues/41)) ([7557620](https://github.com/golusoris/sveltesentio/commit/75576200e324cd4c55f48571a6532540c1f6eb16))
|
|
16
|
+
* **media:** <Player> + <Carousel> + <Image> UI surfaces ([b4a9fa4](https://github.com/golusoris/sveltesentio/commit/b4a9fa499a9c5f2744a11acfb428c7814e7de98a))
|
|
17
|
+
* **media:** headless HLS player model + responsive image srcset helpers ([262b2d0](https://github.com/golusoris/sveltesentio/commit/262b2d0af9ee73222229bbc90975c911a740003b))
|
|
18
|
+
|
|
3
19
|
## [0.3.0](https://github.com/golusoris/sveltesentio/compare/media-v0.2.0...media-v0.3.0) (2026-06-15)
|
|
4
20
|
|
|
5
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltesentio/media",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Media player (headless HLS model + a11y <Player> shell), responsive blur-up <Image>, and a preset-aware embla <Carousel> — Svelte 5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"esm-env": "^1.2.2",
|
|
48
|
-
"@sveltesentio/core": "0.
|
|
48
|
+
"@sveltesentio/core": "0.3.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"embla-carousel-svelte": ">=8.6.0",
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
+
"@playwright/test": "^1.61.0",
|
|
69
|
+
"@storybook/addon-svelte-csf": "5.1.2",
|
|
68
70
|
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
69
71
|
"@testing-library/jest-dom": "^6.9.1",
|
|
70
72
|
"@testing-library/svelte": "^5.3.1",
|
|
@@ -73,8 +75,8 @@
|
|
|
73
75
|
"svelte": "^5.56.3",
|
|
74
76
|
"typescript": "^6.0.3",
|
|
75
77
|
"vite": "^8.0.16",
|
|
76
|
-
"vitest": "^4.1.
|
|
77
|
-
"@sveltesentio/core": "0.
|
|
78
|
+
"vitest": "^4.1.9",
|
|
79
|
+
"@sveltesentio/core": "0.3.0"
|
|
78
80
|
},
|
|
79
81
|
"keywords": [
|
|
80
82
|
"sveltesentio",
|
|
@@ -92,12 +94,14 @@
|
|
|
92
94
|
},
|
|
93
95
|
"files": [
|
|
94
96
|
"src",
|
|
95
|
-
"CHANGELOG.md"
|
|
97
|
+
"CHANGELOG.md",
|
|
98
|
+
"!src/**/*.stories.svelte"
|
|
96
99
|
],
|
|
97
100
|
"scripts": {
|
|
98
101
|
"build": "tsc",
|
|
99
102
|
"lint": "eslint src/",
|
|
100
103
|
"typecheck": "tsc --noEmit",
|
|
101
|
-
"test": "vitest run"
|
|
104
|
+
"test": "vitest run --coverage",
|
|
105
|
+
"test:e2e": "playwright test --config e2e/playwright.config.ts"
|
|
102
106
|
}
|
|
103
107
|
}
|
package/src/player-controls.ts
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
* @see ADR-0042 (Vidstack `@next` + `hls.js`) — keyboard parity with Vidstack.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// Subpath import (not the `@sveltesentio/core` barrel): the barrel re-exports
|
|
11
|
+
// `clock.ts`, which pulls `node:async_hooks` and would drag server-only code
|
|
12
|
+
// into any client bundle that imports these headless `<Player>` controls.
|
|
13
|
+
import { ProblemError } from '@sveltesentio/core/problem';
|
|
11
14
|
|
|
12
15
|
/** A discrete player control intent produced by a key press. */
|
|
13
16
|
export type PlayerAction =
|