@atlaskit/share 3.0.0 → 3.0.4
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/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 +8 -7
- package/dist/cjs/components/ShareDialogWithTrigger.js +12 -10
- package/dist/cjs/components/ShareForm.js +29 -10
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
- package/dist/cjs/components/UserPickerField.js +8 -7
- package/dist/cjs/components/colorSlackIcon.js +67 -0
- 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/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 +5 -4
- package/dist/es2019/components/ShareDialogWithTrigger.js +11 -7
- package/dist/es2019/components/ShareForm.js +24 -6
- package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/es2019/components/UserPickerField.js +5 -4
- package/dist/es2019/components/colorSlackIcon.js +57 -0
- 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/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 +5 -4
- package/dist/esm/components/ShareDialogWithTrigger.js +11 -7
- package/dist/esm/components/ShareForm.js +26 -6
- package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/esm/components/UserPickerField.js +5 -4
- package/dist/esm/components/colorSlackIcon.js +57 -0
- 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/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 +2 -3
- 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/components/colorSlackIcon.d.ts +3 -0
- 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 -4
- 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 +29 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LoadOptions, OptionData, Value } from '@atlaskit/user-picker';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { LoadOptions, OptionData, Value } from '@atlaskit/user-picker';
|
|
4
4
|
import { ConfigResponse, ProductName } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
6
6
|
export declare type Props = {
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
+
'fabric.elements.share.in.integration.button': string;
|
|
27
28
|
'fabric.elements.share.success.message': string;
|
|
28
29
|
'fabric.elements.share.to.integration.button': string;
|
|
29
30
|
'fabric.elements.share.trigger.button.icon.label': string;
|
|
@@ -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;
|
|
@@ -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.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@atlaskit/dropdown-menu": "^11.0.0",
|
|
36
36
|
"@atlaskit/field-text-area": "^8.0.0",
|
|
37
37
|
"@atlaskit/form": "^8.4.0",
|
|
38
|
-
"@atlaskit/icon": "^21.
|
|
39
|
-
"@atlaskit/popup": "^1.
|
|
38
|
+
"@atlaskit/icon": "^21.10.0",
|
|
39
|
+
"@atlaskit/popup": "^1.3.0",
|
|
40
40
|
"@atlaskit/portal": "^4.0.0",
|
|
41
41
|
"@atlaskit/spinner": "^15.1.4",
|
|
42
42
|
"@atlaskit/tabs": "^13.2.3",
|
|
43
|
-
"@atlaskit/theme": "^12.
|
|
43
|
+
"@atlaskit/theme": "^12.1.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",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlaskit/docs": "^9.0.0",
|
|
61
61
|
"@atlaskit/editor-test-helpers": "^16.0.0",
|
|
62
|
-
"@atlaskit/flag": "^14.
|
|
62
|
+
"@atlaskit/flag": "^14.5.0",
|
|
63
63
|
"@atlaskit/section-message": "^6.0.0",
|
|
64
64
|
"@atlaskit/select": "^15.0.0",
|
|
65
|
-
"@atlaskit/toggle": "^12.
|
|
66
|
-
"@atlaskit/util-data-test": "^17.
|
|
65
|
+
"@atlaskit/toggle": "^12.4.0",
|
|
66
|
+
"@atlaskit/util-data-test": "^17.1.0",
|
|
67
67
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
68
68
|
"enzyme": "^3.10.0",
|
|
69
69
|
"enzyme-adapter-react-16": "^1.15.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
|
}
|