@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
@@ -24,8 +24,6 @@ var _constants = require("./constants");
24
24
  * @param gutterOffset - resize handle bar offset, determines whether align with resize handle bar
25
25
  * @returns pixel number for media single node
26
26
  */
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/max-params
29
27
  function getMediaSinglePixelWidth(width, editorWidth) {
30
28
  var widthType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'percentage';
31
29
  var gutterOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
@@ -121,9 +119,6 @@ var getMediaSingleInitialWidth = exports.getMediaSingleInitialWidth = function g
121
119
  var minWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _constants.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH;
122
120
  return Math.max(Math.min(origWidth, maxWidth), minWidth);
123
121
  };
124
-
125
- // Ignored via go/ees005
126
- // eslint-disable-next-line @typescript-eslint/max-params
127
122
  function calculateOffsetLeft(insideInlineLike, insideLayout, pmViewDom, wrapper) {
128
123
  var offsetLeft = 0;
129
124
  if (wrapper && insideInlineLike && !insideLayout) {
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiProactiveSettingMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _reactIntlNext.defineMessages)({
9
+ toggleAllSuggestionsTitle: {
10
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsTitle.non-final',
11
+ defaultMessage: 'All suggestions',
12
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
13
+ },
14
+ toggleAllSuggestionsDescription: {
15
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsDescription.non-final',
16
+ defaultMessage: 'Toggle to turn suggested edits on or off',
17
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
18
+ },
19
+ toggleAllPanelSuggestionsTitle: {
20
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
21
+ defaultMessage: 'Panels',
22
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
23
+ },
24
+ toggleAllPanelSuggestionsDescription: {
25
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
26
+ defaultMessage: 'Use panels to make your message stand out',
27
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
28
+ },
29
+ toggleErrorPanelTitle: {
30
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelTitle.non-final',
31
+ defaultMessage: 'Error panel',
32
+ description: 'This is the title displayed in the modal to allow the user to toggle error panel on or off'
33
+ },
34
+ toggleErrorPanelDescription: {
35
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
36
+ defaultMessage: 'Transform text into a red error panel',
37
+ description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
38
+ },
39
+ toggleInfoPanelTitle: {
40
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelTitle.non-final',
41
+ defaultMessage: 'Info panel',
42
+ description: 'This is the title displayed in the modal to allow the user to toggle info panel on or off'
43
+ },
44
+ toggleInfoPanelDescription: {
45
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
46
+ defaultMessage: 'Transform text into a blue information panel',
47
+ description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
48
+ },
49
+ toggleNotePanelTitle: {
50
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelTitle.non-final',
51
+ defaultMessage: 'Note panel',
52
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
53
+ },
54
+ toggleNotePanelDescription: {
55
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
56
+ defaultMessage: 'Transform text into a purple note panel',
57
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
58
+ },
59
+ toggleSuccessPanelTitle: {
60
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelTitle.non-final',
61
+ defaultMessage: 'Success panel',
62
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
63
+ },
64
+ toggleSuccessPanelDescription: {
65
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
66
+ defaultMessage: 'Transform text into a green success panel',
67
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
68
+ },
69
+ toggleWarningPanelTitle: {
70
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelTitle.non-final',
71
+ defaultMessage: 'Warning panel',
72
+ description: 'This is the title displayed in the modal to allow the user to toggle warning panel on or off'
73
+ },
74
+ toggleWarningPanelDescription: {
75
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
76
+ defaultMessage: 'Transform text into a yellow warning panel',
77
+ description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
78
+ },
79
+ toggleTableTitle: {
80
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableTitle.non-final',
81
+ defaultMessage: 'Table',
82
+ description: 'This is the title displayed in the modal to allow the user to toggle table on or off'
83
+ },
84
+ toggleTableDescription: {
85
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
86
+ defaultMessage: 'Format content in a table to improve readability',
87
+ description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
88
+ },
89
+ toggleSplitParagraphTitle: {
90
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphTitle.non-final',
91
+ defaultMessage: 'Paragraph break',
92
+ description: 'This is the title displayed in the modal to allow the user to toggle paragraph break on or off'
93
+ },
94
+ toggleSplitParagraphDescription: {
95
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
96
+ defaultMessage: 'Add paragraph breaks to separate key ideas',
97
+ description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
98
+ },
99
+ toggleFormatParagraphTitle: {
100
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphTitle.non-final',
101
+ defaultMessage: 'Improve paragraph',
102
+ description: 'This is the title displayed in the modal to allow the user to toggle format paragraph on or off'
103
+ },
104
+ toggleFormatParagraphDescription: {
105
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
106
+ defaultMessage: 'Simplify content and fix spelling and grammar.',
107
+ description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
108
+ }
109
+ });
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiProactiveTransformMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var aiProactiveTransformMessages = exports.aiProactiveTransformMessages = (0, _reactIntlNext.defineMessages)({
9
+ recommendationDefaultTitle: {
10
+ id: 'fabric.editor.ai.proactive.recommendation.default.title.non-final',
11
+ defaultMessage: 'Suggestion',
12
+ description: 'The default generic title displayed in the side context panel for AI recommendations which have not explicit matching override'
13
+ },
14
+ recommendationDefaultDescription: {
15
+ id: 'fabric.editor.ai.proactive.recommendation.default.description.non-final',
16
+ defaultMessage: 'A suggestion to improve the content.',
17
+ description: 'The default generic description displayed in the side context panel for AI recommendations which have no explicit matching override'
18
+ },
19
+ recommendationConvertToTableTitle: {
20
+ id: 'fabric.editor.ai.proactive.recommendation.convertToTable.title.non-final',
21
+ defaultMessage: 'Format in table',
22
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to table operation'
23
+ },
24
+ recommendationConvertToTableDescription: {
25
+ id: 'fabric.editor.ai.proactive.recommendation.convertToTable.description.non-final',
26
+ defaultMessage: 'Format content in a table to improve readability.',
27
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to table operation'
28
+ },
29
+ recommendationConvertToNotePanelTitle: {
30
+ id: 'fabric.editor.ai.proactive.recommendation.convertToNotePanel.title.non-final',
31
+ defaultMessage: 'Frame with note panel',
32
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
33
+ },
34
+ recommendationConvertToNotePanelDescription: {
35
+ id: 'fabric.editor.ai.proactive.recommendation.convertToNotePanel.description.non-final',
36
+ defaultMessage: 'Use a purple note panel to make your message stand out.',
37
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
38
+ },
39
+ recommendationConvertToInfoPanelTitle: {
40
+ id: 'fabric.editor.ai.proactive.recommendation.convertToInfoPanel.title.non-final',
41
+ defaultMessage: 'Frame with info panel',
42
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
43
+ },
44
+ recommendationConvertToInfoPanelDescription: {
45
+ id: 'fabric.editor.ai.proactive.recommendation.convertToInfoPanel.description.non-final',
46
+ defaultMessage: 'Use a blue info panel to make your message stand out. ',
47
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to info panel operation'
48
+ },
49
+ recommendationConvertToWarnPanelTitle: {
50
+ id: 'fabric.editor.ai.proactive.recommendation.convertToWarnPanel.title.non-final',
51
+ defaultMessage: 'Frame with warning panel',
52
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to warning panel operation'
53
+ },
54
+ recommendationConvertToWarnPanelDescription: {
55
+ id: 'fabric.editor.ai.proactive.recommendation.convertToWarnPanel.description.non-final',
56
+ defaultMessage: 'Use a yellow warning panel to make your message stand out.',
57
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to warning panel operation'
58
+ },
59
+ recommendationConvertToErrorPanelTitle: {
60
+ id: 'fabric.editor.ai.proactive.recommendation.convertToErrorPanel.title.non-final',
61
+ defaultMessage: 'Frame with error panel',
62
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to error panel operation'
63
+ },
64
+ recommendationConvertToErrorPanelDescription: {
65
+ id: 'fabric.editor.ai.proactive.recommendation.convertToErrorPanel.description.non-final',
66
+ defaultMessage: 'Use a red error panel to make your message stand out.',
67
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to error panel operation'
68
+ },
69
+ recommendationConvertToSuccessPanelTitle: {
70
+ id: 'fabric.editor.ai.proactive.recommendation.convertToSuccessPanel.title.non-final',
71
+ defaultMessage: 'Frame with success panel',
72
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to success panel operation'
73
+ },
74
+ recommendationConvertToSuccessPanelDescription: {
75
+ id: 'fabric.editor.ai.proactive.recommendation.convertToSuccessPanel.description.non-final',
76
+ defaultMessage: 'Use a green success panel to make your message stand out.',
77
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to success panel operation'
78
+ },
79
+ recommendationSplitParagraphTitle: {
80
+ id: 'fabric.editor.ai.proactive.recommendation.splitParagraph.title.non-final',
81
+ defaultMessage: 'Divide paragraph',
82
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a split paragraph operation'
83
+ },
84
+ recommendationSplitParagraphDescription: {
85
+ id: 'fabric.editor.ai.proactive.recommendation.splitParagraph.description.non-final',
86
+ defaultMessage: 'Add paragraph breaks to separate key ideas.',
87
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a split paragraph operation'
88
+ },
89
+ recommendationFormatParagraphTitle: {
90
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.title.non-final',
91
+ defaultMessage: 'Improve paragraph',
92
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
93
+ },
94
+ recommendationFormatParagraphDescription: {
95
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.description.non-final',
96
+ defaultMessage: 'Simplify content and fix spelling and grammar.',
97
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
98
+ }
99
+ });
@@ -10,5 +10,150 @@ var aiProactiveMessages = exports.aiProactiveMessages = (0, _reactIntlNext.defin
10
10
  id: 'fabric.editor.ai.proactive.loading.iconAltText.non-final',
11
11
  defaultMessage: 'Loading icon',
12
12
  description: 'Icon alt text of the Loading icon'
13
+ },
14
+ findingSuggestionsLabel: {
15
+ id: 'fabric.editor.ai.proactive.findingSuggestionsLabel.non-final',
16
+ defaultMessage: 'Finding suggestions',
17
+ description: 'The label next to the spinner which indicates recommendations are being requested.'
18
+ },
19
+ findingSuggestionsLoadingLabel: {
20
+ id: 'fabric.editor.ai.proactive.findingSuggestionsLoadingLabel.non-final',
21
+ defaultMessage: 'Finding suggestions',
22
+ description: 'This is the label under the loading spinner when suggestions are being reloaded.'
23
+ },
24
+ findingMoreSuggestionsLoadingLabel: {
25
+ id: 'fabric.editor.ai.proactive.findingMoreSuggestionsLoadingLabel.non-final',
26
+ defaultMessage: 'Finding more suggestions',
27
+ description: 'The label next to the spinner which indicates more recommendations are being requested.'
28
+ },
29
+ unhandledErrorMessage: {
30
+ id: 'fabric.editor.ai.proactive.error.unhandledErrorMessage',
31
+ defaultMessage: "We're having trouble. Close the dialog and try again.",
32
+ description: 'Message to users that displays when an unexpected error happens'
33
+ },
34
+ markdownErrorMessage: {
35
+ id: 'fabric.editor.ai.proactive.error.markdownErrorMessage',
36
+ defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
37
+ description: 'Message to users that displays when an error occurs while generating a preview.'
38
+ },
39
+ recommendationPreviewButtonLabel: {
40
+ id: 'fabric.editor.ai.proactive.recommendation.preview.button.non-final',
41
+ defaultMessage: 'Preview',
42
+ description: 'The preview button label which allows the user to open the preview modal and see the AI recommendation which will be applied when the user inserts'
43
+ },
44
+ recommendationReplaceButtonLabel: {
45
+ id: 'fabric.editor.ai.proactive.recommendation.replace.button.non-final',
46
+ defaultMessage: 'Replace',
47
+ description: 'The replace button label, when clicked the AI recommendation which immediately be inserted'
48
+ },
49
+ recommendationDismissButtonLabel: {
50
+ id: 'fabric.editor.ai.proactive.recommendation.dismiss.button.non-final',
51
+ defaultMessage: 'Dismiss',
52
+ description: 'The dismiss button label,when clicked the AI recommendation will be removed from the list and no longer displayed to the user'
53
+ },
54
+ dismissProactiveRecommendation: {
55
+ id: 'fabric.editor.ai.proactive.preview.dismissProactiveRecommendation.non-final',
56
+ defaultMessage: 'Dismiss',
57
+ description: 'Label for button to dismiss the proactive recommendation'
58
+ },
59
+ insertBelowProactiveRecommendation: {
60
+ id: 'fabric.editor.ai.proactive.preview.insertBelowProactiveRecommendation',
61
+ defaultMessage: 'Insert below',
62
+ description: 'Label for button to insert the proactive recommendation below the user selection'
63
+ },
64
+ replaceProactiveRecommendation: {
65
+ id: 'fabric.editor.ai.proactive.preview.replaceProactiveRecommendation',
66
+ defaultMessage: 'Replace',
67
+ description: 'Label for button to replace selection with proactive recommendation'
68
+ },
69
+ spellingAndGrammarLabel: {
70
+ id: 'fabric.editor.ai.proactive.spellingAndGrammar.label.non-final',
71
+ defaultMessage: 'Spelling and grammar',
72
+ description: 'The label displayed in the context panel on the spelling and grammar item which display the total spelling and grammar issues found'
73
+ },
74
+ ManageSuggestionTitle: {
75
+ id: 'fabric.editor.ai.proactive.moreMenu.manageSuggestionsTitle.non-final',
76
+ defaultMessage: 'Manage suggestions',
77
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to manage suggestions on the suggestions'
78
+ },
79
+ closeButtonLabel: {
80
+ id: 'fabric.editor.ai.proactive.close.label.non-final',
81
+ defaultMessage: 'Close',
82
+ description: 'This is the text applied to the Close icon button label'
83
+ },
84
+ suggestionsTitle: {
85
+ id: 'fabric.editor.ai.proactive.suggestions.title.non-final',
86
+ defaultMessage: 'Suggestions',
87
+ description: 'The title displayed at the top of the context panel for all recommendations displayed'
88
+ },
89
+ betaLabel: {
90
+ id: 'fabric.editor.ai.proactive.beta.label.non-final',
91
+ defaultMessage: 'BETA',
92
+ description: 'This is a lozenge displayed in the suggested edits header to signify that this is a beta feature'
93
+ },
94
+ moreMenuLabel: {
95
+ id: 'fabric.editor.ai.proactive.moreMenu.label.non-final',
96
+ defaultMessage: 'more',
97
+ description: 'This is the message displayed tooltip in the more menu dropdown in the context panel'
98
+ },
99
+ moreMenuManageSuggestions: {
100
+ id: 'fabric.editor.ai.proactive.moreMenu.manageSuggestions.non-final',
101
+ defaultMessage: 'Manage Suggestions',
102
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to manage suggestions on the suggestions'
103
+ },
104
+ moreMenuGiveFeedback: {
105
+ id: 'fabric.editor.ai.proactive.moreMenu.giveFeedback.non-final',
106
+ defaultMessage: 'Give feedback',
107
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to give feedback on the suggestions'
108
+ },
109
+ moreActionsLabel: {
110
+ id: 'fabric.editor.ai.proactive.moreActions.label.non-final',
111
+ defaultMessage: 'More actions',
112
+ description: 'This is the text applied to the More icon button label'
113
+ },
114
+ reloadSuggestionsStateTitle: {
115
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsState.title.non-final',
116
+ defaultMessage: 'Your content’s looking good',
117
+ description: 'This is the title of the message displayed in the suggested edits panel when there are new recommendations left after a user has dismissed them all.'
118
+ },
119
+ reloadSuggestionsStateDescription: {
120
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsState.description.non-final',
121
+ defaultMessage: 'Any new suggestions will appear here.',
122
+ description: 'This is the message displayed in the suggested edits panel when there are no new recommendations left after a user has dismissed them all.'
123
+ },
124
+ reloadSuggestionsButtonLabel: {
125
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsButtonLabel.non-final',
126
+ defaultMessage: 'View past suggestions',
127
+ description: 'This is the button label to reload suggestions when a user has dismised all recommendations.'
128
+ },
129
+ noSuggestionsStateTitle: {
130
+ id: 'fabric.editor.ai.proactive.noSuggestionsState.title.non-final',
131
+ defaultMessage: 'Suggestions will appear here',
132
+ description: 'This is the title of the message displayed in the suggested edits panel when there are no recommendations available.'
133
+ },
134
+ noSuggestionsStateDescription: {
135
+ id: 'fabric.editor.ai.proactive.noSuggestionsState.description.non-final',
136
+ defaultMessage: 'You can also ask AI to improve your page with requests such as <i>Add a table of contents</i> or <i>Create headings</i>.',
137
+ description: 'This is the message displayed in the suggested edits panel when there are no recommendations available'
138
+ },
139
+ askAIButtonLabel: {
140
+ id: 'fabric.editor.ai.proactive.askAIButtonLabel.non-final',
141
+ defaultMessage: 'Ask AI',
142
+ description: 'This is the button label to open the AI modal.'
143
+ },
144
+ enableSuggestionsStateTitle: {
145
+ id: 'fabric.editor.ai.proactive.enableSuggestionsState.title.non-final',
146
+ defaultMessage: 'You create. We polish.',
147
+ description: 'This is the title of the message displayed in the suggested edits panel when suggestions are disabled.'
148
+ },
149
+ enableSuggestionsStateDescription: {
150
+ id: 'fabric.editor.ai.proactive.enableSuggestionsState.description.non-final',
151
+ defaultMessage: 'Turn on suggested edits to quickly preview content improvements.',
152
+ description: 'This is the message displayed in the suggested edits panel when suggestions are disabled.'
153
+ },
154
+ enableSuggestionsButtonLabel: {
155
+ id: 'fabric.editor.ai.proactive.enableSuggestionsButtonLabel.non-final',
156
+ defaultMessage: 'Turn on',
157
+ description: 'This is the button label in the suggested edits panel when suggestions are disabled.'
13
158
  }
14
159
  });
