@eternalheart/react-file-preview 1.1.0 → 1.1.1

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
- {"version":3,"file":"AudioRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/AudioRenderer.tsx"],"names":[],"mappings":"AAGA,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0NtD,CAAC"}
1
+ {"version":3,"file":"AudioRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/AudioRenderer.tsx"],"names":[],"mappings":"AAmJA,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4VtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DocxRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/DocxRenderer.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8DpD,CAAC"}
1
+ {"version":3,"file":"DocxRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/DocxRenderer.tsx"],"names":[],"mappings":"AAGA,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AAeD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwIpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/MarkdownRenderer.tsx"],"names":[],"mappings":"AAMA,UAAU,qBAAqB;IAC7B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6H5D,CAAC"}
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/MarkdownRenderer.tsx"],"names":[],"mappings":"AAOA,UAAU,qBAAqB;IAC7B,GAAG,EAAE,MAAM,CAAC;CACb;AAkCD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyL5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MsgRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/MsgRenderer.tsx"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;CACb;AAoDD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwJlD,CAAC"}
1
+ {"version":3,"file":"MsgRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/MsgRenderer.tsx"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;CACb;AAoGD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgSlD,CAAC"}
@@ -0,0 +1,25 @@
1
+ interface UseAudioPlayerOptions {
2
+ url: string;
3
+ skipSeconds?: number;
4
+ }
5
+ interface UseAudioPlayerReturn {
6
+ audioRef: React.RefObject<HTMLAudioElement>;
7
+ isPlaying: boolean;
8
+ isLoading: boolean;
9
+ isLoop: boolean;
10
+ currentTime: number;
11
+ duration: number;
12
+ volume: number;
13
+ isMuted: boolean;
14
+ error: string | null;
15
+ togglePlay: () => void;
16
+ seek: (time: number) => void;
17
+ skip: (seconds: number) => void;
18
+ setVolume: (vol: number) => void;
19
+ toggleMute: () => void;
20
+ toggleLoop: () => void;
21
+ formatTime: (time: number) => string;
22
+ }
23
+ export declare function useAudioPlayer({ url, }: UseAudioPlayerOptions): UseAudioPlayerReturn;
24
+ export {};
25
+ //# sourceMappingURL=useAudioPlayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAudioPlayer.d.ts","sourceRoot":"","sources":["../../../src/renderers/hooks/useAudioPlayer.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACtC;AAED,wBAAgB,cAAc,CAAC,EAC7B,GAAG,GACJ,EAAE,qBAAqB,GAAG,oBAAoB,CAyK9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalheart/react-file-preview",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A modern, feature-rich file preview component for React with support for images, videos, audio, PDFs, Office documents (Word, Excel, PowerPoint), Markdown, and code files.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.cjs",
@@ -87,8 +87,7 @@
87
87
  "react-pdf": "9.2.1",
88
88
  "react-syntax-highlighter": "^16.1.0",
89
89
  "remark-gfm": "^4.0.1",
90
- "video.js": "^8.23.4",
91
- "x-data-spreadsheet": "^1.1.9"
90
+ "video.js": "^8.23.4"
92
91
  },
93
92
  "devDependencies": {
94
93
  "@types/node": "^24.10.1",
@@ -103,6 +102,7 @@
103
102
  "tailwindcss": "^3.4.18",
104
103
  "typescript": "^5.6.3",
105
104
  "vite": "^5.4.11",
106
- "vite-plugin-static-copy": "^3.1.4"
105
+ "vite-plugin-static-copy": "^3.1.4",
106
+ "x-data-spreadsheet": "^1.1.9"
107
107
  }
108
108
  }