@uxf/wysiwyg 16.2.0 → 16.4.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/hooks.d.ts +394 -394
- package/package.json +7 -7
- package/plugins/heading/create-headings-plugin.js +2 -1
- package/plugins/image/image-upload-errors.test.js +2 -0
- package/plugins/link/hooks/use-link-actions.d.ts +197 -197
- package/plugins/list/list-item-with-several-contents.test.js +2 -1
- package/ui/video/insert-video-modal-content.js +1 -1
- package/utils.js +4 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/wysiwyg",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@platejs/link": "53.3.5",
|
|
19
19
|
"@platejs/list-classic": "53.0.0",
|
|
20
20
|
"@platejs/media": "53.1.4",
|
|
21
|
-
"@uxf/core": "
|
|
22
|
-
"@uxf/core-react": "16.
|
|
23
|
-
"@uxf/ui": "16.
|
|
21
|
+
"@uxf/core": "16.3.0",
|
|
22
|
+
"@uxf/core-react": "16.3.0",
|
|
23
|
+
"@uxf/ui": "16.4.0",
|
|
24
24
|
"platejs": "53.3.15",
|
|
25
25
|
"react": "^19.3.0",
|
|
26
26
|
"react-dom": "^19.3.0"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@platejs/media": "53.1.4",
|
|
34
34
|
"@types/react": "19.3.0",
|
|
35
35
|
"@types/react-dom": "19.3.0",
|
|
36
|
-
"@uxf/core": "
|
|
37
|
-
"@uxf/core-react": "16.
|
|
38
|
-
"@uxf/ui": "16.
|
|
36
|
+
"@uxf/core": "16.3.0",
|
|
37
|
+
"@uxf/core-react": "16.3.0",
|
|
38
|
+
"@uxf/ui": "16.4.0",
|
|
39
39
|
"platejs": "53.3.15",
|
|
40
40
|
"react": "19.3.1",
|
|
41
41
|
"react-dom": "19.3.1"
|
|
@@ -16,7 +16,8 @@ const PLUGINS_BY_LEVEL = [react_1.H1Plugin, react_1.H2Plugin, react_1.H3Plugin,
|
|
|
16
16
|
* fired.
|
|
17
17
|
*/
|
|
18
18
|
const createHeadingsPlugin = (config) => {
|
|
19
|
-
var _a
|
|
19
|
+
var _a;
|
|
20
|
+
var _b;
|
|
20
21
|
const disabledLevels = (_b = (_a = config === null || config === void 0 ? void 0 : config.options) === null || _a === void 0 ? void 0 : _a.disabledLevels) !== null && _b !== void 0 ? _b : [];
|
|
21
22
|
return (0, react_2.createPlatePlugin)({
|
|
22
23
|
key: constants_1.HEADINGS_PLUGIN_KEY,
|
|
@@ -32,6 +32,8 @@ afterEach(() => {
|
|
|
32
32
|
test("a pasted image URL that answers with an error is not uploaded", async () => {
|
|
33
33
|
global.fetch = jest.fn().mockResolvedValue({ ok: false, status: 404, blob: async () => new Blob() });
|
|
34
34
|
const { editor, uploadImage } = createEditor();
|
|
35
|
+
// the image plugin's insertData is async (see the next test), though Plate types it as returning a boolean
|
|
36
|
+
// oxlint-disable-next-line typescript/await-thenable
|
|
35
37
|
await editor.tf.insertData(textData("https://example.com/missing.png"));
|
|
36
38
|
expect(uploadImage).not.toHaveBeenCalled();
|
|
37
39
|
});
|