@shopware/composables 0.0.0-canary-20250116171244 → 1.7.0

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
@@ -157,7 +157,7 @@ All composable functions are fully typed with TypeScript and they are registed g
157
157
 
158
158
  - [📘 Documentation](https://frontends.shopware.com)
159
159
 
160
- - [👥 Community Slack](https://shopwarecommunity.slack.com) (`#composable-frontends`)
160
+ - [👥 Community Slack](https://shopwarecommunity.slack.com) (`#composable-frontends` & `#shopware-pwa` channel)
161
161
 
162
162
  <!-- AUTO GENERATED CHANGELOG -->
163
163
 
@@ -165,15 +165,13 @@ 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: 0.0.0-canary-20250116171244
168
+ ### Latest changes: 1.7.0
169
169
 
170
170
  ### Minor Changes
171
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.
172
+ - [#1596](https://github.com/shopware/frontends/pull/1596) [`3a79106`](https://github.com/shopware/frontends/commit/3a791065d04152255095965e3fb12ea538a22639) Thanks [@patzick](https://github.com/patzick)! - Changed `@shopware-pwa/composables` package to `@shopware/composables`. Just rename it in package.json file and run install.
175
173
 
176
174
  ### Patch Changes
177
175
 
178
- - Updated dependencies [[`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed), [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed)]:
179
- - @shopware/helpers@0.0.0-canary-20250116171244
176
+ - Updated dependencies [[`6736509`](https://github.com/shopware/frontends/commit/67365096168e28b9683cfd3b5d4c8bb3b4ae07e3)]:
177
+ - @shopware-pwa/helpers-next@1.3.0
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as vue from 'vue';
2
2
  import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, App, EffectScope, Ref } from 'vue';
3
3
  import { createAPIClient, ApiError } from '@shopware/api-client';
4
4
  import { operations as operations$1, components } from '@shopware/api-client/store-api-types';
5
- import { getListingFilters, TierPrice } from '@shopware/helpers';
5
+ import { getListingFilters, TierPrice } from '@shopware-pwa/helpers-next';
6
6
 
7
7
  type operations = operations$1;
8
8
  type Schemas = components["schemas"];
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as vue from 'vue';
2
2
  import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, App, EffectScope, Ref } from 'vue';
3
3
  import { createAPIClient, ApiError } from '@shopware/api-client';
4
4
  import { operations as operations$1, components } from '@shopware/api-client/store-api-types';
5
- import { getListingFilters, TierPrice } from '@shopware/helpers';
5
+ import { getListingFilters, TierPrice } from '@shopware-pwa/helpers-next';
6
6
 
7
7
  type operations = operations$1;
8
8
  type Schemas = components["schemas"];
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { pascalCase } from 'scule';
2
2
  import { computed, effectScope, reactive, markRaw, inject, ref, provide, unref, onMounted, watch, resolveComponent } from 'vue';
3
- import { urlIsAbsolute, relativeUrlSlash, getSrcSetForMedia, getMainImageUrl, getTranslatedProperty, getListingFilters, getProductTierPrices, buildUrlPrefix } from '@shopware/helpers';
3
+ import { urlIsAbsolute, relativeUrlSlash, getSrcSetForMedia, getMainImageUrl, getTranslatedProperty, getListingFilters, getProductTierPrices, buildUrlPrefix } from '@shopware-pwa/helpers-next';
4
4
  import { ApiClientError } from '@shopware/api-client';
5
5
  import { createSharedComposable, injectLocal, provideLocal, createInjectionState, syncRefs } from '@vueuse/core';
6
6
  import { defu } from 'defu';
@@ -2678,7 +2678,7 @@ function resolveCmsComponent(content) {
2678
2678
  }
2679
2679
  function getDefaultApiParams() {
2680
2680
  console.error(
2681
- "[@shopware/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release."
2681
+ "[@shopware-pwa/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release."
2682
2682
  );
2683
2683
  return {};
2684
2684
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware/composables",
3
- "version": "0.0.0-canary-20250116171244",
3
+ "version": "1.7.0",
4
4
  "description": "Shopware Frontends composables for Vue",
5
5
  "author": "Shopware",
6
6
  "repository": {
@@ -54,8 +54,8 @@
54
54
  "@vueuse/core": "11.2.0",
55
55
  "defu": "6.1.4",
56
56
  "scule": "1.3.0",
57
- "@shopware/helpers": "0.0.0-canary-20250116171244",
58
- "@shopware/api-client": "1.2.0"
57
+ "@shopware/api-client": "1.2.0",
58
+ "@shopware-pwa/helpers-next": "1.3.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@biomejs/biome": "1.8.3",
@@ -2,7 +2,7 @@ import {
2
2
  getSrcSetForMedia,
3
3
  relativeUrlSlash,
4
4
  urlIsAbsolute,
5
- } from "@shopware/helpers";
5
+ } from "@shopware-pwa/helpers-next";
6
6
  import { computed } from "vue";
7
7
  import type {
8
8
  AnchorHTMLAttributes,
package/src/index.test.ts CHANGED
@@ -21,7 +21,7 @@ describe("resolveCmsComponent", () => {
21
21
  const result = getDefaultApiParams();
22
22
  expect(result).toEqual({});
23
23
  expect(console.error).toHaveBeenCalledWith(
24
- "[@shopware/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release.",
24
+ "[@shopware-pwa/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release.",
25
25
  );
26
26
  });
27
27
 
package/src/index.ts CHANGED
@@ -105,7 +105,7 @@ export function getDefaultApiParams(): {
105
105
  [composableName: string]: unknown;
106
106
  } {
107
107
  console.error(
108
- "[@shopware/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release.",
108
+ "[@shopware-pwa/composables] `getDefaultApiParams` is deprecated and will be removed in the next major release.",
109
109
  );
110
110
  return {};
111
111
  }
@@ -1,3 +1,10 @@
1
+ // import type {
2
+ // ProductResponse as LegacyProductResponse,
3
+ // LandingPage,
4
+ // Category,
5
+ // CmsPage,
6
+ // } from "@shopware-pwa/types";
7
+
1
8
  export * from "./cmsBlockTypes";
2
9
  export * from "./cmsElementTypes";
3
10
  export * from "./cmsSectionTypes";
@@ -1,4 +1,4 @@
1
- import { getMainImageUrl } from "@shopware/helpers";
1
+ import { getMainImageUrl } from "@shopware-pwa/helpers-next";
2
2
  import { computed } from "vue";
3
3
  import type { ComputedRef, Ref } from "vue";
4
4
  import { useCart } from "#imports";
@@ -1,4 +1,4 @@
1
- import { getTranslatedProperty } from "@shopware/helpers";
1
+ import { getTranslatedProperty } from "@shopware-pwa/helpers-next";
2
2
  import { computed } from "vue";
3
3
  import type { ComputedRef } from "vue";
4
4
  import type { Schemas } from "#shopware";
@@ -1,4 +1,4 @@
1
- import { urlIsAbsolute } from "@shopware/helpers";
1
+ import { urlIsAbsolute } from "@shopware-pwa/helpers-next";
2
2
  import type { Ref } from "vue";
3
3
  import { useContext, useShopwareContext } from "#imports";
4
4
  import type { Schemas, operations } from "#shopware";
@@ -1,4 +1,4 @@
1
- import { getListingFilters } from "@shopware/helpers";
1
+ import { getListingFilters } from "@shopware-pwa/helpers-next";
2
2
  import { createInjectionState, createSharedComposable } from "@vueuse/core";
3
3
  import { computed, inject, provide, ref } from "vue";
4
4
  import type { ComputedRef, Ref } from "vue";
@@ -1,4 +1,4 @@
1
- import { getTranslatedProperty } from "@shopware/helpers";
1
+ import { getTranslatedProperty } from "@shopware-pwa/helpers-next";
2
2
  import { computed, ref } from "vue";
3
3
  import type { ComputedRef, Ref } from "vue";
4
4
  import { useProduct, useShopwareContext } from "#imports";
@@ -1,5 +1,5 @@
1
- import { getProductTierPrices } from "@shopware/helpers";
2
- import type { TierPrice } from "@shopware/helpers";
1
+ import { getProductTierPrices } from "@shopware-pwa/helpers-next";
2
+ import type { TierPrice } from "@shopware-pwa/helpers-next";
3
3
  import { computed } from "vue";
4
4
  import type { ComputedRef, Ref } from "vue";
5
5
  import type { Schemas } from "#shopware";
@@ -1,9 +1,9 @@
1
- import { buildUrlPrefix } from "@shopware/helpers";
1
+ import { buildUrlPrefix } from "@shopware-pwa/helpers-next";
2
2
  import { describe, expect, it, vi } from "vitest";
3
3
  import { useSetup } from "../_test";
4
4
  import { useUrlResolver } from "./useUrlResolver";
5
5
 
6
- vi.mock("@shopware/helpers", async () => {
6
+ vi.mock("@shopware-pwa/helpers-next", async () => {
7
7
  return {
8
8
  buildUrlPrefix: vi.fn(),
9
9
  };
@@ -1,4 +1,4 @@
1
- import { buildUrlPrefix } from "@shopware/helpers";
1
+ import { buildUrlPrefix } from "@shopware-pwa/helpers-next";
2
2
  import { inject } from "vue";
3
3
 
4
4
  export function useUrlResolver() {