-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
4e1b315
chore: update to react 19
samuelreichert f63030b
chore(widget-plugin-platform): update dependencies for React 19
samuelreichert 1407022
chore(widget-plugin-component-kit): update dependencies for React 19
samuelreichert bb35764
chore(accessibility-helper-web): update to react 19
samuelreichert 2fec74d
chore(accordion-web): update Accordion components to be compatible wi…
samuelreichert f42dd97
chore(area-chart-web): update component to react 19
samuelreichert f8b28fa
chore(badge-button-web): update ESLint config and TypeScript settings…
samuelreichert 7a701d7
chore(badge-web): update ESLint config and TypeScript settings for Re…
samuelreichert f1aaa36
chore(bar-chart-web): update ESLint config and TypeScript settings fo…
samuelreichert 657c1c9
chore(barcode-scanner-web): update ESLint config and TypeScript setti…
samuelreichert 943d190
chore(bubble-chart-web): update ESLint config and TypeScript settings…
samuelreichert cf9f006
chore(widget-plugin-hooks): add TypeScript types and update useOnScre…
samuelreichert b08f524
chore(calendar-web): update ESLint config and TypeScript settings for…
samuelreichert d20e32b
chore(carousel-web): update ESLint config and TypeScript settings for…
samuelreichert 087a48f
chore(chart-playground-web): remove unused imports and update JSX set…
samuelreichert 15e79f1
chore(pluggable-widgets): simplify ESLint config by removing unnecess…
samuelreichert b692dc0
chore(checkbox-radio-selection-web): remove unused imports and update…
samuelreichert 99b1682
chore(color-picker-web): update imports to use ReactElement and adjus…
samuelreichert d752f9c
chore(accordion-web): update JSX syntax for header and content render…
samuelreichert 09f0415
chore(barcode-scanner-web): update videoRef type to allow null for be…
samuelreichert aab8db6
chore(widget-plugin-component-kit): clean up imports and update tscon…
samuelreichert 578b69e
chore(widget-plugin-grid): update type definitions and clean up impor…
samuelreichert 196866c
chore(widget-plugin-hooks): remove unused type definitions for JSX el…
samuelreichert 8dfaba7
chore(widget-plugin-mobx-kit): update Jest configuration and dependen…
samuelreichert fe34d01
chore(widget-plugin-platform): remove unused type definitions for JSX…
samuelreichert a3c6462
chore: update pnpm-lock file
samuelreichert ceb62fa
chore(shared-charts): remove unused imports and update TypeScript con…
samuelreichert 8d2dfb3
chore(column-chart-web): remove unused imports and update TypeScript …
samuelreichert db1025b
chore(combobox-web): remove unused imports and update TypeScript conf…
samuelreichert ae8cfbe
chore(widget-plugin-dropdown-filter): update import to use React type…
samuelreichert 9a0943c
chore: update imports to use React types for improved type safety
samuelreichert 393a264
chore(custom-chart-web): update imports and TypeScript configuration …
samuelreichert 27845d3
chore(datagrid-date-filter-web): update imports and update TypeScript…
samuelreichert 4351a0f
chore(datagrid-dropdown-filter-web): update imports and improve TypeS…
samuelreichert f4a3947
chore(datagrid-number-filter-web): update imports to improve TypeScri…
samuelreichert 8adf0a5
chore(widget-plugin-filtering): update imports for improved type safe…
samuelreichert f22ed85
chore(widget-plugin-hooks): update refs type to allow null values for…
samuelreichert f9d249a
chore(datagrid-text-filter-web): refactor imports to improve type saf…
samuelreichert a8eb1c0
chore(datagrid-web): update imports for better React 19 compatibility
samuelreichert 73817ad
chore(document-viewer-web): refactor imports for improved consistency…
samuelreichert 4fb018e
chore(dropdown-sort-web): refactor imports for improved consistency a…
samuelreichert b70f964
chore(events-web): refactor imports for improved consistency and remo…
samuelreichert ccb0b50
chore(fieldset-web): refactor imports for improved consistency and re…
samuelreichert 5be20f8
chore(file-uploader-web): refactor imports for improved consistency a…
samuelreichert 7858564
chore(gallery-web): refactor imports for improved consistency and rem…
samuelreichert ca5d874
chore(google-tag-web): refactor JSX settings for improved compatibili…
samuelreichert 8157283
chore(heatmap-chart-web): refactor imports for improved consistency a…
samuelreichert 1c9cf89
chore(video-player-web): remove unused createElement imports and upda…
samuelreichert fd9f5d8
chore(html-element-web): remove unused imports and update tsConfig fo…
samuelreichert 7a83c39
chore(image-web): remove unused imports and update tsConfig for React 19
samuelreichert 01a3b73
chore(language-selector-web): remove unused imports and update tsConf…
samuelreichert cc3c8bf
chore(tree-node-web): remove unused imports and update tsConfig for R…
samuelreichert 2efcca3
chore: refactor React imports for better type safety
samuelreichert 3331b0c
chore(maps-web): remove unused imports and update tsConfig for React 19
samuelreichert 470da1a
chore(eslint-config-web): add new rule error no React namespace
samuelreichert 2d30b51
fix(image-web): remove react namespace on lightbox
samuelreichert d1abcb8
chore(line-chart-web): remove unused imports and update tsConfig for …
samuelreichert b1a8793
chore(markdown-web): remove unused imports and update tsConfig for Re…
samuelreichert f13db26
chore(pie-doughnut-chart-web): remove unused imports and update tsCon…
samuelreichert 2ee8514
chore(popup-menu-web): remove unused imports and update tsConfig for …
samuelreichert 002c42c
chore(progress-bar-web): remove unused imports and update tsConfig fo…
samuelreichert 7380c96
chore(progress-circle-web): remove unused imports and update tsConfig…
samuelreichert 6c6494f
chore(range-slider-web): remove unused imports and update tsConfig fo…
samuelreichert f1b9f68
fix(tree-node-web): fix lint error
samuelreichert 27fc5be
chore(rating-web): remove unused imports and update tsConfig for Reac…
samuelreichert 7291308
chore(tooltip-web): remove unused imports and update tsConfig for Rea…
samuelreichert aa2b678
chore(rich-text-web): remove unused imports and update tsConfig for R…
samuelreichert aeb74cd
chore(selection-helper-web): remove unused imports and update tsConfi…
samuelreichert ddf8120
chore(switch-web): remove unused imports and update tsConfig for Reac…
samuelreichert 8cb99a1
chore(time-series-web): remove unused imports and update tsConfig for…
samuelreichert c7af7df
chore(timeline-web): remove unused imports and update tsConfig for Re…
samuelreichert f4c7104
chore(slider-web): update rc-slider to latest version to be compatibl…
samuelreichert ac5d4ce
fix(shared): fix eslint errors
samuelreichert b6f116e
chore: remove react 19 from package.json
samuelreichert 8c8a059
fix(calendar-custom-web): update react imports
samuelreichert 48d8cb2
fix(signature-web): update react imports and fix eslint warnings
samuelreichert f7f6353
chore: add rollup override
samuelreichert d8b6df5
test(color-picker-web): update snapshot
samuelreichert bd11d3a
chore: use rollup version from pnpm workspace
samuelreichert 949213f
test: update snapshots
samuelreichert ddc73b9
test(badge-web): update e2e screenshor
samuelreichert 9dcbb49
test: update e2e screenshots
samuelreichert d063689
test: update e2e screenshots
samuelreichert c239dde
test(datagrid-date-filter-web): update failing e2e tests
samuelreichert c386bf8
test(slider-web): update failing e2e tests
samuelreichert e2f88a6
chore(widget-plugin-hooks): fix useRef without arguments
samuelreichert 3c6170c
test(rich-text-web): update rich text snapshots
samuelreichert 14cf5a3
test: update failing e2e screenshots
samuelreichert 8410d98
test: update failing e2e screenshots
samuelreichert d0f2e6f
chore: ensure react version is not v19
samuelreichert d2d1314
test: update failing e2e screenshots
samuelreichert 2cb1fda
test: update failing e2e screenshots for combobox and markdown
samuelreichert 9959f40
test(datagrid-web): add bigger delay on clicks
samuelreichert f7e5331
test(rich-text-web): update failing e2e screenshots
samuelreichert cdda769
test: update failing e2e screenshots for column-chart and combobox
samuelreichert 445e201
test(datagrid-dropdown-filter-web): update click delays on e2e tests
samuelreichert 9daf74d
test(rich-text): update failing e2e tests
samuelreichert 89d4c8e
test(datagrid-web): update failing e2e screenshots
samuelreichert cd97e61
test(datagrid-web): update click delay on e2e tests
samuelreichert 6aaaa62
test(datagrid-web): increase delay for better e2e test handling
samuelreichert 7f6cca4
test(datagrid-web): fix failing e2e screenshots and add better delay …
samuelreichert b7de02a
test: update failing e2e screenshots
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": "[email protected]+sha512.fce8a3dd29a4ed2ec566fb53efbb04d8c44a0f05bc6f24a73046910fb9c3ce7afa35a0980500668fa3573345bd644644fa98338fa168235c80f4aa17aa17fbef", | ||
| "engines": { | ||
| "node": ">=22", | ||
| "pnpm": "10.17.0" | ||
| }, | ||
| "packageManager": "[email protected]+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", | ||
| "[email protected]": ">=1.0.2", | ||
| "[email protected]": ">=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", | ||
| "[email protected]": ">=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": { | ||
| "[email protected]": "patches/[email protected]", | ||
| "[email protected]": "patches/[email protected]", | ||
| "[email protected]": "patches/[email protected]", | ||
| "mime-types": "patches/mime-types.patch", | ||
| "[email protected]": "patches/[email protected]", | ||
| "[email protected]": "patches/[email protected]", | ||
| "rc-trigger": "patches/rc-trigger.patch", | ||
| "[email protected]": "patches/[email protected]", | ||
| "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.
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.