slate-react 0.98.2 → 0.98.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.es.js +2 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/slate-react.js +2 -1
- package/dist/slate-react.min.js +1 -1
- package/dist/utils/environment.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/slate-react.js
CHANGED
|
@@ -892,7 +892,8 @@
|
|
|
892
892
|
|
|
893
893
|
var IS_UC_MOBILE = typeof navigator !== 'undefined' && /.*UCBrowser/.test(navigator.userAgent); // Wechat browser (not including mac wechat)
|
|
894
894
|
|
|
895
|
-
var IS_WECHATBROWSER = typeof navigator !== 'undefined' && /.*(
|
|
895
|
+
var IS_WECHATBROWSER = typeof navigator !== 'undefined' && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent); // avoid lookbehind (buggy in safari < 16.4)
|
|
896
|
+
// Check if DOM is available as React does internally.
|
|
896
897
|
// https://github.com/facebook/react/blob/master/packages/shared/ExecutionEnvironment.js
|
|
897
898
|
|
|
898
899
|
var CAN_USE_DOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); // COMPAT: Firefox/Edge Legacy don't support the `beforeinput` event
|