@atlaskit/editor-common 110.30.1 → 110.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/ai-messages/ai-experience-application.js +5 -0
  3. package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -0
  4. package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
  5. package/dist/cjs/media-inline/inline-image-card.js +3 -1
  6. package/dist/cjs/messages/syncBlock.js +20 -0
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/preset/core-plugin/requestDocument.js +1 -1
  9. package/dist/cjs/preset/plugin-injection-api.js +4 -4
  10. package/dist/cjs/selection/index.js +1 -1
  11. package/dist/cjs/styles/shared/headings.js +1 -1
  12. package/dist/cjs/ui/AssistiveText/AssistiveText.js +1 -1
  13. package/dist/cjs/ui/DropList/index.js +1 -1
  14. package/dist/cjs/ui/Expand/index.js +1 -1
  15. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  16. package/dist/cjs/ui/Popup/index.js +1 -1
  17. package/dist/cjs/utils/annotation/index.js +2 -2
  18. package/dist/cjs/utils/nodes.js +1 -1
  19. package/dist/es2019/ai-messages/ai-experience-application.js +5 -0
  20. package/dist/es2019/card/LinkToolbarButtonGroup.js +2 -0
  21. package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
  22. package/dist/es2019/media-inline/inline-image-card.js +3 -1
  23. package/dist/es2019/messages/syncBlock.js +20 -0
  24. package/dist/es2019/monitoring/error.js +1 -1
  25. package/dist/es2019/preset/core-plugin/requestDocument.js +1 -1
  26. package/dist/es2019/preset/plugin-injection-api.js +4 -4
  27. package/dist/es2019/selection/index.js +1 -1
  28. package/dist/es2019/styles/shared/headings.js +1 -1
  29. package/dist/es2019/ui/AssistiveText/AssistiveText.js +1 -1
  30. package/dist/es2019/ui/DropList/index.js +1 -1
  31. package/dist/es2019/ui/Expand/index.js +1 -1
  32. package/dist/es2019/ui/IntlErrorBoundary/index.js +1 -1
  33. package/dist/es2019/ui/Popup/index.js +1 -1
  34. package/dist/es2019/utils/annotation/index.js +2 -2
  35. package/dist/es2019/utils/nodes.js +1 -1
  36. package/dist/esm/ai-messages/ai-experience-application.js +5 -0
  37. package/dist/esm/card/LinkToolbarButtonGroup.js +2 -0
  38. package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +1 -1
  39. package/dist/esm/media-inline/inline-image-card.js +3 -1
  40. package/dist/esm/messages/syncBlock.js +20 -0
  41. package/dist/esm/monitoring/error.js +1 -1
  42. package/dist/esm/preset/core-plugin/requestDocument.js +1 -1
  43. package/dist/esm/preset/plugin-injection-api.js +4 -4
  44. package/dist/esm/selection/index.js +1 -1
  45. package/dist/esm/styles/shared/headings.js +1 -1
  46. package/dist/esm/ui/AssistiveText/AssistiveText.js +1 -1
  47. package/dist/esm/ui/DropList/index.js +1 -1
  48. package/dist/esm/ui/Expand/index.js +1 -1
  49. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  50. package/dist/esm/ui/Popup/index.js +1 -1
  51. package/dist/esm/utils/annotation/index.js +2 -2
  52. package/dist/esm/utils/nodes.js +1 -1
  53. package/dist/types/ai-messages/ai-experience-application.d.ts +5 -0
  54. package/dist/types/messages/syncBlock.d.ts +20 -0
  55. package/dist/types/preset/builder.d.ts +1 -1
  56. package/dist/types/preset/core-plugin/requestDocument.d.ts +2 -2
  57. package/dist/types/selection/index.d.ts +1 -1
  58. package/dist/types/styles/shared/headings.d.ts +1 -1
  59. package/dist/types/ui/AssistiveText/AssistiveText.d.ts +1 -1
  60. package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -1
  61. package/dist/types-ts4.5/ai-messages/ai-experience-application.d.ts +5 -0
  62. package/dist/types-ts4.5/messages/syncBlock.d.ts +20 -0
  63. package/dist/types-ts4.5/preset/builder.d.ts +1 -1
  64. package/dist/types-ts4.5/preset/core-plugin/requestDocument.d.ts +2 -2
  65. package/dist/types-ts4.5/selection/index.d.ts +1 -1
  66. package/dist/types-ts4.5/styles/shared/headings.d.ts +1 -1
  67. package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +1 -1
  68. package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -1
  69. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`721d3790d48fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/721d3790d48fe) -
8
+ EDITOR-2533 implement error-ui with retry
9
+ - [`65371c14c13c5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/65371c14c13c5) -
10
+ [ENGHEALTH-23797] A11y violation detected for rule "aria-dialog-name" for
11
+ "@atlassian/editor-plugin-ai" from "Editor: AI"
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 110.30.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [`c60de47015108`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60de47015108) -
22
+ Fix types for editor related dependencies
23
+ - Updated dependencies
24
+
3
25
  ## 110.30.1
4
26
 
5
27
  ### Patch Changes
@@ -8,6 +8,11 @@ var _reactIntlNext = require("react-intl-next");
8
8
  // eslint-disable-next-line no-restricted-imports
9
9
 
