@atlaskit/editor-common 76.25.1 → 76.25.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 +9 -0
- package/afm-cc/tsconfig.json +133 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +6 -5
- package/dist/cjs/element-browser/ViewMore.js +4 -3
- package/dist/cjs/element-browser/components/CategoryList.js +5 -4
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +3 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +21 -20
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +9 -8
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +16 -15
- package/dist/cjs/element-browser/components/ElementSearch.js +7 -6
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +22 -21
- package/dist/cjs/element-browser/hooks/use-container-width.js +3 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -21
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -5
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +11 -9
- package/dist/cjs/media-inline/inline-image-wrapper.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +22 -13
- package/dist/cjs/media-inline/types.js +5 -0
- package/dist/cjs/media-inline/views/error-view.js +6 -3
- package/dist/cjs/media-inline/views/frame.js +4 -1
- package/dist/cjs/media-inline/views/icon-wrapper.js +3 -1
- package/dist/cjs/media-inline/views/loading-view.js +5 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +8 -5
- package/dist/cjs/ui/Caption/index.js +3 -2
- package/dist/cjs/ui/DropList/index.js +6 -6
- package/dist/cjs/ui/Expand/index.js +5 -3
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -1
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +3 -2
- package/dist/cjs/ui/MediaSingle/index.js +5 -2
- package/dist/cjs/ui/MediaSingle/styled.js +3 -2
- package/dist/cjs/ui/Messages/index.js +8 -7
- package/dist/cjs/ui/PanelTextInput/index.js +3 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +5 -4
- package/dist/cjs/ui/UnsupportedInline/index.js +5 -4
- package/dist/cjs/ui/WidthProvider/index.js +4 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +6 -5
- package/dist/cjs/ui-color/ColorPalette/index.js +6 -3
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +10 -9
- package/dist/cjs/ui-menu/DropdownContainer/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownMenu/index.js +19 -18
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +4 -3
- package/dist/es2019/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/es2019/element-browser/ViewMore.js +5 -4
- package/dist/es2019/element-browser/components/CategoryList.js +6 -4
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/es2019/element-browser/components/ElementSearch.js +8 -7
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/es2019/element-browser/hooks/use-container-width.js +4 -3
- package/dist/es2019/keymaps/index.js +3 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/es2019/media-inline/inline-image-wrapper.js +4 -2
- package/dist/es2019/media-inline/media-inline-image-card.js +22 -13
- package/dist/es2019/media-inline/types.js +1 -0
- package/dist/es2019/media-inline/views/error-view.js +6 -3
- package/dist/es2019/media-inline/views/frame.js +4 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +4 -2
- package/dist/es2019/media-inline/views/loading-view.js +5 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/es2019/ui/Caption/index.js +4 -3
- package/dist/es2019/ui/DropList/index.js +8 -6
- package/dist/es2019/ui/Expand/index.js +5 -3
- package/dist/es2019/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/es2019/ui/MediaSingle/index.js +4 -2
- package/dist/es2019/ui/MediaSingle/styled.js +5 -3
- package/dist/es2019/ui/Messages/index.js +10 -8
- package/dist/es2019/ui/PanelTextInput/index.js +4 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +6 -5
- package/dist/es2019/ui/UnsupportedInline/index.js +6 -5
- package/dist/es2019/ui/WidthProvider/index.js +5 -4
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/es2019/ui-color/ColorPalette/index.js +4 -2
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/es2019/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/es2019/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/esm/card/LinkToolbarButtonGroup.js +7 -6
- package/dist/esm/element-browser/ViewMore.js +5 -4
- package/dist/esm/element-browser/components/CategoryList.js +7 -5
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +4 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +22 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +10 -9
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +17 -16
- package/dist/esm/element-browser/components/ElementSearch.js +8 -7
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +23 -22
- package/dist/esm/element-browser/hooks/use-container-width.js +4 -3
- package/dist/esm/keymaps/index.js +3 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -22
- package/dist/esm/link/LinkSearch/LinkSearchList.js +7 -6
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +10 -9
- package/dist/esm/media-inline/inline-image-wrapper.js +4 -2
- package/dist/esm/media-inline/media-inline-image-card.js +22 -13
- package/dist/esm/media-inline/types.js +1 -0
- package/dist/esm/media-inline/views/error-view.js +6 -3
- package/dist/esm/media-inline/views/frame.js +4 -1
- package/dist/esm/media-inline/views/icon-wrapper.js +4 -2
- package/dist/esm/media-inline/views/loading-view.js +5 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +7 -5
- package/dist/esm/ui/Caption/index.js +4 -3
- package/dist/esm/ui/DropList/index.js +8 -6
- package/dist/esm/ui/Expand/index.js +5 -3
- package/dist/esm/ui/FloatingToolbar/Separator.js +3 -2
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +4 -3
- package/dist/esm/ui/MediaSingle/index.js +4 -2
- package/dist/esm/ui/MediaSingle/styled.js +5 -3
- package/dist/esm/ui/Messages/index.js +10 -8
- package/dist/esm/ui/PanelTextInput/index.js +4 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +6 -5
- package/dist/esm/ui/UnsupportedInline/index.js +6 -5
- package/dist/esm/ui/WidthProvider/index.js +5 -4
- package/dist/esm/ui-color/ColorPalette/Color/index.js +6 -4
- package/dist/esm/ui-color/ColorPalette/index.js +5 -3
- package/dist/esm/ui-menu/ColorPickerButton/index.js +11 -10
- package/dist/esm/ui-menu/DropdownContainer/index.js +3 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +21 -19
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +4 -3
- package/dist/esm/ui-menu/ToolbarButton/index.js +5 -5
- package/dist/types/media-inline/index.d.ts +1 -0
- package/dist/types/media-inline/media-inline-image-card.d.ts +4 -2
- package/dist/types/media-inline/types.d.ts +6 -0
- package/dist/types/types/floating-toolbar.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/index.d.ts +1 -0
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -2
- package/dist/types-ts4.5/media-inline/types.d.ts +6 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
-
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
5
7
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
6
8
|
import { G400, N200, R400 } from '@atlaskit/theme/colors';
|
|
@@ -13,19 +15,19 @@ var messageStyle = function messageStyle(props) {
|
|
|
13
15
|
var iconWrapperStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n margin-right: ", ";\n"])), "var(--ds-space-050, 4px)");
|
|
14
16
|
export var HelperMessage = function HelperMessage(_ref) {
|
|
15
17
|
var children = _ref.children;
|
|
16
|
-
return
|
|
18
|
+
return jsx("div", {
|
|
17
19
|
css: messageStyle
|
|
18
20
|
}, children);
|
|
19
21
|
};
|
|
20
22
|
export var ErrorMessage = function ErrorMessage(_ref2) {
|
|
21
23
|
var children = _ref2.children;
|
|
22
|
-
return
|
|
24
|
+
return jsx("div", {
|
|
23
25
|
css: function css(theme) {
|
|
24
26
|
return [messageStyle(theme), errorColor];
|
|
25
27
|
}
|
|
26
|
-
},
|
|
28
|
+
}, jsx("span", {
|
|
27
29
|
css: iconWrapperStyle
|
|
28
|
-
},
|
|
30
|
+
}, jsx(ErrorIcon, {
|
|
29
31
|
size: "small",
|
|
30
32
|
label: "error",
|
|
31
33
|
"aria-label": "error"
|
|
@@ -33,13 +35,13 @@ export var ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
33
35
|
};
|
|
34
36
|
export var ValidMessage = function ValidMessage(_ref3) {
|
|
35
37
|
var children = _ref3.children;
|
|
36
|
-
return
|
|
38
|
+
return jsx("div", {
|
|
37
39
|
css: function css(theme) {
|
|
38
40
|
return [messageStyle(theme), validColor];
|
|
39
41
|
}
|
|
40
|
-
},
|
|
42
|
+
}, jsx("span", {
|
|
41
43
|
css: iconWrapperStyle
|
|
42
|
-
},
|
|
44
|
+
}, jsx(SuccessIcon, {
|
|
43
45
|
size: "small",
|
|
44
46
|
label: "success"
|
|
45
47
|
})), children);
|
|
@@ -8,7 +8,10 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
10
|
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; } }
|
|
11
|
+
/** @jsx jsx */
|
|
12
|
+
|
|
11
13
|
import { PureComponent } from 'react';
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
12
15
|
import { browser } from '../../utils';
|
|
13
16
|
import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
|
|
14
17
|
var KeyZCode = 90;
|
|
@@ -115,7 +118,7 @@ var PanelTextInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
115
118
|
role = _this$props2.role,
|
|
116
119
|
inputId = _this$props2.inputId;
|
|
117
120
|
var value = this.state.value;
|
|
118
|
-
return
|
|
121
|
+
return jsx("input", {
|
|
119
122
|
css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
|
|
120
123
|
role: role,
|
|
121
124
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React, { useCallback, useRef } from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
8
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
@@ -27,18 +28,18 @@ var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
|
|
|
27
28
|
var tooltipOnShowHandler = useCallback(function () {
|
|
28
29
|
return dispatchAnalyticsEvent && trackUnsupportedContentTooltipDisplayedFor(dispatchAnalyticsEvent, ACTION_SUBJECT_ID.ON_UNSUPPORTED_BLOCK, originalNodeType);
|
|
29
30
|
}, [dispatchAnalyticsEvent, originalNodeType]);
|
|
30
|
-
return
|
|
31
|
+
return jsx("div", {
|
|
31
32
|
css: blockNodeStyle,
|
|
32
33
|
className: "unsupported"
|
|
33
|
-
}, message,
|
|
34
|
+
}, message, jsx(Tooltip, {
|
|
34
35
|
content: tooltipContent,
|
|
35
36
|
hideTooltipOnClick: false,
|
|
36
37
|
position: "bottom",
|
|
37
38
|
onShow: tooltipOnShowHandler,
|
|
38
39
|
strategy: "absolute"
|
|
39
|
-
},
|
|
40
|
+
}, jsx("span", {
|
|
40
41
|
style: style
|
|
41
|
-
},
|
|
42
|
+
}, jsx(QuestionsIcon, {
|
|
42
43
|
label: "?",
|
|
43
44
|
size: "small"
|
|
44
45
|
}))));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
import React, { useCallback, useRef } from 'react';
|
|
4
|
-
import { css } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
6
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
8
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
@@ -27,17 +28,17 @@ var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
|
|
|
27
28
|
var tooltipOnShowHandler = useCallback(function () {
|
|
28
29
|
return dispatchAnalyticsEvent && trackUnsupportedContentTooltipDisplayedFor(dispatchAnalyticsEvent, ACTION_SUBJECT_ID.ON_UNSUPPORTED_INLINE, originalNodeType);
|
|
29
30
|
}, [dispatchAnalyticsEvent, originalNodeType]);
|
|
30
|
-
return
|
|
31
|
+
return jsx("span", {
|
|
31
32
|
css: inlineNodeStyle
|
|
32
|
-
}, message,
|
|
33
|
+
}, message, jsx(Tooltip, {
|
|
33
34
|
content: tooltipContent,
|
|
34
35
|
hideTooltipOnClick: false,
|
|
35
36
|
position: "bottom",
|
|
36
37
|
onShow: tooltipOnShowHandler,
|
|
37
38
|
strategy: "absolute"
|
|
38
|
-
},
|
|
39
|
+
}, jsx("span", {
|
|
39
40
|
style: style
|
|
40
|
-
},
|
|
41
|
+
}, jsx(QuestionsIcon, {
|
|
41
42
|
label: "?",
|
|
42
43
|
size: "small"
|
|
43
44
|
}))));
|
|
@@ -9,8 +9,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
var _templateObject;
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
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; } }
|
|
12
|
+
/** @jsx jsx */
|
|
12
13
|
import React from 'react';
|
|
13
|
-
import { css } from '@emotion/react';
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
14
15
|
import rafSchedule from 'raf-schd';
|
|
15
16
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
16
17
|
var SCROLLBAR_WIDTH = 30;
|
|
@@ -62,13 +63,13 @@ export var WidthProvider = /*#__PURE__*/function (_React$Component) {
|
|
|
62
63
|
_createClass(WidthProvider, [{
|
|
63
64
|
key: "render",
|
|
64
65
|
value: function render() {
|
|
65
|
-
return
|
|
66
|
+
return jsx("div", {
|
|
66
67
|
css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n "]))),
|
|
67
68
|
className: this.props.className
|
|
68
|
-
},
|
|
69
|
+
}, jsx(WidthObserver, {
|
|
69
70
|
setWidth: this.setWidth,
|
|
70
71
|
offscreen: true
|
|
71
|
-
}),
|
|
72
|
+
}), jsx(Provider, {
|
|
72
73
|
value: createWidthContext(this.state.width)
|
|
73
74
|
}, this.props.children));
|
|
74
75
|
}
|
|
@@ -7,7 +7,9 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
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; } }
|
|
10
|
+
/** @jsx jsx */
|
|
10
11
|
import React, { PureComponent } from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
11
13
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
12
14
|
import { N0 } from '@atlaskit/theme/colors';
|
|
13
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -49,11 +51,11 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
51
|
checkMarkColor = _this$props2$checkMar === void 0 ? N0 : _this$props2$checkMar,
|
|
50
52
|
hexToPaletteColor = _this$props2.hexToPaletteColor;
|
|
51
53
|
var colorStyle = hexToPaletteColor ? hexToPaletteColor(value) : value;
|
|
52
|
-
return
|
|
54
|
+
return jsx(Tooltip, {
|
|
53
55
|
content: label
|
|
54
|
-
},
|
|
56
|
+
}, jsx("span", {
|
|
55
57
|
css: buttonWrapperStyle
|
|
56
|
-
},
|
|
58
|
+
}, jsx("button", {
|
|
57
59
|
css: buttonStyle,
|
|
58
60
|
"aria-label": label,
|
|
59
61
|
role: "radio",
|
|
@@ -67,7 +69,7 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
67
69
|
border: "1px solid ".concat(borderColor)
|
|
68
70
|
},
|
|
69
71
|
autoFocus: autoFocus
|
|
70
|
-
}, isSelected &&
|
|
72
|
+
}, isSelected && jsx(EditorDoneIcon, {
|
|
71
73
|
primaryColor: checkMarkColor,
|
|
72
74
|
label: ""
|
|
73
75
|
}))));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import chromatism from 'chromatism';
|
|
3
5
|
import { injectIntl } from 'react-intl-next';
|
|
4
6
|
import { N0, N500 } from '@atlaskit/theme/colors';
|
|
@@ -50,8 +52,8 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
50
52
|
var colorsPerRow = React.useMemo(function () {
|
|
51
53
|
return getColorsPerRowFromPalette(palette, cols);
|
|
52
54
|
}, [palette, cols]);
|
|
53
|
-
return
|
|
54
|
-
return
|
|
55
|
+
return jsx(React.Fragment, null, colorsPerRow.map(function (row) {
|
|
56
|
+
return jsx("div", {
|
|
55
57
|
css: colorPaletteWrapper,
|
|
56
58
|
className: className,
|
|
57
59
|
key: "row-first-color-".concat(row[0].value),
|
|
@@ -69,7 +71,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
69
71
|
message = getColorMessage(paletteColorTooltipMessages.light, value.toUpperCase());
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
return
|
|
74
|
+
return jsx(Color, {
|
|
73
75
|
key: value,
|
|
74
76
|
value: value,
|
|
75
77
|
borderColor: border,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
|
+
/** @jsx jsx */
|
|
4
5
|
import React from 'react';
|
|
5
|
-
import { css } from '@emotion/react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
6
7
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
8
|
import Button from '@atlaskit/button';
|
|
8
9
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
@@ -116,7 +117,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
116
117
|
var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(props.colorPalette, selectedColor, props.cols),
|
|
117
118
|
selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
|
|
118
119
|
selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
|
|
119
|
-
return
|
|
120
|
+
return jsx(Popup, {
|
|
120
121
|
target: buttonRef.current,
|
|
121
122
|
fitHeight: 350,
|
|
122
123
|
fitWidth: 350,
|
|
@@ -130,10 +131,10 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
130
131
|
zIndex: props.setDisableParentScroll ? 600 : undefined,
|
|
131
132
|
ariaLabel: "Color picker popup",
|
|
132
133
|
onPositionCalculated: onPositionCalculated
|
|
133
|
-
},
|
|
134
|
+
}, jsx("div", {
|
|
134
135
|
css: colorPickerWrapper,
|
|
135
136
|
"data-test-id": "color-picker-menu"
|
|
136
|
-
},
|
|
137
|
+
}, jsx(ArrowKeyNavigationProvider, {
|
|
137
138
|
type: ArrowKeyNavigationType.COLOR,
|
|
138
139
|
selectedRowIndex: selectedRowIndex,
|
|
139
140
|
selectedColumnIndex: selectedColumnIndex,
|
|
@@ -143,7 +144,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
143
144
|
},
|
|
144
145
|
isOpenedByKeyboard: isOpenedByKeyboard,
|
|
145
146
|
isPopupPositioned: isPopupPositioned
|
|
146
|
-
},
|
|
147
|
+
}, jsx(ColorPaletteWithListeners, {
|
|
147
148
|
cols: props.cols,
|
|
148
149
|
selectedColor: selectedColor,
|
|
149
150
|
onClick: onColorSelected,
|
|
@@ -166,12 +167,12 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
166
167
|
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")
|
|
167
168
|
})(theme));
|
|
168
169
|
};
|
|
169
|
-
return
|
|
170
|
+
return jsx("div", {
|
|
170
171
|
css: colorPickerButtonWrapper
|
|
171
|
-
},
|
|
172
|
+
}, jsx(Tooltip, {
|
|
172
173
|
content: title,
|
|
173
174
|
position: "top"
|
|
174
|
-
},
|
|
175
|
+
}, jsx(Button, {
|
|
175
176
|
ref: buttonRef,
|
|
176
177
|
"aria-label": title,
|
|
177
178
|
spacing: "compact",
|
|
@@ -184,9 +185,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
184
185
|
}
|
|
185
186
|
},
|
|
186
187
|
css: buttonStyle,
|
|
187
|
-
iconAfter:
|
|
188
|
+
iconAfter: jsx("span", {
|
|
188
189
|
css: colorPickerExpandContainer
|
|
189
|
-
},
|
|
190
|
+
}, jsx(ExpandIcon, {
|
|
190
191
|
label: ""
|
|
191
192
|
}))
|
|
192
193
|
})), renderPopup());
|
|
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import React, { useContext } from 'react';
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
6
8
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
7
9
|
import DropdownComponent from '../Dropdown';
|
|
8
10
|
import { KeyDownHandlerContext } from '../ToolbarArrowKeyNavigationProvider';
|
|
@@ -16,10 +18,9 @@ export var DropdownContainer = /*#__PURE__*/React.memo(function DropdownContaine
|
|
|
16
18
|
});
|
|
17
19
|
}
|
|
18
20
|
return (
|
|
19
|
-
/*#__PURE__*/
|
|
20
21
|
//This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
21
22
|
//Default context has the void callbacks for above key events
|
|
22
|
-
|
|
23
|
+
jsx(DropdownComponent, _extends({}, props, {
|
|
23
24
|
arrowKeyNavigationProviderOptions: newArrowKeyNavigationProviderOptions
|
|
24
25
|
}))
|
|
25
26
|
);
|
|
@@ -16,8 +16,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
16
16
|
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) { _defineProperty(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; }
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
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; } }
|
|
19
|
+
/** @jsx jsx */
|
|
20
|
+
|
|
19
21
|
import React, { PureComponent, useContext } from 'react';
|
|
20
|
-
import { css } from '@emotion/react';
|
|
22
|
+
import { css, jsx } from '@emotion/react';
|
|
21
23
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
22
24
|
import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
|
|
23
25
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -149,7 +151,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
});
|
|
152
|
-
return
|
|
154
|
+
return jsx(Popup, {
|
|
153
155
|
target: isOpen ? target : undefined,
|
|
154
156
|
mountTo: mountTo,
|
|
155
157
|
boundariesElement: boundariesElement,
|
|
@@ -159,10 +161,10 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
159
161
|
fitWidth: fitWidth,
|
|
160
162
|
zIndex: zIndex || akEditorFloatingPanelZIndex,
|
|
161
163
|
offset: offset
|
|
162
|
-
},
|
|
164
|
+
}, jsx(ArrowKeyNavigationProvider, _extends({}, navigationProviderProps, {
|
|
163
165
|
handleClose: this.handleCloseAndFocus,
|
|
164
166
|
closeOnTab: true
|
|
165
|
-
}),
|
|
167
|
+
}), jsx(DropListWithOutsideListeners, {
|
|
166
168
|
isOpen: true,
|
|
167
169
|
appearance: "tall",
|
|
168
170
|
position: popupPlacement.join(' '),
|
|
@@ -176,23 +178,23 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
176
178
|
e.stopPropagation();
|
|
177
179
|
},
|
|
178
180
|
targetRef: this.state.target
|
|
179
|
-
},
|
|
181
|
+
}, jsx("div", {
|
|
180
182
|
style: {
|
|
181
183
|
height: 0,
|
|
182
184
|
minWidth: fitWidth || 0
|
|
183
185
|
}
|
|
184
|
-
}),
|
|
186
|
+
}), jsx("div", {
|
|
185
187
|
ref: this.popupRef
|
|
186
|
-
}, getBooleanFF('platform.editor.menu.group-items') &&
|
|
188
|
+
}, getBooleanFF('platform.editor.menu.group-items') && jsx(MenuGroup, {
|
|
187
189
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
188
190
|
}, items.map(function (group, index) {
|
|
189
|
-
return
|
|
191
|
+
return jsx(Section, {
|
|
190
192
|
hasSeparator: (section === null || section === void 0 ? void 0 : section.hasSeparator) && index > 0,
|
|
191
193
|
title: section === null || section === void 0 ? void 0 : section.title,
|
|
192
194
|
key: index
|
|
193
195
|
}, group.items.map(function (item) {
|
|
194
196
|
var _item$key;
|
|
195
|
-
return
|
|
197
|
+
return jsx(DropdownMenuItem, {
|
|
196
198
|
key: (_item$key = item.key) !== null && _item$key !== void 0 ? _item$key : String(item.content),
|
|
197
199
|
item: item,
|
|
198
200
|
onItemActivated: _this2.props.onItemActivated,
|
|
@@ -202,12 +204,12 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
202
204
|
});
|
|
203
205
|
}));
|
|
204
206
|
})), !getBooleanFF('platform.editor.menu.group-items') && items.map(function (group, index) {
|
|
205
|
-
return
|
|
207
|
+
return jsx(MenuGroup, {
|
|
206
208
|
key: index,
|
|
207
209
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
208
210
|
}, group.items.map(function (item) {
|
|
209
211
|
var _item$key2;
|
|
210
|
-
return
|
|
212
|
+
return jsx(DropdownMenuItem, {
|
|
211
213
|
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
212
214
|
item: item,
|
|
213
215
|
onItemActivated: _this2.props.onItemActivated,
|
|
@@ -224,9 +226,9 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
224
226
|
var _this$props2 = this.props,
|
|
225
227
|
children = _this$props2.children,
|
|
226
228
|
isOpen = _this$props2.isOpen;
|
|
227
|
-
return
|
|
229
|
+
return jsx("div", {
|
|
228
230
|
css: wrapper
|
|
229
|
-
},
|
|
231
|
+
}, jsx("div", {
|
|
230
232
|
ref: this.handleRef
|
|
231
233
|
}, children), isOpen ? this.renderDropdownMenu() : null);
|
|
232
234
|
}
|
|
@@ -252,7 +254,7 @@ export { DropdownMenuWrapper as default };
|
|
|
252
254
|
var DropdownMenuItemCustomComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
253
255
|
var children = props.children,
|
|
254
256
|
rest = _objectWithoutProperties(props, _excluded);
|
|
255
|
-
return
|
|
257
|
+
return jsx("span", _extends({
|
|
256
258
|
ref: ref
|
|
257
259
|
}, rest, {
|
|
258
260
|
style: {
|
|
@@ -281,14 +283,14 @@ function DropdownMenuItem(_ref) {
|
|
|
281
283
|
// onClick and value.name are the action indicators in the handlers
|
|
282
284
|
// If neither are present, don't wrap in an Item.
|
|
283
285
|
if (!item.onClick && !(item.value && item.value.name)) {
|
|
284
|
-
return
|
|
286
|
+
return jsx("span", {
|
|
285
287
|
key: String(item.content)
|
|
286
288
|
}, item.content);
|
|
287
289
|
}
|
|
288
290
|
var _handleSubmenuActive = function _handleSubmenuActive(event) {
|
|
289
291
|
setSubmenuActive(!!event.target.closest(".".concat(DropdownMenuSharedCssClassName.SUBMENU)));
|
|
290
292
|
};
|
|
291
|
-
var dropListItem =
|
|
293
|
+
var dropListItem = jsx("div", {
|
|
292
294
|
css: function css(theme) {
|
|
293
295
|
return buttonStyles(item.isActive, submenuActive)({
|
|
294
296
|
theme: theme
|
|
@@ -297,7 +299,7 @@ function DropdownMenuItem(_ref) {
|
|
|
297
299
|
tabIndex: -1,
|
|
298
300
|
"aria-disabled": item.isDisabled ? 'true' : 'false',
|
|
299
301
|
onMouseDown: _handleSubmenuActive
|
|
300
|
-
},
|
|
302
|
+
}, jsx(CustomItem, {
|
|
301
303
|
item: item,
|
|
302
304
|
key: (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : String(item.content),
|
|
303
305
|
testId: "dropdown-item__".concat(String(item.content)),
|
|
@@ -330,7 +332,7 @@ function DropdownMenuItem(_ref) {
|
|
|
330
332
|
}, item.content));
|
|
331
333
|
if (item.tooltipDescription) {
|
|
332
334
|
var _item$key4;
|
|
333
|
-
return
|
|
335
|
+
return jsx(Tooltip, {
|
|
334
336
|
key: (_item$key4 = item.key) !== null && _item$key4 !== void 0 ? _item$key4 : String(item.content),
|
|
335
337
|
content: item.tooltipDescription,
|
|
336
338
|
position: item.tooltipPosition
|
|
@@ -343,7 +345,7 @@ export var DropdownMenuWithKeyboardNavigation = /*#__PURE__*/React.memo(function
|
|
|
343
345
|
var keyDownHandlerContext = useContext(KeyDownHandlerContext);
|
|
344
346
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
345
347
|
// Default context has the void callbacks for above key events
|
|
346
|
-
return
|
|
348
|
+
return jsx(DropdownMenuWrapper, _extends({
|
|
347
349
|
arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
|
|
348
350
|
keyDownHandlerContext: keyDownHandlerContext
|
|
349
351
|
})
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
/** @jsx jsx */
|
|
3
4
|
/* eslint-disable no-console */
|
|
4
5
|
|
|
5
6
|
import React, { useCallback, useLayoutEffect, useRef } from 'react';
|
|
6
|
-
import { css } from '@emotion/react';
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { fullPageMessages as messages } from '../../messages';
|
|
8
9
|
import { EDIT_AREA_ID } from '../../ui';
|
|
9
10
|
/*
|
|
@@ -181,14 +182,14 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
|
|
|
181
182
|
}
|
|
182
183
|
};
|
|
183
184
|
}, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar]);
|
|
184
|
-
return
|
|
185
|
+
return jsx("div", {
|
|
185
186
|
css: editorAppearance === 'comment' && centeredToolbarContainer,
|
|
186
187
|
className: "custom-key-handler-wrapper",
|
|
187
188
|
ref: wrapperRef,
|
|
188
189
|
role: "toolbar",
|
|
189
190
|
"aria-label": intl.formatMessage(messages.toolbarLabel),
|
|
190
191
|
"aria-controls": EDIT_AREA_ID
|
|
191
|
-
},
|
|
192
|
+
}, jsx(KeyDownHandlerContext.Provider, {
|
|
192
193
|
value: submenuKeydownHandleContext
|
|
193
194
|
}, children));
|
|
194
195
|
};
|
|
@@ -6,9 +6,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
// This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
|
|
7
7
|
// If you make any change here, copy it to above file as well
|
|
8
8
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
9
|
-
|
|
9
|
+
/** @jsx jsx */
|
|
10
10
|
import React, { useCallback } from 'react';
|
|
11
|
-
import { css } from '@emotion/react';
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
14
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
@@ -63,7 +63,7 @@ var ToolbarButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
63
63
|
}
|
|
64
64
|
}, [disabled, onClick, onItemClick, item, buttonId]);
|
|
65
65
|
var id = buttonId ? "editor-toolbar__".concat(buttonId) : undefined;
|
|
66
|
-
var button =
|
|
66
|
+
var button = jsx(Button, {
|
|
67
67
|
id: id,
|
|
68
68
|
ref: ref,
|
|
69
69
|
appearance: "subtle",
|
|
@@ -89,11 +89,11 @@ var ToolbarButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
89
89
|
return button;
|
|
90
90
|
}
|
|
91
91
|
var tooltipContent = !hideTooltip ? title : null;
|
|
92
|
-
return
|
|
92
|
+
return jsx(Tooltip, {
|
|
93
93
|
content: tooltipContent,
|
|
94
94
|
hideTooltipOnClick: true,
|
|
95
95
|
position: titlePosition
|
|
96
|
-
},
|
|
96
|
+
}, jsx("div", {
|
|
97
97
|
css: buttonWrapper
|
|
98
98
|
}, button));
|
|
99
99
|
});
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
5
|
+
import type { MediaInlineAttrs } from './types';
|
|
5
6
|
export interface MediaInlineImageCardProps {
|
|
6
7
|
identifier: FileIdentifier;
|
|
7
8
|
mediaClient: MediaClient;
|
|
8
9
|
isSelected?: boolean;
|
|
10
|
+
isLazy?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps>;
|
|
11
|
-
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
|
|
12
|
+
export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps & MediaInlineAttrs>;
|
|
13
|
+
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps & MediaInlineAttrs>;
|
|
@@ -253,6 +253,7 @@ export interface FloatingToolbarConfig {
|
|
|
253
253
|
*/
|
|
254
254
|
focusTrap?: boolean;
|
|
255
255
|
preventPopupOverflow?: boolean;
|
|
256
|
+
mediaAssistiveMessage?: string;
|
|
256
257
|
}
|
|
257
258
|
export type FloatingToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
258
259
|
export {};
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import type { FC } from 'react';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
|
|
5
|
+
import type { MediaInlineAttrs } from './types';
|
|
5
6
|
export interface MediaInlineImageCardProps {
|
|
6
7
|
identifier: FileIdentifier;
|
|
7
8
|
mediaClient: MediaClient;
|
|
8
9
|
isSelected?: boolean;
|
|
10
|
+
isLazy?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps>;
|
|
11
|
-
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
|
|
12
|
+
export declare const MediaInlineImageCardInternal: FC<MediaInlineImageCardProps & WrappedComponentProps & MediaInlineAttrs>;
|
|
13
|
+
export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps & MediaInlineAttrs>;
|
|
@@ -256,6 +256,7 @@ export interface FloatingToolbarConfig {
|
|
|
256
256
|
*/
|
|
257
257
|
focusTrap?: boolean;
|
|
258
258
|
preventPopupOverflow?: boolean;
|
|
259
|
+
mediaAssistiveMessage?: string;
|
|
259
260
|
}
|
|
260
261
|
export type FloatingToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
261
262
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.25.
|
|
3
|
+
"version": "76.25.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/"
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@atlaskit/button": "^16.17.0",
|
|
98
98
|
"@atlaskit/code": "^15.1.0",
|
|
99
99
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
100
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
100
|
+
"@atlaskit/custom-steps": "^0.0.7",
|
|
101
101
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
102
102
|
"@atlaskit/editor-palette": "1.5.2",
|
|
103
103
|
"@atlaskit/editor-prosemirror": "1.1.0",
|