@atlaskit/editor-plugin-quick-insert 1.8.1 → 1.8.3
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 +12 -0
- package/dist/cjs/quickInsertPlugin.js +3 -0
- package/dist/cjs/ui/ModalElementBrowser/ModalElementBrowser.js +4 -1
- package/dist/es2019/quickInsertPlugin.js +3 -0
- package/dist/es2019/ui/ModalElementBrowser/ModalElementBrowser.js +4 -1
- package/dist/esm/quickInsertPlugin.js +3 -0
- package/dist/esm/ui/ModalElementBrowser/ModalElementBrowser.js +4 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -148,6 +148,9 @@ var setProviderState = function setProviderState(providerState) {
|
|
|
148
148
|
return true;
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
+
|
|
152
|
+
// Ignored via go/ees005
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
151
154
|
function quickInsertPluginFactory(defaultItems, providerFactory, getIntl, dispatch, emptyStateHandler) {
|
|
152
155
|
return new _safePlugin.SafePlugin({
|
|
153
156
|
key: _pluginKey.pluginKey,
|
|
@@ -67,7 +67,10 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
67
67
|
onInsertItemFn(item);
|
|
68
68
|
}, [onInsertItemFn]);
|
|
69
69
|
var RenderFooter = (0, _react.useCallback)(function () {
|
|
70
|
-
return (0, _react2.jsx)(Footer
|
|
70
|
+
return (0, _react2.jsx)(Footer
|
|
71
|
+
// Ignored via go/ees005
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
73
|
+
, {
|
|
71
74
|
onInsert: function onInsert() {
|
|
72
75
|
return onInsertItem(selectedItem);
|
|
73
76
|
},
|
|
@@ -135,6 +135,9 @@ const setProviderState = providerState => (state, dispatch) => {
|
|
|
135
135
|
}
|
|
136
136
|
return true;
|
|
137
137
|
};
|
|
138
|
+
|
|
139
|
+
// Ignored via go/ees005
|
|
140
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
138
141
|
function quickInsertPluginFactory(defaultItems, providerFactory, getIntl, dispatch, emptyStateHandler) {
|
|
139
142
|
return new SafePlugin({
|
|
140
143
|
key: pluginKey,
|
|
@@ -53,7 +53,10 @@ const ModalElementBrowser = props => {
|
|
|
53
53
|
const onInsertItem = useCallback(item => {
|
|
54
54
|
onInsertItemFn(item);
|
|
55
55
|
}, [onInsertItemFn]);
|
|
56
|
-
const RenderFooter = useCallback(() => jsx(Footer
|
|
56
|
+
const RenderFooter = useCallback(() => jsx(Footer
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
59
|
+
, {
|
|
57
60
|
onInsert: () => onInsertItem(selectedItem),
|
|
58
61
|
beforeElement: helpUrl ? HelpLink(helpUrl, intl.formatMessage(messages.help)) : undefined
|
|
59
62
|
}), [onInsertItem, selectedItem, helpUrl, intl]);
|
|
@@ -141,6 +141,9 @@ var setProviderState = function setProviderState(providerState) {
|
|
|
141
141
|
return true;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
+
|
|
145
|
+
// Ignored via go/ees005
|
|
146
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
144
147
|
function quickInsertPluginFactory(defaultItems, providerFactory, getIntl, dispatch, emptyStateHandler) {
|
|
145
148
|
return new SafePlugin({
|
|
146
149
|
key: pluginKey,
|
|
@@ -56,7 +56,10 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
56
56
|
onInsertItemFn(item);
|
|
57
57
|
}, [onInsertItemFn]);
|
|
58
58
|
var RenderFooter = useCallback(function () {
|
|
59
|
-
return jsx(Footer
|
|
59
|
+
return jsx(Footer
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
|
+
, {
|
|
60
63
|
onInsert: function onInsert() {
|
|
61
64
|
return onInsertItem(selectedItem);
|
|
62
65
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^20.3.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^99.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^1.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
|
-
"@atlaskit/icon": "^23.
|
|
40
|
-
"@atlaskit/modal-dialog": "^12.
|
|
39
|
+
"@atlaskit/icon": "^23.3.0",
|
|
40
|
+
"@atlaskit/modal-dialog": "^12.19.0",
|
|
41
41
|
"@atlaskit/theme": "^14.0.0",
|
|
42
|
-
"@atlaskit/tokens": "^
|
|
42
|
+
"@atlaskit/tokens": "^3.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|