@type32/codemirror-rich-obsidian-editor 0.1.4 → 0.1.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@type32/codemirror-rich-obsidian-editor",
3
3
  "configKey": "cmOfmEditor",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -7,7 +7,7 @@ defineProps({
7
7
 
8
8
  <template>
9
9
  <div class="p-3 grid grid-cols-1">
10
- <NuxtImg :src="filePath" class="w-full h-auto max-h-96 object-cover rounded-lg" format="jpeg" :quality="90" :alt="display"/>
10
+ <img :src="filePath" class="h-auto min-h-12 max-h-96 object-contain rounded-lg" :alt="display"/>
11
11
  <div class="text-muted text-left text-xs select-none mt-1.5 text-pretty">{{ display }}</div>
12
12
  </div>
13
13
  </template>
@@ -25,7 +25,7 @@ function buildInternalLinkDecorations(state) {
25
25
  props.display = state.doc.sliceString(displayNode.from, displayNode.to);
26
26
  }
27
27
  widgets.push(Decoration.widget({
28
- widget: new ProseVueComponentEmbedWidget(linkInfo.embedComponent, linkInfo?.componentProps || props, node.from),
28
+ widget: new ProseVueComponentEmbedWidget(linkInfo.embedComponent, linkInfo?.componentProps ? { ...linkInfo?.componentProps, ...props } : props, node.from),
29
29
  block: true,
30
30
  side: 1
31
31
  }).range(line.to));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@type32/codemirror-rich-obsidian-editor",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "OFM Editor Component for Nuxt.",
5
5
  "repository": "Type-32/codemirror-rich-obsidian",
6
6
  "license": "MIT",