@rxdrag/website-lib-core 0.0.120 → 0.0.121

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-core",
3
- "version": "0.0.120",
3
+ "version": "0.0.121",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -23,8 +23,8 @@
23
23
  "@types/react-dom": "^19.1.0",
24
24
  "eslint": "^9.39.2",
25
25
  "typescript": "^5",
26
- "@rxdrag/tiptap-preview": "0.0.3",
27
26
  "@rxdrag/eslint-config-custom": "0.2.13",
27
+ "@rxdrag/tiptap-preview": "0.0.3",
28
28
  "@rxdrag/tsconfig": "0.2.1"
29
29
  },
30
30
  "dependencies": {
@@ -2,45 +2,50 @@
2
2
  export type ColorBackgroundConfig = {
3
3
  id?: string;
4
4
  type: "color";
5
- className?: string; // 颜色 ,模糊,图案等,如 "bg-blue-500", "bg-gradient-to-r from-blue-500 to-purple-600"
5
+ class?: string; // 颜色 ,模糊,图案等,如 "bg-blue-500", "bg-gradient-to-r from-blue-500 to-purple-600"
6
+ className?: string;//兼容旧的
6
7
  };
7
8
 
8
9
  export type BlurBackgroundConfig = {
9
10
  id?: string;
10
11
  type: "blur";
11
- className?: string; // 模糊,如 "backdrop-blur"
12
+ class?: string; // 模糊,如 "backdrop-blur"
13
+ className?: string;//兼容旧的
12
14
  };
13
15
 
14
16
  export type ImageBackgroundConfig = {
15
17
  id?: string;
16
18
  type: "image";
17
- className?: string; // 图片,如 "bg-cover bg-center bg-no-repeat"
18
- mediaRef?: string; // 图片ref
19
+ class?: string; // 图片,如 "bg-cover bg-center bg-no-repeat"
20
+ className?: string;//兼容旧的
21
+ //实际组件中还会传入ImageMetadata
19
22
  src?: string; // 图片源
20
23
  };
21
24
 
22
25
  export type SvgBackgroundConfig = {
23
26
  id?: string;
24
27
  type: "svg";
25
- className?: string; // 图案,如 "bg-dots-sm bg-gray-100"
28
+ class?: string; // 图案,如 "bg-dots-sm bg-gray-100"
29
+ className?: string;//兼容旧的
26
30
  code?: string; // SVG代码
27
31
  };
28
32
 
29
33
  export type VideoBackgroundConfig = {
30
34
  id?: string;
31
35
  type: "video";
32
- className?: string; // 视频,如 "bg-cover bg-center bg-no-repeat"
33
- mediaRef?: string; // 视频Ref
34
- posterRef?: string; // 视频封面Ref
35
- mediaSrc?: string; // 视频源
36
- posterSrc?: string; // 视频封面图源
36
+ class?: string; // 视频,如 "bg-cover bg-center bg-no-repeat"
37
+ className?: string;//兼容旧的
38
+ mediaRef?: string; // 视频源
39
+ //实际组件中还会传入ImageMetadata
40
+ poster?: string; // 视频封面图源
37
41
  };
38
42
 
39
43
  export type SplineBackgroundConfig = {
40
44
  id?: string;
41
45
  type: "spline";
42
- className?: string; // Spline,如 "bg-cover bg-center bg-no-repeat"
43
- mediaRef?: string; // Spline ID
46
+ class?: string; // Spline,如 "bg-cover bg-center bg-no-repeat"
47
+ className?: string;//兼容旧的
48
+ spline?: string; // Spline ID
44
49
  url?: string; // Spline 场景 URL
45
50
  };
46
51