react-pdf-editor-1 1.2.46 → 1.2.47

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
@@ -27,6 +27,7 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
27
27
  mode = _ref.mode,
28
28
  container = _ref.container,
29
29
  iframeSrc = _ref.iframeSrc,
30
+ role = _ref.role,
30
31
  onFileFailed = _ref.onFileFailed,
31
32
  defaultAnnotationEditorMode = _ref.defaultAnnotationEditorMode,
32
33
  initialAnnotations = _ref.initialAnnotations,
@@ -106,7 +107,8 @@ var useCreateIframeAndLoadViewer = function useCreateIframeAndLoadViewer(_ref) {
106
107
  authInfo: authInfo,
107
108
  defaultAnnotationEditorMode: defaultAnnotationEditorMode,
108
109
  textTagDefaults: textTagDefaults,
109
- hideUndoRedoButtons: hideUndoRedoButtons
110
+ hideUndoRedoButtons: hideUndoRedoButtons,
111
+ role: role
110
112
  };
111
113
 
112
114
  // 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.46",
3
+ "version": "1.2.47",
4
4
  "description": "## Core",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.d.ts CHANGED
@@ -11,6 +11,7 @@ declare module 'pdf_editor_aleon35_react_plugin' {
11
11
  general?: ("zoom" | "search" | "download" | "thumbnails" | "panel-toggle")[];
12
12
  editing?: ("remove" | "rotation" | "extract" | "move")[];
13
13
  };
14
+ role?: string;
14
15
  container: React.MutableRefObject<HTMLElement | null> | (HTMLElement | null);
15
16
  locale?: "en" | "es" | "ru",
16
17
  mode?: "split" | "regular",
package/src/index.js CHANGED
@@ -12,6 +12,7 @@ export const useCreateIframeAndLoadViewer = ({
12
12
  mode,
13
13
  container,
14
14
  iframeSrc,
15
+ role,
15
16
  onFileFailed,
16
17
  defaultAnnotationEditorMode,
17
18
  initialAnnotations,
@@ -56,7 +57,7 @@ export const useCreateIframeAndLoadViewer = ({
56
57
  // When the iframe is loaded, post the file to it
57
58
  iframe.onload = function() {
58
59
  const targetOrigin = window.location.origin;
59
- const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons };
60
+ const message = { files, fileName, tools, locale, licenseKey, mode, uuid, customData, initialAnnotations, notarySeal, initialSigners, modifiedUiElements, authInfo, defaultAnnotationEditorMode, textTagDefaults, hideUndoRedoButtons, role };
60
61
 
61
62
  // Set up a function to send the message
62
63
  const sendMessage = () => {