@rxdrag/website-lib 0.0.131 → 0.0.132
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.
|
@@ -44,7 +44,11 @@ let posterUrl: string | undefined;
|
|
|
44
44
|
if (background.type === "video" && background.poster) {
|
|
45
45
|
if (typeof background.poster === "string") {
|
|
46
46
|
posterUrl = background.poster;
|
|
47
|
-
} else
|
|
47
|
+
} else if (
|
|
48
|
+
background.poster &&
|
|
49
|
+
typeof background.poster === "object" &&
|
|
50
|
+
"src" in background.poster
|
|
51
|
+
) {
|
|
48
52
|
const posterImage = await getImage({
|
|
49
53
|
src: background.poster as ImageMetadata,
|
|
50
54
|
});
|
package/components/Image.type.ts
CHANGED
|
@@ -116,16 +116,16 @@ export interface ImageProps extends Omit<HTMLAttributes<"img">, "src" | "width"
|
|
|
116
116
|
/**
|
|
117
117
|
* 图片宽度
|
|
118
118
|
* - 本地图片可自动推断,可不填
|
|
119
|
-
* -
|
|
120
|
-
* -
|
|
119
|
+
* - 本地图片使用 layout="fixed" 时必须填写
|
|
120
|
+
* - 远程图片不需要填写,用 Tailwind 样式代替
|
|
121
121
|
*/
|
|
122
122
|
width?: number;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* 图片高度
|
|
126
126
|
* - 本地图片可自动推断,可不填
|
|
127
|
-
* -
|
|
128
|
-
* -
|
|
127
|
+
* - 本地图片使用 layout="fixed" 时必须填写
|
|
128
|
+
* - 远程图片不需要填写,用 Tailwind 样式代替
|
|
129
129
|
*/
|
|
130
130
|
height?: number;
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.132",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"eslint": "^9.39.2",
|
|
27
27
|
"gsap": "^3.12.7",
|
|
28
28
|
"typescript": "^5",
|
|
29
|
-
"@rxdrag/tiptap-preview": "0.0.3",
|
|
30
|
-
"@rxdrag/entify-hooks": "0.2.79",
|
|
31
|
-
"@rxdrag/rxcms-models": "0.3.98",
|
|
32
29
|
"@rxdrag/eslint-config-custom": "0.2.13",
|
|
30
|
+
"@rxdrag/rxcms-models": "0.3.98",
|
|
31
|
+
"@rxdrag/entify-hooks": "0.2.79",
|
|
32
|
+
"@rxdrag/tiptap-preview": "0.0.3",
|
|
33
33
|
"@rxdrag/tsconfig": "0.2.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"react": "^19.1.0",
|
|
39
39
|
"react-dom": "^19.1.0",
|
|
40
40
|
"vanilla-cookieconsent": "3.1.0",
|
|
41
|
-
"@rxdrag/
|
|
42
|
-
"@rxdrag/
|
|
41
|
+
"@rxdrag/website-lib-core": "0.0.123",
|
|
42
|
+
"@rxdrag/rxcms-models": "0.3.98"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"astro": "^4.0.0 || ^5.0.0"
|