@atlaskit/editor-common 95.1.0 → 95.1.1
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 +8 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -4
- package/dist/cjs/media-inline/media-inline-image-card.js +0 -1
- package/dist/cjs/media-inline/styles.js +2 -7
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +2 -5
- package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
- package/dist/es2019/media-inline/styles.js +1 -6
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +2 -5
- package/dist/esm/media-inline/media-inline-image-card.js +0 -1
- package/dist/esm/media-inline/styles.js +1 -6
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/media-inline/inline-image-wrapper.d.ts +1 -2
- package/dist/types/media-inline/styles.d.ts +0 -1
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +1 -2
- package/dist/types-ts4.5/media-inline/styles.d.ts +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 95.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#166487](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166487)
|
|
8
|
+
[`9764cdca27869`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9764cdca27869) -
|
|
9
|
+
[ux] ED-25708 change all media cursors to pointer events in editor
|
|
10
|
+
|
|
3
11
|
## 95.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -28,7 +28,6 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
|
|
|
28
28
|
var _ref2;
|
|
29
29
|
var children = _ref.children,
|
|
30
30
|
isSelected = _ref.isSelected,
|
|
31
|
-
isInteractive = _ref.isInteractive,
|
|
32
31
|
aspectRatio = _ref.aspectRatio,
|
|
33
32
|
borderSize = _ref.borderSize,
|
|
34
33
|
borderColor = _ref.borderColor,
|
|
@@ -51,9 +50,7 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
|
|
|
51
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
52
51
|
borderSize && borderColor && _styles.borderStyle,
|
|
53
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
|
-
isSelected && _styles.selectedStyle,
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
56
|
-
isInteractive && _styles.interactiveStyle],
|
|
53
|
+
isSelected && _styles.selectedStyle],
|
|
57
54
|
"data-testid": "inline-image-wrapper",
|
|
58
55
|
onClick: onClick
|
|
59
56
|
}, htmlAttrs), (0, _react.jsx)("span", {
|
|
@@ -214,7 +214,6 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
214
214
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
215
215
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_inlineImageWrapper.InlineImageWrapper, {
|
|
216
216
|
isSelected: isSelected,
|
|
217
|
-
isInteractive: shouldOpenMediaViewer,
|
|
218
217
|
aspectRatio: aspectRatio,
|
|
219
218
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
220
219
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.wrapperStyle = exports.selectedStyle = exports.mediaInlineImageStyles = exports.
|
|
7
|
+
exports.wrapperStyle = exports.selectedStyle = exports.mediaInlineImageStyles = exports.borderStyle = exports.INLINE_IMAGE_WRAPPER_CLASS_NAME = exports.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY = exports.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = exports.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _constants = require("./constants");
|
|
@@ -33,6 +33,7 @@ var mediaInlineImageStyles = exports.mediaInlineImageStyles = (0, _react.css)(_t
|
|
|
33
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
34
|
var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
|
|
35
35
|
display: 'inline-flex',
|
|
36
|
+
cursor: 'pointer',
|
|
36
37
|
justifyContent: 'center',
|
|
37
38
|
alignItems: 'center',
|
|
38
39
|
verticalAlign: 'middle',
|
|
@@ -45,16 +46,10 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
|
|
|
45
46
|
|
|
46
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
47
48
|
var selectedStyle = exports.selectedStyle = (0, _react.css)({
|
|
48
|
-
cursor: 'pointer',
|
|
49
49
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
50
50
|
outline: 'none'
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
|
-
var interactiveStyle = exports.interactiveStyle = (0, _react.css)({
|
|
55
|
-
cursor: 'pointer'
|
|
56
|
-
});
|
|
57
|
-
|
|
58
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
59
54
|
var borderStyle = exports.borderStyle = (0, _react.css)({
|
|
60
55
|
borderColor: "var(".concat(INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, ")"),
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "95.1.
|
|
20
|
+
var packageVersion = "95.1.1";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "95.1.
|
|
27
|
+
var packageVersion = "95.1.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
10
|
-
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,
|
|
10
|
+
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';
|
|
11
11
|
|
|
12
12
|
// The MediaImage component needs to obtain its parent's dimensions.
|
|
13
13
|
// To achieve this, we have added an additional wrapper that allows
|
|
@@ -21,7 +21,6 @@ const sizeWrapperStyle = css({
|
|
|
21
21
|
export const InlineImageWrapper = ({
|
|
22
22
|
children,
|
|
23
23
|
isSelected,
|
|
24
|
-
isInteractive,
|
|
25
24
|
aspectRatio,
|
|
26
25
|
borderSize,
|
|
27
26
|
borderColor,
|
|
@@ -52,9 +51,7 @@ export const InlineImageWrapper = ({
|
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
52
|
borderSize && borderColor && borderStyle,
|
|
54
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
55
|
-
isSelected && selectedStyle,
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
57
|
-
isInteractive && interactiveStyle],
|
|
54
|
+
isSelected && selectedStyle],
|
|
58
55
|
"data-testid": "inline-image-wrapper",
|
|
59
56
|
onClick: onClick
|
|
60
57
|
}, htmlAttrs), jsx("span", {
|
|
@@ -189,7 +189,6 @@ export const MediaInlineImageCardInternal = ({
|
|
|
189
189
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
190
190
|
return jsx(Fragment, null, jsx(InlineImageWrapper, {
|
|
191
191
|
isSelected: isSelected,
|
|
192
|
-
isInteractive: shouldOpenMediaViewer,
|
|
193
192
|
aspectRatio: aspectRatio,
|
|
194
193
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
195
194
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -62,6 +62,7 @@ export const mediaInlineImageStyles = css`
|
|
|
62
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
63
|
export const wrapperStyle = css({
|
|
64
64
|
display: 'inline-flex',
|
|
65
|
+
cursor: 'pointer',
|
|
65
66
|
justifyContent: 'center',
|
|
66
67
|
alignItems: 'center',
|
|
67
68
|
verticalAlign: 'middle',
|
|
@@ -74,16 +75,10 @@ export const wrapperStyle = css({
|
|
|
74
75
|
|
|
75
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
76
77
|
export const selectedStyle = css({
|
|
77
|
-
cursor: 'pointer',
|
|
78
78
|
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}`,
|
|
79
79
|
outline: 'none'
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
83
|
-
export const interactiveStyle = css({
|
|
84
|
-
cursor: 'pointer'
|
|
85
|
-
});
|
|
86
|
-
|
|
87
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
88
83
|
export const borderStyle = css({
|
|
89
84
|
borderColor: `var(${INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY})`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "95.1.
|
|
4
|
+
const packageVersion = "95.1.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "95.1.
|
|
16
|
+
const packageVersion = "95.1.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
13
|
-
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,
|
|
13
|
+
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';
|
|
14
14
|
|
|
15
15
|
// The MediaImage component needs to obtain its parent's dimensions.
|
|
16
16
|
// To achieve this, we have added an additional wrapper that allows
|
|
@@ -25,7 +25,6 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
|
25
25
|
var _ref2;
|
|
26
26
|
var children = _ref.children,
|
|
27
27
|
isSelected = _ref.isSelected,
|
|
28
|
-
isInteractive = _ref.isInteractive,
|
|
29
28
|
aspectRatio = _ref.aspectRatio,
|
|
30
29
|
borderSize = _ref.borderSize,
|
|
31
30
|
borderColor = _ref.borderColor,
|
|
@@ -48,9 +47,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
|
48
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
49
48
|
borderSize && borderColor && borderStyle,
|
|
50
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
51
|
-
isSelected && selectedStyle,
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
-
isInteractive && interactiveStyle],
|
|
50
|
+
isSelected && selectedStyle],
|
|
54
51
|
"data-testid": "inline-image-wrapper",
|
|
55
52
|
onClick: onClick
|
|
56
53
|
}, htmlAttrs), jsx("span", {
|
|
@@ -210,7 +210,6 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
210
210
|
}, [identifier, isMediaViewerVisible, mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig, onMediaInlinePreviewClose]);
|
|
211
211
|
return jsx(Fragment, null, jsx(InlineImageWrapper, {
|
|
212
212
|
isSelected: isSelected,
|
|
213
|
-
isInteractive: shouldOpenMediaViewer,
|
|
214
213
|
aspectRatio: aspectRatio,
|
|
215
214
|
borderColor: border === null || border === void 0 ? void 0 : border.borderColor,
|
|
216
215
|
borderSize: border === null || border === void 0 ? void 0 : border.borderSize,
|
|
@@ -27,6 +27,7 @@ export var mediaInlineImageStyles = css(_templateObject2 || (_templateObject2 =
|
|
|
27
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
28
|
export var wrapperStyle = css({
|
|
29
29
|
display: 'inline-flex',
|
|
30
|
+
cursor: 'pointer',
|
|
30
31
|
justifyContent: 'center',
|
|
31
32
|
alignItems: 'center',
|
|
32
33
|
verticalAlign: 'middle',
|
|
@@ -39,16 +40,10 @@ export var wrapperStyle = css({
|
|
|
39
40
|
|
|
40
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
42
|
export var selectedStyle = css({
|
|
42
|
-
cursor: 'pointer',
|
|
43
43
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
44
44
|
outline: 'none'
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
48
|
-
export var interactiveStyle = css({
|
|
49
|
-
cursor: 'pointer'
|
|
50
|
-
});
|
|
51
|
-
|
|
52
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
48
|
export var borderStyle = css({
|
|
54
49
|
borderColor: "var(".concat(INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, ")"),
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "95.1.
|
|
10
|
+
var packageVersion = "95.1.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "95.1.
|
|
24
|
+
var packageVersion = "95.1.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
type Props = {
|
|
8
8
|
children: ReactElement;
|
|
9
9
|
isSelected?: boolean;
|
|
10
|
-
isInteractive?: boolean;
|
|
11
10
|
aspectRatio?: number | string;
|
|
12
11
|
borderSize?: number;
|
|
13
12
|
borderColor?: string;
|
|
@@ -16,5 +15,5 @@ type Props = {
|
|
|
16
15
|
};
|
|
17
16
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
18
17
|
};
|
|
19
|
-
export declare const InlineImageWrapper: ({ children, isSelected,
|
|
18
|
+
export declare const InlineImageWrapper: ({ children, isSelected, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
20
19
|
export {};
|
|
@@ -11,5 +11,4 @@ export declare const INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = "--editor-media-inl
|
|
|
11
11
|
export declare const mediaInlineImageStyles: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const selectedStyle: import("@emotion/react").SerializedStyles;
|
|
14
|
-
export declare const interactiveStyle: import("@emotion/react").SerializedStyles;
|
|
15
14
|
export declare const borderStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -7,7 +7,6 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
type Props = {
|
|
8
8
|
children: ReactElement;
|
|
9
9
|
isSelected?: boolean;
|
|
10
|
-
isInteractive?: boolean;
|
|
11
10
|
aspectRatio?: number | string;
|
|
12
11
|
borderSize?: number;
|
|
13
12
|
borderColor?: string;
|
|
@@ -16,5 +15,5 @@ type Props = {
|
|
|
16
15
|
};
|
|
17
16
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
18
17
|
};
|
|
19
|
-
export declare const InlineImageWrapper: ({ children, isSelected,
|
|
18
|
+
export declare const InlineImageWrapper: ({ children, isSelected, aspectRatio, borderSize, borderColor, htmlAttrs, onClick, }: React.PropsWithChildren<Props>) => jsx.JSX.Element;
|
|
20
19
|
export {};
|
|
@@ -11,5 +11,4 @@ export declare const INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = "--editor-media-inl
|
|
|
11
11
|
export declare const mediaInlineImageStyles: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const selectedStyle: import("@emotion/react").SerializedStyles;
|
|
14
|
-
export declare const interactiveStyle: import("@emotion/react").SerializedStyles;
|
|
15
14
|
export declare const borderStyle: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "95.1.
|
|
3
|
+
"version": "95.1.1",
|
|
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/"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
129
129
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
130
130
|
"@atlaskit/emoji": "^67.11.0",
|
|
131
|
-
"@atlaskit/icon": "^22.
|
|
131
|
+
"@atlaskit/icon": "^22.25.0",
|
|
132
132
|
"@atlaskit/icon-object": "^6.7.0",
|
|
133
133
|
"@atlaskit/link-datasource": "^3.11.0",
|
|
134
134
|
"@atlaskit/link-picker": "^1.47.0",
|