@atlaskit/editor-plugin-media 21.0.0 → 21.0.2
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 +12 -0
- package/dist/cjs/nodeviews/mediaNodeView/media.js +1 -1
- 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/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/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 -4
package/CHANGELOG.md
CHANGED
|
@@ -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");
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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.2",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/editor-plugin-decorations": "^19.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-editor-disabled": "^19.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
|
|
36
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^21.
|
|
36
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^21.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-focus": "^18.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-grid": "^19.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-guideline": "^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.2.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",
|