@atlaskit/link-create 5.3.3 → 6.0.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 (126) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/async-select/package.json +1 -8
  3. package/callback-context/package.json +1 -8
  4. package/create-field/package.json +1 -8
  5. package/create-form/package.json +1 -8
  6. package/dist/cjs/common/constants.js +1 -1
  7. package/dist/es2019/common/constants.js +1 -1
  8. package/dist/esm/common/constants.js +1 -1
  9. package/dist/types/entry-points/callback-context.d.ts +1 -1
  10. package/dist/types/index.d.ts +1 -1
  11. package/exit-warning-modal/package.json +1 -8
  12. package/final-form/package.json +1 -8
  13. package/form-loader/package.json +1 -8
  14. package/form-spy/package.json +1 -8
  15. package/icons/package.json +1 -8
  16. package/inline-create/package.json +1 -8
  17. package/modal-create/package.json +1 -8
  18. package/package.json +25 -33
  19. package/select/package.json +1 -8
  20. package/text-field/package.json +1 -8
  21. package/types/package.json +1 -8
  22. package/user-picker/package.json +1 -8
  23. package/dist/types-ts4.5/common/constants.d.ts +0 -12
  24. package/dist/types-ts4.5/common/messages.d.ts +0 -7
  25. package/dist/types-ts4.5/common/types.d.ts +0 -152
  26. package/dist/types-ts4.5/common/ui/Button/index.d.ts +0 -10
  27. package/dist/types-ts4.5/common/ui/ModalDialog/index.d.ts +0 -13
  28. package/dist/types-ts4.5/common/ui/confirm-dismiss-dialog/main.d.ts +0 -7
  29. package/dist/types-ts4.5/common/ui/confirm-dismiss-dialog/messages.d.ts +0 -7
  30. package/dist/types-ts4.5/common/ui/edit-modal/index.d.ts +0 -11
  31. package/dist/types-ts4.5/common/ui/error-boundary/error-boundary-base/index.d.ts +0 -18
  32. package/dist/types-ts4.5/common/ui/error-boundary/index.d.ts +0 -6
  33. package/dist/types-ts4.5/common/ui/error-boundary-modal/index.d.ts +0 -10
  34. package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/index.d.ts +0 -2
  35. package/dist/types-ts4.5/common/ui/error-boundary-ui/index.d.ts +0 -4
  36. package/dist/types-ts4.5/common/ui/error-boundary-ui/messages.d.ts +0 -7
  37. package/dist/types-ts4.5/common/ui/experience-tracker/index.d.ts +0 -22
  38. package/dist/types-ts4.5/common/ui/icon/index.d.ts +0 -13
  39. package/dist/types-ts4.5/common/ui/icon/messages.d.ts +0 -12
  40. package/dist/types-ts4.5/common/ui/link-create-content/index.d.ts +0 -8
  41. package/dist/types-ts4.5/common/ui/message/index.d.ts +0 -14
  42. package/dist/types-ts4.5/common/ui/modal-hero/index.d.ts +0 -6
  43. package/dist/types-ts4.5/common/utils/analytics/analytics.codegen.d.ts +0 -75
  44. package/dist/types-ts4.5/common/utils/analytics/components.d.ts +0 -7
  45. package/dist/types-ts4.5/common/utils/analytics/context.d.ts +0 -29
  46. package/dist/types-ts4.5/common/utils/errors/index.d.ts +0 -10
  47. package/dist/types-ts4.5/common/utils/form/index.d.ts +0 -7
  48. package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +0 -2
  49. package/dist/types-ts4.5/controllers/callback-context/main.d.ts +0 -19
  50. package/dist/types-ts4.5/controllers/create-field/main.d.ts +0 -6
  51. package/dist/types-ts4.5/controllers/create-field/types.d.ts +0 -28
  52. package/dist/types-ts4.5/controllers/edit-post-create-context/index.d.ts +0 -32
  53. package/dist/types-ts4.5/controllers/exit-warning-modal-context/index.d.ts +0 -14
  54. package/dist/types-ts4.5/controllers/form-context/main.d.ts +0 -19
  55. package/dist/types-ts4.5/controllers/plugin-context/index.d.ts +0 -21
  56. package/dist/types-ts4.5/entry-points/async-select.d.ts +0 -1
  57. package/dist/types-ts4.5/entry-points/callback-context.d.ts +0 -1
  58. package/dist/types-ts4.5/entry-points/create-field.d.ts +0 -1
  59. package/dist/types-ts4.5/entry-points/create-form.d.ts +0 -2
  60. package/dist/types-ts4.5/entry-points/exit-warning-modal.d.ts +0 -1
  61. package/dist/types-ts4.5/entry-points/final-form.d.ts +0 -1
  62. package/dist/types-ts4.5/entry-points/form-loader.d.ts +0 -1
  63. package/dist/types-ts4.5/entry-points/form-spy.d.ts +0 -1
  64. package/dist/types-ts4.5/entry-points/icons.d.ts +0 -1
  65. package/dist/types-ts4.5/entry-points/inline-create.d.ts +0 -1
  66. package/dist/types-ts4.5/entry-points/modal-create.d.ts +0 -1
  67. package/dist/types-ts4.5/entry-points/select.d.ts +0 -2
  68. package/dist/types-ts4.5/entry-points/text-field.d.ts +0 -1
  69. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  70. package/dist/types-ts4.5/entry-points/user-picker.d.ts +0 -1
  71. package/dist/types-ts4.5/i18n/cs.d.ts +0 -23
  72. package/dist/types-ts4.5/i18n/da.d.ts +0 -23
  73. package/dist/types-ts4.5/i18n/de.d.ts +0 -23
  74. package/dist/types-ts4.5/i18n/en.d.ts +0 -23
  75. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -23
  76. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -23
  77. package/dist/types-ts4.5/i18n/es.d.ts +0 -23
  78. package/dist/types-ts4.5/i18n/fi.d.ts +0 -23
  79. package/dist/types-ts4.5/i18n/fr.d.ts +0 -23
  80. package/dist/types-ts4.5/i18n/hr.d.ts +0 -23
  81. package/dist/types-ts4.5/i18n/hu.d.ts +0 -23
  82. package/dist/types-ts4.5/i18n/it.d.ts +0 -23
  83. package/dist/types-ts4.5/i18n/ja.d.ts +0 -23
  84. package/dist/types-ts4.5/i18n/ko.d.ts +0 -23
  85. package/dist/types-ts4.5/i18n/nb.d.ts +0 -23
  86. package/dist/types-ts4.5/i18n/nl.d.ts +0 -23
  87. package/dist/types-ts4.5/i18n/pl.d.ts +0 -23
  88. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -23
  89. package/dist/types-ts4.5/i18n/ru.d.ts +0 -23
  90. package/dist/types-ts4.5/i18n/sk.d.ts +0 -23
  91. package/dist/types-ts4.5/i18n/sl.d.ts +0 -23
  92. package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -23
  93. package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -23
  94. package/dist/types-ts4.5/i18n/sv.d.ts +0 -23
  95. package/dist/types-ts4.5/i18n/th.d.ts +0 -23
  96. package/dist/types-ts4.5/i18n/tr.d.ts +0 -23
  97. package/dist/types-ts4.5/i18n/uk.d.ts +0 -23
  98. package/dist/types-ts4.5/i18n/vi.d.ts +0 -23
  99. package/dist/types-ts4.5/i18n/zh.d.ts +0 -23
  100. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -23
  101. package/dist/types-ts4.5/index.d.ts +0 -35
  102. package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +0 -10
  103. package/dist/types-ts4.5/ui/create-form/async-select/types.d.ts +0 -23
  104. package/dist/types-ts4.5/ui/create-form/form-footer/edit-button/index.d.ts +0 -2
  105. package/dist/types-ts4.5/ui/create-form/form-footer/edit-button/messages.d.ts +0 -7
  106. package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +0 -11
  107. package/dist/types-ts4.5/ui/create-form/form-footer/messages.d.ts +0 -12
  108. package/dist/types-ts4.5/ui/create-form/form-footer/submit-button/index.d.ts +0 -2
  109. package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +0 -6
  110. package/dist/types-ts4.5/ui/create-form/form-spy/index.d.ts +0 -12
  111. package/dist/types-ts4.5/ui/create-form/main.d.ts +0 -55
  112. package/dist/types-ts4.5/ui/create-form/select/main.d.ts +0 -19
  113. package/dist/types-ts4.5/ui/create-form/select/messages.d.ts +0 -7
  114. package/dist/types-ts4.5/ui/create-form/select/types.d.ts +0 -27
  115. package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +0 -9
  116. package/dist/types-ts4.5/ui/create-form/textfield/types.d.ts +0 -14
  117. package/dist/types-ts4.5/ui/create-form/types.d.ts +0 -6
  118. package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +0 -6
  119. package/dist/types-ts4.5/ui/create-form/user-picker/types.d.ts +0 -23
  120. package/dist/types-ts4.5/ui/create-form/utils/index.d.ts +0 -13
  121. package/dist/types-ts4.5/ui/inline-create/index.d.ts +0 -4
  122. package/dist/types-ts4.5/ui/inline-create/inline-analytics/index.d.ts +0 -9
  123. package/dist/types-ts4.5/ui/inline-create/main.d.ts +0 -4
  124. package/dist/types-ts4.5/ui/modal-create/index.d.ts +0 -4
  125. package/dist/types-ts4.5/ui/modal-create/main.d.ts +0 -4
  126. package/dist/types-ts4.5/ui/modal-create/messages.d.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 5.3.3
