@atlaskit/link-create 6.5.1 → 6.7.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 +22 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/es2019/common/constants.js +1 -1
- package/dist/esm/common/constants.js +1 -1
- package/package.json +26 -62
- package/report.api.md +0 -253
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 6.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0a39ae0f69a25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a39ae0f69a25) -
|
|
8
|
+
Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.6.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
19
|
+
Remove stale API report artifacts from published Platform packages.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 6.5.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -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.7.0" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -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.7.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -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.7.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,30 +31,30 @@
|
|
|
31
31
|
],
|
|
32
32
|
"atlaskit:src": "src/index.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.
|
|
35
|
-
"@atlaskit/analytics-next": "^12.
|
|
34
|
+
"@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.237.0",
|
|
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.7.0",
|
|
54
|
+
"@atlaskit/spinner": "^20.4.0",
|
|
55
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
56
|
+
"@atlaskit/theme": "^28.2.0",
|
|
57
|
+
"@atlaskit/tokens": "^16.11.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.
|
|
72
|
+
"@atlaskit/drawer": "^14.3.0",
|
|
73
|
+
"@atlaskit/link-picker": "^6.7.0",
|
|
74
|
+
"@atlaskit/link-test-helpers": "^11.2.0",
|
|
75
|
+
"@atlaskit/popup": "^6.3.0",
|
|
76
76
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
77
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
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",
|
|
@@ -88,42 +88,6 @@
|
|
|
88
88
|
"scripts": {
|
|
89
89
|
"codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-create run codegen-analytics'"
|
|
90
90
|
},
|
|
91
|
-
"techstack": {
|
|
92
|
-
"@atlassian/frontend": {
|
|
93
|
-
"code-structure": [
|
|
94
|
-
"tangerine-next"
|
|
95
|
-
],
|
|
96
|
-
"import-structure": [
|
|
97
|
-
"atlassian-conventions"
|
|
98
|
-
],
|
|
99
|
-
"circular-dependencies": [
|
|
100
|
-
"file-and-folder-level"
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
"@repo/internal": {
|
|
104
|
-
"dom-events": "use-bind-event-listener",
|
|
105
|
-
"analytics": [
|
|
106
|
-
"analytics-next"
|
|
107
|
-
],
|
|
108
|
-
"theming": [
|
|
109
|
-
"react-context",
|
|
110
|
-
"tokens"
|
|
111
|
-
],
|
|
112
|
-
"ui-components": [
|
|
113
|
-
"lite-mode"
|
|
114
|
-
],
|
|
115
|
-
"deprecation": [
|
|
116
|
-
"no-deprecated-imports"
|
|
117
|
-
],
|
|
118
|
-
"styling": [
|
|
119
|
-
"static",
|
|
120
|
-
"compiled"
|
|
121
|
-
],
|
|
122
|
-
"imports": [
|
|
123
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
91
|
"platform-feature-flags": {
|
|
128
92
|
"platform_link_create_event_tracking": {
|
|
129
93
|
"type": "boolean"
|
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-->
|