JavaScript/TypeScript SDK monorepo for MagicBell - The real-time notification inbox for web & mobile apps
OTHER License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
4347cf3
Thanks @smeijer! - feat: category labels in the preferences pane are now translatable.
const customLocale = {
name: 'en',
translations: {
preferences: {
categories: { // mapping from slug > label
billing: 'My Billing',
},
},
},
};
function MyComponent() {
return (
<MagicBell locale={customLocale} apiKey={MAGICBELL_API_KEY} userEmail="[email protected]" />
{(props) => <FloatingNotificationInbox height={450} {...props} />}
</MagicBell>
);
}
Published by github-actions[bot] over 1 year ago
4347cf3
]:
Published by github-actions[bot] almost 2 years ago
#46 017b0cd
Thanks @smeijer! - fix: wait for markAsRead
before opening notification action_url
.
This fixes a race-condition where the page reload and fetching new notifications is faster than marking the notification as read, which would result in showing the notification as 'unread' upon page (re)load.
Updated dependencies [8d30258
]:
Published by github-actions[bot] almost 2 years ago
#43 d9d2318
Thanks @rollacaster! - fix: initialize stores in an effect instead of lazy use-state.
This solves an "cannot update component" warning that was thrown in development mode.
Published by github-actions[bot] almost 2 years ago
017b0cd
]:
Published by github-actions[bot] almost 2 years ago
#39 68b2fbd
Thanks @smeijer! - Add support for usage in browsers.
Stop tracking client-id
. Client id was a random token stored on the filesystem, so we could identify origins across session.
Don't generate HMAC if no api-secret
is provided, or if HMAC is already provided via request options.
Export createHmac
, a util that generates MagicBell compatible HMAC digests.
import { createHmac } from 'magicbell';
createHmac(process.env.MAGICBELL_API_SECRET, user.email);
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
2f295b0
]:
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
#26 2f295b0
Thanks @smeijer! - Remove react-dom from peer-dependencies, so we don't cause trouble in react-native projects.
Updated dependencies [2f295b0
]:
Published by smeijer almost 2 years ago
#22 366adc6
Thanks @smeijer! - Add the magicbell.imports
resource to import users in bulk, and query the status of import jobs. Methods that have been made available are magicbell.imports.create
and magicbell.imports.get
.
See #imports for more information.
#24 6cf938c
Thanks @smeijer! - Released the .listen
method. With this method you can listen to server sent events in realtime. For example, to do something when new notifications come in, or to trigger an event when a user marks a notification as read.
The following events are currently emitted. Please note that all events are bound to a specific user. See #realtime for more information.
event.name | description |
---|---|
notifications/new |
a new notification has been created |
notifications/read |
a notification has been read |
notifications/unread |
a notification has been marked as unread |
notifications/delete |
a notification has been deleted |
notifications/read/all |
all notifications have been marked as read |
notifications/seen/all |
all notifications have been marked as seen |
#16 615b2fa
Thanks @smeijer! - Loads the axios http adapter when XMLHttpRequest
is unsupported. This allows magicbell
to be used in for example vscode extensions.
os.homedir
is unavailable, which is for example the case in vscode extensions.x-magicbell-user-external-id
header.userKey
. This allows users to use magicbell
, without the need to provide the apiSecret
key to generate the HMAC on runtime.#25 13ee1d2
Thanks @smeijer! - Add type coverage to all resource methods.
/schemas
.accept-version: v2
header, so we use the latest version of our preferences api.debug: true
is provided to the client.#23 bb857a7
Thanks @smeijer! - Add the magicbell.pushSubscriptions
resource to manage mobile devices / push subscriptions. Methods that have been made available are magicbell.pushSubscriptions.create
and magicbell.pushSubscriptions.delete
. Note that these methods are currently in beta, and need to be enabled via feature flags.
See #pushSubscriptions for more information.
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
#15 7767b69
Thanks @smeijer! - ensure that the minified esm bundle is imported when importing from unpkg.
Updated dependencies [1cb984c
]:
Published by github-actions[bot] about 2 years ago
08f4abb
]
Published by github-actions[bot] about 2 years ago
08f4abb
]:
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago