@finema/finework-layer 1.0.7 → 1.0.9

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.9](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.8...1.0.9) (2026-03-10)
4
+
5
+ ### Bug Fixes
6
+
7
+ * escape special characters in slug pattern for message formatting ([c98d77e](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c98d77ead0c68563306b1d59216dd99d06d949c2))
8
+
9
+ ## [1.0.8](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.7...1.0.8) (2026-03-10)
10
+
11
+ ### Bug Fixes
12
+
13
+ * exclude 'NEWSLETTER' source type from avatar display in Notifications ([9731272](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/97312721f11e95e9b59e7dc5aeec3e88f8e8d481))
14
+
3
15
  ## [1.0.7](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.6...1.0.7) (2026-03-06)
4
16
 
5
17
  ### Bug Fixes
@@ -48,7 +48,7 @@
48
48
  :color="getNotificationColor(item)"
49
49
  > -->
50
50
  <div
51
- v-if="item.actor?.avatar_url"
51
+ v-if="item.actor?.avatar_url && item.source_type !== 'NEWSLETTER'"
52
52
  class="relative"
53
53
  >
54
54
  <Avatar
@@ -197,8 +197,8 @@ const getMessage = (item: INotificationItem): string => {
197
197
  if (item.data) {
198
198
  Object.entries(item.data).forEach(([key, value]) => {
199
199
  if (key.endsWith('_slug') && typeof value === 'string' && value) {
200
- // หา slug ในข้อความและครอบด้วย <strong>
201
- const slugPattern = new RegExp(`\\b${value}\\b`, 'g')
200
+ const escapedValue = value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
201
+ const slugPattern = new RegExp(escapedValue, 'g')
202
202
 
203
203
  message = message.replace(slugPattern, `<span class="text-primary font-medium">${value}</span>`)
204
204
  }
@@ -398,7 +398,6 @@ const financeApps = computed(() => [
398
398
  },
399
399
  ]
400
400
  : []),
401
-
402
401
  ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
403
402
  ? [
404
403
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",