@atlaskit/editor-plugin-block-controls 11.3.1 → 11.4.0

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/block-decoration-utils/anchor-name/package.json +17 -0
  3. package/block-decoration-utils/consts/package.json +17 -0
  4. package/block-decoration-utils/dom-attr-name/package.json +17 -0
  5. package/block-decoration-utils/drag-handle-positions/package.json +17 -0
  6. package/block-decoration-utils/visibility-container/package.json +17 -0
  7. package/block-decoration-utils/widget-positions/package.json +17 -0
  8. package/blockControlsPlugin/package.json +17 -0
  9. package/blockControlsPluginType/package.json +17 -0
  10. package/dist/cjs/entry-points/block-decoration-utils-anchor-name.js +12 -0
  11. package/dist/cjs/entry-points/block-decoration-utils-consts.js +24 -0
  12. package/dist/cjs/entry-points/block-decoration-utils-dom-attr-name.js +12 -0
  13. package/dist/cjs/entry-points/block-decoration-utils-drag-handle-positions.js +36 -0
  14. package/dist/cjs/entry-points/block-decoration-utils-visibility-container.js +12 -0
  15. package/dist/cjs/entry-points/block-decoration-utils-widget-positions.js +12 -0
  16. package/dist/cjs/entry-points/blockControlsPlugin.js +12 -0
  17. package/dist/cjs/entry-points/blockControlsPluginType.js +1 -0
  18. package/dist/es2019/entry-points/block-decoration-utils-anchor-name.js +2 -0
  19. package/dist/es2019/entry-points/block-decoration-utils-consts.js +2 -0
  20. package/dist/es2019/entry-points/block-decoration-utils-dom-attr-name.js +2 -0
  21. package/dist/es2019/entry-points/block-decoration-utils-drag-handle-positions.js +2 -0
  22. package/dist/es2019/entry-points/block-decoration-utils-visibility-container.js +2 -0
  23. package/dist/es2019/entry-points/block-decoration-utils-widget-positions.js +2 -0
  24. package/dist/es2019/entry-points/blockControlsPlugin.js +2 -0
  25. package/dist/es2019/entry-points/blockControlsPluginType.js +0 -0
  26. package/dist/esm/entry-points/block-decoration-utils-anchor-name.js +2 -0
  27. package/dist/esm/entry-points/block-decoration-utils-consts.js +2 -0
  28. package/dist/esm/entry-points/block-decoration-utils-dom-attr-name.js +2 -0
  29. package/dist/esm/entry-points/block-decoration-utils-drag-handle-positions.js +2 -0
  30. package/dist/esm/entry-points/block-decoration-utils-visibility-container.js +2 -0
  31. package/dist/esm/entry-points/block-decoration-utils-widget-positions.js +2 -0
  32. package/dist/esm/entry-points/blockControlsPlugin.js +2 -0
  33. package/dist/esm/entry-points/blockControlsPluginType.js +0 -0
  34. package/dist/types/entry-points/block-decoration-utils-anchor-name.d.ts +1 -0
  35. package/dist/types/entry-points/block-decoration-utils-consts.d.ts +1 -0
  36. package/dist/types/entry-points/block-decoration-utils-dom-attr-name.d.ts +1 -0
  37. package/dist/types/entry-points/block-decoration-utils-drag-handle-positions.d.ts +1 -0
  38. package/dist/types/entry-points/block-decoration-utils-visibility-container.d.ts +1 -0
  39. package/dist/types/entry-points/block-decoration-utils-widget-positions.d.ts +1 -0
  40. package/dist/types/entry-points/blockControlsPlugin.d.ts +1 -0
  41. package/dist/types/entry-points/blockControlsPluginType.d.ts +1 -0
  42. package/dist/types-ts4.5/entry-points/block-decoration-utils-anchor-name.d.ts +1 -0
  43. package/dist/types-ts4.5/entry-points/block-decoration-utils-consts.d.ts +1 -0
  44. package/dist/types-ts4.5/entry-points/block-decoration-utils-dom-attr-name.d.ts +1 -0
  45. package/dist/types-ts4.5/entry-points/block-decoration-utils-drag-handle-positions.d.ts +1 -0
  46. package/dist/types-ts4.5/entry-points/block-decoration-utils-visibility-container.d.ts +1 -0
  47. package/dist/types-ts4.5/entry-points/block-decoration-utils-widget-positions.d.ts +1 -0
  48. package/dist/types-ts4.5/entry-points/blockControlsPlugin.d.ts +1 -0
  49. package/dist/types-ts4.5/entry-points/blockControlsPluginType.d.ts +1 -0
  50. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-plugin-block-controls
