@atlaskit/editor-core 217.1.0 → 217.1.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 217.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 217.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b941a7ee841df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b941a7ee841df) -
14
+ EDITOR-5683 update outdated browser list to exclude browser versions before March 2024
15
+ - Updated dependencies
16
+
3
17
  ## 217.1.0
4
18
 
5
19
  ### Minor Changes
@@ -4,46 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isOutdatedBrowser = void 0;
7
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
8
+ /* eslint-disable require-unicode-regexp */
9
+
7
10
  var isOutdatedBrowser = exports.isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
8
11
  // 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
12
  var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
14
- // Ignored via go/ees005
15
- // eslint-disable-next-line require-unicode-regexp
16
13
  var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
17
- if (chromeVersion >= 84) {
14
+ if ((0, _expValEquals.expValEquals)('platform_editor_outdated_browser_update', 'isEnabled', true) ? chromeVersion >= 123 : chromeVersion >= 84) {
18
15
  return false;
19
16
  }
20
-
21
- // Ignored via go/ees005
22
- // eslint-disable-next-line require-unicode-regexp
23
17
  var gecko = /gecko\/\d/i.test(userAgent);
24
- // Ignored via go/ees005
25
- // eslint-disable-next-line require-unicode-regexp
26
18
  var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
27
- if (geckoVersion >= 84) {
19
+ if ((0, _expValEquals.expValEquals)('platform_editor_outdated_browser_update', 'isEnabled', true) ? geckoVersion >= 124 : geckoVersion >= 84) {
28
20
  return false;
29
21
  }
30
-
31
- // Ignored via go/ees005
32
- // eslint-disable-next-line require-unicode-regexp
33
22
  var edge = /Edge\/(\d+)/.exec(userAgent);
34
23
  var edgeVersion = edge ? +edge[1] : 0;
35
- if (edgeVersion >= 84) {
24
+ if ((0, _expValEquals.expValEquals)('platform_editor_outdated_browser_update', 'isEnabled', true) ? edgeVersion >= 123 : edgeVersion >= 84) {
36
25
  return false;
37
26
  }
38
-
39
- // Ignored via go/ees005
40
- // eslint-disable-next-line require-unicode-regexp
41
27
  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) {
28
+ var safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
29
+ if ((0, _expValEquals.expValEquals)('platform_editor_outdated_browser_update', 'isEnabled', true) ? safariVersion >= 17 : safariVersion >= 12) {
47
30
  return false;
48
31
  }
49
32
  return true;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "217.0.2";
8
+ var version = exports.version = "217.1.1";
@@ -1,43 +1,26 @@
1
+ /* eslint-disable require-unicode-regexp */
2
+
3
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
1
4
  export const isOutdatedBrowser = userAgent => {
2
5
  // 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
6
  const chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line require-unicode-regexp
10
7
  const chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
11
- if (chromeVersion >= 84) {
8
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? chromeVersion >= 123 : chromeVersion >= 84) {
12
9
  return false;
13
10
  }
14
-
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line require-unicode-regexp
17
11
  const gecko = /gecko\/\d/i.test(userAgent);
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line require-unicode-regexp
20
12
  const geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
21
- if (geckoVersion >= 84) {
13
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? geckoVersion >= 124 : geckoVersion >= 84) {
22
14
  return false;
23
15
  }
24
-
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line require-unicode-regexp
27
16
  const edge = /Edge\/(\d+)/.exec(userAgent);
28
17
  const edgeVersion = edge ? +edge[1] : 0;
29
- if (edgeVersion >= 84) {
18
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? edgeVersion >= 123 : edgeVersion >= 84) {
30
19
  return false;
31
20
  }
32
-
33
- // Ignored via go/ees005
34
- // eslint-disable-next-line require-unicode-regexp
35
21
  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) {
22
+ const safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
23
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? safariVersion >= 17 : safariVersion >= 12) {
41
24
  return false;
42
25
  }
43
26
  return true;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "217.0.2";
2
+ export const version = "217.1.1";
@@ -1,43 +1,26 @@
1
+ /* eslint-disable require-unicode-regexp */
2
+
3
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
1
4
  export var isOutdatedBrowser = function isOutdatedBrowser(userAgent) {
2
5
  // 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
6
  var chrome = /Chrome\//.test(userAgent) && !/OPR\//.test(userAgent);
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line require-unicode-regexp
10
7
  var chromeVersion = chrome ? parseInt((userAgent.match(/Chrome\/(\d+)/) || [])[1], 10) : 0;
11
- if (chromeVersion >= 84) {
8
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? chromeVersion >= 123 : chromeVersion >= 84) {
12
9
  return false;
13
10
  }
14
-
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line require-unicode-regexp
17
11
  var gecko = /gecko\/\d/i.test(userAgent);
18
- // Ignored via go/ees005
19
- // eslint-disable-next-line require-unicode-regexp
20
12
  var geckoVersion = gecko ? parseInt((userAgent.match(/Firefox\/(\d+)/) || [])[1], 10) : 0;
21
- if (geckoVersion >= 84) {
13
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? geckoVersion >= 124 : geckoVersion >= 84) {
22
14
  return false;
23
15
  }
24
-
25
- // Ignored via go/ees005
26
- // eslint-disable-next-line require-unicode-regexp
27
16
  var edge = /Edge\/(\d+)/.exec(userAgent);
28
17
  var edgeVersion = edge ? +edge[1] : 0;
29
- if (edgeVersion >= 84) {
18
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? edgeVersion >= 123 : edgeVersion >= 84) {
30
19
  return false;
31
20
  }
32
-
33
- // Ignored via go/ees005
34
- // eslint-disable-next-line require-unicode-regexp
35
21
  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) {
22
+ var safariVersion = safari ? parseInt((userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10) : 0;
23
+ if (expValEquals('platform_editor_outdated_browser_update', 'isEnabled', true) ? safariVersion >= 17 : safariVersion >= 12) {
41
24
  return false;
42
25
  }
43
26
  return true;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.0.2";
2
+ export var version = "217.1.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.1.0",
3
+ "version": "217.1.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.4.0",
68
68
  "@atlaskit/task-decision": "^19.3.0",
69
- "@atlaskit/tmp-editor-statsig": "^36.1.0",
69
+ "@atlaskit/tmp-editor-statsig": "^37.0.0",
70
70
  "@atlaskit/tokens": "^11.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -96,7 +96,7 @@
96
96
  "@af/visual-regression": "workspace:^",
97
97
  "@atlaskit/adf-utils": "^19.27.0",
98
98
  "@atlaskit/analytics-listeners": "^10.0.0",
99
- "@atlaskit/collab-provider": "^16.0.0",
99
+ "@atlaskit/collab-provider": "^16.1.0",
100
100
  "@atlaskit/editor-plugin-annotation": "^8.0.0",
101
101
  "@atlaskit/editor-plugin-card": "^13.0.0",
102
102
  "@atlaskit/editor-plugin-list": "^10.0.0",