@rxdrag/website-lib-core 0.0.115 → 0.0.117

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.115",
3
+ "version": "0.0.117",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -24,9 +24,9 @@
24
24
  "@types/react-dom": "^19.1.0",
25
25
  "eslint": "^7.32.0",
26
26
  "typescript": "^5",
27
+ "@rxdrag/slate-preview": "1.2.63",
27
28
  "@rxdrag/eslint-config-custom": "0.2.12",
28
- "@rxdrag/tsconfig": "0.2.0",
29
- "@rxdrag/slate-preview": "1.2.63"
29
+ "@rxdrag/tsconfig": "0.2.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@iconify/utils": "^3.0.2",
@@ -34,8 +34,8 @@
34
34
  "gsap": "^3.12.7",
35
35
  "hls.js": "^1.6.13",
36
36
  "lodash-es": "^4.17.21",
37
- "@rxdrag/entify-lib": "0.0.23",
38
- "@rxdrag/rxcms-models": "0.3.96"
37
+ "@rxdrag/rxcms-models": "0.3.96",
38
+ "@rxdrag/entify-lib": "0.0.23"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "astro": "^4.0.0 || ^5.0.0",
@@ -16,7 +16,7 @@ export type ImageBackgroundConfig = {
16
16
  type: "image";
17
17
  className?: string; // 图片,如 "bg-cover bg-center bg-no-repeat"
18
18
  mediaRef?: string; // 图片ref
19
- //url?: string; // 图片 URL
19
+ src?: string; // 图片源
20
20
  };
21
21
 
22
22
  export type SvgBackgroundConfig = {
@@ -32,8 +32,8 @@ export type VideoBackgroundConfig = {
32
32
  className?: string; // 视频,如 "bg-cover bg-center bg-no-repeat"
33
33
  mediaRef?: string; // 视频Ref
34
34
  posterRef?: string; // 视频封面Ref
35
- //url?: string; // 视频 URL
36
- //poster?: string; // 视频封面图 URL
35
+ mediaSrc?: string; // 视频源
36
+ posterSrc?: string; // 视频封面图源
37
37
  };
38
38
 
39
39
  export type SplineBackgroundConfig = {
@@ -22,6 +22,7 @@ export type MediasProps = {
22
22
  arrowButton?: string;
23
23
  arrowIcon?: string;
24
24
  playButton?: string;
25
+ navigationInner?: string;
25
26
  };
26
27
  };
27
28
 
@@ -46,6 +47,7 @@ export const Medias = forwardRef<HTMLDivElement, MediasProps>((props, ref) => {
46
47
  arrowButton,
47
48
  arrowIcon,
48
49
  playButton,
50
+ navigationInner,
49
51
  } = classNames || {};
50
52
  const [selectedId, setSelectedId] = useState<string | undefined | null>(
51
53
  value?.[0]?.id || ""
@@ -122,7 +124,10 @@ export const Medias = forwardRef<HTMLDivElement, MediasProps>((props, ref) => {
122
124
  selectedId={selectedId}
123
125
  aspect={aspect}
124
126
  enableZoom={enableZoom}
125
- className={clsx(isVerticalThumbs ? "w-full md:flex-1" : "w-full", mainArea)}
127
+ className={clsx(
128
+ isVerticalThumbs ? "w-full md:flex-1" : "w-full",
129
+ mainArea
130
+ )}
126
131
  arrowButtonClass={arrowButton}
127
132
  arrowIconClass={arrowIcon}
128
133
  playButtonClass={playButton}
@@ -137,7 +142,9 @@ export const Medias = forwardRef<HTMLDivElement, MediasProps>((props, ref) => {
137
142
  <div
138
143
  className={clsx(
139
144
  "relative group/thumbs",
140
- isVerticalThumbs ? "w-full mt-4 md:w-24 md:h-full md:px-1" : "w-full mt-4",
145
+ isVerticalThumbs
146
+ ? "w-full mt-4 md:w-24 md:h-full md:px-1"
147
+ : "w-full mt-4",
141
148
  navigation
142
149
  )}
143
150
  >
@@ -191,7 +198,8 @@ export const Medias = forwardRef<HTMLDivElement, MediasProps>((props, ref) => {
191
198
  >
192
199
  <div
193
200
  className={clsx(
194
- "gap-3",
201
+ "gap-1 md:gap-3",
202
+ navigationInner,
195
203
  isVerticalThumbs ? "grid md:flex md:flex-col" : "grid"
196
204
  )}
197
205
  style={{