react-pdf-editor-1 1.2.51 → 1.2.53
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 +4 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -2
package/dist/index.js
CHANGED
|
@@ -36,7 +36,9 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
|
|
|
36
36
|
initialSigners = _ref.initialSigners,
|
|
37
37
|
modifiedUiElements = _ref.modifiedUiElements,
|
|
38
38
|
textTagDefaults = _ref.textTagDefaults,
|
|
39
|
-
hideUndoRedoButtons = _ref.hideUndoRedoButtons
|
|
39
|
+
hideUndoRedoButtons = _ref.hideUndoRedoButtons,
|
|
40
|
+
_ref$canAutoSave = _ref.canAutoSave,
|
|
41
|
+
canAutoSave = _ref$canAutoSave === void 0 ? true : _ref$canAutoSave;
|
|
40
42
|
var _useState = (0, _react.useState)(false),
|
|
41
43
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42
44
|
internalIsReady = _useState2[0],
|
|
@@ -119,6 +121,7 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
|
|
|
119
121
|
defaultAnnotationEditorMode: defaultAnnotationEditorMode,
|
|
120
122
|
textTagDefaults: textTagDefaults,
|
|
121
123
|
hideUndoRedoButtons: hideUndoRedoButtons,
|
|
124
|
+
canAutoSave: canAutoSave,
|
|
122
125
|
role: role
|
|
123
126
|
};
|
|
124
127
|
console.log('[react-pdf-sdk] posting init message to pdf-view', {
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -21,7 +21,8 @@ export const useCreateIframeAndLoadViewer = ({
|
|
|
21
21
|
initialSigners,
|
|
22
22
|
modifiedUiElements,
|
|
23
23
|
textTagDefaults,
|
|
24
|
-
hideUndoRedoButtons
|
|
24
|
+
hideUndoRedoButtons,
|
|
25
|
+
canAutoSave = true
|
|
25
26
|
}) => {
|
|
26
27
|
const [internalIsReady, setInternalIsReady] = useState(false); // Add this state variable
|
|
27
28
|
const [selectedPages, setSelectedPages] = useState([]);
|
|
@@ -61,7 +62,7 @@ export const useCreateIframeAndLoadViewer = ({
|
|
|
61
62
|
// When the iframe is loaded, post the file to it
|
|
62
63
|
iframe.onload = function() {
|
|
63
64
|
const targetOrigin = window.location.origin;
|
|
64
|
-
const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, purpose: customData?.purpose, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons, role };
|
|
65
|
+
const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, purpose: customData?.purpose, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons, canAutoSave, role };
|
|
65
66
|
|
|
66
67
|
console.log('[react-pdf-sdk] posting init message to pdf-view', {
|
|
67
68
|
mode,
|