@atlaskit/share 4.16.6 → 4.16.8

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,17 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.16.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#92719](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92719) [`61bf8a208660`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/61bf8a208660) - PTC-9045 Pass id to form input
8
+
9
+ ## 4.16.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#91429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91429) [`3de462db1b3f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3de462db1b3f) - Minor changes to Typescript types to improve compatibility with React 18
14
+
3
15
  ## 4.16.6
4
16
 
5
17
  ### Patch Changes
@@ -48,7 +48,6 @@ var memoizedFormatCopyLink = (0, _memoizeOne.default)(function (origin, link) {
48
48
  function getCurrentPageUrl() {
49
49
  return window.location.href;
50
50
  }
51
-
52
51
  /**
53
52
  * This component serves as a Provider to provide customizable implementations
54
53
  * to ShareDialogTrigger component
@@ -264,7 +264,8 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
264
264
  placeholder: /*#__PURE__*/_react.default.createElement("span", {
265
265
  id: USER_PICKER_FIELD_PLACEHOLDER
266
266
  }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, getPlaceHolderMessageDescriptor(product, allowEmail, isBrowseUsersDisabled))),
267
- menuPortalTarget: menuPortalTarget
267
+ menuPortalTarget: menuPortalTarget,
268
+ inputId: fieldProps.id
268
269
  })), helperMessage && !wasValidationOrShareError && /*#__PURE__*/_react.default.createElement(_form.HelperMessage, null, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/_react.default.createElement("a", {
269
270
  target: "_blank",
270
271
  href: shareError.helpUrl,
@@ -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: "4.16.6"
16
+ packageVersion: "4.16.8"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -25,7 +25,6 @@ const memoizedFormatCopyLink = memoizeOne((origin, link) => origin.addToUrl(link
25
25
  function getCurrentPageUrl() {
26
26
  return window.location.href;
27
27
  }
28
-
29
28
  /**
30
29
  * This component serves as a Provider to provide customizable implementations
31
30
  * to ShareDialogTrigger component
@@ -233,7 +233,8 @@ export class UserPickerFieldComponent extends React.Component {
233
233
  placeholder: /*#__PURE__*/React.createElement("span", {
234
234
  id: USER_PICKER_FIELD_PLACEHOLDER
235
235
  }, /*#__PURE__*/React.createElement(FormattedMessage, getPlaceHolderMessageDescriptor(product, allowEmail, isBrowseUsersDisabled))),
236
- menuPortalTarget: menuPortalTarget
236
+ menuPortalTarget: menuPortalTarget,
237
+ inputId: fieldProps.id
237
238
  })), helperMessage && !wasValidationOrShareError && /*#__PURE__*/React.createElement(HelperMessage, null, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/React.createElement("a", {
238
239
  target: "_blank",
239
240
  href: shareError.helpUrl,
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.16.6",
4
+ packageVersion: "4.16.8",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -41,7 +41,6 @@ var memoizedFormatCopyLink = memoizeOne(function (origin, link) {
41
41
  function getCurrentPageUrl() {
42
42
  return window.location.href;
43
43
  }
44
-
45
44
  /**
46
45
  * This component serves as a Provider to provide customizable implementations
47
46
  * to ShareDialogTrigger component
@@ -254,7 +254,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
254
254
  placeholder: /*#__PURE__*/React.createElement("span", {
255
255
  id: USER_PICKER_FIELD_PLACEHOLDER
256
256
  }, /*#__PURE__*/React.createElement(FormattedMessage, getPlaceHolderMessageDescriptor(product, allowEmail, isBrowseUsersDisabled))),
257
- menuPortalTarget: menuPortalTarget
257
+ menuPortalTarget: menuPortalTarget,
258
+ inputId: fieldProps.id
258
259
  })), helperMessage && !wasValidationOrShareError && /*#__PURE__*/React.createElement(HelperMessage, null, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/React.createElement("a", {
259
260
  target: "_blank",
260
261
  href: shareError.helpUrl,
@@ -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: "4.16.6"
9
+ packageVersion: "4.16.8"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -12,21 +12,18 @@ export type State = {
12
12
  shortenedCopyLink: null | string;
13
13
  shortenedCopyLinkData?: ShortenRequest;
14
14
  };
15
+ type ShareDialogContainerInternalProps = WithAnalyticsEventsProps & ShareDialogContainerProps;
15
16
  /**
16
17
  * This component serves as a Provider to provide customizable implementations
17
18
  * to ShareDialogTrigger component
18
19
  */
19
- export declare class ShareDialogContainerInternal extends React.Component<WithAnalyticsEventsProps & ShareDialogContainerProps, State> {
20
+ export declare class ShareDialogContainerInternal extends React.Component<ShareDialogContainerInternalProps, State> {
20
21
  private shareClient;
21
22
  private urlShortenerClient;
22
23
  private _isMounted;
23
24
  private _urlShorteningRequestCounter;
24
25
  private _lastUrlShorteningWasTooSlow;
25
- static defaultProps: {
26
- enableSmartUserPicker: boolean;
27
- shareeAction: "view" | "edit";
28
- product: string;
29
- };
26
+ static defaultProps: Partial<ShareDialogContainerInternalProps>;
30
27
  constructor(props: ShareDialogContainerProps);
31
28
  componentDidMount(): void;
32
29
  componentWillUnmount(): void;
@@ -50,8 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
50
47
  getFormShareLink: () => string;
51
48
  render(): JSX.Element;
52
49
  }
53
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "orgId" | "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "isBrowseUsersDisabled" | "userPickerOptions" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener" | "workspaceAri"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
54
- enableSmartUserPicker: boolean;
55
- shareeAction: "view" | "edit";
56
- product: string;
57
- }, never>> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
51
+ export {};
@@ -12,21 +12,18 @@ export type State = {
12
12
  shortenedCopyLink: null | string;
13
13
  shortenedCopyLinkData?: ShortenRequest;
14
14
  };
15
+ type ShareDialogContainerInternalProps = WithAnalyticsEventsProps & ShareDialogContainerProps;
15
16
  /**
16
17
  * This component serves as a Provider to provide customizable implementations
17
18
  * to ShareDialogTrigger component
18
19
  */
19
- export declare class ShareDialogContainerInternal extends React.Component<WithAnalyticsEventsProps & ShareDialogContainerProps, State> {
20
+ export declare class ShareDialogContainerInternal extends React.Component<ShareDialogContainerInternalProps, State> {
20
21
  private shareClient;
21
22
  private urlShortenerClient;
22
23
  private _isMounted;
23
24
  private _urlShorteningRequestCounter;
24
25
  private _lastUrlShorteningWasTooSlow;
25
- static defaultProps: {
26
- enableSmartUserPicker: boolean;
27
- shareeAction: "view" | "edit";
28
- product: string;
29
- };
26
+ static defaultProps: Partial<ShareDialogContainerInternalProps>;
30
27
  constructor(props: ShareDialogContainerProps);
31
28
  componentDidMount(): void;
32
29
  componentWillUnmount(): void;
@@ -50,8 +47,5 @@ export declare class ShareDialogContainerInternal extends React.Component<WithAn
50
47
  getFormShareLink: () => string;
51
48
  render(): JSX.Element;
52
49
  }
53
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "orgId" | "onTriggerButtonClick" | "isAutoOpenDialog" | "shouldCloseOnEscapePress" | "dialogPlacement" | "loadUserOptions" | "onDialogOpen" | "onDialogClose" | "onUserSelectionChange" | "renderCustomTriggerButton" | "shareContentType" | "shareContentSubType" | "shareContentId" | "shareFormTitle" | "shareFormHelperMessage" | "showFlags" | "loggedInAccountId" | "triggerButtonAppearance" | "triggerButtonIcon" | "triggerButtonStyle" | "triggerButtonTooltipPosition" | "triggerButtonTooltipText" | "cloudId" | "bottomMessage" | "customFooter" | "isCopyDisabled" | "isPublicLink" | "integrationMode" | "shareFieldsFooter" | "shareIntegrations" | "shareAri" | "tabIndex" | "copyTooltipText" | "dialogZIndex" | "isBrowseUsersDisabled" | "userPickerOptions" | "shareClient" | "urlShortenerClient" | "shortLinkData" | "formatCopyLink" | "originTracingFactory" | "productId" | "shareLink" | "shareTitle" | "useUrlShortener" | "workspaceAri"> & Partial<Pick<Omit<WithAnalyticsEventsProps & ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, "enableSmartUserPicker" | "product" | "shareeAction">> & Partial<Pick<{
54
- enableSmartUserPicker: boolean;
55
- shareeAction: "view" | "edit";
56
- product: string;
57
- }, never>> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerInternalProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
51
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.16.6",
3
+ "version": "4.16.8",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,20 +42,20 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^9.2.0",
45
- "@atlaskit/button": "^17.11.0",
46
- "@atlaskit/dropdown-menu": "^12.8.0",
47
- "@atlaskit/form": "^9.1.0",
45
+ "@atlaskit/button": "^17.12.0",
46
+ "@atlaskit/dropdown-menu": "^12.9.0",
47
+ "@atlaskit/form": "^9.2.0",
48
48
  "@atlaskit/icon": "^22.1.0",
49
49
  "@atlaskit/popper": "^5.5.4",
50
50
  "@atlaskit/popup": "^1.14.0",
51
51
  "@atlaskit/portal": "^4.4.0",
52
52
  "@atlaskit/smart-user-picker": "^6.9.0",
53
53
  "@atlaskit/spinner": "^16.0.0",
54
- "@atlaskit/tabs": "^14.0.0",
54
+ "@atlaskit/tabs": "^14.1.0",
55
55
  "@atlaskit/textarea": "^5.2.0",
56
56
  "@atlaskit/theme": "^12.7.0",
57
57
  "@atlaskit/tokens": "^1.43.0",
58
- "@atlaskit/tooltip": "^18.1.0",
58
+ "@atlaskit/tooltip": "^18.2.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
60
  "@atlaskit/user-picker": "^10.19.0",
61
61
  "@atlaskit/util-service-support": "^6.2.0",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@atlaskit/editor-test-helpers": "^18.20.0",
76
- "@atlaskit/flag": "^15.3.0",
76
+ "@atlaskit/flag": "^15.4.0",
77
77
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
78
78
  "@testing-library/react": "^12.1.5",
79
79
  "@testing-library/user-event": "^14.4.3",