@datocms/astro 0.1.4 → 0.1.6

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datocms/astro",
3
3
  "description": "A set of components and utilities to work faster with DatoCMS in Astro projects.",
4
4
  "type": "module",
5
- "version": "0.1.4",
5
+ "version": "0.1.6",
6
6
  "sideEffects": false,
7
7
  "repository": {
8
8
  "type": "git",
@@ -2,12 +2,12 @@
2
2
  import type { MuxMediaProps } from "@mux/playback-core";
3
3
  import { toHTMLAttrs } from "./toHtmlArgs";
4
4
  import type { JSX } from 'astro/jsx-runtime';
5
- import { useVideoPlayer } from "useVideoPlayer";
6
5
  import type { Video } from "./types";
6
+ import { useVideoPlayer } from "../useVideoPlayer";
7
7
 
8
8
  type StyleAttribute = JSX.HTMLAttributes["style"];
9
9
 
10
- interface Props extends MuxMediaProps {
10
+ interface Props extends Partial<MuxMediaProps> {
11
11
  data: Video;
12
12
  class?: string;
13
13
  style?: StyleAttribute;
@@ -8,9 +8,9 @@ export type Video = {
8
8
  height?: Possibly<number>;
9
9
  /** The width of the video */
10
10
  width?: Possibly<number>;
11
- /** The MUX playbaack ID */
11
+ /** The MUX playback ID */
12
12
  muxPlaybackId?: Possibly<string>;
13
- /** The MUX playbaack ID */
13
+ /** The MUX playback ID */
14
14
  playbackId?: Possibly<string>;
15
15
  /** A data: URI containing a blurhash for the video */
16
16
  blurUpThumb?: Possibly<string>;
@@ -1,4 +1,4 @@
1
- import type { Video } from "VideoPlayer/types";
1
+ import type { Video } from "../VideoPlayer/types";
2
2
 
3
3
  type Maybe<T> = T | null;
4
4
  type Possibly<T> = Maybe<T> | undefined;