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.
@@ -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, containerShape: containerShape })) {
112
+ else if ((0, smallImageInputUIConditionsMet_1.smallImageInputUIConditionsMet)({ width: width, height: height }) || containerShape === 'circle') {
113
113
  setEditorStyle("modal");
114
114
  }
115
115
  else {
@@ -1,5 +1,4 @@
1
- export function smallImageInputUIConditionsMet({ width, height, containerShape }: {
1
+ export function smallImageInputUIConditionsMet({ width, height }: {
2
2
  width: any;
3
3
  height: any;
4
- containerShape: any;
5
4
  }): boolean;
@@ -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, containerShape = _a.containerShape;
6
- return width < 300 || height < 300 || containerShape === "circle";
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, tableRowData }: {
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, tableRowData = _a.tableRowData //DataTables pass the content of that row to the cell Comp as 'tableRowData'
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)) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.63.5",
3
+ "version": "2.63.6",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",