vyrn 1.8.2 → 1.8.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/dist/components/ClientToastProvider.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/rollup.config.js +48 -49
- package/src/components/ClientToastProvider.tsx +9 -0
- package/src/hooks/useToast.ts +2 -0
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ToastProvider } from './components/ToastProvider';
|
|
2
|
-
export {
|
|
2
|
+
export { ClientToastProvider } from './components/ClientToastProvider';
|
|
3
3
|
export { useToast } from './hooks/useToast';
|
|
4
4
|
export type { ToastProps, ToastType } from './types';
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t,{useEffect as e,useState as r,useCallback as n}from"react";var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)};function a(t,e,r){if(r||2===arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var i=t.createContext(void 0),s=function(){var e=t.useContext(i);if(void 0===e)throw new Error("useToastContext must be used within a ToastProvider");return e},c=function(r){var n=r.id,o=r.message,a=r.type,i=r.duration,c=void 0===i?3e3:i,u=s().removeToast;return e((function(){var t=setTimeout((function(){u(n)}),c);return function(){return clearTimeout(t)}}),[n,c,u]),t.createElement("div",{className:"vyrn-toast vyrn-toast-".concat(a),role:"alert"},t.createElement("div",{className:"vyrn-toast-message"},o),t.createElement("button",{className:"vyrn-toast-close",onClick:function(){return u(n)},"aria-label":"Close"},"×"))},u=function(e){var r=e.toasts;return t.createElement("div",{className:"vyrn-toast-container","aria-live":"polite","aria-atomic":"true"},r.map((function(e){return t.createElement(c,o({key:e.id},e))})))};!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".vyrn-toast-container{position:fixed;right:1rem;top:1rem;z-index:9999}.vyrn-toast{align-items:center;animation:vyrnFadeIn .3s ease-out;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.1);display:flex;justify-content:space-between;margin-bottom:.5rem;padding:.75rem 1rem}.vyrn-toast-info{background-color:#3498db;color:#fff}.vyrn-toast-success{background-color:#2ecc71;color:#fff}.vyrn-toast-warning{background-color:#f39c12;color:#fff}.vyrn-toast-error{background-color:#e74c3c;color:#fff}.vyrn-toast-message{flex-grow:1;margin-right:1rem}.vyrn-toast-close{background:none;border:none;color:inherit;cursor:pointer;font-size:1.2rem;opacity:.7;transition:opacity .2s}.vyrn-toast-close:hover{opacity:1}@keyframes vyrnFadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes vyrnFadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}.vyrn-toast-exit{animation:vyrnFadeOut .3s ease-in forwards}",{insertAt:"top"});var f=function(s){var c=s.children,f=r([]),l=f[0],d=f[1],m=r([]),v=m[0],y=m[1],p=n((function(t){var e=Math.random().toString(36).substr(2,9);l.length<5?d((function(r){return a(a([],r,!0),[o(o({},t),{id:e})],!1)})):y((function(e){return a(a([],e,!0),[t],!1)}))}),[l]),g=n((function(t){d((function(e){return e.filter((function(e){return e.id!==t}))}))}),[]);return e((function(){if(l.length<5&&v.length>0){var t=v[0],e=v.slice(1);p(t),y(e)}}),[l,v,p]),t.createElement(i.Provider,{value:{addToast:p,removeToast:g}},c,t.createElement(u,{toasts:l}))},l=function(){var t=s().addToast,e=n((function(e,r,n){void 0===r&&(r="info"),t({message:e,type:r,duration:n})}),[t]);return{toast:e,info:function(t,r){return e(t,"info",r)},success:function(t,r){return e(t,"success",r)},warning:function(t,r){return e(t,"warning",r)},error:function(t,r){return e(t,"error",r)}}};export{
|
|
1
|
+
import t,{useEffect as e,useState as r,useCallback as n}from"react";var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)};function a(t,e,r){if(r||2===arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var i=t.createContext(void 0),s=function(){var e=t.useContext(i);if(void 0===e)throw new Error("useToastContext must be used within a ToastProvider");return e},c=function(r){var n=r.id,o=r.message,a=r.type,i=r.duration,c=void 0===i?3e3:i,u=s().removeToast;return e((function(){var t=setTimeout((function(){u(n)}),c);return function(){return clearTimeout(t)}}),[n,c,u]),t.createElement("div",{className:"vyrn-toast vyrn-toast-".concat(a),role:"alert"},t.createElement("div",{className:"vyrn-toast-message"},o),t.createElement("button",{className:"vyrn-toast-close",onClick:function(){return u(n)},"aria-label":"Close"},"×"))},u=function(e){var r=e.toasts;return t.createElement("div",{className:"vyrn-toast-container","aria-live":"polite","aria-atomic":"true"},r.map((function(e){return t.createElement(c,o({key:e.id},e))})))};!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".vyrn-toast-container{position:fixed;right:1rem;top:1rem;z-index:9999}.vyrn-toast{align-items:center;animation:vyrnFadeIn .3s ease-out;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.1);display:flex;justify-content:space-between;margin-bottom:.5rem;padding:.75rem 1rem}.vyrn-toast-info{background-color:#3498db;color:#fff}.vyrn-toast-success{background-color:#2ecc71;color:#fff}.vyrn-toast-warning{background-color:#f39c12;color:#fff}.vyrn-toast-error{background-color:#e74c3c;color:#fff}.vyrn-toast-message{flex-grow:1;margin-right:1rem}.vyrn-toast-close{background:none;border:none;color:inherit;cursor:pointer;font-size:1.2rem;opacity:.7;transition:opacity .2s}.vyrn-toast-close:hover{opacity:1}@keyframes vyrnFadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes vyrnFadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}.vyrn-toast-exit{animation:vyrnFadeOut .3s ease-in forwards}",{insertAt:"top"});var f=function(s){var c=s.children,f=r([]),l=f[0],d=f[1],m=r([]),v=m[0],y=m[1],p=n((function(t){var e=Math.random().toString(36).substr(2,9);l.length<5?d((function(r){return a(a([],r,!0),[o(o({},t),{id:e})],!1)})):y((function(e){return a(a([],e,!0),[t],!1)}))}),[l]),g=n((function(t){d((function(e){return e.filter((function(e){return e.id!==t}))}))}),[]);return e((function(){if(l.length<5&&v.length>0){var t=v[0],e=v.slice(1);p(t),y(e)}}),[l,v,p]),t.createElement(i.Provider,{value:{addToast:p,removeToast:g}},c,t.createElement(u,{toasts:l}))},l=function(e){var r=e.children;return t.createElement(f,null,r)},d=function(){var t=s().addToast,e=n((function(e,r,n){void 0===r&&(r="info"),t({message:e,type:r,duration:n})}),[t]);return{toast:e,info:function(t,r){return e(t,"info",r)},success:function(t,r){return e(t,"success",r)},warning:function(t,r){return e(t,"warning",r)},error:function(t,r){return e(t,"error",r)}}};export{l as ClientToastProvider,f as ToastProvider,d as useToast};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"w0CAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function o(t,e,r){if(r||2===arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var a=r.default.createContext(void 0),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function o(t,e,r){if(r||2===arguments.length)for(var n,o=0,a=e.length;o<a;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var a=r.default.createContext(void 0),i=function(){var t=r.default.useContext(a);if(void 0===t)throw new Error("useToastContext must be used within a ToastProvider");return t},s=function(e){var n=e.id,o=e.message,a=e.type,s=e.duration,c=void 0===s?3e3:s,u=i().removeToast;return t.useEffect((function(){var t=setTimeout((function(){u(n)}),c);return function(){return clearTimeout(t)}}),[n,c,u]),r.default.createElement("div",{className:"vyrn-toast vyrn-toast-".concat(a),role:"alert"},r.default.createElement("div",{className:"vyrn-toast-message"},o),r.default.createElement("button",{className:"vyrn-toast-close",onClick:function(){return u(n)},"aria-label":"Close"},"×"))},c=function(t){var e=t.toasts;return r.default.createElement("div",{className:"vyrn-toast-container","aria-live":"polite","aria-atomic":"true"},e.map((function(t){return r.default.createElement(s,n({key:t.id},t))})))};!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".vyrn-toast-container{position:fixed;right:1rem;top:1rem;z-index:9999}.vyrn-toast{align-items:center;animation:vyrnFadeIn .3s ease-out;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.1);display:flex;justify-content:space-between;margin-bottom:.5rem;padding:.75rem 1rem}.vyrn-toast-info{background-color:#3498db;color:#fff}.vyrn-toast-success{background-color:#2ecc71;color:#fff}.vyrn-toast-warning{background-color:#f39c12;color:#fff}.vyrn-toast-error{background-color:#e74c3c;color:#fff}.vyrn-toast-message{flex-grow:1;margin-right:1rem}.vyrn-toast-close{background:none;border:none;color:inherit;cursor:pointer;font-size:1.2rem;opacity:.7;transition:opacity .2s}.vyrn-toast-close:hover{opacity:1}@keyframes vyrnFadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes vyrnFadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}.vyrn-toast-exit{animation:vyrnFadeOut .3s ease-in forwards}",{insertAt:"top"});var u=function(e){var i=e.children,s=t.useState([]),u=s[0],l=s[1],f=t.useState([]),d=f[0],v=f[1],m=t.useCallback((function(t){var e=Math.random().toString(36).substr(2,9);u.length<5?l((function(r){return o(o([],r,!0),[n(n({},t),{id:e})],!1)})):v((function(e){return o(o([],e,!0),[t],!1)}))}),[u]),p=t.useCallback((function(t){l((function(e){return e.filter((function(e){return e.id!==t}))}))}),[]);return t.useEffect((function(){if(u.length<5&&d.length>0){var t=d[0],e=d.slice(1);m(t),v(e)}}),[u,d,m]),r.default.createElement(a.Provider,{value:{addToast:m,removeToast:p}},i,r.default.createElement(c,{toasts:u}))};exports.ClientToastProvider=function(t){var e=t.children;return r.default.createElement(u,null,e)},exports.ToastProvider=u,exports.useToast=function(){var e=i().addToast,r=t.useCallback((function(t,r,n){void 0===r&&(r="info"),e({message:t,type:r,duration:n})}),[e]);return{toast:r,info:function(t,e){return r(t,"info",e)},success:function(t,e){return r(t,"success",e)},warning:function(t,e){return r(t,"warning",e)},error:function(t,e){return r(t,"error",e)}}};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode"],"mappings":"g/CAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBY,CAqB1D"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vyrn",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "A modern, customizable toast library for React and Next.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "rollup -c",
|
|
10
|
+
"build:watch": "rollup -c -w",
|
|
10
11
|
"test": "jest",
|
|
11
12
|
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
|
|
12
13
|
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' --fix",
|
package/rollup.config.js
CHANGED
|
@@ -1,58 +1,57 @@
|
|
|
1
1
|
import typescript from 'rollup-plugin-typescript2';
|
|
2
2
|
import postcss from 'rollup-plugin-postcss';
|
|
3
3
|
import { terser } from 'rollup-plugin-terser';
|
|
4
|
-
import pkg from './package.json';
|
|
5
|
-
import { babel } from '@rollup/plugin-babel';
|
|
6
4
|
import replace from '@rollup/plugin-replace';
|
|
5
|
+
import pkg from './package.json';
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
const external = [...Object.keys(pkg.peerDependencies || {})];
|
|
8
|
+
|
|
9
|
+
const plugins = [
|
|
10
|
+
// Add replace plugin to handle 'use client' directives
|
|
11
|
+
replace({
|
|
12
|
+
preventAssignment: true,
|
|
13
|
+
values: {
|
|
14
|
+
'use client': '',
|
|
16
15
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
}),
|
|
17
|
+
typescript({
|
|
18
|
+
typescript: require('typescript'),
|
|
19
|
+
tsconfig: 'tsconfig.json',
|
|
20
|
+
tsconfigOverride: {
|
|
21
|
+
compilerOptions: {
|
|
22
|
+
declaration: true,
|
|
23
|
+
declarationDir: 'dist',
|
|
24
|
+
},
|
|
22
25
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
}),
|
|
27
|
+
postcss({
|
|
28
|
+
extensions: ['.css'],
|
|
29
|
+
minimize: true,
|
|
30
|
+
inject: {
|
|
31
|
+
insertAt: 'top',
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
terser(),
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export default [
|
|
38
|
+
{
|
|
39
|
+
input: 'src/index.ts',
|
|
40
|
+
output: [
|
|
41
|
+
{
|
|
42
|
+
file: pkg.main,
|
|
43
|
+
format: 'cjs',
|
|
44
|
+
exports: 'named',
|
|
45
|
+
sourcemap: true,
|
|
29
46
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
postcss({
|
|
36
|
-
extensions: ['.css'],
|
|
37
|
-
minimize: true,
|
|
38
|
-
inject: {
|
|
39
|
-
insertAt: 'top',
|
|
47
|
+
{
|
|
48
|
+
file: pkg.module,
|
|
49
|
+
format: 'es',
|
|
50
|
+
exports: 'named',
|
|
51
|
+
sourcemap: true,
|
|
40
52
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
['@babel/plugin-syntax-typescript', { isTSX: true }],
|
|
47
|
-
],
|
|
48
|
-
}),
|
|
49
|
-
{
|
|
50
|
-
name: 'add-use-client',
|
|
51
|
-
renderChunk(code) {
|
|
52
|
-
return "'use client';\n" + code;
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
terser(),
|
|
56
|
-
],
|
|
57
|
-
external: [...Object.keys(pkg.peerDependencies || {})],
|
|
58
|
-
};
|
|
53
|
+
],
|
|
54
|
+
external,
|
|
55
|
+
plugins,
|
|
56
|
+
},
|
|
57
|
+
];
|
package/src/hooks/useToast.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ToastProvider } from './components/ToastProvider';
|
|
2
|
-
export {
|
|
2
|
+
export { ClientToastProvider } from './components/ClientToastProvider';
|
|
3
3
|
export { useToast } from './hooks/useToast';
|
|
4
4
|
export type { ToastProps, ToastType } from './types';
|
|
5
5
|
|