0.6.0 • Published 1 year ago

@memnrev/web-topline v0.6.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year 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

1 year ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.2

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.3.1

2 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago