@atlaskit/adf-schema 52.2.2 → 52.2.4

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/adf-schema
2
2
 
3
+ ## 52.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 52.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`bf1bed54d14bd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf1bed54d14bd) -
14
+ Remove platform_editor_safe_url_trim_fix feature flag
15
+ - Updated dependencies
16
+
3
17
  ## 52.2.2
4
18
 
5
19
  ### Patch Changes
@@ -10,7 +10,6 @@ exports.isRootRelative = isRootRelative;
10
10
  exports.linkifyMatch = exports.linkify = exports.isSafeUrl = void 0;
11
11
  exports.normalizeUrl = normalizeUrl;
12
12
  var _linkifyIt = _interopRequireDefault(require("linkify-it"));
13
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
13
  /**
15
14
  * This file has been partially duplicated in packages/linking-platform/linking-common/src/url.ts
16
15
  * Any changes made here should be mirrored there.
@@ -29,11 +28,9 @@ var whitelistedURLPatterns = [/^http[s\u017F]?:\/\//im, /^ftp[s\u017F]?:\/\//im,
29
28
  */
30
29
  var isSafeUrl = exports.isSafeUrl = function isSafeUrl(url) {
31
30
  var urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
32
- if (urlTrimmed === undefined && (0, _expValEquals.expValEquals)('platform_editor_safe_url_trim_fix', 'isEnabled', true)) {
31
+ if (urlTrimmed === undefined) {
33
32
  return true;
34
33
  }
35
-
36
- // remove cast to string once we remove the experiment, as urlTrimmed will never be undefined at that point
37
34
  if (urlTrimmed.length === 0) {
38
35
  return true;
39
36
  }
@@ -5,7 +5,6 @@
5
5
  * Ticket for fixing linkification of filename-like urls: https://product-fabric.atlassian.net/browse/EDM-7190
6
6
  */
7
7
  import LinkifyIt from 'linkify-it';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  const whitelistedURLPatterns = [/^https?:\/\//imu, /^ftps?:\/\//imu, /^gopher:\/\//imu, /^integrity:\/\//imu, /^file:\/\//imu, /^smb:\/\//imu, /^dynamicsnav:\/\//imu, /^jamfselfservice:\/\//imu, /^\//imu, /^mailto:/imu, /^skype:/imu, /^callto:/imu, /^facetime:/imu, /^git:/imu, /^irc6?:/imu, /^news:/imu, /^nntp:/imu, /^feed:/imu, /^cvs:/imu, /^svn:/imu, /^mvn:/imu, /^ssh:/imu, /^scp:\/\//imu, /^sftp:\/\//imu, /^itms:/imu,
10
9
  // This is not a valid notes link, but we support this pattern for backwards compatibility
11
10
  /^notes:/imu, /^notes:\/\//imu, /^hipchat:\/\//imu,
@@ -17,11 +16,9 @@ const whitelistedURLPatterns = [/^https?:\/\//imu, /^ftps?:\/\//imu, /^gopher:\/
17
16
  */
18
17
  export const isSafeUrl = url => {
19
18
  const urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
20
- if (urlTrimmed === undefined && expValEquals('platform_editor_safe_url_trim_fix', 'isEnabled', true)) {
19
+ if (urlTrimmed === undefined) {
21
20
  return true;
22
21
  }
23
-
24
- // remove cast to string once we remove the experiment, as urlTrimmed will never be undefined at that point
25
22
  if (urlTrimmed.length === 0) {
26
23
  return true;
27
24
  }
@@ -5,7 +5,6 @@
5
5
  * Ticket for fixing linkification of filename-like urls: https://product-fabric.atlassian.net/browse/EDM-7190
6
6
  */
7
7
  import LinkifyIt from 'linkify-it';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  var whitelistedURLPatterns = [/^http[s\u017F]?:\/\//im, /^ftp[s\u017F]?:\/\//im, /^gopher:\/\//im, /^integrity:\/\//im, /^file:\/\//im, /^[s\u017F]mb:\/\//im, /^dynamic[s\u017F]nav:\/\//im, /^jamf[s\u017F]elf[s\u017F]ervice:\/\//im, /^\//im, /^mailto:/im, /^[s\u017F][k\u212A]ype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^new[s\u017F]:/im, /^nntp:/im, /^feed:/im, /^cv[s\u017F]:/im, /^[s\u017F]vn:/im, /^mvn:/im, /^[s\u017F][s\u017F]h:/im, /^[s\u017F]cp:\/\//im, /^[s\u017F]ftp:\/\//im, /^itm[s\u017F]:/im,
10
9
  // This is not a valid notes link, but we support this pattern for backwards compatibility
11
10
  /^note[s\u017F]:/im, /^note[s\u017F]:\/\//im, /^hipchat:\/\//im,
@@ -17,11 +16,9 @@ var whitelistedURLPatterns = [/^http[s\u017F]?:\/\//im, /^ftp[s\u017F]?:\/\//im,
17
16
  */
18
17
  export var isSafeUrl = function isSafeUrl(url) {
19
18
  var urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
20
- if (urlTrimmed === undefined && expValEquals('platform_editor_safe_url_trim_fix', 'isEnabled', true)) {
19
+ if (urlTrimmed === undefined) {
21
20
  return true;
22
21
  }
23
-
24
- // remove cast to string once we remove the experiment, as urlTrimmed will never be undefined at that point
25
22
  if (urlTrimmed.length === 0) {
26
23
  return true;
27
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.2.2",
3
+ "version": "52.2.4",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@atlaskit/adf-schema-generator": "^2.1.0",
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
- "@atlaskit/tmp-editor-statsig": "^35.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^36.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "css-color-names": "0.0.4",
48
48
  "linkify-it": "^3.0.3",