@atlaskit/link-create 5.2.0 → 5.3.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 +17 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/utils/locale/fetch-messages-for-locale.js +16 -17
- package/dist/cjs/controllers/callback-context/main.js +6 -6
- package/dist/cjs/i18n/cs.js +3 -17
- package/dist/cjs/i18n/da.js +3 -17
- package/dist/cjs/i18n/de.js +3 -17
- package/dist/cjs/i18n/en.js +3 -17
- package/dist/cjs/i18n/en_GB.js +3 -17
- package/dist/cjs/i18n/en_ZZ.js +3 -17
- package/dist/cjs/i18n/es.js +3 -17
- package/dist/cjs/i18n/fi.js +3 -17
- package/dist/cjs/i18n/fr.js +3 -17
- package/dist/cjs/i18n/hr.js +3 -17
- package/dist/cjs/i18n/hu.js +3 -17
- package/dist/cjs/i18n/it.js +3 -17
- package/dist/cjs/i18n/ja.js +3 -17
- package/dist/cjs/i18n/ko.js +3 -17
- package/dist/cjs/i18n/nb.js +3 -17
- package/dist/cjs/i18n/nl.js +3 -17
- package/dist/cjs/i18n/pl.js +3 -17
- package/dist/cjs/i18n/pt_BR.js +3 -17
- package/dist/cjs/i18n/ru.js +3 -17
- package/dist/cjs/i18n/sl.js +3 -17
- package/dist/cjs/i18n/sr_RS.js +3 -17
- package/dist/cjs/i18n/sr_YR.js +3 -17
- package/dist/cjs/i18n/sv.js +3 -17
- package/dist/cjs/i18n/th.js +3 -17
- package/dist/cjs/i18n/tr.js +3 -17
- package/dist/cjs/i18n/uk.js +3 -17
- package/dist/cjs/i18n/vi.js +3 -17
- package/dist/cjs/i18n/zh.js +3 -17
- package/dist/cjs/i18n/zh_TW.js +3 -17
- package/dist/cjs/ui/create-form/async-select/main.js +26 -24
- package/dist/cjs/ui/create-form/main.js +14 -13
- package/dist/cjs/ui/inline-create/main.js +4 -4
- package/dist/cjs/ui/modal-create/main.js +4 -4
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/i18n/cs.js +3 -17
- package/dist/es2019/i18n/da.js +3 -17
- package/dist/es2019/i18n/de.js +3 -17
- package/dist/es2019/i18n/en.js +3 -17
- package/dist/es2019/i18n/en_GB.js +3 -17
- package/dist/es2019/i18n/en_ZZ.js +3 -17
- package/dist/es2019/i18n/es.js +3 -17
- package/dist/es2019/i18n/fi.js +3 -17
- package/dist/es2019/i18n/fr.js +3 -17
- package/dist/es2019/i18n/hr.js +3 -17
- package/dist/es2019/i18n/hu.js +3 -17
- package/dist/es2019/i18n/it.js +3 -17
- package/dist/es2019/i18n/ja.js +3 -17
- package/dist/es2019/i18n/ko.js +3 -17
- package/dist/es2019/i18n/nb.js +3 -17
- package/dist/es2019/i18n/nl.js +3 -17
- package/dist/es2019/i18n/pl.js +3 -17
- package/dist/es2019/i18n/pt_BR.js +3 -17
- package/dist/es2019/i18n/ru.js +3 -17
- package/dist/es2019/i18n/sl.js +3 -17
- package/dist/es2019/i18n/sr_RS.js +3 -17
- package/dist/es2019/i18n/sr_YR.js +3 -17
- package/dist/es2019/i18n/sv.js +3 -17
- package/dist/es2019/i18n/th.js +3 -17
- package/dist/es2019/i18n/tr.js +3 -17
- package/dist/es2019/i18n/uk.js +3 -17
- package/dist/es2019/i18n/vi.js +3 -17
- package/dist/es2019/i18n/zh.js +3 -17
- package/dist/es2019/i18n/zh_TW.js +3 -17
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/utils/locale/fetch-messages-for-locale.js +15 -16
- package/dist/esm/controllers/callback-context/main.js +6 -6
- package/dist/esm/i18n/cs.js +3 -17
- package/dist/esm/i18n/da.js +3 -17
- package/dist/esm/i18n/de.js +3 -17
- package/dist/esm/i18n/en.js +3 -17
- package/dist/esm/i18n/en_GB.js +3 -17
- package/dist/esm/i18n/en_ZZ.js +3 -17
- package/dist/esm/i18n/es.js +3 -17
- package/dist/esm/i18n/fi.js +3 -17
- package/dist/esm/i18n/fr.js +3 -17
- package/dist/esm/i18n/hr.js +3 -17
- package/dist/esm/i18n/hu.js +3 -17
- package/dist/esm/i18n/it.js +3 -17
- package/dist/esm/i18n/ja.js +3 -17
- package/dist/esm/i18n/ko.js +3 -17
- package/dist/esm/i18n/nb.js +3 -17
- package/dist/esm/i18n/nl.js +3 -17
- package/dist/esm/i18n/pl.js +3 -17
- package/dist/esm/i18n/pt_BR.js +3 -17
- package/dist/esm/i18n/ru.js +3 -17
- package/dist/esm/i18n/sl.js +3 -17
- package/dist/esm/i18n/sr_RS.js +3 -17
- package/dist/esm/i18n/sr_YR.js +3 -17
- package/dist/esm/i18n/sv.js +3 -17
- package/dist/esm/i18n/th.js +3 -17
- package/dist/esm/i18n/tr.js +3 -17
- package/dist/esm/i18n/uk.js +3 -17
- package/dist/esm/i18n/vi.js +3 -17
- package/dist/esm/i18n/zh.js +3 -17
- package/dist/esm/i18n/zh_TW.js +3 -17
- package/dist/esm/ui/create-form/async-select/main.js +25 -23
- package/dist/esm/ui/create-form/main.js +13 -12
- package/dist/esm/ui/inline-create/main.js +4 -4
- package/dist/esm/ui/modal-create/main.js +4 -4
- package/dist/types/entry-points/types.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +2 -17
- package/dist/types/i18n/da.d.ts +2 -17
- package/dist/types/i18n/de.d.ts +2 -17
- package/dist/types/i18n/en.d.ts +2 -17
- package/dist/types/i18n/en_GB.d.ts +2 -17
- package/dist/types/i18n/en_ZZ.d.ts +2 -17
- package/dist/types/i18n/es.d.ts +2 -17
- package/dist/types/i18n/fi.d.ts +2 -17
- package/dist/types/i18n/fr.d.ts +2 -17
- package/dist/types/i18n/hr.d.ts +2 -17
- package/dist/types/i18n/hu.d.ts +2 -17
- package/dist/types/i18n/it.d.ts +2 -17
- package/dist/types/i18n/ja.d.ts +2 -17
- package/dist/types/i18n/ko.d.ts +2 -17
- package/dist/types/i18n/nb.d.ts +2 -17
- package/dist/types/i18n/nl.d.ts +2 -17
- package/dist/types/i18n/pl.d.ts +2 -17
- package/dist/types/i18n/pt_BR.d.ts +2 -17
- package/dist/types/i18n/ru.d.ts +2 -17
- package/dist/types/i18n/sl.d.ts +2 -17
- package/dist/types/i18n/sr_RS.d.ts +2 -17
- package/dist/types/i18n/sr_YR.d.ts +2 -17
- package/dist/types/i18n/sv.d.ts +2 -17
- package/dist/types/i18n/th.d.ts +2 -17
- package/dist/types/i18n/tr.d.ts +2 -17
- package/dist/types/i18n/uk.d.ts +2 -17
- package/dist/types/i18n/vi.d.ts +2 -17
- package/dist/types/i18n/zh.d.ts +2 -17
- package/dist/types/i18n/zh_TW.d.ts +2 -17
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +2 -17
- package/dist/types-ts4.5/i18n/da.d.ts +2 -17
- package/dist/types-ts4.5/i18n/de.d.ts +2 -17
- package/dist/types-ts4.5/i18n/en.d.ts +2 -17
- package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -17
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -17
- package/dist/types-ts4.5/i18n/es.d.ts +2 -17
- package/dist/types-ts4.5/i18n/fi.d.ts +2 -17
- package/dist/types-ts4.5/i18n/fr.d.ts +2 -17
- package/dist/types-ts4.5/i18n/hr.d.ts +2 -17
- package/dist/types-ts4.5/i18n/hu.d.ts +2 -17
- package/dist/types-ts4.5/i18n/it.d.ts +2 -17
- package/dist/types-ts4.5/i18n/ja.d.ts +2 -17
- package/dist/types-ts4.5/i18n/ko.d.ts +2 -17
- package/dist/types-ts4.5/i18n/nb.d.ts +2 -17
- package/dist/types-ts4.5/i18n/nl.d.ts +2 -17
- package/dist/types-ts4.5/i18n/pl.d.ts +2 -17
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +2 -17
- package/dist/types-ts4.5/i18n/ru.d.ts +2 -17
- package/dist/types-ts4.5/i18n/sl.d.ts +2 -17
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +2 -17
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +2 -17
- package/dist/types-ts4.5/i18n/sv.d.ts +2 -17
- package/dist/types-ts4.5/i18n/th.d.ts +2 -17
- package/dist/types-ts4.5/i18n/tr.d.ts +2 -17
- package/dist/types-ts4.5/i18n/uk.d.ts +2 -17
- package/dist/types-ts4.5/i18n/vi.d.ts +2 -17
- package/dist/types-ts4.5/i18n/zh.d.ts +2 -17
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +2 -17
- package/link-create.docs.tsx +307 -302
- package/package.json +9 -9
package/link-create.docs.tsx
CHANGED
|
@@ -5,342 +5,347 @@
|
|
|
5
5
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
|
|
8
|
-
import type {
|
|
8
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
9
|
|
|
10
10
|
import packageJson from './package.json';
|
|
11
11
|
|
|
12
12
|
const packagePath = path.resolve(__dirname);
|
|
13
13
|
|
|
14
|
-
const documentation:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
description:
|
|
18
|
-
'The driver component of the link creation (meta create) flow. Renders a modal with plugin tabs (e.g. Jira issue, Confluence page); each plugin provides a form that returns a URL and metadata on success. Use for "create and link" experiences.',
|
|
19
|
-
status: 'general-availability',
|
|
20
|
-
import: {
|
|
14
|
+
const documentation: StructuredContentSource = {
|
|
15
|
+
components: [
|
|
16
|
+
{
|
|
21
17
|
name: 'LinkCreate',
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
description:
|
|
19
|
+
'The driver component of the link creation (meta create) flow. Renders a modal with plugin tabs (e.g. Jira issue, Confluence page); each plugin provides a form that returns a URL and metadata on success. Use for "create and link" experiences.',
|
|
20
|
+
status: 'general-availability',
|
|
21
|
+
import: {
|
|
22
|
+
name: 'LinkCreate',
|
|
23
|
+
package: '@atlaskit/link-create',
|
|
24
|
+
type: 'default',
|
|
25
|
+
packagePath,
|
|
26
|
+
packageJson,
|
|
27
|
+
},
|
|
28
|
+
usageGuidelines: [
|
|
29
|
+
'Use when the user should create a new resource (issue, page, etc.) and insert its link in one flow. Supply plugins (e.g. from link-create-jira, link-create-confluence); control visibility with active/onCancel.',
|
|
30
|
+
],
|
|
31
|
+
contentGuidelines: [],
|
|
32
|
+
accessibilityGuidelines: [
|
|
33
|
+
'Ensure the modal has an accessible title and focus is trapped; ensure plugin forms have proper labels and error messages announced.',
|
|
34
|
+
],
|
|
35
|
+
keywords: ['link-create', 'create', 'modal', 'meta create', 'plugins'],
|
|
36
|
+
categories: ['linking', 'forms', 'interaction'],
|
|
37
|
+
examples: [],
|
|
26
38
|
},
|
|
27
|
-
|
|
28
|
-
'Use when the user should create a new resource (issue, page, etc.) and insert its link in one flow. Supply plugins (e.g. from link-create-jira, link-create-confluence); control visibility with active/onCancel.',
|
|
29
|
-
],
|
|
30
|
-
contentGuidelines: [],
|
|
31
|
-
accessibilityGuidelines: [
|
|
32
|
-
'Ensure the modal has an accessible title and focus is trapped; ensure plugin forms have proper labels and error messages announced.',
|
|
33
|
-
],
|
|
34
|
-
keywords: ['link-create', 'create', 'modal', 'meta create', 'plugins'],
|
|
35
|
-
categories: ['linking', 'forms', 'interaction'],
|
|
36
|
-
examples: [],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'InlineCreate',
|
|
40
|
-
description:
|
|
41
|
-
'Inline (non-modal) link creation experience. Renders plugin forms inline so users can create a resource and get a link without opening a modal.',
|
|
42
|
-
status: 'general-availability',
|
|
43
|
-
import: {
|
|
39
|
+
{
|
|
44
40
|
name: 'InlineCreate',
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
description:
|
|
42
|
+
'Inline (non-modal) link creation experience. Renders plugin forms inline so users can create a resource and get a link without opening a modal.',
|
|
43
|
+
status: 'general-availability',
|
|
44
|
+
import: {
|
|
45
|
+
name: 'InlineCreate',
|
|
46
|
+
package: '@atlaskit/link-create',
|
|
47
|
+
type: 'named',
|
|
48
|
+
packagePath,
|
|
49
|
+
packageJson,
|
|
50
|
+
},
|
|
51
|
+
usageGuidelines: [
|
|
52
|
+
'Use when you want "create and link" inline (e.g. in a dropdown or panel) instead of a modal. Supply the same plugin structure as LinkCreate.',
|
|
53
|
+
],
|
|
54
|
+
contentGuidelines: [],
|
|
55
|
+
accessibilityGuidelines: [
|
|
56
|
+
'Ensure the inline form has an accessible name and that focus moves logically through fields.',
|
|
57
|
+
],
|
|
58
|
+
keywords: ['link-create', 'inline', 'create', 'plugins'],
|
|
59
|
+
categories: ['linking', 'forms', 'interaction'],
|
|
60
|
+
examples: [],
|
|
49
61
|
},
|
|
50
|
-
|
|
51
|
-
'Use when you want "create and link" inline (e.g. in a dropdown or panel) instead of a modal. Supply the same plugin structure as LinkCreate.',
|
|
52
|
-
],
|
|
53
|
-
contentGuidelines: [],
|
|
54
|
-
accessibilityGuidelines: [
|
|
55
|
-
'Ensure the inline form has an accessible name and that focus moves logically through fields.',
|
|
56
|
-
],
|
|
57
|
-
keywords: ['link-create', 'inline', 'create', 'plugins'],
|
|
58
|
-
categories: ['linking', 'forms', 'interaction'],
|
|
59
|
-
examples: [],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'CreateForm',
|
|
63
|
-
description:
|
|
64
|
-
'Form container for a single link-create plugin. Renders the plugin form UI and handles submit, validation, and success callback. Used inside plugin form implementations.',
|
|
65
|
-
status: 'general-availability',
|
|
66
|
-
import: {
|
|
62
|
+
{
|
|
67
63
|
name: 'CreateForm',
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
description:
|
|
65
|
+
'Form container for a single link-create plugin. Renders the plugin form UI and handles submit, validation, and success callback. Used inside plugin form implementations.',
|
|
66
|
+
status: 'general-availability',
|
|
67
|
+
import: {
|
|
68
|
+
name: 'CreateForm',
|
|
69
|
+
package: '@atlaskit/link-create',
|
|
70
|
+
type: 'named',
|
|
71
|
+
packagePath,
|
|
72
|
+
packageJson,
|
|
73
|
+
},
|
|
74
|
+
usageGuidelines: [
|
|
75
|
+
'Use when building a custom LinkCreatePlugin form; wrap your fields in CreateForm and use onSubmit to return CreatePayload on success.',
|
|
76
|
+
],
|
|
77
|
+
contentGuidelines: [],
|
|
78
|
+
accessibilityGuidelines: [],
|
|
79
|
+
keywords: ['link-create', 'form', 'CreateForm', 'plugin'],
|
|
80
|
+
categories: ['linking', 'forms'],
|
|
81
|
+
examples: [],
|
|
72
82
|
},
|
|
73
|
-
|
|
74
|
-
'Use when building a custom LinkCreatePlugin form; wrap your fields in CreateForm and use onSubmit to return CreatePayload on success.',
|
|
75
|
-
],
|
|
76
|
-
contentGuidelines: [],
|
|
77
|
-
accessibilityGuidelines: [],
|
|
78
|
-
keywords: ['link-create', 'form', 'CreateForm', 'plugin'],
|
|
79
|
-
categories: ['linking', 'forms'],
|
|
80
|
-
examples: [],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'CreateFormLoader',
|
|
84
|
-
description:
|
|
85
|
-
'Loader wrapper for CreateForm that shows a loading state until form data or context is ready.',
|
|
86
|
-
status: 'general-availability',
|
|
87
|
-
import: {
|
|
83
|
+
{
|
|
88
84
|
name: 'CreateFormLoader',
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
description:
|
|
86
|
+
'Loader wrapper for CreateForm that shows a loading state until form data or context is ready.',
|
|
87
|
+
status: 'general-availability',
|
|
88
|
+
import: {
|
|
89
|
+
name: 'CreateFormLoader',
|
|
90
|
+
package: '@atlaskit/link-create',
|
|
91
|
+
type: 'named',
|
|
92
|
+
packagePath,
|
|
93
|
+
packageJson,
|
|
94
|
+
},
|
|
95
|
+
usageGuidelines: [
|
|
96
|
+
'Use when the create form depends on async data (e.g. site list, field config); show loading until ready then render CreateForm.',
|
|
97
|
+
],
|
|
98
|
+
contentGuidelines: [],
|
|
99
|
+
accessibilityGuidelines: [
|
|
100
|
+
'Ensure loading state is announced (e.g. aria-busy or live region).',
|
|
101
|
+
],
|
|
102
|
+
keywords: ['link-create', 'form', 'loader', 'CreateFormLoader'],
|
|
103
|
+
categories: ['linking', 'forms'],
|
|
104
|
+
examples: [],
|
|
93
105
|
},
|
|
94
|
-
|
|
95
|
-
'Use when the create form depends on async data (e.g. site list, field config); show loading until ready then render CreateForm.',
|
|
96
|
-
],
|
|
97
|
-
contentGuidelines: [],
|
|
98
|
-
accessibilityGuidelines: ['Ensure loading state is announced (e.g. aria-busy or live region).'],
|
|
99
|
-
keywords: ['link-create', 'form', 'loader', 'CreateFormLoader'],
|
|
100
|
-
categories: ['linking', 'forms'],
|
|
101
|
-
examples: [],
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: 'FormSpy',
|
|
105
|
-
description:
|
|
106
|
-
'Component that subscribes to form state (values, errors, submitting) from react-final-form. Used to build custom UI that reacts to form state.',
|
|
107
|
-
status: 'general-availability',
|
|
108
|
-
import: {
|
|
106
|
+
{
|
|
109
107
|
name: 'FormSpy',
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
description:
|
|
109
|
+
'Component that subscribes to form state (values, errors, submitting) from react-final-form. Used to build custom UI that reacts to form state.',
|
|
110
|
+
status: 'general-availability',
|
|
111
|
+
import: {
|
|
112
|
+
name: 'FormSpy',
|
|
113
|
+
package: '@atlaskit/link-create',
|
|
114
|
+
type: 'named',
|
|
115
|
+
packagePath,
|
|
116
|
+
packageJson,
|
|
117
|
+
},
|
|
118
|
+
usageGuidelines: [
|
|
119
|
+
'Use when you need to read or react to create form state (e.g. to enable/disable a submit button or show a summary) without controlling the form.',
|
|
120
|
+
],
|
|
121
|
+
contentGuidelines: [],
|
|
122
|
+
accessibilityGuidelines: [],
|
|
123
|
+
keywords: ['link-create', 'form', 'FormSpy', 'react-final-form'],
|
|
124
|
+
categories: ['linking', 'forms'],
|
|
125
|
+
examples: [],
|
|
114
126
|
},
|
|
115
|
-
|
|
116
|
-
'Use when you need to read or react to create form state (e.g. to enable/disable a submit button or show a summary) without controlling the form.',
|
|
117
|
-
],
|
|
118
|
-
contentGuidelines: [],
|
|
119
|
-
accessibilityGuidelines: [],
|
|
120
|
-
keywords: ['link-create', 'form', 'FormSpy', 'react-final-form'],
|
|
121
|
-
categories: ['linking', 'forms'],
|
|
122
|
-
examples: [],
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'AsyncSelect',
|
|
126
|
-
description:
|
|
127
|
-
'Async-capable select component used in link-create forms for fields that load options from an API (e.g. project, type).',
|
|
128
|
-
status: 'general-availability',
|
|
129
|
-
import: {
|
|
127
|
+
{
|
|
130
128
|
name: 'AsyncSelect',
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
description:
|
|
130
|
+
'Async-capable select component used in link-create forms for fields that load options from an API (e.g. project, type).',
|
|
131
|
+
status: 'general-availability',
|
|
132
|
+
import: {
|
|
133
|
+
name: 'AsyncSelect',
|
|
134
|
+
package: '@atlaskit/link-create',
|
|
135
|
+
type: 'named',
|
|
136
|
+
packagePath,
|
|
137
|
+
packageJson,
|
|
138
|
+
},
|
|
139
|
+
usageGuidelines: [
|
|
140
|
+
'Use inside a create form when the dropdown options are loaded asynchronously (e.g. Jira projects, issue types).',
|
|
141
|
+
],
|
|
142
|
+
contentGuidelines: [],
|
|
143
|
+
accessibilityGuidelines: [
|
|
144
|
+
'Ensure the select has a label and that options are announced to screen readers.',
|
|
145
|
+
],
|
|
146
|
+
keywords: ['link-create', 'select', 'async', 'form'],
|
|
147
|
+
categories: ['linking', 'forms'],
|
|
148
|
+
examples: [],
|
|
135
149
|
},
|
|
136
|
-
|
|
137
|
-
'Use inside a create form when the dropdown options are loaded asynchronously (e.g. Jira projects, issue types).',
|
|
138
|
-
],
|
|
139
|
-
contentGuidelines: [],
|
|
140
|
-
accessibilityGuidelines: [
|
|
141
|
-
'Ensure the select has a label and that options are announced to screen readers.',
|
|
142
|
-
],
|
|
143
|
-
keywords: ['link-create', 'select', 'async', 'form'],
|
|
144
|
-
categories: ['linking', 'forms'],
|
|
145
|
-
examples: [],
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'Select',
|
|
149
|
-
description: 'Select component for link-create forms. Use for static or sync option lists.',
|
|
150
|
-
status: 'general-availability',
|
|
151
|
-
import: {
|
|
150
|
+
{
|
|
152
151
|
name: 'Select',
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
description: 'Select component for link-create forms. Use for static or sync option lists.',
|
|
153
|
+
status: 'general-availability',
|
|
154
|
+
import: {
|
|
155
|
+
name: 'Select',
|
|
156
|
+
package: '@atlaskit/link-create',
|
|
157
|
+
type: 'named',
|
|
158
|
+
packagePath,
|
|
159
|
+
packageJson,
|
|
160
|
+
},
|
|
161
|
+
usageGuidelines: [
|
|
162
|
+
'Use inside a create form for dropdowns with static or synchronously available options.',
|
|
163
|
+
],
|
|
164
|
+
contentGuidelines: [],
|
|
165
|
+
accessibilityGuidelines: ['Ensure the select has an accessible label.'],
|
|
166
|
+
keywords: ['link-create', 'select', 'form'],
|
|
167
|
+
categories: ['linking', 'forms'],
|
|
168
|
+
examples: [],
|
|
157
169
|
},
|
|
158
|
-
|
|
159
|
-
'Use inside a create form for dropdowns with static or synchronously available options.',
|
|
160
|
-
],
|
|
161
|
-
contentGuidelines: [],
|
|
162
|
-
accessibilityGuidelines: ['Ensure the select has an accessible label.'],
|
|
163
|
-
keywords: ['link-create', 'select', 'form'],
|
|
164
|
-
categories: ['linking', 'forms'],
|
|
165
|
-
examples: [],
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'SiteSelect',
|
|
169
|
-
description:
|
|
170
|
-
'Site/product picker used in link-create forms when the user must choose a site or product (e.g. Jira site, Confluence space) before other fields.',
|
|
171
|
-
status: 'general-availability',
|
|
172
|
-
import: {
|
|
170
|
+
{
|
|
173
171
|
name: 'SiteSelect',
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
description:
|
|
173
|
+
'Site/product picker used in link-create forms when the user must choose a site or product (e.g. Jira site, Confluence space) before other fields.',
|
|
174
|
+
status: 'general-availability',
|
|
175
|
+
import: {
|
|
176
|
+
name: 'SiteSelect',
|
|
177
|
+
package: '@atlaskit/link-create',
|
|
178
|
+
type: 'named',
|
|
179
|
+
packagePath,
|
|
180
|
+
packageJson,
|
|
181
|
+
},
|
|
182
|
+
usageGuidelines: [
|
|
183
|
+
'Use when the create flow requires picking a site or product first; follow with form fields that depend on that selection.',
|
|
184
|
+
],
|
|
185
|
+
contentGuidelines: [],
|
|
186
|
+
accessibilityGuidelines: [
|
|
187
|
+
'Ensure the site picker has an accessible name and that selected site is announced.',
|
|
188
|
+
],
|
|
189
|
+
keywords: ['link-create', 'site', 'select', 'picker', 'form'],
|
|
190
|
+
categories: ['linking', 'forms'],
|
|
191
|
+
examples: [],
|
|
178
192
|
},
|
|
179
|
-
|
|
180
|
-
'Use when the create flow requires picking a site or product first; follow with form fields that depend on that selection.',
|
|
181
|
-
],
|
|
182
|
-
contentGuidelines: [],
|
|
183
|
-
accessibilityGuidelines: [
|
|
184
|
-
'Ensure the site picker has an accessible name and that selected site is announced.',
|
|
185
|
-
],
|
|
186
|
-
keywords: ['link-create', 'site', 'select', 'picker', 'form'],
|
|
187
|
-
categories: ['linking', 'forms'],
|
|
188
|
-
examples: [],
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name: 'TextField',
|
|
192
|
-
description: 'Text input component for link-create forms. Wired for validation and final-form.',
|
|
193
|
-
status: 'general-availability',
|
|
194
|
-
import: {
|
|
193
|
+
{
|
|
195
194
|
name: 'TextField',
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
description:
|
|
196
|
+
'Text input component for link-create forms. Wired for validation and final-form.',
|
|
197
|
+
status: 'general-availability',
|
|
198
|
+
import: {
|
|
199
|
+
name: 'TextField',
|
|
200
|
+
package: '@atlaskit/link-create',
|
|
201
|
+
type: 'named',
|
|
202
|
+
packagePath,
|
|
203
|
+
packageJson,
|
|
204
|
+
},
|
|
205
|
+
usageGuidelines: [
|
|
206
|
+
'Use inside a create form for single-line text fields (e.g. title, summary).',
|
|
207
|
+
],
|
|
208
|
+
contentGuidelines: [],
|
|
209
|
+
accessibilityGuidelines: [
|
|
210
|
+
'Ensure each field has a visible or aria-label and that validation errors are announced.',
|
|
211
|
+
],
|
|
212
|
+
keywords: ['link-create', 'textfield', 'input', 'form'],
|
|
213
|
+
categories: ['linking', 'forms'],
|
|
214
|
+
examples: [],
|
|
200
215
|
},
|
|
201
|
-
|
|
202
|
-
'Use inside a create form for single-line text fields (e.g. title, summary).',
|
|
203
|
-
],
|
|
204
|
-
contentGuidelines: [],
|
|
205
|
-
accessibilityGuidelines: [
|
|
206
|
-
'Ensure each field has a visible or aria-label and that validation errors are announced.',
|
|
207
|
-
],
|
|
208
|
-
keywords: ['link-create', 'textfield', 'input', 'form'],
|
|
209
|
-
categories: ['linking', 'forms'],
|
|
210
|
-
examples: [],
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'UserPicker',
|
|
214
|
-
description:
|
|
215
|
-
'User picker component for link-create forms. Used for assignee, reporter, or other user fields.',
|
|
216
|
-
status: 'general-availability',
|
|
217
|
-
import: {
|
|
216
|
+
{
|
|
218
217
|
name: 'UserPicker',
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
description:
|
|
219
|
+
'User picker component for link-create forms. Used for assignee, reporter, or other user fields.',
|
|
220
|
+
status: 'general-availability',
|
|
221
|
+
import: {
|
|
222
|
+
name: 'UserPicker',
|
|
223
|
+
package: '@atlaskit/link-create',
|
|
224
|
+
type: 'named',
|
|
225
|
+
packagePath,
|
|
226
|
+
packageJson,
|
|
227
|
+
},
|
|
228
|
+
usageGuidelines: [
|
|
229
|
+
'Use inside a create form when the user must select a person (e.g. assignee, creator).',
|
|
230
|
+
],
|
|
231
|
+
contentGuidelines: [],
|
|
232
|
+
accessibilityGuidelines: [
|
|
233
|
+
'Ensure the picker has an accessible name and that the selected user is announced.',
|
|
234
|
+
],
|
|
235
|
+
keywords: ['link-create', 'user', 'picker', 'form'],
|
|
236
|
+
categories: ['linking', 'forms'],
|
|
237
|
+
examples: [],
|
|
223
238
|
},
|
|
224
|
-
|
|
225
|
-
'Use inside a create form when the user must select a person (e.g. assignee, creator).',
|
|
226
|
-
],
|
|
227
|
-
contentGuidelines: [],
|
|
228
|
-
accessibilityGuidelines: [
|
|
229
|
-
'Ensure the picker has an accessible name and that the selected user is announced.',
|
|
230
|
-
],
|
|
231
|
-
keywords: ['link-create', 'user', 'picker', 'form'],
|
|
232
|
-
categories: ['linking', 'forms'],
|
|
233
|
-
examples: [],
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: 'LinkCreateCallbackProvider',
|
|
237
|
-
description:
|
|
238
|
-
'Context provider that supplies a callback (e.g. on success) to link-create. Used so plugins or parents can react to create completion.',
|
|
239
|
-
status: 'general-availability',
|
|
240
|
-
import: {
|
|
239
|
+
{
|
|
241
240
|
name: 'LinkCreateCallbackProvider',
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
description:
|
|
242
|
+
'Context provider that supplies a callback (e.g. on success) to link-create. Used so plugins or parents can react to create completion.',
|
|
243
|
+
status: 'general-availability',
|
|
244
|
+
import: {
|
|
245
|
+
name: 'LinkCreateCallbackProvider',
|
|
246
|
+
package: '@atlaskit/link-create',
|
|
247
|
+
type: 'named',
|
|
248
|
+
packagePath,
|
|
249
|
+
packageJson,
|
|
250
|
+
},
|
|
251
|
+
usageGuidelines: [
|
|
252
|
+
'Wrap LinkCreate or InlineCreate when you need to run custom logic (e.g. insert link, close picker) when create succeeds; consume with useLinkCreateCallback.',
|
|
253
|
+
],
|
|
254
|
+
contentGuidelines: [],
|
|
255
|
+
accessibilityGuidelines: [],
|
|
256
|
+
keywords: ['link-create', 'callback', 'context', 'provider'],
|
|
257
|
+
categories: ['linking', 'forms'],
|
|
258
|
+
examples: [],
|
|
246
259
|
},
|
|
247
|
-
|
|
248
|
-
'Wrap LinkCreate or InlineCreate when you need to run custom logic (e.g. insert link, close picker) when create succeeds; consume with useLinkCreateCallback.',
|
|
249
|
-
],
|
|
250
|
-
contentGuidelines: [],
|
|
251
|
-
accessibilityGuidelines: [],
|
|
252
|
-
keywords: ['link-create', 'callback', 'context', 'provider'],
|
|
253
|
-
categories: ['linking', 'forms'],
|
|
254
|
-
examples: [],
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
name: 'useLinkCreateCallback',
|
|
258
|
-
description:
|
|
259
|
-
'Hook that returns the link-create callback from LinkCreateCallbackProvider. Use to trigger or react to create success from child components.',
|
|
260
|
-
status: 'general-availability',
|
|
261
|
-
import: {
|
|
260
|
+
{
|
|
262
261
|
name: 'useLinkCreateCallback',
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
262
|
+
description:
|
|
263
|
+
'Hook that returns the link-create callback from LinkCreateCallbackProvider. Use to trigger or react to create success from child components.',
|
|
264
|
+
status: 'general-availability',
|
|
265
|
+
import: {
|
|
266
|
+
name: 'useLinkCreateCallback',
|
|
267
|
+
package: '@atlaskit/link-create',
|
|
268
|
+
type: 'named',
|
|
269
|
+
packagePath,
|
|
270
|
+
packageJson,
|
|
271
|
+
},
|
|
272
|
+
usageGuidelines: [
|
|
273
|
+
'Use inside a plugin or child of LinkCreateCallbackProvider when you need access to the create-success callback.',
|
|
274
|
+
],
|
|
275
|
+
contentGuidelines: [],
|
|
276
|
+
accessibilityGuidelines: [],
|
|
277
|
+
keywords: ['link-create', 'hooks', 'callback', 'useLinkCreateCallback'],
|
|
278
|
+
categories: ['linking', 'forms'],
|
|
279
|
+
examples: [],
|
|
267
280
|
},
|
|
268
|
-
|
|
269
|
-
'Use inside a plugin or child of LinkCreateCallbackProvider when you need access to the create-success callback.',
|
|
270
|
-
],
|
|
271
|
-
contentGuidelines: [],
|
|
272
|
-
accessibilityGuidelines: [],
|
|
273
|
-
keywords: ['link-create', 'hooks', 'callback', 'useLinkCreateCallback'],
|
|
274
|
-
categories: ['linking', 'forms'],
|
|
275
|
-
examples: [],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: 'LinkCreateExitWarningProvider',
|
|
279
|
-
description:
|
|
280
|
-
'Provider that enables an exit-confirmation when the user tries to leave the create flow with unsaved changes. Uses ExitWarningModalProvider internally.',
|
|
281
|
-
status: 'general-availability',
|
|
282
|
-
import: {
|
|
281
|
+
{
|
|
283
282
|
name: 'LinkCreateExitWarningProvider',
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
description:
|
|
284
|
+
'Provider that enables an exit-confirmation when the user tries to leave the create flow with unsaved changes. Uses ExitWarningModalProvider internally.',
|
|
285
|
+
status: 'general-availability',
|
|
286
|
+
import: {
|
|
287
|
+
name: 'LinkCreateExitWarningProvider',
|
|
288
|
+
package: '@atlaskit/link-create',
|
|
289
|
+
type: 'named',
|
|
290
|
+
packagePath,
|
|
291
|
+
packageJson,
|
|
292
|
+
},
|
|
293
|
+
usageGuidelines: [
|
|
294
|
+
'Wrap the create flow when you want to warn users before closing or navigating away with unsaved form data.',
|
|
295
|
+
],
|
|
296
|
+
contentGuidelines: [],
|
|
297
|
+
accessibilityGuidelines: [
|
|
298
|
+
'Ensure the exit warning modal is focusable and has an accessible title and actions.',
|
|
299
|
+
],
|
|
300
|
+
keywords: ['link-create', 'exit', 'warning', 'provider', 'unsaved'],
|
|
301
|
+
categories: ['linking', 'forms', 'interaction'],
|
|
302
|
+
examples: [],
|
|
288
303
|
},
|
|
289
|
-
|
|
290
|
-
'Wrap the create flow when you want to warn users before closing or navigating away with unsaved form data.',
|
|
291
|
-
],
|
|
292
|
-
contentGuidelines: [],
|
|
293
|
-
accessibilityGuidelines: [
|
|
294
|
-
'Ensure the exit warning modal is focusable and has an accessible title and actions.',
|
|
295
|
-
],
|
|
296
|
-
keywords: ['link-create', 'exit', 'warning', 'provider', 'unsaved'],
|
|
297
|
-
categories: ['linking', 'forms', 'interaction'],
|
|
298
|
-
examples: [],
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: 'useWithExitWarning',
|
|
302
|
-
description:
|
|
303
|
-
'Hook that wires the current form or flow into the exit-warning behavior. Use when building custom create UI that should trigger the exit warning.',
|
|
304
|
-
status: 'general-availability',
|
|
305
|
-
import: {
|
|
304
|
+
{
|
|
306
305
|
name: 'useWithExitWarning',
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
description:
|
|
307
|
+
'Hook that wires the current form or flow into the exit-warning behavior. Use when building custom create UI that should trigger the exit warning.',
|
|
308
|
+
status: 'general-availability',
|
|
309
|
+
import: {
|
|
310
|
+
name: 'useWithExitWarning',
|
|
311
|
+
package: '@atlaskit/link-create',
|
|
312
|
+
type: 'named',
|
|
313
|
+
packagePath,
|
|
314
|
+
packageJson,
|
|
315
|
+
},
|
|
316
|
+
usageGuidelines: [
|
|
317
|
+
'Use inside a component wrapped by LinkCreateExitWarningProvider when you need to register dirty state or trigger the exit warning modal.',
|
|
318
|
+
],
|
|
319
|
+
contentGuidelines: [],
|
|
320
|
+
accessibilityGuidelines: [],
|
|
321
|
+
keywords: ['link-create', 'hooks', 'exit', 'warning', 'useWithExitWarning'],
|
|
322
|
+
categories: ['linking', 'forms'],
|
|
323
|
+
examples: [],
|
|
311
324
|
},
|
|
312
|
-
|
|
313
|
-
'Use inside a component wrapped by LinkCreateExitWarningProvider when you need to register dirty state or trigger the exit warning modal.',
|
|
314
|
-
],
|
|
315
|
-
contentGuidelines: [],
|
|
316
|
-
accessibilityGuidelines: [],
|
|
317
|
-
keywords: ['link-create', 'hooks', 'exit', 'warning', 'useWithExitWarning'],
|
|
318
|
-
categories: ['linking', 'forms'],
|
|
319
|
-
examples: [],
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
name: 'CreateField',
|
|
323
|
-
description:
|
|
324
|
-
'Controller component that connects a form field to the create form state (name, validation, value). Use to build custom fields that participate in CreateForm.',
|
|
325
|
-
status: 'general-availability',
|
|
326
|
-
import: {
|
|
325
|
+
{
|
|
327
326
|
name: 'CreateField',
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
description:
|
|
328
|
+
'Controller component that connects a form field to the create form state (name, validation, value). Use to build custom fields that participate in CreateForm.',
|
|
329
|
+
status: 'general-availability',
|
|
330
|
+
import: {
|
|
331
|
+
name: 'CreateField',
|
|
332
|
+
package: '@atlaskit/link-create',
|
|
333
|
+
type: 'named',
|
|
334
|
+
packagePath,
|
|
335
|
+
packageJson,
|
|
336
|
+
},
|
|
337
|
+
usageGuidelines: [
|
|
338
|
+
'Use when building a custom form field (e.g. custom select, date picker) that must be part of the create form validation and submit payload.',
|
|
339
|
+
],
|
|
340
|
+
contentGuidelines: [],
|
|
341
|
+
accessibilityGuidelines: [
|
|
342
|
+
'Ensure the rendered control has an accessible name and that validation errors are associated (e.g. aria-describedby).',
|
|
343
|
+
],
|
|
344
|
+
keywords: ['link-create', 'form', 'field', 'CreateField'],
|
|
345
|
+
categories: ['linking', 'forms'],
|
|
346
|
+
examples: [],
|
|
332
347
|
},
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
],
|
|
336
|
-
contentGuidelines: [],
|
|
337
|
-
accessibilityGuidelines: [
|
|
338
|
-
'Ensure the rendered control has an accessible name and that validation errors are associated (e.g. aria-describedby).',
|
|
339
|
-
],
|
|
340
|
-
keywords: ['link-create', 'form', 'field', 'CreateField'],
|
|
341
|
-
categories: ['linking', 'forms'],
|
|
342
|
-
examples: [],
|
|
343
|
-
},
|
|
344
|
-
];
|
|
348
|
+
],
|
|
349
|
+
};
|
|
345
350
|
|
|
346
351
|
export default documentation;
|