@atlaskit/editor-common 111.33.0 → 111.34.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 (33) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/messages/block-type.js +5 -0
  3. package/dist/cjs/messages/codeBlock.js +19 -0
  4. package/dist/cjs/messages/index.js +14 -0
  5. package/dist/cjs/messages/roleDescription.js +14 -0
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/ui/OverflowShadow/shadowObserver.js +7 -0
  9. package/dist/es2019/messages/block-type.js +5 -0
  10. package/dist/es2019/messages/codeBlock.js +13 -0
  11. package/dist/es2019/messages/index.js +2 -0
  12. package/dist/es2019/messages/roleDescription.js +8 -0
  13. package/dist/es2019/monitoring/error.js +1 -1
  14. package/dist/es2019/ui/DropList/index.js +1 -1
  15. package/dist/es2019/ui/OverflowShadow/shadowObserver.js +7 -0
  16. package/dist/esm/messages/block-type.js +5 -0
  17. package/dist/esm/messages/codeBlock.js +13 -0
  18. package/dist/esm/messages/index.js +2 -0
  19. package/dist/esm/messages/roleDescription.js +8 -0
  20. package/dist/esm/monitoring/error.js +1 -1
  21. package/dist/esm/ui/DropList/index.js +1 -1
  22. package/dist/esm/ui/OverflowShadow/shadowObserver.js +7 -0
  23. package/dist/types/messages/block-type.d.ts +5 -0
  24. package/dist/types/messages/codeBlock.d.ts +12 -0
  25. package/dist/types/messages/index.d.ts +2 -0
  26. package/dist/types/messages/roleDescription.d.ts +7 -0
  27. package/dist/types/utils/list.d.ts +5 -1
  28. package/dist/types-ts4.5/messages/block-type.d.ts +5 -0
  29. package/dist/types-ts4.5/messages/codeBlock.d.ts +12 -0
  30. package/dist/types-ts4.5/messages/index.d.ts +2 -0
  31. package/dist/types-ts4.5/messages/roleDescription.d.ts +7 -0
  32. package/dist/types-ts4.5/utils/list.d.ts +5 -1
  33. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 111.34.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`dd5154ad0dec5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd5154ad0dec5) -
8
+ [A11Y-10416] Add new i18n message for codeblock aria descriptions around textboc roles
9
+
10
+ ### Patch Changes
11
+
12
+ - [`c15b7a3426c66`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c15b7a3426c66) -
13
+ [ux] EDITOR-5626 Flexible list behaviour
14
+ - [`29e8db48dc55b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29e8db48dc55b) -
15
+ [ux] EDITOR-5622 Remove sentinels when shadowObserver is cleaned up
16
+ - Updated dependencies
17
+
3
18
  ## 111.33.0
4
19
 
5
20
  ### Minor Changes
@@ -178,6 +178,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
178
178
  defaultMessage: 'Panel',
179
179
  description: 'Visually distinguishes your text by adding a panel'
180
180
  },
181
+ textBoxAriaLabel: {
182
+ id: 'fabric.editor.aria.textbox',
183
+ defaultMessage: 'textbox',
184
+ description: 'This is the definition of the HTML role textbox, it needs to be translated in the same way that a textbox with a HTML role of textbox'
185
+ },
181
186
  other: {
182
187
  id: 'fabric.editor.other',
183
188
  defaultMessage: 'Others...',
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.codeBlockMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var codeBlockMessages = exports.codeBlockMessages = (0, _reactIntlNext.defineMessages)({
9
+ codeblockLanguageAriaDescription: {
10
+ id: 'fabric.editor.codeBlock.languageAriaDescription',
11
+ defaultMessage: 'Code snippet language: {language}.',
12
+ description: 'A short message that provides information about what code language is being used in a code block for accessibility purposes, punctuation mark at the end as another message comes after'
13
+ },
14
+ codeBlockLanguageNotSet: {
15
+ id: 'fabric.editor.codeBlock.languageNotSet',
16
+ defaultMessage: 'Code language not set.',
17
+ description: 'A short message that provides information that the code block language has not been set for accessibility purposes, punctuation mark at the end as another message comes after'
18
+ }
19
+ });
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "codeBlockButtonMessages", {
63
63
  return _codeBlockButton.codeBlockButtonMessages;
64
64
  }
65
65
  });
