@rxdrag/website-lib-core 0.0.121 → 0.0.123
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 +5 -5
- package/src/astro/background.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.123",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@types/react-dom": "^19.1.0",
|
|
24
24
|
"eslint": "^9.39.2",
|
|
25
25
|
"typescript": "^5",
|
|
26
|
+
"@rxdrag/tsconfig": "0.2.1",
|
|
26
27
|
"@rxdrag/eslint-config-custom": "0.2.13",
|
|
27
|
-
"@rxdrag/tiptap-preview": "0.0.3"
|
|
28
|
-
"@rxdrag/tsconfig": "0.2.1"
|
|
28
|
+
"@rxdrag/tiptap-preview": "0.0.3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@iconify/utils": "^3.0.2",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"gsap": "^3.12.7",
|
|
34
34
|
"hls.js": "^1.6.13",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
|
-
"@rxdrag/
|
|
37
|
-
"@rxdrag/
|
|
36
|
+
"@rxdrag/rxcms-models": "0.3.98",
|
|
37
|
+
"@rxdrag/entify-lib": "0.0.24"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"astro": "^4.0.0 || ^5.0.0",
|
package/src/astro/background.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type ImageMetadata = import("astro").ImageMetadata;
|
|
1
2
|
// 背景样式类型定义,支持tailwind类
|
|
2
3
|
export type ColorBackgroundConfig = {
|
|
3
4
|
id?: string;
|
|
@@ -18,8 +19,7 @@ export type ImageBackgroundConfig = {
|
|
|
18
19
|
type: "image";
|
|
19
20
|
class?: string; // 图片,如 "bg-cover bg-center bg-no-repeat"
|
|
20
21
|
className?: string;//兼容旧的
|
|
21
|
-
|
|
22
|
-
src?: string; // 图片源
|
|
22
|
+
src?: string | ImageMetadata; // 图片源
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export type SvgBackgroundConfig = {
|
|
@@ -36,8 +36,7 @@ export type VideoBackgroundConfig = {
|
|
|
36
36
|
class?: string; // 视频,如 "bg-cover bg-center bg-no-repeat"
|
|
37
37
|
className?: string;//兼容旧的
|
|
38
38
|
mediaRef?: string; // 视频源
|
|
39
|
-
|
|
40
|
-
poster?: string; // 视频封面图源
|
|
39
|
+
poster?: string | ImageMetadata; // 视频封面图源
|
|
41
40
|
};
|
|
42
41
|
|
|
43
42
|
export type SplineBackgroundConfig = {
|