impaktapps-ui-builder 1.0.71-alpha.1 → 1.0.71-alpha.3

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.1",
3
+ "version": "1.0.71-alpha.3",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
  };
@@ -539,6 +539,12 @@ export const buildPropertiesSection = function (type: String) {
539
539
  getTextArea("thought", "Today's thought", false),
540
540
  ]
541
541
  break;
542
+ case "Image":
543
+ uiSchema.elements = [
544
+ getInputField("imageUrl", "Image URL"),
545
+ getInputField("height", "Image Height"),
546
+ ]
547
+ break;
542
548
  }
543
549
  return uiSchema;
544
550
  };
@@ -42,7 +42,8 @@ const sectionLabels = {
42
42
  ColumnGroup: ["Core", "Components"],
43
43
  Thought: ["Core", "Properties", "Events", "Style", "Validation"],
44
44
  Date: ["Core", "Properties", "Events", "Style", "Validation"],
45
- DateTime: ["Core", "Properties", "Events", "Style", "Validation"]
45
+ DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
46
+ Image: ["Core", "Properties","Style"],
46
47
  }
47
48
 
48
49
  export function refreshPage(type: string, store: any) {