@atlaskit/editor-plugin-insert-block 4.1.4 → 4.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 +14 -0
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +2 -2
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +2 -2
- package/dist/esm/ui/ToolbarInsertBlock/index.js +2 -2
- package/dist/types/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -3
- package/package.json +16 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 4.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a0e6cdeb5a90c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a0e6cdeb5a90c) -
|
|
8
|
+
[ux] New experiment to unify the handling of panel insertion to more consistent behaviour.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 4.1.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -798,9 +798,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
798
798
|
onPlusButtonRef: this.handlePlusButtonRef,
|
|
799
799
|
onClick: this.handleClick,
|
|
800
800
|
onKeyDown: this.handleOpenByKeyboard,
|
|
801
|
-
onItemActivated: this.insertInsertMenuItem,
|
|
801
|
+
onItemActivated: (0, _platformFeatureFlags.fg)('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
|
|
802
|
+
onOpenChange: (0, _platformFeatureFlags.fg)('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
|
|
802
803
|
onInsert: this.insertInsertMenuItem,
|
|
803
|
-
onOpenChange: this.onOpenChange,
|
|
804
804
|
togglePlusMenuVisibility: this.togglePlusMenuVisibility,
|
|
805
805
|
showElementBrowserLink: this.props.showElementBrowserLink || false,
|
|
806
806
|
pluginInjectionApi: this.props.pluginInjectionApi,
|
|
@@ -840,9 +840,9 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
840
840
|
onPlusButtonRef: this.handlePlusButtonRef,
|
|
841
841
|
onClick: this.handleClick,
|
|
842
842
|
onKeyDown: this.handleOpenByKeyboard,
|
|
843
|
-
onItemActivated: this.insertInsertMenuItem,
|
|
843
|
+
onItemActivated: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
|
|
844
|
+
onOpenChange: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
|
|
844
845
|
onInsert: this.insertInsertMenuItem,
|
|
845
|
-
onOpenChange: this.onOpenChange,
|
|
846
846
|
togglePlusMenuVisibility: this.togglePlusMenuVisibility,
|
|
847
847
|
showElementBrowserLink: this.props.showElementBrowserLink || false,
|
|
848
848
|
pluginInjectionApi: this.props.pluginInjectionApi,
|
|
@@ -792,9 +792,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
792
792
|
onPlusButtonRef: this.handlePlusButtonRef,
|
|
793
793
|
onClick: this.handleClick,
|
|
794
794
|
onKeyDown: this.handleOpenByKeyboard,
|
|
795
|
-
onItemActivated: this.insertInsertMenuItem,
|
|
795
|
+
onItemActivated: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
|
|
796
|
+
onOpenChange: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
|
|
796
797
|
onInsert: this.insertInsertMenuItem,
|
|
797
|
-
onOpenChange: this.onOpenChange,
|
|
798
798
|
togglePlusMenuVisibility: this.togglePlusMenuVisibility,
|
|
799
799
|
showElementBrowserLink: this.props.showElementBrowserLink || false,
|
|
800
800
|
pluginInjectionApi: this.props.pluginInjectionApi,
|
|
@@ -20,11 +20,11 @@ export interface BlockInsertMenuProps {
|
|
|
20
20
|
onRef(el: HTMLElement): void;
|
|
21
21
|
onPlusButtonRef(el: HTMLElement): void;
|
|
22
22
|
onClick: React.MouseEventHandler;
|
|
23
|
-
onItemActivated(attrs: {
|
|
23
|
+
onItemActivated?: (attrs: {
|
|
24
24
|
item: MenuItem;
|
|
25
|
-
})
|
|
25
|
+
}) => void;
|
|
26
26
|
onInsert: OnInsert;
|
|
27
|
-
onOpenChange(attrs: any)
|
|
27
|
+
onOpenChange?: (attrs: any) => void;
|
|
28
28
|
togglePlusMenuVisibility(): void;
|
|
29
29
|
onKeyDown?: React.KeyboardEventHandler;
|
|
30
30
|
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
|
@@ -20,11 +20,11 @@ export interface BlockInsertMenuProps {
|
|
|
20
20
|
onRef(el: HTMLElement): void;
|
|
21
21
|
onPlusButtonRef(el: HTMLElement): void;
|
|
22
22
|
onClick: React.MouseEventHandler;
|
|
23
|
-
onItemActivated(attrs: {
|
|
23
|
+
onItemActivated?: (attrs: {
|
|
24
24
|
item: MenuItem;
|
|
25
|
-
})
|
|
25
|
+
}) => void;
|
|
26
26
|
onInsert: OnInsert;
|
|
27
|
-
onOpenChange(attrs: any)
|
|
27
|
+
onOpenChange?: (attrs: any) => void;
|
|
28
28
|
togglePlusMenuVisibility(): void;
|
|
29
29
|
onKeyDown?: React.KeyboardEventHandler;
|
|
30
30
|
pluginInjectionApi: ExtractInjectionAPI<InsertBlockPlugin> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/button": "^23.
|
|
35
|
+
"@atlaskit/button": "^23.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-block-type": "^6.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-code-block": "^5.0.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-expand": "^4.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-extension": "^6.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-feature-flags": "^2.0.0",
|
|
45
|
-
"@atlaskit/editor-plugin-hyperlink": "^5.
|
|
45
|
+
"@atlaskit/editor-plugin-hyperlink": "^5.3.0",
|
|
46
46
|
"@atlaskit/editor-plugin-image-upload": "^3.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-layout": "^3.1.0",
|
|
48
48
|
"@atlaskit/editor-plugin-media": "^5.2.0",
|
|
49
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
49
|
+
"@atlaskit/editor-plugin-media-insert": "^9.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-mentions": "^5.2.0",
|
|
51
51
|
"@atlaskit/editor-plugin-metrics": "^4.0.0",
|
|
52
|
-
"@atlaskit/editor-plugin-panel": "^5.
|
|
52
|
+
"@atlaskit/editor-plugin-panel": "^5.3.0",
|
|
53
53
|
"@atlaskit/editor-plugin-placeholder-text": "^3.1.0",
|
|
54
54
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
55
55
|
"@atlaskit/editor-plugin-quick-insert": "^3.0.0",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
63
63
|
"@atlaskit/emoji": "^69.3.0",
|
|
64
64
|
"@atlaskit/heading": "^5.2.0",
|
|
65
|
-
"@atlaskit/icon": "^27.
|
|
66
|
-
"@atlaskit/icon-lab": "^5.
|
|
65
|
+
"@atlaskit/icon": "^27.9.0",
|
|
66
|
+
"@atlaskit/icon-lab": "^5.3.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
68
|
-
"@atlaskit/primitives": "^14.
|
|
68
|
+
"@atlaskit/primitives": "^14.11.0",
|
|
69
69
|
"@atlaskit/theme": "^19.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
71
|
-
"@atlaskit/tokens": "^
|
|
72
|
-
"@atlaskit/tooltip": "^20.
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^9.25.0",
|
|
71
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
72
|
+
"@atlaskit/tooltip": "^20.4.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
74
74
|
"@emotion/react": "^11.7.1",
|
|
75
75
|
"bind-event-listener": "^3.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-virtualized": "^9.8.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^107.
|
|
81
|
+
"@atlaskit/editor-common": "^107.18.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
84
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -89,8 +89,7 @@
|
|
|
89
89
|
"@atlaskit/ssr": "workspace:^",
|
|
90
90
|
"@atlaskit/visual-regression": "workspace:^",
|
|
91
91
|
"@testing-library/react": "^13.4.0",
|
|
92
|
-
"@types/react-virtualized": "^9.18.12"
|
|
93
|
-
"typescript": "~5.4.2"
|
|
92
|
+
"@types/react-virtualized": "^9.18.12"
|
|
94
93
|
},
|
|
95
94
|
"techstack": {
|
|
96
95
|
"@atlassian/frontend": {
|
|
@@ -146,6 +145,9 @@
|
|
|
146
145
|
},
|
|
147
146
|
"confluence-whiteboards-quick-insert-eligible": {
|
|
148
147
|
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"platform_editor_remove_unused_block_insert_props": {
|
|
150
|
+
"type": "boolean"
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
}
|