@atlaskit/editor-common 110.13.2 → 110.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/utils.js +6 -22
- package/dist/cjs/styles/shared/task-decision.js +2 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -1
- package/dist/cjs/utils/validator.js +13 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/utils.js +6 -22
- package/dist/es2019/styles/shared/task-decision.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +2 -3
- package/dist/es2019/utils/validator.js +13 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/utils.js +6 -22
- package/dist/esm/styles/shared/task-decision.js +2 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -1
- package/dist/esm/utils/validator.js +13 -0
- package/dist/types/styles/shared/task-decision.d.ts +1 -0
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +1 -0
- package/package.json +7 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
|
|
8
|
+
[EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`cebe32372285d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cebe32372285d) -
|
|
13
|
+
Tidy up feature gate
|
|
14
|
+
- [`c21648c080e0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c21648c080e0c) -
|
|
15
|
+
[ux] EDITOR-2291: Tighten list and task spacing in dense content mode
|
|
16
|
+
- [`2bdec5e9ec1c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2bdec5e9ec1c9) -
|
|
17
|
+
[EDITOR-442] Cleans up FG platform_editor_add_media_from_url_rollout
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 110.13.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "
|
|
19
|
+
var packageVersion = "110.13.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -11,7 +11,6 @@ exports.endPositionOfParent = endPositionOfParent;
|
|
|
11
11
|
exports.isSelectionAtStartOfNode = exports.isSelectionAtEndOfNode = exports.expandSelectionBounds = void 0;
|
|
12
12
|
exports.startPositionOfParent = startPositionOfParent;
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _selection = require("./gap-cursor/selection");
|
|
16
15
|
var isSelectionAtStartOfNode = exports.isSelectionAtStartOfNode = function isSelectionAtStartOfNode($pos, parentNode) {
|
|
17
16
|
if (!parentNode) {
|
|
@@ -99,30 +98,15 @@ var expandSelectionBounds = exports.expandSelectionBounds = function expandSelec
|
|
|
99
98
|
var selectionIsAcrossDiffParents = selectionHasGrandparent && !$to.parent.isTextblock && !$to.sameParent($from);
|
|
100
99
|
var selectionIsAcrossTextBlocksWithDiffParents = selectionHasGrandparent && $to.parent.isTextblock && $to.before(toDepth - 1) !== $from.before(fromDepth - 1);
|
|
101
100
|
if (toDepth > fromDepth) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
selectionEnd = $to.after(sharedDepth);
|
|
105
|
-
} else {
|
|
106
|
-
selectionStart = fromDepth ? $from.before() : $from.pos;
|
|
107
|
-
selectionEnd = fromDepth ? $to.after(fromDepth) : $to.after(1);
|
|
108
|
-
}
|
|
101
|
+
selectionStart = $from.before(sharedDepth);
|
|
102
|
+
selectionEnd = $to.after(sharedDepth);
|
|
109
103
|
} else if (toDepth < fromDepth) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
selectionEnd = $to.after(sharedDepth);
|
|
113
|
-
} else {
|
|
114
|
-
selectionStart = toDepth ? $from.before(toDepth) : $from.before(1);
|
|
115
|
-
selectionEnd = toDepth ? $to.after() : $to.pos;
|
|
116
|
-
}
|
|
104
|
+
selectionStart = $from.before(sharedDepth);
|
|
105
|
+
selectionEnd = $to.after(sharedDepth);
|
|
117
106
|
} else if (selectionIsAcrossDiffParents || selectionIsAcrossTextBlocksWithDiffParents) {
|
|
118
107
|
// when selection from/to share same depth with different parents, hoist up the selection to the parent of the highest depth in the selection
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
selectionEnd = $to.after(sharedDepth);
|
|
122
|
-
} else {
|
|
123
|
-
selectionStart = $from.before(fromDepth - 1);
|
|
124
|
-
selectionEnd = $to.after(toDepth - 1);
|
|
125
|
-
}
|
|
108
|
+
selectionStart = $from.before(sharedDepth);
|
|
109
|
+
selectionEnd = $to.after(sharedDepth);
|
|
126
110
|
} else if (!$from.node().inlineContent) {
|
|
127
111
|
// when selection might be a Node selection, return what was passed in
|
|
128
112
|
return {
|
|
@@ -7,6 +7,8 @@ exports.TaskDecisionSharedCssClassName = void 0;
|
|
|
7
7
|
var TaskDecisionSharedCssClassName = exports.TaskDecisionSharedCssClassName = {
|
|
8
8
|
DECISION_CONTAINER: 'decisionItemView-content-wrap',
|
|
9
9
|
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
10
|
+
//NOTE: value is a selector (data attribute), not a class name
|
|
11
|
+
TASK_LIST_CONTAINER: '[data-node-type="actionList]',
|
|
10
12
|
TASK_ITEM: 'task-item',
|
|
11
13
|
TASK_CHECKBOX_CONTAINER: 'task-item-checkbox-wrap'
|
|
12
14
|
};
|
|
@@ -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 = "
|
|
27
|
+
var packageVersion = "110.13.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -242,7 +242,7 @@ var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
|
|
|
242
242
|
|
|
243
243
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
244
244
|
var mediaWrapperStyle = exports.mediaWrapperStyle = function mediaWrapperStyle(props) {
|
|
245
|
-
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: relative;\n\n\t", "\n\n\t/* Editor */\n & > figure {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t/* Comments on media project adds comment badge as child of the media wrapper,\n\tthus we need to exclude it so that style is applied to intended div
|
|
245
|
+
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\tposition: relative;\n\n\t", "\n\n\t/* Editor */\n & > figure {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t/* Comments on media project adds comment badge as child of the media wrapper,\n\tthus we need to exclude it so that style is applied to intended div */\n\t& > div:not([data-media-badges='true']) {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t& * [data-mark-annotation-type='inlineComment'] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t&[data-node-type='embedCard'] > div {\n\t\twidth: 100%;\n\t}\n\n\t/* Renderer */\n\t[data-node-type='media'] {\n\t\tposition: static !important;\n\n\t\t> div {\n\t\t\tposition: absolute;\n\t\t\theight: 100%;\n\t\t}\n\t}\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
|
|
246
246
|
};
|
|
247
247
|
var MediaWrapper = exports.MediaWrapper = function MediaWrapper(_ref3) {
|
|
248
248
|
var children = _ref3.children,
|
|
@@ -863,6 +863,19 @@ var getValidNode = exports.getValidNode = function getValidNode(originalNode) {
|
|
|
863
863
|
return getValidUnknownNode(node);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
+
case 'bodiedSyncBlock':
|
|
867
|
+
{
|
|
868
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true)) {
|
|
869
|
+
return {
|
|
870
|
+
type: type,
|
|
871
|
+
attrs: attrs,
|
|
872
|
+
marks: marks,
|
|
873
|
+
content: content
|
|
874
|
+
};
|
|
875
|
+
} else {
|
|
876
|
+
return getValidUnknownNode(node);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
866
879
|
}
|
|
867
880
|
}
|
|
868
881
|
return getValidUnknownNode(node);
|
|
@@ -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 = "
|
|
4
|
+
const packageVersion = "110.13.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { GapCursorSelection } from './gap-cursor/selection';
|
|
4
3
|
export const isSelectionAtStartOfNode = ($pos, parentNode) => {
|
|
5
4
|
if (!parentNode) {
|
|
@@ -99,30 +98,15 @@ export const expandSelectionBounds = ($anchor, $head) => {
|
|
|
99
98
|
const selectionIsAcrossDiffParents = selectionHasGrandparent && !$to.parent.isTextblock && !$to.sameParent($from);
|
|
100
99
|
const selectionIsAcrossTextBlocksWithDiffParents = selectionHasGrandparent && $to.parent.isTextblock && $to.before(toDepth - 1) !== $from.before(fromDepth - 1);
|
|
101
100
|
if (toDepth > fromDepth) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
selectionEnd = $to.after(sharedDepth);
|
|
105
|
-
} else {
|
|
106
|
-
selectionStart = fromDepth ? $from.before() : $from.pos;
|
|
107
|
-
selectionEnd = fromDepth ? $to.after(fromDepth) : $to.after(1);
|
|
108
|
-
}
|
|
101
|
+
selectionStart = $from.before(sharedDepth);
|
|
102
|
+
selectionEnd = $to.after(sharedDepth);
|
|
109
103
|
} else if (toDepth < fromDepth) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
selectionEnd = $to.after(sharedDepth);
|
|
113
|
-
} else {
|
|
114
|
-
selectionStart = toDepth ? $from.before(toDepth) : $from.before(1);
|
|
115
|
-
selectionEnd = toDepth ? $to.after() : $to.pos;
|
|
116
|
-
}
|
|
104
|
+
selectionStart = $from.before(sharedDepth);
|
|
105
|
+
selectionEnd = $to.after(sharedDepth);
|
|
117
106
|
} else if (selectionIsAcrossDiffParents || selectionIsAcrossTextBlocksWithDiffParents) {
|
|
118
107
|
// when selection from/to share same depth with different parents, hoist up the selection to the parent of the highest depth in the selection
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
selectionEnd = $to.after(sharedDepth);
|
|
122
|
-
} else {
|
|
123
|
-
selectionStart = $from.before(fromDepth - 1);
|
|
124
|
-
selectionEnd = $to.after(toDepth - 1);
|
|
125
|
-
}
|
|
108
|
+
selectionStart = $from.before(sharedDepth);
|
|
109
|
+
selectionEnd = $to.after(sharedDepth);
|
|
126
110
|
} else if (!$from.node().inlineContent) {
|
|
127
111
|
// when selection might be a Node selection, return what was passed in
|
|
128
112
|
return {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export const TaskDecisionSharedCssClassName = {
|
|
2
2
|
DECISION_CONTAINER: 'decisionItemView-content-wrap',
|
|
3
3
|
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
4
|
+
//NOTE: value is a selector (data attribute), not a class name
|
|
5
|
+
TASK_LIST_CONTAINER: '[data-node-type="actionList]',
|
|
4
6
|
TASK_ITEM: 'task-item',
|
|
5
7
|
TASK_CHECKBOX_CONTAINER: 'task-item-checkbox-wrap'
|
|
6
8
|
};
|
|
@@ -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 = "
|
|
17
|
+
const packageVersion = "110.13.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -280,9 +280,8 @@ export const mediaWrapperStyle = props => css`
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
/* Comments on media project adds comment badge as child of the media wrapper,
|
|
283
|
-
thus we need to exclude it so that style is applied to intended div
|
|
284
|
-
|
|
285
|
-
& > div:not([data-comment-badge='true'], [data-media-badges='true']) {
|
|
283
|
+
thus we need to exclude it so that style is applied to intended div */
|
|
284
|
+
& > div:not([data-media-badges='true']) {
|
|
286
285
|
position: ${props.hasFallbackContainer ? 'absolute' : 'relative'};
|
|
287
286
|
height: 100%;
|
|
288
287
|
width: 100%;
|
|
@@ -854,6 +854,19 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
|
|
|
854
854
|
return getValidUnknownNode(node);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
+
case 'bodiedSyncBlock':
|
|
858
|
+
{
|
|
859
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && expValEquals('platform_synced_block', 'isEnabled', true)) {
|
|
860
|
+
return {
|
|
861
|
+
type,
|
|
862
|
+
attrs,
|
|
863
|
+
marks,
|
|
864
|
+
content
|
|
865
|
+
};
|
|
866
|
+
} else {
|
|
867
|
+
return getValidUnknownNode(node);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
857
870
|
}
|
|
858
871
|
}
|
|
859
872
|
return getValidUnknownNode(node);
|
|
@@ -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 = "
|
|
10
|
+
var packageVersion = "110.13.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { GapCursorSelection } from './gap-cursor/selection';
|
|
4
3
|
export var isSelectionAtStartOfNode = function isSelectionAtStartOfNode($pos, parentNode) {
|
|
5
4
|
if (!parentNode) {
|
|
@@ -87,30 +86,15 @@ export var expandSelectionBounds = function expandSelectionBounds($anchor, $head
|
|
|
87
86
|
var selectionIsAcrossDiffParents = selectionHasGrandparent && !$to.parent.isTextblock && !$to.sameParent($from);
|
|
88
87
|
var selectionIsAcrossTextBlocksWithDiffParents = selectionHasGrandparent && $to.parent.isTextblock && $to.before(toDepth - 1) !== $from.before(fromDepth - 1);
|
|
89
88
|
if (toDepth > fromDepth) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
selectionEnd = $to.after(sharedDepth);
|
|
93
|
-
} else {
|
|
94
|
-
selectionStart = fromDepth ? $from.before() : $from.pos;
|
|
95
|
-
selectionEnd = fromDepth ? $to.after(fromDepth) : $to.after(1);
|
|
96
|
-
}
|
|
89
|
+
selectionStart = $from.before(sharedDepth);
|
|
90
|
+
selectionEnd = $to.after(sharedDepth);
|
|
97
91
|
} else if (toDepth < fromDepth) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
selectionEnd = $to.after(sharedDepth);
|
|
101
|
-
} else {
|
|
102
|
-
selectionStart = toDepth ? $from.before(toDepth) : $from.before(1);
|
|
103
|
-
selectionEnd = toDepth ? $to.after() : $to.pos;
|
|
104
|
-
}
|
|
92
|
+
selectionStart = $from.before(sharedDepth);
|
|
93
|
+
selectionEnd = $to.after(sharedDepth);
|
|
105
94
|
} else if (selectionIsAcrossDiffParents || selectionIsAcrossTextBlocksWithDiffParents) {
|
|
106
95
|
// when selection from/to share same depth with different parents, hoist up the selection to the parent of the highest depth in the selection
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
selectionEnd = $to.after(sharedDepth);
|
|
110
|
-
} else {
|
|
111
|
-
selectionStart = $from.before(fromDepth - 1);
|
|
112
|
-
selectionEnd = $to.after(toDepth - 1);
|
|
113
|
-
}
|
|
96
|
+
selectionStart = $from.before(sharedDepth);
|
|
97
|
+
selectionEnd = $to.after(sharedDepth);
|
|
114
98
|
} else if (!$from.node().inlineContent) {
|
|
115
99
|
// when selection might be a Node selection, return what was passed in
|
|
116
100
|
return {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export var TaskDecisionSharedCssClassName = {
|
|
2
2
|
DECISION_CONTAINER: 'decisionItemView-content-wrap',
|
|
3
3
|
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
4
|
+
//NOTE: value is a selector (data attribute), not a class name
|
|
5
|
+
TASK_LIST_CONTAINER: '[data-node-type="actionList]',
|
|
4
6
|
TASK_ITEM: 'task-item',
|
|
5
7
|
TASK_CHECKBOX_CONTAINER: 'task-item-checkbox-wrap'
|
|
6
8
|
};
|
|
@@ -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 = "
|
|
24
|
+
var packageVersion = "110.13.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -232,7 +232,7 @@ var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
|
|
|
232
232
|
|
|
233
233
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
234
234
|
export var mediaWrapperStyle = function mediaWrapperStyle(props) {
|
|
235
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\tposition: relative;\n\n\t", "\n\n\t/* Editor */\n & > figure {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t/* Comments on media project adds comment badge as child of the media wrapper,\n\tthus we need to exclude it so that style is applied to intended div
|
|
235
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\tposition: relative;\n\n\t", "\n\n\t/* Editor */\n & > figure {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t/* Comments on media project adds comment badge as child of the media wrapper,\n\tthus we need to exclude it so that style is applied to intended div */\n\t& > div:not([data-media-badges='true']) {\n\t\tposition: ", ";\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t& * [data-mark-annotation-type='inlineComment'] {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t&[data-node-type='embedCard'] > div {\n\t\twidth: 100%;\n\t}\n\n\t/* Renderer */\n\t[data-node-type='media'] {\n\t\tposition: static !important;\n\n\t\t> div {\n\t\t\tposition: absolute;\n\t\t\theight: 100%;\n\t\t}\n\t}\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
|
|
236
236
|
};
|
|
237
237
|
export var MediaWrapper = function MediaWrapper(_ref3) {
|
|
238
238
|
var children = _ref3.children,
|
|
@@ -856,6 +856,19 @@ export var getValidNode = function getValidNode(originalNode) {
|
|
|
856
856
|
return getValidUnknownNode(node);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
+
case 'bodiedSyncBlock':
|
|
860
|
+
{
|
|
861
|
+
if (adfStage === 'stage0' && attrs && Array.isArray(content) && content.length > 0 && expValEquals('platform_synced_block', 'isEnabled', true)) {
|
|
862
|
+
return {
|
|
863
|
+
type: type,
|
|
864
|
+
attrs: attrs,
|
|
865
|
+
marks: marks,
|
|
866
|
+
content: content
|
|
867
|
+
};
|
|
868
|
+
} else {
|
|
869
|
+
return getValidUnknownNode(node);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
859
872
|
}
|
|
860
873
|
}
|
|
861
874
|
return getValidUnknownNode(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.14.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/"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
33
|
-
"@atlaskit/adf-schema": "^51.
|
|
34
|
-
"@atlaskit/adf-utils": "^19.
|
|
33
|
+
"@atlaskit/adf-schema": "^51.3.0",
|
|
34
|
+
"@atlaskit/adf-utils": "^19.25.0",
|
|
35
35
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.7.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@atlaskit/code": "^17.2.0",
|
|
42
42
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
43
43
|
"@atlaskit/css": "^0.15.0",
|
|
44
|
-
"@atlaskit/custom-steps": "^0.
|
|
44
|
+
"@atlaskit/custom-steps": "^0.16.0",
|
|
45
45
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
46
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
46
|
+
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
47
47
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/icon": "^28.5.0",
|
|
55
55
|
"@atlaskit/icon-object": "^7.3.0",
|
|
56
56
|
"@atlaskit/link": "^3.2.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^4.
|
|
57
|
+
"@atlaskit/link-datasource": "^4.26.0",
|
|
58
58
|
"@atlaskit/link-picker": "^3.16.0",
|
|
59
59
|
"@atlaskit/media-card": "^79.5.0",
|
|
60
60
|
"@atlaskit/media-client": "^35.5.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
72
72
|
"@atlaskit/popper": "^7.1.0",
|
|
73
|
-
"@atlaskit/primitives": "^
|
|
73
|
+
"@atlaskit/primitives": "^16.0.0",
|
|
74
74
|
"@atlaskit/profilecard": "^24.20.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^4.12.0",
|
|
@@ -197,12 +197,6 @@
|
|
|
197
197
|
"platform_editor_link_popup_position_fix_aifc": {
|
|
198
198
|
"type": "boolean"
|
|
199
199
|
},
|
|
200
|
-
"platform_editor_elements_dnd_multi_select_patch_1": {
|
|
201
|
-
"type": "boolean"
|
|
202
|
-
},
|
|
203
|
-
"platform_editor_add_media_from_url_rollout": {
|
|
204
|
-
"type": "boolean"
|
|
205
|
-
},
|
|
206
200
|
"platform_editor_inline_node_virt_threshold_override": {
|
|
207
201
|
"type": "boolean"
|
|
208
202
|
},
|