@meowdown/react 0.83.0 → 0.83.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/dist/index.js +37 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -813,11 +813,26 @@ function EditorExtensions(t0) {
|
|
|
813
813
|
} else t4 = $[9];
|
|
814
814
|
useEffect(t3, t4);
|
|
815
815
|
let t5;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
816
|
+
bb0: {
|
|
817
|
+
if (!onDocChange) {
|
|
818
|
+
t5 = null;
|
|
819
|
+
break bb0;
|
|
820
|
+
}
|
|
821
|
+
let t6;
|
|
822
|
+
if ($[10] !== onDocChange) {
|
|
823
|
+
t6 = defineDocChangeHandler(() => {
|
|
824
|
+
try {
|
|
825
|
+
onDocChange();
|
|
826
|
+
} catch (t7) {
|
|
827
|
+
const error = t7;
|
|
828
|
+
reportError(error);
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
$[10] = onDocChange;
|
|
832
|
+
$[11] = t6;
|
|
833
|
+
} else t6 = $[11];
|
|
834
|
+
t5 = t6;
|
|
835
|
+
}
|
|
821
836
|
useExtension$1(t5);
|
|
822
837
|
let t6;
|
|
823
838
|
if ($[12] !== onSearchChange) {
|
|
@@ -4190,7 +4205,23 @@ function ProseKitEditor(t0) {
|
|
|
4190
4205
|
useImperativeHandle(ref, t13, t14);
|
|
4191
4206
|
let t15;
|
|
4192
4207
|
if ($[57] !== editor_0) {
|
|
4193
|
-
t15 = (element) =>
|
|
4208
|
+
t15 = (element) => {
|
|
4209
|
+
if (!element) return;
|
|
4210
|
+
try {
|
|
4211
|
+
editor_0.mount(element);
|
|
4212
|
+
} catch (t16) {
|
|
4213
|
+
const error_0 = t16;
|
|
4214
|
+
reportError(error_0);
|
|
4215
|
+
}
|
|
4216
|
+
return () => {
|
|
4217
|
+
try {
|
|
4218
|
+
editor_0.unmount();
|
|
4219
|
+
} catch (t17) {
|
|
4220
|
+
const error_1 = t17;
|
|
4221
|
+
reportError(error_1);
|
|
4222
|
+
}
|
|
4223
|
+
};
|
|
4224
|
+
};
|
|
4194
4225
|
$[57] = editor_0;
|
|
4195
4226
|
$[58] = t15;
|
|
4196
4227
|
} else t15 = $[58];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.83.
|
|
4
|
+
"version": "0.83.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@base-ui/react": "^1.9.0",
|
|
25
|
-
"@meowdown/core": "0.83.
|
|
25
|
+
"@meowdown/core": "0.83.2",
|
|
26
26
|
"@meowdown/embed": "0.3.1",
|
|
27
27
|
"@meowdown/markdown": "0.78.0",
|
|
28
28
|
"@ocavue/utils": "^1.11.0",
|