@uxf/wysiwyg 16.3.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.
@@ -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, _b;
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
  ]);
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
- var _a;
16
- return editor.tf.toggleBlock((_a = options.activeType) !== null && _a !== void 0 ? _a : types_1.PARAGRAPH_PLUGIN_TYPE, {
17
- defaultType: options.inactiveType,
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;