@atlaskit/editor-plugin-block-controls 17.2.0 → 17.2.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 17.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c5ff0c329170a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c5ff0c329170a) -
14
+ Add a dedicated createSurfaceContext entrypoint and use it in editor runtime packages.
15
+ - Updated dependencies
16
+
3
17
  ## 17.2.0
4
18
 
5
19
  ### Minor Changes
@@ -16,7 +16,7 @@ var _browserApis = require("@atlaskit/browser-apis");
16
16
  var _blockControlUiContext = require("@atlaskit/editor-common/block-controls/block-control-ui-context");
17
17
  var _surfaceKeys = require("@atlaskit/editor-common/block-controls/surface-keys");
18
18
  var _hooks = require("@atlaskit/editor-common/hooks");
19
- var _types = require("@atlaskit/editor-ui-control-model/types");
19
+ var _createSurfaceContext = require("@atlaskit/editor-ui-control-model/create-surface-context");
20
20
  var _decorationsCommon = require("../pm-plugins/decorations-common");
21
21
  var _blockControlsSurfaceContext = require("./block-controls-surface-context");
22
22
  var _blockControlsLeftSurface = require("./block-controls-left-surface");
@@ -54,7 +54,7 @@ var BlockControlsLeftSurfaces = exports.BlockControlsLeftSurfaces = function Blo
54
54
  if (!context) {
55
55
  return [];
56
56
  }
57
- var surfaceContext = (0, _types.createSurfaceContext)(_blockControlUiContext.BLOCK_CONTROL_UI_CONTEXT, context);
57
+ var surfaceContext = (0, _createSurfaceContext.createSurfaceContext)(_blockControlUiContext.BLOCK_CONTROL_UI_CONTEXT, context);
58
58
  return [_objectSpread(_objectSpread({}, target), {}, {
59
59
  blockControlsContext: context,
60
60
  surfaceContext: surfaceContext
@@ -6,7 +6,7 @@ import { getDocument } from '@atlaskit/browser-apis';
6
6
  import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
7
7
  import { BLOCK_CONTROLS_LEFT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
8
8
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
9
- import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/types';
9
+ import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
10
10
  import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
11
11
  import { createBlockControlsSurfaceContext, createBlockControlsSurfaceContextForPosition } from './block-controls-surface-context';
12
12
  import { BlockControlsLeftSurface } from './block-controls-left-surface';
@@ -13,7 +13,7 @@ import { getDocument } from '@atlaskit/browser-apis';
13
13
  import { BLOCK_CONTROL_UI_CONTEXT } from '@atlaskit/editor-common/block-controls/block-control-ui-context';
14
14
  import { BLOCK_CONTROLS_LEFT_SURFACE } from '@atlaskit/editor-common/block-controls/surface-keys';
15
15
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
16
- import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/types';
16
+ import { createSurfaceContext } from '@atlaskit/editor-ui-control-model/create-surface-context';
17
17
  import { getNodeTypeWithLevel } from '../pm-plugins/decorations-common';
18
18
  import { createBlockControlsSurfaceContext, createBlockControlsSurfaceContextForPosition } from './block-controls-surface-context';
19
19
  import { BlockControlsLeftSurface } from './block-controls-left-surface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "17.2.0",
3
+ "version": "17.2.2",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/editor-prosemirror": "^8.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^4.0.0",
45
45
  "@atlaskit/editor-tables": "^3.0.0",
46
- "@atlaskit/editor-ui-control-model": "^2.8.0",
46
+ "@atlaskit/editor-ui-control-model": "^2.9.0",
47
47
  "@atlaskit/icon": "^37.5.0",
48
48
  "@atlaskit/icon-lab": "^7.7.0",
49
49
  "@atlaskit/link": "^5.1.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/primitives": "^22.4.0",
56
56
  "@atlaskit/section-message": "^10.1.0",
57
57
  "@atlaskit/theme": "^28.1.0",
58
- "@atlaskit/tmp-editor-statsig": "^164.1.0",
58
+ "@atlaskit/tmp-editor-statsig": "^165.0.0",
59
59
  "@atlaskit/tokens": "^16.8.0",
60
60
  "@atlaskit/tooltip": "^24.2.0",
61
61
  "@babel/runtime": "^7.0.0",