@f12o/papyr-moonbit-bridge 2026.5.0

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/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@f12o/papyr-moonbit-bridge",
3
+ "version": "2026.5.0",
4
+ "description": "Papyr MoonBit bridge for browser and Node.js integrations",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src/generated"
18
+ ],
19
+ "devDependencies": {
20
+ "vite": "^6.0.0",
21
+ "vite-plugin-dts": "^4.4.0",
22
+ "vitest": "^2.1.0"
23
+ },
24
+ "license": "MIT",
25
+ "author": "f12o",
26
+ "homepage": "https://github.com/f4ah6o/papyr.mbt#readme",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/f4ah6o/papyr.mbt.git",
30
+ "directory": "packages/moonbit-bridge"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/f4ah6o/papyr.mbt/issues"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public",
37
+ "provenance": false
38
+ },
39
+ "scripts": {
40
+ "prebuild": "node ../../scripts/build-moonbit-bridge.mjs",
41
+ "build": "vite build",
42
+ "pretest": "node ../../scripts/build-moonbit-bridge.mjs",
43
+ "test": "vitest run --passWithNoTests",
44
+ "pretypecheck": "node ../../scripts/build-moonbit-bridge.mjs",
45
+ "typecheck": "tsc --noEmit"
46
+ }
47
+ }
@@ -0,0 +1,27 @@
1
+ import type * as MoonBit from "./moonbit.d.ts";
2
+
3
+ export function papyr_authoring_tool_json(source: MoonBit.String): MoonBit.String;
4
+
5
+ export function papyr_document_tool_json(source: MoonBit.String): MoonBit.String;
6
+
7
+ export function papyr_serialize_document_json(source: MoonBit.String): MoonBit.String;
8
+
9
+ export function papyr_parse_markdown_json(source: MoonBit.String): MoonBit.String;
10
+
11
+ export function papyr_resolve_pdf_layout_json(source: MoonBit.String): MoonBit.String;
12
+
13
+ export function papyr_remove_document_block_json(source: MoonBit.String): MoonBit.String;
14
+
15
+ export function papyr_insert_document_block_after_json(source: MoonBit.String): MoonBit.String;
16
+
17
+ export function papyr_replace_document_block_json(source: MoonBit.String): MoonBit.String;
18
+
19
+ export function papyr_visit_document_blocks_json(source: MoonBit.String): MoonBit.String;
20
+
21
+ export function papyr_collect_document_headings_json(source: MoonBit.String): MoonBit.String;
22
+
23
+ export function papyr_document_plain_text_json(source: MoonBit.String): MoonBit.String;
24
+
25
+ export function papyr_document_title_json(source: MoonBit.String): MoonBit.String;
26
+
27
+ export function papyr_validate_document_json(source: MoonBit.String): MoonBit.String;