Skip to content

Releases: magicbell/magicbell-js

@magicbell/webpush@1.1.0

23 May 14:59
fbc7742
Compare
Choose a tag to compare

Minor Changes

  • #121 4e567b9 Thanks @smeijer! - Remove support for Safari's proprietary push notification protocol.

magicbell@1.7.2

22 May 11:31
947ea7c
Compare
Choose a tag to compare

Patch Changes

@magicbell/webpush@1.0.0

22 May 11:31
947ea7c
Compare
Choose a tag to compare

Major Changes

  • #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.

@magicbell/react-headless@4.2.7

22 May 11:31
947ea7c
Compare
Choose a tag to compare

Patch Changes

@magicbell/magicbell-react@10.7.2

22 May 11:31
947ea7c
Compare
Choose a tag to compare

Patch Changes

  • #113 6e5297e Thanks @renovate! - Updated dependencies:

    • updated @types/sinon to ^10.0.15.
  • #111 8987a92 Thanks @renovate! - Updated dependencies:

    • updated @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]:

    • @magicbell/react-headless@4.2.7
    • @magicbell/webpush@1.0.0

@magicbell/embeddable@3.2.15

22 May 11:31
947ea7c
Compare
Choose a tag to compare

Patch Changes

@magicbell/core@5.0.5

22 May 11:30
947ea7c
Compare
Choose a tag to compare

Patch Changes

@magicbell/codegen@0.0.2

22 May 11:30
947ea7c
Compare
Choose a tag to compare

Patch Changes

@magicbell/magicbell-react@10.7.1

27 Apr 12:41
f105abd
Compare
Choose a tag to compare

Patch Changes

@magicbell/magicbell-react@10.7.0

27 Apr 08:03
97a6ee3
Compare
Choose a tag to compare

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>