10
10
  var aiExperienceApplicationMessages = exports.aiExperienceApplicationMessages = (0, _reactIntlNext.defineMessages)({
11
+ dialogAriaLabel: {
12
+ id: 'fabric.editor.ai.experience.dialogAriaLabel',
13
+ defaultMessage: 'Atlassian Intelligence Dialog',
14
+ description: 'Aria label for the Atlassian Intelligence dialog'
15
+ },
11
16
  responseTooSimilarMessage: {
12
17
  id: 'fabric.editor.ai.experience.responseTooSimilarMessage',
13
18
  defaultMessage: 'Atlassian Intelligence has no suggestions at this time. Feel free to try a different prompt or content.',
@@ -28,6 +28,8 @@ var buttonStyleNoneEvent = (0, _react2.css)({
28
28
  var DisallowedWrapper = function DisallowedWrapper(_ref) {
29
29
  var disabled = _ref.disabled,
30
30
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
+ // adding this ignore to avoid having to use compiled (can be fixed at a later date)
32
+ // @ts-ignore
31
33
  // Ignored via go/ees005
32
34
  // eslint-disable-next-line react/jsx-props-no-spreading
33
35
  return (0, _react2.jsx)("div", props);
@@ -187,7 +187,7 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
187
187
  if (!extensionItems.length || !dropdownOptions) {
188
188
  return null;
189
189
  }
190
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extensionItems.map(function (item, idx) {
190
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extensionItems.map(function (item, _idx) {
191
191
  if (!('key' in item)) {
192
192
  return null;
193
193
  }
@@ -69,5 +69,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
69
69
  crop: crop,
70
70
  stretch: stretch,
71
71
  ref: copyNodeRef
72
- }), getSsrScriptProps && (0, _react2.jsx)("script", getSsrScriptProps()));
72
+ }), getSsrScriptProps &&
73
+ // eslint-disable-next-line react/jsx-props-no-spreading
74
+ (0, _react2.jsx)("script", getSsrScriptProps()));
73
75
  };
@@ -145,5 +145,25 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
145
145
  id: 'fabric.editor.error.description.failToCreateWhenOffline',
146
146
  defaultMessage: 'You appear to be offline. Please connect to the internet to create synced content.',
147
147
  description: 'Description in flag which appears when a sync block cannot be created in offline mode'
148
+ },
149
+ generalErrorDescription: {
150
+ id: 'fabric.editor.syncedBlockGeneralErrorDescription',
151
+ defaultMessage: 'Something went wrong while loading this synced block.',
152
+ description: 'Description for general error state of the synced block'
153
+ },
154
+ notFoundDescription: {
155
+ id: 'fabric.editor.syncedBlockNotFoundDescription',
156
+ defaultMessage: 'We’re unable to load this synced block.',
157
+ description: 'Description for error state where the synced block cannot be found or no longer exists'
158
+ },
159
+ notFoundAltText: {
160
+ id: 'fabric.editor.syncedBlockNotFoundIconAltText',
161
+ defaultMessage: 'Synced block not found.',
162
+ description: 'Alt text for icon on error state where the synced block cannot be found or no longer exists'
163
+ },
164
+ retryButton: {
165
+ id: 'fabric.editor.retrySyncedBlock',
166
+ defaultMessage: 'Retry',
167
+ description: 'Label for button which retries loading the synced block'
148
168
  }
149
169
  });
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.30.0";
19
+ var packageVersion = "110.30.2";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -69,7 +69,7 @@ function createThrottleSchedule(callback) {
69
69
  }
70
70
 
