@xiping/react-components 1.0.67 → 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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../node_modules/.pnpm/xgplayer@3.0.23_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
+ "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.23_core-js@3.47.0/node_modules/xgplayer/dist/index.min.css';/* empty css */
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.67",
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.1",
45
- "@tiptap/react": "^3.20.1",
46
- "@tiptap/starter-kit": "^3.20.1",
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.35.2",
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",
@@ -65,18 +65,18 @@
65
65
  "react-hot-toast": "^2.6.0",
66
66
  "react-icons": "^5.5.0",
67
67
  "react-markdown": "^10.1.0",
68
- "react-resizable-panels": "^4.7.2",
68
+ "react-resizable-panels": "^4.7.3",
69
69
  "react-router-dom": "^7.13.1",
70
70
  "xgplayer": "^3.0.23",
71
- "zustand": "^5.0.11"
71
+ "zustand": "^5.0.12"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@chromatic-com/storybook": "^5.0.1",
75
75
  "@eslint/js": "^9.39.4",
76
76
  "@faker-js/faker": "^10.3.0",
77
- "@storybook/addon-docs": "^10.2.17",
78
- "@storybook/addon-onboarding": "^10.2.17",
79
- "@storybook/react-vite": "^10.2.17",
77
+ "@storybook/addon-docs": "^10.2.19",
78
+ "@storybook/addon-onboarding": "^10.2.19",
79
+ "@storybook/react-vite": "^10.2.19",
80
80
  "@tailwindcss/vite": "^4.2.1",
81
81
  "@types/canvas-confetti": "^1.9.0",
82
82
  "@types/lodash-es": "^4.17.12",
@@ -87,16 +87,16 @@
87
87
  "eslint": "^9.39.4",
88
88
  "eslint-plugin-react-hooks": "^7.0.1",
89
89
  "eslint-plugin-react-refresh": "^0.5.2",
90
- "eslint-plugin-storybook": "^10.2.17",
90
+ "eslint-plugin-storybook": "^10.2.19",
91
91
  "globals": "^17.4.0",
92
92
  "rollup-preserve-directives": "^1.1.3",
93
93
  "sharp": "^0.34.5",
94
- "storybook": "^10.2.17",
94
+ "storybook": "^10.2.19",
95
95
  "svgo": "^4.0.1",
96
96
  "tailwindcss": "^4.2.1",
97
- "terser": "^5.46.0",
97
+ "terser": "^5.46.1",
98
98
  "typescript": "^5.9.3",
99
- "typescript-eslint": "^8.57.0",
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": "e51d97b53a0213842f37b8b4c26af50c23ee4d85"
114
+ "gitHead": "61f56a865103626696a6b73c0527c2cb5fc859c1"
115
115
  }