4
0
forked from crowetic/commerce

97 Commits

Author SHA1 Message Date
okbel
4c0c7ebf10 changes 2021-03-19 15:39:57 -03: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
B
66b8bdb6bb
Focus trap and Modal Functionality (#145)
* Focus trap and Modal Functionality

* Changes

* Changes

* Update components/ui/Modal/Modal.tsx

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* changes

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
2021-01-09 11:03:03 -03:00
Joe Haddad
79269edbd3
Upgrade to latest Next.js canary (#148) 2021-01-06 19:21:50 -03:00
B
4028e308bf
Fix for layout shift (#147) 2021-01-06 15:15:52 -05:00
Luis Alvarez
cf359cb774 Updated imports and deps 2020-12-29 20:04:26 -05:00
Luis Alvarez
9f0cbe2a8a Moved two packages 2020-12-29 19:22:12 -05:00
Luis Alvarez
4b14131e82 Added deps for hooks 2020-12-29 19:20:51 -05:00
Luis Alvarez
3eb9fd87ec Update to latest canary 2020-12-29 15:00:44 -05:00
Belen Curcio
aed556c766 check 2020-11-26 15:11:59 -03:00
Belen Curcio
d94156129b check 2020-11-26 15:06:52 -03:00
Belen Curcio
27dc828a1f check 2020-11-26 15:03:43 -03:00
Belen Curcio
90717e312b upgraded next 2020-11-26 13:30:34 -03:00
Belen Curcio
b5fd6bd38e Removing HeadlessUI and React-Aria 2020-11-26 13:13:30 -03:00
Belen Curcio
115cf12529 Removing useDialog, cause rerender 2020-11-07 19:15:54 -03:00
Bel Curcio
2b134d0ff4 changes 2020-11-06 20:42:03 -03:00
Bel Curcio
8bc0be9818 changes 2020-11-06 20:32:44 -03:00
Bel Curcio
2b0e5a4ea3 Adding sourcemaps 2020-11-06 20:22:02 -03:00
Belen Curcio
c2a115ca57 Adding Analyzer, Adding more Purge CSS Options 2020-11-06 20:09:33 -03:00
Belen Curcio
2ad7c59c43 Avoid unnecesary rerenders 2020-11-06 17:11:49 -03:00
Belen Curcio
cc72658c99 Delay, and lazily load Marquees 2020-11-05 18:06:59 -03:00
Martin Bavio
224561b9c7 Remove unnecesary package 2020-11-05 17:21:44 -03:00
Martin Bavio
768aff1f16 Merge branch 'master' into accept-cookies 2020-11-04 14:41:13 -03:00
Belen Curcio
c092ffd6b8 Updated package.json 2020-11-04 11:53:45 -03:00
Belen Curcio
9e7abdfd2a Remove Unused deps 2020-11-04 11:42:29 -03:00
Martin Bavio
71fce97316 Add hook to include accept cookies functionality 2020-11-04 00:00:44 -03:00
Luis Alvarez
79491a5b3f Update lo latest canary 2020-10-29 19:03:18 -05:00
Luis Alvarez
fc09363bab Update to Next.js 10 2020-10-29 18:20:41 -05:00
Luis Alvarez
91bed2b6be Update to latest 2020-10-27 10:06:49 -05:00
Luis Alvarez
831b77bfe6 Merge branch 'master' of https://github.com/vercel/commerce into remove-package 2020-10-27 09:33:00 -05:00
Belen Curcio
ce91e39ee9 Bump dependencies 2020-10-27 10:21:15 -03:00
Luis Alvarez
f906d87626 Remove package files and its deps 2020-10-27 06:14:03 -05:00
luc
c7b5c3ddc9 use @bigcommerce/storefront-data-hooks 2020-10-27 02:35:40 +01:00
Belen Curcio
876cadf8b8 Trying new purge 2020-10-26 10:31:44 -03:00
Belen Curcio
222c96472b Trying new purge 2020-10-26 10:26:04 -03:00
Belen Curcio
f3d506e271 changes 2020-10-26 10:20:34 -03:00
Belen Curcio
3d149c0c5a Merge branch 'dev' of github.com:okbel/e-comm-example 2020-10-25 19:44:36 -03:00
Luis Alvarez
7d9dad9b0d Add @vercel/fetch to deps 2020-10-25 17:33:59 -05:00
Belen Curcio
8c81ee1ffd Sign Up Working 2020-10-25 19:18:18 -03:00
Belen Curcio
28cae88b5b Enhanced Image Component 2020-10-25 12:41:36 -03:00
Belen Curcio
6b4d32a7d3 Decrese size 2020-10-24 19:35:16 -03:00
Belen Curcio
a1c4c16deb Shipping new NextJS version 2020-10-24 19:18:13 -03:00
Belen Curcio
ac5a371cef scroll issue 2020-10-24 13:03:29 -03:00
Belen Curcio
1ee30a8a7d Merge branch 'master' of github.com:okbel/e-comm-example into image-component 2020-10-23 15:17:54 -03:00
Luis Alvarez
e0b1106980 Updated Image Component implementation 2020-10-22 20:59:45 -05:00
Luis Alvarez
a54f1a2cb8 Merge branch 'master' of https://github.com/okbel/e-comm-example into image-component 2020-10-22 19:00:19 -05:00
Julián Benegas
a64c805b45 Merge branch 'master' into jb/product-improvements 2020-10-22 19:17:51 -03:00
Julián Benegas
791c4c2fcc add keen slider and apply to product slider 2020-10-22 19:10:09 -03:00