@atlaskit/editor-plugin-quick-insert 16.1.4 → 16.1.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 16.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0841b102bfe4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0841b102bfe4a) -
|
|
14
|
+
Add a PM-state-backed multi-location left block-controls surface and register the display-only
|
|
15
|
+
heading collapse button behind `platform_editor_block_control_migration` and
|
|
16
|
+
`platform_editor_collapsible_headings`.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 16.1.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -26,7 +26,7 @@ var getBlockControlQuickInsertComponents = exports.getBlockControlQuickInsertCom
|
|
|
26
26
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
27
27
|
surfaceContext = _ref2.surfaceContext;
|
|
28
28
|
var context = surfaceContext === null || surfaceContext === void 0 ? void 0 : surfaceContext.get(_blockControlUiContext.BLOCK_CONTROL_UI_CONTEXT);
|
|
29
|
-
return !context || context.targetNode.pos !== context.rootNode.pos;
|
|
29
|
+
return !(context !== null && context !== void 0 && context.activeNode) || context.targetNode.pos !== context.rootNode.pos || context.targetNode.pos !== context.activeNode.rootPos;
|
|
30
30
|
},
|
|
31
31
|
component: function component(_ref3) {
|
|
32
32
|
var surfaceContext = _ref3.surfaceContext;
|
|
@@ -17,7 +17,7 @@ export const getBlockControlQuickInsertComponents = ({
|
|
|
17
17
|
surfaceContext
|
|
18
18
|
} = {}) => {
|
|
19
19
|
const context = surfaceContext === null || surfaceContext === void 0 ? void 0 : surfaceContext.get(BLOCK_CONTROL_UI_CONTEXT);
|
|
20
|
-
return !context || context.targetNode.pos !== context.rootNode.pos;
|
|
20
|
+
return !(context !== null && context !== void 0 && context.activeNode) || context.targetNode.pos !== context.rootNode.pos || context.targetNode.pos !== context.activeNode.rootPos;
|
|
21
21
|
},
|
|
22
22
|
component: ({
|
|
23
23
|
surfaceContext
|
|
@@ -19,7 +19,7 @@ export var getBlockControlQuickInsertComponents = function getBlockControlQuickI
|
|
|
19
19
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
20
20
|
surfaceContext = _ref2.surfaceContext;
|
|
21
21
|
var context = surfaceContext === null || surfaceContext === void 0 ? void 0 : surfaceContext.get(BLOCK_CONTROL_UI_CONTEXT);
|
|
22
|
-
return !context || context.targetNode.pos !== context.rootNode.pos;
|
|
22
|
+
return !(context !== null && context !== void 0 && context.activeNode) || context.targetNode.pos !== context.rootNode.pos || context.targetNode.pos !== context.activeNode.rootPos;
|
|
23
23
|
},
|
|
24
24
|
component: function component(_ref3) {
|
|
25
25
|
var surfaceContext = _ref3.surfaceContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.6",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/editor-plugin-ui-control-registry": "^10.0.0",
|
|
31
31
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
32
32
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
33
|
-
"@atlaskit/editor-ui-control-model": "^2.
|
|
33
|
+
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
34
34
|
"@atlaskit/heading": "^7.1.0",
|
|
35
35
|
"@atlaskit/icon": "^37.5.0",
|
|
36
36
|
"@atlaskit/modal-dialog": "^16.5.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
39
39
|
"@atlaskit/primitives": "^22.4.0",
|
|
40
40
|
"@atlaskit/textfield": "^10.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^165.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^16.8.0",
|
|
43
43
|
"@atlaskit/tooltip": "^24.2.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@emotion/react": "^11.7.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^120.
|
|
49
|
+
"@atlaskit/editor-common": "^120.6.0",
|
|
50
50
|
"react": "^18.2.0 || ^19.2.0",
|
|
51
51
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
52
52
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|