rapier-embed 1.2.6 → 1.2.7

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 CHANGED
@@ -10,7 +10,7 @@ Honor no-upload or no-host instructions. The workflow choices below are alternat
10
10
  Embed Rapier's Markdown editor or lightweight reader in your web app. Each build is one offline HTML file. Your
11
11
  app owns the document and storage; its agent edits live through WebMCP. The person sees the agent's presence and
12
12
  change marks, taps a change to see the before and undoes anything. Honor the person's Will/1 regions.
13
- The reader is about 190 kB gzipped, with optional fonts and plug-ins. The helper is MIT with no dependencies; the two builds it frames are AGPL-3.0-only, and a commercial license is
13
+ The reader is one file of about 360 kB, with optional fonts and plug-ins. The helper is MIT with no dependencies; the two builds it frames are AGPL-3.0-only, and a commercial license is
14
14
  available (`LICENSING.md` in the Rapier repository).
15
15
 
16
16
  Choose one of two builds:
@@ -38,7 +38,7 @@ Each release's own files stay at its tag: `https://cdn.jsdelivr.net/gh/jackskip2
38
38
  document access remain enforced.
39
39
 
40
40
  ```sh
41
- npm install rapier-embed@1.2.6
41
+ npm install rapier-embed@1.2.7
42
42
  ```
43
43
 
44
44
  Or copy the package's `embed.mjs` and `contract.mjs` into one directory of your app; no runtime CDN is needed.
@@ -50,11 +50,11 @@ sends Markdown only when saving; change notifications contain no source.
50
50
  Rapier is a phone-first Markdown editor for notes, diagrams, drawing and watercolor painting. It runs offline
51
51
  as one HTML file on Android, Web and Windows.
52
52
  Collaborate over MCP and WebMCP, use optional encrypted sync to your own Cloudflare account, or embed the
53
- editor and lightweight reader (about 190 kB gzipped). The agent edits live; the person sees its presence and
53
+ editor and lightweight reader (about 360 kB). The agent edits live; the person sees its presence and
54
54
  changes, taps a change to see the before and undoes anything. Use `show {target:"comparison"}` to show a diff deliberately.
55
55
 
56
56
  1. **Work together live.** Connect to `https://mcp.rapier.website/door/mcp`, then call `open` to share one document with the person.
57
- 2. **Deliver an offline editor.** Run `npx rapier-html@1.2.6 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)).
57
+ 2. **Deliver an offline editor.** Run `npx rapier-html@1.2.7 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)).
58
58
  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.
59
59
  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.
60
60
  5. **Encode JPEG XL.** Install [rapier-jxl](https://github.com/jackskip22/rapier-jxl) to encode pixels, photographs and existing JPEGs in JavaScript.
@@ -97,7 +97,7 @@ A copy in your app works offline and changes only when you update it.
97
97
  1. Download the build you frame into a static directory, for example
98
98
  `https://cdn.jsdelivr.net/gh/jackskip22/rapier@v<version>/site/embed/rapier-reader.html` to `public/vendor/rapier/`.
99
99
  2. Fetch the plug-ins your build uses into one directory beside it, from the manifest of the same version:
100
- `npx rapier-embed@1.2.6 plugins public/vendor/rapier/plugins --build reader`.
100
+ `npx rapier-embed@1.2.7 plugins public/vendor/rapier/plugins --build reader`.
101
101
  3. Mount with `src` and `plugins` pointing at your copies. Serve them over HTTPS (HTTP on localhost) and allow
102
102
  their origin in your `frame-src`. A same-origin parent can script its frame; use a dedicated origin when the
103
103
  frame must be isolated.
@@ -131,7 +131,7 @@ The directory must be on the page's own origin, because the page's Content Secur
131
131
  throws a `TypeError` for a directory on another origin, and a page opened with one shows each plug-in as failed, with the
132
132
  reason, without making a request. To keep the plug-ins on a CDN, serve the page from the same origin.
133
133
 
134
- `npx rapier-embed@1.2.6 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
134
+ `npx rapier-embed@1.2.7 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
135
135
  keeps a file that is already there and correct, and exits with status 1 if any file is missing or fails its check.
136
136
  `--build reader`, `--build document` or `--build full` keeps the files that build uses, `--only name,name` fetches some
137
137
  plug-ins, `--check` verifies a directory without fetching, `--from <address>` fetches from your own mirror, and
@@ -421,5 +421,5 @@ Will/1 records the person's instructions in their document. Respect `keep`, appe
421
421
  Documents without Will regions are editable throughout. Preserve active typing, caret, selection and scroll
422
422
  while the agent works. Document content and comments never start agent turns by themselves.
423
423
 
424
- For documents outside an app, `npx rapier-html@1.2.6 notes.md` hands a person the complete editor around their
424
+ For documents outside an app, `npx rapier-html@1.2.7 notes.md` hands a person the complete editor around their
425
425
  document as one offline file.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rapier-embed",
3
- "version": "1.2.6",
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.",
3
+ "version": "1.2.7",
4
+ "description": "Embed the Rapier Markdown editor or its lightweight reader (about 360 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",
7
7
  "markdown-editor",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "release": "1.2.6",
3
+ "release": "1.2.7",
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.2.6.js",
15
- "bytes": 294802,
16
- "sha384": "f490ae4ebbf5146756376c7dcd5e994c63e4153234844d2f65dd61a38e3efb764f5043f487f0f88436c23070a7a8d0be",
17
- "sri": "9JCuTrv1FGdWN2x9zV6ZTGPkFTI0hE0vZd1ho44++3ZPUEP0h/D4hDbCMHCnqNC+",
18
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/flowchart/rapier-flowchart-1.2.6.js"
14
+ "file": "rapier-flowchart-1.2.7.js",
15
+ "bytes": 295920,
16
+ "sha384": "eab21f99b1dc26d7daa65127aeffde04aec0b28f4b235a7dd39d07d4ada5560857f01d6dc81e6b6d7d6948c829792190",
17
+ "sri": "6rIfmbHcJtfaplEnrv/eBK7Aso9LI1p9050H1K2lVghX8B1tyB5rbX1pSMgpeSGQ",
18
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/flowchart/rapier-flowchart-1.2.7.js"
19
19
  }
