some_doc_viewers
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "some_doc_viewers", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"type": "module", | ||
@@ -14,2 +14,6 @@ "description": "A document viewer library with React components for PDF, PowerPoint, Excel, and Word documents. The PowerPoint viewer can also be used standalone without React.", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Tennen/some_doc_viewers" | ||
}, | ||
"keywords": [ | ||
@@ -16,0 +20,0 @@ "document", |
@@ -14,18 +14,2 @@ # some_doc_viewers | ||
Here's a diagram illustrating the process: | ||
```mermaid | ||
graph TD | ||
A[Load document file] --> B[Determine file type] | ||
B --> C[Render preview component] | ||
C --> D[Convert and display content] | ||
subgraph "Preview Components" | ||
E1[PPTXPreview] --> C | ||
E2[PDFPreview] --> C | ||
E3[XLSXPreview] --> C | ||
E4[DOCXPreview] --> C | ||
end | ||
``` | ||
## Key components | ||
@@ -40,10 +24,2 @@ | ||
## Main components and their functionality | ||
- `Viewer.tsx`: The main component that determines the file type and renders the appropriate preview component. | ||
- `PPTXPreview.tsx`: Uses the `usePPTX` hook to convert and display PPTX files. | ||
- `PDFPreview.tsx`: Renders PDF files page by page using react-pdf. | ||
- `XLSXPreview.tsx`: Converts Excel files to a table format for display. | ||
- `DOCXPreview.tsx`: Converts DOCX files to HTML for rendering. | ||
## PPTX Conversion and pptxjs | ||
@@ -50,0 +26,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
3830208
53