@xiping/react-components 1.0.69 → 1.0.70
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/dist/cjs/components/video-subtitle-player/useXGPlayer.js +1 -1
- package/dist/es/components/video-subtitle-player/useXGPlayer.js +1 -1
- package/package.json +8 -8
- /package/dist/cjs/node_modules/.pnpm/{xgplayer@3.0.23_core-js@3.47.0 → xgplayer@3.0.24_core-js@3.47.0}/node_modules/xgplayer/dist/index.min.css +0 -0
- /package/dist/es/node_modules/.pnpm/{xgplayer@3.0.23_core-js@3.47.0 → xgplayer@3.0.24_core-js@3.47.0}/node_modules/xgplayer/dist/index.min.css +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../node_modules/.pnpm/xgplayer@3.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../node_modules/.pnpm/xgplayer@3.0.24_core-js@3.47.0/node_modules/xgplayer/dist/index.min.css');const a=require("react"),P=require("xgplayer");;/* empty css */function m(s,l,o,p,r){const u=a.useRef(null),{setCurrentTime:c,setIsPlaying:n}=p;a.useEffect(()=>{if(!s.current)return;const t=`xiping-video-subtitle-player-${Date.now()}`;s.current.id=t;const e=new P({id:t,url:l,poster:o,autoplay:!1,fluid:!1,width:"100%",height:"100%",controls:!0});u.current=e;const f=()=>{const h=e.currentTime??0;c(h)},i=()=>n(!0),d=()=>n(!1),y=()=>n(!1);return e.on("timeupdate",f),e.on("play",i),e.on("pause",d),e.on("ended",y),()=>{e.off("timeupdate",f),e.off("play",i),e.off("pause",d),e.off("ended",y),e.destroy(),u.current=null}},[l,o,c,n]),a.useEffect(()=>{const t=u.current;if(!t)return;Math.abs(t.currentTime-r)>.5&&(t.currentTime=r)},[r])}exports.useXGPlayer=m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as h, useEffect as p } from "react";
|
|
2
2
|
import P from "xgplayer";
|
|
3
|
-
import '../../node_modules/.pnpm/xgplayer@3.0.
|
|
3
|
+
import '../../node_modules/.pnpm/xgplayer@3.0.24_core-js@3.47.0/node_modules/xgplayer/dist/index.min.css';/* empty css */
|
|
4
4
|
function T(o, s, u, y, r) {
|
|
5
5
|
const a = h(null), { setCurrentTime: l, setIsPlaying: n } = y;
|
|
6
6
|
p(() => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiping/react-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.70",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"module": "./dist/es/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@heroui/react": "^2.8.10",
|
|
42
42
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
43
43
|
"@react-spring/web": "9.7.5",
|
|
44
|
-
"@tiptap/pm": "^3.20.
|
|
45
|
-
"@tiptap/react": "^3.20.
|
|
46
|
-
"@tiptap/starter-kit": "^3.20.
|
|
44
|
+
"@tiptap/pm": "^3.20.4",
|
|
45
|
+
"@tiptap/react": "^3.20.4",
|
|
46
|
+
"@tiptap/starter-kit": "^3.20.4",
|
|
47
47
|
"@use-gesture/react": "^10.3.1",
|
|
48
48
|
"@xiping/llm-utils": "1.0.10",
|
|
49
49
|
"@xiping/subtitle": "1.0.52",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"gsap": "^3.14.2",
|
|
58
58
|
"lodash-es": "^4.17.23",
|
|
59
59
|
"lucide-react": "^0.577.0",
|
|
60
|
-
"motion": "^12.
|
|
60
|
+
"motion": "^12.38.0",
|
|
61
61
|
"react": "^19.2.4",
|
|
62
62
|
"react-device-detect": "^2.2.3",
|
|
63
63
|
"react-dom": "^19.2.4",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"storybook": "^10.2.19",
|
|
95
95
|
"svgo": "^4.0.1",
|
|
96
96
|
"tailwindcss": "^4.2.1",
|
|
97
|
-
"terser": "^5.46.
|
|
97
|
+
"terser": "^5.46.1",
|
|
98
98
|
"typescript": "^5.9.3",
|
|
99
|
-
"typescript-eslint": "^8.57.
|
|
99
|
+
"typescript-eslint": "^8.57.1",
|
|
100
100
|
"vite": "^7.3.1",
|
|
101
101
|
"vite-plugin-dts": "^4.5.4",
|
|
102
102
|
"vite-plugin-image-optimizer": "^2.0.3",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"engines": {
|
|
112
112
|
"node": ">=22"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "61f56a865103626696a6b73c0527c2cb5fc859c1"
|
|
115
115
|
}
|
|
File without changes
|