@brighthr/component-toast
Advanced tools
Comparing version 1.0.14 to 2.0.0
@@ -1,4 +0,4 @@ | ||
/// <reference types="node" /> | ||
import { ReactNode } from 'react'; | ||
export declare type ToastParams = { | ||
declare type ToastParams = { | ||
type: 'success' | 'error' | 'information' | 'tip' | 'warning'; | ||
@@ -20,2 +20,3 @@ text?: string; | ||
declare const Toaster: () => JSX.Element; | ||
export { Toaster, useToast }; | ||
export { ToastParams, Toaster, useToast }; |
{ | ||
"name": "@brighthr/component-toast", | ||
"version": "1.0.14", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"source": "src/index.tsx", | ||
"exports": "./dist/index.modern.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.module.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
@@ -15,4 +16,4 @@ "access": "public" | ||
"scripts": { | ||
"start": "microbundle watch --jsx React.createElement --jsxFragment React.Fragment", | ||
"build": "microbundle --jsx React.createElement --jsxFragment React.Fragment" | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
@@ -41,3 +42,3 @@ "eslintConfig": { | ||
}, | ||
"gitHead": "47942613c9b9213277a2945383add93767feafc8" | ||
"gitHead": "1b82cedd964ef0ee483494eba535cdd0e48716ea" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
22256
8
256
1