@atlaskit/focused-task-close-account 2.0.5 → 2.1.0
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 +16 -0
- package/dist/cjs/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +2 -31
- package/dist/cjs/components/DeactivateUserOverviewScreen/index.js +0 -4
- package/dist/cjs/components/DeactivateUserOverviewScreen/styled.js +0 -16
- package/dist/cjs/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -29
- package/dist/cjs/components/DeleteUserContentPreviewScreen/index.js +0 -4
- package/dist/cjs/components/DeleteUserContentPreviewScreen/styled.js +0 -19
- package/dist/cjs/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +6 -41
- package/dist/cjs/components/DeleteUserOverviewScreen/index.js +0 -4
- package/dist/cjs/components/DeleteUserOverviewScreen/styled.js +0 -21
- package/dist/cjs/components/DropdownList/DropdownList.js +0 -31
- package/dist/cjs/components/DropdownList/index.js +0 -4
- package/dist/cjs/components/DropdownList/styled.js +0 -11
- package/dist/cjs/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +5 -38
- package/dist/cjs/components/FocusedTaskCloseAccount/index.js +0 -4
- package/dist/cjs/components/FocusedTaskCloseAccount/styled.js +1 -11
- package/dist/cjs/components/Footer/Footer.js +7 -27
- package/dist/cjs/components/Footer/index.js +0 -2
- package/dist/cjs/components/Footer/styled.js +0 -7
- package/dist/cjs/components/MessagesIntlProvider.js +2 -19
- package/dist/cjs/components/StatefulInlineDialog/StatefulInlineDialog.js +3 -23
- package/dist/cjs/components/StatefulInlineDialog/index.js +0 -2
- package/dist/cjs/components/UserInfo/UserInfo.js +0 -19
- package/dist/cjs/components/UserInfo/index.js +0 -4
- package/dist/cjs/components/UserInfo/styles.js +0 -19
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/de.js +1 -1
- package/dist/cjs/i18n/en.js +1 -1
- package/dist/cjs/i18n/en_GB.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/et.js +0 -1
- package/dist/cjs/i18n/fi.js +1 -1
- package/dist/cjs/i18n/fr.js +1 -1
- package/dist/cjs/i18n/hu.js +1 -1
- package/dist/cjs/i18n/index.js +0 -30
- package/dist/cjs/i18n/is.js +0 -1
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/ja.js +1 -1
- package/dist/cjs/i18n/ko.js +1 -1
- package/dist/cjs/i18n/languages.js +0 -1
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/nl.js +1 -1
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/pt_PT.js +0 -1
- package/dist/cjs/i18n/ro.js +0 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/sk.js +0 -1
- package/dist/cjs/i18n/sv.js +1 -1
- package/dist/cjs/i18n/th.js +1 -1
- package/dist/cjs/i18n/tr.js +1 -1
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/messages.js +0 -2
- package/dist/cjs/util/gridSizeTimes.js +0 -3
- package/dist/cjs/util/i18n-util.js +1 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +0 -8
- package/dist/es2019/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -7
- package/dist/es2019/components/DeleteUserContentPreviewScreen/styled.js +0 -2
- package/dist/es2019/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +0 -11
- package/dist/es2019/components/DropdownList/DropdownList.js +0 -6
- package/dist/es2019/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +0 -6
- package/dist/es2019/components/FocusedTaskCloseAccount/styled.js +1 -1
- package/dist/es2019/components/Footer/Footer.js +0 -1
- package/dist/es2019/components/MessagesIntlProvider.js +0 -3
- package/dist/es2019/components/StatefulInlineDialog/StatefulInlineDialog.js +0 -7
- package/dist/es2019/components/UserInfo/UserInfo.js +0 -1
- package/dist/es2019/components/UserInfo/styles.js +0 -2
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/util/gridSizeTimes.js +0 -2
- package/dist/es2019/util/i18n-util.js +1 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +2 -19
- package/dist/esm/components/DeactivateUserOverviewScreen/styled.js +0 -2
- package/dist/esm/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -16
- package/dist/esm/components/DeleteUserContentPreviewScreen/styled.js +0 -4
- package/dist/esm/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +6 -26
- package/dist/esm/components/DeleteUserOverviewScreen/styled.js +0 -2
- package/dist/esm/components/DropdownList/DropdownList.js +0 -15
- package/dist/esm/components/DropdownList/styled.js +0 -2
- package/dist/esm/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +5 -22
- package/dist/esm/components/FocusedTaskCloseAccount/styled.js +1 -3
- package/dist/esm/components/Footer/Footer.js +7 -17
- package/dist/esm/components/Footer/styled.js +0 -2
- package/dist/esm/components/MessagesIntlProvider.js +2 -12
- package/dist/esm/components/StatefulInlineDialog/StatefulInlineDialog.js +3 -19
- package/dist/esm/components/UserInfo/UserInfo.js +0 -8
- package/dist/esm/components/UserInfo/styles.js +0 -4
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/util/gridSizeTimes.js +0 -2
- package/dist/esm/util/i18n-util.js +1 -4
- package/dist/esm/version.json +1 -1
- package/package.json +13 -11
|
@@ -4,32 +4,26 @@ import InlineDialog from '@atlaskit/inline-dialog';
|
|
|
4
4
|
export class StatefulInlineDialog extends React.Component {
|
|
5
5
|
constructor(...args) {
|
|
6
6
|
super(...args);
|
|
7
|
-
|
|
8
7
|
_defineProperty(this, "state", {
|
|
9
8
|
isOpen: false
|
|
10
9
|
});
|
|
11
|
-
|
|
12
10
|
_defineProperty(this, "openDialog", () => {
|
|
13
11
|
this.setState({
|
|
14
12
|
isOpen: true
|
|
15
13
|
});
|
|
16
14
|
});
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "closeDialog", () => {
|
|
19
16
|
this.setState({
|
|
20
17
|
isOpen: false
|
|
21
18
|
});
|
|
22
19
|
});
|
|
23
|
-
|
|
24
20
|
_defineProperty(this, "handleMouseOver", () => {
|
|
25
21
|
this.openDialog();
|
|
26
22
|
});
|
|
27
|
-
|
|
28
23
|
_defineProperty(this, "handleMouseOut", () => {
|
|
29
24
|
this.closeDialog();
|
|
30
25
|
});
|
|
31
26
|
}
|
|
32
|
-
|
|
33
27
|
render() {
|
|
34
28
|
const {
|
|
35
29
|
children,
|
|
@@ -45,6 +39,5 @@ export class StatefulInlineDialog extends React.Component {
|
|
|
45
39
|
onMouseOut: this.handleMouseOut
|
|
46
40
|
}, children));
|
|
47
41
|
}
|
|
48
|
-
|
|
49
42
|
}
|
|
50
43
|
export default StatefulInlineDialog;
|
|
@@ -11,6 +11,5 @@ export class UserInfo extends React.Component {
|
|
|
11
11
|
src: user.avatarUrl
|
|
12
12
|
})), /*#__PURE__*/React.createElement(Styled.UserDetails, null, /*#__PURE__*/React.createElement(Styled.UserName, null, user.fullName), /*#__PURE__*/React.createElement(Styled.UserEmail, null, user.email)));
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
}
|
|
16
15
|
export default UserInfo;
|
|
@@ -3,13 +3,11 @@ import { fontSize } from '@atlaskit/theme/constants';
|
|
|
3
3
|
import { h500 } from '@atlaskit/theme/typography';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
|
6
|
-
|
|
7
6
|
const baseHeading = (size, lineHeight) => `
|
|
8
7
|
font-size: ${size / fontSize()}em;
|
|
9
8
|
font-style: inherit;
|
|
10
9
|
line-height: ${lineHeight / size};
|
|
11
10
|
`;
|
|
12
|
-
|
|
13
11
|
export const UserInfoOuter = styled.div`
|
|
14
12
|
display: flex;
|
|
15
13
|
align-items: center;
|
package/dist/es2019/i18n/cs.js
CHANGED
package/dist/es2019/i18n/da.js
CHANGED
package/dist/es2019/i18n/de.js
CHANGED
package/dist/es2019/i18n/en.js
CHANGED
package/dist/es2019/i18n/es.js
CHANGED
package/dist/es2019/i18n/fi.js
CHANGED
package/dist/es2019/i18n/fr.js
CHANGED
package/dist/es2019/i18n/hu.js
CHANGED
package/dist/es2019/i18n/it.js
CHANGED
package/dist/es2019/i18n/ja.js
CHANGED
package/dist/es2019/i18n/ko.js
CHANGED
package/dist/es2019/i18n/nb.js
CHANGED
package/dist/es2019/i18n/nl.js
CHANGED
package/dist/es2019/i18n/pl.js
CHANGED
package/dist/es2019/i18n/ru.js
CHANGED
package/dist/es2019/i18n/sv.js
CHANGED
package/dist/es2019/i18n/th.js
CHANGED
package/dist/es2019/i18n/tr.js
CHANGED
package/dist/es2019/i18n/uk.js
CHANGED
package/dist/es2019/i18n/vi.js
CHANGED
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -28,6 +28,7 @@ const localesMessagesMap = {
|
|
|
28
28
|
sv,
|
|
29
29
|
zh
|
|
30
30
|
};
|
|
31
|
+
|
|
31
32
|
/**
|
|
32
33
|
* Tries to get the most specific messages bundle for a given locale.
|
|
33
34
|
*
|
|
@@ -38,18 +39,14 @@ const localesMessagesMap = {
|
|
|
38
39
|
*
|
|
39
40
|
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
42
|
export const getMessagesForLocale = locale => {
|
|
43
43
|
let messages = localesMessagesMap[locale];
|
|
44
|
-
|
|
45
44
|
if (!messages) {
|
|
46
45
|
const parentLocale = locale.split(/[-_]/)[0];
|
|
47
46
|
messages = localesMessagesMap[parentLocale];
|
|
48
47
|
}
|
|
49
|
-
|
|
50
48
|
if (!messages) {
|
|
51
49
|
messages = en;
|
|
52
50
|
}
|
|
53
|
-
|
|
54
51
|
return messages;
|
|
55
52
|
};
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,11 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
|
|
10
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
13
|
import { deactivateUserOverviewMessages } from '../../messages';
|
|
@@ -20,28 +17,21 @@ import { DropdownList } from '../DropdownList';
|
|
|
20
17
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
21
18
|
export var DeactivateUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
22
19
|
_inherits(DeactivateUserOverviewScreen, _React$Component);
|
|
23
|
-
|
|
24
20
|
var _super = _createSuper(DeactivateUserOverviewScreen);
|
|
25
|
-
|
|
26
21
|
function DeactivateUserOverviewScreen() {
|
|
27
22
|
var _this;
|
|
28
|
-
|
|
29
23
|
_classCallCheck(this, DeactivateUserOverviewScreen);
|
|
30
|
-
|
|
31
24
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
25
|
args[_key] = arguments[_key];
|
|
33
26
|
}
|
|
34
|
-
|
|
35
27
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36
|
-
|
|
37
28
|
_defineProperty(_assertThisInitialized(_this), "selectAdminOrSelfCopy", function (adminCopy, selfCopy) {
|
|
38
29
|
return _this.props.isCurrentUser ? selfCopy : adminCopy;
|
|
39
30
|
});
|
|
40
|
-
|
|
41
31
|
_defineProperty(_assertThisInitialized(_this), "renderLoseAccessListElement", function () {
|
|
42
32
|
var _this$props = _this.props,
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
accessibleSites = _this$props.accessibleSites,
|
|
34
|
+
user = _this$props.user;
|
|
45
35
|
var hasAccessibleSites = accessibleSites && accessibleSites.length > 0;
|
|
46
36
|
return /*#__PURE__*/React.createElement("li", null, !hasAccessibleSites && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, _this.selectAdminOrSelfCopy(deactivateUserOverviewMessages.paragraphLoseAccessAdminNoSites, deactivateUserOverviewMessages.paragraphLoseAccessSelfNoSites), {
|
|
47
37
|
values: {
|
|
@@ -62,18 +52,14 @@ export var DeactivateUserOverviewScreen = /*#__PURE__*/function (_React$Componen
|
|
|
62
52
|
accessibleSites: accessibleSites
|
|
63
53
|
}))));
|
|
64
54
|
});
|
|
65
|
-
|
|
66
55
|
_defineProperty(_assertThisInitialized(_this), "renderPersonalDataListElement", function () {
|
|
67
56
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(FormattedMessage, _this.selectAdminOrSelfCopy(deactivateUserOverviewMessages.paragraphPersonalDataAdmin, deactivateUserOverviewMessages.paragraphPersonalDataSelf)));
|
|
68
57
|
});
|
|
69
|
-
|
|
70
58
|
_defineProperty(_assertThisInitialized(_this), "renderBillingListElement", function () {
|
|
71
59
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(FormattedMessage, _this.selectAdminOrSelfCopy(deactivateUserOverviewMessages.paragraphBillingAdmin, deactivateUserOverviewMessages.paragraphBillingSelf)));
|
|
72
60
|
});
|
|
73
|
-
|
|
74
61
|
return _this;
|
|
75
62
|
}
|
|
76
|
-
|
|
77
63
|
_createClass(DeactivateUserOverviewScreen, [{
|
|
78
64
|
key: "render",
|
|
79
65
|
value: function render() {
|
|
@@ -87,12 +73,9 @@ export var DeactivateUserOverviewScreen = /*#__PURE__*/function (_React$Componen
|
|
|
87
73
|
}))));
|
|
88
74
|
}
|
|
89
75
|
}]);
|
|
90
|
-
|
|
91
76
|
return DeactivateUserOverviewScreen;
|
|
92
77
|
}(React.Component);
|
|
93
|
-
|
|
94
78
|
_defineProperty(DeactivateUserOverviewScreen, "defaultProps", {
|
|
95
79
|
isCurrentUser: false
|
|
96
80
|
});
|
|
97
|
-
|
|
98
81
|
export default DeactivateUserOverviewScreen;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { h700 } from '@atlaskit/theme/typography';
|
|
7
5
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
package/dist/esm/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js
CHANGED
|
@@ -6,11 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
|
|
10
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
13
|
import Avatar from '@atlaskit/avatar';
|
|
@@ -19,45 +16,33 @@ import * as Styled from './styled';
|
|
|
19
16
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
20
17
|
export var DeleteUserContentPreviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
21
18
|
_inherits(DeleteUserContentPreviewScreen, _React$Component);
|
|
22
|
-
|
|
23
19
|
var _super = _createSuper(DeleteUserContentPreviewScreen);
|
|
24
|
-
|
|
25
20
|
function DeleteUserContentPreviewScreen() {
|
|
26
21
|
var _this;
|
|
27
|
-
|
|
28
22
|
_classCallCheck(this, DeleteUserContentPreviewScreen);
|
|
29
|
-
|
|
30
23
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
24
|
args[_key] = arguments[_key];
|
|
32
25
|
}
|
|
33
|
-
|
|
34
26
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
35
|
-
|
|
36
27
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
37
28
|
currentActive: -1
|
|
38
29
|
});
|
|
39
|
-
|
|
40
30
|
_defineProperty(_assertThisInitialized(_this), "handleClickSection", function (userName, position) {
|
|
41
31
|
return function () {
|
|
42
32
|
_this.props.preferenceSelection(userName);
|
|
43
|
-
|
|
44
33
|
_this.setState({
|
|
45
34
|
currentActive: position
|
|
46
35
|
});
|
|
47
36
|
};
|
|
48
37
|
});
|
|
49
|
-
|
|
50
38
|
_defineProperty(_assertThisInitialized(_this), "isCardSelected", function (position) {
|
|
51
39
|
return position === _this.state.currentActive;
|
|
52
40
|
});
|
|
53
|
-
|
|
54
41
|
_defineProperty(_assertThisInitialized(_this), "selectAdminOrSelfCopy", function (adminCopy, selfCopy) {
|
|
55
42
|
return _this.props.isCurrentUser ? selfCopy : adminCopy;
|
|
56
43
|
});
|
|
57
|
-
|
|
58
44
|
return _this;
|
|
59
45
|
}
|
|
60
|
-
|
|
61
46
|
_createClass(DeleteUserContentPreviewScreen, [{
|
|
62
47
|
key: "componentDidMount",
|
|
63
48
|
value: function componentDidMount() {
|
|
@@ -90,7 +75,6 @@ export var DeleteUserContentPreviewScreen = /*#__PURE__*/function (_React$Compon
|
|
|
90
75
|
}))));
|
|
91
76
|
}
|
|
92
77
|
}]);
|
|
93
|
-
|
|
94
78
|
return DeleteUserContentPreviewScreen;
|
|
95
79
|
}(React.Component);
|
|
96
80
|
export default DeleteUserContentPreviewScreen;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
5
|
import { B50, B400, N50A, N60A } from '@atlaskit/theme/colors';
|
|
8
6
|
import { h700 } from '@atlaskit/theme/typography';
|
|
9
7
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
|
10
|
-
|
|
11
8
|
var getSelectedCardColor = function getSelectedCardColor(props) {
|
|
12
9
|
return props.isSelected && "".concat("var(--ds-background-selected, ".concat(B50, ")"));
|
|
13
10
|
};
|
|
14
|
-
|
|
15
11
|
export var Screen = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n max-width: 640px;\n margin-bottom: ", "px;\n"])), gridSizeTimes(4));
|
|
16
12
|
export var Title = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n margin-bottom: ", "px;\n margin-top: 0;\n"])), h700, gridSizeTimes(4));
|
|
17
13
|
export var SectionCard = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n padding: ", "px;\n width: 100%;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n margin-top: ", "px;\n"])), gridSizeTimes(2.5), function (props) {
|
|
@@ -6,11 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
|
|
10
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
13
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -24,34 +21,25 @@ import { DropdownList } from '../DropdownList';
|
|
|
24
21
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
25
22
|
export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
26
23
|
_inherits(DeleteUserOverviewScreen, _React$Component);
|
|
27
|
-
|
|
28
24
|
var _super = _createSuper(DeleteUserOverviewScreen);
|
|
29
|
-
|
|
30
25
|
function DeleteUserOverviewScreen() {
|
|
31
26
|
var _this;
|
|
32
|
-
|
|
33
27
|
_classCallCheck(this, DeleteUserOverviewScreen);
|
|
34
|
-
|
|
35
28
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
29
|
args[_key] = arguments[_key];
|
|
37
30
|
}
|
|
38
|
-
|
|
39
31
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
40
|
-
|
|
41
32
|
_defineProperty(_assertThisInitialized(_this), "selectAdminOrSelfCopy", function (adminCopy, selfCopy) {
|
|
42
33
|
return _this.props.isCurrentUser ? selfCopy : adminCopy;
|
|
43
34
|
});
|
|
44
|
-
|
|
45
35
|
_defineProperty(_assertThisInitialized(_this), "displayFirstListElement", function () {
|
|
46
36
|
var _this$props = _this.props,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
accessibleSites = _this$props.accessibleSites,
|
|
38
|
+
user = _this$props.user,
|
|
39
|
+
isUserDeactivated = _this$props.isUserDeactivated;
|
|
51
40
|
if (isUserDeactivated) {
|
|
52
41
|
return null;
|
|
53
42
|
}
|
|
54
|
-
|
|
55
43
|
var hasAccessibleSites = accessibleSites && accessibleSites.length > 0;
|
|
56
44
|
return /*#__PURE__*/React.createElement("li", null, !hasAccessibleSites && /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, _this.selectAdminOrSelfCopy(overviewMessages.paragraphLoseAccessAdminNoSites, overviewMessages.paragraphLoseAccessSelfNoSites), {
|
|
57
45
|
values: {
|
|
@@ -72,7 +60,6 @@ export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
|
72
60
|
accessibleSites: accessibleSites
|
|
73
61
|
})));
|
|
74
62
|
});
|
|
75
|
-
|
|
76
63
|
_defineProperty(_assertThisInitialized(_this), "displaySecondListElement", function () {
|
|
77
64
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, _this.selectAdminOrSelfCopy(overviewMessages.paragraphPersonalDataWillBeDeletedAdmin, overviewMessages.paragraphPersonalDataWillBeDeletedSelf), {
|
|
78
65
|
values: {
|
|
@@ -100,7 +87,6 @@ export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
|
100
87
|
size: "small"
|
|
101
88
|
}))));
|
|
102
89
|
});
|
|
103
|
-
|
|
104
90
|
_defineProperty(_assertThisInitialized(_this), "displayThirdListElement", function () {
|
|
105
91
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(FormattedMessage, _this.selectAdminOrSelfCopy(overviewMessages.paragraphListOfAppsWithPersonalDataAdmin, overviewMessages.paragraphListOfAppsWithPersonalDataSelf)), /*#__PURE__*/React.createElement(Styled.IconHoverWrapper, null, /*#__PURE__*/React.createElement(StatefulInlineDialog, {
|
|
106
92
|
placement: "auto-start",
|
|
@@ -110,7 +96,6 @@ export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
|
110
96
|
size: "small"
|
|
111
97
|
}))));
|
|
112
98
|
});
|
|
113
|
-
|
|
114
99
|
_defineProperty(_assertThisInitialized(_this), "displayFourthListElement", function () {
|
|
115
100
|
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(FormattedMessage, _this.selectAdminOrSelfCopy(overviewMessages.paragraphContentCreatedAdmin, overviewMessages.paragraphContentCreatedSelf)), /*#__PURE__*/React.createElement(Styled.IconHoverWrapper, null, /*#__PURE__*/React.createElement(StatefulInlineDialog, {
|
|
116
101
|
placement: "auto-start",
|
|
@@ -120,17 +105,15 @@ export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
|
120
105
|
size: "small"
|
|
121
106
|
}))));
|
|
122
107
|
});
|
|
123
|
-
|
|
124
108
|
return _this;
|
|
125
109
|
}
|
|
126
|
-
|
|
127
110
|
_createClass(DeleteUserOverviewScreen, [{
|
|
128
111
|
key: "render",
|
|
129
112
|
value: function render() {
|
|
130
113
|
var _this$props2 = this.props,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
114
|
+
user = _this$props2.user,
|
|
115
|
+
deactivateUserHandler = _this$props2.deactivateUserHandler,
|
|
116
|
+
isUserDeactivated = _this$props2.isUserDeactivated;
|
|
134
117
|
return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement(Styled.Screen, null, /*#__PURE__*/React.createElement(Styled.Title, null, /*#__PURE__*/React.createElement(FormattedMessage, this.selectAdminOrSelfCopy(overviewMessages.headingAdmin, overviewMessages.headingSelf))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, this.selectAdminOrSelfCopy(overviewMessages.firstLineAdmin, overviewMessages.firstLineSelf), {
|
|
135
118
|
tagName: "p"
|
|
136
119
|
})), /*#__PURE__*/React.createElement(UserInfo, {
|
|
@@ -144,12 +127,9 @@ export var DeleteUserOverviewScreen = /*#__PURE__*/function (_React$Component) {
|
|
|
144
127
|
}, /*#__PURE__*/React.createElement(FormattedMessage, commonMessages.deactivateAccount)))))));
|
|
145
128
|
}
|
|
146
129
|
}]);
|
|
147
|
-
|
|
148
130
|
return DeleteUserOverviewScreen;
|
|
149
131
|
}(React.Component);
|
|
150
|
-
|
|
151
132
|
_defineProperty(DeleteUserOverviewScreen, "defaultProps", {
|
|
152
133
|
isCurrentUser: false
|
|
153
134
|
});
|
|
154
|
-
|
|
155
135
|
export default DeleteUserOverviewScreen;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { B500, B200 } from '@atlaskit/theme/colors';
|
|
7
5
|
import { h700 } from '@atlaskit/theme/typography';
|
|
@@ -6,11 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
|
|
10
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
13
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -19,43 +16,32 @@ import { overviewMessages, dropDownListMessages } from '../../messages';
|
|
|
19
16
|
var COLLAPSED_LIST_SITE_COUNT = 3;
|
|
20
17
|
export var DropdownList = /*#__PURE__*/function (_React$Component) {
|
|
21
18
|
_inherits(DropdownList, _React$Component);
|
|
22
|
-
|
|
23
19
|
var _super = _createSuper(DropdownList);
|
|
24
|
-
|
|
25
20
|
function DropdownList() {
|
|
26
21
|
var _this;
|
|
27
|
-
|
|
28
22
|
_classCallCheck(this, DropdownList);
|
|
29
|
-
|
|
30
23
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
24
|
args[_key] = arguments[_key];
|
|
32
25
|
}
|
|
33
|
-
|
|
34
26
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
35
|
-
|
|
36
27
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
37
28
|
isExpanded: false
|
|
38
29
|
});
|
|
39
|
-
|
|
40
30
|
_defineProperty(_assertThisInitialized(_this), "showDropdownList", function () {
|
|
41
31
|
_this.setState({
|
|
42
32
|
isExpanded: true
|
|
43
33
|
});
|
|
44
34
|
});
|
|
45
|
-
|
|
46
35
|
_defineProperty(_assertThisInitialized(_this), "hideDropdownList", function () {
|
|
47
36
|
_this.setState({
|
|
48
37
|
isExpanded: false
|
|
49
38
|
});
|
|
50
39
|
});
|
|
51
|
-
|
|
52
40
|
_defineProperty(_assertThisInitialized(_this), "getVisibleSites", function () {
|
|
53
41
|
return _this.state.isExpanded ? _this.props.accessibleSites : _this.props.accessibleSites.slice(0, COLLAPSED_LIST_SITE_COUNT);
|
|
54
42
|
});
|
|
55
|
-
|
|
56
43
|
return _this;
|
|
57
44
|
}
|
|
58
|
-
|
|
59
45
|
_createClass(DropdownList, [{
|
|
60
46
|
key: "render",
|
|
61
47
|
value: function render() {
|
|
@@ -79,7 +65,6 @@ export var DropdownList = /*#__PURE__*/function (_React$Component) {
|
|
|
79
65
|
})), footNote, toggleExpand);
|
|
80
66
|
}
|
|
81
67
|
}]);
|
|
82
|
-
|
|
83
68
|
return DropdownList;
|
|
84
69
|
}(React.Component);
|
|
85
70
|
export default DropdownList;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
|
7
5
|
export var AccessibleSitesList = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n padding-left: 0;\n font-weight: 600;\n margin-left: ", "px;\n > li {\n margin-top: 0;\n }\n"])), gridSizeTimes(1));
|