# @prezly/slate-hyperscript

> Hyperscript helpers for creating Slate documents with JSX

Latest version **0.32.0** (published 2022-04-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @prezly/slate-hyperscript
pnpm add @prezly/slate-hyperscript
yarn add @prezly/slate-hyperscript
bun add @prezly/slate-hyperscript
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.32.0 |
| Published | 2022-04-21 |
| First published | 2021-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 51.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 65 |
| Maintainers | zourdyzou, oskar-prezly, pestaa, aspirisen, kudlik, digitalbase, e1npm, satoav, makanda |

## Links

- npm: https://www.npmjs.com/package/@prezly/slate-hyperscript
- Repository: https://github.com/prezly/slate
- Homepage: https://github.com/prezly/slate#readme
- Issues: https://github.com/prezly/slate/issues
- npm.io page: https://npm.io/package/@prezly/slate-hyperscript

## Dependencies (1)

- [is-plain-object](https://npm.io/package/is-plain-object.md) ^5.0.0

## Recent versions

- 0.32.0 (latest) — 2022-04-21
- 0.31.1 — 2022-04-21
- 0.31.0 — 2022-04-20
- 0.30.0 — 2022-04-13
- 0.29.4 — 2022-04-12
- 0.29.3 — 2022-04-12
- 0.29.2 — 2022-04-11
- 0.28.3 — 2022-04-08
- 0.28.2 — 2022-04-06
- 0.28.1 — 2022-04-06
- 0.29.1 — 2022-04-01
- 0.29.0 — 2022-04-01
- 0.28.1-demo.0 — 2022-03-30
- 0.29.0-alpha.0 — 2022-03-30
- 0.28.0 — 2022-03-30
- … 103 more at https://npm.io/package/@prezly/slate-hyperscript/versions

## README

![alt Prezly ❤️ Slate](https://cdn.uc.assets.prezly.com/b9c8de97-cc75-4780-baa0-c9d9ac4c7c09/prezly-slate.png)

[![Build](https://github.com/prezly/slate/actions/workflows/build.yml/badge.svg)](https://github.com/prezly/slate/actions/workflows/build.yml)
[![Test](https://github.com/prezly/slate/actions/workflows/test.yml/badge.svg)](https://github.com/prezly/slate/actions/workflows/test.yml)
[![Prettier](https://github.com/prezly/slate/actions/workflows/prettier.yml/badge.svg)](https://github.com/prezly/slate/actions/workflows/prettier.yml)

[Prezly](https://www.prezly.com/?utm_source=github&utm_campaign=@prezly/slate) software built upon [Slate](http://slatejs.org/).

---

# Packages

![Version](https://img.shields.io/npm/v/@prezly/slate-commons)
![License](https://img.shields.io/npm/l/@prezly/slate-commons)

Every package has been implemented with TypeScript.

Prezly-specific packages mention Prezly in the description. All other packages should be generic and reusable in any project.

| Package                                                                      | Readme                                            | Description                                                                                                                                                                                   |
|------------------------------------------------------------------------------| ------------------------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [@prezly/slate-types](https://www.npmjs.com/package/@prezly/slate-types)     | [README.md](packages/slate-types/README.md)       | TypeScript definitions for [Slate](https://www.slatejs.org/) document structure used at [Prezly](https://www.prezly.com/?utm_source=github&utm_campaign=@prezly/slate)                        |
| [@prezly/slate-commons](https://www.npmjs.com/package/@prezly/slate-commons) | [README.md](packages/slate-commons/README.md)     | Low-level commands, utilities, plugins, types, etc. used throughout [Prezly](https://www.prezly.com/?utm_source=github&utm_campaign=@prezly/slate)-[Slate](https://www.slatejs.org/) packages |
| [@prezly/slate-lists](https://www.npmjs.com/package/@prezly/slate-lists)     | [README.md](packages/slate-lists/README.md)       | The best [Slate](https://www.slatejs.org/) lists extension out there                                                                                                                          |
| [@prezly/slate-tables](https://www.npmjs.com/package/@prezly/slate-tables)   | [README.md](packages/slate-tables/README.md)      | The best [Slate](https://www.slatejs.org/) tables extension out there                                                                                                                         |
| [@prezly/slate-editor](https://www.npmjs.com/package/@prezly/slate-editor)   | [README.md](packages/slate-editor/README.md)      | The [Prezly](https://www.prezly.com/?utm_source=github&utm_campaign=@prezly/slate-editor) [Slate](https://www.slatejs.org/) Editor                                                            |

# Development

In order to try changes made to the packages with the main application:

1. Link the root package and all sub-packages via PNPM workspace:

    ```yaml
    # pnpm-workspace.yaml
    packages:
        - "../../../slate"
        - "../../../slate/packages/*"
    ```

2. And then install normally:

   ```sh
   pnpm install
   ```

## Developing with the Prezly app:

The main Prezly application has a Makefile target to simplify the linking process.

1. Link the Slate repo and its subpackages with symlinks (adjust the paths to match your directory structure):
   ```sh
   cd apps/backend/linked_modules
   ln -s ../../../../slate
   ln -s ../../../../slate/packages/slate-types
   ln -s ../../../../slate/packages/slate-commons
   ln -s ../../../../slate/packages/slate-lists
   ln -s ../../../../slate/packages/slate-tables
   ln -s ../../../../slate/packages/slate-editor
   ```
   
2. Run `make link-modules` (in the `apps/backend` folder)
   
3. Build `@prezly/slate` repo code with `pnpm build` (in the `@prezly/slate` local working copy):

  ```sh
  pnpm build
  ```

4. Build or watch the backend app with `pnpm build` or `pnpm watch` (in the `apps/backend` folder)


## Setup

```Shell
pnpm install
pnpm build
```

## Publishing

```Shell
pnpm clean && pnpm install && pnpm release
```


---

Brought to you with :metal: by [Prezly](https://www.prezly.com/?utm_source=github&utm_campaign=@prezly/slate).

---
_Source: https://npm.io/package/@prezly/slate-hyperscript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
