@atlaskit/share 3.2.4 → 3.2.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 3.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0a61837e1ff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0a61837e1ff) - Bump patch version of smart-user-picker to support right context key for org ID
8
+
3
9
  ## 3.2.4
4
10
 
5
11
  ### Patch Changes
@@ -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.2.4"
22
+ packageVersion: "3.2.5"
23
23
  }, attributes);
24
24
  };
25
25
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.4"
3
+ "version": "3.2.5"
4
4
  }
@@ -2,7 +2,7 @@ import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
 
3
3
  const buildAttributes = (attributes = {}) => ({
4
4
  packageName: "@atlaskit/share",
5
- packageVersion: "3.2.4",
5
+ packageVersion: "3.2.5",
6
6
  ...attributes
7
7
  });
8
8
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.4"
3
+ "version": "3.2.5"
4
4
  }
@@ -1,7 +1,7 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  export var AtlassianUrlShortenerClient = /*#__PURE__*/function () {
6
6
  function AtlassianUrlShortenerClient() {
7
7
  _classCallCheck(this, AtlassianUrlShortenerClient);
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _extends from "@babel/runtime/helpers/extends";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -8,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
 
12
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
13
 
@@ -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.2.4"
13
+ packageVersion: "3.2.5"
14
14
  }, attributes);
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.4"
3
+ "version": "3.2.5"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/icon": "^21.10.0",
38
38
  "@atlaskit/popup": "^1.3.0",
39
39
  "@atlaskit/portal": "^4.0.0",
40
- "@atlaskit/smart-user-picker": "^5.1.0",
40
+ "@atlaskit/smart-user-picker": "^5.1.2",
41
41
  "@atlaskit/spinner": "^15.1.4",
42
42
  "@atlaskit/tabs": "^13.2.3",
43
43
  "@atlaskit/textarea": "^4.3.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/tokens": "^0.10.0",
46
46
  "@atlaskit/tooltip": "^17.5.0",
47
47
  "@atlaskit/ufo": "^0.1.0",
48
- "@atlaskit/user-picker": "^9.1.0",
48
+ "@atlaskit/user-picker": "^9.2.0",
49
49
  "@atlaskit/util-service-support": "^6.1.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "fast-deep-equal": "^3.1.1",
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@atlaskit/docs": "^9.0.0",
63
63
  "@atlaskit/editor-test-helpers": "^17.0.0",
64
- "@atlaskit/flag": "^14.5.0",
64
+ "@atlaskit/flag": "^14.6.0",
65
65
  "@atlaskit/section-message": "^6.0.0",
66
66
  "@atlaskit/select": "^15.3.0",
67
67
  "@atlaskit/toggle": "^12.4.0",
