@atlaskit/share 3.0.0 → 3.0.1

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/CommentField.js +5 -4
  3. package/dist/cjs/components/CopyLinkButton.js +11 -10
  4. package/dist/cjs/components/ErrorBoundary.js +2 -0
  5. package/dist/cjs/components/IntegrationForm.js +7 -2
  6. package/dist/cjs/components/LazyShareForm/LazyShareForm.js +3 -3
  7. package/dist/cjs/components/LazyShareForm/lazy.js +2 -2
  8. package/dist/cjs/components/ShareButton.js +2 -2
  9. package/dist/cjs/components/ShareDialogContainer.js +8 -7
  10. package/dist/cjs/components/ShareDialogWithTrigger.js +10 -9
  11. package/dist/cjs/components/ShareForm.js +28 -9
  12. package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
  13. package/dist/cjs/components/UserPickerField.js +8 -7
  14. package/dist/cjs/components/utils.js +2 -5
  15. package/dist/cjs/types/ShareEntities.js +10 -1
  16. package/dist/cjs/types/index.js +9 -1
  17. package/dist/cjs/util/i18n-util.js +3 -0
  18. package/dist/cjs/version.json +1 -1
  19. package/dist/es2019/components/CommentField.js +3 -2
  20. package/dist/es2019/components/CopyLinkButton.js +6 -5
  21. package/dist/es2019/components/ErrorBoundary.js +2 -0
  22. package/dist/es2019/components/IntegrationForm.js +4 -2
  23. package/dist/es2019/components/LazyShareForm/LazyShareForm.js +2 -2
  24. package/dist/es2019/components/LazyShareForm/lazy.js +2 -2
  25. package/dist/es2019/components/MessagesIntlProvider.js +1 -1
  26. package/dist/es2019/components/ShareButton.js +1 -1
  27. package/dist/es2019/components/ShareDialogContainer.js +5 -4
  28. package/dist/es2019/components/ShareDialogWithTrigger.js +9 -6
  29. package/dist/es2019/components/ShareForm.js +23 -6
  30. package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
  31. package/dist/es2019/components/UserPickerField.js +5 -4
  32. package/dist/es2019/components/utils.js +1 -3
  33. package/dist/es2019/types/ShareEntities.js +7 -1
  34. package/dist/es2019/types/index.js +2 -1
  35. package/dist/es2019/util/i18n-util.js +3 -0
  36. package/dist/es2019/version.json +1 -1
  37. package/dist/esm/components/CommentField.js +3 -2
  38. package/dist/esm/components/CopyLinkButton.js +6 -5
  39. package/dist/esm/components/ErrorBoundary.js +2 -0
  40. package/dist/esm/components/IntegrationForm.js +7 -2
  41. package/dist/esm/components/LazyShareForm/LazyShareForm.js +2 -2
  42. package/dist/esm/components/LazyShareForm/lazy.js +2 -2
  43. package/dist/esm/components/MessagesIntlProvider.js +1 -1
  44. package/dist/esm/components/ShareButton.js +1 -1
  45. package/dist/esm/components/ShareDialogContainer.js +5 -4
  46. package/dist/esm/components/ShareDialogWithTrigger.js +9 -6
  47. package/dist/esm/components/ShareForm.js +25 -5
  48. package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
  49. package/dist/esm/components/UserPickerField.js +5 -4
  50. package/dist/esm/components/utils.js +1 -3
  51. package/dist/esm/types/ShareEntities.js +7 -1
  52. package/dist/esm/types/index.js +2 -1
  53. package/dist/esm/util/i18n-util.js +3 -0
  54. package/dist/esm/version.json +1 -1
  55. package/dist/types/components/CopyLinkButton.d.ts +1 -1
  56. package/dist/types/components/IntegrationForm.d.ts +2 -1
  57. package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
  58. package/dist/types/components/ShareButton.d.ts +1 -1
  59. package/dist/types/components/ShareDialogContainer.d.ts +2 -3
  60. package/dist/types/components/ShareDialogWithTrigger.d.ts +2 -2
  61. package/dist/types/components/ShareForm.d.ts +4 -1
  62. package/dist/types/components/UserPickerField.d.ts +1 -1
  63. package/dist/types/types/ShareDialogContainer.d.ts +4 -4
  64. package/dist/types/types/ShareEntities.d.ts +5 -0
  65. package/dist/types/types/ShareForm.d.ts +2 -2
  66. package/dist/types/types/index.d.ts +1 -0
  67. package/docs/0-intro.tsx +4 -4
  68. package/package.json +23 -2
@@ -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 = {
@@ -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 { DialogPlacement, RenderCustomTriggerButton } from './ShareDialogWithTrigger';
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.0",
3
+ "version": "3.0.1",
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.0.0",
45
+ "@atlaskit/user-picker": "^8.1.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
  }