@atlaskit/editor-common 103.13.0 → 103.14.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 +15 -0
- package/dist/cjs/media/messages/imageBorder.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/link.js +23 -8
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/media/messages/imageBorder.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/link.js +22 -7
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/media/messages/imageBorder.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/link.js +22 -7
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/media/messages/imageBorder.d.ts +10 -0
- package/dist/types/styles/shared/link.d.ts +1 -2
- package/dist/types-ts4.5/media/messages/imageBorder.d.ts +10 -0
- package/dist/types-ts4.5/styles/shared/link.d.ts +1 -2
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#144699](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144699)
|
|
8
|
+
[`5fdd28b98ea91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5fdd28b98ea91) -
|
|
9
|
+
[ux] ED-25977 add underline to links in edit mode to fix a11y violation
|
|
10
|
+
- [#144182](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/144182)
|
|
11
|
+
[`7da4b8d7e7d1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7da4b8d7e7d1b) -
|
|
12
|
+
A11Y-9934: Add aria labels to i18n messages for media dropdowns in the floating toolbar.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 103.13.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -11,11 +11,21 @@ var imageBorderMessages = exports.imageBorderMessages = (0, _reactIntlNext.defin
|
|
|
11
11
|
defaultMessage: 'Color',
|
|
12
12
|
description: 'Change the border color of an image.'
|
|
13
13
|
},
|
|
14
|
+
borderColorDropdownAriaLabel: {
|
|
15
|
+
id: 'fabric.editor.imageBorderColor.dropdownAriaLabel',
|
|
16
|
+
defaultMessage: 'Image border options Color dropdown',
|
|
17
|
+
description: 'ARIA label for the dropdown to change the border color of an image.'
|
|
18
|
+
},
|
|
14
19
|
borderSize: {
|
|
15
20
|
id: 'fabric.editor.imageBorderSize',
|
|
16
21
|
defaultMessage: 'Size',
|
|
17
22
|
description: 'Change the border size of an image.'
|
|
18
23
|
},
|
|
24
|
+
borderSizeDropdownAriaLabel: {
|
|
25
|
+
id: 'fabric.editor.imageBorderSize.dropdownAriaLabel',
|
|
26
|
+
defaultMessage: 'Image border options Size dropdown',
|
|
27
|
+
description: 'ARIA label for the dropdown to change the border size of an image.'
|
|
28
|
+
},
|
|
19
29
|
addBorder: {
|
|
20
30
|
id: 'fabric.editor.addImageBorder',
|
|
21
31
|
defaultMessage: 'Add border',
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "103.
|
|
20
|
+
var packageVersion = "103.14.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -5,13 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.linkSharedStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
+
var linkSharedStyle = exports.linkSharedStyle = function linkSharedStyle() {
|
|
13
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') ? (0, _react.css)({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
|
+
'a.blockLink': {
|
|
16
|
+
display: 'block'
|
|
17
|
+
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
|
+
'a[data-prosemirror-mark-name="link"]': {
|
|
20
|
+
textDecoration: 'underline'
|
|
21
|
+
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
|
+
'a[data-prosemirror-mark-name="link"]:hover': {
|
|
24
|
+
textDecoration: 'none'
|
|
25
|
+
}
|
|
26
|
+
}) : (0, _react.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
|
+
'a.blockLink': {
|
|
29
|
+
display: 'block'
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
};
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "103.
|
|
26
|
+
var packageVersion = "103.14.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -5,11 +5,21 @@ export const imageBorderMessages = defineMessages({
|
|
|
5
5
|
defaultMessage: 'Color',
|
|
6
6
|
description: 'Change the border color of an image.'
|
|
7
7
|
},
|
|
8
|
+
borderColorDropdownAriaLabel: {
|
|
9
|
+
id: 'fabric.editor.imageBorderColor.dropdownAriaLabel',
|
|
10
|
+
defaultMessage: 'Image border options Color dropdown',
|
|
11
|
+
description: 'ARIA label for the dropdown to change the border color of an image.'
|
|
12
|
+
},
|
|
8
13
|
borderSize: {
|
|
9
14
|
id: 'fabric.editor.imageBorderSize',
|
|
10
15
|
defaultMessage: 'Size',
|
|
11
16
|
description: 'Change the border size of an image.'
|
|
12
17
|
},
|
|
18
|
+
borderSizeDropdownAriaLabel: {
|
|
19
|
+
id: 'fabric.editor.imageBorderSize.dropdownAriaLabel',
|
|
20
|
+
defaultMessage: 'Image border options Size dropdown',
|
|
21
|
+
description: 'ARIA label for the dropdown to change the border size of an image.'
|
|
22
|
+
},
|
|
13
23
|
addBorder: {
|
|
14
24
|
id: 'fabric.editor.addImageBorder',
|
|
15
25
|
defaultMessage: 'Add border',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "103.
|
|
4
|
+
const packageVersion = "103.14.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
5
|
-
'a.blockLink': {
|
|
6
|
-
display: 'block'
|
|
7
|
-
}
|
|
8
|
-
});
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
4
|
|
|
10
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
export
|
|
6
|
+
export const linkSharedStyle = () => {
|
|
7
|
+
return fg('platform_editor_hyperlink_underline') ? css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
|
+
'a.blockLink': {
|
|
10
|
+
display: 'block'
|
|
11
|
+
},
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
|
+
'a[data-prosemirror-mark-name="link"]': {
|
|
14
|
+
textDecoration: 'underline'
|
|
15
|
+
},
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
|
+
'a[data-prosemirror-mark-name="link"]:hover': {
|
|
18
|
+
textDecoration: 'none'
|
|
19
|
+
}
|
|
20
|
+
}) : css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
'a.blockLink': {
|
|
23
|
+
display: 'block'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "103.
|
|
16
|
+
const packageVersion = "103.14.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -5,11 +5,21 @@ export var imageBorderMessages = defineMessages({
|
|
|
5
5
|
defaultMessage: 'Color',
|
|
6
6
|
description: 'Change the border color of an image.'
|
|
7
7
|
},
|
|
8
|
+
borderColorDropdownAriaLabel: {
|
|
9
|
+
id: 'fabric.editor.imageBorderColor.dropdownAriaLabel',
|
|
10
|
+
defaultMessage: 'Image border options Color dropdown',
|
|
11
|
+
description: 'ARIA label for the dropdown to change the border color of an image.'
|
|
12
|
+
},
|
|
8
13
|
borderSize: {
|
|
9
14
|
id: 'fabric.editor.imageBorderSize',
|
|
10
15
|
defaultMessage: 'Size',
|
|
11
16
|
description: 'Change the border size of an image.'
|
|
12
17
|
},
|
|
18
|
+
borderSizeDropdownAriaLabel: {
|
|
19
|
+
id: 'fabric.editor.imageBorderSize.dropdownAriaLabel',
|
|
20
|
+
defaultMessage: 'Image border options Size dropdown',
|
|
21
|
+
description: 'ARIA label for the dropdown to change the border size of an image.'
|
|
22
|
+
},
|
|
13
23
|
addBorder: {
|
|
14
24
|
id: 'fabric.editor.addImageBorder',
|
|
15
25
|
defaultMessage: 'Add border',
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "103.
|
|
10
|
+
var packageVersion = "103.14.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
5
|
-
'a.blockLink': {
|
|
6
|
-
display: 'block'
|
|
7
|
-
}
|
|
8
|
-
});
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
4
|
|
|
10
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
-
export
|
|
6
|
+
export var linkSharedStyle = function linkSharedStyle() {
|
|
7
|
+
return fg('platform_editor_hyperlink_underline') ? css({
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
|
+
'a.blockLink': {
|
|
10
|
+
display: 'block'
|
|
11
|
+
},
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
|
+
'a[data-prosemirror-mark-name="link"]': {
|
|
14
|
+
textDecoration: 'underline'
|
|
15
|
+
},
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
|
+
'a[data-prosemirror-mark-name="link"]:hover': {
|
|
18
|
+
textDecoration: 'none'
|
|
19
|
+
}
|
|
20
|
+
}) : css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
'a.blockLink': {
|
|
23
|
+
display: 'block'
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "103.
|
|
23
|
+
var packageVersion = "103.14.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -4,11 +4,21 @@ export declare const imageBorderMessages: {
|
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
+
borderColorDropdownAriaLabel: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
7
12
|
borderSize: {
|
|
8
13
|
id: string;
|
|
9
14
|
defaultMessage: string;
|
|
10
15
|
description: string;
|
|
11
16
|
};
|
|
17
|
+
borderSizeDropdownAriaLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
addBorder: {
|
|
13
23
|
id: string;
|
|
14
24
|
defaultMessage: string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const linkSharedStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export { linkSharedStyle };
|
|
1
|
+
export declare const linkSharedStyle: () => import("@emotion/react").SerializedStyles;
|
|
@@ -4,11 +4,21 @@ export declare const imageBorderMessages: {
|
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
+
borderColorDropdownAriaLabel: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
7
12
|
borderSize: {
|
|
8
13
|
id: string;
|
|
9
14
|
defaultMessage: string;
|
|
10
15
|
description: string;
|
|
11
16
|
};
|
|
17
|
+
borderSizeDropdownAriaLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
12
22
|
addBorder: {
|
|
13
23
|
id: string;
|
|
14
24
|
defaultMessage: string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const linkSharedStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export { linkSharedStyle };
|
|
1
|
+
export declare const linkSharedStyle: () => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.14.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
137
137
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
138
138
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
139
|
-
"@atlaskit/emoji": "^69.
|
|
139
|
+
"@atlaskit/emoji": "^69.1.0",
|
|
140
140
|
"@atlaskit/icon": "^25.6.0",
|
|
141
141
|
"@atlaskit/icon-object": "^7.1.0",
|
|
142
142
|
"@atlaskit/link-datasource": "^4.5.0",
|
|
@@ -345,6 +345,9 @@
|
|
|
345
345
|
},
|
|
346
346
|
"platform_editor_controls_table_picker": {
|
|
347
347
|
"type": "boolean"
|
|
348
|
+
},
|
|
349
|
+
"platform_editor_hyperlink_underline": {
|
|
350
|
+
"type": "boolean"
|
|
348
351
|
}
|
|
349
352
|
}
|
|
350
353
|
}
|