@atlaskit/editor-plugin-block-controls 4.0.4 → 4.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 +17 -0
- package/dist/cjs/ui/drag-handle.js +1 -0
- package/dist/cjs/ui/quick-insert-button.js +1 -0
- package/dist/cjs/ui/utils/editor-commands.js +1 -2
- package/dist/cjs/ui/visibility-container.js +2 -0
- package/dist/es2019/ui/drag-handle.js +1 -0
- package/dist/es2019/ui/quick-insert-button.js +1 -0
- package/dist/es2019/ui/utils/editor-commands.js +1 -2
- package/dist/es2019/ui/visibility-container.js +1 -0
- package/dist/esm/ui/drag-handle.js +1 -0
- package/dist/esm/ui/quick-insert-button.js +1 -0
- package/dist/esm/ui/utils/editor-commands.js +1 -2
- package/dist/esm/ui/visibility-container.js +1 -0
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 4.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#187144](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187144)
|
|
8
|
+
[`a16147d8fbdfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a16147d8fbdfe) -
|
|
9
|
+
Bump @atlaskit/adf-schema to v49.0.5
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.0.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#185655](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185655)
|
|
17
|
+
[`3d2b715fc1fac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3d2b715fc1fac) -
|
|
18
|
+
[ED-28416] clean up feature gate platform_editor_controls_patch_14
|
|
19
|
+
|
|
3
20
|
## 4.0.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -43,6 +43,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
43
43
|
* @jsxRuntime classic
|
|
44
44
|
* @jsx jsx
|
|
45
45
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
46
47
|
var iconWrapperStyles = (0, _primitives.xcss)({
|
|
47
48
|
display: 'flex',
|
|
48
49
|
justifyContent: 'center',
|
|
@@ -34,6 +34,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
34
34
|
* @jsxRuntime classic
|
|
35
35
|
* @jsx jsx
|
|
36
36
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
37
38
|
var TEXT_PARENT_TYPES = ['paragraph', 'heading', 'blockquote', 'taskItem', 'decisionItem'];
|
|
38
39
|
var stickyButtonStyles = (0, _primitives.xcss)({
|
|
39
40
|
top: '0',
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createNewLine = void 0;
|
|
7
7
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var createNewLine = exports.createNewLine = function createNewLine(start) {
|
|
10
9
|
return function (_ref) {
|
|
11
10
|
var _tr$doc$nodeAt;
|
|
@@ -16,6 +15,6 @@ var createNewLine = exports.createNewLine = function createNewLine(start) {
|
|
|
16
15
|
}
|
|
17
16
|
var position = start + nodeSize;
|
|
18
17
|
tr.insert(position, tr.doc.type.schema.nodes.paragraph.create());
|
|
19
|
-
return tr.setSelection(
|
|
18
|
+
return tr.setSelection(_state.TextSelection.near(tr.doc.resolve(position)));
|
|
20
19
|
};
|
|
21
20
|
};
|
|
@@ -8,6 +8,8 @@ exports.VisibilityContainer = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
10
10
|
var _primitives = require("@atlaskit/primitives");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
|
+
|
|
11
13
|
var baseStyles = (0, _primitives.xcss)({
|
|
12
14
|
transition: 'opacity 0.1s ease-in-out, visibility 0.1s ease-in-out'
|
|
13
15
|
});
|
|
@@ -23,6 +23,7 @@ import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
|
|
|
23
23
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
24
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
25
25
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
26
27
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
27
28
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
28
29
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -16,6 +16,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
16
16
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
17
17
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
18
18
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
19
20
|
import { Box, Pressable, xcss } from '@atlaskit/primitives';
|
|
20
21
|
import Tooltip from '@atlaskit/tooltip';
|
|
21
22
|
import { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky } from '../pm-plugins/utils/drag-handle-positions';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
export const createNewLine = start => ({
|
|
4
3
|
tr
|
|
5
4
|
}) => {
|
|
@@ -10,5 +9,5 @@ export const createNewLine = start => ({
|
|
|
10
9
|
}
|
|
11
10
|
const position = start + nodeSize;
|
|
12
11
|
tr.insert(position, tr.doc.type.schema.nodes.paragraph.create());
|
|
13
|
-
return tr.setSelection(
|
|
12
|
+
return tr.setSelection(TextSelection.near(tr.doc.resolve(position)));
|
|
14
13
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
3
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
5
|
const baseStyles = xcss({
|
|
5
6
|
transition: 'opacity 0.1s ease-in-out, visibility 0.1s ease-in-out'
|
|
@@ -28,6 +28,7 @@ import DragHandlerIcon from '@atlaskit/icon/glyph/drag-handler';
|
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
29
|
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
30
30
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
31
32
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
32
33
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
33
34
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -20,6 +20,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
20
20
|
import { findParentNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
21
21
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
22
22
|
import AddIcon from '@atlaskit/icon/core/add';
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
23
24
|
import { Box, Pressable, xcss } from '@atlaskit/primitives';
|
|
24
25
|
import Tooltip from '@atlaskit/tooltip';
|
|
25
26
|
import { getControlBottomCSSValue, getControlHeightCSSValue, getNodeHeight, getTopPosition, shouldBeSticky } from '../pm-plugins/utils/drag-handle-positions';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
export var createNewLine = function createNewLine(start) {
|
|
4
3
|
return function (_ref) {
|
|
5
4
|
var _tr$doc$nodeAt;
|
|
@@ -10,6 +9,6 @@ export var createNewLine = function createNewLine(start) {
|
|
|
10
9
|
}
|
|
11
10
|
var position = start + nodeSize;
|
|
12
11
|
tr.insert(position, tr.doc.type.schema.nodes.paragraph.create());
|
|
13
|
-
return tr.setSelection(
|
|
12
|
+
return tr.setSelection(TextSelection.near(tr.doc.resolve(position)));
|
|
14
13
|
};
|
|
15
14
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
3
4
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
5
|
var baseStyles = xcss({
|
|
5
6
|
transition: 'opacity 0.1s ease-in-out, visibility 0.1s ease-in-out'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
55
55
|
"@atlaskit/primitives": "^14.10.0",
|
|
56
56
|
"@atlaskit/theme": "^19.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^9.7.0",
|
|
58
58
|
"@atlaskit/tokens": "^5.5.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.3.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
@@ -170,9 +170,6 @@
|
|
|
170
170
|
"platform_editor_controls_patch_13": {
|
|
171
171
|
"type": "boolean"
|
|
172
172
|
},
|
|
173
|
-
"platform_editor_controls_patch_14": {
|
|
174
|
-
"type": "boolean"
|
|
175
|
-
},
|
|
176
173
|
"platform_editor_breakout_resizing_hello_release": {
|
|
177
174
|
"type": "boolean"
|
|
178
175
|
},
|