@wpnuxt/blocks 0.0.14 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/blocks",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "configKey": "wpNuxtBlocks",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineNuxtModule, createResolver, installModule, addComponentsDir, addT
3
3
  import { genDynamicImport } from 'knitwork';
4
4
 
5
5
  const name = "@wpnuxt/blocks";
6
- const version = "0.0.14";
6
+ const version = "0.0.15";
7
7
 
8
8
  const module = defineNuxtModule({
9
9
  meta: {
@@ -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.14",
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.15.1",
42
- "@nuxt/ui": "^2.20.0",
43
- "@wpnuxt/core": "1.0.0-edge.26"
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": "^1.7.0",
47
- "@nuxt/eslint-config": "^0.7.5",
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.15.1",
50
- "@nuxt/test-utils": "^3.15.1",
51
- "@types/node": "^22.10.5",
52
- "@wordpress/env": "^10.15.0",
53
- "changelogen": "^0.5.7",
54
- "eslint": "^9.17.0",
55
- "nuxt": "^3.15.1",
56
- "release-it": "^18.1.1",
57
- "typescript": "5.6.2",
58
- "vitest": "^2.1.8"
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
62
  "knitwork": "^1.2.0",
62
63
  "pathe": "^2.0.1"
63
- },
64
- "packageManager": "pnpm@9.14.3"
64
+ }
65
65
  }