2
2
 
3
+ ## 11.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f1eebdf4ed96b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1eebdf4ed96b) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 11.3.1
4
15
 
5
16
  ### Patch Changes
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/anchor-name",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-anchor-name.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-anchor-name.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-anchor-name.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-anchor-name.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-anchor-name.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/consts",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-consts.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-consts.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-consts.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-consts.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-consts.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/dom-attr-name",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-dom-attr-name.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-dom-attr-name.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-dom-attr-name.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-dom-attr-name.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-dom-attr-name.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/drag-handle-positions",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-drag-handle-positions.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-drag-handle-positions.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-drag-handle-positions.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-drag-handle-positions.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-drag-handle-positions.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/visibility-container",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-visibility-container.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-visibility-container.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-visibility-container.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-visibility-container.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-visibility-container.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/block-decoration-utils/widget-positions",
3
+ "main": "../../dist/cjs/entry-points/block-decoration-utils-widget-positions.js",
4
+ "module": "../../dist/esm/entry-points/block-decoration-utils-widget-positions.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/block-decoration-utils-widget-positions.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/block-decoration-utils-widget-positions.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../../dist/types-ts4.5/entry-points/block-decoration-utils-widget-positions.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/blockControlsPlugin",
3
+ "main": "../dist/cjs/entry-points/blockControlsPlugin.js",
4
+ "module": "../dist/esm/entry-points/blockControlsPlugin.js",
5
+ "module:es2019": "../dist/es2019/entry-points/blockControlsPlugin.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/blockControlsPlugin.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/blockControlsPlugin.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-block-controls/blockControlsPluginType",
3
+ "main": "../dist/cjs/entry-points/blockControlsPluginType.js",
4
+ "module": "../dist/esm/entry-points/blockControlsPluginType.js",
5
+ "module:es2019": "../dist/es2019/entry-points/blockControlsPluginType.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/blockControlsPluginType.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/blockControlsPluginType.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "refreshAnchorName", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _anchorName.refreshAnchorName;
10
+ }
11
+ });
12
+ var _anchorName = require("../ui/utils/anchor-name");
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _consts.STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "rootElementGap", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _consts.rootElementGap;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "topPositionAdjustment", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _consts.topPositionAdjustment;
22
+ }
23
+ });
24
+ var _consts = require("../ui/consts");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "getAnchorAttrName", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _domAttrName.getAnchorAttrName;
10
+ }
11
+ });
12
+ var _domAttrName = require("../ui/utils/dom-attr-name");
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "getControlBottomCSSValue", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _dragHandlePositions.getControlBottomCSSValue;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "getControlHeightCSSValue", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _dragHandlePositions.getControlHeightCSSValue;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "getNodeHeight", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _dragHandlePositions.getNodeHeight;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "getTopPosition", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _dragHandlePositions.getTopPosition;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "shouldBeSticky", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _dragHandlePositions.shouldBeSticky;
34
+ }
35
+ });
36
+ var _dragHandlePositions = require("../pm-plugins/utils/drag-handle-positions");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "VisibilityContainer", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _visibilityContainer.VisibilityContainer;
10
+ }
11
+ });
12
+ var _visibilityContainer = require("../ui/visibility-container");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "getRightPositionForRootElement", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _widgetPositions.getRightPositionForRootElement;
10
+ }
11
+ });
12
+ var _widgetPositions = require("../pm-plugins/utils/widget-positions");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "blockControlsPlugin", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _blockControlsPlugin.blockControlsPlugin;
10
+ }
11
+ });
12
+ var _blockControlsPlugin = require("../blockControlsPlugin");
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { refreshAnchorName } from '../ui/utils/anchor-name';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { rootElementGap, STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER, topPositionAdjustment } from '../ui/consts';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getAnchorAttrName } from '../ui/utils/dom-attr-name';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky } from '../pm-plugins/utils/drag-handle-positions';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { VisibilityContainer } from '../ui/visibility-container';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getRightPositionForRootElement } from '../pm-plugins/utils/widget-positions';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { blockControlsPlugin } from '../blockControlsPlugin';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { refreshAnchorName } from '../ui/utils/anchor-name';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { rootElementGap, STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER, topPositionAdjustment } from '../ui/consts';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getAnchorAttrName } from '../ui/utils/dom-attr-name';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky } from '../pm-plugins/utils/drag-handle-positions';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { VisibilityContainer } from '../ui/visibility-container';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { getRightPositionForRootElement } from '../pm-plugins/utils/widget-positions';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { blockControlsPlugin } from '../blockControlsPlugin';
@@ -0,0 +1 @@
1
+ export { refreshAnchorName } from '../ui/utils/anchor-name';
@@ -0,0 +1 @@
1
+ export { rootElementGap, STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER, topPositionAdjustment, } from '../ui/consts';
@@ -0,0 +1 @@
1
+ export { getAnchorAttrName } from '../ui/utils/dom-attr-name';
@@ -0,0 +1 @@
1
+ export { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky, } from '../pm-plugins/utils/drag-handle-positions';
@@ -0,0 +1 @@
1
+ export { VisibilityContainer } from '../ui/visibility-container';
@@ -0,0 +1 @@
1
+ export { getRightPositionForRootElement } from '../pm-plugins/utils/widget-positions';
@@ -0,0 +1 @@
1
+ export { blockControlsPlugin } from '../blockControlsPlugin';
@@ -0,0 +1 @@
1
+ export type { BlockControlsPlugin, BlockControlsPluginConfig, BlockControlsSharedState, HandleOptions, MoveNodeMethod, BlockControlsPluginDependencies, NodeDecorationFactory, NodeDecorationFactoryParams, PluginState, RightEdgeButtonProps, MoveNode, } from '../blockControlsPluginType';
@@ -0,0 +1 @@
1
+ export { refreshAnchorName } from '../ui/utils/anchor-name';
@@ -0,0 +1 @@
1
+ export { rootElementGap, STICKY_CONTROLS_TOP_MARGIN_FOR_STICKY_HEADER, topPositionAdjustment, } from '../ui/consts';
@@ -0,0 +1 @@
1
+ export { getAnchorAttrName } from '../ui/utils/dom-attr-name';
@@ -0,0 +1 @@
1
+ export { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky, } from '../pm-plugins/utils/drag-handle-positions';
@@ -0,0 +1 @@
1
+ export { VisibilityContainer } from '../ui/visibility-container';
@@ -0,0 +1 @@
1
+ export { getRightPositionForRootElement } from '../pm-plugins/utils/widget-positions';
@@ -0,0 +1 @@
1
+ export { blockControlsPlugin } from '../blockControlsPlugin';
@@ -0,0 +1 @@
1
+ export type { BlockControlsPlugin, BlockControlsPluginConfig, BlockControlsSharedState, HandleOptions, MoveNodeMethod, BlockControlsPluginDependencies, NodeDecorationFactory, NodeDecorationFactoryParams, PluginState, RightEdgeButtonProps, MoveNode, } from '../blockControlsPluginType';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "11.3.1",
3
+ "version": "11.4.0",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,8 +45,8 @@
45
45
  "@atlaskit/editor-plugin-user-intent": "^8.2.0",
46
46
  "@atlaskit/editor-plugin-width": "^11.1.0",
47
47
  "@atlaskit/editor-prosemirror": "^7.3.0",
48
- "@atlaskit/editor-shared-styles": "^3.10.0",
49
- "@atlaskit/editor-tables": "^2.9.0",
48
+ "@atlaskit/editor-shared-styles": "^3.11.0",
49
+ "@atlaskit/editor-tables": "^2.10.0",
50
50
  "@atlaskit/icon": "^34.5.0",
51
51
  "@atlaskit/icon-lab": "^6.9.0",
52
52
  "@atlaskit/link": "^3.4.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
57
57
  "@atlaskit/primitives": "^19.0.0",
58
58
  "@atlaskit/theme": "^23.2.0",
59
- "@atlaskit/tmp-editor-statsig": "^80.1.0",
59
+ "@atlaskit/tmp-editor-statsig": "^80.3.0",
60
60
  "@atlaskit/tokens": "^13.0.0",
61
61
  "@atlaskit/tooltip": "^22.2.0",
62
62
  "@babel/runtime": "^7.0.0",