Skip to content

Commit aca3f2b

Browse files
committed
fix: remove empty div for Errors component when no errors to display
1 parent ff1fe67 commit aca3f2b

11 files changed

Lines changed: 466 additions & 544 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
jobs:
77
test: # this can be any name you choose
88
docker:
9-
- image: mcr.microsoft.com/playwright:v1.40.1-focal
9+
- image: mcr.microsoft.com/playwright:v1.41.1-focal
1010
resource_class: medium+
1111
parallelism: 10
1212

@typings/checkout.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface HSLProps {
1010
interface CheckoutSettings {
1111
accessToken: string
1212
orderId: string
13-
orderNumber: number | string
13+
orderNumber: string
1414
validCheckout: true
1515
isGuest: boolean
1616
isShipmentRequired: boolean

components/composite/Checkout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { Logo } from "components/ui/Logo"
3737
interface Props {
3838
logoUrl: NullableType<string>
3939
primaryColor: string
40-
orderNumber: number | string
40+
orderNumber: string
4141
companyName: string
4242
supportEmail: NullableType<string>
4343
supportPhone: NullableType<string>

components/composite/MainHeader/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styled from "styled-components"
44
import tw from "twin.macro"
55

66
interface Props {
7-
orderNumber: number | string
7+
orderNumber: string
88
}
99

1010
export const MainHeader: React.FC<Props> = ({ orderNumber }) => {

components/composite/StepComplete/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface Props {
4343
companyName: string
4444
supportEmail: NullableType<string>
4545
supportPhone: NullableType<string>
46-
orderNumber: number | string
46+
orderNumber: string
4747
}
4848

4949
export const StepComplete: React.FC<Props> = ({

components/data/GTMProvider/typings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface EcommerceProps {
1313
items?: (DataLayerItemProps | undefined)[]
1414
value?: NullableType<number>
1515
shipping_tier?: NullableType<string>
16-
transaction_id?: NullableType<string | number>
16+
transaction_id?: NullableType<string>
1717
payment_type?: NullableType<string>
1818
tax?: NullableType<number>
1919
}

package.json

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -71,43 +71,43 @@
7171
"commercelayer"
7272
],
7373
"dependencies": {
74-
"@commercelayer/react-components": "^4.9.0-beta.1",
75-
"@commercelayer/sdk": "^5.26.0",
76-
"@faker-js/faker": "^8.3.1",
77-
"@headlessui/react": "^1.7.17",
78-
"@next/bundle-analyzer": "^14.0.4",
79-
"@next/eslint-plugin-next": "^14.0.4",
80-
"@playwright/test": "^1.40.1",
74+
"@commercelayer/react-components": "^4.9.0-beta.4",
75+
"@commercelayer/sdk": "^5.30.0",
76+
"@faker-js/faker": "^8.4.0",
77+
"@headlessui/react": "^1.7.18",
78+
"@next/bundle-analyzer": "^14.1.0",
79+
"@next/eslint-plugin-next": "^14.1.0",
80+
"@playwright/test": "^1.41.1",
8181
"@tailwindcss/forms": "^0.5.7",
8282
"@types/async-retry": "1.4.8",
8383
"@types/jsonwebtoken": "^9.0.5",
84-
"@types/node": "^20.10.6",
85-
"@types/react": "^18.2.46",
84+
"@types/node": "^20.11.10",
85+
"@types/react": "^18.2.48",
8686
"@types/react-gtm-module": "^2.0.3",
8787
"@types/styled-components": "^5.1.34",
8888
"async-retry": "^1.3.3",
89-
"autoprefixer": "^10.4.16",
89+
"autoprefixer": "^10.4.17",
9090
"babel-plugin-macros": "^3.1.0",
9191
"babel-plugin-styled-components": "^2.1.4",
9292
"classnames": "^2.5.1",
9393
"cron-parser": "^4.9.0",
9494
"cronstrue": "^2.47.0",
95-
"dotenv": "^16.3.1",
96-
"i18next": "^23.7.15",
95+
"dotenv": "^16.4.1",
96+
"i18next": "^23.8.1",
9797
"jsonwebtoken": "^9.0.2",
9898
"jwt-decode": "^4.0.0",
99-
"next": "^14.0.4",
99+
"next": "^14.1.0",
100100
"next-build-id": "^3.0.0",
101-
"next-i18next": "^15.1.2",
102-
"postcss": "^8.4.32",
101+
"next-i18next": "^15.2.0",
102+
"postcss": "^8.4.33",
103103
"react": "^18.2.0",
104104
"react-dom": "^18.2.0",
105105
"react-gtm-module": "^2.0.11",
106-
"react-i18next": "^14.0.0",
107-
"react-router-dom": "^6.21.1",
108-
"styled-components": "^6.1.6",
109-
"tailwindcss": "^3.4.0",
110-
"twin.macro": "^3.4.0",
106+
"react-i18next": "^14.0.1",
107+
"react-router-dom": "^6.21.3",
108+
"styled-components": "^6.1.8",
109+
"tailwindcss": "^3.4.1",
110+
"twin.macro": "^3.4.1",
111111
"typescript": "^5.3.3"
112112
},
113113
"devDependencies": {
@@ -117,32 +117,33 @@
117117
"@semantic-release/github": "^9.2.6",
118118
"@semantic-release/npm": "^11.0.2",
119119
"@semantic-release/release-notes-generator": "^12.1.0",
120-
"@typescript-eslint/eslint-plugin": "^6.17.0",
121-
"@typescript-eslint/parser": "^6.17.0",
120+
"@typescript-eslint/eslint-plugin": "^6.19.1",
121+
"@typescript-eslint/parser": "^6.19.1",
122122
"eslint": "^8.56.0",
123-
"eslint-config-next": "^14.0.4",
123+
"eslint-config-next": "^14.1.0",
124124
"eslint-config-prettier": "^9.1.0",
125125
"eslint-config-standard": "^17.1",
126126
"eslint-plugin-import": "^2.29.1",
127-
"eslint-plugin-n": "^16.6.1",
127+
"eslint-plugin-n": "^16.6.2",
128128
"eslint-plugin-node": "^11.1.0",
129-
"eslint-plugin-prettier": "^5.1.2",
129+
"eslint-plugin-prettier": "^5.1.3",
130130
"eslint-plugin-promise": "^6.1.1",
131131
"eslint-plugin-react": "^7.33.2",
132132
"eslint-plugin-tailwind": "^0.2.1",
133-
"npm-check-updates": "^16.14.12",
134-
"prettier": "^3.1.1",
133+
"npm-check-updates": "^16.14.14",
134+
"prettier": "^3.2.4",
135135
"semantic-release": "^22.0.12",
136136
"serve": "^14.2.1",
137-
"stylelint": "^16.1.0",
137+
"stylelint": "^16.2.0",
138138
"stylelint-config-standard": "^36.0.0"
139139
},
140140
"resolutions": {
141141
"npm": ">=8.18.0",
142142
"dset": ">=3.1.2",
143143
"semver": ">=7.5.2",
144144
"word-break": ">=1.2.5",
145-
"zod": ">=3.22.4"
145+
"zod": ">=3.22.4",
146+
"follow-redirects": ">=1.15.4"
146147
},
147148
"babelMacros": {
148149
"twin": {

0 commit comments

Comments
 (0)