impaktapps-ui-builder 1.0.71-alpha.2 → 1.0.71-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.71-alpha.2",
3
+ "version": "1.0.71-alpha.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -4,12 +4,12 @@ import { createLayoutFormat } from "./buildConfig";
4
4
  const imageUiSchema = {
5
5
  type: "Control",
6
6
  scope: "#/properties/Logo",
7
- layout: 3,
8
7
 
9
8
  options: {
10
9
  widget: "Image",
11
10
  },
12
11
  config: {
12
+ layout: 3,
13
13
  main: {
14
14
  url: "",
15
15
  },
@@ -37,5 +37,8 @@ export const buildImage = (config, componentScope) => {
37
37
  if (config.style) {
38
38
  image.config.style = JSON.parse(config.style);
39
39
  }
40
+ if (config.height) {
41
+ image.config.style.imageStyle = {...image.config.style.imageStyle, height: config.height}
42
+ }
40
43
  return image;
41
44
  };
@@ -542,6 +542,7 @@ export const buildPropertiesSection = function (type: String) {
542
542
  case "Image":
543
543
  uiSchema.elements = [
544
544
  getInputField("imageUrl", "Image URL"),
545
+ getInputField("height", "Image Height"),
545
546
  ]
546
547
  break;
547
548
  }