@atlaskit/link-create 1.15.9 → 2.0.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 +41 -0
- package/CONTRIBUTING.md +3 -0
- package/dist/cjs/controllers/callback-context/main.js +7 -14
- package/dist/cjs/ui/create-form/async-select/main.js +2 -5
- package/dist/cjs/ui/create-form/main.js +3 -4
- package/dist/cjs/ui/link-create/error-boundary/index.js +5 -14
- package/dist/cjs/ui/link-create/main.js +16 -49
- package/dist/cjs/ui/main.js +2 -4
- package/dist/es2019/controllers/callback-context/main.js +7 -14
- package/dist/es2019/ui/create-form/async-select/main.js +2 -5
- package/dist/es2019/ui/create-form/main.js +3 -4
- package/dist/es2019/ui/link-create/error-boundary/index.js +5 -14
- package/dist/es2019/ui/link-create/main.js +3 -21
- package/dist/es2019/ui/main.js +3 -5
- package/dist/esm/controllers/callback-context/main.js +7 -14
- package/dist/esm/ui/create-form/async-select/main.js +2 -5
- package/dist/esm/ui/create-form/main.js +3 -4
- package/dist/esm/ui/link-create/error-boundary/index.js +5 -14
- package/dist/esm/ui/link-create/main.js +17 -50
- package/dist/esm/ui/main.js +3 -5
- package/dist/types/common/types.d.ts +2 -2
- package/dist/types/common/ui/Button/index.d.ts +1 -1
- package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types/common/utils/analytics/components.d.ts +1 -1
- package/dist/types/common/utils/analytics/context.d.ts +2 -2
- package/dist/types/common/utils/form/index.d.ts +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/controllers/callback-context/main.d.ts +2 -2
- package/dist/types/controllers/create-field/main.d.ts +1 -1
- package/dist/types/controllers/create-field/types.d.ts +2 -2
- package/dist/types/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types/controllers/form-context/main.d.ts +2 -2
- package/dist/types/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types/ui/create-form/async-select/main.d.ts +2 -2
- package/dist/types/ui/create-form/async-select/types.d.ts +2 -2
- package/dist/types/ui/create-form/form-loader/main.d.ts +1 -1
- package/dist/types/ui/create-form/main.d.ts +1 -1
- package/dist/types/ui/create-form/select/main.d.ts +2 -2
- package/dist/types/ui/create-form/select/types.d.ts +2 -2
- package/dist/types/ui/create-form/textfield/main.d.ts +1 -1
- package/dist/types/ui/create-form/textfield/types.d.ts +2 -2
- package/dist/types/ui/create-form/utils/index.d.ts +1 -1
- package/dist/types/ui/link-create/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types/ui/link-create/error-boundary/index.d.ts +1 -1
- package/dist/types/ui/link-create/main.d.ts +1 -1
- package/dist/types/ui/main.d.ts +2 -2
- package/dist/types-ts4.5/common/types.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/Button/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/analytics/components.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/analytics/context.d.ts +2 -2
- package/dist/types-ts4.5/common/utils/form/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +1 -1
- package/dist/types-ts4.5/controllers/create-field/types.d.ts +2 -2
- package/dist/types-ts4.5/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/form-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/async-select/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/select/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/textfield/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-create/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-create/error-boundary/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/link-create/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/main.d.ts +2 -2
- package/example-helpers/mock-plugin-form.tsx +2 -2
- package/package.json +8 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { OptionType } from '@atlaskit/select';
|
|
4
|
-
import { SelectProps } from './types';
|
|
3
|
+
import { type OptionType } from '@atlaskit/select';
|
|
4
|
+
import { type SelectProps } from './types';
|
|
5
5
|
export declare const TEST_ID = "link-create-select";
|
|
6
6
|
/**
|
|
7
7
|
* A select component utilising the Atlaskit Select and CreateField.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectProps as AKSelectProps, OptionType } from '@atlaskit/select';
|
|
2
|
-
import { Validator } from '../../../common/types';
|
|
1
|
+
import { type SelectProps as AKSelectProps, type OptionType } from '@atlaskit/select';
|
|
2
|
+
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type SelectProps<T = OptionType> = AKSelectProps<T> & {
|
|
4
4
|
/** Name passed to the <Field> */
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { TextFieldProps } from './types';
|
|
3
|
+
import { type TextFieldProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-text-field";
|
|
5
5
|
/**
|
|
6
6
|
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
|
|
2
|
-
import { Validator } from '../../../common/types';
|
|
1
|
+
import { type TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
|
|
2
|
+
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type TextFieldProps = Omit<AKTextFieldProps, 'name'> & {
|
|
4
4
|
/** Name passed to the <Field>.*/
|
|
5
5
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidatorMap } from '../../../common/types';
|
|
1
|
+
import { type ValidatorMap } from '../../../common/types';
|
|
2
2
|
/** Map of field names to errors for that field (or undefined if no error for that field) */
|
|
3
3
|
export type ValidatorResults = {
|
|
4
4
|
[name: string]: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { LinkCreateWithModalProps } from '../../common/types';
|
|
2
|
+
import { type LinkCreateWithModalProps } from '../../common/types';
|
|
3
3
|
export declare const TEST_ID = "link-create";
|
|
4
4
|
declare const LinkCreateModal: (props: LinkCreateWithModalProps) => jsx.JSX.Element;
|
|
5
5
|
export default LinkCreateModal;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { LinkCreateWithModalProps } from '../common/types';
|
|
4
|
-
import { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
3
|
+
import { type LinkCreateWithModalProps } from '../common/types';
|
|
4
|
+
import { type PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
5
5
|
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
6
6
|
declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
7
7
|
export default ComposedLinkCreate;
|
|
@@ -3,10 +3,10 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
AsyncSelect,
|
|
5
5
|
CreateForm,
|
|
6
|
-
CreateFormProps,
|
|
6
|
+
type CreateFormProps,
|
|
7
7
|
TextField,
|
|
8
8
|
useLinkCreateCallback,
|
|
9
|
-
Validator,
|
|
9
|
+
type Validator,
|
|
10
10
|
} from '../src';
|
|
11
11
|
|
|
12
12
|
import { MockDisclaimer } from './mock-disclaimer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,19 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
42
|
-
"@atlaskit/button": "^17.
|
|
42
|
+
"@atlaskit/button": "^17.16.0",
|
|
43
43
|
"@atlaskit/empty-state": "^7.8.0",
|
|
44
|
-
"@atlaskit/form": "^10.
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/form": "^10.2.0",
|
|
45
|
+
"@atlaskit/icon": "^22.3.0",
|
|
46
46
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
47
|
-
"@atlaskit/linking-common": "^5.
|
|
47
|
+
"@atlaskit/linking-common": "^5.7.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^12.13.0",
|
|
49
|
-
"@atlaskit/
|
|
50
|
-
"@atlaskit/primitives": "^6.1.0",
|
|
49
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
51
50
|
"@atlaskit/select": "^17.9.0",
|
|
52
51
|
"@atlaskit/spinner": "^16.1.0",
|
|
53
52
|
"@atlaskit/textfield": "^6.3.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
53
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
55
54
|
"@babel/runtime": "^7.0.0",
|
|
56
55
|
"@emotion/react": "^11.7.1",
|
|
57
56
|
"debounce-promise": "^3.1.2",
|
|
@@ -117,12 +116,5 @@
|
|
|
117
116
|
}
|
|
118
117
|
},
|
|
119
118
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
120
|
-
"platform-feature-flags": {
|
|
121
|
-
"platform.linking-platform.link-create.better-observability": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
|
-
"platform.linking-platform.link-create.enable-expected-field-errors": {
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
119
|
+
"platform-feature-flags": {}
|
|
128
120
|
}
|