@atlaskit/editor-common 111.9.6 → 111.10.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
+ ## 111.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`707c5a42b5358`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/707c5a42b5358) -
8
+ [ux] Updates LCM for new Read only mode. Also adds a new static property setter to the insm api.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 111.9.7
15
+
16
+ ### Patch Changes
17
+
18
+ - [`957d9e1880c62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/957d9e1880c62) -
19
+ EDITOR-3806 Block menu action experience tracking
20
+ - Updated dependencies
21
+
3
22
  ## 111.9.6
4
23
 
5
24
  ### Patch Changes
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "BLOCK_ACTIONS_MENU_SECTION_RANK", {
45
45
  return _rank.BLOCK_ACTIONS_MENU_SECTION_RANK;
46
46
  }
47
47
  });
48
+ Object.defineProperty(exports, "BLOCK_MENU_ACTION_TEST_ID", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _key.BLOCK_MENU_ACTION_TEST_ID;
52
+ }
53
+ });
48
54
  Object.defineProperty(exports, "BLOCK_MENU_SECTION_RANK", {
49
55
  enumerable: true,
50
56
  get: function get() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TRANSFORM_SUGGESTED_MENU_SECTION = exports.TRANSFORM_SUGGESTED_MENU_ITEM = exports.TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM = exports.TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM = exports.TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM = exports.TRANSFORM_STRUCTURE_PANEL_MENU_ITEM = exports.TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM = exports.TRANSFORM_STRUCTURE_MENU_SECTION = exports.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM = exports.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM = exports.TRANSFORM_STRUCTURE_DECISION_MENU_ITEM = exports.TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM = exports.TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM = exports.TRANSFORM_MENU_SECTION = exports.TRANSFORM_MENU_ITEM = exports.TRANSFORM_HEADINGS_MENU_SECTION = exports.TRANSFORM_HEADINGS_H6_MENU_ITEM = exports.TRANSFORM_HEADINGS_H5_MENU_ITEM = exports.TRANSFORM_HEADINGS_H4_MENU_ITEM = exports.TRANSFORM_HEADINGS_H3_MENU_ITEM = exports.TRANSFORM_HEADINGS_H2_MENU_ITEM = exports.TRANSFORM_HEADINGS_H1_MENU_ITEM = exports.TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM = exports.TRANSFORM_CREATE_MENU_SECTION = exports.TRANSFORM_CLEAR_MENU_SECTION = exports.TRANSFORM_CLEAR_MENU_ITEM = exports.POSITION_MOVE_UP_MENU_ITEM = exports.POSITION_MOVE_DOWN_MENU_ITEM = exports.POSITION_MENU_SECTION = exports.DELETE_MENU_SECTION = exports.DELETE_MENU_ITEM = exports.BLOCK_ACTIONS_MENU_SECTION = exports.BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM = exports.BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM = exports.BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM = void 0;
6
+ exports.TRANSFORM_SUGGESTED_MENU_SECTION = exports.TRANSFORM_SUGGESTED_MENU_ITEM = exports.TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM = exports.TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM = exports.TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM = exports.TRANSFORM_STRUCTURE_PANEL_MENU_ITEM = exports.TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM = exports.TRANSFORM_STRUCTURE_MENU_SECTION = exports.TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM = exports.TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM = exports.TRANSFORM_STRUCTURE_DECISION_MENU_ITEM = exports.TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM = exports.TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM = exports.TRANSFORM_MENU_SECTION = exports.TRANSFORM_MENU_ITEM = exports.TRANSFORM_HEADINGS_MENU_SECTION = exports.TRANSFORM_HEADINGS_H6_MENU_ITEM = exports.TRANSFORM_HEADINGS_H5_MENU_ITEM = exports.TRANSFORM_HEADINGS_H4_MENU_ITEM = exports.TRANSFORM_HEADINGS_H3_MENU_ITEM = exports.TRANSFORM_HEADINGS_H2_MENU_ITEM = exports.TRANSFORM_HEADINGS_H1_MENU_ITEM = exports.TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM = exports.TRANSFORM_CREATE_MENU_SECTION = exports.TRANSFORM_CLEAR_MENU_SECTION = exports.TRANSFORM_CLEAR_MENU_ITEM = exports.POSITION_MOVE_UP_MENU_ITEM = exports.POSITION_MOVE_DOWN_MENU_ITEM = exports.POSITION_MENU_SECTION = exports.DELETE_MENU_SECTION = exports.DELETE_MENU_ITEM = exports.BLOCK_MENU_ACTION_TEST_ID = exports.BLOCK_ACTIONS_MENU_SECTION = exports.BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM = exports.BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM = exports.BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM = void 0;
7
7
  // Transformation
8
8
 
9
9
  var TRANSFORM_MENU_SECTION = exports.TRANSFORM_MENU_SECTION = {
@@ -119,4 +119,13 @@ var DELETE_MENU_SECTION = exports.DELETE_MENU_SECTION = {
119
119
  };
120
120
  var DELETE_MENU_ITEM = exports.DELETE_MENU_ITEM = {
121
121
  key: 'delete-menu-item'
122
+ };
123
+
124
+ // Experience tracking test IDs
125
+ // Used by experience tracking to detect menu action clicks
126
+
127
+ var BLOCK_MENU_ACTION_TEST_ID = exports.BLOCK_MENU_ACTION_TEST_ID = {
128
+ MOVE_UP: 'block-menu-move-up',
129
+ MOVE_DOWN: 'block-menu-move-down',
130
+ DELETE: 'block-menu-delete'
122
131
  };
@@ -103,7 +103,7 @@ function ExtensionWithPluginState(props) {
103
103
  'with-hover-border': (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
104
104
  'with-danger-overlay': showMacroInteractionDesignUpdates,
105
105
  'without-frame': removeBorder,
106
- 'legacy-content': showLegacyContentHeader
106
+ 'legacy-content': (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
107
107
  }, _styles2.widerLayoutClassName, shouldBreakout));
108
108
  var overflowClassNames = (0, _classnames2.default)('extension-overflow-wrapper', {
109
109
  'with-body': hasBody,
@@ -128,6 +128,8 @@ function ExtensionWithPluginState(props) {
128
128
  };
129
129
  var newContentStyles = {};
130
130
  if (shouldBreakout) {
131
+ // type is destructured so that breakout styles does not include it
132
+ // eslint-disable-next-line no-unused-vars
131
133
  var _calculateBreakoutSty = (0, _utils.calculateBreakoutStyles)({
132
134
  mode: node.attrs.layout,
133
135
  widthStateWidth: widthState.width,
@@ -145,7 +147,7 @@ function ExtensionWithPluginState(props) {
145
147
  }
146
148
  };
147
149
  var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
148
- return (0, _react2.jsx)(_react.Fragment, null, showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
150
+ return (0, _react2.jsx)(_react.Fragment, null, (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
149
151
  isNodeSelected: isNodeSelected,
150
152
  isNodeHovered: isNodeHovered,
151
153
  onMouseEnter: function onMouseEnter() {
@@ -160,6 +160,12 @@ Object.defineProperty(exports, "mediaAndEmbedToolbarMessages", {
160
160
  return _mediaAndEmbedToolbar.toolbarMessages;
161
161
  }
162
162
  });
163
+ Object.defineProperty(exports, "mediaEditingMessages", {
164
+ enumerable: true,
165
+ get: function get() {
166
+ return _mediaEditing.mediaEditingMessages;
167
+ }
168
+ });
163
169
  Object.defineProperty(exports, "mediaInsertMessages", {
164
170
  enumerable: true,
165
171
  get: function get() {
@@ -299,6 +305,7 @@ var _helpDialog = require("./help-dialog");
299
305
  var _highlight = require("./highlight");
300
306
  var _blockControls = require("./block-controls");
301
307
  var _mediaInsert = require("./media-insert");
308
+ var _mediaEditing = require("./media-editing");
302
309
  var _selectionExtension = require("./selection-extension");
303
310
  var _selectionToolbar = require("./selection-toolbar");
304
311
  var _contextPanel = require("./context-panel");
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mediaEditingMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var mediaEditingMessages = exports.mediaEditingMessages = (0, _reactIntlNext.defineMessages)({
9
+ aspectRatioSelectionOriginal: {
10
+ id: 'editor.imageEditor.aspectRatio.original',
11
+ defaultMessage: 'Original',
12
+ description: 'Display this message when user selects original as their cropper aspect ratio'
13
+ },
14
+ aspectRatioSelectionCustom: {
15
+ id: 'editor.imageEditor.aspectRatio.custom',
16
+ defaultMessage: 'Custom',
17
+ description: 'Display this message when user selects custom as their cropper aspect ratio'
18
+ },
19
+ aspectRatioSelectionSquare: {
20
+ id: 'editor.imageEditor.aspectRatio.square',
21
+ defaultMessage: 'Square',
22
+ description: 'Display this message when user selects square as their cropper aspect ratio'
23
+ },
24
+ aspectRatioSelectionCircle: {
25
+ id: 'editor.imageEditor.aspectRatio.circle',
26
+ defaultMessage: 'Circle',
27
+ description: 'Display this message when user selects circle as their cropper aspect ratio'
28
+ },
29
+ aspectRatioSelectionLandscape: {
30
+ id: 'editor.imageEditor.aspectRatio.landscape',
31
+ defaultMessage: 'Landscape',
32
+ description: 'Display this message when user selects landscape as their cropper aspect ratio'
33
+ },
34
+ aspectRatioSelectionPortrait: {
35
+ id: 'editor.imageEditor.aspectRatio.portrait',
36
+ defaultMessage: 'Portrait',
37
+ description: 'Display this message when user selects portrait as their cropper aspect ratio'
38
+ },
39
+ aspectRatioSelectionWide: {
40
+ id: 'editor.imageEditor.aspectRatio.wide',
41
+ defaultMessage: 'Wide',
42
+ description: 'Display this message when user selects wide as their cropper aspect ratio'
43
+ },
44
+ squareButton: {
45
+ id: 'editor.imageEditor.aspectRatio.squareButton',
46
+ defaultMessage: 'Square 1:1',
47
+ description: 'Square button display'
48
+ },
49
+ circleButton: {
50
+ id: 'editor.imageEditor.aspectRatio.circleButton',
51
+ defaultMessage: 'Circle 1:1',
52
+ description: 'Circle button display'
53
+ },
54
+ landscapeButton: {
55
+ id: 'editor.imageEditor.aspectRatio.landscapeButton',
56
+ defaultMessage: 'Landscape 4:3',
57
+ description: 'Landscape button display'
58
+ },
59
+ portraitButton: {
60
+ id: 'editor.imageEditor.aspectRatio.portraitButton',
61
+ defaultMessage: 'Portrait 3:4',
62
+ description: 'Portrait button display'
63
+ },
64
+ wideButton: {
65
+ id: 'editor.imageEditor.aspectRatio.wideButton',
66
+ defaultMessage: 'Wide 16:9',
67
+ description: 'Wide button display'
68
+ },
69
+ cancelButton: {
70
+ id: 'editor.imageEditor.cancel',
71
+ defaultMessage: 'Cancel',
72
+ description: 'Cancel button display'
73
+ },
74
+ doneButton: {
75
+ id: 'editor.imageEditor.done',
76
+ defaultMessage: 'Done',
77
+ description: 'Done button display'
78
+ }
79
+ });
@@ -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 = "111.9.5";
22
+ var packageVersion = "111.9.7";
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 = "111.9.5";
27
+ var packageVersion = "111.9.7";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  export { messages } from './messages';
3
- export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM } from './key';
3
+ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, BLOCK_MENU_ACTION_TEST_ID } from './key';
4
4
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM } from './key-deprecated';
5
5
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION_RANK } from './rank';
6
6
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK } from './rank-deprecated';
@@ -113,4 +113,13 @@ export const DELETE_MENU_SECTION = {
113
113
  };
114
114
  export const DELETE_MENU_ITEM = {
115
115
  key: 'delete-menu-item'
116
+ };
117
+
118
+ // Experience tracking test IDs
119
+ // Used by experience tracking to detect menu action clicks
120
+
121
+ export const BLOCK_MENU_ACTION_TEST_ID = {
122
+ MOVE_UP: 'block-menu-move-up',
123
+ MOVE_DOWN: 'block-menu-move-down',
124
+ DELETE: 'block-menu-delete'
116
125
  };
@@ -96,7 +96,7 @@ function ExtensionWithPluginState(props) {
96
96
  'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
97
97
  'with-danger-overlay': showMacroInteractionDesignUpdates,
98
98
  'without-frame': removeBorder,
99
- 'legacy-content': showLegacyContentHeader,
99
+ 'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader,
100
100
  [widerLayoutClassName]: shouldBreakout
101
101
  });
102
102
  const overflowClassNames = classnames('extension-overflow-wrapper', {
@@ -122,6 +122,8 @@ function ExtensionWithPluginState(props) {
122
122
  };
123
123
  let newContentStyles = {};
124
124
  if (shouldBreakout) {
125
+ // type is destructured so that breakout styles does not include it
126
+ // eslint-disable-next-line no-unused-vars
125
127
  const {
126
128
  type,
127
129
  ...breakoutStyles
@@ -145,7 +147,7 @@ function ExtensionWithPluginState(props) {
145
147
  }
146
148
  };
147
149
  const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
148
- return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
150
+ return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
149
151
  isNodeSelected: isNodeSelected,
150
152
  isNodeHovered: isNodeHovered,
151
153
  onMouseEnter: () => handleMouseEvent(true),
@@ -38,6 +38,7 @@ export { helpDialogMessages } from './help-dialog';
38
38
  export { highlightMessages } from './highlight';
39
39
  export { messages as blockControlsMessages } from './block-controls';
40
40
  export { mediaInsertMessages } from './media-insert';
41
+ export { mediaEditingMessages } from './media-editing';
41
42
  export { selectionExtensionMessages } from './selection-extension';
42
43
  export { selectionToolbarMessages } from './selection-toolbar';
43
44
  export { contextPanelMessages } from './context-panel';
@@ -0,0 +1,73 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const mediaEditingMessages = defineMessages({
3
+ aspectRatioSelectionOriginal: {
4
+ id: 'editor.imageEditor.aspectRatio.original',
5
+ defaultMessage: 'Original',
6
+ description: 'Display this message when user selects original as their cropper aspect ratio'
7
+ },
8
+ aspectRatioSelectionCustom: {
9
+ id: 'editor.imageEditor.aspectRatio.custom',
10
+ defaultMessage: 'Custom',
11
+ description: 'Display this message when user selects custom as their cropper aspect ratio'
12
+ },
13
+ aspectRatioSelectionSquare: {
14
+ id: 'editor.imageEditor.aspectRatio.square',
15
+ defaultMessage: 'Square',
16
+ description: 'Display this message when user selects square as their cropper aspect ratio'
17
+ },
18
+ aspectRatioSelectionCircle: {
19
+ id: 'editor.imageEditor.aspectRatio.circle',
20
+ defaultMessage: 'Circle',
21
+ description: 'Display this message when user selects circle as their cropper aspect ratio'
22
+ },
23
+ aspectRatioSelectionLandscape: {
24
+ id: 'editor.imageEditor.aspectRatio.landscape',
25
+ defaultMessage: 'Landscape',
26
+ description: 'Display this message when user selects landscape as their cropper aspect ratio'
27
+ },
28
+ aspectRatioSelectionPortrait: {
29
+ id: 'editor.imageEditor.aspectRatio.portrait',
30
+ defaultMessage: 'Portrait',
31
+ description: 'Display this message when user selects portrait as their cropper aspect ratio'
32
+ },
33
+ aspectRatioSelectionWide: {
34
+ id: 'editor.imageEditor.aspectRatio.wide',
35
+ defaultMessage: 'Wide',
36
+ description: 'Display this message when user selects wide as their cropper aspect ratio'
37
+ },
38
+ squareButton: {
39
+ id: 'editor.imageEditor.aspectRatio.squareButton',
40
+ defaultMessage: 'Square 1:1',
41
+ description: 'Square button display'
42
+ },
43
+ circleButton: {
44
+ id: 'editor.imageEditor.aspectRatio.circleButton',
45
+ defaultMessage: 'Circle 1:1',
46
+ description: 'Circle button display'
47
+ },
48
+ landscapeButton: {
49
+ id: 'editor.imageEditor.aspectRatio.landscapeButton',
50
+ defaultMessage: 'Landscape 4:3',
51
+ description: 'Landscape button display'
52
+ },
53
+ portraitButton: {
54
+ id: 'editor.imageEditor.aspectRatio.portraitButton',
55
+ defaultMessage: 'Portrait 3:4',
56
+ description: 'Portrait button display'
57
+ },
58
+ wideButton: {
59
+ id: 'editor.imageEditor.aspectRatio.wideButton',
60
+ defaultMessage: 'Wide 16:9',
61
+ description: 'Wide button display'
62
+ },
63
+ cancelButton: {
64
+ id: 'editor.imageEditor.cancel',
65
+ defaultMessage: 'Cancel',
66
+ description: 'Cancel button display'
67
+ },
68
+ doneButton: {
69
+ id: 'editor.imageEditor.done',
70
+ defaultMessage: 'Done',
71
+ description: 'Done button display'
72
+ }
73
+ });
@@ -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 = "111.9.5";
7
+ const packageVersion = "111.9.7";
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 = "111.9.5";
17
+ const packageVersion = "111.9.7";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  export { messages } from './messages';
3
- export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM } from './key';
3
+ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, BLOCK_MENU_ACTION_TEST_ID } from './key';
4
4
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM } from './key-deprecated';
5
5
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION_RANK } from './rank';
6
6
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK } from './rank-deprecated';
@@ -113,4 +113,13 @@ export var DELETE_MENU_SECTION = {
113
113
  };
114
114
  export var DELETE_MENU_ITEM = {
115
115
  key: 'delete-menu-item'
116
+ };
117
+
118
+ // Experience tracking test IDs
119
+ // Used by experience tracking to detect menu action clicks
120
+
121
+ export var BLOCK_MENU_ACTION_TEST_ID = {
122
+ MOVE_UP: 'block-menu-move-up',
123
+ MOVE_DOWN: 'block-menu-move-down',
124
+ DELETE: 'block-menu-delete'
116
125
  };
@@ -96,7 +96,7 @@ function ExtensionWithPluginState(props) {
96
96
  'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
97
97
  'with-danger-overlay': showMacroInteractionDesignUpdates,
98
98
  'without-frame': removeBorder,
99
- 'legacy-content': showLegacyContentHeader
99
+ 'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
100
100
  }, widerLayoutClassName, shouldBreakout));
101
101
  var overflowClassNames = classnames('extension-overflow-wrapper', {
102
102
  'with-body': hasBody,
@@ -121,6 +121,8 @@ function ExtensionWithPluginState(props) {
121
121
  };
122
122
  var newContentStyles = {};
123
123
  if (shouldBreakout) {
124
+ // type is destructured so that breakout styles does not include it
125
+ // eslint-disable-next-line no-unused-vars
124
126
  var _calculateBreakoutSty = calculateBreakoutStyles({
125
127
  mode: node.attrs.layout,
126
128
  widthStateWidth: widthState.width,
@@ -138,7 +140,7 @@ function ExtensionWithPluginState(props) {
138
140
  }
139
141
  };
140
142
  var extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
141
- return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
143
+ return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
142
144
  isNodeSelected: isNodeSelected,
143
145
  isNodeHovered: isNodeHovered,
144
146
  onMouseEnter: function onMouseEnter() {
@@ -38,6 +38,7 @@ export { helpDialogMessages } from './help-dialog';
38
38
  export { highlightMessages } from './highlight';
39
39
  export { messages as blockControlsMessages } from './block-controls';
40
40
  export { mediaInsertMessages } from './media-insert';
41
+ export { mediaEditingMessages } from './media-editing';
41
42
  export { selectionExtensionMessages } from './selection-extension';
42
43
  export { selectionToolbarMessages } from './selection-toolbar';
43
44
  export { contextPanelMessages } from './context-panel';
@@ -0,0 +1,73 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var mediaEditingMessages = defineMessages({
3
+ aspectRatioSelectionOriginal: {
4
+ id: 'editor.imageEditor.aspectRatio.original',
5
+ defaultMessage: 'Original',
6
+ description: 'Display this message when user selects original as their cropper aspect ratio'
7
+ },
8
+ aspectRatioSelectionCustom: {
9
+ id: 'editor.imageEditor.aspectRatio.custom',
10
+ defaultMessage: 'Custom',
11
+ description: 'Display this message when user selects custom as their cropper aspect ratio'
12
+ },
13
+ aspectRatioSelectionSquare: {
14
+ id: 'editor.imageEditor.aspectRatio.square',
15
+ defaultMessage: 'Square',
16
+ description: 'Display this message when user selects square as their cropper aspect ratio'
17
+ },
18
+ aspectRatioSelectionCircle: {
19
+ id: 'editor.imageEditor.aspectRatio.circle',
20
+ defaultMessage: 'Circle',
21
+ description: 'Display this message when user selects circle as their cropper aspect ratio'
22
+ },
23
+ aspectRatioSelectionLandscape: {
24
+ id: 'editor.imageEditor.aspectRatio.landscape',
25
+ defaultMessage: 'Landscape',
26
+ description: 'Display this message when user selects landscape as their cropper aspect ratio'
27
+ },
28
+ aspectRatioSelectionPortrait: {
29
+ id: 'editor.imageEditor.aspectRatio.portrait',
30
+ defaultMessage: 'Portrait',
31
+ description: 'Display this message when user selects portrait as their cropper aspect ratio'
32
+ },
33
+ aspectRatioSelectionWide: {
34
+ id: 'editor.imageEditor.aspectRatio.wide',
35
+ defaultMessage: 'Wide',
36
+ description: 'Display this message when user selects wide as their cropper aspect ratio'
37
+ },
38
+ squareButton: {
39
+ id: 'editor.imageEditor.aspectRatio.squareButton',
40
+ defaultMessage: 'Square 1:1',
41
+ description: 'Square button display'
42
+ },
43
+ circleButton: {
44
+ id: 'editor.imageEditor.aspectRatio.circleButton',
45
+ defaultMessage: 'Circle 1:1',
46
+ description: 'Circle button display'
47
+ },
48
+ landscapeButton: {
49
+ id: 'editor.imageEditor.aspectRatio.landscapeButton',
50
+ defaultMessage: 'Landscape 4:3',
51
+ description: 'Landscape button display'
52
+ },
53
+ portraitButton: {
54
+ id: 'editor.imageEditor.aspectRatio.portraitButton',
55
+ defaultMessage: 'Portrait 3:4',
56
+ description: 'Portrait button display'
57
+ },
58
+ wideButton: {
59
+ id: 'editor.imageEditor.aspectRatio.wideButton',
60
+ defaultMessage: 'Wide 16:9',
61
+ description: 'Wide button display'
62
+ },
63
+ cancelButton: {
64
+ id: 'editor.imageEditor.cancel',
65
+ defaultMessage: 'Cancel',
66
+ description: 'Cancel button display'
67
+ },
68
+ doneButton: {
69
+ id: 'editor.imageEditor.done',
70
+ defaultMessage: 'Done',
71
+ description: 'Done button display'
72
+ }
73
+ });
@@ -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 = "111.9.5";
13
+ var packageVersion = "111.9.7";
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 = "111.9.5";
24
+ var packageVersion = "111.9.7";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,5 +1,5 @@
1
1
  export { messages } from './messages';
2
- export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, } from './key';
2
+ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, BLOCK_MENU_ACTION_TEST_ID, } from './key';
3
3
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM, } from './key-deprecated';
4
4
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION_RANK, } from './rank';
5
5
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK, } from './rank-deprecated';
@@ -103,3 +103,8 @@ export declare const DELETE_MENU_SECTION: {
103
103
  export declare const DELETE_MENU_ITEM: {
104
104
  key: string;
105
105
  };
106
+ export declare const BLOCK_MENU_ACTION_TEST_ID: {
107
+ readonly MOVE_UP: "block-menu-move-up";
108
+ readonly MOVE_DOWN: "block-menu-move-down";
109
+ readonly DELETE: "block-menu-delete";
110
+ };
@@ -34,6 +34,7 @@ export { helpDialogMessages } from './help-dialog';
34
34
  export { highlightMessages } from './highlight';
35
35
  export { messages as blockControlsMessages } from './block-controls';
36
36
  export { mediaInsertMessages } from './media-insert';
37
+ export { mediaEditingMessages } from './media-editing';
37
38
  export { selectionExtensionMessages } from './selection-extension';
38
39
  export { selectionToolbarMessages } from './selection-toolbar';
39
40
  export { contextPanelMessages } from './context-panel';
@@ -0,0 +1,72 @@
1
+ export declare const mediaEditingMessages: {
2
+ aspectRatioSelectionOriginal: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ aspectRatioSelectionCustom: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ aspectRatioSelectionSquare: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ aspectRatioSelectionCircle: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ aspectRatioSelectionLandscape: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ aspectRatioSelectionPortrait: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ aspectRatioSelectionWide: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ squareButton: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ circleButton: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ landscapeButton: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ portraitButton: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ wideButton: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ cancelButton: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ doneButton: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ };
@@ -1,5 +1,5 @@
1
1
  export { messages } from './messages';
2
- export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, } from './key';
2
+ export { BLOCK_ACTIONS_MENU_SECTION, BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM, BLOCK_ACTIONS_CREATE_SYNCED_BLOCK_MENU_ITEM, BLOCK_ACTIONS_COPY_LINK_TO_BLOCK_MENU_ITEM, DELETE_MENU_SECTION, DELETE_MENU_ITEM, POSITION_MENU_SECTION, POSITION_MOVE_UP_MENU_ITEM, POSITION_MOVE_DOWN_MENU_ITEM, TRANSFORM_MENU_SECTION, TRANSFORM_MENU_ITEM, TRANSFORM_CLEAR_MENU_SECTION, TRANSFORM_CLEAR_MENU_ITEM, TRANSFORM_CREATE_MENU_SECTION, TRANSFORM_HEADINGS_MENU_SECTION, TRANSFORM_HEADINGS_H1_MENU_ITEM, TRANSFORM_HEADINGS_H2_MENU_ITEM, TRANSFORM_HEADINGS_H3_MENU_ITEM, TRANSFORM_HEADINGS_H4_MENU_ITEM, TRANSFORM_HEADINGS_H5_MENU_ITEM, TRANSFORM_HEADINGS_H6_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_SECTION, TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_BULLETED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_NUMBERED_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM, TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_EXPAND_MENU_ITEM, TRANSFORM_STRUCTURE_LAYOUT_MENU_ITEM, TRANSFORM_STRUCTURE_QUOTE_MENU_ITEM, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM, TRANSFORM_STRUCTURE_PARAGRAPH_MENU_ITEM, TRANSFORM_SUGGESTED_MENU_ITEM, TRANSFORM_DEFAULT_EXTENSION_SLOT_MENU_ITEM, BLOCK_MENU_ACTION_TEST_ID, } from './key';
3
3
  export { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_MENU_SECTION, MOVE_UP_DOWN_MENU_SECTION, COPY_BLOCK_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, NESTED_FORMAT_MENU_SECTION, FORMAT_MENU_ITEM, NESTED_FORMAT_MENU, PRIMARY_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM, } from './key-deprecated';
4
4
  export { MAIN_BLOCK_MENU_SECTION_RANK, TRANSFORM_MENU_SECTION_RANK, TRANSFORM_MENU_ITEM_RANK, TRANSFORM_HEADINGS_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_CLEAR_MENU_SECTION_RANK, BLOCK_ACTIONS_MENU_SECTION_RANK, POSITION_MENU_SECTION_RANK, DELETE_MENU_SECTION_RANK, TRANSFORM_SUGGESTED_MENU_SECTION_RANK, TRANSFORM_CREATE_MENU_SECTION_RANK, } from './rank';
5
5
  export { FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, BLOCK_MENU_SECTION_RANK, PRIMARY_MENU_SECTION_RANK, COPY_MENU_SECTION_RANK, DELETE_SECTION_RANK, MOVE_BLOCK_SECTION_RANK, ADD_BLOCKS_MENU_SECTION_RANK, } from './rank-deprecated';
@@ -103,3 +103,8 @@ export declare const DELETE_MENU_SECTION: {
103
103
  export declare const DELETE_MENU_ITEM: {
104
104
  key: string;
105
105
  };
106
+ export declare const BLOCK_MENU_ACTION_TEST_ID: {
107
+ readonly MOVE_UP: "block-menu-move-up";
108
+ readonly MOVE_DOWN: "block-menu-move-down";
109
+ readonly DELETE: "block-menu-delete";
110
+ };
@@ -34,6 +34,7 @@ export { helpDialogMessages } from './help-dialog';
34
34
  export { highlightMessages } from './highlight';
35
35
  export { messages as blockControlsMessages } from './block-controls';
36
36
  export { mediaInsertMessages } from './media-insert';
37
+ export { mediaEditingMessages } from './media-editing';
37
38
  export { selectionExtensionMessages } from './selection-extension';
38
39
  export { selectionToolbarMessages } from './selection-toolbar';
39
40
  export { contextPanelMessages } from './context-panel';
@@ -0,0 +1,72 @@
1
+ export declare const mediaEditingMessages: {
2
+ aspectRatioSelectionOriginal: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ aspectRatioSelectionCustom: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ aspectRatioSelectionSquare: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ aspectRatioSelectionCircle: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ aspectRatioSelectionLandscape: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ aspectRatioSelectionPortrait: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ aspectRatioSelectionWide: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ squareButton: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ circleButton: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ landscapeButton: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ portraitButton: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ wideButton: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ cancelButton: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ doneButton: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.9.6",
3
+ "version": "111.10.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/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.2.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^17.3.0",
84
+ "@atlaskit/tmp-editor-statsig": "^17.5.0",
85
85
  "@atlaskit/tokens": "^10.1.0",
86
86
  "@atlaskit/tooltip": "^20.14.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",