@configuratorware/configurator-frontendgui 1.34.3 → 1.34.4
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/App/Modules/Designer/Components/DesignerSelectionToolbox/DesignerSelectionToolbox.js
CHANGED
|
@@ -196,7 +196,8 @@ var DesignerSelectionToolbox = function DesignerSelectionToolbox(props) {
|
|
|
196
196
|
addCustomFont = props.addCustomFont,
|
|
197
197
|
defaultFont = props.defaultFont,
|
|
198
198
|
loadFonts = props.loadFonts,
|
|
199
|
-
initialColor = props.initialColor
|
|
199
|
+
initialColor = props.initialColor,
|
|
200
|
+
autoFocusEditor = props.autoFocusEditor;
|
|
200
201
|
var rteRef = (0, _react.useRef)(null);
|
|
201
202
|
var editorRef = (0, _react.useRef)(null);
|
|
202
203
|
|
|
@@ -330,7 +331,7 @@ var DesignerSelectionToolbox = function DesignerSelectionToolbox(props) {
|
|
|
330
331
|
}
|
|
331
332
|
|
|
332
333
|
return renderTextEditor(_objectSpread(_objectSpread({}, textToolsRenderObj), {}, {
|
|
333
|
-
autoFocusWhenMounted: !((0, _Selectors.isPlaceholderContent)(selectedObject.content) || (0, _isMobileDevice["default"])()),
|
|
334
|
+
autoFocusWhenMounted: autoFocusEditor || !((0, _Selectors.isPlaceholderContent)(selectedObject.content) || (0, _isMobileDevice["default"])()),
|
|
334
335
|
textEditorElementProps: textEditorElementProps,
|
|
335
336
|
onChangeHTML: function onChangeHTML() {
|
|
336
337
|
// call the original function first with all the args
|
|
@@ -411,7 +412,8 @@ DesignerSelectionToolbox.propTypes = {
|
|
|
411
412
|
calculateTextEditorBackgroundColor: _propTypes["default"].func,
|
|
412
413
|
addCustomFont: _propTypes["default"].func,
|
|
413
414
|
defaultFont: _propTypes["default"].object,
|
|
414
|
-
initialColor: _propTypes["default"].object
|
|
415
|
+
initialColor: _propTypes["default"].object,
|
|
416
|
+
autoFocusEditor: _propTypes["default"].bool
|
|
415
417
|
};
|
|
416
418
|
DesignerSelectionToolbox.defaultProps = {
|
|
417
419
|
TextControlboxComponent: _TextControlbox["default"],
|
|
@@ -422,7 +424,8 @@ DesignerSelectionToolbox.defaultProps = {
|
|
|
422
424
|
classes: {},
|
|
423
425
|
width: '',
|
|
424
426
|
isActiveBulkName: false,
|
|
425
|
-
isPortraitMode: false
|
|
427
|
+
isPortraitMode: false,
|
|
428
|
+
autoFocusEditor: false
|
|
426
429
|
};
|
|
427
430
|
|
|
428
431
|
var _default = (0, _withWidth["default"])()((0, _withStyles["default"])(styles, {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.4",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.34.
|
|
9
|
+
"@configuratorware/scripts": "1.34.4",
|
|
10
10
|
"@hot-loader/react-dom": "^17.0.1",
|
|
11
11
|
"@material-ui/core": "^4.12.2",
|
|
12
12
|
"@material-ui/icons": "^4.11.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0",
|
|
40
40
|
"react-swipeable": "^5.5.1",
|
|
41
41
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
42
|
-
"redhotmagma-graphics-editor": "1.34.
|
|
43
|
-
"redhotmagma-visualization": "1.34.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.34.4",
|
|
43
|
+
"redhotmagma-visualization": "1.34.4",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
package/src/App/Modules/Designer/Components/DesignerSelectionToolbox/DesignerSelectionToolbox.js
CHANGED
|
@@ -132,6 +132,7 @@ const DesignerSelectionToolbox = props => {
|
|
|
132
132
|
defaultFont,
|
|
133
133
|
loadFonts,
|
|
134
134
|
initialColor,
|
|
135
|
+
autoFocusEditor,
|
|
135
136
|
} = props;
|
|
136
137
|
|
|
137
138
|
const rteRef = useRef(null);
|
|
@@ -291,10 +292,13 @@ const DesignerSelectionToolbox = props => {
|
|
|
291
292
|
|
|
292
293
|
return renderTextEditor({
|
|
293
294
|
...textToolsRenderObj,
|
|
294
|
-
autoFocusWhenMounted:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
autoFocusWhenMounted:
|
|
296
|
+
autoFocusEditor ||
|
|
297
|
+
!(
|
|
298
|
+
isPlaceholderContent(
|
|
299
|
+
selectedObject.content
|
|
300
|
+
) || isMobileDevice()
|
|
301
|
+
),
|
|
298
302
|
textEditorElementProps,
|
|
299
303
|
onChangeHTML: (...args) => {
|
|
300
304
|
// call the original function first with all the args
|
|
@@ -396,6 +400,7 @@ DesignerSelectionToolbox.propTypes = {
|
|
|
396
400
|
addCustomFont: PropTypes.func,
|
|
397
401
|
defaultFont: PropTypes.object,
|
|
398
402
|
initialColor: PropTypes.object,
|
|
403
|
+
autoFocusEditor: PropTypes.bool,
|
|
399
404
|
};
|
|
400
405
|
|
|
401
406
|
DesignerSelectionToolbox.defaultProps = {
|
|
@@ -408,6 +413,7 @@ DesignerSelectionToolbox.defaultProps = {
|
|
|
408
413
|
width: '',
|
|
409
414
|
isActiveBulkName: false,
|
|
410
415
|
isPortraitMode: false,
|
|
416
|
+
autoFocusEditor: false,
|
|
411
417
|
};
|
|
412
418
|
|
|
413
419
|
export default withWidth()(
|