@uniweb/semantic-parser 1.0.1 → 1.0.2

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": "@uniweb/semantic-parser",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -101,6 +101,12 @@ function createSequenceElement(node, options = {}) {
101
101
  type: "image",
102
102
  attrs: parseImgBlock(attrs),
103
103
  };
104
+ case "image":
105
+ // Standard ProseMirror image node - spread attrs at top level
106
+ return {
107
+ type: "image",
108
+ ...attrs,
109
+ };
104
110
  case "Video":
105
111
  return {
106
112
  type: "video",