@pylonsync/sdk 0.22.34 → 0.22.35
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/LICENSE +21 -0
- package/dist/index.d.ts +5 -1
- package/package.json +5 -3
- package/src/index.ts +6 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Campbell Venture Studio, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,13 @@ export type FieldType = "string" | "int" | "float" | "bool" | "datetime" | "rich
|
|
|
13
13
|
* - `"list"`, `"movable-list"`, `"tree"` are reserved for ordered /
|
|
14
14
|
* reorderable / hierarchical collections — wire format locked in,
|
|
15
15
|
* server-side projection still pending implementation.
|
|
16
|
+
* - `"prosemirror"` makes a `richtext` or `json` field a ProseMirror
|
|
17
|
+
* (Tiptap) document that editors merge character by character. Bind an
|
|
18
|
+
* editor with `@pylonsync/loro/prosemirror`; the row reads the document
|
|
19
|
+
* as ProseMirror JSON, and a write replaces the whole document.
|
|
16
20
|
* - `"lww"` is explicit (matches the default for most scalar types).
|
|
17
21
|
*/
|
|
18
|
-
export type CrdtAnnotation = "lww" | "text" | "counter" | "list" | "movable-list" | "tree";
|
|
22
|
+
export type CrdtAnnotation = "lww" | "text" | "counter" | "list" | "movable-list" | "tree" | "prosemirror";
|
|
19
23
|
/**
|
|
20
24
|
* Insert-time default marker stored on a field definition. Apps never
|
|
21
25
|
* construct these directly — they come from `.default(v)` / `.defaultNow()`
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.22.
|
|
6
|
+
"version": "0.22.35",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"src",
|
|
35
|
-
"dist"
|
|
36
|
-
|
|
35
|
+
"dist",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT"
|
|
37
39
|
}
|
package/src/index.ts
CHANGED
|
@@ -36,6 +36,10 @@ export type FieldType =
|
|
|
36
36
|
* - `"list"`, `"movable-list"`, `"tree"` are reserved for ordered /
|
|
37
37
|
* reorderable / hierarchical collections — wire format locked in,
|
|
38
38
|
* server-side projection still pending implementation.
|
|
39
|
+
* - `"prosemirror"` makes a `richtext` or `json` field a ProseMirror
|
|
40
|
+
* (Tiptap) document that editors merge character by character. Bind an
|
|
41
|
+
* editor with `@pylonsync/loro/prosemirror`; the row reads the document
|
|
42
|
+
* as ProseMirror JSON, and a write replaces the whole document.
|
|
39
43
|
* - `"lww"` is explicit (matches the default for most scalar types).
|
|
40
44
|
*/
|
|
41
45
|
export type CrdtAnnotation =
|
|
@@ -44,7 +48,8 @@ export type CrdtAnnotation =
|
|
|
44
48
|
| "counter"
|
|
45
49
|
| "list"
|
|
46
50
|
| "movable-list"
|
|
47
|
-
| "tree"
|
|
51
|
+
| "tree"
|
|
52
|
+
| "prosemirror";
|
|
48
53
|
|
|
49
54
|
/**
|
|
50
55
|
* Insert-time default marker stored on a field definition. Apps never
|