@atlaskit/editor-common 89.3.1 → 90.0.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/lists/node.js +1 -13
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/styles/index.js +0 -6
  5. package/dist/cjs/styles/shared/blockquote.js +1 -47
  6. package/dist/cjs/styles/shared/panel.js +1 -2
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/utils/index.js +0 -12
  9. package/dist/cjs/utils/list.js +1 -12
  10. package/dist/cjs/utils/processRawValue.js +16 -1
  11. package/dist/es2019/lists/node.js +2 -14
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/styles/index.js +1 -1
  14. package/dist/es2019/styles/shared/blockquote.js +0 -46
  15. package/dist/es2019/styles/shared/panel.js +1 -2
  16. package/dist/es2019/ui/DropList/index.js +1 -1
  17. package/dist/es2019/utils/index.js +1 -1
  18. package/dist/es2019/utils/list.js +1 -10
  19. package/dist/es2019/utils/processRawValue.js +16 -1
  20. package/dist/esm/lists/node.js +2 -14
  21. package/dist/esm/monitoring/error.js +1 -1
  22. package/dist/esm/styles/index.js +1 -1
  23. package/dist/esm/styles/shared/blockquote.js +0 -46
  24. package/dist/esm/styles/shared/panel.js +1 -2
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/esm/utils/index.js +1 -1
  27. package/dist/esm/utils/list.js +1 -10
  28. package/dist/esm/utils/processRawValue.js +16 -1
  29. package/dist/types/analytics/types/element-events.d.ts +1 -0
  30. package/dist/types/analytics/types/move-content-events.d.ts +2 -0
  31. package/dist/types/styles/index.d.ts +1 -1
  32. package/dist/types/styles/shared/blockquote.d.ts +0 -1
  33. package/dist/types/utils/index.d.ts +1 -1
  34. package/dist/types/utils/list.d.ts +0 -2
  35. package/dist/types/utils/processRawValue.d.ts +1 -1
  36. package/dist/types-ts4.5/analytics/types/element-events.d.ts +1 -0
  37. package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +2 -0
  38. package/dist/types-ts4.5/styles/index.d.ts +1 -1
  39. package/dist/types-ts4.5/styles/shared/blockquote.d.ts +0 -1
  40. package/dist/types-ts4.5/utils/index.d.ts +1 -1
  41. package/dist/types-ts4.5/utils/list.d.ts +0 -2
  42. package/dist/types-ts4.5/utils/processRawValue.d.ts +1 -1
  43. package/package.json +5 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 90.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#142806](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142806)
