prosemirror-flat-list
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -95,2 +95,11 @@ // 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 | ||
@@ -165,3 +174,6 @@ function listToDOM({ | ||
"data-list-collapsable": node.childCount >= 2 ? "" : void 0, | ||
style: attrs.order != null ? `counter-set: prosemirror-flat-list-counter ${attrs.order};` : 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 | ||
}; | ||
@@ -1470,13 +1482,2 @@ return domAttrs; | ||
import { Decoration, DecorationSet } from "prosemirror-view"; | ||
// 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/plugins/safari-workaround.ts | ||
function createSafariInputMethodWorkaroundPlugin() { | ||
@@ -1483,0 +1484,0 @@ let view = null; |
@@ -95,2 +95,11 @@ // 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 | ||
@@ -165,3 +174,6 @@ function listToDOM({ | ||
"data-list-collapsable": node.childCount >= 2 ? "" : void 0, | ||
style: attrs.order != null ? `counter-set: prosemirror-flat-list-counter ${attrs.order};` : 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 | ||
}; | ||
@@ -1470,13 +1482,2 @@ return domAttrs; | ||
import { Decoration, DecorationSet } from "prosemirror-view"; | ||
// 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/plugins/safari-workaround.ts | ||
function createSafariInputMethodWorkaroundPlugin() { | ||
@@ -1483,0 +1484,0 @@ let view = null; |
{ | ||
"name": "prosemirror-flat-list", | ||
"type": "module", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"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
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
162964
5136