diff --git a/packages/pluggable-widgets-tools/package.json b/packages/pluggable-widgets-tools/package.json index b68e7087..21aec125 100644 --- a/packages/pluggable-widgets-tools/package.json +++ b/packages/pluggable-widgets-tools/package.json @@ -1,6 +1,6 @@ { "name": "@mendix/pluggable-widgets-tools", - "version": "11.3.1", + "version": "11.8.0", "description": "Mendix Pluggable Widgets Tools", "engines": { "node": ">=20" @@ -78,7 +78,7 @@ "jest-jasmine2": "^29.0.3", "jest-junit": "^13.0.0", "make-dir": "^3.1.0", - "mendix": "^10.21.64362", + "mendix": "^11.8.0", "mime": "^3.0.0", "node-fetch": "^2.6.1", "postcss": "^8.3.11", diff --git a/packages/pluggable-widgets-tools/src/typings-generator/WidgetXml.ts b/packages/pluggable-widgets-tools/src/typings-generator/WidgetXml.ts index 99656baa..f6220ef6 100644 --- a/packages/pluggable-widgets-tools/src/typings-generator/WidgetXml.ts +++ b/packages/pluggable-widgets-tools/src/typings-generator/WidgetXml.ts @@ -51,6 +51,7 @@ export interface Property { isDefault?: string; dataSource?: string; onChange?: string; + allowUpload?: string; }; caption?: string[]; category?: string[]; diff --git a/packages/pluggable-widgets-tools/src/typings-generator/__tests__/index.spec.ts b/packages/pluggable-widgets-tools/src/typings-generator/__tests__/index.spec.ts index b628948c..50c894d8 100644 --- a/packages/pluggable-widgets-tools/src/typings-generator/__tests__/index.spec.ts +++ b/packages/pluggable-widgets-tools/src/typings-generator/__tests__/index.spec.ts @@ -45,6 +45,8 @@ import { associationMetaDataNativeInput, associationMetaDataWebInput } from "./i import { associationMetaDataNativeOutput, associationMetaDataWebOutput } from "./outputs/metadata-association"; import {listActionWithVariablesInput, listActionWithVariablesInputNative} from "./inputs/list-action-with-variables"; import {listActionWithVariablesOutput, listActionWithVariablesOutputNative} from "./outputs/list-action-with-variables"; +import {imageWebInput, imageNativeInput} from "./inputs/image"; +import {imageWebOutput, imageNativeOutput} from "./outputs/image"; describe("Generating tests", () => { it("Generates a parsed typing from XML for native", () => { @@ -236,6 +238,16 @@ describe("Generating tests", () => { const newContent = generateNativeTypesFor(associationMetaDataNativeInput); expect(newContent).toBe(associationMetaDataNativeOutput); }); + + it("Generates a parsed typing from XML for web using images", () => { + const newContent = generateFullTypesFor(imageWebInput); + expect(newContent).toBe(imageWebOutput); + }); + + it("Generates a parsed typing from XML for native using images", () => { + const newContent = generateNativeTypesFor(imageNativeInput); + expect(newContent).toBe(imageNativeOutput); + }); }); function generateFullTypesFor(xml: string) { diff --git a/packages/pluggable-widgets-tools/src/typings-generator/__tests__/inputs/file.ts b/packages/pluggable-widgets-tools/src/typings-generator/__tests__/inputs/file.ts index cb04709c..2cd55cc7 100644 --- a/packages/pluggable-widgets-tools/src/typings-generator/__tests__/inputs/file.ts +++ b/packages/pluggable-widgets-tools/src/typings-generator/__tests__/inputs/file.ts @@ -12,6 +12,10 @@ export const fileInput = `