@shopware/composables 1.13.0 → 1.14.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 +28 -36
- package/dist/index.d.mts +93 -9
- package/dist/index.d.ts +93 -9
- package/dist/index.mjs +37 -14
- package/package.json +9 -8
- package/src/cms/useCmsElementConfig.test.ts +38 -0
- package/src/cms/useCmsElementConfig.ts +10 -5
- package/src/index.test.ts +19 -1
- package/src/index.ts +9 -4
- package/src/types/cmsBlockTypes.ts +12 -0
- package/src/types/cmsElementTypes.ts +52 -0
- package/src/useAddToCart/useAddToCart.test.ts +17 -17
- package/src/useCategorySearch/useCategorySearch.test.ts +2 -2
- package/src/useCategorySearch/useCategorySearch.ts +3 -1
- package/src/useCmsBlock/useCmsBlock.test.ts +47 -13
- package/src/useCmsBlock/useCmsBlock.ts +17 -7
- package/src/useCmsSection/useCmsSection.test.ts +48 -5
- package/src/useCmsSection/useCmsSection.ts +11 -5
- package/src/useInternationalization/useInternationalization.test.ts +154 -0
- package/src/useInternationalization/useInternationalization.ts +21 -2
- package/src/useNotifications/useNotifications.test.ts +19 -0
- package/src/useNotifications/useNotifications.ts +14 -1
- package/src/useUser/useUser.test.ts +24 -0
- package/src/useUser/useUser.ts +2 -0
package/README.md
CHANGED
|
@@ -166,60 +166,52 @@ All composable functions are fully typed with TypeScript and they are registed g
|
|
|
166
166
|
|
|
167
167
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/composables/CHANGELOG.md)
|
|
168
168
|
|
|
169
|
-
### Latest changes: 1.
|
|
169
|
+
### Latest changes: 1.14.0
|
|
170
170
|
|
|
171
171
|
### Minor Changes
|
|
172
172
|
|
|
173
|
-
- [#
|
|
173
|
+
- [#2785](https://github.com/shopware/frontends/pull/2785) [`74a477b`](https://github.com/shopware/frontends/commit/74a477bfa88e3c518d3a0336e4d301c823122ba8) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - `useCmsElementConfig` accepts a `ref` or a getter. `getConfigValue` reads the element on every call, so a component that passes `() => props.content` follows a new `content` instead of the one it was set up with. Passing a plain object works as before.
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
- [#2785](https://github.com/shopware/frontends/pull/2785) [`74a477b`](https://github.com/shopware/frontends/commit/74a477bfa88e3c518d3a0336e4d301c823122ba8) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Add the `CmsBlockCategoryHeading`, `CmsBlockVideo`, `CmsBlockAppRenderer`, `CmsElementCategoryName`, `CmsElementVideo` and `MediaDisplayMode` types.
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
- [#2774](https://github.com/shopware/frontends/pull/2774) [`5961f55`](https://github.com/shopware/frontends/commit/5961f55b9f7cebad626cc073ae0bf857aa26f91b) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Let the CMS tree lookups follow a changing `content`, and fix `resolveCmsComponent().isResolved`
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
**`useCmsSection` and `useCmsBlock` accept a `ref` or a getter.** Both took a plain object and closed over it, so `getPositionContent()` and `getSlotContent()` kept reading the tree captured at setup: a component receiving a new `content` prop had to remount to see it, and calling the function again did not help. Both now accept `MaybeRefOrGetter` and resolve it with `toValue()` on every call.
|
|
180
180
|
|
|
181
|
-
|
|
181
|
+
Passing a plain object still works exactly as before, so nothing has to change. To benefit, pass a getter and read the lookups through a `computed`:
|
|
182
182
|
|
|
183
183
|
```ts
|
|
184
|
-
const {
|
|
185
|
-
|
|
184
|
+
const { getSlotContent } = useCmsBlock(() => props.content);
|
|
185
|
+
const leftContent = computed(() => getSlotContent("left"));
|
|
186
|
+
```
|
|
186
187
|
|
|
187
|
-
|
|
188
|
+
The returned `section` and `block` are still the value read when the composable was called, so they do not follow a replacement — use the source you passed in when you need that.
|
|
188
189
|
|
|
189
|
-
|
|
190
|
-
comment: "Too expensive",
|
|
191
|
-
lineItemId,
|
|
192
|
-
versionId,
|
|
193
|
-
});
|
|
194
|
-
```
|
|
190
|
+
**`resolveCmsComponent().isResolved` now means resolved.** It compared the resolved value with `content.type`, while Vue's `resolveComponent` returns the _component name_ when nothing is registered — two strings that never match, so `isResolved` was `true` even when nothing resolved, and code guarding a fallback with `!isResolved` never ran. It is now derived from `resolvedComponent !== undefined`. Check `resolvedComponent` directly if you want the component itself.
|
|
195
191
|
|
|
196
|
-
|
|
192
|
+
The `resolved` field, which appears only when resolving throws, is now marked `@deprecated`. It always equals `isResolved`, so read that instead.
|
|
197
193
|
|
|
198
|
-
`
|
|
194
|
+
Note what is not fixed here: `getSlotContent()` still returns `undefined` at runtime for a slot the block does not carry, while its return type promises a value. The signature stays as it is because correcting it would be a breaking type change; the JSDoc now says so, and callers should keep guarding on the result.
|
|
199
195
|
|
|
200
|
-
|
|
201
|
-
const { declineQuoteWithComment, createDraftQuoteVersion } =
|
|
202
|
-
useB2bQuoteManagement();
|
|
196
|
+
### Patch Changes
|
|
203
197
|
|
|
204
|
-
|
|
198
|
+
- [#2731](https://github.com/shopware/frontends/pull/2731) [`46d6daa`](https://github.com/shopware/frontends/commit/46d6daade81e3d9e443f3badfeba2ca0e2751477) Thanks [@patzick](https://github.com/patzick)! - Add an optional notification action (label + link) so add-to-cart toasts can offer a "View cart" shortcut, and keep those toasts visible a little longer.
|
|
205
199
|
|
|
206
|
-
|
|
207
|
-
comment: "Too expensive",
|
|
208
|
-
lineItemId,
|
|
209
|
-
versionId,
|
|
210
|
-
});
|
|
211
|
-
```
|
|
200
|
+
- [#2799](https://github.com/shopware/frontends/pull/2799) [`7dbca8b`](https://github.com/shopware/frontends/commit/7dbca8bf8bca1225b365bc03e4dbc07d3764c2e1) Thanks [@mkucmus](https://github.com/mkucmus)! - `useCategorySearch().search()` with `withCmsAssociations: true` now requests the CMS associations. Before, it nested them one level too deep, so the backend ignored them.
|
|
212
201
|
|
|
213
|
-
|
|
202
|
+
- [#2724](https://github.com/shopware/frontends/pull/2724) [`c78188a`](https://github.com/shopware/frontends/commit/c78188ac6c95ae19b070f5ea3361a60f21dff281) Thanks [@patzick](https://github.com/patzick)! - Fall back `getStorefrontUrl()` to a sales channel domain
|
|
203
|
+
|
|
204
|
+
`useUser().register()` injects `storefrontUrl` from `getStorefrontUrl()`. Shopware rejects that value unless it matches a **Sales Channel → Domains** entry, so guest checkout against the public demo (`devStorefrontUrl` pointing at the starter Vercel host) never reached `POST /checkout/order`.
|
|
205
|
+
|
|
206
|
+
`getStorefrontUrl()` now uses the preferred URL when it is one of the current sales channel domains, and otherwise the domain for the active language (or the first configured domain).
|
|
207
|
+
|
|
208
|
+
- [#2700](https://github.com/shopware/frontends/pull/2700) [`0df4c17`](https://github.com/shopware/frontends/commit/0df4c17b18ec38fc4d0c33f1cb6396f8f532a65d) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Refresh the cart after `register()`
|
|
214
209
|
|
|
215
|
-
|
|
210
|
+
`useUser().register()` changed the session context without refreshing the cart, while `login()` and `logout()` both did. Registration is the first point at which the backend learns the customer's billing country, which drives tax rates, shipping surcharges and customer-group prices, so the cart totals held in `useCart()` could stay at their pre-registration values while the order was placed at the recalculated ones.
|
|
216
211
|
|
|
217
|
-
|
|
218
|
-
- `useListing`: `getSortingOrders` is typed as `Schemas["ProductListingResult"]["availableSortings"]` instead of the removed `Schemas["ProductSorting"][]`.
|
|
219
|
-
- `useProductSearch`: the `associations` option is typed as `Partial<Schemas["Associations"]>` instead of the removed `Schemas["Association"]`.
|
|
212
|
+
`register()` now awaits `refreshCart()` after `refreshSessionContext()`, so a caller that awaits `register()` cannot observe the pre-registration totals afterwards. Note this makes `register()` resolve slightly later than before, and a failing cart refresh now rejects `register()` even though the customer was created — the same property `refreshSessionContext()` on the preceding line already had.
|
|
220
213
|
|
|
221
|
-
|
|
214
|
+
`login()` and `logout()` still call `refreshCart()` without awaiting it and are unchanged here.
|
|
222
215
|
|
|
223
|
-
- Updated dependencies [[`
|
|
224
|
-
- @shopware/
|
|
225
|
-
- @shopware/api-client@1.6.0
|
|
216
|
+
- Updated dependencies [[`44ece9d`](https://github.com/shopware/frontends/commit/44ece9dac2e4d0248c2270f7eff496c258632f5b), [`4b43e64`](https://github.com/shopware/frontends/commit/4b43e64a8d78be6eca1f8d9c24140e046193af41)]:
|
|
217
|
+
- @shopware/api-client@1.7.0
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, App, EffectScope, Ref } from 'vue';
|
|
2
|
+
import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, MaybeRefOrGetter, App, EffectScope, Ref } from 'vue';
|
|
3
3
|
import { createAPIClient, ApiError } from '@shopware/api-client';
|
|
4
4
|
import { components, operations as operations$1 } from '@shopware/api-client/store-api-types';
|
|
5
5
|
import * as _shopware_api_client_api_types from '@shopware/api-client/api-types';
|
|
@@ -33,6 +33,7 @@ type CmsBlockImageHighlightRow = BlockType<THREE_COLUMNS>;
|
|
|
33
33
|
type CmsBlockImageSimpleGrid = BlockType<"left-top" | "left-bottom" | "right">;
|
|
34
34
|
type CmsBlockImageSlider = BlockType<"imageSlider">;
|
|
35
35
|
type CmsBlockImageGallery = BlockType<"imageGallery">;
|
|
36
|
+
type CmsBlockVideo = BlockType<"video">;
|
|
36
37
|
type CmsBlockYoutubeVideo = BlockType<"video">;
|
|
37
38
|
type CmsBlockVimeoVideo = BlockType<"video">;
|
|
38
39
|
type CmsBlockImageText = BlockType<TWO_COLUMNS>;
|
|
@@ -44,6 +45,7 @@ type CmsBlockImageTextBubble = BlockType<"left-image" | "left-text" | "center-im
|
|
|
44
45
|
type CmsBlockTextOnImage = BlockType<"content">;
|
|
45
46
|
type CmsBlockSidebarFilter = BlockType<"content">;
|
|
46
47
|
type CmsBlockCategoryNavigation = BlockType<"content">;
|
|
48
|
+
type CmsBlockCategoryHeading = BlockType<"content">;
|
|
47
49
|
type CmsBlockProductHeading = BlockType<TWO_COLUMNS>;
|
|
48
50
|
type CmsBlockProductThreeColumn = BlockType<THREE_COLUMNS>;
|
|
49
51
|
type CmsBlockProductListing = BlockType<"content">;
|
|
@@ -54,10 +56,20 @@ type CmsBlockCrossSelling = BlockType<"content">;
|
|
|
54
56
|
type CmsBlockForm = BlockType<"content">;
|
|
55
57
|
type CmsBlockHtml = BlockType<"content">;
|
|
56
58
|
type CmsBlockImageGalleryBig = BlockType<"imageGallery">;
|
|
59
|
+
type CmsBlockAppRenderer = BlockType<string> & {
|
|
60
|
+
type: "app-renderer";
|
|
61
|
+
customFields?: {
|
|
62
|
+
appBlockName?: string;
|
|
63
|
+
slotLayout?: {
|
|
64
|
+
grid?: string | null;
|
|
65
|
+
};
|
|
66
|
+
} | null;
|
|
67
|
+
};
|
|
57
68
|
|
|
58
69
|
type SourceType = "static" | "mapped";
|
|
59
70
|
type Position = "left" | "center" | "right";
|
|
60
71
|
type DisplayMode = Exclude<CSSProperties["objectFit"], undefined> | "standard";
|
|
72
|
+
type MediaDisplayMode = "standard" | "stretch" | "cover";
|
|
61
73
|
type BoxLayout = "standard" | "image" | "minimal";
|
|
62
74
|
type VerticalAlign = "flex-start" | "center" | "flex-end" | "";
|
|
63
75
|
type ElementConfig<VALUE_TYPE> = {
|
|
@@ -171,6 +183,36 @@ type CmsElementImageGallery = Omit<Schemas["CmsSlot"], "config"> & {
|
|
|
171
183
|
} | Schemas["ProductMedia"]>;
|
|
172
184
|
};
|
|
173
185
|
};
|
|
186
|
+
type VideoElementConfig = {
|
|
187
|
+
media: ElementConfig<string | null>;
|
|
188
|
+
displayMode: ElementConfig<MediaDisplayMode>;
|
|
189
|
+
minHeight: ElementConfig<string | null>;
|
|
190
|
+
verticalAlign: ElementConfig<VerticalAlign | null>;
|
|
191
|
+
horizontalAlign: ElementConfig<VerticalAlign | null>;
|
|
192
|
+
ariaLabel: ElementConfig<string | null>;
|
|
193
|
+
autoPlay: ElementConfig<boolean>;
|
|
194
|
+
muted: ElementConfig<boolean>;
|
|
195
|
+
loop: ElementConfig<boolean>;
|
|
196
|
+
playsInline: ElementConfig<boolean>;
|
|
197
|
+
showControls: ElementConfig<boolean>;
|
|
198
|
+
showCover: ElementConfig<boolean>;
|
|
199
|
+
};
|
|
200
|
+
type CmsElementVideo = Omit<Schemas["CmsSlot"], "config"> & {
|
|
201
|
+
type: "video";
|
|
202
|
+
config: VideoElementConfig;
|
|
203
|
+
data: {
|
|
204
|
+
mediaId: string | null;
|
|
205
|
+
url: string | null;
|
|
206
|
+
newTab: boolean | null;
|
|
207
|
+
ariaLabel: string | null;
|
|
208
|
+
apiAlias: "cms_video";
|
|
209
|
+
media: (Schemas["Media"] & {
|
|
210
|
+
extensions?: {
|
|
211
|
+
videoCoverMedia?: Schemas["Media"];
|
|
212
|
+
};
|
|
213
|
+
}) | null;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
174
216
|
type YouTubeVideoElementConfig = {
|
|
175
217
|
end: ElementConfig<string>;
|
|
176
218
|
url: ElementConfig<string>;
|
|
@@ -359,6 +401,18 @@ type CmsElementProductName = Omit<Schemas["CmsSlot"], "config"> & {
|
|
|
359
401
|
config: TextElementConfig;
|
|
360
402
|
};
|
|
361
403
|
};
|
|
404
|
+
type CategoryNameElementConfig = {
|
|
405
|
+
content: ElementConfig<string>;
|
|
406
|
+
verticalAlign?: ElementConfig<VerticalAlign | null>;
|
|
407
|
+
};
|
|
408
|
+
type CmsElementCategoryName = Omit<Schemas["CmsSlot"], "config"> & {
|
|
409
|
+
type: "category-name";
|
|
410
|
+
config: CategoryNameElementConfig;
|
|
411
|
+
data: {
|
|
412
|
+
content: string | null;
|
|
413
|
+
apiAlias: "cms_text";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
362
416
|
type CmsElementManufacturerLogo = Omit<Schemas["CmsSlot"], "config"> & {
|
|
363
417
|
type: "manufacturer-logo";
|
|
364
418
|
config: ImageElementConfig;
|
|
@@ -411,11 +465,14 @@ declare function useCmsElementImage(element: CmsElementImage | CmsElementManufac
|
|
|
411
465
|
/**
|
|
412
466
|
* Composable to get cms element config
|
|
413
467
|
*
|
|
468
|
+
* `getConfigValue` reads the element on every call, so it follows a `ref` or
|
|
469
|
+
* getter passed as `element`.
|
|
470
|
+
*
|
|
414
471
|
* @category CMS (Shopping Experiences)
|
|
415
472
|
*/
|
|
416
473
|
declare function useCmsElementConfig<T extends Omit<Schemas["CmsSlot"], "config"> & {
|
|
417
474
|
config: Record<string, ElementConfig<unknown> | undefined>;
|
|
418
|
-
}>(element: T): {
|
|
475
|
+
}>(element: MaybeRefOrGetter<T>): {
|
|
419
476
|
getConfigValue: <ELEMENT_CONFIG extends keyof T["config"]>(key: ELEMENT_CONFIG) => NonNullable<T["config"][ELEMENT_CONFIG]>["value"];
|
|
420
477
|
};
|
|
421
478
|
|
|
@@ -856,11 +913,18 @@ declare function useCheckout(): UseCheckoutReturn;
|
|
|
856
913
|
type ArrayElement$1<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
857
914
|
type UseCmsBlockReturn = {
|
|
858
915
|
/**
|
|
859
|
-
* Cms block content
|
|
916
|
+
* Cms block content, as it was when the composable was called.
|
|
860
917
|
*/
|
|
861
918
|
block: Schemas["CmsBlock"];
|
|
862
919
|
/**
|
|
863
|
-
* Get slot content by slot name (identifier)
|
|
920
|
+
* Get slot content by slot name (identifier).
|
|
921
|
+
*
|
|
922
|
+
* Reads the block on every call, so it follows a `ref` or getter passed as
|
|
923
|
+
* `content`.
|
|
924
|
+
*
|
|
925
|
+
* A block does not have to carry every slot its layout allows: the lookup
|
|
926
|
+
* returns `undefined` at runtime for a slot that is not there, which the
|
|
927
|
+
* return type does not express yet. Guard on the result.
|
|
864
928
|
* @example getSlotContent("main")
|
|
865
929
|
*/
|
|
866
930
|
getSlotContent(slotName: string): ArrayElement$1<Schemas["CmsBlock"]["slots"]>;
|
|
@@ -870,7 +934,7 @@ type UseCmsBlockReturn = {
|
|
|
870
934
|
* @public
|
|
871
935
|
* @category CMS (Shopping Experiences)
|
|
872
936
|
*/
|
|
873
|
-
declare function useCmsBlock<BLOCK_TYPE extends Schemas["CmsBlock"]>(content: BLOCK_TYPE): UseCmsBlockReturn;
|
|
937
|
+
declare function useCmsBlock<BLOCK_TYPE extends Schemas["CmsBlock"]>(content: MaybeRefOrGetter<BLOCK_TYPE>): UseCmsBlockReturn;
|
|
874
938
|
|
|
875
939
|
type UseCmsMetaReturn = {
|
|
876
940
|
/**
|
|
@@ -894,11 +958,14 @@ declare function useCmsMeta(entity: Schemas["Category"] | Schemas["Product"] | S
|
|
|
894
958
|
type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
895
959
|
type UseCmsSectionType = {
|
|
896
960
|
/**
|
|
897
|
-
* CMS section
|
|
961
|
+
* CMS section, as it was when the composable was called.
|
|
898
962
|
*/
|
|
899
963
|
section: Schemas["CmsSection"];
|
|
900
964
|
/**
|
|
901
|
-
*
|
|
965
|
+
* Blocks of the section placed on the given position.
|
|
966
|
+
*
|
|
967
|
+
* Reads the section on every call, so it follows a `ref` or getter passed as
|
|
968
|
+
* `content`.
|
|
902
969
|
*/
|
|
903
970
|
getPositionContent(position: ArrayElement<Schemas["CmsSection"]["blocks"]>["sectionPosition"]): Array<Schemas["CmsBlock"]>;
|
|
904
971
|
};
|
|
@@ -907,7 +974,7 @@ type UseCmsSectionType = {
|
|
|
907
974
|
* @public
|
|
908
975
|
* @category CMS (Shopping Experiences)
|
|
909
976
|
*/
|
|
910
|
-
declare function useCmsSection<SECTION_TYPE extends Schemas["CmsSection"]>(content: SECTION_TYPE): UseCmsSectionType;
|
|
977
|
+
declare function useCmsSection<SECTION_TYPE extends Schemas["CmsSection"]>(content: MaybeRefOrGetter<SECTION_TYPE>): UseCmsSectionType;
|
|
911
978
|
|
|
912
979
|
/**
|
|
913
980
|
* @category CMS (Shopping Experiences)
|
|
@@ -1426,6 +1493,15 @@ type UseNewsletterReturn = {
|
|
|
1426
1493
|
declare function useNewsletter(): UseNewsletterReturn;
|
|
1427
1494
|
|
|
1428
1495
|
type NotificationType = "info" | "warning" | "success" | "danger";
|
|
1496
|
+
/**
|
|
1497
|
+
* Optional CTA rendered next to a notification message (e.g. "View cart").
|
|
1498
|
+
*
|
|
1499
|
+
* @private
|
|
1500
|
+
*/
|
|
1501
|
+
type NotificationAction = {
|
|
1502
|
+
label: string;
|
|
1503
|
+
to: string;
|
|
1504
|
+
};
|
|
1429
1505
|
/**
|
|
1430
1506
|
* @private
|
|
1431
1507
|
*/
|
|
@@ -1433,6 +1509,7 @@ type Notification = {
|
|
|
1433
1509
|
type: NotificationType;
|
|
1434
1510
|
message: string;
|
|
1435
1511
|
id: number;
|
|
1512
|
+
action?: NotificationAction;
|
|
1436
1513
|
};
|
|
1437
1514
|
/**
|
|
1438
1515
|
* @private
|
|
@@ -1444,6 +1521,7 @@ type NotificationOptions = {
|
|
|
1444
1521
|
type?: NotificationType;
|
|
1445
1522
|
timeout?: number;
|
|
1446
1523
|
persistent?: boolean;
|
|
1524
|
+
action?: NotificationAction;
|
|
1447
1525
|
};
|
|
1448
1526
|
/**
|
|
1449
1527
|
* @public
|
|
@@ -2385,12 +2463,18 @@ declare function resolveCmsComponent(content: Schemas["CmsSection"] | Schemas["C
|
|
|
2385
2463
|
componentNameToResolve: never;
|
|
2386
2464
|
isResolved: boolean;
|
|
2387
2465
|
resolvedComponent: vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | undefined;
|
|
2466
|
+
/**
|
|
2467
|
+
* @deprecated Use `isResolved` instead. Kept so the error shape is unchanged.
|
|
2468
|
+
*/
|
|
2388
2469
|
resolved?: undefined;
|
|
2389
2470
|
error?: undefined;
|
|
2390
2471
|
} | {
|
|
2391
2472
|
componentName: string;
|
|
2392
2473
|
componentNameToResolve: never;
|
|
2393
2474
|
resolvedComponent: undefined;
|
|
2475
|
+
/**
|
|
2476
|
+
* @deprecated Use `isResolved` instead. Kept so the error shape is unchanged.
|
|
2477
|
+
*/
|
|
2394
2478
|
resolved: boolean;
|
|
2395
2479
|
isResolved: boolean;
|
|
2396
2480
|
error: string;
|
|
@@ -2400,4 +2484,4 @@ declare function getDefaultApiParams(): {
|
|
|
2400
2484
|
};
|
|
2401
2485
|
|
|
2402
2486
|
export { createCategoryListingContext, createListingComposable, createShopwareContext, getDefaultApiParams, resolveCmsComponent, useAddToCart, useAddress, useB2bQuoteManagement, useBreadcrumbs, useCart, useCartErrorParamsResolver, useCartFunction, useCartItem, useCartNotification, useCategory, useCategoryListing, useCategorySearch, useCheckout, useCmsBlock, useCmsElementConfig, useCmsElementImage, useCmsMeta, useCmsSection, useCmsTranslations, useContext, useCountries, useCustomerOrders, useCustomerPassword, useDefaultOrderAssociations, useInternationalization, useLandingSearch, useListing, useLocalWishlist, useNavigation, useNavigationContext, useNavigationSearch, useNewsletter, useNotifications, useOrderDetails, useOrderPayment, usePrice, useProduct, useProductAssociations, useProductConfigurator, useProductPrice, useProductReviews, useProductSearch, useProductSearchListing, useProductSearchSuggest, useProductWishlist, useSalutations, useSessionContext, useShopwareContext, useSyncWishlist, useUrlResolver, useUser, useWishlist };
|
|
2403
|
-
export type { BoxLayout, Breadcrumb, ChangePaymentShippingMethodParams, CmsBlockCategoryNavigation, CmsBlockCenterText, CmsBlockCrossSelling, CmsBlockForm, CmsBlockGalleryBuybox, CmsBlockHtml, CmsBlockImage, CmsBlockImageBubbleRow, CmsBlockImageCover, CmsBlockImageFourColumn, CmsBlockImageGallery, CmsBlockImageGalleryBig, CmsBlockImageHighlightRow, CmsBlockImageSimpleGrid, CmsBlockImageSlider, CmsBlockImageText, CmsBlockImageTextBubble, CmsBlockImageTextCover, CmsBlockImageTextGallery, CmsBlockImageTextRow, CmsBlockImageThreeColumn, CmsBlockImageThreeCover, CmsBlockImageTwoColumn, CmsBlockProductDescriptionReviews, CmsBlockProductHeading, CmsBlockProductListing, CmsBlockProductSlider, CmsBlockProductThreeColumn, CmsBlockSidebarFilter, CmsBlockText, CmsBlockTextHero, CmsBlockTextOnImage, CmsBlockTextTeaser, CmsBlockTextTeaserSection, CmsBlockTextThreeColumn, CmsBlockTextTwoColumn, CmsBlockVimeoVideo, CmsBlockYoutubeVideo, CmsElementBuyBox, CmsElementCategoryNavigation, CmsElementCrossSelling, CmsElementForm, CmsElementHtml, CmsElementImage, CmsElementImageGallery, CmsElementImageSlider, CmsElementManufacturerLogo, CmsElementProductBox, CmsElementProductDescriptionReviews, CmsElementProductListing, CmsElementProductName, CmsElementProductSlider, CmsElementSidebarFilter, CmsElementText, CmsElementVimeoVideo, CmsElementYoutubeVideo, CmsSectionBlock, CmsSectionDefault, CmsSectionSidebar, DeclineQuoteParams, DisplayMode, ElementConfig, ErrorObjectParam, ImageContainerAttrs, ListingType, Notification, NotificationOptions, Position, RouteObject, ShopwareContext, ShortcutFilterParam, SliderElementConfig, SourceType, UseAddToCartReturn, UseAddressReturn, UseBreadcrumbsReturn, UseCartErrorParamsResolver, UseCartItemReturn, UseCartReturn, UseCategoryReturn, UseCategorySearchReturn, UseCheckoutReturn, UseCmsBlockReturn, UseCmsElementImage, UseCmsMetaReturn, UseCountriesReturn, UseCustomerOrdersReturn, UseCustomerPasswordReturn, UseInternationalizationReturn, UseLandingSearchReturn, UseListingReturn, UseLocalWishlistReturn, UseNavigationContextReturn, UseNavigationReturn, UseNavigationSearchReturn, UseNewsletterReturn, UseNotificationsReturn, UseOrderDetailsReturn, UseOrderPaymentReturn, UsePriceReturn, UseProductAssociationsReturn, UseProductConfiguratorReturn, UseProductPriceReturn, UseProductReturn, UseProductReviewsReturn, UseProductSearchReturn, UseProductSearchSuggestReturn, UseProductWishlistReturn, UseSalutationsReturn, UseSessionContextReturn, UseSyncWishlistReturn, UseUserReturn, UseWishlistReturn, VerticalAlign, useCartNotificationReturn };
|
|
2487
|
+
export type { BoxLayout, Breadcrumb, ChangePaymentShippingMethodParams, CmsBlockAppRenderer, CmsBlockCategoryHeading, CmsBlockCategoryNavigation, CmsBlockCenterText, CmsBlockCrossSelling, CmsBlockForm, CmsBlockGalleryBuybox, CmsBlockHtml, CmsBlockImage, CmsBlockImageBubbleRow, CmsBlockImageCover, CmsBlockImageFourColumn, CmsBlockImageGallery, CmsBlockImageGalleryBig, CmsBlockImageHighlightRow, CmsBlockImageSimpleGrid, CmsBlockImageSlider, CmsBlockImageText, CmsBlockImageTextBubble, CmsBlockImageTextCover, CmsBlockImageTextGallery, CmsBlockImageTextRow, CmsBlockImageThreeColumn, CmsBlockImageThreeCover, CmsBlockImageTwoColumn, CmsBlockProductDescriptionReviews, CmsBlockProductHeading, CmsBlockProductListing, CmsBlockProductSlider, CmsBlockProductThreeColumn, CmsBlockSidebarFilter, CmsBlockText, CmsBlockTextHero, CmsBlockTextOnImage, CmsBlockTextTeaser, CmsBlockTextTeaserSection, CmsBlockTextThreeColumn, CmsBlockTextTwoColumn, CmsBlockVideo, CmsBlockVimeoVideo, CmsBlockYoutubeVideo, CmsElementBuyBox, CmsElementCategoryName, CmsElementCategoryNavigation, CmsElementCrossSelling, CmsElementForm, CmsElementHtml, CmsElementImage, CmsElementImageGallery, CmsElementImageSlider, CmsElementManufacturerLogo, CmsElementProductBox, CmsElementProductDescriptionReviews, CmsElementProductListing, CmsElementProductName, CmsElementProductSlider, CmsElementSidebarFilter, CmsElementText, CmsElementVideo, CmsElementVimeoVideo, CmsElementYoutubeVideo, CmsSectionBlock, CmsSectionDefault, CmsSectionSidebar, DeclineQuoteParams, DisplayMode, ElementConfig, ErrorObjectParam, ImageContainerAttrs, ListingType, MediaDisplayMode, Notification, NotificationAction, NotificationOptions, Position, RouteObject, ShopwareContext, ShortcutFilterParam, SliderElementConfig, SourceType, UseAddToCartReturn, UseAddressReturn, UseBreadcrumbsReturn, UseCartErrorParamsResolver, UseCartItemReturn, UseCartReturn, UseCategoryReturn, UseCategorySearchReturn, UseCheckoutReturn, UseCmsBlockReturn, UseCmsElementImage, UseCmsMetaReturn, UseCountriesReturn, UseCustomerOrdersReturn, UseCustomerPasswordReturn, UseInternationalizationReturn, UseLandingSearchReturn, UseListingReturn, UseLocalWishlistReturn, UseNavigationContextReturn, UseNavigationReturn, UseNavigationSearchReturn, UseNewsletterReturn, UseNotificationsReturn, UseOrderDetailsReturn, UseOrderPaymentReturn, UsePriceReturn, UseProductAssociationsReturn, UseProductConfiguratorReturn, UseProductPriceReturn, UseProductReturn, UseProductReviewsReturn, UseProductSearchReturn, UseProductSearchSuggestReturn, UseProductWishlistReturn, UseSalutationsReturn, UseSessionContextReturn, UseSyncWishlistReturn, UseUserReturn, UseWishlistReturn, VerticalAlign, useCartNotificationReturn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, App, EffectScope, Ref } from 'vue';
|
|
2
|
+
import { CSSProperties, ComputedRef, AnchorHTMLAttributes, ImgHTMLAttributes, MaybeRefOrGetter, App, EffectScope, Ref } from 'vue';
|
|
3
3
|
import { createAPIClient, ApiError } from '@shopware/api-client';
|
|
4
4
|
import { components, operations as operations$1 } from '@shopware/api-client/store-api-types';
|
|
5
5
|
import * as _shopware_api_client_api_types from '@shopware/api-client/api-types';
|
|
@@ -33,6 +33,7 @@ type CmsBlockImageHighlightRow = BlockType<THREE_COLUMNS>;
|
|
|
33
33
|
type CmsBlockImageSimpleGrid = BlockType<"left-top" | "left-bottom" | "right">;
|
|
34
34
|
type CmsBlockImageSlider = BlockType<"imageSlider">;
|
|
35
35
|
type CmsBlockImageGallery = BlockType<"imageGallery">;
|
|
36
|
+
type CmsBlockVideo = BlockType<"video">;
|
|
36
37
|
type CmsBlockYoutubeVideo = BlockType<"video">;
|
|
37
38
|
type CmsBlockVimeoVideo = BlockType<"video">;
|
|
38
39
|
type CmsBlockImageText = BlockType<TWO_COLUMNS>;
|
|
@@ -44,6 +45,7 @@ type CmsBlockImageTextBubble = BlockType<"left-image" | "left-text" | "center-im
|
|
|
44
45
|
type CmsBlockTextOnImage = BlockType<"content">;
|
|
45
46
|
type CmsBlockSidebarFilter = BlockType<"content">;
|
|
46
47
|
type CmsBlockCategoryNavigation = BlockType<"content">;
|
|
48
|
+
type CmsBlockCategoryHeading = BlockType<"content">;
|
|
47
49
|
type CmsBlockProductHeading = BlockType<TWO_COLUMNS>;
|
|
48
50
|
type CmsBlockProductThreeColumn = BlockType<THREE_COLUMNS>;
|
|
49
51
|
type CmsBlockProductListing = BlockType<"content">;
|
|
@@ -54,10 +56,20 @@ type CmsBlockCrossSelling = BlockType<"content">;
|
|
|
54
56
|
type CmsBlockForm = BlockType<"content">;
|
|
55
57
|
type CmsBlockHtml = BlockType<"content">;
|
|
56
58
|
type CmsBlockImageGalleryBig = BlockType<"imageGallery">;
|
|
59
|
+
type CmsBlockAppRenderer = BlockType<string> & {
|
|
60
|
+
type: "app-renderer";
|
|
61
|
+
customFields?: {
|
|
62
|
+
appBlockName?: string;
|
|
63
|
+
slotLayout?: {
|
|
64
|
+
grid?: string | null;
|
|
65
|
+
};
|
|
66
|
+
} | null;
|
|
67
|
+
};
|
|
57
68
|
|
|
58
69
|
type SourceType = "static" | "mapped";
|
|
59
70
|
type Position = "left" | "center" | "right";
|
|
60
71
|
type DisplayMode = Exclude<CSSProperties["objectFit"], undefined> | "standard";
|
|
72
|
+
type MediaDisplayMode = "standard" | "stretch" | "cover";
|
|
61
73
|
type BoxLayout = "standard" | "image" | "minimal";
|
|
62
74
|
type VerticalAlign = "flex-start" | "center" | "flex-end" | "";
|
|
63
75
|
type ElementConfig<VALUE_TYPE> = {
|
|
@@ -171,6 +183,36 @@ type CmsElementImageGallery = Omit<Schemas["CmsSlot"], "config"> & {
|
|
|
171
183
|
} | Schemas["ProductMedia"]>;
|
|
172
184
|
};
|
|
173
185
|
};
|
|
186
|
+
type VideoElementConfig = {
|
|
187
|
+
media: ElementConfig<string | null>;
|
|
188
|
+
displayMode: ElementConfig<MediaDisplayMode>;
|
|
189
|
+
minHeight: ElementConfig<string | null>;
|
|
190
|
+
verticalAlign: ElementConfig<VerticalAlign | null>;
|
|
191
|
+
horizontalAlign: ElementConfig<VerticalAlign | null>;
|
|
192
|
+
ariaLabel: ElementConfig<string | null>;
|
|
193
|
+
autoPlay: ElementConfig<boolean>;
|
|
194
|
+
muted: ElementConfig<boolean>;
|
|
195
|
+
loop: ElementConfig<boolean>;
|
|
196
|
+
playsInline: ElementConfig<boolean>;
|
|
197
|
+
showControls: ElementConfig<boolean>;
|
|
198
|
+
showCover: ElementConfig<boolean>;
|
|
199
|
+
};
|
|
200
|
+
type CmsElementVideo = Omit<Schemas["CmsSlot"], "config"> & {
|
|
201
|
+
type: "video";
|
|
202
|
+
config: VideoElementConfig;
|
|
203
|
+
data: {
|
|
204
|
+
mediaId: string | null;
|
|
205
|
+
url: string | null;
|
|
206
|
+
newTab: boolean | null;
|
|
207
|
+
ariaLabel: string | null;
|
|
208
|
+
apiAlias: "cms_video";
|
|
209
|
+
media: (Schemas["Media"] & {
|
|
210
|
+
extensions?: {
|
|
211
|
+
videoCoverMedia?: Schemas["Media"];
|
|
212
|
+
};
|
|
213
|
+
}) | null;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
174
216
|
type YouTubeVideoElementConfig = {
|
|
175
217
|
end: ElementConfig<string>;
|
|
176
218
|
url: ElementConfig<string>;
|
|
@@ -359,6 +401,18 @@ type CmsElementProductName = Omit<Schemas["CmsSlot"], "config"> & {
|
|
|
359
401
|
config: TextElementConfig;
|
|
360
402
|
};
|
|
361
403
|
};
|
|
404
|
+
type CategoryNameElementConfig = {
|
|
405
|
+
content: ElementConfig<string>;
|
|
406
|
+
verticalAlign?: ElementConfig<VerticalAlign | null>;
|
|
407
|
+
};
|
|
408
|
+
type CmsElementCategoryName = Omit<Schemas["CmsSlot"], "config"> & {
|
|
409
|
+
type: "category-name";
|
|
410
|
+
config: CategoryNameElementConfig;
|
|
411
|
+
data: {
|
|
412
|
+
content: string | null;
|
|
413
|
+
apiAlias: "cms_text";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
362
416
|
type CmsElementManufacturerLogo = Omit<Schemas["CmsSlot"], "config"> & {
|
|
363
417
|
type: "manufacturer-logo";
|
|
364
418
|
config: ImageElementConfig;
|
|
@@ -411,11 +465,14 @@ declare function useCmsElementImage(element: CmsElementImage | CmsElementManufac
|
|
|
411
465
|
/**
|
|
412
466
|
* Composable to get cms element config
|
|
413
467
|
*
|
|
468
|
+
* `getConfigValue` reads the element on every call, so it follows a `ref` or
|
|
469
|
+
* getter passed as `element`.
|
|
470
|
+
*
|
|
414
471
|
* @category CMS (Shopping Experiences)
|
|
415
472
|
*/
|
|
416
473
|
declare function useCmsElementConfig<T extends Omit<Schemas["CmsSlot"], "config"> & {
|
|
417
474
|
config: Record<string, ElementConfig<unknown> | undefined>;
|
|
418
|
-
}>(element: T): {
|
|
475
|
+
}>(element: MaybeRefOrGetter<T>): {
|
|
419
476
|
getConfigValue: <ELEMENT_CONFIG extends keyof T["config"]>(key: ELEMENT_CONFIG) => NonNullable<T["config"][ELEMENT_CONFIG]>["value"];
|
|
420
477
|
};
|
|
421
478
|
|
|
@@ -856,11 +913,18 @@ declare function useCheckout(): UseCheckoutReturn;
|
|
|
856
913
|
type ArrayElement$1<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
857
914
|
type UseCmsBlockReturn = {
|
|
858
915
|
/**
|
|
859
|
-
* Cms block content
|
|
916
|
+
* Cms block content, as it was when the composable was called.
|
|
860
917
|
*/
|
|
861
918
|
block: Schemas["CmsBlock"];
|
|
862
919
|
/**
|
|
863
|
-
* Get slot content by slot name (identifier)
|
|
920
|
+
* Get slot content by slot name (identifier).
|
|
921
|
+
*
|
|
922
|
+
* Reads the block on every call, so it follows a `ref` or getter passed as
|
|
923
|
+
* `content`.
|
|
924
|
+
*
|
|
925
|
+
* A block does not have to carry every slot its layout allows: the lookup
|
|
926
|
+
* returns `undefined` at runtime for a slot that is not there, which the
|
|
927
|
+
* return type does not express yet. Guard on the result.
|
|
864
928
|
* @example getSlotContent("main")
|
|
865
929
|
*/
|
|
866
930
|
getSlotContent(slotName: string): ArrayElement$1<Schemas["CmsBlock"]["slots"]>;
|
|
@@ -870,7 +934,7 @@ type UseCmsBlockReturn = {
|
|
|
870
934
|
* @public
|
|
871
935
|
* @category CMS (Shopping Experiences)
|
|
872
936
|
*/
|
|
873
|
-
declare function useCmsBlock<BLOCK_TYPE extends Schemas["CmsBlock"]>(content: BLOCK_TYPE): UseCmsBlockReturn;
|
|
937
|
+
declare function useCmsBlock<BLOCK_TYPE extends Schemas["CmsBlock"]>(content: MaybeRefOrGetter<BLOCK_TYPE>): UseCmsBlockReturn;
|
|
874
938
|
|
|
875
939
|
type UseCmsMetaReturn = {
|
|
876
940
|
/**
|
|
@@ -894,11 +958,14 @@ declare function useCmsMeta(entity: Schemas["Category"] | Schemas["Product"] | S
|
|
|
894
958
|
type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
895
959
|
type UseCmsSectionType = {
|
|
896
960
|
/**
|
|
897
|
-
* CMS section
|
|
961
|
+
* CMS section, as it was when the composable was called.
|
|
898
962
|
*/
|
|
899
963
|
section: Schemas["CmsSection"];
|
|
900
964
|
/**
|
|
901
|
-
*
|
|
965
|
+
* Blocks of the section placed on the given position.
|
|
966
|
+
*
|
|
967
|
+
* Reads the section on every call, so it follows a `ref` or getter passed as
|
|
968
|
+
* `content`.
|
|
902
969
|
*/
|
|
903
970
|
getPositionContent(position: ArrayElement<Schemas["CmsSection"]["blocks"]>["sectionPosition"]): Array<Schemas["CmsBlock"]>;
|
|
904
971
|
};
|
|
@@ -907,7 +974,7 @@ type UseCmsSectionType = {
|
|
|
907
974
|
* @public
|
|
908
975
|
* @category CMS (Shopping Experiences)
|
|
909
976
|
*/
|
|
910
|
-
declare function useCmsSection<SECTION_TYPE extends Schemas["CmsSection"]>(content: SECTION_TYPE): UseCmsSectionType;
|
|
977
|
+
declare function useCmsSection<SECTION_TYPE extends Schemas["CmsSection"]>(content: MaybeRefOrGetter<SECTION_TYPE>): UseCmsSectionType;
|
|
911
978
|
|
|
912
979
|
/**
|
|
913
980
|
* @category CMS (Shopping Experiences)
|
|
@@ -1426,6 +1493,15 @@ type UseNewsletterReturn = {
|
|
|
1426
1493
|
declare function useNewsletter(): UseNewsletterReturn;
|
|
1427
1494
|
|
|
1428
1495
|
type NotificationType = "info" | "warning" | "success" | "danger";
|
|
1496
|
+
/**
|
|
1497
|
+
* Optional CTA rendered next to a notification message (e.g. "View cart").
|
|
1498
|
+
*
|
|
1499
|
+
* @private
|
|
1500
|
+
*/
|
|
1501
|
+
type NotificationAction = {
|
|
1502
|
+
label: string;
|
|
1503
|
+
to: string;
|
|
1504
|
+
};
|
|
1429
1505
|
/**
|
|
1430
1506
|
* @private
|
|
1431
1507
|
*/
|
|
@@ -1433,6 +1509,7 @@ type Notification = {
|
|
|
1433
1509
|
type: NotificationType;
|
|
1434
1510
|
message: string;
|
|
1435
1511
|
id: number;
|
|
1512
|
+
action?: NotificationAction;
|
|
1436
1513
|
};
|
|
1437
1514
|
/**
|
|
1438
1515
|
* @private
|
|
@@ -1444,6 +1521,7 @@ type NotificationOptions = {
|
|
|
1444
1521
|
type?: NotificationType;
|
|
1445
1522
|
timeout?: number;
|
|
1446
1523
|
persistent?: boolean;
|
|
1524
|
+
action?: NotificationAction;
|
|
1447
1525
|
};
|
|
1448
1526
|
/**
|
|
1449
1527
|
* @public
|
|
@@ -2385,12 +2463,18 @@ declare function resolveCmsComponent(content: Schemas["CmsSection"] | Schemas["C
|
|
|
2385
2463
|
componentNameToResolve: never;
|
|
2386
2464
|
isResolved: boolean;
|
|
2387
2465
|
resolvedComponent: vue.ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | undefined;
|
|
2466
|
+
/**
|
|
2467
|
+
* @deprecated Use `isResolved` instead. Kept so the error shape is unchanged.
|
|
2468
|
+
*/
|
|
2388
2469
|
resolved?: undefined;
|
|
2389
2470
|
error?: undefined;
|
|
2390
2471
|
} | {
|
|
2391
2472
|
componentName: string;
|
|
2392
2473
|
componentNameToResolve: never;
|
|
2393
2474
|
resolvedComponent: undefined;
|
|
2475
|
+
/**
|
|
2476
|
+
* @deprecated Use `isResolved` instead. Kept so the error shape is unchanged.
|
|
2477
|
+
*/
|
|
2394
2478
|
resolved: boolean;
|
|
2395
2479
|
isResolved: boolean;
|
|
2396
2480
|
error: string;
|
|
@@ -2400,4 +2484,4 @@ declare function getDefaultApiParams(): {
|
|
|
2400
2484
|
};
|
|
2401
2485
|
|
|
2402
2486
|
export { createCategoryListingContext, createListingComposable, createShopwareContext, getDefaultApiParams, resolveCmsComponent, useAddToCart, useAddress, useB2bQuoteManagement, useBreadcrumbs, useCart, useCartErrorParamsResolver, useCartFunction, useCartItem, useCartNotification, useCategory, useCategoryListing, useCategorySearch, useCheckout, useCmsBlock, useCmsElementConfig, useCmsElementImage, useCmsMeta, useCmsSection, useCmsTranslations, useContext, useCountries, useCustomerOrders, useCustomerPassword, useDefaultOrderAssociations, useInternationalization, useLandingSearch, useListing, useLocalWishlist, useNavigation, useNavigationContext, useNavigationSearch, useNewsletter, useNotifications, useOrderDetails, useOrderPayment, usePrice, useProduct, useProductAssociations, useProductConfigurator, useProductPrice, useProductReviews, useProductSearch, useProductSearchListing, useProductSearchSuggest, useProductWishlist, useSalutations, useSessionContext, useShopwareContext, useSyncWishlist, useUrlResolver, useUser, useWishlist };
|
|
2403
|
-
export type { BoxLayout, Breadcrumb, ChangePaymentShippingMethodParams, CmsBlockCategoryNavigation, CmsBlockCenterText, CmsBlockCrossSelling, CmsBlockForm, CmsBlockGalleryBuybox, CmsBlockHtml, CmsBlockImage, CmsBlockImageBubbleRow, CmsBlockImageCover, CmsBlockImageFourColumn, CmsBlockImageGallery, CmsBlockImageGalleryBig, CmsBlockImageHighlightRow, CmsBlockImageSimpleGrid, CmsBlockImageSlider, CmsBlockImageText, CmsBlockImageTextBubble, CmsBlockImageTextCover, CmsBlockImageTextGallery, CmsBlockImageTextRow, CmsBlockImageThreeColumn, CmsBlockImageThreeCover, CmsBlockImageTwoColumn, CmsBlockProductDescriptionReviews, CmsBlockProductHeading, CmsBlockProductListing, CmsBlockProductSlider, CmsBlockProductThreeColumn, CmsBlockSidebarFilter, CmsBlockText, CmsBlockTextHero, CmsBlockTextOnImage, CmsBlockTextTeaser, CmsBlockTextTeaserSection, CmsBlockTextThreeColumn, CmsBlockTextTwoColumn, CmsBlockVimeoVideo, CmsBlockYoutubeVideo, CmsElementBuyBox, CmsElementCategoryNavigation, CmsElementCrossSelling, CmsElementForm, CmsElementHtml, CmsElementImage, CmsElementImageGallery, CmsElementImageSlider, CmsElementManufacturerLogo, CmsElementProductBox, CmsElementProductDescriptionReviews, CmsElementProductListing, CmsElementProductName, CmsElementProductSlider, CmsElementSidebarFilter, CmsElementText, CmsElementVimeoVideo, CmsElementYoutubeVideo, CmsSectionBlock, CmsSectionDefault, CmsSectionSidebar, DeclineQuoteParams, DisplayMode, ElementConfig, ErrorObjectParam, ImageContainerAttrs, ListingType, Notification, NotificationOptions, Position, RouteObject, ShopwareContext, ShortcutFilterParam, SliderElementConfig, SourceType, UseAddToCartReturn, UseAddressReturn, UseBreadcrumbsReturn, UseCartErrorParamsResolver, UseCartItemReturn, UseCartReturn, UseCategoryReturn, UseCategorySearchReturn, UseCheckoutReturn, UseCmsBlockReturn, UseCmsElementImage, UseCmsMetaReturn, UseCountriesReturn, UseCustomerOrdersReturn, UseCustomerPasswordReturn, UseInternationalizationReturn, UseLandingSearchReturn, UseListingReturn, UseLocalWishlistReturn, UseNavigationContextReturn, UseNavigationReturn, UseNavigationSearchReturn, UseNewsletterReturn, UseNotificationsReturn, UseOrderDetailsReturn, UseOrderPaymentReturn, UsePriceReturn, UseProductAssociationsReturn, UseProductConfiguratorReturn, UseProductPriceReturn, UseProductReturn, UseProductReviewsReturn, UseProductSearchReturn, UseProductSearchSuggestReturn, UseProductWishlistReturn, UseSalutationsReturn, UseSessionContextReturn, UseSyncWishlistReturn, UseUserReturn, UseWishlistReturn, VerticalAlign, useCartNotificationReturn };
|
|
2487
|
+
export type { BoxLayout, Breadcrumb, ChangePaymentShippingMethodParams, CmsBlockAppRenderer, CmsBlockCategoryHeading, CmsBlockCategoryNavigation, CmsBlockCenterText, CmsBlockCrossSelling, CmsBlockForm, CmsBlockGalleryBuybox, CmsBlockHtml, CmsBlockImage, CmsBlockImageBubbleRow, CmsBlockImageCover, CmsBlockImageFourColumn, CmsBlockImageGallery, CmsBlockImageGalleryBig, CmsBlockImageHighlightRow, CmsBlockImageSimpleGrid, CmsBlockImageSlider, CmsBlockImageText, CmsBlockImageTextBubble, CmsBlockImageTextCover, CmsBlockImageTextGallery, CmsBlockImageTextRow, CmsBlockImageThreeColumn, CmsBlockImageThreeCover, CmsBlockImageTwoColumn, CmsBlockProductDescriptionReviews, CmsBlockProductHeading, CmsBlockProductListing, CmsBlockProductSlider, CmsBlockProductThreeColumn, CmsBlockSidebarFilter, CmsBlockText, CmsBlockTextHero, CmsBlockTextOnImage, CmsBlockTextTeaser, CmsBlockTextTeaserSection, CmsBlockTextThreeColumn, CmsBlockTextTwoColumn, CmsBlockVideo, CmsBlockVimeoVideo, CmsBlockYoutubeVideo, CmsElementBuyBox, CmsElementCategoryName, CmsElementCategoryNavigation, CmsElementCrossSelling, CmsElementForm, CmsElementHtml, CmsElementImage, CmsElementImageGallery, CmsElementImageSlider, CmsElementManufacturerLogo, CmsElementProductBox, CmsElementProductDescriptionReviews, CmsElementProductListing, CmsElementProductName, CmsElementProductSlider, CmsElementSidebarFilter, CmsElementText, CmsElementVideo, CmsElementVimeoVideo, CmsElementYoutubeVideo, CmsSectionBlock, CmsSectionDefault, CmsSectionSidebar, DeclineQuoteParams, DisplayMode, ElementConfig, ErrorObjectParam, ImageContainerAttrs, ListingType, MediaDisplayMode, Notification, NotificationAction, NotificationOptions, Position, RouteObject, ShopwareContext, ShortcutFilterParam, SliderElementConfig, SourceType, UseAddToCartReturn, UseAddressReturn, UseBreadcrumbsReturn, UseCartErrorParamsResolver, UseCartItemReturn, UseCartReturn, UseCategoryReturn, UseCategorySearchReturn, UseCheckoutReturn, UseCmsBlockReturn, UseCmsElementImage, UseCmsMetaReturn, UseCountriesReturn, UseCustomerOrdersReturn, UseCustomerPasswordReturn, UseInternationalizationReturn, UseLandingSearchReturn, UseListingReturn, UseLocalWishlistReturn, UseNavigationContextReturn, UseNavigationReturn, UseNavigationSearchReturn, UseNewsletterReturn, UseNotificationsReturn, UseOrderDetailsReturn, UseOrderPaymentReturn, UsePriceReturn, UseProductAssociationsReturn, UseProductConfiguratorReturn, UseProductPriceReturn, UseProductReturn, UseProductReviewsReturn, UseProductSearchReturn, UseProductSearchSuggestReturn, UseProductWishlistReturn, UseSalutationsReturn, UseSessionContextReturn, UseSyncWishlistReturn, UseUserReturn, UseWishlistReturn, VerticalAlign, useCartNotificationReturn };
|