@atlaskit/editor-common 112.2.0 → 112.2.1
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/CHANGELOG.md +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/index.js +0 -7
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/index.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types-ts4.5/utils/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/utils/outdated-browsers.js +0 -50
- package/dist/es2019/utils/outdated-browsers.js +0 -44
- package/dist/esm/utils/outdated-browsers.js +0 -44
- package/dist/types/utils/outdated-browsers.d.ts +0 -1
- package/dist/types-ts4.5/utils/outdated-browsers.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b941a7ee841df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b941a7ee841df) -
|
|
8
|
+
EDITOR-5683 remove unused isOutdatedBrowser function from editor-common
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 112.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "112.
|
|
22
|
+
var packageVersion = "112.2.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "112.
|
|
27
|
+
var packageVersion = "112.2.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -779,12 +779,6 @@ Object.defineProperty(exports, "isNodeSelectedOrInRange", {
|
|
|
779
779
|
return _nodes.isNodeSelectedOrInRange;
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
|
-
Object.defineProperty(exports, "isOutdatedBrowser", {
|
|
783
|
-
enumerable: true,
|
|
784
|
-
get: function get() {
|
|
785
|
-
return _outdatedBrowsers.isOutdatedBrowser;
|
|
786
|
-
}
|
|
787
|
-
});
|
|
788
782
|
Object.defineProperty(exports, "isParagraph", {
|
|
789
783
|
enumerable: true,
|
|
790
784
|
get: function get() {
|
|
@@ -1234,7 +1228,6 @@ var _renderCount = require("./profiler/render-count");
|
|
|
1234
1228
|
var _validateUsingSpec = require("./validate-using-spec");
|
|
1235
1229
|
var _compareProps = require("./compare-props");
|
|
1236
1230
|
var _useComponentRenderTracking = require("./performance/hooks/use-component-render-tracking");
|
|
1237
|
-
var _outdatedBrowsers = require("./outdated-browsers");
|
|
1238
1231
|
var _autojoin = require("./prosemirror/autojoin");
|
|
1239
1232
|
var _referentiality = require("./referentiality");
|
|
1240
1233
|
var _list = require("./list");
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "112.
|
|
7
|
+
const packageVersion = "112.2.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "112.
|
|
17
|
+
const packageVersion = "112.2.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -152,7 +152,6 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
|
|
|
152
152
|
*
|
|
153
153
|
* Private API do not use
|
|
154
154
|
*/
|
|
155
|
-
export { isOutdatedBrowser } from './outdated-browsers';
|
|
156
155
|
export { autoJoinTr } from './prosemirror/autojoin';
|
|
157
156
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
|
|
158
157
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "112.
|
|
13
|
+
var packageVersion = "112.2.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "112.
|
|
24
|
+
var packageVersion = "112.2.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -152,7 +152,6 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
|
|
|
152
152
|
*
|
|
153
153
|
* Private API do not use
|
|
154
154
|
*/
|
|
155
|
-
export { isOutdatedBrowser } from './outdated-browsers';
|
|
156
155
|
export { autoJoinTr } from './prosemirror/autojoin';
|
|
157
156
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
|
|
158
157
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
|
|
@@ -161,7 +161,6 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
|
|
|
161
161
|
*
|
|
162
162
|
* Private API do not use
|
|
163
163
|
*/
|
|
164
|
-
export { isOutdatedBrowser } from './outdated-browsers';
|
|
165
164
|
export { autoJoinTr } from './prosemirror/autojoin';
|
|
166
165
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
|
|
167
166
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
|
|
@@ -161,7 +161,6 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
|
|
|
161
161
|
*
|
|
162
162
|
* Private API do not use
|
|
163
163
|
*/
|
|
164
|
-
export { isOutdatedBrowser } from './outdated-browsers';
|
|
165
164
|
export { autoJoinTr } from './prosemirror/autojoin';
|
|
166
165
|
export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
|
|
167
166
|
export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.2.
|
|
3
|
+
"version": "112.2.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
84
|
"@atlaskit/theme": "^22.0.0",
|
|
85
|
-
"@atlaskit/tmp-editor-statsig": "^36.
|
|
85
|
+
"@atlaskit/tmp-editor-statsig": "^36.2.0",
|
|
86
86
|
"@atlaskit/tokens": "^11.1.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.14.0",
|
|
88
88
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isOutdatedBrowser = void 0;
|
|
7
|
-
var isOutdatedBrowser = exports.isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
|
|
8
|
-
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
9
|
-
// Ignored via go/ees005
|
|
10
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
11
|
-
// Ignored via go/ees005
|
|
12
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
13
|
-
var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
14
|
-
// Ignored via go/ees005
|
|
15
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
16
|
-
var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
17
|
-
if (chromeVersion >= 84) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Ignored via go/ees005
|
|
22
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
23
|
-
var gecko = /gecko\/\d/i.test(userAgent);
|
|
24
|
-
// Ignored via go/ees005
|
|
25
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
26
|
-
var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
27
|
-
if (geckoVersion >= 84) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Ignored via go/ees005
|
|
32
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
33
|
-
var edge = /Edge\/(\d+)/.exec(userAgent);
|
|
34
|
-
var edgeVersion = edge ? +edge[1] : 0;
|
|
35
|
-
if (edgeVersion >= 84) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Ignored via go/ees005
|
|
40
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
41
|
-
var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
42
|
-
var safariVersion = safari ?
|
|
43
|
-
// Ignored via go/ees005
|
|
44
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
45
|
-
parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
46
|
-
if (safariVersion >= 12) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
return true;
|
|
50
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export const isOutdatedBrowser = userAgent => {
|
|
2
|
-
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
3
|
-
// Ignored via go/ees005
|
|
4
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
5
|
-
// Ignored via go/ees005
|
|
6
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
7
|
-
const chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
8
|
-
// Ignored via go/ees005
|
|
9
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
10
|
-
const chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
11
|
-
if (chromeVersion >= 84) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Ignored via go/ees005
|
|
16
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
17
|
-
const gecko = /gecko\/\d/i.test(userAgent);
|
|
18
|
-
// Ignored via go/ees005
|
|
19
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
20
|
-
const geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
21
|
-
if (geckoVersion >= 84) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Ignored via go/ees005
|
|
26
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
27
|
-
const edge = /Edge\/(\d+)/.exec(userAgent);
|
|
28
|
-
const edgeVersion = edge ? +edge[1] : 0;
|
|
29
|
-
if (edgeVersion >= 84) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Ignored via go/ees005
|
|
34
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
35
|
-
const safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
36
|
-
const safariVersion = safari ?
|
|
37
|
-
// Ignored via go/ees005
|
|
38
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
39
|
-
parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
40
|
-
if (safariVersion >= 12) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
return true;
|
|
44
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export var isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
|
|
2
|
-
// Take browsers in both Desktop and Mobile (includes Chrome, Firefox, Edge and Safari) within last 2 years
|
|
3
|
-
// Ignored via go/ees005
|
|
4
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
5
|
-
// Ignored via go/ees005
|
|
6
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
7
|
-
var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
|
|
8
|
-
// Ignored via go/ees005
|
|
9
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
10
|
-
var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
|
|
11
|
-
if (chromeVersion >= 84) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Ignored via go/ees005
|
|
16
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
17
|
-
var gecko = /gecko\/\d/i.test(userAgent);
|
|
18
|
-
// Ignored via go/ees005
|
|
19
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
20
|
-
var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
|
|
21
|
-
if (geckoVersion >= 84) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Ignored via go/ees005
|
|
26
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
27
|
-
var edge = /Edge\/(\d+)/.exec(userAgent);
|
|
28
|
-
var edgeVersion = edge ? +edge[1] : 0;
|
|
29
|
-
if (edgeVersion >= 84) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Ignored via go/ees005
|
|
34
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
35
|
-
var safari = !chrome && !gecko && /Version\/([0-9\._]+).*Safari/.test(userAgent);
|
|
36
|
-
var safariVersion = safari ?
|
|
37
|
-
// Ignored via go/ees005
|
|
38
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
39
|
-
parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
|
|
40
|
-
if (safariVersion >= 12) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
return true;
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isOutdatedBrowser: (userAgent: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isOutdatedBrowser: (userAgent: string) => boolean;
|