@rxdrag/website-lib 0.0.69 → 0.0.71
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts"
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"eslint": "^7.32.0",
|
|
25
25
|
"gsap": "^3.12.7",
|
|
26
26
|
"typescript": "^5",
|
|
27
|
-
"@rxdrag/entify-hooks": "0.2.
|
|
28
|
-
"@rxdrag/
|
|
27
|
+
"@rxdrag/entify-hooks": "0.2.72",
|
|
28
|
+
"@rxdrag/tsconfig": "0.2.0",
|
|
29
29
|
"@rxdrag/eslint-config-custom": "0.2.12",
|
|
30
|
-
"@rxdrag/rxcms-models": "0.3.
|
|
31
|
-
"@rxdrag/
|
|
30
|
+
"@rxdrag/rxcms-models": "0.3.91",
|
|
31
|
+
"@rxdrag/slate-preview": "1.2.58"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"clsx": "^2.1.0",
|
|
35
35
|
"react": "^19.1.0",
|
|
36
36
|
"react-dom": "^19.1.0",
|
|
37
|
-
"@rxdrag/rxcms-models": "0.3.
|
|
38
|
-
"@rxdrag/website-lib-core": "0.0.
|
|
37
|
+
"@rxdrag/rxcms-models": "0.3.91",
|
|
38
|
+
"@rxdrag/website-lib-core": "0.0.69"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"astro": "^4.0.0 || ^5.0.0"
|
|
@@ -16,7 +16,7 @@ export interface Props {
|
|
|
16
16
|
defaultClass?: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const { env } = Astro.locals as Locals;
|
|
19
|
+
const { env, imageSizes } = Astro.locals as Locals;
|
|
20
20
|
|
|
21
21
|
const { background, defaultClass = "absolute w-full h-full object-cover" } =
|
|
22
22
|
Astro.props;
|
|
@@ -32,7 +32,7 @@ const mediaRef =
|
|
|
32
32
|
const posterRef =
|
|
33
33
|
background.type === "video" ? background.posterRef : undefined;
|
|
34
34
|
|
|
35
|
-
const rx = Entify.getInstance(env);
|
|
35
|
+
const rx = Entify.getInstance(env, imageSizes);
|
|
36
36
|
|
|
37
37
|
// 获取媒体数据
|
|
38
38
|
const media = rx ? await rx.getMedia(mediaRef) : undefined;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ReactVideoPlayer,
|
|
5
5
|
type Locals,
|
|
6
6
|
} from "@rxdrag/website-lib-core";
|
|
7
|
-
const { env } = Astro.locals as Locals;
|
|
7
|
+
const { env, imageSizes } = Astro.locals as Locals;
|
|
8
8
|
|
|
9
9
|
interface Props {
|
|
10
10
|
videoRef?: string;
|
|
@@ -31,7 +31,7 @@ const {
|
|
|
31
31
|
classNames = {},
|
|
32
32
|
} = Astro.props;
|
|
33
33
|
|
|
34
|
-
const rx = Entify.getInstance(env);
|
|
34
|
+
const rx = Entify.getInstance(env, imageSizes);
|
|
35
35
|
|
|
36
36
|
// 获取媒体数据(增加 rx 为空时的保护)
|
|
37
37
|
const media = rx ? await rx.getMedia(videoRef) : undefined;
|