diff --git a/modules/opendesk/element-web/package.json b/modules/opendesk/element-web/package.json index 298d4de5c2..e74754c4ce 100644 --- a/modules/opendesk/element-web/package.json +++ b/modules/opendesk/element-web/package.json @@ -18,10 +18,10 @@ "@nordeck/element-web-widget-lifecycle-module": "^1.0.1", "@nordeck/element-web-widget-toggles-module": "^0.1.0", "@types/node": "^22.10.7", - "@types/react": "^18", + "@types/react": "^19", "@vitejs/plugin-react": "^4.3.4", - "react": "^18.0.0", - "react-dom": "^18.0.0", + "react": "^19", + "react-dom": "^19", "rollup-plugin-external-globals": "^0.13.0", "typescript": "^5.7.3", "vite": "^6.0.11", diff --git a/modules/opendesk/element-web/src/index.ts b/modules/opendesk/element-web/src/index.ts index 5c0e746c8d..d88e7f774d 100644 --- a/modules/opendesk/element-web/src/index.ts +++ b/modules/opendesk/element-web/src/index.ts @@ -41,7 +41,7 @@ declare global { } class OpendeskModule implements Module { - public static readonly moduleApiVersion = "^0.1.0"; + public static readonly moduleApiVersion = "^0.1.1"; public constructor(private api: Api) {} diff --git a/modules/opendesk/element-web/tests/opendesk.spec.ts b/modules/opendesk/element-web/tests/opendesk.spec.ts index 6598dad05a..a182535d49 100644 --- a/modules/opendesk/element-web/tests/opendesk.spec.ts +++ b/modules/opendesk/element-web/tests/opendesk.spec.ts @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ -import { type SynapseContainer } from "@element-hq/element-web-playwright-common/lib/testcontainers"; +import { type SynapseContainer } from "@element-hq/element-web-playwright-common/lib/testcontainers/index.js"; import { test, expect } from "../../../../playwright/element-web-test.ts"; diff --git a/modules/opendesk/element-web/vite.config.ts b/modules/opendesk/element-web/vite.config.ts index 54e9a37ab0..8f1d83e06f 100644 --- a/modules/opendesk/element-web/vite.config.ts +++ b/modules/opendesk/element-web/vite.config.ts @@ -28,6 +28,7 @@ export default defineConfig({ rollupOptions: { external: ["react"], }, + minify: false, }, plugins: [ react(), @@ -40,6 +41,8 @@ export default defineConfig({ }), ], define: { - process: { env: {} }, + // Use production mode for the build as it is tested against production builds of Element Web, + // this is required for React JSX versions to be compatible. + process: { env: { NODE_ENV: "production" } }, }, });