@atlaskit/share 4.16.6 → 4.16.7

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
+ ## 4.16.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
3
9
  ## 4.16.6
4
10
 
5
11
  ### 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
@@ -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.7"
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
@@ -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.7",
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
@@ -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.7"
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.7",
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",