@atlaskit/link-create 4.1.7 → 4.2.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 +21 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/ui/message/index.js +2 -2
- package/dist/cjs/ui/modal-create/main.js +7 -2
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/message/index.js +2 -2
- package/dist/es2019/ui/modal-create/main.js +7 -2
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/message/index.js +2 -2
- package/dist/esm/ui/modal-create/main.js +7 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175869](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175869)
|
|
8
|
+
[`e7f822af7edc1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7f822af7edc1) -
|
|
9
|
+
Updated usages of deprecated icons with replacement icons
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.1.8
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#172990](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172990)
|
|
20
|
+
[`72746250a3966`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72746250a3966) -
|
|
21
|
+
Implemented tree graph for ADS Layering and removed old FG
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 4.1.7
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
16
16
|
var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
17
17
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
18
18
|
packageName: "@atlaskit/link-create" || '',
|
|
19
|
-
packageVersion: "4.1.
|
|
19
|
+
packageVersion: "4.1.8" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _css = require("@atlaskit/css");
|
|
14
14
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/core/check-circle"));
|
|
15
|
-
var
|
|
15
|
+
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
17
|
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
18
|
var styles = {
|
|
@@ -31,7 +31,7 @@ var IconWrapper = function IconWrapper(_ref) {
|
|
|
31
31
|
}, children);
|
|
32
32
|
};
|
|
33
33
|
var messageIcons = {
|
|
34
|
-
error: /*#__PURE__*/React.createElement(
|
|
34
|
+
error: /*#__PURE__*/React.createElement(_statusError.default, {
|
|
35
35
|
color: "var(--ds-text-danger, #AE2A19)",
|
|
36
36
|
label: "error",
|
|
37
37
|
size: "small"
|
|
@@ -13,6 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _layering = require("@atlaskit/layering");
|
|
15
15
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var _constants = require("../../common/constants");
|
|
18
19
|
var _confirmDismissDialog = require("../../common/ui/confirm-dismiss-dialog");
|
|
@@ -73,12 +74,16 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
|
|
|
73
74
|
}, /*#__PURE__*/_react.default.createElement(_errorBoundary.ErrorBoundary, null, /*#__PURE__*/_react.default.createElement(_linkCreateContent.LinkCreateContent, {
|
|
74
75
|
plugins: plugins,
|
|
75
76
|
entityKey: entityKey
|
|
76
|
-
}))))))
|
|
77
|
+
})))), (0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
|
|
78
|
+
active: showExitWarning,
|
|
79
|
+
onClose: handleCloseExitWarning,
|
|
80
|
+
onCancel: onCancel
|
|
81
|
+
}))), onComplete && /*#__PURE__*/_react.default.createElement(_editModal.EditModal, {
|
|
77
82
|
onCloseComplete: onCloseComplete,
|
|
78
83
|
onClose: onComplete,
|
|
79
84
|
editViewPayload: editViewPayload,
|
|
80
85
|
activePlugin: activePlugin
|
|
81
|
-
}), /*#__PURE__*/_react.default.createElement(_layering.Layering, {
|
|
86
|
+
}), !(0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_layering.Layering, {
|
|
82
87
|
isDisabled: false
|
|
83
88
|
}, /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
|
|
84
89
|
active: showExitWarning,
|
|
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "4.1.
|
|
13
|
+
packageVersion: "4.1.8" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SuccessIcon from '@atlaskit/icon/core/check-circle';
|
|
7
|
-
import
|
|
7
|
+
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
const styles = {
|
|
10
10
|
message: "_zulp1b66 _11c8dcr7 _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
@@ -23,7 +23,7 @@ const IconWrapper = ({
|
|
|
23
23
|
}, children);
|
|
24
24
|
};
|
|
25
25
|
const messageIcons = {
|
|
26
|
-
error: /*#__PURE__*/React.createElement(
|
|
26
|
+
error: /*#__PURE__*/React.createElement(StatusErrorIcon, {
|
|
27
27
|
color: "var(--ds-text-danger, #AE2A19)",
|
|
28
28
|
label: "error",
|
|
29
29
|
size: "small"
|
|
@@ -3,6 +3,7 @@ import React, { useLayoutEffect, useRef } from 'react';
|
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import { Layering } from '@atlaskit/layering';
|
|
5
5
|
import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
|
|
8
9
|
import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
|
|
@@ -63,12 +64,16 @@ const LinkCreateWithModal = ({
|
|
|
63
64
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
|
|
64
65
|
plugins: plugins,
|
|
65
66
|
entityKey: entityKey
|
|
66
|
-
}))))
|
|
67
|
+
})))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
|
|
68
|
+
active: showExitWarning,
|
|
69
|
+
onClose: handleCloseExitWarning,
|
|
70
|
+
onCancel: onCancel
|
|
71
|
+
}))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
|
|
67
72
|
onCloseComplete: onCloseComplete,
|
|
68
73
|
onClose: onComplete,
|
|
69
74
|
editViewPayload: editViewPayload,
|
|
70
75
|
activePlugin: activePlugin
|
|
71
|
-
}), /*#__PURE__*/React.createElement(Layering, {
|
|
76
|
+
}), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
|
|
72
77
|
isDisabled: false
|
|
73
78
|
}, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
|
|
74
79
|
active: showExitWarning,
|
|
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "4.1.
|
|
13
|
+
packageVersion: "4.1.8" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { cx } from '@atlaskit/css';
|
|
6
6
|
import SuccessIcon from '@atlaskit/icon/core/check-circle';
|
|
7
|
-
import
|
|
7
|
+
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
var styles = {
|
|
10
10
|
message: "_zulp1b66 _11c8dcr7 _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
@@ -22,7 +22,7 @@ var IconWrapper = function IconWrapper(_ref) {
|
|
|
22
22
|
}, children);
|
|
23
23
|
};
|
|
24
24
|
var messageIcons = {
|
|
25
|
-
error: /*#__PURE__*/React.createElement(
|
|
25
|
+
error: /*#__PURE__*/React.createElement(StatusErrorIcon, {
|
|
26
26
|
color: "var(--ds-text-danger, #AE2A19)",
|
|
27
27
|
label: "error",
|
|
28
28
|
size: "small"
|
|
@@ -5,6 +5,7 @@ import React, { useLayoutEffect, useRef } from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { Layering } from '@atlaskit/layering';
|
|
7
7
|
import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
10
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
|
|
10
11
|
import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
|
|
@@ -64,12 +65,16 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
|
|
|
64
65
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
|
|
65
66
|
plugins: plugins,
|
|
66
67
|
entityKey: entityKey
|
|
67
|
-
}))))
|
|
68
|
+
})))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
|
|
69
|
+
active: showExitWarning,
|
|
70
|
+
onClose: handleCloseExitWarning,
|
|
71
|
+
onCancel: onCancel
|
|
72
|
+
}))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
|
|
68
73
|
onCloseComplete: onCloseComplete,
|
|
69
74
|
onClose: onComplete,
|
|
70
75
|
editViewPayload: editViewPayload,
|
|
71
76
|
activePlugin: activePlugin
|
|
72
|
-
}), /*#__PURE__*/React.createElement(Layering, {
|
|
77
|
+
}), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
|
|
73
78
|
isDisabled: false
|
|
74
79
|
}, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
|
|
75
80
|
active: showExitWarning,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/css": "^0.12.0",
|
|
42
42
|
"@atlaskit/empty-state": "^10.1.0",
|
|
43
43
|
"@atlaskit/form": "^12.0.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
44
|
+
"@atlaskit/icon": "^27.3.0",
|
|
45
45
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
46
46
|
"@atlaskit/icon-object": "^7.1.0",
|
|
47
47
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^14.10.0",
|
|
54
|
-
"@atlaskit/select": "^21.
|
|
54
|
+
"@atlaskit/select": "^21.1.0",
|
|
55
55
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^18.0.0",
|
|
57
57
|
"@atlaskit/textfield": "^8.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@af/integration-testing": "workspace:^",
|
|
73
73
|
"@af/visual-regression": "workspace:^",
|
|
74
74
|
"@atlaskit/drawer": "^11.0.0",
|
|
75
|
-
"@atlaskit/link-test-helpers": "^8.
|
|
75
|
+
"@atlaskit/link-test-helpers": "^8.2.0",
|
|
76
76
|
"@atlaskit/popup": "^4.3.0",
|
|
77
77
|
"@atlaskit/visual-regression": "workspace:^",
|
|
78
78
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
@@ -133,6 +133,9 @@
|
|
|
133
133
|
},
|
|
134
134
|
"should-render-to-parent-should-be-true-linking-pla": {
|
|
135
135
|
"type": "boolean"
|
|
136
|
+
},
|
|
137
|
+
"layering-tree-graph": {
|
|
138
|
+
"type": "boolean"
|
|
136
139
|
}
|
|
137
140
|
},
|
|
138
141
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/5ebc0bfb-9b6d-4ec0-adbe-e4d5e88ace44"
|