@atlaskit/link-create 4.0.9 → 4.0.11
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/Button/index.js +2 -2
- package/dist/cjs/common/ui/error-boundary-ui/index.js +7 -1
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/Button/index.js +1 -1
- package/dist/es2019/common/ui/error-boundary-ui/index.js +7 -1
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/Button/index.js +1 -1
- package/dist/esm/common/ui/error-boundary-ui/index.js +7 -1
- package/dist/types/common/ui/Button/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/Button/index.d.ts +2 -2
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 4.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#150639](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150639)
|
|
14
|
+
[`7f8ad095c52c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f8ad095c52c4) -
|
|
15
|
+
[ux] EDM-12483 migrating button usages to use new ADS button
|
|
16
|
+
|
|
3
17
|
## 4.0.9
|
|
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: "4.0.
|
|
19
|
+
packageVersion: "4.0.11" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
|
-
var
|
|
13
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
14
14
|
var _constants = require("../../../common/constants");
|
|
15
15
|
var _analytics = _interopRequireDefault(require("../../../common/utils/analytics/analytics.codegen"));
|
|
16
16
|
var _excluded = ["actionSubjectId"];
|
|
@@ -21,7 +21,7 @@ var Button = exports.Button = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
21
21
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
22
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
23
23
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_new.default, (0, _extends2.default)({}, props, {
|
|
25
25
|
ref: ref,
|
|
26
26
|
onClick: function onClick(event) {
|
|
27
27
|
var _props$onClick;
|
|
@@ -11,6 +11,8 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
11
11
|
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
12
12
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
13
13
|
var _emptyState = _interopRequireDefault(require("@atlaskit/empty-state"));
|
|
14
|
+
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
16
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
15
17
|
var _errorSvg = _interopRequireDefault(require("./error-svg"));
|
|
16
18
|
var _messages2 = _interopRequireDefault(require("./messages"));
|
|
@@ -25,7 +27,11 @@ var ErrorBoundaryUI = exports.ErrorBoundaryUI = function ErrorBoundaryUI() {
|
|
|
25
27
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages2.default.description, {
|
|
26
28
|
values: {
|
|
27
29
|
a: function a(label) {
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
30
|
+
return (0, _platformFeatureFlags.fg)('platform-link-create-button-migration') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
31
|
+
href: (0, _atlassianContext.isFedRamp)() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
32
|
+
target: "_blank",
|
|
33
|
+
rel: "noopener noreferrer"
|
|
34
|
+
}, label) : /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
29
35
|
appearance: "link",
|
|
30
36
|
spacing: "none",
|
|
31
37
|
href: (0, _atlassianContext.isFedRamp)() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
@@ -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.0.
|
|
13
|
+
packageVersion: "4.0.11" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { UIAnalyticsEvent, useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
-
import AkButton from '@atlaskit/button';
|
|
4
|
+
import AkButton from '@atlaskit/button/new';
|
|
5
5
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
6
6
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
7
7
|
export const Button = /*#__PURE__*/forwardRef(({
|
|
@@ -4,6 +4,8 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
5
5
|
import Button from '@atlaskit/button';
|
|
6
6
|
import EmptyState from '@atlaskit/empty-state';
|
|
7
|
+
import Link from '@atlaskit/link';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import commonMessages from '../../messages';
|
|
8
10
|
import ErrorSVG from './error-svg';
|
|
9
11
|
import messages from './messages';
|
|
@@ -17,7 +19,11 @@ export const ErrorBoundaryUI = () => {
|
|
|
17
19
|
header: intl.formatMessage(commonMessages.genericErrorMessage),
|
|
18
20
|
description: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.description, {
|
|
19
21
|
values: {
|
|
20
|
-
a: label => /*#__PURE__*/React.createElement(
|
|
22
|
+
a: label => fg('platform-link-create-button-migration') ? /*#__PURE__*/React.createElement(Link, {
|
|
23
|
+
href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
24
|
+
target: "_blank",
|
|
25
|
+
rel: "noopener noreferrer"
|
|
26
|
+
}, label) : /*#__PURE__*/React.createElement(Button, {
|
|
21
27
|
appearance: "link",
|
|
22
28
|
spacing: "none",
|
|
23
29
|
href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
@@ -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.0.
|
|
13
|
+
packageVersion: "4.0.11" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["actionSubjectId"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { UIAnalyticsEvent, useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
|
-
import AkButton from '@atlaskit/button';
|
|
6
|
+
import AkButton from '@atlaskit/button/new';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
8
8
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
9
9
|
export var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -4,6 +4,8 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
5
5
|
import Button from '@atlaskit/button';
|
|
6
6
|
import EmptyState from '@atlaskit/empty-state';
|
|
7
|
+
import Link from '@atlaskit/link';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import commonMessages from '../../messages';
|
|
8
10
|
import ErrorSVG from './error-svg';
|
|
9
11
|
import messages from './messages';
|
|
@@ -18,7 +20,11 @@ export var ErrorBoundaryUI = function ErrorBoundaryUI() {
|
|
|
18
20
|
description: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.description, {
|
|
19
21
|
values: {
|
|
20
22
|
a: function a(label) {
|
|
21
|
-
return /*#__PURE__*/React.createElement(
|
|
23
|
+
return fg('platform-link-create-button-migration') ? /*#__PURE__*/React.createElement(Link, {
|
|
24
|
+
href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
25
|
+
target: "_blank",
|
|
26
|
+
rel: "noopener noreferrer"
|
|
27
|
+
}, label) : /*#__PURE__*/React.createElement(Button, {
|
|
22
28
|
appearance: "link",
|
|
23
29
|
spacing: "none",
|
|
24
30
|
href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import AkButton from '@atlaskit/button';
|
|
2
|
+
import AkButton from '@atlaskit/button/new';
|
|
3
3
|
import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
|
|
4
4
|
type ButtonProps = React.ComponentProps<typeof AkButton> & {
|
|
5
5
|
actionSubjectId: keyof {
|
|
6
6
|
[Key in keyof AnalyticsEventAttributes as Key extends `ui.button.clicked.${infer ActionSubjectId}` ? ActionSubjectId : never]: any;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import AkButton from '@atlaskit/button';
|
|
2
|
+
import AkButton from '@atlaskit/button/new';
|
|
3
3
|
import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
|
|
4
4
|
type ButtonProps = React.ComponentProps<typeof AkButton> & {
|
|
5
5
|
actionSubjectId: keyof {
|
|
6
6
|
[Key in keyof AnalyticsEventAttributes as Key extends `ui.button.clicked.${infer ActionSubjectId}` ? ActionSubjectId : never]: any;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,15 +42,16 @@
|
|
|
42
42
|
"@atlaskit/css": "^0.10.0",
|
|
43
43
|
"@atlaskit/empty-state": "^10.0.0",
|
|
44
44
|
"@atlaskit/form": "^12.0.0",
|
|
45
|
-
"@atlaskit/icon": "^
|
|
45
|
+
"@atlaskit/icon": "^26.0.0",
|
|
46
46
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
47
47
|
"@atlaskit/icon-object": "^7.1.0",
|
|
48
48
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
49
49
|
"@atlaskit/layering": "^2.1.0",
|
|
50
|
-
"@atlaskit/
|
|
50
|
+
"@atlaskit/link": "^3.1.0",
|
|
51
|
+
"@atlaskit/linking-common": "^8.1.0",
|
|
51
52
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
52
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
|
-
"@atlaskit/primitives": "^14.
|
|
54
|
+
"@atlaskit/primitives": "^14.7.0",
|
|
54
55
|
"@atlaskit/select": "^20.4.0",
|
|
55
56
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
56
57
|
"@atlaskit/spinner": "^18.0.0",
|
|
@@ -123,5 +124,10 @@
|
|
|
123
124
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
124
125
|
]
|
|
125
126
|
}
|
|
127
|
+
},
|
|
128
|
+
"platform-feature-flags": {
|
|
129
|
+
"platform-link-create-button-migration": {
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
}
|