@atlaskit/editor-common 114.46.0 → 114.47.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6767563047c0e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6767563047c0e) -
8
+ Add distributeLayoutColumns command that equalises widths of selected layout columns; wire into
9
+ drag-handle column menu and floating toolbar
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 114.46.0
4
16
 
5
17
  ### Minor Changes
@@ -18,7 +18,7 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
18
18
  groupLabel: {
19
19
  id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
20
20
  defaultMessage: 'View mode',
21
- description: 'Accessible label announced for the group of three view-mode toggle buttons (markdown source, WYSIWYG, preview) shown on Markdown-Mode Live Docs.'
21
+ description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
22
22
  },
23
23
  source: {
24
24
  id: 'fabric.editor.markdownMode.viewToggle.source',
@@ -27,13 +27,13 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
27
27
  },
28
28
  wysiwyg: {
29
29
  id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
30
- defaultMessage: 'WYSIWYG editor',
31
- description: 'Tooltip and accessible label for the toggle button that switches the editor into the WYSIWYG markdown editing view (the default).'
30
+ defaultMessage: 'Preview editor',
31
+ description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
32
32
  },
33
33
  preview: {
34
34
  id: 'fabric.editor.markdownMode.viewToggle.preview',
35
35
  defaultMessage: 'Split view (coming soon)',
36
- description: 'Tooltip and accessible label for the toggle button that will switch the editor into a split view. This feature is not yet available.'
36
+ description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
37
37
  },
