Skip to content

Commit 453f227

Browse files
authored
[WC-2862] Pwt 10.18 (#1474)
2 parents 0371559 + 9c7ae2b commit 453f227

File tree

104 files changed

+2395
-2212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+2395
-2212
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.13.1
1+
22.14.0

package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"turbo": "^1.10.14"
2424
},
2525
"engines": {
26-
"node": ">=20",
27-
"pnpm": ">=9.12.3"
26+
"node": ">=22",
27+
"pnpm": ">=9.15.5"
2828
},
29-
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
29+
"packageManager": "pnpm@9.15.5+sha512.845196026aab1cc3f098a0474b64dfbab2afe7a1b4e91dd86895d8e4aa32a7a6d03049e2d0ad770bbe4de023a7122fb68c1a1d6e0d033c7076085f9d5d4800d4",
3030
"pnpm": {
3131
"peerDependencyRules": {
3232
"allowedVersions": {
@@ -38,12 +38,11 @@
3838
]
3939
},
4040
"overrides": {
41-
"@mendix/pluggable-widgets-tools": "10.16.0",
41+
"@mendix/pluggable-widgets-tools": "10.18.1",
4242
"react": "^18.0.0",
4343
"react-dom": "^18.0.0",
4444
"prettier": "~2.8.8",
4545
"@types/react": ">=18.2.36",
46-
"typescript@5": "<5.2.0",
4746
"@types/big.js": "^6.2.2",
4847
"d3-color@<3.1.0": ">=3.1.0",
4948
"loader-utils@1": "^1.4.2",
@@ -54,16 +53,16 @@
5453
"[email protected]": ">=1.0.2",
5554
"[email protected]": ">=1.0.2",
5655
"@codemirror/view": "^6.34.2",
57-
"@mendix/pluggable-widgets-tools>typescript@4": "5.0.4",
58-
"@mendix/pluggable-widgets-tools>ts-node@9": "^10.9.1",
5956
"rollup": "^2.79.2",
60-
"enzyme>cheerio": "1.0.0-rc.10"
57+
"enzyme>cheerio": "1.0.0-rc.10",
58+
"ts-node": "10.9.2"
6159
},
6260
"patchedDependencies": {
6361
6462
6563
66-
"mime-types": "patches/mime-types.patch"
64+
"mime-types": "patches/mime-types.patch",
65+
"rc-trigger": "patches/rc-trigger.patch"
6766
}
6867
}
6968
}

packages/customWidgets/any-chart-web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"raw-loader": "^4.0.2",
4343
"sass-loader": "^13.2.0",
4444
"ts-loader": "^9.4.2",
45+
"typescript": "<5.2.0",
4546
"webpack": "^5.96.1",
4647
"webpack-cli": "^5.1.4"
4748
},

packages/customWidgets/calendar-web/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@babel/core": "^7.21.0",
4242
"@mendix/automation-utils": "workspace:*",
4343
"@mendix/eslint-config-web-widgets": "workspace:*",
44-
"@mendix/pluggable-widgets-tools": "10.16.0",
44+
"@mendix/pluggable-widgets-tools": "*",
4545
"@mendix/prettier-config-web-widgets": "workspace:*",
4646
"@types/date-arithmetic": "^3.1.2",
4747
"@types/react-big-calendar": "0.20.20",
@@ -55,6 +55,7 @@
5555
"style-loader": "^3.3.1",
5656
"to-string-loader": "^1.2.0",
5757
"ts-loader": "^9.4.2",
58+
"typescript": "<5.2.0",
5859
"webpack": "^5.75.0",
5960
"webpack-cli": "^4.10.0",
6061
"webpack-merge": "^5.8.0"

packages/customWidgets/signature-web/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"devDependencies": {
3939
"@mendix/automation-utils": "workspace:*",
4040
"@mendix/eslint-config-web-widgets": "workspace:*",
41-
"@mendix/pluggable-widgets-tools": "10.16.0",
41+
"@mendix/pluggable-widgets-tools": "*",
4242
"@mendix/prettier-config-web-widgets": "workspace:*",
4343
"copy-webpack-plugin": "^11.0.0",
4444
"css-loader": "^6.7.3",
@@ -49,6 +49,7 @@
4949
"sass-loader": "^13.2.0",
5050
"to-string-loader": "^1.1.6",
5151
"ts-loader": "^9.4.2",
52+
"typescript": "<5.2.0",
5253
"webpack": "^5.75.0",
5354
"webpack-cli": "^5.0.1"
5455
},

