@atlaskit/share 7.0.0 → 7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 7.0.0
4
10
 
5
11
  ### Major Changes
@@ -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: "0.0.0-development"
16
+ packageVersion: "7.0.0"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/cjs/i18n.js CHANGED
@@ -175,7 +175,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
175
175
  copyLinkButtonText: {
176
176
  id: 'fabric.elements.share.copylink.button.text',
177
177
  defaultMessage: 'Copy link',
178
- description: 'Default text for the Copy Link button'
178
+ description: 'Label for the Copy Link button in the share dialog that copies the page URL to the clipboard.'
179
179
  },
180
180
  copyPublicLinkButtonText: {
181
181
  id: 'fabric.elements.share.copypubliclink.button.text',
@@ -237,7 +237,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
237
237
  shareMainTabTextJira: {
238
238
  id: 'fabric.elements.share.main.tab.text.jira',
239
239
  defaultMessage: 'Share issue',
240
- description: 'Text for the main share tab for jira'
240
+ description: 'Label for the main share tab heading in the Jira share dialog.'
241
241
  },
242
242
  shareMainTabTextConfluence: {
243
243
  id: 'fabric.elements.share.main.tab.text.confluence',
@@ -262,11 +262,11 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
262
262
  slackMenuItemText: {
263
263
  id: 'fabric.elements.share.menu.slack.label',
264
264
  defaultMessage: 'Slack',
265
- description: 'Text for the slack menu in share'
265
+ description: 'Label for the Slack option in the share menu drop-down, allowing users to share content via Slack.'
266
266
  },
267
267
  emailMenuItemText: {
268
268
  id: 'fabric.elements.share.menu.email.label',
269
269
  defaultMessage: 'Email',
270
- description: 'Text for the email menu in share'
270
+ description: 'Label for the Email option in the share menu drop-down, allowing users to share content via email.'
271
271
  }
272
272
  });
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "0.0.0-development",
4
+ packageVersion: "7.0.0",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -169,7 +169,7 @@ export const messages = defineMessages({
169
169
  copyLinkButtonText: {
170
170
  id: 'fabric.elements.share.copylink.button.text',
171
171
  defaultMessage: 'Copy link',
172
- description: 'Default text for the Copy Link button'
172
+ description: 'Label for the Copy Link button in the share dialog that copies the page URL to the clipboard.'
173
173
  },
174
174
  copyPublicLinkButtonText: {
175
175
  id: 'fabric.elements.share.copypubliclink.button.text',
@@ -231,7 +231,7 @@ export const messages = defineMessages({
231
231
  shareMainTabTextJira: {
232
232
  id: 'fabric.elements.share.main.tab.text.jira',
233
233
  defaultMessage: 'Share issue',
234
- description: 'Text for the main share tab for jira'
234
+ description: 'Label for the main share tab heading in the Jira share dialog.'
235
235
  },
236
236
  shareMainTabTextConfluence: {
237
237
  id: 'fabric.elements.share.main.tab.text.confluence',
@@ -256,11 +256,11 @@ export const messages = defineMessages({
256
256
  slackMenuItemText: {
257
257
  id: 'fabric.elements.share.menu.slack.label',
258
258
  defaultMessage: 'Slack',
259
- description: 'Text for the slack menu in share'
259
+ description: 'Label for the Slack option in the share menu drop-down, allowing users to share content via Slack.'
260
260
  },
261
261
  emailMenuItemText: {
262
262
  id: 'fabric.elements.share.menu.email.label',
263
263
  defaultMessage: 'Email',
264
- description: 'Text for the email menu in share'
264
+ description: 'Label for the Email option in the share menu drop-down, allowing users to share content via email.'
265
265
  }
266
266
  });
@@ -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: "0.0.0-development"
9
+ packageVersion: "7.0.0"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/esm/i18n.js CHANGED
@@ -169,7 +169,7 @@ export var messages = defineMessages({
169
169
  copyLinkButtonText: {
170
170
  id: 'fabric.elements.share.copylink.button.text',
171
171
  defaultMessage: 'Copy link',
172
- description: 'Default text for the Copy Link button'
172
+ description: 'Label for the Copy Link button in the share dialog that copies the page URL to the clipboard.'
173
173
  },
174
174
  copyPublicLinkButtonText: {
175
175
  id: 'fabric.elements.share.copypubliclink.button.text',
@@ -231,7 +231,7 @@ export var messages = defineMessages({
231
231
  shareMainTabTextJira: {
232
232
  id: 'fabric.elements.share.main.tab.text.jira',
233
233
  defaultMessage: 'Share issue',
234
- description: 'Text for the main share tab for jira'
234
+ description: 'Label for the main share tab heading in the Jira share dialog.'
235
235
  },
236
236
  shareMainTabTextConfluence: {
237
237
  id: 'fabric.elements.share.main.tab.text.confluence',
@@ -256,11 +256,11 @@ export var messages = defineMessages({
256
256
  slackMenuItemText: {
257
257
  id: 'fabric.elements.share.menu.slack.label',
258
258
  defaultMessage: 'Slack',
259
- description: 'Text for the slack menu in share'
259
+ description: 'Label for the Slack option in the share menu drop-down, allowing users to share content via Slack.'
260
260
  },
261
261
  emailMenuItemText: {
262
262
  id: 'fabric.elements.share.menu.email.label',
263
263
  defaultMessage: 'Email',
264
- description: 'Text for the email menu in share'
264
+ description: 'Label for the Email option in the share menu drop-down, allowing users to share content via email.'
265
265
  }
266
266
  });
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type MemoizedFn } from 'memoize-one';
3
3
  import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import { type ShortenRequest, type UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
5
- import { type ConfigResponse, type ShareClient } from '../clients/ShareServiceClient';
4
+ import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
5
+ import { type ConfigResponse } from '../clients/ShareServiceClient';
6
6
  import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
7
7
  export declare const defaultConfig: ConfigResponse;
8
8
  export type State = {
@@ -53,69 +53,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
53
53
  * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
54
54
  * It will be removed once the switch-over is complete.
55
55
  */
56
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
57
- integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
58
- shareIntegrations?: Array<import("..").Integration> | undefined;
59
- additionalTabs?: Array<import("..").AdditionalTab> | undefined;
60
- builtInTabContentWidth?: number | undefined;
61
- copyTooltipText?: string | undefined;
62
- isPublicLink?: boolean | undefined;
63
- onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
64
- cloudId?: string | undefined;
65
- loggedInAccountId?: string | undefined;
66
- enableSmartUserPicker?: boolean | undefined;
67
- orgId?: string | undefined;
68
- isBrowseUsersDisabled?: boolean | undefined;
69
- userPickerOptions?: import("../types").UserPickerOptions | undefined;
70
- productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
71
- additionalUserFields?: React.ReactNode;
72
- isExtendedShareDialogEnabled?: boolean | undefined;
73
- CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
74
- bottomMessage?: React.ReactNode;
75
- customFooter?: React.ReactNode;
76
- customHeader?: React.ReactNode;
77
- customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
78
- dialogPlacement?: import("..").DialogPlacement | undefined;
79
- dialogZIndex?: number | undefined;
80
- formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
81
- isAutoOpenDialog?: boolean | undefined;
82
- isCopyDisabled?: boolean | undefined;
83
- isMenuItemSelected?: boolean | undefined;
84
- isSubmitShareDisabled?: boolean | undefined;
85
- loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
86
- onDialogClose?: (() => void) | undefined;
87
- onDialogOpen?: (() => void) | undefined;
88
- onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
89
- onTriggerButtonClick?: (() => void) | undefined;
90
- originTracingFactory?: OriginTracingFactory | undefined;
91
- product?: import("..").ProductName | undefined;
92
- productId?: import("..").ProductId | undefined;
93
- renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
94
- shareAri?: string | undefined;
95
- shareClient?: ShareClient | undefined;
96
- shareContentId?: string | undefined;
97
- shareContentSubType?: string | undefined;
98
- shareContentType?: string | undefined;
99
- shareeAction?: "view" | "edit" | undefined;
100
- shareFieldsFooter?: React.ReactNode;
101
- shareFormHelperMessage?: string | undefined;
102
- shareFormTitle?: React.ReactNode;
103
- shareLink?: string | undefined;
104
- shareTitle?: string | undefined;
105
- shortLinkData?: ShortenRequest | undefined;
106
- shouldCloseOnEscapePress?: boolean | undefined;
107
- showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
108
- tabIndex?: number | undefined;
109
- triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
110
- triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
111
- triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
112
- triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
113
- triggerButtonTooltipText?: React.ReactNode;
114
- urlShortenerClient?: UrlShortenerClient | undefined;
115
- useUrlShortener?: boolean | undefined;
116
- workspaceAri?: string | undefined;
117
- } & {
118
- createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
119
- ref?: React.Ref<any> | undefined;
120
- }, "ref"> & React.RefAttributes<any>>;
56
+ export declare const ShareDialogContainer: any;
121
57
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { type MemoizedFn } from 'memoize-one';
3
3
  import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import { type ShortenRequest, type UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
5
- import { type ConfigResponse, type ShareClient } from '../clients/ShareServiceClient';
4
+ import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
5
+ import { type ConfigResponse } from '../clients/ShareServiceClient';
6
6
  import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
7
7
  export declare const defaultConfig: ConfigResponse;
8
8
  export type State = {
@@ -53,69 +53,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
53
53
  * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
54
54
  * It will be removed once the switch-over is complete.
55
55
  */
56
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
57
- integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
58
- shareIntegrations?: Array<import("..").Integration> | undefined;
59
- additionalTabs?: Array<import("..").AdditionalTab> | undefined;
60
- builtInTabContentWidth?: number | undefined;
61
- copyTooltipText?: string | undefined;
62
- isPublicLink?: boolean | undefined;
63
- onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
64
- cloudId?: string | undefined;
65
- loggedInAccountId?: string | undefined;
66
- enableSmartUserPicker?: boolean | undefined;
67
- orgId?: string | undefined;
68
- isBrowseUsersDisabled?: boolean | undefined;
69
- userPickerOptions?: import("../types").UserPickerOptions | undefined;
70
- productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
71
- additionalUserFields?: React.ReactNode;
72
- isExtendedShareDialogEnabled?: boolean | undefined;
73
- CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
74
- bottomMessage?: React.ReactNode;
75
- customFooter?: React.ReactNode;
76
- customHeader?: React.ReactNode;
77
- customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
78
- dialogPlacement?: import("..").DialogPlacement | undefined;
79
- dialogZIndex?: number | undefined;
80
- formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
81
- isAutoOpenDialog?: boolean | undefined;
82
- isCopyDisabled?: boolean | undefined;
83
- isMenuItemSelected?: boolean | undefined;
84
- isSubmitShareDisabled?: boolean | undefined;
85
- loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
86
- onDialogClose?: (() => void) | undefined;
87
- onDialogOpen?: (() => void) | undefined;
88
- onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
89
- onTriggerButtonClick?: (() => void) | undefined;
90
- originTracingFactory?: OriginTracingFactory | undefined;
91
- product?: import("..").ProductName | undefined;
92
- productId?: import("..").ProductId | undefined;
93
- renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
94
- shareAri?: string | undefined;
95
- shareClient?: ShareClient | undefined;
96
- shareContentId?: string | undefined;
97
- shareContentSubType?: string | undefined;
98
- shareContentType?: string | undefined;
99
- shareeAction?: "view" | "edit" | undefined;
100
- shareFieldsFooter?: React.ReactNode;
101
- shareFormHelperMessage?: string | undefined;
102
- shareFormTitle?: React.ReactNode;
103
- shareLink?: string | undefined;
104
- shareTitle?: string | undefined;
105
- shortLinkData?: ShortenRequest | undefined;
106
- shouldCloseOnEscapePress?: boolean | undefined;
107
- showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
108
- tabIndex?: number | undefined;
109
- triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
110
- triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
111
- triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
112
- triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
113
- triggerButtonTooltipText?: React.ReactNode;
114
- urlShortenerClient?: UrlShortenerClient | undefined;
115
- useUrlShortener?: boolean | undefined;
116
- workspaceAri?: string | undefined;
117
- } & {
118
- createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
119
- ref?: React.Ref<any> | undefined;
120
- }, "ref"> & React.RefAttributes<any>>;
56
+ export declare const ShareDialogContainer: any;
121
57
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,21 +44,21 @@
44
44
  "@atlaskit/dropdown-menu": "^16.8.0",
45
45
  "@atlaskit/form": "^15.5.0",
46
46
  "@atlaskit/heading": "^5.4.0",
47
- "@atlaskit/icon": "^34.1.0",
47
+ "@atlaskit/icon": "^34.3.0",
48
48
  "@atlaskit/link": "^3.4.0",
49
- "@atlaskit/menu": "^8.4.0",
49
+ "@atlaskit/menu": "^8.5.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/popper": "^7.2.0",
52
- "@atlaskit/popup": "^4.16.0",
53
- "@atlaskit/portal": "^5.4.0",
52
+ "@atlaskit/popup": "^4.17.0",
53
+ "@atlaskit/portal": "^5.5.0",
54
54
  "@atlaskit/primitives": "^19.0.0",
55
55
  "@atlaskit/smart-user-picker": "^10.0.0",
56
56
  "@atlaskit/spinner": "^19.1.0",
57
- "@atlaskit/tabs": "^19.0.0",
58
- "@atlaskit/textarea": "^8.2.0",
59
- "@atlaskit/theme": "^23.0.0",
57
+ "@atlaskit/tabs": "^19.1.0",
58
+ "@atlaskit/textarea": "^8.3.0",
59
+ "@atlaskit/theme": "^23.2.0",
60
60
  "@atlaskit/tokens": "^13.0.0",
61
- "@atlaskit/tooltip": "^21.1.0",
61
+ "@atlaskit/tooltip": "^22.0.0",
62
62
  "@atlaskit/ufo": "^0.4.0",
63
63
  "@atlaskit/user-picker": "^12.0.0",
64
64
  "@atlaskit/util-service-support": "^6.3.0",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@atlaskit/editor-test-helpers": "workspace:^",
77
- "@atlaskit/flag": "^17.9.0",
77
+ "@atlaskit/flag": "^17.11.0",
78
78
  "@atlassian/feature-flags-test-utils": "^1.0.0",
79
79
  "@testing-library/react": "^16.3.0",
80
80
  "@testing-library/user-event": "^14.4.3",