@finema/finework-layer 2.0.2 → 2.0.4

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.4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.3...2.0.4) (2026-06-30)
4
+
5
+ ## [2.0.3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.2...2.0.3) (2026-06-30)
6
+
3
7
  ## [2.0.2](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/2.0.1...2.0.2) (2026-06-30)
4
8
 
5
9
  ## [2.0.1](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.88...2.0.1) (2026-06-29)
@@ -165,7 +165,25 @@
165
165
  class="mb-4 flex flex-col justify-between gap-1 md:mb-6 md:gap-4 lg:flex-row lg:items-start"
166
166
  >
167
167
  <div class="flex flex-1 flex-col">
168
+ <NuxtLink
169
+ v-if="backTo"
170
+ class="flex items-center gap-1"
171
+ :to="backTo"
172
+ >
173
+ <Icon
174
+ class="size-7"
175
+ name="ph:caret-left"
176
+ />
177
+ <h1
178
+ class="text-3xl font-bold wrap-break-word lg:max-w-2/3"
179
+ :title="app.pageMeta.title"
180
+ >
181
+ {{ app.pageMeta.title }}
182
+ <span id="page-title-extra" />
183
+ </h1>
184
+ </NuxtLink>
168
185
  <h1
186
+ v-else
169
187
  class="text-3xl font-bold wrap-break-word lg:max-w-2/3"
170
188
  :title="app.pageMeta.title"
171
189
  >
@@ -250,4 +268,12 @@ const breadcrumbsItems = computed(() => {
250
268
  ...extra,
251
269
  ]
252
270
  })
271
+
272
+ const backTo = computed(() => {
273
+ if (breadcrumbsItems.value.length >= 3) {
274
+ return breadcrumbsItems.value[breadcrumbsItems.value.length - 2]?.to
275
+ }
276
+
277
+ return undefined
278
+ })
253
279
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",