@atlaskit/editor-common 99.5.0 → 99.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/analytics/types/ai-events.js +5 -0
  3. package/dist/cjs/analytics/types/enums.js +2 -0
  4. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +3 -12
  5. package/dist/cjs/commands/index.js +42 -50
  6. package/dist/cjs/commands/insert-block.js +1 -4
  7. package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -6
  8. package/dist/cjs/extensibility/Extension/Extension/index.js +6 -3
  9. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +4 -2
  10. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +16 -6
  11. package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +4 -2
  12. package/dist/cjs/extensibility/Extension/Lozenge/index.js +4 -2
  13. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +4 -2
  14. package/dist/cjs/extensibility/extensionNodeView.js +1 -2
  15. package/dist/cjs/guideline/dynamicGuideline.js +1 -4
  16. package/dist/cjs/guideline/relativeGuideline.js +3 -12
  17. package/dist/cjs/guideline/updateGuideline.js +1 -4
  18. package/dist/cjs/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -11
  19. package/dist/cjs/insert/index.js +1 -4
  20. package/dist/cjs/keymaps/index.js +0 -3
  21. package/dist/cjs/lazy-node-view/index.js +1 -6
  22. package/dist/cjs/lazy-node-view/node-view.js +0 -2
  23. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -2
  24. package/dist/cjs/lists/analytics.js +0 -2
  25. package/dist/cjs/mark/commands.js +2 -11
  26. package/dist/cjs/media-single/utils.js +0 -5
  27. package/dist/cjs/messages/ai-proactive-setting.js +109 -0
  28. package/dist/cjs/messages/ai-proactive-transform.js +99 -0
  29. package/dist/cjs/messages/ai-proactive.js +145 -0
  30. package/dist/cjs/messages/index.js +14 -0
  31. package/dist/cjs/monitoring/error.js +1 -1
  32. package/dist/cjs/node-width/index.js +1 -4
  33. package/dist/cjs/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -5
  34. package/dist/cjs/preset/core-plugin/requestDocument.js +1 -2
  35. package/dist/cjs/react-node-view/index.js +1 -9
  36. package/dist/cjs/resizer/Resizer.js +2 -8
  37. package/dist/cjs/selection/gap-cursor/actions.js +2 -8
  38. package/dist/cjs/selection/index.js +0 -2
  39. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +0 -6
  40. package/dist/cjs/ui/DropList/index.js +1 -1
  41. package/dist/cjs/ui/Layer/index.js +0 -2
  42. package/dist/cjs/ui/MediaSingle/grid.js +2 -8
  43. package/dist/cjs/ui/MediaSingle/styled.js +0 -4
  44. package/dist/cjs/ui/Popup/utils.js +0 -7
  45. package/dist/cjs/ui/ResizerLegacy/index.js +0 -4
  46. package/dist/cjs/ui/unsupported-content-helper.js +0 -2
  47. package/dist/cjs/utils/breakout.js +0 -2
  48. package/dist/cjs/utils/commands.js +1 -4
  49. package/dist/cjs/utils/editor-core-utils.js +0 -3
  50. package/dist/cjs/utils/input-rules.js +1 -4
  51. package/dist/cjs/utils/nodes.js +1 -6
  52. package/dist/cjs/utils/page-element-counts.js +10 -3
  53. package/dist/cjs/utils/performance/measure-tti.js +0 -5
  54. package/dist/cjs/utils/plugin-state-factory.js +0 -2
  55. package/dist/cjs/utils/processRawValue.js +0 -6
  56. package/dist/cjs/utils/prosemirror/autojoin.js +0 -2
  57. package/dist/cjs/utils/rich-media-utils.js +1 -4
  58. package/dist/cjs/utils/track-unsupported-content.js +2 -8
  59. package/dist/cjs/utils/validate-using-spec.js +1 -7
  60. package/dist/cjs/with-plugin-state/index.js +0 -4
  61. package/dist/es2019/analytics/types/ai-events.js +1 -0
  62. package/dist/es2019/analytics/types/enums.js +2 -0
  63. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +3 -12
  64. package/dist/es2019/commands/index.js +2 -8
  65. package/dist/es2019/commands/insert-block.js +1 -4
  66. package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -6
  67. package/dist/es2019/extensibility/Extension/Extension/index.js +6 -3
  68. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +4 -2
  69. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +16 -6
  70. package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +4 -2
  71. package/dist/es2019/extensibility/Extension/Lozenge/index.js +4 -2
  72. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +4 -2
  73. package/dist/es2019/extensibility/extensionNodeView.js +0 -3
  74. package/dist/es2019/guideline/dynamicGuideline.js +1 -4
  75. package/dist/es2019/guideline/relativeGuideline.js +3 -12
  76. package/dist/es2019/guideline/snapping.js +1 -4
  77. package/dist/es2019/guideline/updateGuideline.js +1 -4
  78. package/dist/es2019/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -11
  79. package/dist/es2019/insert/index.js +1 -4
  80. package/dist/es2019/keymaps/index.js +0 -3
  81. package/dist/es2019/lazy-node-view/index.js +1 -6
  82. package/dist/es2019/lazy-node-view/node-view.js +0 -2
  83. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -2
  84. package/dist/es2019/lists/analytics.js +0 -2
  85. package/dist/es2019/mark/commands.js +2 -11
  86. package/dist/es2019/media-single/utils.js +0 -5
  87. package/dist/es2019/messages/ai-proactive-setting.js +103 -0
  88. package/dist/es2019/messages/ai-proactive-transform.js +93 -0
  89. package/dist/es2019/messages/ai-proactive.js +145 -0
  90. package/dist/es2019/messages/index.js +2 -0
  91. package/dist/es2019/monitoring/error.js +1 -1
  92. package/dist/es2019/node-width/index.js +1 -4
  93. package/dist/es2019/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -5
  94. package/dist/es2019/preset/core-plugin/requestDocument.js +1 -2
  95. package/dist/es2019/react-node-view/index.js +0 -7
  96. package/dist/es2019/resizer/Resizer.js +2 -8
  97. package/dist/es2019/selection/gap-cursor/actions.js +2 -8
  98. package/dist/es2019/selection/index.js +0 -2
  99. package/dist/es2019/selection-based-node-view/SelectionBasedNodeView.js +0 -6
  100. package/dist/es2019/ui/DropList/index.js +1 -1
  101. package/dist/es2019/ui/Layer/index.js +0 -2
  102. package/dist/es2019/ui/MediaSingle/grid.js +2 -8
  103. package/dist/es2019/ui/MediaSingle/styled.js +0 -4
  104. package/dist/es2019/ui/Popup/utils.js +0 -7
  105. package/dist/es2019/ui/ResizerLegacy/index.js +0 -4
  106. package/dist/es2019/ui/unsupported-content-helper.js +0 -2
  107. package/dist/es2019/utils/breakout.js +0 -2
  108. package/dist/es2019/utils/commands.js +1 -4
  109. package/dist/es2019/utils/compare-props.js +1 -4
  110. package/dist/es2019/utils/editor-core-utils.js +0 -3
  111. package/dist/es2019/utils/input-rules.js +1 -4
  112. package/dist/es2019/utils/nodes.js +1 -6
  113. package/dist/es2019/utils/page-element-counts.js +10 -3
  114. package/dist/es2019/utils/performance/measure-tti.js +0 -6
  115. package/dist/es2019/utils/plugin-state-factory.js +0 -2
  116. package/dist/es2019/utils/processRawValue.js +0 -6
  117. package/dist/es2019/utils/prosemirror/autojoin.js +0 -2
  118. package/dist/es2019/utils/rich-media-utils.js +1 -4
  119. package/dist/es2019/utils/track-unsupported-content.js +3 -12
  120. package/dist/es2019/utils/validate-using-spec.js +1 -7
  121. package/dist/es2019/with-plugin-state/index.js +0 -4
  122. package/dist/esm/analytics/types/ai-events.js +1 -0
  123. package/dist/esm/analytics/types/enums.js +2 -0
  124. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +3 -12
  125. package/dist/esm/commands/index.js +42 -50
  126. package/dist/esm/commands/insert-block.js +1 -4
  127. package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -6
  128. package/dist/esm/extensibility/Extension/Extension/index.js +6 -3
  129. package/dist/esm/extensibility/Extension/InlineExtension/index.js +4 -2
  130. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +16 -6
  131. package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +4 -2
  132. package/dist/esm/extensibility/Extension/Lozenge/index.js +4 -2
  133. package/dist/esm/extensibility/MultiBodiedExtension/index.js +4 -2
  134. package/dist/esm/extensibility/extensionNodeView.js +0 -3
  135. package/dist/esm/guideline/dynamicGuideline.js +1 -4
  136. package/dist/esm/guideline/relativeGuideline.js +3 -12
  137. package/dist/esm/guideline/updateGuideline.js +1 -4
  138. package/dist/esm/hooks/useSharedPluginStateSelector/useSharedPluginStateSelector.js +9 -11
  139. package/dist/esm/insert/index.js +1 -4
  140. package/dist/esm/keymaps/index.js +0 -3
  141. package/dist/esm/lazy-node-view/index.js +1 -6
  142. package/dist/esm/lazy-node-view/node-view.js +0 -2
  143. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -2
  144. package/dist/esm/lists/analytics.js +0 -2
  145. package/dist/esm/mark/commands.js +2 -11
  146. package/dist/esm/media-single/utils.js +0 -5
  147. package/dist/esm/messages/ai-proactive-setting.js +103 -0
  148. package/dist/esm/messages/ai-proactive-transform.js +93 -0
  149. package/dist/esm/messages/ai-proactive.js +145 -0
  150. package/dist/esm/messages/index.js +2 -0
  151. package/dist/esm/monitoring/error.js +1 -1
  152. package/dist/esm/node-width/index.js +1 -4
  153. package/dist/esm/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -5
  154. package/dist/esm/preset/core-plugin/requestDocument.js +1 -2
  155. package/dist/esm/react-node-view/index.js +1 -9
  156. package/dist/esm/resizer/Resizer.js +2 -8
  157. package/dist/esm/selection/gap-cursor/actions.js +2 -8
  158. package/dist/esm/selection/index.js +0 -2
  159. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +0 -6
  160. package/dist/esm/ui/DropList/index.js +1 -1
  161. package/dist/esm/ui/Layer/index.js +0 -2
  162. package/dist/esm/ui/MediaSingle/grid.js +2 -8
  163. package/dist/esm/ui/MediaSingle/styled.js +0 -4
  164. package/dist/esm/ui/Popup/utils.js +0 -7
  165. package/dist/esm/ui/ResizerLegacy/index.js +0 -4
  166. package/dist/esm/ui/unsupported-content-helper.js +0 -2
  167. package/dist/esm/utils/breakout.js +0 -2
  168. package/dist/esm/utils/commands.js +1 -4
  169. package/dist/esm/utils/editor-core-utils.js +0 -3
  170. package/dist/esm/utils/input-rules.js +1 -4
  171. package/dist/esm/utils/nodes.js +1 -6
  172. package/dist/esm/utils/page-element-counts.js +10 -3
  173. package/dist/esm/utils/performance/measure-tti.js +0 -6
  174. package/dist/esm/utils/plugin-state-factory.js +0 -2
  175. package/dist/esm/utils/processRawValue.js +0 -6
  176. package/dist/esm/utils/prosemirror/autojoin.js +0 -2
  177. package/dist/esm/utils/rich-media-utils.js +1 -4
  178. package/dist/esm/utils/track-unsupported-content.js +2 -8
  179. package/dist/esm/utils/validate-using-spec.js +1 -7
  180. package/dist/esm/with-plugin-state/index.js +0 -4
  181. package/dist/types/analytics/index.d.ts +1 -0
  182. package/dist/types/analytics/types/ai-events.d.ts +15 -0
  183. package/dist/types/analytics/types/ai-proactive-events.d.ts +1 -1
  184. package/dist/types/analytics/types/enums.d.ts +2 -0
  185. package/dist/types/analytics/types/events.d.ts +5 -4
  186. package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +3 -1
  187. package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +3 -1
  188. package/dist/types/extensibility/Extension/Lozenge/index.d.ts +2 -0
  189. package/dist/types/messages/ai-proactive-setting.d.ts +102 -0
  190. package/dist/types/messages/ai-proactive-transform.d.ts +92 -0
  191. package/dist/types/messages/ai-proactive.d.ts +145 -0
  192. package/dist/types/messages/index.d.ts +2 -0
  193. package/dist/types-ts4.5/analytics/index.d.ts +1 -0
  194. package/dist/types-ts4.5/analytics/types/ai-events.d.ts +15 -0
  195. package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +1 -1
  196. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
  197. package/dist/types-ts4.5/analytics/types/events.d.ts +5 -4
  198. package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +3 -1
  199. package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +3 -1
  200. package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +2 -0
  201. package/dist/types-ts4.5/messages/ai-proactive-setting.d.ts +102 -0
  202. package/dist/types-ts4.5/messages/ai-proactive-transform.d.ts +92 -0
  203. package/dist/types-ts4.5/messages/ai-proactive.d.ts +145 -0
  204. package/dist/types-ts4.5/messages/index.d.ts +2 -0
  205. package/package.json +3 -3
