@atlaskit/editor-plugin-block-controls 8.10.3 → 8.11.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 8.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b5390019c2609`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b5390019c2609) -
|
|
8
|
+
Optimizations for node visibility for remix button checks
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 8.10.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -111,7 +111,6 @@ export type HandleOptions = {
|
|
|
111
111
|
} | undefined;
|
|
112
112
|
/**
|
|
113
113
|
* Props passed to custom right-edge button components (e.g. config.rightEdgeButton).
|
|
114
|
-
* Used by malleable-ui for BlockRemixButton when rendered via node decoration.
|
|
115
114
|
*/
|
|
116
115
|
export type RightEdgeButtonProps = {
|
|
117
116
|
api: PublicPluginAPI<[BlockControlsPlugin]>;
|
|
@@ -132,13 +131,13 @@ export type NodeDecorationFactoryParams = {
|
|
|
132
131
|
*/
|
|
133
132
|
export type NodeDecorationFactory = {
|
|
134
133
|
create: (params: NodeDecorationFactoryParams) => Decoration;
|
|
135
|
-
/** Show this decoration in view mode when hovering over a block */
|
|
136
|
-
showInViewMode?: boolean;
|
|
137
134
|
/**
|
|
138
135
|
* Optional filter: when false, the decoration is not created.
|
|
139
136
|
* Use for node-type-specific visibility (e.g. Remix button only on remixable blocks).
|
|
140
137
|
*/
|
|
141
138
|
shouldCreate?: (params: NodeDecorationFactoryParams) => boolean;
|
|
139
|
+
/** Show this decoration in view mode when hovering over a block */
|
|
140
|
+
showInViewMode?: boolean;
|
|
142
141
|
type: string;
|
|
143
142
|
};
|
|
144
143
|
export type MoveNode = (start: number, to: number, inputMethod?: MoveNodeMethod, formatMessage?: IntlShape['formatMessage']) => EditorCommand;
|
|
@@ -111,7 +111,6 @@ export type HandleOptions = {
|
|
|
111
111
|
} | undefined;
|
|
112
112
|
/**
|
|
113
113
|
* Props passed to custom right-edge button components (e.g. config.rightEdgeButton).
|
|
114
|
-
* Used by malleable-ui for BlockRemixButton when rendered via node decoration.
|
|
115
114
|
*/
|
|
116
115
|
export type RightEdgeButtonProps = {
|
|
117
116
|
api: PublicPluginAPI<[
|
|
@@ -134,13 +133,13 @@ export type NodeDecorationFactoryParams = {
|
|
|
134
133
|
*/
|
|
135
134
|
export type NodeDecorationFactory = {
|
|
136
135
|
create: (params: NodeDecorationFactoryParams) => Decoration;
|
|
137
|
-
/** Show this decoration in view mode when hovering over a block */
|
|
138
|
-
showInViewMode?: boolean;
|
|
139
136
|
/**
|
|
140
137
|
* Optional filter: when false, the decoration is not created.
|
|
141
138
|
* Use for node-type-specific visibility (e.g. Remix button only on remixable blocks).
|
|
142
139
|
*/
|
|
143
140
|
shouldCreate?: (params: NodeDecorationFactoryParams) => boolean;
|
|
141
|
+
/** Show this decoration in view mode when hovering over a block */
|
|
142
|
+
showInViewMode?: boolean;
|
|
144
143
|
type: string;
|
|
145
144
|
};
|
|
146
145
|
export type MoveNode = (start: number, to: number, inputMethod?: MoveNodeMethod, formatMessage?: IntlShape['formatMessage']) => EditorCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.0",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
57
57
|
"@atlaskit/primitives": "^18.0.0",
|
|
58
58
|
"@atlaskit/theme": "^22.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^35.4.0",
|
|
60
60
|
"@atlaskit/tokens": "^11.0.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.14.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"uuid": "^3.1.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@atlaskit/editor-common": "^111.
|
|
70
|
+
"@atlaskit/editor-common": "^111.31.0",
|
|
71
71
|
"react": "^18.2.0",
|
|
72
72
|
"react-dom": "^18.2.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1"
|