@atlaskit/share 3.5.4 → 3.5.6
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 +15 -0
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +10 -7
- package/dist/cjs/components/LazyShareForm/lazy.js +8 -6
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +8 -6
- package/dist/es2019/components/LazyShareForm/lazy.js +8 -6
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +8 -6
- package/dist/esm/components/LazyShareForm/lazy.js +8 -6
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +2 -2
- package/dist/types/components/LazyShareForm/lazy.d.ts +2 -2
- package/dist/types/types/User.d.ts +1 -1
- package/dist/types-ts4.0/components/LazyShareForm/LazyShareForm.d.ts +2 -2
- package/dist/types-ts4.0/components/LazyShareForm/lazy.d.ts +2 -2
- package/dist/types-ts4.0/types/User.d.ts +1 -1
- package/package.json +13 -12
- package/report.api.md +50 -43
- package/tmp/api-report-tmp.d.ts +318 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 3.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`faf391ab64a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/faf391ab64a) - Implementing new CustomOption which will allow for a custom avatar
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 3.5.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`e4288af2ae8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4288af2ae8) - Add jsx pragma to fix @emotion/react styles not applying correctly
|
|
15
|
+
- [`0915ecdd1db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0915ecdd1db) - Removed styled components from dev and peer dependencies
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.5.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -9,6 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
|
|
12
14
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
15
|
|
|
14
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -21,6 +23,8 @@ var _ShareForm = require("../ShareForm");
|
|
|
21
23
|
|
|
22
24
|
var _ShareFormWrapper = require("../ShareFormWrapper");
|
|
23
25
|
|
|
26
|
+
/** @jsx jsx */
|
|
27
|
+
|
|
24
28
|
/**
|
|
25
29
|
* A Share form content which is lazy-loaded.
|
|
26
30
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
@@ -59,12 +63,11 @@ function LazyShareForm(props) {
|
|
|
59
63
|
defaultValue = props.defaultValue,
|
|
60
64
|
showTitle = props.showTitle,
|
|
61
65
|
orgId = props.orgId;
|
|
62
|
-
|
|
63
|
-
var footer = /*#__PURE__*/_react.default.createElement("div", null, bottomMessage ? /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
+
var footer = (0, _react2.jsx)("div", null, bottomMessage ? (0, _react2.jsx)("div", {
|
|
64
67
|
css: {
|
|
65
68
|
width: "".concat((0, _constants.gridSize)() * 44, "px")
|
|
66
69
|
}
|
|
67
|
-
}, bottomMessage) : null, customFooter && selectedIntegration === null &&
|
|
70
|
+
}, bottomMessage) : null, customFooter && selectedIntegration === null && (0, _react2.jsx)("div", {
|
|
68
71
|
css: {
|
|
69
72
|
margin: "0 ".concat(-(0, _constants.gridSize)() * 3, "px ").concat(-(0, _constants.gridSize)() * 2, "px ").concat(-(0, _constants.gridSize)() * 3, "px")
|
|
70
73
|
}
|
|
@@ -74,19 +77,19 @@ function LazyShareForm(props) {
|
|
|
74
77
|
setIsLoading(false);
|
|
75
78
|
});
|
|
76
79
|
|
|
77
|
-
return
|
|
80
|
+
return (0, _react2.jsx)(_ShareFormWrapper.ShareFormWrapper, {
|
|
78
81
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
79
82
|
// so we don't need to show title via ShareFormWrapper
|
|
80
83
|
,
|
|
81
84
|
shouldShowTitle: false
|
|
82
|
-
}, showIntegrationForm && selectedIntegration !== null ?
|
|
85
|
+
}, showIntegrationForm && selectedIntegration !== null ? (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
83
86
|
data: {
|
|
84
87
|
source: _analytics.INTEGRATION_MODAL_SOURCE
|
|
85
88
|
}
|
|
86
|
-
},
|
|
89
|
+
}, (0, _react2.jsx)(_IntegrationForm.IntegrationForm, {
|
|
87
90
|
Content: selectedIntegration.Content,
|
|
88
91
|
onIntegrationClose: onDialogClose
|
|
89
|
-
})) :
|
|
92
|
+
})) : (0, _react2.jsx)(_ShareForm.ShareForm, {
|
|
90
93
|
copyLink: copyLink,
|
|
91
94
|
loadOptions: loadOptions,
|
|
92
95
|
title: shareFormTitle,
|
|
@@ -11,6 +11,8 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
14
16
|
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
15
17
|
|
|
16
18
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
@@ -38,11 +40,11 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
38
40
|
setIsLoading(true);
|
|
39
41
|
});
|
|
40
42
|
|
|
41
|
-
return
|
|
43
|
+
return (0, _react2.jsx)(_ShareFormWrapper.ShareFormWrapper, {
|
|
42
44
|
shareFormTitle: shareFormTitle // if `showTitle` is passed, we use it. Otherwise, we will show title for loading dialog.
|
|
43
45
|
,
|
|
44
46
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
45
|
-
},
|
|
47
|
+
}, (0, _react2.jsx)("div", {
|
|
46
48
|
css: {
|
|
47
49
|
width: '100%',
|
|
48
50
|
height: '100%',
|
|
@@ -50,17 +52,17 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
50
52
|
justifyContent: 'center',
|
|
51
53
|
alignContent: 'center'
|
|
52
54
|
}
|
|
53
|
-
},
|
|
55
|
+
}, (0, _react2.jsx)(_spinner.default, null)));
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
var _default = function _default(props) {
|
|
57
|
-
return
|
|
58
|
-
fallback:
|
|
59
|
+
return (0, _react2.jsx)(_reactLooselyLazy.LazySuspense, {
|
|
60
|
+
fallback: (0, _react2.jsx)(LoadingDialog, {
|
|
59
61
|
shareFormTitle: props.shareFormTitle,
|
|
60
62
|
showTitle: props.showTitle,
|
|
61
63
|
setIsLoading: props.setIsLoading
|
|
62
64
|
})
|
|
63
|
-
},
|
|
65
|
+
}, (0, _react2.jsx)(LazyShareFormLazy, props));
|
|
64
66
|
};
|
|
65
67
|
|
|
66
68
|
exports.default = _default;
|
|
@@ -19,7 +19,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
19
19
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20
20
|
return _objectSpread({
|
|
21
21
|
packageName: "@atlaskit/share",
|
|
22
|
-
packageVersion: "3.5.
|
|
22
|
+
packageVersion: "3.5.6"
|
|
23
23
|
}, attributes);
|
|
24
24
|
};
|
|
25
25
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
6
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
@@ -49,11 +51,11 @@ function LazyShareForm(props) {
|
|
|
49
51
|
showTitle,
|
|
50
52
|
orgId
|
|
51
53
|
} = props;
|
|
52
|
-
const footer =
|
|
54
|
+
const footer = jsx("div", null, bottomMessage ? jsx("div", {
|
|
53
55
|
css: {
|
|
54
56
|
width: `${gridSize() * 44}px`
|
|
55
57
|
}
|
|
56
|
-
}, bottomMessage) : null, customFooter && selectedIntegration === null &&
|
|
58
|
+
}, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
|
|
57
59
|
css: {
|
|
58
60
|
margin: `0 ${-gridSize() * 3}px ${-gridSize() * 2}px ${-gridSize() * 3}px`
|
|
59
61
|
}
|
|
@@ -61,19 +63,19 @@ function LazyShareForm(props) {
|
|
|
61
63
|
React.useEffect(() => {
|
|
62
64
|
setIsLoading(false);
|
|
63
65
|
});
|
|
64
|
-
return
|
|
66
|
+
return jsx(ShareFormWrapper, {
|
|
65
67
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
66
68
|
// so we don't need to show title via ShareFormWrapper
|
|
67
69
|
,
|
|
68
70
|
shouldShowTitle: false
|
|
69
|
-
}, showIntegrationForm && selectedIntegration !== null ?
|
|
71
|
+
}, showIntegrationForm && selectedIntegration !== null ? jsx(AnalyticsContext, {
|
|
70
72
|
data: {
|
|
71
73
|
source: INTEGRATION_MODAL_SOURCE
|
|
72
74
|
}
|
|
73
|
-
},
|
|
75
|
+
}, jsx(IntegrationForm, {
|
|
74
76
|
Content: selectedIntegration.Content,
|
|
75
77
|
onIntegrationClose: onDialogClose
|
|
76
|
-
})) :
|
|
78
|
+
})) : jsx(ShareForm, {
|
|
77
79
|
copyLink: copyLink,
|
|
78
80
|
loadOptions: loadOptions,
|
|
79
81
|
title: shareFormTitle,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
3
5
|
import Spinner from '@atlaskit/spinner';
|
|
4
6
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
@@ -16,11 +18,11 @@ const LoadingDialog = ({
|
|
|
16
18
|
React.useEffect(() => {
|
|
17
19
|
setIsLoading(true);
|
|
18
20
|
});
|
|
19
|
-
return
|
|
21
|
+
return jsx(ShareFormWrapper, {
|
|
20
22
|
shareFormTitle: shareFormTitle // if `showTitle` is passed, we use it. Otherwise, we will show title for loading dialog.
|
|
21
23
|
,
|
|
22
24
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
23
|
-
},
|
|
25
|
+
}, jsx("div", {
|
|
24
26
|
css: {
|
|
25
27
|
width: '100%',
|
|
26
28
|
height: '100%',
|
|
@@ -28,13 +30,13 @@ const LoadingDialog = ({
|
|
|
28
30
|
justifyContent: 'center',
|
|
29
31
|
alignContent: 'center'
|
|
30
32
|
}
|
|
31
|
-
},
|
|
33
|
+
}, jsx(Spinner, null)));
|
|
32
34
|
};
|
|
33
35
|
|
|
34
|
-
export default (props =>
|
|
35
|
-
fallback:
|
|
36
|
+
export default (props => jsx(LazySuspense, {
|
|
37
|
+
fallback: jsx(LoadingDialog, {
|
|
36
38
|
shareFormTitle: props.shareFormTitle,
|
|
37
39
|
showTitle: props.showTitle,
|
|
38
40
|
setIsLoading: props.setIsLoading
|
|
39
41
|
})
|
|
40
|
-
},
|
|
42
|
+
}, jsx(LazyShareFormLazy, props)));
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
6
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
@@ -44,11 +46,11 @@ function LazyShareForm(props) {
|
|
|
44
46
|
defaultValue = props.defaultValue,
|
|
45
47
|
showTitle = props.showTitle,
|
|
46
48
|
orgId = props.orgId;
|
|
47
|
-
var footer =
|
|
49
|
+
var footer = jsx("div", null, bottomMessage ? jsx("div", {
|
|
48
50
|
css: {
|
|
49
51
|
width: "".concat(gridSize() * 44, "px")
|
|
50
52
|
}
|
|
51
|
-
}, bottomMessage) : null, customFooter && selectedIntegration === null &&
|
|
53
|
+
}, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
|
|
52
54
|
css: {
|
|
53
55
|
margin: "0 ".concat(-gridSize() * 3, "px ").concat(-gridSize() * 2, "px ").concat(-gridSize() * 3, "px")
|
|
54
56
|
}
|
|
@@ -56,19 +58,19 @@ function LazyShareForm(props) {
|
|
|
56
58
|
React.useEffect(function () {
|
|
57
59
|
setIsLoading(false);
|
|
58
60
|
});
|
|
59
|
-
return
|
|
61
|
+
return jsx(ShareFormWrapper, {
|
|
60
62
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
61
63
|
// so we don't need to show title via ShareFormWrapper
|
|
62
64
|
,
|
|
63
65
|
shouldShowTitle: false
|
|
64
|
-
}, showIntegrationForm && selectedIntegration !== null ?
|
|
66
|
+
}, showIntegrationForm && selectedIntegration !== null ? jsx(AnalyticsContext, {
|
|
65
67
|
data: {
|
|
66
68
|
source: INTEGRATION_MODAL_SOURCE
|
|
67
69
|
}
|
|
68
|
-
},
|
|
70
|
+
}, jsx(IntegrationForm, {
|
|
69
71
|
Content: selectedIntegration.Content,
|
|
70
72
|
onIntegrationClose: onDialogClose
|
|
71
|
-
})) :
|
|
73
|
+
})) : jsx(ShareForm, {
|
|
72
74
|
copyLink: copyLink,
|
|
73
75
|
loadOptions: loadOptions,
|
|
74
76
|
title: shareFormTitle,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
3
5
|
import Spinner from '@atlaskit/spinner';
|
|
4
6
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
@@ -17,11 +19,11 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
17
19
|
React.useEffect(function () {
|
|
18
20
|
setIsLoading(true);
|
|
19
21
|
});
|
|
20
|
-
return
|
|
22
|
+
return jsx(ShareFormWrapper, {
|
|
21
23
|
shareFormTitle: shareFormTitle // if `showTitle` is passed, we use it. Otherwise, we will show title for loading dialog.
|
|
22
24
|
,
|
|
23
25
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
24
|
-
},
|
|
26
|
+
}, jsx("div", {
|
|
25
27
|
css: {
|
|
26
28
|
width: '100%',
|
|
27
29
|
height: '100%',
|
|
@@ -29,15 +31,15 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
29
31
|
justifyContent: 'center',
|
|
30
32
|
alignContent: 'center'
|
|
31
33
|
}
|
|
32
|
-
},
|
|
34
|
+
}, jsx(Spinner, null)));
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
export default (function (props) {
|
|
36
|
-
return
|
|
37
|
-
fallback:
|
|
38
|
+
return jsx(LazySuspense, {
|
|
39
|
+
fallback: jsx(LoadingDialog, {
|
|
38
40
|
shareFormTitle: props.shareFormTitle,
|
|
39
41
|
showTitle: props.showTitle,
|
|
40
42
|
setIsLoading: props.setIsLoading
|
|
41
43
|
})
|
|
42
|
-
},
|
|
44
|
+
}, jsx(LazyShareFormLazy, props));
|
|
43
45
|
});
|
|
@@ -10,7 +10,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
10
10
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11
11
|
return _objectSpread({
|
|
12
12
|
packageName: "@atlaskit/share",
|
|
13
|
-
packageVersion: "3.5.
|
|
13
|
+
packageVersion: "3.5.6"
|
|
14
14
|
}, attributes);
|
|
15
15
|
};
|
|
16
16
|
|
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { IntegrationFormProps } from '../IntegrationForm';
|
|
@@ -16,5 +16,5 @@ export declare type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copy
|
|
|
16
16
|
* A Share form content which is lazy-loaded.
|
|
17
17
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
18
18
|
*/
|
|
19
|
-
declare function LazyShareForm(props: LazyShareFormProps): JSX.Element;
|
|
19
|
+
declare function LazyShareForm(props: LazyShareFormProps): jsx.JSX.Element;
|
|
20
20
|
export default LazyShareForm;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { LazyShareFormProps } from './LazyShareForm';
|
|
3
|
-
declare const _default: (props: LazyShareFormProps) => JSX.Element;
|
|
3
|
+
declare const _default: (props: LazyShareFormProps) => jsx.JSX.Element;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { IntegrationFormProps } from '../IntegrationForm';
|
|
@@ -16,5 +16,5 @@ export declare type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copy
|
|
|
16
16
|
* A Share form content which is lazy-loaded.
|
|
17
17
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
18
18
|
*/
|
|
19
|
-
declare function LazyShareForm(props: LazyShareFormProps): JSX.Element;
|
|
19
|
+
declare function LazyShareForm(props: LazyShareFormProps): jsx.JSX.Element;
|
|
20
20
|
export default LazyShareForm;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { LazyShareFormProps } from './LazyShareForm';
|
|
3
|
-
declare const _default: (props: LazyShareFormProps) => JSX.Element;
|
|
3
|
+
declare const _default: (props: LazyShareFormProps) => jsx.JSX.Element;
|
|
4
4
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -38,21 +39,21 @@
|
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
41
|
-
"@atlaskit/button": "^16.
|
|
42
|
+
"@atlaskit/button": "^16.4.0",
|
|
42
43
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
43
|
-
"@atlaskit/form": "^8.
|
|
44
|
-
"@atlaskit/icon": "^21.
|
|
45
|
-
"@atlaskit/popup": "^1.
|
|
44
|
+
"@atlaskit/form": "^8.7.0",
|
|
45
|
+
"@atlaskit/icon": "^21.11.0",
|
|
46
|
+
"@atlaskit/popup": "^1.5.0",
|
|
46
47
|
"@atlaskit/portal": "^4.0.0",
|
|
47
48
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
48
|
-
"@atlaskit/spinner": "^15.
|
|
49
|
+
"@atlaskit/spinner": "^15.2.0",
|
|
49
50
|
"@atlaskit/tabs": "^13.3.0",
|
|
50
|
-
"@atlaskit/textarea": "^4.
|
|
51
|
+
"@atlaskit/textarea": "^4.5.0",
|
|
51
52
|
"@atlaskit/theme": "^12.2.0",
|
|
52
53
|
"@atlaskit/tokens": "^0.10.0",
|
|
53
|
-
"@atlaskit/tooltip": "^17.
|
|
54
|
+
"@atlaskit/tooltip": "^17.6.0",
|
|
54
55
|
"@atlaskit/ufo": "^0.1.0",
|
|
55
|
-
"@atlaskit/user-picker": "^9.
|
|
56
|
+
"@atlaskit/user-picker": "^9.6.0",
|
|
56
57
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
57
58
|
"@babel/runtime": "^7.0.0",
|
|
58
59
|
"@emotion/react": "^11.7.1",
|
|
@@ -70,10 +71,10 @@
|
|
|
70
71
|
"@atlaskit/docs": "^9.0.0",
|
|
71
72
|
"@atlaskit/editor-test-helpers": "^17.2.0",
|
|
72
73
|
"@atlaskit/flag": "^14.7.0",
|
|
73
|
-
"@atlaskit/section-message": "^6.
|
|
74
|
+
"@atlaskit/section-message": "^6.3.0",
|
|
74
75
|
"@atlaskit/select": "^15.7.0",
|
|
75
76
|
"@atlaskit/toggle": "^12.5.0",
|
|
76
|
-
"@atlaskit/util-data-test": "^17.
|
|
77
|
+
"@atlaskit/util-data-test": "^17.6.0",
|
|
77
78
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
78
79
|
"enzyme": "^3.10.0",
|
|
79
80
|
"enzyme-adapter-react-16": "^1.15.1",
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/share"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.0
|
|
7
|
-
-->
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
12
17
|
/// <reference types="react" />
|
|
@@ -28,7 +33,7 @@ export const ADMIN_NOTIFIED = 'admin-notified';
|
|
|
28
33
|
|
|
29
34
|
// @public (undocumented)
|
|
30
35
|
type Comment_2 = {
|
|
31
|
-
format: '
|
|
36
|
+
format: 'adf' | 'plain_text';
|
|
32
37
|
value: string;
|
|
33
38
|
};
|
|
34
39
|
export { Comment_2 as Comment };
|
|
@@ -77,7 +82,7 @@ export type Flag = {
|
|
|
77
82
|
};
|
|
78
83
|
|
|
79
84
|
// @public (undocumented)
|
|
80
|
-
export type FlagType = '
|
|
85
|
+
export type FlagType = 'admin-notified' | 'object-shared';
|
|
81
86
|
|
|
82
87
|
// @public (undocumented)
|
|
83
88
|
export type FormChildrenArgs<T> = {
|
|
@@ -102,7 +107,7 @@ type IntegrationContentProps = {
|
|
|
102
107
|
};
|
|
103
108
|
|
|
104
109
|
// @public (undocumented)
|
|
105
|
-
type IntegrationMode = '
|
|
110
|
+
type IntegrationMode = 'off' | 'split' | 'tabs';
|
|
106
111
|
|
|
107
112
|
// @public (undocumented)
|
|
108
113
|
export type KeysOfType<T, TProp> = {
|
|
@@ -120,7 +125,7 @@ export type MessageDescriptor = {
|
|
|
120
125
|
export type MetaData = {
|
|
121
126
|
productId: string;
|
|
122
127
|
atlOriginId: string;
|
|
123
|
-
shareeAction?: '
|
|
128
|
+
shareeAction?: 'edit' | 'view';
|
|
124
129
|
};
|
|
125
130
|
|
|
126
131
|
// @public (undocumented)
|
|
@@ -137,7 +142,7 @@ export type OriginTracing = {
|
|
|
137
142
|
addToUrl: (link: string) => string;
|
|
138
143
|
toAnalyticsAttributes: (
|
|
139
144
|
attrs: OriginAnalyticAttributes,
|
|
140
|
-
) =>
|
|
145
|
+
) => OriginTracingForSubSequentEvents | OriginTracingWithIdGenerated;
|
|
141
146
|
};
|
|
142
147
|
|
|
143
148
|
// @public (undocumented)
|
|
@@ -170,7 +175,7 @@ export type ProductId =
|
|
|
170
175
|
| 'trello';
|
|
171
176
|
|
|
172
177
|
// @public (undocumented)
|
|
173
|
-
export type ProductName = '
|
|
178
|
+
export type ProductName = 'confluence' | 'jira';
|
|
174
179
|
|
|
175
180
|
// @public (undocumented)
|
|
176
181
|
type Props = {
|
|
@@ -178,7 +183,7 @@ type Props = {
|
|
|
178
183
|
link: string;
|
|
179
184
|
isDisabled?: boolean;
|
|
180
185
|
copyTooltipText?: string;
|
|
181
|
-
children?:
|
|
186
|
+
children?: ReactElement | string;
|
|
182
187
|
copyLinkButtonText: string;
|
|
183
188
|
copiedToClipboardText: string;
|
|
184
189
|
iconBefore?: ReactElement;
|
|
@@ -224,46 +229,46 @@ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
|
|
|
224
229
|
WithAnalyticsEventsProps & ShareDialogContainerProps,
|
|
225
230
|
keyof WithAnalyticsEventsProps
|
|
226
231
|
>,
|
|
227
|
-
| '
|
|
228
|
-
| '
|
|
229
|
-
| '
|
|
232
|
+
| 'bottomMessage'
|
|
233
|
+
| 'cloudId'
|
|
234
|
+
| 'copyTooltipText'
|
|
235
|
+
| 'customFooter'
|
|
230
236
|
| 'dialogPlacement'
|
|
237
|
+
| 'dialogZIndex'
|
|
238
|
+
| 'formatCopyLink'
|
|
239
|
+
| 'integrationMode'
|
|
240
|
+
| 'isAutoOpenDialog'
|
|
241
|
+
| 'isCopyDisabled'
|
|
242
|
+
| 'isPublicLink'
|
|
231
243
|
| 'loadUserOptions'
|
|
232
|
-
| '
|
|
244
|
+
| 'loggedInAccountId'
|
|
233
245
|
| 'onDialogClose'
|
|
246
|
+
| 'onDialogOpen'
|
|
247
|
+
| 'onTriggerButtonClick'
|
|
234
248
|
| 'onUserSelectionChange'
|
|
249
|
+
| 'orgId'
|
|
250
|
+
| 'originTracingFactory'
|
|
251
|
+
| 'productId'
|
|
235
252
|
| 'renderCustomTriggerButton'
|
|
253
|
+
| 'shareAri'
|
|
254
|
+
| 'shareClient'
|
|
236
255
|
| 'shareContentType'
|
|
237
|
-
| '
|
|
256
|
+
| 'shareFieldsFooter'
|
|
238
257
|
| 'shareFormHelperMessage'
|
|
258
|
+
| 'shareFormTitle'
|
|
259
|
+
| 'shareIntegrations'
|
|
260
|
+
| 'shareLink'
|
|
261
|
+
| 'shareTitle'
|
|
262
|
+
| 'shortLinkData'
|
|
263
|
+
| 'shouldCloseOnEscapePress'
|
|
239
264
|
| 'showFlags'
|
|
240
|
-
| '
|
|
265
|
+
| 'tabIndex'
|
|
241
266
|
| 'triggerButtonAppearance'
|
|
242
267
|
| 'triggerButtonIcon'
|
|
243
268
|
| 'triggerButtonStyle'
|
|
244
269
|
| 'triggerButtonTooltipPosition'
|
|
245
270
|
| 'triggerButtonTooltipText'
|
|
246
|
-
| 'cloudId'
|
|
247
|
-
| 'bottomMessage'
|
|
248
|
-
| 'customFooter'
|
|
249
|
-
| 'isCopyDisabled'
|
|
250
|
-
| 'isPublicLink'
|
|
251
|
-
| 'integrationMode'
|
|
252
|
-
| 'shareFieldsFooter'
|
|
253
|
-
| 'shareIntegrations'
|
|
254
|
-
| 'shareAri'
|
|
255
|
-
| 'tabIndex'
|
|
256
|
-
| 'copyTooltipText'
|
|
257
|
-
| 'dialogZIndex'
|
|
258
|
-
| 'orgId'
|
|
259
|
-
| 'shareClient'
|
|
260
271
|
| 'urlShortenerClient'
|
|
261
|
-
| 'shortLinkData'
|
|
262
|
-
| 'formatCopyLink'
|
|
263
|
-
| 'originTracingFactory'
|
|
264
|
-
| 'productId'
|
|
265
|
-
| 'shareLink'
|
|
266
|
-
| 'shareTitle'
|
|
267
272
|
| 'useUrlShortener'
|
|
268
273
|
> &
|
|
269
274
|
Partial<
|
|
@@ -279,7 +284,7 @@ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
|
|
|
279
284
|
Pick<
|
|
280
285
|
{
|
|
281
286
|
enableSmartUserPicker: boolean;
|
|
282
|
-
shareeAction: '
|
|
287
|
+
shareeAction: 'edit' | 'view';
|
|
283
288
|
product: string;
|
|
284
289
|
},
|
|
285
290
|
never
|
|
@@ -323,7 +328,7 @@ export type ShareDialogContainerProps = {
|
|
|
323
328
|
triggerButtonTooltipText?: React.ReactNode;
|
|
324
329
|
bottomMessage?: React.ReactNode;
|
|
325
330
|
useUrlShortener?: boolean;
|
|
326
|
-
shareeAction?: '
|
|
331
|
+
shareeAction?: 'edit' | 'view';
|
|
327
332
|
product?: ProductName;
|
|
328
333
|
customFooter?: React.ReactNode;
|
|
329
334
|
onUserSelectionChange?: (value: Value) => void;
|
|
@@ -388,7 +393,7 @@ enum TabType {
|
|
|
388
393
|
}
|
|
389
394
|
|
|
390
395
|
// @public (undocumented)
|
|
391
|
-
export type TooltipPosition = '
|
|
396
|
+
export type TooltipPosition = 'bottom' | 'left' | 'mouse' | 'right' | 'top';
|
|
392
397
|
|
|
393
398
|
// @public (undocumented)
|
|
394
399
|
interface UrlShortenerClient {
|
|
@@ -397,7 +402,7 @@ interface UrlShortenerClient {
|
|
|
397
402
|
}
|
|
398
403
|
|
|
399
404
|
// @public (undocumented)
|
|
400
|
-
export type User =
|
|
405
|
+
export type User = UserWithEmail | UserWithId;
|
|
401
406
|
|
|
402
407
|
// @public (undocumented)
|
|
403
408
|
export type UserWithEmail = {
|
|
@@ -407,9 +412,11 @@ export type UserWithEmail = {
|
|
|
407
412
|
|
|
408
413
|
// @public (undocumented)
|
|
409
414
|
export type UserWithId = {
|
|
410
|
-
type: '
|
|
415
|
+
type: 'custom' | 'group' | 'team' | 'user';
|
|
411
416
|
id: string;
|
|
412
417
|
};
|
|
413
418
|
|
|
414
419
|
// (No @packageDocumentation comment for this package)
|
|
415
420
|
```
|
|
421
|
+
|
|
422
|
+
<!--SECTION END: Main Entry Types-->
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/share"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import type { Appearance } from '@atlaskit/button/types';
|
|
10
|
+
import type { IconProps } from '@atlaskit/icon';
|
|
11
|
+
import { jsx } from '@emotion/react';
|
|
12
|
+
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
13
|
+
import { OptionData } from '@atlaskit/smart-user-picker';
|
|
14
|
+
import type { Placement } from '@atlaskit/popper';
|
|
15
|
+
import { default as React_2 } from 'react';
|
|
16
|
+
import { ReactElement } from 'react';
|
|
17
|
+
import { TriggerProps } from '@atlaskit/popup';
|
|
18
|
+
import type { Value } from '@atlaskit/smart-user-picker';
|
|
19
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
20
|
+
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
export const ADMIN_NOTIFIED = "admin-notified";
|
|
23
|
+
|
|
24
|
+
// @public (undocumented)
|
|
25
|
+
type Comment_2 = {
|
|
26
|
+
format: 'adf' | 'plain_text';
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
export { Comment_2 as Comment }
|
|
30
|
+
|
|
31
|
+
// @public (undocumented)
|
|
32
|
+
export type ConfigResponse = {
|
|
33
|
+
disableSharingToEmails?: boolean;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// @public (undocumented)
|
|
37
|
+
export type Content = {
|
|
38
|
+
ari: string;
|
|
39
|
+
link: string;
|
|
40
|
+
title: string;
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export class CopyLinkButton extends React_2.Component<Props, State> {
|
|
46
|
+
// (undocumented)
|
|
47
|
+
componentWillUnmount(): void;
|
|
48
|
+
// (undocumented)
|
|
49
|
+
render(): jsx.JSX.Element;
|
|
50
|
+
// (undocumented)
|
|
51
|
+
renderTriggerButton: (triggerProps: TriggerProps) => jsx.JSX.Element;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
state: {
|
|
54
|
+
shouldShowCopiedMessage: boolean;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// @public (undocumented)
|
|
59
|
+
export type DialogContentState = {
|
|
60
|
+
users: OptionData[];
|
|
61
|
+
comment: Comment_2;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// @public (undocumented)
|
|
65
|
+
export type DialogPlacement = Placement;
|
|
66
|
+
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
export type Flag = {
|
|
69
|
+
appearance: 'success';
|
|
70
|
+
title: MessageDescriptor;
|
|
71
|
+
type: FlagType;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// @public (undocumented)
|
|
75
|
+
export type FlagType = 'admin-notified' | 'object-shared';
|
|
76
|
+
|
|
77
|
+
// @public (undocumented)
|
|
78
|
+
export type FormChildrenArgs<T> = {
|
|
79
|
+
formProps: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
|
|
80
|
+
getValues: () => T;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
type Integration = {
|
|
85
|
+
type: string;
|
|
86
|
+
Icon: React.ComponentType;
|
|
87
|
+
Content: React.ComponentType<IntegrationContentProps>;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// @public (undocumented)
|
|
91
|
+
type IntegrationContentProps = {
|
|
92
|
+
onClose: () => void;
|
|
93
|
+
changeTab?: (index: TabType) => void;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// @public (undocumented)
|
|
97
|
+
type IntegrationMode = 'off' | 'split' | 'tabs';
|
|
98
|
+
|
|
99
|
+
// @public (undocumented)
|
|
100
|
+
export type KeysOfType<T, TProp> = {
|
|
101
|
+
[P in keyof T]: T[P] extends TProp ? P : never;
|
|
102
|
+
}[keyof T];
|
|
103
|
+
|
|
104
|
+
// @public (undocumented)
|
|
105
|
+
export type MessageDescriptor = {
|
|
106
|
+
id: string;
|
|
107
|
+
description: string;
|
|
108
|
+
defaultMessage: string;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// @public (undocumented)
|
|
112
|
+
export type MetaData = {
|
|
113
|
+
productId: string;
|
|
114
|
+
atlOriginId: string;
|
|
115
|
+
shareeAction?: 'edit' | 'view';
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
export const OBJECT_SHARED = "object-shared";
|
|
120
|
+
|
|
121
|
+
// @public (undocumented)
|
|
122
|
+
export type OriginAnalyticAttributes = {
|
|
123
|
+
hasGeneratedId: boolean;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// @public (undocumented)
|
|
127
|
+
export type OriginTracing = {
|
|
128
|
+
id: string;
|
|
129
|
+
addToUrl: (link: string) => string;
|
|
130
|
+
toAnalyticsAttributes: (attrs: OriginAnalyticAttributes) => OriginTracingForSubSequentEvents | OriginTracingWithIdGenerated;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// @public (undocumented)
|
|
134
|
+
export type OriginTracingFactory = () => OriginTracing;
|
|
135
|
+
|
|
136
|
+
// @public (undocumented)
|
|
137
|
+
export type OriginTracingForSubSequentEvents = {
|
|
138
|
+
originId: string;
|
|
139
|
+
originProduct: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// @public (undocumented)
|
|
143
|
+
export type OriginTracingWithIdGenerated = {
|
|
144
|
+
originIdGenerated: string;
|
|
145
|
+
originProduct: string;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// @public
|
|
149
|
+
export type ProductId = 'bitbucket' | 'confluence' | 'jira-addon' | 'jira-core' | 'jira-platform' | 'jira-polaris' | 'jira-portfolio' | 'jira-servicedesk' | 'jira-software' | 'jira-unknown' | 'trello';
|
|
150
|
+
|
|
151
|
+
// @public (undocumented)
|
|
152
|
+
export type ProductName = 'confluence' | 'jira';
|
|
153
|
+
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
type Props = {
|
|
156
|
+
onLinkCopy?: (link: string) => void;
|
|
157
|
+
link: string;
|
|
158
|
+
isDisabled?: boolean;
|
|
159
|
+
copyTooltipText?: string;
|
|
160
|
+
children?: ReactElement | string;
|
|
161
|
+
copyLinkButtonText: string;
|
|
162
|
+
copiedToClipboardText: string;
|
|
163
|
+
iconBefore?: ReactElement;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
// @public (undocumented)
|
|
167
|
+
export type RenderCustomTriggerButton = (args: {
|
|
168
|
+
error?: ShareError;
|
|
169
|
+
isDisabled?: boolean;
|
|
170
|
+
isSelected?: boolean;
|
|
171
|
+
onClick: () => void;
|
|
172
|
+
}, triggerProps: TriggerProps) => React.ReactNode;
|
|
173
|
+
|
|
174
|
+
// @public (undocumented)
|
|
175
|
+
export type ShareButtonStyle = 'icon-only' | 'icon-with-text' | 'text-only';
|
|
176
|
+
|
|
177
|
+
// @public (undocumented)
|
|
178
|
+
interface ShareClient {
|
|
179
|
+
// (undocumented)
|
|
180
|
+
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
181
|
+
// (undocumented)
|
|
182
|
+
share(content: Content, recipients: User[], metadata: MetaData, comment?: Comment_2): Promise<ShareResponse>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// @public (undocumented)
|
|
186
|
+
export type ShareContentState = {
|
|
187
|
+
users: User[];
|
|
188
|
+
comment?: Comment_2;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
// @public (undocumented)
|
|
192
|
+
export const ShareDialogContainer: React_2.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "bottomMessage" | "cloudId" | "copyTooltipText" | "customFooter" | "dialogPlacement" | "dialogZIndex" | "formatCopyLink" | "integrationMode" | "isAutoOpenDialog" | "isCopyDisabled" | "isPublicLink" | "loadUserOptions" | "loggedInAccountId" | "onDialogClose" | "onDialogOpen" | "onTriggerButtonClick" | "onUserSelectionChange" | "orgId" | "originTracingFactory" | "productId" | "renderCustomTriggerButton" | "shareAri" | "shareClient" | "shareContentType" | "shareFieldsFooter" | "shareFormHelperMessage" | "shareFormTitle" | "shareIntegrations" | "shareLink" | "shareTitle" | "shortLinkData" | "shouldCloseOnEscapePress" | "showFlags" | "tabIndex" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "urlShortenerClient" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
193
|
+
enableSmartUserPicker: boolean;
|
|
194
|
+
shareeAction: "edit" | "view";
|
|
195
|
+
product: string;
|
|
196
|
+
}, never>> & React_2.RefAttributes<any>>;
|
|
197
|
+
|
|
198
|
+
// @public (undocumented)
|
|
199
|
+
export type ShareDialogContainerProps = {
|
|
200
|
+
onTriggerButtonClick?: () => void;
|
|
201
|
+
onDialogOpen?: () => void;
|
|
202
|
+
onDialogClose?: () => void;
|
|
203
|
+
isAutoOpenDialog?: boolean;
|
|
204
|
+
shareClient?: ShareClient;
|
|
205
|
+
urlShortenerClient?: UrlShortenerClient;
|
|
206
|
+
shortLinkData?: ShortenRequest;
|
|
207
|
+
cloudId: string;
|
|
208
|
+
orgId?: string;
|
|
209
|
+
dialogPlacement?: DialogPlacement;
|
|
210
|
+
dialogZIndex?: number;
|
|
211
|
+
formatCopyLink?: (origin: OriginTracing, link: string) => string;
|
|
212
|
+
loadUserOptions?: LoadOptions;
|
|
213
|
+
originTracingFactory: OriginTracingFactory;
|
|
214
|
+
productId: ProductId;
|
|
215
|
+
renderCustomTriggerButton?: RenderCustomTriggerButton;
|
|
216
|
+
shareAri: string;
|
|
217
|
+
shareContentType: string;
|
|
218
|
+
shareLink?: string;
|
|
219
|
+
shareTitle: string;
|
|
220
|
+
shareFormTitle?: React.ReactNode;
|
|
221
|
+
shareFormHelperMessage?: string;
|
|
222
|
+
shouldCloseOnEscapePress?: boolean;
|
|
223
|
+
showFlags: (flags: Array<Flag>) => void;
|
|
224
|
+
enableSmartUserPicker?: boolean;
|
|
225
|
+
loggedInAccountId?: string;
|
|
226
|
+
triggerButtonAppearance?: Appearance;
|
|
227
|
+
triggerButtonIcon?: React.ComponentType<IconProps>;
|
|
228
|
+
triggerButtonStyle?: ShareButtonStyle;
|
|
229
|
+
triggerButtonTooltipPosition?: TooltipPosition;
|
|
230
|
+
triggerButtonTooltipText?: React.ReactNode;
|
|
231
|
+
bottomMessage?: React.ReactNode;
|
|
232
|
+
useUrlShortener?: boolean;
|
|
233
|
+
shareeAction?: 'edit' | 'view';
|
|
234
|
+
product?: ProductName;
|
|
235
|
+
customFooter?: React.ReactNode;
|
|
236
|
+
onUserSelectionChange?: (value: Value) => void;
|
|
237
|
+
shareFieldsFooter?: React.ReactNode;
|
|
238
|
+
isCopyDisabled?: boolean;
|
|
239
|
+
isPublicLink?: boolean;
|
|
240
|
+
integrationMode?: IntegrationMode;
|
|
241
|
+
shareIntegrations?: Array<Integration>;
|
|
242
|
+
tabIndex?: number;
|
|
243
|
+
copyTooltipText?: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
// @public (undocumented)
|
|
247
|
+
export type ShareError = {
|
|
248
|
+
message: string;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment_2) => Promise<ShareResponse>;
|
|
253
|
+
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
export type ShareResponse = {
|
|
256
|
+
shareRequestId: string;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
// @public (undocumented)
|
|
260
|
+
interface ShortenRequest {
|
|
261
|
+
// (undocumented)
|
|
262
|
+
cloudId?: string;
|
|
263
|
+
// (undocumented)
|
|
264
|
+
params: Record<string, string>;
|
|
265
|
+
// (undocumented)
|
|
266
|
+
product: string;
|
|
267
|
+
// (undocumented)
|
|
268
|
+
query?: string;
|
|
269
|
+
// (undocumented)
|
|
270
|
+
type: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// @public (undocumented)
|
|
274
|
+
interface ShortenResponse {
|
|
275
|
+
// (undocumented)
|
|
276
|
+
shortUrl: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// @public (undocumented)
|
|
280
|
+
type State = {
|
|
281
|
+
shouldShowCopiedMessage: boolean;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
// @public (undocumented)
|
|
285
|
+
enum TabType {
|
|
286
|
+
// (undocumented)
|
|
287
|
+
default = 0,
|
|
288
|
+
// (undocumented)
|
|
289
|
+
Slack = 1
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// @public (undocumented)
|
|
293
|
+
export type TooltipPosition = 'bottom' | 'left' | 'mouse' | 'right' | 'top';
|
|
294
|
+
|
|
295
|
+
// @public (undocumented)
|
|
296
|
+
interface UrlShortenerClient {
|
|
297
|
+
// (undocumented)
|
|
298
|
+
shorten(data: ShortenRequest): Promise<ShortenResponse>;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// @public (undocumented)
|
|
302
|
+
export type User = UserWithEmail | UserWithId;
|
|
303
|
+
|
|
304
|
+
// @public (undocumented)
|
|
305
|
+
export type UserWithEmail = {
|
|
306
|
+
type: 'user';
|
|
307
|
+
email: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
// @public (undocumented)
|
|
311
|
+
export type UserWithId = {
|
|
312
|
+
type: 'custom' | 'group' | 'team' | 'user';
|
|
313
|
+
id: string;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
// (No @packageDocumentation comment for this package)
|
|
317
|
+
|
|
318
|
+
```
|