@atlaskit/editor-common 130.3.2 → 130.3.3
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 +6 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/cjs/collab/index.js +2 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +8 -8
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -3
- package/dist/cjs/guideline/defaultGuideline.js +2 -2
- package/dist/cjs/guideline/getContainerWidthOrFullEditorWidth.js +4 -4
- package/dist/cjs/guideline/getMediaSingleDimensions.js +2 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/media-inline/inline-image-wrapper.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-single/CommentBadge.js +2 -2
- package/dist/cjs/media-single/calcMediaSingleMaxWidth.js +5 -5
- package/dist/cjs/media-single/getMediaSingleInitialWidth.js +5 -5
- package/dist/cjs/media-single/utils.js +4 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/nesting/transformContainerNodesWhenRequired.js +2 -2
- package/dist/cjs/node-selection/index.js +2 -2
- package/dist/cjs/node-width/index.js +8 -8
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/cjs/resizer/BreakoutResizer.js +6 -6
- package/dist/cjs/resizer/useBreakoutGuidelines.js +9 -9
- package/dist/cjs/selection/index.js +13 -13
- package/dist/cjs/styles/shared/blockquote.js +2 -2
- package/dist/cjs/styles/shared/calcTableWidth.js +4 -4
- package/dist/cjs/styles/shared/mapBackgroundColors.js +2 -2
- package/dist/cjs/styles/shared/media-single.js +2 -2
- package/dist/cjs/styles/shared/panel.js +2 -2
- package/dist/cjs/styles/shared/table.js +4 -3
- package/dist/cjs/table/NewSortingIcon.js +4 -3
- package/dist/cjs/toolbar/EditorToolbarUIProvider.js +2 -2
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +2 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +2 -2
- package/dist/cjs/ui/MediaSingle/grid.js +3 -3
- package/dist/cjs/ui/MediaSingle/index.js +5 -5
- package/dist/cjs/ui/MediaSingle/styled.js +5 -5
- package/dist/cjs/ui/PanelTextInput/styles.js +2 -2
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui/ResizerLegacy/index.js +2 -2
- package/dist/cjs/ui/TableSelector/index.js +2 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
- package/dist/cjs/utils/areDocsEqualByBlockStructureAndText.js +2 -2
- package/dist/cjs/utils/breakout.js +10 -10
- package/dist/cjs/utils/calculateSnapPoints.js +2 -2
- package/dist/cjs/utils/filter/privacy-filter.js +2 -2
- package/dist/cjs/utils/page-element-counts.js +4 -4
- package/dist/cjs/utils/processRawValue.js +21 -10
- package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +3 -3
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/es2019/guideline/defaultGuideline.js +1 -1
- package/dist/es2019/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/es2019/guideline/getMediaSingleDimensions.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-single/CommentBadge.js +1 -1
- package/dist/es2019/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/es2019/media-single/getMediaSingleInitialWidth.js +1 -1
- package/dist/es2019/media-single/utils.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/nesting/transformContainerNodesWhenRequired.js +1 -1
- package/dist/es2019/node-selection/index.js +1 -1
- package/dist/es2019/node-width/index.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/es2019/resizer/BreakoutResizer.js +1 -1
- package/dist/es2019/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/es2019/selection/index.js +2 -2
- package/dist/es2019/styles/shared/blockquote.js +1 -1
- package/dist/es2019/styles/shared/calcTableWidth.js +1 -1
- package/dist/es2019/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/es2019/styles/shared/media-single.js +1 -1
- package/dist/es2019/styles/shared/panel.js +1 -1
- package/dist/es2019/styles/shared/table.js +2 -1
- package/dist/es2019/table/NewSortingIcon.js +2 -1
- package/dist/es2019/toolbar/EditorToolbarUIProvider.js +1 -1
- package/dist/es2019/ui/BaseTheme/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/grid.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -1
- package/dist/es2019/ui/PanelTextInput/styles.js +1 -1
- package/dist/es2019/ui/Popup/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/es2019/utils/areDocsEqualByBlockStructureAndText.js +1 -1
- package/dist/es2019/utils/breakout.js +1 -1
- package/dist/es2019/utils/calculateSnapPoints.js +1 -1
- package/dist/es2019/utils/filter/privacy-filter.js +1 -1
- package/dist/es2019/utils/page-element-counts.js +1 -1
- package/dist/es2019/utils/processRawValue.js +12 -1
- package/dist/es2019/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +2 -2
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/esm/guideline/defaultGuideline.js +1 -1
- package/dist/esm/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
- package/dist/esm/guideline/getMediaSingleDimensions.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-single/CommentBadge.js +1 -1
- package/dist/esm/media-single/calcMediaSingleMaxWidth.js +1 -1
- package/dist/esm/media-single/getMediaSingleInitialWidth.js +1 -1
- package/dist/esm/media-single/utils.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/nesting/transformContainerNodesWhenRequired.js +1 -1
- package/dist/esm/node-selection/index.js +1 -1
- package/dist/esm/node-width/index.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +0 -4
- package/dist/esm/resizer/BreakoutResizer.js +1 -1
- package/dist/esm/resizer/useBreakoutGuidelines.js +1 -1
- package/dist/esm/selection/index.js +2 -2
- package/dist/esm/styles/shared/blockquote.js +1 -1
- package/dist/esm/styles/shared/calcTableWidth.js +1 -1
- package/dist/esm/styles/shared/mapBackgroundColors.js +1 -1
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/panel.js +1 -1
- package/dist/esm/styles/shared/table.js +2 -1
- package/dist/esm/table/NewSortingIcon.js +2 -1
- package/dist/esm/toolbar/EditorToolbarUIProvider.js +1 -1
- package/dist/esm/ui/BaseTheme/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/esm/ui/MediaSingle/grid.js +1 -1
- package/dist/esm/ui/MediaSingle/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -1
- package/dist/esm/ui/PanelTextInput/styles.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
- package/dist/esm/utils/areDocsEqualByBlockStructureAndText.js +1 -1
- package/dist/esm/utils/breakout.js +1 -1
- package/dist/esm/utils/calculateSnapPoints.js +1 -1
- package/dist/esm/utils/filter/privacy-filter.js +1 -1
- package/dist/esm/utils/page-element-counts.js +1 -1
- package/dist/esm/utils/processRawValue.js +12 -1
- package/dist/esm/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
- package/dist/types/analytics/types/table-events.d.ts +1 -1
- package/dist/types/card/cardOptions.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/link/LinkSearch/types.d.ts +1 -1
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +2 -2
- package/dist/types/media-inline/media-inline-image-card.d.ts +2 -1
- package/dist/types/media-inline/types.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +1 -1
- package/dist/types/toolbar/EditorToolbarUIProvider.d.ts +1 -1
- package/dist/types/toolbar/getInputMethodFromParentKeys.d.ts +1 -1
- package/dist/types/toolbar/types.d.ts +1 -1
- package/dist/types/types/hyperlink.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +1 -1
- package/dist/types/utils/isSupportedInParent.d.ts +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.areDocsEqualByBlockStructureAndText = areDocsEqualByBlockStructureAndText;
|
|
7
|
-
var
|
|
7
|
+
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
8
8
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
9
9
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
/**
|
|
@@ -28,7 +28,7 @@ function normalizeDocument(node) {
|
|
|
28
28
|
var schema = node.type.schema;
|
|
29
29
|
var transformer = transformers.get(schema);
|
|
30
30
|
if (!transformer) {
|
|
31
|
-
transformer = new
|
|
31
|
+
transformer = new _JSONTransformer.JSONTransformer(schema);
|
|
32
32
|
transformers.set(schema, transformer);
|
|
33
33
|
}
|
|
34
34
|
return transformer.parse(transformer.encode(node));
|
|
@@ -32,7 +32,7 @@ Object.defineProperty(exports, "getTitle", {
|
|
|
32
32
|
return _getTitle.getTitle;
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
var
|
|
35
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
36
36
|
var _BaseTheme = require("../ui/BaseTheme");
|
|
37
37
|
var _WidthProvider = require("../ui/WidthProvider");
|
|
38
38
|
var _parsePx = require("./parsePx");
|
|
@@ -48,11 +48,11 @@ var _getTitle = require("./getTitle");
|
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
var breakoutConsts = exports.breakoutConsts = {
|
|
51
|
-
padding:
|
|
52
|
-
defaultLayoutWidth:
|
|
53
|
-
wideScaleRatio:
|
|
54
|
-
fullWidthLayoutWidth:
|
|
55
|
-
wideLayoutWidth:
|
|
51
|
+
padding: _constants.akEditorBreakoutPadding,
|
|
52
|
+
defaultLayoutWidth: _constants.akEditorDefaultLayoutWidth,
|
|
53
|
+
wideScaleRatio: _constants.breakoutWideScaleRatio,
|
|
54
|
+
fullWidthLayoutWidth: _constants.akEditorFullWidthLayoutWidth,
|
|
55
|
+
wideLayoutWidth: _constants.akEditorWideLayoutWidth,
|
|
56
56
|
mapBreakpointToLayoutMaxWidth: _BaseTheme.mapBreakpointToLayoutMaxWidth,
|
|
57
57
|
getBreakpoint: _WidthProvider.getBreakpoint,
|
|
58
58
|
/**
|
|
@@ -113,9 +113,9 @@ var absoluteBreakoutWidth = exports.absoluteBreakoutWidth = function absoluteBre
|
|
|
113
113
|
if (breakoutWidth.endsWith('%')) {
|
|
114
114
|
switch (layout) {
|
|
115
115
|
case 'full-width':
|
|
116
|
-
return
|
|
116
|
+
return _constants.akEditorFullWidthLayoutWidth;
|
|
117
117
|
case 'wide':
|
|
118
|
-
return
|
|
118
|
+
return _constants.akEditorWideLayoutWidth;
|
|
119
119
|
default:
|
|
120
120
|
return breakoutConsts.mapBreakpointToLayoutMaxWidth(breakoutConsts.getBreakpoint(containerWidth));
|
|
121
121
|
}
|
|
@@ -156,7 +156,7 @@ function calculateBreakoutStyles(_ref) {
|
|
|
156
156
|
display: 'flex',
|
|
157
157
|
justifyContent: 'center',
|
|
158
158
|
transform: 'none',
|
|
159
|
-
transition: "min-width 0.5s ".concat(
|
|
159
|
+
transition: "min-width 0.5s ".concat(_constants.akEditorSwoopCubicBezier)
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -171,7 +171,7 @@ function calculateBreakoutStyles(_ref) {
|
|
|
171
171
|
type: 'line-length-known',
|
|
172
172
|
width: breakoutWidth,
|
|
173
173
|
minWidth: breakoutWidthPx,
|
|
174
|
-
transition: "min-width 0.5s ".concat(
|
|
174
|
+
transition: "min-width 0.5s ".concat(_constants.akEditorSwoopCubicBezier),
|
|
175
175
|
transform: "translateX(-50%)",
|
|
176
176
|
marginLeft: "50%"
|
|
177
177
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.calculateSnapPoints = calculateSnapPoints;
|
|
7
|
-
var
|
|
7
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
8
8
|
var _calcPxFromColumns = require("../ui/MediaSingle/calcPxFromColumns");
|
|
9
9
|
function calculateSnapPoints(_ref) {
|
|
10
10
|
var $pos = _ref.$pos,
|
|
@@ -40,7 +40,7 @@ function calculateSnapPoints(_ref) {
|
|
|
40
40
|
var isTopLevel = $pos.parent.type.name === 'doc';
|
|
41
41
|
if (isTopLevel && allowBreakoutSnapPoints) {
|
|
42
42
|
snapPoints.push(akEditorWideLayoutWidth);
|
|
43
|
-
var fullWidthPoint = containerWidth -
|
|
43
|
+
var fullWidthPoint = containerWidth - _constants.akEditorBreakoutPadding;
|
|
44
44
|
if (fullWidthPoint > akEditorWideLayoutWidth) {
|
|
45
45
|
snapPoints.push(fullWidthPoint);
|
|
46
46
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.sanitizeNodeForPrivacy = sanitizeNodeForPrivacy;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _main = require("@atlaskit/adf-utils/traverse/main");
|
|
10
10
|
var _isResolvingMentionProvider = require("@atlaskit/mention/is-resolving-mention-provider");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -21,7 +21,7 @@ function sanitizeNodeForPrivacy(json, providerFactory) {
|
|
|
21
21
|
var hasCacheableMentions = false;
|
|
22
22
|
// Ignored via go/ees005
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
var sanitizedJSON = (0,
|
|
24
|
+
var sanitizedJSON = (0, _main.traverse)(json, {
|
|
25
25
|
mention: function mention(node) {
|
|
26
26
|
if (node.attrs && node.attrs.text) {
|
|
27
27
|
hasCacheableMentions = true;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getPageElementCounts = void 0;
|
|
7
|
+
var _reduce = require("@atlaskit/adf-utils/reduce");
|
|
7
8
|
var _transforms = require("@atlaskit/adf-utils/transforms");
|
|
8
|
-
var _traverse = require("@atlaskit/adf-utils/traverse");
|
|
9
9
|
/**
|
|
10
10
|
* Traverses a JSON document and counts the number of unique elements, text formatting and macros.
|
|
11
11
|
*
|
|
@@ -17,7 +17,7 @@ var getPageElementCounts = exports.getPageElementCounts = function getPageElemen
|
|
|
17
17
|
macros: {},
|
|
18
18
|
unexpectedElements: {}
|
|
19
19
|
};
|
|
20
|
-
(0,
|
|
20
|
+
(0, _reduce.reduce)(doc, function (acc, node) {
|
|
21
21
|
if (node.type === 'text') {
|
|
22
22
|
var _acc$elements$node$ty;
|
|
23
23
|
if (node.marks) {
|
|
@@ -70,14 +70,14 @@ var getPageElementCounts = exports.getPageElementCounts = function getPageElemen
|
|
|
70
70
|
* Return true is the JSON document contains a table nested within a table
|
|
71
71
|
*/
|
|
72
72
|
var getHasNestedTable = function getHasNestedTable(node) {
|
|
73
|
-
return (0,
|
|
73
|
+
return (0, _reduce.reduce)(node, function (hasNestedTable, node) {
|
|
74
74
|
if (hasNestedTable) {
|
|
75
75
|
return hasNestedTable;
|
|
76
76
|
}
|
|
77
77
|
if (node.type === 'table') {
|
|
78
78
|
// The first node that we pass into the reduce function is a table node, and we need to ignore it
|
|
79
79
|
var foundFirstTable = false;
|
|
80
|
-
return (0,
|
|
80
|
+
return (0, _reduce.reduce)(node, function (hasNestedTable, node) {
|
|
81
81
|
if (hasNestedTable) {
|
|
82
82
|
return hasNestedTable;
|
|
83
83
|
}
|
|
@@ -11,6 +11,17 @@ Object.defineProperty(exports, "processRawFragmentValue", {
|
|
|
11
11
|
});
|
|
12
12
|
exports.processRawValue = processRawValue;
|
|
13
13
|
exports.processRawValueWithoutValidation = processRawValueWithoutValidation;
|
|
14
|
+
var _dedupeMarksTransform = require("@atlaskit/adf-utils/dedupe-marks-transform");
|
|
15
|
+
var _depthLimitedNestingContainerNodesTransform = require("@atlaskit/adf-utils/depth-limited-nesting-container-nodes-transform");
|
|
16
|
+
var _indentationMarksTransform = require("@atlaskit/adf-utils/indentation-marks-transform");
|
|
17
|
+
var _invalidMediaContentTransform = require("@atlaskit/adf-utils/invalid-media-content-transform");
|
|
18
|
+
var _mediaLinkTransform = require("@atlaskit/adf-utils/media-link-transform");
|
|
19
|
+
var _nodesMissingContentTransform = require("@atlaskit/adf-utils/nodes-missing-content-transform");
|
|
20
|
+
var _panelC1FallbackTransform = require("@atlaskit/adf-utils/panel-c1-fallback-transform");
|
|
21
|
+
var _panelC1FallbackTransformV = require("@atlaskit/adf-utils/panel-c1-fallback-transform-v2");
|
|
22
|
+
var _syncBlockFallbackTransform = require("@atlaskit/adf-utils/sync-block-fallback-transform");
|
|
23
|
+
var _textLinkCodeTransform = require("@atlaskit/adf-utils/text-link-code-transform");
|
|
24
|
+
var _transformMediaSingleWidth = require("@atlaskit/adf-utils/transform-media-single-width");
|
|
14
25
|
var _transforms = require("@atlaskit/adf-utils/transforms");
|
|
15
26
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
16
27
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
@@ -30,7 +41,7 @@ var _processRawFragmentValue = require("./processRawFragmentValue");
|
|
|
30
41
|
// table-in-panel path keeps using the deprecated table-only transform until
|
|
31
42
|
// platform_editor_nest_container_in_panel is rolled out.
|
|
32
43
|
var runPanelC1FallbackTransform = function runPanelC1FallbackTransform(schema, adf) {
|
|
33
|
-
return (0, _isPanelNestingContainerExperimentEnabled.isPanelNestingContainerExperimentEnabled)() ? (0,
|
|
44
|
+
return (0, _isPanelNestingContainerExperimentEnabled.isPanelNestingContainerExperimentEnabled)() ? (0, _panelC1FallbackTransformV.panelC1FallbackTransformV2)(schema, adf) : (0, _panelC1FallbackTransform.panelC1FallbackTransform)(schema, adf);
|
|
34
45
|
};
|
|
35
46
|
var transformNestedTablesWithAnalytics = function transformNestedTablesWithAnalytics(node, dispatchAnalyticsEvent) {
|
|
36
47
|
try {
|
|
@@ -71,7 +82,7 @@ var transformNestedTablesWithAnalytics = function transformNestedTablesWithAnaly
|
|
|
71
82
|
};
|
|
72
83
|
var transformContainerNodesWithAnalytics = function transformContainerNodesWithAnalytics(node, schema, dispatchAnalyticsEvent) {
|
|
73
84
|
try {
|
|
74
|
-
var _transformContainerNo = (0,
|
|
85
|
+
var _transformContainerNo = (0, _depthLimitedNestingContainerNodesTransform.transformContainerNodes)(node, schema),
|
|
75
86
|
transformedAdf = _transformContainerNo.transformedAdf,
|
|
76
87
|
isTransformed = _transformContainerNo.isTransformed,
|
|
77
88
|
transformedNodeTypes = _transformContainerNo.transformedNodeTypes;
|
|
@@ -142,7 +153,7 @@ function processRawValueWithoutValidation(schema, value, dispatchAnalyticsEvent)
|
|
|
142
153
|
// Convert nested-table extensions into nested tables
|
|
143
154
|
var _transformNestedTable2 = transformNestedTablesWithAnalytics(node, dispatchAnalyticsEvent),
|
|
144
155
|
transformedAdf = _transformNestedTable2.transformedAdf;
|
|
145
|
-
var result = (0,
|
|
156
|
+
var result = (0, _syncBlockFallbackTransform.syncBlockFallbackTransform)(schema, transformedAdf);
|
|
146
157
|
if (result.isTransformed && result.transformedAdf) {
|
|
147
158
|
transformedAdf = result.transformedAdf;
|
|
148
159
|
}
|
|
@@ -220,7 +231,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
220
231
|
|
|
221
232
|
// link mark on mediaSingle is deprecated, need to move link mark to child media node
|
|
222
233
|
// https://product-fabric.atlassian.net/browse/ED-14043
|
|
223
|
-
var _transformMediaLinkMa = (0,
|
|
234
|
+
var _transformMediaLinkMa = (0, _mediaLinkTransform.transformMediaLinkMarks)(node),
|
|
224
235
|
transformedAdf = _transformMediaLinkMa.transformedAdf,
|
|
225
236
|
isTransformed = _transformMediaLinkMa.isTransformed;
|
|
226
237
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -232,7 +243,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
232
243
|
}
|
|
233
244
|
|
|
234
245
|
// Fix mediaSingle width issues
|
|
235
|
-
var _transformMediaSingle = (0,
|
|
246
|
+
var _transformMediaSingle = (0, _transformMediaSingleWidth.transformMediaSingleWidth)(transformedAdf);
|
|
236
247
|
transformedAdf = _transformMediaSingle.transformedAdf;
|
|
237
248
|
isTransformed = _transformMediaSingle.isTransformed;
|
|
238
249
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -248,7 +259,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
248
259
|
// text nodes. This util strips code marks from bad text nodes and preserves links.
|
|
249
260
|
// Otherwise, prosemirror will try to repair the invalid document by stripping links
|
|
250
261
|
// and preserving code marks during content changes.
|
|
251
|
-
var _transformTextLinkCod = (0,
|
|
262
|
+
var _transformTextLinkCod = (0, _textLinkCodeTransform.transformTextLinkCodeMarks)(transformedAdf);
|
|
252
263
|
transformedAdf = _transformTextLinkCod.transformedAdf;
|
|
253
264
|
isTransformed = _transformTextLinkCod.isTransformed;
|
|
254
265
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -259,7 +270,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
259
270
|
});
|
|
260
271
|
}
|
|
261
272
|
var discardedMarks = [];
|
|
262
|
-
var _transformDedupeMarks = (0,
|
|
273
|
+
var _transformDedupeMarks = (0, _dedupeMarksTransform.transformDedupeMarks)(transformedAdf);
|
|
263
274
|
transformedAdf = _transformDedupeMarks.transformedAdf;
|
|
264
275
|
isTransformed = _transformDedupeMarks.isTransformed;
|
|
265
276
|
discardedMarks = _transformDedupeMarks.discardedMarks;
|
|
@@ -282,7 +293,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
282
293
|
}
|
|
283
294
|
});
|
|
284
295
|
}
|
|
285
|
-
var _transformNodesMissin = (0,
|
|
296
|
+
var _transformNodesMissin = (0, _nodesMissingContentTransform.transformNodesMissingContent)(transformedAdf);
|
|
286
297
|
transformedAdf = _transformNodesMissin.transformedAdf;
|
|
287
298
|
isTransformed = _transformNodesMissin.isTransformed;
|
|
288
299
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -292,7 +303,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
292
303
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
293
304
|
});
|
|
294
305
|
}
|
|
295
|
-
var _transformIndentation = (0,
|
|
306
|
+
var _transformIndentation = (0, _indentationMarksTransform.transformIndentationMarks)(transformedAdf);
|
|
296
307
|
transformedAdf = _transformIndentation.transformedAdf;
|
|
297
308
|
isTransformed = _transformIndentation.isTransformed;
|
|
298
309
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -302,7 +313,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
302
313
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
303
314
|
});
|
|
304
315
|
}
|
|
305
|
-
var _transformInvalidMedi = (0,
|
|
316
|
+
var _transformInvalidMedi = (0, _invalidMediaContentTransform.transformInvalidMediaContent)(transformedAdf);
|
|
306
317
|
transformedAdf = _transformInvalidMedi.transformedAdf;
|
|
307
318
|
isTransformed = _transformInvalidMedi.isTransformed;
|
|
308
319
|
if (isTransformed && dispatchAnalyticsEvent) {
|
|
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEF
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
exports.getUnsupportedContentLevelData = void 0;
|
|
19
|
-
var
|
|
19
|
+
var _main = require("@atlaskit/adf-utils/traverse/main");
|
|
20
20
|
var _UNSUPPORTED_CONTENT_LEVEL_SEVERITY = require("./UNSUPPORTED_CONTENT_LEVEL_SEVERITY");
|
|
21
21
|
var _UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS = require("./UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS");
|
|
22
22
|
var buildUnsupportedContentLevelThresholds = function buildUnsupportedContentLevelThresholds(customThresholds) {
|
|
@@ -30,7 +30,7 @@ var countSupportedUnsupportedNodes = function countSupportedUnsupportedNodes(val
|
|
|
30
30
|
var supportedNodes = 0;
|
|
31
31
|
var unsupportedNodeTypeCount = {};
|
|
32
32
|
var unsupportedNodeTypes = ['unsupportedInline', 'unsupportedBlock', 'confluenceUnsupportedInline', 'confluenceUnsupportedBlock'];
|
|
33
|
-
(0,
|
|
33
|
+
(0, _main.traverse)(validDocument, {
|
|
34
34
|
any: function any(node) {
|
|
35
35
|
if (unsupportedNodeTypes.includes(node.type)) {
|
|
36
36
|
var _node$attrs;
|
|
@@ -39,7 +39,7 @@ var countSupportedUnsupportedNodes = function countSupportedUnsupportedNodes(val
|
|
|
39
39
|
// start an independent traversal for the purpose of counting
|
|
40
40
|
// unsupported content nodes (with nested children contributing towards
|
|
41
41
|
// that count)
|
|
42
|
-
(0,
|
|
42
|
+
(0, _main.traverse)(originalNode, {
|
|
43
43
|
any: function any(unsupportedNode, parent) {
|
|
44
44
|
var _parent$parent$node$t, _parent$parent, _unsupportedNode$type, _unsupportedNodeTypeC;
|
|
45
45
|
unsupportedNodes++;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
6
6
|
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
7
7
|
import AlignImageRightIcon from '@atlaskit/icon/core/align-image-right';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
|
-
import { participantColors } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { participantColors } from '@atlaskit/editor-shared-styles/constants';
|
|
7
7
|
import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
|
|
8
8
|
|
|
9
9
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
@@ -14,7 +14,7 @@ import { Grid, List } from 'react-virtualized';
|
|
|
14
14
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
15
15
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
|
-
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
17
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
18
18
|
import ButtonItem from '@atlaskit/menu/button-item';
|
|
19
19
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -8,8 +8,8 @@ import React, { memo, useLayoutEffect, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
11
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
12
|
+
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut/main';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
15
|
import Textfield from '@atlaskit/textfield/text-field';
|
|
@@ -7,7 +7,7 @@ import React, { Fragment, useMemo } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
|
-
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
|
-
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
2
|
+
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
3
3
|
import { roundToNearest } from '../media-single';
|
|
4
4
|
import { getContainerWidthOrFullEditorWidth } from './getContainerWidthOrFullEditorWidth';
|
|
5
5
|
const getDefaultGuidelines = memoizeOne(editorWidth => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -11,7 +11,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
12
12
|
|
|
13
13
|
import { injectIntl } from 'react-intl';
|
|
14
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
17
17
|
import { transformTimeStamp } from './transformTimeStamp';
|
|
@@ -6,7 +6,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { getRandomHex } from '@atlaskit/media-common';
|
|
9
|
+
import { getRandomHex } from '@atlaskit/media-common/helpers';
|
|
10
10
|
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
9
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette/border';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, selectedStyle, wrapperStyle } from './styles';
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ import { fireSucceededOperationalEvent as fireSucceededMediaInlineEvent } from '
|
|
|
14
14
|
import { MediaCardError } from '@atlaskit/media-card/media-card-error';
|
|
15
15
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
16
16
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
17
|
-
import
|
|
17
|
+
import MediaViewer from '@atlaskit/media-viewer/media-viewer-loader';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
20
20
|
import { messages } from '../messages/media-inline-card';
|
|
@@ -7,7 +7,7 @@ import { forwardRef, useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import debounce from 'lodash/debounce';
|
|
9
9
|
import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
|
-
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
3
3
|
/**
|
|
4
4
|
* Calculate maximum width allowed for media single node in fix-width editor in new experience
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
import { floatingLayouts } from '../utils/floatingLayouts';
|
|
3
3
|
import { calcMediaSingleMaxWidth } from './calcMediaSingleMaxWidth';
|
|
4
4
|
import { wrappedLayouts } from './constants';
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "130.3.
|
|
16
|
+
const packageVersion = "130.3.2";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
1
|
+
import { traverse } from '@atlaskit/adf-utils/traverse/main';
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Promotes `panel` nodes to `panel_c1` wherever their content makes them invalid
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { selectTableClosestToPos } from '@atlaskit/editor-tables/
|
|
2
|
+
import { selectTableClosestToPos } from '@atlaskit/editor-tables/select-table-closest-to-pos';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns a NodeSelection for the node at `start`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
3
3
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
4
4
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
5
5
|
import { tableCellPadding } from '../styles/shared/table';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
6
5
|
import { isSSR } from '../core-utils/is-ssr';
|
|
7
6
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -399,9 +398,6 @@ export function getInlineNodeViewProducer({
|
|
|
399
398
|
if (!isNodeTypeAllowedToBeVirtualized || isSSR()) {
|
|
400
399
|
return createNodeView(parameters);
|
|
401
400
|
}
|
|
402
|
-
if (fg('platform_editor_inline_node_virt_threshold_override')) {
|
|
403
|
-
return createNodeViewVirtualized(parameters);
|
|
404
|
-
}
|
|
405
401
|
let inlineNodeViewsVirtualizationCounter = counterPerEditorViewMap.get(view) || 0;
|
|
406
402
|
inlineNodeViewsVirtualizationCounter += 1;
|
|
407
403
|
counterPerEditorViewMap.set(view, inlineNodeViewsVirtualizationCounter);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { bind, bindAll } from 'bind-event-listener';
|
|
3
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState } from 'react';
|
|
2
|
-
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
2
|
+
import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
export const SNAP_GAP = 8;
|
|
5
5
|
const GUIDELINE_KEYS = {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
|
|
4
4
|
import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { CellSelection } from '@atlaskit/editor-tables';
|
|
6
|
-
import { selectedRect } from '@atlaskit/editor-tables/utils';
|
|
5
|
+
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
6
|
+
import { selectedRect } from '@atlaskit/editor-tables/utils/selection-rect';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
8
8
|
export { RelativeSelectionPos } from './types';
|
|
9
9
|
export { Side } from './gap-cursor/Side';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const blockquoteSharedStyles = css({
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
export const calcTableWidth = (layout, containerWidth, addControllerPadding = true) => {
|
|
3
3
|
switch (layout) {
|
|
4
4
|
case 'full-width':
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tableBackgroundColorNames } from '@atlaskit/adf-schema/tableNodes';
|
|
2
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
2
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
3
3
|
|
|
4
4
|
// This is used in order to support usage of DS tokens. Table cell background-color
|
|
5
5
|
// is set inline in '@atlaskit/adf-schema' and the color value is stored in ADF so
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
const richMediaClassName = 'rich-media-item';
|
|
6
6
|
const wrappedMediaBreakoutPoint = 410;
|
|
7
7
|
const mediaSingleSharedStyle = css({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
2
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
3
3
|
const lightPanelColors = {
|
|
4
4
|
info: '#DEEBFF',
|
|
5
5
|
note: '#EAE6FF',
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
-
import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth
|
|
5
|
+
import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
|
+
import { overflowShadow } from '@atlaskit/editor-shared-styles/overflow-shadow';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import "./NewSortingIcon.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { SortAscendingIcon
|
|
5
|
+
import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
|
|
6
|
+
import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
|
|
6
7
|
import { SortOrder } from '../types';
|
|
7
8
|
const newIconWrapperStyles = {
|
|
8
9
|
base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { ToolbarUIProvider } from '@atlaskit/editor-toolbar';
|
|
2
|
+
import { ToolbarUIProvider } from '@atlaskit/editor-toolbar/ui-context';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
4
|
export const EditorToolbarUIProvider = ({
|
|
5
5
|
children,
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { ThemeProvider } from '@emotion/react';
|
|
5
|
-
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { WidthConsumer } from '../WidthProvider';
|
|
7
7
|
export function mapBreakpointToLayoutMaxWidth(breakpoint) {
|
|
8
8
|
switch (breakpoint) {
|