@atlaskit/link-create 0.4.2 → 0.4.4

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/version.json +1 -1
  3. package/dist/es2019/version.json +1 -1
  4. package/dist/esm/version.json +1 -1
  5. package/dist/types/common/types.d.ts +2 -2
  6. package/dist/types/common/utils/analytics/analytics.codegen.d.ts +9 -9
  7. package/dist/types/common/utils/analytics/context.d.ts +1 -1
  8. package/dist/types/ui/create-form/async-select/types.d.ts +1 -1
  9. package/dist/types/ui/create-form/textfield/types.d.ts +1 -1
  10. package/dist/types/ui/create-form/types.d.ts +1 -1
  11. package/dist/types/ui/create-form/utils/index.d.ts +1 -1
  12. package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +2 -2
  13. package/dist/{types-ts4.0 → types-ts4.5}/common/types.d.ts +2 -2
  14. package/dist/{types-ts4.0 → types-ts4.5}/common/utils/analytics/analytics.codegen.d.ts +9 -9
  15. package/dist/{types-ts4.0 → types-ts4.5}/common/utils/analytics/context.d.ts +1 -1
  16. package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/async-select/types.d.ts +1 -1
  17. package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/textfield/types.d.ts +1 -1
  18. package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/types.d.ts +1 -1
  19. package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/utils/index.d.ts +1 -1
  20. package/dist/{types-ts4.0 → types-ts4.5}/ui/error-boundary/error-boundary-base/index.d.ts +2 -2
  21. package/package.json +14 -6
  22. /package/dist/{types-ts4.0 → types-ts4.5}/common/constants.d.ts +0 -0
  23. /package/dist/{types-ts4.0 → types-ts4.5}/common/utils/analytics/index.d.ts +0 -0
  24. /package/dist/{types-ts4.0 → types-ts4.5}/controllers/callback-context/index.d.ts +0 -0
  25. /package/dist/{types-ts4.0 → types-ts4.5}/controllers/callback-context/main.d.ts +0 -0
  26. /package/dist/{types-ts4.0 → types-ts4.5}/controllers/form-context/index.d.ts +0 -0
  27. /package/dist/{types-ts4.0 → types-ts4.5}/controllers/form-context/main.d.ts +0 -0
  28. /package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
  29. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/async-select/index.d.ts +0 -0
  30. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/async-select/main.d.ts +0 -0
  31. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/index.d.ts +0 -0
  32. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/main.d.ts +0 -0
  33. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/messages.d.ts +0 -0
  34. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/textfield/index.d.ts +0 -0
  35. /package/dist/{types-ts4.0 → types-ts4.5}/ui/create-form/textfield/main.d.ts +0 -0
  36. /package/dist/{types-ts4.0 → types-ts4.5}/ui/error-boundary/error-boundary-ui/error-svg/index.d.ts +0 -0
  37. /package/dist/{types-ts4.0 → types-ts4.5}/ui/error-boundary/error-boundary-ui/index.d.ts +0 -0
  38. /package/dist/{types-ts4.0 → types-ts4.5}/ui/error-boundary/error-boundary-ui/messages.d.ts +0 -0
  39. /package/dist/{types-ts4.0 → types-ts4.5}/ui/error-boundary/index.d.ts +0 -0
  40. /package/dist/{types-ts4.0 → types-ts4.5}/ui/group-selection/index.d.ts +0 -0
  41. /package/dist/{types-ts4.0 → types-ts4.5}/ui/group-selection/types.d.ts +0 -0
  42. /package/dist/{types-ts4.0 → types-ts4.5}/ui/index.d.ts +0 -0
  43. /package/dist/{types-ts4.0 → types-ts4.5}/ui/main.d.ts +0 -0
  44. /package/dist/{types-ts4.0 → types-ts4.5}/ui/messages.d.ts +0 -0
  45. /package/dist/{types-ts4.0 → types-ts4.5}/ui/types.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 0.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 0.4.2
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  /** Map of field names to a list of validators for that field */
3
- export declare type ValidatorMap = Record<string, Validator[]>;
4
- export declare type Validator = {
3
+ export type ValidatorMap = Record<string, Validator[]>;
4
+ export type Validator = {
5
5
  /** Return true when the given input is valid */
6
6
  isValid: (val: unknown) => boolean;
7
7
  /** An error message is used to tell a user that the field input is invalid. For example, an error message could be 'Invalid username, needs to be more than 4 characters'. */
@@ -6,31 +6,31 @@
6
6
  * @codegen <<SignedSource::6d7803f5c035dc3cde1be03caa91eb04>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
- export declare type PackageMetaDataType = {
9
+ export type PackageMetaDataType = {
10
10
  packageName: '@atlaskit/link-create';
11
11
  packageVersion: string;
12
12
  source: 'linkCreate';
13
13
  componentName: 'linkCreate';
14
14
  };
15
- export declare type LinkCreateAnalyticsContextType = {
15
+ export type LinkCreateAnalyticsContextType = {
16
16
  triggeredFrom: string;
17
17
  objectName: string;
18
18
  appearance: 'modal' | 'popup';
19
19
  };
20
- export declare type LinkCreateScreenViewedAttributesType = {};
21
- export declare type ButtonClickedCreateAttributesType = {};
22
- export declare type ButtonClickedCancelAttributesType = {};
23
- export declare type LinkCreateScreenClosedAttributesType = {};
24
- export declare type LinkCreateUnhandledErrorCaughtAttributesType = {
20
+ export type LinkCreateScreenViewedAttributesType = {};
21
+ export type ButtonClickedCreateAttributesType = {};
22
+ export type ButtonClickedCancelAttributesType = {};
23
+ export type LinkCreateScreenClosedAttributesType = {};
24
+ export type LinkCreateUnhandledErrorCaughtAttributesType = {
25
25
  browserInfo: string;
26
26
  error: string;
27
27
  componentStack: string | null;
28
28
  };
29
- export declare type ObjectCreatedLinkCreateAttributesType = {
29
+ export type ObjectCreatedLinkCreateAttributesType = {
30
30
  objectId: string;
31
31
  objectType: string;
32
32
  };
33
- declare type AnalyticsEventAttributes = {
33
+ type AnalyticsEventAttributes = {
34
34
  'screen.linkCreateScreen.viewed': LinkCreateScreenViewedAttributesType;
35
35
  'ui.button.clicked.create': ButtonClickedCreateAttributesType;
36
36
  'ui.button.clicked.cancel': ButtonClickedCancelAttributesType;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { LinkCreateProps } from '../../types';
3
3
  import { LinkCreateAnalyticsContextType } from './analytics.codegen';
4
- export declare type TrackAttribute = <K extends keyof LinkCreateAnalyticsContextType>(attribute: K, value: LinkCreateAnalyticsContextType[K]) => void;
4
+ export type TrackAttribute = <K extends keyof LinkCreateAnalyticsContextType>(attribute: K, value: LinkCreateAnalyticsContextType[K]) => void;
5
5
  interface AnalyticsContextType {
6
6
  /**
7
7
  * Update a single attribute in the analytics context
@@ -1,6 +1,6 @@
1
1
  import { AsyncSelectProps as AKAsyncSelectProps, OptionType } from '@atlaskit/select';
2
2
  import { Validator } from '../../../common/types';
3
- export declare type AsyncSelectProps<T = OptionType> = AKAsyncSelectProps<T> & {
3
+ export type AsyncSelectProps<T = OptionType> = AKAsyncSelectProps<T> & {
4
4
  /** Name passed to the <Field>.*/
5
5
  name: string;
6
6
  /** This should be properly internationalization-ed */
@@ -1,6 +1,6 @@
1
1
  import { TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
2
2
  import { Validator } from '../../../common/types';
3
- export declare type TextFieldProps = Omit<AKTextFieldProps, 'name' | 'isRequired'> & {
3
+ export type TextFieldProps = Omit<AKTextFieldProps, 'name' | 'isRequired'> & {
4
4
  /** Name passed to the <Field>.*/
5
5
  name: string;
6
6
  label?: string;
@@ -1,4 +1,4 @@
1
- export declare type Validator = {
1
+ export type Validator = {
2
2
  /** Return true when the given input is valid */
3
3
  isValid: (val: unknown) => boolean;
4
4
  /** An error message is used to tell a user that the field input is invalid. For example, an error message could be 'Invalid username, needs to be more than 4 characters'. */
@@ -1,6 +1,6 @@
1
1
  import { ValidatorMap } from '../../../common/types';
2
2
  /** Map of field names to errors for that field (or undefined if no error for that field) */
3
- export declare type ValidatorResults = {
3
+ export type ValidatorResults = {
4
4
  [name: string]: string | undefined;
5
5
  };
6
6
  /**
@@ -1,8 +1,8 @@
1
1
  import React, { Component, ReactNode } from 'react';
2
- export declare type ErrorBoundaryErrorInfo = {
2
+ export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
5
- declare type BaseErrorBoundaryState = {
5
+ type BaseErrorBoundaryState = {
6
6
  hasError: boolean;
7
7
  };
8
8
  interface BaseErrorBoundaryProps {
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  /** Map of field names to a list of validators for that field */
3
- export declare type ValidatorMap = Record<string, Validator[]>;
4
- export declare type Validator = {
3
+ export type ValidatorMap = Record<string, Validator[]>;
4
+ export type Validator = {
5
5
  /** Return true when the given input is valid */
6
6
  isValid: (val: unknown) => boolean;
7
7
  /** An error message is used to tell a user that the field input is invalid. For example, an error message could be 'Invalid username, needs to be more than 4 characters'. */
@@ -6,31 +6,31 @@
6
6
  * @codegen <<SignedSource::6d7803f5c035dc3cde1be03caa91eb04>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
- export declare type PackageMetaDataType = {
9
+ export type PackageMetaDataType = {
10
10
  packageName: '@atlaskit/link-create';
11
11
  packageVersion: string;
12
12
  source: 'linkCreate';
13
13
  componentName: 'linkCreate';
14
14
  };
15
- export declare type LinkCreateAnalyticsContextType = {
15
+ export type LinkCreateAnalyticsContextType = {
16
16
  triggeredFrom: string;
17
17
  objectName: string;
18
18
  appearance: 'modal' | 'popup';
19
19
  };
20
- export declare type LinkCreateScreenViewedAttributesType = {};
21
- export declare type ButtonClickedCreateAttributesType = {};
22
- export declare type ButtonClickedCancelAttributesType = {};
23
- export declare type LinkCreateScreenClosedAttributesType = {};
24
- export declare type LinkCreateUnhandledErrorCaughtAttributesType = {
20
+ export type LinkCreateScreenViewedAttributesType = {};
21
+ export type ButtonClickedCreateAttributesType = {};
22
+ export type ButtonClickedCancelAttributesType = {};
23
+ export type LinkCreateScreenClosedAttributesType = {};
24
+ export type LinkCreateUnhandledErrorCaughtAttributesType = {
25
25
  browserInfo: string;
26
26
  error: string;
27
27
  componentStack: string | null;
28
28
  };
29
- export declare type ObjectCreatedLinkCreateAttributesType = {
29
+ export type ObjectCreatedLinkCreateAttributesType = {
30
30
  objectId: string;
31
31
  objectType: string;
32
32
  };
33
- declare type AnalyticsEventAttributes = {
33
+ type AnalyticsEventAttributes = {
34
34
  'screen.linkCreateScreen.viewed': LinkCreateScreenViewedAttributesType;
35
35
  'ui.button.clicked.create': ButtonClickedCreateAttributesType;
36
36
  'ui.button.clicked.cancel': ButtonClickedCancelAttributesType;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { LinkCreateProps } from '../../types';
3
3
  import { LinkCreateAnalyticsContextType } from './analytics.codegen';
4
- export declare type TrackAttribute = <K extends keyof LinkCreateAnalyticsContextType>(attribute: K, value: LinkCreateAnalyticsContextType[K]) => void;
4
+ export type TrackAttribute = <K extends keyof LinkCreateAnalyticsContextType>(attribute: K, value: LinkCreateAnalyticsContextType[K]) => void;
5
5
  interface AnalyticsContextType {
6
6
  /**
7
7
  * Update a single attribute in the analytics context
@@ -1,6 +1,6 @@
1
1
  import { AsyncSelectProps as AKAsyncSelectProps, OptionType } from '@atlaskit/select';
2
2
  import { Validator } from '../../../common/types';
3
- export declare type AsyncSelectProps<T = OptionType> = AKAsyncSelectProps<T> & {
3
+ export type AsyncSelectProps<T = OptionType> = AKAsyncSelectProps<T> & {
4
4
  /** Name passed to the <Field>.*/
5
5
  name: string;
6
6
  /** This should be properly internationalization-ed */
@@ -1,6 +1,6 @@
1
1
  import { TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
2
2
  import { Validator } from '../../../common/types';
3
- export declare type TextFieldProps = Omit<AKTextFieldProps, 'name' | 'isRequired'> & {
3
+ export type TextFieldProps = Omit<AKTextFieldProps, 'name' | 'isRequired'> & {
4
4
  /** Name passed to the <Field>.*/
5
5
  name: string;
6
6
  label?: string;
@@ -1,4 +1,4 @@
1
- export declare type Validator = {
1
+ export type Validator = {
2
2
  /** Return true when the given input is valid */
3
3
  isValid: (val: unknown) => boolean;
4
4
  /** An error message is used to tell a user that the field input is invalid. For example, an error message could be 'Invalid username, needs to be more than 4 characters'. */
@@ -1,6 +1,6 @@
1
1
  import { ValidatorMap } from '../../../common/types';
2
2
  /** Map of field names to errors for that field (or undefined if no error for that field) */
3
- export declare type ValidatorResults = {
3
+ export type ValidatorResults = {
4
4
  [name: string]: string | undefined;
5
5
  };
6
6
  /**
@@ -1,8 +1,8 @@
1
1
  import React, { Component, ReactNode } from 'react';
2
- export declare type ErrorBoundaryErrorInfo = {
2
+ export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
5
- declare type BaseErrorBoundaryState = {
5
+ type BaseErrorBoundaryState = {
6
6
  hasError: boolean;
7
7
  };
8
8
  interface BaseErrorBoundaryProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,6 +20,14 @@
20
20
  "module": "dist/esm/index.js",
21
21
  "module:es2019": "dist/es2019/index.js",
22
22
  "types": "dist/types/index.d.ts",
23
+ "typesVersions": {
24
+ ">=4.5 <4.9": {
25
+ "*": [
26
+ "dist/types-ts4.5/*",
27
+ "dist/types-ts4.5/index.d.ts"
28
+ ]
29
+ }
30
+ },
23
31
  "sideEffects": false,
24
32
  "atlaskit:src": "src/index.ts",
25
33
  "af:exports": {
@@ -34,7 +42,7 @@
34
42
  "@atlaskit/modal-dialog": "^12.5.0",
35
43
  "@atlaskit/select": "^16.2.0",
36
44
  "@atlaskit/textfield": "^5.4.0",
37
- "@atlaskit/tokens": "^1.3.0",
45
+ "@atlaskit/tokens": "^1.4.0",
38
46
  "@babel/runtime": "^7.0.0",
39
47
  "@emotion/react": "^11.7.1"
40
48
  },
@@ -54,15 +62,15 @@
54
62
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
55
63
  "@atlassian/link-create-confluence": "^5.0.0",
56
64
  "@atlassian/link-create-presets": "^3.0.0",
57
- "@atlassian/link-picker-atlassian-plugin": "^30.0.0",
58
- "@atlassian/link-picker-plugins": "^20.0.0",
65
+ "@atlassian/link-picker-atlassian-plugin": "^30.1.0",
66
+ "@atlassian/link-picker-plugins": "^20.1.0",
59
67
  "@atlassian/recent-work-client": "^1.8.0",
60
- "@atlassian/search-client": "^0.8.0",
68
+ "@atlassian/search-client": "^0.9.0",
61
69
  "@testing-library/react": "^12.1.5",
62
70
  "@testing-library/user-event": "^14.4.3",
63
71
  "fetch-mock": "^8.0.0",
64
72
  "react-dom": "^16.8.0",
65
- "typescript": "4.5.5",
73
+ "typescript": "~4.9.5",
66
74
  "wait-for-expect": "^1.2.0"
67
75
  },
68
76
  "scripts": {
File without changes
File without changes
File without changes
File without changes