@elmoorx/collab 2.0.0-alpha.25 → 3.0.0-alpha.2
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 +3 -3
- package/package.json +5 -1
- package/src/index.ts +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @elmoorx/collab
|
|
2
2
|
|
|
3
3
|
> Real-time collaboration: CRDT, presence, cursors, conflict resolution
|
|
4
4
|
|
|
@@ -7,13 +7,13 @@ Part of the [Wafra Framework](https://github.com/wafra/framework) — Build fast
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @elmoorx/collab
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { /* exports */ } from '@
|
|
16
|
+
import { /* exports */ } from '@elmoorx/collab';
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmoorx/collab",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "Real-time collaboration: CRDT, presence, cursors, conflict resolution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -30,5 +30,9 @@
|
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"exports": {
|
|
32
32
|
".": "./src/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
37
|
}
|
|
34
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @elmoorx/collab — Real-time Collaboration (Figma-like)
|
|
3
3
|
* ============================================
|
|
4
4
|
* Multiple users editing the same Wafra app simultaneously.
|
|
5
5
|
* See cursors, selections, and edits in real-time.
|
|
6
6
|
*
|
|
7
|
-
* import { useCollab, collabSession } from "@
|
|
7
|
+
* import { useCollab, collabSession } from "@elmoorx/collab";
|
|
8
8
|
*
|
|
9
9
|
* const session = collabSession.create("my-app");
|
|
10
10
|
* const { users, cursors, share } = useCollab(session);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* - Conflict-free editing (CRDT-based)
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { $state, $effect, $store, type WafraNode } from "@
|
|
22
|
+
import { $state, $effect, $store, type WafraNode } from "@elmoorx/runtime";
|
|
23
23
|
|
|
24
24
|
// ============ TYPES ============
|
|
25
25
|
|