@wpnuxt/blocks 0.0.13 → 0.0.15
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,6 +7,12 @@ 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
|
+
})
|
|
10
16
|
</script>
|
|
11
17
|
|
|
12
18
|
<template>
|
|
@@ -17,6 +23,9 @@ const imgUrl = props.block?.attributes?.url
|
|
|
17
23
|
:alt="block?.attributes?.alt"
|
|
18
24
|
:width="block?.attributes?.width"
|
|
19
25
|
:height="block?.attributes?.height"
|
|
26
|
+
:fit="block?.attributes?.scale"
|
|
27
|
+
:class="classNames"
|
|
28
|
+
class="aspect-[3/4]"
|
|
20
29
|
/>
|
|
21
30
|
<div
|
|
22
31
|
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.15",
|
|
4
4
|
"description": "WPNuxt Blocks",
|
|
5
5
|
"repository": "wpnuxt/wpnuxt-blocks",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,28 +38,28 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@nuxt/image": "^1.9.0",
|
|
41
|
-
"@nuxt/kit": "^3.
|
|
42
|
-
"@nuxt/ui": "^
|
|
43
|
-
"@wpnuxt/core": "1.0.0-edge.
|
|
41
|
+
"@nuxt/kit": "^3.16.0",
|
|
42
|
+
"@nuxt/ui": "^3.0.0",
|
|
43
|
+
"@wpnuxt/core": "1.0.0-edge.28"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@nuxt/devtools": "^
|
|
47
|
-
"@nuxt/eslint-config": "^
|
|
46
|
+
"@nuxt/devtools": "^2.3.0",
|
|
47
|
+
"@nuxt/eslint-config": "^1.2.0",
|
|
48
48
|
"@nuxt/module-builder": "^0.8.4",
|
|
49
|
-
"@nuxt/schema": "^3.
|
|
50
|
-
"@nuxt/test-utils": "^3.
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
49
|
+
"@nuxt/schema": "^3.16.0",
|
|
50
|
+
"@nuxt/test-utils": "^3.17.2",
|
|
51
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
52
|
+
"@types/node": "^22.13.10",
|
|
53
|
+
"@wordpress/env": "^10.20.0",
|
|
54
|
+
"changelogen": "^0.6.1",
|
|
55
|
+
"eslint": "^9.22.0",
|
|
56
|
+
"nuxt": "^3.16.0",
|
|
57
|
+
"release-it": "^18.1.2",
|
|
58
|
+
"typescript": "5.6.3",
|
|
59
|
+
"vitest": "^3.0.8"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
|
-
"knitwork": "^1.
|
|
62
|
-
"pathe": "^
|
|
63
|
-
}
|
|
64
|
-
"packageManager": "pnpm@9.14.3"
|
|
62
|
+
"knitwork": "^1.2.0",
|
|
63
|
+
"pathe": "^2.0.1"
|
|
64
|
+
}
|
|
65
65
|
}
|