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/dist/index.cjs +5733 -0
- package/dist/index.d.ts +799 -0
- package/dist/index.es.js +41 -41
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4823 -5139
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
- package/src/README.md +2 -0
- package/src/browser.ts +23 -0
- package/src/{capturekeys.js → capturekeys.ts} +38 -37
- package/src/{clipboard.js → clipboard.ts} +44 -41
- package/src/{decoration.js → decoration.ts} +313 -268
- package/src/{dom.js → dom.ts} +27 -24
- package/src/{domchange.js → domchange.ts} +38 -36
- package/src/{domcoords.js → domcoords.ts} +120 -99
- package/src/{domobserver.js → domobserver.ts} +41 -28
- package/src/index.ts +705 -0
- package/src/{input.js → input.ts} +203 -183
- package/src/{selection.js → selection.ts} +54 -48
- package/src/{viewdesc.js → viewdesc.ts} +342 -336
- package/rollup.config.js +0 -14
- package/src/browser.js +0 -23
- package/src/index.js +0 -668
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
|
-
}
|