prosemirror-view 1.23.13 → 1.24.0-beta.3

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/rollup.config.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- input: './src/index.js',
3
- output: [{
4
- file: 'dist/index.js',
5
- format: 'cjs',
6
- sourcemap: true
7
- }, {
8
- file: 'dist/index.es.js',
9
- format: 'es',
10
- sourcemap: true
11
- }],
12
- plugins: [require('@rollup/plugin-buble')()],
13
- external(id) { return id[0] != "." && !require("path").isAbsolute(id) }
14
- }
package/src/browser.js DELETED
@@ -1,23 +0,0 @@
1
- const result = {}
2
- export default result
3
-
4
- if (typeof navigator != "undefined" && typeof document != "undefined") {
5
- const ie_edge = /Edge\/(\d+)/.exec(navigator.userAgent)
6
- const ie_upto10 = /MSIE \d/.test(navigator.userAgent)
7
- const ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent)
8
-
9
- let ie = result.ie = !!(ie_upto10 || ie_11up || ie_edge)
10
- result.ie_version = ie_upto10 ? document.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : null
11
- result.gecko = !ie && /gecko\/(\d+)/i.test(navigator.userAgent)
12
- result.gecko_version = result.gecko && +(/Firefox\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1]
13
- let chrome = !ie && /Chrome\/(\d+)/.exec(navigator.userAgent)
14
- result.chrome = !!chrome
15
- result.chrome_version = chrome && +chrome[1]
16
- // Is true for both iOS and iPadOS for convenience
17
- result.safari = !ie && /Apple Computer/.test(navigator.vendor)
18
- result.ios = result.safari && (/Mobile\/\w+/.test(navigator.userAgent) || navigator.maxTouchPoints > 2)
19
- result.mac = result.ios || /Mac/.test(navigator.platform)
20
- result.android = /Android \d/.test(navigator.userAgent)
21
- result.webkit = "webkitFontSmoothing" in document.documentElement.style
22
- result.webkit_version = result.webkit && +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1]
23
- }