38
38
  sourceAriaLabel: {
39
39
  id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
@@ -63,7 +63,7 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
63
63
  confirmDialogToMarkdownToggle: {
64
64
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
65
65
  defaultMessage: 'Toggle between the syntax and preview editor',
66
- description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
66
+ description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
67
67
  },
68
68
  confirmDialogToMarkdownVersionHistory: {
69
69
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
@@ -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 = "114.45.0";
22
+ var packageVersion = "114.46.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 = "114.45.0";
27
+ var packageVersion = "114.46.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -13,7 +13,7 @@ export const markdownModeMessages = defineMessages({
13
13
  groupLabel: {
14
14
  id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
15
15
  defaultMessage: 'View mode',
16
- description: 'Accessible label announced for the group of three view-mode toggle buttons (markdown source, WYSIWYG, preview) shown on Markdown-Mode Live Docs.'
16
+ description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
17
17
  },
18
18
  source: {
19
19
  id: 'fabric.editor.markdownMode.viewToggle.source',
@@ -22,13 +22,13 @@ export const markdownModeMessages = defineMessages({
22
22
  },
23
23
  wysiwyg: {
24
24
  id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
25
- defaultMessage: 'WYSIWYG editor',
26
- description: 'Tooltip and accessible label for the toggle button that switches the editor into the WYSIWYG markdown editing view (the default).'
25
+ defaultMessage: 'Preview editor',
26
+ description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
27
27
  },
28
28
  preview: {
29
29
  id: 'fabric.editor.markdownMode.viewToggle.preview',
30
30
  defaultMessage: 'Split view (coming soon)',
31
- description: 'Tooltip and accessible label for the toggle button that will switch the editor into a split view. This feature is not yet available.'
31
+ description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
32
32
  },
33
33
  sourceAriaLabel: {
34
34
  id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
@@ -58,7 +58,7 @@ export const markdownModeMessages = defineMessages({
58
58
  confirmDialogToMarkdownToggle: {
59
59
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
60
60
  defaultMessage: 'Toggle between the syntax and preview editor',
61
- description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
61
+ description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
62
62
  },
63
63
  confirmDialogToMarkdownVersionHistory: {
64
64
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
@@ -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 = "114.45.0";
7
+ const packageVersion = "114.46.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 = "114.45.0";
17
+ const packageVersion = "114.46.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -13,7 +13,7 @@ export var markdownModeMessages = defineMessages({
13
13
  groupLabel: {
14
14
  id: 'fabric.editor.markdownMode.viewToggle.groupLabel',
15
15
  defaultMessage: 'View mode',
16
- description: 'Accessible label announced for the group of three view-mode toggle buttons (markdown source, WYSIWYG, preview) shown on Markdown-Mode Live Docs.'
16
+ description: 'Accessible label announced for the group of three view-mode toggle buttons (syntax editor, preview editor, split view) shown on Markdown-Mode Live Docs.'
17
17
  },
18
18
  source: {
19
19
  id: 'fabric.editor.markdownMode.viewToggle.source',
@@ -22,13 +22,13 @@ export var markdownModeMessages = defineMessages({
22
22
  },
23
23
  wysiwyg: {
24
24
  id: 'fabric.editor.markdownMode.viewToggle.wysiwyg',
25
- defaultMessage: 'WYSIWYG editor',
26
- description: 'Tooltip and accessible label for the toggle button that switches the editor into the WYSIWYG markdown editing view (the default).'
25
+ defaultMessage: 'Preview editor',
26
+ description: 'Tooltip and accessible label for the toggle button that switches the editor into the preview markdown editing view.'
27
27
  },
28
28
  preview: {
29
29
  id: 'fabric.editor.markdownMode.viewToggle.preview',
30
30
  defaultMessage: 'Split view (coming soon)',
31
- description: 'Tooltip and accessible label for the toggle button that will switch the editor into a split view. This feature is not yet available.'
31
+ description: 'Tooltip and accessible label for the toggle button that will switch the editor into split view mode. This feature is not yet available.'
32
32
  },
33
33
  sourceAriaLabel: {
34
34
  id: 'fabric.editor.markdownMode.sourceView.ariaLabel',
@@ -58,7 +58,7 @@ export var markdownModeMessages = defineMessages({
58
58
  confirmDialogToMarkdownToggle: {
59
59
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.toggle',
60
60
  defaultMessage: 'Toggle between the syntax and preview editor',
61
- description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between markdown source view and WYSIWYG view after the conversion.'
61
+ description: 'Body row inside the convert-to-markdown confirmation dialog; explains that the user can still flip between syntax and preview editor after the conversion.'
62
62
  },
63
63
  confirmDialogToMarkdownVersionHistory: {
64
64
  id: 'fabric.editor.markdownMode.confirmDialog.toMarkdown.versionHistory',
@@ -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 = "114.45.0";
13
+ var packageVersion = "114.46.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 = "114.45.0";
24
+ var packageVersion = "114.46.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -69,6 +69,13 @@ type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_S
69
69
  updatedCount: number;
70
70
  valign: 'top' | 'middle' | 'bottom';
71
71
  }, undefined>;
72
+ type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
73
+ columnCount: number;
74
+ endIndex: number;
75
+ inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
76
+ selectedCount: number;
77
+ startIndex: number;
78
+ }, undefined>;
72
79
  type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
73
80
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
74
81
  }, undefined>;
@@ -79,5 +86,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
79
86
  type: string;
80
87
  };
81
88
  }, undefined>;
82
- export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
89
+ export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
83
90
  export {};
@@ -69,6 +69,13 @@ type UpdatedLayoutColumnVerticalAlignmentAEP = TrackAEP<ACTION.UPDATED, ACTION_S
69
69
  updatedCount: number;
70
70
  valign: 'top' | 'middle' | 'bottom';
71
71
  }, undefined>;
72
+ type DistributedLayoutColumnAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
73
+ columnCount: number;
74
+ endIndex: number;
75
+ inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU | INPUT_METHOD.FLOATING_TB;
76
+ selectedCount: number;
77
+ startIndex: number;
78
+ }, undefined>;
72
79
  type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
73
80
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
74
81
  }, undefined>;
@@ -79,5 +86,5 @@ type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, AC
79
86
  type: string;
80
87
  };
81
88
  }, undefined>;
82
- export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
89
+ export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedLayoutColumnAEP | UpdatedLayoutColumnVerticalAlignmentAEP | DistributedLayoutColumnAEP | DeletedExpandAEP | NodeDeletedAEP | ChangeSmartLinkAEP | ChangeNativeEmbedAEP | UnsupportedContentAEP;
83
90
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.46.0",
3
+ "version": "114.47.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/"