@shopware/cms-base-layer 1.5.0 → 1.5.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 +9 -12
- package/components/public/cms/block/CmsBlockTextTeaserSection.vue +4 -4
- package/components/public/cms/block/CmsBlockTextTwoColumn.vue +3 -5
- package/components/public/cms/element/CmsElementYoutubeVideo.vue +8 -2
- package/components/public/cms/section/CmsSectionSidebar.vue +0 -8
- package/package.json +13 -13
- package/components/public/cms/element/CmsBlockHtml.md +0 -1
- /package/components/public/cms/{element → block}/CmsBlockHtml.vue +0 -0
package/README.md
CHANGED
|
@@ -132,21 +132,18 @@ No additional packages needed to be installed.
|
|
|
132
132
|
|
|
133
133
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/cms-base-layer/CHANGELOG.md)
|
|
134
134
|
|
|
135
|
-
### Latest changes: 1.5.
|
|
136
|
-
|
|
137
|
-
### Minor Changes
|
|
138
|
-
|
|
139
|
-
- [#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.
|
|
140
|
-
Added CmsElementHtml to render html element.
|
|
135
|
+
### Latest changes: 1.5.1
|
|
141
136
|
|
|
142
137
|
### Patch Changes
|
|
143
138
|
|
|
144
|
-
- [#
|
|
139
|
+
- [#1879](https://github.com/shopware/frontends/pull/1879) [`eaf170b`](https://github.com/shopware/frontends/commit/eaf170bd037a278b3d2e155c4d69de8e5fd9516d) Thanks [@acuriouspotion](https://github.com/acuriouspotion)! - Fix youtube player control display and usage of advanced privacy mode setting.
|
|
140
|
+
|
|
141
|
+
- [#1862](https://github.com/shopware/frontends/pull/1862) [`20fd2c6`](https://github.com/shopware/frontends/commit/20fd2c615738f93a3947c69f351fc5d37ea89ebf) Thanks [@aheartforspinach](https://github.com/aheartforspinach)! - Fix CmsSectionSidebar.vue when used on a landing page by removing useCategory and related code
|
|
145
142
|
|
|
146
|
-
- [#
|
|
143
|
+
- [#1884](https://github.com/shopware/frontends/pull/1884) [`3004b97`](https://github.com/shopware/frontends/commit/3004b973913b90cdf4b255ffb3f9cee265241666) Thanks [@MorennMcFly](https://github.com/MorennMcFly)! - Fix cms blocks TextTeaserSection and TextTwoColumn responsivity so the elements stack from md breakpoint and under.
|
|
147
144
|
|
|
148
|
-
- [#
|
|
145
|
+
- [#1863](https://github.com/shopware/frontends/pull/1863) [`f8c5cd5`](https://github.com/shopware/frontends/commit/f8c5cd5c9aa8b65d394c831e3ac548b4743c53a6) Thanks [@aheartforspinach](https://github.com/aheartforspinach)! - move `CmsBlockHtml.vue` to block folder (instead of element), remove `CmsBlockHtml.md`
|
|
149
146
|
|
|
150
|
-
- Updated dependencies [[`
|
|
151
|
-
- @shopware/
|
|
152
|
-
- @shopware/
|
|
147
|
+
- Updated dependencies [[`ab040bb`](https://github.com/shopware/frontends/commit/ab040bb6cc05541001a983c26d5cb6dbf3192394), [`c8fa438`](https://github.com/shopware/frontends/commit/c8fa438b38de6dbc43a2895f2d1906907447c384)]:
|
|
148
|
+
- @shopware/composables@1.9.1
|
|
149
|
+
- @shopware/helpers@1.5.0
|
|
@@ -6,15 +6,15 @@ defineProps<{
|
|
|
6
6
|
}>();
|
|
7
7
|
</script>
|
|
8
8
|
<template>
|
|
9
|
-
<div class="
|
|
9
|
+
<div class="mx-auto grid md:grid-cols-3 gap-4 py-6">
|
|
10
10
|
<CmsGenericElement
|
|
11
11
|
v-for="(slot, i) in content.slots"
|
|
12
12
|
:key="slot.id"
|
|
13
13
|
:content="slot"
|
|
14
|
-
class="cms-block-text-teaser-section
|
|
14
|
+
class="cms-block-text-teaser-section"
|
|
15
15
|
:class="{
|
|
16
|
-
'
|
|
17
|
-
'
|
|
16
|
+
'md:col-span-1': i === 0,
|
|
17
|
+
'md:col-span-2': i === 1,
|
|
18
18
|
}"
|
|
19
19
|
/>
|
|
20
20
|
</div>
|
|
@@ -13,16 +13,14 @@ const rightContent = getSlotContent("right");
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
|
-
<article
|
|
17
|
-
class="cms-block-text-two-column flex justify-center gap-5 md:gap-20"
|
|
18
|
-
>
|
|
16
|
+
<article class="cms-block-text-two-column grid md:grid-cols-2 gap-5 md:gap-20">
|
|
19
17
|
<CmsGenericElement
|
|
20
18
|
:content="leftContent"
|
|
21
|
-
class="
|
|
19
|
+
class="cms-block-text-two-column__text"
|
|
22
20
|
/>
|
|
23
21
|
<CmsGenericElement
|
|
24
22
|
:content="rightContent"
|
|
25
|
-
class="
|
|
23
|
+
class="cms-block-text-two-column__text"
|
|
26
24
|
/>
|
|
27
25
|
</article>
|
|
28
26
|
</template>
|
|
@@ -15,7 +15,7 @@ const config = computed(() => ({
|
|
|
15
15
|
loop: getConfigValue("loop")
|
|
16
16
|
? `loop=1&playlist=${getConfigValue("videoID")}&`
|
|
17
17
|
: "",
|
|
18
|
-
showControls: getConfigValue("showControls") ? "controls=
|
|
18
|
+
showControls: getConfigValue("showControls") ? "controls=1&" : "controls=0&",
|
|
19
19
|
start:
|
|
20
20
|
Number.parseInt(getConfigValue("start")) !== 0
|
|
21
21
|
? `start=${getConfigValue("start")}&`
|
|
@@ -27,7 +27,13 @@ const config = computed(() => ({
|
|
|
27
27
|
disableKeyboard: "disablekb=1",
|
|
28
28
|
}));
|
|
29
29
|
|
|
30
|
-
const
|
|
30
|
+
const YOUTUBE_URL = "https://www.youtube.com/embed/";
|
|
31
|
+
const YOUTUBE_NOCOOKIE_URL = "https://www.youtube-nocookie.com/embed/";
|
|
32
|
+
const videoDomain = getConfigValue("advancedPrivacyMode")
|
|
33
|
+
? YOUTUBE_NOCOOKIE_URL
|
|
34
|
+
: YOUTUBE_URL;
|
|
35
|
+
|
|
36
|
+
const videoUrl = `${videoDomain}\
|
|
31
37
|
${config.value.videoID}?\
|
|
32
38
|
${config.value.relatedVideos}\
|
|
33
39
|
${config.value.loop}\
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useCmsSection } from "@shopware/composables";
|
|
3
3
|
import type { CmsSectionSidebar } from "@shopware/composables";
|
|
4
|
-
import { getTranslatedProperty } from "@shopware/helpers";
|
|
5
4
|
import { computed } from "vue";
|
|
6
|
-
import { useCategory } from "#imports";
|
|
7
5
|
|
|
8
6
|
const props = defineProps<{
|
|
9
7
|
content: CmsSectionSidebar;
|
|
@@ -13,16 +11,10 @@ const { getPositionContent } = useCmsSection(props.content);
|
|
|
13
11
|
const sidebarBlocks = getPositionContent("sidebar");
|
|
14
12
|
const mainBlocks = getPositionContent("main");
|
|
15
13
|
const mobileBehavior = computed(() => props.content.mobileBehavior);
|
|
16
|
-
const { category } = useCategory();
|
|
17
14
|
</script>
|
|
18
15
|
|
|
19
16
|
<template>
|
|
20
17
|
<div class="cms-section-sidebar grid grid-cols-12 md:grid">
|
|
21
|
-
<div class="col-span-12 mx-8 md:mx-5 mt-8">
|
|
22
|
-
<h1 class="text-4xl font-extrabold tracking-tight text-gray-900">
|
|
23
|
-
{{ getTranslatedProperty(category, "name") }}
|
|
24
|
-
</h1>
|
|
25
|
-
</div>
|
|
26
18
|
<div class="col-span-12 md:col-span-7 lg:col-span-9 order-1 md:order-2">
|
|
27
19
|
<CmsGenericBlock
|
|
28
20
|
v-for="cmsBlock in mainBlocks"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/cms-base-layer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Vue CMS Nuxt Layer for Shopware",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -29,32 +29,32 @@
|
|
|
29
29
|
"nuxt.config.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nuxt/kit": "3.
|
|
32
|
+
"@nuxt/kit": "3.17.5",
|
|
33
33
|
"@tresjs/cientos": "4.3.0",
|
|
34
34
|
"@tresjs/core": "4.3.3",
|
|
35
35
|
"@vuelidate/core": "2.0.3",
|
|
36
36
|
"@vuelidate/validators": "2.0.4",
|
|
37
|
-
"@vueuse/core": "13.
|
|
37
|
+
"@vueuse/core": "13.3.0",
|
|
38
38
|
"entities": "6.0.0",
|
|
39
39
|
"html-to-ast": "0.0.6",
|
|
40
40
|
"three": "0.173.0",
|
|
41
|
-
"vue": "3.5.
|
|
41
|
+
"vue": "3.5.16",
|
|
42
42
|
"xss": "1.0.15",
|
|
43
|
-
"@shopware/composables": "1.9.
|
|
44
|
-
"@shopware/
|
|
45
|
-
"@shopware/
|
|
43
|
+
"@shopware/composables": "1.9.1",
|
|
44
|
+
"@shopware/api-client": "1.3.0",
|
|
45
|
+
"@shopware/helpers": "1.5.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@biomejs/biome": "1.8.3",
|
|
49
|
-
"@nuxt/schema": "3.
|
|
49
|
+
"@nuxt/schema": "3.17.5",
|
|
50
50
|
"@types/three": "0.173.0",
|
|
51
|
-
"@vitest/coverage-v8": "3.
|
|
52
|
-
"nuxt": "3.
|
|
51
|
+
"@vitest/coverage-v8": "3.2.3",
|
|
52
|
+
"nuxt": "3.17.5",
|
|
53
53
|
"typescript": "5.8.3",
|
|
54
54
|
"unbuild": "2.0.0",
|
|
55
|
-
"vitest": "3.
|
|
56
|
-
"vue-router": "4.5.
|
|
57
|
-
"vue-tsc": "2.2.
|
|
55
|
+
"vitest": "3.2.3",
|
|
56
|
+
"vue-router": "4.5.1",
|
|
57
|
+
"vue-tsc": "2.2.10",
|
|
58
58
|
"tsconfig": "0.0.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Render a HTML section
|
|
File without changes
|