loro-crdt 1.4.4 → 1.4.6
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/CHANGELOG.md +13 -0
- package/base64/index.js +21 -1
- package/base64/loro_wasm.d.ts +8 -0
- package/base64/loro_wasm_bg-6f5ef18d.js +64 -0
- package/bundler/loro_wasm.d.ts +8 -0
- package/bundler/loro_wasm_bg.js +20 -0
- package/bundler/loro_wasm_bg.wasm +0 -0
- package/bundler/loro_wasm_bg.wasm.d.ts +1 -0
- package/nodejs/loro_wasm.d.ts +8 -0
- package/nodejs/loro_wasm.js +20 -0
- package/nodejs/loro_wasm_bg.wasm +0 -0
- package/nodejs/loro_wasm_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
- package/web/loro_wasm.d.ts +9 -0
- package/web/loro_wasm.js +20 -0
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +1 -0
- package/base64/loro_wasm_bg-ec1c7122.js +0 -64
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0b0ac7c: fix: entity index when the tree is empty
|
|
8
|
+
|
|
9
|
+
## 1.4.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- aab07c6: feat: set default config for text style #669
|
|
14
|
+
- 6cf06e5: fix: detached loro text issues #665
|
|
15
|
+
|
|
3
16
|
## 1.4.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/base64/index.js
CHANGED
|
@@ -1077,6 +1077,26 @@ class LoroDoc {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
|
+
* Configures the default text style for the document.
|
|
1081
|
+
*
|
|
1082
|
+
* This method sets the default text style configuration for the document when using LoroText.
|
|
1083
|
+
* If `None` is provided, the default style is reset.
|
|
1084
|
+
* @param {{ expand: 'before'|'after'|'none'|'both' } | undefined} style
|
|
1085
|
+
*/
|
|
1086
|
+
configDefaultTextStyle(style) {
|
|
1087
|
+
try {
|
|
1088
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1089
|
+
wasm.lorodoc_configDefaultTextStyle(retptr, this.__wbg_ptr, addHeapObject(style));
|
|
1090
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
1091
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
1092
|
+
if (r1) {
|
|
1093
|
+
throw takeObject(r0);
|
|
1094
|
+
}
|
|
1095
|
+
} finally {
|
|
1096
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1080
1100
|
* Create a loro document from the snapshot.
|
|
1081
1101
|
*
|
|
1082
1102
|
* @see You can learn more [here](https://loro.dev/docs/tutorial/encoding).
|
|
@@ -6758,7 +6778,7 @@ var imports = /*#__PURE__*/Object.freeze({
|
|
|
6758
6778
|
// Without this patch, Cloudflare Worker would raise issue like: "Uncaught TypeError: wasm2.__wbindgen_start is not a function"
|
|
6759
6779
|
|
|
6760
6780
|
|
|
6761
|
-
import loro_wasm_bg_js from './loro_wasm_bg-
|
|
6781
|
+
import loro_wasm_bg_js from './loro_wasm_bg-6f5ef18d.js';
|
|
6762
6782
|
const instance = new WebAssembly.Instance(loro_wasm_bg_js(), {
|
|
6763
6783
|
"./loro_wasm_bg.js": imports,
|
|
6764
6784
|
});
|
package/base64/loro_wasm.d.ts
CHANGED
|
@@ -1606,6 +1606,14 @@ export class LoroDoc {
|
|
|
1606
1606
|
*/
|
|
1607
1607
|
configTextStyle(styles: {[key: string]: { expand: 'before'|'after'|'none'|'both' }}): void;
|
|
1608
1608
|
/**
|
|
1609
|
+
* Configures the default text style for the document.
|
|
1610
|
+
*
|
|
1611
|
+
* This method sets the default text style configuration for the document when using LoroText.
|
|
1612
|
+
* If `None` is provided, the default style is reset.
|
|
1613
|
+
* @param {{ expand: 'before'|'after'|'none'|'both' } | undefined} style
|
|
1614
|
+
*/
|
|
1615
|
+
configDefaultTextStyle(style: { expand: 'before'|'after'|'none'|'both' } | undefined): void;
|
|
1616
|
+
/**
|
|
1609
1617
|
* Create a loro document from the snapshot.
|
|
1610
1618
|
*
|
|
1611
1619
|
* @see You can learn more [here](https://loro.dev/docs/tutorial/encoding).
|