@monolith-forensics/monolith-ui 1.2.44 → 1.2.45

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.
@@ -11,12 +11,17 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { useState } from "react";
14
- import { Document, Page, pdfjs } from "react-pdf";
14
+ import { Document, Page,
15
+ // pdfjs
16
+ } from "react-pdf";
15
17
  import "react-pdf/dist/esm/Page/AnnotationLayer.css";
16
18
  import "react-pdf/dist/esm/Page/TextLayer.css";
17
19
  import styled from "styled-components";
18
20
  import Loader from "../../Loader";
19
- pdfjs.GlobalWorkerOptions.workerSrc = new URL("pdfjs-dist/build/pdf.worker.min.mjs", import.meta.url).toString();
21
+ // pdfjs.GlobalWorkerOptions.workerSrc = new URL(
22
+ // "pdfjs-dist/build/pdf.worker.min.mjs",
23
+ // import.meta.url
24
+ // ).toString();
20
25
  const StyledContainer = styled.div ``;
21
26
  const StyledDocument = styled(Document).attrs({
22
27
  className: "PdfViewer-document",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",