@atlaskit/focused-task-close-account 4.0.0 → 4.0.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 +15 -0
- package/dist/cjs/components/StatefulInlineDialog/StatefulInlineDialog.js +5 -2
- package/dist/cjs/components/StatefulInlineDialog/styled.js +17 -0
- package/dist/es2019/components/StatefulInlineDialog/StatefulInlineDialog.js +5 -2
- package/dist/es2019/components/StatefulInlineDialog/styled.js +10 -0
- package/dist/esm/components/StatefulInlineDialog/StatefulInlineDialog.js +5 -2
- package/dist/esm/components/StatefulInlineDialog/styled.js +10 -0
- package/dist/types/components/StatefulInlineDialog/styled.d.ts +4 -0
- package/dist/types-ts4.5/components/StatefulInlineDialog/styled.d.ts +4 -0
- package/package.json +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/focused-task-close-account
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`103f19eae0280`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/103f19eae0280) -
|
|
8
|
+
Accessibility fix
|
|
9
|
+
|
|
10
|
+
## 4.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`7fb5bfbafb83e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7fb5bfbafb83e) -
|
|
15
|
+
Enrol people-and-teams packages into the React Compiler with platform gating via
|
|
16
|
+
isReactCompilerActivePlatform
|
|
17
|
+
|
|
3
18
|
## 4.0.0
|
|
4
19
|
|
|
5
20
|
### Major Changes
|
|
@@ -13,6 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _inlineDialog = _interopRequireDefault(require("@atlaskit/inline-dialog"));
|
|
16
|
+
var _styled = require("./styled");
|
|
16
17
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
17
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
19
|
var StatefulInlineDialog = exports.StatefulInlineDialog = /*#__PURE__*/function (_React$Component) {
|
|
@@ -56,9 +57,11 @@ var StatefulInlineDialog = exports.StatefulInlineDialog = /*#__PURE__*/function
|
|
|
56
57
|
content: content,
|
|
57
58
|
placement: placement,
|
|
58
59
|
isOpen: this.state.isOpen
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_styled.TriggerButton, {
|
|
60
61
|
onMouseOver: this.handleMouseOver,
|
|
61
|
-
onMouseOut: this.handleMouseOut
|
|
62
|
+
onMouseOut: this.handleMouseOut,
|
|
63
|
+
onFocus: this.openDialog,
|
|
64
|
+
onBlur: this.closeDialog
|
|
62
65
|
}, children));
|
|
63
66
|
}
|
|
64
67
|
}]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TriggerButton = void 0;
|
|
8
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
12
|
+
var TriggerButton = exports.TriggerButton = _styled.default.button({
|
|
13
|
+
background: 'none',
|
|
14
|
+
border: 'none',
|
|
15
|
+
padding: 0,
|
|
16
|
+
cursor: 'default'
|
|
17
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import InlineDialog from '@atlaskit/inline-dialog';
|
|
4
|
+
import { TriggerButton } from './styled';
|
|
4
5
|
export class StatefulInlineDialog extends React.Component {
|
|
5
6
|
constructor(...args) {
|
|
6
7
|
super(...args);
|
|
@@ -34,9 +35,11 @@ export class StatefulInlineDialog extends React.Component {
|
|
|
34
35
|
content: content,
|
|
35
36
|
placement: placement,
|
|
36
37
|
isOpen: this.state.isOpen
|
|
37
|
-
}, /*#__PURE__*/React.createElement(
|
|
38
|
+
}, /*#__PURE__*/React.createElement(TriggerButton, {
|
|
38
39
|
onMouseOver: this.handleMouseOver,
|
|
39
|
-
onMouseOut: this.handleMouseOut
|
|
40
|
+
onMouseOut: this.handleMouseOut,
|
|
41
|
+
onFocus: this.openDialog,
|
|
42
|
+
onBlur: this.closeDialog
|
|
40
43
|
}, children));
|
|
41
44
|
}
|
|
42
45
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export const TriggerButton = styled.button({
|
|
6
|
+
background: 'none',
|
|
7
|
+
border: 'none',
|
|
8
|
+
padding: 0,
|
|
9
|
+
cursor: 'default'
|
|
10
|
+
});
|
|
@@ -8,6 +8,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import InlineDialog from '@atlaskit/inline-dialog';
|
|
11
|
+
import { TriggerButton } from './styled';
|
|
11
12
|
export var StatefulInlineDialog = /*#__PURE__*/function (_React$Component) {
|
|
12
13
|
function StatefulInlineDialog() {
|
|
13
14
|
var _this;
|
|
@@ -49,9 +50,11 @@ export var StatefulInlineDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
49
50
|
content: content,
|
|
50
51
|
placement: placement,
|
|
51
52
|
isOpen: this.state.isOpen
|
|
52
|
-
}, /*#__PURE__*/React.createElement(
|
|
53
|
+
}, /*#__PURE__*/React.createElement(TriggerButton, {
|
|
53
54
|
onMouseOver: this.handleMouseOver,
|
|
54
|
-
onMouseOut: this.handleMouseOut
|
|
55
|
+
onMouseOut: this.handleMouseOut,
|
|
56
|
+
onFocus: this.openDialog,
|
|
57
|
+
onBlur: this.closeDialog
|
|
55
58
|
}, children));
|
|
56
59
|
}
|
|
57
60
|
}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
|
+
export var TriggerButton = styled.button({
|
|
6
|
+
background: 'none',
|
|
7
|
+
border: 'none',
|
|
8
|
+
padding: 0,
|
|
9
|
+
cursor: 'default'
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/focused-task-close-account",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "This package contains all of the UI components needed to assemble the focused tasks for deactivating and deleting users' accounts in accordance with the GDPR \"Right to be forgotten\".",
|
|
5
5
|
"deprecated": "⚠️ DEPRECATED: This package is marked for removal. Please avoid new usage.",
|
|
6
6
|
"publishConfig": {
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
"test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/focused-task-close-account/src' --coverage --coverageProvider=v8 --collectCoverageFrom='[\"packages/people-and-teams/focused-task-close-account/src/**\", \"!packages/people-and-teams/focused-task-close-account/src/**/**/types.ts\", \"!packages/people-and-teams/focused-task-close-account/src/ui/**/styled.tsx\"]')"
|
|
27
27
|
},
|
|
28
28
|
"atlassian": {
|
|
29
|
+
"react-compiler": {
|
|
30
|
+
"enabled": true,
|
|
31
|
+
"gating": {
|
|
32
|
+
"source": "@atlassian/react-compiler-gating",
|
|
33
|
+
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
29
36
|
"team": "Admin Hub: Nexus",
|
|
30
37
|
"website": {
|
|
31
38
|
"name": "Focused Task Close Account"
|
|
@@ -33,7 +40,7 @@
|
|
|
33
40
|
},
|
|
34
41
|
"dependencies": {
|
|
35
42
|
"@atlaskit/afm-i18n-platform-people-and-teams-focused-task-close-account": "2.39.0",
|
|
36
|
-
"@atlaskit/avatar": "^25.
|
|
43
|
+
"@atlaskit/avatar": "^25.12.0",
|
|
37
44
|
"@atlaskit/button": "^23.11.0",
|
|
38
45
|
"@atlaskit/drawer": "^12.0.0",
|
|
39
46
|
"@atlaskit/heading": "^5.4.0",
|
|
@@ -53,6 +60,7 @@
|
|
|
53
60
|
"react-transition-group": "^4.4.1"
|
|
54
61
|
},
|
|
55
62
|
"devDependencies": {
|
|
63
|
+
"@atlassian/react-compiler-gating": "workspace:^",
|
|
56
64
|
"@testing-library/react": "^16.3.0",
|
|
57
65
|
"enzyme": "^3.10.0",
|
|
58
66
|
"react-intl": "^6.6.2"
|