@atlaskit/share 2.0.1 → 3.0.3
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 +24 -0
- package/dist/cjs/clients/ShareServiceClient.js +1 -7
- package/dist/cjs/components/CommentField.js +5 -4
- package/dist/cjs/components/CopyLinkButton.js +11 -10
- package/dist/cjs/components/ErrorBoundary.js +2 -0
- package/dist/cjs/components/IntegrationForm.js +7 -2
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +6 -4
- package/dist/cjs/components/LazyShareForm/lazy.js +2 -2
- package/dist/cjs/components/ShareButton.js +2 -2
- package/dist/cjs/components/ShareDialogContainer.js +9 -8
- package/dist/cjs/components/ShareDialogWithTrigger.js +12 -10
- package/dist/cjs/components/ShareForm.js +28 -9
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
- package/dist/cjs/components/UserPickerField.js +8 -7
- package/dist/cjs/components/utils.js +2 -5
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/types/ShareEntities.js +10 -1
- package/dist/cjs/types/index.js +9 -1
- package/dist/cjs/util/i18n-util.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/clients/ShareServiceClient.js +1 -7
- package/dist/es2019/components/CommentField.js +3 -2
- package/dist/es2019/components/CopyLinkButton.js +6 -5
- package/dist/es2019/components/ErrorBoundary.js +2 -0
- package/dist/es2019/components/IntegrationForm.js +4 -2
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +5 -3
- package/dist/es2019/components/LazyShareForm/lazy.js +2 -2
- package/dist/es2019/components/MessagesIntlProvider.js +1 -1
- package/dist/es2019/components/ShareButton.js +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +6 -5
- package/dist/es2019/components/ShareDialogWithTrigger.js +11 -7
- package/dist/es2019/components/ShareForm.js +23 -6
- package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/es2019/components/UserPickerField.js +5 -4
- package/dist/es2019/components/utils.js +1 -3
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/types/ShareEntities.js +7 -1
- package/dist/es2019/types/index.js +2 -1
- package/dist/es2019/util/i18n-util.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/clients/ShareServiceClient.js +1 -7
- package/dist/esm/components/CommentField.js +3 -2
- package/dist/esm/components/CopyLinkButton.js +6 -5
- package/dist/esm/components/ErrorBoundary.js +2 -0
- package/dist/esm/components/IntegrationForm.js +7 -2
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +5 -3
- package/dist/esm/components/LazyShareForm/lazy.js +2 -2
- package/dist/esm/components/MessagesIntlProvider.js +1 -1
- package/dist/esm/components/ShareButton.js +1 -1
- package/dist/esm/components/ShareDialogContainer.js +6 -5
- package/dist/esm/components/ShareDialogWithTrigger.js +11 -7
- package/dist/esm/components/ShareForm.js +25 -5
- package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/esm/components/UserPickerField.js +5 -4
- package/dist/esm/components/utils.js +1 -3
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/types/ShareEntities.js +7 -1
- package/dist/esm/types/index.js +2 -1
- package/dist/esm/util/i18n-util.js +3 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/clients/ShareServiceClient.d.ts +2 -2
- package/dist/types/components/CopyLinkButton.d.ts +1 -1
- package/dist/types/components/IntegrationForm.d.ts +2 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types/components/ShareButton.d.ts +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +3 -4
- package/dist/types/components/ShareDialogWithTrigger.d.ts +2 -2
- package/dist/types/components/ShareForm.d.ts +4 -1
- package/dist/types/components/UserPickerField.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/types/ShareDialogContainer.d.ts +4 -9
- package/dist/types/types/ShareEntities.d.ts +5 -0
- package/dist/types/types/ShareForm.d.ts +2 -2
- package/dist/types/types/index.d.ts +1 -0
- package/docs/0-intro.tsx +4 -4
- package/package.json +23 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { IconProps } from '@atlaskit/icon';
|
|
3
2
|
import type { Appearance } from '@atlaskit/button/types';
|
|
3
|
+
import type { IconProps } from '@atlaskit/icon';
|
|
4
4
|
import type { LoadOptions, Value } from '@atlaskit/user-picker';
|
|
5
|
-
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
6
5
|
import type { ShortenRequest, UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
7
|
-
import type {
|
|
6
|
+
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
7
|
+
import type { Flag } from './Flag';
|
|
8
8
|
import type { OriginTracing, OriginTracingFactory } from './OriginTracing';
|
|
9
9
|
import type { ProductId, ProductName } from './Products';
|
|
10
10
|
import type { ShareButtonStyle, TooltipPosition } from './ShareButton';
|
|
11
|
+
import type { DialogPlacement, RenderCustomTriggerButton } from './ShareDialogWithTrigger';
|
|
11
12
|
import type { Integration, IntegrationMode } from './ShareEntities';
|
|
12
|
-
import type { Flag } from './Flag';
|
|
13
13
|
export declare type ShareDialogContainerProps = {
|
|
14
14
|
onTriggerButtonClick?: () => void;
|
|
15
15
|
onDialogOpen?: () => void;
|
|
@@ -93,11 +93,6 @@ export declare type ShareDialogContainerProps = {
|
|
|
93
93
|
* - `cloudId`
|
|
94
94
|
*/
|
|
95
95
|
enableSmartUserPicker?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* When true, the component will call the Share service to check whether the
|
|
98
|
-
* site has sharing to emails enabled.
|
|
99
|
-
*/
|
|
100
|
-
enableEmailPermissionCheck?: boolean;
|
|
101
96
|
/**
|
|
102
97
|
* The userId of the sharer. If not provided, smart user picker
|
|
103
98
|
* defaults it to the value 'Context'
|
|
@@ -16,7 +16,12 @@ export declare type MetaData = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare type IntegrationContentProps = {
|
|
18
18
|
onClose: () => void;
|
|
19
|
+
changeTab?: (index: TabType) => void;
|
|
19
20
|
};
|
|
21
|
+
export declare enum TabType {
|
|
22
|
+
default = 0,
|
|
23
|
+
Slack = 1
|
|
24
|
+
}
|
|
20
25
|
export declare type Integration = {
|
|
21
26
|
type: string;
|
|
22
27
|
Icon: React.ComponentType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ConfigResponse } from '../clients/ShareServiceClient';
|
|
3
|
-
import type { ShareData, ShareError } from './ShareContentState';
|
|
4
2
|
import type { LoadOptions } from '@atlaskit/user-picker';
|
|
3
|
+
import type { ConfigResponse } from '../clients/ShareServiceClient';
|
|
5
4
|
import type { ProductName } from './Products';
|
|
5
|
+
import type { ShareData, ShareError } from './ShareContentState';
|
|
6
6
|
import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
7
7
|
export declare type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker'> & {
|
|
8
8
|
config?: ConfigResponse;
|
|
@@ -9,6 +9,7 @@ export type { ShareData, ShareData as DialogContentState, ShareContentState, Sha
|
|
|
9
9
|
export type { DialogPlacement, DialogBoundariesElement, RenderCustomTriggerButton, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates, } from './ShareDialogWithTrigger';
|
|
10
10
|
export type { User, UserWithEmail, UserWithId } from './User';
|
|
11
11
|
export type { Comment, Content, MetaData, Integration, IntegrationContentProps, } from './ShareEntities';
|
|
12
|
+
export { TabType } from './ShareEntities';
|
|
12
13
|
export declare type KeysOfType<T, TProp> = {
|
|
13
14
|
[P in keyof T]: T[P] extends TProp ? P : never;
|
|
14
15
|
}[keyof T];
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
1
3
|
import {
|
|
4
|
+
AtlassianInternalWarning,
|
|
2
5
|
code,
|
|
6
|
+
DevPreviewWarning,
|
|
3
7
|
Example,
|
|
4
8
|
md,
|
|
5
9
|
Props,
|
|
6
|
-
AtlassianInternalWarning,
|
|
7
|
-
DevPreviewWarning,
|
|
8
10
|
} from '@atlaskit/docs';
|
|
9
11
|
|
|
10
|
-
import React from 'react';
|
|
11
|
-
|
|
12
12
|
export default md`
|
|
13
13
|
${(
|
|
14
14
|
<>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/tabs": "^13.2.3",
|
|
43
43
|
"@atlaskit/theme": "^12.0.0",
|
|
44
44
|
"@atlaskit/tooltip": "^17.5.0",
|
|
45
|
-
"@atlaskit/user-picker": "^8.
|
|
45
|
+
"@atlaskit/user-picker": "^8.3.0",
|
|
46
46
|
"@atlaskit/util-service-support": "^6.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"fast-deep-equal": "^3.1.1",
|
|
@@ -82,5 +82,26 @@
|
|
|
82
82
|
".": "./src/index.ts",
|
|
83
83
|
"./clients": "./src/clients/index.ts"
|
|
84
84
|
},
|
|
85
|
+
"techstack": {
|
|
86
|
+
"@atlassian/frontend": {
|
|
87
|
+
"package-boundaries": [
|
|
88
|
+
"linting"
|
|
89
|
+
],
|
|
90
|
+
"tree-shaking": [
|
|
91
|
+
"atlassian-conventions"
|
|
92
|
+
],
|
|
93
|
+
"import-structure": [
|
|
94
|
+
"atlassian-conventions"
|
|
95
|
+
],
|
|
96
|
+
"circular-dependencies": [
|
|
97
|
+
"file-and-folder-level"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"@repo/internal": {
|
|
101
|
+
"ui-components": "lite-mode",
|
|
102
|
+
"analytics": "analytics-next",
|
|
103
|
+
"deprecation": "no-deprecated-imports"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
85
106
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
86
107
|
}
|