1151 Commits

Author SHA1 Message Date
B
d7ce1efe5f
Delete commerce.config.json 2021-03-19 13:03:45 -03:00
B
342f90ccfe
Merge branch 'master' into shopify 2021-03-19 13:03:21 -03:00
Vinicius Zucatti
a85772a73e
Click image in cart should go to product (#227)
Co-authored-by: B <curciobelen@gmail.com>
2021-03-19 13:02:59 -03:00
B
e120b9d364
Merge branch 'master' into shopify 2021-03-16 14:23:59 -03:00
cond0r
f3b9d94b2f
Shopify provider fixes (#225)
* 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

* Fix add to cart & prepare for user activation

* Update helpers.ts

* Update helpers.ts

* Changes, fix Shopify GraphQL deprecations

* Update checkout-to-cart.ts

* Default to BigCommerce

* Update index.ts

* Fixed types
2021-03-16 10:55:24 -03:00
Sam Ko
8dee3bdf94
Update .env.template (#232)
* Update .env.template

* Update .env.template (framework/shopify/)
2021-03-15 15:00:52 -07:00
Luis Alvarez
18d8d9acc8 Update to latest Next.js canary 2021-03-10 23:07:53 -06: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
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
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
Luis Alvarez
394efd9e81 Updated main readme 2021-03-02 18:13:30 -05: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
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
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
okbel
9aa5b0a7bd Adding env templates to the providers 2021-02-25 19:40:52 -03:00
okbel
75aec1441f Adding env templates to the providers 2021-02-25 19:34:54 -03:00
okbel
48b44c0851 Adding shopify commit 2021-02-25 19:30:31 -03:00
okbel
9458dc87b7 Adding extra config 2021-02-25 19:27:59 -03:00
okbel
6fd4506499 Merge branch 'agnostic' of github.com:vercel/commerce into shopify 2021-02-25 19:26:39 -03:00
okbel
b0cac33add changes 2021-02-25 19:24:55 -03:00
Luis Alvarez
e90d9a2121 Fixed types 2021-02-25 17:18:50 -05:00
Luis Alvarez
46ae76c67f Removed @framework imports within framework providers 2021-02-25 16:54:18 -05:00
Luis Alvarez
121ec4b61f Updated the commerce config structure 2021-02-25 16:39:01 -05:00
Luis Alvarez
f5980d2d46 Merge branch 'agnostic' of https://github.com/vercel/commerce into agnostic 2021-02-25 16:25:06 -05:00
cond0r
7334924694
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
2021-02-25 18:05:47 -03:00
cond0r
965eb0d392
Merge branch 'agnostic' into agnostic 2021-02-25 16:18:10 +02:00
cond0r
f431ba6dbc Update next.config.js 2021-02-25 16:04:16 +02:00