@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.
Files changed (105) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/common/utils/locale/fetch-messages-for-locale.js +64 -0
  3. package/dist/cjs/i18n/da.js +22 -0
  4. package/dist/cjs/i18n/de.js +22 -0
  5. package/dist/cjs/i18n/es.js +22 -0
  6. package/dist/cjs/i18n/fi.js +22 -0
  7. package/dist/cjs/i18n/fr.js +22 -0
  8. package/dist/cjs/i18n/hu.js +22 -0
  9. package/dist/cjs/i18n/it.js +22 -0
  10. package/dist/cjs/i18n/ja.js +22 -0
  11. package/dist/cjs/i18n/nb.js +22 -0
  12. package/dist/cjs/i18n/pl.js +22 -0
  13. package/dist/cjs/i18n/pt_BR.js +22 -0
  14. package/dist/cjs/i18n/ru.js +22 -0
  15. package/dist/cjs/i18n/sv.js +22 -0
  16. package/dist/cjs/i18n/th.js +22 -0
  17. package/dist/cjs/i18n/tr.js +22 -0
  18. package/dist/cjs/i18n/uk.js +22 -0
  19. package/dist/cjs/i18n/vi.js +22 -0
  20. package/dist/cjs/i18n/zh_TW.js +22 -0
  21. package/dist/cjs/ui/main.js +7 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/common/utils/locale/fetch-messages-for-locale.js +21 -0
  24. package/dist/es2019/i18n/da.js +15 -0
  25. package/dist/es2019/i18n/de.js +15 -0
  26. package/dist/es2019/i18n/es.js +15 -0
  27. package/dist/es2019/i18n/fi.js +15 -0
  28. package/dist/es2019/i18n/fr.js +15 -0
  29. package/dist/es2019/i18n/hu.js +15 -0
  30. package/dist/es2019/i18n/it.js +15 -0
  31. package/dist/es2019/i18n/ja.js +15 -0
  32. package/dist/es2019/i18n/nb.js +15 -0
  33. package/dist/es2019/i18n/pl.js +15 -0
  34. package/dist/es2019/i18n/pt_BR.js +15 -0
  35. package/dist/es2019/i18n/ru.js +15 -0
  36. package/dist/es2019/i18n/sv.js +15 -0
  37. package/dist/es2019/i18n/th.js +15 -0
  38. package/dist/es2019/i18n/tr.js +15 -0
  39. package/dist/es2019/i18n/uk.js +15 -0
  40. package/dist/es2019/i18n/vi.js +15 -0
  41. package/dist/es2019/i18n/zh_TW.js +15 -0
  42. package/dist/es2019/ui/main.js +7 -1
  43. package/dist/es2019/version.json +1 -1
  44. package/dist/esm/common/utils/locale/fetch-messages-for-locale.js +41 -0
  45. package/dist/esm/i18n/da.js +15 -0
  46. package/dist/esm/i18n/de.js +15 -0
  47. package/dist/esm/i18n/es.js +15 -0
  48. package/dist/esm/i18n/fi.js +15 -0
  49. package/dist/esm/i18n/fr.js +15 -0
  50. package/dist/esm/i18n/hu.js +15 -0
  51. package/dist/esm/i18n/it.js +15 -0
  52. package/dist/esm/i18n/ja.js +15 -0
  53. package/dist/esm/i18n/nb.js +15 -0
  54. package/dist/esm/i18n/pl.js +15 -0
  55. package/dist/esm/i18n/pt_BR.js +15 -0
  56. package/dist/esm/i18n/ru.js +15 -0
  57. package/dist/esm/i18n/sv.js +15 -0
  58. package/dist/esm/i18n/th.js +15 -0
  59. package/dist/esm/i18n/tr.js +15 -0
  60. package/dist/esm/i18n/uk.js +15 -0
  61. package/dist/esm/i18n/vi.js +15 -0
  62. package/dist/esm/i18n/zh_TW.js +15 -0
  63. package/dist/esm/ui/main.js +7 -1
  64. package/dist/esm/version.json +1 -1
  65. package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +2 -0
  66. package/dist/types/i18n/da.d.ts +14 -0
  67. package/dist/types/i18n/de.d.ts +14 -0
  68. package/dist/types/i18n/es.d.ts +14 -0
  69. package/dist/types/i18n/fi.d.ts +14 -0
  70. package/dist/types/i18n/fr.d.ts +14 -0
  71. package/dist/types/i18n/hu.d.ts +14 -0
  72. package/dist/types/i18n/it.d.ts +14 -0
  73. package/dist/types/i18n/ja.d.ts +14 -0
  74. package/dist/types/i18n/nb.d.ts +14 -0
  75. package/dist/types/i18n/pl.d.ts +14 -0
  76. package/dist/types/i18n/pt_BR.d.ts +14 -0
  77. package/dist/types/i18n/ru.d.ts +14 -0
  78. package/dist/types/i18n/sv.d.ts +14 -0
  79. package/dist/types/i18n/th.d.ts +14 -0
  80. package/dist/types/i18n/tr.d.ts +14 -0
  81. package/dist/types/i18n/uk.d.ts +14 -0
  82. package/dist/types/i18n/vi.d.ts +14 -0
  83. package/dist/types/i18n/zh_TW.d.ts +14 -0
  84. package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +2 -0
  85. package/dist/types-ts4.5/i18n/da.d.ts +14 -0
  86. package/dist/types-ts4.5/i18n/de.d.ts +14 -0
  87. package/dist/types-ts4.5/i18n/es.d.ts +14 -0
  88. package/dist/types-ts4.5/i18n/fi.d.ts +14 -0
  89. package/dist/types-ts4.5/i18n/fr.d.ts +14 -0
  90. package/dist/types-ts4.5/i18n/hu.d.ts +14 -0
  91. package/dist/types-ts4.5/i18n/it.d.ts +14 -0
  92. package/dist/types-ts4.5/i18n/ja.d.ts +14 -0
  93. package/dist/types-ts4.5/i18n/nb.d.ts +14 -0
  94. package/dist/types-ts4.5/i18n/pl.d.ts +14 -0
  95. package/dist/types-ts4.5/i18n/pt_BR.d.ts +14 -0
  96. package/dist/types-ts4.5/i18n/ru.d.ts +14 -0
  97. package/dist/types-ts4.5/i18n/sv.d.ts +14 -0
  98. package/dist/types-ts4.5/i18n/th.d.ts +14 -0
  99. package/dist/types-ts4.5/i18n/tr.d.ts +14 -0
  100. package/dist/types-ts4.5/i18n/uk.d.ts +14 -0
  101. package/dist/types-ts4.5/i18n/vi.d.ts +14 -0
  102. package/dist/types-ts4.5/i18n/zh_TW.d.ts +14 -0
  103. package/example-helpers/mock-plugin-form.tsx +91 -0
  104. package/package.json +3 -8
  105. 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,2 @@
1
+ import { I18NMessages } from '@atlaskit/intl-messages-provider';
2
+ export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
@@ -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.0",
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.5.0",
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",