open-index/open-npm huggingface dataset:
npm package: @headstartwp/block-primitives
Description: A set of Gutenberg Primitives for authoring react components that can be shared with the block editor
Author: 10up
Latest version: 0.1.0

# @headstartwp/block-primitives
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Next Package MIT License](https://img.shields.io/badge/next%20package-MIT-green)](https://github.com/10up/headstartwp/blob/develop/packages/next/LICENSE.md)


## Installation

```
npm install --save @headstartwp/block-primitives
```

## Support Level

**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress.  Bug reports, feature requests, questions, and pull requests are welcome.

## Like what you see?

<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="10up"></a>
npm package: @headstartwp/core
Description: `@headstartwp/core` is the core package that houses framework-agnostic components and utilities for building headless sites with WordPress.
Author: 10up
Latest version: 1.6.1

# @headstartwp/core

> `@headstartwp/core` is the core package that houses framework-agnostic components and utilities for building headless sites with WordPress.

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Core Package MIT License](https://img.shields.io/badge/core%20package-MIT-green)](https://github.com/10up/headstartwp/blob/develop/packages/core/LICENSE.md)

In addition to the default export, this package also exports:
- `@headstartwp/core/react`: React Components and Custom Hooks
- `@headstartwp/core/utils`: An additional export that only includes small utility functions. Useful if you don't want to use the whole framework.

## Installation

```
npm install --save @headstartwp/core
```

## Support Level

**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress.  Bug reports, feature requests, questions, and pull requests are welcome.

## Like what you see?

<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="10up"></a>
npm package: @headstartwp/epio-search
Description: React components for supercharging your headless WordPress website with ElasticPress.
Author: 10up
Latest version: 1.0.0

# EPIO Search (elasticpress.io)

> EPIO Search is a library of React components and utility functions written in TypeScript to supercharge your headless WordPress website with ElasticPress (requires elasticpress.io)

## Requirements

* ElasticPress per [ElasticPress requirements](https://github.com/10up/ElasticPress#requirements).
* WordPress website running [ElasticPress](https://elasticpress.io).

## Installation

To install EPIO Search, run the following command:

```
npm install @headstartwp/epio-search --save
```

## Components

### ElasticPressProvider
You must wrap a portion of your application with the `ElasticPressProvider` in order to use the ElasticPress components.

```js
	<ElasticPressProvider
		node="https://search-api-tests-60a8167dd80df.us-east-1.staging.clients.hosted-elasticpress.io"
		indexName="search-api-tests-60a8167dd80df-searchapitest-post-1"
	>
		{/* ElasticPress Components */}
	</ElasticPressProvider>
```

Additional props that you can optionally pass to the `ElasticPressProvider` include:

* `hitMap`
* `loadInitialData`
* `searchTerm`
* `searchState`
* `resultsState`
* `onSSR`
* `onSearch`
* `onNavigation`

> Note: The `onXYZ` props are only available in Client components. They will not work in Server components. 

These properties are defined in the `EPProviderProps` type, which is defined as follows:

```js
interface EPProviderProps {
	children: ReactNode;
	searchTerm?: string;
	hitMap?: EPHitMap;
	indexName: string | undefined;
	loadInitialData?: boolean;
	node: string | undefined;
	searchState?: EPSearchParams;
	resultsState?: Pick<EPState, 'results'>;
	endpoint?: string;
	onSSR?: (contextValue: EPContextValue) => void;
	onSearch?: (searchState: EPSearchParams) => void;
	onNavigation?: (result: EPPost) => void;
}
```


### Autosuggest

This component outputs a search field that when typed in will autosuggest results to the user.

```js
import { AutosuggestField } from '@headstartwp/epio-search';

const MyComponent = () => (
	<>
		<p>Here is my fancy new component.</p>

		<p>Here's a search input with autosuggest:</p>

		<ElasticPressProvider
			node="http://elasticpress.test/__elasticsearch"
			indexName="elasticpresstest-post-1"
			loadInitialData={false}
		>
			<AutosuggestField />
		</ElasticPressProvider>
	</>
);
```

## Support Level

**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress.  Bug reports, feature requests, questions, and pull requests are welcome.

## Like what you see?

<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="Work with us at 10up"></a>
npm package: @headstartwp/next
Description: `@headstartwp/next` is the Next.js bindings for the headless framework.
Author: 10up
Latest version: 1.5.2

# @headstartwp/next

> `@headstartwp/next` is the Next.js bindings for HeadstartWP.

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Next Package MIT License](https://img.shields.io/badge/next%20package-MIT-green)](https://github.com/10up/headstartwp/blob/develop/packages/next/LICENSE.md)

In addition to the default export, this package also exports:
- `@headstartwp/next/config`: For using with `next.config.js` or `next.config.mjs`
- `@headstartwp/next/middlewares`: Contains next.js middlewares. Exported separately as the next.js middleware runtime is limited and can only run a subset of APIs.

## Installation

```
npm install --save @headstartwp/next
```

## Support Level

**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress.  Bug reports, feature requests, questions, and pull requests are welcome.

## Like what you see?

<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="10up"></a>