0.6.0 • Published 3 months ago

@memnrev/web-topline v0.6.0

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

@memnrev/web-topline

Topline widget for mem'n'rev web applications.

Usage Example

import { useCallback } from 'react';
import WebTopline, {
  ToplineService,
  ToplineUser,
} from '@memnrev/web-topline';

export default function Topline(): JSX.Element {
  const handleReady = useCallback(
    async(toplineService: ToplineService, toplineUser: ToplineUser | null) => {
      toplineService
        .on('userChange', user => {
          //
        })
        .on('logout', () => {
          //
        })
        .on('syncNotification', syncId => {
          //
        });

      // Use toplineService and toplineUser somehow else
    },
    [],
  );

  return (
    <WebTopline
      onReady={handleReady}
      onError={(err: Error) => {/* Handle the error */}}
    />
  );
}

API Reference

Refer to the file index.d.ts.

0.6.0

3 months ago

0.5.0

7 months ago

0.4.1

8 months ago

0.4.0

8 months ago

0.5.2

7 months ago

0.5.1

7 months ago

0.4.2

8 months ago

0.3.0

1 year ago

0.2.7

1 year ago

0.3.1

1 year ago

0.2.6

2 years ago

0.2.3

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago