@atlaskit/editor-common 82.13.0 → 83.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 (183) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/afm-jira/tsconfig.json +150 -0
  3. package/dist/cjs/hooks/useSharedPluginState.js +1 -4
  4. package/dist/cjs/i18n/cs.js +2 -1
  5. package/dist/cjs/i18n/da.js +2 -1
  6. package/dist/cjs/i18n/de.js +2 -1
  7. package/dist/cjs/i18n/en.js +1 -0
  8. package/dist/cjs/i18n/en_GB.js +1 -0
  9. package/dist/cjs/i18n/en_ZZ.js +1 -0
  10. package/dist/cjs/i18n/es.js +2 -1
  11. package/dist/cjs/i18n/fi.js +2 -1
  12. package/dist/cjs/i18n/fr.js +2 -1
  13. package/dist/cjs/i18n/hu.js +2 -1
  14. package/dist/cjs/i18n/it.js +2 -1
  15. package/dist/cjs/i18n/ja.js +2 -1
  16. package/dist/cjs/i18n/ko.js +2 -1
  17. package/dist/cjs/i18n/nb.js +2 -1
  18. package/dist/cjs/i18n/nl.js +2 -1
  19. package/dist/cjs/i18n/pl.js +2 -1
  20. package/dist/cjs/i18n/pt_BR.js +2 -1
  21. package/dist/cjs/i18n/ru.js +2 -1
  22. package/dist/cjs/i18n/sv.js +2 -1
  23. package/dist/cjs/i18n/th.js +7 -3
  24. package/dist/cjs/i18n/tr.js +4 -3
  25. package/dist/cjs/i18n/uk.js +2 -1
  26. package/dist/cjs/i18n/vi.js +2 -1
  27. package/dist/cjs/i18n/zh.js +3 -2
  28. package/dist/cjs/i18n/zh_TW.js +2 -1
  29. package/dist/cjs/monitoring/error.js +1 -1
  30. package/dist/cjs/preset/builder.js +491 -0
  31. package/dist/cjs/styles/shared/annotation.js +20 -18
  32. package/dist/cjs/types/index.js +6 -1
  33. package/dist/cjs/ui/DropList/index.js +1 -1
  34. package/dist/cjs/ui/Mention/mention-with-profilecard.js +3 -1
  35. package/dist/es2019/hooks/useSharedPluginState.js +1 -6
  36. package/dist/es2019/i18n/cs.js +2 -1
  37. package/dist/es2019/i18n/da.js +2 -1
  38. package/dist/es2019/i18n/de.js +2 -1
  39. package/dist/es2019/i18n/en.js +1 -0
  40. package/dist/es2019/i18n/en_GB.js +1 -0
  41. package/dist/es2019/i18n/en_ZZ.js +1 -0
  42. package/dist/es2019/i18n/es.js +2 -1
  43. package/dist/es2019/i18n/fi.js +2 -1
  44. package/dist/es2019/i18n/fr.js +2 -1
  45. package/dist/es2019/i18n/hu.js +2 -1
  46. package/dist/es2019/i18n/it.js +2 -1
  47. package/dist/es2019/i18n/ja.js +2 -1
  48. package/dist/es2019/i18n/ko.js +2 -1
  49. package/dist/es2019/i18n/nb.js +2 -1
  50. package/dist/es2019/i18n/nl.js +2 -1
  51. package/dist/es2019/i18n/pl.js +2 -1
  52. package/dist/es2019/i18n/pt_BR.js +2 -1
  53. package/dist/es2019/i18n/ru.js +2 -1
  54. package/dist/es2019/i18n/sv.js +2 -1
  55. package/dist/es2019/i18n/th.js +7 -3
  56. package/dist/es2019/i18n/tr.js +4 -3
  57. package/dist/es2019/i18n/uk.js +2 -1
  58. package/dist/es2019/i18n/vi.js +2 -1
  59. package/dist/es2019/i18n/zh.js +3 -2
  60. package/dist/es2019/i18n/zh_TW.js +2 -1
  61. package/dist/es2019/monitoring/error.js +1 -1
  62. package/dist/es2019/preset/builder.js +528 -0
  63. package/dist/es2019/preset/core-plugin/index.js +1 -0
  64. package/dist/es2019/styles/shared/annotation.js +54 -29
  65. package/dist/es2019/types/index.js +9 -1
  66. package/dist/es2019/ui/DropList/index.js +1 -1
  67. package/dist/es2019/ui/Mention/mention-with-profilecard.js +2 -0
  68. package/dist/esm/hooks/useSharedPluginState.js +1 -4
  69. package/dist/esm/i18n/cs.js +2 -1
  70. package/dist/esm/i18n/da.js +2 -1
  71. package/dist/esm/i18n/de.js +2 -1
  72. package/dist/esm/i18n/en.js +1 -0
  73. package/dist/esm/i18n/en_GB.js +1 -0
  74. package/dist/esm/i18n/en_ZZ.js +1 -0
  75. package/dist/esm/i18n/es.js +2 -1
  76. package/dist/esm/i18n/fi.js +2 -1
  77. package/dist/esm/i18n/fr.js +2 -1
  78. package/dist/esm/i18n/hu.js +2 -1
  79. package/dist/esm/i18n/it.js +2 -1
  80. package/dist/esm/i18n/ja.js +2 -1
  81. package/dist/esm/i18n/ko.js +2 -1
  82. package/dist/esm/i18n/nb.js +2 -1
  83. package/dist/esm/i18n/nl.js +2 -1
  84. package/dist/esm/i18n/pl.js +2 -1
  85. package/dist/esm/i18n/pt_BR.js +2 -1
  86. package/dist/esm/i18n/ru.js +2 -1
  87. package/dist/esm/i18n/sv.js +2 -1
  88. package/dist/esm/i18n/th.js +7 -3
  89. package/dist/esm/i18n/tr.js +4 -3
  90. package/dist/esm/i18n/uk.js +2 -1
  91. package/dist/esm/i18n/vi.js +2 -1
  92. package/dist/esm/i18n/zh.js +3 -2
  93. package/dist/esm/i18n/zh_TW.js +2 -1
  94. package/dist/esm/monitoring/error.js +1 -1
  95. package/dist/esm/preset/builder.js +528 -0
  96. package/dist/esm/preset/core-plugin/index.js +1 -0
  97. package/dist/esm/styles/shared/annotation.js +20 -18
  98. package/dist/esm/types/index.js +9 -1
  99. package/dist/esm/ui/DropList/index.js +1 -1
  100. package/dist/esm/ui/Mention/mention-with-profilecard.js +3 -1
  101. package/dist/types/hooks/useSharedPluginState.d.ts +5 -5
  102. package/dist/types/i18n/cs.d.ts +1 -0
  103. package/dist/types/i18n/da.d.ts +1 -0
  104. package/dist/types/i18n/de.d.ts +1 -0
  105. package/dist/types/i18n/en.d.ts +1 -0
  106. package/dist/types/i18n/en_GB.d.ts +1 -0
  107. package/dist/types/i18n/en_ZZ.d.ts +1 -0
  108. package/dist/types/i18n/es.d.ts +1 -0
  109. package/dist/types/i18n/fi.d.ts +1 -0
  110. package/dist/types/i18n/fr.d.ts +1 -0
  111. package/dist/types/i18n/hu.d.ts +1 -0
  112. package/dist/types/i18n/it.d.ts +1 -0
  113. package/dist/types/i18n/ja.d.ts +1 -0
  114. package/dist/types/i18n/ko.d.ts +1 -0
  115. package/dist/types/i18n/nb.d.ts +1 -0
  116. package/dist/types/i18n/nl.d.ts +1 -0
  117. package/dist/types/i18n/pl.d.ts +1 -0
  118. package/dist/types/i18n/pt_BR.d.ts +1 -0
  119. package/dist/types/i18n/ru.d.ts +1 -0
  120. package/dist/types/i18n/sv.d.ts +1 -0
  121. package/dist/types/i18n/th.d.ts +4 -0
  122. package/dist/types/i18n/tr.d.ts +1 -0
  123. package/dist/types/i18n/uk.d.ts +1 -0
  124. package/dist/types/i18n/vi.d.ts +1 -0
  125. package/dist/types/i18n/zh.d.ts +1 -0
  126. package/dist/types/i18n/zh_TW.d.ts +1 -0
  127. package/dist/types/portal/PortalManager.d.ts +3 -3
  128. package/dist/types/preset/builder.d.ts +550 -11
  129. package/dist/types/preset/core-plugin/index.d.ts +1 -1
  130. package/dist/types/preset/core-plugin/requestDocument.d.ts +1 -2
  131. package/dist/types/preset/index.d.ts +1 -0
  132. package/dist/types/preset/plugin-injection-api.d.ts +9 -3
  133. package/dist/types/styles/shared/annotation.d.ts +17 -0
  134. package/dist/types/types/index.d.ts +8 -7
  135. package/dist/types/types/next-editor-plugin.d.ts +641 -98
  136. package/dist/types/ui/Mention/mention-with-profilecard.d.ts +2 -1
  137. package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +5 -5
  138. package/dist/types-ts4.5/i18n/cs.d.ts +1 -0
  139. package/dist/types-ts4.5/i18n/da.d.ts +1 -0
  140. package/dist/types-ts4.5/i18n/de.d.ts +1 -0
  141. package/dist/types-ts4.5/i18n/en.d.ts +1 -0
  142. package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -0
  143. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -0
  144. package/dist/types-ts4.5/i18n/es.d.ts +1 -0
  145. package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
  146. package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
  147. package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
  148. package/dist/types-ts4.5/i18n/it.d.ts +1 -0
  149. package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
  150. package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
  151. package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
  152. package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
  153. package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
  154. package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
  155. package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
  156. package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
  157. package/dist/types-ts4.5/i18n/th.d.ts +4 -0
  158. package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
  159. package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
  160. package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
  161. package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
  162. package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
  163. package/dist/types-ts4.5/portal/PortalManager.d.ts +3 -3
  164. package/dist/types-ts4.5/preset/builder.d.ts +577 -13
  165. package/dist/types-ts4.5/preset/core-plugin/index.d.ts +1 -1
  166. package/dist/types-ts4.5/preset/core-plugin/requestDocument.d.ts +1 -2
  167. package/dist/types-ts4.5/preset/index.d.ts +1 -0
  168. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +9 -8
  169. package/dist/types-ts4.5/styles/shared/annotation.d.ts +17 -0
  170. package/dist/types-ts4.5/types/index.d.ts +8 -7
  171. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +673 -127
  172. package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +2 -1
  173. package/package.json +4 -4
  174. package/dist/cjs/preset/core-plugin/types.js +0 -5
  175. package/dist/cjs/types/editor-public-api.js +0 -5
  176. package/dist/es2019/preset/core-plugin/types.js +0 -1
  177. package/dist/es2019/types/editor-public-api.js +0 -1
  178. package/dist/esm/preset/core-plugin/types.js +0 -1
  179. package/dist/esm/types/editor-public-api.js +0 -1
  180. package/dist/types/preset/core-plugin/types.d.ts +0 -59
  181. package/dist/types/types/editor-public-api.d.ts +0 -3
  182. package/dist/types-ts4.5/preset/core-plugin/types.d.ts +0 -59
  183. package/dist/types-ts4.5/types/editor-public-api.d.ts +0 -4
