From fd9450aecb3551ee1d863209b00e41bfdf6fe811 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Mon, 17 Apr 2023 23:00:47 -0400 Subject: [PATCH] Next.js Commerce refresh. (#966) We're making some updates to Next.js Commerce. Everything prior to this commit marks what we're calling [`v1`](https://github.com/vercel/commerce/releases/tag/v1) as a point in time to be able to reference and still use going into the future. The current architecture of Commerce is a multi-vendor, interoperable solution, including: - [Shopify](https://shopify.vercel.store/) - [Swell](https://swell.vercel.store/) - [BigCommerce](https://bigcommerce.vercel.store/) - [Vendure](https://vendure.vercel.store/) - [Saleor](https://saleor.vercel.store/) - [Ordercloud](https://ordercloud.vercel.store/) - [Spree](https://spree.vercel.store/) - [Kibo Commerce](https://kibocommerce.vercel.store/) - [Commerce.js](https://commercejs.vercel.store/) - [SalesForce Cloud Commerce](https://salesforce-cloud-commerce.vercel.store/) All features can be toggled on or off, and it's easy to change between commerce providers. To support this, we needed to create a ["commerce metaframework"](https://github.com/vercel/commerce/blob/d1d9e8c4343e70d72df6e00ec95f6ea4efbb7c54/packages/commerce/new-provider.md) where providers could confirm to an API spec to add support for Next.js Commerce. While this worked and was successful for `v1`, we have different design goals and ambitions for `v2`. **What You Need To Know** - `v1` will not be updated moving forward. If you need to reference `v1`, you will still be able to clone and deploy the version tagged at this release. - `v2` will be shifting to be a single provider vs. provider agnostic. Other providers are welcome to fork this repository and swap out the underlying `lib/` implementation that connects to the selected commerce provider (Shopify). This architecture was chosen to reduce the surface area of the codebase, remove the intermediate metaframework layer for provider-interoperability, and enable usage with the latest Next.js and React features. - We will be sharing more about `v2` in the future as we continue to iterate before the marked release. --- .editorconfig | 23 - .env.example | 3 + .eslintrc.js | 23 + .github/ISSUE_TEMPLATE/1.core_bug_report.yml | 55 - .../ISSUE_TEMPLATE/2.provider_bug_report.yml | 59 - .github/ISSUE_TEMPLATE/3.feature_request.yml | 28 - .github/ISSUE_TEMPLATE/4.docs_request.yml | 18 - .github/ISSUE_TEMPLATE/config.yml | 5 - .github/dependabot.yml | 6 + .github/workflows/e2e.yml | 49 + .github/workflows/test.yml | 32 + .gitignore | 31 +- .nvmrc | 1 + .prettierignore | 6 +- .prettierrc | 6 - .vscode/extensions.json | 8 - .vscode/launch.json | 28 + .vscode/settings.json | 9 +- README.md | 194 +- app/[page]/layout.tsx | 16 + app/[page]/page.tsx | 56 + app/api/cart/route.ts | 75 + app/api/og/Inter-Bold.ttf | Bin 0 -> 316100 bytes app/api/og/Inter-Regular.ttf | Bin 0 -> 309828 bytes app/api/og/route.tsx | 66 + app/error.tsx | 10 + {site/public => app}/favicon.ico | Bin app/globals.css | 9 + app/layout.tsx | 42 + app/page.tsx | 38 + app/product/[handle]/page.tsx | 130 + app/search/[collection]/page.tsx | 46 + app/search/layout.tsx | 23 + app/search/loading.tsx | 13 + app/search/page.tsx | 41 + components/carousel.tsx | 39 + components/cart/button.tsx | 64 + components/cart/delete-item-button.tsx | 50 + components/cart/edit-item-quantity-button.tsx | 62 + components/cart/index.tsx | 23 + components/cart/modal.tsx | 174 + components/grid/index.tsx | 26 + components/grid/three-items.tsx | 53 + components/grid/tile.tsx | 70 + components/icons/arrow-left.tsx | 14 + .../icons/caret-right.tsx | 13 +- components/icons/cart.tsx | 26 + .../Cross.tsx => components/icons/close.tsx | 12 +- components/icons/github.tsx | 13 + components/icons/logo.tsx | 22 + .../icons/menu.tsx | 14 +- .../icons/minus.tsx | 14 +- .../icons/plus.tsx | 15 +- components/icons/search.tsx | 11 + components/icons/shopping-bag.tsx | 19 + components/icons/vercel.tsx | 20 + components/layout/footer.tsx | 65 + components/layout/navbar/index.tsx | 53 + components/layout/navbar/mobile-menu.tsx | 98 + components/layout/navbar/search.tsx | 42 + components/layout/search/collections.tsx | 38 + components/layout/search/filter/dropdown.tsx | 64 + components/layout/search/filter/index.tsx | 34 + components/layout/search/filter/item.tsx | 67 + components/layout/search/results.tsx | 33 + components/loading-dots.tsx | 15 + components/price.tsx | 18 + components/product/add-to-cart.tsx | 74 + components/product/gallery.tsx | 99 + components/product/variant-selector.tsx | 135 + components/prose.tsx | 21 + e2e/cart.spec.ts | 73 + e2e/mobile-menu.spec.ts | 16 + lib/constants.tsx | 28 + lib/shopify/fragments/cart.ts | 49 + lib/shopify/fragments/image.ts | 10 + lib/shopify/fragments/product.ts | 63 + lib/shopify/fragments/seo.ts | 8 + lib/shopify/index.ts | 361 + lib/shopify/mutations/cart.ts | 45 + lib/shopify/queries/cart.ts | 10 + lib/shopify/queries/collection.ts | 51 + lib/shopify/queries/menu.ts | 10 + lib/shopify/queries/page.ts | 21 + lib/shopify/queries/product.ts | 32 + lib/shopify/types.ts | 258 + lib/type-guards.ts | 26 + lib/utils.ts | 6 + license.md | 2 +- next.config.js | 20 + package.json | 63 +- packages/bigcommerce/.env.template | 8 - packages/bigcommerce/.prettierignore | 2 - packages/bigcommerce/.prettierrc | 6 - packages/bigcommerce/README.md | 59 - packages/bigcommerce/codegen.json | 27 - packages/bigcommerce/package.json | 90 - packages/bigcommerce/schema.d.ts | 2064 -- packages/bigcommerce/schema.graphql | 2422 -- .../scripts/generate-definitions.js | 49 - .../src/api/definitions/catalog.ts | 2993 --- .../src/api/definitions/store-content.ts | 329 - .../src/api/definitions/wishlist.ts | 142 - .../src/api/endpoints/cart/add-item.ts | 44 - .../src/api/endpoints/cart/get-cart.ts | 41 - .../src/api/endpoints/cart/index.ts | 26 - .../src/api/endpoints/cart/remove-item.ts | 26 - .../src/api/endpoints/cart/update-item.ts | 34 - .../catalog/products/get-products.ts | 78 - .../api/endpoints/catalog/products/index.ts | 18 - .../api/endpoints/checkout/get-checkout.ts | 101 - .../src/api/endpoints/checkout/index.ts | 18 - .../customer/get-logged-in-customer.ts | 70 - .../src/api/endpoints/customer/index.ts | 18 - .../bigcommerce/src/api/endpoints/index.ts | 27 - .../src/api/endpoints/login/index.ts | 18 - .../src/api/endpoints/login/login.ts | 35 - .../src/api/endpoints/logout/index.ts | 18 - .../src/api/endpoints/logout/logout.ts | 25 - .../src/api/endpoints/signup/index.ts | 18 - .../src/api/endpoints/signup/signup.ts | 48 - .../src/api/endpoints/wishlist/add-item.ts | 56 - .../api/endpoints/wishlist/get-wishlist.ts | 31 - .../src/api/endpoints/wishlist/index.ts | 24 - .../src/api/endpoints/wishlist/remove-item.ts | 37 - .../src/api/fragments/category-tree.ts | 9 - .../bigcommerce/src/api/fragments/product.ts | 113 - packages/bigcommerce/src/api/index.ts | 126 - .../src/api/operations/get-all-pages.ts | 51 - .../api/operations/get-all-product-paths.ts | 66 - .../src/api/operations/get-all-products.ts | 135 - .../api/operations/get-customer-wishlist.ts | 84 - .../src/api/operations/get-page.ts | 54 - .../src/api/operations/get-product.ts | 119 - .../src/api/operations/get-site-info.ts | 87 - .../bigcommerce/src/api/operations/login.ts | 76 - .../src/api/utils/concat-cookie.ts | 14 - packages/bigcommerce/src/api/utils/errors.ts | 23 - .../src/api/utils/fetch-graphql-api.ts | 40 - .../src/api/utils/fetch-store-api.ts | 76 - packages/bigcommerce/src/api/utils/fetch.ts | 3 - .../bigcommerce/src/api/utils/filter-edges.ts | 5 - .../src/api/utils/get-cart-cookie.ts | 20 - .../src/api/utils/get-customer-id.ts | 32 - .../bigcommerce/src/api/utils/parse-item.ts | 28 - .../src/api/utils/set-product-locale-meta.ts | 21 - packages/bigcommerce/src/api/utils/types.ts | 19 - packages/bigcommerce/src/auth/index.ts | 3 - packages/bigcommerce/src/auth/use-login.tsx | 41 - packages/bigcommerce/src/auth/use-logout.tsx | 28 - packages/bigcommerce/src/auth/use-signup.tsx | 46 - packages/bigcommerce/src/cart/index.ts | 4 - .../bigcommerce/src/cart/use-add-item.tsx | 45 - packages/bigcommerce/src/cart/use-cart.tsx | 33 - .../bigcommerce/src/cart/use-remove-item.tsx | 60 - .../bigcommerce/src/cart/use-update-item.tsx | 86 - .../bigcommerce/src/checkout/use-checkout.tsx | 14 - packages/bigcommerce/src/commerce.config.json | 7 - .../src/customer/address/use-add-item.tsx | 15 - .../src/customer/card/use-add-item.tsx | 15 - packages/bigcommerce/src/customer/index.ts | 1 - .../bigcommerce/src/customer/use-customer.tsx | 28 - packages/bigcommerce/src/fetcher.ts | 41 - packages/bigcommerce/src/index.tsx | 12 - packages/bigcommerce/src/lib/get-slug.ts | 5 - packages/bigcommerce/src/lib/immutability.ts | 13 - packages/bigcommerce/src/lib/normalize.ts | 154 - packages/bigcommerce/src/next.config.cjs | 8 - packages/bigcommerce/src/product/index.ts | 2 - .../bigcommerce/src/product/use-price.tsx | 2 - .../bigcommerce/src/product/use-search.tsx | 52 - packages/bigcommerce/src/provider.ts | 34 - packages/bigcommerce/src/types.ts | 32 - packages/bigcommerce/src/wishlist/index.ts | 3 - .../bigcommerce/src/wishlist/use-add-item.tsx | 41 - .../src/wishlist/use-remove-item.tsx | 40 - .../bigcommerce/src/wishlist/use-wishlist.tsx | 57 - packages/bigcommerce/taskfile.js | 20 - packages/bigcommerce/tsconfig.json | 21 - packages/commerce/.prettierignore | 2 - packages/commerce/.prettierrc | 6 - packages/commerce/README.md | 334 - packages/commerce/fixup.mjs | 5 - packages/commerce/new-provider.md | 241 - packages/commerce/package.json | 85 - packages/commerce/src/api/endpoints/cart.ts | 64 - .../src/api/endpoints/catalog/products.ts | 37 - .../commerce/src/api/endpoints/checkout.ts | 45 - .../src/api/endpoints/customer/address.ts | 68 - .../src/api/endpoints/customer/card.ts | 67 - .../src/api/endpoints/customer/index.ts | 32 - packages/commerce/src/api/endpoints/index.ts | 10 - packages/commerce/src/api/endpoints/login.ts | 25 - packages/commerce/src/api/endpoints/logout.ts | 26 - packages/commerce/src/api/endpoints/signup.ts | 27 - .../commerce/src/api/endpoints/wishlist.ts | 58 - packages/commerce/src/api/index.ts | 194 - packages/commerce/src/api/operations.ts | 183 - .../commerce/src/api/utils/edge-handler.ts | 81 - packages/commerce/src/api/utils/errors.ts | 101 - packages/commerce/src/api/utils/index.ts | 91 - .../commerce/src/api/utils/node-handler.ts | 75 - packages/commerce/src/api/utils/types.ts | 52 - .../src/api/utils/validate-handlers.ts | 24 - .../commerce/src/api/utils/validate-method.ts | 48 - .../src/api/utils/with-operation-callback.ts | 42 - packages/commerce/src/auth/use-login.tsx | 20 - packages/commerce/src/auth/use-logout.tsx | 20 - packages/commerce/src/auth/use-signup.tsx | 20 - packages/commerce/src/cart/use-add-item.tsx | 20 - packages/commerce/src/cart/use-cart.tsx | 31 - .../commerce/src/cart/use-remove-item.tsx | 20 - .../commerce/src/cart/use-update-item.tsx | 20 - .../commerce/src/checkout/use-checkout.ts | 34 - .../src/checkout/use-submit-checkout.tsx | 21 - packages/commerce/src/config.cjs | 35 - .../src/customer/address/use-add-item.tsx | 21 - .../src/customer/address/use-addresses.tsx | 34 - .../src/customer/address/use-remove-item.tsx | 21 - .../src/customer/address/use-update-item.tsx | 21 - .../src/customer/card/use-add-item.tsx | 21 - .../commerce/src/customer/card/use-cards.tsx | 33 - .../src/customer/card/use-remove-item.tsx | 21 - .../src/customer/card/use-update-item.tsx | 21 - .../commerce/src/customer/use-customer.tsx | 20 - packages/commerce/src/index.tsx | 123 - packages/commerce/src/product/use-price.tsx | 64 - packages/commerce/src/product/use-search.tsx | 20 - packages/commerce/src/schemas/auth.ts | 18 - packages/commerce/src/schemas/cart.ts | 102 - packages/commerce/src/schemas/checkout.ts | 25 - packages/commerce/src/schemas/customer.ts | 84 - packages/commerce/src/schemas/page.ts | 18 - packages/commerce/src/schemas/product.ts | 65 - packages/commerce/src/schemas/site.ts | 18 - packages/commerce/src/schemas/whishlist.ts | 41 - packages/commerce/src/types/cart.ts | 265 - packages/commerce/src/types/checkout.ts | 89 - packages/commerce/src/types/common.ts | 36 - .../commerce/src/types/customer/address.ts | 122 - packages/commerce/src/types/customer/card.ts | 138 - packages/commerce/src/types/customer/index.ts | 54 - packages/commerce/src/types/index.ts | 25 - packages/commerce/src/types/login.ts | 31 - packages/commerce/src/types/logout.ts | 15 - packages/commerce/src/types/page.ts | 43 - packages/commerce/src/types/product.ts | 215 - packages/commerce/src/types/signup.ts | 34 - packages/commerce/src/types/site.ts | 51 - packages/commerce/src/types/wishlist.ts | 97 - .../commerce/src/utils/default-fetcher.ts | 12 - .../commerce/src/utils/define-property.ts | 37 - packages/commerce/src/utils/errors.ts | 48 - packages/commerce/src/utils/types.ts | 147 - packages/commerce/src/utils/use-data.tsx | 78 - packages/commerce/src/utils/use-hook.ts | 50 - packages/commerce/src/wishlist/index.ts | 3 - .../commerce/src/wishlist/use-add-item.tsx | 20 - .../commerce/src/wishlist/use-remove-item.tsx | 20 - .../commerce/src/wishlist/use-wishlist.tsx | 20 - packages/commerce/taskfile.js | 20 - packages/commerce/tsconfig.json | 21 - packages/commercejs/.env.template | 7 - packages/commercejs/.prettierignore | 2 - packages/commercejs/.prettierrc | 6 - packages/commercejs/README.md | 13 - packages/commercejs/global.d.ts | 1 - packages/commercejs/package.json | 88 - .../api/endpoints/checkout/get-checkout.ts | 3 - .../src/api/endpoints/checkout/index.ts | 22 - .../api/endpoints/checkout/submit-checkout.ts | 43 - .../commercejs/src/api/endpoints/index.ts | 15 - .../src/api/endpoints/login/index.ts | 18 - .../src/api/endpoints/login/login.ts | 34 - packages/commercejs/src/api/index.ts | 46 - .../src/api/operations/get-all-pages.ts | 21 - .../api/operations/get-all-product-paths.ts | 31 - .../src/api/operations/get-all-products.ts | 29 - .../commercejs/src/api/operations/get-page.ts | 15 - .../src/api/operations/get-product.ts | 44 - .../src/api/operations/get-site-info.ts | 39 - .../commercejs/src/api/operations/index.ts | 6 - .../commercejs/src/api/utils/graphql-fetch.ts | 14 - .../commercejs/src/api/utils/sdk-fetch.ts | 21 - packages/commercejs/src/auth/index.ts | 3 - packages/commercejs/src/auth/use-login.tsx | 34 - packages/commercejs/src/auth/use-logout.tsx | 27 - packages/commercejs/src/auth/use-signup.tsx | 17 - packages/commercejs/src/cart/index.ts | 4 - packages/commercejs/src/cart/use-add-item.tsx | 45 - packages/commercejs/src/cart/use-cart.tsx | 41 - .../commercejs/src/cart/use-remove-item.tsx | 38 - .../commercejs/src/cart/use-update-item.tsx | 82 - packages/commercejs/src/checkout/index.ts | 2 - .../commercejs/src/checkout/use-checkout.tsx | 52 - .../src/checkout/use-submit-checkout.tsx | 38 - packages/commercejs/src/commerce.config.json | 10 - packages/commercejs/src/constants.ts | 4 - .../commercejs/src/customer/address/index.ts | 2 - .../src/customer/address/use-add-item.tsx | 17 - .../src/customer/address/use-addresses.tsx | 34 - .../commercejs/src/customer/card/index.ts | 2 - .../src/customer/card/use-add-item.tsx | 17 - .../src/customer/card/use-cards.tsx | 31 - packages/commercejs/src/customer/index.ts | 1 - .../commercejs/src/customer/use-customer.tsx | 62 - packages/commercejs/src/fetcher.ts | 61 - packages/commercejs/src/index.tsx | 9 - packages/commercejs/src/lib/commercejs.ts | 11 - packages/commercejs/src/next.config.cjs | 16 - packages/commercejs/src/product/index.ts | 2 - packages/commercejs/src/product/use-price.tsx | 2 - .../commercejs/src/product/use-search.tsx | 53 - packages/commercejs/src/provider.ts | 55 - packages/commercejs/src/types.ts | 6 - .../src/utils/get-deployment-url.ts | 12 - .../commercejs/src/utils/normalize-cart.ts | 72 - .../src/utils/normalize-category.ts | 14 - .../src/utils/normalize-checkout.ts | 63 - .../commercejs/src/utils/normalize-product.ts | 80 - .../commercejs/src/utils/product-search.ts | 54 - .../commercejs/src/wishlist/use-add-item.tsx | 13 - .../src/wishlist/use-remove-item.tsx | 17 - .../commercejs/src/wishlist/use-wishlist.tsx | 30 - packages/commercejs/taskfile.js | 20 - packages/commercejs/tsconfig.json | 21 - packages/kibocommerce/.env.template | 7 - packages/kibocommerce/.prettierignore | 2 - packages/kibocommerce/.prettierrc | 6 - packages/kibocommerce/README.md | 37 - packages/kibocommerce/codegen.json | 21 - packages/kibocommerce/package.json | 90 - packages/kibocommerce/schema.d.ts | 11399 ---------- packages/kibocommerce/schema.graphql | 9129 -------- .../src/api/endpoints/cart/add-item.ts | 93 - .../src/api/endpoints/cart/get-cart.ts | 43 - .../src/api/endpoints/cart/index.ts | 25 - .../src/api/endpoints/cart/remove-item.ts | 42 - .../src/api/endpoints/cart/update-item.ts | 39 - .../api/endpoints/catalog/products/index.ts | 17 - .../endpoints/catalog/products/products.ts | 32 - .../src/api/endpoints/customer/customer.ts | 33 - .../src/api/endpoints/customer/index.ts | 18 - .../kibocommerce/src/api/endpoints/index.ts | 25 - .../src/api/endpoints/login/index.ts | 18 - .../src/api/endpoints/login/login.ts | 53 - .../src/api/endpoints/logout/index.ts | 18 - .../src/api/endpoints/logout/logout.ts | 22 - .../src/api/endpoints/signup/index.ts | 18 - .../src/api/endpoints/signup/signup.ts | 89 - .../src/api/endpoints/wishlist/add-item.ts | 135 - .../api/endpoints/wishlist/get-wishlist.ts | 45 - .../src/api/endpoints/wishlist/index.ts | 23 - .../src/api/endpoints/wishlist/remove-item.ts | 69 - .../src/api/fragments/cartItemDetails.ts | 11 - .../src/api/fragments/category.ts | 11 - .../kibocommerce/src/api/fragments/product.ts | 98 - .../src/api/fragments/productDetails.ts | 30 - .../kibocommerce/src/api/fragments/search.ts | 32 - packages/kibocommerce/src/api/index.ts | 63 - .../mutations/addItemToWishlist-mutation.ts | 21 - .../src/api/mutations/addToCart-mutation.ts | 12 - .../api/mutations/create-wishlist-mutation.ts | 11 - .../src/api/mutations/login-mutation.ts | 20 - .../mutations/removeItemFromCart-mutation.ts | 9 - .../removeItemFromWishlist-mutation.ts | 8 - .../src/api/mutations/signup-mutation.ts | 41 - .../updateCartItemQuantity-mutation.ts | 9 - .../src/api/operations/get-all-pages.ts | 32 - .../api/operations/get-all-product-paths.ts | 26 - .../src/api/operations/get-all-products.ts | 33 - .../api/operations/get-customer-wishlist.ts | 55 - .../src/api/operations/get-page.ts | 39 - .../src/api/operations/get-product.ts | 35 - .../src/api/operations/get-site-info.ts | 38 - .../kibocommerce/src/api/operations/index.ts | 6 - .../src/api/queries/get-all-pages-query.ts | 11 - .../src/api/queries/get-all-products-query.ts | 21 - .../get-anonymous-shopper-token-query.ts | 11 - .../src/api/queries/get-cart-query.ts | 32 - .../api/queries/get-categories-tree-query.ts | 29 - .../api/queries/get-customer-account-query.ts | 12 - .../queries/get-customer-wishlist-query.ts | 25 - .../src/api/queries/get-page-query.ts | 14 - .../src/api/queries/get-product-query.ts | 15 - .../src/api/queries/product-search-query.ts | 20 - .../src/api/utils/api-auth-helper.ts | 108 - .../src/api/utils/cookie-handler.ts | 63 - .../src/api/utils/fetch-graphql-api.ts | 51 - .../kibocommerce/src/api/utils/fetch-local.ts | 38 - packages/kibocommerce/src/api/utils/fetch.ts | 3 - .../api/utils/get-anonymous-shopper-token.ts | 13 - .../src/api/utils/get-customer-id.ts | 24 - packages/kibocommerce/src/auth/index.ts | 3 - packages/kibocommerce/src/auth/use-login.tsx | 43 - packages/kibocommerce/src/auth/use-logout.tsx | 31 - packages/kibocommerce/src/auth/use-signup.tsx | 46 - packages/kibocommerce/src/cart/index.ts | 4 - .../kibocommerce/src/cart/use-add-item.tsx | 46 - packages/kibocommerce/src/cart/use-cart.tsx | 35 - .../kibocommerce/src/cart/use-remove-item.tsx | 60 - .../kibocommerce/src/cart/use-update-item.tsx | 86 - .../src/checkout/use-checkout.tsx | 14 - .../kibocommerce/src/commerce.config.json | 9 - .../src/customer/address/use-add-item.tsx | 15 - .../src/customer/card/use-add-item.tsx | 15 - packages/kibocommerce/src/customer/index.ts | 1 - .../src/customer/use-customer.tsx | 28 - packages/kibocommerce/src/fetcher.ts | 41 - packages/kibocommerce/src/index.tsx | 9 - .../src/lib/get-cookie-expiration-date.ts | 8 - packages/kibocommerce/src/lib/get-slug.ts | 5 - packages/kibocommerce/src/lib/normalize.ts | 190 - .../src/lib/prepare-set-cookie.ts | 15 - .../src/lib/product-search-vars.ts | 55 - packages/kibocommerce/src/lib/set-cookie.ts | 3 - packages/kibocommerce/src/next.config.cjs | 12 - packages/kibocommerce/src/product/index.ts | 2 - .../kibocommerce/src/product/use-price.tsx | 2 - .../kibocommerce/src/product/use-search.tsx | 39 - packages/kibocommerce/src/provider.ts | 30 - packages/kibocommerce/src/wishlist/index.ts | 3 - .../src/wishlist/use-add-item.tsx | 38 - .../src/wishlist/use-remove-item.tsx | 40 - .../src/wishlist/use-wishlist.tsx | 56 - packages/kibocommerce/taskfile.js | 20 - packages/local/.env.template | 1 - packages/local/.prettierignore | 2 - packages/local/.prettierrc | 6 - packages/local/README.md | 1 - packages/local/package.json | 79 - packages/local/src/api/endpoints.ts | 8 - packages/local/src/api/index.ts | 42 - .../local/src/api/operations/get-all-pages.ts | 19 - .../api/operations/get-all-product-paths.ts | 15 - .../src/api/operations/get-all-products.ts | 25 - .../api/operations/get-customer-wishlist.ts | 6 - packages/local/src/api/operations/get-page.ts | 13 - .../local/src/api/operations/get-product.ts | 24 - .../local/src/api/operations/get-site-info.ts | 43 - packages/local/src/api/operations/index.ts | 6 - packages/local/src/api/utils/fetch-local.ts | 32 - packages/local/src/api/utils/fetch.ts | 3 - packages/local/src/auth/index.ts | 3 - packages/local/src/auth/use-login.tsx | 16 - packages/local/src/auth/use-logout.tsx | 17 - packages/local/src/auth/use-signup.tsx | 19 - packages/local/src/cart/index.ts | 4 - packages/local/src/cart/use-add-item.tsx | 17 - packages/local/src/cart/use-cart.tsx | 42 - packages/local/src/cart/use-remove-item.tsx | 20 - packages/local/src/cart/use-update-item.tsx | 20 - packages/local/src/checkout/use-checkout.tsx | 16 - packages/local/src/commerce.config.json | 10 - .../src/customer/address/use-add-item.tsx | 17 - .../local/src/customer/card/use-add-item.tsx | 17 - packages/local/src/customer/index.ts | 1 - packages/local/src/customer/use-customer.tsx | 17 - packages/local/src/data.json | 244 - packages/local/src/fetcher.ts | 11 - packages/local/src/index.tsx | 12 - packages/local/src/next.config.cjs | 8 - packages/local/src/product/index.ts | 2 - packages/local/src/product/use-price.tsx | 2 - packages/local/src/product/use-search.tsx | 17 - packages/local/src/provider.ts | 22 - packages/local/src/wishlist/use-add-item.tsx | 13 - .../local/src/wishlist/use-remove-item.tsx | 17 - packages/local/src/wishlist/use-wishlist.tsx | 32 - packages/local/taskfile.js | 20 - packages/local/tsconfig.json | 21 - packages/ordercloud/.env.template | 6 - packages/ordercloud/.prettierignore | 2 - packages/ordercloud/.prettierrc | 6 - packages/ordercloud/README.md | 3 - packages/ordercloud/package.json | 83 - .../src/api/endpoints/cart/add-item.ts | 92 - .../src/api/endpoints/cart/get-cart.ts | 57 - .../src/api/endpoints/cart/index.ts | 27 - .../src/api/endpoints/cart/remove-item.ts | 37 - .../src/api/endpoints/cart/update-item.ts | 54 - .../catalog/products/get-products.ts | 37 - .../api/endpoints/catalog/products/index.ts | 19 - .../api/endpoints/checkout/get-checkout.ts | 37 - .../src/api/endpoints/checkout/index.ts | 23 - .../api/endpoints/checkout/submit-checkout.ts | 19 - .../endpoints/customer/address/add-item.ts | 38 - .../customer/address/get-addresses.ts | 8 - .../api/endpoints/customer/address/index.ts | 30 - .../endpoints/customer/address/remove-item.ts | 7 - .../endpoints/customer/address/update-item.ts | 7 - .../api/endpoints/customer/card/add-item.ts | 67 - .../api/endpoints/customer/card/get-cards.ts | 7 - .../src/api/endpoints/customer/card/index.ts | 27 - .../endpoints/customer/card/remove-item.ts | 7 - .../endpoints/customer/card/update-item.ts | 7 - .../ordercloud/src/api/endpoints/index.ts | 21 - packages/ordercloud/src/api/index.ts | 62 - .../src/api/operations/get-all-pages.ts | 22 - .../api/operations/get-all-product-paths.ts | 34 - .../src/api/operations/get-all-products.ts | 35 - .../ordercloud/src/api/operations/get-page.ts | 15 - .../src/api/operations/get-product.ts | 60 - .../src/api/operations/get-site-info.ts | 46 - .../ordercloud/src/api/operations/index.ts | 6 - packages/ordercloud/src/api/utils/cart.ts | 42 - .../ordercloud/src/api/utils/fetch-graphql.ts | 14 - .../ordercloud/src/api/utils/fetch-rest.ts | 150 - packages/ordercloud/src/auth/index.ts | 3 - packages/ordercloud/src/auth/use-login.tsx | 16 - packages/ordercloud/src/auth/use-logout.tsx | 17 - packages/ordercloud/src/auth/use-signup.tsx | 19 - packages/ordercloud/src/cart/index.ts | 4 - packages/ordercloud/src/cart/use-add-item.tsx | 48 - packages/ordercloud/src/cart/use-cart.tsx | 33 - .../ordercloud/src/cart/use-remove-item.tsx | 66 - .../ordercloud/src/cart/use-update-item.tsx | 95 - packages/ordercloud/src/checkout/index.ts | 2 - .../ordercloud/src/checkout/use-checkout.tsx | 43 - .../src/checkout/use-submit-checkout.tsx | 38 - packages/ordercloud/src/commerce.config.json | 10 - packages/ordercloud/src/constants.ts | 6 - .../ordercloud/src/customer/address/index.ts | 4 - .../src/customer/address/use-add-item.tsx | 38 - .../src/customer/address/use-addresses.tsx | 35 - .../src/customer/address/use-remove-item.tsx | 65 - .../src/customer/address/use-update-item.tsx | 55 - .../ordercloud/src/customer/card/index.ts | 4 - .../src/customer/card/use-add-item.tsx | 40 - .../src/customer/card/use-cards.tsx | 33 - .../src/customer/card/use-remove-item.tsx | 62 - .../src/customer/card/use-update-item.tsx | 52 - packages/ordercloud/src/customer/index.ts | 1 - .../ordercloud/src/customer/use-customer.tsx | 15 - packages/ordercloud/src/fetcher.ts | 17 - packages/ordercloud/src/index.tsx | 9 - packages/ordercloud/src/next.config.cjs | 8 - packages/ordercloud/src/product/index.ts | 2 - packages/ordercloud/src/product/use-price.tsx | 2 - .../ordercloud/src/product/use-search.tsx | 41 - packages/ordercloud/src/provider.ts | 62 - packages/ordercloud/src/types/cart.ts | 95 - packages/ordercloud/src/types/category.ts | 10 - .../ordercloud/src/types/customer/address.ts | 26 - .../ordercloud/src/types/customer/card.ts | 11 - packages/ordercloud/src/types/node.d.ts | 3 - packages/ordercloud/src/types/product.ts | 55 - packages/ordercloud/src/utils/product.ts | 45 - .../ordercloud/src/wishlist/use-add-item.tsx | 13 - .../src/wishlist/use-remove-item.tsx | 17 - .../ordercloud/src/wishlist/use-wishlist.tsx | 32 - packages/ordercloud/taskfile.js | 20 - packages/ordercloud/tsconfig.json | 21 - packages/saleor/.env.template | 4 - packages/saleor/.prettierignore | 2 - packages/saleor/.prettierrc | 6 - packages/saleor/README.md | 22 - packages/saleor/codegen.json | 33 - packages/saleor/package.json | 92 - packages/saleor/schema.d.ts | 11488 ---------- packages/saleor/schema.graphql | 18973 ---------------- packages/saleor/src/api/cart.ts | 1 - packages/saleor/src/api/catalog/products.ts | 1 - packages/saleor/src/api/checkout.ts | 1 - packages/saleor/src/api/customers/index.ts | 1 - packages/saleor/src/api/customers/login.ts | 1 - packages/saleor/src/api/customers/logout.ts | 1 - packages/saleor/src/api/customers/signup.ts | 1 - .../src/api/endpoints/checkout/index.ts | 50 - packages/saleor/src/api/endpoints/index.ts | 12 - packages/saleor/src/api/index.ts | 38 - .../src/api/operations/get-all-pages.ts | 54 - .../api/operations/get-all-product-paths.ts | 38 - .../src/api/operations/get-all-products.ts | 71 - .../saleor/src/api/operations/get-page.ts | 52 - .../saleor/src/api/operations/get-product.ts | 48 - .../src/api/operations/get-site-info.ts | 35 - packages/saleor/src/api/operations/index.ts | 7 - packages/saleor/src/api/operations/login.ts | 41 - .../saleor/src/api/utils/fetch-graphql-api.ts | 45 - packages/saleor/src/api/utils/fetch.ts | 2 - packages/saleor/src/api/wishlist.ts | 1 - packages/saleor/src/auth/use-login.tsx | 63 - packages/saleor/src/auth/use-logout.tsx | 41 - packages/saleor/src/auth/use-signup.tsx | 56 - packages/saleor/src/cart/index.ts | 4 - packages/saleor/src/cart/use-add-item.tsx | 54 - packages/saleor/src/cart/use-cart.tsx | 53 - packages/saleor/src/cart/use-remove-item.tsx | 49 - packages/saleor/src/cart/use-update-item.tsx | 107 - packages/saleor/src/checkout/use-checkout.tsx | 14 - packages/saleor/src/commerce.config.json | 6 - packages/saleor/src/const.ts | 5 - .../src/customer/address/use-add-item.tsx | 15 - .../saleor/src/customer/card/use-add-item.tsx | 15 - packages/saleor/src/customer/index.ts | 1 - packages/saleor/src/customer/use-customer.tsx | 30 - packages/saleor/src/fetcher.ts | 25 - packages/saleor/src/index.tsx | 9 - packages/saleor/src/next.config.cjs | 8 - packages/saleor/src/product/use-price.tsx | 2 - packages/saleor/src/product/use-search.tsx | 76 - packages/saleor/src/provider.ts | 26 - packages/saleor/src/types.ts | 43 - packages/saleor/src/utils/checkout-attach.ts | 12 - packages/saleor/src/utils/checkout-create.ts | 25 - packages/saleor/src/utils/checkout-to-cart.ts | 48 - packages/saleor/src/utils/customer-token.ts | 25 - .../src/utils/fragments/checkout-details.ts | 49 - packages/saleor/src/utils/fragments/index.ts | 2 - .../saleor/src/utils/fragments/product.ts | 29 - packages/saleor/src/utils/get-categories.ts | 25 - packages/saleor/src/utils/get-checkout-id.ts | 9 - .../saleor/src/utils/get-search-variables.ts | 23 - .../saleor/src/utils/get-sort-variables.ts | 30 - packages/saleor/src/utils/get-vendors.ts | 41 - .../saleor/src/utils/handle-fetch-response.ts | 27 - packages/saleor/src/utils/handle-login.ts | 35 - packages/saleor/src/utils/index.ts | 19 - .../src/utils/mutations/account-create.ts | 15 - .../src/utils/mutations/checkout-attach.ts | 12 - .../src/utils/mutations/checkout-create.ts | 17 - .../src/utils/mutations/checkout-line-add.ts | 17 - .../utils/mutations/checkout-line-remove.ts | 17 - .../utils/mutations/checkout-line-update.ts | 17 - packages/saleor/src/utils/mutations/index.ts | 8 - .../src/utils/mutations/session-create.ts | 14 - .../src/utils/mutations/session-destroy.ts | 10 - packages/saleor/src/utils/normalize.ts | 162 - .../saleor/src/utils/queries/checkout-one.ts | 12 - .../src/utils/queries/collection-many.ts | 13 - .../src/utils/queries/collection-one.ts | 17 - .../src/utils/queries/customer-current.ts | 11 - .../saleor/src/utils/queries/customer-one.ts | 7 - .../queries/get-all-product-vendors-query.ts | 16 - .../queries/get-all-products-paths-query.ts | 20 - packages/saleor/src/utils/queries/index.ts | 14 - .../saleor/src/utils/queries/page-many.ts | 13 - packages/saleor/src/utils/queries/page-one.ts | 9 - .../saleor/src/utils/queries/product-many.ts | 20 - .../src/utils/queries/product-one-by-slug.ts | 44 - .../saleor/src/utils/throw-user-errors.ts | 20 - packages/saleor/src/wishlist/use-add-item.tsx | 13 - .../saleor/src/wishlist/use-remove-item.tsx | 17 - packages/saleor/src/wishlist/use-wishlist.tsx | 46 - packages/saleor/taskfile.js | 20 - packages/saleor/tsconfig.json | 21 - packages/sfcc/.env.template | 7 - packages/sfcc/.prettierignore | 2 - packages/sfcc/.prettierrc | 6 - packages/sfcc/README.md | 40 - packages/sfcc/package.json | 80 - .../catalog/products/get-products.ts | 32 - .../api/endpoints/catalog/products/index.ts | 19 - packages/sfcc/src/api/endpoints/index.ts | 13 - packages/sfcc/src/api/index.ts | 48 - .../sfcc/src/api/operations/get-all-pages.ts | 19 - .../api/operations/get-all-product-paths.ts | 45 - .../src/api/operations/get-all-products.ts | 40 - .../api/operations/get-customer-wishlist.ts | 6 - packages/sfcc/src/api/operations/get-page.ts | 13 - .../sfcc/src/api/operations/get-product.ts | 33 - .../sfcc/src/api/operations/get-site-info.ts | 43 - packages/sfcc/src/api/operations/index.ts | 6 - packages/sfcc/src/api/utils/fetch-local.ts | 37 - packages/sfcc/src/api/utils/fetch.ts | 3 - packages/sfcc/src/api/utils/get-auth-token.ts | 42 - .../sfcc/src/api/utils/normalise-product.ts | 97 - packages/sfcc/src/api/utils/sfcc-sdk.ts | 19 - packages/sfcc/src/auth/index.ts | 3 - packages/sfcc/src/auth/use-login.tsx | 16 - packages/sfcc/src/auth/use-logout.tsx | 17 - packages/sfcc/src/auth/use-signup.tsx | 19 - packages/sfcc/src/cart/index.ts | 4 - packages/sfcc/src/cart/use-add-item.tsx | 17 - packages/sfcc/src/cart/use-cart.tsx | 42 - packages/sfcc/src/cart/use-remove-item.tsx | 20 - packages/sfcc/src/cart/use-update-item.tsx | 20 - packages/sfcc/src/checkout/use-checkout.tsx | 16 - packages/sfcc/src/commerce.config.json | 10 - .../src/customer/address/use-add-item.tsx | 17 - .../sfcc/src/customer/card/use-add-item.tsx | 17 - packages/sfcc/src/customer/index.ts | 1 - packages/sfcc/src/customer/use-customer.tsx | 17 - packages/sfcc/src/fetcher.ts | 17 - packages/sfcc/src/index.tsx | 12 - packages/sfcc/src/next.config.cjs | 12 - packages/sfcc/src/product/index.ts | 2 - packages/sfcc/src/product/use-price.tsx | 2 - packages/sfcc/src/product/use-search.tsx | 41 - packages/sfcc/src/provider.ts | 22 - packages/sfcc/src/wishlist/use-add-item.tsx | 13 - .../sfcc/src/wishlist/use-remove-item.tsx | 17 - packages/sfcc/src/wishlist/use-wishlist.tsx | 43 - packages/sfcc/taskfile.js | 20 - packages/sfcc/tsconfig.json | 21 - packages/shopify/.env.template | 4 - packages/shopify/.prettierignore | 2 - packages/shopify/.prettierrc | 6 - packages/shopify/README.md | 135 - packages/shopify/codegen.json | 32 - packages/shopify/package.json | 92 - packages/shopify/schema.d.ts | 7590 ------- packages/shopify/schema.graphql | 11559 ---------- .../catalog/products/get-products.ts | 14 - .../api/endpoints/catalog/products/index.ts | 20 - .../api/endpoints/checkout/get-checkout.ts | 34 - .../src/api/endpoints/checkout/index.ts | 18 - packages/shopify/src/api/endpoints/index.ts | 14 - packages/shopify/src/api/index.ts | 69 - .../src/api/operations/get-all-pages.ts | 71 - .../api/operations/get-all-product-paths.ts | 55 - .../src/api/operations/get-all-products.ts | 67 - .../shopify/src/api/operations/get-page.ts | 64 - .../shopify/src/api/operations/get-product.ts | 66 - .../src/api/operations/get-site-info.ts | 51 - packages/shopify/src/api/operations/login.ts | 47 - .../src/api/utils/fetch-graphql-api.ts | 44 - packages/shopify/src/api/utils/fetch.ts | 2 - packages/shopify/src/auth/use-login.tsx | 63 - packages/shopify/src/auth/use-logout.tsx | 39 - packages/shopify/src/auth/use-signup.tsx | 67 - packages/shopify/src/cart/index.ts | 4 - packages/shopify/src/cart/use-add-item.tsx | 70 - packages/shopify/src/cart/use-cart.tsx | 61 - packages/shopify/src/cart/use-remove-item.tsx | 71 - packages/shopify/src/cart/use-update-item.tsx | 110 - .../shopify/src/checkout/use-checkout.tsx | 16 - packages/shopify/src/commerce.config.json | 7 - packages/shopify/src/const.ts | 13 - .../src/customer/address/use-add-item.tsx | 17 - .../src/customer/card/use-add-item.tsx | 17 - packages/shopify/src/customer/index.ts | 1 - .../shopify/src/customer/use-customer.tsx | 50 - packages/shopify/src/fetcher.ts | 27 - packages/shopify/src/index.tsx | 12 - packages/shopify/src/next.config.cjs | 8 - packages/shopify/src/product/use-price.tsx | 2 - packages/shopify/src/product/use-search.tsx | 91 - packages/shopify/src/provider.ts | 27 - packages/shopify/src/utils/checkout-create.ts | 45 - .../shopify/src/utils/checkout-to-cart.ts | 41 - packages/shopify/src/utils/colors.ts | 154 - packages/shopify/src/utils/customer-token.ts | 21 - packages/shopify/src/utils/get-brands.ts | 31 - packages/shopify/src/utils/get-categories.ts | 34 - packages/shopify/src/utils/get-checkout-id.ts | 8 - .../shopify/src/utils/get-search-variables.ts | 31 - .../shopify/src/utils/get-sort-variables.ts | 32 - .../src/utils/handle-account-activation.ts | 30 - .../src/utils/handle-fetch-response.ts | 27 - packages/shopify/src/utils/handle-login.ts | 36 - packages/shopify/src/utils/index.ts | 15 - .../associate-customer-with-checkout.ts | 18 - .../src/utils/mutations/checkout-create.ts | 19 - .../utils/mutations/checkout-line-item-add.ts | 22 - .../mutations/checkout-line-item-remove.ts | 21 - .../mutations/checkout-line-item-update.ts | 22 - .../mutations/customer-access-token-create.ts | 16 - .../mutations/customer-access-token-delete.ts | 14 - .../mutations/customer-activate-by-url.ts | 19 - .../src/utils/mutations/customer-activate.ts | 19 - .../src/utils/mutations/customer-create.ts | 15 - packages/shopify/src/utils/mutations/index.ts | 9 - packages/shopify/src/utils/normalize.ts | 199 - .../queries/get-all-collections-query.ts | 14 - .../src/utils/queries/get-all-pages-query.ts | 14 - .../queries/get-all-product-vendors-query.ts | 17 - .../queries/get-all-products-paths-query.ts | 17 - .../utils/queries/get-all-products-query.ts | 57 - .../src/utils/queries/get-checkout-query.ts | 70 - .../queries/get-collection-products-query.ts | 21 - .../utils/queries/get-customer-id-query.ts | 8 - .../src/utils/queries/get-customer-query.ts | 16 - .../src/utils/queries/get-page-query.ts | 14 - .../src/utils/queries/get-product-query.ts | 72 - .../src/utils/queries/get-site-info-query.ts | 8 - packages/shopify/src/utils/queries/index.ts | 11 - .../shopify/src/utils/throw-user-errors.ts | 38 - .../shopify/src/wishlist/use-add-item.tsx | 13 - .../shopify/src/wishlist/use-remove-item.tsx | 17 - .../shopify/src/wishlist/use-wishlist.tsx | 46 - packages/shopify/taskfile.js | 20 - packages/shopify/tsconfig.json | 21 - packages/spree/.env.template | 25 - packages/spree/.prettierignore | 2 - packages/spree/.prettierrc | 6 - packages/spree/README-assets/screenshots.png | Bin 117099 -> 0 bytes packages/spree/README.md | 33 - packages/spree/package.json | 85 - .../api/endpoints/checkout/get-checkout.ts | 36 - .../spree/src/api/endpoints/checkout/index.ts | 22 - packages/spree/src/api/endpoints/index.ts | 11 - packages/spree/src/api/index.ts | 45 - .../spree/src/api/operations/get-all-pages.ts | 82 - .../api/operations/get-all-product-paths.ts | 97 - .../src/api/operations/get-all-products.ts | 92 - .../api/operations/get-customer-wishlist.ts | 6 - packages/spree/src/api/operations/get-page.ts | 81 - .../spree/src/api/operations/get-product.ts | 90 - .../spree/src/api/operations/get-site-info.ts | 137 - packages/spree/src/api/operations/index.ts | 6 - .../spree/src/api/utils/create-api-fetch.ts | 85 - packages/spree/src/api/utils/fetch.ts | 3 - packages/spree/src/auth/index.ts | 3 - packages/spree/src/auth/use-login.tsx | 86 - packages/spree/src/auth/use-logout.tsx | 81 - packages/spree/src/auth/use-signup.tsx | 96 - packages/spree/src/cart/index.ts | 4 - packages/spree/src/cart/use-add-item.tsx | 118 - packages/spree/src/cart/use-cart.tsx | 123 - packages/spree/src/cart/use-remove-item.tsx | 119 - packages/spree/src/cart/use-update-item.tsx | 148 - packages/spree/src/checkout/use-checkout.tsx | 19 - packages/spree/src/commerce.config.json | 10 - .../src/customer/address/use-add-item.tsx | 18 - .../spree/src/customer/card/use-add-item.tsx | 19 - packages/spree/src/customer/index.ts | 1 - packages/spree/src/customer/use-customer.tsx | 83 - packages/spree/src/errors/AccessTokenError.ts | 1 - .../spree/src/errors/MisconfigurationError.ts | 1 - .../errors/MissingConfigurationValueError.ts | 1 - .../src/errors/MissingLineItemVariantError.ts | 1 - .../src/errors/MissingOptionValueError.ts | 1 - .../src/errors/MissingPrimaryVariantError.ts | 1 - .../spree/src/errors/MissingProductError.ts | 1 - .../src/errors/MissingSlugVariableError.ts | 1 - .../spree/src/errors/MissingVariantError.ts | 1 - .../spree/src/errors/RefreshTokenError.ts | 1 - .../src/errors/SpreeResponseContentError.ts | 1 - .../SpreeSdkMethodFromEndpointPathError.ts | 1 - .../src/errors/TokensNotRejectedError.ts | 1 - .../src/errors/UserTokenResponseParseError.ts | 1 - packages/spree/src/fetcher.ts | 123 - packages/spree/src/index.tsx | 51 - packages/spree/src/isomorphic-config.ts | 81 - packages/spree/src/next.config.cjs | 16 - packages/spree/src/product/index.ts | 2 - packages/spree/src/product/use-price.tsx | 2 - packages/spree/src/product/use-search.tsx | 104 - packages/spree/src/provider.ts | 35 - packages/spree/src/types/index.ts | 153 - .../convert-spree-error-to-graph-ql-error.ts | 52 - .../utils/create-customized-fetch-fetcher.ts | 109 - packages/spree/src/utils/create-empty-cart.ts | 22 - .../utils/create-get-absolute-image-url.ts | 26 - packages/spree/src/utils/expand-options.ts | 103 - .../utils/force-isomorphic-config-values.ts | 43 - packages/spree/src/utils/get-image-url.ts | 44 - packages/spree/src/utils/get-media-gallery.ts | 25 - packages/spree/src/utils/get-product-path.ts | 7 - ...get-spree-sdk-method-from-endpoint-path.ts | 61 - .../spree/src/utils/handle-token-errors.ts | 14 - .../spree/src/utils/is-json-content-type.ts | 5 - packages/spree/src/utils/is-server.ts | 1 - packages/spree/src/utils/login.ts | 58 - .../utils/normalizations/normalize-cart.ts | 210 - .../utils/normalizations/normalize-page.ts | 42 - .../utils/normalizations/normalize-product.ts | 241 - .../utils/normalizations/normalize-user.ts | 17 - .../normalizations/normalize-wishlist.ts | 63 - .../utils/pretty-print-spree-sdk-errors.ts | 21 - packages/spree/src/utils/require-config.ts | 16 - packages/spree/src/utils/sort-option-types.ts | 11 - packages/spree/src/utils/tokens/cart-token.ts | 21 - .../tokens/ensure-fresh-user-access-token.ts | 51 - .../spree/src/utils/tokens/ensure-itoken.ts | 25 - .../spree/src/utils/tokens/is-logged-in.ts | 9 - .../src/utils/tokens/revoke-user-tokens.ts | 49 - .../src/utils/tokens/user-token-response.ts | 58 - .../validate-all-products-taxonomy-id.ts | 13 - .../validations/validate-cookie-expire.ts | 21 - .../validate-images-option-filter.ts | 15 - .../validations/validate-images-quality.ts | 23 - .../utils/validations/validate-images-size.ts | 13 - .../validate-placeholder-image-url.ts | 15 - .../validate-products-prerender-count.ts | 21 - packages/spree/src/wishlist/index.ts | 3 - packages/spree/src/wishlist/use-add-item.tsx | 89 - .../spree/src/wishlist/use-remove-item.tsx | 75 - packages/spree/src/wishlist/use-wishlist.tsx | 96 - packages/spree/taskfile.js | 20 - packages/spree/tsconfig.json | 21 - packages/swell/.env.template | 7 - packages/swell/.prettierignore | 2 - packages/swell/.prettierrc | 6 - packages/swell/package.json | 85 - packages/swell/schema.d.ts | 5002 ---- packages/swell/schema.graphql | 9631 -------- packages/swell/src/api/customer.ts | 1 - .../swell/src/api/endpoints/checkout/index.ts | 28 - packages/swell/src/api/endpoints/index.ts | 12 - packages/swell/src/api/index.ts | 55 - .../swell/src/api/operations/get-all-pages.ts | 47 - .../api/operations/get-all-product-paths.ts | 51 - .../src/api/operations/get-all-products.ts | 43 - packages/swell/src/api/operations/get-page.ts | 58 - .../swell/src/api/operations/get-product.ts | 33 - .../swell/src/api/operations/get-site-info.ts | 37 - packages/swell/src/api/operations/login.ts | 46 - .../swell/src/api/utils/fetch-swell-api.ts | 7 - packages/swell/src/api/wishlist/index.tsx | 2 - packages/swell/src/auth/use-login.tsx | 77 - packages/swell/src/auth/use-logout.tsx | 40 - packages/swell/src/auth/use-signup.tsx | 62 - packages/swell/src/cart/index.ts | 3 - packages/swell/src/cart/use-add-item.tsx | 62 - packages/swell/src/cart/use-cart.tsx | 39 - packages/swell/src/cart/use-remove-item.tsx | 57 - packages/swell/src/cart/use-update-item.tsx | 103 - .../swell/src/cart/utils/checkout-create.ts | 28 - .../swell/src/cart/utils/checkout-to-cart.ts | 26 - packages/swell/src/cart/utils/index.ts | 2 - packages/swell/src/checkout/use-checkout.tsx | 16 - packages/swell/src/commerce.config.json | 6 - packages/swell/src/const.ts | 11 - .../src/customer/address/use-add-item.tsx | 17 - .../swell/src/customer/card/use-add-item.tsx | 17 - packages/swell/src/customer/index.ts | 1 - packages/swell/src/customer/use-customer.tsx | 32 - packages/swell/src/fetcher.ts | 26 - packages/swell/src/index.tsx | 12 - packages/swell/src/next.config.cjs | 8 - packages/swell/src/product/index.ts | 2 - packages/swell/src/product/use-price.tsx | 2 - packages/swell/src/product/use-search.tsx | 62 - packages/swell/src/provider.ts | 30 - packages/swell/src/swell.ts | 7 - packages/swell/src/types.ts | 96 - packages/swell/src/types/cart.ts | 1 - packages/swell/src/types/checkout.ts | 1 - packages/swell/src/types/common.ts | 1 - packages/swell/src/types/customer.ts | 1 - packages/swell/src/types/index.ts | 25 - packages/swell/src/types/login.ts | 1 - packages/swell/src/types/logout.ts | 1 - packages/swell/src/types/page.ts | 1 - packages/swell/src/types/product.ts | 1 - packages/swell/src/types/signup.ts | 1 - packages/swell/src/types/site.ts | 1 - packages/swell/src/types/wishlist.ts | 1 - packages/swell/src/utils/customer-token.ts | 21 - packages/swell/src/utils/get-categories.ts | 16 - packages/swell/src/utils/get-checkout-id.ts | 8 - .../swell/src/utils/get-search-variables.ts | 27 - .../swell/src/utils/get-sort-variables.ts | 32 - packages/swell/src/utils/get-vendors.ts | 15 - .../swell/src/utils/handle-fetch-response.ts | 19 - packages/swell/src/utils/handle-login.ts | 39 - packages/swell/src/utils/index.ts | 9 - packages/swell/src/utils/normalize.ts | 222 - packages/swell/src/utils/storage.ts | 13 - packages/swell/src/wishlist/use-add-item.tsx | 13 - .../swell/src/wishlist/use-remove-item.tsx | 17 - packages/swell/src/wishlist/use-wishlist.tsx | 35 - packages/swell/taskfile.js | 20 - packages/swell/tsconfig.json | 21 - packages/taskr-swc/.prettierrc | 6 - packages/taskr-swc/package.json | 16 - packages/taskr-swc/taskfile-swc.js | 123 - packages/vendure/.env.template | 4 - packages/vendure/.prettierignore | 2 - packages/vendure/.prettierrc | 6 - packages/vendure/README.md | 37 - packages/vendure/codegen.json | 28 - packages/vendure/package.json | 87 - packages/vendure/schema.d.ts | 3257 --- packages/vendure/schema.graphql | 4162 ---- .../src/api/endpoints/checkout/index.ts | 47 - packages/vendure/src/api/endpoints/index.ts | 12 - packages/vendure/src/api/index.ts | 58 - .../src/api/operations/get-all-pages.ts | 40 - .../api/operations/get-all-product-paths.ts | 55 - .../src/api/operations/get-all-products.ts | 46 - .../api/operations/get-customer-wishlist.ts | 23 - .../vendure/src/api/operations/get-page.ts | 45 - .../vendure/src/api/operations/get-product.ts | 70 - .../src/api/operations/get-site-info.ts | 50 - packages/vendure/src/api/operations/login.ts | 59 - .../src/api/utils/fetch-graphql-api.ts | 37 - packages/vendure/src/api/utils/fetch.ts | 3 - packages/vendure/src/auth/index.ts | 3 - packages/vendure/src/auth/use-login.tsx | 53 - packages/vendure/src/auth/use-logout.tsx | 35 - packages/vendure/src/auth/use-signup.tsx | 67 - packages/vendure/src/cart/index.ts | 4 - packages/vendure/src/cart/use-add-item.tsx | 54 - packages/vendure/src/cart/use-cart.tsx | 46 - packages/vendure/src/cart/use-remove-item.tsx | 51 - packages/vendure/src/cart/use-update-item.tsx | 83 - .../vendure/src/checkout/use-checkout.tsx | 16 - packages/vendure/src/commerce.config.json | 6 - .../src/customer/address/use-add-item.tsx | 17 - .../src/customer/card/use-add-item.tsx | 17 - packages/vendure/src/customer/index.ts | 1 - .../vendure/src/customer/use-customer.tsx | 37 - packages/vendure/src/fetcher.ts | 53 - packages/vendure/src/index.tsx | 12 - packages/vendure/src/next.config.cjs | 8 - packages/vendure/src/product/index.ts | 2 - packages/vendure/src/product/use-price.tsx | 2 - packages/vendure/src/product/use-search.tsx | 64 - packages/vendure/src/provider.ts | 22 - packages/vendure/src/utils/array-to-tree.ts | 67 - .../src/utils/fragments/cart-fragment.ts | 44 - .../utils/fragments/search-result-fragment.ts | 23 - .../mutations/add-item-to-order-mutation.ts | 15 - .../mutations/adjust-order-line-mutation.ts | 15 - .../src/utils/mutations/log-in-mutation.ts | 14 - .../src/utils/mutations/log-out-mutation.ts | 7 - .../mutations/remove-order-line-mutation.ts | 15 - .../src/utils/mutations/sign-up-mutation.ts | 14 - packages/vendure/src/utils/normalize.ts | 62 - .../utils/queries/active-customer-query.ts | 10 - .../queries/get-all-product-paths-query.ts | 9 - .../utils/queries/get-all-products-query.ts | 12 - .../src/utils/queries/get-cart-query.ts | 10 - .../utils/queries/get-collections-query.ts | 21 - .../src/utils/queries/get-product-query.ts | 41 - .../vendure/src/utils/queries/search-query.ts | 13 - .../vendure/src/wishlist/use-add-item.tsx | 13 - .../vendure/src/wishlist/use-remove-item.tsx | 17 - .../vendure/src/wishlist/use-wishlist.tsx | 35 - packages/vendure/taskfile.js | 20 - packages/vendure/tsconfig.json | 21 - playwright.config.ts | 45 + pnpm-lock.yaml | 11667 ++-------- pnpm-workspace.yaml | 3 - postcss.config.js | 6 + prettier.config.js | 10 + site/.env.template | 56 - site/.eslintrc | 6 - site/.gitignore | 36 - site/.npmrc | 1 - site/.prettierignore | 3 - site/.prettierrc | 6 - site/assets/base.css | 127 - site/assets/chrome-bug.css | 12 - site/assets/components.css | 3 - site/assets/main.css | 7 - site/commerce-config.js | 106 - site/commerce.config.json | 9 - site/components/auth/ForgotPassword.tsx | 78 - site/components/auth/LoginView.tsx | 106 - site/components/auth/SignUpView.tsx | 125 - site/components/auth/index.ts | 3 - .../cart/CartItem/CartItem.module.css | 26 - site/components/cart/CartItem/CartItem.tsx | 154 - site/components/cart/CartItem/index.ts | 1 - .../CartSidebarView.module.css | 11 - .../cart/CartSidebarView/CartSidebarView.tsx | 129 - site/components/cart/CartSidebarView/index.ts | 1 - site/components/cart/index.ts | 2 - .../CheckoutSidebarView.module.css | 7 - .../CheckoutSidebarView.tsx | 120 - .../checkout/CheckoutSidebarView/index.ts | 1 - .../PaymentMethodView.module.css | 17 - .../PaymentMethodView/PaymentMethodView.tsx | 130 - .../checkout/PaymentMethodView/index.ts | 1 - .../PaymentWidget/PaymentWidget.module.css | 4 - .../checkout/PaymentWidget/PaymentWidget.tsx | 28 - .../checkout/PaymentWidget/index.ts | 1 - .../ShippingView/ShippingView.module.css | 21 - .../checkout/ShippingView/ShippingView.tsx | 118 - .../components/checkout/ShippingView/index.ts | 1 - .../ShippingWidget/ShippingWidget.module.css | 4 - .../ShippingWidget/ShippingWidget.tsx | 31 - .../checkout/ShippingWidget/index.ts | 1 - site/components/checkout/context.tsx | 121 - site/components/common/Avatar/Avatar.tsx | 24 - site/components/common/Avatar/index.ts | 1 - .../common/FeatureBar/FeatureBar.module.css | 6 - .../common/FeatureBar/FeatureBar.tsx | 39 - site/components/common/FeatureBar/index.ts | 1 - .../common/Footer/Footer.module.css | 13 - site/components/common/Footer/Footer.tsx | 121 - site/components/common/Footer/index.ts | 1 - site/components/common/Head/Head.tsx | 17 - site/components/common/Head/index.ts | 1 - .../HomeAllProductsGrid.module.css | 23 - .../HomeAllProductsGrid.tsx | 67 - .../common/HomeAllProductsGrid/index.ts | 1 - .../common/I18nWidget/I18nWidget.module.css | 48 - .../common/I18nWidget/I18nWidget.tsx | 103 - site/components/common/I18nWidget/index.ts | 1 - .../common/Layout/Layout.module.css | 4 - site/components/common/Layout/Layout.tsx | 141 - site/components/common/Layout/index.ts | 1 - .../common/Navbar/Navbar.module.css | 35 - site/components/common/Navbar/Navbar.tsx | 54 - site/components/common/Navbar/NavbarRoot.tsx | 33 - site/components/common/Navbar/index.ts | 1 - site/components/common/SEO/SEO.tsx | 157 - site/components/common/SEO/index.ts | 1 - .../common/Searchbar/Searchbar.module.css | 29 - .../components/common/Searchbar/Searchbar.tsx | 60 - site/components/common/Searchbar/index.ts | 1 - .../SidebarLayout/SidebarLayout.module.css | 20 - .../common/SidebarLayout/SidebarLayout.tsx | 49 - site/components/common/SidebarLayout/index.ts | 1 - .../CustomerMenuContent.module.css | 29 - .../CustomerMenuContent.tsx | 80 - .../UserNav/CustomerMenuContent/index.ts | 1 - .../MenuSidebarView.module.css | 7 - .../MenuSidebarView/MenuSidebarView.tsx | 38 - .../common/UserNav/MenuSidebarView/index.ts | 5 - .../common/UserNav/UserNav.module.css | 62 - site/components/common/UserNav/UserNav.tsx | 98 - site/components/common/UserNav/index.ts | 3 - site/components/common/index.ts | 10 - site/components/icons/ArrowLeft.tsx | 27 - site/components/icons/ArrowRight.tsx | 28 - site/components/icons/Bag.tsx | 33 - site/components/icons/Check.tsx | 21 - site/components/icons/CreditCard.tsx | 21 - site/components/icons/DoubleChevron.tsx | 22 - site/components/icons/Github.tsx | 20 - site/components/icons/Heart.tsx | 22 - site/components/icons/Info.tsx | 22 - site/components/icons/MapPin.tsx | 20 - site/components/icons/Menu.tsx | 21 - site/components/icons/Minus.tsx | 15 - site/components/icons/Moon.tsx | 20 - site/components/icons/Plus.tsx | 22 - site/components/icons/Star.tsx | 16 - site/components/icons/Sun.tsx | 28 - site/components/icons/System.tsx | 19 - site/components/icons/Trash.tsx | 43 - site/components/icons/Vercel.tsx | 40 - site/components/icons/index.ts | 24 - .../ProductCard/ProductCard.module.css | 109 - .../product/ProductCard/ProductCard.tsx | 131 - site/components/product/ProductCard/index.ts | 1 - .../product/ProductOptions/ProductOptions.tsx | 52 - .../product/ProductOptions/index.ts | 1 - .../ProductSidebar/ProductSidebar.module.css | 84 - .../product/ProductSidebar/ProductSidebar.tsx | 101 - .../product/ProductSidebar/index.ts | 1 - .../ProductSlider/ProductSlider.module.css | 56 - .../product/ProductSlider/ProductSlider.tsx | 129 - .../components/product/ProductSlider/index.ts | 1 - .../ProductSliderControl.module.css | 29 - .../ProductSliderControl.tsx | 30 - .../product/ProductSliderControl/index.ts | 1 - .../product/ProductTag/ProductTag.module.css | 31 - .../product/ProductTag/ProductTag.tsx | 35 - site/components/product/ProductTag/index.ts | 1 - .../ProductView/ProductView.module.css | 55 - .../product/ProductView/ProductView.tsx | 110 - site/components/product/ProductView/index.ts | 1 - .../product/Swatch/Swatch.module.css | 54 - site/components/product/Swatch/Swatch.tsx | 62 - site/components/product/Swatch/index.ts | 1 - site/components/product/helpers.ts | 32 - site/components/product/index.ts | 5 - site/components/search.tsx | 451 - site/components/ui/Button/Button.module.css | 57 - site/components/ui/Button/Button.tsx | 75 - site/components/ui/Button/index.ts | 2 - .../ui/Collapse/Collapse.module.css | 25 - site/components/ui/Collapse/Collapse.tsx | 46 - site/components/ui/Collapse/index.ts | 2 - site/components/ui/Container/Container.tsx | 27 - site/components/ui/Container/index.ts | 1 - .../ui/Dropdown/Dropdown.module.css | 32 - site/components/ui/Dropdown/Dropdown.tsx | 22 - .../ui/ErrorMessage/ErrorMessage.tsx | 35 - site/components/ui/ErrorMessage/index.ts | 1 - site/components/ui/Grid/Grid.module.css | 135 - site/components/ui/Grid/Grid.tsx | 34 - site/components/ui/Grid/index.ts | 1 - site/components/ui/Hero/Hero.module.css | 30 - site/components/ui/Hero/Hero.tsx | 34 - site/components/ui/Hero/index.ts | 1 - site/components/ui/Input/Input.module.css | 7 - site/components/ui/Input/Input.tsx | 37 - site/components/ui/Input/index.ts | 1 - site/components/ui/Link/Link.tsx | 15 - site/components/ui/Link/index.ts | 1 - .../ui/LoadingDots/LoadingDots.module.css | 33 - .../components/ui/LoadingDots/LoadingDots.tsx | 13 - site/components/ui/LoadingDots/index.ts | 1 - site/components/ui/Logo/Logo.tsx | 21 - site/components/ui/Logo/index.ts | 1 - site/components/ui/Marquee/Marquee.module.css | 22 - site/components/ui/Marquee/Marquee.tsx | 39 - site/components/ui/Marquee/index.ts | 1 - site/components/ui/Modal/Modal.module.css | 17 - site/components/ui/Modal/Modal.tsx | 54 - site/components/ui/Modal/index.ts | 1 - .../ui/Quantity/Quantity.module.css | 27 - site/components/ui/Quantity/Quantity.tsx | 62 - site/components/ui/Quantity/index.ts | 2 - site/components/ui/README.md | 3 - site/components/ui/Rating/Rating.module.css | 0 site/components/ui/Rating/Rating.tsx | 25 - site/components/ui/Rating/index.ts | 2 - site/components/ui/Sidebar/Sidebar.module.css | 14 - site/components/ui/Sidebar/Sidebar.tsx | 57 - site/components/ui/Sidebar/index.ts | 1 - .../ui/Skeleton/Skeleton.module.css | 48 - site/components/ui/Skeleton/Skeleton.tsx | 58 - site/components/ui/Skeleton/index.ts | 1 - site/components/ui/Text/Text.module.css | 75 - site/components/ui/Text/Text.tsx | 70 - site/components/ui/Text/index.ts | 1 - .../components/ui/ThemeSwitcher/ThemeIcon.tsx | 22 - .../ui/ThemeSwitcher/ThemeSwitcher.tsx | 80 - site/components/ui/ThemeSwitcher/index.ts | 1 - site/components/ui/context.tsx | 219 - site/components/ui/index.ts | 17 - .../WishlistButton/WishlistButton.module.css | 33 - .../WishlistButton/WishlistButton.tsx | 82 - .../wishlist/WishlistButton/index.ts | 1 - .../WishlistCard/WishlistCard.module.css | 38 - .../wishlist/WishlistCard/WishlistCard.tsx | 107 - .../components/wishlist/WishlistCard/index.ts | 1 - site/components/wishlist/index.ts | 2 - site/config/seo_meta.json | 25 - site/global.d.ts | 2 - site/lib/api/commerce.ts | 2 - site/lib/click-outside/click-outside.tsx | 85 - site/lib/click-outside/has-parent.js | 5 - site/lib/click-outside/index.ts | 1 - site/lib/click-outside/is-in-dom.js | 3 - site/lib/colors.ts | 206 - site/lib/focus-trap.tsx | 68 - site/lib/get-slug.ts | 5 - site/lib/hooks/useAcceptCookies.ts | 24 - site/lib/hooks/useToggleTheme.ts | 11 - site/lib/hooks/useUserAvatar.ts | 26 - site/lib/range-map.ts | 7 - site/lib/search-props.tsx | 27 - site/lib/search.tsx | 50 - site/lib/to-pixels.ts | 13 - site/lib/usage-warns.ts | 26 - site/next-env.d.ts | 5 - site/next.config.js | 46 - site/package.json | 108 - site/pages/404.tsx | 35 - site/pages/[...pages].tsx | 87 - site/pages/_app.tsx | 29 - site/pages/_document.tsx | 17 - site/pages/api/commerce/[[...commerce]].ts | 8 - site/pages/cart.tsx | 192 - site/pages/index.tsx | 93 - site/pages/orders.tsx | 42 - site/pages/product/[slug].tsx | 83 - site/pages/profile.tsx | 52 - site/pages/search.tsx | 9 - site/pages/search/[category].tsx | 16 - site/pages/search/designers/[name].tsx | 16 - .../search/designers/[name]/[category].tsx | 16 - site/pages/wishlist.tsx | 83 - site/postcss.config.js | 20 - site/public/assets/drop-shirt-0.png | Bin 157663 -> 0 bytes site/public/assets/drop-shirt-1.png | Bin 260517 -> 0 bytes site/public/assets/drop-shirt-2.png | Bin 244812 -> 0 bytes site/public/assets/drop-shirt.png | Bin 157663 -> 0 bytes site/public/assets/lightweight-jacket-0.png | Bin 507021 -> 0 bytes site/public/assets/lightweight-jacket-1.png | Bin 476841 -> 0 bytes site/public/assets/lightweight-jacket-2.png | Bin 353198 -> 0 bytes site/public/assets/t-shirt-0.png | Bin 415845 -> 0 bytes site/public/assets/t-shirt-1.png | Bin 337401 -> 0 bytes site/public/assets/t-shirt-2.png | Bin 429830 -> 0 bytes site/public/assets/t-shirt-3.png | Bin 666930 -> 0 bytes site/public/assets/t-shirt-4.png | Bin 364452 -> 0 bytes site/public/bg-products.svg | 7 - site/public/card.png | Bin 6286 -> 0 bytes site/public/cursor-left.png | Bin 1162 -> 0 bytes site/public/cursor-right.png | Bin 1165 -> 0 bytes site/public/flag-en-us.svg | 1 - site/public/flag-es-ar.svg | 20 - site/public/flag-es-co.svg | 10 - site/public/flag-es.svg | 1 - site/public/icon-144x144.png | Bin 4150 -> 0 bytes site/public/icon-192x192.png | Bin 6030 -> 0 bytes site/public/icon-512x512.png | Bin 10832 -> 0 bytes site/public/icon.png | Bin 1058 -> 0 bytes site/public/product-img-placeholder.svg | 7 - site/public/site.webmanifest | 22 - site/public/slider-arrows.png | Bin 1739 -> 0 bytes site/public/vercel.svg | 9 - site/tailwind.config.js | 58 - site/tsconfig.json | 32 - tailwind.config.js | 66 + .../tsconfig.json => tsconfig.json | 22 +- turbo.json | 41 - 1288 files changed, 6079 insertions(+), 149538 deletions(-) delete mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .eslintrc.js delete mode 100644 .github/ISSUE_TEMPLATE/1.core_bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/2.provider_bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/3.feature_request.yml delete mode 100644 .github/ISSUE_TEMPLATE/4.docs_request.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/e2e.yml create mode 100644 .github/workflows/test.yml create mode 100644 .nvmrc delete mode 100644 .prettierrc delete mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 app/[page]/layout.tsx create mode 100644 app/[page]/page.tsx create mode 100644 app/api/cart/route.ts create mode 100644 app/api/og/Inter-Bold.ttf create mode 100644 app/api/og/Inter-Regular.ttf create mode 100644 app/api/og/route.tsx create mode 100644 app/error.tsx rename {site/public => app}/favicon.ico (100%) create mode 100644 app/globals.css create mode 100644 app/layout.tsx create mode 100644 app/page.tsx create mode 100644 app/product/[handle]/page.tsx create mode 100644 app/search/[collection]/page.tsx create mode 100644 app/search/layout.tsx create mode 100644 app/search/loading.tsx create mode 100644 app/search/page.tsx create mode 100644 components/carousel.tsx create mode 100644 components/cart/button.tsx create mode 100644 components/cart/delete-item-button.tsx create mode 100644 components/cart/edit-item-quantity-button.tsx create mode 100644 components/cart/index.tsx create mode 100644 components/cart/modal.tsx create mode 100644 components/grid/index.tsx create mode 100644 components/grid/three-items.tsx create mode 100644 components/grid/tile.tsx create mode 100644 components/icons/arrow-left.tsx rename site/components/icons/ChevronRight.tsx => components/icons/caret-right.tsx (63%) create mode 100644 components/icons/cart.tsx rename site/components/icons/Cross.tsx => components/icons/close.tsx (64%) create mode 100644 components/icons/github.tsx create mode 100644 components/icons/logo.tsx rename site/components/icons/ChevronDown.tsx => components/icons/menu.tsx (53%) rename site/components/icons/ChevronLeft.tsx => components/icons/minus.tsx (54%) rename site/components/icons/ChevronUp.tsx => components/icons/plus.tsx (51%) create mode 100644 components/icons/search.tsx create mode 100644 components/icons/shopping-bag.tsx create mode 100644 components/icons/vercel.tsx create mode 100644 components/layout/footer.tsx create mode 100644 components/layout/navbar/index.tsx create mode 100644 components/layout/navbar/mobile-menu.tsx create mode 100644 components/layout/navbar/search.tsx create mode 100644 components/layout/search/collections.tsx create mode 100644 components/layout/search/filter/dropdown.tsx create mode 100644 components/layout/search/filter/index.tsx create mode 100644 components/layout/search/filter/item.tsx create mode 100644 components/layout/search/results.tsx create mode 100644 components/loading-dots.tsx create mode 100644 components/price.tsx create mode 100644 components/product/add-to-cart.tsx create mode 100644 components/product/gallery.tsx create mode 100644 components/product/variant-selector.tsx create mode 100644 components/prose.tsx create mode 100644 e2e/cart.spec.ts create mode 100644 e2e/mobile-menu.spec.ts create mode 100644 lib/constants.tsx create mode 100644 lib/shopify/fragments/cart.ts create mode 100644 lib/shopify/fragments/image.ts create mode 100644 lib/shopify/fragments/product.ts create mode 100644 lib/shopify/fragments/seo.ts create mode 100644 lib/shopify/index.ts create mode 100644 lib/shopify/mutations/cart.ts create mode 100644 lib/shopify/queries/cart.ts create mode 100644 lib/shopify/queries/collection.ts create mode 100644 lib/shopify/queries/menu.ts create mode 100644 lib/shopify/queries/page.ts create mode 100644 lib/shopify/queries/product.ts create mode 100644 lib/shopify/types.ts create mode 100644 lib/type-guards.ts create mode 100644 lib/utils.ts create mode 100644 next.config.js delete mode 100644 packages/bigcommerce/.env.template delete mode 100644 packages/bigcommerce/.prettierignore delete mode 100644 packages/bigcommerce/.prettierrc delete mode 100644 packages/bigcommerce/README.md delete mode 100644 packages/bigcommerce/codegen.json delete mode 100644 packages/bigcommerce/package.json delete mode 100644 packages/bigcommerce/schema.d.ts delete mode 100644 packages/bigcommerce/schema.graphql delete mode 100644 packages/bigcommerce/scripts/generate-definitions.js delete mode 100644 packages/bigcommerce/src/api/definitions/catalog.ts delete mode 100644 packages/bigcommerce/src/api/definitions/store-content.ts delete mode 100644 packages/bigcommerce/src/api/definitions/wishlist.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/cart/add-item.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/cart/get-cart.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/cart/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/cart/remove-item.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/cart/update-item.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/catalog/products/get-products.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/catalog/products/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/checkout/get-checkout.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/checkout/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/customer/get-logged-in-customer.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/customer/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/login/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/login/login.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/logout/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/logout/logout.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/signup/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/signup/signup.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/wishlist/add-item.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/wishlist/get-wishlist.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/wishlist/index.ts delete mode 100644 packages/bigcommerce/src/api/endpoints/wishlist/remove-item.ts delete mode 100644 packages/bigcommerce/src/api/fragments/category-tree.ts delete mode 100644 packages/bigcommerce/src/api/fragments/product.ts delete mode 100644 packages/bigcommerce/src/api/index.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-all-pages.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-all-products.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-page.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-product.ts delete mode 100644 packages/bigcommerce/src/api/operations/get-site-info.ts delete mode 100644 packages/bigcommerce/src/api/operations/login.ts delete mode 100644 packages/bigcommerce/src/api/utils/concat-cookie.ts delete mode 100644 packages/bigcommerce/src/api/utils/errors.ts delete mode 100644 packages/bigcommerce/src/api/utils/fetch-graphql-api.ts delete mode 100644 packages/bigcommerce/src/api/utils/fetch-store-api.ts delete mode 100644 packages/bigcommerce/src/api/utils/fetch.ts delete mode 100644 packages/bigcommerce/src/api/utils/filter-edges.ts delete mode 100644 packages/bigcommerce/src/api/utils/get-cart-cookie.ts delete mode 100644 packages/bigcommerce/src/api/utils/get-customer-id.ts delete mode 100644 packages/bigcommerce/src/api/utils/parse-item.ts delete mode 100644 packages/bigcommerce/src/api/utils/set-product-locale-meta.ts delete mode 100644 packages/bigcommerce/src/api/utils/types.ts delete mode 100644 packages/bigcommerce/src/auth/index.ts delete mode 100644 packages/bigcommerce/src/auth/use-login.tsx delete mode 100644 packages/bigcommerce/src/auth/use-logout.tsx delete mode 100644 packages/bigcommerce/src/auth/use-signup.tsx delete mode 100644 packages/bigcommerce/src/cart/index.ts delete mode 100644 packages/bigcommerce/src/cart/use-add-item.tsx delete mode 100644 packages/bigcommerce/src/cart/use-cart.tsx delete mode 100644 packages/bigcommerce/src/cart/use-remove-item.tsx delete mode 100644 packages/bigcommerce/src/cart/use-update-item.tsx delete mode 100644 packages/bigcommerce/src/checkout/use-checkout.tsx delete mode 100644 packages/bigcommerce/src/commerce.config.json delete mode 100644 packages/bigcommerce/src/customer/address/use-add-item.tsx delete mode 100644 packages/bigcommerce/src/customer/card/use-add-item.tsx delete mode 100644 packages/bigcommerce/src/customer/index.ts delete mode 100644 packages/bigcommerce/src/customer/use-customer.tsx delete mode 100644 packages/bigcommerce/src/fetcher.ts delete mode 100644 packages/bigcommerce/src/index.tsx delete mode 100644 packages/bigcommerce/src/lib/get-slug.ts delete mode 100644 packages/bigcommerce/src/lib/immutability.ts delete mode 100644 packages/bigcommerce/src/lib/normalize.ts delete mode 100644 packages/bigcommerce/src/next.config.cjs delete mode 100644 packages/bigcommerce/src/product/index.ts delete mode 100644 packages/bigcommerce/src/product/use-price.tsx delete mode 100644 packages/bigcommerce/src/product/use-search.tsx delete mode 100644 packages/bigcommerce/src/provider.ts delete mode 100644 packages/bigcommerce/src/types.ts delete mode 100644 packages/bigcommerce/src/wishlist/index.ts delete mode 100644 packages/bigcommerce/src/wishlist/use-add-item.tsx delete mode 100644 packages/bigcommerce/src/wishlist/use-remove-item.tsx delete mode 100644 packages/bigcommerce/src/wishlist/use-wishlist.tsx delete mode 100644 packages/bigcommerce/taskfile.js delete mode 100644 packages/bigcommerce/tsconfig.json delete mode 100644 packages/commerce/.prettierignore delete mode 100644 packages/commerce/.prettierrc delete mode 100644 packages/commerce/README.md delete mode 100755 packages/commerce/fixup.mjs delete mode 100644 packages/commerce/new-provider.md delete mode 100644 packages/commerce/package.json delete mode 100644 packages/commerce/src/api/endpoints/cart.ts delete mode 100644 packages/commerce/src/api/endpoints/catalog/products.ts delete mode 100644 packages/commerce/src/api/endpoints/checkout.ts delete mode 100644 packages/commerce/src/api/endpoints/customer/address.ts delete mode 100644 packages/commerce/src/api/endpoints/customer/card.ts delete mode 100644 packages/commerce/src/api/endpoints/customer/index.ts delete mode 100644 packages/commerce/src/api/endpoints/index.ts delete mode 100644 packages/commerce/src/api/endpoints/login.ts delete mode 100644 packages/commerce/src/api/endpoints/logout.ts delete mode 100644 packages/commerce/src/api/endpoints/signup.ts delete mode 100644 packages/commerce/src/api/endpoints/wishlist.ts delete mode 100644 packages/commerce/src/api/index.ts delete mode 100644 packages/commerce/src/api/operations.ts delete mode 100644 packages/commerce/src/api/utils/edge-handler.ts delete mode 100644 packages/commerce/src/api/utils/errors.ts delete mode 100644 packages/commerce/src/api/utils/index.ts delete mode 100644 packages/commerce/src/api/utils/node-handler.ts delete mode 100644 packages/commerce/src/api/utils/types.ts delete mode 100644 packages/commerce/src/api/utils/validate-handlers.ts delete mode 100644 packages/commerce/src/api/utils/validate-method.ts delete mode 100644 packages/commerce/src/api/utils/with-operation-callback.ts delete mode 100644 packages/commerce/src/auth/use-login.tsx delete mode 100644 packages/commerce/src/auth/use-logout.tsx delete mode 100644 packages/commerce/src/auth/use-signup.tsx delete mode 100644 packages/commerce/src/cart/use-add-item.tsx delete mode 100644 packages/commerce/src/cart/use-cart.tsx delete mode 100644 packages/commerce/src/cart/use-remove-item.tsx delete mode 100644 packages/commerce/src/cart/use-update-item.tsx delete mode 100644 packages/commerce/src/checkout/use-checkout.ts delete mode 100644 packages/commerce/src/checkout/use-submit-checkout.tsx delete mode 100644 packages/commerce/src/config.cjs delete mode 100644 packages/commerce/src/customer/address/use-add-item.tsx delete mode 100644 packages/commerce/src/customer/address/use-addresses.tsx delete mode 100644 packages/commerce/src/customer/address/use-remove-item.tsx delete mode 100644 packages/commerce/src/customer/address/use-update-item.tsx delete mode 100644 packages/commerce/src/customer/card/use-add-item.tsx delete mode 100644 packages/commerce/src/customer/card/use-cards.tsx delete mode 100644 packages/commerce/src/customer/card/use-remove-item.tsx delete mode 100644 packages/commerce/src/customer/card/use-update-item.tsx delete mode 100644 packages/commerce/src/customer/use-customer.tsx delete mode 100644 packages/commerce/src/index.tsx delete mode 100644 packages/commerce/src/product/use-price.tsx delete mode 100644 packages/commerce/src/product/use-search.tsx delete mode 100644 packages/commerce/src/schemas/auth.ts delete mode 100644 packages/commerce/src/schemas/cart.ts delete mode 100644 packages/commerce/src/schemas/checkout.ts delete mode 100644 packages/commerce/src/schemas/customer.ts delete mode 100644 packages/commerce/src/schemas/page.ts delete mode 100644 packages/commerce/src/schemas/product.ts delete mode 100644 packages/commerce/src/schemas/site.ts delete mode 100644 packages/commerce/src/schemas/whishlist.ts delete mode 100644 packages/commerce/src/types/cart.ts delete mode 100644 packages/commerce/src/types/checkout.ts delete mode 100644 packages/commerce/src/types/common.ts delete mode 100644 packages/commerce/src/types/customer/address.ts delete mode 100644 packages/commerce/src/types/customer/card.ts delete mode 100644 packages/commerce/src/types/customer/index.ts delete mode 100644 packages/commerce/src/types/index.ts delete mode 100644 packages/commerce/src/types/login.ts delete mode 100644 packages/commerce/src/types/logout.ts delete mode 100644 packages/commerce/src/types/page.ts delete mode 100644 packages/commerce/src/types/product.ts delete mode 100644 packages/commerce/src/types/signup.ts delete mode 100644 packages/commerce/src/types/site.ts delete mode 100644 packages/commerce/src/types/wishlist.ts delete mode 100644 packages/commerce/src/utils/default-fetcher.ts delete mode 100644 packages/commerce/src/utils/define-property.ts delete mode 100644 packages/commerce/src/utils/errors.ts delete mode 100644 packages/commerce/src/utils/types.ts delete mode 100644 packages/commerce/src/utils/use-data.tsx delete mode 100644 packages/commerce/src/utils/use-hook.ts delete mode 100644 packages/commerce/src/wishlist/index.ts delete mode 100644 packages/commerce/src/wishlist/use-add-item.tsx delete mode 100644 packages/commerce/src/wishlist/use-remove-item.tsx delete mode 100644 packages/commerce/src/wishlist/use-wishlist.tsx delete mode 100644 packages/commerce/taskfile.js delete mode 100644 packages/commerce/tsconfig.json delete mode 100644 packages/commercejs/.env.template delete mode 100644 packages/commercejs/.prettierignore delete mode 100644 packages/commercejs/.prettierrc delete mode 100644 packages/commercejs/README.md delete mode 100644 packages/commercejs/global.d.ts delete mode 100644 packages/commercejs/package.json delete mode 100644 packages/commercejs/src/api/endpoints/checkout/get-checkout.ts delete mode 100644 packages/commercejs/src/api/endpoints/checkout/index.ts delete mode 100644 packages/commercejs/src/api/endpoints/checkout/submit-checkout.ts delete mode 100644 packages/commercejs/src/api/endpoints/index.ts delete mode 100644 packages/commercejs/src/api/endpoints/login/index.ts delete mode 100644 packages/commercejs/src/api/endpoints/login/login.ts delete mode 100644 packages/commercejs/src/api/index.ts delete mode 100644 packages/commercejs/src/api/operations/get-all-pages.ts delete mode 100644 packages/commercejs/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/commercejs/src/api/operations/get-all-products.ts delete mode 100644 packages/commercejs/src/api/operations/get-page.ts delete mode 100644 packages/commercejs/src/api/operations/get-product.ts delete mode 100644 packages/commercejs/src/api/operations/get-site-info.ts delete mode 100644 packages/commercejs/src/api/operations/index.ts delete mode 100644 packages/commercejs/src/api/utils/graphql-fetch.ts delete mode 100644 packages/commercejs/src/api/utils/sdk-fetch.ts delete mode 100644 packages/commercejs/src/auth/index.ts delete mode 100644 packages/commercejs/src/auth/use-login.tsx delete mode 100644 packages/commercejs/src/auth/use-logout.tsx delete mode 100644 packages/commercejs/src/auth/use-signup.tsx delete mode 100644 packages/commercejs/src/cart/index.ts delete mode 100644 packages/commercejs/src/cart/use-add-item.tsx delete mode 100644 packages/commercejs/src/cart/use-cart.tsx delete mode 100644 packages/commercejs/src/cart/use-remove-item.tsx delete mode 100644 packages/commercejs/src/cart/use-update-item.tsx delete mode 100644 packages/commercejs/src/checkout/index.ts delete mode 100644 packages/commercejs/src/checkout/use-checkout.tsx delete mode 100644 packages/commercejs/src/checkout/use-submit-checkout.tsx delete mode 100644 packages/commercejs/src/commerce.config.json delete mode 100644 packages/commercejs/src/constants.ts delete mode 100644 packages/commercejs/src/customer/address/index.ts delete mode 100644 packages/commercejs/src/customer/address/use-add-item.tsx delete mode 100644 packages/commercejs/src/customer/address/use-addresses.tsx delete mode 100644 packages/commercejs/src/customer/card/index.ts delete mode 100644 packages/commercejs/src/customer/card/use-add-item.tsx delete mode 100644 packages/commercejs/src/customer/card/use-cards.tsx delete mode 100644 packages/commercejs/src/customer/index.ts delete mode 100644 packages/commercejs/src/customer/use-customer.tsx delete mode 100644 packages/commercejs/src/fetcher.ts delete mode 100644 packages/commercejs/src/index.tsx delete mode 100644 packages/commercejs/src/lib/commercejs.ts delete mode 100644 packages/commercejs/src/next.config.cjs delete mode 100644 packages/commercejs/src/product/index.ts delete mode 100644 packages/commercejs/src/product/use-price.tsx delete mode 100644 packages/commercejs/src/product/use-search.tsx delete mode 100644 packages/commercejs/src/provider.ts delete mode 100644 packages/commercejs/src/types.ts delete mode 100644 packages/commercejs/src/utils/get-deployment-url.ts delete mode 100644 packages/commercejs/src/utils/normalize-cart.ts delete mode 100644 packages/commercejs/src/utils/normalize-category.ts delete mode 100644 packages/commercejs/src/utils/normalize-checkout.ts delete mode 100644 packages/commercejs/src/utils/normalize-product.ts delete mode 100644 packages/commercejs/src/utils/product-search.ts delete mode 100644 packages/commercejs/src/wishlist/use-add-item.tsx delete mode 100644 packages/commercejs/src/wishlist/use-remove-item.tsx delete mode 100644 packages/commercejs/src/wishlist/use-wishlist.tsx delete mode 100644 packages/commercejs/taskfile.js delete mode 100644 packages/commercejs/tsconfig.json delete mode 100644 packages/kibocommerce/.env.template delete mode 100644 packages/kibocommerce/.prettierignore delete mode 100644 packages/kibocommerce/.prettierrc delete mode 100644 packages/kibocommerce/README.md delete mode 100644 packages/kibocommerce/codegen.json delete mode 100644 packages/kibocommerce/package.json delete mode 100644 packages/kibocommerce/schema.d.ts delete mode 100644 packages/kibocommerce/schema.graphql delete mode 100644 packages/kibocommerce/src/api/endpoints/cart/add-item.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/cart/get-cart.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/cart/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/cart/remove-item.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/cart/update-item.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/catalog/products/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/catalog/products/products.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/customer/customer.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/customer/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/login/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/login/login.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/logout/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/logout/logout.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/signup/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/signup/signup.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/wishlist/add-item.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/wishlist/get-wishlist.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/wishlist/index.ts delete mode 100644 packages/kibocommerce/src/api/endpoints/wishlist/remove-item.ts delete mode 100644 packages/kibocommerce/src/api/fragments/cartItemDetails.ts delete mode 100644 packages/kibocommerce/src/api/fragments/category.ts delete mode 100644 packages/kibocommerce/src/api/fragments/product.ts delete mode 100644 packages/kibocommerce/src/api/fragments/productDetails.ts delete mode 100644 packages/kibocommerce/src/api/fragments/search.ts delete mode 100644 packages/kibocommerce/src/api/index.ts delete mode 100644 packages/kibocommerce/src/api/mutations/addItemToWishlist-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/addToCart-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/create-wishlist-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/login-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/removeItemFromCart-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/removeItemFromWishlist-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/signup-mutation.ts delete mode 100644 packages/kibocommerce/src/api/mutations/updateCartItemQuantity-mutation.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-all-pages.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-all-products.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-page.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-product.ts delete mode 100644 packages/kibocommerce/src/api/operations/get-site-info.ts delete mode 100644 packages/kibocommerce/src/api/operations/index.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-all-pages-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-all-products-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-anonymous-shopper-token-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-cart-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-categories-tree-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-customer-account-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-customer-wishlist-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-page-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/get-product-query.ts delete mode 100644 packages/kibocommerce/src/api/queries/product-search-query.ts delete mode 100644 packages/kibocommerce/src/api/utils/api-auth-helper.ts delete mode 100644 packages/kibocommerce/src/api/utils/cookie-handler.ts delete mode 100644 packages/kibocommerce/src/api/utils/fetch-graphql-api.ts delete mode 100644 packages/kibocommerce/src/api/utils/fetch-local.ts delete mode 100644 packages/kibocommerce/src/api/utils/fetch.ts delete mode 100644 packages/kibocommerce/src/api/utils/get-anonymous-shopper-token.ts delete mode 100644 packages/kibocommerce/src/api/utils/get-customer-id.ts delete mode 100644 packages/kibocommerce/src/auth/index.ts delete mode 100644 packages/kibocommerce/src/auth/use-login.tsx delete mode 100644 packages/kibocommerce/src/auth/use-logout.tsx delete mode 100644 packages/kibocommerce/src/auth/use-signup.tsx delete mode 100644 packages/kibocommerce/src/cart/index.ts delete mode 100644 packages/kibocommerce/src/cart/use-add-item.tsx delete mode 100644 packages/kibocommerce/src/cart/use-cart.tsx delete mode 100644 packages/kibocommerce/src/cart/use-remove-item.tsx delete mode 100644 packages/kibocommerce/src/cart/use-update-item.tsx delete mode 100644 packages/kibocommerce/src/checkout/use-checkout.tsx delete mode 100644 packages/kibocommerce/src/commerce.config.json delete mode 100644 packages/kibocommerce/src/customer/address/use-add-item.tsx delete mode 100644 packages/kibocommerce/src/customer/card/use-add-item.tsx delete mode 100644 packages/kibocommerce/src/customer/index.ts delete mode 100644 packages/kibocommerce/src/customer/use-customer.tsx delete mode 100644 packages/kibocommerce/src/fetcher.ts delete mode 100644 packages/kibocommerce/src/index.tsx delete mode 100644 packages/kibocommerce/src/lib/get-cookie-expiration-date.ts delete mode 100644 packages/kibocommerce/src/lib/get-slug.ts delete mode 100644 packages/kibocommerce/src/lib/normalize.ts delete mode 100644 packages/kibocommerce/src/lib/prepare-set-cookie.ts delete mode 100644 packages/kibocommerce/src/lib/product-search-vars.ts delete mode 100644 packages/kibocommerce/src/lib/set-cookie.ts delete mode 100644 packages/kibocommerce/src/next.config.cjs delete mode 100644 packages/kibocommerce/src/product/index.ts delete mode 100644 packages/kibocommerce/src/product/use-price.tsx delete mode 100644 packages/kibocommerce/src/product/use-search.tsx delete mode 100644 packages/kibocommerce/src/provider.ts delete mode 100644 packages/kibocommerce/src/wishlist/index.ts delete mode 100644 packages/kibocommerce/src/wishlist/use-add-item.tsx delete mode 100644 packages/kibocommerce/src/wishlist/use-remove-item.tsx delete mode 100644 packages/kibocommerce/src/wishlist/use-wishlist.tsx delete mode 100644 packages/kibocommerce/taskfile.js delete mode 100644 packages/local/.env.template delete mode 100644 packages/local/.prettierignore delete mode 100644 packages/local/.prettierrc delete mode 100644 packages/local/README.md delete mode 100644 packages/local/package.json delete mode 100644 packages/local/src/api/endpoints.ts delete mode 100644 packages/local/src/api/index.ts delete mode 100644 packages/local/src/api/operations/get-all-pages.ts delete mode 100644 packages/local/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/local/src/api/operations/get-all-products.ts delete mode 100644 packages/local/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/local/src/api/operations/get-page.ts delete mode 100644 packages/local/src/api/operations/get-product.ts delete mode 100644 packages/local/src/api/operations/get-site-info.ts delete mode 100644 packages/local/src/api/operations/index.ts delete mode 100644 packages/local/src/api/utils/fetch-local.ts delete mode 100644 packages/local/src/api/utils/fetch.ts delete mode 100644 packages/local/src/auth/index.ts delete mode 100644 packages/local/src/auth/use-login.tsx delete mode 100644 packages/local/src/auth/use-logout.tsx delete mode 100644 packages/local/src/auth/use-signup.tsx delete mode 100644 packages/local/src/cart/index.ts delete mode 100644 packages/local/src/cart/use-add-item.tsx delete mode 100644 packages/local/src/cart/use-cart.tsx delete mode 100644 packages/local/src/cart/use-remove-item.tsx delete mode 100644 packages/local/src/cart/use-update-item.tsx delete mode 100644 packages/local/src/checkout/use-checkout.tsx delete mode 100644 packages/local/src/commerce.config.json delete mode 100644 packages/local/src/customer/address/use-add-item.tsx delete mode 100644 packages/local/src/customer/card/use-add-item.tsx delete mode 100644 packages/local/src/customer/index.ts delete mode 100644 packages/local/src/customer/use-customer.tsx delete mode 100644 packages/local/src/data.json delete mode 100644 packages/local/src/fetcher.ts delete mode 100644 packages/local/src/index.tsx delete mode 100644 packages/local/src/next.config.cjs delete mode 100644 packages/local/src/product/index.ts delete mode 100644 packages/local/src/product/use-price.tsx delete mode 100644 packages/local/src/product/use-search.tsx delete mode 100644 packages/local/src/provider.ts delete mode 100644 packages/local/src/wishlist/use-add-item.tsx delete mode 100644 packages/local/src/wishlist/use-remove-item.tsx delete mode 100644 packages/local/src/wishlist/use-wishlist.tsx delete mode 100644 packages/local/taskfile.js delete mode 100644 packages/local/tsconfig.json delete mode 100644 packages/ordercloud/.env.template delete mode 100644 packages/ordercloud/.prettierignore delete mode 100644 packages/ordercloud/.prettierrc delete mode 100644 packages/ordercloud/README.md delete mode 100644 packages/ordercloud/package.json delete mode 100644 packages/ordercloud/src/api/endpoints/cart/add-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/cart/get-cart.ts delete mode 100644 packages/ordercloud/src/api/endpoints/cart/index.ts delete mode 100644 packages/ordercloud/src/api/endpoints/cart/remove-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/cart/update-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/catalog/products/get-products.ts delete mode 100644 packages/ordercloud/src/api/endpoints/catalog/products/index.ts delete mode 100644 packages/ordercloud/src/api/endpoints/checkout/get-checkout.ts delete mode 100644 packages/ordercloud/src/api/endpoints/checkout/index.ts delete mode 100644 packages/ordercloud/src/api/endpoints/checkout/submit-checkout.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/address/add-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/address/get-addresses.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/address/index.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/address/remove-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/address/update-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/card/add-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/card/get-cards.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/card/index.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/card/remove-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/customer/card/update-item.ts delete mode 100644 packages/ordercloud/src/api/endpoints/index.ts delete mode 100644 packages/ordercloud/src/api/index.ts delete mode 100644 packages/ordercloud/src/api/operations/get-all-pages.ts delete mode 100644 packages/ordercloud/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/ordercloud/src/api/operations/get-all-products.ts delete mode 100644 packages/ordercloud/src/api/operations/get-page.ts delete mode 100644 packages/ordercloud/src/api/operations/get-product.ts delete mode 100644 packages/ordercloud/src/api/operations/get-site-info.ts delete mode 100644 packages/ordercloud/src/api/operations/index.ts delete mode 100644 packages/ordercloud/src/api/utils/cart.ts delete mode 100644 packages/ordercloud/src/api/utils/fetch-graphql.ts delete mode 100644 packages/ordercloud/src/api/utils/fetch-rest.ts delete mode 100644 packages/ordercloud/src/auth/index.ts delete mode 100644 packages/ordercloud/src/auth/use-login.tsx delete mode 100644 packages/ordercloud/src/auth/use-logout.tsx delete mode 100644 packages/ordercloud/src/auth/use-signup.tsx delete mode 100644 packages/ordercloud/src/cart/index.ts delete mode 100644 packages/ordercloud/src/cart/use-add-item.tsx delete mode 100644 packages/ordercloud/src/cart/use-cart.tsx delete mode 100644 packages/ordercloud/src/cart/use-remove-item.tsx delete mode 100644 packages/ordercloud/src/cart/use-update-item.tsx delete mode 100644 packages/ordercloud/src/checkout/index.ts delete mode 100644 packages/ordercloud/src/checkout/use-checkout.tsx delete mode 100644 packages/ordercloud/src/checkout/use-submit-checkout.tsx delete mode 100644 packages/ordercloud/src/commerce.config.json delete mode 100644 packages/ordercloud/src/constants.ts delete mode 100644 packages/ordercloud/src/customer/address/index.ts delete mode 100644 packages/ordercloud/src/customer/address/use-add-item.tsx delete mode 100644 packages/ordercloud/src/customer/address/use-addresses.tsx delete mode 100644 packages/ordercloud/src/customer/address/use-remove-item.tsx delete mode 100644 packages/ordercloud/src/customer/address/use-update-item.tsx delete mode 100644 packages/ordercloud/src/customer/card/index.ts delete mode 100644 packages/ordercloud/src/customer/card/use-add-item.tsx delete mode 100644 packages/ordercloud/src/customer/card/use-cards.tsx delete mode 100644 packages/ordercloud/src/customer/card/use-remove-item.tsx delete mode 100644 packages/ordercloud/src/customer/card/use-update-item.tsx delete mode 100644 packages/ordercloud/src/customer/index.ts delete mode 100644 packages/ordercloud/src/customer/use-customer.tsx delete mode 100644 packages/ordercloud/src/fetcher.ts delete mode 100644 packages/ordercloud/src/index.tsx delete mode 100644 packages/ordercloud/src/next.config.cjs delete mode 100644 packages/ordercloud/src/product/index.ts delete mode 100644 packages/ordercloud/src/product/use-price.tsx delete mode 100644 packages/ordercloud/src/product/use-search.tsx delete mode 100644 packages/ordercloud/src/provider.ts delete mode 100644 packages/ordercloud/src/types/cart.ts delete mode 100644 packages/ordercloud/src/types/category.ts delete mode 100644 packages/ordercloud/src/types/customer/address.ts delete mode 100644 packages/ordercloud/src/types/customer/card.ts delete mode 100644 packages/ordercloud/src/types/node.d.ts delete mode 100644 packages/ordercloud/src/types/product.ts delete mode 100644 packages/ordercloud/src/utils/product.ts delete mode 100644 packages/ordercloud/src/wishlist/use-add-item.tsx delete mode 100644 packages/ordercloud/src/wishlist/use-remove-item.tsx delete mode 100644 packages/ordercloud/src/wishlist/use-wishlist.tsx delete mode 100644 packages/ordercloud/taskfile.js delete mode 100644 packages/ordercloud/tsconfig.json delete mode 100644 packages/saleor/.env.template delete mode 100644 packages/saleor/.prettierignore delete mode 100644 packages/saleor/.prettierrc delete mode 100644 packages/saleor/README.md delete mode 100644 packages/saleor/codegen.json delete mode 100644 packages/saleor/package.json delete mode 100644 packages/saleor/schema.d.ts delete mode 100644 packages/saleor/schema.graphql delete mode 100644 packages/saleor/src/api/cart.ts delete mode 100644 packages/saleor/src/api/catalog/products.ts delete mode 100644 packages/saleor/src/api/checkout.ts delete mode 100644 packages/saleor/src/api/customers/index.ts delete mode 100644 packages/saleor/src/api/customers/login.ts delete mode 100644 packages/saleor/src/api/customers/logout.ts delete mode 100644 packages/saleor/src/api/customers/signup.ts delete mode 100644 packages/saleor/src/api/endpoints/checkout/index.ts delete mode 100644 packages/saleor/src/api/endpoints/index.ts delete mode 100644 packages/saleor/src/api/index.ts delete mode 100644 packages/saleor/src/api/operations/get-all-pages.ts delete mode 100644 packages/saleor/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/saleor/src/api/operations/get-all-products.ts delete mode 100644 packages/saleor/src/api/operations/get-page.ts delete mode 100644 packages/saleor/src/api/operations/get-product.ts delete mode 100644 packages/saleor/src/api/operations/get-site-info.ts delete mode 100644 packages/saleor/src/api/operations/index.ts delete mode 100644 packages/saleor/src/api/operations/login.ts delete mode 100644 packages/saleor/src/api/utils/fetch-graphql-api.ts delete mode 100644 packages/saleor/src/api/utils/fetch.ts delete mode 100644 packages/saleor/src/api/wishlist.ts delete mode 100644 packages/saleor/src/auth/use-login.tsx delete mode 100644 packages/saleor/src/auth/use-logout.tsx delete mode 100644 packages/saleor/src/auth/use-signup.tsx delete mode 100644 packages/saleor/src/cart/index.ts delete mode 100644 packages/saleor/src/cart/use-add-item.tsx delete mode 100644 packages/saleor/src/cart/use-cart.tsx delete mode 100644 packages/saleor/src/cart/use-remove-item.tsx delete mode 100644 packages/saleor/src/cart/use-update-item.tsx delete mode 100644 packages/saleor/src/checkout/use-checkout.tsx delete mode 100644 packages/saleor/src/commerce.config.json delete mode 100644 packages/saleor/src/const.ts delete mode 100644 packages/saleor/src/customer/address/use-add-item.tsx delete mode 100644 packages/saleor/src/customer/card/use-add-item.tsx delete mode 100644 packages/saleor/src/customer/index.ts delete mode 100644 packages/saleor/src/customer/use-customer.tsx delete mode 100644 packages/saleor/src/fetcher.ts delete mode 100644 packages/saleor/src/index.tsx delete mode 100644 packages/saleor/src/next.config.cjs delete mode 100644 packages/saleor/src/product/use-price.tsx delete mode 100644 packages/saleor/src/product/use-search.tsx delete mode 100644 packages/saleor/src/provider.ts delete mode 100644 packages/saleor/src/types.ts delete mode 100644 packages/saleor/src/utils/checkout-attach.ts delete mode 100644 packages/saleor/src/utils/checkout-create.ts delete mode 100644 packages/saleor/src/utils/checkout-to-cart.ts delete mode 100644 packages/saleor/src/utils/customer-token.ts delete mode 100644 packages/saleor/src/utils/fragments/checkout-details.ts delete mode 100644 packages/saleor/src/utils/fragments/index.ts delete mode 100644 packages/saleor/src/utils/fragments/product.ts delete mode 100644 packages/saleor/src/utils/get-categories.ts delete mode 100644 packages/saleor/src/utils/get-checkout-id.ts delete mode 100644 packages/saleor/src/utils/get-search-variables.ts delete mode 100644 packages/saleor/src/utils/get-sort-variables.ts delete mode 100644 packages/saleor/src/utils/get-vendors.ts delete mode 100644 packages/saleor/src/utils/handle-fetch-response.ts delete mode 100644 packages/saleor/src/utils/handle-login.ts delete mode 100644 packages/saleor/src/utils/index.ts delete mode 100644 packages/saleor/src/utils/mutations/account-create.ts delete mode 100644 packages/saleor/src/utils/mutations/checkout-attach.ts delete mode 100644 packages/saleor/src/utils/mutations/checkout-create.ts delete mode 100644 packages/saleor/src/utils/mutations/checkout-line-add.ts delete mode 100644 packages/saleor/src/utils/mutations/checkout-line-remove.ts delete mode 100644 packages/saleor/src/utils/mutations/checkout-line-update.ts delete mode 100644 packages/saleor/src/utils/mutations/index.ts delete mode 100644 packages/saleor/src/utils/mutations/session-create.ts delete mode 100644 packages/saleor/src/utils/mutations/session-destroy.ts delete mode 100644 packages/saleor/src/utils/normalize.ts delete mode 100644 packages/saleor/src/utils/queries/checkout-one.ts delete mode 100644 packages/saleor/src/utils/queries/collection-many.ts delete mode 100644 packages/saleor/src/utils/queries/collection-one.ts delete mode 100644 packages/saleor/src/utils/queries/customer-current.ts delete mode 100644 packages/saleor/src/utils/queries/customer-one.ts delete mode 100644 packages/saleor/src/utils/queries/get-all-product-vendors-query.ts delete mode 100644 packages/saleor/src/utils/queries/get-all-products-paths-query.ts delete mode 100644 packages/saleor/src/utils/queries/index.ts delete mode 100644 packages/saleor/src/utils/queries/page-many.ts delete mode 100644 packages/saleor/src/utils/queries/page-one.ts delete mode 100644 packages/saleor/src/utils/queries/product-many.ts delete mode 100644 packages/saleor/src/utils/queries/product-one-by-slug.ts delete mode 100644 packages/saleor/src/utils/throw-user-errors.ts delete mode 100644 packages/saleor/src/wishlist/use-add-item.tsx delete mode 100644 packages/saleor/src/wishlist/use-remove-item.tsx delete mode 100644 packages/saleor/src/wishlist/use-wishlist.tsx delete mode 100644 packages/saleor/taskfile.js delete mode 100644 packages/saleor/tsconfig.json delete mode 100644 packages/sfcc/.env.template delete mode 100644 packages/sfcc/.prettierignore delete mode 100644 packages/sfcc/.prettierrc delete mode 100644 packages/sfcc/README.md delete mode 100644 packages/sfcc/package.json delete mode 100644 packages/sfcc/src/api/endpoints/catalog/products/get-products.ts delete mode 100644 packages/sfcc/src/api/endpoints/catalog/products/index.ts delete mode 100644 packages/sfcc/src/api/endpoints/index.ts delete mode 100644 packages/sfcc/src/api/index.ts delete mode 100644 packages/sfcc/src/api/operations/get-all-pages.ts delete mode 100644 packages/sfcc/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/sfcc/src/api/operations/get-all-products.ts delete mode 100644 packages/sfcc/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/sfcc/src/api/operations/get-page.ts delete mode 100644 packages/sfcc/src/api/operations/get-product.ts delete mode 100644 packages/sfcc/src/api/operations/get-site-info.ts delete mode 100644 packages/sfcc/src/api/operations/index.ts delete mode 100644 packages/sfcc/src/api/utils/fetch-local.ts delete mode 100644 packages/sfcc/src/api/utils/fetch.ts delete mode 100644 packages/sfcc/src/api/utils/get-auth-token.ts delete mode 100644 packages/sfcc/src/api/utils/normalise-product.ts delete mode 100644 packages/sfcc/src/api/utils/sfcc-sdk.ts delete mode 100644 packages/sfcc/src/auth/index.ts delete mode 100644 packages/sfcc/src/auth/use-login.tsx delete mode 100644 packages/sfcc/src/auth/use-logout.tsx delete mode 100644 packages/sfcc/src/auth/use-signup.tsx delete mode 100644 packages/sfcc/src/cart/index.ts delete mode 100644 packages/sfcc/src/cart/use-add-item.tsx delete mode 100644 packages/sfcc/src/cart/use-cart.tsx delete mode 100644 packages/sfcc/src/cart/use-remove-item.tsx delete mode 100644 packages/sfcc/src/cart/use-update-item.tsx delete mode 100644 packages/sfcc/src/checkout/use-checkout.tsx delete mode 100644 packages/sfcc/src/commerce.config.json delete mode 100644 packages/sfcc/src/customer/address/use-add-item.tsx delete mode 100644 packages/sfcc/src/customer/card/use-add-item.tsx delete mode 100644 packages/sfcc/src/customer/index.ts delete mode 100644 packages/sfcc/src/customer/use-customer.tsx delete mode 100644 packages/sfcc/src/fetcher.ts delete mode 100644 packages/sfcc/src/index.tsx delete mode 100644 packages/sfcc/src/next.config.cjs delete mode 100644 packages/sfcc/src/product/index.ts delete mode 100644 packages/sfcc/src/product/use-price.tsx delete mode 100644 packages/sfcc/src/product/use-search.tsx delete mode 100644 packages/sfcc/src/provider.ts delete mode 100644 packages/sfcc/src/wishlist/use-add-item.tsx delete mode 100644 packages/sfcc/src/wishlist/use-remove-item.tsx delete mode 100644 packages/sfcc/src/wishlist/use-wishlist.tsx delete mode 100644 packages/sfcc/taskfile.js delete mode 100644 packages/sfcc/tsconfig.json delete mode 100644 packages/shopify/.env.template delete mode 100644 packages/shopify/.prettierignore delete mode 100644 packages/shopify/.prettierrc delete mode 100644 packages/shopify/README.md delete mode 100644 packages/shopify/codegen.json delete mode 100644 packages/shopify/package.json delete mode 100644 packages/shopify/schema.d.ts delete mode 100644 packages/shopify/schema.graphql delete mode 100644 packages/shopify/src/api/endpoints/catalog/products/get-products.ts delete mode 100644 packages/shopify/src/api/endpoints/catalog/products/index.ts delete mode 100644 packages/shopify/src/api/endpoints/checkout/get-checkout.ts delete mode 100644 packages/shopify/src/api/endpoints/checkout/index.ts delete mode 100644 packages/shopify/src/api/endpoints/index.ts delete mode 100644 packages/shopify/src/api/index.ts delete mode 100644 packages/shopify/src/api/operations/get-all-pages.ts delete mode 100644 packages/shopify/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/shopify/src/api/operations/get-all-products.ts delete mode 100644 packages/shopify/src/api/operations/get-page.ts delete mode 100644 packages/shopify/src/api/operations/get-product.ts delete mode 100644 packages/shopify/src/api/operations/get-site-info.ts delete mode 100644 packages/shopify/src/api/operations/login.ts delete mode 100644 packages/shopify/src/api/utils/fetch-graphql-api.ts delete mode 100644 packages/shopify/src/api/utils/fetch.ts delete mode 100644 packages/shopify/src/auth/use-login.tsx delete mode 100644 packages/shopify/src/auth/use-logout.tsx delete mode 100644 packages/shopify/src/auth/use-signup.tsx delete mode 100644 packages/shopify/src/cart/index.ts delete mode 100644 packages/shopify/src/cart/use-add-item.tsx delete mode 100644 packages/shopify/src/cart/use-cart.tsx delete mode 100644 packages/shopify/src/cart/use-remove-item.tsx delete mode 100644 packages/shopify/src/cart/use-update-item.tsx delete mode 100644 packages/shopify/src/checkout/use-checkout.tsx delete mode 100644 packages/shopify/src/commerce.config.json delete mode 100644 packages/shopify/src/const.ts delete mode 100644 packages/shopify/src/customer/address/use-add-item.tsx delete mode 100644 packages/shopify/src/customer/card/use-add-item.tsx delete mode 100644 packages/shopify/src/customer/index.ts delete mode 100644 packages/shopify/src/customer/use-customer.tsx delete mode 100644 packages/shopify/src/fetcher.ts delete mode 100644 packages/shopify/src/index.tsx delete mode 100644 packages/shopify/src/next.config.cjs delete mode 100644 packages/shopify/src/product/use-price.tsx delete mode 100644 packages/shopify/src/product/use-search.tsx delete mode 100644 packages/shopify/src/provider.ts delete mode 100644 packages/shopify/src/utils/checkout-create.ts delete mode 100644 packages/shopify/src/utils/checkout-to-cart.ts delete mode 100644 packages/shopify/src/utils/colors.ts delete mode 100644 packages/shopify/src/utils/customer-token.ts delete mode 100644 packages/shopify/src/utils/get-brands.ts delete mode 100644 packages/shopify/src/utils/get-categories.ts delete mode 100644 packages/shopify/src/utils/get-checkout-id.ts delete mode 100644 packages/shopify/src/utils/get-search-variables.ts delete mode 100644 packages/shopify/src/utils/get-sort-variables.ts delete mode 100644 packages/shopify/src/utils/handle-account-activation.ts delete mode 100644 packages/shopify/src/utils/handle-fetch-response.ts delete mode 100644 packages/shopify/src/utils/handle-login.ts delete mode 100644 packages/shopify/src/utils/index.ts delete mode 100644 packages/shopify/src/utils/mutations/associate-customer-with-checkout.ts delete mode 100644 packages/shopify/src/utils/mutations/checkout-create.ts delete mode 100644 packages/shopify/src/utils/mutations/checkout-line-item-add.ts delete mode 100644 packages/shopify/src/utils/mutations/checkout-line-item-remove.ts delete mode 100644 packages/shopify/src/utils/mutations/checkout-line-item-update.ts delete mode 100644 packages/shopify/src/utils/mutations/customer-access-token-create.ts delete mode 100644 packages/shopify/src/utils/mutations/customer-access-token-delete.ts delete mode 100644 packages/shopify/src/utils/mutations/customer-activate-by-url.ts delete mode 100644 packages/shopify/src/utils/mutations/customer-activate.ts delete mode 100644 packages/shopify/src/utils/mutations/customer-create.ts delete mode 100644 packages/shopify/src/utils/mutations/index.ts delete mode 100644 packages/shopify/src/utils/normalize.ts delete mode 100644 packages/shopify/src/utils/queries/get-all-collections-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-all-pages-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-all-product-vendors-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-all-products-paths-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-all-products-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-checkout-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-collection-products-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-customer-id-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-customer-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-page-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-product-query.ts delete mode 100644 packages/shopify/src/utils/queries/get-site-info-query.ts delete mode 100644 packages/shopify/src/utils/queries/index.ts delete mode 100644 packages/shopify/src/utils/throw-user-errors.ts delete mode 100644 packages/shopify/src/wishlist/use-add-item.tsx delete mode 100644 packages/shopify/src/wishlist/use-remove-item.tsx delete mode 100644 packages/shopify/src/wishlist/use-wishlist.tsx delete mode 100644 packages/shopify/taskfile.js delete mode 100644 packages/shopify/tsconfig.json delete mode 100644 packages/spree/.env.template delete mode 100644 packages/spree/.prettierignore delete mode 100644 packages/spree/.prettierrc delete mode 100644 packages/spree/README-assets/screenshots.png delete mode 100644 packages/spree/README.md delete mode 100644 packages/spree/package.json delete mode 100644 packages/spree/src/api/endpoints/checkout/get-checkout.ts delete mode 100644 packages/spree/src/api/endpoints/checkout/index.ts delete mode 100644 packages/spree/src/api/endpoints/index.ts delete mode 100644 packages/spree/src/api/index.ts delete mode 100644 packages/spree/src/api/operations/get-all-pages.ts delete mode 100644 packages/spree/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/spree/src/api/operations/get-all-products.ts delete mode 100644 packages/spree/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/spree/src/api/operations/get-page.ts delete mode 100644 packages/spree/src/api/operations/get-product.ts delete mode 100644 packages/spree/src/api/operations/get-site-info.ts delete mode 100644 packages/spree/src/api/operations/index.ts delete mode 100644 packages/spree/src/api/utils/create-api-fetch.ts delete mode 100644 packages/spree/src/api/utils/fetch.ts delete mode 100644 packages/spree/src/auth/index.ts delete mode 100644 packages/spree/src/auth/use-login.tsx delete mode 100644 packages/spree/src/auth/use-logout.tsx delete mode 100644 packages/spree/src/auth/use-signup.tsx delete mode 100644 packages/spree/src/cart/index.ts delete mode 100644 packages/spree/src/cart/use-add-item.tsx delete mode 100644 packages/spree/src/cart/use-cart.tsx delete mode 100644 packages/spree/src/cart/use-remove-item.tsx delete mode 100644 packages/spree/src/cart/use-update-item.tsx delete mode 100644 packages/spree/src/checkout/use-checkout.tsx delete mode 100644 packages/spree/src/commerce.config.json delete mode 100644 packages/spree/src/customer/address/use-add-item.tsx delete mode 100644 packages/spree/src/customer/card/use-add-item.tsx delete mode 100644 packages/spree/src/customer/index.ts delete mode 100644 packages/spree/src/customer/use-customer.tsx delete mode 100644 packages/spree/src/errors/AccessTokenError.ts delete mode 100644 packages/spree/src/errors/MisconfigurationError.ts delete mode 100644 packages/spree/src/errors/MissingConfigurationValueError.ts delete mode 100644 packages/spree/src/errors/MissingLineItemVariantError.ts delete mode 100644 packages/spree/src/errors/MissingOptionValueError.ts delete mode 100644 packages/spree/src/errors/MissingPrimaryVariantError.ts delete mode 100644 packages/spree/src/errors/MissingProductError.ts delete mode 100644 packages/spree/src/errors/MissingSlugVariableError.ts delete mode 100644 packages/spree/src/errors/MissingVariantError.ts delete mode 100644 packages/spree/src/errors/RefreshTokenError.ts delete mode 100644 packages/spree/src/errors/SpreeResponseContentError.ts delete mode 100644 packages/spree/src/errors/SpreeSdkMethodFromEndpointPathError.ts delete mode 100644 packages/spree/src/errors/TokensNotRejectedError.ts delete mode 100644 packages/spree/src/errors/UserTokenResponseParseError.ts delete mode 100644 packages/spree/src/fetcher.ts delete mode 100644 packages/spree/src/index.tsx delete mode 100644 packages/spree/src/isomorphic-config.ts delete mode 100644 packages/spree/src/next.config.cjs delete mode 100644 packages/spree/src/product/index.ts delete mode 100644 packages/spree/src/product/use-price.tsx delete mode 100644 packages/spree/src/product/use-search.tsx delete mode 100644 packages/spree/src/provider.ts delete mode 100644 packages/spree/src/types/index.ts delete mode 100644 packages/spree/src/utils/convert-spree-error-to-graph-ql-error.ts delete mode 100644 packages/spree/src/utils/create-customized-fetch-fetcher.ts delete mode 100644 packages/spree/src/utils/create-empty-cart.ts delete mode 100644 packages/spree/src/utils/create-get-absolute-image-url.ts delete mode 100644 packages/spree/src/utils/expand-options.ts delete mode 100644 packages/spree/src/utils/force-isomorphic-config-values.ts delete mode 100644 packages/spree/src/utils/get-image-url.ts delete mode 100644 packages/spree/src/utils/get-media-gallery.ts delete mode 100644 packages/spree/src/utils/get-product-path.ts delete mode 100644 packages/spree/src/utils/get-spree-sdk-method-from-endpoint-path.ts delete mode 100644 packages/spree/src/utils/handle-token-errors.ts delete mode 100644 packages/spree/src/utils/is-json-content-type.ts delete mode 100644 packages/spree/src/utils/is-server.ts delete mode 100644 packages/spree/src/utils/login.ts delete mode 100644 packages/spree/src/utils/normalizations/normalize-cart.ts delete mode 100644 packages/spree/src/utils/normalizations/normalize-page.ts delete mode 100644 packages/spree/src/utils/normalizations/normalize-product.ts delete mode 100644 packages/spree/src/utils/normalizations/normalize-user.ts delete mode 100644 packages/spree/src/utils/normalizations/normalize-wishlist.ts delete mode 100644 packages/spree/src/utils/pretty-print-spree-sdk-errors.ts delete mode 100644 packages/spree/src/utils/require-config.ts delete mode 100644 packages/spree/src/utils/sort-option-types.ts delete mode 100644 packages/spree/src/utils/tokens/cart-token.ts delete mode 100644 packages/spree/src/utils/tokens/ensure-fresh-user-access-token.ts delete mode 100644 packages/spree/src/utils/tokens/ensure-itoken.ts delete mode 100644 packages/spree/src/utils/tokens/is-logged-in.ts delete mode 100644 packages/spree/src/utils/tokens/revoke-user-tokens.ts delete mode 100644 packages/spree/src/utils/tokens/user-token-response.ts delete mode 100644 packages/spree/src/utils/validations/validate-all-products-taxonomy-id.ts delete mode 100644 packages/spree/src/utils/validations/validate-cookie-expire.ts delete mode 100644 packages/spree/src/utils/validations/validate-images-option-filter.ts delete mode 100644 packages/spree/src/utils/validations/validate-images-quality.ts delete mode 100644 packages/spree/src/utils/validations/validate-images-size.ts delete mode 100644 packages/spree/src/utils/validations/validate-placeholder-image-url.ts delete mode 100644 packages/spree/src/utils/validations/validate-products-prerender-count.ts delete mode 100644 packages/spree/src/wishlist/index.ts delete mode 100644 packages/spree/src/wishlist/use-add-item.tsx delete mode 100644 packages/spree/src/wishlist/use-remove-item.tsx delete mode 100644 packages/spree/src/wishlist/use-wishlist.tsx delete mode 100644 packages/spree/taskfile.js delete mode 100644 packages/spree/tsconfig.json delete mode 100644 packages/swell/.env.template delete mode 100644 packages/swell/.prettierignore delete mode 100644 packages/swell/.prettierrc delete mode 100644 packages/swell/package.json delete mode 100644 packages/swell/schema.d.ts delete mode 100644 packages/swell/schema.graphql delete mode 100644 packages/swell/src/api/customer.ts delete mode 100644 packages/swell/src/api/endpoints/checkout/index.ts delete mode 100644 packages/swell/src/api/endpoints/index.ts delete mode 100644 packages/swell/src/api/index.ts delete mode 100644 packages/swell/src/api/operations/get-all-pages.ts delete mode 100644 packages/swell/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/swell/src/api/operations/get-all-products.ts delete mode 100644 packages/swell/src/api/operations/get-page.ts delete mode 100644 packages/swell/src/api/operations/get-product.ts delete mode 100644 packages/swell/src/api/operations/get-site-info.ts delete mode 100644 packages/swell/src/api/operations/login.ts delete mode 100644 packages/swell/src/api/utils/fetch-swell-api.ts delete mode 100644 packages/swell/src/api/wishlist/index.tsx delete mode 100644 packages/swell/src/auth/use-login.tsx delete mode 100644 packages/swell/src/auth/use-logout.tsx delete mode 100644 packages/swell/src/auth/use-signup.tsx delete mode 100644 packages/swell/src/cart/index.ts delete mode 100644 packages/swell/src/cart/use-add-item.tsx delete mode 100644 packages/swell/src/cart/use-cart.tsx delete mode 100644 packages/swell/src/cart/use-remove-item.tsx delete mode 100644 packages/swell/src/cart/use-update-item.tsx delete mode 100644 packages/swell/src/cart/utils/checkout-create.ts delete mode 100644 packages/swell/src/cart/utils/checkout-to-cart.ts delete mode 100644 packages/swell/src/cart/utils/index.ts delete mode 100644 packages/swell/src/checkout/use-checkout.tsx delete mode 100644 packages/swell/src/commerce.config.json delete mode 100644 packages/swell/src/const.ts delete mode 100644 packages/swell/src/customer/address/use-add-item.tsx delete mode 100644 packages/swell/src/customer/card/use-add-item.tsx delete mode 100644 packages/swell/src/customer/index.ts delete mode 100644 packages/swell/src/customer/use-customer.tsx delete mode 100644 packages/swell/src/fetcher.ts delete mode 100644 packages/swell/src/index.tsx delete mode 100644 packages/swell/src/next.config.cjs delete mode 100644 packages/swell/src/product/index.ts delete mode 100644 packages/swell/src/product/use-price.tsx delete mode 100644 packages/swell/src/product/use-search.tsx delete mode 100644 packages/swell/src/provider.ts delete mode 100644 packages/swell/src/swell.ts delete mode 100644 packages/swell/src/types.ts delete mode 100644 packages/swell/src/types/cart.ts delete mode 100644 packages/swell/src/types/checkout.ts delete mode 100644 packages/swell/src/types/common.ts delete mode 100644 packages/swell/src/types/customer.ts delete mode 100644 packages/swell/src/types/index.ts delete mode 100644 packages/swell/src/types/login.ts delete mode 100644 packages/swell/src/types/logout.ts delete mode 100644 packages/swell/src/types/page.ts delete mode 100644 packages/swell/src/types/product.ts delete mode 100644 packages/swell/src/types/signup.ts delete mode 100644 packages/swell/src/types/site.ts delete mode 100644 packages/swell/src/types/wishlist.ts delete mode 100644 packages/swell/src/utils/customer-token.ts delete mode 100644 packages/swell/src/utils/get-categories.ts delete mode 100644 packages/swell/src/utils/get-checkout-id.ts delete mode 100644 packages/swell/src/utils/get-search-variables.ts delete mode 100644 packages/swell/src/utils/get-sort-variables.ts delete mode 100644 packages/swell/src/utils/get-vendors.ts delete mode 100644 packages/swell/src/utils/handle-fetch-response.ts delete mode 100644 packages/swell/src/utils/handle-login.ts delete mode 100644 packages/swell/src/utils/index.ts delete mode 100644 packages/swell/src/utils/normalize.ts delete mode 100644 packages/swell/src/utils/storage.ts delete mode 100644 packages/swell/src/wishlist/use-add-item.tsx delete mode 100644 packages/swell/src/wishlist/use-remove-item.tsx delete mode 100644 packages/swell/src/wishlist/use-wishlist.tsx delete mode 100644 packages/swell/taskfile.js delete mode 100644 packages/swell/tsconfig.json delete mode 100644 packages/taskr-swc/.prettierrc delete mode 100644 packages/taskr-swc/package.json delete mode 100644 packages/taskr-swc/taskfile-swc.js delete mode 100644 packages/vendure/.env.template delete mode 100644 packages/vendure/.prettierignore delete mode 100644 packages/vendure/.prettierrc delete mode 100644 packages/vendure/README.md delete mode 100644 packages/vendure/codegen.json delete mode 100644 packages/vendure/package.json delete mode 100644 packages/vendure/schema.d.ts delete mode 100644 packages/vendure/schema.graphql delete mode 100644 packages/vendure/src/api/endpoints/checkout/index.ts delete mode 100644 packages/vendure/src/api/endpoints/index.ts delete mode 100644 packages/vendure/src/api/index.ts delete mode 100644 packages/vendure/src/api/operations/get-all-pages.ts delete mode 100644 packages/vendure/src/api/operations/get-all-product-paths.ts delete mode 100644 packages/vendure/src/api/operations/get-all-products.ts delete mode 100644 packages/vendure/src/api/operations/get-customer-wishlist.ts delete mode 100644 packages/vendure/src/api/operations/get-page.ts delete mode 100644 packages/vendure/src/api/operations/get-product.ts delete mode 100644 packages/vendure/src/api/operations/get-site-info.ts delete mode 100644 packages/vendure/src/api/operations/login.ts delete mode 100644 packages/vendure/src/api/utils/fetch-graphql-api.ts delete mode 100644 packages/vendure/src/api/utils/fetch.ts delete mode 100644 packages/vendure/src/auth/index.ts delete mode 100644 packages/vendure/src/auth/use-login.tsx delete mode 100644 packages/vendure/src/auth/use-logout.tsx delete mode 100644 packages/vendure/src/auth/use-signup.tsx delete mode 100644 packages/vendure/src/cart/index.ts delete mode 100644 packages/vendure/src/cart/use-add-item.tsx delete mode 100644 packages/vendure/src/cart/use-cart.tsx delete mode 100644 packages/vendure/src/cart/use-remove-item.tsx delete mode 100644 packages/vendure/src/cart/use-update-item.tsx delete mode 100644 packages/vendure/src/checkout/use-checkout.tsx delete mode 100644 packages/vendure/src/commerce.config.json delete mode 100644 packages/vendure/src/customer/address/use-add-item.tsx delete mode 100644 packages/vendure/src/customer/card/use-add-item.tsx delete mode 100644 packages/vendure/src/customer/index.ts delete mode 100644 packages/vendure/src/customer/use-customer.tsx delete mode 100644 packages/vendure/src/fetcher.ts delete mode 100644 packages/vendure/src/index.tsx delete mode 100644 packages/vendure/src/next.config.cjs delete mode 100644 packages/vendure/src/product/index.ts delete mode 100644 packages/vendure/src/product/use-price.tsx delete mode 100644 packages/vendure/src/product/use-search.tsx delete mode 100644 packages/vendure/src/provider.ts delete mode 100644 packages/vendure/src/utils/array-to-tree.ts delete mode 100644 packages/vendure/src/utils/fragments/cart-fragment.ts delete mode 100644 packages/vendure/src/utils/fragments/search-result-fragment.ts delete mode 100644 packages/vendure/src/utils/mutations/add-item-to-order-mutation.ts delete mode 100644 packages/vendure/src/utils/mutations/adjust-order-line-mutation.ts delete mode 100644 packages/vendure/src/utils/mutations/log-in-mutation.ts delete mode 100644 packages/vendure/src/utils/mutations/log-out-mutation.ts delete mode 100644 packages/vendure/src/utils/mutations/remove-order-line-mutation.ts delete mode 100644 packages/vendure/src/utils/mutations/sign-up-mutation.ts delete mode 100644 packages/vendure/src/utils/normalize.ts delete mode 100644 packages/vendure/src/utils/queries/active-customer-query.ts delete mode 100644 packages/vendure/src/utils/queries/get-all-product-paths-query.ts delete mode 100644 packages/vendure/src/utils/queries/get-all-products-query.ts delete mode 100644 packages/vendure/src/utils/queries/get-cart-query.ts delete mode 100644 packages/vendure/src/utils/queries/get-collections-query.ts delete mode 100644 packages/vendure/src/utils/queries/get-product-query.ts delete mode 100644 packages/vendure/src/utils/queries/search-query.ts delete mode 100644 packages/vendure/src/wishlist/use-add-item.tsx delete mode 100644 packages/vendure/src/wishlist/use-remove-item.tsx delete mode 100644 packages/vendure/src/wishlist/use-wishlist.tsx delete mode 100644 packages/vendure/taskfile.js delete mode 100644 packages/vendure/tsconfig.json create mode 100644 playwright.config.ts delete mode 100644 pnpm-workspace.yaml create mode 100644 postcss.config.js create mode 100644 prettier.config.js delete mode 100644 site/.env.template delete mode 100644 site/.eslintrc delete mode 100644 site/.gitignore delete mode 100644 site/.npmrc delete mode 100644 site/.prettierignore delete mode 100644 site/.prettierrc delete mode 100644 site/assets/base.css delete mode 100644 site/assets/chrome-bug.css delete mode 100644 site/assets/components.css delete mode 100644 site/assets/main.css delete mode 100644 site/commerce-config.js delete mode 100644 site/commerce.config.json delete mode 100644 site/components/auth/ForgotPassword.tsx delete mode 100644 site/components/auth/LoginView.tsx delete mode 100644 site/components/auth/SignUpView.tsx delete mode 100644 site/components/auth/index.ts delete mode 100644 site/components/cart/CartItem/CartItem.module.css delete mode 100644 site/components/cart/CartItem/CartItem.tsx delete mode 100644 site/components/cart/CartItem/index.ts delete mode 100644 site/components/cart/CartSidebarView/CartSidebarView.module.css delete mode 100644 site/components/cart/CartSidebarView/CartSidebarView.tsx delete mode 100644 site/components/cart/CartSidebarView/index.ts delete mode 100644 site/components/cart/index.ts delete mode 100644 site/components/checkout/CheckoutSidebarView/CheckoutSidebarView.module.css delete mode 100644 site/components/checkout/CheckoutSidebarView/CheckoutSidebarView.tsx delete mode 100644 site/components/checkout/CheckoutSidebarView/index.ts delete mode 100644 site/components/checkout/PaymentMethodView/PaymentMethodView.module.css delete mode 100644 site/components/checkout/PaymentMethodView/PaymentMethodView.tsx delete mode 100644 site/components/checkout/PaymentMethodView/index.ts delete mode 100644 site/components/checkout/PaymentWidget/PaymentWidget.module.css delete mode 100644 site/components/checkout/PaymentWidget/PaymentWidget.tsx delete mode 100644 site/components/checkout/PaymentWidget/index.ts delete mode 100644 site/components/checkout/ShippingView/ShippingView.module.css delete mode 100644 site/components/checkout/ShippingView/ShippingView.tsx delete mode 100644 site/components/checkout/ShippingView/index.ts delete mode 100644 site/components/checkout/ShippingWidget/ShippingWidget.module.css delete mode 100644 site/components/checkout/ShippingWidget/ShippingWidget.tsx delete mode 100644 site/components/checkout/ShippingWidget/index.ts delete mode 100644 site/components/checkout/context.tsx delete mode 100644 site/components/common/Avatar/Avatar.tsx delete mode 100644 site/components/common/Avatar/index.ts delete mode 100644 site/components/common/FeatureBar/FeatureBar.module.css delete mode 100644 site/components/common/FeatureBar/FeatureBar.tsx delete mode 100644 site/components/common/FeatureBar/index.ts delete mode 100644 site/components/common/Footer/Footer.module.css delete mode 100644 site/components/common/Footer/Footer.tsx delete mode 100644 site/components/common/Footer/index.ts delete mode 100644 site/components/common/Head/Head.tsx delete mode 100644 site/components/common/Head/index.ts delete mode 100644 site/components/common/HomeAllProductsGrid/HomeAllProductsGrid.module.css delete mode 100644 site/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx delete mode 100644 site/components/common/HomeAllProductsGrid/index.ts delete mode 100644 site/components/common/I18nWidget/I18nWidget.module.css delete mode 100644 site/components/common/I18nWidget/I18nWidget.tsx delete mode 100644 site/components/common/I18nWidget/index.ts delete mode 100644 site/components/common/Layout/Layout.module.css delete mode 100644 site/components/common/Layout/Layout.tsx delete mode 100644 site/components/common/Layout/index.ts delete mode 100644 site/components/common/Navbar/Navbar.module.css delete mode 100644 site/components/common/Navbar/Navbar.tsx delete mode 100644 site/components/common/Navbar/NavbarRoot.tsx delete mode 100644 site/components/common/Navbar/index.ts delete mode 100644 site/components/common/SEO/SEO.tsx delete mode 100644 site/components/common/SEO/index.ts delete mode 100644 site/components/common/Searchbar/Searchbar.module.css delete mode 100644 site/components/common/Searchbar/Searchbar.tsx delete mode 100644 site/components/common/Searchbar/index.ts delete mode 100644 site/components/common/SidebarLayout/SidebarLayout.module.css delete mode 100644 site/components/common/SidebarLayout/SidebarLayout.tsx delete mode 100644 site/components/common/SidebarLayout/index.ts delete mode 100644 site/components/common/UserNav/CustomerMenuContent/CustomerMenuContent.module.css delete mode 100644 site/components/common/UserNav/CustomerMenuContent/CustomerMenuContent.tsx delete mode 100644 site/components/common/UserNav/CustomerMenuContent/index.ts delete mode 100644 site/components/common/UserNav/MenuSidebarView/MenuSidebarView.module.css delete mode 100644 site/components/common/UserNav/MenuSidebarView/MenuSidebarView.tsx delete mode 100644 site/components/common/UserNav/MenuSidebarView/index.ts delete mode 100644 site/components/common/UserNav/UserNav.module.css delete mode 100644 site/components/common/UserNav/UserNav.tsx delete mode 100644 site/components/common/UserNav/index.ts delete mode 100644 site/components/common/index.ts delete mode 100644 site/components/icons/ArrowLeft.tsx delete mode 100644 site/components/icons/ArrowRight.tsx delete mode 100644 site/components/icons/Bag.tsx delete mode 100644 site/components/icons/Check.tsx delete mode 100644 site/components/icons/CreditCard.tsx delete mode 100644 site/components/icons/DoubleChevron.tsx delete mode 100644 site/components/icons/Github.tsx delete mode 100644 site/components/icons/Heart.tsx delete mode 100644 site/components/icons/Info.tsx delete mode 100644 site/components/icons/MapPin.tsx delete mode 100644 site/components/icons/Menu.tsx delete mode 100644 site/components/icons/Minus.tsx delete mode 100644 site/components/icons/Moon.tsx delete mode 100644 site/components/icons/Plus.tsx delete mode 100644 site/components/icons/Star.tsx delete mode 100644 site/components/icons/Sun.tsx delete mode 100644 site/components/icons/System.tsx delete mode 100644 site/components/icons/Trash.tsx delete mode 100644 site/components/icons/Vercel.tsx delete mode 100644 site/components/icons/index.ts delete mode 100644 site/components/product/ProductCard/ProductCard.module.css delete mode 100644 site/components/product/ProductCard/ProductCard.tsx delete mode 100644 site/components/product/ProductCard/index.ts delete mode 100644 site/components/product/ProductOptions/ProductOptions.tsx delete mode 100644 site/components/product/ProductOptions/index.ts delete mode 100644 site/components/product/ProductSidebar/ProductSidebar.module.css delete mode 100644 site/components/product/ProductSidebar/ProductSidebar.tsx delete mode 100644 site/components/product/ProductSidebar/index.ts delete mode 100644 site/components/product/ProductSlider/ProductSlider.module.css delete mode 100644 site/components/product/ProductSlider/ProductSlider.tsx delete mode 100644 site/components/product/ProductSlider/index.ts delete mode 100644 site/components/product/ProductSliderControl/ProductSliderControl.module.css delete mode 100644 site/components/product/ProductSliderControl/ProductSliderControl.tsx delete mode 100644 site/components/product/ProductSliderControl/index.ts delete mode 100644 site/components/product/ProductTag/ProductTag.module.css delete mode 100644 site/components/product/ProductTag/ProductTag.tsx delete mode 100644 site/components/product/ProductTag/index.ts delete mode 100644 site/components/product/ProductView/ProductView.module.css delete mode 100644 site/components/product/ProductView/ProductView.tsx delete mode 100644 site/components/product/ProductView/index.ts delete mode 100644 site/components/product/Swatch/Swatch.module.css delete mode 100644 site/components/product/Swatch/Swatch.tsx delete mode 100644 site/components/product/Swatch/index.ts delete mode 100644 site/components/product/helpers.ts delete mode 100644 site/components/product/index.ts delete mode 100644 site/components/search.tsx delete mode 100644 site/components/ui/Button/Button.module.css delete mode 100644 site/components/ui/Button/Button.tsx delete mode 100644 site/components/ui/Button/index.ts delete mode 100644 site/components/ui/Collapse/Collapse.module.css delete mode 100644 site/components/ui/Collapse/Collapse.tsx delete mode 100644 site/components/ui/Collapse/index.ts delete mode 100644 site/components/ui/Container/Container.tsx delete mode 100644 site/components/ui/Container/index.ts delete mode 100644 site/components/ui/Dropdown/Dropdown.module.css delete mode 100644 site/components/ui/Dropdown/Dropdown.tsx delete mode 100644 site/components/ui/ErrorMessage/ErrorMessage.tsx delete mode 100644 site/components/ui/ErrorMessage/index.ts delete mode 100644 site/components/ui/Grid/Grid.module.css delete mode 100644 site/components/ui/Grid/Grid.tsx delete mode 100644 site/components/ui/Grid/index.ts delete mode 100644 site/components/ui/Hero/Hero.module.css delete mode 100644 site/components/ui/Hero/Hero.tsx delete mode 100644 site/components/ui/Hero/index.ts delete mode 100644 site/components/ui/Input/Input.module.css delete mode 100644 site/components/ui/Input/Input.tsx delete mode 100644 site/components/ui/Input/index.ts delete mode 100644 site/components/ui/Link/Link.tsx delete mode 100644 site/components/ui/Link/index.ts delete mode 100644 site/components/ui/LoadingDots/LoadingDots.module.css delete mode 100644 site/components/ui/LoadingDots/LoadingDots.tsx delete mode 100644 site/components/ui/LoadingDots/index.ts delete mode 100644 site/components/ui/Logo/Logo.tsx delete mode 100644 site/components/ui/Logo/index.ts delete mode 100644 site/components/ui/Marquee/Marquee.module.css delete mode 100644 site/components/ui/Marquee/Marquee.tsx delete mode 100644 site/components/ui/Marquee/index.ts delete mode 100644 site/components/ui/Modal/Modal.module.css delete mode 100644 site/components/ui/Modal/Modal.tsx delete mode 100644 site/components/ui/Modal/index.ts delete mode 100644 site/components/ui/Quantity/Quantity.module.css delete mode 100644 site/components/ui/Quantity/Quantity.tsx delete mode 100644 site/components/ui/Quantity/index.ts delete mode 100644 site/components/ui/README.md delete mode 100644 site/components/ui/Rating/Rating.module.css delete mode 100644 site/components/ui/Rating/Rating.tsx delete mode 100644 site/components/ui/Rating/index.ts delete mode 100644 site/components/ui/Sidebar/Sidebar.module.css delete mode 100644 site/components/ui/Sidebar/Sidebar.tsx delete mode 100644 site/components/ui/Sidebar/index.ts delete mode 100644 site/components/ui/Skeleton/Skeleton.module.css delete mode 100644 site/components/ui/Skeleton/Skeleton.tsx delete mode 100644 site/components/ui/Skeleton/index.ts delete mode 100644 site/components/ui/Text/Text.module.css delete mode 100644 site/components/ui/Text/Text.tsx delete mode 100644 site/components/ui/Text/index.ts delete mode 100644 site/components/ui/ThemeSwitcher/ThemeIcon.tsx delete mode 100644 site/components/ui/ThemeSwitcher/ThemeSwitcher.tsx delete mode 100644 site/components/ui/ThemeSwitcher/index.ts delete mode 100644 site/components/ui/context.tsx delete mode 100644 site/components/ui/index.ts delete mode 100644 site/components/wishlist/WishlistButton/WishlistButton.module.css delete mode 100644 site/components/wishlist/WishlistButton/WishlistButton.tsx delete mode 100644 site/components/wishlist/WishlistButton/index.ts delete mode 100644 site/components/wishlist/WishlistCard/WishlistCard.module.css delete mode 100644 site/components/wishlist/WishlistCard/WishlistCard.tsx delete mode 100644 site/components/wishlist/WishlistCard/index.ts delete mode 100644 site/components/wishlist/index.ts delete mode 100644 site/config/seo_meta.json delete mode 100644 site/global.d.ts delete mode 100644 site/lib/api/commerce.ts delete mode 100644 site/lib/click-outside/click-outside.tsx delete mode 100644 site/lib/click-outside/has-parent.js delete mode 100644 site/lib/click-outside/index.ts delete mode 100644 site/lib/click-outside/is-in-dom.js delete mode 100644 site/lib/colors.ts delete mode 100644 site/lib/focus-trap.tsx delete mode 100644 site/lib/get-slug.ts delete mode 100644 site/lib/hooks/useAcceptCookies.ts delete mode 100644 site/lib/hooks/useToggleTheme.ts delete mode 100644 site/lib/hooks/useUserAvatar.ts delete mode 100644 site/lib/range-map.ts delete mode 100644 site/lib/search-props.tsx delete mode 100644 site/lib/search.tsx delete mode 100644 site/lib/to-pixels.ts delete mode 100644 site/lib/usage-warns.ts delete mode 100644 site/next-env.d.ts delete mode 100644 site/next.config.js delete mode 100644 site/package.json delete mode 100644 site/pages/404.tsx delete mode 100644 site/pages/[...pages].tsx delete mode 100644 site/pages/_app.tsx delete mode 100644 site/pages/_document.tsx delete mode 100644 site/pages/api/commerce/[[...commerce]].ts delete mode 100644 site/pages/cart.tsx delete mode 100644 site/pages/index.tsx delete mode 100644 site/pages/orders.tsx delete mode 100644 site/pages/product/[slug].tsx delete mode 100644 site/pages/profile.tsx delete mode 100644 site/pages/search.tsx delete mode 100644 site/pages/search/[category].tsx delete mode 100644 site/pages/search/designers/[name].tsx delete mode 100644 site/pages/search/designers/[name]/[category].tsx delete mode 100644 site/pages/wishlist.tsx delete mode 100644 site/postcss.config.js delete mode 100644 site/public/assets/drop-shirt-0.png delete mode 100644 site/public/assets/drop-shirt-1.png delete mode 100644 site/public/assets/drop-shirt-2.png delete mode 100644 site/public/assets/drop-shirt.png delete mode 100644 site/public/assets/lightweight-jacket-0.png delete mode 100644 site/public/assets/lightweight-jacket-1.png delete mode 100644 site/public/assets/lightweight-jacket-2.png delete mode 100644 site/public/assets/t-shirt-0.png delete mode 100644 site/public/assets/t-shirt-1.png delete mode 100644 site/public/assets/t-shirt-2.png delete mode 100644 site/public/assets/t-shirt-3.png delete mode 100644 site/public/assets/t-shirt-4.png delete mode 100644 site/public/bg-products.svg delete mode 100644 site/public/card.png delete mode 100644 site/public/cursor-left.png delete mode 100644 site/public/cursor-right.png delete mode 100644 site/public/flag-en-us.svg delete mode 100644 site/public/flag-es-ar.svg delete mode 100644 site/public/flag-es-co.svg delete mode 100644 site/public/flag-es.svg delete mode 100644 site/public/icon-144x144.png delete mode 100644 site/public/icon-192x192.png delete mode 100644 site/public/icon-512x512.png delete mode 100644 site/public/icon.png delete mode 100644 site/public/product-img-placeholder.svg delete mode 100644 site/public/site.webmanifest delete mode 100644 site/public/slider-arrows.png delete mode 100644 site/public/vercel.svg delete mode 100644 site/tailwind.config.js delete mode 100644 site/tsconfig.json create mode 100644 tailwind.config.js rename packages/kibocommerce/tsconfig.json => tsconfig.json (50%) delete mode 100644 turbo.json diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 11ebf4e4e4..0000000000 --- a/.editorconfig +++ /dev/null @@ -1,23 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 2 -tab_width = 4 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - -[*.js] -quote_type = single - -[{*.c,*.cc,*.h,*.hh,*.cpp,*.hpp,*.m,*.mm,*.mpp,*.js,*.java,*.go,*.rs,*.php,*.ng,*.jsx,*.ts,*.d,*.cs,*.swift}] -curly_bracket_next_line = false -spaces_around_operators = true -spaces_around_brackets = outside -# close enough to 1TB -indent_brace_style = K&R diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000..bd952c5310 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +SHOPIFY_STOREFRONT_ACCESS_TOKEN= +SHOPIFY_STORE_DOMAIN= +SHOPIFY_REVALIDATION_TOKEN= diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000000..b3e65ae8c4 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,23 @@ +module.exports = { + extends: ['next', 'prettier'], + plugins: ['unicorn'], + rules: { + 'no-unused-vars': [ + 'error', + { + args: 'after-used', + caughtErrors: 'none', + ignoreRestSiblings: true, + vars: 'all' + } + ], + 'prefer-const': 'error', + 'react-hooks/exhaustive-deps': 'error', + 'unicorn/filename-case': [ + 'error', + { + case: 'kebabCase' + } + ] + } +}; diff --git a/.github/ISSUE_TEMPLATE/1.core_bug_report.yml b/.github/ISSUE_TEMPLATE/1.core_bug_report.yml deleted file mode 100644 index 6d3848884e..0000000000 --- a/.github/ISSUE_TEMPLATE/1.core_bug_report.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Core package Bug Report -description: Create a bug report for the Next.js commerce core package -labels: 'template: core bug' -body: - - type: markdown - attributes: - value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. - - type: checkboxes - attributes: - label: Verify latest commit - description: `main` is the latest version of Next.js Commerce. - options: - - label: I verified that the issue exists on `main` - required: true - - type: textarea - attributes: - label: Provide environment information - description: Please run `npx --no-install next info` in the root directory of your project and paste the results. - validations: - required: true - - type: input - attributes: - label: What browser are you using? (if relevant) - description: 'Please specify the exact version. For example: Chrome 100.0.4878.0' - - type: input - attributes: - label: How are you deploying your application? (if relevant) - description: 'For example: next start, next export, Vercel, Other platform' - - type: textarea - attributes: - label: Describe the Bug - description: A clear and concise description of what the bug is. - validations: - required: true - - type: textarea - attributes: - label: Expected Behavior - description: A clear and concise description of what you expected to happen. - validations: - required: true - - type: textarea - attributes: - label: To Reproduce - description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below. - validations: - required: true - - type: markdown - attributes: - value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. - - type: markdown - attributes: - value: Contributors should be able to follow the steps provided in order to reproduce the bug. - - type: markdown - attributes: - value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance! diff --git a/.github/ISSUE_TEMPLATE/2.provider_bug_report.yml b/.github/ISSUE_TEMPLATE/2.provider_bug_report.yml deleted file mode 100644 index a600c3781d..0000000000 --- a/.github/ISSUE_TEMPLATE/2.provider_bug_report.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Provider package Bug Report -description: Create a bug report for the Next.js commerce core package -labels: 'template: provider bug' -body: - - type: markdown - attributes: - value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. - - type: checkboxes - attributes: - label: Verify latest commit - description: `main` is the latest version of Next.js Commerce. - options: - - label: I verified that the issue exists on `main` - required: true - - type: textarea - attributes: - label: Provide environment information - description: Please run `npx --no-install next info` in the root directory of your project and paste the results. - validations: - required: true - - type: input - attributes: - label: What Provider are you using? - description: 'Please specify the provider package name. For example: `bigcommerce`' - - type: input - attributes: - label: What browser are you using? (if relevant) - description: 'Please specify the exact version. For example: Chrome 100.0.4878.0' - - type: input - attributes: - label: How are you deploying your application? (if relevant) - description: 'For example: next start, next export, Vercel, Other platform' - - type: textarea - attributes: - label: Describe the Bug - description: A clear and concise description of what the bug is. - validations: - required: true - - type: textarea - attributes: - label: Expected Behavior - description: A clear and concise description of what you expected to happen. - validations: - required: true - - type: textarea - attributes: - label: To Reproduce - description: Steps to reproduce the behavior, please provide a clear code snippets that always reproduces the issue or a GitHub repository. Screenshots can be provided in the issue body below. - validations: - required: true - - type: markdown - attributes: - value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. - - type: markdown - attributes: - value: Contributors should be able to follow the steps provided in order to reproduce the bug. - - type: markdown - attributes: - value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance! diff --git a/.github/ISSUE_TEMPLATE/3.feature_request.yml b/.github/ISSUE_TEMPLATE/3.feature_request.yml deleted file mode 100644 index 2655aff44d..0000000000 --- a/.github/ISSUE_TEMPLATE/3.feature_request.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Feature Request -description: Create a feature request for the Next.js core -labels: 'template: story' -body: - - type: markdown - attributes: - value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible. - - type: markdown - attributes: - value: 'Feature requests will be converted to the GitHub Discussions "Ideas" section.' - - type: textarea - attributes: - label: Describe the feature you'd like to request - description: A clear and concise description of what you want and what your use case is. - validations: - required: true - - type: textarea - attributes: - label: Describe the solution you'd like - description: A clear and concise description of what you want to happen. - validations: - required: true - - type: textarea - attributes: - label: Describe alternatives you've considered - description: A clear and concise description of any alternative solutions or features you've considered. - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/4.docs_request.yml b/.github/ISSUE_TEMPLATE/4.docs_request.yml deleted file mode 100644 index 72acd89ace..0000000000 --- a/.github/ISSUE_TEMPLATE/4.docs_request.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'Docs Request for an Update or Improvement' -description: A request to update or improve Next.js Commerce documentation -title: 'Docs: ' -labels: - - 'template: documentation' -body: - - type: textarea - attributes: - label: What is the improvement or update you wish to see? - description: 'Example: I would like to see more examples of how to use hooks.' - validations: - required: true - - type: textarea - attributes: - label: Is there any context that might help us understand? - description: A clear description of any added context that might help us understand. - validations: - required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index dcefd31c5e..0000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Ask a question - url: https://github.com/vercel/commerce/discussions - about: Ask questions and discuss with other community members diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..b18fd29357 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000000..a52b961a23 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,49 @@ +name: e2e +on: + schedule: + # Runs "at 09:00 and 15:00, Monday through Friday" (see https://crontab.guru) + - cron: '0 9,15 * * 1-5' +jobs: + e2e: + runs-on: ubuntu-latest + steps: + - name: Cancel running workflows + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set node version + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - name: Set pnpm version + uses: pnpm/action-setup@v2 + with: + run_install: false + version: 7 + - name: Cache node_modules + id: node-modules-cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: node-modules-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + - name: Install dependencies + if: steps.node-modules-cache.outputs.cache-hit != 'true' + run: pnpm install + - name: Get playwright version + run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./node_modules/@playwright/test/package.json').version)")" >> $GITHUB_ENV + - name: Cache playwright + uses: actions/cache@v3 + id: playwright-cache + with: + path: '~/.cache/ms-playwright' + key: playwright-cache-${{ env.PLAYWRIGHT_VERSION }} + - name: Install playwright browsers + if: steps.playwright-cache.outputs.cache-hit != 'true' + run: npx playwright install --with-deps + - name: Install playwright browser dependencies + if: steps.playwright-cache.outputs.cache-hit == 'true' + run: npx playwright install-deps + - name: Run tests + run: pnpm test:e2e diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..f9d940bec4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: test +on: pull_request +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Cancel running workflows + uses: styfle/cancel-workflow-action@0.11.0 + with: + access_token: ${{ github.token }} + - name: Checkout repo + uses: actions/checkout@v3 + - name: Set node version + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - name: Set pnpm version + uses: pnpm/action-setup@v2 + with: + run_install: false + version: 7 + - name: Cache node_modules + id: node-modules-cache + uses: actions/cache@v3 + with: + path: '**/node_modules' + key: node-modules-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + - name: Install dependencies + if: steps.node-modules-cache.outputs.cache-hit != 'true' + run: pnpm install + - name: Run tests + run: pnpm test diff --git a/.gitignore b/.gitignore index 10295bcccf..0298027e4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,39 +1,38 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + # dependencies -node_modules -.pnp +/node_modules +/.pnp .pnp.js -.pnpm-debug.log # testing -coverage +/coverage +.playwright # next.js -.next -out +/.next/ +/out/ # production -build -dist +/build # misc .DS_Store *.pem -.idea # debug npm-debug.log* yarn-debug.log* yarn-error.log* +.pnpm-debug.log* # local env files -.env -.env.local -.env.development.local -.env.test.local -.env.production.local +.env* +!.env.example # vercel .vercel -# Turborepo -.turbo +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..b6a7d89c68 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +16 diff --git a/.prettierignore b/.prettierignore index 1c8b279ce8..71df57cbc4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,3 @@ -# Every package defines its prettier config -node_modules -dist +.vercel .next -public +pnpm-lock.yaml diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index e1076edfa8..0000000000 --- a/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "tabWidth": 2, - "useTabs": false -} diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 60907f7fdd..0000000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "recommendations": [ - "esbenp.prettier-vscode", - "csstools.postcss", - "bradlc.vscode-tailwindcss", - "ms-vscode.vscode-typescript-next" - ] -} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..448434dd01 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,28 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Next.js: debug server-side", + "type": "node-terminal", + "request": "launch", + "command": "pnpm dev" + }, + { + "name": "Next.js: debug client-side", + "type": "chrome", + "request": "launch", + "url": "http://localhost:3000" + }, + { + "name": "Next.js: debug full stack", + "type": "node-terminal", + "request": "launch", + "command": "pnpm dev", + "serverReadyAction": { + "pattern": "started server on .+, url: (https?://.+)", + "uriFormat": "%s", + "action": "debugWithChrome" + } + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 9bf4d12b52..3ffeeffd70 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,9 @@ { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true + "typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true, + "editor.codeActionsOnSave": { + "source.fixAll": true, + "source.organizeImports": true, + "source.sortMembers": true + } } diff --git a/README.md b/README.md index 2bb8b55252..8a8fa68a69 100644 --- a/README.md +++ b/README.md @@ -1,199 +1,31 @@ -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fcommerce&project-name=commerce&repo-name=commerce&demo-title=Next.js%20Commerce&demo-description=An%20all-in-one%20starter%20kit%20for%20high-performance%20e-commerce%20sites.&demo-url=https%3A%2F%2Fdemo.vercel.store&demo-image=https%3A%2F%2Fbigcommerce-demo-asset-ksvtgfvnd.vercel.app%2Fbigcommerce.png&integration-ids=oac_MuWZiE4jtmQ2ejZQaQ7ncuDT,oac_9HSKtXld74NG0srzdxSiBGty&skippable-integrations=1&root-directory=site&build-command=cd%20..%20%26%26%20yarn%20build) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fcommerce&project-name=commerce&repo-name=commerce&demo-title=Next.js%20Commerce&demo-url=https%3A%2F%2Fdemo.vercel.store&demo-image=https%3A%2F%2Fbigcommerce-demo-asset-ksvtgfvnd.vercel.app%2Fbigcommerce.png&env=SHOPIFY_STOREFRONT_ACCESS_TOKEN,SHOPIFY_STORE_DOMAIN,SHOPIFY_REVALIDATION_TOKEN) # Next.js Commerce -The all-in-one starter kit for high-performance e-commerce sites. With a few clicks, Next.js developers can clone, deploy and fully customize their own store. -Start right now at [nextjs.org/commerce](https://nextjs.org/commerce) +Next.js 13 and App Router-ready ecommerce template, built with Shopify and Tailwind CSS. -Demo live at: [demo.vercel.store](https://demo.vercel.store/) +We will be shortly updating the demo at [demo.vercel.store](https://demo.vercel.store/) with this new version. -- Shopify Demo: https://shopify.vercel.store/ -- Swell Demo: https://swell.vercel.store/ -- BigCommerce Demo: https://bigcommerce.vercel.store/ -- Vendure Demo: https://vendure.vercel.store -- Saleor Demo: https://saleor.vercel.store/ -- Ordercloud Demo: https://ordercloud.vercel.store/ -- Spree Demo: https://spree.vercel.store/ -- Kibo Commerce Demo: https://kibocommerce.vercel.store/ -- Commerce.js Demo: https://commercejs.vercel.store/ -- SalesForce Cloud Commerce Demo: https://salesforce-cloud-commerce.vercel.store/ - -## Run minimal version locally - -> To run a minimal version of Next.js Commerce you can start with the default local provider `@vercel/commerce-local` that has all features disabled (cart, auth) and uses static files for the backend - -```bash -pnpm install & pnpm build # run these commands in the root folder of the mono repo -pnpm dev # run this command in the site folder -``` - -> If you encounter any problems while installing and running for the first time, please see the Troubleshoot section +Looking for Next.js Commerce v1? [View the release notes](https://github.com/vercel/commerce/releases/tag/v1). ## Features -- Performant by default -- SEO Ready -- Internationalization -- Responsive -- UI Components -- Theming -- Standardized Data Hooks -- Integrations - Integrate seamlessly with the most common ecommerce platforms. -- Dark Mode Support - -## Integrations - -Next.js Commerce integrates out-of-the-box with BigCommerce, Shopify, Swell, Saleor, Vendure, Spree and Commerce.js. We plan to support all major ecommerce backends. - -## Considerations - -- `packages/commerce` contains all types, helpers and functions to be used as a base to build a new **provider**. -- **Providers** live under `packages`'s root folder and they will extend Next.js Commerce types and functionality (`packages/commerce`). -- We have a **Features API** to ensure feature parity between the UI and the Provider. The UI should update accordingly and no extra code should be bundled. All extra configuration for features will live under `features` in `commerce.config.json` and if needed it can also be accessed programmatically. -- Each **provider** should add its corresponding `next.config.js` and `commerce.config.json` adding specific data related to the provider. For example in the case of BigCommerce, the images CDN and additional API routes. - -## Configuration - -### How to change providers - -Open `site/.env.local` and change the value of `COMMERCE_PROVIDER` to the provider you would like to use, then set the environment variables for that provider (use `site/.env.template` as the base). - -The setup for Shopify would look like this for example: - -``` -COMMERCE_PROVIDER=@vercel/commerce-shopify -NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxx -NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=xxxxxxx.myshopify.com -``` - -### Features - -Every provider defines the features that it supports under `packages/{provider}/src/commerce.config.json` - -#### Features Available - -The following features can be enabled or disabled. This means that the UI will remove all code related to the feature. -For example: turning `cart` off will disable Cart capabilities. - -- cart -- search -- wishlist -- customerAuth -- customCheckout +- Next.js App Router +- Optimized for SEO +- Styling with Tailwind CSS +- Checkout/Cart with Shopify +- Themeing with System (Light/Dark Mode) Support -#### How to turn Features on and off - -> NOTE: The selected provider should support the feature that you are toggling. (This means that you can't turn wishlist on if the provider doesn't support this functionality out of the box) - -- Open `site/commerce.config.json` -- You'll see a config file like this: - ```json - { - "features": { - "wishlist": false, - "customCheckout": true - } - } - ``` -- Turn `wishlist` on by setting `wishlist` to `true`. -- Run the app and the wishlist functionality should be back on. - -### How to create a new provider - -Follow our docs for [Adding a new Commerce Provider](packages/commerce/new-provider.md). - -If you succeeded building a provider, submit a PR with a valid demo and we'll review it asap. - -## Contribute - -Our commitment to Open Source can be found [here](https://vercel.com/oss). - -1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. -2. Create a new branch `git checkout -b MY_BRANCH_NAME` -3. Install the dependencies: `pnpm install` -4. Build the packages: `pnpm build` -5. Duplicate `site/.env.template` and rename it to `site/.env.local` -6. Add proper store values to `site/.env.local` -7. Run `cd site` & `pnpm dev` to watch for code changes -8. Run `pnpm turbo run build` to check the build after your changes - -## Work in progress - -We're using Github Projects to keep track of issues in progress and todo's. Here is our [Board](https://github.com/vercel/commerce/projects/1) - -People actively working on this project: @okbel, @lfades, @dominiksipowicz, @gbibeaul. - -## Troubleshoot - -
-I already own a BigCommerce store. What should I do? -
-First thing you do is: set your environment variables -
-
-.env.local - -```sh -BIGCOMMERCE_STOREFRONT_API_URL=<> -BIGCOMMERCE_STOREFRONT_API_TOKEN=<> -BIGCOMMERCE_STORE_API_URL=<> -BIGCOMMERCE_STORE_API_TOKEN=<> -BIGCOMMERCE_STORE_API_CLIENT_ID=<> -BIGCOMMERCE_CHANNEL_ID=<> -``` - -If your project was started with a "Deploy with Vercel" button, you can use Vercel's CLI to retrieve these credentials. +## Running Locally 1. Install Vercel CLI: `npm i -g vercel` 2. Link local instance with Vercel and Github accounts (creates .vercel file): `vercel link` 3. Download your environment variables: `vercel env pull .env.local` -Next, you're free to customize the starter. More updates coming soon. Stay tuned.. - -
- -
-BigCommerce shows a Coming Soon page and requests a Preview Code -
-After Email confirmation, Checkout should be manually enabled through BigCommerce platform. Look for "Review & test your store" section through BigCommerce's dashboard. -
-
-BigCommerce team has been notified and they plan to add more details about this subject. -
- -
-When run locally I get `Error: Cannot find module '...@vercel/commerce/dist/config'` ```bash -commerce/site -❯ yarn dev -yarn run v1.22.17 -$ next dev -ready - started server on 0.0.0.0:3000, url: http://localhost:3000 -info - Loaded env from /commerce/site/.env.local -error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error -Error: Cannot find module '/Users/dom/work/vercel/commerce/node_modules/@vercel/commerce/dist/config.cjs' - at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15) - at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15) - at resolveExports (node:internal/modules/cjs/loader:482:14) - at Function.Module._findPath (node:internal/modules/cjs/loader:522:31) - at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27) - at Function.mod._resolveFilename (/Users/dom/work/vercel/commerce/node_modules/next/dist/build/webpack/require-hook.js:179:28) - at Function.Module._load (node:internal/modules/cjs/loader:778:27) - at Module.require (node:internal/modules/cjs/loader:1005:19) - at require (node:internal/modules/cjs/helpers:102:18) - at Object. (/Users/dom/work/vercel/commerce/site/commerce-config.js:9:14) { - code: 'MODULE_NOT_FOUND', - path: '/Users/dom/work/vercel/commerce/node_modules/@vercel/commerce/package.json' -} -error Command failed with exit code 1. -info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. +pnpm install +pnpm dev ``` -The error usually occurs when running `pnpm dev` inside of the `/site/` folder after installing a fresh repository. - -In order to fix this, run `pnpm build` in the monorepo root folder first. - -> Using `pnpm dev` from the root is recommended for developing, which will run watch mode on all packages. - -
+Your app should now be running on [localhost:3000](http://localhost:3000/). diff --git a/app/[page]/layout.tsx b/app/[page]/layout.tsx new file mode 100644 index 0000000000..3339a5b1ad --- /dev/null +++ b/app/[page]/layout.tsx @@ -0,0 +1,16 @@ +import Footer from 'components/layout/footer'; +import { Suspense } from 'react'; + +export default function Layout({ children }: { children: React.ReactNode }) { + return ( + +
+
+ {children} +
+
+ {/* @ts-expect-error Server Component */} +