@monolith-forensics/monolith-ui 1.2.27 → 1.2.29

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.
@@ -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;
@@ -359,9 +359,6 @@ const RichTextEditor = forwardRef(({ className, editorInstanceRef, defaultValue
359
359
  editor.view.focus();
360
360
  }
361
361
  }, [autoFocus, editor]);
362
- useEffect(() => {
363
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(defaultValue);
364
- }, [defaultValue]);
365
362
  return (_jsx(StyledContent, { className: className, children: _jsxs(RichTextEditorContext.Provider, { value: {
366
363
  font: fontState,
367
364
  setFont: setFontState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",