@atlaskit/editor-common 110.46.4 → 110.47.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,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fdda2eb1f24ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdda2eb1f24ec) -
8
+ Removes remaining part of platform_editor_multi_body_extension_extensibility fg for fg cleanup
9
+
10
+ ## 110.46.5
11
+
12
+ ### Patch Changes
13
+
14
+ - [`1efd039050d7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1efd039050d7b) -
15
+ [ux] [ENGHEALTH-47470] internationalise literal strings behind fg platform_editor_dec_a11y_fixes
16
+ - [`2b78b030e4e42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b78b030e4e42) -
17
+ EDITOR-3952 Update style for task in destination synced block
18
+ - [`073a50c69fb2e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/073a50c69fb2e) -
19
+ [ux] [ENGHEALTH-47470] internationalise literal strings behind fg platform_editor_dec_a11y_fixes
20
+ - Updated dependencies
21
+
3
22
  ## 110.46.4
4
23
 
5
24
  ### Patch Changes
@@ -101,6 +101,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
101
101
  defaultMessage: 'Clear link',
102
102
  description: 'Clears link in the link toolbar'
103
103
  },
104
+ hyperlinkAriaLabel: {
105
+ id: 'fabric.editor.hyperlink.ariaLabel',
106
+ defaultMessage: 'Hyperlink Edit',
107
+ description: 'Aria label for the Hyperlink Add Toolbar'
108
+ },
104
109
  searchLinkAriaDescription: {
105
110
  id: 'fabric.editor.hyperlink.searchLinkAriaDescription',
106
111
  defaultMessage: 'Suggestions will appear below as you type into the field',
@@ -881,8 +886,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
881
886
  var screenReaderText = browser.safari && this.getScreenReaderText();
882
887
  var containerWidth = (0, _platformFeatureFlags.fg)('platform_editor_link_picker_width_fix') ? _ToolbarComponents.narrowContainerWidth : !!activityProvider && _ToolbarComponents.containerWithProvider;
883
888
  return (0, _react2.jsx)("div", {
884
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
885
- "aria-label": "Hyperlink Edit"
889
+ "aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
886
890
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
887
891
  ,
888
892
  className: "recent-list",
@@ -43,7 +43,7 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
43
43
  },
44
44
  permissionDeniedHeading: {
45
45
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
46
- defaultMessage: "Request access to view synced block",
46
+ defaultMessage: 'Request access to view synced block',
47
47
  description: 'Heading for error state where the user does not have permission to view the synced block'
48
48
  },
49
49
  permissionDeniedDescription: {
@@ -86,6 +86,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
86
86
  defaultMessage: 'Synced from: {title}',
87
87
  description: 'Tooltip that shows the source page title of the synced block'
88
88
  },
89
+ taskInDestinationSyncedBlockTooltip: {
90
+ id: 'fabric.editor.taskInDestinationSyncedBlockTooltip',
91
+ defaultMessage: 'This content is synced. Edit it at the source.',
92
+ description: 'Tooltip that shows when you hover over a task in the destination synced block'
93
+ },
89
94
  deleteConfirmationModalTitle: {
90
95
  id: 'fabric.editor.deleteConfirmationModalTitle',
91
96
  defaultMessage: "You're about to delete synced content",
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "0.0.0-development";
22
+ var packageVersion = "110.46.5";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "0.0.0-development";
27
+ var packageVersion = "110.46.5";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -7,6 +7,7 @@ exports.default = exports.TABLE_SELECTOR_BUTTON_SIZE = exports.TABLE_SELECTOR_BU
7
7
  var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  var _reactIntlNext = require("react-intl-next");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
11
  var _compiled = require("@atlaskit/primitives/compiled");
11
12
  var _colors = require("@atlaskit/theme/colors");
12
13
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -21,6 +22,7 @@ var _uiReact = require("../../ui-react");
21
22
 
22
23
  var TABLE_SELECTOR_BUTTON_GAP = exports.TABLE_SELECTOR_BUTTON_GAP = 2;
23
24
  var TABLE_SELECTOR_BUTTON_SIZE = exports.TABLE_SELECTOR_BUTTON_SIZE = 17;
25
+ var MULTIPLICATION_SYMBOL = '×';
24
26
  var selectedButtonStyles = (0, _react2.css)({
25
27
  backgroundColor: "var(--ds-background-accent-blue-subtlest, #579DFF)",
26
28
  border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-background-accent-blue-subtle, #579DFF)")
@@ -154,7 +156,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
154
156
  isFocused: isCurrentFocused,
155
157
  handleInitialButtonFocus: handleInitialButtonFocus
156
158
  });
157
- })), (0, _react2.jsx)("span", {
159
+ })), (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? (0, _react2.jsx)("span", {
160
+ css: selectionSizeTextStyles,
161
+ "aria-hidden": true
162
+ }, "".concat(selectedCol, " ").concat(MULTIPLICATION_SYMBOL, " ").concat(selectedRow)) : (0, _react2.jsx)("span", {
158
163
  css: selectionSizeTextStyles,
159
164
  "aria-hidden": true
160
165
  }, "".concat(selectedCol, " x ").concat(selectedRow)));
@@ -86,6 +86,11 @@ export const messages = defineMessages({
86
86
  defaultMessage: 'Clear link',
87
87
  description: 'Clears link in the link toolbar'
88
88
  },
89
+ hyperlinkAriaLabel: {
90
+ id: 'fabric.editor.hyperlink.ariaLabel',
91
+ defaultMessage: 'Hyperlink Edit',
92
+ description: 'Aria label for the Hyperlink Add Toolbar'
93
+ },
89
94
  searchLinkAriaDescription: {
90
95
  id: 'fabric.editor.hyperlink.searchLinkAriaDescription',
91
96
  defaultMessage: 'Suggestions will appear below as you type into the field',
@@ -733,8 +738,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
733
738
  const screenReaderText = browser.safari && this.getScreenReaderText();
734
739
  const containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
735
740
  return jsx("div", {
736
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
737
- "aria-label": "Hyperlink Edit"
741
+ "aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
738
742
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
739
743
  ,
740
744
  className: "recent-list",
@@ -37,7 +37,7 @@ export const syncBlockMessages = defineMessages({
37
37
  },
38
38
  permissionDeniedHeading: {
39
39
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
40
- defaultMessage: "Request access to view synced block",
40
+ defaultMessage: 'Request access to view synced block',
41
41
  description: 'Heading for error state where the user does not have permission to view the synced block'
42
42
  },
43
43
  permissionDeniedDescription: {
@@ -80,6 +80,11 @@ export const syncBlockMessages = defineMessages({
80
80
  defaultMessage: 'Synced from: {title}',
81
81
  description: 'Tooltip that shows the source page title of the synced block'
82
82
  },
83
+ taskInDestinationSyncedBlockTooltip: {
84
+ id: 'fabric.editor.taskInDestinationSyncedBlockTooltip',
85
+ defaultMessage: 'This content is synced. Edit it at the source.',
86
+ description: 'Tooltip that shows when you hover over a task in the destination synced block'
87
+ },
83
88
  deleteConfirmationModalTitle: {
84
89
  id: 'fabric.editor.deleteConfirmationModalTitle',
85
90
  defaultMessage: "You're about to delete synced content",
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "0.0.0-development";
7
+ const packageVersion = "110.46.5";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "0.0.0-development";
17
+ const packageVersion = "110.46.5";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -6,6 +6,7 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { injectIntl } from 'react-intl-next';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Stack } from '@atlaskit/primitives/compiled';
10
11
  import { B100 } from '@atlaskit/theme/colors';
11
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -13,6 +14,7 @@ import { toolbarInsertBlockMessages as messages } from '../../messages';
13
14
  import { OutsideClickTargetRefContext } from '../../ui-react';
14
15
  export const TABLE_SELECTOR_BUTTON_GAP = 2;
15
16
  export const TABLE_SELECTOR_BUTTON_SIZE = 17;
17
+ const MULTIPLICATION_SYMBOL = '×';
16
18
  const selectedButtonStyles = css({
17
19
  backgroundColor: "var(--ds-background-accent-blue-subtlest, #579DFF)",
18
20
  border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-background-accent-blue-subtle, #579DFF)"}`
@@ -146,7 +148,10 @@ const TableSelectorPopup = ({
146
148
  isFocused: isCurrentFocused,
147
149
  handleInitialButtonFocus: handleInitialButtonFocus
148
150
  });
149
- })), jsx("span", {
151
+ })), fg('platform_editor_dec_a11y_fixes') ? jsx("span", {
152
+ css: selectionSizeTextStyles,
153
+ "aria-hidden": true
154
+ }, `${selectedCol} ${MULTIPLICATION_SYMBOL} ${selectedRow}`) : jsx("span", {
150
155
  css: selectionSizeTextStyles,
151
156
  "aria-hidden": true
152
157
  }, `${selectedCol} x ${selectedRow}`));
