@atlaskit/link-create 6.5.0 → 6.6.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 +25 -0
- package/analytics.spec.yaml +0 -6
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/cjs/controllers/callback-context/main.js +3 -4
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/es2019/controllers/callback-context/main.js +2 -4
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/esm/controllers/callback-context/main.js +3 -4
- package/dist/types/common/utils/analytics/analytics.codegen.d.ts +1 -2
- package/package.json +26 -26
- package/report.api.md +0 -253
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 6.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.5.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`df73ee5ebb31c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df73ee5ebb31c) -
|
|
19
|
+
Removed the `traceId` attribute from the `object createFailed (linkCreate)` analytics event.
|
|
20
|
+
|
|
21
|
+
The event continues to record `operation` and `status` behind the
|
|
22
|
+
`platform_link_create_event_tracking` feature gate, which together identify which request failed
|
|
23
|
+
and how. `traceId` was unique per event and therefore could not be aggregated, making it
|
|
24
|
+
unsuitable for a product analytics event.
|
|
25
|
+
|
|
26
|
+
The `linkCreateExperience failed` operational event is unchanged and still records `traceId`.
|
|
27
|
+
|
|
3
28
|
## 6.5.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -143,12 +143,6 @@ events:
|
|
|
143
143
|
description:
|
|
144
144
|
the HTTP status code, when the failure originated from a non-OK network response.
|
|
145
145
|
Absent otherwise
|
|
146
|
-
traceId:
|
|
147
|
-
type: string
|
|
148
|
-
required: false
|
|
149
|
-
description:
|
|
150
|
-
the trace id of the failed request, used to correlate with server-side logs. Absent
|
|
151
|
-
when the failure did not originate from a network response
|
|
152
146
|
|
|
153
147
|
- linkCreateExperience failed:
|
|
154
148
|
type: operational
|
|
@@ -16,7 +16,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
16
16
|
var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
17
17
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
18
18
|
packageName: "@atlaskit/link-create" || '',
|
|
19
|
-
packageVersion: "6.
|
|
19
|
+
packageVersion: "6.5.1" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
*
|
|
12
12
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
13
13
|
*
|
|
14
|
-
* @codegen <<SignedSource::
|
|
14
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
15
15
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -76,17 +76,16 @@ var LinkCreateCallbackProvider = exports.LinkCreateCallbackProvider = function L
|
|
|
76
76
|
onFailure: function () {
|
|
77
77
|
var _onFailure2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(error, context) {
|
|
78
78
|
var _context$operation;
|
|
79
|
-
var _getNetworkFields, status
|
|
79
|
+
var _getNetworkFields, status;
|
|
80
80
|
return _regenerator.default.wrap(function (_context2) {
|
|
81
81
|
while (1) switch (_context2.prev = _context2.next) {
|
|
82
82
|
case 0:
|
|
83
|
-
_getNetworkFields = (0, _errors.getNetworkFields)(error), status = _getNetworkFields.status
|
|
83
|
+
_getNetworkFields = (0, _errors.getNetworkFields)(error), status = _getNetworkFields.status;
|
|
84
84
|
createAnalyticsEvent((0, _analytics.default)('track.object.createFailed.linkCreate', _objectSpread({
|
|
85
85
|
failureType: (0, _errors.getErrorType)(error)
|
|
86
86
|
}, (0, _fg.fg)('platform_link_create_event_tracking') ? {
|
|
87
87
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
88
|
-
status: status
|
|
89
|
-
traceId: traceId
|
|
88
|
+
status: status
|
|
90
89
|
} : {}))).fire(_constants.ANALYTICS_CHANNEL);
|
|
91
90
|
experience === null || experience === void 0 || experience.failure(error);
|
|
92
91
|
_onFailure && _onFailure(error);
|
|
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.5.1" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -47,15 +47,13 @@ const LinkCreateCallbackProvider = ({
|
|
|
47
47
|
onFailure: async (error, context) => {
|
|
48
48
|
var _context$operation;
|
|
49
49
|
const {
|
|
50
|
-
status
|
|
51
|
-
traceId
|
|
50
|
+
status
|
|
52
51
|
} = getNetworkFields(error);
|
|
53
52
|
createAnalyticsEvent(createEventPayload('track.object.createFailed.linkCreate', {
|
|
54
53
|
failureType: getErrorType(error),
|
|
55
54
|
...(fg('platform_link_create_event_tracking') ? {
|
|
56
55
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
57
|
-
status
|
|
58
|
-
traceId
|
|
56
|
+
status
|
|
59
57
|
} : {})
|
|
60
58
|
})).fire(ANALYTICS_CHANNEL);
|
|
61
59
|
experience === null || experience === void 0 ? void 0 : experience.failure(error);
|
|
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.5.1" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
*
|
|
5
5
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
8
8
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -68,17 +68,16 @@ var LinkCreateCallbackProvider = function LinkCreateCallbackProvider(_ref) {
|
|
|
68
68
|
onFailure: function () {
|
|
69
69
|
var _onFailure2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(error, context) {
|
|
70
70
|
var _context$operation;
|
|
71
|
-
var _getNetworkFields, status
|
|
71
|
+
var _getNetworkFields, status;
|
|
72
72
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
73
73
|
while (1) switch (_context2.prev = _context2.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_getNetworkFields = getNetworkFields(error), status = _getNetworkFields.status
|
|
75
|
+
_getNetworkFields = getNetworkFields(error), status = _getNetworkFields.status;
|
|
76
76
|
createAnalyticsEvent(createEventPayload('track.object.createFailed.linkCreate', _objectSpread({
|
|
77
77
|
failureType: getErrorType(error)
|
|
78
78
|
}, fg('platform_link_create_event_tracking') ? {
|
|
79
79
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
80
|
-
status: status
|
|
81
|
-
traceId: traceId
|
|
80
|
+
status: status
|
|
82
81
|
} : {}))).fire(ANALYTICS_CHANNEL);
|
|
83
82
|
experience === null || experience === void 0 || experience.failure(error);
|
|
84
83
|
_onFailure && _onFailure(error);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -39,7 +39,6 @@ export type ObjectCreateFailedLinkCreateAttributesType = {
|
|
|
39
39
|
failureType: string;
|
|
40
40
|
operation?: string | null;
|
|
41
41
|
status?: number | null;
|
|
42
|
-
traceId?: string | null;
|
|
43
42
|
};
|
|
44
43
|
export type LinkCreateExperienceFailedAttributesType = {
|
|
45
44
|
errorType?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
"atlaskit:src": "src/index.ts",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.201.0",
|
|
35
|
-
"@atlaskit/analytics-next": "^12.
|
|
35
|
+
"@atlaskit/analytics-next": "^12.5.0",
|
|
36
36
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
37
|
-
"@atlaskit/button": "^25.
|
|
38
|
-
"@atlaskit/css": "^1.
|
|
39
|
-
"@atlaskit/empty-state": "^12.
|
|
40
|
-
"@atlaskit/form": "^17.
|
|
41
|
-
"@atlaskit/icon": "^37.
|
|
42
|
-
"@atlaskit/icon-file-type": "^8.
|
|
43
|
-
"@atlaskit/intl-messages-provider": "^4.
|
|
37
|
+
"@atlaskit/button": "^25.3.0",
|
|
38
|
+
"@atlaskit/css": "^1.1.0",
|
|
39
|
+
"@atlaskit/empty-state": "^12.2.0",
|
|
40
|
+
"@atlaskit/form": "^17.2.0",
|
|
41
|
+
"@atlaskit/icon": "^37.6.0",
|
|
42
|
+
"@atlaskit/icon-file-type": "^8.3.0",
|
|
43
|
+
"@atlaskit/intl-messages-provider": "^4.3.0",
|
|
44
44
|
"@atlaskit/link": "^5.1.0",
|
|
45
|
-
"@atlaskit/linking-common": "^12.
|
|
46
|
-
"@atlaskit/modal-dialog": "^16.
|
|
45
|
+
"@atlaskit/linking-common": "^12.1.0",
|
|
46
|
+
"@atlaskit/modal-dialog": "^16.6.0",
|
|
47
47
|
"@atlaskit/object": "^2.3.0",
|
|
48
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
49
|
-
"@atlaskit/primitives": "^22.
|
|
48
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
49
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
50
50
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
51
|
-
"@atlaskit/react-select": "^4.
|
|
52
|
-
"@atlaskit/select": "^22.
|
|
53
|
-
"@atlaskit/smart-user-picker": "^11.
|
|
54
|
-
"@atlaskit/spinner": "^20.
|
|
55
|
-
"@atlaskit/textfield": "^10.
|
|
56
|
-
"@atlaskit/theme": "^28.
|
|
57
|
-
"@atlaskit/tokens": "^16.
|
|
51
|
+
"@atlaskit/react-select": "^4.9.0",
|
|
52
|
+
"@atlaskit/select": "^22.11.0",
|
|
53
|
+
"@atlaskit/smart-user-picker": "^11.6.0",
|
|
54
|
+
"@atlaskit/spinner": "^20.4.0",
|
|
55
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
56
|
+
"@atlaskit/theme": "^28.2.0",
|
|
57
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@compiled/react": "^1.0.2",
|
|
60
60
|
"debounce-promise": "^3.1.2",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"@af/accessibility-testing": "workspace:^",
|
|
70
70
|
"@af/integration-testing": "workspace:^",
|
|
71
71
|
"@af/visual-regression": "workspace:^",
|
|
72
|
-
"@atlaskit/drawer": "^14.
|
|
73
|
-
"@atlaskit/link-picker": "^6.
|
|
74
|
-
"@atlaskit/link-test-helpers": "^11.
|
|
75
|
-
"@atlaskit/popup": "^6.
|
|
76
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
77
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
72
|
+
"@atlaskit/drawer": "^14.3.0",
|
|
73
|
+
"@atlaskit/link-picker": "^6.6.0",
|
|
74
|
+
"@atlaskit/link-test-helpers": "^11.2.0",
|
|
75
|
+
"@atlaskit/popup": "^6.3.0",
|
|
76
|
+
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
77
|
+
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
78
78
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|
|
80
80
|
"@testing-library/user-event": "^14.4.3",
|
package/report.api.md
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/link-create"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
/// <reference types="react" />
|
|
20
|
-
|
|
21
|
-
import { AsyncSelectProps as AsyncSelectProps_2 } from '@atlaskit/select';
|
|
22
|
-
import { FORM_ERROR } from 'final-form';
|
|
23
|
-
import { GroupType } from '@atlaskit/select';
|
|
24
|
-
import { jsx } from '@compiled/react';
|
|
25
|
-
import { MemoExoticComponent } from 'react';
|
|
26
|
-
import { ModalDialogProps } from '@atlaskit/modal-dialog';
|
|
27
|
-
import { OptionType } from '@atlaskit/select';
|
|
28
|
-
import { default as React_2 } from 'react';
|
|
29
|
-
import { ReactNode } from 'react';
|
|
30
|
-
import { SelectProps as SelectProps_2 } from '@atlaskit/select';
|
|
31
|
-
import { SpinnerProps } from '@atlaskit/spinner';
|
|
32
|
-
import { TextFieldProps as TextFieldProps_2 } from '@atlaskit/textfield';
|
|
33
|
-
|
|
34
|
-
// @public
|
|
35
|
-
export function AsyncSelect<T = OptionType>({
|
|
36
|
-
id,
|
|
37
|
-
name,
|
|
38
|
-
label,
|
|
39
|
-
isRequired,
|
|
40
|
-
validators,
|
|
41
|
-
validationHelpText,
|
|
42
|
-
testId,
|
|
43
|
-
defaultOption: propsDefaultValue,
|
|
44
|
-
loadOptions: loadOptionsFn,
|
|
45
|
-
...restProps
|
|
46
|
-
}: AsyncSelectProps<T>): jsx.JSX.Element;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
type AsyncSelectProps<T = OptionType> = Omit<AsyncSelectProps_2<T>, 'loadOptions'> & {
|
|
50
|
-
name: string;
|
|
51
|
-
label: string;
|
|
52
|
-
validationHelpText?: string;
|
|
53
|
-
testId?: string;
|
|
54
|
-
isRequired?: boolean;
|
|
55
|
-
validators?: Validator[];
|
|
56
|
-
loadOptions?: (inputValue: string) => Promise<GroupType<T>[] | T[]>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// @public (undocumented)
|
|
60
|
-
const ComposedLinkCreate: MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
61
|
-
export default ComposedLinkCreate;
|
|
62
|
-
|
|
63
|
-
// @public (undocumented)
|
|
64
|
-
export const CreateForm: <FormData_1 extends Record<string, any> = {}>({
|
|
65
|
-
children,
|
|
66
|
-
testId,
|
|
67
|
-
onSubmit,
|
|
68
|
-
onCancel,
|
|
69
|
-
isLoading,
|
|
70
|
-
hideFooter,
|
|
71
|
-
initialValues,
|
|
72
|
-
}: CreateFormProps<FormData_1>) => jsx.JSX.Element;
|
|
73
|
-
|
|
74
|
-
// @public
|
|
75
|
-
export function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
76
|
-
|
|
77
|
-
// @public (undocumented)
|
|
78
|
-
export interface CreateFormProps<FormData> {
|
|
79
|
-
children: ReactNode;
|
|
80
|
-
hideFooter?: boolean;
|
|
81
|
-
initialValues?: DisallowReservedFields<FormData>;
|
|
82
|
-
isLoading?: boolean;
|
|
83
|
-
onCancel?: () => void;
|
|
84
|
-
onSubmit: (data: OmitReservedFields<FormData>) => Errors | Promise<Errors | void> | void;
|
|
85
|
-
testId?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// @public
|
|
89
|
-
export type CreatePayload = {
|
|
90
|
-
url: string;
|
|
91
|
-
ari?: string | undefined;
|
|
92
|
-
objectId: string;
|
|
93
|
-
objectType: string;
|
|
94
|
-
data?: Record<string, unknown>;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// @public (undocumented)
|
|
98
|
-
type DisallowReservedFields<T> = T & {
|
|
99
|
-
[Field in (typeof RESERVED_FIELDS)[number]]?: never;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// @public (undocumented)
|
|
103
|
-
export type EditViewProps = {
|
|
104
|
-
payload: CreatePayload;
|
|
105
|
-
onClose: () => void;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// @public (undocumented)
|
|
109
|
-
type Errors = Record<string, string>;
|
|
110
|
-
|
|
111
|
-
export { FORM_ERROR };
|
|
112
|
-
|
|
113
|
-
// @public
|
|
114
|
-
export const FormSpy: <T extends Record<string, unknown>>({
|
|
115
|
-
children,
|
|
116
|
-
}: FormSpyProps<T>) => JSX.Element;
|
|
117
|
-
|
|
118
|
-
// @public (undocumented)
|
|
119
|
-
type FormSpyProps<T> = {
|
|
120
|
-
children: ({ values }: { values: T }) => React_2.ReactNode;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// @public (undocumented)
|
|
124
|
-
interface Group {
|
|
125
|
-
icon: string;
|
|
126
|
-
key: string;
|
|
127
|
-
label: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// @public (undocumented)
|
|
131
|
-
export const LinkCreateCallbackProvider: React_2.FC<LinkCreateCallbackProviderProps>;
|
|
132
|
-
|
|
133
|
-
// @public (undocumented)
|
|
134
|
-
interface LinkCreateCallbackProviderProps {
|
|
135
|
-
onCancel?: () => void;
|
|
136
|
-
onCreate?: (result: CreatePayload) => Promise<void> | void;
|
|
137
|
-
onFailure?: (error: unknown) => void;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// @public (undocumented)
|
|
141
|
-
export interface LinkCreatePlugin {
|
|
142
|
-
editView?: ({ payload, onClose }: EditViewProps) => JSX.Element;
|
|
143
|
-
form: ReactNode;
|
|
144
|
-
group: Group;
|
|
145
|
-
icon: string;
|
|
146
|
-
key: string;
|
|
147
|
-
label: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// @public (undocumented)
|
|
151
|
-
export interface LinkCreateProps {
|
|
152
|
-
entityKey: string;
|
|
153
|
-
groupKey?: string;
|
|
154
|
-
onCancel?: () => void;
|
|
155
|
-
onComplete?: () => void;
|
|
156
|
-
onCreate?: (payload: CreatePayload) => Promise<void> | void;
|
|
157
|
-
onFailure?: (error: unknown) => void;
|
|
158
|
-
// (undocumented)
|
|
159
|
-
plugins: LinkCreatePlugin[];
|
|
160
|
-
testId?: string;
|
|
161
|
-
triggeredFrom?: string;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// @public (undocumented)
|
|
165
|
-
export interface LinkCreateWithModalProps
|
|
166
|
-
extends LinkCreateProps,
|
|
167
|
-
Partial<Pick<ModalDialogProps, 'onCloseComplete' | 'onOpenComplete'>> {
|
|
168
|
-
active?: boolean;
|
|
169
|
-
modalTitle?: string;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// @public (undocumented)
|
|
173
|
-
type OmitReservedFields<T> = Omit<T, keyof ReservedFields>;
|
|
174
|
-
|
|
175
|
-
// @public (undocumented)
|
|
176
|
-
const RESERVED_FIELDS: readonly ['__post_create__'];
|
|
177
|
-
|
|
178
|
-
// @public (undocumented)
|
|
179
|
-
type ReservedFields = {
|
|
180
|
-
[Field in (typeof RESERVED_FIELDS)[number]]?: unknown;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// @public
|
|
184
|
-
export function Select<T = OptionType>({
|
|
185
|
-
id,
|
|
186
|
-
name,
|
|
187
|
-
label,
|
|
188
|
-
isRequired,
|
|
189
|
-
validators,
|
|
190
|
-
validationHelpText,
|
|
191
|
-
testId,
|
|
192
|
-
...restProps
|
|
193
|
-
}: SelectProps<T>): jsx.JSX.Element;
|
|
194
|
-
|
|
195
|
-
// @public (undocumented)
|
|
196
|
-
type SelectProps<T = OptionType> = SelectProps_2<T> & {
|
|
197
|
-
name: string;
|
|
198
|
-
label: string;
|
|
199
|
-
validationHelpText?: string;
|
|
200
|
-
testId?: string;
|
|
201
|
-
isRequired?: boolean;
|
|
202
|
-
validators?: Validator[];
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
// @public
|
|
206
|
-
export function TextField({
|
|
207
|
-
id,
|
|
208
|
-
name,
|
|
209
|
-
label,
|
|
210
|
-
isRequired,
|
|
211
|
-
validators,
|
|
212
|
-
validationHelpText,
|
|
213
|
-
testId,
|
|
214
|
-
...restProps
|
|
215
|
-
}: TextFieldProps): jsx.JSX.Element;
|
|
216
|
-
|
|
217
|
-
// @public (undocumented)
|
|
218
|
-
type TextFieldProps = Omit<TextFieldProps_2, 'name'> & {
|
|
219
|
-
name: string;
|
|
220
|
-
label?: string;
|
|
221
|
-
validationHelpText?: string;
|
|
222
|
-
validators?: Validator[];
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
// @public (undocumented)
|
|
226
|
-
export const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
|
|
227
|
-
|
|
228
|
-
// @public (undocumented)
|
|
229
|
-
export type Validator = {
|
|
230
|
-
isValid: (val: unknown) => boolean;
|
|
231
|
-
errorMessage: string;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
// @public
|
|
235
|
-
export type ValidatorMap = Record<string, Validator[]>;
|
|
236
|
-
|
|
237
|
-
// (No @packageDocumentation comment for this package)
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
<!--SECTION END: Main Entry Types-->
|
|
241
|
-
|
|
242
|
-
### Peer Dependencies
|
|
243
|
-
|
|
244
|
-
<!--SECTION START: Peer Dependencies-->
|
|
245
|
-
|
|
246
|
-
```json
|
|
247
|
-
{
|
|
248
|
-
"react": "^16.8.0",
|
|
249
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
250
|
-
}
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
<!--SECTION END: Peer Dependencies-->
|