71
71
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
72
- function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, alwaysFire) {
72
+ function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
73
73
  var _editorView$state;
74
74
  var _ref = (_editorView$state = editorView === null || editorView === void 0 ? void 0 : editorView.state) !== null && _editorView$state !== void 0 ? _editorView$state : {},
75
75
  doc = _ref.doc,
@@ -152,7 +152,7 @@ var ActionsAPI = /*#__PURE__*/function () {
152
152
  return {};
153
153
  }
154
154
  return new Proxy(plugin.actions || {}, {
155
- get: function get(target, prop, receiver) {
155
+ get: function get(target, prop, _receiver) {
156
156
  // We will be able to track perfomance here
157
157
  return Reflect.get(target, prop);
158
158
  }
@@ -177,7 +177,7 @@ var EditorCommandsAPI = /*#__PURE__*/function () {
177
177
  return {};
178
178
  }
179
179
  return new Proxy(plugin.commands || {}, {
180
- get: function get(target, prop, receiver) {
180
+ get: function get(target, prop, _receiver) {
181
181
  // We will be able to track perfomance here
182
182
  return Reflect.get(target, prop);
183
183
  }
@@ -205,7 +205,7 @@ var SharedStateAPI = exports.SharedStateAPI = /*#__PURE__*/function () {
205
205
  currentState: function currentState() {
206
206
  return undefined;
207
207
  },
208
- onChange: function onChange(sub) {
208
+ onChange: function onChange(_sub) {
209
209
  return function () {};
210
210
  }
211
211
  };
@@ -340,7 +340,7 @@ var EditorPluginInjectionAPI = exports.EditorPluginInjectionAPI = /*#__PURE__*/f
340
340
  // Ignored via go/ees005
341
341
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
342
342
  return new Proxy({}, {
343
- get: function get(target, prop, receiver) {
343
+ get: function get(target, prop, _receiver) {
344
344
  // If we pass this as a prop React hates us
345
345
  // Let's just reflect the result and ignore these
346
346
  if (prop === 'toJSON') {
@@ -238,7 +238,7 @@ var selectNode = exports.selectNode = function selectNode(pos) {
238
238
  };
239
239
  };
240
240
  function createSelectionClickHandler(nodes, isValidTarget, options) {
241
- return function handleClickOn(view, pos, node, nodePos, event, direct) {
241
+ return function handleClickOn(view, _pos, node, nodePos, event, direct) {
242
242
  if (options.useLongPressSelection) {
243
243
  return false;
244
244
  }
@@ -47,7 +47,7 @@ var headingWithAlignmentStyles = function headingWithAlignmentStyles() {
47
47
 
48
48
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
49
49
  // text sizing prototype: http://proto/fabricrender/
50
- var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(typographyTheme) {
50
+ var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(_typographyTheme) {
51
51
  if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
52
52
  return (0, _react.css)(_objectSpread({
53
53
  '& h1': {
@@ -36,7 +36,7 @@ var AssistiveText = exports.AssistiveText = function AssistiveText(_ref) {
36
36
  _ref$id = _ref.id,
37
37
  id = _ref$id === void 0 ? '' : _ref$id,
38
38
  _ref$statusDebounceMi = _ref.statusDebounceMillis,
39
- statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
39
+ _statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
40
40
  var _useState = (0, _react.useState)(false),
41
41
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
42
42
  bump = _useState2[0],
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "110.30.0";
27
+ var packageVersion = "110.30.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -93,7 +93,7 @@ function (props, ref) {
93
93
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
94
94
  return (
95
95
  // Ignored via go/ees005
96
- // eslint-disable-next-line react/jsx-props-no-spreading
96
+ // eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
97
97
  (0, _react2.jsx)("div", (0, _extends2.default)({
98
98
  css: expandLayoutWrapperStyle
99
99
  }, rest, {
@@ -39,7 +39,7 @@ var IntlErrorBoundary = exports.IntlErrorBoundary = /*#__PURE__*/function (_Reac
39
39
  (0, _inherits2.default)(IntlErrorBoundary, _React$Component);
40
40
  return (0, _createClass2.default)(IntlErrorBoundary, [{
41
41
  key: "componentDidCatch",
42
- value: function componentDidCatch(error, errorInfo) {
42
+ value: function componentDidCatch(error, _errorInfo) {
43
43
  // if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
44
44
  if (isMissingIntlProviderInAncestryError(error)) {
45
45
  this.setState({
@@ -46,7 +46,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
46
46
  }
47
47
  _this.initPopup(popup);
48
48
  });
49
- (0, _defineProperty2.default)(_this, "scheduledUpdatePosition", (0, _rafSchd.default)(function (props) {
49
+ (0, _defineProperty2.default)(_this, "scheduledUpdatePosition", (0, _rafSchd.default)(function (_props) {
50
50
  _this.updatePosition(_this.props);
51
51
  }));
52
52
  (0, _defineProperty2.default)(_this, "onResize", function () {
@@ -156,7 +156,7 @@ function getRangeAncestorNodeNames(_ref2) {
156
156
  // This isn't as precise as calling resolve() on each parent, but it's a lot faster
157
157
  // and should hopefully provide a good approximation of the ancestor nodes
158
158
  var seenParents = new Set();
159
- doc.nodesBetween(pos.from, pos.to, function (node, nodePos, parent) {
159
+ doc.nodesBetween(pos.from, pos.to, function (_node, _nodePos, parent) {
160
160
  // Collect parent chain using the parent parameter
161
161
  var currentParent = parent;
162
162
  if (!!currentParent && !seenParents.has(currentParent)) {
@@ -203,7 +203,7 @@ function getAnnotationInlineNodeTypes(state, annotationId) {
203
203
  annotationType: _adfSchema.AnnotationTypes.INLINE_COMMENT
204
204
  });
205
205
  var inlineNodeNames = new Set();
206
- state.doc.descendants(function (node, pos) {
206
+ state.doc.descendants(function (node, _pos) {
207
207
  if (mark.isInSet(node.marks)) {
208
208
  inlineNodeNames.add(node.type.name);
209
209
  }
@@ -18,7 +18,7 @@ var findChangedNodesFromTransaction = exports.findChangedNodesFromTransaction =
18
18
  var nodes = [];
19
19
  var steps = tr.steps || [];
20
20
  steps.forEach(function (step) {
21
- step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
21
+ step.getMap().forEach(function (_oldStart, _oldEnd, newStart, newEnd) {
22
22
  tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
23
23
  if (!nodes.find(function (n) {
24
24
  return n === node;
@@ -1,6 +1,11 @@
1
1
  // eslint-disable-next-line no-restricted-imports
2
2
  import { defineMessages } from 'react-intl-next';
3
3
  export const aiExperienceApplicationMessages = defineMessages({
4
+ dialogAriaLabel: {
5
+ id: 'fabric.editor.ai.experience.dialogAriaLabel',
6
+ defaultMessage: 'Atlassian Intelligence Dialog',
7
+ description: 'Aria label for the Atlassian Intelligence dialog'
8
+ },
4
9
  responseTooSimilarMessage: {
5
10
  id: 'fabric.editor.ai.experience.responseTooSimilarMessage',
6
11
  defaultMessage: 'Atlassian Intelligence has no suggestions at this time. Feel free to try a different prompt or content.',
@@ -22,6 +22,8 @@ const DisallowedWrapper = ({
22
22
  disabled,
23
23
  ...props
24
24
  }) => {
25
+ // adding this ignore to avoid having to use compiled (can be fixed at a later date)
26
+ // @ts-ignore
25
27
  // Ignored via go/ees005
26
28
  // eslint-disable-next-line react/jsx-props-no-spreading
27
29
  return jsx("div", props);
@@ -111,7 +111,7 @@ export const DropdownMenuExtensionItems = props => {
111
111
  if (!extensionItems.length || !dropdownOptions) {
112
112
  return null;
113
113
  }
114
- return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map((item, idx) => {
114
+ return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map((item, _idx) => {
115
115
  if (!('key' in item)) {
116
116
  return null;
117
117
  }
@@ -62,5 +62,7 @@ export const InlineImageCard = ({
62
62
  crop: crop,
63
63
  stretch: stretch,
64
64
  ref: copyNodeRef
65
- }), getSsrScriptProps && jsx("script", getSsrScriptProps()));
65
+ }), getSsrScriptProps &&
66
+ // eslint-disable-next-line react/jsx-props-no-spreading
67
+ jsx("script", getSsrScriptProps()));
66
68
  };
@@ -139,5 +139,25 @@ export const syncBlockMessages = defineMessages({
139
139
  id: 'fabric.editor.error.description.failToCreateWhenOffline',
140
140
  defaultMessage: 'You appear to be offline. Please connect to the internet to create synced content.',
141
141
  description: 'Description in flag which appears when a sync block cannot be created in offline mode'
142
+ },
143
+ generalErrorDescription: {
144
+ id: 'fabric.editor.syncedBlockGeneralErrorDescription',
145
+ defaultMessage: 'Something went wrong while loading this synced block.',
146
+ description: 'Description for general error state of the synced block'
147
+ },
148
+ notFoundDescription: {
149
+ id: 'fabric.editor.syncedBlockNotFoundDescription',
150
+ defaultMessage: 'We’re unable to load this synced block.',
151
+ description: 'Description for error state where the synced block cannot be found or no longer exists'
152
+ },
153
+ notFoundAltText: {
154
+ id: 'fabric.editor.syncedBlockNotFoundIconAltText',
155
+ defaultMessage: 'Synced block not found.',
156
+ description: 'Alt text for icon on error state where the synced block cannot be found or no longer exists'
157
+ },
158
+ retryButton: {
159
+ id: 'fabric.editor.retrySyncedBlock',
160
+ defaultMessage: 'Retry',
161
+ description: 'Label for button which retries loading the synced block'
142
162
  }
143
163
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "110.30.0";
4
+ const packageVersion = "110.30.2";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -50,7 +50,7 @@ export function createThrottleSchedule(callback) {
50
50
  }
51
51
 
52
52
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
53
- export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, alwaysFire) {
53
+ export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
54
54
  var _editorView$state;
55
55
  const {
56
56
  doc,
@@ -105,7 +105,7 @@ class ActionsAPI {
105
105
  return {};
106
106
  }
107
107
  return new Proxy(plugin.actions || {}, {
108
- get: function (target, prop, receiver) {
108
+ get: function (target, prop, _receiver) {
109
109
  // We will be able to track perfomance here
110
110
  return Reflect.get(target, prop);
111
111
  }
@@ -124,7 +124,7 @@ class EditorCommandsAPI {
124
124
  return {};
125
125
  }
126
126
  return new Proxy(plugin.commands || {}, {
127
- get: function (target, prop, receiver) {
127
+ get: function (target, prop, _receiver) {
128
128
  // We will be able to track perfomance here
129
129
  return Reflect.get(target, prop);
130
130
  }
@@ -146,7 +146,7 @@ export class SharedStateAPI {
146
146
  if (!plugin) {
147
147
  return {
148
148
  currentState: () => undefined,
149
- onChange: sub => {
149
+ onChange: _sub => {
150
150
  return () => {};
151
151
  }
152
152
  };
@@ -265,7 +265,7 @@ export class EditorPluginInjectionAPI {
265
265
  // Ignored via go/ees005
266
266
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
267
267
  return new Proxy({}, {
268
- get: function (target, prop, receiver) {
268
+ get: function (target, prop, _receiver) {
269
269
  // If we pass this as a prop React hates us
270
270
  // Let's just reflect the result and ignore these
271
271
  if (prop === 'toJSON') {
@@ -101,7 +101,7 @@ export const selectNode = pos => (state, dispatch) => {
101
101
  return true;
102
102
  };
103
103
  export function createSelectionClickHandler(nodes, isValidTarget, options) {
104
- return function handleClickOn(view, pos, node, nodePos, event, direct) {
104
+ return function handleClickOn(view, _pos, node, nodePos, event, direct) {
105
105
  if (options.useLongPressSelection) {
106
106
  return false;
107
107
  }
@@ -40,7 +40,7 @@ const headingWithAlignmentStyles = () => (
40
40
 
41
41
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
42
42
  // text sizing prototype: http://proto/fabricrender/
43
- export const headingsSharedStyles = typographyTheme => {
43
+ export const headingsSharedStyles = _typographyTheme => {
44
44
  if (fg('platform_editor_typography_ugc')) {
45
45
  return css({
46
46
  '& h1': {
@@ -24,7 +24,7 @@ export const AssistiveText = ({
24
24
  assistiveText = '',
25
25
  isInFocus = false,
26
26
  id = '',
27
- statusDebounceMillis = 1400
27
+ statusDebounceMillis: _statusDebounceMillis = 1400
28
28
  }) => {
29
29
  const [bump, setBump] = useState(false);
30
30
  const [debounced, setDebounced] = useState(false);
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.30.0";
17
+ const packageVersion = "110.30.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -83,7 +83,7 @@ export const ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(
83
83
  } = props;
84
84
  return (
85
85
  // Ignored via go/ees005
86
- // eslint-disable-next-line react/jsx-props-no-spreading
86
+ // eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
87
87
  jsx("div", _extends({
88
88
  css: expandLayoutWrapperStyle
89
89
  }, rest, {
@@ -16,7 +16,7 @@ export class IntlErrorBoundary extends React.Component {
16
16
  missingIntlProviderInAncestry: false
17
17
  });
18
18
  }
19
- componentDidCatch(error, errorInfo) {
19
+ componentDidCatch(error, _errorInfo) {
20
20
  // if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
21
21
  if (isMissingIntlProviderInAncestryError(error)) {
22
22
  this.setState({
@@ -25,7 +25,7 @@ export default class Popup extends React.Component {
25
25
  }
26
26
  this.initPopup(popup);
27
27
  });
28
- _defineProperty(this, "scheduledUpdatePosition", rafSchedule(props => {
28
+ _defineProperty(this, "scheduledUpdatePosition", rafSchedule(_props => {
29
29
  this.updatePosition(this.props);
30
30
  }));
31
31
  _defineProperty(this, "onResize", () => this.scheduledUpdatePosition(this.props));
@@ -151,7 +151,7 @@ export function getRangeAncestorNodeNames({
151
151
  // This isn't as precise as calling resolve() on each parent, but it's a lot faster
152
152
  // and should hopefully provide a good approximation of the ancestor nodes
153
153
  const seenParents = new Set();
154
- doc.nodesBetween(pos.from, pos.to, (node, nodePos, parent) => {
154
+ doc.nodesBetween(pos.from, pos.to, (_node, _nodePos, parent) => {
155
155
  // Collect parent chain using the parent parameter
156
156
  const currentParent = parent;
157
157
  if (!!currentParent && !seenParents.has(currentParent)) {
@@ -198,7 +198,7 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
198
198
  annotationType: AnnotationTypes.INLINE_COMMENT
199
199
  });
200
200
  const inlineNodeNames = new Set();
201
- state.doc.descendants((node, pos) => {
201
+ state.doc.descendants((node, _pos) => {
202
202
  if (mark.isInSet(node.marks)) {
203
203
  inlineNodeNames.add(node.type.name);
204
204
  }
@@ -9,7 +9,7 @@ export const findChangedNodesFromTransaction = tr => {
9
9
  const nodes = [];
10
10
  const steps = tr.steps || [];
11
11
  steps.forEach(step => {
12
- step.getMap().forEach((oldStart, oldEnd, newStart, newEnd) => {
12
+ step.getMap().forEach((_oldStart, _oldEnd, newStart, newEnd) => {
13
13
  tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), node => {
14
14
  if (!nodes.find(n => n === node)) {
15
15
  nodes.push(node);
@@ -1,6 +1,11 @@
1
1
  // eslint-disable-next-line no-restricted-imports
2
2
  import { defineMessages } from 'react-intl-next';
3
3
  export var aiExperienceApplicationMessages = defineMessages({
4
+ dialogAriaLabel: {
5
+ id: 'fabric.editor.ai.experience.dialogAriaLabel',
6
+ defaultMessage: 'Atlassian Intelligence Dialog',
7
+ description: 'Aria label for the Atlassian Intelligence dialog'
8
+ },
4
9
  responseTooSimilarMessage: {
5
10
  id: 'fabric.editor.ai.experience.responseTooSimilarMessage',
6
11
  defaultMessage: 'Atlassian Intelligence has no suggestions at this time. Feel free to try a different prompt or content.',
@@ -23,6 +23,8 @@ var buttonStyleNoneEvent = css({
23
23
  var DisallowedWrapper = function DisallowedWrapper(_ref) {
24
24
  var disabled = _ref.disabled,
25
25
  props = _objectWithoutProperties(_ref, _excluded);
26
+ // adding this ignore to avoid having to use compiled (can be fixed at a later date)
27
+ // @ts-ignore
26
28
  // Ignored via go/ees005
27
29
  // eslint-disable-next-line react/jsx-props-no-spreading
28
30
  return jsx("div", props);
@@ -178,7 +178,7 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
178
178
  if (!extensionItems.length || !dropdownOptions) {
179
179
  return null;
180
180
  }
181
- return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map(function (item, idx) {
181
+ return /*#__PURE__*/React.createElement(React.Fragment, null, extensionItems.map(function (item, _idx) {
182
182
  if (!('key' in item)) {
183
183
  return null;
184
184
  }
@@ -62,5 +62,7 @@ export var InlineImageCard = function InlineImageCard(_ref) {
62
62
  crop: crop,
63
63
  stretch: stretch,
64
64
  ref: copyNodeRef
65
- }), getSsrScriptProps && jsx("script", getSsrScriptProps()));
65
+ }), getSsrScriptProps &&
66
+ // eslint-disable-next-line react/jsx-props-no-spreading
67
+ jsx("script", getSsrScriptProps()));
66
68
  };
@@ -139,5 +139,25 @@ export var syncBlockMessages = defineMessages({
139
139
  id: 'fabric.editor.error.description.failToCreateWhenOffline',
140
140
  defaultMessage: 'You appear to be offline. Please connect to the internet to create synced content.',
141
141
  description: 'Description in flag which appears when a sync block cannot be created in offline mode'
142
+ },
143
+ generalErrorDescription: {
144
+ id: 'fabric.editor.syncedBlockGeneralErrorDescription',
145
+ defaultMessage: 'Something went wrong while loading this synced block.',
146
+ description: 'Description for general error state of the synced block'
147
+ },
148
+ notFoundDescription: {
149
+ id: 'fabric.editor.syncedBlockNotFoundDescription',
150
+ defaultMessage: 'We’re unable to load this synced block.',
151
+ description: 'Description for error state where the synced block cannot be found or no longer exists'
152
+ },
153
+ notFoundAltText: {
154
+ id: 'fabric.editor.syncedBlockNotFoundIconAltText',
155
+ defaultMessage: 'Synced block not found.',
156
+ description: 'Alt text for icon on error state where the synced block cannot be found or no longer exists'
157
+ },
158
+ retryButton: {
159
+ id: 'fabric.editor.retrySyncedBlock',
160
+ defaultMessage: 'Retry',
161
+ description: 'Label for button which retries loading the synced block'
142
162
  }
143
163
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "110.30.0";
10
+ var packageVersion = "110.30.2";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -60,7 +60,7 @@ export function createThrottleSchedule(callback) {
60
60
  }
61
61
 
62
62
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
- export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, alwaysFire) {
63
+ export function returnDocumentRequest(editorView, callback, transformer, fireAnalyticsEvent, _alwaysFire) {
64
64
  var _editorView$state;
65
65
  var _ref = (_editorView$state = editorView === null || editorView === void 0 ? void 0 : editorView.state) !== null && _editorView$state !== void 0 ? _editorView$state : {},
66
66
  doc = _ref.doc,
@@ -146,7 +146,7 @@ var ActionsAPI = /*#__PURE__*/function () {
146
146
  return {};
147
147
  }
148
148
  return new Proxy(plugin.actions || {}, {
149
- get: function get(target, prop, receiver) {
149
+ get: function get(target, prop, _receiver) {
150
150
  // We will be able to track perfomance here
151
151
  return Reflect.get(target, prop);
152
152
  }
@@ -171,7 +171,7 @@ var EditorCommandsAPI = /*#__PURE__*/function () {
171
171
  return {};
172
172
  }
173
173
  return new Proxy(plugin.commands || {}, {
174
- get: function get(target, prop, receiver) {
174
+ get: function get(target, prop, _receiver) {
175
175
  // We will be able to track perfomance here
176
176
  return Reflect.get(target, prop);
177
177
  }
@@ -199,7 +199,7 @@ export var SharedStateAPI = /*#__PURE__*/function () {
199
199
  currentState: function currentState() {
200
200
  return undefined;
201
201
  },
202
- onChange: function onChange(sub) {
202
+ onChange: function onChange(_sub) {
203
203
  return function () {};
204
204
  }
205
205
  };
@@ -334,7 +334,7 @@ export var EditorPluginInjectionAPI = /*#__PURE__*/function () {
334
334
  // Ignored via go/ees005
335
335
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
336
336
  return new Proxy({}, {
337
- get: function get(target, prop, receiver) {
337
+ get: function get(target, prop, _receiver) {
338
338
  // If we pass this as a prop React hates us
339
339
  // Let's just reflect the result and ignore these
340
340
  if (prop === 'toJSON') {
@@ -101,7 +101,7 @@ export var selectNode = function selectNode(pos) {
101
101
  };
102
102
  };
103
103
  export function createSelectionClickHandler(nodes, isValidTarget, options) {
104
- return function handleClickOn(view, pos, node, nodePos, event, direct) {
104
+ return function handleClickOn(view, _pos, node, nodePos, event, direct) {
105
105
  if (options.useLongPressSelection) {
106
106
  return false;
107
107
  }
@@ -46,7 +46,7 @@ var headingWithAlignmentStyles = function headingWithAlignmentStyles() {
46
46
 
47
47
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
48
48
  // text sizing prototype: http://proto/fabricrender/
49
- export var headingsSharedStyles = function headingsSharedStyles(typographyTheme) {
49
+ export var headingsSharedStyles = function headingsSharedStyles(_typographyTheme) {
50
50
  if (fg('platform_editor_typography_ugc')) {
51
51
  return css(_objectSpread({
52
52
  '& h1': {
@@ -29,7 +29,7 @@ export var AssistiveText = function AssistiveText(_ref) {
29
29
  _ref$id = _ref.id,
30
30
  id = _ref$id === void 0 ? '' : _ref$id,
31
31
  _ref$statusDebounceMi = _ref.statusDebounceMillis,
32
- statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
32
+ _statusDebounceMillis = _ref$statusDebounceMi === void 0 ? 1400 : _ref$statusDebounceMi;
33
33
  var _useState = useState(false),
34
34
  _useState2 = _slicedToArray(_useState, 2),
35
35
  bump = _useState2[0],
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.30.0";
24
+ var packageVersion = "110.30.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -86,7 +86,7 @@ function (props, ref) {
86
86
  rest = _objectWithoutProperties(props, _excluded);
87
87
  return (
88
88
  // Ignored via go/ees005
89
- // eslint-disable-next-line react/jsx-props-no-spreading
89
+ // eslint-disable-next-line react/jsx-props-no-spreading, @typescript-eslint/no-explicit-any
90
90
  jsx("div", _extends({
91
91
  css: expandLayoutWrapperStyle
92
92
  }, rest, {
@@ -32,7 +32,7 @@ export var IntlErrorBoundary = /*#__PURE__*/function (_React$Component) {
32
32
  _inherits(IntlErrorBoundary, _React$Component);
33
33
  return _createClass(IntlErrorBoundary, [{
34
34
  key: "componentDidCatch",
35
- value: function componentDidCatch(error, errorInfo) {
35
+ value: function componentDidCatch(error, _errorInfo) {
36
36
  // if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
37
37
  if (isMissingIntlProviderInAncestryError(error)) {
38
38
  this.setState({
@@ -39,7 +39,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
39
39
  }
40
40
  _this.initPopup(popup);
41
41
  });
42
- _defineProperty(_this, "scheduledUpdatePosition", rafSchedule(function (props) {
42
+ _defineProperty(_this, "scheduledUpdatePosition", rafSchedule(function (_props) {
43
43
  _this.updatePosition(_this.props);
44
44
  }));
45
45
  _defineProperty(_this, "onResize", function () {
@@ -140,7 +140,7 @@ export function getRangeAncestorNodeNames(_ref2) {
140
140
  // This isn't as precise as calling resolve() on each parent, but it's a lot faster
141
141
  // and should hopefully provide a good approximation of the ancestor nodes
142
142
  var seenParents = new Set();
143
- doc.nodesBetween(pos.from, pos.to, function (node, nodePos, parent) {
143
+ doc.nodesBetween(pos.from, pos.to, function (_node, _nodePos, parent) {
144
144
  // Collect parent chain using the parent parameter
145
145
  var currentParent = parent;
146
146
  if (!!currentParent && !seenParents.has(currentParent)) {
@@ -187,7 +187,7 @@ export function getAnnotationInlineNodeTypes(state, annotationId) {
187
187
  annotationType: AnnotationTypes.INLINE_COMMENT
188
188
  });
189
189
  var inlineNodeNames = new Set();
190
- state.doc.descendants(function (node, pos) {
190
+ state.doc.descendants(function (node, _pos) {
191
191
  if (mark.isInSet(node.marks)) {
192
192
  inlineNodeNames.add(node.type.name);
193
193
  }
@@ -9,7 +9,7 @@ export var findChangedNodesFromTransaction = function findChangedNodesFromTransa
9
9
  var nodes = [];
10
10
  var steps = tr.steps || [];
11
11
  steps.forEach(function (step) {
12
- step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
12
+ step.getMap().forEach(function (_oldStart, _oldEnd, newStart, newEnd) {
13
13
  tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
14
14
  if (!nodes.find(function (n) {
15
15
  return n === node;
@@ -1,4 +1,9 @@
1
1
  export declare const aiExperienceApplicationMessages: {
2
+ dialogAriaLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
2
7
  responseTooSimilarMessage: {
3
8
  id: string;
4
9
  defaultMessage: string;
@@ -139,4 +139,24 @@ export declare const syncBlockMessages: {
139
139
  defaultMessage: string;
140
140
  description: string;
141
141
  };
142
+ generalErrorDescription: {
143
+ id: string;
144
+ defaultMessage: string;
145
+ description: string;
146
+ };
147
+ notFoundDescription: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
152
+ notFoundAltText: {
153
+ id: string;
154
+ defaultMessage: string;
155
+ description: string;
156
+ };
157
+ retryButton: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ description: string;
161
+ };
142
162
  };
@@ -130,7 +130,7 @@ type ExtractPluginConfigurationFromMetadata<Metadata> = 'pluginConfiguration' ex
130
130
  * You probably wants to use this if you need to extract the NextEditorPlugin from a @see PresetPlugin .
131
131
  * Since the PresetPlugin is an union between a tuple and a plugin.
132
132
  */
133
- type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [infer MPlugin, ...any] ? MPlugin extends NextEditorPlugin<infer Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer Name, any> ? Plugin : never;
133
+ type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [infer MPlugin, ...any] ? MPlugin extends NextEditorPlugin<infer _Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer _Name, any> ? Plugin : never;
134
134
  /**
135
135
  * 🧱 Internal Type: Editor FE Platform
136
136
  *
@@ -7,5 +7,5 @@ export declare function toJSON(node: PMNode): JSONDocNode;
7
7
  /**
8
8
  * This throttles the callback with requestIdleCallback.
9
9
  */
10
- export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, alwaysFire?: boolean | undefined) => void;
11
- export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, alwaysFire?: boolean): undefined;
10
+ export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, _alwaysFire?: boolean | undefined) => void;
11
+ export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, _alwaysFire?: boolean): undefined;
@@ -29,4 +29,4 @@ export declare const selectNode: (pos: number) => Command;
29
29
  export declare function createSelectionClickHandler(nodes: string[], isValidTarget: (target: HTMLElement) => boolean, options: {
30
30
  getNodeSelectionPos?: (state: EditorState, nodePos: number) => number;
31
31
  useLongPressSelection: boolean;
32
- }): (view: EditorView, pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
32
+ }): (view: EditorView, _pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
@@ -1 +1 @@
1
- export declare const headingsSharedStyles: (typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
1
+ export declare const headingsSharedStyles: (_typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
@@ -10,5 +10,5 @@ type AssistiveTextProps = {
10
10
  isInFocus: boolean;
11
11
  statusDebounceMillis?: number;
12
12
  };
13
- export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
13
+ export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis: _statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
14
14
  export {};
@@ -10,7 +10,7 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
10
10
  state: {
11
11
  missingIntlProviderInAncestry: boolean;
12
12
  };
13
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
13
+ componentDidCatch(error: Error, _errorInfo: React.ErrorInfo): void;
14
14
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
15
15
  }
16
16
  export {};
@@ -1,4 +1,9 @@
1
1
  export declare const aiExperienceApplicationMessages: {
2
+ dialogAriaLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
2
7
  responseTooSimilarMessage: {
3
8
  id: string;
4
9
  defaultMessage: string;
@@ -139,4 +139,24 @@ export declare const syncBlockMessages: {
139
139
  defaultMessage: string;
140
140
  description: string;
141
141
  };
142
+ generalErrorDescription: {
143
+ id: string;
144
+ defaultMessage: string;
145
+ description: string;
146
+ };
147
+ notFoundDescription: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
152
+ notFoundAltText: {
153
+ id: string;
154
+ defaultMessage: string;
155
+ description: string;
156
+ };
157
+ retryButton: {
158
+ id: string;
159
+ defaultMessage: string;
160
+ description: string;
161
+ };
142
162
  };
@@ -140,7 +140,7 @@ type ExtractPluginConfigurationFromMetadata<Metadata> = 'pluginConfiguration' ex
140
140
  type ExtractPluginAllBuilderPlugins<Plugin extends PresetPlugin> = Plugin extends Array<any> ? Plugin extends [
141
141
  infer MPlugin,
142
142
  ...any
143
- ] ? MPlugin extends NextEditorPlugin<infer Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer Name, any> ? Plugin : never;
143
+ ] ? MPlugin extends NextEditorPlugin<infer _Name, any> ? MPlugin : never : never : Plugin extends NextEditorPlugin<infer _Name, any> ? Plugin : never;
144
144
  /**
145
145
  * 🧱 Internal Type: Editor FE Platform
146
146
  *
@@ -7,5 +7,5 @@ export declare function toJSON(node: PMNode): JSONDocNode;
7
7
  /**
8
8
  * This throttles the callback with requestIdleCallback.
9
9
  */
10
- export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, alwaysFire?: boolean | undefined) => void;
11
- export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, alwaysFire?: boolean): undefined;
10
+ export declare function createThrottleSchedule<GenericTransformer extends Transformer<any> = Transformer<JSONDocNode>>(callback: typeof returnDocumentRequest<GenericTransformer>): (editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer | undefined, fireAnalyticsEvent?: FireAnalyticsCallback | undefined, _alwaysFire?: boolean | undefined) => void;
11
+ export declare function returnDocumentRequest<GenericTransformer extends Transformer<any> | undefined>(editorView: EditorView | null, callback: GenericTransformer extends undefined ? DefaultTransformerResultCallback : InferTransformerResultCallback<GenericTransformer>, transformer?: GenericTransformer, fireAnalyticsEvent?: FireAnalyticsCallback, _alwaysFire?: boolean): undefined;
@@ -29,4 +29,4 @@ export declare const selectNode: (pos: number) => Command;
29
29
  export declare function createSelectionClickHandler(nodes: string[], isValidTarget: (target: HTMLElement) => boolean, options: {
30
30
  getNodeSelectionPos?: (state: EditorState, nodePos: number) => number;
31
31
  useLongPressSelection: boolean;
32
- }): (view: EditorView, pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
32
+ }): (view: EditorView, _pos: number, node: PmNode, nodePos: number, event: MouseEvent, direct: boolean) => boolean;
@@ -1 +1 @@
1
- export declare const headingsSharedStyles: (typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
1
+ export declare const headingsSharedStyles: (_typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed") => import("@emotion/react").SerializedStyles;
@@ -10,5 +10,5 @@ type AssistiveTextProps = {
10
10
  isInFocus: boolean;
11
11
  statusDebounceMillis?: number;
12
12
  };
13
- export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
13
+ export declare const AssistiveText: ({ assistiveText, isInFocus, id, statusDebounceMillis: _statusDebounceMillis, }: AssistiveTextProps) => jsx.JSX.Element;
14
14
  export {};
@@ -10,7 +10,7 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
10
10
  state: {
11
11
  missingIntlProviderInAncestry: boolean;
12
12
  };
13
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
13
+ componentDidCatch(error: Error, _errorInfo: React.ErrorInfo): void;
14
14
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
15
15
  }
16
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.30.1",
3
+ "version": "110.31.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"