@atlaskit/link-create 2.13.10 → 2.13.12
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/common/constants.js +1 -1
- package/dist/cjs/ui/create-form/main.js +3 -1
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/ui/create-form/main.js +4 -2
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/ui/create-form/main.js +4 -2
- package/example-helpers/mock-disclaimer.tsx +5 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 2.13.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167375](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167375)
|
|
8
|
+
[`ce85e442a7d6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce85e442a7d6e) -
|
|
9
|
+
[ux] Use atlaskit primitives for typography
|
|
10
|
+
|
|
11
|
+
## 2.13.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 2.13.10
|
|
4
18
|
|
|
5
19
|
### 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.13.
|
|
16
|
+
packageVersion: "2.13.12" || '',
|
|
17
17
|
component: COMPONENT_NAME,
|
|
18
18
|
componentName: COMPONENT_NAME
|
|
19
19
|
};
|
|
@@ -160,7 +160,9 @@ var CreateForm = exports.CreateForm = function CreateForm(_ref) {
|
|
|
160
160
|
});
|
|
161
161
|
setShouldShowWarning(isModified);
|
|
162
162
|
}
|
|
163
|
-
}), !hideRequiredFieldMessage && (0, _react2.jsx)(
|
|
163
|
+
}), !hideRequiredFieldMessage && (0, _react2.jsx)(_primitives.Text, {
|
|
164
|
+
as: "p"
|
|
165
|
+
}, intl.formatMessage(_messages.default.requiredFieldInstruction), " ", (0, _react2.jsx)(_form.RequiredAsterisk, null)), (0, _react2.jsx)(_primitives.Box, null, children), !hideFooter && (0, _react2.jsx)(_formFooter.CreateFormFooter
|
|
164
166
|
/**
|
|
165
167
|
* We will prefer to render the error message connected to
|
|
166
168
|
* react final form state (submitError) otherwise we can
|
|
@@ -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.13.
|
|
10
|
+
packageVersion: "2.13.12" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -10,7 +10,7 @@ import { FORM_ERROR } from 'final-form';
|
|
|
10
10
|
import { Form, FormSpy } from 'react-final-form';
|
|
11
11
|
import { useIntl } from 'react-intl-next';
|
|
12
12
|
import { RequiredAsterisk } from '@atlaskit/form';
|
|
13
|
-
import { Box } from '@atlaskit/primitives';
|
|
13
|
+
import { Box, Text } from '@atlaskit/primitives';
|
|
14
14
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../common/constants';
|
|
15
15
|
import messages from '../../common/messages';
|
|
16
16
|
import { useLinkCreateCallback } from '../../controllers/callback-context';
|
|
@@ -127,7 +127,9 @@ export const CreateForm = ({
|
|
|
127
127
|
const isModified = Object.values(state.modified).some(value => value);
|
|
128
128
|
setShouldShowWarning(isModified);
|
|
129
129
|
}
|
|
130
|
-
}), !hideRequiredFieldMessage && jsx(
|
|
130
|
+
}), !hideRequiredFieldMessage && jsx(Text, {
|
|
131
|
+
as: "p"
|
|
132
|
+
}, intl.formatMessage(messages.requiredFieldInstruction), " ", jsx(RequiredAsterisk, null)), jsx(Box, null, children), !hideFooter && jsx(CreateFormFooter
|
|
131
133
|
/**
|
|
132
134
|
* We will prefer to render the error message connected to
|
|
133
135
|
* react final form state (submitError) otherwise we can
|
|
@@ -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.13.
|
|
10
|
+
packageVersion: "2.13.12" || '',
|
|
11
11
|
component: COMPONENT_NAME,
|
|
12
12
|
componentName: COMPONENT_NAME
|
|
13
13
|
};
|
|
@@ -18,7 +18,7 @@ import { FORM_ERROR } from 'final-form';
|
|
|
18
18
|
import { Form, FormSpy } from 'react-final-form';
|
|
19
19
|
import { useIntl } from 'react-intl-next';
|
|
20
20
|
import { RequiredAsterisk } from '@atlaskit/form';
|
|
21
|
-
import { Box } from '@atlaskit/primitives';
|
|
21
|
+
import { Box, Text } from '@atlaskit/primitives';
|
|
22
22
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../common/constants';
|
|
23
23
|
import messages from '../../common/messages';
|
|
24
24
|
import { useLinkCreateCallback } from '../../controllers/callback-context';
|
|
@@ -156,7 +156,9 @@ export var CreateForm = function CreateForm(_ref) {
|
|
|
156
156
|
});
|
|
157
157
|
setShouldShowWarning(isModified);
|
|
158
158
|
}
|
|
159
|
-
}), !hideRequiredFieldMessage && jsx(
|
|
159
|
+
}), !hideRequiredFieldMessage && jsx(Text, {
|
|
160
|
+
as: "p"
|
|
161
|
+
}, intl.formatMessage(messages.requiredFieldInstruction), " ", jsx(RequiredAsterisk, null)), jsx(Box, null, children), !hideFooter && jsx(CreateFormFooter
|
|
160
162
|
/**
|
|
161
163
|
* We will prefer to render the error message connected to
|
|
162
164
|
* react final form state (submitError) otherwise we can
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
6
|
+
|
|
5
7
|
export const MockDisclaimer = () => {
|
|
6
8
|
const { locale } = useIntl();
|
|
7
9
|
const parentLocale = locale.split(/[-_]/)[0];
|
|
@@ -9,9 +11,9 @@ export const MockDisclaimer = () => {
|
|
|
9
11
|
|
|
10
12
|
if (parentLocale !== 'en') {
|
|
11
13
|
return (
|
|
12
|
-
<p>
|
|
13
|
-
{disclaimer} <
|
|
14
|
-
</
|
|
14
|
+
<Text as="p">
|
|
15
|
+
{disclaimer} <Text>{`(locale ${locale} not available)`}</Text>
|
|
16
|
+
</Text>
|
|
15
17
|
);
|
|
16
18
|
}
|
|
17
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.12",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"@atlaskit/button": "^20.3.0",
|
|
40
40
|
"@atlaskit/empty-state": "^7.12.0",
|
|
41
41
|
"@atlaskit/form": "^10.5.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.26.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^6.7.0",
|
|
44
44
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
45
|
-
"@atlaskit/layering": "^0.
|
|
45
|
+
"@atlaskit/layering": "^0.8.0",
|
|
46
46
|
"@atlaskit/linking-common": "^6.0.0",
|
|
47
47
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
48
|
-
"@atlaskit/primitives": "^13.
|
|
49
|
-
"@atlaskit/select": "^18.
|
|
48
|
+
"@atlaskit/primitives": "^13.2.0",
|
|
49
|
+
"@atlaskit/select": "^18.6.0",
|
|
50
50
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
51
51
|
"@atlaskit/spinner": "^16.3.0",
|
|
52
52
|
"@atlaskit/textfield": "^6.5.0",
|
|
53
53
|
"@atlaskit/theme": "^14.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^2.
|
|
54
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1",
|
|
57
57
|
"@emotion/styled": "^11.0.0",
|