pcm-shared-components 0.0.59 → 0.0.62
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.
|
@@ -40,7 +40,12 @@ export const GenericDialogWindow = props => {
|
|
|
40
40
|
|
|
41
41
|
const closeDialog = () => {
|
|
42
42
|
onClose();
|
|
43
|
-
};
|
|
43
|
+
}; // -----------------------------------------
|
|
44
|
+
// Note make sure to include disableEnforceFocus or else I'll have infinite error/warnings on Uncaught RangeError.
|
|
45
|
+
// I think this error comes only after a state has changed when multiple dialog windows are open they are fighting for focus.
|
|
46
|
+
// Bug: https://github.com/mui/material-ui/issues/8741
|
|
47
|
+
// -----------------------------------------
|
|
48
|
+
|
|
44
49
|
|
|
45
50
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
46
51
|
theme: defaultTheme
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useRef, useEffect } from 'react';
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import CanvasDraw from "react-canvas-draw";
|
|
3
3
|
import Controls from './components/Controls';
|
|
4
4
|
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
@@ -23,7 +23,7 @@ import {ImageCanvasDraw} from 'pcm-shared-components';
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
const ImageCanvasDraw = props => {
|
|
26
|
+
export const ImageCanvasDraw = props => {
|
|
27
27
|
const {
|
|
28
28
|
onSave,
|
|
29
29
|
outputFormat,
|
|
@@ -154,7 +154,6 @@ const ImageCanvasDraw = props => {
|
|
|
154
154
|
imgSrc: state.b64DataUrl
|
|
155
155
|
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, "loading..."));
|
|
156
156
|
};
|
|
157
|
-
|
|
158
157
|
export default ImageCanvasDraw;
|
|
159
158
|
ImageCanvasDraw.defaultProps = {
|
|
160
159
|
onSave: undefined,
|
package/dist/index.js
CHANGED
|
@@ -5,4 +5,5 @@ import CustomFab from './components/Buttons/CustomFab';
|
|
|
5
5
|
import HelpButton from './components/Buttons/HelpButton';
|
|
6
6
|
import GenericDialogWindow from './components/Dialogs/GenericDialogWindow';
|
|
7
7
|
import PcSharedComponentThemeInheritor from './components/PcSharedComponentThemeInheritor';
|
|
8
|
-
|
|
8
|
+
import ImageCanvasDraw from './components/Drawing/ImageCanvasDraw';
|
|
9
|
+
export { TestButton, CodeHighlight, CustomFab, HelpButton, GenericDialogWindow, PcSharedComponentThemeInheritor, ImageCanvasDraw };
|