4
30
 
5
31
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/async-select.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/async-select.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/async-select.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/callback-context.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/callback-context.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/callback-context.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/create-field.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/create-field.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/create-field.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/create-form.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/create-form.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/create-form.d.ts"
17
10
  }
@@ -16,7 +16,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
16
16
  var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
17
17
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-create" || '',
19
- packageVersion: "5.3.2" || '',
19
+ packageVersion: "5.3.3" || '',
20
20
  component: COMPONENT_NAME,
21
21
  componentName: COMPONENT_NAME
22
22
  };
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
10
10
  export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
11
11
  export const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/link-create" || '',
13
- packageVersion: "5.3.2" || '',
13
+ packageVersion: "5.3.3" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
10
10
  export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
11
11
  export var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/link-create" || '',
13
- packageVersion: "5.3.2" || '',
13
+ packageVersion: "5.3.3" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -1 +1 @@
1
- export { LinkCreateCallbackProvider, useLinkCreateCallback } from '../controllers/callback-context/main';
1
+ export { LinkCreateCallbackProvider, useLinkCreateCallback, } from '../controllers/callback-context/main';
@@ -22,7 +22,7 @@ export { UserPicker } from './ui/create-form/user-picker/main';
22
22
  /** @deprecated Use @atlaskit/link-create/modal-create */