66
+ Object.defineProperty(exports, "codeBlockMessages", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _codeBlock.codeBlockMessages;
70
+ }
71
+ });
66
72
  Object.defineProperty(exports, "colorPickerButtonMessages", {
67
73
  enumerable: true,
68
74
  get: function get() {
@@ -196,6 +202,12 @@ Object.defineProperty(exports, "placeholderTextMessages", {
196
202
  return _placeholderText.placeholderTextMessages;
197
203
  }
198
204
  });
205
+ Object.defineProperty(exports, "roleDescriptionMessages", {
206
+ enumerable: true,
207
+ get: function get() {
208
+ return _roleDescription.roleDescriptionMessages;
209
+ }
210
+ });
199
211
  Object.defineProperty(exports, "selectionExtensionMessages", {
200
212
  enumerable: true,
201
213
  get: function get() {
@@ -279,6 +291,7 @@ var _colorPickerButton = require("./color-picker-button");
279
291
  var _link = require("./link");
280
292
  var _linkToolbar = require("./link-toolbar");
281
293
  var _unsupportedContent = require("./unsupportedContent");
294
+ var _codeBlock = require("./codeBlock");
282
295
  var _codeBlockButton = require("./codeBlockButton");
283
296
  var _insertBlock = require("./insert-block");
284
297
  var _mediaAndEmbedToolbar = require("./media-and-embed-toolbar");
@@ -310,6 +323,7 @@ var _selectionExtension = require("./selection-extension");
310
323
  var _selectionToolbar = require("./selection-toolbar");
311
324
  var _contextPanel = require("./context-panel");
312
325
  var _trackChanges = require("./track-changes");
326
+ var _roleDescription = require("./roleDescription");
313
327
  var _syncBlock = require("./syncBlock");
314
328
  var _limitedMode = require("./limited-mode");
315
329
  var _companyHubTextColor = require("./company-hub-text-color");
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.roleDescriptionMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var roleDescriptionMessages = exports.roleDescriptionMessages = (0, _reactIntlNext.defineMessages)({
9
+ codeSnippetTextBox: {
10
+ id: 'fabric.editor.ariaRoleDescription.codeSnippetTextBox',
11
+ defaultMessage: 'codesnippet textbox',
12
+ description: 'Aria role description for code snippet textbox. We are overriding the HTML role textbox so the translation should match the translation of the HTML role textbox in the language being used, but with "code snippet" added to the beginning to differentiate it from a regular textbox.'
13
+ }
14
+ });
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "111.32.1";
22
+ var packageVersion = "111.33.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -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 = "111.32.1";
27
+ var packageVersion = "111.33.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -8,6 +8,7 @@ exports.shadowObserverClassNames = exports.ShadowObserver = exports.ShadowKeys =
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty3 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
12
  var ShadowKeys = exports.ShadowKeys = /*#__PURE__*/function (ShadowKeys) {
12
13
  ShadowKeys["SHOW_LEFT_SHADOW"] = "showLeftShadow";
13
14
  ShadowKeys["SHOW_RIGHT_SHADOW"] = "showRightShadow";
@@ -84,6 +85,12 @@ var ShadowObserver = exports.ShadowObserver = /*#__PURE__*/function () {
84
85
  this.intersectionObserver = undefined;
85
86
  this.requestCallbackId && cancelIdleCallback(this.requestCallbackId);
86
87
  }
88
+ if ((0, _expValEquals.expValEquals)('platform_editor_renderer_shadow_observer_cleanup', 'isEnabled', true)) {
89
+ var _this$sentinels$left, _this$sentinels$right;
90
+ (_this$sentinels$left = this.sentinels.left) === null || _this$sentinels$left === void 0 || _this$sentinels$left.remove();
91
+ (_this$sentinels$right = this.sentinels.right) === null || _this$sentinels$right === void 0 || _this$sentinels$right.remove();
92
+ this.sentinels = {};
93
+ }
87
94
  }
88
95
  }]);
89
96
  }();
@@ -172,6 +172,11 @@ export const messages = defineMessages({
172
172
  defaultMessage: 'Panel',
173
173
  description: 'Visually distinguishes your text by adding a panel'
174
174
  },
175
+ textBoxAriaLabel: {
176
+ id: 'fabric.editor.aria.textbox',
177
+ defaultMessage: 'textbox',
178
+ description: 'This is the definition of the HTML role textbox, it needs to be translated in the same way that a textbox with a HTML role of textbox'
179
+ },
175
180
  other: {
176
181
  id: 'fabric.editor.other',
177
182
  defaultMessage: 'Others...',
@@ -0,0 +1,13 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const codeBlockMessages = defineMessages({
3
+ codeblockLanguageAriaDescription: {
4
+ id: 'fabric.editor.codeBlock.languageAriaDescription',
5
+ defaultMessage: 'Code snippet language: {language}.',
6
+ description: 'A short message that provides information about what code language is being used in a code block for accessibility purposes, punctuation mark at the end as another message comes after'
7
+ },
8
+ codeBlockLanguageNotSet: {
9
+ id: 'fabric.editor.codeBlock.languageNotSet',
10
+ defaultMessage: 'Code language not set.',
11
+ description: 'A short message that provides information that the code block language has not been set for accessibility purposes, punctuation mark at the end as another message comes after'
12
+ }
13
+ });
@@ -12,6 +12,7 @@ export { colorPickerButtonMessages } from './color-picker-button';
12
12
  export { linkMessages } from './link';
13
13
  export { linkToolbarMessages } from './link-toolbar';
14
14
  export { unsupportedContentMessages } from './unsupportedContent';
15
+ export { codeBlockMessages } from './codeBlock';
15
16
  export { codeBlockButtonMessages } from './codeBlockButton';
16
17
  export { toolbarInsertBlockMessages } from './insert-block';
17
18
  export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-embed-toolbar';
@@ -43,6 +44,7 @@ export { selectionExtensionMessages } from './selection-extension';
43
44
  export { selectionToolbarMessages } from './selection-toolbar';
44
45
  export { contextPanelMessages } from './context-panel';
45
46
  export { trackChangesMessages } from './track-changes';
47
+ export { roleDescriptionMessages } from './roleDescription';
46
48
  export { syncBlockMessages } from './syncBlock';
47
49
  export { limitedModeMessages } from './limited-mode';
48
50
  export { companyHubTextColorMessages } from './company-hub-text-color';
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const roleDescriptionMessages = defineMessages({
3
+ codeSnippetTextBox: {
4
+ id: 'fabric.editor.ariaRoleDescription.codeSnippetTextBox',
5
+ defaultMessage: 'codesnippet textbox',
6
+ description: 'Aria role description for code snippet textbox. We are overriding the HTML role textbox so the translation should match the translation of the HTML role textbox in the language being used, but with "code snippet" added to the beginning to differentiate it from a regular textbox.'
7
+ }
8
+ });
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "111.32.1";
7
+ const packageVersion = "111.33.0";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -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 = "111.32.1";
17
+ const packageVersion = "111.33.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  export let ShadowKeys = /*#__PURE__*/function (ShadowKeys) {
3
4
  ShadowKeys["SHOW_LEFT_SHADOW"] = "showLeftShadow";
4
5
  ShadowKeys["SHOW_RIGHT_SHADOW"] = "showRightShadow";
@@ -75,5 +76,11 @@ export class ShadowObserver {
75
76
  this.intersectionObserver = undefined;
76
77
  this.requestCallbackId && cancelIdleCallback(this.requestCallbackId);
77
78
  }
79
+ if (expValEquals('platform_editor_renderer_shadow_observer_cleanup', 'isEnabled', true)) {
80
+ var _this$sentinels$left, _this$sentinels$right;
81
+ (_this$sentinels$left = this.sentinels.left) === null || _this$sentinels$left === void 0 ? void 0 : _this$sentinels$left.remove();
82
+ (_this$sentinels$right = this.sentinels.right) === null || _this$sentinels$right === void 0 ? void 0 : _this$sentinels$right.remove();
83
+ this.sentinels = {};
84
+ }
78
85
  }
79
86
  }
@@ -172,6 +172,11 @@ export var messages = defineMessages({
172
172
  defaultMessage: 'Panel',
173
173
  description: 'Visually distinguishes your text by adding a panel'
174
174
  },
175
+ textBoxAriaLabel: {
176
+ id: 'fabric.editor.aria.textbox',
177
+ defaultMessage: 'textbox',
178
+ description: 'This is the definition of the HTML role textbox, it needs to be translated in the same way that a textbox with a HTML role of textbox'
179
+ },
175
180
  other: {
176
181
  id: 'fabric.editor.other',
177
182
  defaultMessage: 'Others...',
@@ -0,0 +1,13 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var codeBlockMessages = defineMessages({
3
+ codeblockLanguageAriaDescription: {
4
+ id: 'fabric.editor.codeBlock.languageAriaDescription',
5
+ defaultMessage: 'Code snippet language: {language}.',
6
+ description: 'A short message that provides information about what code language is being used in a code block for accessibility purposes, punctuation mark at the end as another message comes after'
7
+ },
8
+ codeBlockLanguageNotSet: {
9
+ id: 'fabric.editor.codeBlock.languageNotSet',
10
+ defaultMessage: 'Code language not set.',
11
+ description: 'A short message that provides information that the code block language has not been set for accessibility purposes, punctuation mark at the end as another message comes after'
12
+ }
13
+ });
@@ -12,6 +12,7 @@ export { colorPickerButtonMessages } from './color-picker-button';
12
12
  export { linkMessages } from './link';
13
13
  export { linkToolbarMessages } from './link-toolbar';
14
14
  export { unsupportedContentMessages } from './unsupportedContent';
15
+ export { codeBlockMessages } from './codeBlock';
15
16
  export { codeBlockButtonMessages } from './codeBlockButton';
16
17
  export { toolbarInsertBlockMessages } from './insert-block';
17
18
  export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-embed-toolbar';
@@ -43,6 +44,7 @@ export { selectionExtensionMessages } from './selection-extension';
43
44
  export { selectionToolbarMessages } from './selection-toolbar';
44
45
  export { contextPanelMessages } from './context-panel';
45
46
  export { trackChangesMessages } from './track-changes';
47
+ export { roleDescriptionMessages } from './roleDescription';
46
48
  export { syncBlockMessages } from './syncBlock';
47
49
  export { limitedModeMessages } from './limited-mode';
48
50
  export { companyHubTextColorMessages } from './company-hub-text-color';
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var roleDescriptionMessages = defineMessages({
3
+ codeSnippetTextBox: {
4
+ id: 'fabric.editor.ariaRoleDescription.codeSnippetTextBox',
5
+ defaultMessage: 'codesnippet textbox',
6
+ description: 'Aria role description for code snippet textbox. We are overriding the HTML role textbox so the translation should match the translation of the HTML role textbox in the language being used, but with "code snippet" added to the beginning to differentiate it from a regular textbox.'
7
+ }
8
+ });
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "111.32.1";
13
+ var packageVersion = "111.33.0";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -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 = "111.32.1";
24
+ var packageVersion = "111.33.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,6 +1,7 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  export var ShadowKeys = /*#__PURE__*/function (ShadowKeys) {
5
6
  ShadowKeys["SHOW_LEFT_SHADOW"] = "showLeftShadow";
6
7
  ShadowKeys["SHOW_RIGHT_SHADOW"] = "showRightShadow";
@@ -77,6 +78,12 @@ export var ShadowObserver = /*#__PURE__*/function () {
77
78
  this.intersectionObserver = undefined;
78
79
  this.requestCallbackId && cancelIdleCallback(this.requestCallbackId);
79
80
  }
81
+ if (expValEquals('platform_editor_renderer_shadow_observer_cleanup', 'isEnabled', true)) {
82
+ var _this$sentinels$left, _this$sentinels$right;
83
+ (_this$sentinels$left = this.sentinels.left) === null || _this$sentinels$left === void 0 || _this$sentinels$left.remove();
84
+ (_this$sentinels$right = this.sentinels.right) === null || _this$sentinels$right === void 0 || _this$sentinels$right.remove();
85
+ this.sentinels = {};
86
+ }
80
87
  }
81
88
  }]);
