@fibery/prosemirror-schema 7.0.0 → 7.0.1

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.
@@ -30,6 +30,7 @@ import { note } from "./nodes/note.js";
30
30
  import { paragraph } from "./nodes/paragraph.js";
31
31
  import { tableNodes } from "./nodes/table-nodes.js";
32
32
  import { video } from "./nodes/video.js";
33
+ import { isEmptyObject } from "@fibery/helpers/src/object";
33
34
  import { Schema } from "prosemirror-model";
34
35
  import { marks, nodes } from "prosemirror-schema-basic";
35
36
  import { addListNodes } from "prosemirror-schema-list";
@@ -175,7 +176,7 @@ const createSchema = ({ sharedColorGenerator = null, headingToDOM = null, mediaT
175
176
  const attrs = {};
176
177
  if (state) attrs["data-check-item-state"] = state;
177
178
  if (id) attrs["data-list-item-id"] = id;
178
- return Object.keys(attrs).length ? [
179
+ return !isEmptyObject(attrs) ? [
179
180
  "li",
180
181
  attrs,
181
182
  0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/prosemirror-schema",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Fibery prosemirror schema",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -17,6 +17,7 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
+ "@fibery/helpers": "6.0.0",
20
21
  "prosemirror-model": "1.25.4",
21
22
  "prosemirror-schema-basic": "1.2.2",
22
23
  "prosemirror-schema-list": "1.5.1",