@@ -234,6 +234,7 @@ var _default = exports.default = {
234
234
  'fabric.editor.help.description': 'Duyệt qua tất cả các phím tắt trên bàn phím và các tùy chọn đánh dấu',
235
235
  'fabric.editor.helpDialogTips': 'Nhấn {keyMap} để mở nhanh hộp thoại này bất kỳ lúc nào',
236
236
  'fabric.editor.highlight': 'Làm nổi bật màu',
237
+ 'fabric.editor.highlightColor': 'Bật/tắt bảng màu đánh dấu',
237
238
  'fabric.editor.horizontalRule': 'Trình phân chia',
238
239
  'fabric.editor.horizontalRule.description': 'Chia tách nội dung bằng một đường ngang',
239
240
  'fabric.editor.hyperlink.linkVisibleLabel': 'Dán hoặc tìm kiếm liên kết',
@@ -511,7 +512,7 @@ var _default = exports.default = {
511
512
  'fabric.theme.light-yellow': 'Vàng nhạt',
512
513
  'fabric.theme.lime': 'Vàng chanh',
513
514
  'fabric.theme.magenta': 'Đỏ tươi',
514
- 'fabric.theme.no-color': 'Xóa điểm nổi bật',
515
+ 'fabric.theme.no-color': 'Không đánh dấu',
515
516
  'fabric.theme.orange': 'Cam',
516
517
  'fabric.theme.purple': 'Tím',
517
518
  'fabric.theme.red': 'Đỏ',
@@ -118,7 +118,7 @@ var _default = exports.default = {
118
118
  'fabric.editor.decision': '决定',
119
119
  'fabric.editor.decision.description': '捕获决策,以便轻松跟踪',
120
120
  'fabric.editor.decisionPlaceholder': '添加决定...',
121
- 'fabric.editor.decreaseSize': '减小大小',
121
+ 'fabric.editor.decreaseSize': '缩减表格或媒体大小',
122
122
  'fabric.editor.defaultAltText': '文档',
123
123
  'fabric.editor.description': '描述',
124
124
  'fabric.editor.displayBlock': '显示卡片',
@@ -234,6 +234,7 @@ var _default = exports.default = {
234
234
  'fabric.editor.help.description': '浏览所有键盘快捷键和文本标记选项',
235
235
  'fabric.editor.helpDialogTips': '点击 {keyMap} 可以随时快速打开此对话',
236
236
  'fabric.editor.highlight': '突出显示颜色',
237
+ 'fabric.editor.highlightColor': '切换突出显示颜色调色板',
237
238
  'fabric.editor.horizontalRule': '分隔条',
238
239
  'fabric.editor.horizontalRule.description': '使用水平线分隔内容',
239
240
  'fabric.editor.hyperlink.linkVisibleLabel': '粘贴或搜索链接',
@@ -511,7 +512,7 @@ var _default = exports.default = {
511
512
  'fabric.theme.light-yellow': '浅黄',
512
513
  'fabric.theme.lime': '绿黄',
513
514
  'fabric.theme.magenta': '洋红',
514
- 'fabric.theme.no-color': '消除亮显',
515
+ 'fabric.theme.no-color': '没有突出显示',
515
516
  'fabric.theme.orange': '橙',
516
517
  'fabric.theme.purple': '紫',
517
518
  'fabric.theme.red': '红',
@@ -234,6 +234,7 @@ var _default = exports.default = {
234
234
  'fabric.editor.help.description': '瀏覽所有鍵盤快速鍵和 Markdown 選項',
235
235
  'fabric.editor.helpDialogTips': '您可以隨時按下 {keyMap} 來快速開啟此對話方塊',
236
236
  'fabric.editor.highlight': '醒目提示顏色',
237
+ 'fabric.editor.highlightColor': '切換醒目提示調色盤',
237
238
  'fabric.editor.horizontalRule': '分隔線',
238
239
  'fabric.editor.horizontalRule.description': '使用水平線來區隔內容',
239
240
  'fabric.editor.hyperlink.linkVisibleLabel': '貼上或搜尋連結',
@@ -511,7 +512,7 @@ var _default = exports.default = {
511
512
  'fabric.theme.light-yellow': '淺黃色',
512
513
  'fabric.theme.lime': '檸檬黃',
513
514
  'fabric.theme.magenta': '洋紅色',
514
- 'fabric.theme.no-color': '移除醒目提示',
515
+ 'fabric.theme.no-color': '沒有醒目提示',
515
516
  'fabric.theme.orange': '橘色',
516
517
  'fabric.theme.purple': '紫色',
517
518
  'fabric.theme.red': '紅色',
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "82.13.0";
20
+ var packageVersion = "83.0.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -11,6 +11,494 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
11
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
+ /*********************
15
+ * *
16
+ * BASE TYPES *
17
+ * *
18
+ **********************/
19
+ /**
20
+ * 🧱 Internal Type: Editor FE Platform
21
+ *
22
+ */
23
+ /**
24
+ * 🧱 Internal Type: Editor FE Platform
25
+ *
26
+ */
27
+ /**
28
+ * 🧱 Internal Type: Editor FE Platform
29
+ *
30
+ */
31
+ /****************************************************
32
+ * *
33
+ * METADATA PROPERTIES EXTRACTION TYPES *
34
+ * *
35
+ ****************************************************/
36
+ /**
37
+ * 🧱 Internal Type: Editor FE Platform
38
+ *
39
+ * Extracts the configuration type from a given plugin.
40
+ *
41
+ *
42
+ * @returns The extracted plugin configuration type if applicable, or `never`.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * type DogPlugin = NextEditorPlugin<'dog'>;
47
+ *
48
+ * // it returns never, since Dog has no configuration
49
+ * type MyPluginConfiguration = ExtractPluginConfiguration<MyPlugin>;
50
+ *
51
+ *
52
+ * type CatPlugin = NextEditorPlugin<'cat', { configuration: { color: 'red' | 'blue' } }>;
53
+ *
54
+ * // it returns this type { color: 'red' | 'blue' }
55
+ * type MyPluginConfiguration = ExtractPluginConfiguration<MyPlugin>;
56
+ * ```
57
+ */
58
+ /**
59
+ * 🧱 Internal Type: Editor FE Platform
60
+ *
61
+ * Extracts and filters the plugin dependencies from the plugin metadata, excluding
62
+ * optional dependencies.
63
+ *
64
+ * This type first checks if the `dependencies` property in the given `Metadata` type
65
+ * is an array of `DependencyPlugin`. If true, it applies `FilterOptionalPlugins` to
66
+ * filter out the optional dependencies. If the `dependencies` property does not exist
67
+ * or is not an array of `DependencyPlugin`, the type resolves to an empty array.
68
+ *
69
+ * @returns An array of filtered plugin dependencies or an empty array.
70
+ *
71
+ * @example
72
+ * ```typescript
73
+ * type DogPlugin = NextEditorPlugin<'dog'>;
74
+ * type LoudPlugin = NextEditorPlugin<'loud'>;
75
+ * type BarkMetadata = {dependencies: [
76
+ * OptionalPlugin<LoudPlugin>,
77
+ * DogPlugin,
78
+ * ]}
79
+ * type BarkPlugin = NextEditorPlugin<'bark', BarkMetadata>;
80
+ *
81
+ * // It returns [DogPlugin]
82
+ * type RequiredDependencies = ExtractPluginDependenciesFromMetadataWithoutOptionals<BarkMetadata>;
83
+ *
84
+ * ```
85
+ *
86
+ * You probably wants to use this other type util @see ExtractPluginDependencies
87
+ * since you wouldn't need to infer the Metadata twice
88
+ */
89
+ /**
90
+ * 🧱 Internal Type: Editor FE Platform
91
+ *
92
+ * Extracts the plugin configuration from the given plugin metadata if the
93
+ * `pluginConfiguration` property exists.
94
+ *
95
+ * This type conditionally checks if the `Metadata` type includes a `pluginConfiguration`
96
+ * key. If such a key exists, the type of `pluginConfiguration` is returned. If not,
97
+ * the type resolves to `never`.
98
+ */
99
+ /********************************
100
+ * *
101
+ * TYPE INFER *
102
+ * *
103
+ *********************************/
104
+ /**
105
+ * 🧱 Internal Type: Editor FE Platform
106
+ *
107
+ * Extracts the NextEditorPlugin type from a PresetPuglin,
108
+ * this is useful because the EditorPresetBuilder can accept the plugin in multiple ways:
109
+ *
110
+ * @example
111
+ * ```
112
+ * preset
113
+ * // valid
114
+ * .add([plugin, { myConfiguration }] // Type: [NextEditorPlugin, Configuration]
115
+ *
116
+ * // valid
117
+ * .add([plugin]) // Type: [NextEditorPlugin, Configuration?]
118
+ *
119
+ * // valid
120
+ * .add(plugin) // Type: NextEditorPlugin
121
+ *
122
+ * ```
123
+ *
124
+ * This type conditionally checks if `Plugin` is an array. If it is an array, it then checks if the first element
125
+ * (`MPlugin`) extends `NextEditorPlugin`. But if `Plugin` directly extends `NextEditorPlugin`, it returns the `Plugin`
126
+ * type itself. Otherwise, it resolves to `never`.
127
+ *
128
+ * You probably wants to use this if you need to extract the NextEditorPlugin from a @see PresetPlugin .
129
+ * Since the PresetPlugin is an union between a tuple and a plugin.
130
+ */
131
+ /**
132
+ * 🧱 Internal Type: Editor FE Platform
133
+ *
134
+ * Extracts non-optional plugin dependencies, excluding any optional dependencies, from a given plugin's metadata.
135
+ *
136
+ * We can declare the depencies like this:
137
+ *
138
+ * @example
139
+ * ```typescript
140
+ * NextEditorPlugin<'bark', {
141
+ * dependencies: [DogPlugin, Optional<LoudPlugin>]
142
+ * }>
143
+ *
144
+ * ```
145
+ *
146
+ *
147
+ * This tyope is similar to @see ExtractPluginDependenciesFromMetadataWithoutOptionals
148
+ * but you can use it to extract the non-optional-dependencies from any NextEditorPlugin without infer the metadata
149
+ *
150
+ * @example
151
+ * ```typescript
152
+ * type BarkPlugin = NextEditorPlugin<'bark', {
153
+ * dependencies: [DogPlugin, Optional<LoudPlugin>]
154
+ * }>
155
+ *
156
+ * type PluginDependencies = ExtractPluginDependencies<BarkPlugin>; // Type: [DogPlugin]
157
+ * ```
158
+ */
159
+ /**
160
+ * 🧱 Internal Type: Editor FE Platform
161
+ *
162
+ * Extracts the NextEditorPlugin type from a PluginWithConfiguration.
163
+ *
164
+ *
165
+ * You probably wants to use this if you need to extract the NextEditorPlugin from a @see PresetPlugin .
166
+ * Since the PresetPlugin is an union between a tuple and a plugin.
167
+ */
168
+ /**
169
+ * 🧱 Internal Type: Editor FE Platform
170
+ *
171
+ * Extracts the plugin name from a PresetPlugins.
172
+ *
173
+ * @example
174
+ * ```typescript
175
+ * ExtractPluginNameFromAllBuilderPlugins<NextEditorPlugin<'bark'>> // 'bark'
176
+ *
177
+ * ExtractPluginNameFromAllBuilderPlugins<[NextEditorPlugin<'dog'>, { configuration: {} }> // 'dog'
178
+ *
179
+ * ```
180
+ * Similar to @see ExtractPluginAllBuilderPlugins, this type conditionally checks if `Plugin` is an array. If it is,
181
+ * it attempts to extract the name of the first plugin (`MPlugin`) in the array that extends `NextEditorPlugin` with
182
+ * a name and any metadata. If `Plugin` itself directly extends `NextEditorPlugin`, it extracts the plugin's name.
183
+ * If none of these conditions are met, it resolves to `never`.
184
+ *
185
+ */
186
+ /******************************
187
+ * *
188
+ * MAPPED TUPLES *
189
+ * *
190
+ ******************************/
191
+ /**
192
+ * 🧱 Internal Type: Editor FE Platform
193
+ *
194
+ * Filters out optional plugins from a tuple of dependency plugins.
195
+ *
196
+ *
197
+ * This type is using the Tail Head trick to map a tuple to another one.
198
+ * It does this by conditionally iterating over each element in the tuple: if the head of the tuple (the first element)
199
+ * is an optional plugin, it is excluded from the resulting tuple; otherwise, it is included. This process is repeated
200
+ * for the tail (the remaining elements) of the tuple until all elements have been evaluated.
201
+ *
202
+ */
203
+ /**
204
+ * 🧱 Internal Type: Editor FE Platform
205
+ *
206
+ * One of the main type system for the EditorPresetBuilder.
207
+ *
208
+ * Verifies if a given plugin's dependencies are satisfied within a provided stack of plugins.
209
+ *
210
+ * Usually, the stack of plugins are coming from a generic parameter in the EditorPresetBuilder<PluginNames, PluginStack>.
211
+ *
212
+ * This type checks if the dependencies of the given `Plugin` are included in the provided `PluginsStack`.
213
+ *
214
+ * - If the plugin has no dependencies, it simply returns the plugin itself, (provided it is either a `PluginWithConfiguration` or `NextEditorPlugin`, in case someone tries to add a non-NextEditorPlugin to the Preset)
215
+ *
216
+ * - If the plugin has dependencies, it verifies each dependency against the `PluginsStack` to ensure
217
+ * they are present. This includes checking direct dependencies as well as dependencies hidden inside tuples (by unwrapping
218
+ * them). If all dependencies are satisfied, it returns the plugin; otherwise, it resolves to `never`.
219
+ *
220
+ *
221
+ * @example
222
+ * ```typescript
223
+ * type DogPlugin = NextEditorPlugin<'dog'>;
224
+ * type LoudPlugin = NextEditorPlugin<'loud'>;
225
+ * type BarkPlugin = NextEditorPlugin<'bark', { dependencies: [DogPlugin, LoudPlugin] }>;
226
+ *
227
+ *
228
+ * // When there we are missing dependencies
229
+ * VerifyPluginDependencies<BarkPlugin, [DogPlugin]> // Type: never
230
+ *
231
+ *
232
+ * // When there all dependencies are already added on the stack
233
+ * VerifyPluginDependencies<BarkPlugin, [DogPlugin, LoudPlugin]> // Type: BarkPlugin
234
+ *
235
+ * ```
236
+ */
237
+ /********************************
238
+ * *
239
+ * BETTER ERROR MESSAGE TYPES *
240
+ * *
241
+ *********************************/
242
+ /**
243
+ * 🧱 Internal Type: Editor FE Platform
244
+ *
245
+ * TypeScript doesn't allow custom error messages (yet). So, use this type to force a specific error message to the user.
246
+ *
247
+ * This is useful because in a situation where a Preset has too many plugins, its become really hard to understand what the error message is.
248
+ *
249
+ * Extracts the names of required dependencies for a given plugin, or provides an error message if dependencies are
250
+ * missing, invalid, or if the plugin itself is not a recognized NextEditorPlugin.
251
+ *
252
+ * This type evaluates whether a given `Plugin` has defined dependencies. If dependencies are absent, it returns
253
+ * a message indicating no dependencies were found. If dependencies are present but do not conform to expected types,
254
+ * or if an unspecified issue occurs, appropriate error messages are generated. Valid dependencies result in the
255
+ * extraction of their names; otherwise, an error message specific to the situation is returned.
256
+ *
257
+ * It is used by the @see GetDependencyErrorMessage to group all error messages when a new plugin is being added into a preset.
258
+ */
259
+ /**
260
+ * 🧱 Internal Type: Editor FE Platform
261
+ *
262
+ * Retrieves an error message if any dependency-related issues are detected for a given plugin within a specified
263
+ * plugin stack. This includes missing dependencies or other errors as identified by `ExtractRequiredDependencies`.
264
+ *
265
+ * It attempts to extract required dependencies for the `Plugin` from the `StackPlugins`. If the result is a string,
266
+ * it indicates a missing dependency and constructs an error message accordingly. Otherwise, it directly returns the
267
+ * result from `ExtractRequiredDependencies`, which could be an error message detailing the issue encountered.
268
+ *
269
+ * It is used by the @see SafePresetCheck to make improve the error message
270
+ */
271
+ /**
272
+ * 🧱 Internal Type: Editor FE Platform
273
+ *
274
+ * Filters through an array of dependency plugins, removing any that do not exist in the provided plugins stack.
275
+ *
276
+ * This type recursively checks each plugin dependency against the provided `PluginsStack`. If a dependency is found
277
+ * within the stack, it is included in the result; otherwise, it is excluded. This process helps in identifying
278
+ * missing plugins from a set of required dependencies.
279
+ *
280
+ */
281
+ /*****************************
282
+ * *
283
+ * VALIDATION HELPER TYPES *
284
+ * *
285
+ ******************************/
286
+ /**
287
+ * 🧱 Internal Type: Editor FE Platform
288
+ *
289
+ * Checks for duplicate plugin entries within a stack of plugins. If a duplicate is found, it returns an error message;
290
+ * otherwise, it proceeds without error.
291
+ *
292
+ * This type primarily serves to ensure that each plugin in the plugin stack is unique, preventing issues related to
293
+ * duplicate plugin registration. It also includes a check to accommodate scenarios where strict typing is bypassed.
294
+ *
295
+ * If the plugin is used with other configuration this type will not complain.
296
+ */
297
+ /**
298
+ * 🧱 Internal Type: Editor FE Platform
299
+ *
300
+ * Verifies if a given plugin meets basic requirements to be considered a valid editor plugin.
301
+ *
302
+ * This type checks if the plugin is a function that matches the expected signature for an next editor plugin. If it does,
303
+ * it further checks the plugin's configuration requirements to ensure compatibility and adherence to expected
304
+ * configurations.
305
+ *
306
+ */
307
+ /**
308
+ * 🧱 Internal Type: Editor FE Platform
309
+ *
310
+ * Evaluates whether a plugin's configuration meets the requirements to be used either as a standalone plugin or
311
+ * as part of a plugin-with-configuration tuple.
312
+ *
313
+ * This type assesses the plugin configuration's status—whether it's optional, mandatory, or not present—and determines
314
+ * the valid ways in which the plugin can be registered or used. This is crucial for maintaining backward compatibility
315
+ * and ensuring plugins are correctly configured upon registration into the Preset
316
+ *
317
+ */
318
+ /*****************************
319
+ * *
320
+ * EDITOR API HELPER TYPES *
321
+ * *
322
+ ******************************/
323
+ /**
324
+ * 🧱 Internal Type: Editor FE Platform
325
+ *
326
+ * Extracts the numeric indices as literal types from a tuple.
327
+ *
328
+ * This utility type takes a tuple and produces a union of its numeric indices as literal types. It's useful for
329
+ * iterating over tuples with TypeScript's mapped types, allowing for operations on each tuple element based on its index.
330
+ *
331
+ * It is being used to separate plugins registred with `preset.maybeAdd` and `preset.add`.
332
+ */
333
+ /**
334
+ * 🧱 Internal Type: Editor FE Platform
335
+ *
336
+ * Constructs a plugin api type with optional properties based on the optional plugins from a given tuple of plugins.
337
+ *
338
+ * This type iterates over a tuple of plugins and checks for plugins marked as optional (indicated by the presence
339
+ * of `undefined`). For each optional plugin, it attempts to extract the plugin's name and corresponding
340
+ * `PluginDependenciesAPI` type. The resulting object type has properties with these plugin names as keys and their
341
+ * respective APIs as optional values.
342
+ *
343
+ * @example
344
+ * ```typescript
345
+ * type DogPlugin = NextEditorPlugin<'dog'>;
346
+ * type CatPlugin = NextEditorPlugin<'cat'>;
347
+ *
348
+ *
349
+ * BuildOptionalAPIEntry<[DogPlugin, MaybePlugin<CatPlugin>]> // Type: { cat?: { } }
350
+ *
351
+ * ```
352
+ */
353
+ /**
354
+ * 🧱 Internal Type: Editor FE Platform
355
+ * Generates a plugin api type with properties based on the required plugins from a given tuple of plugins.
356
+ *
357
+ * This type traverses a tuple of plugins, focusing on those not marked as optional. For each required plugin,
358
+ * it extracts the plugin's name to use as a key and determines the corresponding `PluginDependenciesAPI` type
359
+ * for the value. The resulting object type includes these key-value pairs, ensuring that each required plugin
360
+ * has a defined API entry in the object.
361
+ *
362
+ * @example
363
+ * ```typescript
364
+ * type DogPlugin = NextEditorPlugin<'dog'>;
365
+ * type CatPlugin = NextEditorPlugin<'cat'>;
366
+ *
367
+ *
368
+ * BuildOptionalAPIEntry<[DogPlugin, MaybePlugin<CatPlugin>]> // Type: { dog?: { } }
369
+ *
370
+ * ```
371
+ */
372
+ /**
373
+ * 🧱 Internal Type: Editor FE Platform
374
+ *
375
+ * Forces the expansion (simplification/normalization) of conditional and mapped types.
376
+ * This can be particularly useful for making the types more readable and manageable in
377
+ * environments like IntelliSense or when generating type documentation.
378
+ *
379
+ * More info {@link https://github.com/microsoft/TypeScript/issues/47980 TypeScript/issues/47980}
380
+ */
381
+ /*************************
382
+ * *
383
+ * PUBLIC TYPES *
384
+ * *
385
+ *************************/
386
+ /**
387
+ * 🧱 Internal Type: Editor FE Platform
388
+ *
389
+ * Represents a utility type that wraps a string type in a tuple, often used to denote
390
+ * plugin names that might be optionally included or excluded in certain contexts within
391
+ * the editor preset builder.
392
+ */
393
+ /**
394
+ * 🧱 Internal Type: Editor FE Platform
395
+ *
396
+ * A union type that represents a plugin which could either be a standalone `NextEditorPlugin`
397
+ * or a `PluginWithConfiguration` that bundles a plugin with its specific configuration.
398
+ *
399
+ * This type is fundamental in managing plugins within presets, allowing for flexible plugin
400
+ * registration that accommodates plugins with or without explicit configurations.
401
+ */
402
+ /**
403
+ * 🧱 Internal Type: Editor FE Platform
404
+ *
405
+ * A union type that aggregates all possible plugin name representations within the editor preset builder,
406
+ * including simple strings for direct plugin names and wrapped strings in tuples when a plugin is registred with `maybeAdd`.
407
+ *
408
+ */
409
+ /**
410
+ * 🧱 Internal Type: Editor FE Platform
411
+ *
412
+ * Represents all possible types of plugins that can be included within an editor preset.
413
+ * This includes both `PresetPlugin` types and `MaybePlugin` types, accommodating a wide range
414
+ * of plugin registration scenarios likw:
415
+ *
416
+ * @example
417
+ * ```typescript
418
+ * preset
419
+ * .add([plugin, { myConfiguration }]
420
+ * .add([plugin])
421
+ * .add(plugin)
422
+ * .maybeAdd(plugin, () => true);
423
+ * .maybeAdd([plugin], () => true);
424
+ * .maybeAdd([plugin, { myConfiguration }], () => true);
425
+ *
426
+ * ```
427
+ */
428
+ /**
429
+ * 🧱 Internal Type: Editor FE Platform
430
+ *
431
+ * Performs a series of checks to ensure that a given plugin can be safely added to a preset.
432
+ * This includes verifying the plugin's dependencies, checking for duplicate registrations, and ensuring
433
+ * the plugin meets basic criteria for being considered a valid plugin.
434
+ *
435
+ * @returns The plugin type if all checks pass, or error messages detailing why the plugin cannot be added.
436
+ */
437
+ /**
438
+ * 📢 Public Type API
439
+ *
440
+ * Extracts the complete API surface for a given editor preset, including both core and plugin-specific APIs.
441
+ * This type dynamically assembles the API object based on the included plugins, differentiating between
442
+ * optional and required plugins to accurately reflect the available API calls.
443
+ *
444
+ * @template Preset The editor preset builder instance from which to extract the API.
445
+ * @returns An object type representing the complete API surface for the given preset.
446
+ *
447
+ * @example
448
+ * ```typescript
449
+ * const dogPlugin: NextEditorPlugin<'dog'>;
450
+ * const catPlugin: NextEditorPlugin<'cat'>;
451
+ *
452
+ * const myPreset = new EditorPresetBuilder()
453
+ * .add(dogPlugin)
454
+ * .maybeAdd(catPlugin, () => true)
455
+ *
456
+ * const api: ExtractPresetAPI<typeof myPreset>;
457
+ *
458
+ *
459
+ * // Core is always available
460
+ * api.core.actions
461
+ *
462
+ * // Dog was registred with `add`, so it will always be available
463
+ * api.dog.actions
464
+ *
465
+ * // Cat was registred with `maybeAdd`, so it may not be available on runtime
466
+ * api.cat?.actions
467
+ * ```
468
+ */
469
+ /*************************
470
+ * *
471
+ * PROP TYPES *
472
+ * *
473
+ *************************/
474
+ /**
475
+ * This class is the main way to build an Editor.
476
+ *
477
+ * A Preset is an immutable object, any modification like `.add` or `.maybeAdd`
478
+ * will always result in a new preset instance.
479
+ *
480
+ * ⚠️⚠️⚠️ ATTENTION ⚠️⚠️⚠️
481
+ * For ComposableEditor, a new Preset means a full redraw,
482
+ * it is one of the most expensive operation.
483
+ * Please make sure you aren't recreating this all the time.
484
+ *
485
+ * EditorAPI:
486
+ * In case you need access to the EditorAPI type definition based in the preset you have.
487
+ * Please use the util type exported in this package: @see ExtractPresetAPI<Preset>
488
+ *
489
+ * ```typescript
490
+ * const myPreset = new EditorPresetBuilder()
491
+ * .add(pluginDog)
492
+ * .add(pluginCat);
493
+ *
494
+ *
495
+ * function someFunc(myApi: ExtractPresetAPI<typeof myPreset>) {
496
+ *
497
+ * }
498
+ * ```
499
+ *
500
+ * If your code is inside an EditorPlugin you should be using the @see ExtractInjectionAPI.
501
+ */
14
502
  var EditorPresetBuilder = exports.EditorPresetBuilder = /*#__PURE__*/function () {
15
503
  /**
16
504
  * Returns the editor API when resolved.
@@ -84,6 +572,9 @@ var EditorPresetBuilder = exports.EditorPresetBuilder = /*#__PURE__*/function ()
84
572
  });
85
573
  if (pluginInjectionAPI) {
86
574
  var _this$resolver;
575
+ // The pluginInjectionAPI API doesn't have information enough to build a proper type for the API.
576
+ // It is returning a generic type but on top of the Proxy system
577
+ // So, we can safely recast it here
87
578
  (_this$resolver = this.resolver) === null || _this$resolver === void 0 || _this$resolver.call(this, pluginInjectionAPI.api());
88
579
  }
89
580
  return this.removeExcludedPlugins(editorPlugins, excludePlugins);
@@ -9,7 +9,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _react = require("@emotion/react");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
- var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
+ var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
13
  var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
14
14
  var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
15
15
  focus: "".concat(annotationPrefix, "-focus"),
@@ -27,26 +27,27 @@ var Y200a = 'rgba(255, 196, 0, 0.82)';
27
27
  var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
28
28
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
29
29
  return {
30
- focus: (0, _react.css)({
31
- background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
32
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
33
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"),
30
+ common: {
31
+ borderBottom: '2px solid transparent',
34
32
  cursor: 'pointer',
35
- padding: '1.5px 0',
36
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
37
- '&:has(.card)': {
38
- padding: '4.5px 0 3px 0'
33
+ padding: '1px 0 2px',
34
+ '&:has(.card), &:has([data-inline-card])': {
35
+ paddingTop: '4px',
36
+ border: 'none',
37
+ boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
38
+ },
39
+ '&:has(.date-lozenger-container)': {
40
+ paddingTop: '2px'
39
41
  }
42
+ },
43
+ focus: (0, _react.css)({
44
+ background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
45
+ borderBottomColor: "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"),
46
+ boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")
40
47
  }),
41
48
  blur: (0, _react.css)({
42
49
  background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
43
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
44
- cursor: 'pointer',
45
- padding: '1.5px 0',
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
47
- '&:has(.card)': {
48
- padding: '4.5px 0 3px 0'
49
- }
50
+ borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y200a, ")")
50
51
  })
51
52
  };
52
53
  } else if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes')) {
@@ -100,7 +101,8 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
100
101
  };
101
102
  }
102
103
  };
103
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
104
104
  var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
105
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\t", ";\n\t\t}\n\n\t\t.", " {\n\t\t\t", ";\n\t\t\tcursor: initial;\n\t\t}\n\n\t\t.", " {\n\t\t\t", ";\n\t\t}\n\t}\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
105
+ return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
106
+ (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
107
+ (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
106
108
  };
@@ -41,4 +41,9 @@ var SortOrder = exports.SortOrder = /*#__PURE__*/function (SortOrder) {
41
41
  SortOrder["DESC"] = "desc";
42
42
  SortOrder["NO_ORDER"] = "no_order";
43
43
  return SortOrder;
44
- }({});
44
+ }({}); // DEPREACTED
45
+ /**
46
+ * @depreacted
47
+ *
48
+ * Please use ExtractPresetAPI from "@atlaskit/editor-common/preset" instead.
49
+ */
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.13.0";
23
+ var packageVersion = "83.0.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {