@eternalheart/react-file-preview 1.3.6 → 1.3.7
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/lib/FilePreviewContent.d.ts.map +1 -1
- package/lib/FilePreviewEmbed.d.ts.map +1 -1
- package/lib/FilePreviewModal.d.ts.map +1 -1
- package/lib/ThemeContext.d.ts +18 -0
- package/lib/ThemeContext.d.ts.map +1 -0
- package/lib/chunks/index--zZy1XpK.mjs +299 -0
- package/lib/chunks/index--zZy1XpK.mjs.map +1 -0
- package/lib/chunks/index-B5tBeF0g.mjs +51 -0
- package/lib/chunks/index-B5tBeF0g.mjs.map +1 -0
- package/lib/chunks/index-BEolw_uv.mjs +528 -0
- package/lib/chunks/index-BEolw_uv.mjs.map +1 -0
- package/lib/chunks/index-BIg3vHQf.mjs +110 -0
- package/lib/chunks/index-BIg3vHQf.mjs.map +1 -0
- package/lib/chunks/index-BOEtlHD3.mjs +257 -0
- package/lib/chunks/index-BOEtlHD3.mjs.map +1 -0
- package/lib/chunks/index-BWbuffRN.mjs +152 -0
- package/lib/chunks/index-BWbuffRN.mjs.map +1 -0
- package/lib/chunks/index-BsSx9pGx.mjs +128 -0
- package/lib/chunks/index-BsSx9pGx.mjs.map +1 -0
- package/lib/chunks/index-CQABwGVP.mjs +99 -0
- package/lib/chunks/index-CQABwGVP.mjs.map +1 -0
- package/lib/chunks/index-DOMMMe9f.mjs +96 -0
- package/lib/chunks/index-DOMMMe9f.mjs.map +1 -0
- package/lib/chunks/index-DTH1IvOG.mjs +239 -0
- package/lib/chunks/index-DTH1IvOG.mjs.map +1 -0
- package/lib/chunks/index-D_8IHm6o.mjs +98 -0
- package/lib/chunks/index-D_8IHm6o.mjs.map +1 -0
- package/lib/chunks/index-DinKO2op.mjs +116 -0
- package/lib/chunks/index-DinKO2op.mjs.map +1 -0
- package/lib/chunks/index-LNXbKjrI.mjs +1900 -0
- package/lib/chunks/index-LNXbKjrI.mjs.map +1 -0
- package/lib/chunks/index-Yp36heK8.mjs +193 -0
- package/lib/chunks/index-Yp36heK8.mjs.map +1 -0
- package/lib/chunks/index-qxvk-6P6.mjs +172 -0
- package/lib/chunks/index-qxvk-6P6.mjs.map +1 -0
- package/lib/chunks/index-w0tt7Myw.mjs +96 -0
- package/lib/chunks/index-w0tt7Myw.mjs.map +1 -0
- package/lib/chunks/index-xTq9b3vw.mjs +52 -0
- package/lib/chunks/index-xTq9b3vw.mjs.map +1 -0
- package/lib/chunks/index-zDEwNk3h.mjs +103 -0
- package/lib/chunks/index-zDEwNk3h.mjs.map +1 -0
- package/lib/chunks/useShikiHighlight-DtWg9b8y.mjs +23 -0
- package/lib/chunks/useShikiHighlight-DtWg9b8y.mjs.map +1 -0
- package/lib/chunks/xspreadsheet-CyBXARuf.mjs +5215 -0
- package/lib/chunks/xspreadsheet-CyBXARuf.mjs.map +1 -0
- package/lib/hooks/useShikiHighlight.d.ts +18 -0
- package/lib/hooks/useShikiHighlight.d.ts.map +1 -0
- package/lib/index.cjs +28 -508
- package/lib/index.cjs.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.mjs +13 -59160
- package/lib/index.mjs.map +1 -1
- package/lib/renderers/Audio/index.d.ts.map +1 -1
- package/lib/renderers/Json/index.d.ts.map +1 -1
- package/lib/renderers/Markdown/index.d.ts.map +1 -1
- package/lib/renderers/RendererLoading.d.ts +3 -0
- package/lib/renderers/RendererLoading.d.ts.map +1 -0
- package/lib/renderers/Text/index.d.ts.map +1 -1
- package/lib/renderers/Xml/index.d.ts.map +1 -1
- package/lib/renderers/lazy.d.ts +38 -0
- package/lib/renderers/lazy.d.ts.map +1 -0
- package/package.json +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Audio/index.tsx"],"names":[],"mappings":"AAoJA,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Audio/index.tsx"],"names":[],"mappings":"AAoJA,UAAU,kBAAkB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwVtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Json/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Json/index.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAwJD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgDpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Markdown/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Markdown/index.tsx"],"names":[],"mappings":"AAUA,OAAO,0BAA0B,CAAC;AAElC,UAAU,qBAAqB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CACjC;AA6ED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwM5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RendererLoading.d.ts","sourceRoot":"","sources":["../../src/renderers/RendererLoading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAUnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Text/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Text/index.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqFpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Xml/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/renderers/Xml/index.tsx"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AA2CD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwDlD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type LazyExoticComponent, type ComponentType } from 'react';
|
|
2
|
+
import type { ImageRenderer as ImageRendererImpl } from './Image';
|
|
3
|
+
import type { PdfRenderer as PdfRendererImpl } from './Pdf';
|
|
4
|
+
import type { DocxRenderer as DocxRendererImpl } from './Docx';
|
|
5
|
+
import type { XlsxRenderer as XlsxRendererImpl } from './Xlsx';
|
|
6
|
+
import type { PptxRenderer as PptxRendererImpl } from './Pptx';
|
|
7
|
+
import type { MsgRenderer as MsgRendererImpl } from './Msg';
|
|
8
|
+
import type { EpubRenderer as EpubRendererImpl } from './Epub';
|
|
9
|
+
import type { MobiRenderer as MobiRendererImpl } from './Mobi';
|
|
10
|
+
import type { VideoRenderer as VideoRendererImpl } from './Video';
|
|
11
|
+
import type { AudioRenderer as AudioRendererImpl } from './Audio';
|
|
12
|
+
import type { MarkdownRenderer as MarkdownRendererImpl } from './Markdown';
|
|
13
|
+
import type { JsonRenderer as JsonRendererImpl } from './Json';
|
|
14
|
+
import type { CsvRenderer as CsvRendererImpl } from './Csv';
|
|
15
|
+
import type { XmlRenderer as XmlRendererImpl } from './Xml';
|
|
16
|
+
import type { SubtitleRenderer as SubtitleRendererImpl } from './Subtitle';
|
|
17
|
+
import type { ZipRenderer as ZipRendererImpl } from './Zip';
|
|
18
|
+
import type { TextRenderer as TextRendererImpl } from './Text';
|
|
19
|
+
type Lazy<T> = LazyExoticComponent<T extends ComponentType<infer P> ? ComponentType<P> : never>;
|
|
20
|
+
export declare const ImageRenderer: Lazy<typeof ImageRendererImpl>;
|
|
21
|
+
export declare const PdfRenderer: Lazy<typeof PdfRendererImpl>;
|
|
22
|
+
export declare const DocxRenderer: Lazy<typeof DocxRendererImpl>;
|
|
23
|
+
export declare const XlsxRenderer: Lazy<typeof XlsxRendererImpl>;
|
|
24
|
+
export declare const PptxRenderer: Lazy<typeof PptxRendererImpl>;
|
|
25
|
+
export declare const MsgRenderer: Lazy<typeof MsgRendererImpl>;
|
|
26
|
+
export declare const EpubRenderer: Lazy<typeof EpubRendererImpl>;
|
|
27
|
+
export declare const MobiRenderer: Lazy<typeof MobiRendererImpl>;
|
|
28
|
+
export declare const VideoRenderer: Lazy<typeof VideoRendererImpl>;
|
|
29
|
+
export declare const AudioRenderer: Lazy<typeof AudioRendererImpl>;
|
|
30
|
+
export declare const MarkdownRenderer: Lazy<typeof MarkdownRendererImpl>;
|
|
31
|
+
export declare const JsonRenderer: Lazy<typeof JsonRendererImpl>;
|
|
32
|
+
export declare const CsvRenderer: Lazy<typeof CsvRendererImpl>;
|
|
33
|
+
export declare const XmlRenderer: Lazy<typeof XmlRendererImpl>;
|
|
34
|
+
export declare const SubtitleRenderer: Lazy<typeof SubtitleRendererImpl>;
|
|
35
|
+
export declare const ZipRenderer: Lazy<typeof ZipRendererImpl>;
|
|
36
|
+
export declare const TextRenderer: Lazy<typeof TextRendererImpl>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/renderers/lazy.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,mBAAmB,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY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AAO,MAAM,gBAAgB,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAE9D,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAEtD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,OAAO,eAAe,CAEpD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,OAAO,eAAe,CAEpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAE9D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,OAAO,eAAe,CAEpD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAEtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eternalheart/react-file-preview",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
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",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@kenjiuno/msgreader": "^1.28.0",
|
|
77
77
|
"@likecoin/epub-ts": "^0.6.0",
|
|
78
|
-
"@types/react-syntax-highlighter": "^15.5.13",
|
|
79
78
|
"@videojs-player/react": "^1.0.0",
|
|
80
79
|
"docx-preview": "^0.3.2",
|
|
80
|
+
"exceljs": "^4.4.0",
|
|
81
81
|
"foliate-js": "1.0.1",
|
|
82
82
|
"framer-motion": "^11.11.17",
|
|
83
83
|
"jszip": "^3.10.1",
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
"pptx-preview": "^1.0.7",
|
|
89
89
|
"react-markdown": "^10.1.0",
|
|
90
90
|
"react-pdf": "9.2.1",
|
|
91
|
-
"react-syntax-highlighter": "^16.1.0",
|
|
92
91
|
"rehype-katex": "^7.0.1",
|
|
93
92
|
"rehype-raw": "^7.0.0",
|
|
94
93
|
"remark-gfm": "^4.0.1",
|
|
95
94
|
"remark-math": "^6.0.0",
|
|
95
|
+
"shiki": "^1.29.2",
|
|
96
96
|
"video.js": "^8.23.4"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
"@types/react-dom": "^18.3.1",
|
|
103
103
|
"@vitejs/plugin-react": "^4.3.4",
|
|
104
104
|
"autoprefixer": "^10.4.20",
|
|
105
|
-
"exceljs": "^4.4.0",
|
|
106
105
|
"postcss": "^8.4.49",
|
|
107
106
|
"postcss-prefix-selector": "^2.1.1",
|
|
108
107
|
"react": "^18.3.1",
|