@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
|
@@ -71,7 +71,8 @@ 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;
|
|
75
|
+
var _b;
|
|
75
76
|
const editor = createEditor([
|
|
76
77
|
{ children: [{ children: [content("a"), content("b")], type: "li" }], type: "ul" },
|
|
77
78
|
]);
|
|
@@ -46,7 +46,7 @@ const modal_buttons_1 = require("../components/modal/modal-buttons");
|
|
|
46
46
|
const modal_content_1 = require("../components/modal/modal-content");
|
|
47
47
|
const utils_2 = require("../utils");
|
|
48
48
|
const CLASS_NAME = "uxf-wysiwyg__insert-modal-video";
|
|
49
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
49
|
+
// eslint-disable-next-line react-js/destructuring-assignment
|
|
50
50
|
const InsertVideoModalContent = t0 => {
|
|
51
51
|
var _a;
|
|
52
52
|
const $ = (0, compiler_runtime_1.c)(37);
|
package/utils.js
CHANGED
|
@@ -11,13 +11,10 @@ const getPluginType = (editor, key) => editor.getType(key);
|
|
|
11
11
|
exports.getPluginType = getPluginType;
|
|
12
12
|
const someNode = (editor, options) => editor.api.some(options);
|
|
13
13
|
exports.someNode = someNode;
|
|
14
|
-
const toggleNodeType = (editor, options, editorNodesOptions) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
someOptions: editorNodesOptions,
|
|
19
|
-
});
|
|
20
|
-
};
|
|
14
|
+
const toggleNodeType = (editor, options, editorNodesOptions) => { var _a; return editor.tf.toggleBlock((_a = options.activeType) !== null && _a !== void 0 ? _a : types_1.PARAGRAPH_PLUGIN_TYPE, {
|
|
15
|
+
defaultType: options.inactiveType,
|
|
16
|
+
someOptions: editorNodesOptions,
|
|
17
|
+
}); };
|
|
21
18
|
exports.toggleNodeType = toggleNodeType;
|
|
22
19
|
const focusEditor = (editor, target) => editor.tf.focus({ at: target });
|
|
23
20
|
exports.focusEditor = focusEditor;
|