@dev.smartpricing/message-composer-layer 4.2.9-toast.0 → 4.2.9-toast.1

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/app/api/client.ts CHANGED
@@ -45,7 +45,7 @@ export const apiClient = createApiClient({
45
45
  onResponseError({ response, options }) {
46
46
  if ((options as { _skipErrorToast?: boolean })._skipErrorToast) return
47
47
 
48
- const { t } = useI18n()
48
+ const t = useNuxtApp().$i18n.t
49
49
  const code = assertAppError(response._data) ? response._data.code : undefined
50
50
  const toast = resolveErrorToast({ status: response.status, code }, t)
51
51
  useToast().add({ ...toast, color: 'error' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev.smartpricing/message-composer-layer",
3
- "version": "4.2.9-toast.0",
3
+ "version": "4.2.9-toast.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -36,7 +36,7 @@
36
36
  "vue-router": "^5.0.7",
37
37
  "vue3-emoji-picker": "^1.1.8",
38
38
  "zod": "^4.4.3",
39
- "@dev.smartpricing/message-composer-utils": "4.2.9-toast.0"
39
+ "@dev.smartpricing/message-composer-utils": "4.2.9-toast.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@nuxt/eslint": "^1.15.2",