package/report.api.md ADDED
@@ -0,0 +1,313 @@
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
+ /// <reference types="react" />
7
+
8
+ import type { Appearance } from '@atlaskit/button/types';
9
+ import type { IconProps } from '@atlaskit/icon';
10
+ import type { LoadOptions } from '@atlaskit/smart-user-picker';
11
+ import { OptionData } from '@atlaskit/smart-user-picker';
12
+ import type { Placement } from '@atlaskit/popper';
13
+ import { default as React_2 } from 'react';
14
+ import type { TriggerProps } from '@atlaskit/popup';
15
+ import type { Value } from '@atlaskit/smart-user-picker';
16
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
17
+
18
+ // @public (undocumented)
19
+ export const ADMIN_NOTIFIED = 'admin-notified';
20
+
21
+ // @public (undocumented)
22
+ type Comment_2 = {
23
+ format: 'plain_text' | 'adf';
24
+ value: string;
25
+ };
26
+ export { Comment_2 as Comment };
27
+
28
+ // @public (undocumented)
29
+ export type ConfigResponse = {
30
+ disableSharingToEmails?: boolean;
31
+ };
32
+
33
+ // @public (undocumented)
34
+ export type Content = {
35
+ ari: string;
36
+ link: string;
37
+ title: string;
38
+ type: string;
39
+ };
40
+
41
+ // @public (undocumented)
42
+ export type DialogContentState = {
43
+ users: OptionData[];
44
+ comment: Comment_2;
45
+ };
46
+
47
+ // @public (undocumented)
48
+ export type DialogPlacement = Placement;
49
+
50
+ // @public (undocumented)
51
+ export type Flag = {
52
+ appearance: 'success';
53
+ title: MessageDescriptor;
54
+ type: FlagType;
55
+ };
56
+
57
+ // @public (undocumented)
58
+ export type FlagType = 'object-shared' | 'admin-notified';
59
+
60
+ // @public (undocumented)
61
+ export type FormChildrenArgs<T> = {
62
+ formProps: React.DetailedHTMLProps<
63
+ React.FormHTMLAttributes<HTMLFormElement>,
64
+ HTMLFormElement
65
+ >;
66
+ getValues: () => T;
67
+ };
68
+
69
+ // @public (undocumented)
70
+ export type KeysOfType<T, TProp> = {
71
+ [P in keyof T]: T[P] extends TProp ? P : never;
72
+ }[keyof T];
73
+
74
+ // @public (undocumented)
75
+ export type MessageDescriptor = {
76
+ id: string;
77
+ description: string;
78
+ defaultMessage: string;
79
+ };
80
+
81
+ // @public (undocumented)
82
+ export type MetaData = {
83
+ productId: string;
84
+ atlOriginId: string;
85
+ shareeAction?: 'view' | 'edit';
86
+ };
87
+
88
+ // @public (undocumented)
89
+ export const OBJECT_SHARED = 'object-shared';
90
+
91
+ // @public (undocumented)
92
+ export type OriginAnalyticAttributes = {
93
+ hasGeneratedId: boolean;
94
+ };
95
+
96
+ // @public (undocumented)
97
+ export type OriginTracing = {
98
+ id: string;
99
+ addToUrl: (link: string) => string;
100
+ toAnalyticsAttributes: (
101
+ attrs: OriginAnalyticAttributes,
102
+ ) => OriginTracingWithIdGenerated | OriginTracingForSubSequentEvents;
103
+ };
104
+
105
+ // @public (undocumented)
106
+ export type OriginTracingFactory = () => OriginTracing;
107
+
108
+ // @public (undocumented)
109
+ export type OriginTracingForSubSequentEvents = {
110
+ originId: string;
111
+ originProduct: string;
112
+ };
113
+
114
+ // @public (undocumented)
115
+ export type OriginTracingWithIdGenerated = {
116
+ originIdGenerated: string;
117
+ originProduct: string;
118
+ };
119
+
120
+ // @public
121
+ export type ProductId =
122
+ | 'bitbucket'
123
+ | 'confluence'
124
+ | 'jira-addon'
125
+ | 'jira-core'
126
+ | 'jira-platform'
127
+ | 'jira-polaris'
128
+ | 'jira-portfolio'
129
+ | 'jira-servicedesk'
130
+ | 'jira-software'
131
+ | 'jira-unknown'
132
+ | 'trello';
133
+
134
+ // @public (undocumented)
135
+ export type ProductName = 'jira' | 'confluence';
136
+
137
+ // @public (undocumented)
138
+ export type RenderCustomTriggerButton = (
139
+ args: {
140
+ error?: ShareError;
141
+ isDisabled?: boolean;
142
+ isSelected?: boolean;
143
+ onClick: () => void;
144
+ },
145
+ triggerProps: TriggerProps,
146
+ ) => React.ReactNode;
147
+
148
+ // @public (undocumented)
149
+ export type ShareButtonStyle = 'icon-only' | 'icon-with-text' | 'text-only';
150
+
151
+ // @public (undocumented)
152
+ export type ShareContentState = {
153
+ users: User[];
154
+ comment?: Comment_2;
155
+ };
156
+
157
+ // @public (undocumented)
158
+ export const ShareDialogContainer: React_2.ForwardRefExoticComponent<
159
+ Pick<
160
+ Omit<
161
+ WithAnalyticsEventsProps & ShareDialogContainerProps,
162
+ keyof WithAnalyticsEventsProps
163
+ >,
164
+ | 'onTriggerButtonClick'
165
+ | 'isAutoOpenDialog'
166
+ | 'shouldCloseOnEscapePress'
167
+ | 'dialogPlacement'
168
+ | 'loadUserOptions'
169
+ | 'onDialogOpen'
170
+ | 'onDialogClose'
171
+ | 'onUserSelectionChange'
172
+ | 'renderCustomTriggerButton'
173
+ | 'shareContentType'
174
+ | 'shareFormTitle'
175
+ | 'shareFormHelperMessage'
176
+ | 'showFlags'
177
+ | 'loggedInAccountId'
178
+ | 'triggerButtonAppearance'
179
+ | 'triggerButtonIcon'
180
+ | 'triggerButtonStyle'
181
+ | 'triggerButtonTooltipPosition'
182
+ | 'triggerButtonTooltipText'
183
+ | 'cloudId'
184
+ | 'bottomMessage'
185
+ | 'customFooter'
186
+ | 'isCopyDisabled'
187
+ | 'isPublicLink'
188
+ | 'integrationMode'
189
+ | 'shareFieldsFooter'
190
+ | 'shareIntegrations'
191
+ | 'shareAri'
192
+ | 'tabIndex'
193
+ | 'copyTooltipText'
194
+ | 'dialogZIndex'
195
+ | 'orgId'
196
+ | 'shareClient'
197
+ | 'urlShortenerClient'
198
+ | 'shortLinkData'
199
+ | 'formatCopyLink'
200
+ | 'originTracingFactory'
201
+ | 'productId'
202
+ | 'shareLink'
203
+ | 'shareTitle'
204
+ | 'useUrlShortener'
205
+ > &
206
+ Partial<
207
+ Pick<
208
+ Omit<
209
+ WithAnalyticsEventsProps & ShareDialogContainerProps,
210
+ keyof WithAnalyticsEventsProps
211
+ >,
212
+ 'enableSmartUserPicker' | 'product' | 'shareeAction'
213
+ >
214
+ > &
215
+ Partial<
216
+ Pick<
217
+ {
218
+ enableSmartUserPicker: boolean;
219
+ shareeAction: 'view' | 'edit';
220
+ product: string;
221
+ },
222
+ never
223
+ >
224
+ > &
225
+ React_2.RefAttributes<any>
226
+ >;
227
+
228
+ // @public (undocumented)
229
+ export type ShareDialogContainerProps = {
230
+ onTriggerButtonClick?: () => void;
231
+ onDialogOpen?: () => void;
232
+ onDialogClose?: () => void;
233
+ isAutoOpenDialog?: boolean;
234
+ shareClient?: ShareClient;
235
+ urlShortenerClient?: UrlShortenerClient;
236
+ shortLinkData?: ShortenRequest;
237
+ cloudId: string;
238
+ orgId?: string;
239
+ dialogPlacement?: DialogPlacement;
240
+ dialogZIndex?: number;
241
+ formatCopyLink?: (origin: OriginTracing, link: string) => string;
242
+ loadUserOptions?: LoadOptions;
243
+ originTracingFactory: OriginTracingFactory;
244
+ productId: ProductId;
245
+ renderCustomTriggerButton?: RenderCustomTriggerButton;
246
+ shareAri: string;
247
+ shareContentType: string;
248
+ shareLink?: string;
249
+ shareTitle: string;
250
+ shareFormTitle?: React.ReactNode;
251
+ shareFormHelperMessage?: string;
252
+ shouldCloseOnEscapePress?: boolean;
253
+ showFlags: (flags: Array<Flag>) => void;
254
+ enableSmartUserPicker?: boolean;
255
+ loggedInAccountId?: string;
256
+ triggerButtonAppearance?: Appearance;
257
+ triggerButtonIcon?: React.ComponentType<IconProps>;
258
+ triggerButtonStyle?: ShareButtonStyle;
259
+ triggerButtonTooltipPosition?: TooltipPosition;
260
+ triggerButtonTooltipText?: React.ReactNode;
261
+ bottomMessage?: React.ReactNode;
262
+ useUrlShortener?: boolean;
263
+ shareeAction?: 'view' | 'edit';
264
+ product?: ProductName;
265
+ customFooter?: React.ReactNode;
266
+ onUserSelectionChange?: (value: Value) => void;
267
+ shareFieldsFooter?: React.ReactNode;
268
+ isCopyDisabled?: boolean;
269
+ isPublicLink?: boolean;
270
+ integrationMode?: IntegrationMode;
271
+ shareIntegrations?: Array<Integration>;
272
+ tabIndex?: number;
273
+ copyTooltipText?: string;
274
+ };
275
+
276
+ // @public (undocumented)
277
+ export type ShareError = {
278
+ message: string;
279
+ };
280
+
281
+ // @public (undocumented)
282
+ export type ShareRequest = (
283
+ content: Content,
284
+ recipients: User[],
285
+ metadata: MetaData,
286
+ comment?: Comment_2,
287
+ ) => Promise<ShareResponse>;
288
+
289
+ // @public (undocumented)
290
+ export type ShareResponse = {
291
+ shareRequestId: string;
292
+ };
293
+
294
+ // @public (undocumented)
295
+ export type TooltipPosition = 'top' | 'right' | 'bottom' | 'left' | 'mouse';
296
+
297
+ // @public (undocumented)
298
+ export type User = UserWithId | UserWithEmail;
299
+
300
+ // @public (undocumented)
301
+ export type UserWithEmail = {
302
+ type: 'user';
303
+ email: string;
304
+ };
305
+
306
+ // @public (undocumented)
307
+ export type UserWithId = {
308
+ type: 'user' | 'group' | 'team';
309
+ id: string;
310
+ };
311
+
312
+ // (No @packageDocumentation comment for this package)
313
+ ```