@absolutejs/sync-yjs 0.0.3 → 0.0.5
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 +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +2 -2
- package/dist/manifest.d.ts +9 -0
- package/dist/manifest.js +2795 -0
- package/dist/manifest.js.map +123 -0
- package/dist/manifest.json +35 -0
- package/package.json +31 -6
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract": 2,
|
|
3
|
+
"identity": {
|
|
4
|
+
"accent": "#8acb88",
|
|
5
|
+
"category": "sync",
|
|
6
|
+
"description": "Yjs-backed `TextCrdtAdapter` for `@absolutejs/sync` — the industry-staple CRDT engine behind the same collaborative-text call sites as the built-in `rgaText`. State is stored as a base64 Yjs update, so documents written by other Yjs tooling interoperate.",
|
|
7
|
+
"docsUrl": "https://github.com/absolutejs/sync-adapters/tree/main/yjs",
|
|
8
|
+
"name": "@absolutejs/sync-yjs",
|
|
9
|
+
"tagline": "Collaborative text editing powered by Yjs."
|
|
10
|
+
},
|
|
11
|
+
"implements": [
|
|
12
|
+
{
|
|
13
|
+
"contract": "sync/crdt-adapter",
|
|
14
|
+
"factory": "yjsText",
|
|
15
|
+
"from": "@absolutejs/sync-yjs",
|
|
16
|
+
"title": "Yjs",
|
|
17
|
+
"wiring": {
|
|
18
|
+
"code": "yjsText",
|
|
19
|
+
"imports": [
|
|
20
|
+
{
|
|
21
|
+
"from": "@absolutejs/sync-yjs",
|
|
22
|
+
"names": [
|
|
23
|
+
"yjsText"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"settings": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {}
|
|
33
|
+
},
|
|
34
|
+
"wiring": []
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/sync-yjs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Yjs-backed collaborative-text CRDT adapter for @absolutejs/sync",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/absolutejs/sync-adapters.git",
|
|
8
8
|
"directory": "yjs"
|
|
9
9
|
},
|
|
10
|
+
"homepage": "https://github.com/absolutejs/sync-adapters/tree/main/yjs",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/absolutejs/sync-adapters/issues"
|
|
13
|
+
},
|
|
10
14
|
"main": "./dist/index.js",
|
|
11
15
|
"module": "./dist/index.js",
|
|
12
16
|
"types": "./dist/index.d.ts",
|
|
@@ -25,20 +29,22 @@
|
|
|
25
29
|
"multiplayer"
|
|
26
30
|
],
|
|
27
31
|
"scripts": {
|
|
28
|
-
"build": "rm -rf dist && bun build src/index.ts --outdir dist --sourcemap --target=bun --external @absolutejs/sync --external yjs && tsc --project tsconfig.build.json",
|
|
32
|
+
"build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --sourcemap --target=bun --external @absolutejs/sync --external yjs && tsc --project tsconfig.build.json && absolute-manifest emit",
|
|
29
33
|
"test": "bun test",
|
|
30
34
|
"typecheck": "tsc --noEmit",
|
|
31
35
|
"format": "prettier --write \"./**/*.{ts,json,md}\"",
|
|
32
36
|
"release": "bun run format && bun run build && bun publish"
|
|
33
37
|
},
|
|
34
38
|
"dependencies": {
|
|
39
|
+
"@absolutejs/manifest": "^0.7.1",
|
|
40
|
+
"@sinclair/typebox": "^0.34.0",
|
|
35
41
|
"yjs": "^13.6.30"
|
|
36
42
|
},
|
|
37
43
|
"peerDependencies": {
|
|
38
|
-
"@absolutejs/sync": ">=
|
|
44
|
+
"@absolutejs/sync": ">=2.11.0 <3"
|
|
39
45
|
},
|
|
40
46
|
"devDependencies": {
|
|
41
|
-
"@absolutejs/sync": "
|
|
47
|
+
"@absolutejs/sync": "2.11.0",
|
|
42
48
|
"@types/bun": "1.3.14",
|
|
43
49
|
"prettier": "3.5.3",
|
|
44
50
|
"typescript": "5.8.3"
|
|
@@ -48,10 +54,29 @@
|
|
|
48
54
|
"types": "./dist/index.d.ts",
|
|
49
55
|
"import": "./dist/index.js",
|
|
50
56
|
"default": "./dist/index.js"
|
|
51
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"./manifest": {
|
|
59
|
+
"types": "./dist/manifest.d.ts",
|
|
60
|
+
"import": "./dist/manifest.js",
|
|
61
|
+
"default": "./dist/manifest.js"
|
|
62
|
+
},
|
|
63
|
+
"./manifest.json": "./dist/manifest.json"
|
|
52
64
|
},
|
|
53
65
|
"files": [
|
|
54
66
|
"dist",
|
|
55
67
|
"README.md"
|
|
56
|
-
]
|
|
68
|
+
],
|
|
69
|
+
"absolutejs": {
|
|
70
|
+
"manifestContract": 2,
|
|
71
|
+
"runtimePeers": {
|
|
72
|
+
"@absolutejs/sync": {
|
|
73
|
+
"artifactImports": [],
|
|
74
|
+
"buildExternals": [
|
|
75
|
+
"@absolutejs/sync"
|
|
76
|
+
],
|
|
77
|
+
"range": ">=2.11.0 <3",
|
|
78
|
+
"tested": "2.11.0"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
57
82
|
}
|