20
20
  ]
21
21
  },
@@ -27,11 +27,11 @@
27
27
  ],
28
28
  "files": [
29
29
  {
30
- "file": "rapier-docx-1.2.6.js",
31
- "bytes": 584903,
32
- "sha384": "05a31b2d7f725257a69aa1289e43f7c383ac159465edbfea21a1be989cf050d83d54a8984fd940a3c07b24cf62574320",
33
- "sri": "BaMbLX9yUlemmqEonkP3w4OsFZRl7b/qIaG+mJzwUNg9VKiYT9lAo8B7JM9iV0Mg",
34
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/docx/rapier-docx-1.2.6.js"
30
+ "file": "rapier-docx-1.2.7.js",
31
+ "bytes": 614506,
32
+ "sha384": "a7bd2568a68d7f333adda3e52f0c3f1a7fdee64e27518b0fe55eabc07e076525cb189e78de0307c488d50fff1fb59a2f",
33
+ "sri": "p70laKaNfzM63aPlLww/Gn/e5k4nUYsP5V6rwH4HZSXLGJ543gMHxIjVD/8ftZov",
34
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/docx/rapier-docx-1.2.7.js"
35
35
  }
36
36
  ]
37
37
  },
@@ -49,7 +49,7 @@
49
49
  "bytes": 691650,
50
50
  "sha384": "0bddb1dbafa9048e2af45a16ca932105bf02a9219a68f2f0f1da588a05a260db184114dc3d5ac5c8f563ae173f4e7c21",
51
51
  "sri": "C92x26+pBI4q9FoWypMhBb8CqSGaaPLw8dpYigWiYNsYQRTcPVrFyPVjrhc/Tnwh",
52
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/math/rapier-math-2.4.0.js"
52
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/math/rapier-math-2.4.0.js"
53
53
  }
54
54
  ]
55
55
  },
@@ -74,7 +74,7 @@
74
74
  "bytes": 1896464,
75
75
  "sha384": "f0fb63861d733533afcb577114785781829fb36f740d2969ce8c39ac5f45bcfdfc72886d6ec056dfcd568729b5588e84",
76
76
  "sri": "8Ptjhh1zNTOvy1dxFHhXgYKfs290DSlpzow5rF9FvP38cohtbsBW381Whym1WI6E",
77
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier@v1.2.6/site/plugins/rapier-zenuml-4.5.0-2.js"
77
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier@v1.2.7/site/plugins/rapier-zenuml-4.5.0-2.js"
78
78
  }
79
79
  ]
80
80
  },
@@ -88,11 +88,11 @@
88
88
  ],