8
+ [`f73667130fb7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f73667130fb7d) -
9
+ [ux] Update styles for nested dnd to only apply to full page editor. Removed
10
+ blockquoteSharedStylesNew export.
11
+
12
+ ### Patch Changes
13
+
14
+ - [#142433](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142433)
15
+ [`896303d4b4390`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/896303d4b4390) -
16
+ ED-24552 Update document moved event to fire when nested nodes are cut/paste into nodes and add
17
+ nodeDepth attributes
18
+ - Updated dependencies
19
+
20
+ ## 89.3.2
21
+
22
+ ### Patch Changes
23
+
24
+ - [#141728](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141728)
25
+ [`4de004a0f879d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4de004a0f879d) -
26
+ [ux] EDF-1388: Cleanup platform.editor.ordered-list-auto-join-improvements_mrlv5 and paths
27
+ - [#141037](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141037)
28
+ [`0c5cb40ae3a67`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c5cb40ae3a67) -
29
+ Consider string documents when not validating incoming documents in Confluence Cloud
30
+ - Updated dependencies
31
+
3
32
  ## 89.3.1
4
33
 
5
34
  ### Patch Changes
@@ -7,7 +7,6 @@ exports.JoinDirection = void 0;
7
7
  exports.isListNodeValidContent = isListNodeValidContent;
8
8
  exports.processNestedTaskListsInSameLevel = exports.joinSiblingLists = void 0;
9
9
  var _model = require("@atlaskit/editor-prosemirror/model");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _utils = require("../utils");
12
11
  var _replaceContent = require("./replace-content");
13
12
  function isListNodeValidContent(node) {
@@ -51,9 +50,6 @@ var joinSiblingLists = exports.joinSiblingLists = function joinSiblingLists(_ref
51
50
  if (!nodeBefore || !nodeAfter || !(0, _utils.isListNode)(nodeBefore) || !(0, _utils.isListNode)(nodeAfter)) {
52
51
  return;
53
52
  }
54
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.ordered-list-auto-join-improvements_mrlv5') && (0, _utils.isOrderedList)(nodeBefore) && (0, _utils.isOrderedList)(nodeAfter) && !(0, _utils.isOrderedListContinuous)(nodeBefore, nodeAfter)) {
55
- return;
56
- }
57
53
  var isNestedList = (0, _utils.isListItemNode)(parent);
58
54
  if (!isNestedList && nodeBefore.type !== nodeAfter.type && !forceListType) {
59
55
  return;
@@ -84,15 +80,7 @@ var joinSiblingLists = exports.joinSiblingLists = function joinSiblingLists(_ref
84
80
  var nodeBefore = resolvedPos.nodeBefore,
85
81
  nodeAfter = resolvedPos.nodeAfter;
86
82
  if (nodeBefore && nodeAfter && (0, _utils.isListNode)(nodeBefore) && (0, _utils.isListNode)(nodeAfter) && nodeAfter.type === nodeBefore.type) {
87
- if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.ordered-list-auto-join-improvements_mrlv5') ||
88
- /**
89
- * Both lists have the same type so one check is sufficient.
90
- * If the lists are ordered, only join if continuous.
91
- * Otherwise, if unordered, always join.
92
- */
93
- !(0, _utils.isOrderedList)(nodeBefore) || (0, _utils.isOrderedListContinuous)(nodeBefore, nodeAfter)) {
94
- joins.push(resolvedPos.pos);
95
- }
83
+ joins.push(resolvedPos.pos);
96
84
  }
97
85
  }
98
86
  for (var i = joins.length - 1; i >= 0; i--) {
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "89.3.1";
20
+ var packageVersion = "90.0.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -153,12 +153,6 @@ Object.defineProperty(exports, "blockquoteSharedStyles", {
153
153
  return _blockquote.blockquoteSharedStyles;
154
154
  }
155
155
  });
156
- Object.defineProperty(exports, "blockquoteSharedStylesNew", {
157
- enumerable: true,
158
- get: function get() {
159
- return _blockquote.blockquoteSharedStylesNew;
160
- }
161
- });
162
156
  Object.defineProperty(exports, "buttonGroupStyle", {
163
157
  enumerable: true,
164
158
  get: function get() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.blockquoteSharedStylesNew = exports.blockquoteSharedStyles = void 0;
6
+ exports.blockquoteSharedStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -52,50 +52,4 @@ var blockquoteSharedStyles = exports.blockquoteSharedStyles = (0, _react.css)({
52
52
  display: 'block'
53
53
  }
54
54
  }
55
- });
56
-
57
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
58
- var blockquoteSharedStylesNew = exports.blockquoteSharedStylesNew = (0, _react.css)({
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
60
- '& blockquote': {
61
- boxSizing: 'border-box',
62
- color: 'inherit',
63
- width: '100%',
64
- clear: 'both',
65
- display: 'inline-block',
66
- paddingLeft: "var(--ds-space-250, 20px)",
67
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
68
- borderLeft: "2px solid ".concat("var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")")),
69
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
70
- margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0 0"),
71
- marginRight: 0,
72
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
73
- "[dir='rtl'] &": {
74
- paddingLeft: 0,
75
- paddingRight: "var(--ds-space-200, 16px)"
76
- },
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
78
- '&:first-child': {
79
- marginTop: 0
80
- },
81
- '&::before': {
82
- content: "''"
83
- },
84
- '&::after': {
85
- content: 'none'
86
- },
87
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
88
- '& p': {
89
- display: 'block'
90
- },
91
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
92
- '& table, & table:last-child': {
93
- display: 'inline-table'
94
- },
95
- // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
97
- '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
98
- display: 'block'
99
- }
100
- }
101
55
  });
@@ -17,7 +17,6 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _consts = require("@atlaskit/editor-shared-styles/consts");
18
18
  var _emoji = require("@atlaskit/emoji");
19
19
  var _colors = require("@atlaskit/theme/colors");
20
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
20
  var _templateObject;
22
21
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
23
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -172,7 +171,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
172
171
 
173
172
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
174
173
  var panelSharedStylesWithoutPrefix = exports.panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
