@finema/finework-layer 2.0.20 → 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,7 @@
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
+
3
5
  ## [2.0.20](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.19...2.0.20) (2026-07-31)
4
6
 
5
7
  ## [2.0.19](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.18...2.0.19) (2026-07-31)
@@ -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"
@@ -241,10 +241,10 @@ const onRemove = async () => {
241
241
  isOpen.value = false
242
242
  }
243
243
 
244
- useWatchTrue(() => preview.status.isSuccess, () => {
245
- if (!preview.data) return
246
- name.value = preview.data.name
247
- thumbnailUrl.value = preview.data.favicon_url || preview.data.image_url || null
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
248
  })
249
249
 
250
250
  useWatchTrue(() => bookmarks.add.status.isSuccess, () => {
@@ -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.20",
4
+ "version": "2.0.21",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",