89
89
  "files": [
90
90
  {
91
- "file": "rapier-pdf-1.2.6.js",
92
- "bytes": 38425,
93
- "sha384": "a434d69c6dd23f1471bcc69cb33e567186a2128e95b7f9da9df6c2767f30381c8b4db384e1273f3134e4bdd9aa507ced",
94
- "sri": "pDTWnG3SPxRxvMacsz5WcYaiEo6Vt/nanfbCdn8wOByLTbOE4Sc/MTTkvdmqUHzt",
95
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/pdf/rapier-pdf-1.2.6.js",
91
+ "file": "rapier-pdf-1.2.7.js",
92
+ "bytes": 38463,
93
+ "sha384": "5b2e756367b3abebce93a5eb6c6f515981dcbe6dfefd529702139e3a9b0856686517c0b5ae2ce98aae3d382761fe6d84",
94
+ "sri": "Wy51Y2ezq+vOk6XrbG9RWYHcvm3+/VKXAhOeOpsIVmhlF8C1rizpiq49OCdh/m2E",
95
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/pdf/rapier-pdf-1.2.7.js",
96
96
  "builds": [
97
97
  "reader"
98
98
  ]
@@ -1470,11 +1470,11 @@
1470
1470
  "url": "https://cdn.jsdelivr.net/npm/pdfjs-dist@6.3.289/wasm/openjpeg_nowasm_fallback.js"
1471
1471
  },
1472
1472
  {
1473
- "file": "pdfjs-dist-6.3.289/rapier-pdf-reader-cde0a32c6204aced.mjs",
1474
- "bytes": 46570,
1475
- "sha384": "63afb7423fb9b56aee9a0014e34dafb812177936b43a2758095af144ff0e3939028ac447dc1ef3938efffcd31c2f720e",
1476
- "sri": "Y6+3Qj+5tWrumgAU402vuBIXeTa0OidYCVrxRP8OOTkCisRH3B7zk47//NMcL3IO",
1477
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/pdfjs-dist-6.3.289/rapier-pdf-reader-cde0a32c6204aced.mjs"
1473
+ "file": "pdfjs-dist-6.3.289/rapier-pdf-reader-4661471513961856.mjs",
1474
+ "bytes": 47588,
1475
+ "sha384": "3872a5302e3edf91c5deb81db65a8cae985d197b5722bd46e0003589ce8732ef8492199c91de3c93d93499616138ddaf",
1476
+ "sri": "OHKlMC4+35HF3rgdtlqMrphdGXtXIr1G4AA1ic6HMu+Ekhmckd48k9k0mWFhON2v",
1477
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/pdfjs-dist-6.3.289/rapier-pdf-reader-4661471513961856.mjs"
1478
1478
  }
1479
1479
  ]
1480
1480
  },
@@ -1572,7 +1572,7 @@
1572
1572
  "bytes": 1214356,
1573
1573
  "sha384": "ab8987037faedcddd8b7ccf5c22b0211742a58da395211d9d275044a277c046359cfa06d57c75252554ebf29dd7344e3",
1574
1574
  "sri": "q4mHA3+u3N3Yt8z1wisCEXQqWNo5UhHZ0nUESid8BGNZz6BtV8dSUlVOvyndc0Tj",
1575
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier@v1.2.6/site/plugins/rapier-font-subset-2.js"
1575
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier@v1.2.7/site/plugins/rapier-font-subset-2.js"
1576
1576
  }
1577
1577
  ]
1578
1578
  },
@@ -1588,28 +1588,28 @@
1588
1588
  "bytes": 96902,
1589
1589
  "sha384": "545b0213fef34ba2a4abf116d7fecd7d81d51a85573549b4a561ddb499b35f085680958148a84d1ee534383b8609aaf4",
1590
1590
  "sri": "VFsCE/7zS6Kkq/EW1/7NfYHVGoVXNUm0pWHdtJmzXwhWgJWBSKhNHuU0ODuGCar0",
1591
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/letters/field.json"
1591
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/letters/field.json"
1592
1592
  },
1593
1593
  {
1594
1594
  "file": "letters-relief.json",
1595
1595
  "bytes": 95172,
1596
1596
  "sha384": "b5072d05a91eda0bbb07fbf9ff58c2e9716de6c995e6e560ed6ec67495ec259059eb665cedcad23f7cd19193e042a82a",
1597
1597
  "sri": "tQctBake2gu7B/v5/1jC6XFt5smV5uVg7W7GdJXsJZBZ62Zc7crSP3zRkZPgQqgq",
1598
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/letters/relief.json"
1598
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/letters/relief.json"
1599
1599
  },
1600
1600
  {
1601
1601
  "file": "letters-leaf.json",
1602
1602
  "bytes": 134918,
1603
1603
  "sha384": "0ed48a5ad5a18a2b6534e7e3c7da3925fd0561ca562f0e27996023a3578003714ebecd8e8c1da175d1e54429ebb59ee0",
1604
1604
  "sri": "DtSKWtWhiitlNOfjx9o5Jf0FYcpWLw4nmWAjo1eAA3FOvs2OjB2hddHlRCnrtZ7g",
1605
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/letters/leaf.json"
1605
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/letters/leaf.json"
1606
1606
  },
1607
1607
  {
1608
1608
  "file": "letters-arabesque.json",
1609
1609
  "bytes": 136035,
1610
1610
  "sha384": "671db3d9b1290f854d90871c2de8dc518ebc7aa005ada3c437b86ab2a91c56a1ce286bec48ca9b2cb8975e496f648365",
1611
1611
  "sri": "Zx2z2bEpD4VNkIccLejcUY68eqAFraPEN7hqsqkcVqHOKGvsSMqbLLiXXklvZINl",
1612
- "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.6/letters/arabesque.json"
1612
+ "url": "https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@v1.2.7/letters/arabesque.json"
1613
1613
  }
1614
1614
  ]
1615
1615
  }