Skip to content

Commit 35eff63

Browse files
committed
Refactor to support multi-document plugins in React MUI example
Replaces the loader plugin with the document manager plugin and updates the React MUI example to use document-scoped APIs for all plugin interactions. Adds support for new plugins such as print, capture, and history. Refactors all components (toolbar, sidebars, controls, etc.) to accept a documentId prop and use document-specific plugin APIs, enabling multi-document support and improved modularity.
1 parent b00c34b commit 35eff63

13 files changed

Lines changed: 392 additions & 258 deletions

File tree

examples/react-mui/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@embedpdf/core": "workspace:*",
15-
"@embedpdf/plugin-loader": "workspace:*",
15+
"@embedpdf/plugin-document-manager": "workspace:*",
1616
"@embedpdf/plugin-viewport": "workspace:*",
1717
"@embedpdf/plugin-scroll": "workspace:*",
1818
"@embedpdf/plugin-zoom": "workspace:*",
@@ -25,8 +25,11 @@
2525
"@embedpdf/plugin-spread": "workspace:*",
2626
"@embedpdf/plugin-fullscreen": "workspace:*",
2727
"@embedpdf/plugin-export": "workspace:*",
28+
"@embedpdf/plugin-print": "workspace:*",
2829
"@embedpdf/plugin-thumbnail": "workspace:*",
2930
"@embedpdf/plugin-selection": "workspace:*",
31+
"@embedpdf/plugin-capture": "workspace:*",
32+
"@embedpdf/plugin-history": "workspace:*",
3033
"@embedpdf/plugin-annotation": "workspace:*",
3134
"@embedpdf/plugin-redaction": "workspace:*",
3235
"@embedpdf/utils": "workspace:*",

0 commit comments

Comments
 (0)