@atlaskit/link-create 0.8.0 → 0.8.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 +12 -0
- package/dist/cjs/common/utils/locale/fetch-messages-for-locale.js +64 -0
- package/dist/cjs/i18n/da.js +22 -0
- package/dist/cjs/i18n/de.js +22 -0
- package/dist/cjs/i18n/es.js +22 -0
- package/dist/cjs/i18n/fi.js +22 -0
- package/dist/cjs/i18n/fr.js +22 -0
- package/dist/cjs/i18n/hu.js +22 -0
- package/dist/cjs/i18n/it.js +22 -0
- package/dist/cjs/i18n/ja.js +22 -0
- package/dist/cjs/i18n/nb.js +22 -0
- package/dist/cjs/i18n/pl.js +22 -0
- package/dist/cjs/i18n/pt_BR.js +22 -0
- package/dist/cjs/i18n/ru.js +22 -0
- package/dist/cjs/i18n/sv.js +22 -0
- package/dist/cjs/i18n/th.js +22 -0
- package/dist/cjs/i18n/tr.js +22 -0
- package/dist/cjs/i18n/uk.js +22 -0
- package/dist/cjs/i18n/vi.js +22 -0
- package/dist/cjs/i18n/zh_TW.js +22 -0
- package/dist/cjs/ui/main.js +7 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/utils/locale/fetch-messages-for-locale.js +21 -0
- package/dist/es2019/i18n/da.js +15 -0
- package/dist/es2019/i18n/de.js +15 -0
- package/dist/es2019/i18n/es.js +15 -0
- package/dist/es2019/i18n/fi.js +15 -0
- package/dist/es2019/i18n/fr.js +15 -0
- package/dist/es2019/i18n/hu.js +15 -0
- package/dist/es2019/i18n/it.js +15 -0
- package/dist/es2019/i18n/ja.js +15 -0
- package/dist/es2019/i18n/nb.js +15 -0
- package/dist/es2019/i18n/pl.js +15 -0
- package/dist/es2019/i18n/pt_BR.js +15 -0
- package/dist/es2019/i18n/ru.js +15 -0
- package/dist/es2019/i18n/sv.js +15 -0
- package/dist/es2019/i18n/th.js +15 -0
- package/dist/es2019/i18n/tr.js +15 -0
- package/dist/es2019/i18n/uk.js +15 -0
- package/dist/es2019/i18n/vi.js +15 -0
- package/dist/es2019/i18n/zh_TW.js +15 -0
- package/dist/es2019/ui/main.js +7 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/utils/locale/fetch-messages-for-locale.js +41 -0
- package/dist/esm/i18n/da.js +15 -0
- package/dist/esm/i18n/de.js +15 -0
- package/dist/esm/i18n/es.js +15 -0
- package/dist/esm/i18n/fi.js +15 -0
- package/dist/esm/i18n/fr.js +15 -0
- package/dist/esm/i18n/hu.js +15 -0
- package/dist/esm/i18n/it.js +15 -0
- package/dist/esm/i18n/ja.js +15 -0
- package/dist/esm/i18n/nb.js +15 -0
- package/dist/esm/i18n/pl.js +15 -0
- package/dist/esm/i18n/pt_BR.js +15 -0
- package/dist/esm/i18n/ru.js +15 -0
- package/dist/esm/i18n/sv.js +15 -0
- package/dist/esm/i18n/th.js +15 -0
- package/dist/esm/i18n/tr.js +15 -0
- package/dist/esm/i18n/uk.js +15 -0
- package/dist/esm/i18n/vi.js +15 -0
- package/dist/esm/i18n/zh_TW.js +15 -0
- package/dist/esm/ui/main.js +7 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +2 -0
- package/dist/types/i18n/da.d.ts +14 -0
- package/dist/types/i18n/de.d.ts +14 -0
- package/dist/types/i18n/es.d.ts +14 -0
- package/dist/types/i18n/fi.d.ts +14 -0
- package/dist/types/i18n/fr.d.ts +14 -0
- package/dist/types/i18n/hu.d.ts +14 -0
- package/dist/types/i18n/it.d.ts +14 -0
- package/dist/types/i18n/ja.d.ts +14 -0
- package/dist/types/i18n/nb.d.ts +14 -0
- package/dist/types/i18n/pl.d.ts +14 -0
- package/dist/types/i18n/pt_BR.d.ts +14 -0
- package/dist/types/i18n/ru.d.ts +14 -0
- package/dist/types/i18n/sv.d.ts +14 -0
- package/dist/types/i18n/th.d.ts +14 -0
- package/dist/types/i18n/tr.d.ts +14 -0
- package/dist/types/i18n/uk.d.ts +14 -0
- package/dist/types/i18n/vi.d.ts +14 -0
- package/dist/types/i18n/zh_TW.d.ts +14 -0
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +2 -0
- package/dist/types-ts4.5/i18n/da.d.ts +14 -0
- package/dist/types-ts4.5/i18n/de.d.ts +14 -0
- package/dist/types-ts4.5/i18n/es.d.ts +14 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +14 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +14 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +14 -0
- package/dist/types-ts4.5/i18n/it.d.ts +14 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +14 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +14 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +14 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +14 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +14 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +14 -0
- package/dist/types-ts4.5/i18n/th.d.ts +14 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +14 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +14 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +14 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +14 -0
- package/example-helpers/mock-plugin-form.tsx +91 -0
- package/package.json +3 -8
- package/tmp/api-report-tmp.d.ts +0 -136
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'link-create.unknown-error.description': string;
|
|
9
|
+
'link-create.unknown-error.heading': string;
|
|
10
|
+
'linkCreate.createForm.button.close': string;
|
|
11
|
+
'linkCreate.createForm.button.create': string;
|
|
12
|
+
'linkCreate.modal.heading': string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
AsyncSelect,
|
|
5
|
+
CreateForm,
|
|
6
|
+
CreateFormProps,
|
|
7
|
+
TextField,
|
|
8
|
+
useLinkCreateCallback,
|
|
9
|
+
Validator,
|
|
10
|
+
} from '@atlaskit/link-create';
|
|
11
|
+
import { OptionsType } from '@atlaskit/select';
|
|
12
|
+
|
|
13
|
+
interface pluginProps {
|
|
14
|
+
shouldThrowError?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function MockPluginForm({ shouldThrowError }: pluginProps) {
|
|
18
|
+
const { onCreate, onFailure, onCancel } = useLinkCreateCallback();
|
|
19
|
+
|
|
20
|
+
type MockOptions = {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const mockHandleSubmit = async () => {
|
|
26
|
+
if (onCreate) {
|
|
27
|
+
await onCreate({
|
|
28
|
+
url: 'https://atlassian.com/product/new-object-id',
|
|
29
|
+
objectId: 'new-object-id',
|
|
30
|
+
objectType: 'object-type',
|
|
31
|
+
data: {},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const mockValidator: Validator = useMemo(
|
|
37
|
+
() => ({
|
|
38
|
+
isValid: (val: unknown) => !!val,
|
|
39
|
+
errorMessage: 'Validation Error: You need to provide a value.',
|
|
40
|
+
}),
|
|
41
|
+
[],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const exampleOptions: OptionsType<MockOptions> = [
|
|
45
|
+
{ label: 'Option 1', value: 'option-1' },
|
|
46
|
+
{ label: 'Option 2', value: 'option-2' },
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
const mockLoadOptions = async () => {
|
|
50
|
+
try {
|
|
51
|
+
if (shouldThrowError) {
|
|
52
|
+
throw new Error('This is an error message.');
|
|
53
|
+
}
|
|
54
|
+
return exampleOptions;
|
|
55
|
+
} catch (error) {
|
|
56
|
+
if (error instanceof Error) {
|
|
57
|
+
onFailure && onFailure(error.message);
|
|
58
|
+
}
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div>
|
|
65
|
+
This is a mocked plugin.
|
|
66
|
+
<CreateForm<CreateFormProps<FormData>>
|
|
67
|
+
onSubmit={mockHandleSubmit}
|
|
68
|
+
onCancel={onCancel}
|
|
69
|
+
>
|
|
70
|
+
<TextField
|
|
71
|
+
name={'textField-name'}
|
|
72
|
+
label={'Enter some Text'}
|
|
73
|
+
placeholder={'Type something here...'}
|
|
74
|
+
validators={[mockValidator]}
|
|
75
|
+
autoFocus
|
|
76
|
+
maxLength={255}
|
|
77
|
+
/>
|
|
78
|
+
<AsyncSelect<MockOptions>
|
|
79
|
+
isRequired
|
|
80
|
+
isSearchable
|
|
81
|
+
name={'asyncSelect-name'}
|
|
82
|
+
label={'Select an Option'}
|
|
83
|
+
validators={[mockValidator]}
|
|
84
|
+
defaultOptions={true}
|
|
85
|
+
defaultOption={mockLoadOptions}
|
|
86
|
+
loadOptions={mockLoadOptions}
|
|
87
|
+
></AsyncSelect>
|
|
88
|
+
</CreateForm>
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
"@atlaskit/empty-state": "^7.6.0",
|
|
40
40
|
"@atlaskit/form": "^8.11.0",
|
|
41
41
|
"@atlaskit/icon": "^21.12.0",
|
|
42
|
+
"@atlaskit/intl-messages-provider": "^1.0.0",
|
|
42
43
|
"@atlaskit/modal-dialog": "^12.6.0",
|
|
43
44
|
"@atlaskit/select": "^16.5.0",
|
|
44
45
|
"@atlaskit/spinner": "^15.4.0",
|
|
45
|
-
"@atlaskit/textfield": "^5.
|
|
46
|
+
"@atlaskit/textfield": "^5.6.0",
|
|
46
47
|
"@atlaskit/tokens": "^1.11.0",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@emotion/react": "^11.7.1"
|
|
@@ -52,15 +53,9 @@
|
|
|
52
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@atlaskit/docs": "*",
|
|
56
|
-
"@atlaskit/link-picker": "^1.25.0",
|
|
57
56
|
"@atlaskit/link-test-helpers": "^4.1.0",
|
|
58
|
-
"@atlaskit/popup": "^1.8.0",
|
|
59
57
|
"@atlaskit/visual-regression": "*",
|
|
60
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
61
|
-
"@atlassian/link-create-confluence": "^10.0.0",
|
|
62
|
-
"@atlassian/link-create-presets": "^7.0.0",
|
|
63
|
-
"@atlassian/link-picker-atlassian-plugin": "^34.1.0",
|
|
64
59
|
"@testing-library/react": "^12.1.5",
|
|
65
60
|
"@testing-library/user-event": "^14.4.3",
|
|
66
61
|
"fetch-mock": "^8.0.0",
|