135 Commits

Author SHA1 Message Date
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
3a7d5e2489
Latest Release (#187)
* Remove duplicated css rules. (#185)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicated css rules.
Fix invalid JSX props.

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Fix the body scroll when the sidebar is open (#184)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Fix the body scroll when the sidebar is open

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicate class in the I18nWidget comp (#183)

* Fix typo in the Marquee component (#176)

Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* Remove duplicate class name in the I18nWidget comp

This PR removes a duplicate class name in the I18nWidget component.

Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>

* add horizontal margin to pages when mobile screen (#180)

* Add cart item options like color and size (#177)

Co-authored-by: hlopes <hugo.lopes@present-technologies.com>

* Changes

Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
Co-authored-by: Jamie Isaksen <jamie@jamie.no>
Co-authored-by: Vinicius Zucatti <51221635+vczb@users.noreply.github.com>
2021-01-29 12:00:16 -03:00
B
8d489bf665
Fix useCallback (#152) 2021-01-09 12:43:43 -03: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
B
4028e308bf
Fix for layout shift (#147) 2021-01-06 15:15:52 -05:00
B
bd1dc55f05
Merge branch 'master' into develop 2020-12-21 14:12:59 -03:00
Renan Felipe
51e2b780ae Fix text component 2020-12-20 16:57:31 -03:00
Bel Curcio
60368e8858 Changes 2020-12-08 10:43:44 -03:00
Belen Curcio
d94156129b check 2020-11-26 15:06:52 -03:00
Belen Curcio
fd3cdba4fb Removing HTML Contnt 2020-11-26 13:36:59 -03:00
Belen Curcio
b5fd6bd38e Removing HeadlessUI and React-Aria 2020-11-26 13:13:30 -03:00
Belen Curcio
f8a75b8e25 Removing useDialog, cause rerender 2020-11-07 19:16:10 -03:00
Belen Curcio
115cf12529 Removing useDialog, cause rerender 2020-11-07 19:15:54 -03:00
Belen Curcio
2c40f61dc9 Latest Perf, Changes 2020-11-06 16:30:08 -03:00
Belen Curcio
c419c3f361 Img Sizes 2020-11-05 18:59:22 -03:00
Belen Curcio
5bbcef00a7 Delay, and lazily load Marquees 2020-11-05 18:07:50 -03:00
Belen Curcio
cc72658c99 Delay, and lazily load Marquees 2020-11-05 18:06:59 -03:00
Alexandre Lotte
a97ca5c409
Fix typo in components/ui/README.md 2020-10-29 23:27:01 -04:00
Martin Bavio
2ae113ed66 Adds some extra logic for handling sidebar 2020-10-27 00:52:49 -03:00
Belen Curcio
2da59ba533 Context Performance 2020-10-26 20:13:05 -03:00
Belen Curcio
a1a88df8d2 Merge branch 'master' of github.com:okbel/e-comm-example 2020-10-26 17:49:49 -03:00
Belen Curcio
64f928f55c Vars 2020-10-26 17:49:31 -03:00
Franco Arza
bf032356dc Merge branch 'master' into arzafran/ui-tweaks 2020-10-26 11:27:54 -03:00
Belen Curcio
24c1c6c70b Stable refactor 2020-10-26 11:09:12 -03:00
Belen Curcio
351725d322 Old Config 2020-10-26 10:49:21 -03:00
Belen Curcio
f3d506e271 changes 2020-10-26 10:20:34 -03:00
Belen Curcio
2f1eefc5cc Types 2020-10-26 10:10:34 -03:00
Franco Arza
dc6919e1da Merge branch 'master' into arzafran/ui-tweaks 2020-10-26 09:49:40 -03:00
Belen Curcio
27284cd753 More changes 2020-10-26 09:43:34 -03:00
Belen Curcio
eec2df18b3 Modifications 2020-10-26 09:27:21 -03:00
Belen Curcio
4314c5270b Toast Component Wip 2020-10-26 00:12:51 -03:00
Belen Curcio
a59d07291a Toast Component Wip 2020-10-26 00:12:21 -03:00
Belen Curcio
1a3a683d6e Adding info for Login In 2020-10-25 23:43:15 -03:00
Luis Alvarez
50c50b6d53 Removed code related to unused image sizes API 2020-10-25 19:50:33 -05:00
Luis Alvarez
0657b882cd Fix other types 2020-10-25 19:03:47 -05:00
Belen Curcio
8c81ee1ffd Sign Up Working 2020-10-25 19:18:18 -03:00
Belen Curcio
d47fa2d29f Support for multiple modal views 2020-10-25 18:26:32 -03:00
Belen Curcio
eb94d2dbf9 Modal Stable / Login View 2020-10-25 18:13:25 -03:00
Belen Curcio
42eb79d81f Correct UI State 2020-10-25 16:32:56 -03:00
Belen Curcio
6565303cb5 a11y pass 2020-10-25 12:23:07 -03:00
Belen Curcio
1ba0967500 Stiling 2020-10-24 19:00:57 -03:00
Belen Curcio
4990dd0cf5 Polish and Cart view 2020-10-24 17:55:30 -03:00
Belen Curcio
6f19fee350 Forgot Password 2020-10-24 17:10:54 -03:00
Belen Curcio
5e8cb6e6df New Text Component, new pages 2020-10-24 16:53:25 -03:00
Franco Arza
a12c087347 fix conflicts 2020-10-24 14:33:20 -03:00
Belen Curcio
ac5a371cef scroll issue 2020-10-24 13:03:29 -03:00
Julián Benegas
c5be2574d7 fix purge 2020-10-24 02:45:39 -03:00
Julián Benegas
af12409f95 fix darkmode 2020-10-23 22:14:46 -03:00
Julián Benegas
60ceee9080 improve spacings 2020-10-23 19:59:55 -03:00