@atlaskit/editor-plugin-media 9.4.9 → 9.4.11

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 9.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.4.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`5e2874bf0d495`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e2874bf0d495) -
14
+ Cleanup exp platform_editor_nested_media_selection_fix
15
+ - Updated dependencies
16
+
3
17
  ## 9.4.9
4
18
 
5
19
  ### 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 || !(0, _expValEquals.expValEquals)('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof _state2.NodeSelection || state.selection instanceof _cellSelection.CellSelection) {
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 ((0, _expValEquals.expValEquals)('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof _state2.NodeSelection) {
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 || !expValEquals('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof NodeSelection || state.selection instanceof CellSelection) {
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 (expValEquals('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof NodeSelection) {
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 || !expValEquals('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof NodeSelection || state.selection instanceof CellSelection) {
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 (expValEquals('platform_editor_nested_media_selection_fix', 'isEnabled', true) && state.selection instanceof NodeSelection) {
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/react").SerializedStyles;
7
- export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
8
- export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
9
- export declare const buttonStyle: (selected: boolean) => import("@emotion/react").SerializedStyles;
10
- export declare const buttonWrapperStyle: import("@emotion/react").SerializedStyles;
11
- export declare const line: (size: number, selected: boolean) => import("@emotion/react").SerializedStyles;
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/react").SerializedStyles;
16
- export declare const dropdownOptionButton: import("@emotion/react").SerializedStyles;
17
- export declare const dropdownWrapper: import("@emotion/react").SerializedStyles;
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/react").SerializedStyles;
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/react").SerializedStyles;
7
- export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
8
- export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
9
- export declare const buttonStyle: (selected: boolean) => import("@emotion/react").SerializedStyles;
10
- export declare const buttonWrapperStyle: import("@emotion/react").SerializedStyles;
11
- export declare const line: (size: number, selected: boolean) => import("@emotion/react").SerializedStyles;
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/react").SerializedStyles;
16
- export declare const dropdownOptionButton: import("@emotion/react").SerializedStyles;
17
- export declare const dropdownWrapper: import("@emotion/react").SerializedStyles;
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/react").SerializedStyles;
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.9",
3
+ "version": "9.4.11",
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": "^19.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^21.0.0",
70
70
  "@atlaskit/tokens": "^11.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@babel/runtime": "^7.0.0",