23
23
  export { default } from './ui/modal-create';
24
24
  /** @deprecated Use @atlaskit/link-create/callback-context */
25
- export { LinkCreateCallbackProvider, useLinkCreateCallback } from './controllers/callback-context/main';
25
+ export { LinkCreateCallbackProvider, useLinkCreateCallback, } from './controllers/callback-context/main';
26
26
  /** @deprecated Use @atlaskit/link-create/exit-warning-modal */
27
27
  export { ExitWarningModalProvider as LinkCreateExitWarningProvider, useWithExitWarning, } from './controllers/exit-warning-modal-context';
28
28
  /** @deprecated Use @atlaskit/link-create/types */
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/exit-warning-modal.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/exit-warning-modal.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/exit-warning-modal.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/final-form.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/final-form.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/final-form.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/form-loader.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/form-loader.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/form-loader.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/form-spy.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/form-spy.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/form-spy.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/icons.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/icons.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/icons.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/inline-create.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/inline-create.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/inline-create.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/modal-create.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/modal-create.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/modal-create.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "5.3.3",
3
+ "version": "6.0.0",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,41 +26,33 @@
26
26
  "module": "dist/esm/index.js",
27
27
  "module:es2019": "dist/es2019/index.js",
28
28
  "types": "dist/types/index.d.ts",
29
- "typesVersions": {
30
- ">=4.5 <4.9": {
31
- "*": [
32
- "dist/types-ts4.5/*",
33
- "dist/types-ts4.5/index.d.ts"
34
- ]
35
- }
36
- },
37
29
  "sideEffects": [
38
30
  "**/*.compiled.css"
39
31
  ],
40
32
  "atlaskit:src": "src/index.ts",
