Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/canary' into feature/GCOM-1382
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni-Schroevers committed May 21, 2024
2 parents 4a24813 + 7b311d3 commit 336caba
Show file tree
Hide file tree
Showing 487 changed files with 15,010 additions and 4,652 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-humans-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-ui": patch
---

Added useIsSSR hook that will properly resolve when the page is rendered on the server and on first render, but will return false when a component is rendered on the client directly.
5 changes: 5 additions & 0 deletions .changeset/calm-yaks-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

Added PRIVATE_ADDITIONAL_DEPENDENCIES to enable packages that we do not want to have in the examples directory but we do want to be able to demo.
5 changes: 5 additions & 0 deletions .changeset/clever-eagles-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

Removed the ProductPage query from the examples directory as it isn't used anymore
5 changes: 5 additions & 0 deletions .changeset/clever-shirts-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/docs': patch
---

Added docs about caching
5 changes: 5 additions & 0 deletions .changeset/curly-mugs-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/graphcms-ui": patch
---

Allow blog pages to be nested
5 changes: 5 additions & 0 deletions .changeset/dry-rivers-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/react-hook-form': patch
---

Add deprecation warnings for useFormMuiRegister. Refactor useFormPersist to useWatch and add a separate `<FormPersist/>` component to prevent rerenders.
5 changes: 5 additions & 0 deletions .changeset/dry-snakes-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-cart-payment-method": patch
---

Use the non resolved payment methods as a placeholder for the actual payment methods
19 changes: 19 additions & 0 deletions .changeset/dull-badgers-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"@graphcommerce/next-config": patch
"@graphcommerce/ecommerce-ui": patch
"@graphcommerce/magento-cart-billing-address": patch
"@graphcommerce/magento-cart-coupon": patch
"@graphcommerce/magento-cart-shipping-address": patch
"@graphcommerce/magento-cart": patch
"@graphcommerce/magento-customer": patch
"@graphcommerce/magento-payment-adyen": patch
"@graphcommerce/magento-payment-included": patch
"@graphcommerce/magento-product-configurable": patch
"@graphcommerce/magento-product": patch
"@graphcommerce/magento-review": patch
"@graphcommerce/next-ui": patch
"@graphcommerce/react-hook-form": patch
"@graphcommerce/magento-graphcms": patch
---

Upgrade input components to no longer use muiRegister, which improves INP scores
5 changes: 5 additions & 0 deletions .changeset/empty-boats-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-cart-payment-method": patch
---

Compatibility with Magento 2.4.7
5 changes: 5 additions & 0 deletions .changeset/fast-eels-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-cart-payment-method": patch
---

Due to a cyclic dependency the actual PaymentMethodPlaceOrder button would sometimes be undefined.
5 changes: 5 additions & 0 deletions .changeset/fifty-boats-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/graphcms-ui": patch
---

Added helper method to get Hygraph paths
5 changes: 5 additions & 0 deletions .changeset/five-comics-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-category": patch
---

make the CategoryHeroNav fragment injectable and add image to the childeren
5 changes: 5 additions & 0 deletions .changeset/flat-kiwis-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-graphcms": minor
---

Move products sitemap to sitemap folder
5 changes: 5 additions & 0 deletions .changeset/fluffy-rockets-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-cart': patch
---

Solve an issue where the cart would be sometimes undefined, but Partial was too eleborate
54 changes: 54 additions & 0 deletions .changeset/fuzzy-cycles-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
'@graphcommerce/next-config': minor
---

Big improvements to the plugin system: Typescript validated, deeper resolution, new configuration object, replace plugins, and more ifConfig options.

1. Plugins now use TypeScript's `"moduleSuffixes": [".interceptor", ""]` [functionality](https://www.typescriptlang.org/tsconfig#moduleSuffixes) which means that plugins now correctly resolve via TypeScript. So if you _go to reference_ in VSCode (or any other editor), you go to the interceptor directly and see which plugins are applied there. This also means that plugins are automatically checked during build (and will fail if there are errors).

