rapier-embed 1.1.89 → 1.1.90
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 +4 -4
- package/package.json +1 -1
- package/rapier-plugins.json +7 -7
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ or `https://rapier.website/embed/<version>/<file>` (permanent).
|
|
|
25
25
|
carry no document source.
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
npm install rapier-embed@1.1.
|
|
28
|
+
npm install rapier-embed@1.1.90
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Or copy the package's `embed.mjs` and `contract.mjs` into one directory of your app; no runtime CDN is needed.
|
|
@@ -68,7 +68,7 @@ A copy in your app works offline and changes only when you update it.
|
|
|
68
68
|
1. Download the build you frame into a static directory, for example
|
|
69
69
|
`https://rapier.website/embed/<version>/rapier-reader.html` to `public/vendor/rapier/`.
|
|
70
70
|
2. Fetch the plug-ins your build uses into one directory beside it, from the manifest of the same version:
|
|
71
|
-
`npx rapier-embed@1.1.
|
|
71
|
+
`npx rapier-embed@1.1.90 plugins public/vendor/rapier/plugins --build reader`.
|
|
72
72
|
3. Mount with `src` and `plugins` pointing at your copies. Serve them over HTTPS (HTTP on localhost) and allow
|
|
73
73
|
their origin in your `frame-src`. A same-origin parent can script its frame; use a dedicated origin when the
|
|
74
74
|
frame must be isolated.
|
|
@@ -102,7 +102,7 @@ The directory must be on the page's own origin, because the page's Content Secur
|
|
|
102
102
|
throws a `TypeError` for a directory on another origin, and a page opened with one shows each plug-in as failed, with the
|
|
103
103
|
reason, without making a request. To keep the plug-ins on a CDN, serve the page from the same origin.
|
|
104
104
|
|
|
105
|
-
`npx rapier-embed@1.1.
|
|
105
|
+
`npx rapier-embed@1.1.90 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
|
|
106
106
|
keeps a file that is already there and correct, and exits with status 1 if any file is missing or fails its check.
|
|
107
107
|
`--build reader`, `--build document` or `--build full` keeps the files that build uses, `--only name,name` fetches some
|
|
108
108
|
plug-ins, `--check` verifies a directory without fetching, `--from <address>` fetches from your own mirror, and
|
|
@@ -361,5 +361,5 @@ The host receives `{id, kind, status, cause, revision, law, region, changes, dec
|
|
|
361
361
|
law, change IDs and statuses, and a decision receipt. It never receives excerpts, positions, proposed source or a
|
|
362
362
|
vault key in that event. Receiving a review event grants no power to approve it.
|
|
363
363
|
|
|
364
|
-
For documents outside an app, `npx rapier-html@1.1.
|
|
364
|
+
For documents outside an app, `npx rapier-html@1.1.90 notes.md` hands a person the complete editor around their
|
|
365
365
|
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.90",
|
|
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 over WebMCP, under the person's review. 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.90",
|
|
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.90.js",
|
|
15
15
|
"bytes": 263978,
|
|
16
16
|
"sha384": "d0b985efcb3816ffede115bb951d82f7073f86b9b22d3e70480b0759a08fb2f795bd7c0561ef4810a1a3ca85c5bf1b17",
|
|
17
17
|
"sri": "0LmF78s4Fv/t4RW7lR2C9wc/hrmyLT5wSAsHWaCPsveVvXwFYe9IEKGjyoXFvxsX",
|
|
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.90.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.90.js",
|
|
31
31
|
"bytes": 251009,
|
|
32
32
|
"sha384": "b3a425bd43304c8ceac293b3bf21a94daff2a6554525cb16fabcbf8f016d2442c2af765fc0382099ec1e77a8f6f1b690",
|
|
33
33
|
"sri": "s6QlvUMwTIzqwpOzvyGpTa/yplVFJcsW+ry/jwFtJELCr3ZfwDggmewed6j28baQ",
|
|
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.90.js"
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
},
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
],
|
|
89
89
|
"files": [
|
|
90
90
|
{
|
|
91
|
-
"file": "rapier-pdf-1.1.
|
|
91
|
+
"file": "rapier-pdf-1.1.90.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.90.js",
|
|
96
96
|
"builds": [
|
|
97
97
|
"reader"
|
|
98
98
|
]
|