@atlaskit/adf-schema 23.0.0 → 23.1.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 +23 -0
- package/dist/cjs/schema/marks/text-color.js +8 -8
- package/dist/cjs/utils/url.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/marks/text-color.js +8 -8
- package/dist/es2019/utils/url.js +4 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/marks/text-color.js +8 -8
- package/dist/esm/utils/url.js +4 -0
- package/dist/esm/version.json +1 -1
- package/dist/json-schema/package.json +1 -0
- package/dist/types/utils/url.d.ts +3 -0
- package/json-schema/package.json +1 -0
- package/package.json +5 -5
- package/schema/package.json +1 -0
- package/schema-bitbucket/package.json +1 -0
- package/schema-confluence/package.json +1 -0
- package/schema-default/package.json +1 -0
- package/schema-jira/package.json +1 -0
- package/steps/package.json +1 -0
- package/url/package.json +1 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 23.1.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [`8949731bc6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8949731bc6a) - ED-14608: Migrate adf-utils imports in atlassian-frontend to new child entry points to improve treeshaking
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- [`f0d6141f46c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0d6141f46c) - ED-14114: added tests to ensure consistency between ADF/ProseMirror schemas for default Mark attributes
|
12
|
+
- Updated dependencies
|
13
|
+
|
14
|
+
## 23.0.2
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- [`702b032500c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/702b032500c) - [ux] Corrected ordering of the toolbar text colour picker's drop down menu, updated its rows to be from darkest to lightest.
|
19
|
+
|
20
|
+
## 23.0.1
|
21
|
+
|
22
|
+
### Patch Changes
|
23
|
+
|
24
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
25
|
+
|
3
26
|
## 23.0.0
|
4
27
|
|
5
28
|
### Major Changes
|
@@ -21,20 +21,20 @@ var colorArrayPalette = [// default row
|
|
21
21
|
|
22
22
|
var colorArrayPaletteExtended = [// default row - first color is added programatically
|
23
23
|
// [N800, 'Squid ink'], // default dark gray
|
24
|
-
[_colors.B100, 'Blue'], // Arvo breeze
|
25
|
-
[_colors.T300, 'Teal'], // Tamarama
|
26
|
-
[_colors.G300, 'Green'], // Fine pine
|
27
|
-
[_colors.Y200, 'Yellow'], // Pub mix
|
28
|
-
[_colors.R300, 'Red'], // Poppy surprise
|
29
|
-
[_colors.P300, 'Purple'], // Da' juice
|
30
|
-
// row 2
|
31
|
-
[_colors.N80, 'Light gray'], // Spooky ghost
|
32
24
|
[_colors.B500, 'Dark blue'], // Chore coat
|
33
25
|
[_colors.T500, 'Dark teal'], // Shabby chic
|
34
26
|
[_colors.G500, 'Dark green'], // Keen green
|
35
27
|
[_colors.Y400, 'Orange'], // Cheezy blasters
|
36
28
|
[_colors.R500, 'Dark red'], // Dragon's blood
|
37
29
|
[_colors.P500, 'Dark purple'], // Prince
|
30
|
+
// row 2
|
31
|
+
[_colors.N80, 'Light gray'], // Spooky ghost
|
32
|
+
[_colors.B100, 'Blue'], // Arvo breeze
|
33
|
+
[_colors.T300, 'Teal'], // Tamarama
|
34
|
+
[_colors.G300, 'Green'], // Fine pine
|
35
|
+
[_colors.Y200, 'Yellow'], // Pub mix
|
36
|
+
[_colors.R300, 'Red'], // Poppy surprise
|
37
|
+
[_colors.P300, 'Purple'], // Da' juice
|
38
38
|
// row 3
|
39
39
|
[_colors.N0, 'White'], [_colors.B75, 'Light blue'], // Schwag
|
40
40
|
[_colors.T75, 'Light teal'], // Arctic chill
|
package/dist/cjs/utils/url.js
CHANGED
@@ -13,6 +13,9 @@ exports.normalizeUrl = normalizeUrl;
|
|
13
13
|
var _linkifyIt = _interopRequireDefault(require("linkify-it"));
|
14
14
|
|
15
15
|
var whitelistedURLPatterns = [/^https?:\/\//im, /^ftps?:\/\//im, /^\//im, /^mailto:/im, /^skype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^news:/im, /^nntp:/im, /^feed:/im, /^cvs:/im, /^svn:/im, /^mvn:/im, /^ssh:/im, /^scp:\/\//im, /^sftp:\/\//im, /^itms:/im, /^notes:/im, /^hipchat:\/\//im, /^sourcetree:/im, /^urn:/im, /^tel:/im, /^xmpp:/im, /^telnet:/im, /^vnc:/im, /^rdp:/im, /^whatsapp:/im, /^slack:/im, /^sips?:/im, /^magnet:/im, /^#/im];
|
16
|
+
/**
|
17
|
+
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
18
|
+
*/
|
16
19
|
|
17
20
|
var isSafeUrl = function isSafeUrl(url) {
|
18
21
|
var urlTrimmed = url.trim();
|
package/dist/cjs/version.json
CHANGED
@@ -6,20 +6,20 @@ const colorArrayPalette = [// default row
|
|
6
6
|
|
7
7
|
const colorArrayPaletteExtended = [// default row - first color is added programatically
|
8
8
|
// [N800, 'Squid ink'], // default dark gray
|
9
|
-
[B100, 'Blue'], // Arvo breeze
|
10
|
-
[T300, 'Teal'], // Tamarama
|
11
|
-
[G300, 'Green'], // Fine pine
|
12
|
-
[Y200, 'Yellow'], // Pub mix
|
13
|
-
[R300, 'Red'], // Poppy surprise
|
14
|
-
[P300, 'Purple'], // Da' juice
|
15
|
-
// row 2
|
16
|
-
[N80, 'Light gray'], // Spooky ghost
|
17
9
|
[B500, 'Dark blue'], // Chore coat
|
18
10
|
[T500, 'Dark teal'], // Shabby chic
|
19
11
|
[G500, 'Dark green'], // Keen green
|
20
12
|
[Y400, 'Orange'], // Cheezy blasters
|
21
13
|
[R500, 'Dark red'], // Dragon's blood
|
22
14
|
[P500, 'Dark purple'], // Prince
|
15
|
+
// row 2
|
16
|
+
[N80, 'Light gray'], // Spooky ghost
|
17
|
+
[B100, 'Blue'], // Arvo breeze
|
18
|
+
[T300, 'Teal'], // Tamarama
|
19
|
+
[G300, 'Green'], // Fine pine
|
20
|
+
[Y200, 'Yellow'], // Pub mix
|
21
|
+
[R300, 'Red'], // Poppy surprise
|
22
|
+
[P300, 'Purple'], // Da' juice
|
23
23
|
// row 3
|
24
24
|
[N0, 'White'], [B75, 'Light blue'], // Schwag
|
25
25
|
[T75, 'Light teal'], // Arctic chill
|
package/dist/es2019/utils/url.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
import LinkifyIt from 'linkify-it';
|
2
2
|
const whitelistedURLPatterns = [/^https?:\/\//im, /^ftps?:\/\//im, /^\//im, /^mailto:/im, /^skype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^news:/im, /^nntp:/im, /^feed:/im, /^cvs:/im, /^svn:/im, /^mvn:/im, /^ssh:/im, /^scp:\/\//im, /^sftp:\/\//im, /^itms:/im, /^notes:/im, /^hipchat:\/\//im, /^sourcetree:/im, /^urn:/im, /^tel:/im, /^xmpp:/im, /^telnet:/im, /^vnc:/im, /^rdp:/im, /^whatsapp:/im, /^slack:/im, /^sips?:/im, /^magnet:/im, /^#/im];
|
3
|
+
/**
|
4
|
+
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
5
|
+
*/
|
6
|
+
|
3
7
|
export const isSafeUrl = url => {
|
4
8
|
const urlTrimmed = url.trim();
|
5
9
|
|
package/dist/es2019/version.json
CHANGED
@@ -8,20 +8,20 @@ var colorArrayPalette = [// default row
|
|
8
8
|
|
9
9
|
var colorArrayPaletteExtended = [// default row - first color is added programatically
|
10
10
|
// [N800, 'Squid ink'], // default dark gray
|
11
|
-
[B100, 'Blue'], // Arvo breeze
|
12
|
-
[T300, 'Teal'], // Tamarama
|
13
|
-
[G300, 'Green'], // Fine pine
|
14
|
-
[Y200, 'Yellow'], // Pub mix
|
15
|
-
[R300, 'Red'], // Poppy surprise
|
16
|
-
[P300, 'Purple'], // Da' juice
|
17
|
-
// row 2
|
18
|
-
[N80, 'Light gray'], // Spooky ghost
|
19
11
|
[B500, 'Dark blue'], // Chore coat
|
20
12
|
[T500, 'Dark teal'], // Shabby chic
|
21
13
|
[G500, 'Dark green'], // Keen green
|
22
14
|
[Y400, 'Orange'], // Cheezy blasters
|
23
15
|
[R500, 'Dark red'], // Dragon's blood
|
24
16
|
[P500, 'Dark purple'], // Prince
|
17
|
+
// row 2
|
18
|
+
[N80, 'Light gray'], // Spooky ghost
|
19
|
+
[B100, 'Blue'], // Arvo breeze
|
20
|
+
[T300, 'Teal'], // Tamarama
|
21
|
+
[G300, 'Green'], // Fine pine
|
22
|
+
[Y200, 'Yellow'], // Pub mix
|
23
|
+
[R300, 'Red'], // Poppy surprise
|
24
|
+
[P300, 'Purple'], // Da' juice
|
25
25
|
// row 3
|
26
26
|
[N0, 'White'], [B75, 'Light blue'], // Schwag
|
27
27
|
[T75, 'Light teal'], // Arctic chill
|
package/dist/esm/utils/url.js
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
import LinkifyIt from 'linkify-it';
|
2
2
|
var whitelistedURLPatterns = [/^https?:\/\//im, /^ftps?:\/\//im, /^\//im, /^mailto:/im, /^skype:/im, /^callto:/im, /^facetime:/im, /^git:/im, /^irc6?:/im, /^news:/im, /^nntp:/im, /^feed:/im, /^cvs:/im, /^svn:/im, /^mvn:/im, /^ssh:/im, /^scp:\/\//im, /^sftp:\/\//im, /^itms:/im, /^notes:/im, /^hipchat:\/\//im, /^sourcetree:/im, /^urn:/im, /^tel:/im, /^xmpp:/im, /^telnet:/im, /^vnc:/im, /^rdp:/im, /^whatsapp:/im, /^slack:/im, /^sips?:/im, /^magnet:/im, /^#/im];
|
3
|
+
/**
|
4
|
+
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
5
|
+
*/
|
6
|
+
|
3
7
|
export var isSafeUrl = function isSafeUrl(url) {
|
4
8
|
var urlTrimmed = url.trim();
|
5
9
|
|
package/dist/esm/version.json
CHANGED
package/json-schema/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "23.
|
3
|
+
"version": "23.1.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/"
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"ak-postbuild": "yarn build:json-schema"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@atlaskit/codemod-utils": "^4.
|
41
|
+
"@atlaskit/codemod-utils": "^4.1.0",
|
42
42
|
"@atlaskit/editor-tables": "^2.1.0",
|
43
43
|
"@babel/runtime": "^7.0.0",
|
44
44
|
"@types/linkify-it": "^2.0.4",
|
@@ -51,11 +51,11 @@
|
|
51
51
|
"prosemirror-transform": "1.3.2"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
-
"@atlaskit/adf-utils": "^
|
54
|
+
"@atlaskit/adf-utils": "^17.0.0",
|
55
55
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
56
56
|
"@atlaskit/editor-test-helpers": "^17.0.0",
|
57
57
|
"@atlaskit/json-schema-generator": "^3.2.0",
|
58
|
-
"@atlassian/adf-sample": "^1.
|
58
|
+
"@atlassian/adf-sample": "^1.1.0",
|
59
59
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
60
60
|
"@types/prosemirror-history": "^1.0.1",
|
61
61
|
"ajv": "^6.12.6",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"json-schema-diff-validator": "^0.4.1",
|
64
64
|
"prosemirror-history": "^1.1.3",
|
65
65
|
"prosemirror-state": "1.3.4",
|
66
|
-
"typescript": "
|
66
|
+
"typescript": "4.2.4"
|
67
67
|
},
|
68
68
|
"techstack": {
|
69
69
|
"@atlassian/frontend": {
|
package/schema/package.json
CHANGED
package/schema-jira/package.json
CHANGED
package/steps/package.json
CHANGED