@railway/inkwell 0.1.4 → 1.0.0
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.
- package/README.md +22 -13
- package/dist/index.cjs +2143 -568
- package/dist/index.d.cts +385 -282
- package/dist/index.d.ts +385 -282
- package/dist/index.js +2142 -571
- package/package.json +7 -8
- package/src/styles.css +474 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# ✒️ Inkwell
|
|
2
2
|
|
|
3
|
-
[](https://github.com/railwayapp/inkwell/actions)
|
|
6
|
-
[](https://www.npmjs.com/package/@railway/inkwell)
|
|
3
|
+
[](https://inkwell.build)
|
|
4
|
+
[](https://inkwell.build/llms.txt)
|
|
5
|
+
[](https://github.com/railwayapp/inkwell/actions)
|
|
6
|
+
[](https://www.npmjs.com/package/@railway/inkwell)
|
|
7
7
|
|
|
8
8
|
Inkwell is a Markdown editor and renderer for React with an extensible plugin
|
|
9
|
-
system
|
|
9
|
+
system.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -19,11 +19,13 @@ pnpm add @railway/inkwell
|
|
|
19
19
|
### Editor
|
|
20
20
|
|
|
21
21
|
```tsx
|
|
22
|
+
import "@railway/inkwell/styles.css";
|
|
22
23
|
import { InkwellEditor } from "@railway/inkwell";
|
|
23
24
|
import { useState } from "react";
|
|
24
25
|
|
|
25
26
|
function App() {
|
|
26
27
|
const [content, setContent] = useState("# Hello **world**");
|
|
28
|
+
|
|
27
29
|
return <InkwellEditor content={content} onChange={setContent} />;
|
|
28
30
|
}
|
|
29
31
|
```
|
|
@@ -49,19 +51,26 @@ pnpm dev
|
|
|
49
51
|
|
|
50
52
|
## Releases
|
|
51
53
|
|
|
52
|
-
|
|
54
|
+
Versioning and `CHANGELOG.md` are managed by [Changesets](https://github.com/changesets/changesets). Publishing to npm runs via GitHub Actions on a `v*` tag push.
|
|
55
|
+
|
|
56
|
+
When you open a PR that should show up in the changelog:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pnpm changeset # pick bump type, write a user-facing summary
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Commit the generated `.changeset/*.md` file alongside your code.
|
|
63
|
+
|
|
64
|
+
To cut a release from `main`:
|
|
53
65
|
|
|
54
66
|
```bash
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
cd ../..
|
|
58
|
-
git add packages/inkwell/package.json
|
|
59
|
-
git commit -m "🚀 release: v$(node -p "require('./packages/inkwell/package.json').version")"
|
|
67
|
+
pnpm changeset version # bumps packages/inkwell/package.json + writes CHANGELOG.md
|
|
68
|
+
git commit -am "🚀 release: v$(node -p "require('./packages/inkwell/package.json').version")"
|
|
60
69
|
git tag "v$(node -p "require('./packages/inkwell/package.json').version")"
|
|
61
|
-
git push
|
|
70
|
+
git push --follow-tags
|
|
62
71
|
```
|
|
63
72
|
|
|
64
|
-
Pushing
|
|
73
|
+
Pushing the `v*` tag triggers the publish workflow.
|
|
65
74
|
|
|
66
75
|
## License
|
|
67
76
|
|