@atlaskit/link-create 4.5.11 → 4.5.13
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/utils/locale/fetch-messages-for-locale.js +5 -4
- package/dist/cjs/ui/create-form/form-footer/main.js +2 -2
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/utils/locale/fetch-messages-for-locale.js +3 -2
- package/dist/es2019/ui/create-form/form-footer/main.js +1 -1
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/utils/locale/fetch-messages-for-locale.js +3 -2
- package/dist/esm/ui/create-form/form-footer/main.js +1 -1
- package/package.json +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 4.5.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.5.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`6a82d7964a37b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a82d7964a37b) -
|
|
14
|
+
Icon entrypoint migration
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.5.11
|
|
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.12" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -9,6 +9,7 @@ exports.fetchMessagesForLocale = void 0;
|
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
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); }
|
|
12
|
+
function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
|
|
12
13
|
var fetchMessagesForLocale = exports.fetchMessagesForLocale = /*#__PURE__*/function () {
|
|
13
14
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(locale) {
|
|
14
15
|
var messages, parentLocale, _messages;
|
|
@@ -19,11 +20,11 @@ var fetchMessagesForLocale = exports.fetchMessagesForLocale = /*#__PURE__*/funct
|
|
|
19
20
|
_context.next = 3;
|
|
20
21
|
return function (specifier) {
|
|
21
22
|
return new Promise(function (r) {
|
|
22
|
-
return r(specifier);
|
|
23
|
+
return r("".concat(specifier));
|
|
23
24
|
}).then(function (s) {
|
|
24
25
|
return _interopRequireWildcard(require(s));
|
|
25
26
|
});
|
|
26
|
-
}( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */"../../../i18n/".concat(locale.replace('-', '_')));
|
|
27
|
+
}( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions("../../../i18n/".concat(locale.replace('-', '_'))));
|
|
27
28
|
case 3:
|
|
28
29
|
messages = _context.sent;
|
|
29
30
|
return _context.abrupt("return", messages.default);
|
|
@@ -36,11 +37,11 @@ var fetchMessagesForLocale = exports.fetchMessagesForLocale = /*#__PURE__*/funct
|
|
|
36
37
|
_context.next = 13;
|
|
37
38
|
return function (specifier) {
|
|
38
39
|
return new Promise(function (r) {
|
|
39
|
-
return r(specifier);
|
|
40
|
+
return r("".concat(specifier));
|
|
40
41
|
}).then(function (s) {
|
|
41
42
|
return _interopRequireWildcard(require(s));
|
|
42
43
|
});
|
|
43
|
-
}( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */"../../../i18n/".concat(parentLocale));
|
|
44
|
+
}( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions("../../../i18n/".concat(parentLocale)));
|
|
44
45
|
case 13:
|
|
45
46
|
_messages = _context.sent;
|
|
46
47
|
return _context.abrupt("return", _messages.default);
|
|
@@ -12,7 +12,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _button = require("@atlaskit/button");
|
|
15
|
-
var
|
|
15
|
+
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
16
16
|
var _Button = require("../../../common/ui/Button");
|
|
17
17
|
var _editButton = require("./edit-button");
|
|
18
18
|
var _messages = require("./messages");
|
|
@@ -37,7 +37,7 @@ var CreateFormFooter = exports.CreateFormFooter = function CreateFormFooter(_ref
|
|
|
37
37
|
role: "alert",
|
|
38
38
|
"data-testid": "".concat(testId, "-error"),
|
|
39
39
|
className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _2hwx1wug"])
|
|
40
|
-
}, /*#__PURE__*/React.createElement(
|
|
40
|
+
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
41
41
|
label: formErrorMessage,
|
|
42
42
|
color: "var(--ds-icon-danger, #E34935)",
|
|
43
43
|
spacing: "spacious"
|
|
@@ -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.12" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
|
|
1
2
|
export const fetchMessagesForLocale = async locale => {
|
|
2
3
|
try {
|
|
3
|
-
const messages = await import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]"
|
|
4
|
+
const messages = await import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions(`../../../i18n/${locale.replace('-', '_')}`));
|
|
4
5
|
return messages.default;
|
|
5
6
|
} catch (e) {
|
|
6
7
|
// ignore
|
|
7
8
|
}
|
|
8
9
|
try {
|
|
9
10
|
const parentLocale = locale.split(/[-_]/)[0];
|
|
10
|
-
const messages = await import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]"
|
|
11
|
+
const messages = await import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions(`../../../i18n/${parentLocale}`));
|
|
11
12
|
return messages.default;
|
|
12
13
|
} catch (e) {
|
|
13
14
|
// ignore
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { ButtonGroup } from '@atlaskit/button';
|
|
7
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
7
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Button } from '../../../common/ui/Button';
|
|
9
9
|
import { EditButton } from './edit-button';
|
|
10
10
|
import { messages } from './messages';
|
|
@@ -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.12" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; }) : t; }
|
|
3
4
|
export var fetchMessagesForLocale = /*#__PURE__*/function () {
|
|
4
5
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
|
|
5
6
|
var messages, parentLocale, _messages;
|
|
@@ -8,7 +9,7 @@ export var fetchMessagesForLocale = /*#__PURE__*/function () {
|
|
|
8
9
|
case 0:
|
|
9
10
|
_context.prev = 0;
|
|
10
11
|
_context.next = 3;
|
|
11
|
-
return import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */"../../../i18n/".concat(locale.replace('-', '_')));
|
|
12
|
+
return import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions(_tsRewriteRelativeImportExtensions("../../../i18n/".concat(locale.replace('-', '_')))));
|
|
12
13
|
case 3:
|
|
13
14
|
messages = _context.sent;
|
|
14
15
|
return _context.abrupt("return", messages.default);
|
|
@@ -19,7 +20,7 @@ export var fetchMessagesForLocale = /*#__PURE__*/function () {
|
|
|
19
20
|
_context.prev = 9;
|
|
20
21
|
parentLocale = locale.split(/[-_]/)[0];
|
|
21
22
|
_context.next = 13;
|
|
22
|
-
return import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */"../../../i18n/".concat(parentLocale));
|
|
23
|
+
return import( /* webpackChunkName: "@atlaskit-internal_@atlassian/link-create-confluence-i18n-[request]" */_tsRewriteRelativeImportExtensions(_tsRewriteRelativeImportExtensions("../../../i18n/".concat(parentLocale))));
|
|
23
24
|
case 13:
|
|
24
25
|
_messages = _context.sent;
|
|
25
26
|
return _context.abrupt("return", _messages.default);
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { ButtonGroup } from '@atlaskit/button';
|
|
7
|
-
import ErrorIcon from '@atlaskit/icon/core/
|
|
7
|
+
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Button } from '../../../common/ui/Button';
|
|
9
9
|
import { EditButton } from './edit-button';
|
|
10
10
|
import { messages } from './messages';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.13",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.7.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
37
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
38
|
-
"@atlaskit/button": "^23.
|
|
39
|
-
"@atlaskit/css": "^0.
|
|
38
|
+
"@atlaskit/button": "^23.9.0",
|
|
39
|
+
"@atlaskit/css": "^0.19.0",
|
|
40
40
|
"@atlaskit/empty-state": "^10.1.0",
|
|
41
|
-
"@atlaskit/form": "^15.
|
|
42
|
-
"@atlaskit/icon": "^29.
|
|
41
|
+
"@atlaskit/form": "^15.3.0",
|
|
42
|
+
"@atlaskit/icon": "^29.4.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
44
|
"@atlaskit/icon-object": "^7.4.0",
|
|
45
45
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
46
|
-
"@atlaskit/link": "^3.
|
|
46
|
+
"@atlaskit/link": "^3.3.0",
|
|
47
47
|
"@atlaskit/linking-common": "^9.9.0",
|
|
48
|
-
"@atlaskit/modal-dialog": "^14.
|
|
48
|
+
"@atlaskit/modal-dialog": "^14.10.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/primitives": "^
|
|
51
|
-
"@atlaskit/select": "^21.
|
|
52
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
50
|
+
"@atlaskit/primitives": "^17.1.0",
|
|
51
|
+
"@atlaskit/select": "^21.7.0",
|
|
52
|
+
"@atlaskit/smart-user-picker": "^8.9.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/textfield": "^8.2.0",
|
|
55
55
|
"@atlaskit/theme": "^21.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
56
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@compiled/react": "^0.18.6",
|
|
59
59
|
"debounce-promise": "^3.1.2",
|
|
@@ -70,10 +70,9 @@
|
|
|
70
70
|
"@af/visual-regression": "workspace:^",
|
|
71
71
|
"@atlaskit/drawer": "^11.0.0",
|
|
72
72
|
"@atlaskit/link-test-helpers": "^9.0.0",
|
|
73
|
-
"@atlaskit/popup": "^4.
|
|
73
|
+
"@atlaskit/popup": "^4.13.0",
|
|
74
74
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
75
|
-
"@testing-library/react": "^
|
|
76
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
75
|
+
"@testing-library/react": "^16.3.0",
|
|
77
76
|
"@testing-library/user-event": "^14.4.3",
|
|
78
77
|
"@types/debounce-promise": "^3.1.2",
|
|
79
78
|
"fetch-mock": "^8.0.0",
|