prosemirror-flat-list
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -125,11 +125,2 @@ // src/commands/dedent-list.ts | ||
// src/utils/browser.ts | ||
var nav = typeof navigator != "undefined" ? navigator : null; | ||
var agent = nav && nav.userAgent || ""; | ||
var ie_edge = /Edge\/(\d+)/.exec(agent); | ||
var ie_upto10 = /MSIE \d/.exec(agent); | ||
var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(agent); | ||
var ie = !!(ie_upto10 || ie_11up || ie_edge); | ||
var safari = !ie && !!nav && /Apple Computer/.test(nav.vendor); | ||
// src/schema/to-dom.ts | ||
@@ -204,6 +195,3 @@ function listToDOM({ | ||
"data-list-collapsable": node.childCount >= 2 ? "" : void 0, | ||
style: attrs.order != null ? ( | ||
// Safari (at least version <= 16.5) doesn't support `counter-set` | ||
safari ? `counter-reset: prosemirror-flat-list-counter; counter-increment: prosemirror-flat-list-counter ${attrs.order};` : `counter-set: prosemirror-flat-list-counter ${attrs.order};` | ||
) : void 0 | ||
style: attrs.order != null ? `--prosemirror-flat-list-order: ${attrs.order};` : void 0 | ||
}; | ||
@@ -1570,2 +1558,13 @@ return domAttrs; | ||
import { DOMSerializer } from "prosemirror-model"; | ||
// src/utils/browser.ts | ||
var nav = typeof navigator != "undefined" ? navigator : null; | ||
var agent = nav && nav.userAgent || ""; | ||
var ie_edge = /Edge\/(\d+)/.exec(agent); | ||
var ie_upto10 = /MSIE \d/.exec(agent); | ||
var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(agent); | ||
var ie = !!(ie_upto10 || ie_11up || ie_edge); | ||
var safari = !ie && !!nav && /Apple Computer/.test(nav.vendor); | ||
// src/node-view.ts | ||
var createListNodeView = (node) => { | ||
@@ -1572,0 +1571,0 @@ var _a, _b; |
{ | ||
"name": "prosemirror-flat-list", | ||
"type": "module", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Powerful list support for ProseMirror", | ||
@@ -6,0 +6,0 @@ "author": "ocavue <ocavue@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131213
4054