@atlaskit/share 4.20.0 → 4.20.2
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 +13 -0
- package/dist/cjs/components/CopyLinkButton.js +1 -1
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +1 -1
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +1 -1
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/ErrorBoundary.d.ts +3 -2
- package/dist/types/components/ShareDialogContainer.d.ts +1 -1
- package/dist/types-ts4.5/components/ErrorBoundary.d.ts +3 -2
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.20.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f0bcc790b1eea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f0bcc790b1eea) -
|
|
8
|
+
safe reference of global navigator object
|
|
9
|
+
|
|
10
|
+
## 4.20.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.20.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -45,7 +45,7 @@ var boxWrapperStyle = (0, _primitives.xcss)({
|
|
|
45
45
|
var messageTextStyle = (0, _primitives.xcss)({
|
|
46
46
|
textIndent: 'space.075'
|
|
47
47
|
});
|
|
48
|
-
var isSafari = navigator.userAgent.indexOf('Safari');
|
|
48
|
+
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
49
49
|
var HiddenInput = exports.HiddenInput = /*#__PURE__*/_react.default.forwardRef(
|
|
50
50
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
51
51
|
function (props, ref) {
|
|
@@ -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.20.
|
|
16
|
+
packageVersion: "4.20.2"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -34,7 +34,7 @@ const boxWrapperStyle = xcss({
|
|
|
34
34
|
const messageTextStyle = xcss({
|
|
35
35
|
textIndent: 'space.075'
|
|
36
36
|
});
|
|
37
|
-
const isSafari = navigator.userAgent.indexOf('Safari');
|
|
37
|
+
const isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
38
38
|
export const HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
39
39
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
40
40
|
(props, ref) => jsx("input", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.20.
|
|
4
|
+
packageVersion: "4.20.2",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -41,7 +41,7 @@ var boxWrapperStyle = xcss({
|
|
|
41
41
|
var messageTextStyle = xcss({
|
|
42
42
|
textIndent: 'space.075'
|
|
43
43
|
});
|
|
44
|
-
var isSafari = navigator.userAgent.indexOf('Safari');
|
|
44
|
+
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
45
45
|
export var HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
46
46
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
47
47
|
function (props, ref) {
|
|
@@ -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.20.
|
|
9
|
+
packageVersion: "4.20.2"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
5
6
|
export default _default;
|
|
@@ -47,5 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
47
47
|
getFormShareLink: () => string;
|
|
48
48
|
render(): JSX.Element;
|
|
49
49
|
}
|
|
50
|
-
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
50
|
+
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
|
|
51
51
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
5
6
|
export default _default;
|
|
@@ -47,5 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
47
47
|
getFormShareLink: () => string;
|
|
48
48
|
render(): JSX.Element;
|
|
49
49
|
}
|
|
50
|
-
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<
|
|
50
|
+
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
|
|
51
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.2",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,25 +38,25 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
41
|
-
"@atlaskit/button": "^20.
|
|
42
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
41
|
+
"@atlaskit/button": "^20.2.0",
|
|
42
|
+
"@atlaskit/dropdown-menu": "^12.19.0",
|
|
43
43
|
"@atlaskit/form": "^10.5.0",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/icon": "^22.22.0",
|
|
45
45
|
"@atlaskit/menu": "^2.12.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
47
47
|
"@atlaskit/popper": "^6.3.0",
|
|
48
|
-
"@atlaskit/popup": "^1.
|
|
48
|
+
"@atlaskit/popup": "^1.28.0",
|
|
49
49
|
"@atlaskit/portal": "^4.9.0",
|
|
50
50
|
"@atlaskit/primitives": "^12.2.0",
|
|
51
51
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
52
52
|
"@atlaskit/spinner": "^16.3.0",
|
|
53
|
-
"@atlaskit/tabs": "^16.
|
|
53
|
+
"@atlaskit/tabs": "^16.5.0",
|
|
54
54
|
"@atlaskit/textarea": "^5.6.0",
|
|
55
55
|
"@atlaskit/theme": "^13.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
57
|
-
"@atlaskit/tooltip": "^18.
|
|
56
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
57
|
+
"@atlaskit/tooltip": "^18.8.0",
|
|
58
58
|
"@atlaskit/ufo": "^0.3.0",
|
|
59
|
-
"@atlaskit/user-picker": "^10.
|
|
59
|
+
"@atlaskit/user-picker": "^10.25.0",
|
|
60
60
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"react": "^16.8.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@atlaskit/editor-test-helpers": "^19.
|
|
74
|
+
"@atlaskit/editor-test-helpers": "^19.1.0",
|
|
75
75
|
"@atlaskit/flag": "^15.8.0",
|
|
76
76
|
"@testing-library/react": "^12.1.5",
|
|
77
77
|
"@testing-library/user-event": "^14.4.3",
|