@atlaskit/link-create 4.5.20 → 4.5.22
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/common/ui/icon/index.compiled.css +1 -1
- package/dist/cjs/common/ui/icon/index.js +3 -5
- package/dist/cjs/common/ui/message/index.compiled.css +1 -1
- package/dist/cjs/common/ui/message/index.js +3 -3
- package/dist/cjs/ui/create-form/form-footer/main.js +1 -1
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/icon/index.compiled.css +1 -1
- package/dist/es2019/common/ui/icon/index.js +1 -2
- package/dist/es2019/common/ui/message/index.compiled.css +1 -1
- package/dist/es2019/common/ui/message/index.js +3 -3
- package/dist/es2019/ui/create-form/form-footer/main.js +1 -1
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/icon/index.compiled.css +1 -1
- package/dist/esm/common/ui/icon/index.js +3 -5
- package/dist/esm/common/ui/message/index.compiled.css +1 -1
- package/dist/esm/common/ui/message/index.js +3 -3
- package/dist/esm/ui/create-form/form-footer/main.js +1 -1
- package/example-helpers/mock-disclaimer.tsx +1 -1
- package/example-helpers/mock-plugin-form.tsx +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 4.5.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.5.21
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`93a66599141af`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/93a66599141af) -
|
|
14
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.5.20
|
|
4
18
|
|
|
5
19
|
### 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: "
|
|
19
|
+
packageVersion: "4.5.21" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -12,18 +12,16 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _8 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/16"));
|
|
14
14
|
var _9 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page-live-doc/16"));
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _messages = require("./messages");
|
|
17
16
|
var baseStyles = null;
|
|
18
17
|
var UrlIcon = exports.UrlIcon = function UrlIcon(_ref) {
|
|
19
18
|
var url = _ref.url,
|
|
20
19
|
children = _ref.children;
|
|
21
20
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
22
|
-
className: (0, _runtime.ax)(["_2rkofajl _bfhk3yfp _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"]),
|
|
23
21
|
style: {
|
|
24
|
-
backgroundImage: "url(".concat(url !== null && url !== void 0 ? url : '', ")")
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
backgroundImage: "url(".concat(url !== null && url !== void 0 ? url : '', ")")
|
|
23
|
+
},
|
|
24
|
+
className: (0, _runtime.ax)(["_2rkofajl _bfhkizff _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"])
|
|
27
25
|
}, children);
|
|
28
26
|
};
|
|
29
27
|
var PageIcon = exports.PageIcon = function PageIcon() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
4
4
|
._1bah1q9y{justify-content:baseline}
|
|
@@ -16,7 +16,7 @@ var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-er
|
|
|
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 = {
|
|
19
|
-
message: "_zulp1b66
|
|
19
|
+
message: "_zulp1b66 _11c8wadc _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
20
20
|
};
|
|
21
21
|
var messageAppearanceStyles = {
|
|
22
22
|
default: "_syaz1rpy",
|
|
@@ -32,12 +32,12 @@ var IconWrapper = function IconWrapper(_ref) {
|
|
|
32
32
|
};
|
|
33
33
|
var messageIcons = {
|
|
34
34
|
error: /*#__PURE__*/React.createElement(_statusError.default, {
|
|
35
|
-
color: "var(--ds-text-danger, #
|
|
35
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
36
36
|
label: "error",
|
|
37
37
|
size: "small"
|
|
38
38
|
}),
|
|
39
39
|
valid: /*#__PURE__*/React.createElement(_checkCircle.default, {
|
|
40
|
-
color: "var(--ds-text-success, #
|
|
40
|
+
color: "var(--ds-text-success, #4C6B1F)",
|
|
41
41
|
label: "success",
|
|
42
42
|
size: "small"
|
|
43
43
|
})
|
|
@@ -39,7 +39,7 @@ var CreateFormFooter = exports.CreateFormFooter = function CreateFormFooter(_ref
|
|
|
39
39
|
className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _2hwx1wug"])
|
|
40
40
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
41
41
|
label: formErrorMessage,
|
|
42
|
-
color: "var(--ds-icon-danger, #
|
|
42
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
43
43
|
spacing: "spacious"
|
|
44
44
|
}), formErrorMessage), /*#__PURE__*/React.createElement(_button.ButtonGroup, null, /*#__PURE__*/React.createElement(_Button.Button, {
|
|
45
45
|
type: "button",
|
|
@@ -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: "
|
|
13
|
+
packageVersion: "4.5.21" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import Document16Icon from '@atlaskit/icon-file-type/glyph/document/16';
|
|
7
7
|
import PageLiveDoc16Icon from '@atlaskit/icon-object/glyph/page-live-doc/16';
|
|
8
|
-
import { N20A } from '@atlaskit/theme/colors';
|
|
9
8
|
import { iconLabelMessages } from './messages';
|
|
10
9
|
const baseStyles = null;
|
|
11
10
|
export const UrlIcon = ({
|
|
@@ -16,7 +15,7 @@ export const UrlIcon = ({
|
|
|
16
15
|
style: {
|
|
17
16
|
backgroundImage: `url(${url !== null && url !== void 0 ? url : ''})`
|
|
18
17
|
},
|
|
19
|
-
className: ax(["_2rkofajl
|
|
18
|
+
className: ax(["_2rkofajl _bfhkizff _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"])
|
|
20
19
|
}, children);
|
|
21
20
|
};
|
|
22
21
|
export const PageIcon = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
4
4
|
._1bah1q9y{justify-content:baseline}
|
|
@@ -7,7 +7,7 @@ import SuccessIcon from '@atlaskit/icon/core/check-circle';
|
|
|
7
7
|
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
const styles = {
|
|
10
|
-
message: "_zulp1b66
|
|
10
|
+
message: "_zulp1b66 _11c8wadc _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
11
11
|
};
|
|
12
12
|
const messageAppearanceStyles = {
|
|
13
13
|
default: "_syaz1rpy",
|
|
@@ -24,12 +24,12 @@ const IconWrapper = ({
|
|
|
24
24
|
};
|
|
25
25
|
const messageIcons = {
|
|
26
26
|
error: /*#__PURE__*/React.createElement(StatusErrorIcon, {
|
|
27
|
-
color: "var(--ds-text-danger, #
|
|
27
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
28
28
|
label: "error",
|
|
29
29
|
size: "small"
|
|
30
30
|
}),
|
|
31
31
|
valid: /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
32
|
-
color: "var(--ds-text-success, #
|
|
32
|
+
color: "var(--ds-text-success, #4C6B1F)",
|
|
33
33
|
label: "success",
|
|
34
34
|
size: "small"
|
|
35
35
|
})
|
|
@@ -31,7 +31,7 @@ export const CreateFormFooter = ({
|
|
|
31
31
|
className: ax(["_1e0c1txw _4cvr1h6o _2hwx1wug"])
|
|
32
32
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
33
33
|
label: formErrorMessage,
|
|
34
|
-
color: "var(--ds-icon-danger, #
|
|
34
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
35
35
|
spacing: "spacious"
|
|
36
36
|
}), formErrorMessage), /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
37
37
|
type: "button",
|
|
@@ -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: "
|
|
13
|
+
packageVersion: "4.5.21" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -5,18 +5,16 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import Document16Icon from '@atlaskit/icon-file-type/glyph/document/16';
|
|
7
7
|
import PageLiveDoc16Icon from '@atlaskit/icon-object/glyph/page-live-doc/16';
|
|
8
|
-
import { N20A } from '@atlaskit/theme/colors';
|
|
9
8
|
import { iconLabelMessages } from './messages';
|
|
10
9
|
var baseStyles = null;
|
|
11
10
|
export var UrlIcon = function UrlIcon(_ref) {
|
|
12
11
|
var url = _ref.url,
|
|
13
12
|
children = _ref.children;
|
|
14
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: ax(["_2rkofajl _bfhk3yfp _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"]),
|
|
16
14
|
style: {
|
|
17
|
-
backgroundImage: "url(".concat(url !== null && url !== void 0 ? url : '', ")")
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
backgroundImage: "url(".concat(url !== null && url !== void 0 ? url : '', ")")
|
|
16
|
+
},
|
|
17
|
+
className: ax(["_2rkofajl _bfhkizff _1lrw1f51 _12vemgnk _4t3ipxbi _1bsbpxbi _1o9zidpf"])
|
|
20
18
|
}, children);
|
|
21
19
|
};
|
|
22
20
|
export var PageIcon = function PageIcon() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
3
|
._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
4
4
|
._1bah1q9y{justify-content:baseline}
|
|
@@ -7,7 +7,7 @@ import SuccessIcon from '@atlaskit/icon/core/check-circle';
|
|
|
7
7
|
import StatusErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
var styles = {
|
|
10
|
-
message: "_zulp1b66
|
|
10
|
+
message: "_zulp1b66 _11c8wadc _1e0c1txw _1bah1q9y _1pfh1b66"
|
|
11
11
|
};
|
|
12
12
|
var messageAppearanceStyles = {
|
|
13
13
|
default: "_syaz1rpy",
|
|
@@ -23,12 +23,12 @@ var IconWrapper = function IconWrapper(_ref) {
|
|
|
23
23
|
};
|
|
24
24
|
var messageIcons = {
|
|
25
25
|
error: /*#__PURE__*/React.createElement(StatusErrorIcon, {
|
|
26
|
-
color: "var(--ds-text-danger, #
|
|
26
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
27
27
|
label: "error",
|
|
28
28
|
size: "small"
|
|
29
29
|
}),
|
|
30
30
|
valid: /*#__PURE__*/React.createElement(SuccessIcon, {
|
|
31
|
-
color: "var(--ds-text-success, #
|
|
31
|
+
color: "var(--ds-text-success, #4C6B1F)",
|
|
32
32
|
label: "success",
|
|
33
33
|
size: "small"
|
|
34
34
|
})
|
|
@@ -30,7 +30,7 @@ export var CreateFormFooter = function CreateFormFooter(_ref) {
|
|
|
30
30
|
className: ax(["_1e0c1txw _4cvr1h6o _2hwx1wug"])
|
|
31
31
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
32
32
|
label: formErrorMessage,
|
|
33
|
-
color: "var(--ds-icon-danger, #
|
|
33
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
34
|
spacing: "spacious"
|
|
35
35
|
}), formErrorMessage), /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
36
36
|
type: "button",
|
|
@@ -4,7 +4,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
4
4
|
|
|
5
5
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
6
6
|
|
|
7
|
-
export const MockDisclaimer = () => {
|
|
7
|
+
export const MockDisclaimer = (): React.JSX.Element => {
|
|
8
8
|
const { locale } = useIntl();
|
|
9
9
|
const parentLocale = locale.split(/[-_]/)[0];
|
|
10
10
|
const disclaimer = 'This is a mocked plugin.';
|
|
@@ -15,7 +15,7 @@ interface pluginProps {
|
|
|
15
15
|
shouldThrowError?: boolean;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export function MockPluginForm({ shouldThrowError }: pluginProps) {
|
|
18
|
+
export function MockPluginForm({ shouldThrowError }: pluginProps): React.JSX.Element {
|
|
19
19
|
const { onCreate, onFailure, onCancel } = useLinkCreateCallback();
|
|
20
20
|
|
|
21
21
|
type MockOptions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.22",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.7.0",
|
|
36
|
-
"@atlaskit/analytics-next": "^11.
|
|
36
|
+
"@atlaskit/analytics-next": "^11.2.0",
|
|
37
37
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
38
38
|
"@atlaskit/button": "^23.10.0",
|
|
39
39
|
"@atlaskit/css": "^0.19.0",
|
|
40
40
|
"@atlaskit/empty-state": "^10.1.0",
|
|
41
|
-
"@atlaskit/form": "^15.
|
|
42
|
-
"@atlaskit/icon": "^
|
|
41
|
+
"@atlaskit/form": "^15.5.0",
|
|
42
|
+
"@atlaskit/icon": "^34.0.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
44
|
"@atlaskit/icon-object": "^7.5.0",
|
|
45
45
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
46
46
|
"@atlaskit/link": "^3.3.0",
|
|
47
|
-
"@atlaskit/linking-common": "^9.
|
|
48
|
-
"@atlaskit/modal-dialog": "^14.
|
|
47
|
+
"@atlaskit/linking-common": "^9.11.0",
|
|
48
|
+
"@atlaskit/modal-dialog": "^14.14.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/primitives": "^18.
|
|
51
|
-
"@atlaskit/select": "^21.
|
|
50
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
51
|
+
"@atlaskit/select": "^21.10.0",
|
|
52
52
|
"@atlaskit/smart-user-picker": "^9.2.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/textfield": "^8.2.0",
|
|
55
55
|
"@atlaskit/theme": "^22.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^11.
|
|
56
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@compiled/react": "^0.20.0",
|
|
59
59
|
"debounce-promise": "^3.1.2",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"@af/visual-regression": "workspace:^",
|
|
71
71
|
"@atlaskit/drawer": "^12.0.0",
|
|
72
72
|
"@atlaskit/link-test-helpers": "^9.1.0",
|
|
73
|
-
"@atlaskit/popup": "^4.
|
|
74
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
73
|
+
"@atlaskit/popup": "^4.16.0",
|
|
74
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
75
75
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
76
76
|
"@testing-library/react": "^16.3.0",
|
|
77
77
|
"@testing-library/user-event": "^14.4.3",
|