@mantine/notifications
Advanced tools
Comparing version 1.2.0-alpha.4 to 1.2.0-alpha.5
@@ -6,3 +6,2 @@ 'use strict'; | ||
var hooks = require('@mantine/hooks'); | ||
var core = require('@mantine/core'); | ||
@@ -34,3 +33,3 @@ var __defProp = Object.defineProperty; | ||
const showNotification = (notification) => { | ||
const id = notification.id || core.randomId(); | ||
const id = notification.id || hooks.randomId(); | ||
update((notifications) => { | ||
@@ -37,0 +36,0 @@ if (notification.id && notifications.some((n) => n.id === notification.id)) { |
@@ -1,3 +0,2 @@ | ||
import { useQueue } from '@mantine/hooks'; | ||
import { randomId } from '@mantine/core'; | ||
import { useQueue, randomId } from '@mantine/hooks'; | ||
@@ -4,0 +3,0 @@ var __defProp = Object.defineProperty; |
{ | ||
"name": "@mantine/notifications", | ||
"version": "1.2.0-alpha.4", | ||
"version": "1.2.0-alpha.5", | ||
"main": "cjs/index.js", | ||
@@ -11,4 +11,4 @@ "module": "esm/index.js", | ||
"peerDependencies": { | ||
"@mantine/core": "1.2.0-alpha.4", | ||
"@mantine/hooks": "1.2.0-alpha.4", | ||
"@mantine/core": "1.2.0-alpha.5", | ||
"@mantine/hooks": "1.2.0-alpha.5", | ||
"react": ">=16.8.0", | ||
@@ -15,0 +15,0 @@ "react-dom": ">=16.8.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
334211
3069