@atlaskit/editor-plugin-floating-toolbar 1.7.5 → 1.7.7
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 +15 -0
- package/dist/cjs/ui/CheckboxModal.js +3 -3
- package/dist/cjs/ui/EmojiPickerButton.js +5 -3
- package/dist/cjs/ui/SimpleModal.js +3 -3
- package/dist/es2019/ui/CheckboxModal.js +1 -1
- package/dist/es2019/ui/EmojiPickerButton.js +4 -2
- package/dist/es2019/ui/SimpleModal.js +1 -1
- package/dist/esm/ui/CheckboxModal.js +1 -1
- package/dist/esm/ui/EmojiPickerButton.js +4 -2
- package/dist/esm/ui/SimpleModal.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.7.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.7.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#116062](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116062)
|
|
14
|
+
[`1c26d1ee6fb25`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c26d1ee6fb25) -
|
|
15
|
+
Migrated to new atlaskit Buttons.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.7.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ exports.CheckboxModal = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
13
13
|
var _checkbox = require("@atlaskit/checkbox");
|
|
14
14
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
15
15
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
@@ -67,11 +67,11 @@ var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
|
|
|
67
67
|
},
|
|
68
68
|
label: checkboxlabel,
|
|
69
69
|
testId: testId ? "".concat(testId, "-checkbox") : undefined
|
|
70
|
-
}))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(
|
|
70
|
+
}))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
71
71
|
appearance: "default",
|
|
72
72
|
onClick: onClose,
|
|
73
73
|
testId: testId ? "".concat(testId, "-cancel-button") : undefined
|
|
74
|
-
}, cancelButtonLabel), /*#__PURE__*/_react.default.createElement(
|
|
74
|
+
}, cancelButtonLabel), /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
75
75
|
appearance: "warning",
|
|
76
76
|
onClick: function onClick() {
|
|
77
77
|
onConfirm(isChecked);
|
|
@@ -8,7 +8,7 @@ exports.EmojiPickerButton = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var
|
|
11
|
+
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
12
12
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
13
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
@@ -105,9 +105,11 @@ var EmojiPickerButton = exports.EmojiPickerButton = function EmojiPickerButton(p
|
|
|
105
105
|
}, (0, _react2.jsx)(_tooltip.default, {
|
|
106
106
|
content: title,
|
|
107
107
|
position: "top"
|
|
108
|
-
}, (0, _react2.jsx)(
|
|
108
|
+
}, (0, _react2.jsx)(_standardButton.default, {
|
|
109
109
|
appearance: 'subtle',
|
|
110
|
-
key: props.idx
|
|
110
|
+
key: props.idx
|
|
111
|
+
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
112
|
+
,
|
|
111
113
|
style: {
|
|
112
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
113
115
|
padding: 0,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.SimpleModal = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
11
11
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
12
12
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -26,11 +26,11 @@ var SimpleModal = exports.SimpleModal = function SimpleModal(props) {
|
|
|
26
26
|
testId: testId
|
|
27
27
|
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
|
|
28
28
|
appearance: "warning"
|
|
29
|
-
}, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement("p", null, options === null || options === void 0 ? void 0 : options.message)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(
|
|
29
|
+
}, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement("p", null, options === null || options === void 0 ? void 0 : options.message)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
30
30
|
appearance: "default",
|
|
31
31
|
onClick: onClose,
|
|
32
32
|
testId: testId ? "".concat(testId, "-cancel-button") : undefined
|
|
33
|
-
}, cancelButtonLabel), /*#__PURE__*/_react.default.createElement(
|
|
33
|
+
}, cancelButtonLabel), /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
34
34
|
appearance: "warning",
|
|
35
35
|
onClick: function onClick() {
|
|
36
36
|
onConfirm();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import Button from '@atlaskit/button/
|
|
3
|
+
import Button from '@atlaskit/button/new';
|
|
4
4
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
5
5
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
6
6
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
-
import Button from '@atlaskit/button';
|
|
6
|
+
import Button from '@atlaskit/button/standard-button';
|
|
7
7
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
8
8
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
@@ -94,7 +94,9 @@ export const EmojiPickerButton = props => {
|
|
|
94
94
|
position: "top"
|
|
95
95
|
}, jsx(Button, {
|
|
96
96
|
appearance: 'subtle',
|
|
97
|
-
key: props.idx
|
|
97
|
+
key: props.idx
|
|
98
|
+
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
99
|
+
,
|
|
98
100
|
style: {
|
|
99
101
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
100
102
|
padding: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from '@atlaskit/button/
|
|
2
|
+
import Button from '@atlaskit/button/new';
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
4
4
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
5
5
|
export const SimpleModal = props => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import Button from '@atlaskit/button/
|
|
4
|
+
import Button from '@atlaskit/button/new';
|
|
5
5
|
import { Checkbox } from '@atlaskit/checkbox';
|
|
6
6
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
7
7
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import Button from '@atlaskit/button';
|
|
7
|
+
import Button from '@atlaskit/button/standard-button';
|
|
8
8
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
9
9
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
@@ -100,7 +100,9 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
100
100
|
position: "top"
|
|
101
101
|
}, jsx(Button, {
|
|
102
102
|
appearance: 'subtle',
|
|
103
|
-
key: props.idx
|
|
103
|
+
key: props.idx
|
|
104
|
+
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
105
|
+
,
|
|
104
106
|
style: {
|
|
105
107
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
106
108
|
padding: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Button from '@atlaskit/button/
|
|
2
|
+
import Button from '@atlaskit/button/new';
|
|
3
3
|
import { messages } from '@atlaskit/editor-common/floating-toolbar';
|
|
4
4
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
5
5
|
export var SimpleModal = function SimpleModal(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/adf-utils": "^19.4.0",
|
|
28
|
-
"@atlaskit/button": "^18.
|
|
28
|
+
"@atlaskit/button": "^18.1.0",
|
|
29
29
|
"@atlaskit/checkbox": "^13.5.0",
|
|
30
|
-
"@atlaskit/editor-common": "^
|
|
30
|
+
"@atlaskit/editor-common": "^84.0.0",
|
|
31
31
|
"@atlaskit/editor-palette": "1.6.0",
|
|
32
32
|
"@atlaskit/editor-plugin-block-controls": "^1.5.0",
|
|
33
33
|
"@atlaskit/editor-plugin-context-panel": "^1.1.0",
|