@rxdrag/website-lib 0.0.73 → 0.0.75
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.75",
|
|
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/
|
|
27
|
+
"@rxdrag/slate-preview": "1.2.60",
|
|
28
|
+
"@rxdrag/entify-hooks": "0.2.74",
|
|
29
|
+
"@rxdrag/rxcms-models": "0.3.93",
|
|
28
30
|
"@rxdrag/eslint-config-custom": "0.2.12",
|
|
29
|
-
"@rxdrag/rxcms-models": "0.3.92",
|
|
30
|
-
"@rxdrag/slate-preview": "1.2.58",
|
|
31
31
|
"@rxdrag/tsconfig": "0.2.0"
|
|
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/
|
|
38
|
-
"@rxdrag/
|
|
37
|
+
"@rxdrag/rxcms-models": "0.3.93",
|
|
38
|
+
"@rxdrag/website-lib-core": "0.0.75"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"astro": "^4.0.0 || ^5.0.0"
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type {
|
|
3
|
-
BackgroundConfig,
|
|
4
|
-
Locals,
|
|
5
|
-
VideoBackgroundConfig,
|
|
6
|
-
} from "@rxdrag/website-lib-core";
|
|
2
|
+
import type { BackgroundConfig, Locals } from "@rxdrag/website-lib-core";
|
|
7
3
|
import {
|
|
8
4
|
BackgroundVideoPlayer,
|
|
9
5
|
BackgroundHlsVideoPlayer,
|
|
@@ -18,8 +14,10 @@ export interface Props {
|
|
|
18
14
|
|
|
19
15
|
const { env, imageSizes } = Astro.locals as Locals;
|
|
20
16
|
|
|
21
|
-
const {
|
|
22
|
-
|
|
17
|
+
const {
|
|
18
|
+
background,
|
|
19
|
+
defaultClass = "absolute top-0 left-0 w-full h-full object-cover",
|
|
20
|
+
} = Astro.props;
|
|
23
21
|
|
|
24
22
|
// 安全地提取 mediaRef 和 posterRef(只有部分背景类型有这些属性)
|
|
25
23
|
const mediaRef =
|
package/src/components/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as Container } from "./Container.astro";
|
|
|
9
9
|
export { default as Flip } from "./Flip.astro";
|
|
10
10
|
export { default as Grid } from "./Grid.astro";
|
|
11
11
|
export { default as GridCell } from "./GridCell.astro";
|
|
12
|
+
export { default as Icon } from "./Icon.astro";
|
|
12
13
|
export { default as Image } from "./Image.astro";
|
|
13
14
|
export { default as Link } from "./Link.astro";
|
|
14
15
|
export { default as Meta } from "./Meta.astro";
|