@saasmakers/ui 0.1.110 → 0.1.111

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.
@@ -1,5 +1,3 @@
1
- import { randomUUID } from 'node:crypto'
2
-
3
1
  const toasts = ref<BaseToast[]>([])
4
2
 
5
3
  export default function useToast() {
@@ -22,7 +20,8 @@ export default function useToast() {
22
20
  const createToast = (message: string, status: BaseStatus = 'success', i18nParams?: Record<string, number | string>) => {
23
21
  if (import.meta.client) {
24
22
  const toast: BaseToast = {
25
- id: randomUUID(),
23
+ // eslint-disable-next-line n/no-unsupported-features/node-builtins
24
+ id: crypto.randomUUID(),
26
25
  status: status || 'success',
27
26
  text: message.includes(' ') ? message : nuxtApp.$i18n.t(`toasts.${message}`, i18nParams || {}),
28
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "0.1.110",
3
+ "version": "0.1.111",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "repository": {