@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpnuxt/blocks",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
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.15";
6
+ const version = "0.0.16";
7
7
 
8
8
  const module = defineNuxtModule({
9
9
  meta: {
@@ -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.15",
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 && nuxi prepare playground",
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 .",