Skip to content

Commit

Permalink
chore: merge develop into main for 2.5.0 release (#6517)
Browse files Browse the repository at this point in the history
* fix(os-178): fixed failing tests (#6359)

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(os-176): fixed adding items to cart from list view in category (#6362)

* fix(os-176): fixed adding items to cart from list view in category

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(ct): productType field omitted for custom queries (#6367)

* fix(ct): productType field ommited for custom queries

* fix(ct): CR - move changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* perf: use @nuxtjs/google-fonts (#6373)

* perf: use @nuxtjs/google-fonts

* perf: add changelog

* perf: add extractCSS (#6377)

* perf: add extractCSS

* perf: update changelog

* fix(OS-169): allow to customise currency & country cookie names - main align (#6380)

* fix(OS-169): allow to customize currency & country cookie names

* fix(OS-169): add cookies obj to mapI18nSettings

* fix(OS-169): add changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* fix: wrong version UI and problems with negative number using by css calc method (#6376)

* test(e2e): adjust e2e tests to new sfui version (#6388) (#6393)

* test(e2e): adjust e2e tests to new sfui version

* test(e2e): adjust e2e tests to new sfui version

* fix(commercetools): reselect shipping delivery (#6276)

* fix(commercetools): reselect shipping delivery

* fix(commercetools): removed mock delivery content

* feat(commercetools): added changelog

* fix(commercetools): updated after CR

* fix(commercetools): added missing translations

* fix(ct): add a copy of the whole product obj in enhanceProduct (#6407)

* fix(ct): add a copy of pthe whole product object to the enhanceProduct helper

* fix(ct): update snapshot

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* chore(commercetools): fix password reset and improve server api (#6411)

* Given fewer permissions to Server API

* Fix password reset permissions and allow custom operations in Server API

* Update

* Add migration guide

* refactor(commercetools)!: refactor token handling in commercetools (#6329)

* chore(docs): sync docs with the `develop` branch (#6415)

* fix(os-179): added badge for cart on mobiles (#6418)

* chore(docs): update Shopify link (#6424)

* Add `SECURITY.md` (#6433)

* fix: misleading message for no search results (#6436)

* fix: misleading message for no search results

* chore: add changelog

* fix: remove LoyaltyCard and MyReviews (#6440)

* chore: updated README with new VSF brand (#6448)

* fix(os-184): fixed login modal screens behavior (#6398)

* fix(6364): removed more action button that does nothing (#6382)

* chore: add `useStore` to boilerplate (#6453)

* chore: fix the name of the i18n extension in commercetools integration (#6455)

* feat: update Composition API to 1.2.4 (#6452)

* chore(commercetools): use API client from new commercetools project (#6458)

* chore(commercetools): update GraphQL types (#6410)

* chore(commercetools): update `authHost` in `middleware.config.js` (#6462)

* refactor: homepage refactor (#6432)

* ref: homepage refactor

* chore: changelog

* fix: clicking Add To Wishlist icon closes search modal (#6457)

* fix: clicking Add To Wishlist icon closes search modal

* fix: missing adding/removing a product to/from the wishlist in SearchRes

* fix: class name instead tag name

* fix(en-440): ssr returns cookies (#6442)

* fix(en-440): remove cookies from ssr response

* test(e2e): add e2e tests for order history (#6470)

* test(e2e): add e2e tests for order history

* fix(#6486): add missing navigator definition (#6488)

* fix(#6486): add missing navigator definition

* fix(ct): redirect to localized My Account page (#6485)

* fix(os-202): fixed share data for faceting composable (#6494)

* fix(os-202): fixed share data for faceting composable

* feat(os-181): add server access token (#6467)

* feat(os-6365): add server and guest token

* feat(os-6365): add server and guest token - fix cookie issue

* move token function to hook method

* feat(os-6365): revert changes related to removing onSSR compontent

* feat(os-6365):add accesToken result type

* feat(os-6365): add new unit test and modify exitsintg

* fix(os-181):cr and server access token fixes

* fix(os-181):token fixes for login and change password

* feat(os-181):add refresh token function

* fix(os-181): fix issues after cr and refactor code

* fix(os-181): refactor code for token provider

* fix(en-482): fixed duplicated search requests (#6496)

* fix(#6202): misplaced close button (#6499)

* fix(os-149): fixed close button placement

* fix: missing close method

* cr fixes

* fix(#6490): add language map to the middleware config (#6503)

* Add `languageMap` to middleware config

* Add changelog

* Update changelog

* chore: sync `release/next` with `develop` and update Rollup (#6504)

* Update the docs after 2.4 release (#6217)

* Remove CLI preview image, because it's outdated (#6223)

* [Docs] Update Integrations page and optimize SVG logos (#6220)

* [Docs] Add "Added in 1.3" badges to useForgotPassword and useStore in commercetools

* [Docs] Add Odoo to Integrations page (#6224)

* Export missing methods for api-extractor

* Add api-extractor-data file

* Update Vendure maintainers (#6230)

* Fix typings generation, update API references and CT Composables pages (#6235)

* Fix docs build (#6238)

* Docs grammar and typos check (#6064)

* Update Integrations page (#6244)

* [Docs] Reorganize docs into smaller categories (#6243)

* [Docs] Disable prefetching (#6255)

* Fix `labeler` for docs (#6256)

* feat: update Vendure integration status to beta

* Update maintainers of SFCC integration (#6259)

* Optimize homepage diagram (#6260)

* Use Node v12.22.4 for deployment

* Update Dockerfile

* Update

* Update

* Revert

* Update

* [Docs] Add "Extending Vue Storefront" and "Extending integrations" pages (#6252)

* [Docs] Update the link to Vendure docs (#6298)

* [Docs] Prevent enlarging images on the Integrations page (#6299)

* docs: afterpay via adyen (#6326)

* docs: afterpay in adyen

* Apply suggestions from code review

Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>

Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>

* Deploy for 2.4.2 release (#6332)

* fix: address house number field mapping

* Sync `release-2.4` with `release/next` (#6237)

* Sync `release-2.4` with `release/next` (#6263)

* Sync `release-2.4` with `release/next` (#6269)

* Update the docs after 2.4 release (#6217)

* Remove CLI preview image, because it's outdated (#6223)

* [Docs] Update Integrations page and optimize SVG logos (#6220)

* [Docs] Add "Added in 1.3" badges to useForgotPassword and useStore in commercetools

* [Docs] Add Odoo to Integrations page (#6224)

* Export missing methods for api-extractor

* Add api-extractor-data file

* Update Vendure maintainers (#6230)

* Fix typings generation, update API references and CT Composables pages (#6235)

* Fix docs build (#6238)

* Docs grammar and typos check (#6064)

* Update Integrations page (#6244)

* [Docs] Reorganize docs into smaller categories (#6243)

* [Docs] Disable prefetching (#6255)

* Fix `labeler` for docs (#6256)

* feat: update Vendure integration status to beta

* Update maintainers of SFCC integration (#6259)

* Optimize homepage diagram (#6260)

* Use Node v12.22.4 for deployment

* Update Dockerfile

* Update

* Update

* Revert

* Update

* [Docs] Add "Extending Vue Storefront" and "Extending integrations" pages (#6252)

Co-authored-by: Lukas Borawski <lukas.borawski@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>

* Fix loading user and cart information (#6265)

* Fix loading user and cart information

* Add changelogs

* tests(e2e): fix tests data and selectors (#6277)

* Use categorySearch for fetching the category tree (#6273)

* Use categorySearch for fetching the category tree

* Remove unused typenames and add typings for params

* [commercetools] Add server-specific API client (#6321)

* Add server-specific API client

* Update Config type

* Update docs

* Add changelog

* Typos

* Revert change to the token reset debugger

* Fix for Auth0

* Release 2.4.2 (#6331)

* chore: version bump to 2.4.2 for Core and 1.3.2 for CT

* docs: changelog update

* fix: typo

Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>

* docs(ct) fix: update link in getting started section and fix typo in usereview snippet (#6325)

* Remove outdated information and fix changelog generation (#6386)

* Remove outdated information from Logging doc

* Fix changelog generation

* Revert change in version.hbs

* [Docs] Add migration guide for 1.3.2 release (#6402)

* Add 1.3.2 migration guide

* Fix typos

* chore(docs): sync docs after release (#6417)

* chore(docs): update Shopify link (#6422)

* Generate OpenGraph image for docs during the build (#6428)

* [Docs] Automatically generate og:image

* Update

* Update

* Update

* 20210913 generate og image for docs (#6429)

* docs: add missing brackets (#6430)

* Docs: Adyen 1.1 (#6371)

* docs: google pay

* Apply suggestions from code review

Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>

* chore: adyen doc update

* docs: update

* Apply suggestions from code review

Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>

* docs: update after cr

Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>

* docs: update integrations (#6434)

* docs: add Prestashop and Spree to the list of integrations (#6437)

* docs: update logos (#6445)

* chore: moved adyen docs to separated repository (#6438)

Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>

* docs: update diagram and OG images (#6446)

* docs: update diagram and OG images

* docs: fix OG images (#6451)

* chore: updated integration status (#6464)

* docs(ct): api-extractor missing signatures (#6348)

* fix(ct): add missing signatures as a references to composables

* fix(ct): add missing signatures as a reference to api methods

* fix(ct): add missing signatures as a reference to cart actions

* docs: out of memory (#6465)

* fix: out of memory

* test

* test

* chore: revert changes

* docs: how to setup commercetools (#6072)

* fix: changes in store docs and fixes after CR

* feat: docs changes after CR

* feat: add vsf config part with images

* feat: text fixes change, image location, add class for images

* feat: docs cleaning and change style

* fix; after CR

* fix: changes in store docs and fixes after CR

* feat: docs changes after CR

* feat: add vsf config part with images

* feat: text fixes change, image location, add class for images

* feat: docs cleaning and change style

* fix; after CR

* feat: docs add config for ee package and change os config

* fix: move setup store to essentials

* Update

* Update

* Update

* Update store setup and convert images to webp

* Remove unnecessary spaces

* Update

* Update

* Update images

* Update based on feedback

Co-authored-by: AdamPawlinski <apawlinski@vuestorefront.io>
Co-authored-by: Filip Sobol <sobol.filip@gmail.com>

* Update `Architecture` chapter in documentation (#6489)

* Update rollup and plugins

* Fix path to TS definitions

* Update

* Update links

Co-authored-by: Lukas Borawski <lukas.borawski@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>
Co-authored-by: Adam Pawliński <apawlinski@vuestorefront.org>
Co-authored-by: Heitor Ramon Ribeiro <heitor.ramon@gmail.com>
Co-authored-by: AdamPawlinski <apawlinski@vuestorefront.io>

* chore(root): sync main to develop (#6487)

* chore: sync `version-2.4` to `main` branch (#6312)

* Remove duplicate dependency (#6094)

* test(commercetools): code review feedback

* fix: getter for product sku

* docs: updated changelog

* Add `git` as a requirement to the Installation doc (#6105)

* Fix `useCart` example in CT docs (#6106)

* cr fix

* Fix integration logos (#6109)

* smartphone only promo code input added

* changelog added

* feat(commercetools): added channelId logic

* fix(commercetools): fixed request payload prop

* [Docs] Update commercetools homepage (#6113)

* Fix links to selfhosted integration logos (#6114)

* Update project description

* Satisfy eslint

* Upgrade VuePress and delete AboutYou docs (#6117)

* Update (#6120)

* fix(commercetools): fixed duplicated modal title

* fix(commercetools): fixed wrong locale display

* Link Auth0 docs (#6124)

* Add `checkout.js` middleware (#6121)

* Switch places between country and state inputs in billing form

* Same changes for billing and shipping address forms

* fix: fixed Nuxt-CLI spamming babel warning due plugin configuration (#6123)

* fix(commercetools:theme): fixed Nuxt-CLI spamming babel warning due plugin configuration

* fix(boilerplate:theme): fixed Nuxt-CLI spamming babel warning due plugin configuration

* docs(core): added the changelog for #6123

* fix(boilerplate:theme): applied eslint rules

* Move and refactor the helper

* Add unit tests

* Refactor unit tests to use AAA pattern

* Store expected statusCode in a separate const

* fix(ct/core): update locale links

* fix(ct/core): add changelog

* refactor: updates form validation scheme for street, number and city (#6122)

* refactor(commercetools:theme): updated form validation rules

* refactor(core:nuxt-theme-modules): updated form validation rules

* docs(core): added changelog file for PR #6122

* docs(commercetools): added changelog file for PR #6122

* fix-#6132(ct:api-client): add total to query

* fix-#6132(ct:composable): return all orders from query

* fix-#6132(core): change default orders value

* fix-#6132(ct:composable): create getOrdersTotal getter

* fix-#6132(core:theme): adjust template to new orders

* fix-#6132(core/ct): fix unit tests

* fix-#6132(core): add changelogs

* fix-#6132(docs): add docs for new changes

* fix-#6132(test): fix types and tests

* Fix validate boilerplate

* fix(ct/core): use object syntax for links

* [Docs] Update Integrations page (#6135)

* fix-#6132(ct): add other fields to query

* [Docs] Update integrations page (#6139)

* Minor fixes in core (#6061)

* Fix images in docs (#6140)

* test

* test

* test

* test

* test

* test

* test

* remove unused commands

* update docs build commands

* workaround for api-extractor

* remove typedoc

* Generate md flies command

* update

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test size 1024

* test size 2048

* test size 4096

* remove commands

* Synchronize with the Boilerplate repository (#6125)

* test

* uncomment deploy action

* docs: add migration guide v2.4.0

* docs: add 2.4.0 doc link to index.md

* Update Readme (Supported platforms)

Update links & status of Supported platforms

* Update: Shopify DOC

* Add support section

* fix(core): use orderGetters for id

* docs: add missing changes in migration guide

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* chore: algolia docs link and typo fix

* Update first page of Shopify Docs

* Shopify Docs first page - Links listing repair

* Updated suggessons

* Linking repaired

* Updated Shopify DOC

* Updated vuepress config.js

* refactor(api-cliente): removed Customer changes

* chore: removed beta tag from Shopify (#6143)

* chore(core:cli): removed beta tag from Shopify

* chore: removed beta tag from Shopify

* chore(docs): adds the changelog file to PR #6143

* chore(chore:cli): applied eslint rules

* feat(api-client): added getInventory api

* Updated maintainers pictures

* feat(commercetools:api-client): add config channel

* refactor: generate api ref on server side

* feat(ct): add InventoryMode to createCart

  - extend middleware config with inventoryMode
  - update Cart fragment
  - update Payment template - notification is being displayed on make
  order error

* Add changelog file

* docs(ct): update configuration docs with inventoryMode

  - remove `inventoryMode` option from middleware config

* refactor(commercetools): fix the frontend client bundling the commercetools-sdk and apollo client (#6066)

* refactor: updated the applyCoupon interface to match the removeCoupon (#6126)

* chore: enterprise

* fix: fix conflicts with next branch

* fix(commercetools): removed wrong config

* fix: add api ref to gitignore

* new line at the end of file

* fix: address house number field mapping

* Add changelog file

* fix: MyAccount page rendering

* chore: add changelog

* fix-#5886: lint fix

* fix-#5886: cr fixes

* Revert "Sync next"

* docs: add inventory mode note to ct migration guide

* feat(commercetools): added changeChannel feature

* feat(commercetools): added product Availability

* fix(commercetools): wrong prop access

* fix(commercetools): fix object prop

* refactor(commercetools:api-client): updated the addToCart method to new signature

* refactor(commercetools:composeables): updated the useCart composable to match the addToCart

* docs(commercetools): added the base changelog

* refactor(commercetools): removed channel cookie

* refactor(commercetools): updated changelog

* Update packages/core/docs/commercetools/changelog/6161.js

* docs: add multistore note to ct migration guide

* docs: add missing punctuation

* chore: versions bump - core to 2.4 and ct to 1.3

* chore(docs): changelog update

* refactor(api-client): applied eslint rules

* refactor(composables): applied eslint rules

* refactor(composables): fixed useCart test

* refactor(composables): fixed addToCart test

* refactor(api-client): applied eslint rules

* fix(commercetools): fixed useStore tests

* fix: add missing mobile menu for ct

* chore: changelog

* revert onMounted

* fix

* docs: update demo url

* chore: version bump for ct theme

* fix: ct theme package schema

* test

* api refs generated correct

* fix

* add commands to yarn dev

* fix path to types

* Get rid of unnecessary part

* build test

* test

* Fix missing index.d.ts

* update path to types in package.json

* bp fix

* tsconfig update

* fix: remove merge conflict tags

* docs: restore missing changes

* Use tilde in VSF dependencies (#6197)

* Backport fixes from boilerplate repo (#6199)

* Fix `@vue-storefront/cache` package (#6198)

* Use `isomorphic-git` instead of native GIT client (#6201)

* Revert changes to Webpack configuration and Google font loading (#6203)

* tests(e2e): update addToCart request body

* docs: add changelog for #6205

* chore: version bump to 2.4.1 for core and 1.3.1 for ct

* chore: changelog update

* chore: ct changelog update

* Sync `release-2.4` with `release/next` (#6237)

* Sync `release-2.4` with `release/next` (#6263)

* Sync `release-2.4` with `release/next` (#6269)

* Update the docs after 2.4 release (#6217)

* Remove CLI preview image, because it's outdated (#6223)

* [Docs] Update Integrations page and optimize SVG logos (#6220)

* [Docs] Add "Added in 1.3" badges to useForgotPassword and useStore in commercetools

* [Docs] Add Odoo to Integrations page (#6224)

* Export missing methods for api-extractor

* Add api-extractor-data file

* Update Vendure maintainers (#6230)

* Fix typings generation, update API references and CT Composables pages (#6235)

* Fix docs build (#6238)

* Docs grammar and typos check (#6064)

* Update Integrations page (#6244)

* [Docs] Reorganize docs into smaller categories (#6243)

* [Docs] Disable prefetching (#6255)

* Fix `labeler` for docs (#6256)

* feat: update Vendure integration status to beta

* Update maintainers of SFCC integration (#6259)

* Optimize homepage diagram (#6260)

* Use Node v12.22.4 for deployment

* Update Dockerfile

* Update

* Update

* Revert

* Update

* [Docs] Add "Extending Vue Storefront" and "Extending integrations" pages (#6252)

Co-authored-by: Lukas Borawski <lukas.borawski@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>

* Fix loading user and cart information (#6265)

* Fix loading user and cart information

* Add changelogs

* tests(e2e): fix tests data and selectors (#6277)

* Use categorySearch for fetching the category tree (#6273)

* Use categorySearch for fetching the category tree

* Remove unused typenames and add typings for params

* chore: updated GitHub files to match main

* [commercetools] Add server-specific API client (#6321)

* Add server-specific API client

* Update Config type

* Update docs

* Add changelog

* Typos

* Revert change to the token reset debugger

* Fix for Auth0

* chore: version bump to 2.4.2 for Core and 1.3.2 for CT

* docs: changelog update

* fix: typo

Co-authored-by: Tom Anioł <33483514+tom-aniol@users.noreply.github.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>
Co-authored-by: Alef Barbeli <alefbarbeli@gmail.com>
Co-authored-by: Justyna <jgieracka@vuestorefront.io>
Co-authored-by: v.vlad <vladyslav.vakhnovskyi@spryker.com>
Co-authored-by: Łukasz <lukasz.sliwa@newfantastic.com>
Co-authored-by: Łukasz <lsliwaradioluz@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: Igor Wojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: Aureatelabs Team <hello@aureatelabs.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Rakowski <f.rakowskI@hotmail.com>
Co-authored-by: lsliwaradioluz <39009379+lsliwaradioluz@users.noreply.github.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: lukasborawski <lukas.borawski@gmail.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>

* Revert "chore: sync `version-2.4` to `main` branch (#6312)" (#6337)

This reverts commit dc3165a1fb2b4341b86c23e52bc8536cd618880f.

* fix(os-178): fixed failing tests (#6358)

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(os-176): fixed adding items to cart from list view in category (#6356)

* fix(os-176): fixed adding items to cart from list view in category

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(cache): cache package invalidation bug (#6355)

* Send response in cache invalidation request handler

* Add changelog

* fix(ct): productType field ommited for custom queries (#6350)

* fix(ct): productType field ommited for custom queries

* fix(ct): CR - move changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* fix: updated ui version (#6368)

* fix: updated ui version

* fix: updated ui version bolierplate

* fix: updated yarn

* fix: problems with negative number using by css calc method

* chore: add changelog

Co-authored-by: Rafal Dobrowolski <rafal.dobrowolski77@gmail.com>

* fix(OS-169): allow to customise currency & country cookie names (#6372)

* fix(OS-169): allow to customize currency & country cookie names

* fix(OS-169): add cookies obj to mapI18nSettings

* fix(OS-169): add changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* test(e2e): adjust e2e tests to new sfui version (#6388)

* test(e2e): adjust e2e tests to new sfui version

* test(e2e): adjust e2e tests to new sfui version

* fix(ct): add a copy of the whole product obj in enhanceProduct (#6406)

* fix(ct): add a copy of pthe whole product object to the enhanceProduct helper

* fix(ct): update snapshot

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* fix(commercetools): fix password reset and improve server api (#6403)

* Given fewer permissions to Server API

* Fix password reset permissions and allow custom operations in Server API

* Add changelogs

* Update

* Add migration guide

* Release 2.4.3 (#6413)

* chore: version bump to 2.4.3 for core and 1.3.3 for ct

* docs: changelogs update

* Fix changelogs

Co-authored-by: Filip Sobol <sobol.filip@gmail.com>

* chore(docs): sync docs with the `main` branch (#6414)

* fix(os-179): added badge for cart on mobiles (#6370)

* chore(docs): update Shopify link (#6423)

* chore: add `SECURITY.md` (#6427)

* fix: misleading message for no search results (#6435)

* fix: misleading message for no search results

* chore: add changelog

* fix: remove LoyaltyCard and MyReviews (#6439)

* fix: remove LoyaltyCard and MyReviews

* chore: add changelog

* feat(theme): updated branding materials (#6441)

* feat(theme): updated branding materials

* fix(commercetools): added missing files

* chore: updated README with new VSF brand (#6447)

* ci/demos cleanup (#6305)

* ci: replace two old instances with new hosted on gcp
* fix: change credentials used to DEMO_CLOUD_USERNAME
* add: canary ct deployment
* cicd: add vsf-next-demo on GCP
* fix: change github ref for vsf-next-demo deployment

* fix(os-184): fixed login modal screens behavior (#6394)

* fix(6364): removed more action button that does nothing (#6381)

* chore: update headless architecture with new Brand (#6454)

* chore(commercetools): use API client from new commercetools project (#6459)

* Fix syntax in JSON (#6460)

* chore(commercetools): update `authHost` in `middleware.config.js` (#6461)

* fix: clicking Add To Wishlist icon closes search modal (#6456)

* fix: clicking Add To Wishlist icon closes search modal

* chore: add changelog

* fix: missing adding/removing a product to/from the wishlist in SearchRes

* fix: class name instead tag name

* ssr middleware url (#6472)

* refactor(en-477): reduce payload size for addToCart (#6475)

* Reduce payload size on PDP

* Reduce payload size on PLP

* Reduce payload size in update quantity in cart sidebar

* Reduce payload size in remove from cart in cart sidebar

* Add changelog

* fix(nuxt-theme): category page & related products (#6476)

* Fix wishlist features on PLP

* Fix wishlist and cart features in RelatedProducts

* Add changelog

* Customized fetch, re-try link (#6479)

* customized fetch, re-try link

* customized fetch, re-try link

* customized fetch, re-try link

* chore: version bump for core to 2.4.4 and ct to 1.3.4 (#6473)

* chore: version bump for core to 2.4.5 and ct to 1.3.5 (#6482)

* Update README.md (#6481)

* Update deploy-storefrontcloud.yml (#6483)

* fix(ct): redirect to localized My Account page (#6484)

* fix(os-202): fixed share data for faceting composable (#6493)

* fix(os-202): fixed share data for faceting composable

* fix(en-482): fixed duplicated search requests (#6495)

* fix(#6202): misplaced close button (#6500)

* fix(os-149): fixed close button placement

* fix: missing close method

* cr fixes

* fix(#6490): add language map to the middleware config (#6491)

* Add `languageMap` to middleware config

* Set locale cookie client-side upon language switch

* Add changelog

* Update changelog

* Revert: Set locale cookie client-side upon language switch

* docs: removed duplicated changelogs

* Remove duplicate changelogs

* Update changelogs

* Update changelogs

Co-authored-by: Heitor Ramon Ribeiro <heitor.ramon@gmail.com>
Co-authored-by: Tom Anioł <33483514+tom-aniol@users.noreply.github.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>
Co-authored-by: Justyna <jgieracka@vuestorefront.io>
Co-authored-by: v.vlad <vladyslav.vakhnovskyi@spryker.com>
Co-authored-by: Łukasz <lukasz.sliwa@newfantastic.com>
Co-authored-by: Łukasz <lsliwaradioluz@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: Igor Wojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: Aureatelabs Team <hello@aureatelabs.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Rakowski <f.rakowskI@hotmail.com>
Co-authored-by: lsliwaradioluz <39009379+lsliwaradioluz@users.noreply.github.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: lukasborawski <lukas.borawski@gmail.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>
Co-authored-by: daaf <44862757+dawid-ziobro@users.noreply.github.com>
Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>
Co-authored-by: Marcin Sulowski <mr.sulowski@gmail.com>
Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>
Co-authored-by: Justyna <46591755+justyna-13@users.noreply.github.com>
Co-authored-by: Rafal Dobrowolski <rafal.dobrowolski77@gmail.com>
Co-authored-by: Filip Sobol <sobol.filip@gmail.com>
Co-authored-by: byakku <kstepien@vuestorefront.io>

* chore: sync `develop` with `main` (#6506)

* chore: sync `version-2.4` to `main` branch (#6312)

* Remove duplicate dependency (#6094)

* test(commercetools): code review feedback

* fix: getter for product sku

* docs: updated changelog

* Add `git` as a requirement to the Installation doc (#6105)

* Fix `useCart` example in CT docs (#6106)

* cr fix

* Fix integration logos (#6109)

* smartphone only promo code input added

* changelog added

* feat(commercetools): added channelId logic

* fix(commercetools): fixed request payload prop

* [Docs] Update commercetools homepage (#6113)

* Fix links to selfhosted integration logos (#6114)

* Update project description

* Satisfy eslint

* Upgrade VuePress and delete AboutYou docs (#6117)

* Update (#6120)

* fix(commercetools): fixed duplicated modal title

* fix(commercetools): fixed wrong locale display

* Link Auth0 docs (#6124)

* Add `checkout.js` middleware (#6121)

* Switch places between country and state inputs in billing form

* Same changes for billing and shipping address forms

* fix: fixed Nuxt-CLI spamming babel warning due plugin configuration (#6123)

* fix(commercetools:theme): fixed Nuxt-CLI spamming babel warning due plugin configuration

* fix(boilerplate:theme): fixed Nuxt-CLI spamming babel warning due plugin configuration

* docs(core): added the changelog for #6123

* fix(boilerplate:theme): applied eslint rules

* Move and refactor the helper

* Add unit tests

* Refactor unit tests to use AAA pattern

* Store expected statusCode in a separate const

* fix(ct/core): update locale links

* fix(ct/core): add changelog

* refactor: updates form validation scheme for street, number and city (#6122)

* refactor(commercetools:theme): updated form validation rules

* refactor(core:nuxt-theme-modules): updated form validation rules

* docs(core): added changelog file for PR #6122

* docs(commercetools): added changelog file for PR #6122

* fix-#6132(ct:api-client): add total to query

* fix-#6132(ct:composable): return all orders from query

* fix-#6132(core): change default orders value

* fix-#6132(ct:composable): create getOrdersTotal getter

* fix-#6132(core:theme): adjust template to new orders

* fix-#6132(core/ct): fix unit tests

* fix-#6132(core): add changelogs

* fix-#6132(docs): add docs for new changes

* fix-#6132(test): fix types and tests

* Fix validate boilerplate

* fix(ct/core): use object syntax for links

* [Docs] Update Integrations page (#6135)

* fix-#6132(ct): add other fields to query

* [Docs] Update integrations page (#6139)

* Minor fixes in core (#6061)

* Fix images in docs (#6140)

* test

* test

* test

* test

* test

* test

* test

* remove unused commands

* update docs build commands

* workaround for api-extractor

* remove typedoc

* Generate md flies command

* update

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test size 1024

* test size 2048

* test size 4096

* remove commands

* Synchronize with the Boilerplate repository (#6125)

* test

* uncomment deploy action

* docs: add migration guide v2.4.0

* docs: add 2.4.0 doc link to index.md

* Update Readme (Supported platforms)

Update links & status of Supported platforms

* Update: Shopify DOC

* Add support section

* fix(core): use orderGetters for id

* docs: add missing changes in migration guide

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* Update packages/core/docs/general/support.md

Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>

* chore: algolia docs link and typo fix

* Update first page of Shopify Docs

* Shopify Docs first page - Links listing repair

* Updated suggessons

* Linking repaired

* Updated Shopify DOC

* Updated vuepress config.js

* refactor(api-cliente): removed Customer changes

* chore: removed beta tag from Shopify (#6143)

* chore(core:cli): removed beta tag from Shopify

* chore: removed beta tag from Shopify

* chore(docs): adds the changelog file to PR #6143

* chore(chore:cli): applied eslint rules

* feat(api-client): added getInventory api

* Updated maintainers pictures

* feat(commercetools:api-client): add config channel

* refactor: generate api ref on server side

* feat(ct): add InventoryMode to createCart

  - extend middleware config with inventoryMode
  - update Cart fragment
  - update Payment template - notification is being displayed on make
  order error

* Add changelog file

* docs(ct): update configuration docs with inventoryMode

  - remove `inventoryMode` option from middleware config

* refactor(commercetools): fix the frontend client bundling the commercetools-sdk and apollo client (#6066)

* refactor: updated the applyCoupon interface to match the removeCoupon (#6126)

* chore: enterprise

* fix: fix conflicts with next branch

* fix(commercetools): removed wrong config

* fix: add api ref to gitignore

* new line at the end of file

* fix: address house number field mapping

* Add changelog file

* fix: MyAccount page rendering

* chore: add changelog

* fix-#5886: lint fix

* fix-#5886: cr fixes

* Revert "Sync next"

* docs: add inventory mode note to ct migration guide

* feat(commercetools): added changeChannel feature

* feat(commercetools): added product Availability

* fix(commercetools): wrong prop access

* fix(commercetools): fix object prop

* refactor(commercetools:api-client): updated the addToCart method to new signature

* refactor(commercetools:composeables): updated the useCart composable to match the addToCart

* docs(commercetools): added the base changelog

* refactor(commercetools): removed channel cookie

* refactor(commercetools): updated changelog

* Update packages/core/docs/commercetools/changelog/6161.js

* docs: add multistore note to ct migration guide

* docs: add missing punctuation

* chore: versions bump - core to 2.4 and ct to 1.3

* chore(docs): changelog update

* refactor(api-client): applied eslint rules

* refactor(composables): applied eslint rules

* refactor(composables): fixed useCart test

* refactor(composables): fixed addToCart test

* refactor(api-client): applied eslint rules

* fix(commercetools): fixed useStore tests

* fix: add missing mobile menu for ct

* chore: changelog

* revert onMounted

* fix

* docs: update demo url

* chore: version bump for ct theme

* fix: ct theme package schema

* test

* api refs generated correct

* fix

* add commands to yarn dev

* fix path to types

* Get rid of unnecessary part

* build test

* test

* Fix missing index.d.ts

* update path to types in package.json

* bp fix

* tsconfig update

* fix: remove merge conflict tags

* docs: restore missing changes

* Use tilde in VSF dependencies (#6197)

* Backport fixes from boilerplate repo (#6199)

* Fix `@vue-storefront/cache` package (#6198)

* Use `isomorphic-git` instead of native GIT client (#6201)

* Revert changes to Webpack configuration and Google font loading (#6203)

* tests(e2e): update addToCart request body

* docs: add changelog for #6205

* chore: version bump to 2.4.1 for core and 1.3.1 for ct

* chore: changelog update

* chore: ct changelog update

* Sync `release-2.4` with `release/next` (#6237)

* Sync `release-2.4` with `release/next` (#6263)

* Sync `release-2.4` with `release/next` (#6269)

* Update the docs after 2.4 release (#6217)

* Remove CLI preview image, because it's outdated (#6223)

* [Docs] Update Integrations page and optimize SVG logos (#6220)

* [Docs] Add "Added in 1.3" badges to useForgotPassword and useStore in commercetools

* [Docs] Add Odoo to Integrations page (#6224)

* Export missing methods for api-extractor

* Add api-extractor-data file

* Update Vendure maintainers (#6230)

* Fix typings generation, update API references and CT Composables pages (#6235)

* Fix docs build (#6238)

* Docs grammar and typos check (#6064)

* Update Integrations page (#6244)

* [Docs] Reorganize docs into smaller categories (#6243)

* [Docs] Disable prefetching (#6255)

* Fix `labeler` for docs (#6256)

* feat: update Vendure integration status to beta

* Update maintainers of SFCC integration (#6259)

* Optimize homepage diagram (#6260)

* Use Node v12.22.4 for deployment

* Update Dockerfile

* Update

* Update

* Revert

* Update

* [Docs] Add "Extending Vue Storefront" and "Extending integrations" pages (#6252)

Co-authored-by: Lukas Borawski <lukas.borawski@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>

* Fix loading user and cart information (#6265)

* Fix loading user and cart information

* Add changelogs

* tests(e2e): fix tests data and selectors (#6277)

* Use categorySearch for fetching the category tree (#6273)

* Use categorySearch for fetching the category tree

* Remove unused typenames and add typings for params

* chore: updated GitHub files to match main

* [commercetools] Add server-specific API client (#6321)

* Add server-specific API client

* Update Config type

* Update docs

* Add changelog

* Typos

* Revert change to the token reset debugger

* Fix for Auth0

* chore: version bump to 2.4.2 for Core and 1.3.2 for CT

* docs: changelog update

* fix: typo

Co-authored-by: Tom Anioł <33483514+tom-aniol@users.noreply.github.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Filip Sobol <filipsobol@users.noreply.github.com>
Co-authored-by: Alef Barbeli <alefbarbeli@gmail.com>
Co-authored-by: Justyna <jgieracka@vuestorefront.io>
Co-authored-by: v.vlad <vladyslav.vakhnovskyi@spryker.com>
Co-authored-by: Łukasz <lukasz.sliwa@newfantastic.com>
Co-authored-by: Łukasz <lsliwaradioluz@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: Igor Wojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: Aureatelabs Team <hello@aureatelabs.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Rakowski <f.rakowskI@hotmail.com>
Co-authored-by: lsliwaradioluz <39009379+lsliwaradioluz@users.noreply.github.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: lukasborawski <lukas.borawski@gmail.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>

* Revert "chore: sync `version-2.4` to `main` branch (#6312)" (#6337)

This reverts commit dc3165a1fb2b4341b86c23e52bc8536cd618880f.

* fix(os-178): fixed failing tests (#6358)

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(os-176): fixed adding items to cart from list view in category (#6356)

* fix(os-176): fixed adding items to cart from list view in category

Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>

* fix(cache): cache package invalidation bug (#6355)

* Send response in cache invalidation request handler

* Add changelog

* fix(ct): productType field ommited for custom queries (#6350)

* fix(ct): productType field ommited for custom queries

* fix(ct): CR - move changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* fix: updated ui version (#6368)

* fix: updated ui version

* fix: updated ui version bolierplate

* fix: updated yarn

* fix: problems with negative number using by css calc method

* chore: add changelog

Co-authored-by: Rafal Dobrowolski <rafal.dobrowolski77@gmail.com>

* fix(OS-169): allow to customise currency & country cookie names (#6372)

* fix(OS-169): allow to customize currency & country cookie names

* fix(OS-169): add cookies obj to mapI18nSettings

* fix(OS-169): add changelog

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* test(e2e): adjust e2e tests to new sfui version (#6388)

* test(e2e): adjust e2e tests to new sfui version

* test(e2e): adjust e2e tests to new sfui version

* fix(ct): add a copy of the whole product obj in enhanceProduct (#6406)

* fix(ct): add a copy of pthe whole product object to the enhanceProduct helper

* fix(ct): update snapshot

Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>

* fix(commercetools): fix password reset and improve server api (#6403)

* Given fewer permissions to Server API

* Fix password reset permissions and allow custom operations in Server API

* Add changelogs

* Update

* Add migration guide

* Release 2.4.3 (#6413)

* chore: version bump to 2.4.3 for core and 1.3.3 for ct

* docs: changelogs update

* Fix changelogs

Co-authored-by: Filip Sobol <sobol.filip@gmail.com>

* chore(docs): sync docs with the `main` branch (#6414)

* fix(os-179): added badge for cart on mobiles (#6370)

* chore(docs): update Shopify link (#6423)

* chore: add `SECURITY.md` (#6427)

* fix: misleading message for no search results (#6435)

* fix: misleading message for no search results

* chore: add changelog

* fix: remove LoyaltyCard and MyReviews (#6439)

* fix: remove LoyaltyCard and MyReviews

* chore: add changelog

* feat(theme): updated branding materials (#6441)

* feat(theme): updated branding materials

* fix(commercetools): added missing files

* chore: updated README with new VSF brand (#6447)

* ci/demos cleanup (#6305)

* ci: replace two old instances with new hosted on gcp
* fix: change credentials used to DEMO_CLOUD_USERNAME
* add: canary ct deployment
* cicd: add vsf-next-demo on GCP
* fix: change github ref for vsf-next-demo deployment

* fix(os-184): fixed login modal screens behavior (#6394)

* fix(6364): removed more action button that does nothing (#6381)

* chore: update headless architecture with new Brand (#6454)

* chore(commercetools): use API client from new commercetools project (#6459)

* Fix syntax in JSON (#6460)

* chore(commercetools): update `authHost` in `middleware.config.js` (#6461)

* fix: clicking Add To Wishlist icon closes search modal (#6456)

* fix: clicking Add To Wishlist icon closes search modal

* chore: add changelog

* fix: missing adding/removing a product to/from the wishlist in SearchRes

* fix: class name instead tag name

* ssr middleware url (#6472)

* refactor(en-477): reduce payload size for addToCart (#6475)

* Reduce payload size on PDP

* Reduce payload size on PLP

* Reduce payload size in update quantity in cart sidebar

* Reduce payload size in remove from cart in cart sidebar

* Add changelog

* fix(nuxt-theme): category page & related products (#6476)

* Fix wishlist features on PLP

* Fix wishlist and cart features in RelatedProducts

* Add changelog

* Customized fetch, re-try link (#6479)

* customized fetch, re-try link

* customized fetch, re-try link

* customized fetch, re-try link

* chore: version bump for core to 2.4.4 and ct to 1.3.4 (#6473)

* chore: version bump for core to 2.4.5 and ct to 1.3.5 (#6482)

* Update README.md (#6481)

* Update deploy-storefrontcloud.yml (#6483)

* fix(ct): redirect to localized My Account page (#6484)

* fix(os-202): fixed share data for faceting composable (#6493)

* fix(os-202): fixed share data for faceting composable

* fix(en-482): fixed duplicated search requests (#6495)

* fix(#6202): misplaced close button (#6500)

* fix(os-149): fixed close button placement

* fix: missing close method

* cr fixes

* fix(#6490): add language map to the middleware config (#6491)

* Add `languageMap` to middleware config

* Set locale cookie client-side upon language switch

* Add changelog

* Update changelog

* Revert: Set locale cookie client-side upon language switch

* Update

* Update

* Update yarn.lock

Co-authored-by: Heitor Ramon Ribeiro <heitor.ramon@gmail.com>
Co-authored-by: Tom Anioł <33483514+tom-aniol@users.noreply.github.com>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Alef Barbeli <alefbarbeli@gmail.com>
Co-authored-by: Justyna <jgieracka@vuestorefront.io>
Co-authored-by: v.vlad <vladyslav.vakhnovskyi@spryker.com>
Co-authored-by: Łukasz <lukasz.sliwa@newfantastic.com>
Co-authored-by: Łukasz <lsliwaradioluz@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: ljedrasik <ljedrasik@vuestorefront.io>
Co-authored-by: Igor Wojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: Aureatelabs Team <hello@aureatelabs.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Filip Rakowski <f.rakowskI@hotmail.com>
Co-authored-by: lsliwaradioluz <39009379+lsliwaradioluz@users.noreply.github.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: lukasborawski <lukas.borawski@gmail.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>
Co-authored-by: daaf <44862757+dawid-ziobro@users.noreply.github.com>
Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>
Co-authored-by: Marcin Sulowski <mr.sulowski@gmail.com>
Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>
Co-authored-by: Justyna <46591755+justyna-13@users.noreply.github.com>
Co-authored-by: Rafal Dobrowolski <rafal.dobrowolski77@gmail.com>
Co-authored-by: byakku <kstepien@vuestorefront.io>

* fix(os-6365): remove unnecessary code (#6509)

* chore(docs): add migration guide for `core@2.5` and `commercetools@1.4.0` (#6511)

* Add migration guide for 2.5

* Update

* Update

* Fix typos

* chore(docs): fix code example in migration guide (#6512)

Co-authored-by: daaf <44862757+dawid-ziobro@users.noreply.github.com>
Co-authored-by: Dawid Ziobro <dziobro@vuestorefront.io>
Co-authored-by: Marcin Sulowski <mr.sulowski@gmail.com>
Co-authored-by: Marcin Sulowski <msulowski@vuestorefront.io>
Co-authored-by: Jakub Andrzejewski <37120330+Baroshem@users.noreply.github.com>
Co-authored-by: RafalDobrowolski <rafal.dobrowolski77@gmail.com>
Co-authored-by: igorwojciechowski <igorxwojciechowski@gmail.com>
Co-authored-by: Alef Barbeli <alefbarbeli@gmail.com>
Co-authored-by: Łukasz Jędrasik <ljedrasik@vuestorefront.io>
Co-authored-by: Heitor Ramon Ribeiro <heitor.ramon@gmail.com>
Co-authored-by: lsliwaradioluz <39009379+lsliwaradioluz@users.noreply.github.com>
Co-authored-by: Lukas Borawski <lukas.borawski@gmail.com>
Co-authored-by: Baroshem <jakub.andrzejewski.dev@gmail.com>
Co-authored-by: mkoszut <mkoszut@gmail.com>
Co-authored-by: Filip Jędrasik <filip.jdrasik@gmail.com>
Co-authored-by: Fifciuu <fjedrasik@vuestorefront.io>
Co-authored-by: Razz21 <razzrazz@wp.pl>
Co-authored-by: Patryk Andrzejewski <vox3r69@gmail.com>
Co-authored-by: Sam Riley <samriley@hotmail.co.uk>
Co-authored-by: Adam Pawliński <apawlinski@vuestorefront.org>
Co-authored-by: AdamPawlinski <apawlinski@vuestorefront.io>
Co-authored-by: Tom Anioł <33483514+tom-aniol@users.noreply.github.com>
Co-authored-by: Justyna <jgieracka@vuestorefront.io>
Co-authored-by: v.vlad <vladyslav.vakhnovskyi@spryker.com>
Co-authored-by: Łukasz <lukasz.sliwa@newfantastic.com>
Co-authored-by: Łukasz <lsliwaradioluz@gmail.com>
Co-authored-by: Aureatelabs Team <hello@aureatelabs.com>
Co-authored-by: Filip Rakowski <f.rakowskI@hotmail.com>
Co-authored-by: Justyna <46591755+justyna-13@users.noreply.github.com>
Co-authored-by: byakku <kstepien@vuestorefront.io>
  • Loading branch information
1 parent bcf12ba commit 1dbd2ab
Show file tree
Hide file tree
Showing 324 changed files with 20,878 additions and 21,209 deletions.
5 changes: 3 additions & 2 deletions .github/labeler.yml
Expand Up @@ -14,9 +14,10 @@ commercetools:
boilerplate:
- packages/boilerplate/**/*

# Add 'docs' label to any change to packages/core/docs files EXCEPT for the changelog
# Add 'docs' label to any change to packages/core/docs files
docs:
- any: ['packages/core/docs/**/*', '!packages/core/docs/changelog/**/*']
- packages/core/docs/**/*
- packages/core/docs/.vuepress/**/*

# Add 'ci' label to any change to continuous integration files inside .github folder
ci:
Expand Down
6 changes: 0 additions & 6 deletions cypress.json

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -50,8 +50,8 @@
"@babel/core": "^7.10.5",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-replace": "^3.0.0",
"@types/jest": "^26.0.24",
"@types/node": "^12.12.14",
"@typescript-eslint/eslint-plugin": "^4.15.2",
Expand All @@ -72,8 +72,8 @@
"lerna": "^3.15.0",
"lint-staged": "^10.0.7",
"rimraf": "^3.0.2",
"rollup": "^1.25.2",
"rollup-plugin-terser": "^5.1.2",
"rollup": "^2.59.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^27.0.3",
"ts-node": "^8.4.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/boilerplate/api-client/package.json
Expand Up @@ -17,8 +17,8 @@
"@vue-storefront/core": "~2.4.6"
},
"devDependencies": {
"rollup-plugin-typescript2": "^0.30.0",
"@rollup/plugin-node-resolve": "^13.0.0"
"@rollup/plugin-node-resolve": "^13.0.6",
"rollup-plugin-typescript2": "^0.30.0"
},
"files": [
"lib/**/*"
Expand Down
3 changes: 2 additions & 1 deletion packages/boilerplate/api-client/rollup.config.js
Expand Up @@ -24,7 +24,8 @@ const server = {
}),
typescript({
// eslint-disable-next-line global-require
typescript: require('typescript')
typescript: require('typescript'),
objectHashIgnoreUnknownHack: false
})
]
};
Expand Down
14 changes: 8 additions & 6 deletions packages/boilerplate/api-client/src/types.ts
Expand Up @@ -32,6 +32,14 @@ export type Review = TODO;

export type ReviewItem = TODO;

export type Store = TODO;

export type ShippingAddress = TODO;

export type ShippingMethod = TODO;

export type ShippingProvider = TODO;

export type User = TODO;

export type UserBillingAddress = TODO;
Expand All @@ -46,12 +54,6 @@ export type UserShippingAddressItem = TODO;

export type UserShippingAddressSearchCriteria = TODO;

export type ShippingAddress = TODO;

export type ShippingMethod = TODO;

export type ShippingProvider = TODO;

export type Wishlist = TODO;

export type WishlistItem = TODO;
6 changes: 3 additions & 3 deletions packages/boilerplate/composables/package.json
Expand Up @@ -17,11 +17,11 @@
"@vue-storefront/core": "~2.4.6"
},
"devDependencies": {
"rollup-plugin-typescript2": "^0.30.0",
"@rollup/plugin-node-resolve": "^13.0.0"
"@rollup/plugin-node-resolve": "^13.0.6",
"rollup-plugin-typescript2": "^0.30.0"
},
"peerDependencies": {
"@vue/composition-api": "1.0.0-beta.21"
"@nuxtjs/composition-api": "^0.29.3"
},
"files": [
"lib/**/*"
Expand Down
20 changes: 20 additions & 0 deletions packages/boilerplate/composables/src/getters/storeGetters.ts
@@ -0,0 +1,20 @@
import { Store } from '@vue-storefront/boilerplate-api';
import { AgnosticStore, UseStoreGetters } from '@vue-storefront/core';
import { UseStoreFilterParams } from '../types';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function getItems (stores: Store, criteria: UseStoreFilterParams = {}): AgnosticStore[] {
return [];
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function getSelected (stores: Store): AgnosticStore | undefined {
return null;
}

const storeGetters: UseStoreGetters<Store, UseStoreFilterParams> = {
getItems,
getSelected
};

export default storeGetters;
1 change: 1 addition & 0 deletions packages/boilerplate/composables/src/index.ts
Expand Up @@ -10,6 +10,7 @@ export { useProduct } from './useProduct';
export { useReview } from './useReview';
export { useShipping } from './useShipping';
export { useShippingProvider } from './useShippingProvider';
export { useStore } from './useStore';
export { useUser } from './useUser';
export { useUserBilling } from './useUserBilling';
export { useUserOrder } from './useUserOrder';
Expand Down
2 changes: 2 additions & 0 deletions packages/boilerplate/composables/src/types.ts
Expand Up @@ -16,6 +16,8 @@ export type UseReviewSearchParams = TODO;

export type UseReviewAddParams = TODO;

export type UseStoreFilterParams = TODO;

export type UseShippingAddParams = TODO;

export type UseUserUpdateParams = TODO;
Expand Down
18 changes: 18 additions & 0 deletions packages/boilerplate/composables/src/useStore/index.ts
@@ -0,0 +1,18 @@
import { Store } from '@vue-storefront/boilerplate-api';
import { Context, useStoreFactory } from '@vue-storefront/core';

export const useStore = useStoreFactory<Store>({
// eslint-disable-next-line @typescript-eslint/no-unused-vars
load(context: Context, params) {
console.log('Mocked: useStore.load');

return Promise.resolve({});
},

// eslint-disable-next-line @typescript-eslint/no-unused-vars
change(context: Context, params) {
console.log('Mocked: useStore.change');

return Promise.resolve({});
}
});
3 changes: 2 additions & 1 deletion packages/boilerplate/rollup.base.config.js
Expand Up @@ -27,7 +27,8 @@ export function generateBaseConfig(pkg) {
}),
typescript({
// eslint-disable-next-line global-require
typescript: require('typescript')
typescript: require('typescript'),
objectHashIgnoreUnknownHack: false
}),
terser()
]
Expand Down
1 change: 1 addition & 0 deletions packages/boilerplate/theme/lang/de.js
Expand Up @@ -113,6 +113,7 @@ export default {
'Create an account': 'Konto erstellen',
'Your bag is empty': 'Ihre Tasche ist leer',
'Cancel': 'Abbrechen',
'See all': 'Alle anzeigen',
'See all results': 'Alle Ergebnisse anzeigen',
'We haven’t found any results for given phrase': 'Wir haben keine Ergebnisse für die angegebene Phrase gefunden',
'You haven’t searched for items yet': 'Sie haben noch nicht nach Artikeln gesucht.',
Expand Down
1 change: 1 addition & 0 deletions packages/boilerplate/theme/lang/en.js
Expand Up @@ -113,6 +113,7 @@ export default {
'Create an account': 'Create an account',
'Your bag is empty': 'Your bag is empty',
'Cancel': 'Cancel',
'See all': 'See all',
'See all results': 'See all results',
'We haven’t found any results for given phrase': 'We haven’t found any results for given phrase',
'You haven’t searched for items yet': 'You haven’t searched for items yet.',
Expand Down
12 changes: 5 additions & 7 deletions packages/boilerplate/theme/nuxt.config.js
@@ -1,5 +1,4 @@
import webpack from 'webpack';
import { VSF_LOCALE_COOKIE } from '@vue-storefront/core';
import theme from './themeConfig';

export default {
Expand Down Expand Up @@ -42,8 +41,10 @@ export default {
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// to core
'@nuxtjs/composition-api/module',
'@nuxt/typescript-build',
'@nuxtjs/style-resources',
['@vue-storefront/boilerplate/nuxt', {}],
['@vue-storefront/nuxt', {
// @core-development-only-start
coreDevelopment: true,
Expand All @@ -67,12 +68,11 @@ export default {
composables: '@vue-storefront/boilerplate'
}
}
}],
}]
// @core-development-only-end
/* project-only-start
['@vue-storefront/nuxt-theme'],
,['@vue-storefront/nuxt-theme'],
project-only-end */
['@vue-storefront/boilerplate/nuxt', {}]
],

// Modules: https://go.nuxtjs.dev/config-modules
Expand Down Expand Up @@ -121,9 +121,7 @@ export default {
}
}
},
detectBrowserLanguage: {
cookieKey: VSF_LOCALE_COOKIE
}
detectBrowserLanguage: false
},

styleResources: {
Expand Down
6 changes: 3 additions & 3 deletions packages/boilerplate/theme/package.json
Expand Up @@ -26,12 +26,12 @@
"vue-scrollto": "^2.17.1"
},
"devDependencies": {
"@nuxt/types": "^0.7.9",
"@nuxt/types": "^2.15.8",
"@vue/test-utils": "^1.0.0-beta.27",
"babel-jest": "^24.1.0",
"cypress": "^6.6.0",
"cypress": "^8.6.0",
"cypress-pipe": "^2.0.0",
"cypress-tags": "^0.0.20",
"cypress-tags": "^0.3.0",
"jest": "^24.1.0",
"mochawesome": "^6.2.2",
"mochawesome-merge": "^4.2.0",
Expand Down
Expand Up @@ -23,23 +23,4 @@ describe('[commercetools-api-client] customerSignOut', () => {
customerSignOut(mockContext);
expect(onTokenRemove).toBeCalled();
});

it('calls "invalidateTokenInfo" if provided', () => {
const tokenProvider = { invalidateTokenInfo: jest.fn().mockImplementation(() => {}) };
mockContext.client.tokenProvider = tokenProvider;

customerSignOut(mockContext);
expect(tokenProvider.invalidateTokenInfo).toBeCalled();
});

it('calls "onTokenRemove" and "invalidateTokenInfo" if both are provided', () => {
const onTokenRemove = jest.fn().mockImplementation(() => {});
const tokenProvider = { invalidateTokenInfo: jest.fn().mockImplementation(() => {}) };
mockContext.config.auth.onTokenRemove = onTokenRemove;
mockContext.client.tokenProvider = tokenProvider;

customerSignOut(mockContext);
expect(onTokenRemove).toBeCalled();
expect(tokenProvider.invalidateTokenInfo).toBeCalled();
});
});
Expand Up @@ -17,11 +17,11 @@ describe('[commercetools-api-client] isGuest', () => {
jest.clearAllMocks();
});

it('defaults to false', () => {
it('defaults to true', () => {
const context = getMockContext();
context.client.tokenProvider = false;
context.config.auth.onTokenRead = jest.fn();

expect(isGuest(context)).toBeFalsy();
expect(isGuest(context)).toBeTruthy();
});

it('calls "handleIsGuest" from config', () => {
Expand Down
58 changes: 58 additions & 0 deletions packages/commercetools/api-client/__tests__/api/isLoggedIn.spec.ts
@@ -0,0 +1,58 @@
import isLoggedIn from '../../src/api/isLoggedIn';

const getMockContext = () => ({
client: {
tokenProvider: true
},
config: {
handleIsLoggedIn: null,
auth: {
onTokenRead: null
}
}
});

describe('[commercetools-api-client] isLoggedIn', () => {
beforeEach(() => {
jest.clearAllMocks();
});

it('defaults to false', () => {
const context = getMockContext();
context.config.auth.onTokenRead = jest.fn();

expect(isLoggedIn(context)).toBeFalsy();
});

it('calls "handleIsLoggedIn" from config', () => {
const context = getMockContext();
context.config.handleIsLoggedIn = jest.fn().mockImplementation(() => true);

expect(isLoggedIn(context)).toBeTruthy();
expect(context.config.handleIsLoggedIn).toBeCalled();
});

it('returns false if visitor is a guest', () => {
const context = getMockContext();
context.config.auth.onTokenRead = jest.fn().mockImplementation(() => ({ scope: '' }));

expect(isLoggedIn(context)).toBeFalsy();
expect(context.config.auth.onTokenRead).toBeCalled();
});

it('returns false if visitor has anonymous session', () => {
const context = getMockContext();
context.config.auth.onTokenRead = jest.fn().mockImplementation(() => ({ scope: 'anonymous_id' }));

expect(isLoggedIn(context)).toBeFalsy();
expect(context.config.auth.onTokenRead).toBeCalled();
});

it('returns true if visitor has user session', () => {
const context = getMockContext();
context.config.auth.onTokenRead = jest.fn().mockImplementation(() => ({ scope: 'customer_id' }));

expect(isLoggedIn(context)).toBeTruthy();
expect(context.config.auth.onTokenRead).toBeCalled();
});
});
@@ -1,4 +1,4 @@
import { setShippingMethodAction } from '../../src/helpers/cart/actions';
import { setShippingMethodAction } from '../../src/helpers/actions/cart';

describe('[commercetools-api-client] setShippingMethod', () => {
beforeEach(() => {
Expand Down

0 comments on commit 1dbd2ab

Please sign in to comment.