@atlaskit/editor-common 111.8.10 → 111.8.11

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 (43) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/keymaps/index.js +4 -3
  3. package/dist/cjs/mark/text-formatting.js +1 -5
  4. package/dist/cjs/messages/syncBlock.js +12 -2
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/preset/core-plugin/index.js +1 -3
  7. package/dist/cjs/preset/core-plugin/requestDocument.js +12 -17
  8. package/dist/cjs/styles/index.js +0 -6
  9. package/dist/cjs/styles/shared/resizer.js +2 -10
  10. package/dist/cjs/ui/DropList/index.js +1 -1
  11. package/dist/cjs/utils/calculate-toolbar-position.js +2 -3
  12. package/dist/cjs/utils/document.js +3 -9
  13. package/dist/es2019/keymaps/index.js +1 -0
  14. package/dist/es2019/mark/text-formatting.js +1 -5
  15. package/dist/es2019/messages/syncBlock.js +12 -2
  16. package/dist/es2019/monitoring/error.js +1 -1
  17. package/dist/es2019/preset/core-plugin/index.js +1 -3
  18. package/dist/es2019/preset/core-plugin/requestDocument.js +7 -12
  19. package/dist/es2019/styles/index.js +1 -1
  20. package/dist/es2019/styles/shared/resizer.js +1 -202
  21. package/dist/es2019/ui/DropList/index.js +1 -1
  22. package/dist/es2019/utils/calculate-toolbar-position.js +2 -3
  23. package/dist/es2019/utils/document.js +3 -9
  24. package/dist/esm/keymaps/index.js +1 -0
  25. package/dist/esm/mark/text-formatting.js +1 -5
  26. package/dist/esm/messages/syncBlock.js +12 -2
  27. package/dist/esm/monitoring/error.js +1 -1
  28. package/dist/esm/preset/core-plugin/index.js +1 -3
  29. package/dist/esm/preset/core-plugin/requestDocument.js +12 -17
  30. package/dist/esm/styles/index.js +1 -1
  31. package/dist/esm/styles/shared/resizer.js +1 -9
  32. package/dist/esm/ui/DropList/index.js +1 -1
  33. package/dist/esm/utils/calculate-toolbar-position.js +2 -3
  34. package/dist/esm/utils/document.js +3 -9
  35. package/dist/types/keymaps/index.d.ts +1 -0
  36. package/dist/types/messages/syncBlock.d.ts +11 -1
  37. package/dist/types/styles/index.d.ts +1 -1
  38. package/dist/types/styles/shared/resizer.d.ts +0 -2
  39. package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
  40. package/dist/types-ts4.5/messages/syncBlock.d.ts +11 -1
  41. package/dist/types-ts4.5/styles/index.d.ts +1 -1
  42. package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -2
  43. package/package.json +3 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.8.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5c522f81f181e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c522f81f181e) -
