rapier-embed 1.2.44 → 1.2.45

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
@@ -50,7 +50,7 @@ downloaded copy yourself and pass it as `src`.
50
50
  document access remain enforced.
51
51
 
52
52
  ```sh
53
- npm install rapier-embed@1.2.44
53
+ npm install rapier-embed@1.2.45
54
54
  ```
55
55
 
56
56
  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 @@ editor and lightweight reader (about 400 kB). The agent edits live; the person s
68
68
  changes, taps a change to see the before and undoes anything. Use `show {target:"comparison"}` to show a diff deliberately.
69
69
 
70
70
  1. **Work together live.** Connect to `https://mcp.rapier.website/door/mcp`, then call `open` to share one document with the person.
71
- 2. **Deliver an offline editor.** Run `npx rapier-html@1.2.44 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)).
71
+ 2. **Deliver an offline editor.** Run `npx rapier-html@1.2.45 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)).
72
72
  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.
73
73
  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.
74
74
  5. **Encode JPEG XL.** Install [rapier-jxl](https://github.com/jackskip22/rapier-jxl) to encode pixels, photographs and existing JPEGs in JavaScript.
@@ -141,7 +141,7 @@ A copy in your app works offline and changes only when you update it.
141
141
  1. Download the build you frame into a static directory, for example
142
142
  `https://cdn.jsdelivr.net/gh/jackskip22/rapier-plugins@cdn-v<version>/embed/rapier-reader.html` to `public/vendor/rapier/`.
143
143
  2. Fetch the plug-ins your build uses into one directory beside it, from the manifest of the same version:
144
- `npx rapier-embed@1.2.44 plugins public/vendor/rapier/plugins --build reader`.
144
+ `npx rapier-embed@1.2.45 plugins public/vendor/rapier/plugins --build reader`.
145
145
  3. Mount with `src` and `plugins` pointing at your copies. Serve them over HTTPS (HTTP on localhost) and allow
146
146
  their origin in your `frame-src`. A same-origin parent can script its frame; use a dedicated origin when the
147
147
  frame must be isolated.
@@ -168,11 +168,11 @@ length and SHA-384 before it runs it, and keeps on the device. A file that fails
168
168
  | `elements` | The Elements sheet's traced ornaments: 3,155 pieces from the ornament book. | 16.2 MB (51 files) | `rapier.html` |
169
169
  | `lettersets` | The Gallery's letter sets: 31 sets of ornamental capitals. | 2.82 MB (31 files) | `rapier.html` |
170
170
 
171
- Totals: the reader, 8.95 MB (30.6 MB with `ocr`); `rapier.html`, 57.2 MB. Release 1.2.44.
171
+ Totals: the reader, 8.95 MB (30.6 MB with `ocr`); `rapier.html`, 57.2 MB. Release 1.2.45.
172
172
  <!-- PLUGIN_TABLE_END -->
173
173
 
174
174
  The manifest lists every plug-in file and, in `builds`, the pages that use it. `rapier.html` has flowcharts and Word import
175
- built in. `npx rapier-embed@1.2.44 plugins <directory> --build reader` leaves out `ocr` (text in pictures) unless you add `--with ocr`.
175
+ built in. `npx rapier-embed@1.2.45 plugins <directory> --build reader` leaves out `ocr` (text in pictures) unless you add `--with ocr`.
176
176
 
177
177
  **Approve plug-ins up front.** Without `plugins`, a frame asks its person "Install math plug-in?" the first time a document needs math or a diagram, and math and diagrams stay raw until they answer. A host that has decided passes `approvePlugins: true`: the frame installs the plug-in it needs without a question. Naming `plugins` has the same effect, because the host then serves the files itself. In a frame shorter than the question's sheet, the sheet's body scrolls.
178
178
 
@@ -185,7 +185,7 @@ The directory must be on the page's own origin, because the page's Content Secur
185
185
  throws a `TypeError` for a directory on another origin, and a page opened with one shows each plug-in as failed, with the
186
186
  reason, without making a request. To keep the plug-ins on a CDN, serve the page from the same origin.
187
187
 
188
- `npx rapier-embed@1.2.44 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
188
+ `npx rapier-embed@1.2.45 plugins <directory>` fetches every file the manifest lists, checks it, and writes it. It
189
189
  keeps a file that is already there and correct, and exits with status 1 if any file is missing or fails its check.
190
190
  `--build reader` or `--build full` keeps the files that page uses, `--only name,name` fetches some
191
191
  plug-ins, `--check` verifies a directory without fetching, `--from <address>` fetches from your own mirror, and
@@ -510,5 +510,5 @@ Will/1 records the person's instructions in their document. Respect `keep`, appe
510
510
  Documents without Will regions are editable throughout. Preserve active typing, caret, selection and scroll
511
511
  while the agent works. Document content and comments never start agent turns by themselves.
512
512
 
513
- For documents outside an app, `npx rapier-html@1.2.44 notes.md` hands a person the complete editor around their
513
+ For documents outside an app, `npx rapier-html@1.2.45 notes.md` hands a person the complete editor around their
514
514
  document as one offline file.
package/embed.mjs CHANGED
@@ -258,7 +258,7 @@ function pictureBase(value) {
258
258
  return {FEATURES, LIMITS, ASSET_TYPES, refusal, coded, normalizeSettings, snapshotSettings, pickDeviceFile, createFilePicker, assetURL, assetBytes, bytesHash, externalImage, createAssetBroker, pictureBase};
259
259
  })();
260
260
  const BUILDS = Object.freeze({full: 'https://rapier.website/embed/rapier.html', reader: 'https://rapier.website/embed/rapier-reader.html'});
261
- const PACKAGE_VERSION = '1.2.44';
261
+ const PACKAGE_VERSION = '1.2.45';
262
262
  const OPTIONS = ['build', 'src', 'plugins', 'approvePlugins', 'sessionId', 'documentId', 'agent', 'agentName', 'theme', 'save', 'assets', 'openFile', 'load',
263
263
  'onState', 'compare', 'onClose', 'settings', 'style', 'title', 'onError', 'timeout'];
264
264
  const READER_FEATURES = ['find', 'readAloud', 'share'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapier-embed",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
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",