@atlaskit/editor-plugin-floating-toolbar 7.0.3 → 8.0.1
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/CheckboxModal.js +4 -1
- package/dist/cjs/ui/SimpleModal.js +4 -1
- package/dist/es2019/ui/CheckboxModal.js +4 -1
- package/dist/es2019/ui/SimpleModal.js +4 -1
- package/dist/esm/ui/CheckboxModal.js +4 -1
- package/dist/esm/ui/SimpleModal.js +4 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 8.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3313b6542c788`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3313b6542c788) -
|
|
8
|
+
[ux] [ENGHEALTH-30483] use `hasCloseButton` or CloseButton for ModalHeader
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -14,6 +14,7 @@ var _checkbox = require("@atlaskit/checkbox");
|
|
|
14
14
|
var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
|
|
15
15
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
18
|
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); }
|
|
18
19
|
var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
|
|
19
20
|
var _options$getChildrenI;
|
|
@@ -61,7 +62,9 @@ var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
|
|
|
61
62
|
return /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
62
63
|
onClose: onClose,
|
|
63
64
|
testId: testId
|
|
64
|
-
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader,
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
|
|
66
|
+
hasCloseButton: (0, _expValEquals.expValEquals)('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
|
|
65
68
|
appearance: "warning"
|
|
66
69
|
}, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
67
70
|
as: "p"
|
|
@@ -11,6 +11,7 @@ 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
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
15
|
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); }
|
|
15
16
|
var SimpleModal = exports.SimpleModal = function SimpleModal(props) {
|
|
16
17
|
var onConfirm = props.onConfirm,
|
|
@@ -24,7 +25,9 @@ var SimpleModal = exports.SimpleModal = function SimpleModal(props) {
|
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
25
26
|
onClose: onClose,
|
|
26
27
|
testId: testId
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader,
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
|
|
29
|
+
hasCloseButton: (0, _expValEquals.expValEquals)('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
|
|
28
31
|
appearance: "warning"
|
|
29
32
|
}, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
30
33
|
as: "p"
|
|
@@ -5,6 +5,7 @@ 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';
|
|
7
7
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
export const CheckboxModal = props => {
|
|
9
10
|
var _options$getChildrenI;
|
|
10
11
|
const [isChecked, setCheckbox] = useState(false);
|
|
@@ -52,7 +53,9 @@ export const CheckboxModal = props => {
|
|
|
52
53
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
53
54
|
onClose: onClose,
|
|
54
55
|
testId: testId
|
|
55
|
-
}, /*#__PURE__*/React.createElement(ModalHeader,
|
|
56
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
57
|
+
hasCloseButton: expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
58
|
+
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
56
59
|
appearance: "warning"
|
|
57
60
|
}, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
|
|
58
61
|
as: "p"
|
|
@@ -3,6 +3,7 @@ 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
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
export const SimpleModal = props => {
|
|
7
8
|
const {
|
|
8
9
|
onConfirm,
|
|
@@ -19,7 +20,9 @@ export const SimpleModal = props => {
|
|
|
19
20
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
20
21
|
onClose: onClose,
|
|
21
22
|
testId: testId
|
|
22
|
-
}, /*#__PURE__*/React.createElement(ModalHeader,
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
24
|
+
hasCloseButton: expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
25
|
+
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
23
26
|
appearance: "warning"
|
|
24
27
|
}, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
|
|
25
28
|
as: "p"
|
|
@@ -6,6 +6,7 @@ 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';
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
export var CheckboxModal = function CheckboxModal(props) {
|
|
10
11
|
var _options$getChildrenI;
|
|
11
12
|
var _useState = useState(false),
|
|
@@ -52,7 +53,9 @@ export var CheckboxModal = function CheckboxModal(props) {
|
|
|
52
53
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
53
54
|
onClose: onClose,
|
|
54
55
|
testId: testId
|
|
55
|
-
}, /*#__PURE__*/React.createElement(ModalHeader,
|
|
56
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
57
|
+
hasCloseButton: expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
58
|
+
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
56
59
|
appearance: "warning"
|
|
57
60
|
}, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
|
|
58
61
|
as: "p"
|
|
@@ -3,6 +3,7 @@ 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
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
7
|
export var SimpleModal = function SimpleModal(props) {
|
|
7
8
|
var onConfirm = props.onConfirm,
|
|
8
9
|
onClose = props.onClose,
|
|
@@ -15,7 +16,9 @@ export var SimpleModal = function SimpleModal(props) {
|
|
|
15
16
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
16
17
|
onClose: onClose,
|
|
17
18
|
testId: testId
|
|
18
|
-
}, /*#__PURE__*/React.createElement(ModalHeader,
|
|
19
|
+
}, /*#__PURE__*/React.createElement(ModalHeader, {
|
|
20
|
+
hasCloseButton: expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true)
|
|
21
|
+
}, /*#__PURE__*/React.createElement(ModalTitle, {
|
|
19
22
|
appearance: "warning"
|
|
20
23
|
}, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
|
|
21
24
|
as: "p"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,31 +21,31 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-utils": "^19.
|
|
24
|
+
"@atlaskit/adf-utils": "^19.24.0",
|
|
25
25
|
"@atlaskit/button": "^23.4.0",
|
|
26
26
|
"@atlaskit/checkbox": "^17.1.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
28
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
29
|
-
"@atlaskit/editor-plugin-context-panel": "^
|
|
30
|
-
"@atlaskit/editor-plugin-copy-button": "^
|
|
31
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
32
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
33
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
34
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
35
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
36
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
37
|
-
"@atlaskit/editor-plugin-table": "^
|
|
38
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
28
|
+
"@atlaskit/editor-plugin-analytics": "^6.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-context-panel": "^8.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-copy-button": "^6.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-decorations": "^6.1.0",
|
|
32
|
+
"@atlaskit/editor-plugin-editor-disabled": "^6.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-emoji": "^7.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-extension": "^9.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-interaction": "^8.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-table": "^15.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/emoji": "^69.5.0",
|
|
41
|
-
"@atlaskit/icon": "^28.
|
|
41
|
+
"@atlaskit/icon": "^28.3.0",
|
|
42
42
|
"@atlaskit/menu": "^8.4.0",
|
|
43
|
-
"@atlaskit/modal-dialog": "^14.
|
|
43
|
+
"@atlaskit/modal-dialog": "^14.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^14.15.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^12.32.0",
|
|
49
49
|
"@atlaskit/tokens": "^6.3.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.4.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-loadable": "^5.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^
|
|
60
|
+
"@atlaskit/editor-common": "^110.1.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|