@@ -1,9 +1,6 @@
1
1
  import { SEVERITY } from '../analytics';
2
2
  import { isPerformanceObserverLongTaskAvailable } from './is-performance-api-available';
3
3
  import { getDistortedDurationMonitor } from './measure-render';
4
-
5
- // Ignored via go/ees005
6
- // eslint-disable-next-line @typescript-eslint/max-params
7
4
  export function measureTTI(onMeasureComplete) {
8
5
  var idleThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
9
6
  var cancelAfter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
@@ -69,9 +66,6 @@ export var TTI_FROM_INVOCATION_SEVERITY_THRESHOLD_DEFAULTS = {
69
66
  NORMAL: 5000,
70
67
  DEGRADED: 8000
71
68
  };
72
-
73
- // Ignored via go/ees005
74
- // eslint-disable-next-line @typescript-eslint/max-params
75
69
  export function getTTISeverity(tti, ttiFromInvocation, ttiSeverityNormalThreshold, ttiSeverityDegradedThreshold, ttiFromInvocationSeverityNormalThreshold, ttiFromInvocationSeverityDegradedThreshold) {
76
70
  var ttiNormalThreshold = ttiSeverityNormalThreshold || TTI_SEVERITY_THRESHOLD_DEFAULTS.NORMAL;
77
71
  var ttiDegradedThreshold = ttiSeverityDegradedThreshold || TTI_SEVERITY_THRESHOLD_DEFAULTS.DEGRADED;
@@ -61,8 +61,6 @@ export function pluginFactory(pluginKey, reducer) {
61
61
  init: function init(_, state) {
62
62
  return isFunction(initialState) ? initialState(state) : initialState;
63
63
  },
64
- // Ignored via go/ees005
65
- // eslint-disable-next-line @typescript-eslint/max-params
66
64
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
67
65
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
68
66
  var newPluginState = oldPluginState;
@@ -65,9 +65,6 @@ export function processRawValueWithoutValidation(schema, value, dispatchAnalytic
65
65
  return Node.fromJSON(schema, node);
66
66
  }
67
67
  }
68
-
69
- // Ignored via go/ees005
70
- // eslint-disable-next-line @typescript-eslint/max-params
71
68
  export function processRawValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
72
69
  if (!value) {
73
70
  return;
@@ -251,9 +248,6 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
251
248
  return;
252
249
  }
253
250
  }
254
-
255
- // Ignored via go/ees005
256
- // eslint-disable-next-line @typescript-eslint/max-params
257
251
  export function processRawFragmentValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
258
252
  if (!value) {
259
253
  return;
@@ -23,8 +23,6 @@ export function autoJoinTr(tr, isJoinable) {
23
23
  for (var j = 0; j < ranges.length; j++) {
24
24
  ranges[j] = map.map(ranges[j]);
25
25
  }
26
- // Ignored via go/ees005
27
- // eslint-disable-next-line @typescript-eslint/max-params
28
26
  map.forEach(function (_s, _e, from, to) {
29
27
  return ranges.push(from, to);
30
28
  });
@@ -23,10 +23,7 @@ export var isRichMediaInsideOfBlockNode = function isRichMediaInsideOfBlockNode(
23
23
  export var alignAttributes = function alignAttributes(layout, oldAttrs) {
24
24
  var gridSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;
25
25
  var originalWidth = arguments.length > 3 ? arguments[3] : undefined;
26
- var lineLength
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/max-params
29
- = arguments.length > 4 ? arguments[4] : undefined;
26
+ var lineLength = arguments.length > 4 ? arguments[4] : undefined;
30
27
  var width = oldAttrs.width;
31
28
  var oldLayout = oldAttrs.layout;
32
29
  var oldLayoutIsNonWrapped = nonWrappedLayouts.indexOf(oldLayout) > -1;
@@ -40,10 +40,7 @@ var sanitizeAttributes = function sanitizeAttributes() {
40
40
  });
41
41
  return sanitizedAttrs;
42
42
  };
43
- var trackUnsupportedContentTooltipActionFor = function trackUnsupportedContentTooltipActionFor(action, dispatchAnalyticsEvent, unsupportedContentType, originalNodeType
44
- // Ignored via go/ees005
45
- // eslint-disable-next-line @typescript-eslint/max-params
46
- ) {
43
+ var trackUnsupportedContentTooltipActionFor = function trackUnsupportedContentTooltipActionFor(action, dispatchAnalyticsEvent, unsupportedContentType, originalNodeType) {
47
44
  dispatchAnalyticsEvent({
48
45
  action: action,
49
46
  actionSubjectId: unsupportedContentType,
@@ -119,10 +116,7 @@ export var findAndTrackUnsupportedContentNodes = function findAndTrackUnsupporte
119
116
  });
120
117
  }
121
118
  };
122
- export var fireUnsupportedEvent = function fireUnsupportedEvent(dispatchAnalyticsEvent, actionSubjectId, unsupportedNode, errorCode
123
- // Ignored via go/ees005
124
- // eslint-disable-next-line @typescript-eslint/max-params
125
- ) {
119
+ export var fireUnsupportedEvent = function fireUnsupportedEvent(dispatchAnalyticsEvent, actionSubjectId, unsupportedNode, errorCode) {
126
120
  var sanitizedAttrs = sanitizeAttributes(unsupportedNode.attrs);
127
121
  var sanitizedMarks = sanitizeMarks(unsupportedNode.marks);
128
122
  var sanitizedUnsupportedNode = {
@@ -7,10 +7,7 @@ var errorCallbackFor = function errorCallbackFor(marks, validate, dispatchAnalyt
7
7
  return validationErrorHandler(entity, error, options, marks, validate, dispatchAnalyticsEvent);
8
8
  };
9
9
  };
10
- export var validationErrorHandler = function validationErrorHandler(entity, error, options, marks, validate, dispatchAnalyticsEvent
11
- // Ignored via go/ees005
12
- // eslint-disable-next-line @typescript-eslint/max-params
13
- ) {
10
+ export var validationErrorHandler = function validationErrorHandler(entity, error, options, marks, validate, dispatchAnalyticsEvent) {
14
11
  if (entity && entity.type === UNSUPPORTED_NODE_ATTRIBUTE) {
15
12
  return entity;
16
13
  }
@@ -67,9 +64,6 @@ export var validationErrorHandler = function validationErrorHandler(entity, erro
67
64
  }
68
65
  return entity;
69
66
  };
70
-
71
- // Ignored via go/ees005
72
- // eslint-disable-next-line @typescript-eslint/max-params
73
67
  function getEntityForInvalidContentLength(error, entity, validate, marks, dispatchAnalyticsEvent) {
74
68
  var meta = error.meta;
75
69
  if (meta.type === 'maximum') {
@@ -103,8 +103,6 @@ export var WithPluginStateInner = /*#__PURE__*/function (_React$Component2) {
103
103
  _defineProperty(_this, "notAppliedState", {});
104
104
  _defineProperty(_this, "isSubscribed", false);
105
105
  _defineProperty(_this, "callsCount", 0);
106
- // Ignored via go/ees005
107
- // eslint-disable-next-line @typescript-eslint/max-params
108
106
  _defineProperty(_this, "handlePluginStateChange", function (propName, pluginName, performanceOptions, skipEqualityCheck) {
109
107
  return (
110
108
  // Ignored via go/ees005
@@ -363,8 +361,6 @@ export var WithPluginStateOld = /*#__PURE__*/function (_React$Component3) {
363
361
  _defineProperty(_this6, "notAppliedState", {});
364
362
  _defineProperty(_this6, "isSubscribed", false);
365
363
  _defineProperty(_this6, "callsCount", 0);
366
- // Ignored via go/ees005
367
- // eslint-disable-next-line @typescript-eslint/max-params
368
364
  _defineProperty(_this6, "handlePluginStateChange", function (propName, pluginName, performanceOptions, skipEqualityCheck) {
369
365
  return (
370
366
  // Ignored via go/ees005
@@ -42,6 +42,7 @@ export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
+ export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
45
46
  export type { AIProactiveEventPayload } from './types/ai-proactive-events';
46
47
  export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
47
48
  export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
@@ -0,0 +1,15 @@
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { OperationalAEP } from './utils';
3
+ type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
+ componentStack: string;
5
+ errorMessage?: string;
6
+ }>;
7
+ export type AIMarkdownConversionErrorCaughtAttributes = {
8
+ errorType: 'markdownToProseMirrorError';
9
+ errorSubType?: 'noProseMirrorDoc' | 'emptyProseMirrorDoc' | 'invalidProseMirrorDoc';
10
+ componentStack: string;
11
+ errorMessage?: string;
12
+ };
13
+ export type AIMarkdownConversionErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, AIMarkdownConversionErrorCaughtAttributes>;
14
+ export type AIEventPayload = AIUnhandledErrorCaughtAEP | AIMarkdownConversionErrorCaughtAEP;
15
+ export {};
@@ -48,5 +48,5 @@ type AIProactiveApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.ED
48
48
  type AIProactiveFeedbackFailedAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.AI_PROACTIVE_FEEDBACK_DIALOG, {
49
49
  errorMessage?: string;
50
50
  }>;
51
- export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
51
+ export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
52
52
  export {};
@@ -118,6 +118,7 @@ export declare enum ACTION {
118
118
  TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
119
119
  TYPING_FINISHED = "typingFinished",
120
120
  TYPING_STARTED = "typingStarted",
121
+ UNHANDLED_ERROR_CAUGHT = "unhandledErrorCaught",
121
122
  UNLINK = "unlinked",
122
123
  UNSUPPORTED_CONTENT_ENCOUNTERED = "unsupportedContentEncounteredV2",
123
124
  UPDATED = "updated",
@@ -334,6 +335,7 @@ export declare enum ACTION_SUBJECT_ID {
334
335
  EMBEDS = "embeds",
335
336
  EMOJI = "emoji",
336
337
  EXPAND = "expand",
338
+ EXPERIENCE_APPLICATION = "experienceApplication",
337
339
  EXTENSION = "extension",
338
340
  EXTENSION_API = "extensionApi",
339
341
  EXTENSION_BLOCK = "extension",
@@ -4,9 +4,10 @@ import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state'
4
4
  import type { NewCollabSyncUpErrorAttributes } from '../../collab';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
6
  import type { ActiveSessionEventPayload } from './activity-session-events';
7
- import { type AICommandPaletteEventPayload } from './ai-command-palette-events';
8
- import { type AIDefinitionsEventPayload } from './ai-definitions-events';
9
- import { type AIProactiveEventPayload } from './ai-proactive-events';
7
+ import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
8
+ import type { AIDefinitionsEventPayload } from './ai-definitions-events';
9
+ import type { AIEventPayload } from './ai-events';
10
+ import type { AIProactiveEventPayload } from './ai-proactive-events';
10
11
  import type { AIUnifiedEventPayload } from './ai-unified-events';
11
12
  import type { AvatarEventPayload } from './avatar';
12
13
  import { type BreakoutEventPayload } from './breakout-events';
@@ -53,7 +54,7 @@ export type SimplifiedNode = {
53
54
  marks?: string[];
54
55
  content?: SimplifiedNode[];
55
56
  };
56
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload;
57
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload;
57
58
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
58
59
  previousColor: string;
59
60
  newColor: string;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import type { CSSProperties } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
+ import { type ExtensionsPluginInjectionAPI } from '../../types';
7
8
  export declare const getShouldShowBodiedMacroLabel: (isBodiedMacro: boolean | undefined, isNodeHovered: boolean | undefined, showLivePagesBodiedMacrosRendererView: boolean | undefined, showBodiedExtensionRendererView: boolean | undefined, showUpdatedLivePages1PBodiedExtensionUI: boolean | undefined) => boolean | undefined;
8
9
  type ExtensionLabelProps = {
9
10
  text: string;
@@ -16,6 +17,7 @@ type ExtensionLabelProps = {
16
17
  showUpdatedLivePages1PBodiedExtensionUI?: boolean;
17
18
  showLivePagesBodiedMacrosRendererView?: boolean;
18
19
  showBodiedExtensionRendererView?: boolean;
20
+ pluginInjectionApi?: ExtensionsPluginInjectionAPI;
19
21
  };
20
- export declare const ExtensionLabel: ({ text, extensionName, isNodeHovered, customContainerStyles, isNodeNested, setIsNodeHovered, isBodiedMacro, showUpdatedLivePages1PBodiedExtensionUI, showLivePagesBodiedMacrosRendererView, showBodiedExtensionRendererView, }: ExtensionLabelProps) => jsx.JSX.Element;
22
+ export declare const ExtensionLabel: ({ text, extensionName, isNodeHovered, customContainerStyles, isNodeNested, setIsNodeHovered, isBodiedMacro, showUpdatedLivePages1PBodiedExtensionUI, showLivePagesBodiedMacrosRendererView, showBodiedExtensionRendererView, pluginInjectionApi, }: ExtensionLabelProps) => jsx.JSX.Element;
21
23
  export {};
@@ -1,5 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import { jsx } from '@emotion/react';
3
+ import { type ExtensionsPluginInjectionAPI } from '../../types';
3
4
  import type { LozengeData } from './index';
4
5
  export declare const ICON_SIZE = 24;
5
6
  type LozengeComponentProps = {
@@ -19,6 +20,7 @@ type LozengeComponentProps = {
19
20
  showUpdatedLivePages1PBodiedExtensionUI?: boolean;
20
21
  showBodiedExtensionRendererView?: boolean;
21
22
  setShowBodiedExtensionRendererView?: (showBodiedExtensionRendererView: boolean) => void;
23
+ pluginInjectionApi?: ExtensionsPluginInjectionAPI;
22
24
  };
23
- export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, }: LozengeComponentProps) => jsx.JSX.Element;
25
+ export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, isNodeNested, setIsNodeHovered, isBodiedMacro, showLivePagesBodiedMacrosRendererView, showUpdatedLivePages1PBodiedExtensionUI, showBodiedExtensionRendererView, setShowBodiedExtensionRendererView, pluginInjectionApi, }: LozengeComponentProps) => jsx.JSX.Element;
24
26
  export {};
@@ -6,6 +6,7 @@ import { Component } from 'react';
6
6
  import type { CSSProperties } from 'react';
7
7
  import { jsx } from '@emotion/react';
8
8
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
9
+ import { type ExtensionsPluginInjectionAPI } from '../../types';
9
10
  export interface Props {
10
11
  node: PmNode;
11
12
  showMacroInteractionDesignUpdates?: boolean;
@@ -19,6 +20,7 @@ export interface Props {
19
20
  showUpdatedLivePages1PBodiedExtensionUI?: boolean;
20
21
  showBodiedExtensionRendererView?: boolean;
21
22
  setShowBodiedExtensionRendererView?: (showBodiedExtensionRendererView: boolean) => void;
23
+ pluginInjectionApi?: ExtensionsPluginInjectionAPI;
22
24
  }
23
25
  export interface LozengeData {
24
26
  url: string;
@@ -0,0 +1,102 @@
1
+ export declare const aiProactiveSettingMessages: {
2
+ toggleAllSuggestionsTitle: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ toggleAllSuggestionsDescription: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ toggleAllPanelSuggestionsTitle: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ toggleAllPanelSuggestionsDescription: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ toggleErrorPanelTitle: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ toggleErrorPanelDescription: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ toggleInfoPanelTitle: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ toggleInfoPanelDescription: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ toggleNotePanelTitle: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ toggleNotePanelDescription: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ toggleSuccessPanelTitle: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ toggleSuccessPanelDescription: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ toggleWarningPanelTitle: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ toggleWarningPanelDescription: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ toggleTableTitle: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ toggleTableDescription: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ toggleSplitParagraphTitle: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ toggleSplitParagraphDescription: {
88
+ id: string;
89
+ defaultMessage: string;
90
+ description: string;
91
+ };
92
+ toggleFormatParagraphTitle: {
93
+ id: string;
94
+ defaultMessage: string;
95
+ description: string;
96
+ };
97
+ toggleFormatParagraphDescription: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
102
+ };
@@ -0,0 +1,92 @@
1
+ export declare const aiProactiveTransformMessages: {
2
+ recommendationDefaultTitle: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ recommendationDefaultDescription: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ recommendationConvertToTableTitle: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ recommendationConvertToTableDescription: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ recommendationConvertToNotePanelTitle: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ recommendationConvertToNotePanelDescription: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ recommendationConvertToInfoPanelTitle: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ recommendationConvertToInfoPanelDescription: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ recommendationConvertToWarnPanelTitle: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ recommendationConvertToWarnPanelDescription: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ recommendationConvertToErrorPanelTitle: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ recommendationConvertToErrorPanelDescription: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ recommendationConvertToSuccessPanelTitle: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ recommendationConvertToSuccessPanelDescription: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ recommendationSplitParagraphTitle: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ recommendationSplitParagraphDescription: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ recommendationFormatParagraphTitle: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ recommendationFormatParagraphDescription: {
88
+ id: string;
89
+ defaultMessage: string;
90
+ description: string;
91
+ };
92
+ };
@@ -4,4 +4,149 @@ export declare const aiProactiveMessages: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
+ findingSuggestionsLabel: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ findingSuggestionsLoadingLabel: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ findingMoreSuggestionsLoadingLabel: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ unhandledErrorMessage: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ markdownErrorMessage: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ recommendationPreviewButtonLabel: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ recommendationReplaceButtonLabel: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ recommendationDismissButtonLabel: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ description: string;
46
+ };
47
+ dismissProactiveRecommendation: {
48
+ id: string;
49
+ defaultMessage: string;
50
+ description: string;
51
+ };
52
+ insertBelowProactiveRecommendation: {
53
+ id: string;
54
+ defaultMessage: string;
55
+ description: string;
56
+ };
57
+ replaceProactiveRecommendation: {
58
+ id: string;
59
+ defaultMessage: string;
60
+ description: string;
61
+ };
62
+ spellingAndGrammarLabel: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
67
+ ManageSuggestionTitle: {
68
+ id: string;
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ closeButtonLabel: {
73
+ id: string;
74
+ defaultMessage: string;
75
+ description: string;
76
+ };
77
+ suggestionsTitle: {
78
+ id: string;
79
+ defaultMessage: string;
80
+ description: string;
81
+ };
82
+ betaLabel: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ description: string;
86
+ };
87
+ moreMenuLabel: {
88
+ id: string;
89
+ defaultMessage: string;
90
+ description: string;
91
+ };
92
+ moreMenuManageSuggestions: {
93
+ id: string;
94
+ defaultMessage: string;
95
+ description: string;
96
+ };
97
+ moreMenuGiveFeedback: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
102
+ moreActionsLabel: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ reloadSuggestionsStateTitle: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ reloadSuggestionsStateDescription: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ reloadSuggestionsButtonLabel: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ noSuggestionsStateTitle: {
123
+ id: string;
124
+ defaultMessage: string;
125
+ description: string;
126
+ };
127
+ noSuggestionsStateDescription: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
132
+ askAIButtonLabel: {
133
+ id: string;
134
+ defaultMessage: string;
135
+ description: string;
136
+ };
137
+ enableSuggestionsStateTitle: {
138
+ id: string;
139
+ defaultMessage: string;
140
+ description: string;
141
+ };
142
+ enableSuggestionsStateDescription: {
143
+ id: string;
144
+ defaultMessage: string;
145
+ description: string;
146
+ };
147
+ enableSuggestionsButtonLabel: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
7
152
  };
@@ -1,5 +1,7 @@
1
1
  export { aiDefinitionsMessages } from './ai-definitions';
2
2
  export { aiProactiveMessages } from './ai-proactive';
3
+ export { aiProactiveSettingMessages } from './ai-proactive-setting';
4
+ export { aiProactiveTransformMessages } from './ai-proactive-transform';
3
5
  export { alignmentMessages } from './alignment';
4
6
  export { annotationMessages } from './annotation';
5
7
  export { messages as blockTypeMessages } from './block-type';
@@ -42,6 +42,7 @@ export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
+ export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
45
46
  export type { AIProactiveEventPayload } from './types/ai-proactive-events';
46
47
  export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
47
48
  export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
@@ -0,0 +1,15 @@
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { OperationalAEP } from './utils';
3
+ type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
4
+ componentStack: string;
5
+ errorMessage?: string;
6
+ }>;
7
+ export type AIMarkdownConversionErrorCaughtAttributes = {
8
+ errorType: 'markdownToProseMirrorError';
9
+ errorSubType?: 'noProseMirrorDoc' | 'emptyProseMirrorDoc' | 'invalidProseMirrorDoc';
10
+ componentStack: string;
11
+ errorMessage?: string;
12
+ };
13
+ export type AIMarkdownConversionErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, AIMarkdownConversionErrorCaughtAttributes>;
14
+ export type AIEventPayload = AIUnhandledErrorCaughtAEP | AIMarkdownConversionErrorCaughtAEP;
15
+ export {};
@@ -48,5 +48,5 @@ type AIProactiveApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.ED
48
48
  type AIProactiveFeedbackFailedAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.AI_PROACTIVE_FEEDBACK_DIALOG, {
49
49
  errorMessage?: string;
50
50
  }>;
51
- export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
51
+ export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
52
52
  export {};