@atlaskit/editor-plugin-media 10.2.13 → 12.0.0
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 +47 -0
- package/dist/cjs/nodeviews/mediaGroupNext.js +2 -2
- package/dist/cjs/pm-plugins/alt-text/ui/AltTextEdit.js +2 -2
- package/dist/cjs/pm-plugins/main.js +7 -6
- package/dist/cjs/ui/CaptionPlaceholder/index.js +4 -4
- package/dist/cjs/ui/Media/DropPlaceholder.js +2 -2
- package/dist/cjs/ui/ToolbarMedia/index.js +2 -2
- package/dist/es2019/nodeviews/mediaGroupNext.js +1 -1
- package/dist/es2019/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/es2019/pm-plugins/main.js +4 -3
- package/dist/es2019/ui/CaptionPlaceholder/index.js +1 -1
- package/dist/es2019/ui/Media/DropPlaceholder.js +1 -1
- package/dist/es2019/ui/ToolbarMedia/index.js +1 -1
- package/dist/esm/nodeviews/mediaGroupNext.js +1 -1
- package/dist/esm/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/pm-plugins/main.js +4 -3
- package/dist/esm/ui/CaptionPlaceholder/index.js +1 -1
- package/dist/esm/ui/Media/DropPlaceholder.js +1 -1
- package/dist/esm/ui/ToolbarMedia/index.js +1 -1
- package/dist/types/nodeviews/mediaGroupNext.d.ts +1 -1
- package/dist/types/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/pm-plugins/pixel-resizing/ui/index.d.ts +1 -1
- package/dist/types/pm-plugins/pixel-resizing/ui/types.d.ts +1 -1
- package/dist/types/ui/ImageBorder/index.d.ts +1 -1
- package/dist/types/ui/MediaLinkingToolbar.d.ts +1 -1
- package/dist/types/ui/ToolbarMedia/index.d.ts +1 -1
- package/dist/types/ui/toolbar/alt-text.d.ts +1 -1
- package/dist/types/ui/toolbar/comments.d.ts +1 -1
- package/dist/types/ui/toolbar/index.d.ts +1 -1
- package/dist/types/ui/toolbar/linking-toolbar-appearance.d.ts +1 -1
- package/dist/types/ui/toolbar/linking.d.ts +1 -1
- package/dist/types/ui/toolbar/mediaInline.d.ts +1 -1
- package/dist/types/ui/toolbar/pixel-resizing.d.ts +1 -1
- package/dist/types/ui/toolbar/utils.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/mediaGroupNext.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/pixel-resizing/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/pixel-resizing/ui/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/ImageBorder/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaLinkingToolbar.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarMedia/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/alt-text.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/comments.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/linking-toolbar-appearance.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/linking.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/mediaInline.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/pixel-resizing.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar/utils.d.ts +1 -1
- package/package.json +27 -24
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
8
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
9
|
+
|
|
10
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
11
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
12
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
13
|
+
|
|
14
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
15
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
16
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 11.0.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [`b10c935ca9497`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b10c935ca9497) -
|
|
27
|
+
Removed deprecated `browser` singleton from editor-common. This has been replaced with a
|
|
28
|
+
`getBrowserInfo` function that returns the same information. This change was made to avoid issues
|
|
29
|
+
with module loading order and to provide a more consistent API for accessing browser information.
|
|
30
|
+
|
|
31
|
+
Please update any imports of `browser` to use `getBrowserInfo` instead. For example, the following
|
|
32
|
+
imports have been removed:
|
|
33
|
+
|
|
34
|
+
```javascript
|
|
35
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
36
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Instead, please use:
|
|
40
|
+
|
|
41
|
+
```javascript
|
|
42
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If you were previously using `browser.ie_version`, you would now use
|
|
46
|
+
`getBrowserInfo().ie_version`.
|
|
47
|
+
|
|
48
|
+
- Updated dependencies
|
|
49
|
+
|
|
3
50
|
## 10.2.13
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
16
16
|
var _media = require("@atlaskit/editor-common/media");
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -173,7 +173,7 @@ var runMediaNodeUpdate = /*#__PURE__*/function () {
|
|
|
173
173
|
}();
|
|
174
174
|
var noop = function noop() {};
|
|
175
175
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
176
|
-
var MediaGroupNext = exports.MediaGroupNext = (0,
|
|
176
|
+
var MediaGroupNext = exports.MediaGroupNext = (0, _reactIntl.injectIntl)( /*#__PURE__*/_react.default.memo(function (props) {
|
|
177
177
|
var _props$mediaOptions = props.mediaOptions,
|
|
178
178
|
allowLazyLoading = _props$mediaOptions.allowLazyLoading,
|
|
179
179
|
allowMediaInlineImages = _props$mediaOptions.allowMediaInlineImages,
|
|
@@ -13,7 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
18
18
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
19
19
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
@@ -275,5 +275,5 @@ var AltTextEditComponent = exports.AltTextEditComponent = /*#__PURE__*/function
|
|
|
275
275
|
}
|
|
276
276
|
}]);
|
|
277
277
|
}(_react.default.Component);
|
|
278
|
-
var _default_1 = (0, _analyticsNext.withAnalyticsEvents)()((0,
|
|
278
|
+
var _default_1 = (0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntl.injectIntl)(AltTextEditComponent));
|
|
279
279
|
var _default = exports.default = _default_1;
|
|
@@ -13,9 +13,10 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _assert = _interopRequireDefault(require("assert"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _reactIntl = require("react-intl");
|
|
17
17
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
18
18
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
19
|
+
var _browser = require("@atlaskit/editor-common/browser");
|
|
19
20
|
var _mediaInline = require("@atlaskit/editor-common/media-inline");
|
|
20
21
|
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
21
22
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
@@ -56,7 +57,7 @@ var createDropPlaceholder = function createDropPlaceholder(intl, nodeViewPortalP
|
|
|
56
57
|
var createElement = _react.default.createElement;
|
|
57
58
|
if (allowDropLine) {
|
|
58
59
|
nodeViewPortalProviderAPI.render(function () {
|
|
59
|
-
return createElement(
|
|
60
|
+
return createElement(_reactIntl.RawIntlProvider, {
|
|
60
61
|
value: intl
|
|
61
62
|
}, createElement(_DropPlaceholder.default, {
|
|
62
63
|
type: 'single'
|
|
@@ -64,7 +65,7 @@ var createDropPlaceholder = function createDropPlaceholder(intl, nodeViewPortalP
|
|
|
64
65
|
}, dropPlaceholder, dropPlaceholderKey);
|
|
65
66
|
} else {
|
|
66
67
|
nodeViewPortalProviderAPI.render(function () {
|
|
67
|
-
return createElement(
|
|
68
|
+
return createElement(_reactIntl.RawIntlProvider, {
|
|
68
69
|
value: intl
|
|
69
70
|
}, createElement(_DropPlaceholder.default));
|
|
70
71
|
}, dropPlaceholder, dropPlaceholderKey);
|
|
@@ -1039,17 +1040,17 @@ var createPlugin = exports.createPlugin = function createPlugin(_schema, options
|
|
|
1039
1040
|
// Ignored via go/ees005
|
|
1040
1041
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
1041
1042
|
var clickedInsideCaptionPlaceholder = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest("[data-id=\"".concat(_mediaSingle.CAPTION_PLACEHOLDER_ID, "\"]"));
|
|
1042
|
-
|
|
1043
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
1043
1044
|
// Workaround for Chrome given a regression introduced in prosemirror-view@1.18.6
|
|
1044
1045
|
// Returning true prevents that updateSelection() is getting called in the commit below:
|
|
1045
1046
|
// @see https://github.com/ProseMirror/prosemirror-view/compare/1.18.5...1.18.6
|
|
1046
|
-
if ((
|
|
1047
|
+
if ((browser.chrome || browser.safari) && clickedInsideCaptionPlaceholder) {
|
|
1047
1048
|
return true;
|
|
1048
1049
|
}
|
|
1049
1050
|
|
|
1050
1051
|
// Workaound for iOS 16 Caption selection issue
|
|
1051
1052
|
// @see https://product-fabric.atlassian.net/browse/MEX-2012
|
|
1052
|
-
if (
|
|
1053
|
+
if (browser.ios) {
|
|
1053
1054
|
var _event$target2;
|
|
1054
1055
|
// Ignored via go/ees005
|
|
1055
1056
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -9,7 +9,7 @@ exports.CaptionPlaceholderButton = exports.CaptionPlaceholder = void 0;
|
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _media = require("@atlaskit/editor-common/media");
|
|
14
14
|
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -57,7 +57,7 @@ var CaptionPlaceholder = exports.CaptionPlaceholder = /*#__PURE__*/_react.defaul
|
|
|
57
57
|
id: (0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? _mediaSingle.CAPTION_PLACEHOLDER_ID : undefined,
|
|
58
58
|
"data-id": _mediaSingle.CAPTION_PLACEHOLDER_ID,
|
|
59
59
|
"data-testid": "caption-placeholder"
|
|
60
|
-
}, (0, _react2.jsx)(
|
|
60
|
+
}, (0, _react2.jsx)(_reactIntl.FormattedMessage
|
|
61
61
|
// Ignored via go/ees005
|
|
62
62
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
63
63
|
, computedPlaceholderMessage))
|
|
@@ -66,7 +66,7 @@ var CaptionPlaceholder = exports.CaptionPlaceholder = /*#__PURE__*/_react.defaul
|
|
|
66
66
|
var CaptionPlaceholderButton = exports.CaptionPlaceholderButton = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref) {
|
|
67
67
|
var onClick = _ref2.onClick,
|
|
68
68
|
placeholderMessage = _ref2.placeholderMessage;
|
|
69
|
-
var intl = (0,
|
|
69
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
70
70
|
var handleMouseDown = (0, _react.useCallback)(function (e) {
|
|
71
71
|
// In firefox, button is focused when mouse down, which make editor lose focus
|
|
72
72
|
// Hence we want to disabled it so that user can type in caption directly after click
|
|
@@ -89,7 +89,7 @@ var CaptionPlaceholderButton = exports.CaptionPlaceholderButton = /*#__PURE__*/_
|
|
|
89
89
|
(0, _react2.jsx)("span", {
|
|
90
90
|
css: placeholderText,
|
|
91
91
|
id: _mediaSingle.CAPTION_PLACEHOLDER_ID
|
|
92
|
-
}, (0, _react2.jsx)(
|
|
92
|
+
}, (0, _react2.jsx)(_reactIntl.FormattedMessage
|
|
93
93
|
// Ignored via go/ees005
|
|
94
94
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
95
95
|
, computedPlaceholderMessage)) : (0, _react2.jsx)(_primitives.Text, {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _media = require("@atlaskit/editor-common/media");
|
|
11
11
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
12
12
|
var _media2 = require("../../nodeviews/mediaNodeView/media");
|
|
@@ -47,7 +47,7 @@ var IconWrapperComponent = function IconWrapperComponent(props) {
|
|
|
47
47
|
label: intl.formatMessage(dropPlaceholderLabel)
|
|
48
48
|
}));
|
|
49
49
|
};
|
|
50
|
-
var IntlIconWrapper = (0,
|
|
50
|
+
var IntlIconWrapper = (0, _reactIntl.injectIntl)(IconWrapperComponent);
|
|
51
51
|
var _default = exports.default = function _default(_ref) {
|
|
52
52
|
var _ref$type = _ref.type,
|
|
53
53
|
type = _ref$type === void 0 ? 'group' : _ref$type;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
11
|
var _media = require("@atlaskit/editor-common/media");
|
|
12
12
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
@@ -49,5 +49,5 @@ var ToolbarMedia = function ToolbarMedia(_ref) {
|
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
52
|
-
var _default_1 = (0,
|
|
52
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ToolbarMedia);
|
|
53
53
|
var _default = exports.default = _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { nodeViewsMessages as messages } from '@atlaskit/editor-common/media';
|
|
5
5
|
import { isNodeSelectedOrInRange, SelectedState, setNodeSelection } from '@atlaskit/editor-common/utils';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { injectIntl } from 'react-intl
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
12
12
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
import { escape, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import assert from 'assert';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { RawIntlProvider } from 'react-intl
|
|
4
|
+
import { RawIntlProvider } from 'react-intl';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
6
|
import uuid from 'uuid';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
9
|
import { mediaInlineImagesEnabled } from '@atlaskit/editor-common/media-inline';
|
|
9
10
|
import { CAPTION_PLACEHOLDER_ID, getMaxWidthForNestedNodeNext } from '@atlaskit/editor-common/media-single';
|
|
10
11
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
11
|
-
import {
|
|
12
|
+
import { ErrorReporter } from '@atlaskit/editor-common/utils';
|
|
12
13
|
import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
14
|
import { insertPoint } from '@atlaskit/editor-prosemirror/transform';
|
|
14
15
|
import { findDomRefAtPos, findParentNodeOfType, findSelectedNodeOfType, isNodeSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -926,7 +927,7 @@ export const createPlugin = (_schema, options, getIntl, pluginInjectionApi, node
|
|
|
926
927
|
// Ignored via go/ees005
|
|
927
928
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
928
929
|
const clickedInsideCaptionPlaceholder = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest(`[data-id="${CAPTION_PLACEHOLDER_ID}"]`);
|
|
929
|
-
|
|
930
|
+
const browser = getBrowserInfo();
|
|
930
931
|
// Workaround for Chrome given a regression introduced in prosemirror-view@1.18.6
|
|
931
932
|
// Returning true prevents that updateSelection() is getting called in the commit below:
|
|
932
933
|
// @see https://github.com/ProseMirror/prosemirror-view/compare/1.18.5...1.18.6
|
|
@@ -6,7 +6,7 @@ import React, { useCallback } from 'react';
|
|
|
6
6
|
|
|
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
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
9
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
10
10
|
import { captionMessages as messages } from '@atlaskit/editor-common/media';
|
|
11
11
|
import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { injectIntl } from 'react-intl
|
|
7
|
+
import { injectIntl } from 'react-intl';
|
|
8
8
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
9
9
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
10
10
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { toolbarMediaMessages } from '@atlaskit/editor-common/media';
|
|
5
5
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
-
import { injectIntl } from 'react-intl
|
|
8
|
+
import { injectIntl } from 'react-intl';
|
|
9
9
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
10
10
|
import { nodeViewsMessages as messages } from '@atlaskit/editor-common/media';
|
|
11
11
|
import { isNodeSelectedOrInRange, SelectedState, setNodeSelection } from '@atlaskit/editor-common/utils';
|
|
@@ -15,7 +15,7 @@ import React from 'react';
|
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
|
-
import { injectIntl } from 'react-intl
|
|
18
|
+
import { injectIntl } from 'react-intl';
|
|
19
19
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
21
21
|
import { escape, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -10,14 +10,15 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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; }
|
|
11
11
|
import assert from 'assert';
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { RawIntlProvider } from 'react-intl
|
|
13
|
+
import { RawIntlProvider } from 'react-intl';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
15
|
import uuid from 'uuid';
|
|
16
16
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
17
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
17
18
|
import { mediaInlineImagesEnabled } from '@atlaskit/editor-common/media-inline';
|
|
18
19
|
import { CAPTION_PLACEHOLDER_ID, getMaxWidthForNestedNodeNext } from '@atlaskit/editor-common/media-single';
|
|
19
20
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
20
|
-
import {
|
|
21
|
+
import { ErrorReporter } from '@atlaskit/editor-common/utils';
|
|
21
22
|
import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
22
23
|
import { insertPoint } from '@atlaskit/editor-prosemirror/transform';
|
|
23
24
|
import { findDomRefAtPos, findParentNodeOfType, findSelectedNodeOfType, isNodeSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1031,7 +1032,7 @@ export var createPlugin = function createPlugin(_schema, options, getIntl, plugi
|
|
|
1031
1032
|
// Ignored via go/ees005
|
|
1032
1033
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
1033
1034
|
var clickedInsideCaptionPlaceholder = (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest("[data-id=\"".concat(CAPTION_PLACEHOLDER_ID, "\"]"));
|
|
1034
|
-
|
|
1035
|
+
var browser = getBrowserInfo();
|
|
1035
1036
|
// Workaround for Chrome given a regression introduced in prosemirror-view@1.18.6
|
|
1036
1037
|
// Returning true prevents that updateSelection() is getting called in the commit below:
|
|
1037
1038
|
// @see https://github.com/ProseMirror/prosemirror-view/compare/1.18.5...1.18.6
|
|
@@ -8,7 +8,7 @@ import React, { useCallback } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import { FormattedMessage, useIntl } from 'react-intl
|
|
11
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
12
12
|
import { captionMessages as messages } from '@atlaskit/editor-common/media';
|
|
13
13
|
import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { injectIntl } from 'react-intl
|
|
7
|
+
import { injectIntl } from 'react-intl';
|
|
8
8
|
import { dropPlaceholderMessages } from '@atlaskit/editor-common/media';
|
|
9
9
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
10
10
|
import { FILE_WIDTH, MEDIA_HEIGHT } from '../../nodeviews/mediaNodeView/media';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { toolbarMediaMessages } from '@atlaskit/editor-common/media';
|
|
5
5
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const MAX_ALT_TEXT_LENGTH = 510;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
4
4
|
export interface ImageBorderProps {
|
|
5
5
|
borderMark?: BorderMarkAttributes;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape, WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { IntlShape, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
9
9
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
10
|
type Props = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
interface Props {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Command, FloatingToolbarButton, FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape } from 'react-intl
|
|
7
|
+
import type { IntlShape } from 'react-intl';
|
|
8
8
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
10
10
|
export interface LinkingToolbarProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Command, ExtractInjectionAPI, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions, Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ExternalMediaAttributes, MediaADFAttrs, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
5
5
|
import type { Command, FloatingToolbarItem, FloatingToolbarDropdown, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ContextIdentifierProvider, MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
4
4
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const MAX_ALT_TEXT_LENGTH = 510;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
3
3
|
import type { InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
4
4
|
export interface ImageBorderProps {
|
|
5
5
|
borderMark?: BorderMarkAttributes;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape, WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { IntlShape, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
9
9
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
10
|
type Props = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
interface Props {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Command, FloatingToolbarButton, FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { IntlShape } from 'react-intl
|
|
7
|
+
import type { IntlShape } from 'react-intl';
|
|
8
8
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
10
10
|
export interface LinkingToolbarProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Command, ExtractInjectionAPI, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions, Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MemoizedFn } from 'memoize-one';
|
|
2
|
-
import type { IntlShape } from 'react-intl
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
3
|
import type { ExternalMediaAttributes, MediaADFAttrs, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
5
5
|
import type { Command, FloatingToolbarItem, FloatingToolbarDropdown, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,43 +29,43 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^52.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.5.0",
|
|
33
33
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
34
34
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
35
35
|
"@atlaskit/button": "^23.11.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
39
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
40
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
41
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
43
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-focus": "^
|
|
45
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
46
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
47
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
48
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
49
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
50
|
-
"@atlaskit/editor-plugin-width": "^
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-annotation": "^10.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-connectivity": "^10.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^10.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^12.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-focus": "^9.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-grid": "^10.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-guideline": "^10.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-interaction": "^19.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-selection": "^10.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
50
|
+
"@atlaskit/editor-plugin-width": "^11.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
54
54
|
"@atlaskit/form": "^15.5.0",
|
|
55
|
-
"@atlaskit/icon": "^34.
|
|
55
|
+
"@atlaskit/icon": "^34.2.0",
|
|
56
56
|
"@atlaskit/icon-lab": "^6.5.0",
|
|
57
|
-
"@atlaskit/media-card": "^
|
|
57
|
+
"@atlaskit/media-card": "^80.0.0",
|
|
58
58
|
"@atlaskit/media-client": "^36.0.0",
|
|
59
59
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
60
60
|
"@atlaskit/media-common": "^13.0.0",
|
|
61
61
|
"@atlaskit/media-filmstrip": "^51.2.0",
|
|
62
|
-
"@atlaskit/media-picker": "^
|
|
63
|
-
"@atlaskit/media-ui": "^
|
|
64
|
-
"@atlaskit/media-viewer": "^
|
|
62
|
+
"@atlaskit/media-picker": "^71.0.0",
|
|
63
|
+
"@atlaskit/media-ui": "^29.0.0",
|
|
64
|
+
"@atlaskit/media-viewer": "^53.0.0",
|
|
65
65
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
66
|
"@atlaskit/primitives": "^19.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.3.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.0",
|
|
69
69
|
"@atlaskit/tokens": "^13.0.0",
|
|
70
70
|
"@atlaskit/tooltip": "^21.1.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"uuid": "^3.1.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@atlaskit/editor-common": "^
|
|
80
|
+
"@atlaskit/editor-common": "^114.0.0",
|
|
81
81
|
"@atlaskit/media-core": "^37.0.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
|
-
"react-intl
|
|
84
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
85
85
|
},
|
|
86
86
|
"techstack": {
|
|
87
87
|
"@atlassian/frontend": {
|
|
@@ -167,5 +167,8 @@
|
|
|
167
167
|
"no-unused-dependencies": {
|
|
168
168
|
"checkDevDependencies": true
|
|
169
169
|
}
|
|
170
|
+
},
|
|
171
|
+
"devDependencies": {
|
|
172
|
+
"react-intl": "^6.6.2"
|
|
170
173
|
}
|
|
171
174
|
}
|
package/report.api.md
CHANGED