Releases: magicbell/magicbell-js
@magicbell/react-headless@5.0.0
Major Changes
-
#361
e5027a8
Thanks @smeijer! - Breaking Change!We've renamed the
categories
property tocategory
and thetopics
property totopic
, to reflect that these properties only support a single value. We haven't been supporting multiple categories or topics for a while now, and believe that renaming this property is the right thing to do. It requires a small change on your end, but the clear naming reduces the number of potential bugs caused by misunderstanding.If you make use of different stores or filters using the
categories
ortopics
properties, you'll need to rename them to their singular variants.import { MagicBellProvider } from '@magicbell/react-headless'; const stores = [ { id: 'default', defaultQueryParams: {} }, { id: 'unread', defaultQueryParams: { read: false } }, - { id: 'billing', defaultQueryParams: { categories: ['billing'] } }, + { id: 'billing', defaultQueryParams: { category: 'billing' } }, - { id: 'support', defaultQueryParams: { topics: ['support'] } }, + { id: 'support', defaultQueryParams: { topic: 'support' } }, ]; export default function Index({ children }) { return ( <MagicBellProvider apiKey="__MAGICBELL_API_KEY__" userEmail="__MAGICBELL_USER_EMAIL__" userKey="__MAGICBELL_USER_KEY__" stores={stores} > {children} </MagicBell> ); }
Patch Changes
@magicbell/project-client@0.2.0
@magicbell/magicbell-react@11.0.0
Major Changes
-
#361
e5027a8
Thanks @smeijer! - Breaking Change!We've renamed the
categories
property tocategory
and thetopics
property totopic
, to reflect that these properties only support a single value. We haven't been supporting multiple categories or topics for a while now, and believe that renaming this property is the right thing to do. It requires a small change on your end, but the clear naming reduces the number of potential bugs caused by misunderstanding.If you make use of different stores or tabs using the
categories
ortopics
properties, you'll need to rename them to their singular variants.import MagicBell, { FloatingNotificationInbox } from '@magicbell/magicbell-react'; import React from 'react'; const stores = [ { id: 'default', defaultQueryParams: {} }, { id: 'unread', defaultQueryParams: { read: false } }, - { id: 'billing', defaultQueryParams: { categories: ['billing'] } }, + { id: 'billing', defaultQueryParams: { category: 'billing' } }, - { id: 'support', defaultQueryParams: { topics: ['support'] } }, + { id: 'support', defaultQueryParams: { topic: 'support' } }, ]; const tabs = [ { storeId: 'default', label: 'Latest' }, { storeId: 'unread', label: 'Archive' }, { storeId: 'billing', label: 'Billing' }, { storeId: 'support', label: 'Issues' }, ]; export default function Index() { return ( <MagicBell apiKey="__MAGICBELL_API_KEY__" userEmail="__MAGICBELL_USER_EMAIL__" userKey="__MAGICBELL_USER_KEY__" stores={stores} > {(props) => <FloatingNotificationInbox height={450} tabs={tabs} {...props} />} </MagicBell> ); }
Patch Changes
- Updated dependencies [
e5027a8
]:- @magicbell/react-headless@5.0.0
@magicbell/in-app@0.2.2
@magicbell/embeddable@3.3.28
Patch Changes
- Updated dependencies [
e5027a8
]:- @magicbell/magicbell-react@11.0.0
@magicbell/cli@4.0.0
Major Changes
-
#299
df2c87f
Thanks @smeijer! - Breaking Change!We've renamed the
categories
property tocategory
and thetopics
property totopic
, to reflect that these properties only support a single value. We haven't been supporting multiple categories or topics for a while now, and believe that renaming this property is the right thing to do. It requires a small change on your end, but the clear naming reduces the number of potential bugs caused by misunderstanding.If you make use of the
categories
ortopics
filters onmagicbell user notifications
, you'll need to rename them to their singular variants.- magicbell user notifications list --topics support + magicbell user notifications list --topic support - magicbell user notifications mark-all-read --topics billing + magicbell user notifications mark-all-read --topic billing - magicbell user notifications mark-all-seen --topics other + magicbell user notifications mark-all-seen --topic other
Minor Changes
-
#360
95bd18d
Thanks @smeijer! - Auth tokens are now prioritized over api keys. -
#349
13e54bc
Thanks @smeijer! - define more notification delivery statuses, addedskipped
,dropped
,failed
, anddelivered
.
Patch Changes
@magicbell/magicbell-react@10.11.8
Patch Changes
-
604cce2
Thanks @renovate[bot]! - Updated dependencies:- updated
@babel/core
to^7.25.2
.
- updated
@magicbell/in-app@0.2.1
Patch Changes
-
ec38aee
Thanks @renovate[bot]! - Updated dependencies:- updated
lit
to^3.2.0
.
- updated
-
#338
640c42c
Thanks @renovate! - Updated dependencies:- updated
@custom-elements-manifest/analyzer
to^0.10.3
.
- updated
@magicbell/embeddable@3.3.27
Patch Changes
- Updated dependencies [
604cce2
]:- @magicbell/magicbell-react@10.11.8