@atlaskit/link-create 2.13.19 → 2.14.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/link-create
2
2
 
3
+ ## 2.14.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
+ ## 2.13.20
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 2.13.19
4
22
 
5
23
  ### Patch Changes
@@ -13,7 +13,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
13
13
  var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
14
14
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/link-create" || '',
16
- packageVersion: "2.13.19" || '',
16
+ packageVersion: "2.14.0" || '',
17
17
  component: COMPONENT_NAME,
18
18
  componentName: COMPONENT_NAME
19
19
  };
@@ -7,7 +7,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
7
7
  export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
8
8
  export const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/link-create" || '',
10
- packageVersion: "2.13.19" || '',
10
+ packageVersion: "2.14.0" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
@@ -7,7 +7,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
7
7
  export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
8
8
  export var PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/link-create" || '',
10
- packageVersion: "2.13.19" || '',
10
+ packageVersion: "2.14.0" || '',
11
11
  component: COMPONENT_NAME,
12
12
  componentName: COMPONENT_NAME
13
13
  };
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
+ import AkButton from '@atlaskit/button';
2
3
  import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
3
- export declare const Button: React.ForwardRefExoticComponent<Pick<import("@atlaskit/button").ButtonProps & React.RefAttributes<HTMLElement> & {
4
- actionSubjectId: "create" | "edit" | "cancel" | "confirm";
5
- }, "actionSubjectId" | "key" | keyof import("@atlaskit/button").ButtonProps> & React.RefAttributes<HTMLElement>>;
4
+ type ButtonProps = React.ComponentProps<typeof AkButton> & {
5
+ actionSubjectId: keyof {
6
+ [Key in keyof AnalyticsEventAttributes as Key extends `ui.button.clicked.${infer ActionSubjectId}` ? ActionSubjectId : never]: any;
7
+ };
8
+ };
9
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
10
+ export {};
@@ -13,6 +13,6 @@ interface BaseErrorBoundaryProps {
13
13
  export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
14
14
  constructor(props: BaseErrorBoundaryProps);
15
15
  componentDidCatch(error: Error, info?: ErrorInfo): void;
16
- render(): ReactNode;
16
+ render(): string | number | boolean | import("react").ReactFragment | JSX.Element | null | undefined;
17
17
  }
18
18
  export {};
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
+ import AkButton from '@atlaskit/button';
2
3
  import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
3
- export declare const Button: React.ForwardRefExoticComponent<Pick<import("@atlaskit/button").ButtonProps & React.RefAttributes<HTMLElement> & {
4
- actionSubjectId: "create" | "edit" | "cancel" | "confirm";
5
- }, "actionSubjectId" | "key" | keyof import("@atlaskit/button").ButtonProps> & React.RefAttributes<HTMLElement>>;
4
+ type ButtonProps = React.ComponentProps<typeof AkButton> & {
5
+ actionSubjectId: keyof {
6
+ [Key in keyof AnalyticsEventAttributes as Key extends `ui.button.clicked.${infer ActionSubjectId}` ? ActionSubjectId : never]: any;
7
+ };
8
+ };
9
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
10
+ export {};
@@ -13,6 +13,6 @@ interface BaseErrorBoundaryProps {
13
13
  export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
14
14
  constructor(props: BaseErrorBoundaryProps);
15
15
  componentDidCatch(error: Error, info?: ErrorInfo): void;
16
- render(): ReactNode;
16
+ render(): string | number | boolean | import("react").ReactFragment | JSX.Element | null | undefined;
17
17
  }
18
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "2.13.19",
3
+ "version": "2.14.0",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,24 +34,24 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/analytics-next": "^10.2.0",
38
- "@atlaskit/atlassian-context": "^0.0.2",
39
- "@atlaskit/button": "^20.3.0",
40
- "@atlaskit/empty-state": "^8.1.0",
41
- "@atlaskit/form": "^11.0.0",
42
- "@atlaskit/icon": "^23.4.0",
43
- "@atlaskit/icon-file-type": "^6.8.0",
44
- "@atlaskit/intl-messages-provider": "^1.0.2",
45
- "@atlaskit/layering": "^1.0.0",
46
- "@atlaskit/linking-common": "^6.1.0",
47
- "@atlaskit/modal-dialog": "^12.19.0",
48
- "@atlaskit/primitives": "^13.3.0",
49
- "@atlaskit/select": "^18.9.0",
50
- "@atlaskit/smart-user-picker": "^6.11.0",
51
- "@atlaskit/spinner": "^16.3.0",
52
- "@atlaskit/textfield": "^6.7.0",
53
- "@atlaskit/theme": "^14.0.0",
54
- "@atlaskit/tokens": "^3.2.0",
37
+ "@atlaskit/analytics-next": "^10.3.0",
38
+ "@atlaskit/atlassian-context": "^0.1.0",
39
+ "@atlaskit/button": "^20.4.0",
40
+ "@atlaskit/empty-state": "^8.2.0",
41
+ "@atlaskit/form": "^11.1.0",
42
+ "@atlaskit/icon": "^23.5.0",
43
+ "@atlaskit/icon-file-type": "^6.9.0",
44
+ "@atlaskit/intl-messages-provider": "^1.1.0",
45
+ "@atlaskit/layering": "^1.1.0",
46
+ "@atlaskit/linking-common": "^6.2.0",
47
+ "@atlaskit/modal-dialog": "^12.20.0",
48
+ "@atlaskit/primitives": "^13.4.0",
49
+ "@atlaskit/select": "^18.10.0",
50
+ "@atlaskit/smart-user-picker": "^7.0.0",
51
+ "@atlaskit/spinner": "^17.1.0",
52
+ "@atlaskit/textfield": "^6.8.0",
53
+ "@atlaskit/theme": "^14.1.0",
54
+ "@atlaskit/tokens": "^3.3.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1",
57
57
  "@emotion/styled": "^11.0.0",
@@ -67,17 +67,17 @@
67
67
  "@af/accessibility-testing": "*",
68
68
  "@af/integration-testing": "*",
69
69
  "@af/visual-regression": "*",
70
- "@atlaskit/drawer": "^9.3.0",
71
- "@atlaskit/link-test-helpers": "^7.5.0",
72
- "@atlaskit/popup": "^1.30.0",
70
+ "@atlaskit/drawer": "^9.4.0",
71
+ "@atlaskit/link-test-helpers": "^7.6.0",
72
+ "@atlaskit/popup": "^1.31.0",
73
73
  "@atlaskit/visual-regression": "*",
74
74
  "@atlassian/feature-flags-test-utils": "*",
75
- "@testing-library/react": "^12.1.5",
75
+ "@testing-library/react": "^13.4.0",
76
76
  "@testing-library/react-hooks": "^8.0.1",
77
77
  "@testing-library/user-event": "^14.4.3",
78
78
  "@types/debounce-promise": "^3.1.2",
79
79
  "fetch-mock": "^8.0.0",
80
- "react-dom": "^16.8.0",
80
+ "react-dom": "^18.2.0",
81
81
  "typescript": "~5.4.2",
82
82
  "wait-for-expect": "^1.2.0"
83
83
  },