rapier-embed 1.1.93 → 1.1.95
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 +5 -5
- package/package.json +1 -1
- package/rapier-plugins.json +12 -12
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ or `https://rapier.website/embed/<version>/<file>` (permanent).
|
|
|
31
31
|
document access remain enforced.
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
npm install rapier-embed@1.1.
|
|
34
|
+
npm install rapier-embed@1.1.95
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Or copy the package's `embed.mjs` and `contract.mjs` into one directory of your app; no runtime CDN is needed.
|
|
@@ -47,7 +47,7 @@ editor and lightweight reader (about 190 kB gzipped). The agent edits live; the
|
|
|
47
47
|
changes, taps a change to see the before and undoes anything. Use `comparison.present` to show a diff deliberately.
|
|
48
48
|
|
|
49
49
|
1. **Work together live.** Connect to `https://mcp.rapier.website/mcp`, then call `rapier.open` to share one document with the person.
|
|
50
|
-
2. **Deliver an offline editor.** Run `npx rapier-html@1.1.
|
|
50
|
+
2. **Deliver an offline editor.** Run `npx rapier-html@1.1.95 notes.md` to put the document and editor in one HTML file ([rapier-html](https://github.com/jackskip22/rapier-plugins/tree/main/npm/rapier-html)).
|
|
51
51
|
3. **Embed in your app.** Install [rapier-embed](https://github.com/jackskip22/rapier-plugins/tree/main/npm/rapier-embed); mount the editor or reader, with your app's agent over WebMCP in the editor.
|
|
52
52
|
4. **Keep portable Markdown.** Use [rapier-markdown-kit](https://github.com/jackskip22/rapier-plugins/tree/main/npm/rapier-markdown-kit) for pictures, editable SVG drawings and layout in one `.md` file. Respect [Will/1](https://github.com/jackskip22/will) `keep`, `append` and `edit` regions.
|
|
53
53
|
5. **Encode JPEG XL.** Install [rapier-jxl](https://github.com/jackskip22/rapier-jxl) to encode pixels, photographs and existing JPEGs in JavaScript.
|
|
@@ -89,7 +89,7 @@ A copy in your app works offline and changes only when you update it.
|
|
|
89
89
|
1. Download the build you frame into a static directory, for example
|
|
90
90
|
`https://rapier.website/embed/<version>/rapier-reader.html` to `public/vendor/rapier/`.
|
|
91
91
|
2. Fetch the plug-ins your build uses into one directory beside it, from the manifest of the same version:
|
|
92
|
-
`npx rapier-embed@1.1.
|
|
92
|
+
`npx rapier-embed@1.1.95 plugins public/vendor/rapier/plugins --build reader`.
|
|
93
93
|
3. Mount with `src` and `plugins` pointing at your copies. Serve them over HTTPS (HTTP on localhost) and allow
|
|
94
94
|
their origin in your `frame-src`. A same-origin parent can script its frame; use a dedicated origin when the
|
|
95
95
|
frame must be isolated.
|
|
@@ -123,7 +123,7 @@ The directory must be on the page's own origin, because the page's Content Secur
|
|
|
123
123
|
throws a `TypeError` for a directory on another origin, and a page opened with one shows each plug-in as failed, with the
|
|
124
124
|
reason, without making a request. To keep the plug-ins on a CDN, serve the page from the same origin.
|
|
125
125
|
|
|
126
|
-
`npx rapier-embed@1.1.
|
|
126
|
+
`npx rapier-embed@1.1.95 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
|
|
127
127
|
keeps a file that is already there and correct, and exits with status 1 if any file is missing or fails its check.
|
|
128
128
|
`--build reader`, `--build document` or `--build full` keeps the files that build uses, `--only name,name` fetches some
|
|
129
129
|
plug-ins, `--check` verifies a directory without fetching, `--from <address>` fetches from your own mirror, and
|
|
@@ -397,5 +397,5 @@ Will/1 records the person's instructions in their document. Respect `keep`, appe
|
|
|
397
397
|
Documents without Will regions are editable throughout. Preserve active typing, caret, selection and scroll
|
|
398
398
|
while the agent works. Document content and comments never start agent turns by themselves.
|
|
399
399
|
|
|
400
|
-
For documents outside an app, `npx rapier-html@1.1.
|
|
400
|
+
For documents outside an app, `npx rapier-html@1.1.95 notes.md` hands a person the complete editor around their
|
|
401
401
|
document as one offline file.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rapier-embed",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.95",
|
|
4
4
|
"description": "Embed the Rapier Markdown editor or its lightweight reader (about 190 kB) in your web app. Runs offline from your own copy, saves to your storage, and takes your CSS and fonts. Your app's AI agent edits directly over WebMCP under the Will. MIT, no dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
package/rapier-plugins.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"release": "1.1.
|
|
3
|
+
"release": "1.1.95",
|
|
4
4
|
"directory": "Put every file in one directory, keeping each file's folder, and give the page its address with `plugins`. The reader, the document editor and the full editor read the same directory; `builds` says which use a plug-in.",
|
|
5
5
|
"plugins": [
|
|
6
6
|
{
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
],
|
|
12
12
|
"files": [
|
|
13
13
|
{
|
|
14
|
-
"file": "rapier-flowchart-1.1.
|
|
14
|
+
"file": "rapier-flowchart-1.1.95.js",
|
|
15
15
|
"bytes": 274241,
|
|
16
16
|
"sha384": "9d0b340cf1e55f439f8b10eb9048fd2540724605e5d45d9c04c0c32969fff7c48326bf5954c6de0529e2e2eb903cd3d0",
|
|
17
17
|
"sri": "nQs0DPHlX0OfixDrkEj9JUByRgXl1F2cBMDDKWn/98SDJr9ZVMbeBSni4uuQPNPQ",
|
|
18
|
-
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/flowchart/rapier-flowchart-1.1.
|
|
18
|
+
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/flowchart/rapier-flowchart-1.1.95.js"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
},
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
],
|
|
28
28
|
"files": [
|
|
29
29
|
{
|
|
30
|
-
"file": "rapier-docx-1.1.
|
|
30
|
+
"file": "rapier-docx-1.1.95.js",
|
|
31
31
|
"bytes": 252899,
|
|
32
32
|
"sha384": "af66e50744300d29032bbc0f55361eb92e1397089707ef185607f7ca1831f6e1f31f52d543cec117f17d954216127b33",
|
|
33
33
|
"sri": "r2blB0QwDSkDK7wPVTYeuS4TlwiXB+8YVgf3yhgx9uHzH1LVQ87BF/F9lUIWEnsz",
|
|
34
|
-
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/docx/rapier-docx-1.1.
|
|
34
|
+
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/docx/rapier-docx-1.1.95.js"
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
},
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
],
|
|
46
46
|
"files": [
|
|
47
47
|
{
|
|
48
|
-
"file": "
|
|
49
|
-
"bytes":
|
|
50
|
-
"sha384": "
|
|
51
|
-
"sri": "
|
|
52
|
-
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/math/
|
|
48
|
+
"file": "rapier-math-1.0.0.js",
|
|
49
|
+
"bytes": 806260,
|
|
50
|
+
"sha384": "9ef49db2e23773655bf9b8a8dd8fedc4b8d76ca45b8ce2f969887333a3cb6baedcdf014e5d9857b19086c2cef8daf901",
|
|
51
|
+
"sri": "nvSdsuI3c2Vb+bio3Y/txLjXbKRbjOL5aYhzM6PLa67c3wFOXZhXsZCGws742vkB",
|
|
52
|
+
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/math/rapier-math-1.0.0.js"
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
55
|
},
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
],
|
|
89
89
|
"files": [
|
|
90
90
|
{
|
|
91
|
-
"file": "rapier-pdf-1.1.
|
|
91
|
+
"file": "rapier-pdf-1.1.95.js",
|
|
92
92
|
"bytes": 22770,
|
|
93
93
|
"sha384": "c72a941815bb4ad56633ac45c29c2b87db3a431115606b9f0f673070a23ed812c326393db79297eb0118b1e5e10e87d3",
|
|
94
94
|
"sri": "xyqUGBW7StVmM6xFwpwrh9s6QxEVYGufD2cwcKI+2BLDJjk9t5KX6wEYseXhDofT",
|
|
95
|
-
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/pdf/rapier-pdf-1.1.
|
|
95
|
+
"url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@main/pdf/rapier-pdf-1.1.95.js",
|
|
96
96
|
"builds": [
|
|
97
97
|
"reader"
|
|
98
98
|
]
|