diff --git a/.changeset/six-bikes-sit.md b/.changeset/six-bikes-sit.md new file mode 100644 index 000000000..74a95ca6d --- /dev/null +++ b/.changeset/six-bikes-sit.md @@ -0,0 +1,7 @@ +--- +"@shopware-pwa/nuxt3-module": major +"@shopware-pwa/composables-next": major +"@shopware-pwa/cms-base": major +--- + +Created Nuxt layer for `composables` and `cms-base`. This way overriding any part of that is now possible. diff --git a/apps/docs/package.json b/apps/docs/package.json index db26b724d..9ec0cd748 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -12,6 +12,7 @@ "@shopware-pwa/api-client": "workspace:*", "@shopware-pwa/composables-next": "workspace:*", "@shopware-pwa/helpers-next": "workspace:*", + "@shopware-pwa/types": "workspace:*", "flexsearch": "^0.7.31", "markdown-it": "^13.0.2", "vitepress": "1.0.0-beta.7", diff --git a/apps/docs/src/framework/composables/shared-composables.md b/apps/docs/src/framework/composables/shared-composables.md index 34b9b0f42..7c1c83fcc 100644 --- a/apps/docs/src/framework/composables/shared-composables.md +++ b/apps/docs/src/framework/composables/shared-composables.md @@ -10,7 +10,7 @@ Example: ## How do I know which one is shared and what should I do with that? We're adding information that the composable is shared into the description with a link to this documentation page. -There is no need to do anything with this information. The only difference is in [overwriting](#overwrite-extend-shared-composable) +There is no need to do anything with this information. The only difference is in [overwriting](./overwriting-composables.md) ## Overwrite/extend shared composable diff --git a/apps/docs/src/index.md b/apps/docs/src/index.md index 79b9e9815..34dda844a 100644 --- a/apps/docs/src/index.md +++ b/apps/docs/src/index.md @@ -17,6 +17,10 @@ nav: Shopware Composable Frontends is Shopware's toolkit for creating platform-agnostic custom storefronts. The demo store implementation is based on Vue.js and Nuxt3. +## Quick Links + +- **Announcements**: To keep yourself up to date with the latest news regarding the project, please regularly check our Github Discussions page: [shopware/frontends/dicsussions](https://github.com/shopware/frontends/discussions). Especially the [Announcements](https://github.com/shopware/frontends/discussions/categories/announcements) category. + ## How Shopware Frontends work? Frontends is a collection of multiple packages that you can use to implement your custom storefront project. diff --git a/examples/adyen-dropin-component/nuxt.config.ts b/examples/adyen-dropin-component/nuxt.config.ts index 0cdef76a1..b0e1de43a 100644 --- a/examples/adyen-dropin-component/nuxt.config.ts +++ b/examples/adyen-dropin-component/nuxt.config.ts @@ -1,4 +1,8 @@ export default defineNuxtConfig({ + extends: [ + "@shopware-pwa/composables-next/nuxt-layer", + "@shopware-pwa/cms-base", + ], runtimeConfig: { public: { loginData: { @@ -23,6 +27,6 @@ export default defineNuxtConfig({ css: [ "@unocss/reset/tailwind-compat.css", // needed to reset styles see https://unocss.dev/guide/style-reset (@unocss/reset) ], - modules: ["@shopware-pwa/nuxt3-module", "@unocss/nuxt"], + modules: ["@unocss/nuxt", "@shopware-pwa/nuxt3-module"], devtools: { enabled: true }, }); diff --git a/examples/adyen-dropin-component/package.json b/examples/adyen-dropin-component/package.json index 58cb47817..49480a2e6 100644 --- a/examples/adyen-dropin-component/package.json +++ b/examples/adyen-dropin-component/package.json @@ -1,6 +1,6 @@ { "private": true, - "name": "adyen-dropin-playground", + "name": "example-adyen-dropin-playground", "type": "module", "scripts": { "dev": "nuxi dev", @@ -8,7 +8,9 @@ "generate": "nuxi generate" }, "devDependencies": { - "@adyen/adyen-web": "^5.53.2", + "@adyen/adyen-web": "^5.53.3", + "@shopware/api-client": "canary", + "@shopware-pwa/composables-next": "canary", "@shopware-pwa/nuxt3-module": "canary", "@shopware-pwa/types": "canary", "@unocss/nuxt": "^0.57.6", diff --git a/examples/blank-playground/src/App.vue b/examples/blank-playground/src/App.vue index 8f50002eb..7bb70fe5e 100644 --- a/examples/blank-playground/src/App.vue +++ b/examples/blank-playground/src/App.vue @@ -1,5 +1,5 @@ @@ -181,10 +181,8 @@ const srcPath = computed(() => { :key="option.id" class="items-center line-clamp-2 rounded-md text-xs font-medium text-gray-600 mt-3" > - {{ (option as PropertyGroupOption).group.name }}: - {{ (option as PropertyGroupOption).name }} - + {{ option.group.name }}: + {{ option.name }}