@atlaskit/editor-plugin-quick-insert 1.7.1 → 1.7.2
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
|
@@ -95,25 +95,28 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
95
95
|
emptyStateHandler: props.emptyStateHandler
|
|
96
96
|
}));
|
|
97
97
|
}, [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler]);
|
|
98
|
-
return (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
98
|
+
return (
|
|
99
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
100
|
+
(0, _react2.jsx)("div", {
|
|
101
|
+
"data-editor-popup": true,
|
|
102
|
+
onClick: onModalClick,
|
|
103
|
+
onKeyDown: onKeyDown
|
|
104
|
+
}, (0, _react2.jsx)(_modalDialog.ModalTransition, null, props.isOpen && (0, _react2.jsx)(_modalDialog.default, {
|
|
105
|
+
testId: "element-browser-modal-dialog",
|
|
106
|
+
stackIndex: 0,
|
|
107
|
+
key: "element-browser-modal",
|
|
108
|
+
onClose: props.onClose,
|
|
109
|
+
onCloseComplete: props.onCloseComplete,
|
|
110
|
+
height: "664px",
|
|
111
|
+
width: "x-large",
|
|
112
|
+
autoFocus: false,
|
|
113
|
+
shouldReturnFocus: props.shouldReturnFocus
|
|
114
|
+
// defaults to true and doesn't work along with stackIndex=1.
|
|
115
|
+
// packages/design-system/modal-dialog/src/components/Content.tsx Line 287
|
|
116
|
+
,
|
|
117
|
+
shouldCloseOnEscapePress: false
|
|
118
|
+
}, (0, _react2.jsx)(RenderBody, null), (0, _react2.jsx)(RenderFooter, null))))
|
|
119
|
+
);
|
|
117
120
|
};
|
|
118
121
|
ModalElementBrowser.displayName = 'ModalElementBrowser';
|
|
119
122
|
|
|
@@ -76,25 +76,28 @@ const ModalElementBrowser = props => {
|
|
|
76
76
|
onInsertItem: onInsertItem,
|
|
77
77
|
emptyStateHandler: props.emptyStateHandler
|
|
78
78
|
})), [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler]);
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
79
|
+
return (
|
|
80
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
81
|
+
jsx("div", {
|
|
82
|
+
"data-editor-popup": true,
|
|
83
|
+
onClick: onModalClick,
|
|
84
|
+
onKeyDown: onKeyDown
|
|
85
|
+
}, jsx(ModalTransition, null, props.isOpen && jsx(Modal, {
|
|
86
|
+
testId: "element-browser-modal-dialog",
|
|
87
|
+
stackIndex: 0,
|
|
88
|
+
key: "element-browser-modal",
|
|
89
|
+
onClose: props.onClose,
|
|
90
|
+
onCloseComplete: props.onCloseComplete,
|
|
91
|
+
height: "664px",
|
|
92
|
+
width: "x-large",
|
|
93
|
+
autoFocus: false,
|
|
94
|
+
shouldReturnFocus: props.shouldReturnFocus
|
|
95
|
+
// defaults to true and doesn't work along with stackIndex=1.
|
|
96
|
+
// packages/design-system/modal-dialog/src/components/Content.tsx Line 287
|
|
97
|
+
,
|
|
98
|
+
shouldCloseOnEscapePress: false
|
|
99
|
+
}, jsx(RenderBody, null), jsx(RenderFooter, null))))
|
|
100
|
+
);
|
|
98
101
|
};
|
|
99
102
|
ModalElementBrowser.displayName = 'ModalElementBrowser';
|
|
100
103
|
|
|
@@ -84,25 +84,28 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
84
84
|
emptyStateHandler: props.emptyStateHandler
|
|
85
85
|
}));
|
|
86
86
|
}, [props.intl, props.getItems, onSelectItem, onInsertItem, props.emptyStateHandler]);
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
87
|
+
return (
|
|
88
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
89
|
+
jsx("div", {
|
|
90
|
+
"data-editor-popup": true,
|
|
91
|
+
onClick: onModalClick,
|
|
92
|
+
onKeyDown: onKeyDown
|
|
93
|
+
}, jsx(ModalTransition, null, props.isOpen && jsx(Modal, {
|
|
94
|
+
testId: "element-browser-modal-dialog",
|
|
95
|
+
stackIndex: 0,
|
|
96
|
+
key: "element-browser-modal",
|
|
97
|
+
onClose: props.onClose,
|
|
98
|
+
onCloseComplete: props.onCloseComplete,
|
|
99
|
+
height: "664px",
|
|
100
|
+
width: "x-large",
|
|
101
|
+
autoFocus: false,
|
|
102
|
+
shouldReturnFocus: props.shouldReturnFocus
|
|
103
|
+
// defaults to true and doesn't work along with stackIndex=1.
|
|
104
|
+
// packages/design-system/modal-dialog/src/components/Content.tsx Line 287
|
|
105
|
+
,
|
|
106
|
+
shouldCloseOnEscapePress: false
|
|
107
|
+
}, jsx(RenderBody, null), jsx(RenderFooter, null))))
|
|
108
|
+
);
|
|
106
109
|
};
|
|
107
110
|
ModalElementBrowser.displayName = 'ModalElementBrowser';
|
|
108
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^20.3.0",
|
|
35
|
-
"@atlaskit/editor-common": "^95.
|
|
36
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
37
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
38
|
-
"@atlaskit/icon": "^
|
|
39
|
-
"@atlaskit/modal-dialog": "^12.
|
|
35
|
+
"@atlaskit/editor-common": "^95.10.0",
|
|
36
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
37
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
38
|
+
"@atlaskit/icon": "^23.0.0",
|
|
39
|
+
"@atlaskit/modal-dialog": "^12.18.0",
|
|
40
40
|
"@atlaskit/theme": "^14.0.0",
|
|
41
|
-
"@atlaskit/tokens": "^2.
|
|
41
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/react": "^11.7.1"
|
|
44
44
|
},
|