@@ -15,6 +15,18 @@ Object.defineProperty(exports, "aiProactiveMessages", {
15
15
  return _aiProactive.aiProactiveMessages;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "aiProactiveSettingMessages", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _aiProactiveSetting.aiProactiveSettingMessages;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "aiProactiveTransformMessages", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _aiProactiveTransform.aiProactiveTransformMessages;
28
+ }
29
+ });
18
30
  Object.defineProperty(exports, "alignmentMessages", {
19
31
  enumerable: true,
20
32
  get: function get() {
@@ -211,6 +223,8 @@ Object.defineProperty(exports, "unsupportedContentMessages", {
211
223
  var _reactIntlNext = require("react-intl-next");
212
224
  var _aiDefinitions = require("./ai-definitions");
213
225
  var _aiProactive = require("./ai-proactive");
226
+ var _aiProactiveSetting = require("./ai-proactive-setting");
227
+ var _aiProactiveTransform = require("./ai-proactive-transform");
214
228
  var _alignment = require("./alignment");
215
229
  var _annotation = require("./annotation");
216
230
  var _blockType = require("./block-type");
@@ -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 && {}.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 = "99.5.0";
20
+ var packageVersion = "99.5.2";
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
@@ -23,10 +23,7 @@ var layoutToWidth = exports.layoutToWidth = {
23
23
  * Calculates width of parent node of a nested node (inside layouts, extension)
24
24
  * If current node selection is not nested will return undefined
25
25
  */
26
- var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidth(pos, state, containerWidth, isFullWidthModeEnabled
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/max-params
29
- ) {
26
+ var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidth(pos, state, containerWidth, isFullWidthModeEnabled) {
30
27
  if (!pos) {
31
28
  return;
32
29
  }
@@ -12,8 +12,6 @@ exports.default = _default;
12
12
  * prosemirror-markdown cannot conform to the schema
13
13
  */
14
14
 
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line @typescript-eslint/max-params
17
15
  function handleHeadingOpen(state, token, acc, index) {
18
16
  var _state$tokens;
19
17
  var isInListItem = ((_state$tokens = state.tokens[index - 1]) === null || _state$tokens === void 0 ? void 0 : _state$tokens.type) === 'list_item_open';
@@ -23,9 +21,6 @@ function handleHeadingOpen(state, token, acc, index) {
23
21
  acc.push(token);
24
22
  }
25
23
  }
26
-
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/max-params
29
24
  function handleHeadingClose(state, token, acc, index) {
30
25
  var _state$tokens2;
31
26
  var isInListItem = ((_state$tokens2 = state.tokens[index + 1]) === null || _state$tokens2 === void 0 ? void 0 : _state$tokens2.type) === 'list_item_close';
@@ -46,8 +46,7 @@ function createThrottleSchedule(callback) {
46
46
  }
47
47
  var scheduleDocumentRequest = exports.scheduleDocumentRequest = createThrottleSchedule(returnDocumentRequest);
48
48
 
49
- // Ignored via go/ees005
50
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/max-params
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
50
  function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent) {
52
51
  var _editorView$state;
53
52
  var _ref = (_editorView$state = editorView === null || editorView === void 0 ? void 0 : editorView.state) !== null && _editorView$state !== void 0 ? _editorView$state : {},
@@ -32,8 +32,6 @@ var _getInlineNodeViewProducer = require("./getInlineNodeViewProducer");
32
32
  // Disable no-re-export rule for entry point files
33
33
  /* eslint-disable @atlaskit/editor/no-re-export */
34
34
  var ReactNodeView = exports.default = /*#__PURE__*/function () {
35
- // Ignored via go/ees005
36
- // eslint-disable-next-line @typescript-eslint/max-params
37
35
  function ReactNodeView(_node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps,
38
36
  // Ignored via go/ees005
39
37
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -222,9 +220,6 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
222
220
  // eslint-disable-next-line react/jsx-props-no-spreading
223
221
  }, props)) : null;
224
222
  }
225
-
226
- // Ignored via go/ees005
227
- // eslint-disable-next-line @typescript-eslint/max-params
228
223
  }, {
229
224
  key: "update",
230
225
  value: function update(node, decorations, _innerDecorations) {
@@ -294,10 +289,7 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
294
289
  }
295
290
  }], [{
296
291
  key: "fromComponent",
297
- value:
298
- // Ignored via go/ees005
299
- // eslint-disable-next-line @typescript-eslint/max-params
300
- function fromComponent(
292
+ value: function fromComponent(
301
293
  // Ignored via go/ees005
302
294
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
303
295
  component, portalProviderAPI, eventDispatcher, props, viewShouldUpdate) {
@@ -78,10 +78,7 @@ var ResizerNext = function ResizerNext(props, ref) {
78
78
  setIsResizing(true);
79
79
  handleResizeStart();
80
80
  }, [handleResizeStart]);
81
- var onResize = (0, _react.useCallback)(function (_event, _direction, _elementRef, delta
82
- // Ignored via go/ees005
83
- // eslint-disable-next-line @typescript-eslint/max-params
84
- ) {
81
+ var onResize = (0, _react.useCallback)(function (_event, _direction, _elementRef, delta) {
85
82
  if (!handleResize) {
86
83
  return;
87
84
  }
@@ -97,10 +94,7 @@ var ResizerNext = function ResizerNext(props, ref) {
97
94
  };
98
95
  handleResize(originalState, delta);
99
96
  }, [handleResize]);
100
- var onResizeStop = (0, _react.useCallback)(function (_event, _direction, _elementRef, delta
101
- // Ignored via go/ees005
102
- // eslint-disable-next-line @typescript-eslint/max-params
103
- ) {
97
+ var onResizeStop = (0, _react.useCallback)(function (_event, _direction, _elementRef, delta) {
104
98
  var resizableCurrent = resizable.current;
105
99
  if (!resizableCurrent || !resizableCurrent.state.original) {
106
100
  return;
@@ -9,10 +9,7 @@ var _selection = require("./selection");
9
9
  var _isValidTargetNode = require("./utils/is-valid-target-node");
10
10
  // This function captures clicks outside of the ProseMirror contentEditable area
11
11
  // see also description of "handleClick" in gap-cursor pm-plugin
12
- var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCoords, tr
13
- // Ignored via go/ees005
14
- // eslint-disable-next-line @typescript-eslint/max-params
15
- ) {
12
+ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCoords, tr) {
16
13
  var rect = editorRef.getBoundingClientRect();
17
14
 
18
15
  // capture clicks before the first block element
@@ -49,10 +46,7 @@ var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCo
49
46
  }
50
47
  return null;
51
48
  };
52
- var setSelectionTopLevelBlocks = exports.setSelectionTopLevelBlocks = function setSelectionTopLevelBlocks(tr, event, editorRef, posAtCoords, editorFocused
53
- // Ignored via go/ees005
54
- // eslint-disable-next-line @typescript-eslint/max-params
55
- ) {
49
+ var setSelectionTopLevelBlocks = exports.setSelectionTopLevelBlocks = function setSelectionTopLevelBlocks(tr, event, editorRef, posAtCoords, editorFocused) {
56
50
  var cursorCoords = captureCursorCoords(event, editorRef, posAtCoords, tr);
57
51
  if (!cursorCoords) {
58
52
  return;
@@ -232,8 +232,6 @@ var selectNode = exports.selectNode = function selectNode(pos) {
232
232
  };
233
233
  };
234
234
  function createSelectionClickHandler(nodes, isValidTarget, options) {
235
- // Ignored via go/ees005
236
- // eslint-disable-next-line @typescript-eslint/max-params
237
235
  return function handleClickOn(view, pos, node, nodePos, event, direct) {
238
236
  if (options.useLongPressSelection) {
239
237
  return false;
@@ -38,8 +38,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
38
38
  * }```
39
39
  */
40
40
  var SelectionBasedNodeView = exports.SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
41
- // Ignored via go/ees005
42
- // eslint-disable-next-line @typescript-eslint/max-params
43
41
  function SelectionBasedNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps,
44
42
  // Ignored via go/ees005
45
43
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -48,8 +46,6 @@ var SelectionBasedNodeView = exports.SelectionBasedNodeView = /*#__PURE__*/funct
48
46
  (0, _classCallCheck2.default)(this, SelectionBasedNodeView);
49
47
  _this = _callSuper(this, SelectionBasedNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
50
48
  (0, _defineProperty2.default)(_this, "isSelectedNode", false);
51
- // Ignored via go/ees005
52
- // eslint-disable-next-line @typescript-eslint/max-params
53
49
  (0, _defineProperty2.default)(_this, "isNodeInsideSelection", function (from, to, pos, posEnd) {
54
50
  var _this$getPositionsWit = _this.getPositionsWithDefault(pos, posEnd);
55
51
  pos = _this$getPositionsWit.pos;
@@ -59,8 +55,6 @@ var SelectionBasedNodeView = exports.SelectionBasedNodeView = /*#__PURE__*/funct
59
55
  }
60
56
  return from <= pos && to >= posEnd;
61
57
  });
62
- // Ignored via go/ees005
63
- // eslint-disable-next-line @typescript-eslint/max-params
64
58
  (0, _defineProperty2.default)(_this, "isSelectionInsideNode", function (from, to, pos, posEnd) {
65
59
  var _this$getPositionsWit2 = _this.getPositionsWithDefault(pos, posEnd);
66
60
  pos = _this$getPositionsWit2.pos;
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "99.5.0";
26
+ var packageVersion = "99.5.2";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -114,8 +114,6 @@ var Layer = exports.default = /*#__PURE__*/function (_Component) {
114
114
  * the bottom of the popper not being viewable.
115
115
  * Only works if the popper uses viewport as the boundary and has a fixed position ancestor.
116
116
  */
117
- // Ignored via go/ees005
118
- // eslint-disable-next-line @typescript-eslint/max-params
119
117
  }, {
120
118
  key: "calculateMaxHeight",
121
119
  value: function calculateMaxHeight(originalHeight, currentHeight, positionTop, cssPosition) {
@@ -33,10 +33,7 @@ function calcPctFromPx(width, lineLength) {
33
33
  return (width + _constants.MEDIA_SINGLE_GUTTER_SIZE) / maxWidth;
34
34
  }
35
35
  var wrappedLayouts = exports.wrappedLayouts = ['wrap-left', 'wrap-right', 'align-end', 'align-start'];
36
- var calcPctWidth = exports.calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight
37
- // Ignored via go/ees005
38
- // eslint-disable-next-line @typescript-eslint/max-params
39
- ) {
36
+ var calcPctWidth = exports.calcPctWidth = function calcPctWidth(containerWidth, pctWidth, origWidth, origHeight) {
40
37
  return pctWidth && origWidth && origHeight && Math.ceil(calcPxFromPct(pctWidth / 100, containerWidth.lineLength || containerWidth.width));
41
38
  };
42
39
  var calcMediaPxWidth = exports.calcMediaPxWidth = function calcMediaPxWidth(opts) {
@@ -86,10 +83,7 @@ var calcMediaPxWidth = exports.calcMediaPxWidth = function calcMediaPxWidth(opts
86
83
  }
87
84
  return origWidth;
88
85
  };
89
- var snapToGrid = exports.snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize
90
- // Ignored via go/ees005
91
- // eslint-disable-next-line @typescript-eslint/max-params
92
- ) {
86
+ var snapToGrid = exports.snapToGrid = function snapToGrid(gridWidth, width, height, lineLength, gridSize) {
93
87
  var pxWidth = calcPxFromPct(gridWidth / 100, lineLength);
94
88
  var columnSpan = Math.round(calcColumnsFromPx(pxWidth, lineLength, gridSize));
95
89
  var alignedWidth = calcPxFromColumns(columnSpan, lineLength, gridSize);
@@ -54,8 +54,6 @@ function getWidthIfDefaultMode(originalWidth, containerWidth, isInsideOfInlineEx
54
54
  * then an image in wide or full-width can not be wider than the image's
55
55
  * original width.
56
56
  */
57
- // Ignored via go/ees005
58
- // eslint-disable-next-line @typescript-eslint/max-params
59
57
  function calcLegacyWidth(layout, width) {
60
58
  var containerWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
61
59
  var fullWidthMode = arguments.length > 3 ? arguments[3] : undefined;
@@ -83,8 +81,6 @@ function calcLegacyWidth(layout, width) {
83
81
  * then an image in wide or full-width can not be wider than the image's
84
82
  * original width.
85
83
  */
86
- // Ignored via go/ees005
87
- // eslint-disable-next-line @typescript-eslint/max-params
88
84
  function calcLegacyWidthForInline(layout, width) {
89
85
  var containerWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
90
86
  var fullWidthMode = arguments.length > 3 ? arguments[3] : undefined;