react-pdf-editor-1 1.2.42 → 1.2.43

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.
package/dist/index.js CHANGED
@@ -32,7 +32,8 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
32
32
  initialAnnotations = _ref.initialAnnotations,
33
33
  notarySeal = _ref.notarySeal,
34
34
  initialSigners = _ref.initialSigners,
35
- modifiedUiElements = _ref.modifiedUiElements;
35
+ modifiedUiElements = _ref.modifiedUiElements,
36
+ textTagDefaults = _ref.textTagDefaults;
36
37
  var _useState = (0, _react.useState)(false),
37
38
  _useState2 = _slicedToArray(_useState, 2),
38
39
  internalIsReady = _useState2[0],
@@ -101,7 +102,8 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
101
102
  initialSigners: initialSigners,
102
103
  modifiedUiElements: modifiedUiElements,
103
104
  authInfo: authInfo,
104
- defaultAnnotationEditorMode: defaultAnnotationEditorMode
105
+ defaultAnnotationEditorMode: defaultAnnotationEditorMode,
106
+ textTagDefaults: textTagDefaults
105
107
  };
106
108
 
107
109
  // Set up a function to send the message
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-pdf-editor-1",
3
- "version": "1.2.42",
3
+ "version": "1.2.43",
4
4
  "description": "## Core",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -17,7 +17,8 @@ export const useCreateIframeAndLoadViewer = ({
17
17
  initialAnnotations,
18
18
  notarySeal,
19
19
  initialSigners,
20
- modifiedUiElements
20
+ modifiedUiElements,
21
+ textTagDefaults
21
22
  }) => {
22
23
  const [internalIsReady, setInternalIsReady] = useState(false); // Add this state variable
23
24
  const [selectedPages, setSelectedPages] = useState([]);
@@ -53,7 +54,7 @@ export const useCreateIframeAndLoadViewer = ({
53
54
  // When the iframe is loaded, post the file to it
54
55
  iframe.onload = function() {
55
56
  const targetOrigin = window.location.origin;
56
- const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode };
57
+ const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults };
57
58
 
58
59
  // Set up a function to send the message
59
60
  const sendMessage = () => {