@shopware/cms-base-layer 0.0.0-canary-20250217100617 → 0.0.0-canary-20250226085221
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 +4 -16
- package/components/SwListingProductPrice.vue +1 -0
- package/components/SwSlider.vue +3 -1
- package/components/public/cms/element/CmsBlockHtml.md +1 -0
- package/components/public/cms/element/CmsBlockHtml.vue +17 -0
- package/components/public/cms/element/CmsElementHtml.vue +24 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -129,21 +129,9 @@ No additional packages needed to be installed.
|
|
|
129
129
|
|
|
130
130
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/cms-base-layer/CHANGELOG.md)
|
|
131
131
|
|
|
132
|
-
### Latest changes: 0.0.0-canary-
|
|
132
|
+
### Latest changes: 0.0.0-canary-20250226085221
|
|
133
133
|
|
|
134
|
-
###
|
|
134
|
+
### Minor Changes
|
|
135
135
|
|
|
136
|
-
- [#
|
|
137
|
-
|
|
138
|
-
- SwNewsletterForm
|
|
139
|
-
- SwContactForm
|
|
140
|
-
|
|
141
|
-
- [#1659](https://github.com/shopware/frontends/pull/1659) [`7c10417`](https://github.com/shopware/frontends/commit/7c10417e9c0bb9fe049a0e36abf115be6c63c945) Thanks [@patzick](https://github.com/patzick)! - SwVariantConfigurator - URL prefix on Variant Change
|
|
142
|
-
|
|
143
|
-
- [#1677](https://github.com/shopware/frontends/pull/1677) [`d663627`](https://github.com/shopware/frontends/commit/d663627aaa00abc797f5c2413c4e978f95bd6f89) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Fix displaying product variants on the product page
|
|
144
|
-
|
|
145
|
-
- [#1692](https://github.com/shopware/frontends/pull/1692) [`2440a55`](https://github.com/shopware/frontends/commit/2440a55066d31edf2942dbab19a7b5043cdff532) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Change `h5` HTML tag to `div` for better accessibility structure - for ProductCard component
|
|
146
|
-
|
|
147
|
-
- Updated dependencies [[`7324620`](https://github.com/shopware/frontends/commit/7324620a3f39c1b62f7cc294192a3e8b8b336d09)]:
|
|
148
|
-
- @shopware/api-client@0.0.0-canary-20250217100617
|
|
149
|
-
- @shopware/composables@0.0.0-canary-20250217100617
|
|
136
|
+
- [#1727](https://github.com/shopware/frontends/pull/1727) [`94872b7`](https://github.com/shopware/frontends/commit/94872b7c6f6337ff8ce0bcfd9320e4178a4927f0) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Added CmsBlockHtml to render html blocks.
|
|
137
|
+
Added CmsElementHtml to render html element.
|
package/components/SwSlider.vue
CHANGED
|
@@ -38,7 +38,9 @@ const { getConfigValue } = useCmsElementConfig({
|
|
|
38
38
|
config: SliderElementConfig;
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
const slots = useSlots()
|
|
41
|
+
const slots = useSlots() as {
|
|
42
|
+
default?: () => { children: VNodeArrayChildren }[];
|
|
43
|
+
};
|
|
42
44
|
const childrenRaw = computed(
|
|
43
45
|
() => (slots?.default?.()[0].children as VNodeArrayChildren) ?? [],
|
|
44
46
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Render a HTML section
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CmsBlockHtml } from "@shopware/composables";
|
|
3
|
+
|
|
4
|
+
defineProps<{
|
|
5
|
+
content: CmsBlockHtml;
|
|
6
|
+
}>();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<CmsGenericElement
|
|
12
|
+
v-for="slot in content.slots"
|
|
13
|
+
:key="slot.versionId"
|
|
14
|
+
:content="slot"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CmsElementHtml } from "@shopware/composables";
|
|
3
|
+
|
|
4
|
+
import { getCmsLayoutConfiguration } from "@shopware/helpers";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
content: CmsElementHtml;
|
|
9
|
+
}>();
|
|
10
|
+
|
|
11
|
+
const { cssClasses, layoutStyles } = getCmsLayoutConfiguration(props.content);
|
|
12
|
+
|
|
13
|
+
const HtmlComponent = () => {
|
|
14
|
+
return h("div", {
|
|
15
|
+
class: cssClasses,
|
|
16
|
+
style: layoutStyles,
|
|
17
|
+
innerHTML: props.content.data.content || "",
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<HtmlComponent />
|
|
24
|
+
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/cms-base-layer",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250226085221",
|
|
4
4
|
"description": "Vue CMS Nuxt Layer for Shopware",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"@tresjs/core": "4.3.1",
|
|
35
35
|
"@vuelidate/core": "2.0.3",
|
|
36
36
|
"@vuelidate/validators": "2.0.4",
|
|
37
|
-
"@vueuse/core": "12.
|
|
37
|
+
"@vueuse/core": "12.7.0",
|
|
38
38
|
"entities": "6.0.0",
|
|
39
39
|
"html-to-ast": "0.0.6",
|
|
40
40
|
"three": "0.173.0",
|
|
41
41
|
"vue": "3.5.13",
|
|
42
42
|
"xss": "1.0.15",
|
|
43
|
-
"@shopware/
|
|
44
|
-
"@shopware/
|
|
45
|
-
"@shopware/
|
|
43
|
+
"@shopware/composables": "1.8.1",
|
|
44
|
+
"@shopware/api-client": "1.2.1",
|
|
45
|
+
"@shopware/helpers": "1.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@biomejs/biome": "1.8.3",
|
|
49
49
|
"@nuxt/schema": "3.15.4",
|
|
50
50
|
"@types/three": "0.173.0",
|
|
51
|
-
"@vitest/coverage-v8": "3.0.
|
|
51
|
+
"@vitest/coverage-v8": "3.0.7",
|
|
52
52
|
"nuxt": "3.15.4",
|
|
53
|
-
"typescript": "5.
|
|
53
|
+
"typescript": "5.7.3",
|
|
54
54
|
"unbuild": "2.0.0",
|
|
55
|
-
"vitest": "3.0.
|
|
55
|
+
"vitest": "3.0.7",
|
|
56
56
|
"vue-router": "4.5.0",
|
|
57
|
-
"vue-tsc": "2.2.
|
|
57
|
+
"vue-tsc": "2.2.4",
|
|
58
58
|
"tsconfig": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|