@marvalt/digivalt-core 0.2.24 → 0.2.26
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 +15 -0
- package/dist/components/media/CloudflareStreamPlayer.d.ts +19 -0
- package/dist/generators.cjs +8 -2532
- package/dist/generators.cjs.map +1 -1
- package/dist/generators.esm.js +5 -2529
- package/dist/generators.esm.js.map +1 -1
- package/dist/index.cjs +22 -2546
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +19 -2543
- package/dist/index.esm.js.map +1 -1
- package/dist/media/index.d.ts +9 -0
- package/dist/media/preconnect.d.ts +5 -0
- package/dist/media.cjs +141 -0
- package/dist/media.cjs.map +1 -0
- package/dist/media.d.ts +73 -0
- package/dist/media.esm.js +131 -0
- package/dist/media.esm.js.map +1 -0
- package/dist/seo/preconnect.d.ts +3 -2
- package/dist/seo.cjs +9 -5
- package/dist/seo.cjs.map +1 -1
- package/dist/seo.d.ts +3 -2
- package/dist/seo.esm.js +9 -5
- package/dist/seo.esm.js.map +1 -1
- package/dist/utils/cfStream.d.ts +40 -0
- package/docs/CLOUDFLARE-STREAM.md +54 -0
- package/docs/README.md +2 -0
- package/docs/SEO-PERFORMANCE.md +6 -0
- package/package.json +7 -2
- package/template/scripts/deploy-secrets.js +39 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.26] - 2026-07-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **`@marvalt/digivalt-core/media`**: Cloudflare Stream helpers (`resolveCloudflareStream`, `isCloudflareStreamReady`, iframe/HLS/thumbnail getters) and **`CloudflareStreamPlayer`** (iframe embed).
|
|
12
|
+
- **`recommendedStreamPreconnectHosts`**; **`recommendedPreconnectHosts`** also accepts Stream hosts (`cloudflarestream.com` / `videodelivery.net`).
|
|
13
|
+
- Docs: `docs/CLOUDFLARE-STREAM.md`.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Dependency **`@marvalt/wadapter`** → `^2.3.60` (typed `cloudflare_stream` on media).
|
|
17
|
+
|
|
18
|
+
## [0.2.25] - 2026-07-08
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- **Rollup externals:** `@marvalt/plister/generators` (and other subpath deps) are no longer inlined into `dist/generators.*` — build uses installed plister restapi mode correctly.
|
|
22
|
+
|
|
8
23
|
## [0.2.24] - 2026-07-08
|
|
9
24
|
|
|
10
25
|
### Changed
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type CloudflareStream } from '../../utils/cfStream';
|
|
3
|
+
export interface CloudflareStreamPlayerProps {
|
|
4
|
+
stream: CloudflareStream | null | undefined;
|
|
5
|
+
title?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
muted?: boolean;
|
|
9
|
+
/** When false, hides player controls (Stream iframe `controls=false`). Default true. */
|
|
10
|
+
controls?: boolean;
|
|
11
|
+
/** Used when stream is missing/not ready and has no thumbnail. */
|
|
12
|
+
posterFallback?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Cloudflare Stream iframe player.
|
|
16
|
+
* Loads the iframe only when `stream.ready` is true; otherwise shows a poster.
|
|
17
|
+
*/
|
|
18
|
+
export declare const CloudflareStreamPlayer: React.FC<CloudflareStreamPlayerProps>;
|
|
19
|
+
export default CloudflareStreamPlayer;
|