@atlaskit/editor-plugin-media 1.43.2 → 1.43.4
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 +14 -0
- package/dist/cjs/mediaPlugin.js +4 -3
- package/dist/cjs/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
- package/dist/cjs/pm-plugins/main.js +0 -6
- package/dist/cjs/ui/toolbar/alt-text.js +3 -5
- package/dist/es2019/mediaPlugin.js +2 -1
- package/dist/es2019/pm-plugins/alt-text/ui/AltTextEdit.js +2 -3
- package/dist/es2019/pm-plugins/main.js +0 -1
- package/dist/es2019/ui/toolbar/alt-text.js +2 -1
- package/dist/esm/mediaPlugin.js +2 -1
- package/dist/esm/pm-plugins/alt-text/ui/AltTextEdit.js +2 -3
- package/dist/esm/pm-plugins/main.js +0 -1
- package/dist/esm/ui/toolbar/alt-text.js +2 -1
- package/dist/types/mediaPluginType.d.ts +1 -1
- package/dist/types/pm-plugins/alt-text/ui/AltTextEdit.d.ts +0 -1
- package/dist/types/pm-plugins/linking/index.d.ts +0 -1
- package/dist/types/pm-plugins/main.d.ts +0 -2
- 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-ts4.5/mediaPluginType.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/alt-text/ui/AltTextEdit.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/linking/index.d.ts +0 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -2
- 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/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.43.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181547](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181547)
|
|
8
|
+
[`40f89a75c9468`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40f89a75c9468) -
|
|
9
|
+
make guideline plugin optional to media and table plugins
|
|
10
|
+
|
|
11
|
+
## 1.43.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.43.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/mediaPlugin.js
CHANGED
|
@@ -32,6 +32,7 @@ var _keymapMedia = _interopRequireDefault(require("./pm-plugins/keymap-media"));
|
|
|
32
32
|
var _linking = _interopRequireDefault(require("./pm-plugins/linking"));
|
|
33
33
|
var _keymap3 = _interopRequireDefault(require("./pm-plugins/linking/keymap"));
|
|
34
34
|
var _main = require("./pm-plugins/main");
|
|
35
|
+
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
35
36
|
var _mediaCommon2 = require("./pm-plugins/utils/media-common");
|
|
36
37
|
var _mediaSingle2 = require("./pm-plugins/utils/media-single");
|
|
37
38
|
var _MediaPicker = require("./ui/MediaPicker");
|
|
@@ -99,7 +100,7 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
99
100
|
if (!editorState) {
|
|
100
101
|
return null;
|
|
101
102
|
}
|
|
102
|
-
return
|
|
103
|
+
return _pluginKey.stateKey.getState(editorState) || null;
|
|
103
104
|
},
|
|
104
105
|
actions: {
|
|
105
106
|
insertMediaAsMediaSingle: function insertMediaAsMediaSingle(view, node, inputMethod, isNestingInQuoteSupported, insertMediaVia) {
|
|
@@ -115,7 +116,7 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
115
116
|
previousMediaProvider = provider;
|
|
116
117
|
return (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref4) {
|
|
117
118
|
var tr = _ref4.tr;
|
|
118
|
-
return tr.setMeta(
|
|
119
|
+
return tr.setMeta(_pluginKey.stateKey, {
|
|
119
120
|
mediaProvider: provider
|
|
120
121
|
});
|
|
121
122
|
})) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false;
|
|
@@ -310,7 +311,7 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
310
311
|
isDisabledOffline: true,
|
|
311
312
|
action: function action(insert, state) {
|
|
312
313
|
var _api$analytics4;
|
|
313
|
-
var pluginState =
|
|
314
|
+
var pluginState = _pluginKey.stateKey.getState(state);
|
|
314
315
|
pluginState === null || pluginState === void 0 || pluginState.showMediaPicker();
|
|
315
316
|
var tr = insert('');
|
|
316
317
|
api === null || api === void 0 || (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 || _api$analytics4.actions.attachAnalyticsEvent({
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.default = exports.MAX_ALT_TEXT_LENGTH = exports.
|
|
7
|
+
exports.default = exports.MAX_ALT_TEXT_LENGTH = exports.AltTextEditComponent = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -29,7 +29,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
29
29
|
* @jsxRuntime classic
|
|
30
30
|
* @jsx jsx
|
|
31
31
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
32
|
-
var CONTAINER_WIDTH_IN_PX = exports.CONTAINER_WIDTH_IN_PX = _ui.RECENT_SEARCH_WIDTH_IN_PX;
|
|
33
32
|
var MAX_ALT_TEXT_LENGTH = exports.MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
34
33
|
|
|
35
34
|
var supportTextStyles = (0, _react2.css)({
|
|
@@ -42,8 +41,8 @@ var supportTextStyles = (0, _react2.css)({
|
|
|
42
41
|
margin: 0
|
|
43
42
|
});
|
|
44
43
|
var containerStyles = (0, _react2.css)({
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
|
-
width: "".concat(
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
width: "".concat(_ui.RECENT_SEARCH_WIDTH_IN_PX, "px"),
|
|
47
46
|
display: 'flex',
|
|
48
47
|
flexDirection: 'column',
|
|
49
48
|
overflow: 'auto',
|
|
@@ -6,12 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.getMediaPluginState = exports.createPlugin = exports.MediaPluginStateImplementation = exports.MEDIA_PLUGIN_RESIZING_WIDTH_KEY = exports.MEDIA_PLUGIN_IS_RESIZING_KEY = exports.MEDIA_CONTENT_WRAP_CLASS_NAME = void 0;
|
|
9
|
-
Object.defineProperty(exports, "stateKey", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _pluginKey.stateKey;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
16
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -11,12 +10,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
10
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
12
11
|
var _media = require("@atlaskit/editor-common/media");
|
|
13
12
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
13
|
+
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _commands = require("../../pm-plugins/alt-text/commands");
|
|
15
|
-
var _AltTextEdit =
|
|
15
|
+
var _AltTextEdit = _interopRequireDefault(require("../../pm-plugins/alt-text/ui/AltTextEdit"));
|
|
16
16
|
var _mediaCommon = require("../../pm-plugins/utils/media-common");
|
|
17
17
|
var _commands2 = require("./commands");
|
|
18
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
18
|
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; }
|
|
21
19
|
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; }
|
|
22
20
|
var testId = 'alt-text-edit-button';
|
|
@@ -78,7 +76,7 @@ var altTextEditComponent = function altTextEditComponent(options) {
|
|
|
78
76
|
};
|
|
79
77
|
var getAltTextToolbar = exports.getAltTextToolbar = function getAltTextToolbar(toolbarBaseConfig, options) {
|
|
80
78
|
return _objectSpread(_objectSpread({}, toolbarBaseConfig), {}, {
|
|
81
|
-
width:
|
|
79
|
+
width: _ui.RECENT_SEARCH_WIDTH_IN_PX,
|
|
82
80
|
className: _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT,
|
|
83
81
|
items: [altTextEditComponent(options)]
|
|
84
82
|
});
|
|
@@ -23,7 +23,8 @@ import keymapPlugin from './pm-plugins/keymap';
|
|
|
23
23
|
import keymapMediaSinglePlugin from './pm-plugins/keymap-media';
|
|
24
24
|
import linkingPlugin from './pm-plugins/linking';
|
|
25
25
|
import keymapLinkingPlugin from './pm-plugins/linking/keymap';
|
|
26
|
-
import { createPlugin
|
|
26
|
+
import { createPlugin } from './pm-plugins/main';
|
|
27
|
+
import { stateKey } from './pm-plugins/plugin-key';
|
|
27
28
|
import { createMediaIdentifierArray, extractMediaNodes } from './pm-plugins/utils/media-common';
|
|
28
29
|
import { insertMediaAsMediaSingle } from './pm-plugins/utils/media-single';
|
|
29
30
|
import { MediaPickerComponents } from './ui/MediaPicker';
|
|
@@ -13,13 +13,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';
|
|
15
15
|
import { altTextMessages as messages } from '@atlaskit/editor-common/media';
|
|
16
|
-
import { FloatingToolbarButton as Button, ErrorMessage, PanelTextInput
|
|
16
|
+
import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX, FloatingToolbarButton as Button, ErrorMessage, PanelTextInput } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import ChevronLeftLargeIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
19
19
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
20
20
|
import { N200, N30, N80, R400 } from '@atlaskit/theme/colors';
|
|
21
21
|
import { closeMediaAltTextMenu, closeMediaAltTextMenuAndSave } from '../commands';
|
|
22
|
-
export const CONTAINER_WIDTH_IN_PX = RECENT_SEARCH_WIDTH_IN_PX;
|
|
23
22
|
export const MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
24
23
|
|
|
25
24
|
const supportTextStyles = css({
|
|
@@ -32,7 +31,7 @@ const supportTextStyles = css({
|
|
|
32
31
|
margin: 0
|
|
33
32
|
});
|
|
34
33
|
const containerStyles = css({
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
35
|
width: `${CONTAINER_WIDTH_IN_PX}px`,
|
|
37
36
|
display: 'flex',
|
|
38
37
|
flexDirection: 'column',
|
|
@@ -28,7 +28,6 @@ import { ACTIONS } from './actions';
|
|
|
28
28
|
import { MediaTaskManager } from './mediaTaskManager';
|
|
29
29
|
import PickerFacade from './picker-facade';
|
|
30
30
|
import { stateKey } from './plugin-key';
|
|
31
|
-
export { stateKey } from './plugin-key';
|
|
32
31
|
export const MEDIA_CONTENT_WRAP_CLASS_NAME = 'media-content-wrap';
|
|
33
32
|
export const MEDIA_PLUGIN_IS_RESIZING_KEY = 'mediaSinglePlugin.isResizing';
|
|
34
33
|
export const MEDIA_PLUGIN_RESIZING_WIDTH_KEY = 'mediaSinglePlugin.resizing-width';
|
|
@@ -2,8 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { addAltText, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { altTextMessages as messages } from '@atlaskit/editor-common/media';
|
|
4
4
|
import { MediaSharedClassNames as ClassNames } from '@atlaskit/editor-common/styles';
|
|
5
|
+
import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
5
6
|
import { openMediaAltTextMenu } from '../../pm-plugins/alt-text/commands';
|
|
6
|
-
import AltTextEdit
|
|
7
|
+
import AltTextEdit from '../../pm-plugins/alt-text/ui/AltTextEdit';
|
|
7
8
|
import { getMediaSingleOrInlineNodeFromSelection } from '../../pm-plugins/utils/media-common';
|
|
8
9
|
import { getNodeType } from './commands';
|
|
9
10
|
const testId = 'alt-text-edit-button';
|
package/dist/esm/mediaPlugin.js
CHANGED
|
@@ -23,7 +23,8 @@ import keymapPlugin from './pm-plugins/keymap';
|
|
|
23
23
|
import keymapMediaSinglePlugin from './pm-plugins/keymap-media';
|
|
24
24
|
import linkingPlugin from './pm-plugins/linking';
|
|
25
25
|
import keymapLinkingPlugin from './pm-plugins/linking/keymap';
|
|
26
|
-
import { createPlugin
|
|
26
|
+
import { createPlugin } from './pm-plugins/main';
|
|
27
|
+
import { stateKey } from './pm-plugins/plugin-key';
|
|
27
28
|
import { createMediaIdentifierArray, extractMediaNodes } from './pm-plugins/utils/media-common';
|
|
28
29
|
import { insertMediaAsMediaSingle as _insertMediaAsMediaSingle } from './pm-plugins/utils/media-single';
|
|
29
30
|
import { MediaPickerComponents } from './ui/MediaPicker';
|
|
@@ -20,13 +20,12 @@ 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';
|
|
22
22
|
import { altTextMessages as messages } from '@atlaskit/editor-common/media';
|
|
23
|
-
import { FloatingToolbarButton as Button, ErrorMessage, PanelTextInput
|
|
23
|
+
import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX, FloatingToolbarButton as Button, ErrorMessage, PanelTextInput } from '@atlaskit/editor-common/ui';
|
|
24
24
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
25
25
|
import ChevronLeftLargeIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
26
26
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
27
27
|
import { N200, N30, N80, R400 } from '@atlaskit/theme/colors';
|
|
28
28
|
import { closeMediaAltTextMenu, closeMediaAltTextMenuAndSave } from '../commands';
|
|
29
|
-
export var CONTAINER_WIDTH_IN_PX = RECENT_SEARCH_WIDTH_IN_PX;
|
|
30
29
|
export var MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
31
30
|
|
|
32
31
|
var supportTextStyles = css({
|
|
@@ -39,7 +38,7 @@ var supportTextStyles = css({
|
|
|
39
38
|
margin: 0
|
|
40
39
|
});
|
|
41
40
|
var containerStyles = css({
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
42
|
width: "".concat(CONTAINER_WIDTH_IN_PX, "px"),
|
|
44
43
|
display: 'flex',
|
|
45
44
|
flexDirection: 'column',
|
|
@@ -37,7 +37,6 @@ import { ACTIONS } from './actions';
|
|
|
37
37
|
import { MediaTaskManager } from './mediaTaskManager';
|
|
38
38
|
import PickerFacade from './picker-facade';
|
|
39
39
|
import { stateKey } from './plugin-key';
|
|
40
|
-
export { stateKey } from './plugin-key';
|
|
41
40
|
export var MEDIA_CONTENT_WRAP_CLASS_NAME = 'media-content-wrap';
|
|
42
41
|
export var MEDIA_PLUGIN_IS_RESIZING_KEY = 'mediaSinglePlugin.isResizing';
|
|
43
42
|
export var MEDIA_PLUGIN_RESIZING_WIDTH_KEY = 'mediaSinglePlugin.resizing-width';
|
|
@@ -5,8 +5,9 @@ import React from 'react';
|
|
|
5
5
|
import { addAltText, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
6
6
|
import { altTextMessages as messages } from '@atlaskit/editor-common/media';
|
|
7
7
|
import { MediaSharedClassNames as ClassNames } from '@atlaskit/editor-common/styles';
|
|
8
|
+
import { RECENT_SEARCH_WIDTH_IN_PX as CONTAINER_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
8
9
|
import { openMediaAltTextMenu } from '../../pm-plugins/alt-text/commands';
|
|
9
|
-
import AltTextEdit
|
|
10
|
+
import AltTextEdit from '../../pm-plugins/alt-text/ui/AltTextEdit';
|
|
10
11
|
import { getMediaSingleOrInlineNodeFromSelection } from '../../pm-plugins/utils/media-common';
|
|
11
12
|
import { getNodeType } from './commands';
|
|
12
13
|
var testId = 'alt-text-edit-button';
|
|
@@ -24,7 +24,7 @@ export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
|
|
|
24
24
|
OptionalPlugin<AnalyticsPlugin>,
|
|
25
25
|
OptionalPlugin<ContextIdentifierPlugin>,
|
|
26
26
|
OptionalPlugin<EditorViewModePlugin>,
|
|
27
|
-
GuidelinePlugin
|
|
27
|
+
OptionalPlugin<GuidelinePlugin>,
|
|
28
28
|
GridPlugin,
|
|
29
29
|
WidthPlugin,
|
|
30
30
|
DecorationsPlugin,
|
|
@@ -3,7 +3,6 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
export declare const CONTAINER_WIDTH_IN_PX = 420;
|
|
7
6
|
export declare const MAX_ALT_TEXT_LENGTH = 510;
|
|
8
7
|
type Props = {
|
|
9
8
|
view: EditorView;
|
|
@@ -5,6 +5,5 @@ import type { MediaLinkingActions } from './actions';
|
|
|
5
5
|
import type { MediaLinkingState } from './types';
|
|
6
6
|
export declare const mediaLinkingPluginKey: PluginKey<MediaLinkingState>;
|
|
7
7
|
export declare const createMediaLinkingCommand: <A = MediaLinkingActions>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getMediaLinkingState: (state: import("prosemirror-state").EditorState) => MediaLinkingState;
|
|
8
|
-
export type { MediaLinkingState } from './types';
|
|
9
8
|
declare const _default: (dispatch: Dispatch) => SafePlugin<MediaLinkingState>;
|
|
10
9
|
export default _default;
|
|
@@ -15,8 +15,6 @@ import type { MediaOptions, MediaState, MediaStateEventSubscriber, getPosHandler
|
|
|
15
15
|
import type { MediaPluginOptions } from '../types/media-plugin-options';
|
|
16
16
|
import PickerFacade from './picker-facade';
|
|
17
17
|
import type { MediaNodeWithPosHandler, MediaPluginState } from './types';
|
|
18
|
-
export type { MediaState };
|
|
19
|
-
export { stateKey } from './plugin-key';
|
|
20
18
|
export declare const MEDIA_CONTENT_WRAP_CLASS_NAME = "media-content-wrap";
|
|
21
19
|
export declare const MEDIA_PLUGIN_IS_RESIZING_KEY = "mediaSinglePlugin.isResizing";
|
|
22
20
|
export declare const MEDIA_PLUGIN_RESIZING_WIDTH_KEY = "mediaSinglePlugin.resizing-width";
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { IntlShape } from 'react-intl-next';
|
|
8
8
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import type { MediaLinkingState } from '../../pm-plugins/linking';
|
|
9
|
+
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
10
10
|
export interface LinkingToolbarProps {
|
|
11
11
|
editorState: EditorState;
|
|
12
12
|
intl: IntlShape;
|
|
@@ -3,7 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
6
|
-
import type { MediaLinkingState } from '../../pm-plugins/linking';
|
|
6
|
+
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
7
7
|
import type { MediaToolbarBaseConfig } from '../../types';
|
|
8
8
|
export declare function shouldShowMediaLinkToolbar(editorState: EditorState): boolean;
|
|
9
9
|
export declare const getLinkingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, mediaLinkingState: MediaLinkingState, state: EditorState, intl: IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, providerFactory?: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
@@ -24,7 +24,7 @@ export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
|
|
|
24
24
|
OptionalPlugin<AnalyticsPlugin>,
|
|
25
25
|
OptionalPlugin<ContextIdentifierPlugin>,
|
|
26
26
|
OptionalPlugin<EditorViewModePlugin>,
|
|
27
|
-
GuidelinePlugin
|
|
27
|
+
OptionalPlugin<GuidelinePlugin>,
|
|
28
28
|
GridPlugin,
|
|
29
29
|
WidthPlugin,
|
|
30
30
|
DecorationsPlugin,
|
|
@@ -3,7 +3,6 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
export declare const CONTAINER_WIDTH_IN_PX = 420;
|
|
7
6
|
export declare const MAX_ALT_TEXT_LENGTH = 510;
|
|
8
7
|
type Props = {
|
|
9
8
|
view: EditorView;
|
|
@@ -5,6 +5,5 @@ import type { MediaLinkingActions } from './actions';
|
|
|
5
5
|
import type { MediaLinkingState } from './types';
|
|
6
6
|
export declare const mediaLinkingPluginKey: PluginKey<MediaLinkingState>;
|
|
7
7
|
export declare const createMediaLinkingCommand: <A = MediaLinkingActions>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getMediaLinkingState: (state: import("prosemirror-state").EditorState) => MediaLinkingState;
|
|
8
|
-
export type { MediaLinkingState } from './types';
|
|
9
8
|
declare const _default: (dispatch: Dispatch) => SafePlugin<MediaLinkingState>;
|
|
10
9
|
export default _default;
|
|
@@ -15,8 +15,6 @@ import type { MediaOptions, MediaState, MediaStateEventSubscriber, getPosHandler
|
|
|
15
15
|
import type { MediaPluginOptions } from '../types/media-plugin-options';
|
|
16
16
|
import PickerFacade from './picker-facade';
|
|
17
17
|
import type { MediaNodeWithPosHandler, MediaPluginState } from './types';
|
|
18
|
-
export type { MediaState };
|
|
19
|
-
export { stateKey } from './plugin-key';
|
|
20
18
|
export declare const MEDIA_CONTENT_WRAP_CLASS_NAME = "media-content-wrap";
|
|
21
19
|
export declare const MEDIA_PLUGIN_IS_RESIZING_KEY = "mediaSinglePlugin.isResizing";
|
|
22
20
|
export declare const MEDIA_PLUGIN_RESIZING_WIDTH_KEY = "mediaSinglePlugin.resizing-width";
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { IntlShape } from 'react-intl-next';
|
|
8
8
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import type { MediaLinkingState } from '../../pm-plugins/linking';
|
|
9
|
+
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
10
10
|
export interface LinkingToolbarProps {
|
|
11
11
|
editorState: EditorState;
|
|
12
12
|
intl: IntlShape;
|
|
@@ -3,7 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
6
|
-
import type { MediaLinkingState } from '../../pm-plugins/linking';
|
|
6
|
+
import type { MediaLinkingState } from '../../pm-plugins/linking/types';
|
|
7
7
|
import type { MediaToolbarBaseConfig } from '../../types';
|
|
8
8
|
export declare function shouldShowMediaLinkToolbar(editorState: EditorState): boolean;
|
|
9
9
|
export declare const getLinkingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, mediaLinkingState: MediaLinkingState, state: EditorState, intl: IntlShape, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, providerFactory?: ProviderFactory) => FloatingToolbarConfig | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
38
38
|
"@atlaskit/button": "^20.3.0",
|
|
39
|
-
"@atlaskit/editor-common": "^96.
|
|
39
|
+
"@atlaskit/editor-common": "^96.7.0",
|
|
40
40
|
"@atlaskit/editor-palette": "1.6.3",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
42
|
-
"@atlaskit/editor-plugin-annotation": "1.26.
|
|
42
|
+
"@atlaskit/editor-plugin-annotation": "1.26.5",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^1.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/primitives": "^13.3.0",
|
|
68
68
|
"@atlaskit/textfield": "^6.7.0",
|
|
69
69
|
"@atlaskit/theme": "^14.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^2.29.0",
|
|
71
71
|
"@atlaskit/tokens": "^2.5.0",
|
|
72
72
|
"@atlaskit/tooltip": "^19.0.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|