@atlaskit/share 4.10.0 → 4.11.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 +6 -0
- package/dist/cjs/components/ShareDialogContainer.js +4 -2
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +4 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/ShareDialogContainer.js +4 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/clients/ShareServiceClient.d.ts +4 -4
- package/dist/types/components/ShareDialogContainer.d.ts +1 -1
- package/dist/types/types/ShareDialogContainer.d.ts +1 -0
- package/dist/types/types/ShareEntities.d.ts +1 -0
- package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +4 -4
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +1 -1
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +1 -0
- package/dist/types-ts4.5/types/ShareEntities.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#67391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67391) [`b569a250dbf5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b569a250dbf5) - Allow WorkspaceARI prop to be passed to component
|
|
8
|
+
|
|
3
9
|
## 4.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -127,12 +127,14 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
127
127
|
shareAri = _this$props.shareAri,
|
|
128
128
|
shareContentType = _this$props.shareContentType,
|
|
129
129
|
shareTitle = _this$props.shareTitle,
|
|
130
|
-
shareeAction = _this$props.shareeAction
|
|
130
|
+
shareeAction = _this$props.shareeAction,
|
|
131
|
+
workspaceAri = _this$props.workspaceAri;
|
|
131
132
|
var content = {
|
|
132
133
|
ari: shareAri,
|
|
133
134
|
link: shareLink,
|
|
134
135
|
title: shareTitle,
|
|
135
|
-
type: shareContentType
|
|
136
|
+
type: shareContentType,
|
|
137
|
+
workspaceAri: workspaceAri
|
|
136
138
|
};
|
|
137
139
|
var metaData = {
|
|
138
140
|
productId: productId,
|
|
@@ -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.11.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -91,13 +91,15 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
91
91
|
shareAri,
|
|
92
92
|
shareContentType,
|
|
93
93
|
shareTitle,
|
|
94
|
-
shareeAction
|
|
94
|
+
shareeAction,
|
|
95
|
+
workspaceAri
|
|
95
96
|
} = this.props;
|
|
96
97
|
const content = {
|
|
97
98
|
ari: shareAri,
|
|
98
99
|
link: shareLink,
|
|
99
100
|
title: shareTitle,
|
|
100
|
-
type: shareContentType
|
|
101
|
+
type: shareContentType,
|
|
102
|
+
workspaceAri
|
|
101
103
|
};
|
|
102
104
|
const metaData = {
|
|
103
105
|
productId,
|
|
@@ -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.11.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -120,12 +120,14 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
120
120
|
shareAri = _this$props.shareAri,
|
|
121
121
|
shareContentType = _this$props.shareContentType,
|
|
122
122
|
shareTitle = _this$props.shareTitle,
|
|
123
|
-
shareeAction = _this$props.shareeAction
|
|
123
|
+
shareeAction = _this$props.shareeAction,
|
|
124
|
+
workspaceAri = _this$props.workspaceAri;
|
|
124
125
|
var content = {
|
|
125
126
|
ari: shareAri,
|
|
126
127
|
link: shareLink,
|
|
127
128
|
title: shareTitle,
|
|
128
|
-
type: shareContentType
|
|
129
|
+
type: shareContentType,
|
|
130
|
+
workspaceAri: workspaceAri
|
|
129
131
|
};
|
|
130
132
|
var metaData = {
|
|
131
133
|
productId: productId,
|
|
@@ -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.11.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
2
|
import { Comment, Content, MetaData, User } from '../types';
|
|
3
|
-
export interface ShareClient {
|
|
4
|
-
share(content: Content, recipients: User[], metadata: MetaData, comment?: Comment): Promise<ShareResponse>;
|
|
5
|
-
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
6
|
-
}
|
|
7
3
|
export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment) => Promise<ShareResponse>;
|
|
8
4
|
export type ShareResponse = {
|
|
9
5
|
shareRequestId: string;
|
|
10
6
|
};
|
|
7
|
+
export interface ShareClient {
|
|
8
|
+
share: ShareRequest;
|
|
9
|
+
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
10
|
+
}
|
|
11
11
|
export type ConfigResponse = {
|
|
12
12
|
disableSharingToEmails?: boolean;
|
|
13
13
|
};
|
|
@@ -50,7 +50,7 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
|
|
|
50
50
|
getFormShareLink: () => string;
|
|
51
51
|
render(): JSX.Element;
|
|
52
52
|
}
|
|
53
|
-
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
53
|
+
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener" | "workspaceAri"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
54
54
|
enableSmartUserPicker: boolean;
|
|
55
55
|
shareeAction: "view" | "edit";
|
|
56
56
|
product: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
2
|
import { Comment, Content, MetaData, User } from '../types';
|
|
3
|
-
export interface ShareClient {
|
|
4
|
-
share(content: Content, recipients: User[], metadata: MetaData, comment?: Comment): Promise<ShareResponse>;
|
|
5
|
-
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
6
|
-
}
|
|
7
3
|
export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment) => Promise<ShareResponse>;
|
|
8
4
|
export type ShareResponse = {
|
|
9
5
|
shareRequestId: string;
|
|
10
6
|
};
|
|
7
|
+
export interface ShareClient {
|
|
8
|
+
share: ShareRequest;
|
|
9
|
+
getConfig(cloudId: string): Promise<ConfigResponse>;
|
|
10
|
+
}
|
|
11
11
|
export type ConfigResponse = {
|
|
12
12
|
disableSharingToEmails?: boolean;
|
|
13
13
|
};
|
|
@@ -50,7 +50,7 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
|
|
|
50
50
|
getFormShareLink: () => string;
|
|
51
51
|
render(): JSX.Element;
|
|
52
52
|
}
|
|
53
|
-
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
53
|
+
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "orgId" | "isBrowseUsersDisabled" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener" | "workspaceAri"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
|
|
54
54
|
enableSmartUserPicker: boolean;
|
|
55
55
|
shareeAction: "view" | "edit";
|
|
56
56
|
product: string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|