@atlaskit/share 4.24.0 → 4.25.0

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,23 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
8
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
9
+ Update `React` from v16 to v18
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 4.24.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 4.24.0
4
22
 
5
23
  ### Minor 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: "4.24.0"
16
+ packageVersion: "4.25.0"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -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: "4.24.0",
4
+ packageVersion: "4.25.0",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -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.24.0"
9
+ packageVersion: "4.25.0"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
4
- import { type ConfigResponse } from '../clients/ShareServiceClient';
3
+ import { type ShortenRequest, type UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
4
+ import { type ConfigResponse, type ShareClient } from '../clients/ShareServiceClient';
5
5
  import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
6
6
  export declare const defaultConfig: ConfigResponse;
7
7
  export type State = {
@@ -47,5 +47,63 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): JSX.Element;
49
49
  }
50
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
+ productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
52
+ orgId?: string | undefined;
53
+ tabIndex?: number | undefined;
54
+ onTriggerButtonClick?: (() => void) | undefined;
55
+ isAutoOpenDialog?: boolean | undefined;
56
+ shouldCloseOnEscapePress?: boolean | undefined;
57
+ dialogPlacement?: import("@popperjs/core").Placement | undefined;
58
+ loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
59
+ onDialogOpen?: (() => void) | undefined;
60
+ onDialogClose?: (() => void) | undefined;
61
+ onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
62
+ renderCustomTriggerButton?: import("../types").RenderCustomTriggerButton | undefined;
63
+ shareContentType?: string | undefined;
64
+ shareContentSubType?: string | undefined;
65
+ shareContentId?: string | undefined;
66
+ shareFormTitle?: React.ReactNode;
67
+ shareFormHelperMessage?: string | undefined;
68
+ showFlags?: ((flags: import("../types").Flag[]) => void) | undefined;
69
+ enableSmartUserPicker?: boolean | undefined;
70
+ loggedInAccountId?: string | undefined;
71
+ triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
72
+ triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").IconProps> | undefined;
73
+ triggerButtonStyle?: import("../types").ShareButtonStyle | undefined;
74
+ triggerButtonTooltipPosition?: import("../types").TooltipPosition | undefined;
75
+ triggerButtonTooltipText?: React.ReactNode;
76
+ cloudId?: string | undefined;
77
+ bottomMessage?: React.ReactNode;
78
+ product?: import("../types").ProductName | undefined;
79
+ customFooter?: React.ReactNode;
80
+ isCopyDisabled?: boolean | undefined;
81
+ isPublicLink?: boolean | undefined;
82
+ integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
83
+ isMenuItemSelected?: boolean | undefined;
84
+ shareFieldsFooter?: React.ReactNode;
85
+ shareIntegrations?: import("../types").Integration[] | undefined;
86
+ additionalTabs?: import("../types").AdditionalTab[] | undefined;
87
+ builtInTabContentWidth?: number | undefined;
88
+ shareAri?: string | undefined;
89
+ copyTooltipText?: string | undefined;
90
+ dialogZIndex?: number | undefined;
91
+ isBrowseUsersDisabled?: boolean | undefined;
92
+ userPickerOptions?: import("../types").UserPickerOptions | undefined;
93
+ isSubmitShareDisabled?: boolean | undefined;
94
+ shareClient?: ShareClient | undefined;
95
+ urlShortenerClient?: UrlShortenerClient | undefined;
96
+ shortLinkData?: ShortenRequest | undefined;
97
+ formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
98
+ originTracingFactory?: OriginTracingFactory | undefined;
99
+ productId?: import("../types").ProductId | undefined;
100
+ shareLink?: string | undefined;
101
+ shareTitle?: string | undefined;
102
+ useUrlShortener?: boolean | undefined;
103
+ shareeAction?: "view" | "edit" | undefined;
104
+ workspaceAri?: string | undefined;
105
+ } & {
106
+ createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
107
+ ref?: React.Ref<any> | undefined;
108
+ }, "ref"> & React.RefAttributes<any>>;
51
109
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
4
- import { type ConfigResponse } from '../clients/ShareServiceClient';
3
+ import { type ShortenRequest, type UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
4
+ import { type ConfigResponse, type ShareClient } from '../clients/ShareServiceClient';
5
5
  import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
6
6
  export declare const defaultConfig: ConfigResponse;
7
7
  export type State = {
@@ -47,5 +47,63 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): JSX.Element;
49
49
  }
