@fibery/prosemirror-schema 1.5.0 → 1.6.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/lib/index.js +7 -5
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -376,14 +376,15 @@ const external_uuid_namespaceObject = require("uuid");
|
|
|
376
376
|
const check_list = {
|
|
377
377
|
group: "block",
|
|
378
378
|
defining: true,
|
|
379
|
-
|
|
379
|
+
selectable: false,
|
|
380
|
+
content: "(check_item)+ (check_item|check_list)*",
|
|
380
381
|
attrs: {
|
|
381
382
|
id: {
|
|
382
383
|
default: ""
|
|
383
384
|
}
|
|
384
385
|
},
|
|
385
386
|
parseDOM: [{
|
|
386
|
-
tag: "
|
|
387
|
+
tag: "div[data-check-list-id]",
|
|
387
388
|
// Default priority is 50. We normaly don't change this but since this node type is
|
|
388
389
|
// also used by ordered-list we need to make sure that we run this parser first.
|
|
389
390
|
priority: 100,
|
|
@@ -400,7 +401,7 @@ const check_list = {
|
|
|
400
401
|
"data-check-list-id": id,
|
|
401
402
|
style: "list-style: none; padding-left: 0; margin-left: 0; margin-bottom: 0;"
|
|
402
403
|
};
|
|
403
|
-
return ["
|
|
404
|
+
return ["div", attrs, 0];
|
|
404
405
|
}
|
|
405
406
|
|
|
406
407
|
};
|
|
@@ -409,6 +410,7 @@ const check_list = {
|
|
|
409
410
|
const check_item = {
|
|
410
411
|
content: "inline*",
|
|
411
412
|
defining: true,
|
|
413
|
+
selectable: false,
|
|
412
414
|
marks: "_",
|
|
413
415
|
attrs: {
|
|
414
416
|
id: {
|
|
@@ -419,7 +421,7 @@ const check_item = {
|
|
|
419
421
|
}
|
|
420
422
|
},
|
|
421
423
|
parseDOM: [{
|
|
422
|
-
tag: "
|
|
424
|
+
tag: "div[data-check-item-id]",
|
|
423
425
|
// Default priority is 50. We normally don't change this but since this node type is
|
|
424
426
|
// also used by list-item we need to make sure that we run this parser first.
|
|
425
427
|
priority: 100,
|
|
@@ -438,7 +440,7 @@ const check_item = {
|
|
|
438
440
|
"data-check-item-id": id,
|
|
439
441
|
"data-check-item-state": state
|
|
440
442
|
};
|
|
441
|
-
return ["
|
|
443
|
+
return ["div", attrs, 0];
|
|
442
444
|
}
|
|
443
445
|
|
|
444
446
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/prosemirror-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Fibery prosemirror schema",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/prosemirror-model": "1.16.1",
|
|
28
|
-
"babel-loader": "8.2.
|
|
28
|
+
"babel-loader": "8.2.5",
|
|
29
29
|
"babel-preset-fibery": "7.2.0",
|
|
30
30
|
"eslint-config-fibery": "7.1.0",
|
|
31
31
|
"jest": "27.5.1",
|
|
32
32
|
"jest-junit": "13.0.0",
|
|
33
|
-
"webpack": "5.
|
|
34
|
-
"webpack-cli": "4.
|
|
33
|
+
"webpack": "5.72.0",
|
|
34
|
+
"webpack-cli": "4.9.2"
|
|
35
35
|
},
|
|
36
36
|
"jest": {
|
|
37
37
|
"testEnvironment": "jsdom",
|