@monolith-forensics/monolith-ui 1.2.28 → 1.2.30

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.
@@ -188,6 +188,7 @@ const StyledButton = styled.button `
188
188
  .inner-span {
189
189
  display: flex;
190
190
  align-items: center;
191
+ justify-content: center;
191
192
  }
192
193
 
193
194
  .button-label {
@@ -1,16 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
- import { Document, Page,
4
- // pdfjs
5
- } from "react-pdf";
3
+ import { Document, Page, pdfjs } from "react-pdf";
6
4
  import "react-pdf/dist/esm/Page/AnnotationLayer.css";
7
5
  import "react-pdf/dist/esm/Page/TextLayer.css";
8
6
  import styled from "styled-components";
9
7
  import Loader from "../../Loader";
10
- // pdfjs.GlobalWorkerOptions.workerSrc = new URL(
11
- // "pdfjs-dist/build/pdf.worker.min.mjs",
12
- // import.meta.url
13
- // ).toString();
8
+ pdfjs.GlobalWorkerOptions.workerSrc = new URL("pdfjs-dist/build/pdf.worker.min.mjs", import.meta.url).toString();
14
9
  const StyledContainer = styled.div `
15
10
  display: flex;
16
11
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",