cinqcinqdev-seo 1.0.13 → 1.0.14

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "1.0.13",
7
+ "version": "1.0.14",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
@@ -43,7 +43,7 @@ const resolveSection = (type) => {
43
43
  <div v-if="selectedId === index" class="absolute top-0 left-0 bg-blue-500 text-white text-[10px] px-2 py-1 z-20 font-bold uppercase">
44
44
  {{ block.type }}
45
45
  </div>
46
- <component :is="resolveSection(block.type)" v-bind="block.props" />
46
+ <component :is="resolveSection(block.type)" v-bind="block.props" data-section-root />
47
47
  </div>
48
48
  </template>
49
49
 
@@ -1264,6 +1264,7 @@ const _buildStyleCss = (s, id) => {
1264
1264
  if (s.buttonBg) btn.push(`background-color:${s.buttonBg} !important`);
1265
1265
  if (s.buttonColor) btn.push(`color:${s.buttonColor} !important`);
1266
1266
  if (btn.length) parts.push(`${btnSel}{${btn.join(";")}}`);
1267
+ const srSel = `${id} [data-section-root]`;
1267
1268
  const bl = [];
1268
1269
  if (s.backgroundColor) bl.push(`background-color:${s.backgroundColor} !important`);
1269
1270
  if (s.gradientFrom || s.gradientTo) {
@@ -1285,7 +1286,7 @@ const _buildStyleCss = (s, id) => {
1285
1286
  if (s.borderColor) bl.push(`border-color:${s.borderColor}`);
1286
1287
  if (s.borderStyle && s.borderStyle !== "none") bl.push(`border-style:${s.borderStyle}`);
1287
1288
  if (s.borderRadius) bl.push(`border-radius:${s.borderRadius}px`);
1288
- if (bl.length) parts.push(`${id}{${bl.join(";")}}`);
1289
+ if (bl.length) parts.push(`${srSel}{${bl.join(";")}}`);
1289
1290
  return parts.join("");
1290
1291
  };
1291
1292
  export const computeBlockCss = (props, blockId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cinqcinqdev-seo",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "A reusable Nuxt 3 admin CMS module with visual page editor powered by Supabase",
5
5
  "license": "MIT",
6
6
  "module": "./dist/module.mjs",