@atlaskit/editor-common 110.20.1 → 110.21.1

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/analytics/types/enums.js +2 -0
  3. package/dist/cjs/analytics/types/floating-toolbar-events.js +5 -0
  4. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
  5. package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +43 -46
  6. package/dist/cjs/messages/syncBlock.js +30 -0
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/cjs/ui/HoverLinkOverlay/index.js +41 -44
  10. package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -3
  11. package/dist/es2019/analytics/types/enums.js +2 -0
  12. package/dist/es2019/analytics/types/floating-toolbar-events.js +1 -0
  13. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
  14. package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +35 -38
  15. package/dist/es2019/messages/syncBlock.js +30 -0
  16. package/dist/es2019/monitoring/error.js +1 -1
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/es2019/ui/HoverLinkOverlay/index.js +37 -40
  19. package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -3
  20. package/dist/esm/analytics/types/enums.js +2 -0
  21. package/dist/esm/analytics/types/floating-toolbar-events.js +1 -0
  22. package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
  23. package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +43 -46
  24. package/dist/esm/messages/syncBlock.js +30 -0
  25. package/dist/esm/monitoring/error.js +1 -1
  26. package/dist/esm/ui/DropList/index.js +1 -1
  27. package/dist/esm/ui/HoverLinkOverlay/index.js +41 -44
  28. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -3
  29. package/dist/types/analytics/types/enums.d.ts +3 -1
  30. package/dist/types/analytics/types/events.d.ts +2 -1
  31. package/dist/types/analytics/types/floating-toolbar-events.d.ts +4 -0
  32. package/dist/types/messages/syncBlock.d.ts +30 -0
  33. package/dist/types-ts4.5/analytics/types/enums.d.ts +3 -1
  34. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  35. package/dist/types-ts4.5/analytics/types/floating-toolbar-events.d.ts +4 -0
  36. package/dist/types-ts4.5/messages/syncBlock.d.ts +30 -0
  37. package/package.json +5 -5
  38. package/afm-post-office/tsconfig.json +0 -195
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ff3e1422d5b70`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3e1422d5b70) -
8
+ [ux] EDITOR-2437 implement request access to sync block component
9
+
10
+ ## 110.21.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`29d0693bd5373`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29d0693bd5373) -
15
+ EDITOR-2581 Fire event for suppressAllToolbars api being used
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 110.20.1
4
22
 
5
23
  ### Patch Changes
@@ -200,6 +200,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
200
200
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
201
201
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
202
202
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
203
+ ACTION["SUPPRESSED"] = "suppressed";
203
204
  return ACTION;
204
205
  }({});
205
206
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -407,6 +408,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
407
408
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
408
409
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
409
410
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
411
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
410
412
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
411
413
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
412
414
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -254,7 +254,7 @@ function StatelessElementBrowser(props) {
254
254
  var handleClick = function handleClick() {
255
255
  setCanFocusSearch(true);
256
256
  };
257
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
257
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
258
258
  (0, _react2.jsx)("div", {
259
259
  css: wrapper,
260
260
  "data-testid": "element-browser",
@@ -93,50 +93,47 @@ var EditToggle = exports.EditToggle = function EditToggle(_ref) {
93
93
  handleClick();
94
94
  }
95
95
  }, [handleClick]);
96
- return (
97
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
98
- (0, _react2.jsx)("div", {
99
- "data-testid": "extension-edit-toggle-container"
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
101
- ,
102
- css: [buttonContainerStyles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
104
- ,
105
- style: customContainerStyles
106
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
107
- ,
108
- className: "extension-edit-toggle-container"
109
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
110
- ,
111
- onMouseOver: function onMouseOver() {
112
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
113
- }
114
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
115
- ,
116
- onMouseLeave: function onMouseLeave() {
117
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
118
- },
119
- tabIndex: -1
120
- }, (0, _react2.jsx)("button", {
121
- type: "button",
122
- "data-testid": "edit-toggle"
123
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
124
- ,
125
- css: buttonStyles
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
127
- ,
128
- className: "extension-edit-toggle",
129
- onClick: handleClick,
130
- onKeyDown: handleKeyDown,
131
- onFocus: function onFocus() {
132
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
133
- },
134
- onBlur: function onBlur() {
135
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
136
- }
137
- }, (0, _react2.jsx)(_primitives.Flex, {
138
- as: "span",
139
- xcss: iconStyles
140
- }, icon), text))
141
- );
96
+ return (0, _react2.jsx)("div", {
97
+ "data-testid": "extension-edit-toggle-container"
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
99
+ ,
100
+ css: [buttonContainerStyles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
102
+ ,
103
+ style: customContainerStyles
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
105
+ ,
106
+ className: "extension-edit-toggle-container"
107
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
108
+ ,
109
+ onMouseOver: function onMouseOver() {
110
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
111
+ }
112
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
113
+ ,
114
+ onMouseLeave: function onMouseLeave() {
115
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
116
+ },
117
+ tabIndex: -1
118
+ }, (0, _react2.jsx)("button", {
119
+ type: "button",
120
+ "data-testid": "edit-toggle"
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
122
+ ,
123
+ css: buttonStyles
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
125
+ ,
126
+ className: "extension-edit-toggle",
127
+ onClick: handleClick,
128
+ onKeyDown: handleKeyDown,
129
+ onFocus: function onFocus() {
130
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
131
+ },
132
+ onBlur: function onBlur() {
133
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
134
+ }
135
+ }, (0, _react2.jsx)(_primitives.Flex, {
136
+ as: "span",
137
+ xcss: iconStyles
138
+ }, icon), text));
142
139
  };
@@ -40,5 +40,35 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
40
40
  id: 'fabric.editor.syncedBlock',
41
41
  defaultMessage: 'Synced block',
42
42
  description: 'Label which appears above the synced block when it is selected'
43
+ },
44
+ permissionDeniedHeading: {
45
+ id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
46
+ defaultMessage: "You don't have permission to view this synced block",
47
+ description: 'Heading for error state where the user does not have permission to view the synced block'
48
+ },
49
+ permissionDeniedDescription: {
50
+ id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
51
+ defaultMessage: "The source of this synced block is a content item you don't have access to.",
52
+ description: 'Description for error state where the user does not have permission to view the synced block'
53
+ },
54
+ permissionDeniedAltText: {
55
+ id: 'fabric.editor.syncedBlockPermissionDeniedIconAltText',
56
+ defaultMessage: 'Permission denied.',
57
+ description: 'Alt text for icon on error state where the user does not have permission to view the synced block'
58
+ },
59
+ requestAccessButton: {
60
+ id: 'fabric.editor.requestAccessToSyncedBlock',
61
+ defaultMessage: 'Request access',
62
+ description: 'Label for button which requests access to view the source page of the sync block'
63
+ },
64
+ accessRequested: {
65
+ id: 'fabric.editor.accessToSyncedBlockRequested',
66
+ defaultMessage: 'Access requested',
67
+ description: 'Text which displays after the request to view the source page of the sync block has been sent and is still pending'
68
+ },
69
+ requestAccessError: {
70
+ id: 'fabric.editor.requestAccessToSyncedBlockError',
71
+ defaultMessage: 'Something went wrong. Click to try again',
72
+ description: 'Text which displays next to the request access button after something went wrong after clicking the button.'
43
73
  }
44
74
  });
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.20.0";
19
+ var packageVersion = "110.21.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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 = "110.20.0";
27
+ var packageVersion = "110.21.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -225,50 +225,47 @@ var HoverLinkOverlayOriginal = function HoverLinkOverlayOriginal(_ref) {
225
225
  label: ""
226
226
  });
227
227
  }
228
- return (
229
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
230
- (0, _react2.jsx)("span", {
231
- ref: containerRef,
232
- css: containerStylesOld,
233
- onDoubleClick: handleDoubleClick
234
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
235
- ,
236
- onMouseEnter: function onMouseEnter() {
237
- return handleOverlayChange(true);
238
- }
239
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
240
- ,
241
- onMouseLeave: function onMouseLeave() {
242
- return handleOverlayChange(false);
243
- }
244
- }, children, (0, _react2.jsx)("span", {
245
- css: hiddenTextStyle,
246
- "aria-hidden": "true"
247
- }, (0, _react2.jsx)(_primitives.Text, {
248
- ref: hiddenTextRef,
249
- size: "small",
250
- maxLines: 1
251
- }, label)), isHovered && (0, _react2.jsx)(_primitives.Anchor, {
252
- ref: hoverLinkButtonRef,
253
- xcss: [linkStylesCommon, (0, _expValEquals.expValEquals)('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
254
- href: url,
255
- target: "_blank",
256
- style: {
257
- paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
258
- },
259
- onClick: handleClick,
260
- testId: "inline-card-hoverlink-overlay"
261
- }, (0, _react2.jsx)(_primitives.Box, {
262
- xcss: iconWrapperStylesOld,
263
- "data-inlinecard-button-overlay": "icon-wrapper-line-height",
264
- testId: "inline-card-hoverlink-overlay-icon"
265
- }, icon), showLabel && (0, _react2.jsx)(_primitives.Text, {
266
- size: "small",
267
- color: "color.text.subtle",
268
- maxLines: 1,
269
- testId: "inline-card-hoverlink-overlay-label"
270
- }, label)))
271
- );
228
+ return (0, _react2.jsx)("span", {
229
+ ref: containerRef,
230
+ css: containerStylesOld,
231
+ onDoubleClick: handleDoubleClick
232
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
233
+ ,
234
+ onMouseEnter: function onMouseEnter() {
235
+ return handleOverlayChange(true);
236
+ }
237
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
238
+ ,
239
+ onMouseLeave: function onMouseLeave() {
240
+ return handleOverlayChange(false);
241
+ }
242
+ }, children, (0, _react2.jsx)("span", {
243
+ css: hiddenTextStyle,
244
+ "aria-hidden": "true"
245
+ }, (0, _react2.jsx)(_primitives.Text, {
246
+ ref: hiddenTextRef,
247
+ size: "small",
248
+ maxLines: 1
249
+ }, label)), isHovered && (0, _react2.jsx)(_primitives.Anchor, {
250
+ ref: hoverLinkButtonRef,
251
+ xcss: [linkStylesCommon, (0, _expValEquals.expValEquals)('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
252
+ href: url,
253
+ target: "_blank",
254
+ style: {
255
+ paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
256
+ },
257
+ onClick: handleClick,
258
+ testId: "inline-card-hoverlink-overlay"
259
+ }, (0, _react2.jsx)(_primitives.Box, {
260
+ xcss: iconWrapperStylesOld,
261
+ "data-inlinecard-button-overlay": "icon-wrapper-line-height",
262
+ testId: "inline-card-hoverlink-overlay-icon"
263
+ }, icon), showLabel && (0, _react2.jsx)(_primitives.Text, {
264
+ size: "small",
265
+ color: "color.text.subtle",
266
+ maxLines: 1,
267
+ testId: "inline-card-hoverlink-overlay-label"
268
+ }, label)));
272
269
  };
273
270
  var HoverLinkOverlayNew = function HoverLinkOverlayNew(_ref2) {
274
271
  var children = _ref2.children,
@@ -322,9 +322,7 @@ function DropdownMenuItem(_ref) {
322
322
  // From time to time we don't want to have any tabIndex on item wrapper
323
323
  // especially when we pass any interactive element as a item.content
324
324
  var tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
325
- var dropListItem =
326
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
327
- (0, _react2.jsx)("div", {
325
+ var dropListItem = (0, _react2.jsx)("div", {
328
326
  css: function css() {
329
327
  return buttonStyles(item.isActive, submenuActive);
330
328
  },
@@ -194,6 +194,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
194
194
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
195
195
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
196
196
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
197
+ ACTION["SUPPRESSED"] = "suppressed";
197
198
  return ACTION;
198
199
  }({});
199
200
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -401,6 +402,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
401
402
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
402
403
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
403
404
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
405
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
404
406
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
405
407
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
406
408
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -240,7 +240,7 @@ function StatelessElementBrowser(props) {
240
240
  const handleClick = () => {
241
241
  setCanFocusSearch(true);
242
242
  };
243
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
243
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
244
244
  jsx("div", {
245
245
  css: wrapper,
246
246
  "data-testid": "element-browser",
@@ -86,42 +86,39 @@ export const EditToggle = ({
86
86
  handleClick();
87
87
  }
88
88
  }, [handleClick]);
89
- return (
90
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
91
- jsx("div", {
92
- "data-testid": "extension-edit-toggle-container"
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
94
- ,
95
- css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
- ,
98
- style: customContainerStyles
99
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
100
- ,
101
- className: "extension-edit-toggle-container"
102
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
103
- ,
104
- onMouseOver: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true)
105
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
106
- ,
107
- onMouseLeave: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false),
108
- tabIndex: -1
109
- }, jsx("button", {
110
- type: "button",
111
- "data-testid": "edit-toggle"
112
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
113
- ,
114
- css: buttonStyles
115
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
- ,
117
- className: "extension-edit-toggle",
118
- onClick: handleClick,
119
- onKeyDown: handleKeyDown,
120
- onFocus: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true),
121
- onBlur: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false)
122
- }, jsx(Flex, {
123
- as: "span",
124
- xcss: iconStyles
125
- }, icon), text))
126
- );
89
+ return jsx("div", {
90
+ "data-testid": "extension-edit-toggle-container"
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
92
+ ,
93
+ css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
95
+ ,
96
+ style: customContainerStyles
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
98
+ ,
99
+ className: "extension-edit-toggle-container"
100
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
101
+ ,
102
+ onMouseOver: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true)
103
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
104
+ ,
105
+ onMouseLeave: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false),
106
+ tabIndex: -1
107
+ }, jsx("button", {
108
+ type: "button",
109
+ "data-testid": "edit-toggle"
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
111
+ ,
112
+ css: buttonStyles
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
114
+ ,
115
+ className: "extension-edit-toggle",
116
+ onClick: handleClick,
117
+ onKeyDown: handleKeyDown,
118
+ onFocus: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true),
119
+ onBlur: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false)
120
+ }, jsx(Flex, {
121
+ as: "span",
122
+ xcss: iconStyles
123
+ }, icon), text));
127
124
  };
@@ -34,5 +34,35 @@ export const syncBlockMessages = defineMessages({
34
34
  id: 'fabric.editor.syncedBlock',
35
35
  defaultMessage: 'Synced block',
36
36
  description: 'Label which appears above the synced block when it is selected'
37
+ },
38
+ permissionDeniedHeading: {
39
+ id: 'fabric.editor.syncedBlockPermissionDeniedHeading',
40
+ defaultMessage: "You don't have permission to view this synced block",
41
+ description: 'Heading for error state where the user does not have permission to view the synced block'
42
+ },
43
+ permissionDeniedDescription: {
44
+ id: 'fabric.editor.syncedBlockPermissionDeniedDescription',
45
+ defaultMessage: "The source of this synced block is a content item you don't have access to.",
46
+ description: 'Description for error state where the user does not have permission to view the synced block'
47
+ },
48
+ permissionDeniedAltText: {
49
+ id: 'fabric.editor.syncedBlockPermissionDeniedIconAltText',
50
+ defaultMessage: 'Permission denied.',
51
+ description: 'Alt text for icon on error state where the user does not have permission to view the synced block'
52
+ },
53
+ requestAccessButton: {
54
+ id: 'fabric.editor.requestAccessToSyncedBlock',
55
+ defaultMessage: 'Request access',
56
+ description: 'Label for button which requests access to view the source page of the sync block'
57
+ },
58
+ accessRequested: {
59
+ id: 'fabric.editor.accessToSyncedBlockRequested',
60
+ defaultMessage: 'Access requested',
61
+ description: 'Text which displays after the request to view the source page of the sync block has been sent and is still pending'
62
+ },
63
+ requestAccessError: {
64
+ id: 'fabric.editor.requestAccessToSyncedBlockError',
65
+ defaultMessage: 'Something went wrong. Click to try again',
66
+ description: 'Text which displays next to the request access button after something went wrong after clicking the button.'
37
67
  }
38
68
  });
@@ -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 = "110.20.0";
4
+ const packageVersion = "110.21.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // 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 = "110.20.0";
17
+ const packageVersion = "110.21.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -205,46 +205,43 @@ const HoverLinkOverlayOriginal = ({
205
205
  label: ""
206
206
  });
207
207
  }
208
- return (
209
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
210
- jsx("span", {
211
- ref: containerRef,
212
- css: containerStylesOld,
213
- onDoubleClick: handleDoubleClick
214
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
215
- ,
216
- onMouseEnter: () => handleOverlayChange(true)
217
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
218
- ,
219
- onMouseLeave: () => handleOverlayChange(false)
220
- }, children, jsx("span", {
221
- css: hiddenTextStyle,
222
- "aria-hidden": "true"
223
- }, jsx(Text, {
224
- ref: hiddenTextRef,
225
- size: "small",
226
- maxLines: 1
227
- }, label)), isHovered && jsx(Anchor, {
228
- ref: hoverLinkButtonRef,
229
- xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
230
- href: url,
231
- target: "_blank",
232
- style: {
233
- paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
234
- },
235
- onClick: handleClick,
236
- testId: "inline-card-hoverlink-overlay"
237
- }, jsx(Box, {
238
- xcss: iconWrapperStylesOld,
239
- "data-inlinecard-button-overlay": "icon-wrapper-line-height",
240
- testId: "inline-card-hoverlink-overlay-icon"
241
- }, icon), showLabel && jsx(Text, {
242
- size: "small",
243
- color: "color.text.subtle",
244
- maxLines: 1,
245
- testId: "inline-card-hoverlink-overlay-label"
246
- }, label)))
247
- );
208
+ return jsx("span", {
209
+ ref: containerRef,
210
+ css: containerStylesOld,
211
+ onDoubleClick: handleDoubleClick
212
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
213
+ ,
214
+ onMouseEnter: () => handleOverlayChange(true)
215
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
216
+ ,
217
+ onMouseLeave: () => handleOverlayChange(false)
218
+ }, children, jsx("span", {
219
+ css: hiddenTextStyle,
220
+ "aria-hidden": "true"
221
+ }, jsx(Text, {
222
+ ref: hiddenTextRef,
223
+ size: "small",
224
+ maxLines: 1
225
+ }, label)), isHovered && jsx(Anchor, {
226
+ ref: hoverLinkButtonRef,
227
+ xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
228
+ href: url,
229
+ target: "_blank",
230
+ style: {
231
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
232
+ },
233
+ onClick: handleClick,
234
+ testId: "inline-card-hoverlink-overlay"
235
+ }, jsx(Box, {
236
+ xcss: iconWrapperStylesOld,
237
+ "data-inlinecard-button-overlay": "icon-wrapper-line-height",
238
+ testId: "inline-card-hoverlink-overlay-icon"
239
+ }, icon), showLabel && jsx(Text, {
240
+ size: "small",
241
+ color: "color.text.subtle",
242
+ maxLines: 1,
243
+ testId: "inline-card-hoverlink-overlay-label"
244
+ }, label)));
248
245
  };
249
246
  const HoverLinkOverlayNew = ({
250
247
  children,
@@ -349,9 +349,7 @@ export function DropdownMenuItem({
349
349
  // From time to time we don't want to have any tabIndex on item wrapper
350
350
  // especially when we pass any interactive element as a item.content
351
351
  const tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
352
- const dropListItem =
353
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
354
- jsx("div", {
352
+ const dropListItem = jsx("div", {
355
353
  css: () => buttonStyles(item.isActive, submenuActive),
356
354
  role: expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? shouldUseDefaultRole ? undefined : 'menuitem' : undefined,
357
355
  tabIndex: tabIndex,
@@ -194,6 +194,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
194
194
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
195
195
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
196
196
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
197
+ ACTION["SUPPRESSED"] = "suppressed";
197
198
  return ACTION;
198
199
  }({});
199
200
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -401,6 +402,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
401
402
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
402
403
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
403
404
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
405
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
404
406
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
405
407
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
406
408
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -244,7 +244,7 @@ function StatelessElementBrowser(props) {
244
244
  var handleClick = function handleClick() {
245
245
  setCanFocusSearch(true);
246
246
  };
247
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
247
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
248
248
  jsx("div", {
249
249
  css: wrapper,
250
250
  "data-testid": "element-browser",