cyntler / react-doc-viewer

File viewer for React.
https://cyntler.github.io/react-doc-viewer
Apache License 2.0
396 stars 127 forks source link

New version does not include commonJS files for importing of Dist files #273

Open bppdddqqqq opened 5 months ago

bppdddqqqq commented 5 months ago

New version of React-Doc-Viewer only contains header files and compiled [c]js in ~/dist/.

Motivation

We have custom PDF reader which has to stick to certain UI principles and we've used PDFContext component located formerly in '@cyntler/react-doc-viewer/dist/esm/renderers/pdf/state', but this pathing had changed entirely and we are unable to figure out where we can pull PDFContext now... or for that matter other components

michael-vasyliv commented 5 months ago

I have the same issue, it's not possible to import PDFProvider, PDFPages

cyntler commented 5 months ago

Now we have bundled all of the library to the one file to resolve problems with Next.js usage. All I can is just add additional export lines of those files in the index file. I think, you will be able to import then.

michael-vasyliv commented 1 month ago

@cyntler can you export all components?