@atlaskit/editor-common 116.21.0 → 116.21.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/getLinkDomain.js +13 -10
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/getLinkDomain.js +13 -10
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/getLinkDomain.js +13 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c2986ab2c7a01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2986ab2c7a01) -
|
|
8
|
+
Cleans up prefer static regex violations and enables e18e rule
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 116.21.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.
|
|
31
|
+
var packageVersion = "116.21.0";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// 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 = "116.
|
|
27
|
+
var packageVersion = "116.21.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -4,18 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLinkDomain = getLinkDomain;
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
9
|
+
var PROTOCOL_REGEX = /^(.*):\/\//;
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
12
|
+
var WWW_PREFIX_REGEX = /^(www\.)/;
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
15
|
+
var URL_SUFFIX_REGEX = /[:\/?#](.*)$/;
|
|
16
|
+
|
|
7
17
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
8
18
|
function getLinkDomain(url) {
|
|
9
19
|
// Remove protocol and www., if either exists
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var withoutProtocol = url.toLowerCase().replace(/^(.*):\/\//, '');
|
|
13
|
-
// Ignored via go/ees005
|
|
14
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
15
|
-
var withoutWWW = withoutProtocol.replace(/^(www\.)/, '');
|
|
16
|
-
|
|
20
|
+
var withoutProtocol = url.toLowerCase().replace(PROTOCOL_REGEX, '');
|
|
21
|
+
var withoutWWW = withoutProtocol.replace(WWW_PREFIX_REGEX, '');
|
|
17
22
|
// Remove port, fragment, path, query string
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
20
|
-
return withoutWWW.replace(/[:\/?#](.*)$/, '');
|
|
23
|
+
return withoutWWW.replace(URL_SUFFIX_REGEX, '');
|
|
21
24
|
}
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.21.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// 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 = "116.
|
|
17
|
+
const packageVersion = "116.21.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
// Ignored via go/ees005
|
|
2
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
3
|
+
const PROTOCOL_REGEX = /^(.*):\/\//;
|
|
4
|
+
// Ignored via go/ees005
|
|
5
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
6
|
+
const WWW_PREFIX_REGEX = /^(www\.)/;
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
9
|
+
const URL_SUFFIX_REGEX = /[:\/?#](.*)$/;
|
|
10
|
+
|
|
1
11
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
2
12
|
export function getLinkDomain(url) {
|
|
3
13
|
// Remove protocol and www., if either exists
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const withoutProtocol = url.toLowerCase().replace(/^(.*):\/\//, '');
|
|
7
|
-
// Ignored via go/ees005
|
|
8
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
9
|
-
const withoutWWW = withoutProtocol.replace(/^(www\.)/, '');
|
|
10
|
-
|
|
14
|
+
const withoutProtocol = url.toLowerCase().replace(PROTOCOL_REGEX, '');
|
|
15
|
+
const withoutWWW = withoutProtocol.replace(WWW_PREFIX_REGEX, '');
|
|
11
16
|
// Remove port, fragment, path, query string
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
14
|
-
return withoutWWW.replace(/[:\/?#](.*)$/, '');
|
|
17
|
+
return withoutWWW.replace(URL_SUFFIX_REGEX, '');
|
|
15
18
|
}
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.
|
|
23
|
+
var packageVersion = "116.21.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// 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 = "116.
|
|
24
|
+
var packageVersion = "116.21.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
// Ignored via go/ees005
|
|
2
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
3
|
+
var PROTOCOL_REGEX = /^(.*):\/\//;
|
|
4
|
+
// Ignored via go/ees005
|
|
5
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
6
|
+
var WWW_PREFIX_REGEX = /^(www\.)/;
|
|
7
|
+
// Ignored via go/ees005
|
|
8
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
9
|
+
var URL_SUFFIX_REGEX = /[:\/?#](.*)$/;
|
|
10
|
+
|
|
1
11
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
2
12
|
export function getLinkDomain(url) {
|
|
3
13
|
// Remove protocol and www., if either exists
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var withoutProtocol = url.toLowerCase().replace(/^(.*):\/\//, '');
|
|
7
|
-
// Ignored via go/ees005
|
|
8
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
9
|
-
var withoutWWW = withoutProtocol.replace(/^(www\.)/, '');
|
|
10
|
-
|
|
14
|
+
var withoutProtocol = url.toLowerCase().replace(PROTOCOL_REGEX, '');
|
|
15
|
+
var withoutWWW = withoutProtocol.replace(WWW_PREFIX_REGEX, '');
|
|
11
16
|
// Remove port, fragment, path, query string
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
14
|
-
return withoutWWW.replace(/[:\/?#](.*)$/, '');
|
|
17
|
+
return withoutWWW.replace(URL_SUFFIX_REGEX, '');
|
|
15
18
|
}
|
package/package.json
CHANGED