@atlaskit/share 4.7.3 → 4.9.0
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 +16 -0
- package/dist/cjs/components/CopyLinkButton.js +5 -4
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +5 -4
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +5 -4
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/ShareHeader.d.ts +1 -1
- package/dist/types/components/styles.d.ts +1 -2
- package/dist/types-ts4.5/components/ShareHeader.d.ts +1 -1
- package/dist/types-ts4.5/components/styles.d.ts +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#65564](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65564) [`a6abbb0d08f5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a6abbb0d08f5) - Set autoFoucus to false for CopyLinkButton status message
|
|
8
|
+
|
|
9
|
+
## 4.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#64902](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64902) [`3104089c23f8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3104089c23f8) - Removed aria props from CopyLinkButton so that screen reader won't identify it as a collapsed button
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.7.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.messageContainerStyle = exports.default = exports.HiddenInput = exports.CopyLinkButton = exports.AUTO_DISMISS_MS = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
10
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -99,7 +98,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
99
98
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
100
99
|
children = _this$props.children,
|
|
101
100
|
iconBefore = _this$props.iconBefore;
|
|
102
|
-
return (0, _react2.jsx)(_styles.default,
|
|
101
|
+
return (0, _react2.jsx)(_styles.default, {
|
|
103
102
|
"aria-label": copyLinkButtonText,
|
|
104
103
|
isDisabled: isDisabled,
|
|
105
104
|
appearance: "subtle-link",
|
|
@@ -107,8 +106,9 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
107
106
|
label: "",
|
|
108
107
|
size: "medium"
|
|
109
108
|
}),
|
|
110
|
-
onClick: _this.handleClick
|
|
111
|
-
|
|
109
|
+
onClick: _this.handleClick,
|
|
110
|
+
ref: triggerProps.ref
|
|
111
|
+
}, children || copyLinkButtonText);
|
|
112
112
|
});
|
|
113
113
|
return _this;
|
|
114
114
|
}
|
|
@@ -133,6 +133,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
133
133
|
text: this.props.link
|
|
134
134
|
}), (0, _react2.jsx)(_popup.default, {
|
|
135
135
|
zIndex: Z_INDEX,
|
|
136
|
+
autoFocus: false,
|
|
136
137
|
content: function content() {
|
|
137
138
|
return (0, _react2.jsx)(_styled.InlineDialogContentWrapper, null, (0, _react2.jsx)("div", {
|
|
138
139
|
css: messageContainerStyle,
|
|
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
13
13
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
return _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/share",
|
|
16
|
-
packageVersion: "4.
|
|
16
|
+
packageVersion: "4.9.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import React from 'react';
|
|
@@ -81,7 +80,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
81
80
|
children,
|
|
82
81
|
iconBefore
|
|
83
82
|
} = this.props;
|
|
84
|
-
return jsx(Button,
|
|
83
|
+
return jsx(Button, {
|
|
85
84
|
"aria-label": copyLinkButtonText,
|
|
86
85
|
isDisabled: isDisabled,
|
|
87
86
|
appearance: "subtle-link",
|
|
@@ -89,8 +88,9 @@ export class CopyLinkButton extends React.Component {
|
|
|
89
88
|
label: "",
|
|
90
89
|
size: "medium"
|
|
91
90
|
}),
|
|
92
|
-
onClick: this.handleClick
|
|
93
|
-
|
|
91
|
+
onClick: this.handleClick,
|
|
92
|
+
ref: triggerProps.ref
|
|
93
|
+
}, children || copyLinkButtonText);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
componentWillUnmount() {
|
|
@@ -112,6 +112,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
112
112
|
text: this.props.link
|
|
113
113
|
}), jsx(Popup, {
|
|
114
114
|
zIndex: Z_INDEX,
|
|
115
|
+
autoFocus: false,
|
|
115
116
|
content: () => jsx(InlineDialogContentWrapper, null, jsx("div", {
|
|
116
117
|
css: messageContainerStyle,
|
|
117
118
|
"data-testid": "message-container"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.
|
|
4
|
+
packageVersion: "4.9.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
3
|
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
@@ -92,7 +91,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
92
91
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
93
92
|
children = _this$props.children,
|
|
94
93
|
iconBefore = _this$props.iconBefore;
|
|
95
|
-
return jsx(Button,
|
|
94
|
+
return jsx(Button, {
|
|
96
95
|
"aria-label": copyLinkButtonText,
|
|
97
96
|
isDisabled: isDisabled,
|
|
98
97
|
appearance: "subtle-link",
|
|
@@ -100,8 +99,9 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
100
99
|
label: "",
|
|
101
100
|
size: "medium"
|
|
102
101
|
}),
|
|
103
|
-
onClick: _this.handleClick
|
|
104
|
-
|
|
102
|
+
onClick: _this.handleClick,
|
|
103
|
+
ref: triggerProps.ref
|
|
104
|
+
}, children || copyLinkButtonText);
|
|
105
105
|
});
|
|
106
106
|
return _this;
|
|
107
107
|
}
|
|
@@ -126,6 +126,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
126
126
|
text: this.props.link
|
|
127
127
|
}), jsx(Popup, {
|
|
128
128
|
zIndex: Z_INDEX,
|
|
129
|
+
autoFocus: false,
|
|
129
130
|
content: function content() {
|
|
130
131
|
return jsx(InlineDialogContentWrapper, null, jsx("div", {
|
|
131
132
|
css: messageContainerStyle,
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "4.
|
|
9
|
+
packageVersion: "4.9.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -5,4 +5,4 @@ export type Props = {
|
|
|
5
5
|
title?: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const getFormHeaderTitleStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const ShareHeader: React.
|
|
8
|
+
export declare const ShareHeader: React.FunctionComponent<Props>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
2
|
export declare const MAX_PICKER_HEIGHT = 102;
|
|
4
|
-
declare const StyledButton: React.
|
|
3
|
+
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button/types").BaseProps, "overlay"> & import("@atlaskit/button/custom-theme-button").CustomThemeButtonOwnProps & React.RefAttributes<HTMLElement>>;
|
|
5
4
|
export default StyledButton;
|
|
@@ -5,4 +5,4 @@ export type Props = {
|
|
|
5
5
|
title?: React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const getFormHeaderTitleStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const ShareHeader: React.
|
|
8
|
+
export declare const ShareHeader: React.FunctionComponent<Props>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
2
|
export declare const MAX_PICKER_HEIGHT = 102;
|
|
4
|
-
declare const StyledButton: React.
|
|
3
|
+
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button/types").BaseProps, "overlay"> & import("@atlaskit/button/custom-theme-button").CustomThemeButtonOwnProps & React.RefAttributes<HTMLElement>>;
|
|
5
4
|
export default StyledButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
42
|
-
"@atlaskit/button": "^17.
|
|
42
|
+
"@atlaskit/button": "^17.2.0",
|
|
43
43
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
44
44
|
"@atlaskit/form": "^9.0.3",
|
|
45
45
|
"@atlaskit/icon": "^22.0.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@atlaskit/tabs": "^14.0.0",
|
|
52
52
|
"@atlaskit/textarea": "^5.0.0",
|
|
53
53
|
"@atlaskit/theme": "^12.6.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
-
"@atlaskit/tooltip": "^18.
|
|
54
|
+
"@atlaskit/tokens": "^1.33.0",
|
|
55
|
+
"@atlaskit/tooltip": "^18.1.0",
|
|
56
56
|
"@atlaskit/ufo": "^0.2.0",
|
|
57
57
|
"@atlaskit/user-picker": "^10.13.0",
|
|
58
58
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"react": "^16.8.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
72
|
+
"@atlaskit/editor-test-helpers": "^18.15.0",
|
|
73
73
|
"@atlaskit/flag": "^15.2.0",
|
|
74
74
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
75
75
|
"@testing-library/react": "^12.1.5",
|