@atlaskit/adf-schema 51.5.11 → 51.5.13
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
|
+
## 51.5.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 51.5.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`47dce55fed533`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/47dce55fed533) -
|
|
14
|
+
Add option to filter out marks if they don't have all required attrs and therefore are invalid
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 51.5.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/utils/url.js
CHANGED
|
@@ -28,7 +28,7 @@ var whitelistedURLPatterns = [/^http[s\u017F]?:\/\//im, /^ftp[s\u017F]?:\/\//im,
|
|
|
28
28
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
|
29
29
|
*/
|
|
30
30
|
var isSafeUrl = exports.isSafeUrl = function isSafeUrl(url) {
|
|
31
|
-
var urlTrimmed = url.trim();
|
|
31
|
+
var urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
|
|
32
32
|
if (urlTrimmed.length === 0) {
|
|
33
33
|
return true;
|
|
34
34
|
}
|
package/dist/es2019/utils/url.js
CHANGED
|
@@ -16,7 +16,7 @@ const whitelistedURLPatterns = [/^https?:\/\//imu, /^ftps?:\/\//imu, /^gopher:\/
|
|
|
16
16
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
|
17
17
|
*/
|
|
18
18
|
export const isSafeUrl = url => {
|
|
19
|
-
const urlTrimmed = url.trim();
|
|
19
|
+
const urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
|
|
20
20
|
if (urlTrimmed.length === 0) {
|
|
21
21
|
return true;
|
|
22
22
|
}
|
package/dist/esm/utils/url.js
CHANGED
|
@@ -16,7 +16,7 @@ var whitelistedURLPatterns = [/^http[s\u017F]?:\/\//im, /^ftp[s\u017F]?:\/\//im,
|
|
|
16
16
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
|
17
17
|
*/
|
|
18
18
|
export var isSafeUrl = function isSafeUrl(url) {
|
|
19
|
-
var urlTrimmed = url.trim();
|
|
19
|
+
var urlTrimmed = url === null || url === void 0 ? void 0 : url.trim();
|
|
20
20
|
if (urlTrimmed.length === 0) {
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
@@ -8,7 +8,7 @@ import LinkifyIt from 'linkify-it';
|
|
|
8
8
|
/**
|
|
9
9
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
|
10
10
|
*/
|
|
11
|
-
export declare const isSafeUrl: (url: string) => boolean;
|
|
11
|
+
export declare const isSafeUrl: (url: string | undefined) => boolean;
|
|
12
12
|
export interface Match {
|
|
13
13
|
index: number;
|
|
14
14
|
input?: string;
|
|
@@ -8,7 +8,7 @@ import LinkifyIt from 'linkify-it';
|
|
|
8
8
|
/**
|
|
9
9
|
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
|
10
10
|
*/
|
|
11
|
-
export declare const isSafeUrl: (url: string) => boolean;
|
|
11
|
+
export declare const isSafeUrl: (url: string | undefined) => boolean;
|
|
12
12
|
export interface Match {
|
|
13
13
|
index: number;
|
|
14
14
|
input?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "51.5.
|
|
3
|
+
"version": "51.5.13",
|
|
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": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^22.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"css-color-names": "0.0.4",
|
|
48
48
|
"linkify-it": "^3.0.3",
|