@nerd-bible/wordgard 0.6.2-beta12 → 0.6.2-beta13
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/editor.js +22 -22
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -921,28 +921,6 @@ function logException(state, exception, context) {
|
|
|
921
921
|
console.error(exception);
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
let nav = typeof navigator != "undefined" ? navigator : { userAgent: "", vendor: "", platform: "" };
|
|
925
|
-
let doc = typeof document != "undefined" ? document : { documentElement: { style: {} } };
|
|
926
|
-
const edge = /*@__PURE__*/(() => /Edge\/(\d+)/.exec(nav.userAgent))();
|
|
927
|
-
const gecko = /*@__PURE__*/(() => !edge && /gecko\/(\d+)/i.test(nav.userAgent))();
|
|
928
|
-
const chrome = /*@__PURE__*/(() => !edge && /Chrome\/(\d+)/.exec(nav.userAgent))();
|
|
929
|
-
const webkit = /*@__PURE__*/(() => "webkitFontSmoothing" in doc.documentElement.style)();
|
|
930
|
-
const safari = /*@__PURE__*/(() => !edge && /Apple Computer/.test(nav.vendor))();
|
|
931
|
-
const ios = /*@__PURE__*/(() => safari && (/Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2))();
|
|
932
|
-
var browser = /*@__PURE__*/(() => ({
|
|
933
|
-
mac: ios || /Mac/.test(nav.platform),
|
|
934
|
-
windows: /Win/.test(nav.platform),
|
|
935
|
-
linux: /Linux|X11/.test(nav.platform),
|
|
936
|
-
gecko_version: gecko ? +(/Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
937
|
-
chrome: !!chrome,
|
|
938
|
-
chrome_version: chrome ? +chrome[1] : 0,
|
|
939
|
-
ios,
|
|
940
|
-
android: /Android\b/.test(nav.userAgent),
|
|
941
|
-
webkit,
|
|
942
|
-
webkit_version: webkit ? +(/\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
943
|
-
safari,
|
|
944
|
-
safari_version: safari ? +(/\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0}))();
|
|
945
|
-
|
|
946
924
|
function getSelection(root) {
|
|
947
925
|
let target;
|
|
948
926
|
if (root.nodeType == 11) { target = root.getSelection ? root : root.ownerDocument;
|
|
@@ -2712,6 +2690,28 @@ function flattenH(rect, top) {
|
|
|
2712
2690
|
return rect.height ? new DOMRect(rect.left, top ? rect.top : rect.bottom, rect.width, 0) : rect;
|
|
2713
2691
|
}
|
|
2714
2692
|
|
|
2693
|
+
let nav = typeof navigator != "undefined" ? navigator : { userAgent: "", vendor: "", platform: "" };
|
|
2694
|
+
let doc = typeof document != "undefined" ? document : { documentElement: { style: {} } };
|
|
2695
|
+
const edge = /*@__PURE__*/(() => /Edge\/(\d+)/.exec(nav.userAgent))();
|
|
2696
|
+
const gecko = /*@__PURE__*/(() => !edge && /gecko\/(\d+)/i.test(nav.userAgent))();
|
|
2697
|
+
const chrome = /*@__PURE__*/(() => !edge && /Chrome\/(\d+)/.exec(nav.userAgent))();
|
|
2698
|
+
const webkit = /*@__PURE__*/(() => "webkitFontSmoothing" in doc.documentElement.style)();
|
|
2699
|
+
const safari = /*@__PURE__*/(() => !edge && /Apple Computer/.test(nav.vendor))();
|
|
2700
|
+
const ios = /*@__PURE__*/(() => safari && (/Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2))();
|
|
2701
|
+
var browser = /*@__PURE__*/(() => ({
|
|
2702
|
+
mac: ios || /Mac/.test(nav.platform),
|
|
2703
|
+
windows: /Win/.test(nav.platform),
|
|
2704
|
+
linux: /Linux|X11/.test(nav.platform),
|
|
2705
|
+
gecko_version: gecko ? +(/Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
2706
|
+
chrome: !!chrome,
|
|
2707
|
+
chrome_version: chrome ? +chrome[1] : 0,
|
|
2708
|
+
ios,
|
|
2709
|
+
android: /Android\b/.test(nav.userAgent),
|
|
2710
|
+
webkit,
|
|
2711
|
+
webkit_version: webkit ? +(/\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
2712
|
+
safari,
|
|
2713
|
+
safari_version: safari ? +(/\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0}))();
|
|
2714
|
+
|
|
2715
2715
|
const clipboardOutputFilter = /*@__PURE__*/GardState.Facet.define({
|
|
2716
2716
|
name: "clipboardOutputFilter"
|
|
2717
2717
|
});
|