@finema/finework-layer 2.0.19 → 2.0.21

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.21](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.20...2.0.21) (2026-07-31)
4
+
5
+ ## [2.0.20](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.19...2.0.20) (2026-07-31)
6
+
3
7
  ## [2.0.19](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.18...2.0.19) (2026-07-31)
4
8
 
5
9
  ## [2.0.18](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.17...2.0.18) (2026-07-31)
@@ -14,7 +14,7 @@
14
14
  />
15
15
 
16
16
  <template #content>
17
- <Card class="w-90">
17
+ <Card class="w-95">
18
18
  <div class="mb-3 flex items-center justify-between">
19
19
  <h3 class="text-base font-semibold">
20
20
  Add bookmark
@@ -33,7 +33,7 @@
33
33
 
34
34
  <div class="flex gap-3">
35
35
  <div class="flex size-16 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-gray-100">
36
- <Loader :loading="preview.status.isLoading">
36
+ <Loader :loading="preview.status.value.isLoading">
37
37
  <img
38
38
  v-if="thumbnailUrl"
39
39
  :src="thumbnailUrl"
@@ -64,10 +64,11 @@
64
64
  v-if="!isCreatingFolder"
65
65
  class="flex gap-2"
66
66
  >
67
- <Select
67
+ <SelectMenu
68
68
  v-if="folderOptions.length > 0"
69
69
  v-model="folderId"
70
70
  :items="folderOptions"
71
+ value-key="value"
71
72
  placeholder="Folder"
72
73
  size="lg"
73
74
  class="flex-1"
@@ -190,10 +191,6 @@ const onFetchPreview = () => {
190
191
  params: {
191
192
  url: url.value,
192
193
  },
193
- }).then(() => {
194
- if (!preview.data.value) return
195
- if (!name.value) name.value = preview.data.value.name
196
- thumbnailUrl.value = preview.data.value.favicon_url || preview.data.value.image_url || null
197
194
  })
198
195
  }
199
196
 
@@ -244,6 +241,12 @@ const onRemove = async () => {
244
241
  isOpen.value = false
245
242
  }
246
243
 
244
+ useWatchTrue(() => preview.status.value.isSuccess, () => {
245
+ if (!preview.data.value) return
246
+ name.value = preview.data.value.name
247
+ thumbnailUrl.value = preview.data.value.favicon_url || preview.data.value.image_url || null
248
+ })
249
+
247
250
  useWatchTrue(() => bookmarks.add.status.isSuccess, () => {
248
251
  bookmarks.fetchAll()
249
252
  })
@@ -42,7 +42,7 @@ export const useBookmarksLoader = defineStore('bookmarks.bookmarks', () => {
42
42
  })
43
43
  })
44
44
 
45
- export const useBookmarkPreviewLoader = defineStore('bookmarks.preview', () => {
45
+ export const useBookmarkPreviewLoader = () => {
46
46
  const options = useRequestOptions()
47
47
 
48
48
  return useObjectLoader<IBookmarkPreview>({
@@ -50,4 +50,4 @@ export const useBookmarkPreviewLoader = defineStore('bookmarks.preview', () => {
50
50
  url: '/bookmarks/preview',
51
51
  getRequestOptions: options.auth,
52
52
  })
53
- })
53
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "2.0.19",
4
+ "version": "2.0.21",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",