@atlaskit/editor-plugin-media 18.1.4 → 18.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/nodeviews/mediaNodeUpdater.js +2 -2
- package/dist/cjs/nodeviews/toDOM-fixes/media.js +2 -2
- package/dist/cjs/nodeviews/toDOM-fixes/mediaGroup.js +2 -2
- package/dist/cjs/nodeviews/toDOM-fixes/mediaInline.js +2 -2
- package/dist/cjs/nodeviews/toDOM-fixes/mediaSingle.js +2 -2
- package/dist/cjs/pm-plugins/commands/helpers.js +5 -5
- package/dist/cjs/pm-plugins/main.js +2 -2
- package/dist/cjs/pm-plugins/utils/batchSteps.js +2 -2
- package/dist/cjs/ui/toolbar/linking-toolbar-appearance.js +2 -2
- package/dist/cjs/ui/toolbar/linking.js +2 -2
- package/dist/es2019/nodeviews/mediaNodeUpdater.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/media.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/mediaGroup.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/mediaInline.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/mediaSingle.js +1 -1
- package/dist/es2019/pm-plugins/commands/helpers.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/utils/batchSteps.js +1 -1
- package/dist/es2019/ui/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/es2019/ui/toolbar/linking.js +1 -1
- package/dist/esm/nodeviews/mediaNodeUpdater.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/media.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/mediaGroup.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/mediaInline.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/mediaSingle.js +1 -1
- package/dist/esm/pm-plugins/commands/helpers.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/utils/batchSteps.js +1 -1
- package/dist/esm/ui/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/esm/ui/toolbar/linking.js +1 -1
- package/dist/types/mediaPluginType.d.ts +1 -1
- package/dist/types/nodeviews/helpers.d.ts +1 -1
- package/dist/types/nodeviews/mediaNodeView/index.d.ts +1 -1
- package/dist/types/nodeviews/toDOM-fixes/mediaSingle.d.ts +1 -1
- package/dist/types/pm-plugins/commands.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/pm-plugins/types.d.ts +2 -1
- package/dist/types/pm-plugins/utils/batchMediaNodeAttrs.d.ts +1 -1
- package/dist/types/pm-plugins/utils/batchSteps.d.ts +1 -1
- package/dist/types/pm-plugins/utils/current-media-node.d.ts +1 -1
- package/dist/types/pm-plugins/utils/media-common.d.ts +1 -1
- package/dist/types/pm-plugins/utils/media-single.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/ui/CommentBadge/index.d.ts +1 -1
- package/dist/types/ui/ImageBorder/index.d.ts +1 -1
- package/dist/types/ui/MediaViewer/PortalWrapper.d.ts +1 -1
- package/dist/types/ui/ResizableMediaSingle/constants.d.ts +1 -1
- package/dist/types/ui/ResizableMediaSingle/index.d.ts +1 -1
- package/dist/types/ui/ResizableMediaSingle/types.d.ts +1 -1
- package/dist/types/ui/toolbar/commands.d.ts +2 -1
- package/dist/types/ui/toolbar/utils.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -12,7 +12,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
15
|
-
var
|
|
15
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
18
18
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -370,7 +370,7 @@ var MediaNodeUpdater = exports.MediaNodeUpdater = /*#__PURE__*/function () {
|
|
|
370
370
|
var tr = state.tr;
|
|
371
371
|
|
|
372
372
|
// Update intrinsic dimensions on the media child node
|
|
373
|
-
tr.step(new
|
|
373
|
+
tr.step(new _setAttrs.SetAttrsStep(mediaPos, {
|
|
374
374
|
height: dimensions.height,
|
|
375
375
|
width: dimensions.width
|
|
376
376
|
}));
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.mediaSpecWithFixedToDOM = exports.defaultImageCardDimensions = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _media = require("@atlaskit/adf-schema/media");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
12
|
var _toDOMAttrs = require("./toDOMAttrs");
|
|
@@ -30,7 +30,7 @@ var defaultImageCardDimensions = exports.defaultImageCardDimensions = {
|
|
|
30
30
|
|
|
31
31
|
// @nodeSpecException:toDOM patch
|
|
32
32
|
var mediaSpecWithFixedToDOM = exports.mediaSpecWithFixedToDOM = function mediaSpecWithFixedToDOM() {
|
|
33
|
-
return _objectSpread(_objectSpread({},
|
|
33
|
+
return _objectSpread(_objectSpread({}, _media.media), {}, {
|
|
34
34
|
toDOM: function toDOM(node) {
|
|
35
35
|
var attrs = (0, _toDOMAttrs.getMediaAttrs)('media', node);
|
|
36
36
|
if (node.attrs.type === 'external') {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.mediaGroupSpecWithFixedToDOM = exports.getDefaultCardDimensions = exports.defaultSquareCardDimensions = exports.defaultImageCardDimensions = exports.defaultHorizontalCardDimensions = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _mediaGroup = require("@atlaskit/adf-schema/media-group");
|
|
10
10
|
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; }
|
|
11
11
|
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) { (0, _defineProperty2.default)(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; }
|
|
12
12
|
/**
|
|
@@ -60,7 +60,7 @@ var getDefaultCardDimensions = exports.getDefaultCardDimensions = function getDe
|
|
|
60
60
|
|
|
61
61
|
// @nodeSpecException:toDOM patch
|
|
62
62
|
var mediaGroupSpecWithFixedToDOM = exports.mediaGroupSpecWithFixedToDOM = function mediaGroupSpecWithFixedToDOM() {
|
|
63
|
-
return _objectSpread(_objectSpread({},
|
|
63
|
+
return _objectSpread(_objectSpread({}, _mediaGroup.mediaGroup), {}, {
|
|
64
64
|
toDOM: function toDOM() {
|
|
65
65
|
// Margin margin that consolidates the margin in the
|
|
66
66
|
return ['div', {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.mediaInlineSpecWithFixedToDOM = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _mediaInline = require("@atlaskit/adf-schema/media-inline");
|
|
10
10
|
var _toDOMAttrs = require("./toDOMAttrs");
|
|
11
11
|
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; }
|
|
12
12
|
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) { (0, _defineProperty2.default)(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; }
|
|
@@ -16,7 +16,7 @@ var fallbackAspectRatio = 1.25;
|
|
|
16
16
|
|
|
17
17
|
// @nodeSpecException:toDOM patch
|
|
18
18
|
var mediaInlineSpecWithFixedToDOM = exports.mediaInlineSpecWithFixedToDOM = function mediaInlineSpecWithFixedToDOM() {
|
|
19
|
-
return _objectSpread(_objectSpread({},
|
|
19
|
+
return _objectSpread(_objectSpread({}, _mediaInline.mediaInline), {}, {
|
|
20
20
|
toDOM: function toDOM(node) {
|
|
21
21
|
var dataAttrs = (0, _toDOMAttrs.getMediaAttrs)('mediaInline', node);
|
|
22
22
|
if (node.attrs.type === 'image') {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.prepareWrapperContentDOM = exports.mediaWidthCSSCalc = exports.mediaSingleSpecWithFixedToDOM = exports.mediaProportionalWidthCSSCalc = exports.mediaJustifyContentCSS = exports.mediaContentWrapperWidthCSSCalc = exports.getToDom = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _mediaSingleSpec = require("@atlaskit/adf-schema/media-single-spec");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _toDOMAttrs = require("./toDOMAttrs");
|
|
12
12
|
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; }
|
|
@@ -210,7 +210,7 @@ var getToDom = exports.getToDom = function getToDom(allowPixelResizing) {
|
|
|
210
210
|
|
|
211
211
|
// @nodeSpecException:toDOM patch
|
|
212
212
|
var mediaSingleSpecWithFixedToDOM = exports.mediaSingleSpecWithFixedToDOM = function mediaSingleSpecWithFixedToDOM(mediaSingleOption) {
|
|
213
|
-
var mediaSingleNode = (0,
|
|
213
|
+
var mediaSingleNode = (0, _mediaSingleSpec.mediaSingleSpec)(mediaSingleOption);
|
|
214
214
|
var toDOM = getToDom(mediaSingleOption.withExtendedWidthTypes);
|
|
215
215
|
return _objectSpread(_objectSpread({}, mediaSingleNode), {}, {
|
|
216
216
|
toDOM: toDOM
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.updateMediaNodeAttrs = exports.updateCurrentMediaNodeAttrs = exports.updateAllMediaNodesAttrs = exports.replaceExternalMedia = exports.isMediaNode = exports.findMediaNode = exports.findAllMediaNodes = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
10
10
|
var _collab = require("@atlaskit/editor-common/collab");
|
|
11
11
|
var _pluginKey = require("../plugin-key");
|
|
12
12
|
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; }
|
|
@@ -62,7 +62,7 @@ var updateAllMediaNodesAttrs = exports.updateAllMediaNodesAttrs = function updat
|
|
|
62
62
|
}
|
|
63
63
|
var tr = state.tr;
|
|
64
64
|
validMediaNodePositions.forEach(function (pos) {
|
|
65
|
-
return tr.step(new
|
|
65
|
+
return tr.step(new _setAttrs.SetAttrsStep(pos, attrs));
|
|
66
66
|
});
|
|
67
67
|
tr.setMeta('addToHistory', false);
|
|
68
68
|
(0, _collab.tintDirtyTransaction)(tr);
|
|
@@ -79,7 +79,7 @@ var updateCurrentMediaNodeAttrs = exports.updateCurrentMediaNodeAttrs = function
|
|
|
79
79
|
return false;
|
|
80
80
|
}
|
|
81
81
|
var tr = state.tr;
|
|
82
|
-
tr.step(new
|
|
82
|
+
tr.step(new _setAttrs.SetAttrsStep(pos, attrs));
|
|
83
83
|
tr.setMeta('addToHistory', false);
|
|
84
84
|
if (tintDirtyTr) {
|
|
85
85
|
(0, _collab.tintDirtyTransaction)(tr);
|
|
@@ -105,7 +105,7 @@ var updateMediaNodeAttrs = exports.updateMediaNodeAttrs = function updateMediaNo
|
|
|
105
105
|
if (typeof pos !== 'number' || !isMediaNode(pos, state)) {
|
|
106
106
|
return false;
|
|
107
107
|
}
|
|
108
|
-
tr.step(new
|
|
108
|
+
tr.step(new _setAttrs.SetAttrsStep(pos, attrs)).setMeta('addToHistory', false);
|
|
109
109
|
if (dispatch) {
|
|
110
110
|
dispatch(tr);
|
|
111
111
|
}
|
|
@@ -119,7 +119,7 @@ var replaceExternalMedia = exports.replaceExternalMedia = function replaceExtern
|
|
|
119
119
|
if (!node || node.type.name !== 'media') {
|
|
120
120
|
return false;
|
|
121
121
|
}
|
|
122
|
-
tr.step(new
|
|
122
|
+
tr.step(new _setAttrs.SetAttrsStep(pos, _objectSpread({
|
|
123
123
|
type: 'file',
|
|
124
124
|
url: null
|
|
125
125
|
}, attrs))).setMeta('addToHistory', false);
|
|
@@ -15,7 +15,7 @@ var _assert = _interopRequireDefault(require("assert"));
|
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
18
|
-
var
|
|
18
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
20
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
21
21
|
var _mediaInline = require("@atlaskit/editor-common/media-inline");
|
|
@@ -197,7 +197,7 @@ var MediaPluginStateImplementation = exports.MediaPluginStateImplementation = /*
|
|
|
197
197
|
// 1. Updates the media child node attrs (new file identity + cleared dimensions)
|
|
198
198
|
// 2. Re-creates the NodeSelection so the toolbar picks up the fresh node
|
|
199
199
|
var tr = currentState.tr;
|
|
200
|
-
tr.step(new
|
|
200
|
+
tr.step(new _setAttrs.SetAttrsStep(mediaPos, {
|
|
201
201
|
id: mediaState.id,
|
|
202
202
|
collection: collection,
|
|
203
203
|
type: 'file',
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.batchStepsUpdate = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _batchAttrsStep = require("@atlaskit/adf-schema/steps/batch-attrs-step");
|
|
8
8
|
var _collab = require("@atlaskit/editor-common/collab");
|
|
9
9
|
/**
|
|
10
10
|
* Applies a batch of attribute update steps to media nodes in the editor view.
|
|
@@ -29,7 +29,7 @@ var batchStepsUpdate = exports.batchStepsUpdate = function batchStepsUpdate(edit
|
|
|
29
29
|
if (steps.length === 0) {
|
|
30
30
|
return false;
|
|
31
31
|
}
|
|
32
|
-
tr.step(new
|
|
32
|
+
tr.step(new _batchAttrsStep.BatchAttrsStep(steps));
|
|
33
33
|
if (tr.steps.length > 0 && tr.doc.eq(state.doc)) {
|
|
34
34
|
return false;
|
|
35
35
|
}
|
|
@@ -9,7 +9,7 @@ exports.LinkToolbarAppearance = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var
|
|
12
|
+
var _isSafeUrl = require("@atlaskit/adf-schema/is-safe-url");
|
|
13
13
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -64,7 +64,7 @@ var LinkToolbarAppearance = exports.LinkToolbarAppearance = function LinkToolbar
|
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
66
|
if (mediaLinkingState && mediaLinkingState.editable) {
|
|
67
|
-
var isValidUrl = (0,
|
|
67
|
+
var isValidUrl = (0, _isSafeUrl.isSafeUrl)(mediaLinkingState.link);
|
|
68
68
|
var title = intl.formatMessage(_messages.linkToolbarMessages.editLink);
|
|
69
69
|
var linkTitle = intl.formatMessage(isValidUrl ? _messages.linkMessages.openLink : _messages.linkToolbarMessages.unableToOpenLink);
|
|
70
70
|
return (0, _react2.jsx)(_react.Fragment, null, !isViewOnly && (0, _react2.jsx)("div", {
|
|
@@ -8,7 +8,7 @@ exports.getOpenLinkToolbarButtonOption = exports.getLinkingToolbar = exports.get
|
|
|
8
8
|
exports.shouldShowMediaLinkToolbar = shouldShowMediaLinkToolbar;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _isSafeUrl = require("@atlaskit/adf-schema/is-safe-url");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
@@ -184,7 +184,7 @@ var getLinkingDropdownOptions = exports.getLinkingDropdownOptions = function get
|
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
var getOpenLinkToolbarButtonOption = exports.getOpenLinkToolbarButtonOption = function getOpenLinkToolbarButtonOption(intl, mediaLinkingState, pluginInjectionApi) {
|
|
187
|
-
var isValidUrl = (0,
|
|
187
|
+
var isValidUrl = (0, _isSafeUrl.isSafeUrl)(mediaLinkingState.link);
|
|
188
188
|
var linkTitle = intl.formatMessage(isValidUrl ? _messages.linkMessages.openLink : _messages.linkToolbarMessages.unableToOpenLink);
|
|
189
189
|
return {
|
|
190
190
|
id: 'editor.media.open-link',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
3
3
|
import uuidV4 from 'uuid/v4';
|
|
4
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
4
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH } from '@atlaskit/editor-common/media-single';
|
|
7
7
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { media } from '@atlaskit/adf-schema';
|
|
1
|
+
import { media } from '@atlaskit/adf-schema/media';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { getMediaAttrs } from './toDOMAttrs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mediaInline } from '@atlaskit/adf-schema';
|
|
1
|
+
import { mediaInline } from '@atlaskit/adf-schema/media-inline';
|
|
2
2
|
import { getMediaAttrs } from './toDOMAttrs';
|
|
3
3
|
const skeletonStyling = `background: ${"var(--ds-background-neutral, #0515240F)"};`;
|
|
4
4
|
// Matches media
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
1
|
+
import { mediaSingleSpec } from '@atlaskit/adf-schema/media-single-spec';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { getAttrsFromNodeMediaSingle } from './toDOMAttrs';
|
|
4
4
|
const WRAPPED_LAYOUTS = ['wrap-left', 'wrap-right'];
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
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
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
7
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
8
8
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { mediaInlineImagesEnabled } from '@atlaskit/editor-common/media-inline';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { BatchAttrsStep } from '@atlaskit/adf-schema/steps/batch-attrs-step';
|
|
2
2
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
3
3
|
/**
|
|
4
4
|
* Applies a batch of attribute update steps to media nodes in the editor view.
|
|
@@ -6,7 +6,7 @@ import React, { Fragment, useEffect, useState } from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
9
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
10
10
|
import { addLink, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
11
11
|
import { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { FloatingToolbarSeparator as Separator, FloatingToolbarButton as ToolbarButton } from '@atlaskit/editor-common/ui';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
2
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
11
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
12
12
|
import uuidV4 from 'uuid/v4';
|
|
13
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
13
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
14
14
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import { DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH } from '@atlaskit/editor-common/media-single';
|
|
16
16
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { media } from '@atlaskit/adf-schema';
|
|
4
|
+
import { media } from '@atlaskit/adf-schema/media';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { getMediaAttrs } from './toDOMAttrs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { mediaGroup } from '@atlaskit/adf-schema';
|
|
4
|
+
import { mediaGroup } from '@atlaskit/adf-schema/media-group';
|
|
5
5
|
/**
|
|
6
6
|
* Duplicate consts from `media-card`.
|
|
7
7
|
* `packages/media/media-card/src/utils/cardDimensions.ts`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { mediaInline } from '@atlaskit/adf-schema';
|
|
4
|
+
import { mediaInline } from '@atlaskit/adf-schema/media-inline';
|
|
5
5
|
import { getMediaAttrs } from './toDOMAttrs';
|
|
6
6
|
var skeletonStyling = "background: ".concat("var(--ds-background-neutral, #0515240F)", ";");
|
|
7
7
|
// Matches media
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
4
|
+
import { mediaSingleSpec } from '@atlaskit/adf-schema/media-single-spec';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { getAttrsFromNodeMediaSingle } from './toDOMAttrs';
|
|
7
7
|
var WRAPPED_LAYOUTS = ['wrap-left', 'wrap-right'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
4
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
5
5
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
6
6
|
import { stateKey as mediaPluginKey } from '../plugin-key';
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
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
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
16
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
17
17
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
18
18
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
19
19
|
import { mediaInlineImagesEnabled } from '@atlaskit/editor-common/media-inline';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BatchAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { BatchAttrsStep } from '@atlaskit/adf-schema/steps/batch-attrs-step';
|
|
2
2
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
3
3
|
/**
|
|
4
4
|
* Applies a batch of attribute update steps to media nodes in the editor view.
|
|
@@ -7,7 +7,7 @@ import React, { Fragment, useEffect, useState } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
10
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
11
11
|
import { addLink, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
12
12
|
import { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { FloatingToolbarSeparator as Separator, FloatingToolbarButton as ToolbarButton } from '@atlaskit/editor-common/ui';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
5
|
+
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
2
2
|
import type { InputMethodInsertMedia, InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MediaAttributes } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { MediaAttributes } from '@atlaskit/adf-schema/media';
|
|
2
2
|
export declare const hasPrivateAttrsChanged: (currentAttrs: MediaAttributes, newAttrs: Partial<MediaAttributes>) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
4
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
6
6
|
import type { ContextIdentifierProvider, MediaProvider, ProviderFactory, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
2
2
|
import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
type MediaWidthCSSCalcProps = {
|
|
4
4
|
baseWidth: number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
2
2
|
import type { EditorAnalyticsAPI, InputMethodInsertMedia, InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { type AIGeneratingSource } from '../pm-plugins/ai-generating-decoration';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
3
3
|
import type { InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { MediaADFAttrs
|
|
1
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
2
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
2
3
|
import type { InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BatchAttrsStepData } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { type BatchAttrsStepData } from '@atlaskit/adf-schema/steps/batch-attrs-step';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
/**
|
|
4
4
|
* Applies a batch of attribute update steps to media nodes in the editor view.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema/border';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
export declare const currentMediaInlineNodeWithPos: (editorState: EditorState) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
2
2
|
import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Node as ProseMirrorNode } 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 { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
3
3
|
import type { EditorAnalyticsAPI, InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type InsertMediaVia } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EditorCommand, EditorContainerWidth as WidthPluginState } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { MediaADFAttrs
|
|
1
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
2
|
+
import type { MediaInlineAttributes } from '@atlaskit/adf-schema/media-inline';
|
|
2
3
|
import type { MediaProvider, ProviderFactory, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
4
|
import type { HandlePositioning } from '@atlaskit/editor-common/resizer';
|
|
4
5
|
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AnnotationMarkDefinition } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { AnnotationMarkDefinition } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
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 { jsx } from '@emotion/react';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema/border';
|
|
4
4
|
export interface ImageBorderProps {
|
|
5
5
|
borderMark?: BorderMarkAttributes;
|
|
6
6
|
intl: IntlShape;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MediaADFAttrs } from '@atlaskit/adf-schema';
|
|
2
|
+
import type { MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
3
3
|
import type { Identifier, MediaClientConfig } from '@atlaskit/media-client';
|
|
4
4
|
import { type MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
5
5
|
interface RenderMediaViewerProps {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
2
2
|
export declare const leftHandleOnlyLayouts: MediaSingleLayout[];
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type {
|
|
7
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
8
8
|
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import type { MediaClientConfig } from '@atlaskit/media-core/auth';
|
|
10
10
|
import type { Props } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Layout as MediaSingleLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { HandlePositioning } from '@atlaskit/editor-common/resizer';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { BorderMarkAttributes
|
|
1
|
+
import type { BorderMarkAttributes } from '@atlaskit/adf-schema/border';
|
|
2
|
+
import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
2
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { Command, EditorContainerWidth as WidthPluginState } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type MemoizedFn } from 'memoize-one';
|
|
2
2
|
import type { IntlShape } from 'react-intl';
|
|
3
|
-
import type { ExternalMediaAttributes, MediaADFAttrs
|
|
3
|
+
import type { ExternalMediaAttributes, MediaADFAttrs } from '@atlaskit/adf-schema/media';
|
|
4
|
+
import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
|
|
4
5
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
5
6
|
import type { Command, FloatingToolbarItem, FloatingToolbarDropdown, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.5",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
61
61
|
"@atlaskit/primitives": "^22.5.0",
|
|
62
62
|
"@atlaskit/textfield": "^10.2.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^16.11.0",
|
|
65
65
|
"@atlaskit/tooltip": "^24.3.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|