952 Commits

Author SHA1 Message Date
Luis Alvarez
066a53d52d Renamed operations to handlers in usage 2021-05-20 21:05:56 -05:00
Luis Alvarez
35c5b1b4a3 Changed import 2021-05-20 21:04:43 -05:00
Luis Alvarez
012f4b052f Renamed endpoint operations to handlers 2021-05-20 17:55:50 -05:00
Luis Alvarez
6bcf9f9e75 Added getAllPages operation 2021-05-20 17:26:14 -05:00
Luis Alvarez
4412d8e66c Updated login operation 2021-05-20 17:18:17 -05:00
Luis Alvarez
1086fce6bd Updated login operation 2021-05-20 14:37:34 -05:00
Luis Alvarez
ff2b12bcf1 Removed old customer endpoint builders 2021-05-20 14:04:28 -05:00
Luis Alvarez
bd065a7bfb Moved endpoints to nested folder 2021-05-20 14:03:52 -05:00
Luis Alvarez
0e546a1f37 Removed customers old endpoints 2021-05-20 13:49:07 -05:00
Luis Alvarez
7d7e4342be Added signup endpoint 2021-05-20 13:44:31 -05:00
Luis Alvarez
f6ec88a817 Add missing logout files 2021-05-20 13:36:20 -05:00
Luis Alvarez
1d2451550b Added logout endpoint 2021-05-19 14:44:10 -05:00
Luis Alvarez
1ba6049991 Login endpoint 2021-05-18 16:01:34 -05:00
Luis Alvarez
eb2fd80ead Added customer endpoint 2021-05-18 08:39:36 -05:00
Luis Alvarez
591cd6d4e6 Changed the way ops are created 2021-05-14 14:52:14 -05:00
Luis Alvarez
f0413fa0a4 Moved types 2021-05-14 13:37:15 -05:00
Luis Alvarez
722f4cee23 Moved method 2021-05-04 14:42:25 -05:00
Luis Alvarez
beccca8eaf Making progress on api operations 2021-05-03 12:44:28 -05:00
Luis Alvarez
2281490342 Removed endpoints folder 2021-04-02 12:05:01 -06:00
Luis Alvarez
601ec01b96 Improve quantity input behavior in cart item 2021-04-01 18:55:15 -06:00
Luis Alvarez
bef569619f bug fixes 2021-04-01 18:37:12 -06:00
Luis Alvarez
519008bad0 Removed cart handlers 2021-03-31 23:00:36 -06:00
Luis Alvarez
779c6bed2d Updated cart endpoint 2021-03-31 22:57:36 -06:00
Luis Alvarez
c9f13989ec Remove normalizers from the hooks 2021-03-31 22:53:30 -06:00
Luis Alvarez
6d06d8b705 Updated cart hooks 2021-03-31 22:12:45 -06:00
Luis Alvarez
731486e07b Simplified cart types for the provider 2021-03-31 16:04:46 -06:00
Luis Alvarez
543054225f Updated mutation types 2021-03-31 15:48:11 -06:00
Luis Alvarez
06dee5fcab Merge branch 'master' of https://github.com/vercel/commerce into nodejs-provider 2021-03-31 15:19:53 -06:00
Luis Alvarez D
f770ad7a91
Update master to work with multiple Vercel projects (#237)
* Moved configs

* Delete with-config.js

* Added log for configs

* Update TS config based on the selected provider

* set tsconfig to bigcommerce

* Updated readme instructions on provider config

* Added new commerce variable

* Change the default of updateTSConfig

Co-authored-by: B <curciobelen@gmail.com>
2021-03-29 17:03:45 -06:00
Luis Alvarez
8ad6a34175 Updated types for hooks now using the API 2021-03-29 11:25:21 -06:00
Luis Alvarez
d3fe16e1d7 Updated commerce types 2021-03-26 15:50:31 -06:00
Luis Alvarez
b2fbaab5d5 Adding types, fixes and other updates 2021-03-26 12:50:25 -06:00
Luis Alvarez
e6df8dfb40 Removed many testing types 2021-03-20 17:09:30 -06:00
Luis Alvarez
fed3c82c69 Adding more experimental types 2021-03-20 16:52:32 -06:00
Luis Alvarez
149df82f45 Taking multiple steps into better API types 2021-03-19 18:53:28 -06:00
Joe Refoy
b5ba5e76be
Fix yarn package installation command (#240)
* Fix yarn package installation command

* Update README.md

Co-authored-by: B <curciobelen@gmail.com>
Co-authored-by: B <belen@vercel.com>
2021-03-19 13:07:35 -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
Luis Alvarez
df07a55740 Adding more migration changes 2021-03-18 20:16:35 -06:00
Luis Alvarez
90fb763602 Merge branch 'master' of https://github.com/vercel/commerce into nodejs-provider 2021-03-18 14:54:26 -06:00
Luis Alvarez
21c0b7ee42 Updated CommerceAPI class for better usage 2021-03-17 02:23:38 -06:00
Luis Alvarez
4afb5f569e Fixes 2021-03-16 11:25:44 -06: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
61f1292161 Updated the default cart endpoint 2021-03-15 12:41:30 -06:00
Luis Alvarez
647e8aaf4c Adding multiple initial files 2021-03-12 17:25:01 -06:00
Luis Alvarez
18d8d9acc8 Update to latest Next.js canary 2021-03-10 23:07:53 -06: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
B
b121078151
Updates (#192)
* userAvatar

* Avatar background

* Changes

* Removing unused dependencies

* Count Bag small and for bigger numbers

* decresed bundle size
2021-02-04 15:03:44 -05:00
Jamie Isaksen
7c70f645cc
Improve import statements (#191)
Co-authored-by: B <curciobelen@gmail.com>
2021-02-01 20:32:57 -03:00
Marcelo Fortunato
8b70794036
chore: Remove import never used (#189) 2021-02-01 20:32:28 -03:00
B
b7fbdc4e90
Update README.md 2021-01-29 12:01:56 -03:00