@atlaskit/editor-plugin-media-insert 2.0.1 → 2.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 +22 -0
- package/dist/cjs/ui/FromURL.js +2 -9
- package/dist/cjs/ui/MediaInsertContent.js +4 -1
- package/dist/cjs/ui/MediaInsertPicker.js +5 -4
- package/dist/cjs/ui/MediaInsertWrapper.js +2 -1
- package/dist/es2019/ui/FromURL.js +2 -9
- package/dist/es2019/ui/MediaInsertContent.js +4 -1
- package/dist/es2019/ui/MediaInsertPicker.js +5 -4
- package/dist/es2019/ui/MediaInsertWrapper.js +2 -1
- package/dist/esm/ui/FromURL.js +2 -9
- package/dist/esm/ui/MediaInsertContent.js +4 -1
- package/dist/esm/ui/MediaInsertPicker.js +5 -4
- package/dist/esm/ui/MediaInsertWrapper.js +2 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#129457](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129457)
|
|
14
|
+
[`171c73d4033f0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/171c73d4033f0) -
|
|
15
|
+
[ux] [ED-24566]
|
|
16
|
+
|
|
17
|
+
- Internationalisation strings in editor-common for editor-plugin-media-insert
|
|
18
|
+
- Removed default pre-filled URL for editor-plugin-media-insert popup
|
|
19
|
+
- Added background color for editor-plugin-media-insert popup
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 2.0.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/ui/FromURL.js
CHANGED
|
@@ -70,13 +70,6 @@ var previewStateReducer = function previewStateReducer(state, action) {
|
|
|
70
70
|
return state;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
// TODO: Delete these before rollout
|
|
74
|
-
var placeholders = ['https://picsum.photos/200/300',
|
|
75
|
-
// has cors
|
|
76
|
-
'https://placedog.net/500/280',
|
|
77
|
-
// has cors
|
|
78
|
-
'https://preview.redd.it/gabriel-medina-at-the-olympics-after-riding-a-nearly-v0-dbyczz2fkifd1.jpeg?auto=webp&s=045550d672718427b67fb929bc6efc57116a7596' // no cors
|
|
79
|
-
];
|
|
80
73
|
function MediaFromURL(_ref) {
|
|
81
74
|
var mediaProvider = _ref.mediaProvider,
|
|
82
75
|
onInsert = _ref.onInsert,
|
|
@@ -92,7 +85,7 @@ function MediaFromURL(_ref) {
|
|
|
92
85
|
errorMessage: intl.formatMessage(_messages.mediaInsertMessages.errorMessage),
|
|
93
86
|
warning: intl.formatMessage(_messages.mediaInsertMessages.warning)
|
|
94
87
|
};
|
|
95
|
-
var _React$useState = _react.default.useState(
|
|
88
|
+
var _React$useState = _react.default.useState(''),
|
|
96
89
|
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
97
90
|
inputUrl = _React$useState2[0],
|
|
98
91
|
setUrl = _React$useState2[1];
|
|
@@ -276,7 +269,7 @@ function MediaFromURL(_ref) {
|
|
|
276
269
|
}, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
277
270
|
type: "submit",
|
|
278
271
|
isLoading: previewState.isLoading,
|
|
279
|
-
isDisabled:
|
|
272
|
+
isDisabled: inputUrl.length === 0,
|
|
280
273
|
iconBefore: _filePreview.default
|
|
281
274
|
}, strings.loadPreview)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
282
275
|
xcss: ButtonGroupStyles
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.MediaInsertContent = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
10
12
|
var _primitives = require("@atlaskit/primitives");
|
|
11
13
|
var _tabs = _interopRequireWildcard(require("@atlaskit/tabs"));
|
|
12
14
|
var _FromURL = require("./FromURL");
|
|
@@ -16,11 +18,12 @@ var MediaInsertContent = exports.MediaInsertContent = function MediaInsertConten
|
|
|
16
18
|
var mediaProvider = _ref.mediaProvider,
|
|
17
19
|
dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
18
20
|
closeMediaInsertPicker = _ref.closeMediaInsertPicker;
|
|
21
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
19
22
|
return /*#__PURE__*/_react.default.createElement(_tabs.default, {
|
|
20
23
|
id: "media-insert-tab-navigation"
|
|
21
24
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
22
25
|
paddingBlockEnd: "space.150"
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement(_tabs.TabList, null, /*#__PURE__*/_react.default.createElement(_tabs.Tab, null,
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_tabs.TabList, null, /*#__PURE__*/_react.default.createElement(_tabs.Tab, null, intl.formatMessage(_messages.mediaInsertMessages.linkTabTitle)))), /*#__PURE__*/_react.default.createElement(_tabs.TabPanel, null, /*#__PURE__*/_react.default.createElement(_FromURL.MediaFromURL, {
|
|
24
27
|
mediaProvider: mediaProvider,
|
|
25
28
|
onExternalInsert: function onExternalInsert() {},
|
|
26
29
|
onInsert: function onInsert() {},
|
|
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.MediaInsertPicker = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntlNext = require("react-intl-next");
|
|
9
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
14
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
13
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
@@ -49,6 +51,7 @@ var MediaInsertPicker = exports.MediaInsertPicker = function MediaInsertPicker(_
|
|
|
49
51
|
var targetRef = getDomRefFromSelection(editorView, dispatchAnalyticsEvent);
|
|
50
52
|
var isOpen = (_useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['mediaInsert'])) === null || _useSharedPluginState === void 0 || (_useSharedPluginState = _useSharedPluginState.mediaInsertState) === null || _useSharedPluginState === void 0 ? void 0 : _useSharedPluginState.isOpen;
|
|
51
53
|
var mediaProvider = (_useSharedPluginState2 = (0, _hooks.useSharedPluginState)(api, ['media'])) === null || _useSharedPluginState2 === void 0 || (_useSharedPluginState2 = _useSharedPluginState2.mediaState) === null || _useSharedPluginState2 === void 0 ? void 0 : _useSharedPluginState2.mediaProvider;
|
|
54
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
52
55
|
if (!isOpen || !mediaProvider) {
|
|
53
56
|
return null;
|
|
54
57
|
}
|
|
@@ -70,10 +73,8 @@ var MediaInsertPicker = exports.MediaInsertPicker = function MediaInsertPicker(_
|
|
|
70
73
|
closeMediaInsertPicker();
|
|
71
74
|
};
|
|
72
75
|
};
|
|
73
|
-
return /*#__PURE__*/_react.default.createElement(PopupWithListeners
|
|
74
|
-
|
|
75
|
-
, {
|
|
76
|
-
ariaLabel: 'Media Insert',
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(PopupWithListeners, {
|
|
77
|
+
ariaLabel: intl.formatMessage(_messages.mediaInsertMessages.mediaPickerPopupAriaLabel),
|
|
77
78
|
offset: [0, 12],
|
|
78
79
|
target: targetRef,
|
|
79
80
|
zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
|
|
@@ -11,7 +11,8 @@ var styles = (0, _primitives.xcss)({
|
|
|
11
11
|
boxShadow: 'elevation.shadow.overflow',
|
|
12
12
|
width: '340px',
|
|
13
13
|
padding: 'space.200',
|
|
14
|
-
borderRadius: 'border.radius'
|
|
14
|
+
borderRadius: 'border.radius',
|
|
15
|
+
backgroundColor: 'elevation.surface.overlay'
|
|
15
16
|
});
|
|
16
17
|
var MediaInsertWrapper = exports.MediaInsertWrapper = function MediaInsertWrapper(_ref) {
|
|
17
18
|
var children = _ref.children;
|
|
@@ -61,13 +61,6 @@ const previewStateReducer = (state, action) => {
|
|
|
61
61
|
return state;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
// TODO: Delete these before rollout
|
|
65
|
-
const placeholders = ['https://picsum.photos/200/300',
|
|
66
|
-
// has cors
|
|
67
|
-
'https://placedog.net/500/280',
|
|
68
|
-
// has cors
|
|
69
|
-
'https://preview.redd.it/gabriel-medina-at-the-olympics-after-riding-a-nearly-v0-dbyczz2fkifd1.jpeg?auto=webp&s=045550d672718427b67fb929bc6efc57116a7596' // no cors
|
|
70
|
-
];
|
|
71
64
|
export function MediaFromURL({
|
|
72
65
|
mediaProvider,
|
|
73
66
|
onInsert,
|
|
@@ -84,7 +77,7 @@ export function MediaFromURL({
|
|
|
84
77
|
errorMessage: intl.formatMessage(mediaInsertMessages.errorMessage),
|
|
85
78
|
warning: intl.formatMessage(mediaInsertMessages.warning)
|
|
86
79
|
};
|
|
87
|
-
const [inputUrl, setUrl] = React.useState(
|
|
80
|
+
const [inputUrl, setUrl] = React.useState('');
|
|
88
81
|
const [previewState, dispatch] = React.useReducer(previewStateReducer, INITIAL_PREVIEW_STATE);
|
|
89
82
|
const pasteFlag = React.useRef(false);
|
|
90
83
|
const {
|
|
@@ -244,7 +237,7 @@ export function MediaFromURL({
|
|
|
244
237
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
245
238
|
type: "submit",
|
|
246
239
|
isLoading: previewState.isLoading,
|
|
247
|
-
isDisabled:
|
|
240
|
+
isDisabled: inputUrl.length === 0,
|
|
248
241
|
iconBefore: EditorFilePreviewIcon
|
|
249
242
|
}, strings.loadPreview)), /*#__PURE__*/React.createElement(Box, {
|
|
250
243
|
xcss: ButtonGroupStyles
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
2
4
|
import { Box } from '@atlaskit/primitives';
|
|
3
5
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
4
6
|
import { MediaFromURL } from './FromURL';
|
|
@@ -7,11 +9,12 @@ export const MediaInsertContent = ({
|
|
|
7
9
|
dispatchAnalyticsEvent,
|
|
8
10
|
closeMediaInsertPicker
|
|
9
11
|
}) => {
|
|
12
|
+
const intl = useIntl();
|
|
10
13
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
11
14
|
id: "media-insert-tab-navigation"
|
|
12
15
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
13
16
|
paddingBlockEnd: "space.150"
|
|
14
|
-
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, null,
|
|
17
|
+
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.linkTabTitle)))), /*#__PURE__*/React.createElement(TabPanel, null, /*#__PURE__*/React.createElement(MediaFromURL, {
|
|
15
18
|
mediaProvider: mediaProvider,
|
|
16
19
|
onExternalInsert: () => {},
|
|
17
20
|
onInsert: () => {},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
2
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
5
|
+
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
4
6
|
import { Popup, withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
5
7
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
8
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
@@ -43,6 +45,7 @@ export const MediaInsertPicker = ({
|
|
|
43
45
|
const targetRef = getDomRefFromSelection(editorView, dispatchAnalyticsEvent);
|
|
44
46
|
const isOpen = (_useSharedPluginState = useSharedPluginState(api, ['mediaInsert'])) === null || _useSharedPluginState === void 0 ? void 0 : (_useSharedPluginState2 = _useSharedPluginState.mediaInsertState) === null || _useSharedPluginState2 === void 0 ? void 0 : _useSharedPluginState2.isOpen;
|
|
45
47
|
const mediaProvider = (_useSharedPluginState3 = useSharedPluginState(api, ['media'])) === null || _useSharedPluginState3 === void 0 ? void 0 : (_useSharedPluginState4 = _useSharedPluginState3.mediaState) === null || _useSharedPluginState4 === void 0 ? void 0 : _useSharedPluginState4.mediaProvider;
|
|
48
|
+
const intl = useIntl();
|
|
46
49
|
if (!isOpen || !mediaProvider) {
|
|
47
50
|
return null;
|
|
48
51
|
}
|
|
@@ -62,10 +65,8 @@ export const MediaInsertPicker = ({
|
|
|
62
65
|
}
|
|
63
66
|
closeMediaInsertPicker();
|
|
64
67
|
};
|
|
65
|
-
return /*#__PURE__*/React.createElement(PopupWithListeners
|
|
66
|
-
|
|
67
|
-
, {
|
|
68
|
-
ariaLabel: 'Media Insert',
|
|
68
|
+
return /*#__PURE__*/React.createElement(PopupWithListeners, {
|
|
69
|
+
ariaLabel: intl.formatMessage(mediaInsertMessages.mediaPickerPopupAriaLabel),
|
|
69
70
|
offset: [0, 12],
|
|
70
71
|
target: targetRef,
|
|
71
72
|
zIndex: akEditorFloatingDialogZIndex,
|
|
@@ -4,7 +4,8 @@ const styles = xcss({
|
|
|
4
4
|
boxShadow: 'elevation.shadow.overflow',
|
|
5
5
|
width: '340px',
|
|
6
6
|
padding: 'space.200',
|
|
7
|
-
borderRadius: 'border.radius'
|
|
7
|
+
borderRadius: 'border.radius',
|
|
8
|
+
backgroundColor: 'elevation.surface.overlay'
|
|
8
9
|
});
|
|
9
10
|
export const MediaInsertWrapper = ({
|
|
10
11
|
children
|
package/dist/esm/ui/FromURL.js
CHANGED
|
@@ -63,13 +63,6 @@ var previewStateReducer = function previewStateReducer(state, action) {
|
|
|
63
63
|
return state;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
// TODO: Delete these before rollout
|
|
67
|
-
var placeholders = ['https://picsum.photos/200/300',
|
|
68
|
-
// has cors
|
|
69
|
-
'https://placedog.net/500/280',
|
|
70
|
-
// has cors
|
|
71
|
-
'https://preview.redd.it/gabriel-medina-at-the-olympics-after-riding-a-nearly-v0-dbyczz2fkifd1.jpeg?auto=webp&s=045550d672718427b67fb929bc6efc57116a7596' // no cors
|
|
72
|
-
];
|
|
73
66
|
export function MediaFromURL(_ref) {
|
|
74
67
|
var mediaProvider = _ref.mediaProvider,
|
|
75
68
|
onInsert = _ref.onInsert,
|
|
@@ -85,7 +78,7 @@ export function MediaFromURL(_ref) {
|
|
|
85
78
|
errorMessage: intl.formatMessage(mediaInsertMessages.errorMessage),
|
|
86
79
|
warning: intl.formatMessage(mediaInsertMessages.warning)
|
|
87
80
|
};
|
|
88
|
-
var _React$useState = React.useState(
|
|
81
|
+
var _React$useState = React.useState(''),
|
|
89
82
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
90
83
|
inputUrl = _React$useState2[0],
|
|
91
84
|
setUrl = _React$useState2[1];
|
|
@@ -269,7 +262,7 @@ export function MediaFromURL(_ref) {
|
|
|
269
262
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
270
263
|
type: "submit",
|
|
271
264
|
isLoading: previewState.isLoading,
|
|
272
|
-
isDisabled:
|
|
265
|
+
isDisabled: inputUrl.length === 0,
|
|
273
266
|
iconBefore: EditorFilePreviewIcon
|
|
274
267
|
}, strings.loadPreview)), /*#__PURE__*/React.createElement(Box, {
|
|
275
268
|
xcss: ButtonGroupStyles
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
2
4
|
import { Box } from '@atlaskit/primitives';
|
|
3
5
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
4
6
|
import { MediaFromURL } from './FromURL';
|
|
@@ -6,11 +8,12 @@ export var MediaInsertContent = function MediaInsertContent(_ref) {
|
|
|
6
8
|
var mediaProvider = _ref.mediaProvider,
|
|
7
9
|
dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
8
10
|
closeMediaInsertPicker = _ref.closeMediaInsertPicker;
|
|
11
|
+
var intl = useIntl();
|
|
9
12
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
10
13
|
id: "media-insert-tab-navigation"
|
|
11
14
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
12
15
|
paddingBlockEnd: "space.150"
|
|
13
|
-
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, null,
|
|
16
|
+
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, null, intl.formatMessage(mediaInsertMessages.linkTabTitle)))), /*#__PURE__*/React.createElement(TabPanel, null, /*#__PURE__*/React.createElement(MediaFromURL, {
|
|
14
17
|
mediaProvider: mediaProvider,
|
|
15
18
|
onExternalInsert: function onExternalInsert() {},
|
|
16
19
|
onInsert: function onInsert() {},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
2
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
5
|
+
import { mediaInsertMessages } from '@atlaskit/editor-common/messages';
|
|
4
6
|
import { Popup, withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
5
7
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
8
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
@@ -42,6 +44,7 @@ export var MediaInsertPicker = function MediaInsertPicker(_ref) {
|
|
|
42
44
|
var targetRef = getDomRefFromSelection(editorView, dispatchAnalyticsEvent);
|
|
43
45
|
var isOpen = (_useSharedPluginState = useSharedPluginState(api, ['mediaInsert'])) === null || _useSharedPluginState === void 0 || (_useSharedPluginState = _useSharedPluginState.mediaInsertState) === null || _useSharedPluginState === void 0 ? void 0 : _useSharedPluginState.isOpen;
|
|
44
46
|
var mediaProvider = (_useSharedPluginState2 = useSharedPluginState(api, ['media'])) === null || _useSharedPluginState2 === void 0 || (_useSharedPluginState2 = _useSharedPluginState2.mediaState) === null || _useSharedPluginState2 === void 0 ? void 0 : _useSharedPluginState2.mediaProvider;
|
|
47
|
+
var intl = useIntl();
|
|
45
48
|
if (!isOpen || !mediaProvider) {
|
|
46
49
|
return null;
|
|
47
50
|
}
|
|
@@ -63,10 +66,8 @@ export var MediaInsertPicker = function MediaInsertPicker(_ref) {
|
|
|
63
66
|
closeMediaInsertPicker();
|
|
64
67
|
};
|
|
65
68
|
};
|
|
66
|
-
return /*#__PURE__*/React.createElement(PopupWithListeners
|
|
67
|
-
|
|
68
|
-
, {
|
|
69
|
-
ariaLabel: 'Media Insert',
|
|
69
|
+
return /*#__PURE__*/React.createElement(PopupWithListeners, {
|
|
70
|
+
ariaLabel: intl.formatMessage(mediaInsertMessages.mediaPickerPopupAriaLabel),
|
|
70
71
|
offset: [0, 12],
|
|
71
72
|
target: targetRef,
|
|
72
73
|
zIndex: akEditorFloatingDialogZIndex,
|
|
@@ -4,7 +4,8 @@ var styles = xcss({
|
|
|
4
4
|
boxShadow: 'elevation.shadow.overflow',
|
|
5
5
|
width: '340px',
|
|
6
6
|
padding: 'space.200',
|
|
7
|
-
borderRadius: 'border.radius'
|
|
7
|
+
borderRadius: 'border.radius',
|
|
8
|
+
backgroundColor: 'elevation.surface.overlay'
|
|
8
9
|
});
|
|
9
10
|
export var MediaInsertWrapper = function MediaInsertWrapper(_ref) {
|
|
10
11
|
var children = _ref.children;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
".": "./src/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/button": "^20.
|
|
28
|
-
"@atlaskit/editor-common": "^
|
|
29
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
30
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
27
|
+
"@atlaskit/button": "^20.1.0",
|
|
28
|
+
"@atlaskit/editor-common": "^88.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
30
|
+
"@atlaskit/editor-plugin-media": "^1.29.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
32
32
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
33
|
-
"@atlaskit/icon": "^22.
|
|
34
|
-
"@atlaskit/media-card": "^78.
|
|
35
|
-
"@atlaskit/media-client": "^27.
|
|
36
|
-
"@atlaskit/media-client-react": "^2.
|
|
33
|
+
"@atlaskit/icon": "^22.14.0",
|
|
34
|
+
"@atlaskit/media-card": "^78.1.0",
|
|
35
|
+
"@atlaskit/media-client": "^27.5.0",
|
|
36
|
+
"@atlaskit/media-client-react": "^2.1.0",
|
|
37
37
|
"@atlaskit/primitives": "^12.0.0",
|
|
38
38
|
"@atlaskit/section-message": "^6.6.0",
|
|
39
39
|
"@atlaskit/tabs": "^16.4.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.59.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "~5.4.2"
|