@@ -97,6 +97,11 @@ export var messages = defineMessages({
97
97
  defaultMessage: 'Clear link',
98
98
  description: 'Clears link in the link toolbar'
99
99
  },
100
+ hyperlinkAriaLabel: {
101
+ id: 'fabric.editor.hyperlink.ariaLabel',
102
+ defaultMessage: 'Hyperlink Edit',
103
+ description: 'Aria label for the Hyperlink Add Toolbar'
104
+ },
100
105
  searchLinkAriaDescription: {
101
106
  id: 'fabric.editor.hyperlink.searchLinkAriaDescription',
102
107
  defaultMessage: 'Suggestions will appear below as you type into the field',
@@ -877,8 +882,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
877
882
  var screenReaderText = browser.safari && this.getScreenReaderText();
878
883
  var containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
879
884
  return jsx("div", {
880
- // eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
881
- "aria-label": "Hyperlink Edit"
885
+ "aria-label": fg('platform_editor_dec_a11y_fixes') ? formatMessage(messages.hyperlinkAriaLabel) : 'Hyperlink Edit'
882
886
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
883
887
  ,
884
888
  className: "recent-list",
@@ -37,7 +37,7 @@ export var syncBlockMessages = defineMessages({
37
37
  },
38
38
  permissionDeniedHeading: {
39
39
  id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
40
- defaultMessage: "Request access to view synced block",
40
+ defaultMessage: 'Request access to view synced block',
41
41
  description: 'Heading for error state where the user does not have permission to view the synced block'
42
42
  },
43
43
  permissionDeniedDescription: {
@@ -80,6 +80,11 @@ export var syncBlockMessages = defineMessages({
80
80
  defaultMessage: 'Synced from: {title}',
81
81
  description: 'Tooltip that shows the source page title of the synced block'
82
82
  },
83
+ taskInDestinationSyncedBlockTooltip: {
84
+ id: 'fabric.editor.taskInDestinationSyncedBlockTooltip',
85
+ defaultMessage: 'This content is synced. Edit it at the source.',
86
+ description: 'Tooltip that shows when you hover over a task in the destination synced block'
87
+ },
83
88
  deleteConfirmationModalTitle: {
84
89
  id: 'fabric.editor.deleteConfirmationModalTitle',
85
90
  defaultMessage: "You're about to delete synced content",
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "0.0.0-development";
13
+ var packageVersion = "110.46.5";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "0.0.0-development";
24
+ var packageVersion = "110.46.5";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -6,6 +6,7 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { injectIntl } from 'react-intl-next';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Stack } from '@atlaskit/primitives/compiled';
10
11
  import { B100 } from '@atlaskit/theme/colors';
11
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -13,6 +14,7 @@ import { toolbarInsertBlockMessages as messages } from '../../messages';
13
14
  import { OutsideClickTargetRefContext } from '../../ui-react';
14
15
  export var TABLE_SELECTOR_BUTTON_GAP = 2;
15
16
  export var TABLE_SELECTOR_BUTTON_SIZE = 17;
17
+ var MULTIPLICATION_SYMBOL = '×';
16
18
  var selectedButtonStyles = css({
17
19
  backgroundColor: "var(--ds-background-accent-blue-subtlest, #579DFF)",
18
20
  border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-background-accent-blue-subtle, #579DFF)")
@@ -146,7 +148,10 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
146
148
  isFocused: isCurrentFocused,
147
149
  handleInitialButtonFocus: handleInitialButtonFocus
148
150
  });
149
- })), jsx("span", {
151
+ })), fg('platform_editor_dec_a11y_fixes') ? jsx("span", {
152
+ css: selectionSizeTextStyles,
153
+ "aria-hidden": true
154
+ }, "".concat(selectedCol, " ").concat(MULTIPLICATION_SYMBOL, " ").concat(selectedRow)) : jsx("span", {
150
155
  css: selectionSizeTextStyles,
151
156
  "aria-hidden": true
152
157
  }, "".concat(selectedCol, " x ").concat(selectedRow)));
@@ -29,6 +29,11 @@ export declare const messages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ hyperlinkAriaLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  searchLinkAriaDescription: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -79,6 +79,11 @@ export declare const syncBlockMessages: {
79
79
  defaultMessage: string;
80
80
  description: string;
81
81
  };
82
+ taskInDestinationSyncedBlockTooltip: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
82
87
  deleteConfirmationModalTitle: {
83
88
  id: string;
84
89
  defaultMessage: string;
@@ -29,6 +29,11 @@ export declare const messages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ hyperlinkAriaLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  searchLinkAriaDescription: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -79,6 +79,11 @@ export declare const syncBlockMessages: {
79
79
  defaultMessage: string;
80
80
  description: string;
81
81
  };
82
+ taskInDestinationSyncedBlockTooltip: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
82
87
  deleteConfirmationModalTitle: {
83
88
  id: string;
84
89
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.46.4",
3
+ "version": "110.47.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/"
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
71
71
  "@atlaskit/popper": "^7.1.0",
72
72
  "@atlaskit/primitives": "^17.0.0",
73
- "@atlaskit/profilecard": "^24.26.0",
73
+ "@atlaskit/profilecard": "^24.27.0",
74
74
  "@atlaskit/prosemirror-history": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^4.16.0",
76
76
  "@atlaskit/section-message": "^8.11.0",
@@ -180,9 +180,6 @@
180
180
  "platform-visual-refresh-icons": {
181
181
  "type": "boolean"
182
182
  },
183
- "platform_editor_multi_body_extension_extensibility": {
184
- "type": "boolean"
185
- },
186
183
  "media-perf-uplift-mutation-fix": {
187
184
  "type": "boolean"
188
185
  },