@atlaskit/editor-core 187.47.2 → 187.47.5
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 +13 -0
- package/dist/cjs/plugins/date/nodeviews/date.js +1 -6
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +2 -6
- package/dist/cjs/plugins/floating-toolbar/index.js +8 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -1
- package/dist/cjs/ui/FloatingToolbar/index.js +2 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/date/nodeviews/date.js +1 -6
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +2 -6
- package/dist/es2019/plugins/floating-toolbar/index.js +7 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/es2019/ui/FloatingToolbar/index.js +2 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/date/nodeviews/date.js +1 -6
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +2 -6
- package/dist/esm/plugins/floating-toolbar/index.js +8 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +2 -1
- package/dist/esm/ui/FloatingToolbar/index.js +2 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/FloatingToolbar/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/FloatingToolbar/index.d.ts +2 -0
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 187.47.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b1b8c7d356c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1b8c7d356c) - [ED-19757] Fix getPos throwing exception for all nodeviews
|
|
8
|
+
|
|
9
|
+
## 187.47.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3aaff60be08`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3aaff60be08) - ED-18988 Updates overflow property for content area of comment editor when table sticky scrollbar is enabled.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 187.47.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -19,12 +19,7 @@ function DateNodeView(props) {
|
|
|
19
19
|
selection = _props$view$state.selection,
|
|
20
20
|
getPos = props.getPos;
|
|
21
21
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
22
|
-
var pos;
|
|
23
|
-
try {
|
|
24
|
-
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
25
|
-
} catch (e) {
|
|
26
|
-
pos = undefined;
|
|
27
|
-
}
|
|
22
|
+
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
28
23
|
|
|
29
24
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
30
25
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -41,12 +41,8 @@ function ExtensionWithPluginState(props) {
|
|
|
41
41
|
var getPos = props.getPos,
|
|
42
42
|
view = props.view;
|
|
43
43
|
var isTopLevelNode = _react.default.useMemo(function () {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
47
|
-
} catch (e) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
44
|
+
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
45
|
+
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
50
46
|
return false;
|
|
51
47
|
}, [view, getPos]);
|
|
52
48
|
var shouldBreakout =
|
|
@@ -223,6 +223,13 @@ function ContentComponent(_ref5) {
|
|
|
223
223
|
forcePlacement = config.forcePlacement,
|
|
224
224
|
preventPopupOverflow = config.preventPopupOverflow,
|
|
225
225
|
onPositionCalculated = config.onPositionCalculated,
|
|
226
|
+
_config$absoluteOffse = config.absoluteOffset,
|
|
227
|
+
absoluteOffset = _config$absoluteOffse === void 0 ? {
|
|
228
|
+
top: 0,
|
|
229
|
+
left: 0,
|
|
230
|
+
right: 0,
|
|
231
|
+
bottom: 0
|
|
232
|
+
} : _config$absoluteOffse,
|
|
226
233
|
focusTrap = config.focusTrap;
|
|
227
234
|
var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
228
235
|
if (!targetRef || editorDisabledState && editorDisabledState.editorDisabled) {
|
|
@@ -258,6 +265,7 @@ function ContentComponent(_ref5) {
|
|
|
258
265
|
forcePlacement: forcePlacement,
|
|
259
266
|
fitHeight: height,
|
|
260
267
|
fitWidth: width,
|
|
268
|
+
absoluteOffset: absoluteOffset,
|
|
261
269
|
alignX: align,
|
|
262
270
|
stick: true,
|
|
263
271
|
zIndex: zIndex,
|
|
@@ -30,6 +30,7 @@ var _WithFlash = _interopRequireDefault(require("../../WithFlash"));
|
|
|
30
30
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
31
31
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
32
32
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
33
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
33
34
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
34
35
|
var _reactIntlNext = require("react-intl-next");
|
|
35
36
|
var _messages = _interopRequireDefault(require("../../../messages"));
|
|
@@ -42,7 +43,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
42
43
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
44
|
var CommentEditorMargin = 14;
|
|
44
45
|
var commentEditorStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: ", " ", "\n ", ";\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-background-input, white)", "var(--ds-border, ".concat(_colors.N40, ")"), (0, _constants.borderRadius)());
|
|
45
|
-
var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n overflow-x:
|
|
46
|
+
var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n overflow-x: ", ";\n line-height: 24px;\n\n /** Hack for Bitbucket to ensure entire editorView gets drop event; see ED-3294 **/\n /** Hack for table controls. Otherwise margin collapse and controls are misplaced. **/\n .ProseMirror {\n margin: ", " ", "px\n ", "px;\n }\n\n .gridParent {\n margin-left: ", "px;\n margin-right: ", "px;\n width: calc(100% + ", "px);\n }\n\n padding: ", "px;\n\n ", ";\n"])), (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden', "var(--ds-space-150, 12px)", CommentEditorMargin, CommentEditorMargin, CommentEditorMargin - _styles.GRID_GUTTER, CommentEditorMargin - _styles.GRID_GUTTER, CommentEditorMargin - _styles.GRID_GUTTER, _Toolbar2.TableControlsPadding, _commonStyles.tableCommentEditorStyles));
|
|
46
47
|
ContentArea.displayName = 'ContentArea';
|
|
47
48
|
var secondaryToolbarStyle = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n display: flex;\n padding: ", " 1px;\n"])), "var(--ds-space-150, 12px)");
|
|
48
49
|
var Editor = /*#__PURE__*/function (_React$Component) {
|
|
@@ -56,6 +56,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
56
56
|
popupsMountPoint = _this$props.popupsMountPoint,
|
|
57
57
|
popupsBoundariesElement = _this$props.popupsBoundariesElement,
|
|
58
58
|
className = _this$props.className,
|
|
59
|
+
absoluteOffset = _this$props.absoluteOffset,
|
|
59
60
|
alignX = _this$props.alignX,
|
|
60
61
|
alignY = _this$props.alignY,
|
|
61
62
|
zIndex = _this$props.zIndex;
|
|
@@ -63,6 +64,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
64
|
return null;
|
|
64
65
|
}
|
|
65
66
|
return (0, _react.jsx)(_ui.Popup, {
|
|
67
|
+
absoluteOffset: absoluteOffset,
|
|
66
68
|
alignX: alignX,
|
|
67
69
|
alignY: alignY,
|
|
68
70
|
target: target,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "187.47.
|
|
9
|
+
var version = "187.47.5";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
@@ -21,12 +21,7 @@ export function DateNodeView(props) {
|
|
|
21
21
|
getPos
|
|
22
22
|
} = props;
|
|
23
23
|
const intl = useIntl();
|
|
24
|
-
let pos;
|
|
25
|
-
try {
|
|
26
|
-
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
27
|
-
} catch (e) {
|
|
28
|
-
pos = undefined;
|
|
29
|
-
}
|
|
24
|
+
let pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
30
25
|
|
|
31
26
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
32
27
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -32,12 +32,8 @@ function ExtensionWithPluginState(props) {
|
|
|
32
32
|
view
|
|
33
33
|
} = props;
|
|
34
34
|
const isTopLevelNode = React.useMemo(() => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
38
|
-
} catch (e) {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
35
|
+
const pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
36
|
+
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
41
37
|
return false;
|
|
42
38
|
}, [view, getPos]);
|
|
43
39
|
const shouldBreakout =
|
|
@@ -211,6 +211,12 @@ function ContentComponent({
|
|
|
211
211
|
forcePlacement,
|
|
212
212
|
preventPopupOverflow,
|
|
213
213
|
onPositionCalculated,
|
|
214
|
+
absoluteOffset = {
|
|
215
|
+
top: 0,
|
|
216
|
+
left: 0,
|
|
217
|
+
right: 0,
|
|
218
|
+
bottom: 0
|
|
219
|
+
},
|
|
214
220
|
focusTrap
|
|
215
221
|
} = config;
|
|
216
222
|
const targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
@@ -246,6 +252,7 @@ function ContentComponent({
|
|
|
246
252
|
forcePlacement: forcePlacement,
|
|
247
253
|
fitHeight: height,
|
|
248
254
|
fitWidth: width,
|
|
255
|
+
absoluteOffset: absoluteOffset,
|
|
249
256
|
alignX: align,
|
|
250
257
|
stick: true,
|
|
251
258
|
zIndex: zIndex,
|
|
@@ -17,6 +17,7 @@ import WithFlash from '../../WithFlash';
|
|
|
17
17
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
|
|
20
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
20
21
|
import classnames from 'classnames';
|
|
21
22
|
import { injectIntl } from 'react-intl-next';
|
|
22
23
|
import messages from '../../../messages';
|
|
@@ -48,8 +49,7 @@ const commentEditorStyle = css`
|
|
|
48
49
|
`;
|
|
49
50
|
const ContentArea = createEditorContentStyle(css`
|
|
50
51
|
flex-grow: 1;
|
|
51
|
-
overflow-x: hidden;
|
|
52
|
-
overflow-y: auto;
|
|
52
|
+
overflow-x: ${getBooleanFF('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden'};
|
|
53
53
|
line-height: 24px;
|
|
54
54
|
|
|
55
55
|
/** Hack for Bitbucket to ensure entire editorView gets drop event; see ED-3294 **/
|
|
@@ -16,6 +16,7 @@ export default class FloatingToolbar extends PureComponent {
|
|
|
16
16
|
popupsMountPoint,
|
|
17
17
|
popupsBoundariesElement,
|
|
18
18
|
className,
|
|
19
|
+
absoluteOffset,
|
|
19
20
|
alignX,
|
|
20
21
|
alignY,
|
|
21
22
|
zIndex
|
|
@@ -24,6 +25,7 @@ export default class FloatingToolbar extends PureComponent {
|
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
26
27
|
return jsx(Popup, {
|
|
28
|
+
absoluteOffset: absoluteOffset,
|
|
27
29
|
alignX: alignX,
|
|
28
30
|
alignY: alignY,
|
|
29
31
|
target: target,
|
|
@@ -12,12 +12,7 @@ export function DateNodeView(props) {
|
|
|
12
12
|
selection = _props$view$state.selection,
|
|
13
13
|
getPos = props.getPos;
|
|
14
14
|
var intl = useIntl();
|
|
15
|
-
var pos;
|
|
16
|
-
try {
|
|
17
|
-
pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
18
|
-
} catch (e) {
|
|
19
|
-
pos = undefined;
|
|
20
|
-
}
|
|
15
|
+
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
21
16
|
|
|
22
17
|
// We fall back to selection.$from even though it does not cover all use cases
|
|
23
18
|
// eg. upon Editor init, selection is at the start, not at the Date node
|
|
@@ -34,12 +34,8 @@ function ExtensionWithPluginState(props) {
|
|
|
34
34
|
var getPos = props.getPos,
|
|
35
35
|
view = props.view;
|
|
36
36
|
var isTopLevelNode = React.useMemo(function () {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
40
|
-
} catch (e) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
37
|
+
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
38
|
+
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
43
39
|
return false;
|
|
44
40
|
}, [view, getPos]);
|
|
45
41
|
var shouldBreakout =
|
|
@@ -213,6 +213,13 @@ function ContentComponent(_ref5) {
|
|
|
213
213
|
forcePlacement = config.forcePlacement,
|
|
214
214
|
preventPopupOverflow = config.preventPopupOverflow,
|
|
215
215
|
onPositionCalculated = config.onPositionCalculated,
|
|
216
|
+
_config$absoluteOffse = config.absoluteOffset,
|
|
217
|
+
absoluteOffset = _config$absoluteOffse === void 0 ? {
|
|
218
|
+
top: 0,
|
|
219
|
+
left: 0,
|
|
220
|
+
right: 0,
|
|
221
|
+
bottom: 0
|
|
222
|
+
} : _config$absoluteOffse,
|
|
216
223
|
focusTrap = config.focusTrap;
|
|
217
224
|
var targetRef = getDomRef(editorView, dispatchAnalyticsEvent);
|
|
218
225
|
if (!targetRef || editorDisabledState && editorDisabledState.editorDisabled) {
|
|
@@ -248,6 +255,7 @@ function ContentComponent(_ref5) {
|
|
|
248
255
|
forcePlacement: forcePlacement,
|
|
249
256
|
fitHeight: height,
|
|
250
257
|
fitWidth: width,
|
|
258
|
+
absoluteOffset: absoluteOffset,
|
|
251
259
|
alignX: align,
|
|
252
260
|
stick: true,
|
|
253
261
|
zIndex: zIndex,
|
|
@@ -27,6 +27,7 @@ import WithFlash from '../../WithFlash';
|
|
|
27
27
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
28
28
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
29
29
|
import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
|
|
30
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
30
31
|
import classnames from 'classnames';
|
|
31
32
|
import { injectIntl } from 'react-intl-next';
|
|
32
33
|
import messages from '../../../messages';
|
|
@@ -35,7 +36,7 @@ import { createEditorContentStyle } from '../../ContentStyles';
|
|
|
35
36
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
36
37
|
var CommentEditorMargin = 14;
|
|
37
38
|
var commentEditorStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: ", " ", "\n ", ";\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-background-input, white)", "var(--ds-border, ".concat(N40, ")"), borderRadius());
|
|
38
|
-
var ContentArea = createEditorContentStyle(css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n overflow-x:
|
|
39
|
+
var ContentArea = createEditorContentStyle(css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n overflow-x: ", ";\n line-height: 24px;\n\n /** Hack for Bitbucket to ensure entire editorView gets drop event; see ED-3294 **/\n /** Hack for table controls. Otherwise margin collapse and controls are misplaced. **/\n .ProseMirror {\n margin: ", " ", "px\n ", "px;\n }\n\n .gridParent {\n margin-left: ", "px;\n margin-right: ", "px;\n width: calc(100% + ", "px);\n }\n\n padding: ", "px;\n\n ", ";\n"])), getBooleanFF('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden', "var(--ds-space-150, 12px)", CommentEditorMargin, CommentEditorMargin, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, TableControlsPadding, tableCommentEditorStyles));
|
|
39
40
|
ContentArea.displayName = 'ContentArea';
|
|
40
41
|
var secondaryToolbarStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n display: flex;\n padding: ", " 1px;\n"])), "var(--ds-space-150, 12px)");
|
|
41
42
|
var Editor = /*#__PURE__*/function (_React$Component) {
|
|
@@ -32,6 +32,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
32
32
|
popupsMountPoint = _this$props.popupsMountPoint,
|
|
33
33
|
popupsBoundariesElement = _this$props.popupsBoundariesElement,
|
|
34
34
|
className = _this$props.className,
|
|
35
|
+
absoluteOffset = _this$props.absoluteOffset,
|
|
35
36
|
alignX = _this$props.alignX,
|
|
36
37
|
alignY = _this$props.alignY,
|
|
37
38
|
zIndex = _this$props.zIndex;
|
|
@@ -39,6 +40,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
40
|
return null;
|
|
40
41
|
}
|
|
41
42
|
return jsx(Popup, {
|
|
43
|
+
absoluteOffset: absoluteOffset,
|
|
42
44
|
alignX: alignX,
|
|
43
45
|
alignY: alignY,
|
|
44
46
|
target: target,
|
|
@@ -7,6 +7,7 @@ export type Coordinates = {
|
|
|
7
7
|
top?: number;
|
|
8
8
|
bottom?: number;
|
|
9
9
|
};
|
|
10
|
+
export type PositionOffset = Coordinates;
|
|
10
11
|
export interface Props {
|
|
11
12
|
zIndex?: number;
|
|
12
13
|
className?: string;
|
|
@@ -16,6 +17,7 @@ export interface Props {
|
|
|
16
17
|
offset?: number[];
|
|
17
18
|
fitWidth?: number;
|
|
18
19
|
fitHeight?: number;
|
|
20
|
+
absoluteOffset?: PositionOffset;
|
|
19
21
|
alignX?: 'left' | 'center' | 'right';
|
|
20
22
|
alignY?: 'bottom' | 'top';
|
|
21
23
|
onPositionCalculated?: (position: Coordinates) => any;
|
|
@@ -7,6 +7,7 @@ export type Coordinates = {
|
|
|
7
7
|
top?: number;
|
|
8
8
|
bottom?: number;
|
|
9
9
|
};
|
|
10
|
+
export type PositionOffset = Coordinates;
|
|
10
11
|
export interface Props {
|
|
11
12
|
zIndex?: number;
|
|
12
13
|
className?: string;
|
|
@@ -16,6 +17,7 @@ export interface Props {
|
|
|
16
17
|
offset?: number[];
|
|
17
18
|
fitWidth?: number;
|
|
18
19
|
fitHeight?: number;
|
|
20
|
+
absoluteOffset?: PositionOffset;
|
|
19
21
|
alignX?: 'left' | 'center' | 'right';
|
|
20
22
|
alignY?: 'bottom' | 'top';
|
|
21
23
|
onPositionCalculated?: (position: Coordinates) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.47.
|
|
3
|
+
"version": "187.47.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@atlaskit/code": "^14.6.0",
|
|
56
56
|
"@atlaskit/date": "^0.10.0",
|
|
57
57
|
"@atlaskit/datetime-picker": "^12.10.0",
|
|
58
|
-
"@atlaskit/editor-common": "^75.
|
|
58
|
+
"@atlaskit/editor-common": "^75.8.0",
|
|
59
59
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
60
60
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
61
61
|
"@atlaskit/editor-palette": "1.5.1",
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"@atlaskit/editor-plugin-placeholder": "^0.1.0",
|
|
82
82
|
"@atlaskit/editor-plugin-quick-insert": "^0.1.0",
|
|
83
83
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|
|
84
|
-
"@atlaskit/editor-plugin-table": "^3.
|
|
84
|
+
"@atlaskit/editor-plugin-table": "^3.2.0",
|
|
85
85
|
"@atlaskit/editor-plugin-text-formatting": "^0.4.0",
|
|
86
86
|
"@atlaskit/editor-plugin-type-ahead": "^0.3.0",
|
|
87
87
|
"@atlaskit/editor-plugin-unsupported-content": "^0.2.0",
|
|
88
88
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
89
89
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
90
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
90
|
+
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
91
91
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
92
92
|
"@atlaskit/emoji": "^67.5.0",
|
|
93
93
|
"@atlaskit/empty-state": "^7.6.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@atlaskit/collab-provider": "9.12.3",
|
|
157
157
|
"@atlaskit/dropdown-menu": "^11.14.0",
|
|
158
158
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
159
|
-
"@atlaskit/editor-plugin-table": "^3.
|
|
159
|
+
"@atlaskit/editor-plugin-table": "^3.2.0",
|
|
160
160
|
"@atlaskit/flag": "^15.2.0",
|
|
161
161
|
"@atlaskit/icon-object": "^6.3.0",
|
|
162
162
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"@atlaskit/visual-regression": "*",
|
|
180
180
|
"@atlaskit/webdriver-runner": "*",
|
|
181
181
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
182
|
-
"@atlassian/editor-extension-link-create": "^0.
|
|
182
|
+
"@atlassian/editor-extension-link-create": "^0.4.0",
|
|
183
183
|
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
184
184
|
"@atlassian/link-picker-plugins": "^23.0.0",
|
|
185
185
|
"@atlassian/search-provider": "2.4.7",
|
|
@@ -248,6 +248,9 @@
|
|
|
248
248
|
"type": "boolean",
|
|
249
249
|
"referenceOnly": "true"
|
|
250
250
|
},
|
|
251
|
+
"platform.editor.table-sticky-scrollbar": {
|
|
252
|
+
"type": "boolean"
|
|
253
|
+
},
|
|
251
254
|
"platform.editor.update-table-cell-width-via-step": {
|
|
252
255
|
"type": "boolean",
|
|
253
256
|
"referenceOnly": "true"
|