@atlaskit/link-create 2.7.1 → 2.7.3
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/common/constants.js +1 -1
- package/dist/cjs/ui/create-form/user-picker/main.js +2 -2
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/ui/create-form/user-picker/main.js +2 -2
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/ui/create-form/user-picker/main.js +2 -2
- package/dist/types/ui/create-form/user-picker/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/user-picker/types.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 2.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.7.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#115495](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115495)
|
|
14
|
+
[`9e9f641dcdf29`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9e9f641dcdf29) -
|
|
15
|
+
if no user is passed in, then the owner picker will prompt the user to select from the dropdown.
|
|
16
|
+
this addresses the case of what happens where there is no valid id to the owner
|
|
17
|
+
|
|
3
18
|
## 2.7.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
13
13
|
var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
14
14
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/link-create" || '',
|
|
16
|
-
packageVersion: "2.7.
|
|
16
|
+
packageVersion: "2.7.3" || '',
|
|
17
17
|
component: COMPONENT_NAME,
|
|
18
18
|
componentName: COMPONENT_NAME
|
|
19
19
|
};
|
|
@@ -44,9 +44,9 @@ function UserPicker(_ref) {
|
|
|
44
44
|
var fieldId = _ref2.fieldId,
|
|
45
45
|
fieldProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
46
46
|
return (0, _react.jsx)(_smartUserPicker.default, {
|
|
47
|
-
defaultValue: _objectSpread(_objectSpread({}, defaultValue), {}, {
|
|
47
|
+
defaultValue: defaultValue ? _objectSpread(_objectSpread({}, defaultValue), {}, {
|
|
48
48
|
type: 'user'
|
|
49
|
-
}),
|
|
49
|
+
}) : undefined,
|
|
50
50
|
placeholder: placeholder,
|
|
51
51
|
onChange: function onChange(value) {
|
|
52
52
|
return fieldProps.onChange(value);
|
|
@@ -7,7 +7,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
7
7
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
8
8
|
export const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/link-create" || '',
|
|
10
|
-
packageVersion: "2.7.
|
|
10
|
+
packageVersion: "2.7.3" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -32,10 +32,10 @@ export function UserPicker({
|
|
|
32
32
|
...fieldProps
|
|
33
33
|
}) => {
|
|
34
34
|
return jsx(SmartUserPicker, {
|
|
35
|
-
defaultValue: {
|
|
35
|
+
defaultValue: defaultValue ? {
|
|
36
36
|
...defaultValue,
|
|
37
37
|
type: 'user'
|
|
38
|
-
},
|
|
38
|
+
} : undefined,
|
|
39
39
|
placeholder: placeholder,
|
|
40
40
|
onChange: value => fieldProps.onChange(value),
|
|
41
41
|
subtle: true,
|
|
@@ -7,7 +7,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
7
7
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
8
8
|
export var PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/link-create" || '',
|
|
10
|
-
packageVersion: "2.7.
|
|
10
|
+
packageVersion: "2.7.3" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -36,9 +36,9 @@ export function UserPicker(_ref) {
|
|
|
36
36
|
var fieldId = _ref2.fieldId,
|
|
37
37
|
fieldProps = _objectWithoutProperties(_ref2, _excluded);
|
|
38
38
|
return jsx(SmartUserPicker, {
|
|
39
|
-
defaultValue: _objectSpread(_objectSpread({}, defaultValue), {}, {
|
|
39
|
+
defaultValue: defaultValue ? _objectSpread(_objectSpread({}, defaultValue), {}, {
|
|
40
40
|
type: 'user'
|
|
41
|
-
}),
|
|
41
|
+
}) : undefined,
|
|
42
42
|
placeholder: placeholder,
|
|
43
43
|
onChange: function onChange(value) {
|
|
44
44
|
return fieldProps.onChange(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
48
48
|
"@atlaskit/linking-common": "^5.7.0",
|
|
49
49
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
50
|
-
"@atlaskit/primitives": "^
|
|
50
|
+
"@atlaskit/primitives": "^10.0.0",
|
|
51
51
|
"@atlaskit/select": "^17.11.0",
|
|
52
52
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
53
53
|
"@atlaskit/spinner": "^16.2.0",
|