1164 Commits

Author SHA1 Message Date
cond0r
bb14651785 Merge branch 'shopify' of https://github.com/vercel/commerce into shopify 2021-03-11 07:21:37 +02:00
okbel
d9d3fb3578 Merge branch 'master' of github.com:vercel/commerce into shopify 2021-03-10 16:52:25 -03:00
okbel
9a57e0281c Changes to Shopify 2021-03-10 16:49:25 -03:00
okbel
a6cbd3d581 Adding support for default options and removing the one that we do not need 2021-03-10 16:39:08 -03:00
okbel
9669c426e0 Adding support for default option 2021-03-10 16:17:47 -03:00
cond0r
236e57a275 Update index.ts 2021-03-05 08:47:05 +02:00
cond0r
222836c2a4 Merge branch 'shopify' of https://github.com/vercel/commerce into shopify 2021-03-04 13:39:47 +02:00
cond0r
9f7a67e0d4 Merge branch 'agnostic' of https://github.com/cond0r/commerce into shopify 2021-03-04 13:39:01 +02:00
B
9b71bd77fc
Agnostic UI (#199)
* changes

* Progress

* Normalized Products output

* Progress

* Restored Index Agnostic

* Progress

* Reordering

* Moved normalizer to BC function

* Removed Futures

* More Types

* More Types

* More Types

* Fix useCallback

* Progress, Changes types, readme and restoring functionality

* Changes

* TS Issues

* Changes

* Normalizer

* Normalizing more operations

* Normalizing more operations

* changes

* Merge Issues

* Cleanup

* change

* changes

* index.ts broke my tree shaking

* slug

* Normalized Options and Swatches

* Restored Add to cart

* Correct Variant Added to Cart

* Normalizing Cart Responses

* Changes

* changes breaking

* Adding immutable normalizer for Product

* Cart Normalized

* changes

* Progress

* More updates

* Removed some comments

* Add loading state for data hooks

* Bug fix

* Changed the way isEmpty works

* Improve navbar performance

* Added useResponse hook

* added useResponse to useWhishlist

* Added husky and lint-staged

* Ran prettier fix

* Added more cart types

* Moved types.d.ts to the commerce folder

* Minor changes

* Moved normalizer to happen after fetch

* updated useCart types

* Updated normalizer for useData

* Added new normalizer for the cart to the UI

* More corrections for useCart

* Updated cart update hooks

* Removed import

* Progress

* Switch away from global types

* Making multiple changes

* Improved types for operations

* Moved and updated cart types

* Updated the useAddItem and useRemoveItem hooks

* Minor life improvement

* Minor change

* Implement Shopify Provider

* Update README.md

* Update README.md

* normalizations & missing files

* Update index.ts

* fixes

* Update normalize.ts

* fix: cart error on first load

* shopify checkout redirect & api handler

* Update get-checkout-id.ts

* userAvatar

* Fix: color option

* Update normalize.ts

* changes

* Update next.config.js

* start customer auth & signup

* Update config.ts

* Login, Sign Up, Log Out, and checkout & customer association

* Automatic login after sign-up

* Update handle-login.ts

* MOving stuff around and adding temporal new files

* changes

* Replace use-cart with the new hook

* Removed old hook

* Improved HookHandler type

* Moved types

* Simplified useData types

* Updated Fetcher type

* Moved SwrOptions type

* Removed duplicated fetcher

* Moved provider to its own file

* Added proper type for fetch input

* Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic"

This reverts commit 23c8ed7c2d48d30e74ad94216f9910650fadf30c, reversing
changes made to bf50965a39ef0b1b956461ebe62070809fbe1d63.

* change readme

* Revert "Merge branch 'master' of https://github.com/vercel/commerce into agnostic"

This reverts commit bf50965a39ef0b1b956461ebe62070809fbe1d63, reversing
changes made to 0dad4ddedbf0bff2d0b5800ca469fda0073889ea.

* Revert "Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic""

This reverts commit c9a43f1bce0572d0eff41f3af893be8bdb00bedd.

* align with upstream changes

* Updated how the hook input is handled

* Add more options to the hook handler

* Final touches to the hook handler type

* Moved useWishlist to use new handler

* Move useCustomer to the new hook

* Added a default fetcher

* query all products for vendors & paths, improve search

* Update use-search.tsx

* fix cart after upstream changes

* Shopify Provider (#186)

* Start of Shopify provider

* add missing comment to documentation

* add missing env vars to documentation

* update reference to types file

* Moved useSearch to the new hook

* Removed old use-data lib

* Removed generics for result and body

* Removed normalizr

* Wishlist

* New changes and initial Features API

* Fixed some types

* Fixed more types

* fixes after upstream changes

* Fixed product types

* Fixed another product type

* Updated type

* Fixed remaining issues with types

* Added a MutationHandler

* Moved the handlers to each hook

* Moved the fetcher to its own file

* Moved handler to each hook

* Added initial version of useAddItem

* Added better mutation types, and moved some hooks

* Removed use-cart-actions

* Added initial version of useAddItem

* Updated types

* Update use-add-item.tsx

* changes

* Changes

* Reordering and changes

* Adding Features APO

* Adding wishlist api

* Implementing FeaturesAPI with Wishlist

* Removing bug with touchstart

* Adding tyni typing

* moved use-remove-item

* Removed MutationHandler type

* Moved more hooks and updated types to make them smaller

* Moved data hooks to new format

* Removed no longer required types

* Removed useResponse helper

* Updated useData type

* Moved wishlist use-add-item

* Moved wishlist use-remove-item to provider

* Moved use-login and use-logout

* Update use-signup

* Removed use-action helper

* Moved auth & cart hooks + several fixes

* Updated cart item, fixed deprecations

* Update next.config.js

* Updates to wishlist feature

* Moved the features to be environment variable only

* More changes for wishlist config

* Disable wishlist

* Removed useWishlistActions

* Updated readme

* updates

* typos

* Updated the way the provider config is set

* Removed features.ts

* Removed bootstrap.js

* Aligned with upstream changes

* Updates

* shopify: changes

* shopify: changes

* Update next.config.js

* Shopify Provider Updates (#209)

* Implement Shopify Provider

* Update README.md

* Update README.md

* normalizations & missing files

* Update index.ts

* fixes

* Update normalize.ts

* fix: cart error on first load

* shopify checkout redirect & api handler

* Update get-checkout-id.ts

* Fix: color option

* Update normalize.ts

* changes

* Update next.config.js

* start customer auth & signup

* Update config.ts

* Login, Sign Up, Log Out, and checkout & customer association

* Automatic login after sign-up

* Update handle-login.ts

* changes

* Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic"

This reverts commit 23c8ed7c2d48d30e74ad94216f9910650fadf30c, reversing
changes made to bf50965a39ef0b1b956461ebe62070809fbe1d63.

* change readme

* Revert "Merge branch 'master' of https://github.com/vercel/commerce into agnostic"

This reverts commit bf50965a39ef0b1b956461ebe62070809fbe1d63, reversing
changes made to 0dad4ddedbf0bff2d0b5800ca469fda0073889ea.

* Revert "Revert "Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic""

This reverts commit c9a43f1bce0572d0eff41f3af893be8bdb00bedd.

* align with upstream changes

* query all products for vendors & paths, improve search

* Update use-search.tsx

* fix cart after upstream changes

* fixes after upstream changes

* Moved handler to each hook

* Added initial version of useAddItem

* Updated types

* Update use-add-item.tsx

* Moved auth & cart hooks + several fixes

* Updated cart item, fixed deprecations

* Update next.config.js

* Aligned with upstream changes

* Updates

* Update next.config.js

* Updated the commerce config structure

* Removed @framework imports within framework providers

* Fixed types

* changes

* Adding extra config

* Adding shopify commit

* Adding env templates to the providers

* Ignore some types

* Adding link for Cart

* Adding customCheckout

* multiple changes to fix the wishlist

* Shopify Provier Updates (#212)

* changes

* Adding shopify commit

* Changed to query page by id

* Fixed page query, Changed use-search GraphQl query

* Update use-search.tsx

* remove unused util

* Changed cookie expiration

* Update tsconfig.json

Co-authored-by: okbel <curciobel@gmail.com>

* Bump and adding dependency

* Adding color checks

* Now colors work with lighter colors

* Stable commerce.config.json

* Updated main readme

* Readme changes

* Default to bigcommerce

Co-authored-by: bc <bc@bcs-MacBook-Pro.fibertel.com.ar>
Co-authored-by: Luis Alvarez <luis@vercel.com>
Co-authored-by: cond0r <pinte_catalin@yahoo.com>
Co-authored-by: Peter Mekhaeil <4616064+petermekhaeil@users.noreply.github.com>
2021-03-04 07:57:25 -03:00
cond0r
7c3dc90326 Default to BigCommerce 2021-03-04 10:52:46 +02:00
cond0r
5ed0286a2c Update checkout-to-cart.ts 2021-03-04 10:41:18 +02:00
cond0r
9ccb32ce21 Changes, fix Shopify GraphQL deprecations 2021-03-04 10:37:51 +02:00
cond0r
639863bb35 Update helpers.ts 2021-03-03 20:36:36 +02:00
cond0r
59dedf58cc Update helpers.ts 2021-03-03 20:06:21 +02:00
cond0r
f84922d937 Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic 2021-03-03 18:37:56 +02:00
cond0r
e2368efa95 Fix add to cart & prepare for user activation 2021-03-03 17:48:11 +02:00
okbel
23af68e0e4 Adding OG Card 2021-03-03 12:14:15 -03:00
okbel
66d1470c2c Adding Shopify Config 2021-03-03 12:09:02 -03:00
okbel
09500d4edc og config 2021-03-03 12:05:12 -03:00
Bel Curcio
3682e64cfd Default to bigcommerce 2021-03-03 08:32:58 -03:00
Bel Curcio
8337fa1815 Readme changes 2021-03-03 08:24:44 -03:00
Bel Curcio
8987d9431d Merge branch 'bigcommerce' of github.com:vercel/commerce into agnostic 2021-03-03 08:09:22 -03:00
Bel Curcio
01439295e6 Merge branch 'agnostic' of github.com:vercel/commerce into agnostic 2021-03-03 07:07:14 -03:00
cond0r
f92cfc9605 Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic 2021-03-03 08:59:49 +02:00
Luis Alvarez
394efd9e81 Updated main readme 2021-03-02 18:13:30 -05:00
cond0r
33ec99c701 Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic 2021-03-02 16:56:40 +02:00
Bel Curcio
02e15ae481 Stable commerce.config.json 2021-03-02 11:24:00 -03:00
Bel Curcio
c87d02a7cd Now colors work with lighter colors 2021-03-02 11:20:24 -03:00
Bel Curcio
4a64c02c8d Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-03-01 19:03:26 -03:00
Bel Curcio
6e8dbf1156 Adding color checks 2021-03-01 19:02:56 -03:00
Bel Curcio
81036f141e Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-03-01 16:02:53 -03:00
Bel Curcio
7780ec4818 Bump and adding dependency 2021-03-01 15:59:45 -03:00
Bel Curcio
eb4a13f173 Merge branch 'agnostic' of github.com:vercel/commerce into bigcommerce 2021-03-01 15:49:19 -03:00
Bel Curcio
1231cebac4 Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-03-01 15:46:12 -03:00
cond0r
641ce0aa64
Shopify Provier Updates (#212)
* changes

* Adding shopify commit

* Changed to query page by id

* Fixed page query, Changed use-search GraphQl query

* Update use-search.tsx

* remove unused util

* Changed cookie expiration

* Update tsconfig.json

Co-authored-by: okbel <curciobel@gmail.com>
2021-03-01 11:47:30 -03:00
Bel Curcio
6d5f29d27c Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-03-01 11:41:09 -03:00
cond0r
57f95d8e45
Merge branch 'agnostic' into shopify 2021-02-27 13:40:14 +02:00
Luis Alvarez
751011767a multiple changes to fix the wishlist 2021-02-26 21:35:09 -05:00
okbel
3acca7cc17 Adding customCheckout 2021-02-26 15:52:09 -03:00
okbel
42be44c7ee Adding link for Cart 2021-02-26 14:25:02 -03:00
cond0r
596f580f81 Update tsconfig.json 2021-02-26 18:53:56 +02:00
cond0r
bfd4a78538 Changed cookie expiration 2021-02-26 18:41:35 +02:00
cond0r
5fb894dc21 remove unused util 2021-02-26 12:08:41 +02:00
cond0r
65d1d45ee0 Update use-search.tsx 2021-02-26 11:01:43 +02:00
cond0r
3236de1b4c Fixed page query, Changed use-search GraphQl query 2021-02-26 10:57:05 +02:00
cond0r
590bff576c Changed to query page by id 2021-02-26 09:12:44 +02:00
okbel
1c7ac7d795 Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-02-25 20:12:31 -03:00
Luis Alvarez
bac6dd5a2c Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic 2021-02-25 18:11:12 -05:00
Luis Alvarez
fc023de844 Ignore some types 2021-02-25 18:10:59 -05:00
okbel
27abb8fd8b Merge branch 'agnostic' of github.com:vercel/commerce into bigcommerce 2021-02-25 19:41:49 -03:00