@finema/finework-layer 0.2.95 → 0.2.96

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.
@@ -57,7 +57,7 @@
57
57
  },
58
58
  {
59
59
  label: '12',
60
- value: '<b>123123</b>',
60
+ value: '<p>123123</p>',
61
61
  type: 'wysiwyg',
62
62
  },
63
63
  ]"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.96](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.95...0.2.96) (2025-12-24)
4
+
5
+ ### Bug Fixes
6
+
7
+ * infoitemlist prop fontbold ([0002318](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/00023189dc7f3f06836299607f432356a20554c4))
8
+ * infolist ([20badaa](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/20badaaf3ea41c2ee381d398f6342df74101b666))
9
+
3
10
  ## [0.2.95](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.94...0.2.95) (2025-12-24)
4
11
 
5
12
  ### Bug Fixes
@@ -29,6 +29,7 @@
29
29
  {
30
30
  'mb-1 block text-sm text-gray-500': !inline,
31
31
  'mr-2 text-gray-500': inline,
32
+ 'font-bold !text-black': item.label && titleBold,
32
33
  },
33
34
  ]"
34
35
  >
@@ -100,16 +101,16 @@
100
101
  v-else-if="!shouldTruncateText(item) && item.type === TYPE_INFO_ITEM.WYSIWYG"
101
102
  :class="[
102
103
  {
103
- 'font-bold': item.label,
104
+ 'font-bold': item.label && !titleBold,
104
105
  },
105
106
  ]"
106
- v-html="getTextFromHTML(getValue(item))"
107
+ v-html="getValue(item)"
107
108
  />
108
109
  <span
109
110
  v-else-if="!shouldTruncateText(item)"
110
111
  :class="[
111
112
  {
112
- 'font-bold': item.label,
113
+ 'font-bold': item.label && !titleBold,
113
114
  },
114
115
  ]"
115
116
  >
@@ -149,18 +150,11 @@ defineProps<{
149
150
  vertical?: boolean
150
151
  inline?: boolean
151
152
  customClass?: string
152
-
153
+ titleBold?: boolean
153
154
  }>()
154
155
 
155
156
  const expandedItems = reactive<Record<string, boolean>>({})
156
157
 
157
- const getTextFromHTML = (html: string) => {
158
- const parser = new DOMParser()
159
- const doc = parser.parseFromString(html, 'text/html')
160
-
161
- return doc.body.textContent
162
- }
163
-
164
158
  const shouldTruncateText = (item: any): boolean => {
165
159
  return item.max && item.value && item.value.length > item.max
166
160
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.95",
4
+ "version": "0.2.96",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",