@uxf/wysiwyg 16.1.0 → 16.2.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/wysiwyg",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "UXF Wysiwyg editor",
|
|
5
5
|
"author": "UX Fans s.r.o. <dev@uxf.cz>",
|
|
6
6
|
"homepage": "https://fe.uxf.dev/docs/wysiwyg",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@platejs/list-classic": "53.0.0",
|
|
20
20
|
"@platejs/media": "53.1.4",
|
|
21
21
|
"@uxf/core": "15.2.1",
|
|
22
|
-
"@uxf/core-react": "16.
|
|
23
|
-
"@uxf/ui": "16.
|
|
22
|
+
"@uxf/core-react": "16.2.0",
|
|
23
|
+
"@uxf/ui": "16.2.0",
|
|
24
24
|
"platejs": "53.3.15",
|
|
25
25
|
"react": "^19.3.0",
|
|
26
26
|
"react-dom": "^19.3.0"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@types/react": "19.3.0",
|
|
35
35
|
"@types/react-dom": "19.3.0",
|
|
36
36
|
"@uxf/core": "15.2.1",
|
|
37
|
-
"@uxf/core-react": "16.
|
|
38
|
-
"@uxf/ui": "16.
|
|
37
|
+
"@uxf/core-react": "16.2.0",
|
|
38
|
+
"@uxf/ui": "16.2.0",
|
|
39
39
|
"platejs": "53.3.15",
|
|
40
40
|
"react": "19.3.1",
|
|
41
41
|
"react-dom": "19.3.1"
|
|
@@ -71,11 +71,11 @@ describe("an li with more than one lic", () => {
|
|
|
71
71
|
expect(outline(editor).at(0)).toEqual(["ul", ["aa1", "b", "c"]]);
|
|
72
72
|
});
|
|
73
73
|
it("gives the split-off item an id of its own", () => {
|
|
74
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
75
75
|
const editor = createEditor([
|
|
76
76
|
{ children: [{ children: [content("a"), content("b")], type: "li" }], type: "ul" },
|
|
77
77
|
]);
|
|
78
|
-
const ids = ((_a = editor.children.at(0)) === null || _a === void 0 ? void 0 : _a.children).map((item) => item.id);
|
|
78
|
+
const ids = ((_b = (_a = editor.children.at(0)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []).map((item) => item.id);
|
|
79
79
|
expect(ids).toHaveLength(2);
|
|
80
80
|
expect(new Set(ids).size).toBe(2);
|
|
81
81
|
});
|