@finema/finework-layer 0.2.136 → 0.2.137

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.137](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.136...0.2.137) (2026-02-11)
4
+
5
+ ### Bug Fixes
6
+
7
+ * infoitemlist type image ([de07039](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/de07039c52f30cba02699155eff027cd2d8bee44))
8
+
3
9
  ## [0.2.136](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.135...0.2.136) (2026-02-11)
4
10
 
5
11
  ### Features
@@ -95,6 +95,12 @@
95
95
  :label="item.label"
96
96
  class="pointer-events-none"
97
97
  />
98
+ <img
99
+ v-else-if="item.type === TYPE_INFO_ITEM.IMAGE && item.value"
100
+ :src="typeof item.value === 'string' ? item.value : item.value?.url"
101
+ :alt="item.label"
102
+ class="max-w-md rounded-lg object-cover"
103
+ />
98
104
  <span
99
105
  v-else-if="!shouldTruncateText(item) && item.type === TYPE_INFO_ITEM.HTML"
100
106
  :class="[
@@ -105,7 +111,7 @@
105
111
  v-html="getValue(item)"
106
112
  />
107
113
  <NuxtLink
108
- v-if="item.type === TYPE_INFO_ITEM.LINK && item.linkProps"
114
+ v-else-if="item.type === TYPE_INFO_ITEM.LINK && item.linkProps"
109
115
  v-bind="item.linkProps"
110
116
  :class="[
111
117
  'text-primary hover:underline',
@@ -146,6 +152,7 @@ enum TYPE_INFO_ITEM {
146
152
  BOOLEAN = 'boolean',
147
153
  HTML = 'html',
148
154
  LINK = 'link',
155
+ IMAGE = 'image',
149
156
  }
150
157
 
151
158
  defineProps<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.136",
4
+ "version": "0.2.137",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",