@atlaskit/editor-plugin-insert-block 4.1.4 → 4.1.5
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 +6 -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 +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -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.5",
|
|
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,11 +42,11 @@
|
|
|
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.2.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
52
|
"@atlaskit/editor-plugin-panel": "^5.2.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.22.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.16.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"
|
|
@@ -146,6 +146,9 @@
|
|
|
146
146
|
},
|
|
147
147
|
"confluence-whiteboards-quick-insert-eligible": {
|
|
148
148
|
"type": "boolean"
|
|
149
|
+
},
|
|
150
|
+
"platform_editor_remove_unused_block_insert_props": {
|
|
151
|
+
"type": "boolean"
|
|
149
152
|
}
|
|
150
153
|
}
|
|
151
154
|
}
|