@atlaskit/editor-plugin-media 21.0.1 → 21.0.3
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/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/cjs/nodeviews/styles.js +1 -6
- package/dist/cjs/pm-plugins/pixel-resizing/ui/pixel-entry.js +1 -1
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/cjs/ui/toolbar/mediaInline.js +1 -1
- package/dist/es2019/entry-points/media-plugin.js +1 -0
- package/dist/es2019/entry-points/nodeview-helpers.js +1 -0
- package/dist/es2019/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/es2019/nodeviews/styles.js +1 -6
- package/dist/es2019/pm-plugins/pixel-resizing/ui/pixel-entry.js +2 -1
- package/dist/es2019/ui/CaptionPlaceholder/index.js +1 -0
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/es2019/ui/toolbar/mediaInline.js +1 -1
- package/dist/esm/entry-points/media-plugin.js +1 -0
- package/dist/esm/entry-points/nodeview-helpers.js +1 -0
- package/dist/esm/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/esm/nodeviews/styles.js +1 -6
- package/dist/esm/pm-plugins/pixel-resizing/ui/pixel-entry.js +2 -1
- package/dist/esm/ui/CaptionPlaceholder/index.js +1 -0
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/esm/ui/toolbar/mediaInline.js +1 -1
- package/dist/types/pm-plugins/pixel-resizing/ui/pixel-entry.d.ts +4 -0
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 21.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`22e02fb26ca02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22e02fb26ca02) -
|
|
8
|
+
Make the shipped media border radius styling permanent and remove the obsolete feature gate.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 21.0.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 21.0.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -28,9 +28,9 @@ var _cardLoader = _interopRequireDefault(require("@atlaskit/media-card/cardLoade
|
|
|
28
28
|
var _cardLoading = require("@atlaskit/media-card/cardLoading");
|
|
29
29
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
30
30
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
31
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
31
32
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
32
33
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
33
|
-
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
34
34
|
var _pluginKey = require("../../pm-plugins/plugin-key");
|
|
35
35
|
var _GeneratedMediaReveal = require("../../ui/GeneratedMediaReveal");
|
|
36
36
|
var _mediaNodeUpdater = require("../mediaNodeUpdater");
|
|
@@ -8,7 +8,6 @@ exports.MediaSingleNodeSelector = exports.MediaCardWrapper = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
11
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
11
|
/**
|
|
13
12
|
* @jsxRuntime classic
|
|
14
13
|
* @jsx jsx
|
|
@@ -37,11 +36,7 @@ var MediaCardWrapper = exports.MediaCardWrapper = function MediaCardWrapper(_ref
|
|
|
37
36
|
borderWidth = _ref$borderWidth === void 0 ? 0 : _ref$borderWidth,
|
|
38
37
|
onContextMenu = _ref.onContextMenu;
|
|
39
38
|
var calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
|
|
40
|
-
|
|
41
|
-
// Fixes border radius calculation to properly fit image with 8px radius
|
|
42
|
-
// To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
|
|
43
|
-
var borderRadius = (0, _fg.fg)('platform_editor_media_border_radius_fix') ? "".concat(calculatedBorderWidth + 8, "px") : "".concat(calculatedBorderWidth * 2, "px"); // OLD BEHAVIOR (to be removed when flag is cleaned up)
|
|
44
|
-
|
|
39
|
+
var borderRadius = "".concat(calculatedBorderWidth + 8, "px");
|
|
45
40
|
return (0, _react2.jsx)("div", {
|
|
46
41
|
"data-testid": "media-card-wrapper"
|
|
47
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -12,8 +12,8 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _button = _interopRequireDefault(require("@atlaskit/button/button"));
|
|
13
13
|
var _button2 = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
14
14
|
var _media = require("@atlaskit/editor-common/media");
|
|
15
|
-
var _form = _interopRequireDefault(require("@atlaskit/form/form"));
|
|
16
15
|
var _field = _interopRequireDefault(require("@atlaskit/form/field"));
|
|
16
|
+
var _form = _interopRequireDefault(require("@atlaskit/form/form"));
|
|
17
17
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
18
18
|
var _primitives = require("@atlaskit/primitives");
|
|
19
19
|
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
@@ -22,8 +22,8 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
22
22
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
25
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
25
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
26
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
27
|
var _main = require("../../pm-plugins/main");
|
|
28
28
|
var _analytics = require("../../pm-plugins/utils/analytics");
|
|
29
29
|
var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
|
|
@@ -30,10 +30,10 @@ var _ImageBorder = _interopRequireDefault(require("../../ui/ImageBorder"));
|
|
|
30
30
|
var _altText = require("./alt-text");
|
|
31
31
|
var _commands = require("./commands");
|
|
32
32
|
var _imageBorder = require("./imageBorder");
|
|
33
|
+
var _index = require("./index");
|
|
33
34
|
var _linking3 = require("./linking");
|
|
34
35
|
var _linkingToolbarAppearance = require("./linking-toolbar-appearance");
|
|
35
36
|
var _utils = require("./utils");
|
|
36
|
-
var _index = require("./index");
|
|
37
37
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
38
38
|
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; }
|
|
39
39
|
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; }
|
|
@@ -13,9 +13,9 @@ import Card from '@atlaskit/media-card/cardLoader';
|
|
|
13
13
|
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
16
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import { stateKey as mediaStateKey } from '../../pm-plugins/plugin-key';
|
|
20
20
|
import { GeneratedMediaReveal } from '../../ui/GeneratedMediaReveal';
|
|
21
21
|
import { createMediaNodeUpdater } from '../mediaNodeUpdater';
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
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
9
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
export const MediaSingleNodeSelector = 'media-single-node';
|
|
12
11
|
const absoluteDivStyles = css({
|
|
13
12
|
position: 'absolute',
|
|
@@ -29,11 +28,7 @@ export const MediaCardWrapper = ({
|
|
|
29
28
|
onContextMenu
|
|
30
29
|
}) => {
|
|
31
30
|
const calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
|
|
32
|
-
|
|
33
|
-
// Fixes border radius calculation to properly fit image with 8px radius
|
|
34
|
-
// To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
|
|
35
|
-
const borderRadius = fg('platform_editor_media_border_radius_fix') ? `${calculatedBorderWidth + 8}px` : `${calculatedBorderWidth * 2}px`; // OLD BEHAVIOR (to be removed when flag is cleaned up)
|
|
36
|
-
|
|
31
|
+
const borderRadius = `${calculatedBorderWidth + 8}px`;
|
|
37
32
|
return jsx("div", {
|
|
38
33
|
"data-testid": "media-card-wrapper"
|
|
39
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -4,14 +4,15 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsxRuntime classic
|
|
5
5
|
* @jsx jsx
|
|
6
6
|
*/
|
|
7
|
+
|
|
7
8
|
import { useCallback, useEffect, useMemo, useState, useRef, Fragment } from 'react';
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
10
|
import { jsx, css } from '@emotion/react';
|
|
10
11
|
import Button from '@atlaskit/button/button';
|
|
11
12
|
import IconButton from '@atlaskit/button/icon/button';
|
|
12
13
|
import { pixelEntryMessages as messages } from '@atlaskit/editor-common/media';
|
|
13
|
-
import Form from '@atlaskit/form/form';
|
|
14
14
|
import Field from '@atlaskit/form/field';
|
|
15
|
+
import Form from '@atlaskit/form/form';
|
|
15
16
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
16
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives, @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
17
18
|
import { Inline, Box, Text, xcss } from '@atlaskit/primitives';
|
|
@@ -18,8 +18,8 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
18
18
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
19
19
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
20
20
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
23
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
24
24
|
import { getMediaResizeAnalyticsEvent } from '../../pm-plugins/utils/analytics';
|
|
25
25
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
@@ -20,10 +20,10 @@ import ImageBorderItem from '../../ui/ImageBorder';
|
|
|
20
20
|
import { altTextButton } from './alt-text';
|
|
21
21
|
import { changeInlineToMediaCard, changeMediaInlineToMediaSingle, removeInlineCardWithAnalytics, setBorderMark, toggleBorderMark } from './commands';
|
|
22
22
|
import { shouldShowImageBorder } from './imageBorder';
|
|
23
|
+
import { handleShowMediaViewer } from './index';
|
|
23
24
|
import { getOpenLinkToolbarButtonOption, shouldShowMediaLinkToolbar } from './linking';
|
|
24
25
|
import { LinkToolbarAppearance } from './linking-toolbar-appearance';
|
|
25
26
|
import { downloadMedia, getIsDownloadDisabledByDataSecurityPolicy, getMediaSingleAndMediaInlineSwitcherDropdown } from './utils';
|
|
26
|
-
import { handleShowMediaViewer } from './index';
|
|
27
27
|
export const generateMediaInlineFloatingToolbar = (state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi, options = {}) => {
|
|
28
28
|
var _pluginInjectionApi$a, _pluginInjectionApi$f, _pluginInjectionApi$f2;
|
|
29
29
|
const editorAnalyticsAPI = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
@@ -24,9 +24,9 @@ import Card from '@atlaskit/media-card/cardLoader';
|
|
|
24
24
|
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
25
25
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
26
26
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
27
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
27
28
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
28
29
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
29
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
30
30
|
import { stateKey as mediaStateKey } from '../../pm-plugins/plugin-key';
|
|
31
31
|
import { GeneratedMediaReveal } from '../../ui/GeneratedMediaReveal';
|
|
32
32
|
import { createMediaNodeUpdater } from '../mediaNodeUpdater';
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
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
9
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
export var MediaSingleNodeSelector = 'media-single-node';
|
|
12
11
|
var absoluteDivStyles = css({
|
|
13
12
|
position: 'absolute',
|
|
@@ -29,11 +28,7 @@ export var MediaCardWrapper = function MediaCardWrapper(_ref) {
|
|
|
29
28
|
borderWidth = _ref$borderWidth === void 0 ? 0 : _ref$borderWidth,
|
|
30
29
|
onContextMenu = _ref.onContextMenu;
|
|
31
30
|
var calculatedBorderWidth = selected && borderWidth > 0 ? borderWidth + 1 : borderWidth;
|
|
32
|
-
|
|
33
|
-
// Fixes border radius calculation to properly fit image with 8px radius
|
|
34
|
-
// To clean up: keep only flag-on behavior (calculatedBorderWidth + 8)
|
|
35
|
-
var borderRadius = fg('platform_editor_media_border_radius_fix') ? "".concat(calculatedBorderWidth + 8, "px") : "".concat(calculatedBorderWidth * 2, "px"); // OLD BEHAVIOR (to be removed when flag is cleaned up)
|
|
36
|
-
|
|
31
|
+
var borderRadius = "".concat(calculatedBorderWidth + 8, "px");
|
|
37
32
|
return jsx("div", {
|
|
38
33
|
"data-testid": "media-card-wrapper"
|
|
39
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -5,14 +5,15 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
* @jsxRuntime classic
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
|
+
|
|
8
9
|
import { useCallback, useEffect, useMemo, useState, useRef, Fragment } from 'react';
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
11
|
import { jsx, css } from '@emotion/react';
|
|
11
12
|
import Button from '@atlaskit/button/button';
|
|
12
13
|
import IconButton from '@atlaskit/button/icon/button';
|
|
13
14
|
import { pixelEntryMessages as messages } from '@atlaskit/editor-common/media';
|
|
14
|
-
import Form from '@atlaskit/form/form';
|
|
15
15
|
import Field from '@atlaskit/form/field';
|
|
16
|
+
import Form from '@atlaskit/form/form';
|
|
16
17
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
17
18
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives, @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
19
|
import { Inline, Box, Text, xcss } from '@atlaskit/primitives';
|
|
@@ -20,8 +20,8 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
20
20
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
21
21
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
22
22
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
23
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
24
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
25
25
|
import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
|
|
26
26
|
import { getMediaResizeAnalyticsEvent } from '../../pm-plugins/utils/analytics';
|
|
27
27
|
import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
|
|
@@ -24,10 +24,10 @@ import ImageBorderItem from '../../ui/ImageBorder';
|
|
|
24
24
|
import { altTextButton } from './alt-text';
|
|
25
25
|
import { changeInlineToMediaCard, changeMediaInlineToMediaSingle, removeInlineCardWithAnalytics, setBorderMark, toggleBorderMark } from './commands';
|
|
26
26
|
import { shouldShowImageBorder } from './imageBorder';
|
|
27
|
+
import { handleShowMediaViewer } from './index';
|
|
27
28
|
import { getOpenLinkToolbarButtonOption, shouldShowMediaLinkToolbar } from './linking';
|
|
28
29
|
import { LinkToolbarAppearance } from './linking-toolbar-appearance';
|
|
29
30
|
import { downloadMedia, getIsDownloadDisabledByDataSecurityPolicy, getMediaSingleAndMediaInlineSwitcherDropdown } from './utils';
|
|
30
|
-
import { handleShowMediaViewer } from './index';
|
|
31
31
|
export var generateMediaInlineFloatingToolbar = function generateMediaInlineFloatingToolbar(state, intl, mediaPluginState, hoverDecoration, pluginInjectionApi) {
|
|
32
32
|
var _pluginInjectionApi$a, _pluginInjectionApi$f;
|
|
33
33
|
var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import { jsx } from '@emotion/react';
|
|
2
6
|
import type { PixelEntryComponentNextProps, PixelEntryProps } from './types';
|
|
3
7
|
export declare const PixelEntryComponent: ({ width, mediaWidth, mediaHeight, onSubmit, minWidth, maxWidth, onChange, intl: { formatMessage }, showMigration, onMigrate, onCloseAndSave, isViewMode, areAnyNewToolbarFlagsEnabled, }: PixelEntryProps) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.3",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.5.0",
|
|
25
25
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
27
|
-
"@atlaskit/button": "^25.
|
|
27
|
+
"@atlaskit/button": "^25.4.0",
|
|
28
28
|
"@atlaskit/css": "^1.1.0",
|
|
29
29
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
30
30
|
"@atlaskit/editor-plugin-analytics": "^19.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
62
62
|
"@atlaskit/primitives": "^22.5.0",
|
|
63
63
|
"@atlaskit/textfield": "^10.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
65
65
|
"@atlaskit/tokens": "^18.2.0",
|
|
66
66
|
"@atlaskit/tooltip": "^24.3.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"uuid": "^11.1.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@atlaskit/editor-common": "^123.
|
|
77
|
+
"@atlaskit/editor-common": "^123.3.0",
|
|
78
78
|
"@atlaskit/media-core": "^38.2.0",
|
|
79
79
|
"react": "^18.2.0 || ^19.2.0",
|
|
80
80
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
@@ -114,9 +114,6 @@
|
|
|
114
114
|
"confluence_fe_create_inline_comment_exp_coverage_2": {
|
|
115
115
|
"type": "boolean"
|
|
116
116
|
},
|
|
117
|
-
"platform_editor_media_border_radius_fix": {
|
|
118
|
-
"type": "boolean"
|
|
119
|
-
},
|
|
120
117
|
"aifc_page_create_defer_generated_visuals": {
|
|
121
118
|
"type": "boolean",
|
|
122
119
|
"referenceOnly": true
|