@rxdrag/website-lib-core 0.0.114 → 0.0.116

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.114",
3
+ "version": "0.0.116",
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",
28
27
  "@rxdrag/tsconfig": "0.2.0",
29
- "@rxdrag/eslint-config-custom": "0.2.12"
28
+ "@rxdrag/eslint-config-custom": "0.2.12",
29
+ "@rxdrag/slate-preview": "1.2.63"
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/rxcms-models": "0.3.96",
38
- "@rxdrag/entify-lib": "0.0.23"
37
+ "@rxdrag/entify-lib": "0.0.23",
38
+ "@rxdrag/rxcms-models": "0.3.96"
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 = {
@@ -191,7 +191,7 @@ export const Medias = forwardRef<HTMLDivElement, MediasProps>((props, ref) => {
191
191
  >
192
192
  <div
193
193
  className={clsx(
194
- "gap-3",
194
+ "gap-1 md:gap-3",
195
195
  isVerticalThumbs ? "grid md:flex md:flex-col" : "grid"
196
196
  )}
197
197
  style={{
@@ -241,12 +241,13 @@ export const ReactVideoPlayer = forwardRef<
241
241
  {!isPlaying &&
242
242
  !isEnded &&
243
243
  !isLoading &&
244
- !hasStarted && (
244
+ (
245
245
  <button
246
246
  type="button"
247
247
  onClick={handlePlayClick}
248
248
  className={clsx(
249
- "absolute inset-0 flex items-center justify-center w-full h-full transition rounded-lg z-10",
249
+ "absolute inset-0 items-center justify-center w-full h-full transition rounded-lg z-10",
250
+ hasStarted ? "hidden md:flex" : "flex",
250
251
  classNames?.playButton
251
252
  )}
252
253
  >