@atlaskit/adf-schema 26.2.2 → 26.3.0

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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 26.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`91410d6064c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/91410d6064c) - [ux] NOISSUE Fix linkify of file links on space
8
+
3
9
  ## 26.2.2
4
10
 
5
11
  ### Patch Changes
@@ -47,6 +47,9 @@ var urlWithoutSpacesValidator = {
47
47
  // `tel:` URI spec is https://datatracker.ietf.org/doc/html/rfc3966
48
48
  // We're not validating the phone number or separators - but if there's a space it definitely isn't a valid `tel:` URI
49
49
  linkify.add('tel:', urlWithoutSpacesValidator);
50
+
51
+ // https://datatracker.ietf.org/doc/html/rfc8089
52
+ linkify.add('file:', urlWithoutSpacesValidator);
50
53
  linkify.add('notes:', 'http:');
51
54
  var tlds = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
52
55
  var tlds2Char = 'a[cdefgilmnoqrtuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrtuvwxyz]|n[acefgilopruz]|om|p[aefghkmnrtw]|qa|r[eosuw]|s[abcdegijklmnrtuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.2.2",
3
+ "version": "26.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -31,6 +31,9 @@ const urlWithoutSpacesValidator = {
31
31
  // `tel:` URI spec is https://datatracker.ietf.org/doc/html/rfc3966
32
32
  // We're not validating the phone number or separators - but if there's a space it definitely isn't a valid `tel:` URI
33
33
  linkify.add('tel:', urlWithoutSpacesValidator);
34
+
35
+ // https://datatracker.ietf.org/doc/html/rfc8089
36
+ linkify.add('file:', urlWithoutSpacesValidator);
34
37
  linkify.add('notes:', 'http:');
35
38
  const tlds = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
36
39
  const tlds2Char = 'a[cdefgilmnoqrtuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrtuvwxyz]|n[acefgilopruz]|om|p[aefghkmnrtw]|qa|r[eosuw]|s[abcdegijklmnrtuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.2.2",
3
+ "version": "26.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -33,6 +33,9 @@ var urlWithoutSpacesValidator = {
33
33
  // `tel:` URI spec is https://datatracker.ietf.org/doc/html/rfc3966
34
34
  // We're not validating the phone number or separators - but if there's a space it definitely isn't a valid `tel:` URI
35
35
  linkify.add('tel:', urlWithoutSpacesValidator);
36
+
37
+ // https://datatracker.ietf.org/doc/html/rfc8089
38
+ linkify.add('file:', urlWithoutSpacesValidator);
36
39
  linkify.add('notes:', 'http:');
37
40
  var tlds = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
38
41
  var tlds2Char = 'a[cdefgilmnoqrtuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrtuvwxyz]|n[acefgilopruz]|om|p[aefghkmnrtw]|qa|r[eosuw]|s[abcdegijklmnrtuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.2.2",
3
+ "version": "26.3.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.2.2",
3
+ "version": "26.3.0",
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/"