@datocms/astro 0.1.1 → 0.1.2

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.
@@ -47,7 +47,7 @@ const {
47
47
  imgClass,
48
48
  imgStyle,
49
49
  priority,
50
- usePlaceholder,
50
+ usePlaceholder = true,
51
51
  sizes,
52
52
  srcSetCandidates,
53
53
  } = Astro.props;
@@ -1,5 +1,4 @@
1
1
  ---
2
- import "@mux/mux-player";
3
2
  import type { Video } from "../../lib/types";
4
3
  import type {
5
4
  CmcdTypes,
@@ -99,3 +98,7 @@ const computedProps = {
99
98
  stream-type="on-demand"
100
99
  {...toHTMLAttrs(computedProps)}
101
100
  {...toHTMLAttrs(otherProps)}></mux-player>
101
+
102
+ <script>
103
+ import "@mux/mux-player";
104
+ </script>
package/package.json CHANGED
@@ -1,56 +1,54 @@
1
1
  {
2
- "name": "@datocms/astro",
3
- "description": "A set of components and utilities to work faster with DatoCMS in Astro projects.",
4
- "type": "module",
5
- "version": "0.1.1",
6
- "sideEffects": false,
7
- "repository": {
8
- "type": "git",
9
- "url": "git://github.com/datocms/astro-datocms.git"
10
- },
11
- "homepage": "https://github.com/datocms/astro-datocms",
12
- "license": "MIT",
13
- "author": "Stefano Verna <s.verna@datocms.com>",
14
- "contributors": ["Silvano Stralla <silvano@datocms.com>"],
15
- "keywords": [
16
- "astro",
17
- "withastro",
18
- "astro-component",
19
- "datocms",
20
- "typescript",
21
- "ui"
22
- ],
23
- "exports": {
24
- ".": "./lib/index.ts",
25
- "./types": "./lib/types.ts",
26
- "./utils": "./lib/utils.ts"
27
- },
28
- "typesVersions": {
29
- "*": {
30
- "*": ["lib/*"]
31
- }
32
- },
33
- "engines": {
34
- "node": ">=18.0.0"
35
- },
36
- "files": ["components", "lib"],
37
- "scripts": {
38
- "check": "astro check --root components"
39
- },
40
- "dependencies": {
41
- "@astrojs/check": "^0.9.1",
42
- "typescript": "^5.5.4"
43
- },
44
- "peerDependencies": {
45
- "@mux/mux-player": "*"
46
- },
47
- "peerDependenciesMeta": {
48
- "@mux/mux-player": {
49
- "optional": true
50
- }
51
- },
52
- "devDependencies": {
53
- "@mux/mux-player": "*",
54
- "@mux/playback-core": "^0.25.1"
55
- }
2
+ "name": "@datocms/astro",
3
+ "description": "A set of components and utilities to work faster with DatoCMS in Astro projects.",
4
+ "type": "module",
5
+ "version": "0.1.2",
6
+ "sideEffects": false,
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git://github.com/datocms/astro-datocms.git"
10
+ },
11
+ "homepage": "https://github.com/datocms/astro-datocms",
12
+ "license": "MIT",
13
+ "author": "Stefano Verna <s.verna@datocms.com>",
14
+ "contributors": ["Silvano Stralla <silvano@datocms.com>"],
15
+ "keywords": [
16
+ "astro",
17
+ "withastro",
18
+ "astro-component",
19
+ "datocms",
20
+ "typescript",
21
+ "ui"
22
+ ],
23
+ "exports": {
24
+ ".": "./lib/index.ts"
25
+ },
26
+ "typesVersions": {
27
+ "*": {
28
+ "*": ["lib/*"]
29
+ }
30
+ },
31
+ "engines": {
32
+ "node": ">=18.0.0"
33
+ },
34
+ "files": ["components", "lib"],
35
+ "scripts": {},
36
+ "dependencies": {
37
+ "@astrojs/check": "^0.9.1",
38
+ "typescript": "^5.5.4"
39
+ },
40
+ "peerDependencies": {
41
+ "@mux/mux-player": "*",
42
+ "astro": "*"
43
+ },
44
+ "peerDependenciesMeta": {
45
+ "@mux/mux-player": {
46
+ "optional": true
47
+ }
48
+ },
49
+ "devDependencies": {
50
+ "@mux/mux-player": "*",
51
+ "@mux/playback-core": "^0.25.1",
52
+ "astro": "^4.13.1"
53
+ }
56
54
  }
package/lib/utils.ts DELETED
@@ -1,3 +0,0 @@
1
- export function foobar() {
2
- return true;
3
- }