@atlaskit/editor-plugin-media 3.0.5 → 3.0.6
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 +9 -0
- package/dist/cjs/nodeviews/mediaSingle.js +5 -4
- package/dist/es2019/nodeviews/mediaSingle.js +4 -3
- package/dist/esm/nodeviews/mediaSingle.js +5 -4
- package/dist/types/pm-plugins/pixel-resizing/index.d.ts +1 -1
- package/dist/types/pm-plugins/pixel-resizing/ui/index.d.ts +2 -2
- package/dist/types/ui/MediaPicker/BrowserWrapper.d.ts +2 -2
- package/dist/types/ui/MediaPicker/ClipboardWrapper.d.ts +2 -2
- package/dist/types/ui/MediaPicker/DropzoneWrapper.d.ts +1 -1
- package/dist/types/ui/MediaPicker/PickerFacadeProvider.d.ts +2 -2
- package/dist/types/ui/toolbar/pixel-resizing.d.ts +4 -4
- package/dist/types/ui/toolbar/utils.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/pixel-resizing/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/pixel-resizing/ui/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/MediaPicker/BrowserWrapper.d.ts +2 -2
- package/dist/types-ts4.5/ui/MediaPicker/ClipboardWrapper.d.ts +2 -2
- package/dist/types-ts4.5/ui/MediaPicker/DropzoneWrapper.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaPicker/PickerFacadeProvider.d.ts +2 -2
- package/dist/types-ts4.5/ui/toolbar/pixel-resizing.d.ts +4 -4
- package/dist/types-ts4.5/ui/toolbar/utils.d.ts +1 -1
- package/package.json +19 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#157322](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157322)
|
|
8
|
+
[`0e61040734cef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e61040734cef) -
|
|
9
|
+
[ED-27842] Consolidate extraneous no_cursor flags into one flag for full rollout
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.0.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -612,12 +612,13 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
612
612
|
editorDisabled = _useSharedState.editorDisabled,
|
|
613
613
|
viewMode = _useSharedState.viewMode;
|
|
614
614
|
var hasHadInteraction = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'interaction.hasHadInteraction');
|
|
615
|
+
var interactionState = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(pluginInjectionApi, 'interaction.interactionState');
|
|
615
616
|
var mediaProvider = (0, _react.useMemo)(function () {
|
|
616
617
|
return mediaProviderPromise ? Promise.resolve(mediaProviderPromise) : undefined;
|
|
617
618
|
}, [mediaProviderPromise]);
|
|
618
619
|
var isSelectedAndInteracted = (0, _react.useCallback)(function () {
|
|
619
|
-
return Boolean(selected() && hasHadInteraction !== false);
|
|
620
|
-
}, [hasHadInteraction, selected]);
|
|
620
|
+
return Boolean(selected() && ((0, _platformFeatureFlags.fg)('platform_editor_interaction_api_refactor') ? interactionState !== 'hasNotHadInteraction' : hasHadInteraction !== false));
|
|
621
|
+
}, [hasHadInteraction, interactionState, selected]);
|
|
621
622
|
if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2__media_single') || (0, _platformFeatureFlags.fg)('platform_editor_react18_phase2__media_single_jira')) {
|
|
622
623
|
return (0, _react2.jsx)(_mediaSingleNext.MediaSingleNodeNext, {
|
|
623
624
|
width: width || 0,
|
|
@@ -629,7 +630,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
629
630
|
mediaOptions: mediaOptions,
|
|
630
631
|
view: view,
|
|
631
632
|
fullWidthMode: fullWidthMode,
|
|
632
|
-
selected: (0, _platformFeatureFlags.fg)('
|
|
633
|
+
selected: (0, _platformFeatureFlags.fg)('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
633
634
|
eventDispatcher: eventDispatcher,
|
|
634
635
|
addPendingTask: addPendingTask,
|
|
635
636
|
isDrafting: isDrafting,
|
|
@@ -652,7 +653,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
652
653
|
mediaOptions: mediaOptions,
|
|
653
654
|
view: view,
|
|
654
655
|
fullWidthMode: fullWidthMode,
|
|
655
|
-
selected: (0, _platformFeatureFlags.fg)('
|
|
656
|
+
selected: (0, _platformFeatureFlags.fg)('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
656
657
|
eventDispatcher: eventDispatcher,
|
|
657
658
|
addPendingTask: addPendingTask,
|
|
658
659
|
isDrafting: isDrafting,
|
|
@@ -526,8 +526,9 @@ const MediaSingleNodeWrapper = ({
|
|
|
526
526
|
viewMode
|
|
527
527
|
} = useSharedState(pluginInjectionApi);
|
|
528
528
|
const hasHadInteraction = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.hasHadInteraction');
|
|
529
|
+
const interactionState = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.interactionState');
|
|
529
530
|
const mediaProvider = useMemo(() => mediaProviderPromise ? Promise.resolve(mediaProviderPromise) : undefined, [mediaProviderPromise]);
|
|
530
|
-
const isSelectedAndInteracted = useCallback(() => Boolean(selected() && hasHadInteraction !== false), [hasHadInteraction, selected]);
|
|
531
|
+
const isSelectedAndInteracted = useCallback(() => Boolean(selected() && (fg('platform_editor_interaction_api_refactor') ? interactionState !== 'hasNotHadInteraction' : hasHadInteraction !== false)), [hasHadInteraction, interactionState, selected]);
|
|
531
532
|
if (fg('platform_editor_react18_phase2__media_single') || fg('platform_editor_react18_phase2__media_single_jira')) {
|
|
532
533
|
return jsx(MediaSingleNodeNext, {
|
|
533
534
|
width: width || 0,
|
|
@@ -539,7 +540,7 @@ const MediaSingleNodeWrapper = ({
|
|
|
539
540
|
mediaOptions: mediaOptions,
|
|
540
541
|
view: view,
|
|
541
542
|
fullWidthMode: fullWidthMode,
|
|
542
|
-
selected: fg('
|
|
543
|
+
selected: fg('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
543
544
|
eventDispatcher: eventDispatcher,
|
|
544
545
|
addPendingTask: addPendingTask,
|
|
545
546
|
isDrafting: isDrafting,
|
|
@@ -562,7 +563,7 @@ const MediaSingleNodeWrapper = ({
|
|
|
562
563
|
mediaOptions: mediaOptions,
|
|
563
564
|
view: view,
|
|
564
565
|
fullWidthMode: fullWidthMode,
|
|
565
|
-
selected: fg('
|
|
566
|
+
selected: fg('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
566
567
|
eventDispatcher: eventDispatcher,
|
|
567
568
|
addPendingTask: addPendingTask,
|
|
568
569
|
isDrafting: isDrafting,
|
|
@@ -607,12 +607,13 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
607
607
|
editorDisabled = _useSharedState.editorDisabled,
|
|
608
608
|
viewMode = _useSharedState.viewMode;
|
|
609
609
|
var hasHadInteraction = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.hasHadInteraction');
|
|
610
|
+
var interactionState = useSharedPluginStateSelector(pluginInjectionApi, 'interaction.interactionState');
|
|
610
611
|
var mediaProvider = useMemo(function () {
|
|
611
612
|
return mediaProviderPromise ? Promise.resolve(mediaProviderPromise) : undefined;
|
|
612
613
|
}, [mediaProviderPromise]);
|
|
613
614
|
var isSelectedAndInteracted = useCallback(function () {
|
|
614
|
-
return Boolean(selected() && hasHadInteraction !== false);
|
|
615
|
-
}, [hasHadInteraction, selected]);
|
|
615
|
+
return Boolean(selected() && (fg('platform_editor_interaction_api_refactor') ? interactionState !== 'hasNotHadInteraction' : hasHadInteraction !== false));
|
|
616
|
+
}, [hasHadInteraction, interactionState, selected]);
|
|
616
617
|
if (fg('platform_editor_react18_phase2__media_single') || fg('platform_editor_react18_phase2__media_single_jira')) {
|
|
617
618
|
return jsx(MediaSingleNodeNext, {
|
|
618
619
|
width: width || 0,
|
|
@@ -624,7 +625,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
624
625
|
mediaOptions: mediaOptions,
|
|
625
626
|
view: view,
|
|
626
627
|
fullWidthMode: fullWidthMode,
|
|
627
|
-
selected: fg('
|
|
628
|
+
selected: fg('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
628
629
|
eventDispatcher: eventDispatcher,
|
|
629
630
|
addPendingTask: addPendingTask,
|
|
630
631
|
isDrafting: isDrafting,
|
|
@@ -647,7 +648,7 @@ var MediaSingleNodeWrapper = function MediaSingleNodeWrapper(_ref6) {
|
|
|
647
648
|
mediaOptions: mediaOptions,
|
|
648
649
|
view: view,
|
|
649
650
|
fullWidthMode: fullWidthMode,
|
|
650
|
-
selected: fg('
|
|
651
|
+
selected: fg('platform_editor_no_cursor_on_live_doc_init') ? isSelectedAndInteracted : selected,
|
|
651
652
|
eventDispatcher: eventDispatcher,
|
|
652
653
|
addPendingTask: addPendingTask,
|
|
653
654
|
isDrafting: isDrafting,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
3
|
declare const createCommand: <A = {
|
|
4
4
|
type: "openPixelEditor";
|
|
5
5
|
} | {
|
|
@@ -4,8 +4,8 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { MediaNextEditorPluginType } from '../../../mediaPluginType';
|
|
8
|
-
import { MediaPluginState } from '../../../types';
|
|
7
|
+
import type { MediaNextEditorPluginType } from '../../../mediaPluginType';
|
|
8
|
+
import type { MediaPluginState } from '../../../types';
|
|
9
9
|
export type Props = {
|
|
10
10
|
editorView: EditorView;
|
|
11
11
|
selectedMediaSingleNode: ContentNodeWithPos;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
isOpen?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
featureFlags?: MediaFeatureFlags;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
isActive: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
4
|
import type { BrowserConfig, ClipboardConfig, DropzoneConfig } from '@atlaskit/media-picker/types';
|
|
5
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
6
6
|
import PickerFacade from '../../pm-plugins/picker-facade';
|
|
7
7
|
interface ChildrenProps {
|
|
8
8
|
config: ClipboardConfig | BrowserConfig | DropzoneConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
2
|
-
import { FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions, Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
|
+
import { type FloatingToolbarConfig, type FloatingToolbarOverflowDropdownOptions, type Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { Props } from '../../pm-plugins/pixel-resizing/ui';
|
|
6
|
-
import { MediaOptions, MediaToolbarBaseConfig } from '../../types';
|
|
5
|
+
import { type Props } from '../../pm-plugins/pixel-resizing/ui';
|
|
6
|
+
import type { MediaOptions, MediaToolbarBaseConfig } from '../../types';
|
|
7
7
|
export declare const getPixelResizingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, { pluginInjectionApi, intl, pluginState, hoverDecoration, isEditorFullWidthEnabled, triggerButtonSelector, }: Omit<Props, 'editorView' | 'selectedMediaSingleNode'>) => FloatingToolbarConfig;
|
|
8
8
|
export declare const getResizeDropdownOption: (mediaOptions: MediaOptions, state: EditorState, formatMessage: IntlShape['formatMessage'], selectedNodeType?: NodeType) => FloatingToolbarOverflowDropdownOptions<Command>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExternalMediaAttributes, MediaADFAttrs, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
3
|
-
import { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
3
|
declare const createCommand: <A = {
|
|
4
4
|
type: "openPixelEditor";
|
|
5
5
|
} | {
|
|
@@ -4,8 +4,8 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { MediaNextEditorPluginType } from '../../../mediaPluginType';
|
|
8
|
-
import { MediaPluginState } from '../../../types';
|
|
7
|
+
import type { MediaNextEditorPluginType } from '../../../mediaPluginType';
|
|
8
|
+
import type { MediaPluginState } from '../../../types';
|
|
9
9
|
export type Props = {
|
|
10
10
|
editorView: EditorView;
|
|
11
11
|
selectedMediaSingleNode: ContentNodeWithPos;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
isOpen?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
featureFlags?: MediaFeatureFlags;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
4
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
5
|
type Props = {
|
|
6
6
|
api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined;
|
|
7
7
|
isActive: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
4
|
import type { BrowserConfig, ClipboardConfig, DropzoneConfig } from '@atlaskit/media-picker/types';
|
|
5
|
-
import { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
5
|
+
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
6
6
|
import PickerFacade from '../../pm-plugins/picker-facade';
|
|
7
7
|
interface ChildrenProps {
|
|
8
8
|
config: ClipboardConfig | BrowserConfig | DropzoneConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl-next';
|
|
2
|
-
import { FloatingToolbarConfig, FloatingToolbarOverflowDropdownOptions, Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import { type IntlShape } from 'react-intl-next';
|
|
2
|
+
import { type FloatingToolbarConfig, type FloatingToolbarOverflowDropdownOptions, type Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { Props } from '../../pm-plugins/pixel-resizing/ui';
|
|
6
|
-
import { MediaOptions, MediaToolbarBaseConfig } from '../../types';
|
|
5
|
+
import { type Props } from '../../pm-plugins/pixel-resizing/ui';
|
|
6
|
+
import type { MediaOptions, MediaToolbarBaseConfig } from '../../types';
|
|
7
7
|
export declare const getPixelResizingToolbar: (toolbarBaseConfig: MediaToolbarBaseConfig, { pluginInjectionApi, intl, pluginState, hoverDecoration, isEditorFullWidthEnabled, triggerButtonSelector, }: Omit<Props, 'editorView' | 'selectedMediaSingleNode'>) => FloatingToolbarConfig;
|
|
8
8
|
export declare const getResizeDropdownOption: (mediaOptions: MediaOptions, state: EditorState, formatMessage: IntlShape['formatMessage'], selectedNodeType?: NodeType) => FloatingToolbarOverflowDropdownOptions<Command>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExternalMediaAttributes, MediaADFAttrs, RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
3
|
-
import { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
|
-
"@atlaskit/button": "^23.
|
|
41
|
-
"@atlaskit/editor-common": "^105.
|
|
40
|
+
"@atlaskit/button": "^23.2.0",
|
|
41
|
+
"@atlaskit/editor-common": "^105.8.0",
|
|
42
42
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
44
44
|
"@atlaskit/editor-plugin-annotation": "^2.8.0",
|
|
@@ -50,28 +50,28 @@
|
|
|
50
50
|
"@atlaskit/editor-plugin-focus": "^1.5.0",
|
|
51
51
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
53
|
-
"@atlaskit/editor-plugin-interaction": "^1.
|
|
53
|
+
"@atlaskit/editor-plugin-interaction": "^1.1.0",
|
|
54
54
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
55
55
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
56
56
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
57
57
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
58
58
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
59
59
|
"@atlaskit/form": "^12.0.0",
|
|
60
|
-
"@atlaskit/icon": "^26.
|
|
61
|
-
"@atlaskit/media-card": "^79.
|
|
62
|
-
"@atlaskit/media-client": "^33.
|
|
63
|
-
"@atlaskit/media-client-react": "^4.
|
|
64
|
-
"@atlaskit/media-common": "^12.
|
|
65
|
-
"@atlaskit/media-filmstrip": "^50.
|
|
60
|
+
"@atlaskit/icon": "^26.1.0",
|
|
61
|
+
"@atlaskit/media-card": "^79.3.0",
|
|
62
|
+
"@atlaskit/media-client": "^33.3.0",
|
|
63
|
+
"@atlaskit/media-client-react": "^4.1.0",
|
|
64
|
+
"@atlaskit/media-common": "^12.1.0",
|
|
65
|
+
"@atlaskit/media-filmstrip": "^50.1.0",
|
|
66
66
|
"@atlaskit/media-picker": "^69.0.0",
|
|
67
|
-
"@atlaskit/media-ui": "^28.
|
|
68
|
-
"@atlaskit/media-viewer": "^52.
|
|
67
|
+
"@atlaskit/media-ui": "^28.2.0",
|
|
68
|
+
"@atlaskit/media-viewer": "^52.1.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
|
-
"@atlaskit/primitives": "^14.
|
|
70
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^18.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
74
|
-
"@atlaskit/tokens": "^4.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^4.23.0",
|
|
74
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.0.0",
|
|
76
76
|
"@babel/runtime": "^7.0.0",
|
|
77
77
|
"@emotion/react": "^11.7.1",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"platform_editor_fix_image_size_diff_during_ssr": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
-
"
|
|
187
|
+
"platform_editor_no_cursor_on_live_doc_init": {
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
190
190
|
"platform_editor_controls_patch_7": {
|
|
@@ -204,6 +204,9 @@
|
|
|
204
204
|
},
|
|
205
205
|
"platform_editor_controls_patch_9": {
|
|
206
206
|
"type": "boolean"
|
|
207
|
+
},
|
|
208
|
+
"platform_editor_interaction_api_refactor": {
|
|
209
|
+
"type": "boolean"
|
|
207
210
|
}
|
|
208
211
|
},
|
|
209
212
|
"stricter": {
|