@atlaskit/link-create 0.7.0 → 0.8.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/i18n/cs.js +22 -0
  3. package/dist/cjs/i18n/en.js +22 -0
  4. package/dist/cjs/i18n/en_GB.js +22 -0
  5. package/dist/cjs/i18n/en_ZZ.js +22 -0
  6. package/dist/cjs/i18n/ko.js +22 -0
  7. package/dist/cjs/i18n/nl.js +22 -0
  8. package/dist/cjs/i18n/zh.js +22 -0
  9. package/dist/cjs/index.js +0 -13
  10. package/dist/cjs/ui/link-create/main.js +3 -3
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/i18n/cs.js +15 -0
  13. package/dist/es2019/i18n/en.js +15 -0
  14. package/dist/es2019/i18n/en_GB.js +15 -0
  15. package/dist/es2019/i18n/en_ZZ.js +15 -0
  16. package/dist/es2019/i18n/ko.js +15 -0
  17. package/dist/es2019/i18n/nl.js +15 -0
  18. package/dist/es2019/i18n/zh.js +15 -0
  19. package/dist/es2019/index.js +1 -2
  20. package/dist/es2019/ui/link-create/main.js +3 -3
  21. package/dist/es2019/version.json +1 -1
  22. package/dist/esm/i18n/cs.js +15 -0
  23. package/dist/esm/i18n/en.js +15 -0
  24. package/dist/esm/i18n/en_GB.js +15 -0
  25. package/dist/esm/i18n/en_ZZ.js +15 -0
  26. package/dist/esm/i18n/ko.js +15 -0
  27. package/dist/esm/i18n/nl.js +15 -0
  28. package/dist/esm/i18n/zh.js +15 -0
  29. package/dist/esm/index.js +1 -2
  30. package/dist/esm/ui/link-create/main.js +3 -3
  31. package/dist/esm/version.json +1 -1
  32. package/dist/types/common/types.d.ts +12 -1
  33. package/dist/types/controllers/callback-context/main.d.ts +2 -5
  34. package/dist/types/i18n/cs.d.ts +14 -0
  35. package/dist/types/i18n/en.d.ts +14 -0
  36. package/dist/types/i18n/en_GB.d.ts +14 -0
  37. package/dist/types/i18n/en_ZZ.d.ts +14 -0
  38. package/dist/types/i18n/ko.d.ts +14 -0
  39. package/dist/types/i18n/nl.d.ts +14 -0
  40. package/dist/types/i18n/zh.d.ts +14 -0
  41. package/dist/types/index.d.ts +1 -2
  42. package/dist/types-ts4.5/common/types.d.ts +12 -1
  43. package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -5
  44. package/dist/types-ts4.5/i18n/cs.d.ts +14 -0
  45. package/dist/types-ts4.5/i18n/en.d.ts +14 -0
  46. package/dist/types-ts4.5/i18n/en_GB.d.ts +14 -0
  47. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +14 -0
  48. package/dist/types-ts4.5/i18n/ko.d.ts +14 -0
  49. package/dist/types-ts4.5/i18n/nl.d.ts +14 -0
  50. package/dist/types-ts4.5/i18n/zh.d.ts +14 -0
  51. package/dist/types-ts4.5/index.d.ts +1 -2
  52. package/package.json +13 -10
  53. package/report.api.md +9 -23
  54. package/tmp/api-report-tmp.d.ts +9 -23
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f3acb380cb2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3acb380cb2) - EDM-7064: remove FormContextProvider export to prevent usage in external packages.
8
+
9
+ ## 0.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41d73aab05c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41d73aab05c) - EDM-6938: pass spaceName into onCreate submit for confluence-create and pass as optional meta data into link-create."
14
+
3
15
  ## 0.7.0
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Czech
15
+ var _default = {
16
+ 'link-create.unknown-error.description': 'Obnovte stránku nebo, pokud problém přetrvává, kontaktujte <a>podporu Atlassian</a>.',
17
+ 'link-create.unknown-error.heading': 'Něco se pokazilo',
18
+ 'linkCreate.createForm.button.close': 'Zavřít',
19
+ 'linkCreate.createForm.button.create': 'Vytvořit',
20
+ 'linkCreate.modal.heading': 'Vytvořit novou položku'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //
15
+ var _default = {
16
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
17
+ 'link-create.unknown-error.heading': 'Something went wrong',
18
+ 'linkCreate.createForm.button.close': 'Close',
19
+ 'linkCreate.createForm.button.create': 'Create',
20
+ 'linkCreate.modal.heading': 'Create new'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //English (United Kingdom)
15
+ var _default = {
16
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
17
+ 'link-create.unknown-error.heading': 'Something went wrong',
18
+ 'linkCreate.createForm.button.close': 'Close',
19
+ 'linkCreate.createForm.button.create': 'Create',
20
+ 'linkCreate.modal.heading': 'Create new'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //
15
+ var _default = {
16
+ 'link-create.unknown-error.description': '⁣⁢Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.⁠‌؜⁡‍‌⁡؜⁠‌؜⁠⁣⁤',
17
+ 'link-create.unknown-error.heading': '⁣⁢Something went wrong‍‍⁡⁡‌‌⁠⁠‌⁡⁣⁤',
18
+ 'linkCreate.createForm.button.close': '⁣⁢Close‌‌‌⁡‍⁡⁡؜‌‍⁣⁤',
19
+ 'linkCreate.createForm.button.create': '⁣⁢Create‍⁡‌؜⁡؜‍‌‌⁣⁤',
20
+ 'linkCreate.modal.heading': '⁣⁢Create new‌‌⁠⁡؜‌⁠⁠⁣⁤'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Korean
15
+ var _default = {
16
+ 'link-create.unknown-error.description': '페이지를 새로 고치거나 문제가 계속 발생하는 경우 <a>Atlassian 고객 지원 팀</a>에 문의하세요.',
17
+ 'link-create.unknown-error.heading': '문제가 발생했습니다',
18
+ 'linkCreate.createForm.button.close': '닫기',
19
+ 'linkCreate.createForm.button.create': '만들기',
20
+ 'linkCreate.modal.heading': '새로 만들기'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Dutch (Netherlands)
15
+ var _default = {
16
+ 'link-create.unknown-error.description': 'Vernieuw de pagina of neem contact op met <a>Atlassian-support</a> als dit blijft gebeuren.',
17
+ 'link-create.unknown-error.heading': 'Er is iets misgegaan',
18
+ 'linkCreate.createForm.button.close': 'Sluiten',
19
+ 'linkCreate.createForm.button.create': 'Aanmaken',
20
+ 'linkCreate.modal.heading': 'Nieuwe aanmaken'
21
+ };
22
+ exports.default = _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Chinese (Simplified)
15
+ var _default = {
16
+ 'link-create.unknown-error.description': '如果此问题依然存在,请刷新页面或联系 <a>Atlassian 支持团队</a>。',
17
+ 'link-create.unknown-error.heading': '出错了',
18
+ 'linkCreate.createForm.button.close': '关闭',
19
+ 'linkCreate.createForm.button.create': '创建',
20
+ 'linkCreate.modal.heading': '新建'
21
+ };
22
+ exports.default = _default;
package/dist/cjs/index.js CHANGED
@@ -22,12 +22,6 @@ Object.defineProperty(exports, "CreateFormLoader", {
22
22
  return _index.CreateFormLoader;
23
23
  }
24
24
  });
25
- Object.defineProperty(exports, "FormContextProvider", {
26
- enumerable: true,
27
- get: function get() {
28
- return _formContext.FormContextProvider;
29
- }
30
- });
31
25
  Object.defineProperty(exports, "LinkCreateCallbackProvider", {
32
26
  enumerable: true,
33
27
  get: function get() {
@@ -46,12 +40,6 @@ Object.defineProperty(exports, "default", {
46
40
  return _index.default;
47
41
  }
48
42
  });
49
- Object.defineProperty(exports, "useFormContext", {
50
- enumerable: true,
51
- get: function get() {
52
- return _formContext.useFormContext;
53
- }
54
- });
55
43
  Object.defineProperty(exports, "useLinkCreateCallback", {
56
44
  enumerable: true,
57
45
  get: function get() {
@@ -60,6 +48,5 @@ Object.defineProperty(exports, "useLinkCreateCallback", {
60
48
  });
61
49
  var _index = _interopRequireWildcard(require("./ui/index"));
62
50
  var _callbackContext = require("./controllers/callback-context");
63
- var _formContext = require("./controllers/form-context");
64
51
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
65
52
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -55,7 +55,7 @@ var LinkCreate = (0, _formContext.withLinkCreateFormContext)(function (_ref2) {
55
55
  break;
56
56
  }
57
57
  _context.next = 4;
58
- return onCreate(result.url);
58
+ return onCreate(result);
59
59
  case 4:
60
60
  case "end":
61
61
  return _context.stop();
@@ -74,9 +74,9 @@ var LinkCreate = (0, _formContext.withLinkCreateFormContext)(function (_ref2) {
74
74
  return (0, _react2.jsx)("div", {
75
75
  "data-testid": testId
76
76
  }, (0, _react2.jsx)(_errorBoundary.ErrorBoundary, null, (0, _react2.jsx)(_callbackContext.LinkCreateCallbackProvider, {
77
+ onCancel: onCancel,
77
78
  onCreate: handleCreate,
78
- onFailure: handleFailure,
79
- onCancel: onCancel
79
+ onFailure: handleFailure
80
80
  }, (0, _react2.jsx)(_trackMount.default, null), (0, _react2.jsx)(LinkCreateContent, restProps))));
81
81
  });
82
82
  var LinkCreateWithModal = function LinkCreateWithModal(_ref4) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Czech
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Obnovte stránku nebo, pokud problém přetrvává, kontaktujte <a>podporu Atlassian</a>.',
11
+ 'link-create.unknown-error.heading': 'Něco se pokazilo',
12
+ 'linkCreate.createForm.button.close': 'Zavřít',
13
+ 'linkCreate.createForm.button.create': 'Vytvořit',
14
+ 'linkCreate.modal.heading': 'Vytvořit novou položku'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
11
+ 'link-create.unknown-error.heading': 'Something went wrong',
12
+ 'linkCreate.createForm.button.close': 'Close',
13
+ 'linkCreate.createForm.button.create': 'Create',
14
+ 'linkCreate.modal.heading': 'Create new'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //English (United Kingdom)
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
11
+ 'link-create.unknown-error.heading': 'Something went wrong',
12
+ 'linkCreate.createForm.button.close': 'Close',
13
+ 'linkCreate.createForm.button.create': 'Create',
14
+ 'linkCreate.modal.heading': 'Create new'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //
9
+ export default {
10
+ 'link-create.unknown-error.description': '⁣⁢Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.⁠‌؜⁡‍‌⁡؜⁠‌؜⁠⁣⁤',
11
+ 'link-create.unknown-error.heading': '⁣⁢Something went wrong‍‍⁡⁡‌‌⁠⁠‌⁡⁣⁤',
12
+ 'linkCreate.createForm.button.close': '⁣⁢Close‌‌‌⁡‍⁡⁡؜‌‍⁣⁤',
13
+ 'linkCreate.createForm.button.create': '⁣⁢Create‍⁡‌؜⁡؜‍‌‌⁣⁤',
14
+ 'linkCreate.modal.heading': '⁣⁢Create new‌‌⁠⁡؜‌⁠⁠⁣⁤'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Korean
9
+ export default {
10
+ 'link-create.unknown-error.description': '페이지를 새로 고치거나 문제가 계속 발생하는 경우 <a>Atlassian 고객 지원 팀</a>에 문의하세요.',
11
+ 'link-create.unknown-error.heading': '문제가 발생했습니다',
12
+ 'linkCreate.createForm.button.close': '닫기',
13
+ 'linkCreate.createForm.button.create': '만들기',
14
+ 'linkCreate.modal.heading': '새로 만들기'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Dutch (Netherlands)
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Vernieuw de pagina of neem contact op met <a>Atlassian-support</a> als dit blijft gebeuren.',
11
+ 'link-create.unknown-error.heading': 'Er is iets misgegaan',
12
+ 'linkCreate.createForm.button.close': 'Sluiten',
13
+ 'linkCreate.createForm.button.create': 'Aanmaken',
14
+ 'linkCreate.modal.heading': 'Nieuwe aanmaken'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Chinese (Simplified)
9
+ export default {
10
+ 'link-create.unknown-error.description': '如果此问题依然存在,请刷新页面或联系 <a>Atlassian 支持团队</a>。',
11
+ 'link-create.unknown-error.heading': '出错了',
12
+ 'linkCreate.createForm.button.close': '关闭',
13
+ 'linkCreate.createForm.button.create': '创建',
14
+ 'linkCreate.modal.heading': '新建'
15
+ };
@@ -1,3 +1,2 @@
1
1
  export { default, TextField, CreateForm, AsyncSelect, CreateFormLoader } from './ui/index';
2
- export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
3
- export { FormContextProvider, useFormContext } from './controllers/form-context';
2
+ export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
@@ -33,7 +33,7 @@ const LinkCreate = withLinkCreateFormContext(({
33
33
  // Reset the form error message
34
34
  setFormErrorMessage(undefined);
35
35
  if (onCreate) {
36
- await onCreate(result.url);
36
+ await onCreate(result);
37
37
  }
38
38
  }, [onCreate, setFormErrorMessage]);
39
39
  const handleFailure = useCallback(errorMessage => {
@@ -44,9 +44,9 @@ const LinkCreate = withLinkCreateFormContext(({
44
44
  return jsx("div", {
45
45
  "data-testid": testId
46
46
  }, jsx(ErrorBoundary, null, jsx(LinkCreateCallbackProvider, {
47
+ onCancel: onCancel,
47
48
  onCreate: handleCreate,
48
- onFailure: handleFailure,
49
- onCancel: onCancel
49
+ onFailure: handleFailure
50
50
  }, jsx(TrackMount, null), jsx(LinkCreateContent, restProps))));
51
51
  });
52
52
  const LinkCreateWithModal = ({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Czech
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Obnovte stránku nebo, pokud problém přetrvává, kontaktujte <a>podporu Atlassian</a>.',
11
+ 'link-create.unknown-error.heading': 'Něco se pokazilo',
12
+ 'linkCreate.createForm.button.close': 'Zavřít',
13
+ 'linkCreate.createForm.button.create': 'Vytvořit',
14
+ 'linkCreate.modal.heading': 'Vytvořit novou položku'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
11
+ 'link-create.unknown-error.heading': 'Something went wrong',
12
+ 'linkCreate.createForm.button.close': 'Close',
13
+ 'linkCreate.createForm.button.create': 'Create',
14
+ 'linkCreate.modal.heading': 'Create new'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //English (United Kingdom)
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.',
11
+ 'link-create.unknown-error.heading': 'Something went wrong',
12
+ 'linkCreate.createForm.button.close': 'Close',
13
+ 'linkCreate.createForm.button.create': 'Create',
14
+ 'linkCreate.modal.heading': 'Create new'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //
9
+ export default {
10
+ 'link-create.unknown-error.description': '⁣⁢Refresh the page, or contact <a>Atlassian Support</a> if this keeps happening.⁠‌؜⁡‍‌⁡؜⁠‌؜⁠⁣⁤',
11
+ 'link-create.unknown-error.heading': '⁣⁢Something went wrong‍‍⁡⁡‌‌⁠⁠‌⁡⁣⁤',
12
+ 'linkCreate.createForm.button.close': '⁣⁢Close‌‌‌⁡‍⁡⁡؜‌‍⁣⁤',
13
+ 'linkCreate.createForm.button.create': '⁣⁢Create‍⁡‌؜⁡؜‍‌‌⁣⁤',
14
+ 'linkCreate.modal.heading': '⁣⁢Create new‌‌⁠⁡؜‌⁠⁠⁣⁤'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Korean
9
+ export default {
10
+ 'link-create.unknown-error.description': '페이지를 새로 고치거나 문제가 계속 발생하는 경우 <a>Atlassian 고객 지원 팀</a>에 문의하세요.',
11
+ 'link-create.unknown-error.heading': '문제가 발생했습니다',
12
+ 'linkCreate.createForm.button.close': '닫기',
13
+ 'linkCreate.createForm.button.create': '만들기',
14
+ 'linkCreate.modal.heading': '새로 만들기'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Dutch (Netherlands)
9
+ export default {
10
+ 'link-create.unknown-error.description': 'Vernieuw de pagina of neem contact op met <a>Atlassian-support</a> als dit blijft gebeuren.',
11
+ 'link-create.unknown-error.heading': 'Er is iets misgegaan',
12
+ 'linkCreate.createForm.button.close': 'Sluiten',
13
+ 'linkCreate.createForm.button.create': 'Aanmaken',
14
+ 'linkCreate.modal.heading': 'Nieuwe aanmaken'
15
+ };
@@ -0,0 +1,15 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Chinese (Simplified)
9
+ export default {
10
+ 'link-create.unknown-error.description': '如果此问题依然存在,请刷新页面或联系 <a>Atlassian 支持团队</a>。',
11
+ 'link-create.unknown-error.heading': '出错了',
12
+ 'linkCreate.createForm.button.close': '关闭',
13
+ 'linkCreate.createForm.button.create': '创建',
14
+ 'linkCreate.modal.heading': '新建'
15
+ };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { default, TextField, CreateForm, AsyncSelect, CreateFormLoader } from './ui/index';
2
- export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
3
- export { FormContextProvider, useFormContext } from './controllers/form-context';
2
+ export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
@@ -45,7 +45,7 @@ var LinkCreate = withLinkCreateFormContext(function (_ref2) {
45
45
  break;
46
46
  }
47
47
  _context.next = 4;
48
- return onCreate(result.url);
48
+ return onCreate(result);
49
49
  case 4:
50
50
  case "end":
51
51
  return _context.stop();
@@ -64,9 +64,9 @@ var LinkCreate = withLinkCreateFormContext(function (_ref2) {
64
64
  return jsx("div", {
65
65
  "data-testid": testId
66
66
  }, jsx(ErrorBoundary, null, jsx(LinkCreateCallbackProvider, {
67
+ onCancel: onCancel,
67
68
  onCreate: handleCreate,
68
- onFailure: handleFailure,
69
- onCancel: onCancel
69
+ onFailure: handleFailure
70
70
  }, jsx(TrackMount, null), jsx(LinkCreateContent, restProps))));
71
71
  });
72
72
  var LinkCreateWithModal = function LinkCreateWithModal(_ref4) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "sideEffects": false
5
5
  }
@@ -44,6 +44,17 @@ export interface LinkCreatePlugin {
44
44
  */
45
45
  form: ReactNode;
46
46
  }
47
+ /** The object that is returned on successful callback of create function*/
48
+ export type CreatePayload = {
49
+ /** The url to the resource created by the create plugin */
50
+ url: string;
51
+ /** The object identifier for the resource created by the create plugin (for analytics) */
52
+ objectId: string;
53
+ /** The type of object created (for analytics) */
54
+ objectType: string;
55
+ /** The raw object returned from the create plugin */
56
+ data?: Record<string, unknown>;
57
+ };
47
58
  export interface LinkCreateProps {
48
59
  /**
49
60
  * A `testId` prop is provided for specified elements, which is a unique
@@ -66,7 +77,7 @@ export interface LinkCreateProps {
66
77
  /**
67
78
  * This callback for when the resource has been successfully created.
68
79
  */
69
- onCreate?: (url: string) => Promise<void> | void;
80
+ onCreate?: (payload: CreatePayload) => Promise<void> | void;
70
81
  /**
71
82
  * This callback for any errors
72
83
  */
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
+ import { CreatePayload } from '../../common/types';
2
3
  interface LinkCreateCallbackProviderProps {
3
4
  /**
4
5
  * This callback for when the resource has been successfully created.
5
6
  */
6
- onCreate?: (result: {
7
- url: string;
8
- objectId: string;
9
- objectType: string;
10
- }) => Promise<void> | void;
7
+ onCreate?: (result: CreatePayload) => Promise<void> | void;
11
8
  /**
12
9
  * This callback for any errors
13
10
  */
@@ -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;
@@ -1,6 +1,5 @@
1
1
  export type { CreateFormProps } from './ui/index';
2
- export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, } from './common/types';
2
+ export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, CreatePayload, } from './common/types';
3
3
  export { default, TextField, CreateForm, AsyncSelect, CreateFormLoader, } from './ui/index';
4
4
  export { useLinkCreateCallback, LinkCreateCallbackProvider, } from './controllers/callback-context';
5
- export { FormContextProvider, useFormContext, } from './controllers/form-context';
6
5
  export type { Validator, ValidatorMap } from './common/types';
@@ -44,6 +44,17 @@ export interface LinkCreatePlugin {
44
44
  */
45
45
  form: ReactNode;
46
46
  }
47
+ /** The object that is returned on successful callback of create function*/
48
+ export type CreatePayload = {
49
+ /** The url to the resource created by the create plugin */
50
+ url: string;
51
+ /** The object identifier for the resource created by the create plugin (for analytics) */
52
+ objectId: string;
53
+ /** The type of object created (for analytics) */
54
+ objectType: string;
55
+ /** The raw object returned from the create plugin */
56
+ data?: Record<string, unknown>;
57
+ };
47
58
  export interface LinkCreateProps {
48
59
  /**
49
60
  * A `testId` prop is provided for specified elements, which is a unique
@@ -66,7 +77,7 @@ export interface LinkCreateProps {
66
77
  /**
67
78
  * This callback for when the resource has been successfully created.
68
79
  */
69
- onCreate?: (url: string) => Promise<void> | void;
80
+ onCreate?: (payload: CreatePayload) => Promise<void> | void;
70
81
  /**
71
82
  * This callback for any errors
72
83
  */
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
+ import { CreatePayload } from '../../common/types';
2
3
  interface LinkCreateCallbackProviderProps {
3
4
  /**
4
5
  * This callback for when the resource has been successfully created.
5
6
  */
6
- onCreate?: (result: {
7
- url: string;
8
- objectId: string;
9
- objectType: string;
10
- }) => Promise<void> | void;
7
+ onCreate?: (result: CreatePayload) => Promise<void> | void;
11
8
  /**
12
9
  * This callback for any errors
13
10
  */
@@ -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;
@@ -1,6 +1,5 @@
1
1
  export type { CreateFormProps } from './ui/index';
2
- export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, } from './common/types';
2
+ export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, CreatePayload, } from './common/types';
3
3
  export { default, TextField, CreateForm, AsyncSelect, CreateFormLoader, } from './ui/index';
4
4
  export { useLinkCreateCallback, LinkCreateCallbackProvider, } from './controllers/callback-context';
5
- export { FormContextProvider, useFormContext, } from './controllers/form-context';
6
5
  export type { Validator, ValidatorMap } from './common/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
- "@atlaskit/button": "^16.7.0",
39
- "@atlaskit/empty-state": "^7.5.0",
38
+ "@atlaskit/button": "^16.8.0",
39
+ "@atlaskit/empty-state": "^7.6.0",
40
40
  "@atlaskit/form": "^8.11.0",
41
41
  "@atlaskit/icon": "^21.12.0",
42
42
  "@atlaskit/modal-dialog": "^12.6.0",
43
43
  "@atlaskit/select": "^16.5.0",
44
44
  "@atlaskit/spinner": "^15.4.0",
45
45
  "@atlaskit/textfield": "^5.5.0",
46
- "@atlaskit/tokens": "^1.5.0",
46
+ "@atlaskit/tokens": "^1.11.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
@@ -53,14 +53,14 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@atlaskit/docs": "*",
56
- "@atlaskit/link-picker": "^1.24.0",
57
- "@atlaskit/link-test-helpers": "^4.0.0",
58
- "@atlaskit/popup": "^1.6.0",
56
+ "@atlaskit/link-picker": "^1.25.0",
57
+ "@atlaskit/link-test-helpers": "^4.1.0",
58
+ "@atlaskit/popup": "^1.8.0",
59
59
  "@atlaskit/visual-regression": "*",
60
60
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
61
- "@atlassian/link-create-confluence": "^8.0.0",
62
- "@atlassian/link-create-presets": "^6.0.0",
63
- "@atlassian/link-picker-atlassian-plugin": "^33.3.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
64
  "@testing-library/react": "^12.1.5",
65
65
  "@testing-library/user-event": "^14.4.3",
66
66
  "fetch-mock": "^8.0.0",
@@ -101,6 +101,9 @@
101
101
  "styling": [
102
102
  "static",
103
103
  "emotion"
104
+ ],
105
+ "imports": [
106
+ "import-no-extraneous-disable-for-examples-and-docs"
104
107
  ]
105
108
  }
106
109
  },
package/report.api.md CHANGED
@@ -86,20 +86,13 @@ export interface CreateFormProps<FormData> {
86
86
  testId?: string;
87
87
  }
88
88
 
89
- // @public (undocumented)
90
- export const FormContextProvider: React_2.FC<{}>;
91
-
92
- // @public (undocumented)
93
- interface FormContextType {
94
- // (undocumented)
95
- assignValidator: (name: string, validators: Validator[]) => void;
96
- // (undocumented)
97
- formErrorMessage?: string;
98
- // (undocumented)
99
- getValidators: () => ValidatorMap;
100
- // (undocumented)
101
- setFormErrorMessage: (errorMessage?: string) => void;
102
- }
89
+ // @public
90
+ export type CreatePayload = {
91
+ url: string;
92
+ objectId: string;
93
+ objectType: string;
94
+ data?: Record<string, unknown>;
95
+ };
103
96
 
104
97
  // @public (undocumented)
105
98
  interface Group {
@@ -114,11 +107,7 @@ export const LinkCreateCallbackProvider: React_2.FC<LinkCreateCallbackProviderPr
114
107
  // @public (undocumented)
115
108
  interface LinkCreateCallbackProviderProps {
116
109
  onCancel?: () => void;
117
- onCreate?: (result: {
118
- url: string;
119
- objectId: string;
120
- objectType: string;
121
- }) => Promise<void> | void;
110
+ onCreate?: (result: CreatePayload) => Promise<void> | void;
122
111
  onFailure?: (errorMessage: string) => void;
123
112
  }
124
113
 
@@ -136,7 +125,7 @@ export interface LinkCreateProps {
136
125
  entityKey: string;
137
126
  groupKey?: string;
138
127
  onCancel?: () => void;
139
- onCreate?: (url: string) => Promise<void> | void;
128
+ onCreate?: (payload: CreatePayload) => Promise<void> | void;
140
129
  onFailure?: (error: unknown) => void;
141
130
  // (undocumented)
142
131
  plugins: LinkCreatePlugin[];
@@ -171,9 +160,6 @@ type TextFieldProps = Omit<TextFieldProps_2, 'name'> & {
171
160
  validators?: Validator[];
172
161
  };
173
162
 
174
- // @public (undocumented)
175
- export const useFormContext: () => FormContextType;
176
-
177
163
  // @public (undocumented)
178
164
  export const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
179
165
 
@@ -55,20 +55,13 @@ export interface CreateFormProps<FormData> {
55
55
  testId?: string;
56
56
  }
57
57
 
58
- // @public (undocumented)
59
- export const FormContextProvider: React_2.FC<{}>;
60
-
61
- // @public (undocumented)
62
- interface FormContextType {
63
- // (undocumented)
64
- assignValidator: (name: string, validators: Validator[]) => void;
65
- // (undocumented)
66
- formErrorMessage?: string;
67
- // (undocumented)
68
- getValidators: () => ValidatorMap;
69
- // (undocumented)
70
- setFormErrorMessage: (errorMessage?: string) => void;
71
- }
58
+ // @public
59
+ export type CreatePayload = {
60
+ url: string;
61
+ objectId: string;
62
+ objectType: string;
63
+ data?: Record<string, unknown>;
64
+ };
72
65
 
73
66
  // @public (undocumented)
74
67
  interface Group {
@@ -83,11 +76,7 @@ export const LinkCreateCallbackProvider: React_2.FC<LinkCreateCallbackProviderPr
83
76
  // @public (undocumented)
84
77
  interface LinkCreateCallbackProviderProps {
85
78
  onCancel?: () => void;
86
- onCreate?: (result: {
87
- url: string;
88
- objectId: string;
89
- objectType: string;
90
- }) => Promise<void> | void;
79
+ onCreate?: (result: CreatePayload) => Promise<void> | void;
91
80
  onFailure?: (errorMessage: string) => void;
92
81
  }
93
82
 
@@ -105,7 +94,7 @@ export interface LinkCreateProps {
105
94
  entityKey: string;
106
95
  groupKey?: string;
107
96
  onCancel?: () => void;
108
- onCreate?: (url: string) => Promise<void> | void;
97
+ onCreate?: (payload: CreatePayload) => Promise<void> | void;
109
98
  onFailure?: (error: unknown) => void;
110
99
  // (undocumented)
111
100
  plugins: LinkCreatePlugin[];
@@ -130,9 +119,6 @@ type TextFieldProps = Omit<TextFieldProps_2, 'name'> & {
130
119
  validators?: Validator[];
131
120
  };
132
121
 
133
- // @public (undocumented)
134
- export const useFormContext: () => FormContextType;
135
-
136
122
  // @public (undocumented)
137
123
  export const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
138
124