oolib 2.63.5 → 2.63.6
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/components/ImageInput/comps/ImageEditor/index.js +1 -1
- package/dist/components/ImageInput/comps/ImageEditor/utils/smallImageInputUIConditionsMet.d.ts +1 -2
- package/dist/components/ImageInput/comps/ImageEditor/utils/smallImageInputUIConditionsMet.js +2 -2
- package/dist/components/ImageInput/derivedComps/ProfileImageInput/index.d.ts +1 -2
- package/dist/components/ImageInput/derivedComps/ProfileImageInput/index.js +2 -3
- package/package.json +1 -1
|
@@ -109,7 +109,7 @@ function ImageEditor(_a) {
|
|
|
109
109
|
if (isInPopUp) {
|
|
110
110
|
setEditorStyle("toolbar");
|
|
111
111
|
}
|
|
112
|
-
else if ((0, smallImageInputUIConditionsMet_1.smallImageInputUIConditionsMet)({ width: width, height: height
|
|
112
|
+
else if ((0, smallImageInputUIConditionsMet_1.smallImageInputUIConditionsMet)({ width: width, height: height }) || containerShape === 'circle') {
|
|
113
113
|
setEditorStyle("modal");
|
|
114
114
|
}
|
|
115
115
|
else {
|
package/dist/components/ImageInput/comps/ImageEditor/utils/smallImageInputUIConditionsMet.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.smallImageInputUIConditionsMet = void 0;
|
|
4
4
|
var smallImageInputUIConditionsMet = function (_a) {
|
|
5
|
-
var width = _a.width, height = _a.height
|
|
6
|
-
return width < 300 || height < 300
|
|
5
|
+
var width = _a.width, height = _a.height;
|
|
6
|
+
return width < 300 || height < 300;
|
|
7
7
|
};
|
|
8
8
|
exports.smallImageInputUIConditionsMet = smallImageInputUIConditionsMet;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function ProfileImageInput({ id, value, onChange, readOnly, invert, allowedFormats, disableImageBorder, defaultImageSpread, containerShape, size, imageTitle: _imageTitle, imageTitlePath, content: _content,
|
|
1
|
+
export function ProfileImageInput({ id, value, onChange, readOnly, invert, allowedFormats, disableImageBorder, defaultImageSpread, containerShape, size, imageTitle: _imageTitle, imageTitlePath, content: _content, }: {
|
|
2
2
|
id: any;
|
|
3
3
|
value: any;
|
|
4
4
|
onChange: any;
|
|
@@ -12,6 +12,5 @@ export function ProfileImageInput({ id, value, onChange, readOnly, invert, allow
|
|
|
12
12
|
imageTitle: any;
|
|
13
13
|
imageTitlePath: any;
|
|
14
14
|
content: any;
|
|
15
|
-
tableRowData: any;
|
|
16
15
|
}): React.JSX.Element;
|
|
17
16
|
import React from "react";
|
|
@@ -19,9 +19,8 @@ var ProfileImageInput = function (_a) {
|
|
|
19
19
|
_f = _a.size,
|
|
20
20
|
//ProfileImageInput specific props
|
|
21
21
|
size = _f === void 0 ? 200 : _f, // Number > representing pixels
|
|
22
|
-
_imageTitle = _a.imageTitle, imageTitlePath = _a.imageTitlePath, _content = _a.content
|
|
23
|
-
;
|
|
24
|
-
var content = _content || tableRowData;
|
|
22
|
+
_imageTitle = _a.imageTitle, imageTitlePath = _a.imageTitlePath, _content = _a.content;
|
|
23
|
+
var content = _content;
|
|
25
24
|
var imageTitle = _imageTitle ||
|
|
26
25
|
(imageTitlePath && (0, getVal_1.getVal)(content, imageTitlePath)) ||
|
|
27
26
|
(value && ((_b = value[0]) === null || _b === void 0 ? void 0 : _b.publicUrl)) ||
|