@libraz/mejiro-react 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +12 -3
  2. package/dist/index.d.ts +521 -151
  3. package/dist/index.js +1973 -1443
  4. package/package.json +8 -8
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @libraz/mejiro-react
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@libraz/mejiro-react.svg)](https://www.npmjs.com/package/@libraz/mejiro-react)
4
- [![license](https://img.shields.io/npm/l/@libraz/mejiro-react.svg)](https://github.com/libraz/mejiro/blob/main/LICENSE)
3
+ [![CI](https://img.shields.io/github/actions/workflow/status/libraz/mejiro/ci.yml?branch=main&label=CI)](https://github.com/libraz/mejiro/actions)
4
+ [![npm](https://img.shields.io/npm/v/@libraz/mejiro-react)](https://www.npmjs.com/package/@libraz/mejiro-react)
5
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/libraz/mejiro/blob/main/LICENSE)
6
+ [![core](https://img.shields.io/npm/v/@libraz/mejiro?label=%40libraz%2Fmejiro)](https://www.npmjs.com/package/@libraz/mejiro)
5
7
 
6
- React components and hooks for [mejiro](https://www.npmjs.com/package/@libraz/mejiro) — vertical text rendering plus full-featured `MejiroReader` / `MejiroEditor` / `MejiroManuscriptEditor` components.
8
+ **React components and hooks for [mejiro](https://www.npmjs.com/package/@libraz/mejiro).** Render vertical text yourself with the hooks, or drop in the `MejiroReader` / `MejiroEditor` / `MejiroManuscriptEditor` components, with `MejiroShelf` and `MejiroToc` for library and table-of-contents screens.
7
9
 
8
10
  ## Install
9
11
 
@@ -51,8 +53,15 @@ npx degit libraz/mejiro/examples/react my-reader
51
53
  npx degit libraz/mejiro/examples/react-shelf my-library
52
54
  npx degit libraz/mejiro/examples/react-editor my-editor
53
55
  npx degit libraz/mejiro/examples/react-manuscript my-author
56
+ npx degit libraz/mejiro/examples/react-embed my-embed
57
+ npx degit libraz/mejiro/examples/react-headless my-headless
54
58
  ```
55
59
 
60
+ Templates are workspace members, so the copied `package.json` still carries
61
+ `workspace:*` versions. Each starter's own `README.md` carries the exact
62
+ one-liner that rewrites them to the matching published release — run it before
63
+ `npm install`.
64
+
56
65
  ## Documentation
57
66
 
58
67
  - [React / Vue guide](https://github.com/libraz/mejiro/tree/main/docs/en/08-react-and-vue.md) — components, hooks, props, theming, SSR