Releases: magicbell/magicbell-js
@magicbell/webpush@1.1.0
magicbell@1.7.2
Patch Changes
-
e78af04
Thanks @renovate[bot]! - Updated dependencies:- updated
json5
to^2.2.3
.
- updated
@magicbell/webpush@1.0.0
Major Changes
-
#119
549c8a9
Thanks @smeijer! - feat: addregisterServiceWorker
method that can be used to register a service
worker, prior to callingsubscribe
. 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.
@magicbell/react-headless@4.2.7
@magicbell/magicbell-react@10.7.2
Patch Changes
-
#113
6e5297e
Thanks @renovate! - Updated dependencies:- updated
@types/sinon
to^10.0.15
.
- updated
-
#111
8987a92
Thanks @renovate! - Updated dependencies:- updated
@types/lodash
to^4.14.194
.
- updated
-
#120
9e98288
Thanks @smeijer! - Updates thePushNotificationsSubscriber
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
]:- @magicbell/react-headless@4.2.7
- @magicbell/webpush@1.0.0
@magicbell/embeddable@3.2.15
@magicbell/core@5.0.5
@magicbell/codegen@0.0.2
Patch Changes
-
e78af04
Thanks @renovate[bot]! - Updated dependencies:- updated
json5
to^2.2.3
.
- updated
@magicbell/magicbell-react@10.7.1
@magicbell/magicbell-react@10.7.0
Minor Changes
-
#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>