react-smart-paste 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +4 -21
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Paste any text and let AI fill your form. A React button and hook that read the form, send the pasted text to your model, show the proposed values, and fill the fields once the user approves. MIT licensed.
4
4
 
5
+ **[Live demo](https://saravanananbu.github.io/react-smart-paste/)** · [npm](https://www.npmjs.com/package/react-smart-paste)
6
+
5
7
  - Works on plain HTML forms: no schema to declare, it reads names, labels, types and options from the page
6
8
  - Review before anything changes, per-field tick boxes, and undo
7
9
  - Never overwrites what the user already typed (unless you ask it to)
@@ -196,28 +198,9 @@ Available variables: `bg`, `fg`, `muted`, `border`, `hover`, `accent`, `on-accen
196
198
 
197
199
  `readFields(form)`, `applyValues(form, values)`, `buildSmartPastePrompt({ text, fields })` and `parseSmartPasteResponse(reply, fields)` are exported for building your own flow.
198
200
 
199
- ## Development
200
-
201
- ```bash
202
- npm install
203
- npm run build # ESM + CJS + types into dist/
204
- npm test
205
- npm run typecheck
206
- ```
207
-
208
- `examples/vite` is a demo form that runs without an API key, using a mock model (plain pattern matching, labelled as such on the page). It installs the packed tarball: after changing the library, run `npm run build && npm pack`, reinstall in `examples/vite`, and restart its dev server.
209
-
210
- ### Landing page
211
-
212
- `site/` is a static landing page with a live demo. It runs the library straight from `src/`, so it always matches this repository, and its demo uses the same kind of mock model as the example.
213
-
214
- ```bash
215
- npm --prefix site install
216
- npm --prefix site run dev # local preview on port 5186
217
- npm --prefix site run build # static output in site/dist, deployable to any static host
218
- ```
201
+ ## Contributing
219
202
 
220
- `.github/workflows/pages.yml` publishes it to GitHub Pages on pushes to `main` that touch `site/` or `src/`. Turn Pages on first: repository Settings → Pages → Source: GitHub Actions.
203
+ Setup, build and test instructions are in [CONTRIBUTING.md](./CONTRIBUTING.md).
221
204
 
222
205
  ## License
223
206
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "react-smart-paste",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Paste any text and let AI fill your form. A React hook and button that read the form, ask your model, preview the changes and apply them.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/SaravananAnbu/react-smart-paste.git"
9
9
  },
10
- "homepage": "https://github.com/SaravananAnbu/react-smart-paste#readme",
10
+ "homepage": "https://saravanananbu.github.io/react-smart-paste/",
11
11
  "bugs": {
12
12
  "url": "https://github.com/SaravananAnbu/react-smart-paste/issues"
13
13
  },