Skip to content

Commit c18b5e7

Browse files
Release: Update Connect API Starter Kit
Generated on: Wed Oct 15 23:06:16 UTC 2025 Source commit: 7140a2cf50886a8db35c5c168e46feba66905513
1 parent 404292e commit c18b5e7

32 files changed

Lines changed: 4037 additions & 2041 deletions

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 2025-10-16
4+
5+
### 🔧 Changed
6+
7+
- Updated react and react-dom to v19
8+
- Updated React to 19.2.0.
9+
10+
### 🐞 Fixed
11+
12+
- Updated `react` dependencies to use ^ (compatible with) to reduce the impact of `@canva package` updates with react peer dependencies.
13+
314
## 2025-09-04
415

516
### 🔧 Changed

demos/common/scripts/app-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class AppRunner {
6262
): Promise<WebpackDevServer> => {
6363
const runtimeWebpackConfig = buildConfig();
6464

65-
const compiler = webpack(runtimeWebpackConfig);
65+
const compiler = webpack(runtimeWebpackConfig) as webpack.Compiler;
6666
const server = new WebpackDevServer(
6767
runtimeWebpackConfig.devServer,
6868
compiler,

demos/ecommerce_shop/frontend/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,20 @@
1919
"@emotion/react": "11.14.0",
2020
"@emotion/styled": "11.14.1",
2121
"@fontsource/roboto": "5.2.6",
22-
"@mui/icons-material": "5.15.15",
23-
"@mui/material": "5.15.15",
22+
"@mui/icons-material": "5.18.0",
23+
"@mui/material": "5.18.0",
2424
"@mui/x-charts": "7.23.6",
2525
"canvas-confetti": "1.9.3",
26-
"react": "18.3.1",
27-
"react-dom": "18.3.1",
26+
"react": "^19.2.0",
27+
"react-dom": "^19.2.0",
2828
"react-router-dom": "7.8.2"
2929
},
3030
"devDependencies": {
3131
"@svgr/webpack": "8.1.0",
3232
"@types/canvas-confetti": "1.9.0",
33-
"@types/react": "18.3.12",
34-
"@types/react-dom": "18.3.1",
33+
"@types/react": "19.2.2",
34+
"@types/react-dom": "19.2.1",
3535
"@types/webpack": "5.28.5",
36-
"@types/webpack-dev-server": "4.7.2",
3736
"css-loader": "7.1.2",
3837
"cssnano": "7.1.1",
3938
"postcss-loader": "8.1.1",

demos/ecommerce_shop/frontend/src/components/demo-alert.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type {
1010
ButtonProps as MUIButtonProps,
1111
} from "@mui/material";
1212
import CloseIcon from "@mui/icons-material/Close";
13+
import type { JSX } from "react";
1314

1415
interface DemoAlertProps extends MUIAlertProps {
1516
alertTitle: React.ReactNode;

demos/ecommerce_shop/frontend/src/components/demo-button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Button as MUIButton, CircularProgress } from "@mui/material";
22
import type { ButtonProps as MUIButtonProps } from "@mui/material";
3+
import type { JSX } from "react";
34

45
type DemoButtonVariant = "primary" | "secondary" | "destructive";
56

demos/ecommerce_shop/frontend/src/context/app-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Dispatch, ReactNode, SetStateAction } from "react";
1+
import type { Dispatch, JSX, ReactNode, SetStateAction } from "react";
22
import { createContext, useContext, useEffect, useState } from "react";
33
import type { Services } from "src/services";
44
import { checkForAccessToken, installServices } from "src/services";

demos/ecommerce_shop/frontend/src/context/campaign-context.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { BrandTemplate } from "@canva/connect-api-ts/types.gen";
2+
import type { JSX } from "react";
23
import { createContext, useContext, useState } from "react";
34

45
export interface CampaignContextType {

demos/ecommerce_shop/frontend/src/pages/error-boundary.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
99
import { Box, Stack, Typography } from "@mui/material";
1010
import { DemoButton } from "src/components";
1111
import { Paths } from "src/routes";
12+
import type { JSX } from "react";
1213

1314
const NotFound = (): JSX.Element => {
1415
const navigate = useNavigate();

demos/ecommerce_shop/frontend/src/pages/return-nav.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
stepConnectorClasses,
1414
styled,
1515
} from "@mui/material";
16+
import type { JSX } from "react";
1617
import { useEffect, useState } from "react";
1718
import { useNavigate, useSearchParams } from "react-router-dom";
1819
import { NavBar } from "src/components";

demos/ecommerce_shop/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"jsx": "react",
3+
"jsx": "react-jsx",
44
"lib": [
55
"dom",
66
"dom.iterable",

0 commit comments

Comments
 (0)