@wpnuxt/blocks 0.0.15 → 0.0.16
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
package/dist/module.mjs
CHANGED
|
@@ -7,12 +7,6 @@ const props = defineProps<{
|
|
|
7
7
|
}>()
|
|
8
8
|
// const imgUrl = getRelativeImagePath(props.block?.attributes?.url)
|
|
9
9
|
const imgUrl = props.block?.attributes?.url
|
|
10
|
-
const classNames = computed(() => {
|
|
11
|
-
if (props.block?.attributes?.aspectRatio) {
|
|
12
|
-
return `aspect-[3/4] ${props.block?.attributes?.className}`
|
|
13
|
-
}
|
|
14
|
-
return props.block?.attributes?.className
|
|
15
|
-
})
|
|
16
10
|
</script>
|
|
17
11
|
|
|
18
12
|
<template>
|
|
@@ -24,8 +18,6 @@ const classNames = computed(() => {
|
|
|
24
18
|
:width="block?.attributes?.width"
|
|
25
19
|
:height="block?.attributes?.height"
|
|
26
20
|
:fit="block?.attributes?.scale"
|
|
27
|
-
:class="classNames"
|
|
28
|
-
class="aspect-[3/4]"
|
|
29
21
|
/>
|
|
30
22
|
<div
|
|
31
23
|
v-else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wpnuxt/blocks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "WPNuxt Blocks",
|
|
5
5
|
"repository": "wpnuxt/wpnuxt-blocks",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepack": "nuxt-module-build build",
|
|
25
25
|
"dev": "nuxi dev playground",
|
|
26
26
|
"dev:build": "nuxi build playground",
|
|
27
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare &&
|
|
27
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
28
28
|
"release": "pnpm run lint && pnpm run test && pnpm run prepack; release-it --git.tagExclude='*[-edge]*'",
|
|
29
29
|
"release-edge": "pnpm run lint && pnpm run test && pnpm run prepack; release-it --preRelease=edge --config .release-it-edge.json",
|
|
30
30
|
"lint": "eslint .",
|