packages/modules/data-widgets/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"devDependencies": {
6565
"@mendix/automation-utils": "workspace:*",
6666
"@mendix/prettier-config-web-widgets": "workspace:*",
67-
"@rollup/plugin-node-resolve": "^15.2.3",
67+
"@rollup/plugin-node-resolve": "^16.0.0",
6868
"@rollup/plugin-terser": "^0.4.4",
6969
"concurrently": "^6.5.1",
7070
"copy-and-watch": "^0.1.6",

packages/pluggableWidgets/accessibility-helper-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:*",
5050
"@mendix/widget-plugin-platform": "workspace:*"

packages/pluggableWidgets/accessibility-helper-web/typings/AccessibilityHelperProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export interface AccessibilityHelperPreviewProps {
4343
style: string;
4444
styleObject?: CSSProperties;
4545
readOnly: boolean;
46-
renderMode?: "design" | "xray" | "structure";
46+
renderMode: "design" | "xray" | "structure";
47+
translate: (text: string) => string;
4748
targetSelector: string;
4849
content: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
4950
attributesList: AttributesListPreviewType[];

packages/pluggableWidgets/accordion-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"devDependencies": {
4646
"@mendix/automation-utils": "workspace:*",
4747
"@mendix/eslint-config-web-widgets": "workspace:*",
48-
"@mendix/pluggable-widgets-tools": "10.16.0",
48+
"@mendix/pluggable-widgets-tools": "*",
4949
"@mendix/prettier-config-web-widgets": "workspace:*",
5050
"@mendix/run-e2e": "workspace:*",
5151
"@mendix/widget-plugin-component-kit": "workspace:*",

packages/pluggableWidgets/accordion-web/typings/AccordionProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ export interface AccordionPreviewProps {
7373
style: string;
7474
styleObject?: CSSProperties;
7575
readOnly: boolean;
76-
renderMode?: "design" | "xray" | "structure";
76+
renderMode: "design" | "xray" | "structure";
77+
translate: (text: string) => string;
7778
advancedMode: boolean;
7879
groups: GroupsPreviewType[];
7980
collapsible: boolean;

packages/pluggableWidgets/area-chart-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"devDependencies": {
4141
"@mendix/automation-utils": "workspace:*",
4242
"@mendix/eslint-config-web-widgets": "workspace:*",
43-
"@mendix/pluggable-widgets-tools": "10.16.0",
43+
"@mendix/pluggable-widgets-tools": "*",
4444
"@mendix/prettier-config-web-widgets": "workspace:*",
4545
"@mendix/widget-plugin-platform": "workspace:*",
4646
"@mendix/widget-plugin-test-utils": "workspace:*"

packages/pluggableWidgets/area-chart-web/typings/AreaChartProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export interface AreaChartPreviewProps {
106106
style: string;
107107
styleObject?: CSSProperties;
108108
readOnly: boolean;
109-
renderMode?: "design" | "xray" | "structure";
109+
renderMode: "design" | "xray" | "structure";
110+
translate: (text: string) => string;
110111
series: SeriesPreviewType[];
111112
enableAdvancedOptions: boolean;
112113
showPlaygroundSlot: boolean;

packages/pluggableWidgets/badge-button-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:*",
5050
"@mendix/widget-plugin-platform": "workspace:*",

packages/pluggableWidgets/badge-button-web/typings/BadgeButtonProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export interface BadgeButtonPreviewProps {
2525
style: string;
2626
styleObject?: CSSProperties;
2727
readOnly: boolean;
28-
renderMode?: "design" | "xray" | "structure";
28+
renderMode: "design" | "xray" | "structure";
29+
translate: (text: string) => string;
2930
label: string;
3031
value: string;
3132
onClickEvent: {} | null;

packages/pluggableWidgets/badge-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:^*",
5050
"@mendix/widget-plugin-platform": "workspace:*",

packages/pluggableWidgets/badge-web/typings/BadgeProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export interface BadgePreviewProps {
2727
style: string;
2828
styleObject?: CSSProperties;
2929
readOnly: boolean;
30-
renderMode?: "design" | "xray" | "structure";
30+
renderMode: "design" | "xray" | "structure";
31+
translate: (text: string) => string;
3132
type: TypeEnum;
3233
value: string;
3334
onClick: {} | null;

packages/pluggableWidgets/bar-chart-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"devDependencies": {
4141
"@mendix/automation-utils": "workspace:*",
4242
"@mendix/eslint-config-web-widgets": "workspace:*",
43-
"@mendix/pluggable-widgets-tools": "10.16.0",
43+
"@mendix/pluggable-widgets-tools": "*",
4444
"@mendix/prettier-config-web-widgets": "workspace:*",
4545
"@mendix/widget-plugin-platform": "workspace:*",
4646
"@mendix/widget-plugin-test-utils": "workspace:*"

packages/pluggableWidgets/bar-chart-web/typings/BarChartProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export interface BarChartPreviewProps {
9393
style: string;
9494
styleObject?: CSSProperties;
9595
readOnly: boolean;
96-
renderMode?: "design" | "xray" | "structure";
96+
renderMode: "design" | "xray" | "structure";
97+
translate: (text: string) => string;
9798
series: SeriesPreviewType[];
9899
enableAdvancedOptions: boolean;
99100
showPlaygroundSlot: boolean;

packages/pluggableWidgets/barcode-scanner-web/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:*",
5050
"@mendix/widget-plugin-component-kit": "workspace:*",
5151
"@mendix/widget-plugin-hooks": "workspace:*",
5252
"@mendix/widget-plugin-platform": "workspace:*",
53-
"@rollup/plugin-replace": "^2.4.2"
53+
"@rollup/plugin-replace": "^6.0.2"
5454
},
5555
"dependencies": {
5656
"@zxing/library": "~0.21.3",

packages/pluggableWidgets/barcode-scanner-web/typings/BarcodeScannerProps.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export interface BarcodeScannerPreviewProps {
4545
style: string;
4646
styleObject?: CSSProperties;
4747
readOnly: boolean;
48+
renderMode: "design" | "xray" | "structure";
49+
translate: (text: string) => string;
4850
datasource: string;
4951
showMask: boolean;
5052
useAllFormats: boolean;

packages/pluggableWidgets/bubble-chart-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"devDependencies": {
4141
"@mendix/automation-utils": "workspace:*",
4242
"@mendix/eslint-config-web-widgets": "workspace:*",
43-
"@mendix/pluggable-widgets-tools": "10.16.0",
43+
"@mendix/pluggable-widgets-tools": "*",
4444
"@mendix/prettier-config-web-widgets": "workspace:*",
4545
"@mendix/widget-plugin-platform": "workspace:*",
4646
"@mendix/widget-plugin-test-utils": "workspace:*"

packages/pluggableWidgets/bubble-chart-web/typings/BubbleChartProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ export interface BubbleChartPreviewProps {
9898
style: string;
9999
styleObject?: CSSProperties;
100100
readOnly: boolean;
101-
renderMode?: "design" | "xray" | "structure";
101+
renderMode: "design" | "xray" | "structure";
102+
translate: (text: string) => string;
102103
lines: LinesPreviewType[];
103104
enableAdvancedOptions: boolean;
104105
showPlaygroundSlot: boolean;

packages/pluggableWidgets/carousel-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:*",
5050
"@mendix/widget-plugin-platform": "workspace:*",

packages/pluggableWidgets/carousel-web/rollup.config.js renamed to packages/pluggableWidgets/carousel-web/rollup.config.mjs

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
import { writeFile } from "fs";
22
import { join } from "path";
3-
import { mkdir } from "shelljs";
3+
import shelljs from "shelljs";
4+
const { mkdir } = shelljs;
45
import mime from "mime-types";
56
import crypto from "crypto";
67
import postcssUrl from "postcss-url";
7-
import { postCssPlugin } from "@mendix/pluggable-widgets-tools/configs/rollup.config";
8+
import { pathToFileURL } from "url";
9+
import { postCssPlugin } from "@mendix/pluggable-widgets-tools/configs/rollup.config.mjs";
810

11+
const processPath = path => {
12+
if (process.platform === "win32" && !process.env.JEST_WORKER_ID) {
13+
// on windows import("C:\\path\\to\\file") is not valid, so we need to
14+
// use file:// URLs
15+
return pathToFileURL(path).toString();
16+
} else {
17+
return path;
18+
}
19+
};
920
const sourcePath = process.cwd();
1021
const outDir = join(sourcePath, "/dist/tmp/widgets/");
11-
const widgetPackageJson = require(join(sourcePath, "package.json"));
22+
const widgetPackageJson = (await import(processPath(join(sourcePath, "package.json")), { with: { type: "json" } }))
23+
.default;
1224
const widgetName = widgetPackageJson.widgetName;
1325
const widgetPackage = widgetPackageJson.packagePath;
1426
const outWidgetDir = join(widgetPackage.replace(/\./g, "/"), widgetName.toLowerCase());

packages/pluggableWidgets/carousel-web/typings/CarouselProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export interface CarouselPreviewProps {
3131
style: string;
3232
styleObject?: CSSProperties;
3333
readOnly: boolean;
34-
renderMode?: "design" | "xray" | "structure";
34+
renderMode: "design" | "xray" | "structure";
35+
translate: (text: string) => string;
3536
dataSource: {} | { caption: string } | { type: string } | null;
3637
content: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
3738
showPagination: boolean;

packages/pluggableWidgets/chart-playground-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@mendix/automation-utils": "workspace:*",
4444
"@mendix/eslint-config-web-widgets": "workspace:*",
45-
"@mendix/pluggable-widgets-tools": "10.16.0",
45+
"@mendix/pluggable-widgets-tools": "*",
4646
"@mendix/prettier-config-web-widgets": "workspace:*"
4747
},
4848
"dependencies": {

packages/pluggableWidgets/chart-playground-web/typings/ChartPlaygroundProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface ChartPlaygroundPreviewProps {
2222
style: string;
2323
styleObject?: CSSProperties;
2424
readOnly: boolean;
25-
renderMode?: "design" | "xray" | "structure";
25+
renderMode: "design" | "xray" | "structure";
26+
translate: (text: string) => string;
2627

2728
}

packages/pluggableWidgets/color-picker-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@mendix/automation-utils": "workspace:*",
4646
"@mendix/eslint-config-web-widgets": "workspace:*",
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:*",
5050
"@mendix/widget-plugin-component-kit": "workspace:*",

packages/pluggableWidgets/color-picker-web/typings/ColorPickerProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export interface ColorPickerContainerProps {
3535

3636
export interface ColorPickerPreviewProps {
3737
readOnly: boolean;
38-
renderMode?: "design" | "xray" | "structure";
38+
renderMode: "design" | "xray" | "structure";
39+
translate: (text: string) => string;
3940
colorAttribute: string;
4041
advanced: boolean;
4142
mode: ModeEnum;

packages/pluggableWidgets/column-chart-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@mendix/automation-utils": "workspace:*",
4444
"@mendix/eslint-config-web-widgets": "workspace:*",
45-
"@mendix/pluggable-widgets-tools": "10.16.0",
45+
"@mendix/pluggable-widgets-tools": "*",
4646
"@mendix/prettier-config-web-widgets": "workspace:*",
4747
"@mendix/run-e2e": "workspace:*",
4848
"@mendix/widget-plugin-platform": "workspace:*",

packages/pluggableWidgets/column-chart-web/typings/ColumnChartProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export interface ColumnChartPreviewProps {
9393
style: string;
9494
styleObject?: CSSProperties;
9595
readOnly: boolean;
96-
renderMode?: "design" | "xray" | "structure";
96+
renderMode: "design" | "xray" | "structure";
97+
translate: (text: string) => string;
9798
series: SeriesPreviewType[];
9899
advancedOptions: boolean;
99100
showPlaygroundSlot: boolean;

packages/pluggableWidgets/combobox-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"devDependencies": {
4949
"@mendix/automation-utils": "workspace:*",
5050
"@mendix/eslint-config-web-widgets": "workspace:*",
51-
"@mendix/pluggable-widgets-tools": "10.16.0",
51+
"@mendix/pluggable-widgets-tools": "*",
5252
"@mendix/prettier-config-web-widgets": "workspace:*",
5353
"@mendix/run-e2e": "workspace:^*",
5454
"@mendix/widget-plugin-component-kit": "workspace:*",

packages/pluggableWidgets/combobox-web/typings/ComboboxProps.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export interface ComboboxContainerProps {
9999

100100
export interface ComboboxPreviewProps {
101101
readOnly: boolean;
102-
renderMode?: "design" | "xray" | "structure";
102+
renderMode: "design" | "xray" | "structure";
103+
translate: (text: string) => string;
103104
source: SourceEnum;
104105
optionsSourceType: OptionsSourceTypeEnum;
105106
attributeEnumeration: string;

packages/pluggableWidgets/custom-chart-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"update-changelog": "rui-update-changelog-widget"
4545
},
4646
"devDependencies": {
47-
"@mendix/pluggable-widgets-tools": "10.16.0",
47+
"@mendix/pluggable-widgets-tools": "*",
4848
"@mendix/prettier-config-web-widgets": "workspace:*",
4949
"@mendix/run-e2e": "workspace:^*",
5050
"cross-env": "^7.0.3"

0 commit comments

Comments
 (0)