8
+ [ux] EDITOR-4369 Support synced location for references on Jira in source and reference synced
9
+ block
10
+ - [`6e8029473620b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e8029473620b) -
11
+ [EDITOR-4496] clean up experiment platform_editor_toolbar_aifc_patch_3 and remove view-mode plugin
12
+ dependency from loom plugin
13
+ - [`0a9962a3aa24c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a9962a3aa24c) -
14
+ tidy up experiment platform_editor_resizer_styles_cleanup
15
+ - [`0d8216e610e34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d8216e610e34) -
16
+ [ux] Add cmd-option-a shortcut for copylink to block from block menu
17
+ - [`7080196995b11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7080196995b11) -
18
+ Cleaning up FG platform_editor_ai_generic_prep_for_aifc
19
+ - [`058065aadf69f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/058065aadf69f) -
20
+ [ux] [EDITOR-2851] Support reference sync block unsyc
21
+ - Updated dependencies
22
+
3
23
  ## 111.8.10
4
24
 
5
25
  ### Patch Changes
@@ -82,7 +82,7 @@ exports.backspace = exports.askAIQuickInsert = exports.applyYellowHighlight = ex
82
82
  exports.bindKeymapArrayWithCommand = bindKeymapArrayWithCommand;
83
83
  exports.bindKeymapWithCommand = bindKeymapWithCommand;
84
84
  exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
85
- exports.find = exports.escape = exports.enter = exports.dragToMoveUp = exports.dragToMoveRight = exports.dragToMoveLeft = exports.dragToMoveDown = exports.deleteRow = exports.deleteKey = exports.deleteColumn = exports.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copy = exports.continueInRovoChat = exports.clearFormatting = void 0;
85
+ exports.find = exports.escape = exports.enter = exports.dragToMoveUp = exports.dragToMoveRight = exports.dragToMoveLeft = exports.dragToMoveDown = exports.deleteRow = exports.deleteKey = exports.deleteColumn = exports.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copyLinkToBlock = exports.copy = exports.continueInRovoChat = exports.clearFormatting = void 0;
86
86
  exports.findKeyMapForBrowser = findKeyMapForBrowser;
87
87
  exports.findKeymapByDescription = findKeymapByDescription;
88
88
  exports.findShortcutByDescription = findShortcutByDescription;
@@ -102,8 +102,8 @@ Object.defineProperty(exports, "keymap", {
102
102
  exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
103
103
  exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
104
104
  exports.makeKeymap = makeKeymap;
105
- exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redoAlt = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
106
- exports.toggleViewChanges = exports.toggleUnderline = exports.toggleTaskList = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = void 0;
105
+ exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redoAlt = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
106
+ exports.toggleViewChanges = exports.toggleUnderline = exports.toggleTaskList = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = void 0;
107
107
  exports.tooltip = tooltip;
108
108
  exports.undo = void 0;
109
109
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
@@ -165,6 +165,7 @@ var redo = exports.redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
165
165
  var openHelp = exports.openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
166
166
  var addLink = exports.addLink = makeKeyMapWithCommon('Link', 'Mod-k');
167
167
  var addInlineComment = exports.addInlineComment = makeKeyMapWithCommon('Annotate', 'Mod-Alt-c');
168
+ var copyLinkToBlock = exports.copyLinkToBlock = makeKeyMapWithCommon('Copy link to block', 'Mod-Alt-a');
168
169
  var submit = exports.submit = makeKeyMapWithCommon('Submit Content', 'Mod-Enter');
169
170
  var enter = exports.enter = makeKeyMapWithCommon('Enter', 'Enter');
170
171
  var shiftEnter = exports.shiftEnter = makeKeyMapWithCommon('Shift Enter', 'Shift-Enter');
@@ -8,7 +8,6 @@ exports.wholeSelectionHasMarks = exports.isMarkExcluded = exports.isMarkAllowedI
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _model = require("@atlaskit/editor-prosemirror/model");
10
10
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
13
12
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -176,10 +175,7 @@ var wholeRangeHasMarks = function wholeRangeHasMarks(from, to, doc, markTypes) {
176
175
  _iterator3.f();
177
176
  }
178
177
  });
179
- if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true)) {
180
- return isTextContent ? hasMarks : hasNoMarks;
181
- }
182
- return hasMarks;
178
+ return isTextContent ? hasMarks : hasNoMarks;
183
179
  };
184
180
  var isMarkAllowedInRange = exports.isMarkAllowedInRange = function isMarkAllowedInRange(doc, ranges, type) {
185
181
  var _loop2 = function _loop2() {
@@ -241,11 +241,16 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
241
241
  defaultMessage: 'block {index}',
242
242
  description: 'Suffix for page title shown in synced location dropdown option when there are multiple references to the same page'
243
243
  },
244
- syncedLocationDropdownTitleNote: {
245
- id: 'fabric.editor.syncedLocationDropdownTitleNote',
244
+ syncedLocationDropdownTitleNoteForConfluencePage: {
245
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForConfluencePage',
246
246
  defaultMessage: 'This page',
247
247
  description: 'Note shown next to the page title in the synced location dropdown option when the sync block is on the current page'
248
248
  },
249
+ syncedLocationDropdownTitleNoteForJiraWorkItem: {
250
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForJiraWorkItem',
251
+ defaultMessage: 'This work item',
252
+ description: 'Note shown next to the work item title in the synced location dropdown option when the sync block is on the current work item'
253
+ },
249
254
  syncedLocationDropdownSourceLozenge: {
250
255
  id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
251
256
  defaultMessage: 'Source',
@@ -255,5 +260,10 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
255
260
  id: 'fabric.editor.syncedLocationDropdownRequestAccess',
256
261
  defaultMessage: 'Request access',
257
262
  description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
263
+ },
264
+ unsyncButton: {
265
+ id: 'fabric.editor.syncedBlock.unsync',
266
+ defaultMessage: 'Unsync',
267
+ description: 'Text on the button which unsyncs the sync block'
258
268
  }
259
269
  });
@@ -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 = "111.8.10";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -108,9 +108,7 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
108
108
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
109
109
  editorView.dispatch(tr.scrollIntoView());
110
110
  } else {
111
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
112
- editorView.dispatch(tr.setMeta('scrollIntoView', false));
113
- }
111
+ editorView.dispatch(tr.setMeta('scrollIntoView', false));
114
112
  }
115
113
  return true;
116
114
  }
@@ -12,7 +12,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
  var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
14
14
  var _model = require("@atlaskit/editor-prosemirror/model");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _analytics = require("../../analytics");
17
16
  var transformer = new _editorJsonTransformer.JSONTransformer();
18
17
  function toJSON(node) {
@@ -34,17 +33,15 @@ function createThrottleSchedule(callback) {
34
33
  }
35
34
  lastArgs = args;
36
35
  if (frameId) {
37
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
38
- if (lastArgsBefore) {
39
- var _lastArgsBefore = (0, _slicedToArray2.default)(lastArgsBefore, 5),
40
- _v = _lastArgsBefore[0],
41
- _c = _lastArgsBefore[1],
42
- _t = _lastArgsBefore[2],
43
- _f = _lastArgsBefore[3],
44
- alwaysFire = _lastArgsBefore[4];
45
- if (alwaysFire) {
46
- delayedCallbacks.push(lastArgsBefore);
47
- }
36
+ if (lastArgsBefore) {
37
+ var _lastArgsBefore = (0, _slicedToArray2.default)(lastArgsBefore, 5),
38
+ _v = _lastArgsBefore[0],
39
+ _c = _lastArgsBefore[1],
40
+ _t = _lastArgsBefore[2],
41
+ _f = _lastArgsBefore[3],
42
+ alwaysFire = _lastArgsBefore[4];
43
+ if (alwaysFire) {
44
+ delayedCallbacks.push(lastArgsBefore);
48
45
  }
49
46
  }
50
47
  return;
@@ -55,11 +52,9 @@ function createThrottleSchedule(callback) {
55
52
  frameId = delayFunction(function () {
56
53
  frameId = undefined;
57
54
  if (lastArgs) {
58
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
59
- delayedCallbacks.forEach(function (savedArgs) {
60
- callback.apply(void 0, (0, _toConsumableArray2.default)(savedArgs));
61
- });
62
- }
55
+ delayedCallbacks.forEach(function (savedArgs) {
56
+ callback.apply(void 0, (0, _toConsumableArray2.default)(savedArgs));
57
+ });
63
58
  callback.apply(void 0, (0, _toConsumableArray2.default)(lastArgs));
64
59
  }
65
60
  }, {
@@ -279,12 +279,6 @@ Object.defineProperty(exports, "resizerItemClassName", {
279
279
  return _resizer.resizerItemClassName;
280
280
  }
281
281
  });
282
- Object.defineProperty(exports, "resizerStyles", {
283
- enumerable: true,
284
- get: function get() {
285
- return _resizer.resizerStyles;
286
- }
287
- });
288
282
  Object.defineProperty(exports, "richMediaClassName", {
289
283
  enumerable: true,
290
284
  get: function get() {
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.handleWrapperClass = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleZIndex = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.handleWrapperClass = void 0;
12
7
  /*
13
8
  Styles in this file are based on
14
9
  packages/editor/editor-core/src/plugins/media/styles.ts
@@ -22,7 +17,4 @@ var resizerHandleThumbClassName = exports.resizerHandleThumbClassName = "".conca
22
17
  var resizerDangerClassName = exports.resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
23
18
  var handleWrapperClass = exports.handleWrapperClass = 'resizer-handle-wrapper';
24
19
  var resizerHandleThumbWidth = exports.resizerHandleThumbWidth = 3;
25
- var resizerHandleZIndex = exports.resizerHandleZIndex = 1;
26
-
27
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
28
- var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: flow-root;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #0B120E24)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FE)", "var(--ds-background-selected, #E9F2FE)", _editorSharedStyles.akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
20
+ var resizerHandleZIndex = exports.resizerHandleZIndex = 1;
@@ -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 = "111.8.10";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.calculateToolbarPositionTrackHeadOld = exports.calculateToolbarPositionTrackHeadNew = exports.calculateToolbarPositionTrackHead = exports.calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionAboveSelection = void 0;
7
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
8
8
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
10
  var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
12
11
 
@@ -131,7 +130,7 @@ var calculateToolbarPositionTrackHeadOld = exports.calculateToolbarPositionTrack
131
130
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
132
131
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
133
132
  var range = null;
134
- if (isMoreRovoOptionsButtonVisible && (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
133
+ if (isMoreRovoOptionsButtonVisible) {
135
134
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
136
135
  var maybeRange = selection.getRangeAt(0);
137
136
  if (maybeRange instanceof Range) {
@@ -219,7 +218,7 @@ var calculateToolbarPositionTrackHeadNew = exports.calculateToolbarPositionTrack
219
218
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
220
219
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
221
220
  var range = null;
222
- if (isMoreRovoOptionsButtonVisible && (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
221
+ if (isMoreRovoOptionsButtonVisible) {
223
222
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
224
223
  var maybeRange = selection.getRangeAt(0);
225
224
  if (maybeRange instanceof Range) {
@@ -15,7 +15,6 @@ exports.isSelectionEndOfParagraph = exports.isReplaceDocOperation = void 0;
15
15
  exports.nodesBetweenChanged = nodesBetweenChanged;
16
16
  var _clamp = _interopRequireDefault(require("lodash/clamp"));
17
17
  var _transform = require("@atlaskit/editor-prosemirror/transform");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _editorCoreUtils = require("./editor-core-utils");
20
19
  var getStepRange = exports.getStepRange = function getStepRange(transaction) {
21
20
  var from = -1;
@@ -24,14 +23,9 @@ var getStepRange = exports.getStepRange = function getStepRange(transaction) {
24
23
  stepMap.forEach(function (oldStart, oldEnd) {
25
24
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
26
25
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
27
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
28
- var docSize = transaction.doc.content.size;
29
- from = (0, _clamp.default)(newStart < from || from === -1 ? newStart : from, 0, docSize);
30
- to = (0, _clamp.default)(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
31
- } else {
32
- from = newStart < from || from === -1 ? newStart : from;
33
- to = newEnd > to || to === -1 ? newEnd : to;
34
- }
26
+ var docSize = transaction.doc.content.size;
27
+ from = (0, _clamp.default)(newStart < from || from === -1 ? newStart : from, 0, docSize);
28
+ to = (0, _clamp.default)(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
35
29
  });
36
30
  });
37
31
  if (from !== -1) {
@@ -52,6 +52,7 @@ export const redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
52
52
  export const openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
53
53
  export const addLink = makeKeyMapWithCommon('Link', 'Mod-k');
54
54
  export const addInlineComment = makeKeyMapWithCommon('Annotate', 'Mod-Alt-c');
55
+ export const copyLinkToBlock = makeKeyMapWithCommon('Copy link to block', 'Mod-Alt-a');
55
56
  export const submit = makeKeyMapWithCommon('Submit Content', 'Mod-Enter');
56
57
  export const enter = makeKeyMapWithCommon('Enter', 'Enter');
57
58
  export const shiftEnter = makeKeyMapWithCommon('Shift Enter', 'Shift-Enter');
@@ -1,6 +1,5 @@
1
1
  import { Mark } from '@atlaskit/editor-prosemirror/model';
2
2
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
 
5
4
  /**
6
5
  * Determine if a mark of a specific type exists anywhere in the selection.
@@ -117,10 +116,7 @@ const wholeRangeHasMarks = (from, to, doc, markTypes) => {
117
116
  hasMarks.set(markType, value);
118
117
  }
119
118
  });
120
- if (expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true)) {
121
- return isTextContent ? hasMarks : hasNoMarks;
122
- }
123
- return hasMarks;
119
+ return isTextContent ? hasMarks : hasNoMarks;
124
120
  };
125
121
  export const isMarkAllowedInRange = (doc, ranges, type) => {
126
122
  for (let i = 0; i < ranges.length; i++) {
@@ -235,11 +235,16 @@ export const syncBlockMessages = defineMessages({
235
235
  defaultMessage: 'block {index}',
236
236
  description: 'Suffix for page title shown in synced location dropdown option when there are multiple references to the same page'
237
237
  },
238
- syncedLocationDropdownTitleNote: {
239
- id: 'fabric.editor.syncedLocationDropdownTitleNote',
238
+ syncedLocationDropdownTitleNoteForConfluencePage: {
239
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForConfluencePage',
240
240
  defaultMessage: 'This page',
241
241
  description: 'Note shown next to the page title in the synced location dropdown option when the sync block is on the current page'
242
242
  },
243
+ syncedLocationDropdownTitleNoteForJiraWorkItem: {
244
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForJiraWorkItem',
245
+ defaultMessage: 'This work item',
246
+ description: 'Note shown next to the work item title in the synced location dropdown option when the sync block is on the current work item'
247
+ },
243
248
  syncedLocationDropdownSourceLozenge: {
244
249
  id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
245
250
  defaultMessage: 'Source',
@@ -249,5 +254,10 @@ export const syncBlockMessages = defineMessages({
249
254
  id: 'fabric.editor.syncedLocationDropdownRequestAccess',
250
255
  defaultMessage: 'Request access',
251
256
  description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
257
+ },
258
+ unsyncButton: {
259
+ id: 'fabric.editor.syncedBlock.unsync',
260
+ defaultMessage: 'Unsync',
261
+ description: 'Text on the button which unsyncs the sync block'
252
262
  }
253
263
  });
@@ -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 = "111.8.10";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -110,9 +110,7 @@ export const corePlugin = ({
110
110
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
111
111
  editorView.dispatch(tr.scrollIntoView());
112
112
  } else {
113
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
114
- editorView.dispatch(tr.setMeta('scrollIntoView', false));
115
- }
113
+ editorView.dispatch(tr.setMeta('scrollIntoView', false));
116
114
  }
117
115
  return true;
118
116
  }
@@ -1,6 +1,5 @@
1
1
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
2
2
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
5
4
  const transformer = new JSONTransformer();
6
5
  export function toJSON(node) {
@@ -19,12 +18,10 @@ export function createThrottleSchedule(callback) {
19
18
  const lastArgsBefore = lastArgs;
20
19
  lastArgs = args;
21
20
  if (frameId) {
22
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
23
- if (lastArgsBefore) {
24
- const [_v, _c, _t, _f, alwaysFire] = lastArgsBefore;
25
- if (alwaysFire) {
26
- delayedCallbacks.push(lastArgsBefore);
27
- }
21
+ if (lastArgsBefore) {
22
+ const [_v, _c, _t, _f, alwaysFire] = lastArgsBefore;
23
+ if (alwaysFire) {
24
+ delayedCallbacks.push(lastArgsBefore);
28
25
  }
29
26
  }
30
27
  return;
@@ -35,11 +32,9 @@ export function createThrottleSchedule(callback) {
35
32
  frameId = delayFunction(() => {
36
33
  frameId = undefined;
37
34
  if (lastArgs) {
38
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
39
- delayedCallbacks.forEach(savedArgs => {
40
- callback(...savedArgs);
41
- });
42
- }
35
+ delayedCallbacks.forEach(savedArgs => {
36
+ callback(...savedArgs);
37
+ });
43
38
  callback(...lastArgs);
44
39
  }
45
40
  }, {
@@ -15,7 +15,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
15
15
  export { CodeBlockSharedCssClassName } from './shared/code-block';
16
16
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH } from './shared/layout';
17
17
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
18
- export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
18
+ export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
19
19
  export { GRID_GUTTER } from './shared/grid';
20
20
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
21
21
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
@@ -1,6 +1,3 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import { css } from '@emotion/react';
3
- import { akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
1
  /*
5
2
  Styles in this file are based on
6
3
  packages/editor/editor-core/src/plugins/media/styles.ts
@@ -14,202 +11,4 @@ export const resizerHandleThumbClassName = `${resizerHandleClassName}-thumb`;
14
11
  export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
15
12
  export const handleWrapperClass = 'resizer-handle-wrapper';
16
13
  export const resizerHandleThumbWidth = 3;
17
- export const resizerHandleZIndex = 1;
18
-
19
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
20
- export const resizerStyles = css`
21
- .${resizerItemClassName} {
22
- will-change: width;
23
-
24
- &:hover,
25
- &.display-handle {
26
- & > .${handleWrapperClass} > .${resizerHandleClassName} {
27
- visibility: visible;
28
- opacity: 1;
29
- }
30
- }
31
-
32
- &.is-resizing {
33
- & .${resizerHandleThumbClassName} {
34
- background: ${"var(--ds-border-focused, #4688EC)"};
35
- }
36
- }
37
-
38
- &.${resizerDangerClassName} {
39
- & .${resizerHandleThumbClassName} {
40
- transition: none;
41
- background: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`};
42
- }
43
- }
44
- }
45
-
46
- .${resizerHandleClassName} {
47
- display: flex;
48
- visibility: hidden;
49
- opacity: 0;
50
- flex-direction: column;
51
- justify-content: center;
52
- align-items: center;
53
- width: 7px;
54
- transition:
55
- visibility 0.2s,
56
- opacity 0.2s;
57
-
58
- /*
59
- NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles
60
- into the tooltip
61
- */
62
- & div[role='presentation'] {
63
- width: 100%;
64
- height: 100%;
65
- display: flex;
66
- flex-direction: column;
67
- justify-content: center;
68
- align-items: center;
69
- margin-top: ${"var(--ds-space-negative-200, -16px)"};
70
- white-space: normal;
71
- }
72
-
73
- /*
74
- Handle Positions
75
- */
76
- &.left {
77
- align-items: flex-start;
78
- }
79
- &.right {
80
- align-items: flex-end;
81
- }
82
-
83
- /*
84
- Handle Sizing
85
- */
86
- &.small {
87
- & .${resizerHandleThumbClassName} {
88
- height: 43px;
89
- }
90
- }
91
- &.medium {
92
- & .${resizerHandleThumbClassName} {
93
- height: 64px;
94
- }
95
- }
96
- &.large {
97
- & .${resizerHandleThumbClassName} {
98
- height: 96px;
99
- }
100
- }
101
- &.clamped {
102
- & .${resizerHandleThumbClassName} {
103
- height: clamp(43px, calc(100% - 32px), 96px);
104
- }
105
- }
106
-
107
- /*
108
- Handle Alignment
109
- */
110
- &.sticky {
111
- & .${resizerHandleThumbClassName} {
112
- position: sticky;
113
- top: ${"var(--ds-space-150, 12px)"};
114
- bottom: ${"var(--ds-space-150, 12px)"};
115
- }
116
- }
117
-
118
- &:hover {
119
- & .${resizerHandleThumbClassName} {
120
- background: ${"var(--ds-border-focused, #4688EC)"};
121
- }
122
-
123
- & .${resizerHandleTrackClassName} {
124
- visibility: visible;
125
- opacity: 0.5;
126
- }
127
- }
128
- }
129
-
130
- .${resizerHandleThumbClassName} {
131
- content: ' ';
132
- display: flex;
133
- width: 3px;
134
- margin: 0 ${"var(--ds-space-025, 2px)"};
135
- height: 64px;
136
- transition: background-color 0.2s;
137
- border-radius: 6px;
138
- border: 0;
139
- padding: 0;
140
- z-index: 2;
141
- outline: none;
142
- min-height: 24px;
143
- background: ${"var(--ds-border, #0B120E24)"};
144
-
145
- &:hover {
146
- cursor: col-resize;
147
- }
148
-
149
- &:focus {
150
- background: ${"var(--ds-border-selected, #0C66E4)"};
151
-
152
- &::after {
153
- content: '';
154
- position: absolute;
155
- top: ${"var(--ds-space-negative-050, -4px)"};
156
- right: ${"var(--ds-space-negative-050, -4px)"};
157
- bottom: ${"var(--ds-space-negative-050, -4px)"};
158
- left: ${"var(--ds-space-negative-050, -4px)"};
159
- border: 2px solid ${"var(--ds-border-focused, #388BFF)"};
160
- border-radius: inherit;
161
- z-index: -1;
162
- }
163
- }
164
- }
165
-
166
- .${resizerHandleTrackClassName} {
167
- visibility: hidden;
168
- position: absolute;
169
- width: 7px;
170
- height: calc(100% - 40px);
171
- border-radius: 4px;
172
- opacity: 0;
173
- transition:
174
- background-color 0.2s,
175
- visibility 0.2s,
176
- opacity 0.2s;
177
-
178
- &.none {
179
- background: none;
180
- }
181
-
182
- &.shadow {
183
- background: ${"var(--ds-background-selected, #E9F2FE)"};
184
- }
185
-
186
- &.full-height {
187
- background: ${"var(--ds-background-selected, #E9F2FE)"};
188
- height: 100%;
189
- min-height: 36px;
190
- }
191
- }
192
-
193
- .${akEditorSelectedNodeClassName} {
194
- & .${resizerHandleThumbClassName} {
195
- background: ${"var(--ds-border-focused, #4688EC)"};
196
- }
197
- }
198
-
199
- .${resizerHoverZoneClassName} {
200
- position: relative;
201
- display: flow-root;
202
- width: 100%;
203
-
204
- &.${resizerExtendedZone} {
205
- padding: 0 ${"var(--ds-space-150, 12px)"};
206
- left: ${"var(--ds-space-negative-150, -12px)"};
207
- }
208
- }
209
-
210
- /* This below style is here to make sure the image width is correct when nested in a table */
211
- table .${resizerHoverZoneClassName}, table .${resizerHoverZoneClassName}.${resizerExtendedZone} {
212
- padding: unset;
213
- left: unset;
214
- }
215
- `;
14
+ export const resizerHandleZIndex = 1;
@@ -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 = "111.8.10";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,6 +1,5 @@
1
1
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  const MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
6
5
 
@@ -124,7 +123,7 @@ export const calculateToolbarPositionTrackHeadOld = toolbarTitle => (editorView,
124
123
  const moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
125
124
  const isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
126
125
  let range = null;
127
- if (isMoreRovoOptionsButtonVisible && fg('platform_editor_ai_generic_prep_for_aifc')) {
126
+ if (isMoreRovoOptionsButtonVisible) {
128
127
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
129
128
  const maybeRange = selection.getRangeAt(0);
130
129
  if (maybeRange instanceof Range) {
@@ -214,7 +213,7 @@ export const calculateToolbarPositionTrackHeadNew = toolbarTitle => {
214
213
  const moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
215
214
  const isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
216
215
  let range = null;
217
- if (isMoreRovoOptionsButtonVisible && fg('platform_editor_ai_generic_prep_for_aifc')) {
216
+ if (isMoreRovoOptionsButtonVisible) {
218
217
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
219
218
  const maybeRange = selection.getRangeAt(0);
220
219
  if (maybeRange instanceof Range) {
@@ -1,6 +1,5 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { isEmptyParagraph } from './editor-core-utils';
5
4
  export const getStepRange = transaction => {
6
5
  let from = -1;
@@ -9,14 +8,9 @@ export const getStepRange = transaction => {
9
8
  stepMap.forEach((oldStart, oldEnd) => {
10
9
  const newStart = transaction.mapping.slice(index).map(oldStart, -1);
11
10
  const newEnd = transaction.mapping.slice(index).map(oldEnd);
12
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
13
- const docSize = transaction.doc.content.size;
14
- from = clamp(newStart < from || from === -1 ? newStart : from, 0, docSize);
15
- to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
16
- } else {
17
- from = newStart < from || from === -1 ? newStart : from;
18
- to = newEnd > to || to === -1 ? newEnd : to;
19
- }
11
+ const docSize = transaction.doc.content.size;
12
+ from = clamp(newStart < from || from === -1 ? newStart : from, 0, docSize);
13
+ to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
20
14
  });
21
15
  });
22
16
  if (from !== -1) {
@@ -53,6 +53,7 @@ export var redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
53
53
  export var openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
54
54
  export var addLink = makeKeyMapWithCommon('Link', 'Mod-k');
55
55
  export var addInlineComment = makeKeyMapWithCommon('Annotate', 'Mod-Alt-c');
56
+ export var copyLinkToBlock = makeKeyMapWithCommon('Copy link to block', 'Mod-Alt-a');
56
57
  export var submit = makeKeyMapWithCommon('Submit Content', 'Mod-Enter');
57
58
  export var enter = makeKeyMapWithCommon('Enter', 'Enter');
58
59
  export var shiftEnter = makeKeyMapWithCommon('Shift Enter', 'Shift-Enter');
@@ -4,7 +4,6 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  import { Mark } from '@atlaskit/editor-prosemirror/model';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
 
9
8
  /**
10
9
  * Determine if a mark of a specific type exists anywhere in the selection.
@@ -170,10 +169,7 @@ var wholeRangeHasMarks = function wholeRangeHasMarks(from, to, doc, markTypes) {
170
169
  _iterator3.f();
171
170
  }
172
171
  });
173
- if (expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true)) {
174
- return isTextContent ? hasMarks : hasNoMarks;
175
- }
176
- return hasMarks;
172
+ return isTextContent ? hasMarks : hasNoMarks;
177
173
  };
178
174
  export var isMarkAllowedInRange = function isMarkAllowedInRange(doc, ranges, type) {
179
175
  var _loop2 = function _loop2() {
@@ -235,11 +235,16 @@ export var syncBlockMessages = defineMessages({
235
235
  defaultMessage: 'block {index}',
236
236
  description: 'Suffix for page title shown in synced location dropdown option when there are multiple references to the same page'
237
237
  },
238
- syncedLocationDropdownTitleNote: {
239
- id: 'fabric.editor.syncedLocationDropdownTitleNote',
238
+ syncedLocationDropdownTitleNoteForConfluencePage: {
239
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForConfluencePage',
240
240
  defaultMessage: 'This page',
241
241
  description: 'Note shown next to the page title in the synced location dropdown option when the sync block is on the current page'
242
242
  },
243
+ syncedLocationDropdownTitleNoteForJiraWorkItem: {
244
+ id: 'fabric.editor.syncedLocationDropdownTitleNoteForJiraWorkItem',
245
+ defaultMessage: 'This work item',
246
+ description: 'Note shown next to the work item title in the synced location dropdown option when the sync block is on the current work item'
247
+ },
243
248
  syncedLocationDropdownSourceLozenge: {
244
249
  id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
245
250
  defaultMessage: 'Source',
@@ -249,5 +254,10 @@ export var syncBlockMessages = defineMessages({
249
254
  id: 'fabric.editor.syncedLocationDropdownRequestAccess',
250
255
  defaultMessage: 'Request access',
251
256
  description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
257
+ },
258
+ unsyncButton: {
259
+ id: 'fabric.editor.syncedBlock.unsync',
260
+ defaultMessage: 'Unsync',
261
+ description: 'Text on the button which unsyncs the sync block'
252
262
  }
253
263
  });
@@ -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 = "111.8.10";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -103,9 +103,7 @@ export var corePlugin = function corePlugin(_ref) {
103
103
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
104
104
  editorView.dispatch(tr.scrollIntoView());
105
105
  } else {
106
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
107
- editorView.dispatch(tr.setMeta('scrollIntoView', false));
108
- }
106
+ editorView.dispatch(tr.setMeta('scrollIntoView', false));
109
107
  }
110
108
  return true;
111
109
  }
@@ -2,7 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
4
4
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
7
6
  var transformer = new JSONTransformer();
8
7
  export function toJSON(node) {
@@ -24,17 +23,15 @@ export function createThrottleSchedule(callback) {
24
23
  }
25
24
  lastArgs = args;
26
25
  if (frameId) {
27
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
28
- if (lastArgsBefore) {
29
- var _lastArgsBefore = _slicedToArray(lastArgsBefore, 5),
30
- _v = _lastArgsBefore[0],
31
- _c = _lastArgsBefore[1],
32
- _t = _lastArgsBefore[2],
33
- _f = _lastArgsBefore[3],
34
- alwaysFire = _lastArgsBefore[4];
35
- if (alwaysFire) {
36
- delayedCallbacks.push(lastArgsBefore);
37
- }
26
+ if (lastArgsBefore) {
27
+ var _lastArgsBefore = _slicedToArray(lastArgsBefore, 5),
28
+ _v = _lastArgsBefore[0],
29
+ _c = _lastArgsBefore[1],
30
+ _t = _lastArgsBefore[2],
31
+ _f = _lastArgsBefore[3],
32
+ alwaysFire = _lastArgsBefore[4];
33
+ if (alwaysFire) {
34
+ delayedCallbacks.push(lastArgsBefore);
38
35
  }
39
36
  }
40
37
  return;
@@ -45,11 +42,9 @@ export function createThrottleSchedule(callback) {
45
42
  frameId = delayFunction(function () {
46
43
  frameId = undefined;
47
44
  if (lastArgs) {
48
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
49
- delayedCallbacks.forEach(function (savedArgs) {
50
- callback.apply(void 0, _toConsumableArray(savedArgs));
51
- });
52
- }
45
+ delayedCallbacks.forEach(function (savedArgs) {
46
+ callback.apply(void 0, _toConsumableArray(savedArgs));
47
+ });
53
48
  callback.apply(void 0, _toConsumableArray(lastArgs));
54
49
  }
55
50
  }, {
@@ -15,7 +15,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
15
15
  export { CodeBlockSharedCssClassName } from './shared/code-block';
16
16
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH } from './shared/layout';
17
17
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
18
- export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
18
+ export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
19
19
  export { GRID_GUTTER } from './shared/grid';
20
20
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
21
21
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
@@ -1,8 +1,3 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import { css } from '@emotion/react';
5
- import { akEditorDeleteIconColor, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
6
1
  /*
7
2
  Styles in this file are based on
8
3
  packages/editor/editor-core/src/plugins/media/styles.ts
@@ -16,7 +11,4 @@ export var resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thu
16
11
  export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
17
12
  export var handleWrapperClass = 'resizer-handle-wrapper';
18
13
  export var resizerHandleThumbWidth = 3;
19
- export var resizerHandleZIndex = 1;
20
-
21
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
22
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\t\t&.clamped {\n\t\t\t& .", " {\n\t\t\t\theight: clamp(43px, calc(100% - 32px), 96px);\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: flow-root;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t/* This below style is here to make sure the image width is correct when nested in a table */\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #0B120E24)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FE)", "var(--ds-background-selected, #E9F2FE)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #4688EC)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
14
+ export var resizerHandleZIndex = 1;
@@ -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 = "111.8.10";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,6 +1,5 @@
1
1
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
6
5
 
@@ -125,7 +124,7 @@ export var calculateToolbarPositionTrackHeadOld = function calculateToolbarPosit
125
124
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
126
125
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
127
126
  var range = null;
128
- if (isMoreRovoOptionsButtonVisible && fg('platform_editor_ai_generic_prep_for_aifc')) {
127
+ if (isMoreRovoOptionsButtonVisible) {
129
128
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
130
129
  var maybeRange = selection.getRangeAt(0);
131
130
  if (maybeRange instanceof Range) {
@@ -213,7 +212,7 @@ export var calculateToolbarPositionTrackHeadNew = function calculateToolbarPosit
213
212
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
214
213
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
215
214
  var range = null;
216
- if (isMoreRovoOptionsButtonVisible && fg('platform_editor_ai_generic_prep_for_aifc')) {
215
+ if (isMoreRovoOptionsButtonVisible) {
217
216
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
218
217
  var maybeRange = selection.getRangeAt(0);
219
218
  if (maybeRange instanceof Range) {
@@ -1,6 +1,5 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { isEmptyParagraph } from './editor-core-utils';
5
4
  export var getStepRange = function getStepRange(transaction) {
6
5
  var from = -1;
@@ -9,14 +8,9 @@ export var getStepRange = function getStepRange(transaction) {
9
8
  stepMap.forEach(function (oldStart, oldEnd) {
10
9
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
11
10
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
12
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
13
- var docSize = transaction.doc.content.size;
14
- from = clamp(newStart < from || from === -1 ? newStart : from, 0, docSize);
15
- to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
16
- } else {
17
- from = newStart < from || from === -1 ? newStart : from;
18
- to = newEnd > to || to === -1 ? newEnd : to;
19
- }
11
+ var docSize = transaction.doc.content.size;
12
+ from = clamp(newStart < from || from === -1 ? newStart : from, 0, docSize);
13
+ to = clamp(newEnd > to || to === -1 ? newEnd : to, 0, docSize);
20
14
  });
21
15
  });
22
16
  if (from !== -1) {
@@ -48,6 +48,7 @@ export declare const redo: Keymap;
48
48
  export declare const openHelp: Keymap;
49
49
  export declare const addLink: Keymap;
50
50
  export declare const addInlineComment: Keymap;
51
+ export declare const copyLinkToBlock: Keymap;
51
52
  export declare const submit: Keymap;
52
53
  export declare const enter: Keymap;
53
54
  export declare const shiftEnter: Keymap;
@@ -234,7 +234,12 @@ export declare const syncBlockMessages: {
234
234
  defaultMessage: string;
235
235
  description: string;
236
236
  };
237
- syncedLocationDropdownTitleNote: {
237
+ syncedLocationDropdownTitleNoteForConfluencePage: {
238
+ id: string;
239
+ defaultMessage: string;
240
+ description: string;
241
+ };
242
+ syncedLocationDropdownTitleNoteForJiraWorkItem: {
238
243
  id: string;
239
244
  defaultMessage: string;
240
245
  description: string;
@@ -249,4 +254,9 @@ export declare const syncBlockMessages: {
249
254
  defaultMessage: string;
250
255
  description: string;
251
256
  };
257
+ unsyncButton: {
258
+ id: string;
259
+ defaultMessage: string;
260
+ description: string;
261
+ };
252
262
  };
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
12
12
  export { CodeBlockSharedCssClassName } from './shared/code-block';
13
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
14
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
15
- export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
15
+ export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
16
  export { GRID_GUTTER } from './shared/grid';
17
17
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
18
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
@@ -1,4 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const resizerItemClassName = "resizer-item";
3
2
  export declare const resizerHoverZoneClassName = "resizer-hover-zone";
4
3
  export declare const resizerExtendedZone = "resizer-is-extended";
@@ -9,4 +8,3 @@ export declare const resizerDangerClassName = "resizer-handle-danger";
9
8
  export declare const handleWrapperClass = "resizer-handle-wrapper";
10
9
  export declare const resizerHandleThumbWidth = 3;
11
10
  export declare const resizerHandleZIndex = 1;
12
- export declare const resizerStyles: SerializedStyles;
@@ -48,6 +48,7 @@ export declare const redo: Keymap;
48
48
  export declare const openHelp: Keymap;
49
49
  export declare const addLink: Keymap;
50
50
  export declare const addInlineComment: Keymap;
51
+ export declare const copyLinkToBlock: Keymap;
51
52
  export declare const submit: Keymap;
52
53
  export declare const enter: Keymap;
53
54
  export declare const shiftEnter: Keymap;
@@ -234,7 +234,12 @@ export declare const syncBlockMessages: {
234
234
  defaultMessage: string;
235
235
  description: string;
236
236
  };
237
- syncedLocationDropdownTitleNote: {
237
+ syncedLocationDropdownTitleNoteForConfluencePage: {
238
+ id: string;
239
+ defaultMessage: string;
240
+ description: string;
241
+ };
242
+ syncedLocationDropdownTitleNoteForJiraWorkItem: {
238
243
  id: string;
239
244
  defaultMessage: string;
240
245
  description: string;
@@ -249,4 +254,9 @@ export declare const syncBlockMessages: {
249
254
  defaultMessage: string;
250
255
  description: string;
251
256
  };
257
+ unsyncButton: {
258
+ id: string;
259
+ defaultMessage: string;
260
+ description: string;
261
+ };
252
262
  };
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
12
12
  export { CodeBlockSharedCssClassName } from './shared/code-block';
13
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
14
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
15
- export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
15
+ export { resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
16
  export { GRID_GUTTER } from './shared/grid';
17
17
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
18
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
@@ -1,4 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const resizerItemClassName = "resizer-item";
3
2
  export declare const resizerHoverZoneClassName = "resizer-hover-zone";
4
3
  export declare const resizerExtendedZone = "resizer-is-extended";
@@ -9,4 +8,3 @@ export declare const resizerDangerClassName = "resizer-handle-danger";
9
8
  export declare const handleWrapperClass = "resizer-handle-wrapper";
10
9
  export declare const resizerHandleThumbWidth = 3;
11
10
  export declare const resizerHandleZIndex = 1;
12
- export declare const resizerStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.8.10",
3
+ "version": "111.8.11",
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.1.0",
73
- "@atlaskit/profilecard": "^24.31.0",
73
+ "@atlaskit/profilecard": "^24.32.0",
74
74
  "@atlaskit/prosemirror-history": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^5.0.0",
76
76
  "@atlaskit/section-message": "^8.12.0",
@@ -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": "^16.29.0",
84
+ "@atlaskit/tmp-editor-statsig": "^16.30.0",
85
85
  "@atlaskit/tokens": "^10.1.0",
86
86
  "@atlaskit/tooltip": "^20.14.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",
@@ -175,9 +175,6 @@
175
175
  "platform_editor_blocktaskitem_patch_3": {
176
176
  "type": "boolean"
177
177
  },
178
- "platform_editor_ai_generic_prep_for_aifc": {
179
- "type": "boolean"
180
- },
181
178
  "platform-visual-refresh-icons": {
182
179
  "type": "boolean"
183
180
  },