82
89
  }();
@@ -169,6 +169,11 @@ export declare const messages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ textBoxAriaLabel: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
172
177
  other: {
173
178
  id: string;
174
179
  defaultMessage: string;
@@ -0,0 +1,12 @@
1
+ export declare const codeBlockMessages: {
2
+ codeblockLanguageAriaDescription: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ codeBlockLanguageNotSet: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
@@ -8,6 +8,7 @@ export { colorPickerButtonMessages } from './color-picker-button';
8
8
  export { linkMessages } from './link';
9
9
  export { linkToolbarMessages } from './link-toolbar';
10
10
  export { unsupportedContentMessages } from './unsupportedContent';
11
+ export { codeBlockMessages } from './codeBlock';
11
12
  export { codeBlockButtonMessages } from './codeBlockButton';
12
13
  export { toolbarInsertBlockMessages } from './insert-block';
13
14
  export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-embed-toolbar';
@@ -39,6 +40,7 @@ export { selectionExtensionMessages } from './selection-extension';
39
40
  export { selectionToolbarMessages } from './selection-toolbar';
40
41
  export { contextPanelMessages } from './context-panel';
41
42
  export { trackChangesMessages } from './track-changes';
43
+ export { roleDescriptionMessages } from './roleDescription';
42
44
  export { syncBlockMessages } from './syncBlock';
43
45
  export { limitedModeMessages } from './limited-mode';
44
46
  export { companyHubTextColorMessages } from './company-hub-text-color';
@@ -0,0 +1,7 @@
1
+ export declare const roleDescriptionMessages: {
2
+ codeSnippetTextBox: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ };
@@ -7,7 +7,11 @@ interface GetItemCounterDigitsSize {
7
7
  order?: number;
8
8
  }
9
9
  export declare const getItemCounterDigitsSize: (options: GetItemCounterDigitsSize) => number | undefined;
10
- export declare function isListNode(node: Node | null | undefined): boolean;
10
+ export declare function isListNode(node: Node | null | undefined): node is Node & {
11
+ type: {
12
+ name: 'orderedList' | 'bulletList';
13
+ };
14
+ };
11
15
  export declare function isParagraphNode(node: Node | null | undefined): boolean;
12
16
  export declare function isListItemNode(node: Node | null | undefined): boolean;
13
17
  export declare function isBulletList(node: Node | null | undefined): boolean;
@@ -169,6 +169,11 @@ export declare const messages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ textBoxAriaLabel: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
172
177
  other: {
173
178
  id: string;
174
179
  defaultMessage: string;
@@ -0,0 +1,12 @@
1
+ export declare const codeBlockMessages: {
2
+ codeblockLanguageAriaDescription: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ codeBlockLanguageNotSet: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
@@ -8,6 +8,7 @@ export { colorPickerButtonMessages } from './color-picker-button';
8
8
  export { linkMessages } from './link';
9
9
  export { linkToolbarMessages } from './link-toolbar';
10
10
  export { unsupportedContentMessages } from './unsupportedContent';
11
+ export { codeBlockMessages } from './codeBlock';
11
12
  export { codeBlockButtonMessages } from './codeBlockButton';
12
13
  export { toolbarInsertBlockMessages } from './insert-block';
13
14
  export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-embed-toolbar';
@@ -39,6 +40,7 @@ export { selectionExtensionMessages } from './selection-extension';
39
40
  export { selectionToolbarMessages } from './selection-toolbar';
40
41
  export { contextPanelMessages } from './context-panel';
41
42
  export { trackChangesMessages } from './track-changes';
43
+ export { roleDescriptionMessages } from './roleDescription';
42
44
  export { syncBlockMessages } from './syncBlock';
43
45
  export { limitedModeMessages } from './limited-mode';
44
46
  export { companyHubTextColorMessages } from './company-hub-text-color';
@@ -0,0 +1,7 @@
1
+ export declare const roleDescriptionMessages: {
2
+ codeSnippetTextBox: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ };
@@ -7,7 +7,11 @@ interface GetItemCounterDigitsSize {
7
7
  order?: number;
8
8
  }
9
9
  export declare const getItemCounterDigitsSize: (options: GetItemCounterDigitsSize) => number | undefined;
10
- export declare function isListNode(node: Node | null | undefined): boolean;
10
+ export declare function isListNode(node: Node | null | undefined): node is Node & {
11
+ type: {
12
+ name: 'orderedList' | 'bulletList';
13
+ };
14
+ };
11
15
  export declare function isParagraphNode(node: Node | null | undefined): boolean;
12
16
  export declare function isListItemNode(node: Node | null | undefined): boolean;
13
17
  export declare function isBulletList(node: Node | null | undefined): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "111.33.0",
3
+ "version": "111.34.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/"
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/task-decision": "^19.3.0",
83
83
  "@atlaskit/textfield": "^8.2.0",
84
84
  "@atlaskit/theme": "^22.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^35.6.0",
85
+ "@atlaskit/tmp-editor-statsig": "^35.7.0",
86
86
  "@atlaskit/tokens": "^11.1.0",
87
87
  "@atlaskit/tooltip": "^20.14.0",
88
88
  "@atlaskit/width-detector": "^5.0.0",