@atlaskit/link-create 1.11.0 → 1.11.2
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 +13 -0
- package/analytics.spec.yaml +1 -1
- package/dist/cjs/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/cjs/controllers/experience-tracker/index.js +1 -1
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/de.js +1 -1
- package/dist/cjs/i18n/en.js +1 -1
- package/dist/cjs/i18n/en_GB.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +1 -1
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/fi.js +1 -1
- package/dist/cjs/i18n/fr.js +1 -1
- package/dist/cjs/i18n/hu.js +1 -1
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/ja.js +1 -1
- package/dist/cjs/i18n/ko.js +1 -1
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/nl.js +1 -1
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/sv.js +1 -1
- package/dist/cjs/i18n/th.js +1 -1
- package/dist/cjs/i18n/tr.js +1 -1
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -1
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/es2019/controllers/experience-tracker/index.js +1 -1
- package/dist/es2019/i18n/cs.js +1 -1
- package/dist/es2019/i18n/da.js +1 -1
- package/dist/es2019/i18n/de.js +1 -1
- package/dist/es2019/i18n/en.js +1 -1
- package/dist/es2019/i18n/en_GB.js +1 -1
- package/dist/es2019/i18n/en_ZZ.js +1 -1
- package/dist/es2019/i18n/es.js +1 -1
- package/dist/es2019/i18n/fi.js +1 -1
- package/dist/es2019/i18n/fr.js +1 -1
- package/dist/es2019/i18n/hu.js +1 -1
- package/dist/es2019/i18n/it.js +1 -1
- package/dist/es2019/i18n/ja.js +1 -1
- package/dist/es2019/i18n/ko.js +1 -1
- package/dist/es2019/i18n/nb.js +1 -1
- package/dist/es2019/i18n/nl.js +1 -1
- package/dist/es2019/i18n/pl.js +1 -1
- package/dist/es2019/i18n/pt_BR.js +1 -1
- package/dist/es2019/i18n/ru.js +1 -1
- package/dist/es2019/i18n/sv.js +1 -1
- package/dist/es2019/i18n/th.js +1 -1
- package/dist/es2019/i18n/tr.js +1 -1
- package/dist/es2019/i18n/uk.js +1 -1
- package/dist/es2019/i18n/vi.js +1 -1
- package/dist/es2019/i18n/zh.js +1 -1
- package/dist/es2019/i18n/zh_TW.js +1 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/esm/controllers/experience-tracker/index.js +1 -1
- package/dist/esm/i18n/cs.js +1 -1
- package/dist/esm/i18n/da.js +1 -1
- package/dist/esm/i18n/de.js +1 -1
- package/dist/esm/i18n/en.js +1 -1
- package/dist/esm/i18n/en_GB.js +1 -1
- package/dist/esm/i18n/en_ZZ.js +1 -1
- package/dist/esm/i18n/es.js +1 -1
- package/dist/esm/i18n/fi.js +1 -1
- package/dist/esm/i18n/fr.js +1 -1
- package/dist/esm/i18n/hu.js +1 -1
- package/dist/esm/i18n/it.js +1 -1
- package/dist/esm/i18n/ja.js +1 -1
- package/dist/esm/i18n/ko.js +1 -1
- package/dist/esm/i18n/nb.js +1 -1
- package/dist/esm/i18n/nl.js +1 -1
- package/dist/esm/i18n/pl.js +1 -1
- package/dist/esm/i18n/pt_BR.js +1 -1
- package/dist/esm/i18n/ru.js +1 -1
- package/dist/esm/i18n/sv.js +1 -1
- package/dist/esm/i18n/th.js +1 -1
- package/dist/esm/i18n/tr.js +1 -1
- package/dist/esm/i18n/uk.js +1 -1
- package/dist/esm/i18n/vi.js +1 -1
- package/dist/esm/i18n/zh.js +1 -1
- package/dist/esm/i18n/zh_TW.js +1 -1
- package/dist/esm/ui/main.js +1 -1
- package/dist/types/common/utils/analytics/analytics.codegen.d.ts +3 -3
- package/dist/types/i18n/cs.d.ts +1 -1
- package/dist/types/i18n/da.d.ts +1 -1
- package/dist/types/i18n/de.d.ts +1 -1
- package/dist/types/i18n/en.d.ts +1 -1
- package/dist/types/i18n/en_GB.d.ts +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +1 -1
- package/dist/types/i18n/es.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +1 -1
- package/dist/types/i18n/fr.d.ts +1 -1
- package/dist/types/i18n/hu.d.ts +1 -1
- package/dist/types/i18n/it.d.ts +1 -1
- package/dist/types/i18n/ja.d.ts +1 -1
- package/dist/types/i18n/ko.d.ts +1 -1
- package/dist/types/i18n/nb.d.ts +1 -1
- package/dist/types/i18n/nl.d.ts +1 -1
- package/dist/types/i18n/pl.d.ts +1 -1
- package/dist/types/i18n/pt_BR.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +1 -1
- package/dist/types/i18n/th.d.ts +1 -1
- package/dist/types/i18n/tr.d.ts +1 -1
- package/dist/types/i18n/uk.d.ts +1 -1
- package/dist/types/i18n/vi.d.ts +1 -1
- package/dist/types/i18n/zh.d.ts +1 -1
- package/dist/types/i18n/zh_TW.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +3 -3
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -1
- package/dist/types-ts4.5/i18n/da.d.ts +1 -1
- package/dist/types-ts4.5/i18n/de.d.ts +1 -1
- package/dist/types-ts4.5/i18n/en.d.ts +1 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -1
- package/dist/types-ts4.5/i18n/es.d.ts +1 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -1
- package/dist/types-ts4.5/i18n/it.d.ts +1 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -1
- package/dist/types-ts4.5/i18n/th.d.ts +1 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -1
- package/package.json +2 -2
- package/tmp/api-report-tmp.d.ts +0 -188
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: {
|
|
|
13
13
|
'linkCreate.confirm-dismiss-dialog.modal.title': string;
|
|
14
14
|
'linkCreate.createForm.button.close': string;
|
|
15
15
|
'linkCreate.createForm.button.create': string;
|
|
16
|
-
'linkCreate.createForm.button.
|
|
16
|
+
'linkCreate.createForm.button.createAndOpen': string;
|
|
17
17
|
'linkCreate.modal.heading': string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/linking-common": "^4.21.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.9.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
46
|
-
"@atlaskit/primitives": "^1.
|
|
46
|
+
"@atlaskit/primitives": "^1.13.0",
|
|
47
47
|
"@atlaskit/select": "^17.0.0",
|
|
48
48
|
"@atlaskit/spinner": "^16.0.0",
|
|
49
49
|
"@atlaskit/textfield": "^6.0.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/link-create"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { AsyncSelectProps as AsyncSelectProps_2 } from '@atlaskit/select';
|
|
10
|
-
import { FORM_ERROR } from 'final-form';
|
|
11
|
-
import { GroupType } from '@atlaskit/select';
|
|
12
|
-
import { jsx } from '@emotion/react';
|
|
13
|
-
import { MemoExoticComponent } from 'react';
|
|
14
|
-
import { ModalDialogProps } from '@atlaskit/modal-dialog';
|
|
15
|
-
import { OptionType } from '@atlaskit/select';
|
|
16
|
-
import { default as React_2 } from 'react';
|
|
17
|
-
import { ReactNode } from 'react';
|
|
18
|
-
import { SelectProps as SelectProps_2 } from '@atlaskit/select';
|
|
19
|
-
import { SpinnerProps } from '@atlaskit/spinner';
|
|
20
|
-
import { TextFieldProps as TextFieldProps_2 } from '@atlaskit/textfield';
|
|
21
|
-
|
|
22
|
-
// @public
|
|
23
|
-
export function AsyncSelect<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, defaultOption: propsDefaultValue, loadOptions: loadOptionsFn, ...restProps }: AsyncSelectProps<T>): jsx.JSX.Element;
|
|
24
|
-
|
|
25
|
-
// @public (undocumented)
|
|
26
|
-
type AsyncSelectProps<T = OptionType> = Omit<AsyncSelectProps_2<T>, 'loadOptions'> & {
|
|
27
|
-
name: string;
|
|
28
|
-
label: string;
|
|
29
|
-
validationHelpText?: string;
|
|
30
|
-
testId?: string;
|
|
31
|
-
isRequired?: boolean;
|
|
32
|
-
validators?: Validator[];
|
|
33
|
-
loadOptions?: (inputValue: string) => Promise<GroupType<T>[] | T[]>;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
const ComposedLinkCreate: MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
38
|
-
export default ComposedLinkCreate;
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
export const CreateForm: <FormData_1 extends Record<string, any> = {}>({ children, testId, onSubmit, onCancel, isLoading, hideFooter, initialValues, }: CreateFormProps<FormData_1>) => jsx.JSX.Element;
|
|
42
|
-
|
|
43
|
-
// @public
|
|
44
|
-
export function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
45
|
-
|
|
46
|
-
// @public (undocumented)
|
|
47
|
-
export interface CreateFormProps<FormData> {
|
|
48
|
-
children: ReactNode;
|
|
49
|
-
hideFooter?: boolean;
|
|
50
|
-
initialValues?: DisallowReservedFields<FormData>;
|
|
51
|
-
isLoading?: boolean;
|
|
52
|
-
onCancel?: () => void;
|
|
53
|
-
onSubmit: (data: OmitReservedFields<FormData>) => Errors | Promise<Errors | void> | void;
|
|
54
|
-
testId?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// @public
|
|
58
|
-
export type CreatePayload = {
|
|
59
|
-
url: string;
|
|
60
|
-
ari?: string | undefined;
|
|
61
|
-
objectId: string;
|
|
62
|
-
objectType: string;
|
|
63
|
-
data?: Record<string, unknown>;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// @public (undocumented)
|
|
67
|
-
type DisallowReservedFields<T> = T & {
|
|
68
|
-
[Field in (typeof RESERVED_FIELDS)[number]]?: never;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
export type EditViewProps = {
|
|
73
|
-
payload: CreatePayload;
|
|
74
|
-
onClose: () => void;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
// @public (undocumented)
|
|
78
|
-
type Errors = Record<string, string>;
|
|
79
|
-
|
|
80
|
-
export { FORM_ERROR }
|
|
81
|
-
|
|
82
|
-
// @public
|
|
83
|
-
export const FormSpy: <T extends Record<string, unknown>>({ children, }: FormSpyProps<T>) => JSX.Element;
|
|
84
|
-
|
|
85
|
-
// @public (undocumented)
|
|
86
|
-
type FormSpyProps<T> = {
|
|
87
|
-
children: ({ values }: {
|
|
88
|
-
values: T;
|
|
89
|
-
}) => React_2.ReactNode;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
// @public (undocumented)
|
|
93
|
-
interface Group {
|
|
94
|
-
icon: string;
|
|
95
|
-
key: string;
|
|
96
|
-
label: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// @public (undocumented)
|
|
100
|
-
export const LinkCreateCallbackProvider: React_2.FC<LinkCreateCallbackProviderProps>;
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
interface LinkCreateCallbackProviderProps {
|
|
104
|
-
onCancel?: () => void;
|
|
105
|
-
onCreate?: (result: CreatePayload) => Promise<void> | void;
|
|
106
|
-
onFailure?: (error: unknown) => void;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// @public (undocumented)
|
|
110
|
-
export interface LinkCreatePlugin {
|
|
111
|
-
editView?: ({ payload, onClose }: EditViewProps) => JSX.Element;
|
|
112
|
-
form: ReactNode;
|
|
113
|
-
group: Group;
|
|
114
|
-
icon: string;
|
|
115
|
-
key: string;
|
|
116
|
-
label: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// @public (undocumented)
|
|
120
|
-
export interface LinkCreateProps {
|
|
121
|
-
entityKey: string;
|
|
122
|
-
groupKey?: string;
|
|
123
|
-
onCancel?: () => void;
|
|
124
|
-
onComplete?: () => void;
|
|
125
|
-
onCreate?: (payload: CreatePayload) => Promise<void> | void;
|
|
126
|
-
onFailure?: (error: unknown) => void;
|
|
127
|
-
// (undocumented)
|
|
128
|
-
plugins: LinkCreatePlugin[];
|
|
129
|
-
testId?: string;
|
|
130
|
-
triggeredFrom?: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// @public (undocumented)
|
|
134
|
-
export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<ModalDialogProps, 'onCloseComplete' | 'onOpenComplete'>> {
|
|
135
|
-
active?: boolean;
|
|
136
|
-
modalTitle?: string;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// @public (undocumented)
|
|
140
|
-
type OmitReservedFields<T> = Omit<T, keyof ReservedFields>;
|
|
141
|
-
|
|
142
|
-
// @public (undocumented)
|
|
143
|
-
const RESERVED_FIELDS: readonly ["__post_create__"];
|
|
144
|
-
|
|
145
|
-
// @public (undocumented)
|
|
146
|
-
type ReservedFields = {
|
|
147
|
-
[Field in (typeof RESERVED_FIELDS)[number]]?: unknown;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// @public
|
|
151
|
-
export function Select<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: SelectProps<T>): jsx.JSX.Element;
|
|
152
|
-
|
|
153
|
-
// @public (undocumented)
|
|
154
|
-
type SelectProps<T = OptionType> = SelectProps_2<T> & {
|
|
155
|
-
name: string;
|
|
156
|
-
label: string;
|
|
157
|
-
validationHelpText?: string;
|
|
158
|
-
testId?: string;
|
|
159
|
-
isRequired?: boolean;
|
|
160
|
-
validators?: Validator[];
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// @public
|
|
164
|
-
export function TextField({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: TextFieldProps): jsx.JSX.Element;
|
|
165
|
-
|
|
166
|
-
// @public (undocumented)
|
|
167
|
-
type TextFieldProps = Omit<TextFieldProps_2, 'name'> & {
|
|
168
|
-
name: string;
|
|
169
|
-
label?: string;
|
|
170
|
-
validationHelpText?: string;
|
|
171
|
-
validators?: Validator[];
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
// @public (undocumented)
|
|
175
|
-
export const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
|
|
176
|
-
|
|
177
|
-
// @public (undocumented)
|
|
178
|
-
export type Validator = {
|
|
179
|
-
isValid: (val: unknown) => boolean;
|
|
180
|
-
errorMessage: string;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// @public
|
|
184
|
-
export type ValidatorMap = Record<string, Validator[]>;
|
|
185
|
-
|
|
186
|
-
// (No @packageDocumentation comment for this package)
|
|
187
|
-
|
|
188
|
-
```
|