react-pdf-editor-1 1.2.49 → 1.2.50
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +8 -1
package/dist/index.js
CHANGED
|
@@ -110,6 +110,7 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
|
|
|
110
110
|
mode: mode,
|
|
111
111
|
uuid: uuid,
|
|
112
112
|
customData: customData,
|
|
113
|
+
purpose: customData === null || customData === void 0 ? void 0 : customData.purpose,
|
|
113
114
|
initialAnnotations: initialAnnotations,
|
|
114
115
|
notarySeal: notarySeal,
|
|
115
116
|
initialSigners: initialSigners,
|
|
@@ -120,6 +121,12 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
|
|
|
120
121
|
hideUndoRedoButtons: hideUndoRedoButtons,
|
|
121
122
|
role: role
|
|
122
123
|
};
|
|
124
|
+
console.log('[react-pdf-sdk] posting init message to pdf-view', {
|
|
125
|
+
mode: mode,
|
|
126
|
+
hasCustomData: Boolean(customData),
|
|
127
|
+
customDataPurpose: customData === null || customData === void 0 ? void 0 : customData.purpose,
|
|
128
|
+
rootPurpose: message.purpose
|
|
129
|
+
});
|
|
123
130
|
if (typeof notaryStamp !== 'undefined') {
|
|
124
131
|
message.notaryStamp = notaryStamp;
|
|
125
132
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -61,7 +61,14 @@ export const useCreateIframeAndLoadViewer = ({
|
|
|
61
61
|
// When the iframe is loaded, post the file to it
|
|
62
62
|
iframe.onload = function() {
|
|
63
63
|
const targetOrigin = window.location.origin;
|
|
64
|
-
const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons, role };
|
|
64
|
+
const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, purpose: customData?.purpose, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons, role };
|
|
65
|
+
|
|
66
|
+
console.log('[react-pdf-sdk] posting init message to pdf-view', {
|
|
67
|
+
mode,
|
|
68
|
+
hasCustomData: Boolean(customData),
|
|
69
|
+
customDataPurpose: customData?.purpose,
|
|
70
|
+
rootPurpose: message.purpose
|
|
71
|
+
});
|
|
65
72
|
|
|
66
73
|
if (typeof notaryStamp !== 'undefined') {
|
|
67
74
|
message.notaryStamp = notaryStamp;
|