41
33
  "dependencies": {
42
34
  "@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.7.0",
43
- "@atlaskit/analytics-next": "^11.3.0",
44
- "@atlaskit/atlassian-context": "^0.11.0",
45
- "@atlaskit/button": "^23.11.0",
46
- "@atlaskit/css": "^0.19.0",
47
- "@atlaskit/empty-state": "^10.2.0",
48
- "@atlaskit/form": "^15.5.0",
49
- "@atlaskit/icon": "^35.4.0",
50
- "@atlaskit/icon-file-type": "^7.0.0",
51
- "@atlaskit/intl-messages-provider": "^3.3.0",
52
- "@atlaskit/link": "^3.4.0",
53
- "@atlaskit/linking-common": "^9.13.0",
54
- "@atlaskit/modal-dialog": "^15.2.0",
55
- "@atlaskit/object": "^1.0.0",
56
- "@atlaskit/platform-feature-flags": "^1.1.0",
57
- "@atlaskit/primitives": "^19.0.0",
58
- "@atlaskit/select": "^21.12.0",
59
- "@atlaskit/smart-user-picker": "^10.2.0",
60
- "@atlaskit/spinner": "^19.1.0",
61
- "@atlaskit/textfield": "^8.3.0",
62
- "@atlaskit/theme": "^25.0.0",
63
- "@atlaskit/tokens": "^13.3.0",
35
+ "@atlaskit/analytics-next": "^12.0.0",
36
+ "@atlaskit/atlassian-context": "^1.0.0",
37
+ "@atlaskit/button": "^24.0.0",
38
+ "@atlaskit/css": "^1.0.0",
39
+ "@atlaskit/empty-state": "^11.0.0",
40
+ "@atlaskit/form": "^16.0.0",
41
+ "@atlaskit/icon": "^36.0.0",
42
+ "@atlaskit/icon-file-type": "^8.0.0",
43
+ "@atlaskit/intl-messages-provider": "^4.0.0",
44
+ "@atlaskit/link": "^4.0.0",
45
+ "@atlaskit/linking-common": "^10.0.0",
46
+ "@atlaskit/modal-dialog": "^16.0.0",
47
+ "@atlaskit/object": "^2.0.0",
48
+ "@atlaskit/platform-feature-flags": "^2.0.0",
49
+ "@atlaskit/primitives": "^20.0.0",
50
+ "@atlaskit/select": "^22.0.0",
51
+ "@atlaskit/smart-user-picker": "^11.0.0",
52
+ "@atlaskit/spinner": "^20.0.0",
53
+ "@atlaskit/textfield": "^9.0.0",
54
+ "@atlaskit/theme": "^26.0.0",
55
+ "@atlaskit/tokens": "^14.0.0",
64
56
  "@babel/runtime": "^7.0.0",
65
57
  "@compiled/react": "^0.20.0",
66
58
  "debounce-promise": "^3.1.2",
@@ -75,9 +67,9 @@
75
67
  "@af/accessibility-testing": "workspace:^",
76
68
  "@af/integration-testing": "workspace:^",
77
69
  "@af/visual-regression": "workspace:^",
78
- "@atlaskit/drawer": "^12.1.0",
79
- "@atlaskit/link-test-helpers": "^10.4.0",
80
- "@atlaskit/popup": "^4.24.0",
70
+ "@atlaskit/drawer": "^13.0.0",
71
+ "@atlaskit/link-test-helpers": "^11.0.0",
72
+ "@atlaskit/popup": "^5.0.0",
81
73
  "@atlassian/a11y-jest-testing": "^0.12.0",
82
74
  "@atlassian/feature-flags-test-utils": "^1.1.0",
83
75
  "@atlassian/react-compiler-gating": "workspace:^",
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/select.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/select.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/select.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/text-field.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/text-field.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/text-field.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/user-picker.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/user-picker.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/user-picker.d.ts"
17
10
  }
