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
03f2d30
]:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#119 549c8a9
Thanks @smeijer! - feat: add registerServiceWorker
method that can be used to register a service
worker, prior to calling subscribe
. This preflight allows for a faster
subscription process.
Registration will be skipped if a service worker is already registered. In which
case, the active registration will be returned.
The returned promise resolves when the registration is ready.
import { registerServiceWorker } from '@magicbell/webpush';
registerServiceWorker({ path: '/sw.js' });
NOTE:
This milestone also marks the @magicbell/webpush
as stable. We will be following
semantic versioning going forward.
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#113 6e5297e
Thanks @renovate! - Updated dependencies:
@types/sinon
to ^10.0.15
.#111 8987a92
Thanks @renovate! - Updated dependencies:
@types/lodash
to ^4.14.194
.#120 9e98288
Thanks @smeijer! - Updates the PushNotificationsSubscriber
component to use our @magicbell/webpush
SDK. This change makes it compatible with the latest browsers and our updated API.
import { PushNotificationsSubscriber } from '@magicbell/magicbell-react';
function MyComponent() {
return (
<PushNotificationsSubscriber serviceWorkerPath="/service-worker.js">
{({ createSubscription }) => <button onClick={createSubscription}>Enable push notifications</button>}
</PushNotificationsSubscriber>
);
}
Updated dependencies [c030ce4
, 8987a92
, 5bd3ac7
, 549c8a9
]:
Published by github-actions[bot] over 1 year ago
e78af04
Thanks @renovate[bot]! - Updated dependencies:
json5
to ^2.2.3
.Published by github-actions[bot] over 1 year ago
6e5297e
, 8987a92
, 9e98288
]:
Published by github-actions[bot] over 1 year ago
e78af04
Thanks @renovate[bot]! - Updated dependencies:
json5
to ^2.2.3
.Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
eb256a1
]:
Published by github-actions[bot] over 1 year ago
e83a694
]:
Published by github-actions[bot] over 1 year ago
#103 e83a694
Thanks @smeijer! - feat: Add support for theming the enable-push-subscriptions dialog.
const theme = {
dialog: {
backgroundColor: '#FFFFFF',
textColor: '#3A424D',
accentColor: '#5225C1',
}
}
<MagicBell theme={theme} apiKey={...} userEmail={...}>
{() => <NotificationInbox height={500} />}
</MagicBell>
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#95 87b781b
Thanks @smeijer! - The total
and total_pages
props are removed from the following method return types:
magicbell.broadcasts.list()
magicbell.broadcasts.notifications.list()
magicbell.users.list()
The auto pagination methods are updated to support the paginated responses that do not have those fields. Thereby, pagination helpers like .list().forEach()
, .list().toArray()
and the iterator in for await (const node of method.list())
keep working as before.
Published by github-actions[bot] over 1 year ago