@shopware/composables 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -165,15 +165,9 @@ All composable functions are fully typed with TypeScript and they are registed g
|
|
|
165
165
|
|
|
166
166
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/composables/CHANGELOG.md)
|
|
167
167
|
|
|
168
|
-
### Latest changes: 1.8.
|
|
169
|
-
|
|
170
|
-
### Minor Changes
|
|
171
|
-
|
|
172
|
-
- [#1602](https://github.com/shopware/frontends/pull/1602) [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed) Thanks [@patzick](https://github.com/patzick)! - Switch from `@shopware-pwa/helpers-next` to `@shopware/helpers` package.
|
|
173
|
-
|
|
174
|
-
- [#1602](https://github.com/shopware/frontends/pull/1602) [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed) Thanks [@patzick](https://github.com/patzick)! - Switch from `@shopware-pwa/cms-base` to `@shopware/cms-base-layer` package.
|
|
168
|
+
### Latest changes: 1.8.1
|
|
175
169
|
|
|
176
170
|
### Patch Changes
|
|
177
171
|
|
|
178
|
-
- Updated dependencies [[`
|
|
179
|
-
- @shopware/
|
|
172
|
+
- Updated dependencies [[`7324620`](https://github.com/shopware/frontends/commit/7324620a3f39c1b62f7cc294192a3e8b8b336d09)]:
|
|
173
|
+
- @shopware/api-client@1.2.1
|
package/dist/index.mjs
CHANGED
|
@@ -230,7 +230,7 @@ function useBreadcrumbs(newBreadcrumbs) {
|
|
|
230
230
|
_breadcrumbs.value = [breadcrumb];
|
|
231
231
|
};
|
|
232
232
|
const buildDynamicBreadcrumbs = async (breadcrumbs) => {
|
|
233
|
-
_breadcrumbs.value = breadcrumbs.
|
|
233
|
+
_breadcrumbs.value = breadcrumbs.map((breadcrumb) => {
|
|
234
234
|
return {
|
|
235
235
|
...breadcrumb,
|
|
236
236
|
path: `/${breadcrumb.path}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/composables",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Shopware Frontends composables for Vue",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
"types"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vueuse/core": "
|
|
54
|
+
"@vueuse/core": "12.5.0",
|
|
55
55
|
"defu": "6.1.4",
|
|
56
56
|
"scule": "1.3.0",
|
|
57
57
|
"@shopware/helpers": "1.4.0",
|
|
58
|
-
"@shopware/api-client": "1.2.
|
|
58
|
+
"@shopware/api-client": "1.2.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@biomejs/biome": "1.8.3",
|
|
62
|
-
"@nuxt/kit": "3.
|
|
63
|
-
"@vitest/coverage-v8": "
|
|
62
|
+
"@nuxt/kit": "3.15.4",
|
|
63
|
+
"@vitest/coverage-v8": "3.0.5",
|
|
64
64
|
"@vue/test-utils": "2.4.6",
|
|
65
|
-
"happy-dom": "
|
|
65
|
+
"happy-dom": "17.1.0",
|
|
66
66
|
"typescript": "5.6.3",
|
|
67
67
|
"unbuild": "2.0.0",
|
|
68
|
-
"vitest": "
|
|
68
|
+
"vitest": "3.0.5",
|
|
69
69
|
"vue": "3.5.13",
|
|
70
70
|
"tsconfig": "0.0.0"
|
|
71
71
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Schemas } from "#shopware";
|
|
3
3
|
import { useSetup } from "../_test";
|
|
4
4
|
import { useBreadcrumbs } from "./useBreadcrumbs";
|
|
5
5
|
|
|
@@ -48,9 +48,9 @@ describe("useBreadcrumbs", () => {
|
|
|
48
48
|
],
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
|
-
await vm.buildDynamicBreadcrumbs(
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
await vm.buildDynamicBreadcrumbs([
|
|
52
|
+
{ path: "test" } as Schemas["Breadcrumb"],
|
|
53
|
+
]);
|
|
54
54
|
|
|
55
55
|
expect(vm.breadcrumbs[0].path).toBe("/test");
|
|
56
56
|
});
|
|
@@ -71,7 +71,7 @@ export function useBreadcrumbs(
|
|
|
71
71
|
const buildDynamicBreadcrumbs = async (
|
|
72
72
|
breadcrumbs: operations["readBreadcrumb get /breadcrumb/{id}"]["response"],
|
|
73
73
|
) => {
|
|
74
|
-
_breadcrumbs.value = breadcrumbs.
|
|
74
|
+
_breadcrumbs.value = breadcrumbs.map((breadcrumb) => {
|
|
75
75
|
// Adjust path to be compatible with the router
|
|
76
76
|
return {
|
|
77
77
|
...breadcrumb,
|