50
- export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Pick<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, keyof ShareDialogContainerProps>> & Partial<Pick<Partial<ShareDialogContainerInternalProps>, keyof WithAnalyticsEventsProps>>, "createAnalyticsEvent" | keyof ShareDialogContainerProps> & React.RefAttributes<any>>;
50
+ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
+ productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
52
+ orgId?: string | undefined;
53
+ tabIndex?: number | undefined;
54
+ onTriggerButtonClick?: (() => void) | undefined;
55
+ isAutoOpenDialog?: boolean | undefined;
56
+ shouldCloseOnEscapePress?: boolean | undefined;
57
+ dialogPlacement?: import("@popperjs/core").Placement | undefined;
58
+ loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
59
+ onDialogOpen?: (() => void) | undefined;
60
+ onDialogClose?: (() => void) | undefined;
61
+ onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
62
+ renderCustomTriggerButton?: import("../types").RenderCustomTriggerButton | undefined;
63
+ shareContentType?: string | undefined;
64
+ shareContentSubType?: string | undefined;
65
+ shareContentId?: string | undefined;
66
+ shareFormTitle?: React.ReactNode;
67
+ shareFormHelperMessage?: string | undefined;
68
+ showFlags?: ((flags: import("../types").Flag[]) => void) | undefined;
69
+ enableSmartUserPicker?: boolean | undefined;
70
+ loggedInAccountId?: string | undefined;
71
+ triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
72
+ triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").IconProps> | undefined;
73
+ triggerButtonStyle?: import("../types").ShareButtonStyle | undefined;
74
+ triggerButtonTooltipPosition?: import("../types").TooltipPosition | undefined;
75
+ triggerButtonTooltipText?: React.ReactNode;
76
+ cloudId?: string | undefined;
77
+ bottomMessage?: React.ReactNode;
78
+ product?: import("../types").ProductName | undefined;
79
+ customFooter?: React.ReactNode;
80
+ isCopyDisabled?: boolean | undefined;
81
+ isPublicLink?: boolean | undefined;
82
+ integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
83
+ isMenuItemSelected?: boolean | undefined;
84
+ shareFieldsFooter?: React.ReactNode;
85
+ shareIntegrations?: import("../types").Integration[] | undefined;
86
+ additionalTabs?: import("../types").AdditionalTab[] | undefined;
87
+ builtInTabContentWidth?: number | undefined;
88
+ shareAri?: string | undefined;
89
+ copyTooltipText?: string | undefined;
90
+ dialogZIndex?: number | undefined;
91
+ isBrowseUsersDisabled?: boolean | undefined;
92
+ userPickerOptions?: import("../types").UserPickerOptions | undefined;
93
+ isSubmitShareDisabled?: boolean | undefined;
94
+ shareClient?: ShareClient | undefined;
95
+ urlShortenerClient?: UrlShortenerClient | undefined;
96
+ shortLinkData?: ShortenRequest | undefined;
97
+ formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
98
+ originTracingFactory?: OriginTracingFactory | undefined;
99
+ productId?: import("../types").ProductId | undefined;
100
+ shareLink?: string | undefined;
101
+ shareTitle?: string | undefined;
102
+ useUrlShortener?: boolean | undefined;
103
+ shareeAction?: "view" | "edit" | undefined;
104
+ workspaceAri?: string | undefined;
105
+ } & {
106
+ createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
107
+ ref?: React.Ref<any> | undefined;
108
+ }, "ref"> & React.RefAttributes<any>>;
51
109
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.24.0",
3
+ "version": "4.25.0",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,28 +38,28 @@
38
38
  "access": "private"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/analytics-next": "^10.2.0",
42
- "@atlaskit/button": "^20.3.0",
43
- "@atlaskit/dropdown-menu": "^12.24.0",
44
- "@atlaskit/form": "^11.0.0",
45
- "@atlaskit/heading": "^4.0.0",
46
- "@atlaskit/icon": "^23.4.0",
47
- "@atlaskit/link": "^2.0.0",
48
- "@atlaskit/menu": "^2.13.0",
41
+ "@atlaskit/analytics-next": "^10.3.0",
42
+ "@atlaskit/button": "^20.4.0",
43
+ "@atlaskit/dropdown-menu": "^12.26.0",
44
+ "@atlaskit/form": "^11.1.0",
45
+ "@atlaskit/heading": "^4.1.0",
46
+ "@atlaskit/icon": "^23.5.0",
47
+ "@atlaskit/link": "^2.1.0",
48
+ "@atlaskit/menu": "^2.14.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
- "@atlaskit/popper": "^6.3.0",
51
- "@atlaskit/popup": "^1.30.0",
52
- "@atlaskit/portal": "^4.10.0",
53
- "@atlaskit/primitives": "^13.3.0",
54
- "@atlaskit/smart-user-picker": "^6.11.0",
55
- "@atlaskit/spinner": "^16.3.0",
56
- "@atlaskit/tabs": "^17.0.0",
57
- "@atlaskit/textarea": "^5.7.0",
58
- "@atlaskit/theme": "^14.0.0",
59
- "@atlaskit/tokens": "^3.1.0",
60
- "@atlaskit/tooltip": "^19.0.0",
50
+ "@atlaskit/popper": "^6.4.0",
51
+ "@atlaskit/popup": "^1.31.0",
52
+ "@atlaskit/portal": "^4.11.0",
53
+ "@atlaskit/primitives": "^13.4.0",
54
+ "@atlaskit/smart-user-picker": "^7.0.0",
55
+ "@atlaskit/spinner": "^17.1.0",
56
+ "@atlaskit/tabs": "^17.2.0",
57
+ "@atlaskit/textarea": "^5.8.0",
58
+ "@atlaskit/theme": "^14.1.0",
59
+ "@atlaskit/tokens": "^3.3.0",
60
+ "@atlaskit/tooltip": "^19.1.0",
61
61
  "@atlaskit/ufo": "^0.3.0",
62
- "@atlaskit/user-picker": "^10.29.0",
62
+ "@atlaskit/user-picker": "^10.31.0",
63
63
  "@atlaskit/util-service-support": "^6.2.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
@@ -72,14 +72,14 @@
72
72
  "react": "^16.8.0 || ^17.0.0 || ^18.2.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@atlaskit/editor-test-helpers": "^21.0.0",
76
- "@atlaskit/flag": "^15.8.0",
77
- "@atlassian/feature-flags-test-utils": "^0.2.0",
78
- "@testing-library/react": "^12.1.5",
75
+ "@atlaskit/editor-test-helpers": "^21.2.0",
76
+ "@atlaskit/flag": "^15.9.0",
77
+ "@atlassian/feature-flags-test-utils": "^0.3.0",
78
+ "@testing-library/react": "^13.4.0",
79
79
  "@testing-library/user-event": "^14.4.3",
80
80
  "enzyme": "^3.10.0",
81
81
  "enzyme-adapter-react-16": "^1.15.1",
82
- "react": "^16.8.0",
82
+ "react": "^18.2.0",
83
83
  "typescript": "~5.4.2"
84
84
  },
85
85
  "keywords": [