@atlaskit/editor-plugin-quick-insert 8.0.9 → 8.0.11
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/ModalElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/cjs/ui/ModalElementBrowser/index.js +3 -1
- package/dist/es2019/ui/ModalElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/es2019/ui/ModalElementBrowser/index.js +3 -1
- package/dist/esm/ui/ModalElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/esm/ui/ModalElementBrowser/index.js +3 -1
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 8.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.0.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _elementBrowser = require("@atlaskit/editor-common/element-browser");
|
|
|
15
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
16
16
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
17
17
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
18
|
var _categories = require("./categories");
|
|
20
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
/**
|
|
@@ -40,7 +39,7 @@ var wrapperStyles = (0, _react2.css)({
|
|
|
40
39
|
boxSizing: 'border-box',
|
|
41
40
|
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-200, 16px)", " 0 10px"),
|
|
42
41
|
overflow: 'hidden',
|
|
43
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
42
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
44
43
|
borderRadius: "var(--ds-radius-small, 3px)"
|
|
45
44
|
});
|
|
46
45
|
var modalFooterStyles = (0, _react2.css)({
|
|
@@ -73,7 +72,7 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
73
72
|
var RenderFooter = (0, _react.useCallback)(function () {
|
|
74
73
|
return (0, _react2.jsx)(Footer
|
|
75
74
|
// Ignored via go/ees005
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
77
76
|
, {
|
|
78
77
|
onInsert: function onInsert() {
|
|
79
78
|
return onInsertItem(selectedItem);
|
|
@@ -106,7 +106,9 @@ var _default = exports.default = function _default(_ref2) {
|
|
|
106
106
|
isElementBrowserModalOpen = _useSharedPluginState.isElementBrowserModalOpen,
|
|
107
107
|
emptyStateHandler = _useSharedPluginState.emptyStateHandler,
|
|
108
108
|
mode = _useSharedPluginState.mode;
|
|
109
|
-
return /*#__PURE__*/_react.default.createElement(Modal
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(Modal
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
|
+
, {
|
|
110
112
|
quickInsertState: {
|
|
111
113
|
lazyDefaultItems: lazyDefaultItems,
|
|
112
114
|
providedItems: providedItems,
|
|
@@ -12,7 +12,6 @@ import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
|
12
12
|
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
13
13
|
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
14
14
|
import Modal, { CloseButton, ModalTransition, useModal } from '@atlaskit/modal-dialog';
|
|
15
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { getCategories } from './categories';
|
|
17
16
|
export const MODAL_WRAPPER_PADDING = 16;
|
|
18
17
|
const actionsStyles = css({
|
|
@@ -29,7 +28,7 @@ const wrapperStyles = css({
|
|
|
29
28
|
boxSizing: 'border-box',
|
|
30
29
|
padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-200, 16px)"} 0 10px`,
|
|
31
30
|
overflow: 'hidden',
|
|
32
|
-
backgroundColor:
|
|
31
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
33
32
|
borderRadius: "var(--ds-radius-small, 3px)"
|
|
34
33
|
});
|
|
35
34
|
const modalFooterStyles = css({
|
|
@@ -60,7 +59,7 @@ const ModalElementBrowser = props => {
|
|
|
60
59
|
}, [onInsertItemFn]);
|
|
61
60
|
const RenderFooter = useCallback(() => jsx(Footer
|
|
62
61
|
// Ignored via go/ees005
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
63
|
, {
|
|
65
64
|
onInsert: () => onInsertItem(selectedItem),
|
|
66
65
|
beforeElement: helpUrl ? HelpLink(helpUrl, intl.formatMessage(messages.help)) : undefined
|
|
@@ -98,7 +98,9 @@ export default (({
|
|
|
98
98
|
mode: (_state$connectivitySt = state.connectivityState) === null || _state$connectivitySt === void 0 ? void 0 : _state$connectivitySt.mode
|
|
99
99
|
};
|
|
100
100
|
});
|
|
101
|
-
return /*#__PURE__*/React.createElement(Modal
|
|
101
|
+
return /*#__PURE__*/React.createElement(Modal
|
|
102
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
|
+
, {
|
|
102
104
|
quickInsertState: {
|
|
103
105
|
lazyDefaultItems,
|
|
104
106
|
providedItems,
|
|
@@ -13,7 +13,6 @@ import { ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
|
13
13
|
import { messages } from '@atlaskit/editor-common/quick-insert';
|
|
14
14
|
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
15
15
|
import Modal, { CloseButton, ModalTransition, useModal } from '@atlaskit/modal-dialog';
|
|
16
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
17
16
|
import { getCategories } from './categories';
|
|
18
17
|
export var MODAL_WRAPPER_PADDING = 16;
|
|
19
18
|
var actionsStyles = css({
|
|
@@ -30,7 +29,7 @@ var wrapperStyles = css({
|
|
|
30
29
|
boxSizing: 'border-box',
|
|
31
30
|
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-200, 16px)", " 0 10px"),
|
|
32
31
|
overflow: 'hidden',
|
|
33
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
32
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
34
33
|
borderRadius: "var(--ds-radius-small, 3px)"
|
|
35
34
|
});
|
|
36
35
|
var modalFooterStyles = css({
|
|
@@ -63,7 +62,7 @@ var ModalElementBrowser = function ModalElementBrowser(props) {
|
|
|
63
62
|
var RenderFooter = useCallback(function () {
|
|
64
63
|
return jsx(Footer
|
|
65
64
|
// Ignored via go/ees005
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
66
|
, {
|
|
68
67
|
onInsert: function onInsert() {
|
|
69
68
|
return onInsertItem(selectedItem);
|
|
@@ -97,7 +97,9 @@ export default (function (_ref2) {
|
|
|
97
97
|
isElementBrowserModalOpen = _useSharedPluginState.isElementBrowserModalOpen,
|
|
98
98
|
emptyStateHandler = _useSharedPluginState.emptyStateHandler,
|
|
99
99
|
mode = _useSharedPluginState.mode;
|
|
100
|
-
return /*#__PURE__*/React.createElement(Modal
|
|
100
|
+
return /*#__PURE__*/React.createElement(Modal
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
, {
|
|
101
103
|
quickInsertState: {
|
|
102
104
|
lazyDefaultItems: lazyDefaultItems,
|
|
103
105
|
providedItems: providedItems,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
"@atlaskit/icon": "^33.0.0",
|
|
39
39
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^43.0.0",
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
43
42
|
"@atlaskit/tokens": "^11.1.0",
|
|
44
43
|
"@babel/runtime": "^7.0.0",
|
|
45
44
|
"@emotion/react": "^11.7.1"
|