@atlaskit/editor-common 74.45.0 → 74.45.2
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 +14 -0
- package/dist/cjs/icons/shared/table.js +24 -7
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/list-number.js +18 -6
- package/dist/cjs/quick-insert/assets/list.js +21 -10
- package/dist/cjs/quick-insert/assets/quote.js +15 -3
- package/dist/cjs/quick-insert/assets/status.js +55 -16
- package/dist/cjs/styles/shared/media-single.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -8
- package/dist/cjs/utils/rich-media-utils.js +3 -6
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/icons/shared/table.js +25 -7
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/list-number.js +19 -6
- package/dist/es2019/quick-insert/assets/list.js +22 -9
- package/dist/es2019/quick-insert/assets/quote.js +16 -3
- package/dist/es2019/quick-insert/assets/status.js +56 -15
- package/dist/es2019/styles/shared/media-single.js +3 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -11
- package/dist/es2019/utils/rich-media-utils.js +3 -6
- package/dist/es2019/version.json +1 -1
- package/dist/esm/icons/shared/table.js +24 -7
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/list-number.js +18 -6
- package/dist/esm/quick-insert/assets/list.js +21 -9
- package/dist/esm/quick-insert/assets/quote.js +15 -3
- package/dist/esm/quick-insert/assets/status.js +55 -15
- package/dist/esm/styles/shared/media-single.js +1 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -8
- package/dist/esm/utils/rich-media-utils.js +3 -6
- package/dist/esm/version.json +1 -1
- package/dist/types/collab/index.d.ts +4 -1
- package/dist/types/utils/rich-media-utils.d.ts +4 -4
- package/dist/types-ts4.5/collab/index.d.ts +4 -1
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
3
|
export default function IconStatus() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
focusable: "false",
|
|
7
8
|
"aria-hidden": true,
|
|
@@ -11,17 +12,26 @@ export default function IconStatus() {
|
|
|
11
12
|
fill: "none",
|
|
12
13
|
fillRule: "evenodd"
|
|
13
14
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
fill:
|
|
15
|
+
fill: iconThemed({
|
|
16
|
+
light: '#FFF',
|
|
17
|
+
dark: '#161A1D'
|
|
18
|
+
}),
|
|
15
19
|
d: "M0 0h40v40H0z"
|
|
16
20
|
}), /*#__PURE__*/React.createElement("g", {
|
|
17
21
|
transform: "translate(5 11)"
|
|
18
22
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
19
|
-
fill:
|
|
23
|
+
fill: iconThemed({
|
|
24
|
+
light: '#B3D4FF',
|
|
25
|
+
dark: '#09326C'
|
|
26
|
+
}),
|
|
20
27
|
width: 14,
|
|
21
28
|
height: 5,
|
|
22
29
|
rx: 1
|
|
23
30
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
-
fill:
|
|
31
|
+
fill: iconThemed({
|
|
32
|
+
light: '#0065FF',
|
|
33
|
+
dark: '#1D7AFC'
|
|
34
|
+
}),
|
|
25
35
|
x: 2,
|
|
26
36
|
y: 2,
|
|
27
37
|
width: 10,
|
|
@@ -30,12 +40,18 @@ export default function IconStatus() {
|
|
|
30
40
|
})), /*#__PURE__*/React.createElement("g", {
|
|
31
41
|
transform: "translate(5 18)"
|
|
32
42
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
33
|
-
fill:
|
|
43
|
+
fill: iconThemed({
|
|
44
|
+
light: '#C3F8DF',
|
|
45
|
+
dark: '#164B35'
|
|
46
|
+
}),
|
|
34
47
|
width: 14,
|
|
35
48
|
height: 5,
|
|
36
49
|
rx: 1
|
|
37
50
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
38
|
-
fill:
|
|
51
|
+
fill: iconThemed({
|
|
52
|
+
light: '#36B37E',
|
|
53
|
+
dark: '#22A06B'
|
|
54
|
+
}),
|
|
39
55
|
x: 2,
|
|
40
56
|
y: 2,
|
|
41
57
|
width: 10,
|
|
@@ -44,12 +60,18 @@ export default function IconStatus() {
|
|
|
44
60
|
})), /*#__PURE__*/React.createElement("g", {
|
|
45
61
|
transform: "translate(5 25)"
|
|
46
62
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
47
|
-
fill:
|
|
63
|
+
fill: iconThemed({
|
|
64
|
+
light: '#DFE1E6',
|
|
65
|
+
dark: '#2C333A'
|
|
66
|
+
}),
|
|
48
67
|
width: 14,
|
|
49
68
|
height: 5,
|
|
50
69
|
rx: 1
|
|
51
70
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
52
|
-
fill:
|
|
71
|
+
fill: iconThemed({
|
|
72
|
+
light: '#8993A4',
|
|
73
|
+
dark: '#5A6977'
|
|
74
|
+
}),
|
|
53
75
|
x: 2,
|
|
54
76
|
y: 2,
|
|
55
77
|
width: 10,
|
|
@@ -58,12 +80,18 @@ export default function IconStatus() {
|
|
|
58
80
|
})), /*#__PURE__*/React.createElement("g", {
|
|
59
81
|
transform: "translate(21 25)"
|
|
60
82
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
61
|
-
fill:
|
|
83
|
+
fill: iconThemed({
|
|
84
|
+
light: '#FFD3C8',
|
|
85
|
+
dark: '#601D16'
|
|
86
|
+
}),
|
|
62
87
|
width: 14,
|
|
63
88
|
height: 5,
|
|
64
89
|
rx: 1
|
|
65
90
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
66
|
-
fill:
|
|
91
|
+
fill: iconThemed({
|
|
92
|
+
light: '#FF5230',
|
|
93
|
+
dark: '#F35844'
|
|
94
|
+
}),
|
|
67
95
|
x: 2,
|
|
68
96
|
y: 2,
|
|
69
97
|
width: 10,
|
|
@@ -72,12 +100,18 @@ export default function IconStatus() {
|
|
|
72
100
|
})), /*#__PURE__*/React.createElement("g", {
|
|
73
101
|
transform: "translate(21 11)"
|
|
74
102
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
75
|
-
fill:
|
|
103
|
+
fill: iconThemed({
|
|
104
|
+
light: '#EAE6FF',
|
|
105
|
+
dark: '#352C63'
|
|
106
|
+
}),
|
|
76
107
|
width: 14,
|
|
77
108
|
height: 5,
|
|
78
109
|
rx: 1
|
|
79
110
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
80
|
-
fill:
|
|
111
|
+
fill: iconThemed({
|
|
112
|
+
light: '#8777D9',
|
|
113
|
+
dark: '#8270DB'
|
|
114
|
+
}),
|
|
81
115
|
x: 2,
|
|
82
116
|
y: 2,
|
|
83
117
|
width: 10,
|
|
@@ -86,12 +120,18 @@ export default function IconStatus() {
|
|
|
86
120
|
})), /*#__PURE__*/React.createElement("g", {
|
|
87
121
|
transform: "translate(21 18)"
|
|
88
122
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
89
|
-
fill:
|
|
123
|
+
fill: iconThemed({
|
|
124
|
+
light: '#FFF0B3',
|
|
125
|
+
dark: '#5F3811'
|
|
126
|
+
}),
|
|
90
127
|
width: 14,
|
|
91
128
|
height: 5,
|
|
92
129
|
rx: 1
|
|
93
130
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
94
|
-
fill:
|
|
131
|
+
fill: iconThemed({
|
|
132
|
+
light: '#FF991F',
|
|
133
|
+
dark: '#D19D00'
|
|
134
|
+
}),
|
|
95
135
|
x: 2,
|
|
96
136
|
y: 2,
|
|
97
137
|
width: 10,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
var richMediaClassName = 'rich-media-item';
|
|
6
5
|
var wrappedMediaBreakoutPoint = 410;
|
|
7
|
-
var mediaSingleSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n li .", " {\n margin: 0;\n }\n\n /* Hack for chrome to fix media single position\n inside a list when media is the first child */\n &.ua-chrome li > .mediaSingleView-content-wrap::before {\n content: '';\n display: block;\n height: 0;\n }\n\n &.ua-firefox {\n .mediaSingleView-content-wrap {\n user-select: none;\n }\n\n .captionView-content-wrap {\n user-select: text;\n }\n }\n\n .mediaSingleView-content-wrap[layout='center'] {\n clear: both;\n }\n\n table .", " {\n margin-top: ", ";\n margin-bottom: ", ";\n clear: both;\n\n &.image-wrap-left,\n &.image-wrap-right {\n clear: none;\n\n &:first-child {\n margin-top: ", ";\n }\n }\n }\n\n .", ".image-wrap-right\n + .", ".image-wrap-left {\n clear: both;\n }\n\n .", ".image-wrap-left\n + .", ".image-wrap-right,\n .", ".image-wrap-right\n + .", ".image-wrap-left,\n .", ".image-wrap-left\n + .", ".image-wrap-left,\n .", ".image-wrap-right\n + .", ".image-wrap-right {\n margin-right: 0;\n margin-left: 0;\n }\n\n
|
|
6
|
+
var mediaSingleSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n li .", " {\n margin: 0;\n }\n\n /* Hack for chrome to fix media single position\n inside a list when media is the first child */\n &.ua-chrome li > .mediaSingleView-content-wrap::before {\n content: '';\n display: block;\n height: 0;\n }\n\n &.ua-firefox {\n .mediaSingleView-content-wrap {\n user-select: none;\n }\n\n .captionView-content-wrap {\n user-select: text;\n }\n }\n\n .mediaSingleView-content-wrap[layout='center'] {\n clear: both;\n }\n\n table .", " {\n margin-top: ", ";\n margin-bottom: ", ";\n clear: both;\n\n &.image-wrap-left,\n &.image-wrap-right {\n clear: none;\n\n &:first-child {\n margin-top: ", ";\n }\n }\n }\n\n .", ".image-wrap-right\n + .", ".image-wrap-left {\n clear: both;\n }\n\n .", ".image-wrap-left\n + .", ".image-wrap-right,\n .", ".image-wrap-right\n + .", ".image-wrap-left,\n .", ".image-wrap-left\n + .", ".image-wrap-left,\n .", ".image-wrap-right\n + .", ".image-wrap-right {\n margin-right: 0;\n margin-left: 0;\n }\n\n @media all and (max-width: ", "px) {\n div.mediaSingleView-content-wrap[layout='wrap-left'],\n div.mediaSingleView-content-wrap[data-layout='wrap-left'],\n div.mediaSingleView-content-wrap[layout='wrap-right'],\n div.mediaSingleView-content-wrap[data-layout='wrap-right'] {\n float: none;\n overflow: auto;\n margin: ", " 0;\n }\n }\n"])), richMediaClassName, richMediaClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, wrappedMediaBreakoutPoint, "var(--ds-space-150, 12px)");
|
|
8
7
|
export { mediaSingleSharedStyle, richMediaClassName };
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "74.45.
|
|
21
|
+
var packageVersion = "74.45.2";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = '0, 8';
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,7 +7,6 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { calcMediaSingleMaxWidth } from '../../media-single';
|
|
11
10
|
import { nonWrappedLayouts } from '../../utils';
|
|
12
11
|
import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
|
|
13
12
|
function float(layout) {
|
|
@@ -80,12 +79,6 @@ function calcMaxWidth(layout, containerWidth) {
|
|
|
80
79
|
return '100%';
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
var getEffectiveFullWidth = function getEffectiveFullWidth(containerWidth, fullWidthMode) {
|
|
84
|
-
if (fullWidthMode) {
|
|
85
|
-
return '100%';
|
|
86
|
-
}
|
|
87
|
-
return "".concat(calcMediaSingleMaxWidth(containerWidth), "px");
|
|
88
|
-
};
|
|
89
82
|
function calcMargin(layout) {
|
|
90
83
|
switch (layout) {
|
|
91
84
|
case 'wrap-right':
|
|
@@ -122,7 +115,7 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
|
|
|
122
115
|
isExtendedResizeExperienceOn = _ref.isExtendedResizeExperienceOn,
|
|
123
116
|
_ref$isNestedNode = _ref.isNestedNode,
|
|
124
117
|
isNestedNode = _ref$isNestedNode === void 0 ? false : _ref$isNestedNode;
|
|
125
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] & {\n max-width: 100%;\n }\n\n width: ", ";\n ", "\n max-width: ", ";\n\n ", "\n\n &[class*='not-resizing'] {\n ", "\n }\n\n float: ", ";\n margin: ", ";\n ", ";\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n"])), mediaSingleWidth || pctWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized), layout === 'full-width' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), !isNestedNode && "".concat(nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);"
|
|
118
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] & {\n max-width: 100%;\n }\n\n width: ", ";\n ", "\n max-width: ", ";\n\n ", "\n\n &[class*='not-resizing'] {\n ", "\n }\n\n float: ", ";\n margin: ", ";\n ", ";\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n"])), mediaSingleWidth || pctWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized), layout === 'full-width' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), !isNestedNode && "".concat(nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);"), float(layout), calcMargin(layout), isImageAligned(layout));
|
|
126
119
|
};
|
|
127
120
|
var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
|
|
128
121
|
var hasFallbackContainer = _ref2.hasFallbackContainer,
|
|
@@ -9,7 +9,7 @@ export var shouldAddDefaultWrappedWidth = function shouldAddDefaultWrappedWidth(
|
|
|
9
9
|
};
|
|
10
10
|
export var nonWrappedLayouts = ['center', 'wide', 'full-width'];
|
|
11
11
|
export var floatingLayouts = ['wrap-left', 'wrap-right'];
|
|
12
|
-
export var isRichMediaInsideOfBlockNode = function isRichMediaInsideOfBlockNode(view, pos
|
|
12
|
+
export var isRichMediaInsideOfBlockNode = function isRichMediaInsideOfBlockNode(view, pos) {
|
|
13
13
|
if (typeof pos !== 'number' || isNaN(pos) || !view) {
|
|
14
14
|
return false;
|
|
15
15
|
}
|
|
@@ -17,11 +17,8 @@ export var isRichMediaInsideOfBlockNode = function isRichMediaInsideOfBlockNode(
|
|
|
17
17
|
var _view$state$schema$no = view.state.schema.nodes,
|
|
18
18
|
expand = _view$state$schema$no.expand,
|
|
19
19
|
nestedExpand = _view$state$schema$no.nestedExpand,
|
|
20
|
-
layoutColumn = _view$state$schema$no.layoutColumn
|
|
21
|
-
|
|
22
|
-
listItem = _view$state$schema$no.listItem;
|
|
23
|
-
var parentNodeTypes = [expand, nestedExpand, layoutColumn];
|
|
24
|
-
return !!findParentNodeOfTypeClosestToPos($pos, includeMoreParentNodeTypes ? [].concat(parentNodeTypes, [tableCell, listItem]) : parentNodeTypes);
|
|
20
|
+
layoutColumn = _view$state$schema$no.layoutColumn;
|
|
21
|
+
return !!findParentNodeOfTypeClosestToPos($pos, [expand, nestedExpand, layoutColumn]);
|
|
25
22
|
};
|
|
26
23
|
export var alignAttributes = function alignAttributes(layout, oldAttrs) {
|
|
27
24
|
var gridSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;
|
package/dist/esm/version.json
CHANGED
|
@@ -369,8 +369,11 @@ export interface CollabInviteToEditProps {
|
|
|
369
369
|
}
|
|
370
370
|
export interface CollabAnalyticsProps {
|
|
371
371
|
/**
|
|
372
|
-
* @description Control
|
|
372
|
+
* @description Control whether Synchrony entity error events are tracked
|
|
373
373
|
*/
|
|
374
374
|
EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
|
|
375
375
|
}
|
|
376
|
+
export interface CollabEventLocalStepData {
|
|
377
|
+
steps: Array<Step>;
|
|
378
|
+
}
|
|
376
379
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { SnapPointsProps } from '../types';
|
|
1
|
+
import type { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { SnapPointsProps } from '../types';
|
|
4
4
|
export declare const shouldAddDefaultWrappedWidth: (layout: RichMediaLayout, width?: number, lineLength?: number) => boolean | 0 | undefined;
|
|
5
5
|
export declare const nonWrappedLayouts: RichMediaLayout[];
|
|
6
6
|
export declare const floatingLayouts: string[];
|
|
7
|
-
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean
|
|
7
|
+
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean) => boolean;
|
|
8
8
|
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number) => RichMediaAttributes;
|
|
9
9
|
export declare function calculateSnapPoints({ $pos, akEditorWideLayoutWidth, allowBreakoutSnapPoints, containerWidth, gridSize, gridWidth, insideInlineLike, insideLayout, isVideoFile, lineLength, offsetLeft, wrappedLayout, }: SnapPointsProps): number[];
|
|
@@ -369,8 +369,11 @@ export interface CollabInviteToEditProps {
|
|
|
369
369
|
}
|
|
370
370
|
export interface CollabAnalyticsProps {
|
|
371
371
|
/**
|
|
372
|
-
* @description Control
|
|
372
|
+
* @description Control whether Synchrony entity error events are tracked
|
|
373
373
|
*/
|
|
374
374
|
EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
|
|
375
375
|
}
|
|
376
|
+
export interface CollabEventLocalStepData {
|
|
377
|
+
steps: Array<Step>;
|
|
378
|
+
}
|
|
376
379
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { SnapPointsProps } from '../types';
|
|
1
|
+
import type { RichMediaAttributes, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
+
import type { SnapPointsProps } from '../types';
|
|
4
4
|
export declare const shouldAddDefaultWrappedWidth: (layout: RichMediaLayout, width?: number, lineLength?: number) => boolean | 0 | undefined;
|
|
5
5
|
export declare const nonWrappedLayouts: RichMediaLayout[];
|
|
6
6
|
export declare const floatingLayouts: string[];
|
|
7
|
-
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean
|
|
7
|
+
export declare const isRichMediaInsideOfBlockNode: (view: EditorView, pos: number | boolean) => boolean;
|
|
8
8
|
export declare const alignAttributes: (layout: RichMediaLayout, oldAttrs: RichMediaAttributes, gridSize: number | undefined, originalWidth: number, lineLength?: number) => RichMediaAttributes;
|
|
9
9
|
export declare function calculateSnapPoints({ $pos, akEditorWideLayoutWidth, allowBreakoutSnapPoints, containerWidth, gridSize, gridWidth, insideInlineLike, insideLayout, isVideoFile, lineLength, offsetLeft, wrappedLayout, }: SnapPointsProps): number[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.45.
|
|
3
|
+
"version": "74.45.2",
|
|
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/"
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@atlaskit/icon": "^21.12.0",
|
|
100
100
|
"@atlaskit/icon-object": "^6.3.0",
|
|
101
101
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
102
|
-
"@atlaskit/link-datasource": "^0.
|
|
102
|
+
"@atlaskit/link-datasource": "^0.34.0",
|
|
103
103
|
"@atlaskit/link-picker": "^1.28.0",
|
|
104
104
|
"@atlaskit/media-card": "^76.1.0",
|
|
105
105
|
"@atlaskit/media-client": "^23.1.0",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
144
144
|
},
|
|
145
145
|
"devDependencies": {
|
|
146
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
146
|
+
"@atlaskit/editor-test-helpers": "^18.11.0",
|
|
147
147
|
"@atlaskit/media-core": "^34.1.0",
|
|
148
148
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
149
149
|
"@atlaskit/smart-card": "^26.15.0",
|