@magicbell/magicbell-react
Advanced tools
Comparing version 10.11.3 to 10.11.4
/** | ||
* @license @magicbell/magicbell-react v10.11.3 | ||
* @license @magicbell/magicbell-react v10.11.4 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) MagicBell Inc. and its affiliates. |
/** | ||
* @license @magicbell/magicbell-react v10.11.3 | ||
* @license @magicbell/magicbell-react v10.11.4 | ||
* | ||
@@ -753,3 +753,3 @@ * Copyright (c) MagicBell Inc. and its affiliates. | ||
max-width: calc(100vw - 10px); | ||
`},t),{children:o}))}function Pe({launcherRef:e,isOpen:o,toggle:t,placement:r="auto",width:a=500,closeOnClickOutside:n=!0,popperOptions:s,hideArrow:l=!1,layout:d=["header","content","push-notifications-banner","footer"],children:m}){const h=()=>{n&&(t==null||t())};return c.jsx(Z,{isOpen:o,launcherRef:e,onClickOutside:h,placement:r,popperOptions:s,children:b=>c.jsxs(Kt,{width:a,attrs:b,layout:d,children:[m,l?null:c.jsx(Ae,{placement:b["data-placement"]})]})})}function Ee(S){var k=S,{launcherRef:e,isOpen:o,toggle:t,placement:r="auto",width:a=500,onNotificationClick:n,closeOnClickOutside:s=!0,closeOnNotificationClick:l=!0,popperOptions:d,hideArrow:m=!1,layout:h}=k,b=M(k,["launcherRef","isOpen","toggle","placement","width","onNotificationClick","closeOnClickOutside","closeOnNotificationClick","popperOptions","hideArrow","layout"]);const $=z=>(l&&(t==null||t()),n==null?void 0:n(z)),{isFetchingConfig:F}=D();return F?null:c.jsx(Pe,{launcherRef:e,isOpen:o,toggle:t,placement:r,width:a,closeOnClickOutside:s,popperOptions:d,hideArrow:m,layout:h,children:c.jsx(Re,C({onNotificationClick:$,layout:h},b))})}const Ne="MAGICBELL_NO_PROVIDER",Gt=x.createContext(Ne),Te=Gt,Yt={header:{title:"Benachrichtigungen","mark-all-read":"Alle als gelesen markieren"},notification:{"mark-as-read":"Als gelesen markieren","mark-as-unread":"Als ungelesen markieren",delete:"L\xF6schen",menu:"Menu"},"web-push-notifications":{notice:"Wenn Sie Browser-Benachrichtigungen aktivieren, bleiben Sie noch besser auf dem Laufenden.","enable-now":"Aktivieren"},messages:{"empty-inbox":"Alles Sauber!<br>Wir melden uns, wenn's was neues gibt!"},preferences:{title:"Einstellungen",toggle:"Benachrichtigungseinstellungen",close:"Einstellungen schlie\xDFen"}},Jt=Yt,Qt={header:{title:"Notificaciones","mark-all-read":"Marcar todo como le\xEDdo"},notification:{"mark-as-read":"Marcar como le\xEDdo","mark-as-unread":"Marcar como no le\xEDdo",delete:"Eliminar",menu:"Menu"},"web-push-notifications":{notice:"Active notificaciones en su navegador para mantenerse actualizado","enable-now":"Activar"},messages:{"empty-inbox":"\xA1No tiene notificaciones!<br>Le haremos saber cuando llegue una."},preferences:{title:"Preferencias",toggle:"Preferencias de notificaci\xF3n",close:"Cerrar preferencias"}},Xt=Qt,eo={header:{title:"Notifica\xE7\xF5es","mark-all-read":"Marcar tudo como lido"},notification:{"mark-as-read":"Marcar como lido","mark-as-unread":"Marcar como n\xE3o lido",delete:"Apagar",menu:"Menu"},"web-push-notifications":{notice:"Ao ativar as notifica\xE7\xF5es do navegador, voc\xEA ficar\xE1 ainda melhor atualizado.","enable-now":"Ativar"},messages:{"empty-inbox":"Nenhuma notifica\xE7\xE3o dispon\xEDvel!","server-error":"N\xE3o conseguimos recuperar suas notifica\xE7\xF5es.<br>Por favor, volte em breve.","no-internet-connection":"N\xE3o conseguimos nos conectar \xE0 Internet.<br>Por favor, verifique sua conex\xE3o."},preferences:{title:"Prefer\xEAncias",toggle:"Prefer\xEAncias de notifica\xE7\xE3o",close:"Fechar prefer\xEAncias"}},to=eo;function oo(e){const o=e.toLowerCase().replace("_","-");V.default.locale(o)}function no(e){const o=typeof e=="string"?e:e.name;oo(o);const t={es:Xt,pt_BR:to,de:Jt};return typeof e=="string"?t[e]:B.mergeDeepRight(t,{[o]:e.translations})[o]}const ro={appInfo:{name:"@magicbell/magicbell-react",version:"10.11.3"}};function Ie(n){var s=n,{children:e,theme:o,images:t,locale:r}=s,a=M(s,["children","theme","images","locale"]);return c.jsx(w.MagicBellProvider,j(C(C({},ro),a),{children:c.jsx(io,j(C({},a),{theme:o,images:t,locale:r,children:e}))}))}function io(n){var s=n,{children:e,theme:o,locale:t,images:r}=s,a=M(s,["children","theme","locale","images"]);const l=!o||!t||!r,[d,m]=x.useState({}),[h,b]=x.useState(l);x.useEffect(()=>{if(!l)return;w.clientSettings.getState().getClient().request({method:"POST",path:"/integrations/inbox/installations"}).then($=>{"inbox"in $&&m($.inbox)}).catch(()=>{}).finally(()=>b(!1))},[l,a.apiKey,a.userExternalId,a.userExternalId]);const S=no(t||d.locale||"en");return c.jsx(Te.Provider,{value:"DEFAULT_MAGICBELL",children:c.jsx(bt,{value:S,children:c.jsx(pt,{value:o||d.theme,children:c.jsx(le.Provider,{value:{images:r||d.images,isFetchingConfig:h},children:e})})})})}function ao(r){var a=r,{children:e,apiKey:o}=a,t=M(a,["children","apiKey"]);return x.useContext(Te)===Ne?o?c.jsx(Ie,j(C({apiKey:o},t),{children:e})):null:c.jsx(c.Fragment,{children:e})}const so=e=>c.jsx(Ee,C({height:500},e));function Oe(m){var h=m,{children:e=so,BellIcon:o,Badge:t,defaultIsOpen:r=!1,onNewNotification:a,onToggle:n,bellCounter:s="unseen",isOpen:l}=h,d=M(h,["children","BellIcon","Badge","defaultIsOpen","onNewNotification","onToggle","bellCounter","isOpen"]);const b=x.useRef(null),S=typeof l<"u",[k,$]=Qe.default(r),F=S?l:k,z=()=>{S||$(),n==null||n(!F)},N=L=>{a==null||a(L)};return w.useMagicBellEvent("notifications.new",N),c.jsx(ao,j(C({},d),{children:c.jsxs("div",{children:[c.jsx("div",{ref:b,"aria-expanded":F,children:c.jsx(he,{onClick:z,Icon:o,Badge:t,counter:s})}),F&&e({isOpen:F,toggle:z,launcherRef:b})]})}))}function co({children:e,serviceWorkerPath:o="/service-worker.js",skipServiceWorkerRegistration:t=!1}){const r=K.isSupported();return x.useEffect(()=>{t||K.registerServiceWorker(o).catch(n=>{console.error(`Error registering service worker: ${n}`)})},[o,t]),e({createSubscription:async()=>{const n=w.clientSettings.getState();if(!(n!=null&&n.apiKey))throw new Error("MagicBell Context was not found, did you wrap this in a MagicBellProvider?");if(!n.userExternalId&&!n.userEmail)throw new Error("Can't subscribe without either a userExternalId or userEmail");const s={host:n.serverURL,apiKey:n.apiKey,userHmac:n.userKey,userExternalId:n.userExternalId,userEmail:n.userEmail,serviceWorkerPath:o};return new K.WebPushClient(s).subscribe()},isPushAPISupported:r})}const q={sans:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},g={bg:"#FFFFFF",caption:"#0f172a",text:"#3A424D",stroke:"#e2e8f0",accent:"#3498F4",badge:"#DF4759",transparent:"transparent"},ie={backgroundColor:g.accent,backgroundOpacity:1,borderRadius:"8px",fontFamily:q.sans,fontSize:"14px",fontWeight:"inherit",textAlign:"left",textColor:g.bg,textTransform:"uppercase"},lo={prose:{headings:g.caption,links:g.caption,bold:g.caption,hr:g.stroke,quotes:g.text,quoteBorders:g.stroke,captions:g.caption,code:g.text,preCode:g.stroke,preBg:g.text,thBorders:g.stroke,tdBorders:g.stroke,buttonBorders:g.text,buttons:g.caption,fontMono:q.mono},icon:{borderColor:g.accent},header:j(C({},ie),{padding:"16px 24px"}),footer:j(C({},ie),{padding:"12px 24px"}),banner:{backgroundColor:g.accent,backgroundOpacity:.1,textColor:g.text,fontFamily:q.sans,textAlign:"left",fontSize:"12px",boxShadow:"none"},dialog:{backgroundColor:g.bg,textColor:g.text,accentColor:g.accent},unseenBadge:{backgroundColor:g.badge,backgroundOpacity:1,borderRadius:"2px",fontFamily:q.sans,fontWeight:"inherit",fontSize:"10px",textAlign:"center",textColor:"white",textTransform:"none"},container:{backgroundColor:g.bg,fontFamily:q.sans,fontSize:"12px",textColor:g.text,boxShadow:"0px 20px 25px rgba(84, 95, 111, 0.1), 0px 10px 10px rgba(84, 95, 111, 0.04)"},notification:{default:{backgroundColor:"transparent",backgroundOpacity:0,borderRadius:"8px",fontFamily:q.sans,fontSize:"12px",fontWeight:"inherit",textAlign:"left",textColor:g.text,textTransform:"none",margin:"4px",padding:"16px 20px 16px 12px",title:{fontFamily:"inherit",fontSize:"14px",fontWeight:500,textColor:g.caption},hover:{backgroundColor:g.accent,backgroundOpacity:.1},state:{color:"transparent"}},unread:{backgroundOpacity:0,state:{color:g.accent}},unseen:{backgroundColor:g.accent,backgroundOpacity:.05,state:{color:g.accent}}}},u={bg:"#FFFFFF",caption:"#15091F",text:"#3A424D",stroke:"#EFEEF1",accent:"#5225C1",badge:"#F80808",bgHighlight:"#F7F6F9",bgActive:"#F0EDF8",transparent:"transparent"},ae={backgroundColor:u.bg,borderRadius:"8px",textColor:u.accent,borderColor:u.stroke},uo={prose:{headings:u.caption,links:u.caption,bold:u.caption,hr:u.stroke,quotes:u.text,quoteBorders:u.stroke,captions:u.caption,code:u.text,preCode:u.stroke,preBg:u.text,thBorders:u.stroke,tdBorders:u.stroke,buttonBorders:u.text,buttons:u.caption},icon:{borderColor:u.accent},header:ae,footer:ae,banner:{backgroundColor:u.bg,backgroundOpacity:1,textColor:u.text,fontFamily:O.sans,textAlign:"left",fontSize:"12px",boxShadow:`inset 0 1px 0 0 ${u.stroke}`},dialog:{backgroundColor:u.bg,textColor:u.text,accentColor:u.accent},unseenBadge:{backgroundColor:u.badge},container:{backgroundColor:u.bg,textColor:u.text,boxShadow:"none",borderColor:u.accent},notification:{default:{backgroundColor:u.bgHighlight,borderRadius:"0",textColor:u.text,margin:"0",title:{textColor:u.caption},hover:{backgroundColor:u.bgActive,backgroundOpacity:1},state:{color:u.transparent}},unread:{backgroundColor:u.bg,hover:{backgroundColor:u.bgActive},state:{color:u.accent}},unseen:{backgroundColor:u.bg,hover:{backgroundColor:u.bgActive},state:{color:u.accent}}}};Object.defineProperty(exports,"clientSettings",{enumerable:!0,get:()=>w.clientSettings});Object.defineProperty(exports,"eventAggregator",{enumerable:!0,get:()=>w.eventAggregator});Object.defineProperty(exports,"useMagicBellEvent",{enumerable:!0,get:()=>w.useMagicBellEvent});Object.defineProperty(exports,"useNotification",{enumerable:!0,get:()=>w.useNotification});Object.defineProperty(exports,"useNotificationPreferences",{enumerable:!0,get:()=>w.useNotificationPreferences});Object.defineProperty(exports,"useNotificationStoresCollection",{enumerable:!0,get:()=>w.useNotificationStoresCollection});Object.defineProperty(exports,"useNotificationUnmount",{enumerable:!0,get:()=>w.useNotificationUnmount});Object.defineProperty(exports,"useNotifications",{enumerable:!0,get:()=>w.useNotifications});exports.Badge=ge;exports.Bell=he;exports.BellIcon=me;exports.ClassicBellIcon=xt;exports.ClickableNotification=Fe;exports.EnablePushNotificationsButton=ve;exports.FloatingInboxContainer=Pe;exports.FloatingNotificationInbox=Ee;exports.FloatingNotificationInboxArrow=Ae;exports.Footer=Q;exports.Header=X;exports.MagicBell=Oe;exports.MagicBellContext=le;exports.MagicBellProvider=Ie;exports.MagicBellThemeContext=gt;exports.NotificationContent=we;exports.NotificationInbox=Re;exports.NotificationList=Me;exports.NotificationPreferences=ze;exports.NotificationState=$e;exports.Popover=Z;exports.PushNotificationsSubscriber=co;exports.StyledNotificationContainer=Be;exports.Timestamp=Se;exports.classicTheme=lo;exports.darken=de;exports.default=Oe;exports.defaultMagicBellTheme=H;exports.flatTheme=uo;exports.lightTheme=pe;exports.merge=_;exports.toRGBA=A;exports.useMagicBellContext=D;exports.useTheme=v; | ||
`},t),{children:o}))}function Pe({launcherRef:e,isOpen:o,toggle:t,placement:r="auto",width:a=500,closeOnClickOutside:n=!0,popperOptions:s,hideArrow:l=!1,layout:d=["header","content","push-notifications-banner","footer"],children:m}){const h=()=>{n&&(t==null||t())};return c.jsx(Z,{isOpen:o,launcherRef:e,onClickOutside:h,placement:r,popperOptions:s,children:b=>c.jsxs(Kt,{width:a,attrs:b,layout:d,children:[m,l?null:c.jsx(Ae,{placement:b["data-placement"]})]})})}function Ee(S){var k=S,{launcherRef:e,isOpen:o,toggle:t,placement:r="auto",width:a=500,onNotificationClick:n,closeOnClickOutside:s=!0,closeOnNotificationClick:l=!0,popperOptions:d,hideArrow:m=!1,layout:h}=k,b=M(k,["launcherRef","isOpen","toggle","placement","width","onNotificationClick","closeOnClickOutside","closeOnNotificationClick","popperOptions","hideArrow","layout"]);const $=z=>(l&&(t==null||t()),n==null?void 0:n(z)),{isFetchingConfig:F}=D();return F?null:c.jsx(Pe,{launcherRef:e,isOpen:o,toggle:t,placement:r,width:a,closeOnClickOutside:s,popperOptions:d,hideArrow:m,layout:h,children:c.jsx(Re,C({onNotificationClick:$,layout:h},b))})}const Ne="MAGICBELL_NO_PROVIDER",Gt=x.createContext(Ne),Te=Gt,Yt={header:{title:"Benachrichtigungen","mark-all-read":"Alle als gelesen markieren"},notification:{"mark-as-read":"Als gelesen markieren","mark-as-unread":"Als ungelesen markieren",delete:"L\xF6schen",menu:"Menu"},"web-push-notifications":{notice:"Wenn Sie Browser-Benachrichtigungen aktivieren, bleiben Sie noch besser auf dem Laufenden.","enable-now":"Aktivieren"},messages:{"empty-inbox":"Alles Sauber!<br>Wir melden uns, wenn's was neues gibt!"},preferences:{title:"Einstellungen",toggle:"Benachrichtigungseinstellungen",close:"Einstellungen schlie\xDFen"}},Jt=Yt,Qt={header:{title:"Notificaciones","mark-all-read":"Marcar todo como le\xEDdo"},notification:{"mark-as-read":"Marcar como le\xEDdo","mark-as-unread":"Marcar como no le\xEDdo",delete:"Eliminar",menu:"Menu"},"web-push-notifications":{notice:"Active notificaciones en su navegador para mantenerse actualizado","enable-now":"Activar"},messages:{"empty-inbox":"\xA1No tiene notificaciones!<br>Le haremos saber cuando llegue una."},preferences:{title:"Preferencias",toggle:"Preferencias de notificaci\xF3n",close:"Cerrar preferencias"}},Xt=Qt,eo={header:{title:"Notifica\xE7\xF5es","mark-all-read":"Marcar tudo como lido"},notification:{"mark-as-read":"Marcar como lido","mark-as-unread":"Marcar como n\xE3o lido",delete:"Apagar",menu:"Menu"},"web-push-notifications":{notice:"Ao ativar as notifica\xE7\xF5es do navegador, voc\xEA ficar\xE1 ainda melhor atualizado.","enable-now":"Ativar"},messages:{"empty-inbox":"Nenhuma notifica\xE7\xE3o dispon\xEDvel!","server-error":"N\xE3o conseguimos recuperar suas notifica\xE7\xF5es.<br>Por favor, volte em breve.","no-internet-connection":"N\xE3o conseguimos nos conectar \xE0 Internet.<br>Por favor, verifique sua conex\xE3o."},preferences:{title:"Prefer\xEAncias",toggle:"Prefer\xEAncias de notifica\xE7\xE3o",close:"Fechar prefer\xEAncias"}},to=eo;function oo(e){const o=e.toLowerCase().replace("_","-");V.default.locale(o)}function no(e){const o=typeof e=="string"?e:e.name;oo(o);const t={es:Xt,pt_BR:to,de:Jt};return typeof e=="string"?t[e]:B.mergeDeepRight(t,{[o]:e.translations})[o]}const ro={appInfo:{name:"@magicbell/magicbell-react",version:"10.11.4"}};function Ie(n){var s=n,{children:e,theme:o,images:t,locale:r}=s,a=M(s,["children","theme","images","locale"]);return c.jsx(w.MagicBellProvider,j(C(C({},ro),a),{children:c.jsx(io,j(C({},a),{theme:o,images:t,locale:r,children:e}))}))}function io(n){var s=n,{children:e,theme:o,locale:t,images:r}=s,a=M(s,["children","theme","locale","images"]);const l=!o||!t||!r,[d,m]=x.useState({}),[h,b]=x.useState(l);x.useEffect(()=>{if(!l)return;w.clientSettings.getState().getClient().request({method:"POST",path:"/integrations/inbox/installations"}).then($=>{"inbox"in $&&m($.inbox)}).catch(()=>{}).finally(()=>b(!1))},[l,a.apiKey,a.userExternalId,a.userExternalId]);const S=no(t||d.locale||"en");return c.jsx(Te.Provider,{value:"DEFAULT_MAGICBELL",children:c.jsx(bt,{value:S,children:c.jsx(pt,{value:o||d.theme,children:c.jsx(le.Provider,{value:{images:r||d.images,isFetchingConfig:h},children:e})})})})}function ao(r){var a=r,{children:e,apiKey:o}=a,t=M(a,["children","apiKey"]);return x.useContext(Te)===Ne?o?c.jsx(Ie,j(C({apiKey:o},t),{children:e})):null:c.jsx(c.Fragment,{children:e})}const so=e=>c.jsx(Ee,C({height:500},e));function Oe(m){var h=m,{children:e=so,BellIcon:o,Badge:t,defaultIsOpen:r=!1,onNewNotification:a,onToggle:n,bellCounter:s="unseen",isOpen:l}=h,d=M(h,["children","BellIcon","Badge","defaultIsOpen","onNewNotification","onToggle","bellCounter","isOpen"]);const b=x.useRef(null),S=typeof l<"u",[k,$]=Qe.default(r),F=S?l:k,z=()=>{S||$(),n==null||n(!F)},N=L=>{a==null||a(L)};return w.useMagicBellEvent("notifications.new",N),c.jsx(ao,j(C({},d),{children:c.jsxs("div",{children:[c.jsx("div",{ref:b,"aria-expanded":F,children:c.jsx(he,{onClick:z,Icon:o,Badge:t,counter:s})}),F&&e({isOpen:F,toggle:z,launcherRef:b})]})}))}function co({children:e,serviceWorkerPath:o="/service-worker.js",skipServiceWorkerRegistration:t=!1}){const r=K.isSupported();return x.useEffect(()=>{t||K.registerServiceWorker(o).catch(n=>{console.error(`Error registering service worker: ${n}`)})},[o,t]),e({createSubscription:async()=>{const n=w.clientSettings.getState();if(!(n!=null&&n.apiKey))throw new Error("MagicBell Context was not found, did you wrap this in a MagicBellProvider?");if(!n.userExternalId&&!n.userEmail)throw new Error("Can't subscribe without either a userExternalId or userEmail");const s={host:n.serverURL,apiKey:n.apiKey,userHmac:n.userKey,userExternalId:n.userExternalId,userEmail:n.userEmail,serviceWorkerPath:o};return new K.WebPushClient(s).subscribe()},isPushAPISupported:r})}const q={sans:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},g={bg:"#FFFFFF",caption:"#0f172a",text:"#3A424D",stroke:"#e2e8f0",accent:"#3498F4",badge:"#DF4759",transparent:"transparent"},ie={backgroundColor:g.accent,backgroundOpacity:1,borderRadius:"8px",fontFamily:q.sans,fontSize:"14px",fontWeight:"inherit",textAlign:"left",textColor:g.bg,textTransform:"uppercase"},lo={prose:{headings:g.caption,links:g.caption,bold:g.caption,hr:g.stroke,quotes:g.text,quoteBorders:g.stroke,captions:g.caption,code:g.text,preCode:g.stroke,preBg:g.text,thBorders:g.stroke,tdBorders:g.stroke,buttonBorders:g.text,buttons:g.caption,fontMono:q.mono},icon:{borderColor:g.accent},header:j(C({},ie),{padding:"16px 24px"}),footer:j(C({},ie),{padding:"12px 24px"}),banner:{backgroundColor:g.accent,backgroundOpacity:.1,textColor:g.text,fontFamily:q.sans,textAlign:"left",fontSize:"12px",boxShadow:"none"},dialog:{backgroundColor:g.bg,textColor:g.text,accentColor:g.accent},unseenBadge:{backgroundColor:g.badge,backgroundOpacity:1,borderRadius:"2px",fontFamily:q.sans,fontWeight:"inherit",fontSize:"10px",textAlign:"center",textColor:"white",textTransform:"none"},container:{backgroundColor:g.bg,fontFamily:q.sans,fontSize:"12px",textColor:g.text,boxShadow:"0px 20px 25px rgba(84, 95, 111, 0.1), 0px 10px 10px rgba(84, 95, 111, 0.04)"},notification:{default:{backgroundColor:"transparent",backgroundOpacity:0,borderRadius:"8px",fontFamily:q.sans,fontSize:"12px",fontWeight:"inherit",textAlign:"left",textColor:g.text,textTransform:"none",margin:"4px",padding:"16px 20px 16px 12px",title:{fontFamily:"inherit",fontSize:"14px",fontWeight:500,textColor:g.caption},hover:{backgroundColor:g.accent,backgroundOpacity:.1},state:{color:"transparent"}},unread:{backgroundOpacity:0,state:{color:g.accent}},unseen:{backgroundColor:g.accent,backgroundOpacity:.05,state:{color:g.accent}}}},u={bg:"#FFFFFF",caption:"#15091F",text:"#3A424D",stroke:"#EFEEF1",accent:"#5225C1",badge:"#F80808",bgHighlight:"#F7F6F9",bgActive:"#F0EDF8",transparent:"transparent"},ae={backgroundColor:u.bg,borderRadius:"8px",textColor:u.accent,borderColor:u.stroke},uo={prose:{headings:u.caption,links:u.caption,bold:u.caption,hr:u.stroke,quotes:u.text,quoteBorders:u.stroke,captions:u.caption,code:u.text,preCode:u.stroke,preBg:u.text,thBorders:u.stroke,tdBorders:u.stroke,buttonBorders:u.text,buttons:u.caption},icon:{borderColor:u.accent},header:ae,footer:ae,banner:{backgroundColor:u.bg,backgroundOpacity:1,textColor:u.text,fontFamily:O.sans,textAlign:"left",fontSize:"12px",boxShadow:`inset 0 1px 0 0 ${u.stroke}`},dialog:{backgroundColor:u.bg,textColor:u.text,accentColor:u.accent},unseenBadge:{backgroundColor:u.badge},container:{backgroundColor:u.bg,textColor:u.text,boxShadow:"none",borderColor:u.accent},notification:{default:{backgroundColor:u.bgHighlight,borderRadius:"0",textColor:u.text,margin:"0",title:{textColor:u.caption},hover:{backgroundColor:u.bgActive,backgroundOpacity:1},state:{color:u.transparent}},unread:{backgroundColor:u.bg,hover:{backgroundColor:u.bgActive},state:{color:u.accent}},unseen:{backgroundColor:u.bg,hover:{backgroundColor:u.bgActive},state:{color:u.accent}}}};Object.defineProperty(exports,"clientSettings",{enumerable:!0,get:()=>w.clientSettings});Object.defineProperty(exports,"eventAggregator",{enumerable:!0,get:()=>w.eventAggregator});Object.defineProperty(exports,"useMagicBellEvent",{enumerable:!0,get:()=>w.useMagicBellEvent});Object.defineProperty(exports,"useNotification",{enumerable:!0,get:()=>w.useNotification});Object.defineProperty(exports,"useNotificationPreferences",{enumerable:!0,get:()=>w.useNotificationPreferences});Object.defineProperty(exports,"useNotificationStoresCollection",{enumerable:!0,get:()=>w.useNotificationStoresCollection});Object.defineProperty(exports,"useNotificationUnmount",{enumerable:!0,get:()=>w.useNotificationUnmount});Object.defineProperty(exports,"useNotifications",{enumerable:!0,get:()=>w.useNotifications});exports.Badge=ge;exports.Bell=he;exports.BellIcon=me;exports.ClassicBellIcon=xt;exports.ClickableNotification=Fe;exports.EnablePushNotificationsButton=ve;exports.FloatingInboxContainer=Pe;exports.FloatingNotificationInbox=Ee;exports.FloatingNotificationInboxArrow=Ae;exports.Footer=Q;exports.Header=X;exports.MagicBell=Oe;exports.MagicBellContext=le;exports.MagicBellProvider=Ie;exports.MagicBellThemeContext=gt;exports.NotificationContent=we;exports.NotificationInbox=Re;exports.NotificationList=Me;exports.NotificationPreferences=ze;exports.NotificationState=$e;exports.Popover=Z;exports.PushNotificationsSubscriber=co;exports.StyledNotificationContainer=Be;exports.Timestamp=Se;exports.classicTheme=lo;exports.darken=de;exports.default=Oe;exports.defaultMagicBellTheme=H;exports.flatTheme=uo;exports.lightTheme=pe;exports.merge=_;exports.toRGBA=A;exports.useMagicBellContext=D;exports.useTheme=v; | ||
//# sourceMappingURL=magicbell-magicbell-react.cjs.min.js.map |
{ | ||
"name": "@magicbell/magicbell-react", | ||
"version": "10.11.3", | ||
"version": "10.11.4", | ||
"description": "React components for building a notification inbox for your app", | ||
@@ -79,3 +79,3 @@ "author": "MagicBell <bot@magicbell.io> (https://magicbell.com/)", | ||
"@emotion/react": "^11.11.3", | ||
"@magicbell/react-headless": "4.5.3", | ||
"@magicbell/react-headless": "4.5.4", | ||
"@magicbell/webpush": "2.0.1", | ||
@@ -96,3 +96,3 @@ "@tippyjs/react": "^4.2.6", | ||
"tslib": "^2.6.2", | ||
"zustand": "^3.7.2" | ||
"zustand": "^4.5.2" | ||
}, | ||
@@ -99,0 +99,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
+ Added@magicbell/react-headless@4.5.4(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedmagicbell@3.2.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedurl-join@4.0.1(transitive)
+ Addeduse-sync-external-store@1.2.2(transitive)
+ Addedzustand@4.5.5(transitive)
- Removed@magicbell/react-headless@4.5.3(transitive)
- Removedmagicbell@3.1.4(transitive)
- Removedzustand@3.7.2(transitive)
Updatedzustand@^4.5.2