175
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", (0, _experiments.editorExperiment)('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)", iconDynamicStyles(_adfSchema.PanelType.INFO), _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.NOTE), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.TIP), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.WARNING), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.ERROR), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.SUCCESS));
174
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(_adfSchema.PanelType.INFO), _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.NOTE), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.TIP), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.WARNING), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.ERROR), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.SUCCESS));
176
175
  };
177
176
  var panelSharedStyles = exports.panelSharedStyles = function panelSharedStyles() {
178
177
  return (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
25
25
  * @jsx jsx
26
26
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
27
  var packageName = "@atlaskit/editor-common";
28
- var packageVersion = "89.3.1";
28
+ var packageVersion = "90.0.0";
29
29
  var halfFocusRing = 1;
30
30
  var dropOffset = '0, 8';
31
31
  var DropList = /*#__PURE__*/function (_Component) {
@@ -719,18 +719,6 @@ Object.defineProperty(exports, "isNodeSelectedOrInRange", {
719
719
  return _nodes.isNodeSelectedOrInRange;
720
720
  }
721
721
  });
722
- Object.defineProperty(exports, "isOrderedList", {
723
- enumerable: true,
724
- get: function get() {
725
- return _list.isOrderedList;
726
- }
727
- });
728
- Object.defineProperty(exports, "isOrderedListContinuous", {
729
- enumerable: true,
730
- get: function get() {
731
- return _list.isOrderedListContinuous;
732
- }
733
- });
734
722
  Object.defineProperty(exports, "isOutdatedBrowser", {
735
723
  enumerable: true,
736
724
  get: function get() {
@@ -7,8 +7,6 @@ exports.getOrderFromOrderedListNode = exports.getItemCounterDigitsSize = exports
7
7
  exports.isBulletList = isBulletList;
8
8
  exports.isListItemNode = isListItemNode;
9
9
  exports.isListNode = isListNode;
10
- exports.isOrderedList = isOrderedList;
11
- exports.isOrderedListContinuous = void 0;
12
10
  exports.isParagraphNode = isParagraphNode;
13
11
  exports.resolveOrder = void 0;
14
12
  // File has been copied to packages/editor/editor-plugin-ai/src/provider/prosemirror-transformer/utils/list.ts
@@ -52,13 +50,4 @@ function isListItemNode(node) {
52
50
  }
53
51
  function isBulletList(node) {
54
52
  return Boolean(node && node.type && 'bulletList' === node.type.name);
55
- }
56
- function isOrderedList(node) {
57
- return Boolean(node && node.type && 'orderedList' === node.type.name);
58
- }
59
- var isOrderedListContinuous = exports.isOrderedListContinuous = function isOrderedListContinuous(firstOrderedList, secondOrderedList) {
60
- if (!(isOrderedList(firstOrderedList) && isOrderedList(secondOrderedList))) {
61
- return false;
62
- }
63
- return getOrderFromOrderedListNode(firstOrderedList) + firstOrderedList.childCount === getOrderFromOrderedListNode(secondOrderedList);
64
- };
53
+ }
@@ -12,7 +12,22 @@ var _privacyFilter = require("./filter/privacy-filter");
12
12
  var _trackUnsupportedContent = require("./track-unsupported-content");
13
13
  var _validateUsingSpec = require("./validate-using-spec");
14
14
  function processRawValueWithoutTransformation(schema, value) {
15
- var parsedDoc = _model.Node.fromJSON(schema, value);
15
+ if (!value) {
16
+ return;
17
+ }
18
+ var node;
19
+ if (typeof value === 'string') {
20
+ try {
21
+ node = JSON.parse(value);
22
+ } catch (e) {
23
+ // eslint-disable-next-line no-console
24
+ console.error("Error processing value: ".concat(value, " isn't a valid JSON"));
25
+ return;
26
+ }
27
+ } else {
28
+ node = value;
29
+ }
30
+ var parsedDoc = _model.Node.fromJSON(schema, node);
16
31
  return parsedDoc;
17
32
  }
18
33
  function processRawValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
@@ -1,6 +1,5 @@
1
1
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
- import { isListItemNode, isListNode, isOrderedList, isOrderedListContinuous } from '../utils';
2
+ import { isListItemNode, isListNode } from '../utils';
4
3
  import { wrapTaskListIntoListAbove } from './replace-content';
5
4
  export function isListNodeValidContent(node) {
6
5
  const {
@@ -51,9 +50,6 @@ export const joinSiblingLists = ({
51
50
  if (!nodeBefore || !nodeAfter || !isListNode(nodeBefore) || !isListNode(nodeAfter)) {
52
51
  return;
53
52
  }
54
- if (getBooleanFF('platform.editor.ordered-list-auto-join-improvements_mrlv5') && isOrderedList(nodeBefore) && isOrderedList(nodeAfter) && !isOrderedListContinuous(nodeBefore, nodeAfter)) {
55
- return;
56
- }
57
53
  const isNestedList = isListItemNode(parent);
58
54
  if (!isNestedList && nodeBefore.type !== nodeAfter.type && !forceListType) {
59
55
  return;
@@ -86,15 +82,7 @@ export const joinSiblingLists = ({
86
82
  nodeAfter
87
83
  } = resolvedPos;
88
84
  if (nodeBefore && nodeAfter && isListNode(nodeBefore) && isListNode(nodeAfter) && nodeAfter.type === nodeBefore.type) {
89
- if (!getBooleanFF('platform.editor.ordered-list-auto-join-improvements_mrlv5') ||
90
- /**
91
- * Both lists have the same type so one check is sufficient.
92
- * If the lists are ordered, only join if continuous.
93
- * Otherwise, if unordered, always join.
94
- */
95
- !isOrderedList(nodeBefore) || isOrderedListContinuous(nodeBefore, nodeAfter)) {
96
- joins.push(resolvedPos.pos);
97
- }
85
+ joins.push(resolvedPos.pos);
98
86
  }
99
87
  }
100
88
  for (let i = joins.length - 1; i >= 0; i--) {
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "89.3.1";
4
+ const packageVersion = "90.0.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -4,7 +4,7 @@ export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides,
4
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
5
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
6
6
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
7
- export { blockquoteSharedStyles, blockquoteSharedStylesNew } from './shared/blockquote';
7
+ export { blockquoteSharedStyles } from './shared/blockquote';
8
8
  export { headingsSharedStyles } from './shared/headings';
9
9
  export { ruleSharedStyles } from './shared/rule';
10
10
  export { whitespaceSharedStyles } from './shared/whitespace';
@@ -45,50 +45,4 @@ export const blockquoteSharedStyles = css({
45
45
  display: 'block'
46
46
  }
47
47
  }
48
- });
49
-
50
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
51
- export const blockquoteSharedStylesNew = css({
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
53
- '& blockquote': {
54
- boxSizing: 'border-box',
55
- color: 'inherit',
56
- width: '100%',
57
- clear: 'both',
58
- display: 'inline-block',
59
- paddingLeft: "var(--ds-space-250, 20px)",
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
- borderLeft: `2px solid ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`}`,
62
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
63
- margin: `${blockNodesVerticalMargin} 0 0 0`,
64
- marginRight: 0,
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
66
- "[dir='rtl'] &": {
67
- paddingLeft: 0,
68
- paddingRight: "var(--ds-space-200, 16px)"
69
- },
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
71
- '&:first-child': {
72
- marginTop: 0
73
- },
74
- '&::before': {
75
- content: "''"
76
- },
77
- '&::after': {
78
- content: 'none'
79
- },
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
81
- '& p': {
82
- display: 'block'
83
- },
84
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
85
- '& table, & table:last-child': {
86
- display: 'inline-table'
87
- },
88
- // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
89
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
90
- '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
91
- display: 'block'
92
- }
93
- }
94
48
  });
@@ -7,7 +7,6 @@ import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/e
7
7
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
8
8
  import { emojiImage, emojiSprite } from '@atlaskit/emoji';
9
9
  import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
10
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
10
  const lightPanelColors = {
12
11
  info: B50,
13
12
  note: P50,
@@ -173,7 +172,7 @@ export const panelSharedStylesWithoutPrefix = () => css`
173
172
  height: ${"var(--ds-space-300, 24px)"};
174
173
  width: ${"var(--ds-space-300, 24px)"};
175
174
  box-sizing: content-box;
176
- padding-right: ${editorExperiment('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)"};
175
+ padding-right: ${"var(--ds-space-100, 8px)"};
177
176
  text-align: center;
178
177
  user-select: none;
179
178
  -moz-user-select: none;
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "89.3.1";
17
+ const packageVersion = "90.0.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  class DropList extends Component {
@@ -151,7 +151,7 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
151
151
  export { isOutdatedBrowser } from './outdated-browsers';
152
152
  export { autoJoinTr } from './prosemirror/autojoin';
153
153
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
154
- export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, isOrderedList, isOrderedListContinuous } from './list';
154
+ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
155
155
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange } from './hyperlink';
156
156
 
157
157
  // prosemirror-history does not export its plugin key
@@ -39,13 +39,4 @@ export function isListItemNode(node) {
39
39
  }
40
40
  export function isBulletList(node) {
41
41
  return Boolean(node && node.type && 'bulletList' === node.type.name);
42
- }
43
- export function isOrderedList(node) {
44
- return Boolean(node && node.type && 'orderedList' === node.type.name);
45
- }
46
- export const isOrderedListContinuous = (firstOrderedList, secondOrderedList) => {
47
- if (!(isOrderedList(firstOrderedList) && isOrderedList(secondOrderedList))) {
48
- return false;
49
- }
50
- return getOrderFromOrderedListNode(firstOrderedList) + firstOrderedList.childCount === getOrderFromOrderedListNode(secondOrderedList);
51
- };
42
+ }
@@ -5,7 +5,22 @@ import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
5
5
  import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
6
6
  import { validateADFEntity } from './validate-using-spec';
7
7
  export function processRawValueWithoutTransformation(schema, value) {
8
- const parsedDoc = Node.fromJSON(schema, value);
8
+ if (!value) {
9
+ return;
10
+ }
11
+ let node;
12
+ if (typeof value === 'string') {
13
+ try {
14
+ node = JSON.parse(value);
15
+ } catch (e) {
16
+ // eslint-disable-next-line no-console
17
+ console.error(`Error processing value: ${value} isn't a valid JSON`);
18
+ return;
19
+ }
20
+ } else {
21
+ node = value;
22
+ }
23
+ const parsedDoc = Node.fromJSON(schema, node);
9
24
  return parsedDoc;
10
25
  }
11
26
  export function processRawValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
@@ -1,6 +1,5 @@
1
1
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
- import { isListItemNode, isListNode, isOrderedList, isOrderedListContinuous } from '../utils';
2
+ import { isListItemNode, isListNode } from '../utils';
4
3
  import { wrapTaskListIntoListAbove } from './replace-content';
5
4
  export function isListNodeValidContent(node) {
6
5
  var bulletList = node.type.schema.nodes.bulletList;
@@ -43,9 +42,6 @@ export var joinSiblingLists = function joinSiblingLists(_ref) {
43
42
  if (!nodeBefore || !nodeAfter || !isListNode(nodeBefore) || !isListNode(nodeAfter)) {
44
43
  return;
45
44
  }
46
- if (getBooleanFF('platform.editor.ordered-list-auto-join-improvements_mrlv5') && isOrderedList(nodeBefore) && isOrderedList(nodeAfter) && !isOrderedListContinuous(nodeBefore, nodeAfter)) {
47
- return;
48
- }
49
45
  var isNestedList = isListItemNode(parent);
50
46
  if (!isNestedList && nodeBefore.type !== nodeAfter.type && !forceListType) {
51
47
  return;
@@ -76,15 +72,7 @@ export var joinSiblingLists = function joinSiblingLists(_ref) {
76
72
  var nodeBefore = resolvedPos.nodeBefore,
77
73
  nodeAfter = resolvedPos.nodeAfter;
78
74
  if (nodeBefore && nodeAfter && isListNode(nodeBefore) && isListNode(nodeAfter) && nodeAfter.type === nodeBefore.type) {
79
- if (!getBooleanFF('platform.editor.ordered-list-auto-join-improvements_mrlv5') ||
80
- /**
81
- * Both lists have the same type so one check is sufficient.
82
- * If the lists are ordered, only join if continuous.
83
- * Otherwise, if unordered, always join.
84
- */
85
- !isOrderedList(nodeBefore) || isOrderedListContinuous(nodeBefore, nodeAfter)) {
86
- joins.push(resolvedPos.pos);
87
- }
75
+ joins.push(resolvedPos.pos);
88
76
  }
89
77
  }
90
78
  for (var i = joins.length - 1; i >= 0; i--) {
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "89.3.1";
10
+ var packageVersion = "90.0.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -4,7 +4,7 @@ export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides,
4
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles } from './shared/annotation';
5
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
6
6
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
7
- export { blockquoteSharedStyles, blockquoteSharedStylesNew } from './shared/blockquote';
7
+ export { blockquoteSharedStyles } from './shared/blockquote';
8
8
  export { headingsSharedStyles } from './shared/headings';
9
9
  export { ruleSharedStyles } from './shared/rule';
10
10
  export { whitespaceSharedStyles } from './shared/whitespace';
@@ -45,50 +45,4 @@ export var blockquoteSharedStyles = css({
45
45
  display: 'block'
46
46
  }
47
47
  }
48
- });
49
-
50
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
51
- export var blockquoteSharedStylesNew = css({
52
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
53
- '& blockquote': {
54
- boxSizing: 'border-box',
55
- color: 'inherit',
56
- width: '100%',
57
- clear: 'both',
58
- display: 'inline-block',
59
- paddingLeft: "var(--ds-space-250, 20px)",
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
61
- borderLeft: "2px solid ".concat("var(--ds-border, ".concat(akEditorBlockquoteBorderColor, ")")),
62
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
63
- margin: "".concat(blockNodesVerticalMargin, " 0 0 0"),
64
- marginRight: 0,
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
66
- "[dir='rtl'] &": {
67
- paddingLeft: 0,
68
- paddingRight: "var(--ds-space-200, 16px)"
69
- },
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
71
- '&:first-child': {
72
- marginTop: 0
73
- },
74
- '&::before': {
75
- content: "''"
76
- },
77
- '&::after': {
78
- content: 'none'
79
- },
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
81
- '& p': {
82
- display: 'block'
83
- },
84
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
85
- '& table, & table:last-child': {
86
- display: 'inline-table'
87
- },
88
- // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
89
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
90
- '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
91
- display: 'block'
92
- }
93
- }
94
48
  });
@@ -11,7 +11,6 @@ import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/e
11
11
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
12
12
  import { emojiImage, emojiSprite } from '@atlaskit/emoji';
13
13
  import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
14
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
14
  var lightPanelColors = {
16
15
  info: B50,
17
16
  note: P50,
@@ -163,7 +162,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
163
162
 
164
163
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
165
164
  export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
166
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", editorExperiment('nested-dnd', true) ? "var(--ds-space-150, 12px)" : "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
165
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\t\t", "\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t// Vertical align only works for inline-block elements in Firefox\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
167
166
  };
168
167
  export var panelSharedStyles = function panelSharedStyles() {
169
168
  return css(_defineProperty({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
@@ -22,7 +22,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
23
23
  import Layer from '../Layer';
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "89.3.1";
25
+ var packageVersion = "90.0.0";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -151,7 +151,7 @@ useComponentRenderTracking } from './performance/hooks/use-component-render-trac
151
151
  export { isOutdatedBrowser } from './outdated-browsers';
152
152
  export { autoJoinTr } from './prosemirror/autojoin';
153
153
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
154
- export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, isOrderedList, isOrderedListContinuous } from './list';
154
+ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
155
155
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange } from './hyperlink';
156
156
 
157
157
  // prosemirror-history does not export its plugin key
@@ -39,13 +39,4 @@ export function isListItemNode(node) {
39
39
  }
40
40
  export function isBulletList(node) {
41
41
  return Boolean(node && node.type && 'bulletList' === node.type.name);
42
- }
43
- export function isOrderedList(node) {
44
- return Boolean(node && node.type && 'orderedList' === node.type.name);
45
- }
46
- export var isOrderedListContinuous = function isOrderedListContinuous(firstOrderedList, secondOrderedList) {
47
- if (!(isOrderedList(firstOrderedList) && isOrderedList(secondOrderedList))) {
48
- return false;
49
- }
50
- return getOrderFromOrderedListNode(firstOrderedList) + firstOrderedList.childCount === getOrderFromOrderedListNode(secondOrderedList);
51
- };
42
+ }
@@ -5,7 +5,22 @@ import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
5
5
  import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
6
6
  import { validateADFEntity } from './validate-using-spec';
7
7
  export function processRawValueWithoutTransformation(schema, value) {
8
- var parsedDoc = Node.fromJSON(schema, value);
8
+ if (!value) {
9
+ return;
10
+ }
11
+ var node;
12
+ if (typeof value === 'string') {
13
+ try {
14
+ node = JSON.parse(value);
15
+ } catch (e) {
16
+ // eslint-disable-next-line no-console
17
+ console.error("Error processing value: ".concat(value, " isn't a valid JSON"));
18
+ return;
19
+ }
20
+ } else {
21
+ node = value;
22
+ }
23
+ var parsedDoc = Node.fromJSON(schema, node);
9
24
  return parsedDoc;
10
25
  }
11
26
  export function processRawValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
@@ -4,6 +4,7 @@ type ElementAttributes = {
4
4
  nodeDepth: number;
5
5
  nodeType: string;
6
6
  inputMethod?: string;
7
+ destinationNodeDepth?: number;
7
8
  };
8
9
  type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
9
10
  type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
@@ -2,6 +2,8 @@ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
2
  import type { TrackAEP } from './utils';
3
3
  type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.NODE, {
4
4
  nodeType?: string;
5
+ nodeDepth?: number;
6
+ destinationNodeDepth?: number;
5
7
  }, undefined>;
6
8
  export type MoveContentEventPayload = MoveContentAEP;
7
9
  export {};
@@ -4,7 +4,7 @@ export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides,
4
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
5
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
6
6
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
7
- export { blockquoteSharedStyles, blockquoteSharedStylesNew } from './shared/blockquote';
7
+ export { blockquoteSharedStyles } from './shared/blockquote';
8
8
  export { headingsSharedStyles } from './shared/headings';
9
9
  export { ruleSharedStyles } from './shared/rule';
10
10
  export { whitespaceSharedStyles } from './shared/whitespace';
@@ -1,2 +1 @@
1
1
  export declare const blockquoteSharedStyles: import("@emotion/react").SerializedStyles;
2
- export declare const blockquoteSharedStylesNew: import("@emotion/react").SerializedStyles;
@@ -163,7 +163,7 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
163
163
  export { isOutdatedBrowser } from './outdated-browsers';
164
164
  export { autoJoinTr } from './prosemirror/autojoin';
165
165
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
166
- export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, isOrderedList, isOrderedListContinuous, } from './list';
166
+ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
167
167
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange, } from './hyperlink';
168
168
  export declare const pmHistoryPluginKey = "history$";
169
169
  export { gridTypeForLayout } from './grid';
@@ -11,6 +11,4 @@ export declare function isListNode(node: Node | null | undefined): boolean;
11
11
  export declare function isParagraphNode(node: Node | null | undefined): boolean;
12
12
  export declare function isListItemNode(node: Node | null | undefined): boolean;
13
13
  export declare function isBulletList(node: Node | null | undefined): boolean;
14
- export declare function isOrderedList(node: Node | null | undefined): boolean;
15
- export declare const isOrderedListContinuous: (firstOrderedList: Node, secondOrderedList: Node) => boolean;
16
14
  export {};
@@ -3,5 +3,5 @@ import { Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { DispatchAnalyticsEvent } from '../analytics';
4
4
  import type { ProviderFactory } from '../provider-factory';
5
5
  import type { ReplaceRawValue, Transformer } from '../types';
6
- export declare function processRawValueWithoutTransformation(schema: Schema, value?: ReplaceRawValue): Node;
6
+ export declare function processRawValueWithoutTransformation(schema: Schema, value?: ReplaceRawValue): Node | undefined;
7
7
  export declare function processRawValue(schema: Schema, value?: ReplaceRawValue, providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Node | undefined;
@@ -4,6 +4,7 @@ type ElementAttributes = {
4
4
  nodeDepth: number;
5
5
  nodeType: string;
6
6
  inputMethod?: string;
7
+ destinationNodeDepth?: number;
7
8
  };
8
9
  type ElementMovedAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
9
10
  type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
@@ -2,6 +2,8 @@ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
2
  import type { TrackAEP } from './utils';
3
3
  type MoveContentAEP = TrackAEP<ACTION.MOVED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.NODE, {
4
4
  nodeType?: string;
5
+ nodeDepth?: number;
6
+ destinationNodeDepth?: number;
5
7
  }, undefined>;
6
8
  export type MoveContentEventPayload = MoveContentAEP;
7
9
  export {};
@@ -4,7 +4,7 @@ export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides,
4
4
  export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
5
5
  export { columnLayoutSharedStyle } from './shared/column-layout';
6
6
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
7
- export { blockquoteSharedStyles, blockquoteSharedStylesNew } from './shared/blockquote';
7
+ export { blockquoteSharedStyles } from './shared/blockquote';
8
8
  export { headingsSharedStyles } from './shared/headings';
9
9
  export { ruleSharedStyles } from './shared/rule';
10
10
  export { whitespaceSharedStyles } from './shared/whitespace';
@@ -1,2 +1 @@
1
1
  export declare const blockquoteSharedStyles: import("@emotion/react").SerializedStyles;
2
- export declare const blockquoteSharedStylesNew: import("@emotion/react").SerializedStyles;
@@ -163,7 +163,7 @@ export type { UseComponentRenderTrackingArgs } from './performance/hooks/use-com
163
163
  export { isOutdatedBrowser } from './outdated-browsers';
164
164
  export { autoJoinTr } from './prosemirror/autojoin';
165
165
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName, } from './referentiality';
166
- export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, isOrderedList, isOrderedListContinuous, } from './list';
166
+ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
167
167
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange, } from './hyperlink';
168
168
  export declare const pmHistoryPluginKey = "history$";
169
169
  export { gridTypeForLayout } from './grid';
@@ -11,6 +11,4 @@ export declare function isListNode(node: Node | null | undefined): boolean;
11
11
  export declare function isParagraphNode(node: Node | null | undefined): boolean;
12
12
  export declare function isListItemNode(node: Node | null | undefined): boolean;
13
13
  export declare function isBulletList(node: Node | null | undefined): boolean;
14
- export declare function isOrderedList(node: Node | null | undefined): boolean;
15
- export declare const isOrderedListContinuous: (firstOrderedList: Node, secondOrderedList: Node) => boolean;
16
14
  export {};
@@ -3,5 +3,5 @@ import { Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { DispatchAnalyticsEvent } from '../analytics';
4
4
  import type { ProviderFactory } from '../provider-factory';
5
5
  import type { ReplaceRawValue, Transformer } from '../types';
6
- export declare function processRawValueWithoutTransformation(schema: Schema, value?: ReplaceRawValue): Node;
6
+ export declare function processRawValueWithoutTransformation(schema: Schema, value?: ReplaceRawValue): Node | undefined;
7
7
  export declare function processRawValue(schema: Schema, value?: ReplaceRawValue, providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Node | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "89.3.1",
3
+ "version": "90.0.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/"
@@ -127,14 +127,14 @@
127
127
  "@atlaskit/emoji": "^67.7.0",
128
128
  "@atlaskit/icon": "^22.18.0",
129
129
  "@atlaskit/icon-object": "^6.5.0",
130
- "@atlaskit/link-datasource": "^3.0.0",
130
+ "@atlaskit/link-datasource": "^3.1.0",
131
131
  "@atlaskit/link-picker": "^1.45.0",
132
- "@atlaskit/media-card": "^78.4.0",
132
+ "@atlaskit/media-card": "^78.5.0",
133
133
  "@atlaskit/media-client": "^28.0.0",
134
134
  "@atlaskit/media-client-react": "^2.2.0",
135
135
  "@atlaskit/media-common": "^11.4.0",
136
136
  "@atlaskit/media-file-preview": "^0.9.0",
137
- "@atlaskit/media-picker": "^66.6.0",
137
+ "@atlaskit/media-picker": "^66.7.0",
138
138
  "@atlaskit/media-ui": "^25.14.0",
139
139
  "@atlaskit/media-viewer": "48.10.0",
140
140
  "@atlaskit/mention": "^23.2.0",
@@ -188,7 +188,7 @@
188
188
  "devDependencies": {
189
189
  "@af/visual-regression": "*",
190
190
  "@atlaskit/media-core": "^34.3.0",
191
- "@atlaskit/media-test-helpers": "^34.3.0",
191
+ "@atlaskit/media-test-helpers": "^34.4.0",
192
192
  "@atlaskit/util-data-test": "^17.9.0",
193
193
  "@atlaskit/visual-regression": "*",
194
194
  "@testing-library/dom": "^10.1.0",
@@ -234,9 +234,6 @@
234
234
  "platform.linking-platform.datasource-assets_objects": {
235
235
  "type": "boolean"
236
236
  },
237
- "platform.editor.ordered-list-auto-join-improvements_mrlv5": {
238
- "type": "boolean"
239
- },
240
237
  "platform.editor.inline_extension.extended_lcqdn": {
241
238
  "type": "boolean"
242
239
  },