-
Notifications
You must be signed in to change notification settings - Fork 55
[WC-3065]: Update to React 19 #1910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
samuelreichert
wants to merge
102
commits into
main
Choose a base branch
from
feat/WC-2988-update-to-react-19
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
090baa4
chore: update to react 19
samuelreichert 0a8931a
chore(widget-plugin-platform): update dependencies for React 19
samuelreichert b6c77e2
chore(widget-plugin-component-kit): update dependencies for React 19
samuelreichert 5897dc3
chore(accessibility-helper-web): update to react 19
samuelreichert 37a6362
chore(accordion-web): update Accordion components to be compatible wi…
samuelreichert 82950ca
chore(area-chart-web): update component to react 19
samuelreichert 297de6d
chore(badge-button-web): update ESLint config and TypeScript settings…
samuelreichert 8e3702b
chore(badge-web): update ESLint config and TypeScript settings for Re…
samuelreichert 4359bae
chore(bar-chart-web): update ESLint config and TypeScript settings fo…
samuelreichert 4254bef
chore(barcode-scanner-web): update ESLint config and TypeScript setti…
samuelreichert 0bb0e3b
chore(bubble-chart-web): update ESLint config and TypeScript settings…
samuelreichert bd43b2d
chore(widget-plugin-hooks): add TypeScript types and update useOnScre…
samuelreichert b403e98
chore(calendar-web): update ESLint config and TypeScript settings for…
samuelreichert 483d2e2
chore(carousel-web): update ESLint config and TypeScript settings for…
samuelreichert e76eebc
chore(chart-playground-web): remove unused imports and update JSX set…
samuelreichert 71642f0
chore(pluggable-widgets): simplify ESLint config by removing unnecess…
samuelreichert 9be0369
chore(checkbox-radio-selection-web): remove unused imports and update…
samuelreichert 9939aa8
chore(color-picker-web): update imports to use ReactElement and adjus…
samuelreichert 20c120a
chore(accordion-web): update JSX syntax for header and content render…
samuelreichert 87519f7
chore(barcode-scanner-web): update videoRef type to allow null for be…
samuelreichert 314be87
chore(widget-plugin-component-kit): clean up imports and update tscon…
samuelreichert 3dae1bf
chore(widget-plugin-grid): update type definitions and clean up impor…
samuelreichert 958d1a5
chore(widget-plugin-hooks): remove unused type definitions for JSX el…
samuelreichert 682168b
chore(widget-plugin-mobx-kit): update Jest configuration and dependen…
samuelreichert c5204be
chore(widget-plugin-platform): remove unused type definitions for JSX…
samuelreichert b6f87ec
chore: update pnpm-lock file
samuelreichert 0e396e2
chore(shared-charts): remove unused imports and update TypeScript con…
samuelreichert 4eb711d
chore(column-chart-web): remove unused imports and update TypeScript …
samuelreichert c5d5d5f
chore(combobox-web): remove unused imports and update TypeScript conf…
samuelreichert 23c19c8
chore(widget-plugin-dropdown-filter): update import to use React type…
samuelreichert 8bb4282
chore: update imports to use React types for improved type safety
samuelreichert 68a783e
chore(custom-chart-web): update imports and TypeScript configuration …
samuelreichert 4bdb496
chore(datagrid-date-filter-web): update imports and update TypeScript…
samuelreichert 86262b9
chore(datagrid-dropdown-filter-web): update imports and improve TypeS…
samuelreichert 64feff7
chore(datagrid-number-filter-web): update imports to improve TypeScri…
samuelreichert e8c0d08
chore(widget-plugin-filtering): update imports for improved type safe…
samuelreichert f01af76
chore(widget-plugin-hooks): update refs type to allow null values for…
samuelreichert e070fa2
chore(datagrid-text-filter-web): refactor imports to improve type saf…
samuelreichert 7e89882
chore(datagrid-web): update imports for better React 19 compatibility
samuelreichert ec74e1a
chore(document-viewer-web): refactor imports for improved consistency…
samuelreichert 12ce174
chore(dropdown-sort-web): refactor imports for improved consistency a…
samuelreichert d05219b
chore(events-web): refactor imports for improved consistency and remo…
samuelreichert bae8174
chore(fieldset-web): refactor imports for improved consistency and re…
samuelreichert 7395039
chore(file-uploader-web): refactor imports for improved consistency a…
samuelreichert 0ef0250
chore(gallery-web): refactor imports for improved consistency and rem…
samuelreichert 46be09d
chore(google-tag-web): refactor JSX settings for improved compatibili…
samuelreichert 50d1fba
chore(heatmap-chart-web): refactor imports for improved consistency a…
samuelreichert 716c827
chore(video-player-web): remove unused createElement imports and upda…
samuelreichert f4474cc
chore(html-element-web): remove unused imports and update tsConfig fo…
samuelreichert e3c782d
chore(image-web): remove unused imports and update tsConfig for React 19
samuelreichert f9db9b2
chore(language-selector-web): remove unused imports and update tsConf…
samuelreichert 9316e48
chore(tree-node-web): remove unused imports and update tsConfig for R…
samuelreichert d06516e
chore: refactor React imports for better type safety
samuelreichert bca4f69
chore(maps-web): remove unused imports and update tsConfig for React 19
samuelreichert 82a66a5
chore(eslint-config-web): add new rule error no React namespace
samuelreichert 5ecb34d
fix(image-web): remove react namespace on lightbox
samuelreichert 7834a35
chore(line-chart-web): remove unused imports and update tsConfig for …
samuelreichert 1e2375f
chore(markdown-web): remove unused imports and update tsConfig for Re…
samuelreichert 2a288fc
chore(pie-doughnut-chart-web): remove unused imports and update tsCon…
samuelreichert 8e1d6ee
chore(popup-menu-web): remove unused imports and update tsConfig for …
samuelreichert 08b9d21
chore(progress-bar-web): remove unused imports and update tsConfig fo…
samuelreichert d5e5a74
chore(progress-circle-web): remove unused imports and update tsConfig…
samuelreichert a89ed3a
chore(range-slider-web): remove unused imports and update tsConfig fo…
samuelreichert 754f099
fix(tree-node-web): fix lint error
samuelreichert 01348ba
chore(rating-web): remove unused imports and update tsConfig for Reac…
samuelreichert 63013d6
chore(tooltip-web): remove unused imports and update tsConfig for Rea…
samuelreichert 194b615
chore(rich-text-web): remove unused imports and update tsConfig for R…
samuelreichert decc57e
chore(selection-helper-web): remove unused imports and update tsConfi…
samuelreichert 7e1c258
chore(switch-web): remove unused imports and update tsConfig for Reac…
samuelreichert 7ab394d
chore(time-series-web): remove unused imports and update tsConfig for…
samuelreichert 54ad672
chore(timeline-web): remove unused imports and update tsConfig for Re…
samuelreichert 2c7881c
chore(slider-web): update rc-slider to latest version to be compatibl…
samuelreichert 106b2cd
fix(shared): fix eslint errors
samuelreichert 2ca7269
chore: remove react 19 from package.json
samuelreichert c6958f7
fix(calendar-custom-web): update react imports
samuelreichert 474ff44
fix(signature-web): update react imports and fix eslint warnings
samuelreichert 42ff3d0
chore: add rollup override
samuelreichert 5c57fab
test(color-picker-web): update snapshot
samuelreichert 9f51892
chore: use rollup version from pnpm workspace
samuelreichert 6afc1ba
test: update snapshots
samuelreichert 3dcec9d
test(badge-web): update e2e screenshor
samuelreichert 2b32e12
test: update e2e screenshots
samuelreichert 5a60eca
test: update e2e screenshots
samuelreichert 80e17ac
test(datagrid-date-filter-web): update failing e2e tests
samuelreichert 4c32753
test(slider-web): update failing e2e tests
samuelreichert 8d63262
chore(widget-plugin-hooks): fix useRef without arguments
samuelreichert e43bf26
test(rich-text-web): update rich text snapshots
samuelreichert 24d5adf
test: update failing e2e screenshots
samuelreichert 54219e4
test: update failing e2e screenshots
samuelreichert ce1e6f8
chore: ensure react version is not v19
samuelreichert 829cae0
test: update failing e2e screenshots
samuelreichert ffc9ce3
test: update failing e2e screenshots for combobox and markdown
samuelreichert f1c74f3
test(datagrid-web): add bigger delay on clicks
samuelreichert efe461e
test(rich-text-web): update failing e2e screenshots
samuelreichert ae6c429
test: update failing e2e screenshots for column-chart and combobox
samuelreichert a886ea1
test(datagrid-dropdown-filter-web): update click delays on e2e tests
samuelreichert f9bad4d
test(rich-text): update failing e2e tests
samuelreichert ca2a472
test(datagrid-web): update failing e2e screenshots
samuelreichert 84e1d3c
test(datagrid-web): update click delay on e2e tests
samuelreichert 08dceff
test(datagrid-web): increase delay for better e2e test handling
samuelreichert f11de7e
test(datagrid-web): fix failing e2e screenshots and add better delay …
samuelreichert c004887
fix: update pnpm-lock
samuelreichert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,86 @@ | ||
{ | ||
"name": "web-widgets", | ||
"copyright": "© Mendix Technology BV 2025. All rights reserved.", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mendix/web-widgets.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"prepare": "husky install", | ||
"lint": "turbo run lint --continue --concurrency 1", | ||
"test": "turbo run test --continue --concurrency 1", | ||
"verify": "turbo run verify --continue --concurrency 1", | ||
"build": "turbo run build", | ||
"release": "turbo run release", | ||
"changelog": "pnpm --filter @mendix/automation-utils run changelog", | ||
"create-gh-release": "turbo run create-gh-release --concurrency 1", | ||
"create-translation": "turbo run create-translation", | ||
"publish-marketplace": "turbo run publish-marketplace", | ||
"version": "pnpm --filter @mendix/automation-utils run version", | ||
"changelog": "pnpm --filter @mendix/automation-utils run changelog", | ||
"postinstall": "turbo run agent-rules", | ||
"lint": "turbo run lint --continue --concurrency 1", | ||
"prepare": "husky install", | ||
"prepare-release": "pnpm --filter @mendix/automation-utils run prepare-release", | ||
"postinstall": "turbo run agent-rules" | ||
"publish-marketplace": "turbo run publish-marketplace", | ||
"release": "turbo run release", | ||
"test": "turbo run test --continue --concurrency 1", | ||
"verify": "turbo run verify --continue --concurrency 1", | ||
"version": "pnpm --filter @mendix/automation-utils run version" | ||
}, | ||
"devDependencies": { | ||
"husky": "^8.0.3", | ||
"turbo": "^2.5.4" | ||
}, | ||
"prettier": "@mendix/prettier-config-web-widgets", | ||
"packageManager": "pnpm@10.17.0+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef", | ||
"engines": { | ||
"node": ">=22", | ||
"pnpm": "10.17.0" | ||
}, | ||
"packageManager": "pnpm@10.17.0+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef", | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"allowedVersions": { | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
"react": ">=18.0.0 <19.0.0", | ||
"react-dom": ">=18.0.0 <19.0.0" | ||
}, | ||
"ignoreMissing": [ | ||
"react-native" | ||
] | ||
}, | ||
"onlyBuiltDependencies": [ | ||
"@swc/core", | ||
"canvas" | ||
], | ||
"overrides": { | ||
"@codemirror/state": "^6.5.2", | ||
"@codemirror/view": "^6.38.1", | ||
"@mendix/pluggable-widgets-tools": "10.21.2", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"prettier": "3.5.3", | ||
"@types/big.js": "^6.2.2", | ||
"@types/node": "~22.14.0", | ||
"@types/react": ">=18.2.36", | ||
"@types/big.js": "^6.2.2", | ||
"d3-color@<3.1.0": ">=3.1.0", | ||
"loader-utils@1": "^1.4.2", | ||
"loader-utils@3": "^3.2.1", | ||
"decode-uri-component@<0.2.1": ">=0.2.1", | ||
"enzyme>cheerio": "1.0.0-rc.10", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"json5@1.x": ">=1.0.2", | ||
"json5@0.x": ">=1.0.2", | ||
"@codemirror/view": "^6.38.1", | ||
"@codemirror/state": "^6.5.2", | ||
"enzyme>cheerio": "1.0.0-rc.10", | ||
"ts-node": "10.9.2", | ||
"json5@1.x": ">=1.0.2", | ||
"loader-utils@1": "^1.4.2", | ||
"loader-utils@3": "^3.2.1", | ||
"prettier": "3.5.3", | ||
"react": ">=18.0.0 <19.0.0", | ||
"react-big-calendar@1>clsx": "2.1.1", | ||
"react-dom": ">=18.0.0 <19.0.0", | ||
"rollup": "catalog:", | ||
"ts-node": "10.9.2", | ||
"typescript": ">5.8.0" | ||
}, | ||
"patchedDependencies": { | ||
"react-big-calendar@0.19.2": "patches/react-big-calendar@0.19.2.patch", | ||
"mobx@6.12.3": "patches/mobx@6.12.3.patch", | ||
"mobx-react-lite@4.0.7": "patches/mobx-react-lite@4.0.7.patch", | ||
"mime-types": "patches/mime-types.patch", | ||
"mobx-react-lite@4.0.7": "patches/mobx-react-lite@4.0.7.patch", | ||
"mobx@6.12.3": "patches/mobx@6.12.3.patch", | ||
"rc-trigger": "patches/rc-trigger.patch", | ||
"react-big-calendar@0.19.2": "patches/react-big-calendar@0.19.2.patch", | ||
"react-dropzone": "patches/react-dropzone.patch" | ||
}, | ||
"onlyBuiltDependencies": [ | ||
"@swc/core", | ||
"canvas" | ||
], | ||
"ignoredBuiltDependencies": [ | ||
"@parcel/watcher", | ||
"core-js", | ||
"es5-ext" | ||
] | ||
}, | ||
"prettier": "@mendix/prettier-config-web-widgets" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
packages/customWidgets/signature-web/src/components/Alert.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { createElement, FC, PropsWithChildren } from "react"; | ||
import { FC, PropsWithChildren } from "react"; | ||
import classNames from "classnames"; | ||
|
||
export interface AlertProps extends PropsWithChildren { | ||
bootstrapStyle?: "default" | "primary" | "success" | "info" | "warning" | "danger"; | ||
className?: string; | ||
} | ||
|
||
export const Alert: FC<AlertProps> = ({ bootstrapStyle, className, children }) => | ||
export const Alert: FC<AlertProps> = ({ bootstrapStyle = "danger", className, children }) => | ||
children ? <div className={classNames(`alert alert-${bootstrapStyle}`, className)}>{children}</div> : null; | ||
|
||
Alert.displayName = "Alert"; | ||
Alert.defaultProps = { bootstrapStyle: "danger" }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/customWidgets/signature-web/src/components/__tests__/Alert.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/pluggableWidgets/accordion-web/src/Accordion.editorPreview.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
packages/pluggableWidgets/accordion-web/src/components/Accordion.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/pluggableWidgets/accordion-web/src/components/Header.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/pluggableWidgets/accordion-web/src/components/Icon.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/pluggableWidgets/accordion-web/src/components/__tests__/Accordion.spec.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.