open-index/open-npm huggingface dataset:
npm package: @jetblack/date-io
Description: Adapter for date-io
Author: Rob Blackbourn
Latest version: 0.1.0

[![npm](https://img.shields.io/npm/v/@jetblack/date-io.svg)](https://www.npmjs.com/package/@jetblack/date-io) ![downloads](https://img.shields.io/npm/dt/@jetblack/date-io.svg) [![tests](https://github.com/rob-blackbourn/jetblack-js-date-io/workflows/Node.js%20tests/badge.svg)](https://github.com/rob-blackbourn/jetblack-js-date-io/actions)

# @jetblack/date-io

An adapter for [date-io](https://github.com/dmtrKovalenko/date-io).
npm package: @jetblack/date-mui
Description: Adapter for @jetblack/date and mui
Author: Rob Blackbourn
Latest version: 0.4.0

# @jetblack/date-mui

A date adapter adapter for using
[@jetblack/date](https://github.com/rob-blackbourn/jetblack-js-date)
with [mui](https://mui.com).

This release include fixes for timezone code added by @mui/x-date-pickers 6.8.0.
npm package: @jetblack/graphql-reconnect-client
Description: Simple non-caching GraphQL client.
Author: Rob Blackbourn
Latest version: 2.0.2

# jetblack-graphql-reconnect-client

This is work in progress

## Overview

A simple non-caching GraphQL client with reconnect for query, mutation and subscription.

This package adds reconnect capability to the GraphQL subscriber from @jetblack/graphql-client.

## Installation

Install from npm.

```bash
yarn add @jetblack/graphql-reconnect-client
```

# Usage

There are two functions:

 * `graphQLReconnectingSubscriber (url, options, callback, delay = 1000, maxRetries = 0, protocols = 'graphql-ws')`
 * `graphQLRetryFetch (url, query, variables = {}, operationName = null, init = retryFetchOptions)`

The `graphQLReconnectingSubscriber` implements the `WebSocket` protocol. The function takes the
`url` for the `WebSocket`, an `options` object which is simply passed as JSON to the
server, and a `callback` with the prototype `(error, subscribe)`. A function is returned
which can be used to shutdown the subscriber.
If both `error` and `subscribe` are `null` the connection has been closed normally.

The `protocols` defaults to `"graphql-ws"`. The documentation suggests this can be an array or strings, but the first should be the default.

The `subscribe` argument is a function with the prototype `subscribe(query, variables, operationName, callback)`.
When `subscribe` is called it returns a function that can be called to unsubscribe.
The `callback` to the `subscribe` function has the prototype `callback(error, data)`. If
both `error` and `data` are `null` then connection hs been closed normally.
The `delay` is specified in milliseconds. The `maxRetries`
will limit the number of retries unless set to 0 which means unlimited.

The `graphQLRetryFetch` function is a simple `fetch` implementation for `query` and `mutation` operations.
The `delay` is specified in milliseconds. The `maxRetries`
 will limit the number of retries unless set to 0 which means unlimited.
 The `retryOn` argument is an array of status codes for which retry will be attempted.

The `init` parameter is passed through to fetch. It has the default value `fetchOptions` which is defined as:

```js
const fetchOptions = {
  method: 'post',
  headers: { 'Content-Type': 'application/json' }
}

// The fetchOptions can be extended.
const myFetchOptions = {
    ...fetchOptions,
    mode: 'cors'
}
```

# Examples

See the `graphQLSubscriber` from @jetblack/graphql-client for examples.
npm package: @jetblack/map-cluster-marker
Description: A cluster marker for @jetblack/map
Author: Rob Blackbourn
Latest version: 2.2.0

# @jetblack/map-cluster-marker

A cluster marker for @jetblack/map.

## Installation

Install from npmjs.

```bash
npm install --save @jetblack/cluster-marker
```

## Usage

See the demo folder for an example.
npm package: @jetblack/mui-svg-shapes
Description: SVG shapes for React Material-UI
Author: Rob Blackbourn
Latest version: 1.0.2

# @jetblack/mui-svg-shapes

An SVG shape library for material ui react.

## Usage

First create the react app.

```bash
~$ npx create-react-app my-app
~$ cd my-app
~/my-app$
```

Then add the package.

```bash
~/my-app$ npm install @jetblack/mui-svg-shapes
```

Change the `src/App.js` to have the following content:

```js
import React, { Component } from 'react'
import { withStyles } from '@material-ui/core/styles'
import Svg from '@jetblack/mui-svg-shapes'
import Circle from '@jetblack/mui-svg-shapes'

const styles = theme => ({
})

class App extends Component {
  render() {
    return (
      <Svg width={800} height={800}>
        <Circle cx={50} cy={50} r={50} />
      </Svg>
    )
  }
}

export default withStyles(styles)(App)
```