2. The exported type of an _intercepted component_ now has the types of all plugins applied. This means that plugins can modify the props of components (and is still validated with TypeScript). To make this work a plugin must always forward props to the `<Prev>` to ensure that values are correctly passed on.

3. Plugins will now always be applied to deepest resolved path. This means that a plugin automatically applies to internal usages as well. This thus means that plugins do not need to be written with an internal path, but can keep the parent path. Istead of writing `@graphcommerce/magento-cart-items/components/RemoveItemFromCart/RemoveItemFromCartFab` you can now write `@graphcommerce/magento-cart-items`.

4. A new configuration object for plugins is created instead of separate exports (the legacy format is still supported though):

```tsx
export const config: PluginConfig = {
type: 'component'
module: '@graphcommerce/magento-product',
ifConfig: 'demoMode',
}
```

This also means that the _name of the export_ dictates the name of the component/function the plugin is applied.

5. We now support replace plugins (`type: 'replace'`), which allow you to replace the original component/function/const completely (and type checked of course).

```tsx
import { ProductPageNameProps } from '@graphcommerce/magento-product'
import { PluginConfig } from '@graphcommerce/next-config'

export const config: PluginConfig = {
type: 'replace',
module: '@graphcommerce/magento-product',
}

export function ProductPageName(props: ProductPageNameProps) {
const { product } = props
return <div>REPLACEMENT {product.url_key}</div>
}
```

Plugin files can now have multiple exports for the same configuration. So next to the `ProductPageName` you can also have a `ProductPagePrice` export for example in the same file.

6. We now support `ifConfig` tuple which allows you to apply a plugin only if a certain configuration is set.

```tsx
export const config: PluginConfig = {
type: 'replace',
module: '@graphcommerce/magento-product',
ifConfig: ['theme', 'my-theme'],
}
```

This allows you to support multiple builds with different plugins applied. For example one build with `GC_THEME=my-theme` and another with `GC_THEME=my-other-theme`.
5 changes: 5 additions & 0 deletions .changeset/gentle-carrots-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

Added robotsAllow to storefront config
7 changes: 7 additions & 0 deletions .changeset/hip-pianos-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@graphcommerce/ecommerce-ui': patch
---

Make sure the TextFieldElement doesn’t give a uncontrolled to controlled warning.
Convert SelectElement to useController instead of a separate Controller component.
Make sure the original endAdornment is always shown only until the value is valid
6 changes: 6 additions & 0 deletions .changeset/hot-ants-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphcommerce/magento-graphcms": minor
"@graphcommerce/docs": patch
---

Replaced next-sitemap with page router based robots.txt & sitemaps
5 changes: 5 additions & 0 deletions .changeset/hot-cameras-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/react-hook-form": patch
---

Migrate most usages of useFormAutoSubmit to <FormAutoSubmit/> and deprecated useFormAutoSubmit
5 changes: 5 additions & 0 deletions .changeset/hot-forks-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/hygraph-dynamic-rows": patch
---

Fix for non extensible object error in Dynamic Row package
5 changes: 5 additions & 0 deletions .changeset/large-coins-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

reduce bundlesize of @apollo/client
5 changes: 5 additions & 0 deletions .changeset/large-crabs-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-ui": patch
---

Updated canonicalize helper for better multi domain support
15 changes: 15 additions & 0 deletions .changeset/lemon-impalas-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@graphcommerce/magento-cart-shipping-address": patch
"@graphcommerce/magento-cart-shipping-method": patch
"@graphcommerce/magento-payment-multisafepay": patch
"@graphcommerce/magento-cart-payment-method": patch
"@graphcommerce/mollie-magento-payment": patch
"@graphcommerce/magento-payment-adyen": patch
"@graphcommerce/magento-newsletter": patch
"@graphcommerce/magento-customer": patch
"@graphcommerce/magento-compare": patch
"@graphcommerce/react-hook-form": patch
"@graphcommerce/magento-cart": patch
---

Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders.
5 changes: 5 additions & 0 deletions .changeset/little-shirts-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

Solved an issue where the plugins would be generated with the wrong path
5 changes: 5 additions & 0 deletions .changeset/many-pets-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-graphcms": minor
---

Added separate sitemap for categories
5 changes: 5 additions & 0 deletions .changeset/mean-ligers-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/googlerecaptcha": patch
---

Solve an issue where the grecaptcha.execute method would throw ‘null’ causing the checkout to break in unexpected ways.
5 changes: 5 additions & 0 deletions .changeset/moody-vans-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/ecommerce-ui": patch
---

The `<WaitForQueries/>` component now uses the useIsSSR hook which prevents loading spinners when navigating on the client, which make all account/cart/checkout pages faster.
5 changes: 5 additions & 0 deletions .changeset/ninety-impalas-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-cart-shipping-address": patch
---

The billing and shipping address of a customer would not be recognized as the same address although they would effectively be the same
5 changes: 5 additions & 0 deletions .changeset/perfect-wombats-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-product": patch
---

When applying a filter it would not always scroll to the #products.
124 changes: 124 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"mode": "pre",
"tag": "canary",
"initialVersions": {
"@graphcommerce/docs": "8.0.5",
"@graphcommerce/magento-graphcms": "8.0.5",
"@graphcommerce/address-fields-nl": "8.0.5",
"@graphcommerce/algolia-search": "8.0.5",
"@graphcommerce/cli": "8.0.5",
"@graphcommerce/demo-magento-graphcommerce": "8.0.5",
"@graphcommerce/ecommerce-ui": "8.0.5",
"@graphcommerce/framer-next-pages": "8.0.5",
"@graphcommerce/framer-next-pages-example": "8.0.5",
"@graphcommerce/framer-scroller": "8.0.5",
"@graphcommerce/framer-scroller-example": "8.0.5",
"@graphcommerce/framer-utils": "8.0.5",
"@graphcommerce/google-datalayer": "8.0.5",
"@graphcommerce/googleanalytics": "8.0.5",
"@graphcommerce/googlerecaptcha": "8.0.5",
"@graphcommerce/googletagmanager": "8.0.5",
"@graphcommerce/graphql": "8.0.5",
"@graphcommerce/graphql-mesh": "8.0.5",
"@graphcommerce/hygraph-cli": "8.0.5",
"@graphcommerce/hygraph-dynamic-rows": "8.0.5",
"@graphcommerce/hygraph-dynamic-rows-ui": "8.0.5",
"@graphcommerce/graphcms-ui": "8.0.5",
"@graphcommerce/image": "8.0.5",
"@graphcommerce/image-example": "8.0.5",
"@graphcommerce/lighthouse": "8.0.5",
"@graphcommerce/lingui-next": "8.0.5",
"@graphcommerce/magento-cart": "8.0.5",
"@graphcommerce/magento-cart-billing-address": "8.0.5",
"@graphcommerce/magento-cart-checkout": "8.0.5",
"@graphcommerce/magento-cart-coupon": "8.0.5",
"@graphcommerce/magento-cart-email": "8.0.5",
"@graphcommerce/magento-cart-items": "8.0.5",
"@graphcommerce/magento-cart-payment-method": "8.0.5",
"@graphcommerce/magento-cart-pickup": "8.0.5",
"@graphcommerce/magento-cart-shipping-address": "8.0.5",
"@graphcommerce/magento-cart-shipping-method": "8.0.5",
"@graphcommerce/magento-category": "8.0.5",
"@graphcommerce/magento-cms": "8.0.5",
"@graphcommerce/magento-compare": "8.0.5",
"@graphcommerce/magento-customer": "8.0.5",
"@graphcommerce/magento-customer-account": "8.0.5",
"@graphcommerce/magento-customer-order": "8.0.5",
"@graphcommerce/magento-graphql": "8.0.5",
"@graphcommerce/magento-newsletter": "8.0.5",
"@graphcommerce/magento-pagebuilder": "8.0.5",
"@graphcommerce/magento-payment-adyen": "8.0.5",
"@graphcommerce/magento-payment-braintree": "8.0.5",
"@graphcommerce/magento-payment-included": "8.0.5",
"@graphcommerce/magento-payment-klarna": "8.0.5",
"@graphcommerce/magento-payment-multisafepay": "8.0.5",
"@graphcommerce/magento-payment-paypal": "8.0.5",
"@graphcommerce/magento-product": "8.0.5",
"@graphcommerce/magento-product-bundle": "8.0.5",
"@graphcommerce/magento-product-configurable": "8.0.5",
"@graphcommerce/magento-product-downloadable": "8.0.5",
"@graphcommerce/magento-product-grouped": "8.0.5",
"@graphcommerce/magento-product-simple": "8.0.5",
"@graphcommerce/magento-product-virtual": "8.0.5",
"@graphcommerce/magento-recently-viewed-products": "8.0.5",
"@graphcommerce/magento-review": "8.0.5",
"@graphcommerce/magento-search": "8.0.5",
"@graphcommerce/magento-store": "8.0.5",
"@graphcommerce/magento-wishlist": "8.0.5",
"@graphcommerce/mollie-magento-payment": "8.0.5",
"@graphcommerce/next-ui": "8.0.5",
"@graphcommerce/react-hook-form": "8.0.5",
"@graphcommerce/browserslist-config-pwa": "8.0.5",
"@graphcommerce/changeset-changelog": "8.0.5",
"@graphcommerce/eslint-config-pwa": "8.0.5",
"@graphcommerce/graphql-codegen-markdown-docs": "8.0.5",
"@graphcommerce/graphql-codegen-near-operation-file": "8.0.5",
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "8.0.5",
"@graphcommerce/next-config": "8.0.5",
"@graphcommerce/prettier-config-pwa": "8.0.5",
"@graphcommerce/typescript-config-pwa": "8.0.5"
},
"changesets": [
"calm-humans-tickle",
"calm-yaks-shave",
"clever-eagles-lie",
"clever-shirts-invite",
"curly-mugs-rule",
"dry-rivers-train",
"dry-snakes-do",
"dull-badgers-prove",
"empty-boats-kneel",
"fast-eels-help",
"fifty-boats-complain",
"five-comics-bow",
"flat-kiwis-breathe",
"fluffy-rockets-collect",
"fuzzy-cycles-impress",
"gentle-carrots-repeat",
"hip-pianos-sip",
"hot-ants-behave",
"hot-cameras-design",
"hot-forks-lick",
"large-coins-shave",
"large-crabs-peel",
"lemon-impalas-know",
"little-shirts-rescue",
"many-pets-act",
"mean-ligers-fold",
"moody-vans-juggle",
"ninety-impalas-grab",
"perfect-wombats-raise",
"silly-wasps-rhyme",
"slow-kiwis-exercise",
"spotty-ads-live",
"stale-dogs-prove",
"tall-moles-rush",
"tasty-glasses-tan",
"tasty-queens-hunt",
"tender-ads-rest",
"tender-mangos-flow",
"twenty-actors-decide",
"unlucky-crabs-notice",
"witty-geckos-flash"
]
}
5 changes: 5 additions & 0 deletions .changeset/silly-wasps-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/react-hook-form": patch
---

Mark useFormValidFields as deprecated: Please use TextInputElement, SelectElement, etc. with the showValid prop
10 changes: 10 additions & 0 deletions .changeset/slow-kiwis-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@graphcommerce/magento-product-configurable': patch
'@graphcommerce/magento-product': patch
'@graphcommerce/next-config': patch
'@graphcommerce/lingui-next': patch
'@graphcommerce/next-ui': patch
'@graphcommerce/docs': patch
---

Allow Lingui to use linguiLocale with country identifiers like `en-us`, it would always load `en` in this case. Introced a new `useLocale` hook to use the correct locale string to use in Intl methods.
6 changes: 6 additions & 0 deletions .changeset/spotty-ads-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphcommerce/next-config": patch
"@graphcommerce/graphql-mesh": patch
---

Suppress warning where a dependency is an expression, Added uglify-es and long as the dependencies couldn’t be found
Loading

0 comments on commit 336caba

Please sign in to comment.