@@ -1,12 +0,0 @@
1
- import type { PackageMetaDataType } from './utils/analytics/analytics.codegen';
2
- export declare const ANALYTICS_CHANNEL = "media";
3
- export declare const COMPONENT_NAME = "linkCreate";
4
- export declare const SCREEN_ID = "linkCreateScreen";
5
- export declare const DEFAULT_TEST_ID = "link-create";
6
- export declare const CREATE_FORM_MAX_WIDTH_IN_PX = "480";
7
- /**
8
- * @deprecated Remove on FF clean up platform_bandicoots-link-create-css
9
- */
10
- export declare const CREATE_FORM_MIN_HEIGHT_IN_PX = "200";
11
- export declare const LINK_CREATE_FORM_POST_CREATE_FIELD = "__post_create__";
12
- export declare const PACKAGE_DATA: PackageMetaDataType;
@@ -1,7 +0,0 @@
1
- type MessageKeys = 'genericErrorMessage' | 'requiredFieldInstruction';
2
- declare const message: Record<MessageKeys, {
3
- id: string;
4
- defaultMessage: string;
5
- description?: string;
6
- }>;
7
- export default message;
@@ -1,152 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type ModalDialogProps } from '@atlaskit/modal-dialog';
3
- /** Map of field names to a list of validators for that field */
4
- export type ValidatorMap = Record<string, Validator[]>;
5
- export type Validator = {
6
- /** Return true when the given input is valid */
7
- isValid: (val: unknown) => boolean;
8
- /** An error message is used to tell a user that the field input is invalid. For example, an error message could be 'Invalid username, needs to be more than 4 characters'. */
9
- errorMessage: string;
10
- };
11
- export interface Group {
12
- /**
13
- * A label to display for the Group
14
- */
15
- label: string;
16
- /**
17
- * An icon to display for the Group
18
- */
19
- icon: string;
20
- /**
21
- * A unique key for the Group
22
- */
23
- key: string;
24
- }
25
- export type EditViewProps = {
26
- /**
27
- * The payload returned from the create function
28
- */
29
- payload: CreatePayload;
30
- /**
31
- * Function for the plugin to call when it signals to be closed
32
- */
33
- onClose: () => void;
34
- };
35
- export interface LinkCreatePlugin<Key = string> {
36
- /**
37
- * The Group that this plugin entity belongs to
38
- */
39
- group: Group;
40
- /**
41
- * A label to display for the plugin entity
42
- */
43
- label: string;
44
- /**
45
- * An icon to display for the plugin entity
46
- */
47
- icon: string;
48
- /**
49
- * A unique key for the plugin entity
50
- */
51
- key: Key;
52
- /**
53
- * A renderer function to render the form
54
- */
55
- form: ReactNode;
56
- /**
57
- * The post create edit view to be rendered after edit button is clicked.
58
- */
59
- editView?: ({ payload, onClose }: EditViewProps) => JSX.Element;
60
- }
61
- /** The object that is returned on successful callback of create function*/
62
- export type CreatePayload = {
63
- /** The url to the resource created by the create plugin */
64
- url: string;
65
- /** The url to be opened on create if this is different from `url` created*/
66
- linkToOpen?: string;
67
- /**
68
- * ARI of the created resource.
69
- * https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/
70
- *
71
- * It should be returned but it's not required to be on the Jira side:
72
- * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/browse/src/packages/issue-create/issue-create-embed/src/ui/index.tsx
73
- * https://stash.atlassian.com/projects/JIRACLOUD/repos/jira-frontend/pull-requests/103587/overview?commentId=5778323
74
- */
75
- ari?: string | undefined;
76
- /** The object identifier for the resource created by the create plugin (for analytics) */
77
- objectId: string;
78
- /** The type of object created (for analytics) */
79
- objectType: string;
80
- /** The raw object returned from the create plugin */
81
- data?: Record<string, unknown>;
82
- };
83
- export interface LinkCreateProps {
84
- /**
85
- * A `testId` prop is provided for specified elements, which is a unique
86
- * string that appears as a data attribute `data-testid` in the rendered code,
87
- * serving as a hook for automated tests */
88
- testId?: string;
89
- plugins: LinkCreatePlugin[];
90
- /**
91
- * The initial group key for create. If this is provided, it will jump
92
- * directly to the entity selection screen
93
- */
94
- groupKey?: string;
95
- /**
96
- * The initial entity name for create. If this is provided, it will jump
97
- * directly to the entity creation form.
98
- * Note: it will be non-optional for now and can move to optional when we have
99
- * the meta creation flow built.
100
- */
101
- entityKey: string;
102
- /**
103
- * This callback for when the resource has been successfully created.
104
- */
105
- onCreate?: (payload: CreatePayload) => Promise<void> | void;
106
- /**
107
- * This callback for when the LinkCreate experience has successfully been completed.
108
- * Note: this callback is one of the requirements to enable the LinkCreate
109
- * post-create edit functionality
110
- */
111
- onComplete?: () => void;
112
- /**
113
- * This callback for any errors
114
- */
115
- onFailure?: (error: unknown) => void;
116
- /**
117
- * This callback for when the form was manually discarded by user
118
- */
119
- onCancel?: () => void;
120
- /**
121
- * This value tells where the linkCreate was triggered from. And it's for
122
- * analytic purpose only.
123
- * Default: unknown
124
- */
125
- triggeredFrom?: string;
126
- }
127
- export interface LinkCreateWithModalProps extends LinkCreateProps {
128
- /**
129
- * This value controls whether the Create Modal should be active or hidden
130
- * Default: false
131
- */
132
- active?: boolean;
133
- /**
134
- * A title for the LinkCreate with Modal component
135
- * Default: Create new
136
- */
137
- modalTitle?: string;
138
- /**
139
- * A ReactNode to be displayed in the modal hero section
140
- */
141
- modalHero?: ReactNode;
142
- /**
143
- * Callback function called when the final link create experience dialog has finished closing.
144
- * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onCloseComplete}
145
- */
146
- onCloseComplete?: ModalDialogProps['onCloseComplete'];
147
- /**
148
- * Callback function called when the link create experience dialog has finished opening.
149
- * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onOpenComplete}
150
- */
151
- onOpenComplete?: ModalDialogProps['onOpenComplete'];
152
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import AkButton from '@atlaskit/button/new';
3
- import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
4
- type ButtonProps = React.ComponentProps<typeof AkButton> & {
5
- actionSubjectId: keyof {
6
- [Key in keyof AnalyticsEventAttributes as Key extends `ui.button.clicked.${infer ActionSubjectId}` ? ActionSubjectId : never]: any;
7
- };
8
- };
9
- export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, 'ref'> & React.RefAttributes<HTMLButtonElement>>;
10
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import ModalDialog from '@atlaskit/modal-dialog';
3
- import { type AnalyticsEventAttributes } from '../../utils/analytics/analytics.codegen';
4
- type ModalProps = React.ComponentProps<typeof ModalDialog> & {
5
- screen: keyof {
6
- [Key in keyof AnalyticsEventAttributes as Key extends `screen.${infer ScreenName}.viewed` ? ScreenName : never]: any;
7
- };
8
- };
9
- /**
10
- * AkModal component with built-in analytics for screen event + open + close events + source context
11
- */
12
- export declare const Modal: ({ screen, children, ...props }: ModalProps) => React.JSX.Element;
13
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export type ConfirmDismissDialogProps = {
3
- active: boolean;
4
- onClose: () => void;
5
- onCancel?: () => void;
6
- };
7
- export declare const ConfirmDismissDialog: ({ active, onClose, onCancel, }: ConfirmDismissDialogProps) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- type MessageKeys = 'title' | 'cancelButtonLabel' | 'confirmButtonLabel' | 'description';
2
- declare const message: Record<MessageKeys, {
3
- id: string;
4
- defaultMessage: string;
5
- description?: string;
6
- }>;
7
- export default message;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { type CreatePayload, type LinkCreatePlugin } from '../../types';
3
- import { Modal } from '../ModalDialog';
4
- type EditModalProps = {
5
- onClose: () => void;
6
- onCloseComplete?: React.ComponentProps<typeof Modal>['onCloseComplete'];
7
- editViewPayload?: CreatePayload;
8
- activePlugin?: LinkCreatePlugin<string> | null;
9
- };
10
- export declare const EditModal: ({ onClose, onCloseComplete, editViewPayload, activePlugin, }: EditModalProps) => React.JSX.Element;
11
- export {};
@@ -1,18 +0,0 @@
1
- import { Component, type ErrorInfo, type ReactNode } from 'react';
2
- export type ErrorBoundaryErrorInfo = {
3
- componentStack: string;
4
- };
5
- type BaseErrorBoundaryState = {
6
- hasError: boolean;
7
- };
8
- interface BaseErrorBoundaryProps {
9
- children: ReactNode;
10
- errorComponent?: JSX.Element;
11
- onError?: (error: Error, info?: ErrorInfo) => void;
12
- }
13
- export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
14
- constructor(props: BaseErrorBoundaryProps);
15
- componentDidCatch(error: Error, info?: ErrorInfo): void;
16
- render(): string | number | boolean | Iterable<ReactNode> | JSX.Element | null | undefined;
17
- }
18
- export {};
@@ -1,6 +0,0 @@
1
- import React, { type PropsWithChildren } from 'react';
2
- type ErrorBoundaryProps = PropsWithChildren<{
3
- errorComponent?: JSX.Element;
4
- }>;
5
- export declare const ErrorBoundary: ({ children, errorComponent, }: ErrorBoundaryProps) => React.JSX.Element;
6
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * ErrorBoundaryModal props are the same as those passed to LinkCreate, which
3
- * are used to control its active state
4
- */
5
- type ErrorBoundaryModalProps = {
6
- active?: boolean;
7
- onClose?: () => void;
8
- };
9
- export declare const ErrorBoundaryModal: ({ active, onClose }: ErrorBoundaryModalProps) => JSX.Element;
10
- export {};