@atlaskit/editor-plugin-media 9.4.9 → 9.4.10
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 +8 -0
- package/dist/cjs/pm-plugins/main.js +2 -2
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/esm/pm-plugins/main.js +2 -2
- package/dist/types/ui/ImageBorder/styles.d.ts +9 -9
- package/dist/types/ui/ResizableMediaSingle/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/ImageBorder/styles.d.ts +9 -9
- package/dist/types-ts4.5/ui/ResizableMediaSingle/styled.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 9.4.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5e2874bf0d495`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e2874bf0d495) -
|
|
8
|
+
Cleanup exp platform_editor_nested_media_selection_fix
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 9.4.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -937,7 +937,7 @@ var createPlugin = exports.createPlugin = function createPlugin(_schema, options
|
|
|
937
937
|
doc = state.doc;
|
|
938
938
|
|
|
939
939
|
// Find any media nodes in the current selection
|
|
940
|
-
if (state.selection instanceof _state2.TextSelection || state.selection instanceof _state2.AllSelection ||
|
|
940
|
+
if (state.selection instanceof _state2.TextSelection || state.selection instanceof _state2.AllSelection || state.selection instanceof _cellSelection.CellSelection) {
|
|
941
941
|
doc.nodesBetween(state.selection.from, state.selection.to, function (node, pos) {
|
|
942
942
|
if (node.type === schema.nodes.media) {
|
|
943
943
|
mediaNodes.push(_view2.Decoration.node(pos, pos + node.nodeSize, {}, {
|
|
@@ -948,7 +948,7 @@ var createPlugin = exports.createPlugin = function createPlugin(_schema, options
|
|
|
948
948
|
}
|
|
949
949
|
return true;
|
|
950
950
|
});
|
|
951
|
-
} else if (
|
|
951
|
+
} else if (state.selection instanceof _state2.NodeSelection) {
|
|
952
952
|
var _state$selection = state.selection,
|
|
953
953
|
node = _state$selection.node,
|
|
954
954
|
$from = _state$selection.$from;
|
|
@@ -825,7 +825,7 @@ export const createPlugin = (_schema, options, getIntl, pluginInjectionApi, node
|
|
|
825
825
|
} = state;
|
|
826
826
|
|
|
827
827
|
// Find any media nodes in the current selection
|
|
828
|
-
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection ||
|
|
828
|
+
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection || state.selection instanceof CellSelection) {
|
|
829
829
|
doc.nodesBetween(state.selection.from, state.selection.to, (node, pos) => {
|
|
830
830
|
if (node.type === schema.nodes.media) {
|
|
831
831
|
mediaNodes.push(Decoration.node(pos, pos + node.nodeSize, {}, {
|
|
@@ -836,7 +836,7 @@ export const createPlugin = (_schema, options, getIntl, pluginInjectionApi, node
|
|
|
836
836
|
}
|
|
837
837
|
return true;
|
|
838
838
|
});
|
|
839
|
-
} else if (
|
|
839
|
+
} else if (state.selection instanceof NodeSelection) {
|
|
840
840
|
const {
|
|
841
841
|
node,
|
|
842
842
|
$from
|
|
@@ -929,7 +929,7 @@ export var createPlugin = function createPlugin(_schema, options, getIntl, plugi
|
|
|
929
929
|
doc = state.doc;
|
|
930
930
|
|
|
931
931
|
// Find any media nodes in the current selection
|
|
932
|
-
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection ||
|
|
932
|
+
if (state.selection instanceof TextSelection || state.selection instanceof AllSelection || state.selection instanceof CellSelection) {
|
|
933
933
|
doc.nodesBetween(state.selection.from, state.selection.to, function (node, pos) {
|
|
934
934
|
if (node.type === schema.nodes.media) {
|
|
935
935
|
mediaNodes.push(Decoration.node(pos, pos + node.nodeSize, {}, {
|
|
@@ -940,7 +940,7 @@ export var createPlugin = function createPlugin(_schema, options, getIntl, plugi
|
|
|
940
940
|
}
|
|
941
941
|
return true;
|
|
942
942
|
});
|
|
943
|
-
} else if (
|
|
943
|
+
} else if (state.selection instanceof NodeSelection) {
|
|
944
944
|
var _state$selection = state.selection,
|
|
945
945
|
node = _state$selection.node,
|
|
946
946
|
$from = _state$selection.$from;
|
|
@@ -3,15 +3,15 @@ export declare const menuItemDimensions: {
|
|
|
3
3
|
height: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const itemSpacing = 4;
|
|
6
|
-
export declare const contextualMenuArrow: import("@emotion/
|
|
7
|
-
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/
|
|
8
|
-
export declare const contextualSubMenu: (index: number) => import("@emotion/
|
|
9
|
-
export declare const buttonStyle: (selected: boolean) => import("@emotion/
|
|
10
|
-
export declare const buttonWrapperStyle: import("@emotion/
|
|
11
|
-
export declare const line: (size: number, selected: boolean) => import("@emotion/
|
|
6
|
+
export declare const contextualMenuArrow: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const contextualSubMenu: (index: number) => import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const buttonStyle: (selected: boolean) => import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const buttonWrapperStyle: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const line: (size: number, selected: boolean) => import("@emotion/utils").SerializedStyles;
|
|
12
12
|
export declare const toolbarButtonWrapper: ({ enabled, isOpen, }: {
|
|
13
13
|
enabled: boolean;
|
|
14
14
|
isOpen: boolean;
|
|
15
|
-
}) => import("@emotion/
|
|
16
|
-
export declare const dropdownOptionButton: import("@emotion/
|
|
17
|
-
export declare const dropdownWrapper: import("@emotion/
|
|
15
|
+
}) => import("@emotion/utils").SerializedStyles;
|
|
16
|
+
export declare const dropdownOptionButton: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
export declare const dropdownWrapper: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { MediaSingleDimensionHelperProps } from '@atlaskit/editor-common/ui';
|
|
2
|
-
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) => import("@emotion/
|
|
2
|
+
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) => import("@emotion/utils").SerializedStyles;
|
|
@@ -3,15 +3,15 @@ export declare const menuItemDimensions: {
|
|
|
3
3
|
height: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const itemSpacing = 4;
|
|
6
|
-
export declare const contextualMenuArrow: import("@emotion/
|
|
7
|
-
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/
|
|
8
|
-
export declare const contextualSubMenu: (index: number) => import("@emotion/
|
|
9
|
-
export declare const buttonStyle: (selected: boolean) => import("@emotion/
|
|
10
|
-
export declare const buttonWrapperStyle: import("@emotion/
|
|
11
|
-
export declare const line: (size: number, selected: boolean) => import("@emotion/
|
|
6
|
+
export declare const contextualMenuArrow: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const contextualSubMenu: (index: number) => import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const buttonStyle: (selected: boolean) => import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const buttonWrapperStyle: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const line: (size: number, selected: boolean) => import("@emotion/utils").SerializedStyles;
|
|
12
12
|
export declare const toolbarButtonWrapper: ({ enabled, isOpen, }: {
|
|
13
13
|
enabled: boolean;
|
|
14
14
|
isOpen: boolean;
|
|
15
|
-
}) => import("@emotion/
|
|
16
|
-
export declare const dropdownOptionButton: import("@emotion/
|
|
17
|
-
export declare const dropdownWrapper: import("@emotion/
|
|
15
|
+
}) => import("@emotion/utils").SerializedStyles;
|
|
16
|
+
export declare const dropdownOptionButton: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
export declare const dropdownWrapper: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { MediaSingleDimensionHelperProps } from '@atlaskit/editor-common/ui';
|
|
2
|
-
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) => import("@emotion/
|
|
2
|
+
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) => import("@emotion/utils").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.10",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^18.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^21.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^20.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|