Skip to content

Commit e5ca350

Browse files
DEVDOCS-6702 - Add syntax highlighting to Catalyst 1.4 Release Notes (#1223)
<!-- Ticket number or summary of work --> # [DEVDOCS-6702] ## What changed? <!-- Provide a bulleted list in the present tense --> * Added syntax highlighting to Catalyst 1.4 release note code blocks. ## Release notes draft This is a minor change and does not need to be included in overall release notes. ping @bigcommerce/dev-docs [DEVDOCS-6702]: https://bigcommercecloud.atlassian.net/browse/DEVDOCS-6702?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 067c06d commit e5ca350

File tree

1 file changed

+9
-9
lines changed
  • docs/storefront/catalyst/release-notes

1 file changed

+9
-9
lines changed

docs/storefront/catalyst/release-notes/1-4-0.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Catalyst now supports end-to-end product reviews on the storefront, integrated w
1717

1818
Here is an example Storefront GraphQL query for the settings related to product reviews.
1919

20-
```
20+
```graphql copy
2121
query SiteReviewSettings {
2222
site {
2323
settings {
@@ -50,7 +50,7 @@ Catalyst now supports an end-to-end newsletter subscription experience, integrat
5050

5151
Here is a sample Storefront GraphQL query that queries the new settings related to newsletter subscriptions.
5252

53-
```
53+
```graphql copy
5454
query NewsletterSettingsAndCustomerStatus {
5555
site {
5656
settings {
@@ -121,7 +121,7 @@ The `ConsentManagerProvider` now uses `offline` mode instead of `custom` mode wi
121121

122122
**Before:**
123123

124-
```ts
124+
```ts copy
125125
<C15TConsentManagerProvider
126126
options={{
127127
mode: 'custom',
@@ -141,7 +141,7 @@ The `ConsentManagerProvider` now uses `offline` mode instead of `custom` mode wi
141141

142142
**After:**
143143

144-
```ts
144+
```ts copy
145145
<C15TConsentManagerProvider
146146
options={{
147147
mode: 'offline',
@@ -167,7 +167,7 @@ If you have custom code that directly reads or writes consent cookies, you'll ne
167167

168168
**After:** The consent cookie now uses c15t's compact format. The public API for reading cookies remains the same:
169169

170-
```ts
170+
```ts copy
171171
import { getConsentCookie } from '~/lib/consent-manager/cookies/client'; // client-side
172172
// or
173173
import { getConsentCookie } from '~/lib/consent-manager/cookies/server'; // server-side
@@ -179,7 +179,7 @@ The `getConsentCookie()` function now internally uses `parseCompactFormat()` to
179179

180180
`getConsentCookie` now returns a compact version of the consent values:
181181

182-
```ts
182+
```ts copy
183183
{
184184
i.t: 123456789,
185185
c.necessary: true,
@@ -195,7 +195,7 @@ Instances where `getConsentCookie` is used have been updated to reflect this new
195195

196196
`c15t` scripts now support rendering in either the `<head>` or `<body>` based on the `location` field from the BigCommerce API:
197197

198-
```ts
198+
```ts copy
199199
// Scripts transformer now includes target based on location
200200
target: script.location === 'HEAD' ? 'head' : 'body'
201201
```
@@ -206,7 +206,7 @@ The `ScriptsFragment` GraphQL query now includes the `location` field, allowing
206206

207207
The `RootLayoutMetadataQuery` GraphQL query now includes the `privacyPolicyUrl` field, which the `CookieBanner` component now accepts as a prop. Here is an abbreviated version of that query.
208208

209-
```
209+
```graphql copy
210210
query RootLayoutMetadataQuery {
211211
site {
212212
settings {
@@ -221,7 +221,7 @@ query RootLayoutMetadataQuery {
221221

222222
This property is then passed to the `privacyPolicyUrl` prop in the `CookieBanner`.
223223

224-
```ts
224+
```ts copy
225225
const privacyPolicyUrl = rootData.data.site.settings?.privacy?.privacyPolicyUrl;
226226
//...
227227

0 commit comments

Comments
 (0)